@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
23 lines • 5.43 kB
JavaScript
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x114df1=_0x4adc;(function(_0x56cc33,_0xce9ede){const _0xba95e5=_0x4adc,_0x33288c=_0x56cc33();while(!![]){try{const _0x4e76b7=-parseInt(_0xba95e5(0xcf))/0x1*(-parseInt(_0xba95e5(0xc8))/0x2)+parseInt(_0xba95e5(0xdc))/0x3+parseInt(_0xba95e5(0xc9))/0x4+parseInt(_0xba95e5(0xeb))/0x5*(-parseInt(_0xba95e5(0xf1))/0x6)+parseInt(_0xba95e5(0xea))/0x7+-parseInt(_0xba95e5(0xdf))/0x8*(-parseInt(_0xba95e5(0xe4))/0x9)+-parseInt(_0xba95e5(0xe2))/0xa;if(_0x4e76b7===_0xce9ede)break;else _0x33288c['push'](_0x33288c['shift']());}catch(_0x324011){_0x33288c['push'](_0x33288c['shift']());}}}(_0x3684,0x6926f));function _0x4adc(_0x33b644,_0x5ed557){const _0x36846e=_0x3684();return _0x4adc=function(_0x4adcd7,_0x8bdd1d){_0x4adcd7=_0x4adcd7-0xc6;let _0x7ccc9=_0x36846e[_0x4adcd7];return _0x7ccc9;},_0x4adc(_0x33b644,_0x5ed557);}import{HighlightedTextView as _0x525bb6,IconView as _0x2350dd,ListItemView as _0x4b9e12}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x407db3}from'es-toolkit/compat';import{AIContextItemType as _0x3e9d91}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x7db1d5,IconCheck as _0x374b94,IconDocument as _0x36a186,IconDocumentOutline as _0x31a0dd,IconLink as _0x44483f}from'@ckeditor/ckeditor5-icons';const Gr=_0x114df1(0xda),Hr=_0x114df1(0xdb),Jr=_0x114df1(0xd2),Kr=_0x114df1(0xd9);export class AIChatResourceListItemView extends _0x4b9e12{[_0x114df1(0xd3)];[_0x114df1(0xe5)];[_0x114df1(0xdd)];constructor(_0x397726,_0x5895d1){const _0x33bb1a=_0x114df1;super(_0x397726),this[_0x33bb1a(0xd3)]=_0x5895d1,this[_0x33bb1a(0xd4)](_0x33bb1a(0xcb),!!_0x5895d1[_0x33bb1a(0xcb)]),this[_0x33bb1a(0xe5)]=this[_0x33bb1a(0xd7)](),this[_0x33bb1a(0xdd)]=this[_0x33bb1a(0xed)](),this[_0x33bb1a(0xc7)]();}[_0x114df1(0xc6)](){const _0x42743a=_0x114df1;super[_0x42743a(0xc6)]();}[_0x114df1(0xe0)](_0x388d9d){const _0x206380=_0x114df1;if(_0x388d9d[_0x206380(0xcb)])return _0x374b94;switch(_0x388d9d[_0x206380(0xe8)]){case _0x3e9d91[_0x206380(0xcd)]:return _0x36a186;case _0x3e9d91[_0x206380(0xec)]:return _0x44483f;case _0x3e9d91[_0x206380(0xce)]:case _0x3e9d91[_0x206380(0xd0)]:return _0x7db1d5;default:return _0x31a0dd;}}[_0x114df1(0xe1)](_0x1d6fac){const _0x2e099c=_0x114df1;if(!_0x1d6fac||''===_0x1d6fac[_0x2e099c(0xde)]())return void this[_0x2e099c(0xe5)][_0x2e099c(0xe1)](null);const _0x57c9=new RegExp(_0x407db3(_0x1d6fac),'gi');this[_0x2e099c(0xe5)][_0x2e099c(0xe1)](_0x57c9);}[_0x114df1(0xee)](_0x1e583e){const _0x369c61=_0x114df1;this[_0x369c61(0xd3)][_0x369c61(0xcb)]=_0x1e583e,this[_0x369c61(0xcb)]=_0x1e583e,this[_0x369c61(0xd1)]();}[_0x114df1(0xd7)](){const _0xd86106=_0x114df1,_0x4656c5=new _0x525bb6();return _0x4656c5[_0xd86106(0xd8)]=this[_0xd86106(0xd3)][_0xd86106(0xe9)],_0x4656c5[_0xd86106(0xcc)]({'tag':_0xd86106(0xe3),'attributes':{'class':[Jr]}}),_0x4656c5;}[_0x114df1(0xed)](){const _0x568da1=_0x114df1,_0x4f8781=new _0x2350dd();return _0x4f8781[_0x568da1(0xef)]=this[_0x568da1(0xe0)](this[_0x568da1(0xd3)]),_0x4f8781;}[_0x114df1(0xc7)](){const _0x4da7b7=_0x114df1,_0x2bb5f7=this[_0x4da7b7(0xd5)];this[_0x4da7b7(0xf0)]({'tag':_0x4da7b7(0xe6),'attributes':{'class':[Gr,_0x2bb5f7['if'](_0x4da7b7(0xca),_0x4da7b7(0xe7),_0x5f0b41=>!_0x5f0b41),_0x2bb5f7['if'](_0x4da7b7(0xcb),Hr)]},'children':[{'tag':_0x4da7b7(0xe6),'attributes':{'class':[Kr]},'children':[this[_0x4da7b7(0xdd)]]},this[_0x4da7b7(0xe5)]],'on':{'click':_0x2bb5f7['to'](_0x4da7b7(0xd6))}});}[_0x114df1(0xd1)](){const _0x5320a5=_0x114df1;this[_0x5320a5(0xdd)][_0x5320a5(0xef)]=this[_0x5320a5(0xe0)](this[_0x5320a5(0xd3)]);}}function _0x3684(){const _0x19e4cb=['1194130LbEmNF','URL','_createIconView','updateResourceState','content','setTemplate','6jQfknm','render','_setupTemplate','2iOHPcx','3093144WFpAds','isVisible','isInContext','extendTemplate','DOCUMENT','FILE','161992qxcFHS','TEXT','_updateIcon','ck-ai-chat-resources__item-title','resource','set','bindTemplate','execute','_createTitleView','text','ck-ai-chat-resources__item__icon','ck-ai-chat-resources__item','ck-ai-chat-resources__item--in-context','584898ZQBlkz','_iconView','trim','8Mlazfr','getResourceIcon','highlightText','11118920nvkCaw','span','3195999gevpkG','_titleView','div','ck-hidden','type','label','2072462MNhtJt'];_0x3684=function(){return _0x19e4cb;};return _0x3684();}