UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines 4.38 kB
/* * 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 _0x52059b=_0x50f2;(function(_0x4f3cb8,_0x5b7e2c){const _0x19d587=_0x50f2,_0x478660=_0x4f3cb8();while(!![]){try{const _0x5043bb=-parseInt(_0x19d587(0x135))/0x1*(-parseInt(_0x19d587(0x148))/0x2)+parseInt(_0x19d587(0x132))/0x3*(parseInt(_0x19d587(0x13c))/0x4)+-parseInt(_0x19d587(0x13e))/0x5*(-parseInt(_0x19d587(0x12f))/0x6)+parseInt(_0x19d587(0x134))/0x7*(parseInt(_0x19d587(0x14e))/0x8)+parseInt(_0x19d587(0x149))/0x9+parseInt(_0x19d587(0x14b))/0xa+-parseInt(_0x19d587(0x13a))/0xb;if(_0x5043bb===_0x5b7e2c)break;else _0x478660['push'](_0x478660['shift']());}catch(_0x4f15f3){_0x478660['push'](_0x478660['shift']());}}}(_0x56ae,0xac8ba));import{ListView as _0x3eb588}from'ckeditor5/src/ui.js';function _0x50f2(_0x12c1ce,_0x5dd873){const _0x56ae51=_0x56ae();return _0x50f2=function(_0x50f2c6,_0xa0e5c4){_0x50f2c6=_0x50f2c6-0x12f;let _0x4c72e0=_0x56ae51[_0x50f2c6];return _0x4c72e0;},_0x50f2(_0x12c1ce,_0x5dd873);}import{AIChatResourceListItemView as _0x503c9c}from'./aichatresourcelistitemview.js';const oc=_0x52059b(0x138);export class AIChatContextResourcesListView extends _0x3eb588{[_0x52059b(0x136)];constructor(_0xf4732,_0x434157){const _0xe95ce6=_0x52059b;super(_0xf4732),this[_0xe95ce6(0x136)]=_0x434157,this[_0xe95ce6(0x150)]({'attributes':{'class':[oc]}});}[_0x52059b(0x140)](_0x159d68,_0x5c7a52){const _0x27aff0=_0x52059b;this[_0x27aff0(0x137)][_0x27aff0(0x13f)]();let _0x19a1a0=_0x159d68;if(this[_0x27aff0(0x136)][_0x27aff0(0x141)]&&_0x5c7a52&&''!==_0x5c7a52[_0x27aff0(0x14d)]()){const _0x2aa35e=new RegExp(_0x5c7a52[_0x27aff0(0x145)](/[.*+?^${}()|[\]\\]/g,_0x27aff0(0x144)),'gi');_0x19a1a0=_0x159d68[_0x27aff0(0x139)](_0x367511=>_0x2aa35e[_0x27aff0(0x142)](_0x367511[_0x27aff0(0x14a)]));}for(const _0x320d36 of _0x19a1a0){const _0x9d4a18=new _0x503c9c(this[_0x27aff0(0x130)],_0x320d36);_0x9d4a18['on'](_0x27aff0(0x147),()=>{const _0xbdc191=_0x27aff0;this[_0xbdc191(0x14f)](this[_0xbdc191(0x136)],_0x320d36);}),this[_0x27aff0(0x137)][_0x27aff0(0x143)](_0x9d4a18);}this[_0x27aff0(0x136)][_0x27aff0(0x141)]&&this[_0x27aff0(0x146)](_0x5c7a52);}[_0x52059b(0x146)](_0x1a060c){const _0x401db1=_0x52059b;this[_0x401db1(0x136)][_0x401db1(0x141)]&&this[_0x401db1(0x137)][_0x401db1(0x13b)](_0x52ae19=>{const _0x46db71=_0x401db1;_0x52ae19[_0x46db71(0x146)](_0x1a060c);});}[_0x52059b(0x14c)](_0x3af1ab,_0x42e36f){const _0x20ee04=_0x52059b;for(const _0x54cc4b of this[_0x20ee04(0x137)]){const _0x331fbc=_0x54cc4b;_0x331fbc[_0x20ee04(0x131)]['id']===_0x3af1ab&&_0x331fbc[_0x20ee04(0x14c)](_0x42e36f);}}[_0x52059b(0x14f)](_0x542f08,_0x169b29){const _0x5c2fe3=_0x52059b;this[_0x5c2fe3(0x13d)](_0x5c2fe3(0x133),{'source':_0x542f08,'resource':_0x169b29});}}function _0x56ae(){const _0x23111e=['6452pnrYoC','fire','4755920josCxs','clear','setResources','useDefaultFiltering','test','add','\x5c$&','replace','highlightText','execute','46150gDGApB','12493224eMPhWT','label','7186340yrEGMK','updateResourceState','trim','7756872avkdKp','_handleResourceSelection','extendTemplate','6norfHi','locale','resource','567OPvpLz','addResourceToContext','7URDVQp','33tQjKmx','_source','items','ck-ai-chat-resources__list','filter','48258639SXgPNP','forEach'];_0x56ae=function(){return _0x23111e;};return _0x56ae();}