@ckeditor/ckeditor5-ai 47.1.0-alpha.2 → 47.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x5e28f0=_0x5208;(function(_0x5d32d,_0x393aef){const _0x373641=_0x5208,_0x17139d=_0x5d32d();while(!![]){try{const _0x1e012b=parseInt(_0x373641(0x114))/0x1+-parseInt(_0x373641(0x118))/0x2+-parseInt(_0x373641(0x11a))/0x3*(-parseInt(_0x373641(0x126))/0x4)+parseInt(_0x373641(0x119))/0x5+-parseInt(_0x373641(0x11e))/0x6+-parseInt(_0x373641(0x113))/0x7*(parseInt(_0x373641(0x120))/0x8)+parseInt(_0x373641(0x122))/0x9;if(_0x1e012b===_0x393aef)break;else _0x17139d['push'](_0x17139d['shift']());}catch(_0x4c3b8a){_0x17139d['push'](_0x17139d['shift']());}}}(_0x2a90,0xbd4a2));import{ButtonView as _0x406ca3,View as _0x57fe2f}from'ckeditor5/src/ui.js';import{IconStop as _0x5e5ab8}from'ckeditor5/src/icons.js';function _0x5208(_0x3d9c16,_0x39522f){const _0x2a90f0=_0x2a90();return _0x5208=function(_0x520844,_0x497a5f){_0x520844=_0x520844-0x113;let _0x3afa5f=_0x2a90f0[_0x520844];return _0x3afa5f;},_0x5208(_0x3d9c16,_0x39522f);}function _0x2a90(){const _0x3352d3=['setTemplate','4771806wsKYXG','_cancelButtonView','12223608WxylNy','fire','13685274UJsWYv','locale','div','ck-ai-chat-controls-loader-icon-dot','21948QtPOFf','AI_CHAT_IS_WRITING','ck-ai-chat-controls-loader-wrapper','_createLoaderView','ck-reset_all','AI_CHAT_STOP_GENERATING','ck-ai-chat-controls-loader-icon','_createCancelButtonView','_loaderView','7zlgoLP','555823WpRUxI','set','ai-chat-controls-loader__cancel-button','ck-ai-chat-controls-loader','1277048GZKVMJ','7453000ruszId','93mlNjbP','abortPromptStream','execute'];_0x2a90=function(){return _0x3352d3;};return _0x2a90();}import{getTranslation as _0x4a4c28}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x57fe2f{[_0x5e28f0(0x11f)];[_0x5e28f0(0x12e)];constructor(_0x1fc616){const _0x1efd80=_0x5e28f0;super(_0x1fc616),this[_0x1efd80(0x11f)]=this[_0x1efd80(0x12d)](),this[_0x1efd80(0x12e)]=this[_0x1efd80(0x129)](),this[_0x1efd80(0x11d)]({'tag':_0x1efd80(0x124),'attributes':{'class':['ck',_0x1efd80(0x128),_0x1efd80(0x12a)]},'children':[this[_0x1efd80(0x12e)],this[_0x1efd80(0x11f)]]});}[_0x5e28f0(0x12d)](){const _0x100f74=_0x5e28f0,_0x1a910b=new _0x406ca3(this[_0x100f74(0x123)]);return _0x1a910b[_0x100f74(0x115)]({'label':_0x4a4c28(this[_0x100f74(0x123)],_0x100f74(0x12b)),'withText':!0x0,'class':_0x100f74(0x116),'icon':_0x5e5ab8}),_0x1a910b['on'](_0x100f74(0x11c),()=>{const _0x178043=_0x100f74;this[_0x178043(0x121)](_0x178043(0x11b));}),_0x1a910b;}[_0x5e28f0(0x129)](){const _0x23c827=_0x5e28f0,_0x4d497d=new _0x57fe2f(this[_0x23c827(0x123)]);return _0x4d497d[_0x23c827(0x11d)]({'tag':_0x23c827(0x124),'attributes':{'class':[_0x23c827(0x117)]},'children':[{'tag':_0x23c827(0x124),'attributes':{'class':[_0x23c827(0x12c)]},'children':[{'tag':_0x23c827(0x124),'attributes':{'class':[_0x23c827(0x125)]}},{'tag':_0x23c827(0x124),'attributes':{'class':[_0x23c827(0x125)]}},{'tag':_0x23c827(0x124),'attributes':{'class':[_0x23c827(0x125)]}}]},{'text':_0x4a4c28(this[_0x23c827(0x123)],_0x23c827(0x127))}]}),_0x4d497d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x22832d=_0x4fb8;(function(_0x44f5f1,_0x3c0387){const _0x1a0208=_0x4fb8,_0x3241cb=_0x44f5f1();while(!![]){try{const _0x3e2062=-parseInt(_0x1a0208(0x133))/0x1*(-parseInt(_0x1a0208(0x156))/0x2)+-parseInt(_0x1a0208(0x14d))/0x3*(-parseInt(_0x1a0208(0x127))/0x4)+-parseInt(_0x1a0208(0x151))/0x5*(-parseInt(_0x1a0208(0x14f))/0x6)+-parseInt(_0x1a0208(0x160))/0x7*(parseInt(_0x1a0208(0x15e))/0x8)+parseInt(_0x1a0208(0x174))/0x9+parseInt(_0x1a0208(0x148))/0xa+-parseInt(_0x1a0208(0x159))/0xb;if(_0x3e2062===_0x3c0387)break;else _0x3241cb['push'](_0x3241cb['shift']());}catch(_0x4f8b27){_0x3241cb['push'](_0x3241cb['shift']());}}}(_0x1559,0x825a4));import{Collection as _0x164fed}from'ckeditor5/src/utils.js';import{IconAI as _0x357b8f,IconBulb as _0x183dc5,IconWeb as _0xd3011d}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x20e46b,ButtonLabelView as _0x475dd7,ButtonView as _0xd9f665,createDropdown as _0x5c4f80,IconView as _0x3842a4,UIModel as _0x7abe70,View as _0x1cd0ee}from'ckeditor5/src/ui.js';import{getTranslation as _0x302855}from'../../../aicore/utils/common-translations.js';const Mo=_0x22832d(0x115),Io=_0x22832d(0x12f),Do=_0x22832d(0x14c),Wo=_0x22832d(0x135),yo=_0x22832d(0x169),Go=_0x22832d(0x137),jo=_0x22832d(0x153),Yo='n';function _0x4fb8(_0xf55d1,_0x375b2d){const _0x1559bf=_0x1559();return _0x4fb8=function(_0x4fb873,_0x203c05){_0x4fb873=_0x4fb873-0x113;let _0x20453d=_0x1559bf[_0x4fb873];return _0x20453d;},_0x4fb8(_0xf55d1,_0x375b2d);}export class AIChatPromptCapabilitiesView extends _0x1cd0ee{[_0x22832d(0x132)];[_0x22832d(0x152)];[_0x22832d(0x15c)];[_0x22832d(0x136)];[_0x22832d(0x147)];[_0x22832d(0x12b)];constructor(_0x49584f){const _0x1ec49a=_0x22832d;super(_0x49584f),this[_0x1ec49a(0x11f)](_0x1ec49a(0x173),!0x1),this[_0x1ec49a(0x11f)](_0x1ec49a(0x113),!0x1),this[_0x1ec49a(0x11f)](_0x1ec49a(0x155),!0x0),this[_0x1ec49a(0x11f)](_0x1ec49a(0x138),!0x0),this[_0x1ec49a(0x11f)](_0x1ec49a(0x16c),null),this[_0x1ec49a(0x11f)](_0x1ec49a(0x116),null),this[_0x1ec49a(0x136)]=this[_0x1ec49a(0x146)](),this[_0x1ec49a(0x12b)]=this[_0x1ec49a(0x121)](),this[_0x1ec49a(0x132)]=this[_0x1ec49a(0x172)](),this[_0x1ec49a(0x152)]=this[_0x1ec49a(0x162)](),this[_0x1ec49a(0x15c)]=this[_0x1ec49a(0x114)](),this[_0x1ec49a(0x136)][_0x1ec49a(0x12e)][_0x1ec49a(0x14b)](_0x1ec49a(0x158))['to'](this,_0x1ec49a(0x155),_0x535659=>_0x535659),this[_0x1ec49a(0x136)][_0x1ec49a(0x12e)][_0x1ec49a(0x14b)](_0x1ec49a(0x139))['to'](this,_0x1ec49a(0x138),_0x3cf6b3=>_0x3cf6b3?this[_0x1ec49a(0x136)][_0x1ec49a(0x12e)][_0x1ec49a(0x170)]:_0x302855(this[_0x1ec49a(0x144)],_0x1ec49a(0x145))),this[_0x1ec49a(0x136)][_0x1ec49a(0x14b)](_0x1ec49a(0x126))['to'](this,_0x1ec49a(0x138),_0x1d0389=>_0x1d0389),this[_0x1ec49a(0x132)][_0x1ec49a(0x14b)](_0x1ec49a(0x14e))['to'](this,_0x1ec49a(0x173),_0x5315ef=>_0x5315ef),this[_0x1ec49a(0x132)][_0x1ec49a(0x14b)](_0x1ec49a(0x13a))['to'](this,_0x1ec49a(0x155),_0x21330a=>!_0x21330a),this[_0x1ec49a(0x132)][_0x1ec49a(0x14b)](_0x1ec49a(0x139))['to'](this,_0x1ec49a(0x173),_0x375196=>_0x302855(this[_0x1ec49a(0x144)],_0x375196?_0x1ec49a(0x140):_0x1ec49a(0x164))),this[_0x1ec49a(0x152)][_0x1ec49a(0x14b)](_0x1ec49a(0x14e))['to'](this,_0x1ec49a(0x113),_0x299616=>_0x299616),this[_0x1ec49a(0x152)][_0x1ec49a(0x14b)](_0x1ec49a(0x13a))['to'](this,_0x1ec49a(0x155),_0x1afb70=>!_0x1afb70),this[_0x1ec49a(0x152)][_0x1ec49a(0x14b)](_0x1ec49a(0x139))['to'](this,_0x1ec49a(0x113),_0x1b6b46=>_0x302855(this[_0x1ec49a(0x144)],_0x1b6b46?_0x1ec49a(0x16e):_0x1ec49a(0x166))),this[_0x1ec49a(0x16b)]({'tag':_0x1ec49a(0x16a),'attributes':{'class':[Mo]},'children':[this[_0x1ec49a(0x136)],this[_0x1ec49a(0x12b)],this[_0x1ec49a(0x132)],this[_0x1ec49a(0x152)],this[_0x1ec49a(0x15c)]]}),this[_0x1ec49a(0x147)]=new _0x164fed(),_0x20e46b(this[_0x1ec49a(0x136)],this[_0x1ec49a(0x147)]);}[_0x22832d(0x11d)](_0x326422,_0xfc217){const _0x571851=_0x22832d;if(this[_0x571851(0x11f)](_0x571851(0x155),!(_0xfc217&&_0x326422[_0x571851(0x157)]<=0x1)),this[_0x571851(0x147)][_0x571851(0x13d)](),_0x326422?.[_0x571851(0x157)])for(const _0x3d283f of _0x326422){const _0x42191d=new _0x7abe70({'label':_0x3d283f[_0x571851(0x13b)],'withText':!0x0,'role':_0x571851(0x154),'id':_0x3d283f['id'],'model':_0x3d283f});_0x42191d[_0x571851(0x14b)](_0x571851(0x14e))['to'](this,_0x571851(0x16c),_0x6755c5=>_0x6755c5===_0x3d283f['id']),this[_0x571851(0x147)][_0x571851(0x11a)]({'type':_0x571851(0x122),'model':_0x42191d,'labelView':new Hs(this[_0x571851(0x144)],_0x3d283f)});}}[_0x22832d(0x15d)](_0x2e6938){const _0x3129dc=_0x22832d;this[_0x3129dc(0x11f)](_0x3129dc(0x173),_0x2e6938);}[_0x22832d(0x142)](_0x505c4e){const _0x257836=_0x22832d;this[_0x257836(0x11f)](_0x257836(0x113),_0x505c4e);}[_0x22832d(0x118)](_0x3a9deb){const _0x5641e2=_0x22832d;if(!_0x3a9deb)return;this[_0x5641e2(0x16c)]=_0x3a9deb['id'],this[_0x5641e2(0x116)]=_0x3a9deb[_0x5641e2(0x13b)]||_0x3a9deb['id'],this[_0x5641e2(0x136)][_0x5641e2(0x12e)][_0x5641e2(0x11f)](_0x5641e2(0x170),_0x3a9deb[_0x5641e2(0x13b)]),this[_0x5641e2(0x136)][_0x5641e2(0x12e)][_0x5641e2(0x11f)](_0x5641e2(0x139),_0x3a9deb[_0x5641e2(0x13b)]);const _0x4c45fc=_0x3a9deb[_0x5641e2(0x143)][_0x5641e2(0x13f)]?.[_0x5641e2(0x15b)]??!0x1;this[_0x5641e2(0x11f)](_0x5641e2(0x173),!0x1),this[_0x5641e2(0x132)][_0x5641e2(0x11f)](_0x5641e2(0x14e),!0x1),this[_0x5641e2(0x132)][_0x5641e2(0x11f)](_0x5641e2(0x126),_0x4c45fc),this[_0x5641e2(0x132)][_0x5641e2(0x11f)](_0x5641e2(0x158),_0x4c45fc);const _0x4ce542=_0x3a9deb[_0x5641e2(0x143)][_0x5641e2(0x161)]?.[_0x5641e2(0x15b)]??!0x1;this[_0x5641e2(0x11f)](_0x5641e2(0x113),!0x1),this[_0x5641e2(0x152)][_0x5641e2(0x11f)](_0x5641e2(0x14e),!0x1),this[_0x5641e2(0x152)][_0x5641e2(0x11f)](_0x5641e2(0x126),_0x4ce542),this[_0x5641e2(0x152)][_0x5641e2(0x11f)](_0x5641e2(0x158),_0x4ce542);}[_0x22832d(0x12d)](){const _0x10cb5f=_0x22832d;this[_0x10cb5f(0x11f)](_0x10cb5f(0x138),!0x0),this[_0x10cb5f(0x11f)](_0x10cb5f(0x155),!0x0);}[_0x22832d(0x15a)](_0x92f79){const _0x574423=_0x22832d;this[_0x574423(0x11f)](_0x574423(0x138),!0x1),_0x92f79&&this[_0x574423(0x11f)](_0x574423(0x155),!0x1);}[_0x22832d(0x172)](){const _0x9dea3b=_0x22832d,_0x5017da=new _0xd9f665();return _0x5017da[_0x9dea3b(0x11f)]({'label':_0x302855(this[_0x9dea3b(0x144)],_0x9dea3b(0x171)),'icon':_0xd3011d,'class':Io,'isToggleable':!0x0,'tooltipPosition':Yo}),_0x5017da['on'](_0x9dea3b(0x130),()=>{const _0x5878e3=_0x9dea3b;this[_0x5878e3(0x128)](_0x5878e3(0x134));}),_0x5017da;}[_0x22832d(0x162)](){const _0x19a83b=_0x22832d,_0xf3d2bb=new _0xd9f665();return _0xf3d2bb[_0x19a83b(0x11f)]({'label':_0x302855(this[_0x19a83b(0x144)],_0x19a83b(0x176)),'icon':_0x183dc5,'class':Io,'isToggleable':!0x0,'tooltipPosition':Yo}),_0xf3d2bb['on'](_0x19a83b(0x130),()=>{const _0x826883=_0x19a83b;this[_0x826883(0x128)](_0x826883(0x123));}),_0xf3d2bb;}[_0x22832d(0x114)](){const _0x2b1902=_0x22832d,_0x1f10ef=new _0xd9f665();return _0x1f10ef[_0x2b1902(0x11f)]({'label':_0x302855(this[_0x2b1902(0x144)],_0x2b1902(0x117)),'icon':_0x357b8f,'withText':!0x0,'class':Io,'isToggleable':!0x0,'tooltip':_0x302855(this[_0x2b1902(0x144)],_0x2b1902(0x117)),'tooltipPosition':Yo}),_0x1f10ef[_0x2b1902(0x124)]({'attributes':{'class':[Do]}}),_0x1f10ef['on'](_0x2b1902(0x130),()=>{const _0x327611=_0x2b1902;console[_0x327611(0x13e)](_0x327611(0x14a)),alert(_0x327611(0x14a));}),_0x1f10ef;}[_0x22832d(0x146)](){const _0x443990=_0x22832d,_0xe5b7ce=_0x5c4f80(this[_0x443990(0x144)]);return _0xe5b7ce[_0x443990(0x11f)]({'panelPosition':'ne','class':[Wo]}),_0xe5b7ce[_0x443990(0x12e)][_0x443990(0x11f)]({'label':_0x302855(this[_0x443990(0x144)],_0x443990(0x168)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Yo}),this[_0x443990(0x131)](_0xe5b7ce,_0x443990(0x130),_0x10a3f1=>{const _0x2f3b17=_0x443990;this[_0x2f3b17(0x128)](_0x2f3b17(0x16d),_0x10a3f1[_0x2f3b17(0x11b)][_0x2f3b17(0x167)]);}),_0xe5b7ce;}[_0x22832d(0x121)](){const _0x2b025c=_0x22832d,_0x944800=new qo(this[_0x2b025c(0x144)]);return _0x944800[_0x2b025c(0x14b)](_0x2b025c(0x13c))['to'](this,_0x2b025c(0x116),_0x11b1e3=>_0x11b1e3??''),_0x944800[_0x2b025c(0x14b)](_0x2b025c(0x158))['to'](this,_0x2b025c(0x155),this,_0x2b025c(0x116),(_0x2d837c,_0x1e3f90)=>!_0x2d837c&&!_0x1e3f90?.[_0x2b025c(0x16f)]()[_0x2b025c(0x129)](_0x2b025c(0x165))),_0x944800;}}class Hs extends _0x475dd7{constructor(_0x330002,_0xf0471d){const _0x3f701f=_0x22832d;super();const _0x200c9c=this[_0x3f701f(0x120)],_0x5020d5=this[_0x3f701f(0x119)]();this[_0x3f701f(0x16b)]({'tag':_0x3f701f(0x16a),'attributes':{'class':['ck',_0x3f701f(0x15f)],'style':_0x200c9c['to'](_0x3f701f(0x150)),'id':_0x200c9c['to']('id')},'children':[{'tag':_0x3f701f(0x16a),'attributes':{'class':[yo]},'children':[{'text':_0x200c9c['to'](_0x3f701f(0x13c))}]},{'tag':_0x3f701f(0x16a),'attributes':{'class':[Go]},'children':[{'tag':_0x3f701f(0x141),'children':[{'text':_0xf0471d[_0x3f701f(0x12c)]}]}]},{'tag':_0x3f701f(0x16a),'attributes':{'class':[jo]},'children':_0x5020d5}]}),_0x5020d5[_0x3f701f(0x163)](this[_0x3f701f(0x149)](_0x330002,_0xd3011d,_0x3f701f(0x171),_0xf0471d[_0x3f701f(0x143)][_0x3f701f(0x13f)]?.[_0x3f701f(0x15b)]??!0x1)),_0x5020d5[_0x3f701f(0x163)](this[_0x3f701f(0x149)](_0x330002,_0x183dc5,_0x3f701f(0x176),_0xf0471d[_0x3f701f(0x143)][_0x3f701f(0x161)]?.[_0x3f701f(0x15b)]??!0x1));}[_0x22832d(0x149)](_0x361bd8,_0x58c230,_0x4f3691,_0x1cc73d){const _0x13e37a=_0x22832d,_0x396835=new _0x3842a4();_0x396835[_0x13e37a(0x12a)]=_0x58c230;const _0x391797=new _0x1cd0ee(_0x361bd8);_0x391797[_0x13e37a(0x16b)]({'tag':_0x13e37a(0x141),'children':[{'text':_0x302855(_0x361bd8,_0x4f3691)+':\x20'}]});const _0x1e501c=new _0x1cd0ee(_0x361bd8);return _0x1e501c[_0x13e37a(0x16b)]({'tag':_0x13e37a(0x141),'children':[{'text':_0x302855(_0x361bd8,_0x1cc73d?_0x13e37a(0x175):_0x13e37a(0x125))}]}),[_0x396835,_0x391797,_0x1e501c];}}function _0x1559(){const _0x5278f0=['style','5955faDxMH','_reasoningButton','ck-ai-chat-controls__model-selection__item-capabilities','menuitemradio','modelSelectorVisible','2XgVDWQ','length','isVisible','24016432OIIecs','disableModelSelector','enabled','_commandsButton','setWebSearch','1592kHObSV','ck-button__label','7777GEoLIp','reasoning','_createReasoningButton','addMany','AI_CHAT_ENABLE_WEB_SEARCH','agent','AI_CHAT_ENABLE_REASONING','model','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-name','div','setTemplate','activeModelId','selectModel','AI_CHAT_DISABLE_REASONING','toLowerCase','label','AI_CHAT_SEARCH_WEB','_createWebSearchButton','webSearchActive','5515713JJWrGu','AI_CHAT_CAPABILITIES_YES','AI_CHAT_REASONING','reasoningActive','_createCommandsButton','ck-ai-chat__prompt-capabilities','activeModelName','AI_CHAT_COMMANDS','setModel','createCollection','add','source','ck-ai-chat-controls__model-name','setModelList','ck-hidden','set','bindTemplate','_createModelNameView','button','toggleReasoning','extendTemplate','AI_CHAT_CAPABILITIES_NO','isEnabled','274552HfsMaW','fire','startsWith','content','_modelNameView','description','enableModelSelector','buttonView','ck-ai-chat-controls-button','execute','listenTo','_webSearchButton','426830wWZSdm','toggleWebSearch','ck-ai-chat-controls__model-selection','_modelSelectionDropdown','ck-ai-chat-controls__model-selection__item-description','modelSelectorEnabled','tooltip','withText','name','text','clear','log','webSearch','AI_CHAT_DISABLE_WEB_SEARCH','span','setReasoning','capabilities','locale','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_createModelSelectionDropdown','_modelSelectionDropdownItems','2449840Bgwdai','_getCapabilityParts','Commands\x20are\x20not\x20implemented\x20yet.','bind','ck-ai-chat-controls-button--commands','45CPmCEa','isOn','3144JZVSdZ'];_0x1559=function(){return _0x5278f0;};return _0x1559();}class qo extends _0x1cd0ee{constructor(_0x57e073){const _0x1950db=_0x22832d;super(_0x57e073),this[_0x1950db(0x11f)](_0x1950db(0x13c),void 0x0),this[_0x1950db(0x11f)](_0x1950db(0x158),!0x0);const _0x2cae29=this[_0x1950db(0x120)];this[_0x1950db(0x16b)]({'tag':_0x1950db(0x141),'attributes':{'class':['ck',_0x1950db(0x11c),_0x2cae29['if'](_0x1950db(0x158),_0x1950db(0x11e),_0x2a010c=>!_0x2a010c)]},'children':[{'text':_0x2cae29['to'](_0x1950db(0x13c))}]});}}
|
|
23
|
+
const _0xf14791=_0x3341;(function(_0x598d39,_0x3a239a){const _0x4b5768=_0x3341,_0x20cf1e=_0x598d39();while(!![]){try{const _0x266ccb=parseInt(_0x4b5768(0x1b6))/0x1*(-parseInt(_0x4b5768(0x1c8))/0x2)+parseInt(_0x4b5768(0x1af))/0x3+parseInt(_0x4b5768(0x1d5))/0x4*(parseInt(_0x4b5768(0x18b))/0x5)+-parseInt(_0x4b5768(0x199))/0x6+parseInt(_0x4b5768(0x1ce))/0x7+-parseInt(_0x4b5768(0x1a0))/0x8+parseInt(_0x4b5768(0x1b7))/0x9;if(_0x266ccb===_0x3a239a)break;else _0x20cf1e['push'](_0x20cf1e['shift']());}catch(_0x536374){_0x20cf1e['push'](_0x20cf1e['shift']());}}}(_0x2b35,0x765bb));import{Collection as _0x3b0973}from'ckeditor5/src/utils.js';function _0x3341(_0x24a3ca,_0x434abc){const _0x2b35ae=_0x2b35();return _0x3341=function(_0x33411d,_0x5cefd6){_0x33411d=_0x33411d-0x182;let _0x2c6f2e=_0x2b35ae[_0x33411d];return _0x2c6f2e;},_0x3341(_0x24a3ca,_0x434abc);}import{IconAI as _0x41ac4c,IconBulb as _0x4381bc,IconWeb as _0x3d3970}from'@ckeditor/ckeditor5-icons';function _0x2b35(){const _0x2133f9=['5318744WaLSOJ','agent','webSearchActive','ck-ai-chat-controls__model-selection','selectModel','setTemplate','_createModelNameView','toLowerCase','source','execute','AI_CHAT_CAPABILITIES_NO','AI_CHAT_REASONING','enabled','locale','ck-ai-chat-controls__model-name','639684nmXqMB','AI_CHAT_CAPABILITIES_YES','_getCapabilityParts','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','isOn','capabilities','clear','47255DhjSUj','9349362duUEKM','content','span','log','ck-ai-chat-controls__model-selection__item-description','modelSelectorVisible','text','isEnabled','isVisible','add','ck-ai-chat-controls-button','model','disableModelSelector','modelSelectorEnabled','AI_CHAT_DISABLE_WEB_SEARCH','activeModelId','set','34cKpkaz','enableModelSelector','buttonView','AI_CHAT_COMMANDS','addMany','reasoningActive','1987643eyrChO','setWebSearch','_modelNameView','bind','Commands\x20are\x20not\x20implemented\x20yet.','button','createCollection','12AKDoBb','setReasoning','menuitemradio','ck-ai-chat-controls-button--commands','tooltip','ck-ai-chat__prompt-capabilities','_reasoningButton','_createCommandsButton','AI_CHAT_ENABLE_REASONING','activeModelName','fire','_commandsButton','_webSearchButton','webSearch','ck-button__label','withText','div','label','_createReasoningButton','listenTo','AI_CHAT_DISABLE_REASONING','setModelList','_modelSelectionDropdown','AI_CHAT_SEARCH_WEB','1533680pCGVxr','setModel','bindTemplate','description','startsWith','ck-ai-chat-controls__model-selection__item-capabilities','length','extendTemplate','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection__item-name','name','toggleWebSearch','reasoning','ck-hidden','3019380AZECPr','_createWebSearchButton','_createModelSelectionDropdown','toggleReasoning','AI_CHAT_ENABLE_WEB_SEARCH','_modelSelectionDropdownItems','style'];_0x2b35=function(){return _0x2133f9;};return _0x2b35();}import{addListToDropdown as _0x29ab69,ButtonLabelView as _0x43336c,ButtonView as _0x3ee16c,createDropdown as _0x86eec0,IconView as _0x2f04da,UIModel as _0x2eb106,View as _0x5eb136}from'ckeditor5/src/ui.js';import{getTranslation as _0x3aff95}from'../../../aicore/utils/common-translations.js';const Mo=_0xf14791(0x1da),Io=_0xf14791(0x1c1),Do=_0xf14791(0x1d8),Wo=_0xf14791(0x1a3),yo=_0xf14791(0x194),Go=_0xf14791(0x1bb),jo=_0xf14791(0x190),Yo='n';export class AIChatPromptCapabilitiesView extends _0x5eb136{[_0xf14791(0x1e1)];[_0xf14791(0x1db)];[_0xf14791(0x1e0)];[_0xf14791(0x189)];[_0xf14791(0x19e)];[_0xf14791(0x1d0)];constructor(_0x80c055){const _0x3e86be=_0xf14791;super(_0x80c055),this[_0x3e86be(0x1c7)](_0x3e86be(0x1a2),!0x1),this[_0x3e86be(0x1c7)](_0x3e86be(0x1cd),!0x1),this[_0x3e86be(0x1c7)](_0x3e86be(0x1bc),!0x0),this[_0x3e86be(0x1c7)](_0x3e86be(0x1c4),!0x0),this[_0x3e86be(0x1c7)](_0x3e86be(0x1c6),null),this[_0x3e86be(0x1c7)](_0x3e86be(0x1de),null),this[_0x3e86be(0x189)]=this[_0x3e86be(0x19b)](),this[_0x3e86be(0x1d0)]=this[_0x3e86be(0x1a6)](),this[_0x3e86be(0x1e1)]=this[_0x3e86be(0x19a)](),this[_0x3e86be(0x1db)]=this[_0x3e86be(0x185)](),this[_0x3e86be(0x1e0)]=this[_0x3e86be(0x1dc)](),this[_0x3e86be(0x189)][_0x3e86be(0x1ca)][_0x3e86be(0x1d1)](_0x3e86be(0x1bf))['to'](this,_0x3e86be(0x1bc),_0x1eea7a=>_0x1eea7a),this[_0x3e86be(0x189)][_0x3e86be(0x1ca)][_0x3e86be(0x1d1)](_0x3e86be(0x1d9))['to'](this,_0x3e86be(0x1c4),_0xa700c4=>_0xa700c4?this[_0x3e86be(0x189)][_0x3e86be(0x1ca)][_0x3e86be(0x184)]:_0x3aff95(this[_0x3e86be(0x1ad)],_0x3e86be(0x1b2))),this[_0x3e86be(0x189)][_0x3e86be(0x1d1)](_0x3e86be(0x1be))['to'](this,_0x3e86be(0x1c4),_0x2af181=>_0x2af181),this[_0x3e86be(0x1e1)][_0x3e86be(0x1d1)](_0x3e86be(0x1b3))['to'](this,_0x3e86be(0x1a2),_0x4c4e57=>_0x4c4e57),this[_0x3e86be(0x1e1)][_0x3e86be(0x1d1)](_0x3e86be(0x182))['to'](this,_0x3e86be(0x1bc),_0x4e41a5=>!_0x4e41a5),this[_0x3e86be(0x1e1)][_0x3e86be(0x1d1)](_0x3e86be(0x1d9))['to'](this,_0x3e86be(0x1a2),_0x55cf9e=>_0x3aff95(this[_0x3e86be(0x1ad)],_0x55cf9e?_0x3e86be(0x1c5):_0x3e86be(0x19d))),this[_0x3e86be(0x1db)][_0x3e86be(0x1d1)](_0x3e86be(0x1b3))['to'](this,_0x3e86be(0x1cd),_0x1bca31=>_0x1bca31),this[_0x3e86be(0x1db)][_0x3e86be(0x1d1)](_0x3e86be(0x182))['to'](this,_0x3e86be(0x1bc),_0x5983ac=>!_0x5983ac),this[_0x3e86be(0x1db)][_0x3e86be(0x1d1)](_0x3e86be(0x1d9))['to'](this,_0x3e86be(0x1cd),_0x1b627f=>_0x3aff95(this[_0x3e86be(0x1ad)],_0x1b627f?_0x3e86be(0x187):_0x3e86be(0x1dd))),this[_0x3e86be(0x1a5)]({'tag':_0x3e86be(0x183),'attributes':{'class':[Mo]},'children':[this[_0x3e86be(0x189)],this[_0x3e86be(0x1d0)],this[_0x3e86be(0x1e1)],this[_0x3e86be(0x1db)],this[_0x3e86be(0x1e0)]]}),this[_0x3e86be(0x19e)]=new _0x3b0973(),_0x29ab69(this[_0x3e86be(0x189)],this[_0x3e86be(0x19e)]);}[_0xf14791(0x188)](_0x2a564f,_0x2bef19){const _0x2d48fd=_0xf14791;if(this[_0x2d48fd(0x1c7)](_0x2d48fd(0x1bc),!(_0x2bef19&&_0x2a564f[_0x2d48fd(0x191)]<=0x1)),this[_0x2d48fd(0x19e)][_0x2d48fd(0x1b5)](),_0x2a564f?.[_0x2d48fd(0x191)])for(const _0x54c9ab of _0x2a564f){const _0x308978=new _0x2eb106({'label':_0x54c9ab[_0x2d48fd(0x195)],'withText':!0x0,'role':_0x2d48fd(0x1d7),'id':_0x54c9ab['id'],'model':_0x54c9ab});_0x308978[_0x2d48fd(0x1d1)](_0x2d48fd(0x1b3))['to'](this,_0x2d48fd(0x1c6),_0x4bff3a=>_0x4bff3a===_0x54c9ab['id']),this[_0x2d48fd(0x19e)][_0x2d48fd(0x1c0)]({'type':_0x2d48fd(0x1d3),'model':_0x308978,'labelView':new Hs(this[_0x2d48fd(0x1ad)],_0x54c9ab)});}}[_0xf14791(0x1cf)](_0x38ce15){const _0x3bd49c=_0xf14791;this[_0x3bd49c(0x1c7)](_0x3bd49c(0x1a2),_0x38ce15);}[_0xf14791(0x1d6)](_0x1ffe9a){const _0xd7cf7f=_0xf14791;this[_0xd7cf7f(0x1c7)](_0xd7cf7f(0x1cd),_0x1ffe9a);}[_0xf14791(0x18c)](_0x40d8f8){const _0x5053ac=_0xf14791;if(!_0x40d8f8)return;this[_0x5053ac(0x1c6)]=_0x40d8f8['id'],this[_0x5053ac(0x1de)]=_0x40d8f8[_0x5053ac(0x195)]||_0x40d8f8['id'],this[_0x5053ac(0x189)][_0x5053ac(0x1ca)][_0x5053ac(0x1c7)](_0x5053ac(0x184),_0x40d8f8[_0x5053ac(0x195)]),this[_0x5053ac(0x189)][_0x5053ac(0x1ca)][_0x5053ac(0x1c7)](_0x5053ac(0x1d9),_0x40d8f8[_0x5053ac(0x195)]);const _0x3b0b75=_0x40d8f8[_0x5053ac(0x1b4)][_0x5053ac(0x1e2)]?.[_0x5053ac(0x1ac)]??!0x1;this[_0x5053ac(0x1c7)](_0x5053ac(0x1a2),!0x1),this[_0x5053ac(0x1e1)][_0x5053ac(0x1c7)](_0x5053ac(0x1b3),!0x1),this[_0x5053ac(0x1e1)][_0x5053ac(0x1c7)](_0x5053ac(0x1be),_0x3b0b75),this[_0x5053ac(0x1e1)][_0x5053ac(0x1c7)](_0x5053ac(0x1bf),_0x3b0b75);const _0x207f7f=_0x40d8f8[_0x5053ac(0x1b4)][_0x5053ac(0x197)]?.[_0x5053ac(0x1ac)]??!0x1;this[_0x5053ac(0x1c7)](_0x5053ac(0x1cd),!0x1),this[_0x5053ac(0x1db)][_0x5053ac(0x1c7)](_0x5053ac(0x1b3),!0x1),this[_0x5053ac(0x1db)][_0x5053ac(0x1c7)](_0x5053ac(0x1be),_0x207f7f),this[_0x5053ac(0x1db)][_0x5053ac(0x1c7)](_0x5053ac(0x1bf),_0x207f7f);}[_0xf14791(0x1c9)](){const _0xb01296=_0xf14791;this[_0xb01296(0x1c7)](_0xb01296(0x1c4),!0x0),this[_0xb01296(0x1c7)](_0xb01296(0x1bc),!0x0);}[_0xf14791(0x1c3)](_0x3e080c){const _0x4fd030=_0xf14791;this[_0x4fd030(0x1c7)](_0x4fd030(0x1c4),!0x1),_0x3e080c&&this[_0x4fd030(0x1c7)](_0x4fd030(0x1bc),!0x1);}[_0xf14791(0x19a)](){const _0x617edd=_0xf14791,_0x2e9e39=new _0x3ee16c();return _0x2e9e39[_0x617edd(0x1c7)]({'label':_0x3aff95(this[_0x617edd(0x1ad)],_0x617edd(0x18a)),'icon':_0x3d3970,'class':Io,'isToggleable':!0x0,'tooltipPosition':Yo}),_0x2e9e39['on'](_0x617edd(0x1a9),()=>{const _0x51e32d=_0x617edd;this[_0x51e32d(0x1df)](_0x51e32d(0x196));}),_0x2e9e39;}[_0xf14791(0x185)](){const _0x3917d0=_0xf14791,_0x414ef5=new _0x3ee16c();return _0x414ef5[_0x3917d0(0x1c7)]({'label':_0x3aff95(this[_0x3917d0(0x1ad)],_0x3917d0(0x1ab)),'icon':_0x4381bc,'class':Io,'isToggleable':!0x0,'tooltipPosition':Yo}),_0x414ef5['on'](_0x3917d0(0x1a9),()=>{const _0x316e6d=_0x3917d0;this[_0x316e6d(0x1df)](_0x316e6d(0x19c));}),_0x414ef5;}[_0xf14791(0x1dc)](){const _0x3f61e3=_0xf14791,_0x27a44d=new _0x3ee16c();return _0x27a44d[_0x3f61e3(0x1c7)]({'label':_0x3aff95(this[_0x3f61e3(0x1ad)],_0x3f61e3(0x1cb)),'icon':_0x41ac4c,'withText':!0x0,'class':Io,'isToggleable':!0x0,'tooltip':_0x3aff95(this[_0x3f61e3(0x1ad)],_0x3f61e3(0x1cb)),'tooltipPosition':Yo}),_0x27a44d[_0x3f61e3(0x192)]({'attributes':{'class':[Do]}}),_0x27a44d['on'](_0x3f61e3(0x1a9),()=>{const _0xe224ed=_0x3f61e3;console[_0xe224ed(0x1ba)](_0xe224ed(0x1d2)),alert(_0xe224ed(0x1d2));}),_0x27a44d;}[_0xf14791(0x19b)](){const _0x291a11=_0xf14791,_0x2bc0ee=_0x86eec0(this[_0x291a11(0x1ad)]);return _0x2bc0ee[_0x291a11(0x1c7)]({'panelPosition':'ne','class':[Wo]}),_0x2bc0ee[_0x291a11(0x1ca)][_0x291a11(0x1c7)]({'label':_0x3aff95(this[_0x291a11(0x1ad)],_0x291a11(0x193)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Yo}),this[_0x291a11(0x186)](_0x2bc0ee,_0x291a11(0x1a9),_0x4a700=>{const _0x540a28=_0x291a11;this[_0x540a28(0x1df)](_0x540a28(0x1a4),_0x4a700[_0x540a28(0x1a8)][_0x540a28(0x1c2)]);}),_0x2bc0ee;}[_0xf14791(0x1a6)](){const _0x55c4a1=_0xf14791,_0x1abeea=new qo(this[_0x55c4a1(0x1ad)]);return _0x1abeea[_0x55c4a1(0x1d1)](_0x55c4a1(0x1bd))['to'](this,_0x55c4a1(0x1de),_0x3e1f66=>_0x3e1f66??''),_0x1abeea[_0x55c4a1(0x1d1)](_0x55c4a1(0x1bf))['to'](this,_0x55c4a1(0x1bc),this,_0x55c4a1(0x1de),(_0x3b9bfe,_0x4b6656)=>!_0x3b9bfe&&!_0x4b6656?.[_0x55c4a1(0x1a7)]()[_0x55c4a1(0x18f)](_0x55c4a1(0x1a1))),_0x1abeea;}}class Hs extends _0x43336c{constructor(_0x2c621b,_0x314a43){const _0xbf3fb8=_0xf14791;super();const _0x2ae729=this[_0xbf3fb8(0x18d)],_0x2ea0ac=this[_0xbf3fb8(0x1d4)]();this[_0xbf3fb8(0x1a5)]({'tag':_0xbf3fb8(0x183),'attributes':{'class':['ck',_0xbf3fb8(0x1e3)],'style':_0x2ae729['to'](_0xbf3fb8(0x19f)),'id':_0x2ae729['to']('id')},'children':[{'tag':_0xbf3fb8(0x183),'attributes':{'class':[yo]},'children':[{'text':_0x2ae729['to'](_0xbf3fb8(0x1bd))}]},{'tag':_0xbf3fb8(0x183),'attributes':{'class':[Go]},'children':[{'tag':_0xbf3fb8(0x1b9),'children':[{'text':_0x314a43[_0xbf3fb8(0x18e)]}]}]},{'tag':_0xbf3fb8(0x183),'attributes':{'class':[jo]},'children':_0x2ea0ac}]}),_0x2ea0ac[_0xbf3fb8(0x1cc)](this[_0xbf3fb8(0x1b1)](_0x2c621b,_0x3d3970,_0xbf3fb8(0x18a),_0x314a43[_0xbf3fb8(0x1b4)][_0xbf3fb8(0x1e2)]?.[_0xbf3fb8(0x1ac)]??!0x1)),_0x2ea0ac[_0xbf3fb8(0x1cc)](this[_0xbf3fb8(0x1b1)](_0x2c621b,_0x4381bc,_0xbf3fb8(0x1ab),_0x314a43[_0xbf3fb8(0x1b4)][_0xbf3fb8(0x197)]?.[_0xbf3fb8(0x1ac)]??!0x1));}[_0xf14791(0x1b1)](_0x1a5f07,_0x1c0aae,_0x29cba1,_0x25461a){const _0x4a51ae=_0xf14791,_0x4b573e=new _0x2f04da();_0x4b573e[_0x4a51ae(0x1b8)]=_0x1c0aae;const _0x22c575=new _0x5eb136(_0x1a5f07);_0x22c575[_0x4a51ae(0x1a5)]({'tag':_0x4a51ae(0x1b9),'children':[{'text':_0x3aff95(_0x1a5f07,_0x29cba1)+':\x20'}]});const _0xe78776=new _0x5eb136(_0x1a5f07);return _0xe78776[_0x4a51ae(0x1a5)]({'tag':_0x4a51ae(0x1b9),'children':[{'text':_0x3aff95(_0x1a5f07,_0x25461a?_0x4a51ae(0x1b0):_0x4a51ae(0x1aa))}]}),[_0x4b573e,_0x22c575,_0xe78776];}}class qo extends _0x5eb136{constructor(_0x3cf004){const _0x47c8f1=_0xf14791;super(_0x3cf004),this[_0x47c8f1(0x1c7)](_0x47c8f1(0x1bd),void 0x0),this[_0x47c8f1(0x1c7)](_0x47c8f1(0x1bf),!0x0);const _0x493580=this[_0x47c8f1(0x18d)];this[_0x47c8f1(0x1a5)]({'tag':_0x47c8f1(0x1b9),'attributes':{'class':['ck',_0x47c8f1(0x1ae),_0x493580['if'](_0x47c8f1(0x1bf),_0x47c8f1(0x198),_0x39e65a=>!_0x39e65a)]},'children':[{'text':_0x493580['to'](_0x47c8f1(0x1bd))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2377cb=_0x16ef;(function(_0x1496e7,_0x1c17a7){const _0x28029b=_0x16ef,_0x2c6c02=_0x1496e7();while(!![]){try{const _0xde50b7=-parseInt(_0x28029b(0x128))/0x1*(parseInt(_0x28029b(0x13b))/0x2)+-parseInt(_0x28029b(0x113))/0x3+-parseInt(_0x28029b(0x138))/0x4+parseInt(_0x28029b(0x134))/0x5*(parseInt(_0x28029b(0x14a))/0x6)+-parseInt(_0x28029b(0x13f))/0x7*(-parseInt(_0x28029b(0x125))/0x8)+parseInt(_0x28029b(0x150))/0x9*(parseInt(_0x28029b(0x11c))/0xa)+parseInt(_0x28029b(0x14b))/0xb*(parseInt(_0x28029b(0x148))/0xc);if(_0xde50b7===_0x1c17a7)break;else _0x2c6c02['push'](_0x2c6c02['shift']());}catch(_0x23f1ca){_0x2c6c02['push'](_0x2c6c02['shift']());}}}(_0x2214,0xd57b0));import{IconSubmit as _0x420b0a}from'ckeditor5/src/icons.js';function _0x2214(){const _0x54500a=['minRows','413189zUbwzj','_addContextButtonView','ck-ai-chat__prompt-input','uiLanguageDirection','AI_CHAT_PROMPT_EMPTY_ERROR','style','fire','MIN_ROWS','ck-ai-chat__prompt-submit-button','setIsUploadInProgress','add','target','5TFjgNo','keystrokes','calc(','right','2462008pFTvtC','left','queryView','2UTdMbt','sendUserMessage','bind','trim','2842287zRFouV','destroy','hasError','px\x20-\x20var(--ck-spacing-tiny))','fieldWrapperChildren','focusableChildren','excludeScrollbarsAndBorders','maxRows','isEnabled','7635972YNbkoN','value','3644718nlMkiw','11yLNUrz','placeholder','extendTemplate','_createSubmitButton','_queryViewResizeObserver','36NqshzW','isEmpty','update','requestAnimationFrame','window','element','4884231lBZEef','rtl','submit','_setUpAddContextButtonPositioning','locale','enter','errorText','reset','render','1658090YluObS','setPlaceholderText','submitButtonView','set','AI_CHAT_LABEL_SUBMIT','execute','fieldView','MAX_ROWS','isUploadInProgress','32UgEWMS','width'];_0x2214=function(){return _0x54500a;};return _0x2214();}import{ButtonView as _0x26ce51,AutocompleteView as _0x24e19c,createLabeledTextarea as _0x4f75a8}from'ckeditor5/src/ui.js';import{global as _0x5739e6,isVisible as _0x32859f,Rect as _0x4f4349,ResizeObserver as _0x435f9b}from'ckeditor5/src/utils.js';import{getTranslation as _0x5394e3}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x5748a4}from'./aichatpromptsuggestionslistview.js';import{escape as _0x49301e}from'es-toolkit/compat';function _0x16ef(_0x4dad4d,_0x4d4e7d){const _0x221420=_0x2214();return _0x16ef=function(_0x16efd9,_0x66b2f){_0x16efd9=_0x16efd9-0x10f;let _0x2668db=_0x221420[_0x16efd9];return _0x2668db;},_0x16ef(_0x4dad4d,_0x4d4e7d);}export class AIChatPromptInputView extends _0x24e19c{[_0x2377cb(0x11e)];static [_0x2377cb(0x12f)]=0x1;static [_0x2377cb(0x123)]=0xc;[_0x2377cb(0x129)];[_0x2377cb(0x14f)];constructor(_0xc84276,_0x292ada){const _0x4f90d4=_0x2377cb;super(_0xc84276,{'queryView':{'label':'','creator':_0x4f75a8,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x5748a4(_0xc84276),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x4f90d4(0x11f)](_0x4f90d4(0x151),!0x0),this[_0x4f90d4(0x11f)](_0x4f90d4(0x124),!0x1),this[_0x4f90d4(0x129)]=_0x292ada,this[_0x4f90d4(0x14f)]=null,this[_0x4f90d4(0x13a)][_0x4f90d4(0x122)][_0x4f90d4(0x127)]=AIChatPromptInputView[_0x4f90d4(0x12f)],this[_0x4f90d4(0x13a)][_0x4f90d4(0x122)][_0x4f90d4(0x146)]=AIChatPromptInputView[_0x4f90d4(0x123)],this[_0x4f90d4(0x13a)][_0x4f90d4(0x143)][_0x4f90d4(0x132)](this[_0x4f90d4(0x129)]),this[_0x4f90d4(0x116)](),this[_0x4f90d4(0x14d)]({'attributes':{'class':['ck',_0x4f90d4(0x12a)]}}),this[_0x4f90d4(0x11e)]=this[_0x4f90d4(0x14e)](),this[_0x4f90d4(0x11e)][_0x4f90d4(0x13d)](_0x4f90d4(0x147))['to'](this,_0x4f90d4(0x151),this,_0x4f90d4(0x124),(_0x2a7768,_0x1aafcf)=>!_0x2a7768&&!_0x1aafcf),this[_0x4f90d4(0x144)][_0x4f90d4(0x132)](this[_0x4f90d4(0x11e)]);}[_0x2377cb(0x11b)](){const _0x32b25a=_0x2377cb;super[_0x32b25a(0x11b)](),this[_0x32b25a(0x13a)][_0x32b25a(0x143)][_0x32b25a(0x132)](this[_0x32b25a(0x11e)]),this[_0x32b25a(0x135)][_0x32b25a(0x11f)](_0x32b25a(0x118),(_0x554581,_0x3ed4df)=>{const _0x5cfa9d=_0x32b25a;this[_0x5cfa9d(0x124)]||this[_0x5cfa9d(0x151)]||_0x554581[_0x5cfa9d(0x133)]==this[_0x5cfa9d(0x13a)][_0x5cfa9d(0x122)][_0x5cfa9d(0x112)]&&(this[_0x5cfa9d(0x115)](),_0x3ed4df());}),this[_0x32b25a(0x13a)][_0x32b25a(0x122)]['on'](_0x32b25a(0x10f),()=>{const _0x449bb3=_0x32b25a;this[_0x449bb3(0x151)]=''===this[_0x449bb3(0x13a)][_0x449bb3(0x122)][_0x449bb3(0x112)][_0x449bb3(0x149)]?.[_0x449bb3(0x13e)]();});}[_0x2377cb(0x140)](){const _0x349b10=_0x2377cb;super[_0x349b10(0x140)](),this[_0x349b10(0x14f)]&&this[_0x349b10(0x14f)][_0x349b10(0x140)]();}[_0x2377cb(0x115)](){const _0x2d3456=_0x2377cb,_0x4599de=this[_0x2d3456(0x13a)][_0x2d3456(0x122)][_0x2d3456(0x112)][_0x2d3456(0x149)]?.[_0x2d3456(0x13e)]();if(!_0x4599de)return this[_0x2d3456(0x13a)][_0x2d3456(0x119)]=_0x5394e3(this[_0x2d3456(0x117)],_0x2d3456(0x12c)),void(this[_0x2d3456(0x13a)][_0x2d3456(0x122)][_0x2d3456(0x141)]=!0x0);this[_0x2d3456(0x13a)][_0x2d3456(0x122)][_0x2d3456(0x141)]=!0x1;const _0x46d984=_0x49301e(_0x4599de);this[_0x2d3456(0x12e)](_0x2d3456(0x13c),_0x46d984),this[_0x2d3456(0x13a)][_0x2d3456(0x122)][_0x2d3456(0x11a)]();}[_0x2377cb(0x11d)](_0x545d0f){const _0x38e9d4=_0x2377cb;this[_0x38e9d4(0x13a)][_0x38e9d4(0x122)][_0x38e9d4(0x11f)](_0x38e9d4(0x14c),_0x545d0f);}[_0x2377cb(0x14e)](){const _0x55e350=_0x2377cb,_0x23bdd4=new _0x26ce51(this[_0x55e350(0x117)]);return _0x23bdd4[_0x55e350(0x11f)]({'icon':_0x420b0a,'label':_0x5394e3(this[_0x55e350(0x117)],_0x55e350(0x120)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x55e350(0x130),'isEnabled':!0x1}),_0x23bdd4['on'](_0x55e350(0x121),()=>{const _0x1a854d=_0x55e350;this[_0x1a854d(0x115)]();}),_0x23bdd4;}[_0x2377cb(0x131)](_0x1e8802){const _0x27de7c=_0x2377cb;this[_0x27de7c(0x124)]=_0x1e8802;}[_0x2377cb(0x116)](){const _0x54be9a=_0x2377cb,_0xd10bfa=this[_0x54be9a(0x117)],_0x56cedc=()=>{const _0xfde639=_0x54be9a;_0x5739e6[_0xfde639(0x111)][_0xfde639(0x110)](()=>{const _0x1259d6=_0xfde639;if(_0x32859f(this[_0x1259d6(0x112)])){const _0x5de01c=new _0x4f4349(this[_0x1259d6(0x13a)][_0x1259d6(0x122)][_0x1259d6(0x112)]),_0x263edc=new _0x4f4349(this[_0x1259d6(0x129)][_0x1259d6(0x112)]),_0x46bc7f=_0x5de01c[_0x1259d6(0x126)],_0x34faf8=_0x1259d6(0x114)===_0xd10bfa[_0x1259d6(0x12b)]?_0x1259d6(0x137):_0x1259d6(0x139);_0x5de01c[_0x1259d6(0x145)]();const _0x2d488f=_0x46bc7f-_0x5de01c[_0x1259d6(0x126)]+0x1;this[_0x1259d6(0x129)][_0x1259d6(0x112)][_0x1259d6(0x12d)][_0x34faf8]=_0x1259d6(0x136)+(_0x46bc7f-_0x263edc[_0x1259d6(0x126)]-_0x2d488f)+_0x1259d6(0x142);}});};this[_0x54be9a(0x13a)][_0x54be9a(0x122)]['on'](_0x54be9a(0x10f),_0x56cedc),this['on'](_0x54be9a(0x11b),()=>{const _0x19a65c=_0x54be9a;_0x56cedc(),this[_0x19a65c(0x14f)]=new _0x435f9b(this[_0x19a65c(0x13a)][_0x19a65c(0x122)][_0x19a65c(0x112)],()=>{_0x56cedc();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3c2e(_0x4c69a7,_0x5bd15a){const _0x2d5acf=_0x2d5a();return _0x3c2e=function(_0x3c2e5c,_0x43145e){_0x3c2e5c=_0x3c2e5c-0x167;let _0x2bb8b7=_0x2d5acf[_0x3c2e5c];return _0x2bb8b7;},_0x3c2e(_0x4c69a7,_0x5bd15a);}const _0x45a5fe=_0x3c2e;(function(_0x4daf70,_0x1a09ad){const _0x47cb7c=_0x3c2e,_0x199f31=_0x4daf70();while(!![]){try{const _0x52316c=-parseInt(_0x47cb7c(0x16b))/0x1*(parseInt(_0x47cb7c(0x173))/0x2)+parseInt(_0x47cb7c(0x16f))/0x3*(parseInt(_0x47cb7c(0x172))/0x4)+-parseInt(_0x47cb7c(0x171))/0x5+parseInt(_0x47cb7c(0x16d))/0x6+parseInt(_0x47cb7c(0x168))/0x7+-parseInt(_0x47cb7c(0x16e))/0x8+-parseInt(_0x47cb7c(0x170))/0x9*(-parseInt(_0x47cb7c(0x169))/0xa);if(_0x52316c===_0x1a09ad)break;else _0x199f31['push'](_0x199f31['shift']());}catch(_0x2493ca){_0x199f31['push'](_0x199f31['shift']());}}}(_0x2d5a,0x9625e));function _0x2d5a(){const _0x375fcb=['443244EEfbYg','92691gNiZfC','4382630EaFVBO','20LmITZG','2169348kiWExk','length','4451531FutowJ','1230xqSOZz','filter','1YZcSOG','items','3689850IkRyln','5441752TYOIdg'];_0x2d5a=function(){return _0x375fcb;};return _0x2d5a();}import{ListView as _0x2a07e6}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x2a07e6{[_0x45a5fe(0x16a)](){const _0xf591a6=_0x45a5fe;let _0x362c34=0x0;for(const _0xb43956 of this[_0xf591a6(0x16c)])_0x362c34+=_0xb43956[_0xf591a6(0x16c)][_0xf591a6(0x167)];return{'resultsCount':_0x362c34,'totalItemsCount':_0x362c34};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ff345=_0x73b7;(function(_0x49b78d,_0x5a585f){const _0x16c76f=_0x73b7,_0x5c8dae=_0x49b78d();while(!![]){try{const _0x37156f=-parseInt(_0x16c76f(0x106))/0x1*(parseInt(_0x16c76f(0x110))/0x2)+-parseInt(_0x16c76f(0xfe))/0x3+parseInt(_0x16c76f(0x10a))/0x4+parseInt(_0x16c76f(0xf5))/0x5*(parseInt(_0x16c76f(0x101))/0x6)+-parseInt(_0x16c76f(0xf0))/0x7*(parseInt(_0x16c76f(0xe8))/0x8)+-parseInt(_0x16c76f(0xf4))/0x9+parseInt(_0x16c76f(0x103))/0xa;if(_0x37156f===_0x5a585f)break;else _0x5c8dae['push'](_0x5c8dae['shift']());}catch(_0x10b59f){_0x5c8dae['push'](_0x5c8dae['shift']());}}}(_0x50d0,0x2244b));import{HighlightedTextView as _0x244965,IconView as _0x19effa,ListItemView as _0x30674e}from'ckeditor5/src/ui.js';function _0x73b7(_0x5625ff,_0x44f25d){const _0x50d058=_0x50d0();return _0x73b7=function(_0x73b75f,_0x11388f){_0x73b75f=_0x73b75f-0xe6;let _0xc4b5d5=_0x50d058[_0x73b75f];return _0xc4b5d5;},_0x73b7(_0x5625ff,_0x44f25d);}import{escapeRegExp as _0x532b24}from'es-toolkit/compat';import{AIContextItemType as _0x33b69c}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0xa8fe80,IconCheck as _0x45e459,IconDocument as _0xca2425,IconDocumentOutline as _0x528aa1,IconLink as _0x44a079}from'@ckeditor/ckeditor5-icons';function _0x50d0(){const _0x35f8b9=['_createTitleView','7GNAywg','_setupTemplate','_titleView','URL','1819107JYDJQL','208790kYKHTU','isInContext','highlightText','TEXT','execute','_createIconView','type','setTemplate','trim','725208RMjaJd','content','resource','6jwqgWd','set','5895320OBDhOR','ck-ai-chat-resources__item__icon','_iconView','1376hukkQl','extendTemplate','div','render','365288MMlhws','bindTemplate','ck-hidden','FILE','ck-ai-chat-resources__item--in-context','updateResourceState','22ACyRqg','span','_updateIcon','ck-ai-chat-resources__item-title','986032tfmnjy','label','DOCUMENT','ck-ai-chat-resources__item','isVisible','getResourceIcon','text'];_0x50d0=function(){return _0x35f8b9;};return _0x50d0();}const Tr=_0x3ff345(0xeb),qr=_0x3ff345(0x10e),zr=_0x3ff345(0xe7),Br=_0x3ff345(0x104);export class AIChatResourceListItemView extends _0x30674e{[_0x3ff345(0x100)];[_0x3ff345(0xf2)];[_0x3ff345(0x105)];constructor(_0x5aaec8,_0x11bc22){const _0x6722c4=_0x3ff345;super(_0x5aaec8),this[_0x6722c4(0x100)]=_0x11bc22,this[_0x6722c4(0x102)](_0x6722c4(0xf6),!!_0x11bc22[_0x6722c4(0xf6)]),this[_0x6722c4(0xf2)]=this[_0x6722c4(0xef)](),this[_0x6722c4(0x105)]=this[_0x6722c4(0xfa)](),this[_0x6722c4(0xf1)]();}[_0x3ff345(0x109)](){const _0x1a625e=_0x3ff345;super[_0x1a625e(0x109)]();}[_0x3ff345(0xed)](_0x1306ac){const _0x59d4ce=_0x3ff345;if(_0x1306ac[_0x59d4ce(0xf6)])return _0x45e459;switch(_0x1306ac[_0x59d4ce(0xfb)]){case _0x33b69c[_0x59d4ce(0xea)]:return _0xca2425;case _0x33b69c[_0x59d4ce(0xf3)]:return _0x44a079;case _0x33b69c[_0x59d4ce(0x10d)]:case _0x33b69c[_0x59d4ce(0xf8)]:return _0xa8fe80;default:return _0x528aa1;}}[_0x3ff345(0xf7)](_0x46d50d){const _0x441857=_0x3ff345;if(!_0x46d50d||''===_0x46d50d[_0x441857(0xfd)]())return void this[_0x441857(0xf2)][_0x441857(0xf7)](null);const _0xffc4cc=new RegExp(_0x532b24(_0x46d50d),'gi');this[_0x441857(0xf2)][_0x441857(0xf7)](_0xffc4cc);}[_0x3ff345(0x10f)](_0x2343ad){const _0x1e502f=_0x3ff345;this[_0x1e502f(0x100)][_0x1e502f(0xf6)]=_0x2343ad,this[_0x1e502f(0xf6)]=_0x2343ad,this[_0x1e502f(0xe6)]();}[_0x3ff345(0xef)](){const _0x2fc8d6=_0x3ff345,_0x1494cd=new _0x244965();return _0x1494cd[_0x2fc8d6(0xee)]=this[_0x2fc8d6(0x100)][_0x2fc8d6(0xe9)],_0x1494cd[_0x2fc8d6(0x107)]({'tag':_0x2fc8d6(0x111),'attributes':{'class':[zr]}}),_0x1494cd;}[_0x3ff345(0xfa)](){const _0x5133db=_0x3ff345,_0x4dfc07=new _0x19effa();return _0x4dfc07[_0x5133db(0xff)]=this[_0x5133db(0xed)](this[_0x5133db(0x100)]),_0x4dfc07;}[_0x3ff345(0xf1)](){const _0x99caa2=_0x3ff345,_0x3d49c3=this[_0x99caa2(0x10b)];this[_0x99caa2(0xfc)]({'tag':_0x99caa2(0x108),'attributes':{'class':[Tr,_0x3d49c3['if'](_0x99caa2(0xec),_0x99caa2(0x10c),_0x42d497=>!_0x42d497),_0x3d49c3['if'](_0x99caa2(0xf6),qr)]},'children':[{'tag':_0x99caa2(0x108),'attributes':{'class':[Br]},'children':[this[_0x99caa2(0x105)]]},this[_0x99caa2(0xf2)]],'on':{'click':_0x3d49c3['to'](_0x99caa2(0xf9))}});}[_0x3ff345(0xe6)](){const _0x2c13cd=_0x3ff345;this[_0x2c13cd(0x105)][_0x2c13cd(0xff)]=this[_0x2c13cd(0xed)](this[_0x2c13cd(0x100)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x411dc6=_0x2202;(function(_0x166234,_0x4c4584){const _0x492306=_0x2202,_0x4c24a8=_0x166234();while(!![]){try{const _0x3740f6=-parseInt(_0x492306(0x9b))/0x1*(-parseInt(_0x492306(0x7b))/0x2)+-parseInt(_0x492306(0x85))/0x3+-parseInt(_0x492306(0x7f))/0x4*(-parseInt(_0x492306(0x9f))/0x5)+parseInt(_0x492306(0x81))/0x6*(-parseInt(_0x492306(0x6e))/0x7)+-parseInt(_0x492306(0x89))/0x8*(-parseInt(_0x492306(0x82))/0x9)+parseInt(_0x492306(0x91))/0xa*(parseInt(_0x492306(0x75))/0xb)+parseInt(_0x492306(0x90))/0xc;if(_0x3740f6===_0x4c4584)break;else _0x4c24a8['push'](_0x4c24a8['shift']());}catch(_0x3f593e){_0x4c24a8['push'](_0x4c24a8['shift']());}}}(_0x683d,0x53077));import{BalloonPanelView as _0x5b94b8,ButtonView as _0x220a83,clickOutsideHandler as _0x18d836,FormHeaderView as _0x1e905a}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x4d9d62}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4d496d}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x35bc87}from'./aichatresourcesview.js';const Zo=_0x411dc6(0x69),Or=_0x411dc6(0x80),Hr=_0x411dc6(0x97);function _0x2202(_0x3eca81,_0x4c99da){const _0x683d62=_0x683d();return _0x2202=function(_0x2202ad,_0x554ec5){_0x2202ad=_0x2202ad-0x64;let _0x5a1d7a=_0x683d62[_0x2202ad];return _0x5a1d7a;},_0x2202(_0x3eca81,_0x4c99da);}export class AIChatResourcesBalloonView{[_0x411dc6(0x8c)]=new Map();[_0x411dc6(0x84)];[_0x411dc6(0x67)];[_0x411dc6(0x70)];constructor(_0x4e5ba2,_0xcf14e2,_0x41245d){const _0x184bd8=_0x411dc6;this[_0x184bd8(0x67)]=_0x4e5ba2,this[_0x184bd8(0x84)]=_0xcf14e2,this[_0x184bd8(0x70)]=_0x41245d;}[_0x411dc6(0x6f)](_0x22379e){const _0x242b5d=_0x411dc6;let _0x52810e=this[_0x242b5d(0x8c)][_0x242b5d(0x88)](_0x22379e['id']);_0x52810e||(_0x52810e=this[_0x242b5d(0x8f)](),this[_0x242b5d(0x8c)][_0x242b5d(0x9e)](_0x22379e['id'],_0x52810e),this[_0x242b5d(0x7a)](_0x52810e)),this[_0x242b5d(0x83)](_0x52810e,_0x22379e),_0x52810e[_0x242b5d(0x6d)]();const _0x1d88ab=this[_0x242b5d(0x70)][_0x242b5d(0x7c)]();_0x1d88ab&&_0x52810e[_0x242b5d(0x79)]({'target':_0x1d88ab,'limiter':this[_0x242b5d(0x70)][_0x242b5d(0x95)]()});}[_0x411dc6(0x77)](_0x3207bf,_0x10d69b,_0x9435ec){const _0x475704=_0x411dc6,_0x1c2162=this[_0x475704(0x8c)][_0x475704(0x88)](_0x3207bf);if(!_0x1c2162)return;const _0x88f401=this[_0x475704(0x8b)](_0x1c2162);_0x88f401&&_0x88f401[_0x475704(0x8a)](_0x10d69b,_0x9435ec);}[_0x411dc6(0x86)](_0x1fc586){const _0x24eb07=_0x411dc6,_0x132cc0=this[_0x24eb07(0x8c)][_0x24eb07(0x88)](_0x1fc586);_0x132cc0&&requestAnimationFrame(()=>{const _0x158cd6=_0x24eb07;_0x132cc0[_0x158cd6(0x6b)](),this[_0x158cd6(0x8c)][_0x158cd6(0x64)](_0x1fc586),this[_0x158cd6(0x70)][_0x158cd6(0x73)]();});}[_0x411dc6(0x6a)](){const _0x52c748=_0x411dc6;for(const _0x125dc8 of this[_0x52c748(0x8c)][_0x52c748(0x9a)]())if(_0x125dc8[_0x52c748(0x94)])return!0x0;return!0x1;}[_0x411dc6(0x92)](_0x5cc853,_0x415f7c,_0x690f4){const _0x2b997e=_0x411dc6,_0x3161e3=this[_0x2b997e(0x8c)][_0x2b997e(0x88)](_0x5cc853);if(!_0x3161e3||!_0x3161e3[_0x2b997e(0x94)])return;const _0x3d8944=this[_0x2b997e(0x70)][_0x2b997e(0x7c)]();if(!_0x3d8944)return;_0x3161e3[_0x2b997e(0x79)]({'target':_0x3d8944,'limiter':this[_0x2b997e(0x70)][_0x2b997e(0x95)]()});const _0x157561=this[_0x2b997e(0x8b)](_0x3161e3);_0x157561&&_0x157561[_0x2b997e(0x92)](_0x415f7c,_0x690f4);}[_0x411dc6(0x68)](){const _0x27847c=_0x411dc6;for(const _0x6855df of this[_0x27847c(0x8c)][_0x27847c(0x9a)]())_0x6855df[_0x27847c(0x68)]();this[_0x27847c(0x8c)][_0x27847c(0x78)]();}[_0x411dc6(0x8f)](){const _0x3bc88c=_0x411dc6,_0x22030d=new _0x5b94b8(this[_0x3bc88c(0x67)]);return _0x22030d[_0x3bc88c(0x6c)]({'attributes':{'class':Zo}}),this[_0x3bc88c(0x84)][_0x3bc88c(0x66)](_0x22030d),_0x22030d;}[_0x411dc6(0x83)](_0x18ee1f,_0x255193){const _0x26a2aa=_0x411dc6;_0x18ee1f[_0x26a2aa(0x8e)][_0x26a2aa(0x78)]();const _0xd6a1a2=this[_0x26a2aa(0x93)](_0x18ee1f,_0x255193);_0x18ee1f[_0x26a2aa(0x8e)][_0x26a2aa(0x66)](_0xd6a1a2);const _0x4ae5b7=this[_0x26a2aa(0x9d)](_0x255193);_0x18ee1f[_0x26a2aa(0x8e)][_0x26a2aa(0x66)](_0x4ae5b7);}[_0x411dc6(0x93)](_0x2c4171,_0x5d448f){const _0xaf8d65=_0x411dc6,_0x479f82=this[_0xaf8d65(0x9c)](_0x2c4171),_0x2a21c2=new _0x1e905a(this[_0xaf8d65(0x67)],{'label':_0x5d448f[_0xaf8d65(0x98)],'class':Hr});return _0x2a21c2[_0xaf8d65(0x7e)][_0xaf8d65(0x66)](_0x479f82,0x0),_0x2a21c2;}[_0x411dc6(0x9c)](_0x38aa48){const _0x1a2514=_0x411dc6,_0x1522ed=new _0x220a83(this[_0x1a2514(0x67)]);return _0x1522ed[_0x1a2514(0x9e)]({'icon':_0x4d9d62,'tooltip':_0x4d496d(this[_0x1a2514(0x67)],_0x1a2514(0x71)),'tooltipPosition':'n','class':Or}),_0x1522ed['on'](_0x1a2514(0x96),()=>{const _0x490698=_0x1a2514;_0x38aa48[_0x490698(0x6b)](),this[_0x490698(0x70)][_0x490698(0x65)]();}),_0x1522ed;}[_0x411dc6(0x9d)](_0x1c20ad){const _0x2cb7f8=_0x411dc6,_0x5cbbfe=new _0x35bc87(this[_0x2cb7f8(0x67)],_0x1c20ad);return _0x5cbbfe['on'](_0x2cb7f8(0x99),(_0x2aa4cd,_0x144c66)=>{const _0x2f1dda=_0x2cb7f8;this[_0x2f1dda(0x70)][_0x2f1dda(0x76)](_0x144c66);}),_0x5cbbfe['on'](_0x2cb7f8(0x72),(_0x1b6e37,_0x50988a)=>{const _0x14be4b=_0x2cb7f8;this[_0x14be4b(0x70)][_0x14be4b(0x74)](_0x50988a[_0x14be4b(0x7d)],_0x50988a[_0x14be4b(0x87)]),this[_0x14be4b(0x86)](_0x1c20ad['id']);}),_0x5cbbfe;}[_0x411dc6(0x8b)](_0x22502d){const _0x12194f=_0x411dc6,_0x41485f=_0x22502d[_0x12194f(0x8e)][_0x12194f(0x88)](0x1);return _0x41485f instanceof _0x35bc87?_0x41485f:null;}[_0x411dc6(0x7a)](_0x13c380){const _0xfd2666=_0x411dc6;_0x18d836({'emitter':_0x13c380,'contextElements':[_0x13c380[_0xfd2666(0x8d)]],'callback':()=>{const _0x1910b5=_0xfd2666;_0x13c380[_0x1910b5(0x6b)](),this[_0x1910b5(0x70)][_0x1910b5(0x73)]();},'activator':()=>_0x13c380[_0xfd2666(0x94)]});}}function _0x683d(){const _0x2f3843=['delete','onBackToContext','add','_locale','destroy','ck-ai-chat-context-controls__source-balloon-panel','isAnyResourceBalloonVisible','hide','extendTemplate','show','382067YOTnfb','showSourceResourcesBalloon','_config','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','addResourceToContext','onBalloonClosed','onResourceSelected','187NdpUot','onLoadSourceResources','populateSourceResourceBalloon','clear','pin','_setupSingleResourceBalloonClickOutsideHandler','26PWvivd','getTargetElement','source','children','143680ZoXycH','ck-button-icon\x20ck-button-back','48kewwcw','695619ssbRMy','_addSourceResourceContent','_bodyCollection','1325613rqSTkG','closeSourceResourceBalloon','resource','get','24gFXDJe','setResources','_getResourcesViewFromBalloon','_sourceResourceBalloons','element','content','_createSourceResourceBalloonPanel','6082668DgBEXg','238550hylOhE','updateResourceState','_createBalloonHeader','isVisible','getLimiterElement','execute','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','label','loadSourceResources','values','2953DQUmdn','_createBackButton','_createBalloonResourcesView','set','5XdJHzy'];_0x683d=function(){return _0x2f3843;};return _0x683d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1202(_0x495832,_0xb5a1a0){const _0x2e78b0=_0x2e78();return _0x1202=function(_0x1202fb,_0x3d6368){_0x1202fb=_0x1202fb-0x148;let _0x25f0ba=_0x2e78b0[_0x1202fb];return _0x25f0ba;},_0x1202(_0x495832,_0xb5a1a0);}function _0x2e78(){const _0x15d0dd=['trim','253020CAGRHF','label','_source','3092MACdJh','17619SRIOuO','3327849DcLpxI','replace','test','\x5c$&','updateResourceState','clear','2170729GdgXqq','add','useDefaultFiltering','items','addResourceToContext','highlightText','execute','setResources','fire','extendTemplate','filter','2585540HbltYz','2862654fhvDZR','70NkEDsM','ck-ai-chat-resources__list','804FXFufd','forEach','_handleResourceSelection','resource','4HwQbmn','locale','824ulkPWt'];_0x2e78=function(){return _0x15d0dd;};return _0x2e78();}const _0x21bd82=_0x1202;(function(_0x5baf94,_0x5177a1){const _0x211051=_0x1202,_0x1401b3=_0x5baf94();while(!![]){try{const _0x35f5dd=-parseInt(_0x211051(0x158))/0x1+-parseInt(_0x211051(0x15b))/0x2*(-parseInt(_0x211051(0x150))/0x3)+parseInt(_0x211051(0x154))/0x4*(-parseInt(_0x211051(0x14c))/0x5)+-parseInt(_0x211051(0x14d))/0x6+parseInt(_0x211051(0x15c))/0x7*(parseInt(_0x211051(0x156))/0x8)+-parseInt(_0x211051(0x15d))/0x9+parseInt(_0x211051(0x14e))/0xa*(parseInt(_0x211051(0x163))/0xb);if(_0x35f5dd===_0x5177a1)break;else _0x1401b3['push'](_0x1401b3['shift']());}catch(_0x5ef1b5){_0x1401b3['push'](_0x1401b3['shift']());}}}(_0x2e78,0x6aec2));import{ListView as _0x3b240e}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x31a0b5}from'./aichatresourcelistitemview.js';const sc=_0x21bd82(0x14f);export class AIChatContextResourcesListView extends _0x3b240e{[_0x21bd82(0x15a)];constructor(_0x1f8b96,_0x43af90){const _0x1827f4=_0x21bd82;super(_0x1f8b96),this[_0x1827f4(0x15a)]=_0x43af90,this[_0x1827f4(0x14a)]({'attributes':{'class':[sc]}});}[_0x21bd82(0x148)](_0x443c19,_0x59e3ee){const _0x4f05f4=_0x21bd82;this[_0x4f05f4(0x166)][_0x4f05f4(0x162)]();let _0x40e129=_0x443c19;if(this[_0x4f05f4(0x15a)][_0x4f05f4(0x165)]&&_0x59e3ee&&''!==_0x59e3ee[_0x4f05f4(0x157)]()){const _0x4ae3ea=new RegExp(_0x59e3ee[_0x4f05f4(0x15e)](/[.*+?^${}()|[\]\\]/g,_0x4f05f4(0x160)),'gi');_0x40e129=_0x443c19[_0x4f05f4(0x14b)](_0x257430=>_0x4ae3ea[_0x4f05f4(0x15f)](_0x257430[_0x4f05f4(0x159)]));}for(const _0x222175 of _0x40e129){const _0xe2364f=new _0x31a0b5(this[_0x4f05f4(0x155)],_0x222175);_0xe2364f['on'](_0x4f05f4(0x169),()=>{const _0x503758=_0x4f05f4;this[_0x503758(0x152)](this[_0x503758(0x15a)],_0x222175);}),this[_0x4f05f4(0x166)][_0x4f05f4(0x164)](_0xe2364f);}this[_0x4f05f4(0x15a)][_0x4f05f4(0x165)]&&this[_0x4f05f4(0x168)](_0x59e3ee);}[_0x21bd82(0x168)](_0x20a8af){const _0x2427c3=_0x21bd82;this[_0x2427c3(0x15a)][_0x2427c3(0x165)]&&this[_0x2427c3(0x166)][_0x2427c3(0x151)](_0x5e8a83=>{const _0x35db0a=_0x2427c3;_0x5e8a83[_0x35db0a(0x168)](_0x20a8af);});}[_0x21bd82(0x161)](_0x181ec2,_0x37a991){const _0x28bda3=_0x21bd82;for(const _0x2c5b44 of this[_0x28bda3(0x166)]){const _0x21eda5=_0x2c5b44;_0x21eda5[_0x28bda3(0x153)]['id']===_0x181ec2&&_0x21eda5[_0x28bda3(0x161)](_0x37a991);}}[_0x21bd82(0x152)](_0xe8168f,_0x1f1978){const _0x24f7e1=_0x21bd82;this[_0x24f7e1(0x149)](_0x24f7e1(0x167),{'source':_0xe8168f,'resource':_0x1f1978});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x4e98e0,IconView as _0x8f712f,LabeledFieldView as _0x3dd43b,createLabeledInputText as th}from'ckeditor5/src/ui.js';import{IconLoupe as _0x193b88,IconCancel as _0xd1324f}from'ckeditor5/src/icons.js';import{getTranslation as _0x38266a}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x3dd43b{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x5c51c3){const t=_0x5c51c3['t'],_0x4cbdd5={'showResetButton':!0x0,'showIcon':!0x0,'creator':th,'label':_0x38266a(_0x5c51c3,'AI_CHAT_SEARCH_RESOURCES')};super(_0x5c51c3,_0x4cbdd5['creator']),this['label']=_0x4cbdd5['label'],this['_viewConfig']=_0x4cbdd5,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x5c51c3,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x2c3abf){this['fire']('search',_0x2c3abf);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x8f712f(),this['iconView']['content']=_0x193b88,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0xea0fd7,t){this['resetButtonView']=new _0x4e98e0(_0xea0fd7),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0xd1324f,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x2f847a=>!_0x2f847a),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a1bd0=_0x5c61;(function(_0x2f88e0,_0x13f91e){const _0x848978=_0x5c61,_0xc04d45=_0x2f88e0();while(!![]){try{const _0x5179c6=-parseInt(_0x848978(0x10e))/0x1*(parseInt(_0x848978(0x108))/0x2)+parseInt(_0x848978(0x10a))/0x3*(-parseInt(_0x848978(0x101))/0x4)+-parseInt(_0x848978(0xf9))/0x5*(parseInt(_0x848978(0xf7))/0x6)+parseInt(_0x848978(0xff))/0x7+parseInt(_0x848978(0x116))/0x8+parseInt(_0x848978(0x113))/0x9*(-parseInt(_0x848978(0x11f))/0xa)+-parseInt(_0x848978(0x121))/0xb*(-parseInt(_0x848978(0x107))/0xc);if(_0x5179c6===_0x13f91e)break;else _0xc04d45['push'](_0xc04d45['shift']());}catch(_0x293d57){_0xc04d45['push'](_0xc04d45['shift']());}}}(_0x5a4c,0x93735));import{View as _0x1b0069,ViewCollection as _0x46581e}from'ckeditor5/src/ui.js';import{uid as _0x4523dc}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x2f8f30}from'./aichatresourceslistview.js';function _0x5a4c(){const _0x306747=['5323654FUbDIO','ck\x20ck-search','2300588bSgQaz','useDefaultFiltering','ck-ai-chat-resources','_createResourcesListView','_createSkeletonView','delegate','72TRISur','2uIjBvb','children','3FcnxTU','bindTemplate','addResourceToContext','locale','403475qpuLqB','isLoading','ck-hidden','_searchView','render','81YjjvuB','_source','loadSourceResources','1627320zIasCI','_latestLoadResourcesUid','getQuery','_skeletonLoader','_createSearchSection','setResources','search','div','extendTemplate','1181930aKMdCU','set','3190693moZESo','aiChatResources','_resourcesListView','18eVfaoT','fire','96665GUQArP','updateResourceState','setTemplate','_createSearchView','highlightText','loadResources'];_0x5a4c=function(){return _0x306747;};return _0x5a4c();}import{AIChatContextResourcesSearchInputView as _0x19e95d}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x5ca112,SKELETON_DEFINITIONS as _0x59a59a}from'../../../../aicore/ui/aiskeleton.js';function _0x5c61(_0x29530d,_0x28ce5){const _0x5a4c24=_0x5a4c();return _0x5c61=function(_0x5c6131,_0x40fd3f){_0x5c6131=_0x5c6131-0xf7;let _0xf7f229=_0x5a4c24[_0x5c6131];return _0xf7f229;},_0x5c61(_0x29530d,_0x28ce5);}export class AIChatContextResourcesView extends _0x1b0069{[_0x4a1bd0(0x111)];[_0x4a1bd0(0x123)];[_0x4a1bd0(0x119)];[_0x4a1bd0(0x114)];[_0x4a1bd0(0x109)];[_0x4a1bd0(0x117)]=null;constructor(_0x59239c,_0x25f022){const _0xcfcb49=_0x4a1bd0;super(_0x59239c),this[_0xcfcb49(0x114)]=_0x25f022,this[_0xcfcb49(0x120)](_0xcfcb49(0x10f),!0x0),this[_0xcfcb49(0x111)]=this[_0xcfcb49(0xfc)]();const _0x2f1adc=this[_0xcfcb49(0x11a)]();this[_0xcfcb49(0x123)]=this[_0xcfcb49(0x104)](),this[_0xcfcb49(0x119)]=this[_0xcfcb49(0x105)](),this[_0xcfcb49(0x109)]=new _0x46581e([_0x2f1adc,this[_0xcfcb49(0x119)],this[_0xcfcb49(0x123)]]),this[_0xcfcb49(0xfb)]({'tag':_0xcfcb49(0x11d),'attributes':{'class':_0xcfcb49(0x103)},'children':this[_0xcfcb49(0x109)]});}[_0x4a1bd0(0xfc)](){const _0x4f27ff=_0x4a1bd0;return new _0x19e95d(this[_0x4f27ff(0x10d)]);}[_0x4a1bd0(0x11a)](){const _0x4d9767=_0x4a1bd0,_0x370b2d=new _0x1b0069(this[_0x4d9767(0x10d)]);return _0x370b2d[_0x4d9767(0xfb)]({'tag':_0x4d9767(0x11d),'attributes':{'class':_0x4d9767(0x100)},'children':[this[_0x4d9767(0x111)]]}),this[_0x4d9767(0x111)]['on'](_0x4d9767(0x11c),(_0x52cde3,_0x586d7d)=>{const _0x502793=_0x4d9767;this[_0x502793(0xfe)](_0x586d7d),this[_0x502793(0x114)][_0x502793(0x102)]&&this[_0x502793(0x123)][_0x502793(0xfd)](_0x586d7d);}),_0x370b2d;}[_0x4a1bd0(0x104)](){const _0x4b0b99=_0x4a1bd0,_0x5e17f7=new _0x2f8f30(this[_0x4b0b99(0x10d)],this[_0x4b0b99(0x114)]);return _0x5e17f7[_0x4b0b99(0x106)](_0x4b0b99(0x10c))['to'](this),_0x5e17f7[_0x4b0b99(0x11e)]({'attributes':{'class':this[_0x4b0b99(0x10b)]['if'](_0x4b0b99(0x10f),_0x4b0b99(0x110))}}),_0x5e17f7;}[_0x4a1bd0(0x105)](){const _0xbf7ed4=_0x4a1bd0,_0x32b539=new _0x5ca112(this[_0xbf7ed4(0x10d)],_0x59a59a[_0xbf7ed4(0x122)]);return _0x32b539[_0xbf7ed4(0x11e)]({'attributes':{'class':[this[_0xbf7ed4(0x10b)]['if'](_0xbf7ed4(0x10f),_0xbf7ed4(0x110),_0x7c331=>!_0x7c331)]}}),_0x32b539;}[_0x4a1bd0(0x112)](){const _0x461fc1=_0x4a1bd0;super[_0x461fc1(0x112)](),this[_0x461fc1(0xfe)]('');}[_0x4a1bd0(0xfe)](_0x3d0260){const _0xa69a4e=_0x4a1bd0,_0x28d6b3=_0x4523dc();this[_0xa69a4e(0x117)]=_0x28d6b3,this[_0xa69a4e(0xf8)](_0xa69a4e(0x115),{'sourceId':this[_0xa69a4e(0x114)]['id'],'query':_0x3d0260,'uid':_0x28d6b3}),this[_0xa69a4e(0x10f)]=!0x0;}[_0x4a1bd0(0x11b)](_0x35d1d4,_0x311fa7){const _0x10d3ec=_0x4a1bd0;if(_0x311fa7&&_0x311fa7!==this[_0x10d3ec(0x117)])return;const _0x3f9108=this[_0x10d3ec(0x114)][_0x10d3ec(0x102)]?this[_0x10d3ec(0x111)][_0x10d3ec(0x118)]():'';this[_0x10d3ec(0x123)][_0x10d3ec(0x11b)](_0x35d1d4,_0x3f9108),requestAnimationFrame(()=>{const _0x3da54f=_0x10d3ec;this[_0x3da54f(0x10f)]=!0x1;});}[_0x4a1bd0(0xfa)](_0x365edb,_0x278112){const _0x5a0367=_0x4a1bd0;this[_0x5a0367(0x123)][_0x5a0367(0xfa)](_0x365edb,_0x278112);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14e8d3=_0xff9e;(function(_0x4a1625,_0x4214b4){const _0x399688=_0xff9e,_0x475e29=_0x4a1625();while(!![]){try{const _0x73c0df=parseInt(_0x399688(0x15a))/0x1+-parseInt(_0x399688(0x15d))/0x2*(parseInt(_0x399688(0x159))/0x3)+parseInt(_0x399688(0x167))/0x4+parseInt(_0x399688(0x153))/0x5*(parseInt(_0x399688(0x14a))/0x6)+parseInt(_0x399688(0x14c))/0x7*(-parseInt(_0x399688(0x15c))/0x8)+parseInt(_0x399688(0x155))/0x9*(-parseInt(_0x399688(0x151))/0xa)+-parseInt(_0x399688(0x15f))/0xb*(parseInt(_0x399688(0x154))/0xc);if(_0x73c0df===_0x4214b4)break;else _0x475e29['push'](_0x475e29['shift']());}catch(_0x589f83){_0x475e29['push'](_0x475e29['shift']());}}}(_0x2d32,0xb6709));function _0x2d32(){const _0x1adb59=['setContainerElement','213xLBiKm','1049706mMUcHA','element','200624lhIUqT','1286KHdjFf','ck-reset_all','66979IphKbF','querySelector','createCollection','_contextChips','render','_overflowManager','ck-ai-chat-context-chips-wrapper','ck-ai-chat-context-chips-wrapper-balloon','4261960IUmMdB','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat__feed__context-chips','ck-ai-chat-controls-button','add','348288FrUkRQ','_bodyCollection','175RGGvQl','reorganizeChips','div','setTemplate','locale','375980NQebQA','destroy','125mUZbgv','4008rPuGld','27lZQPVl','_createContextChips','ck-ai-chat-controls_context_show-more-button'];_0x2d32=function(){return _0x1adb59;};return _0x2d32();}import{View as _0x469e4a}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x4cba56}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x2f3a4d}from'../controls/aichatchipsoverflowmanager.js';function _0xff9e(_0x3e40bd,_0x3cd695){const _0x2d32b1=_0x2d32();return _0xff9e=function(_0xff9edc,_0x3450c6){_0xff9edc=_0xff9edc-0x14a;let _0x5913ef=_0x2d32b1[_0xff9edc];return _0x5913ef;},_0xff9e(_0x3e40bd,_0x3cd695);}const Fo=_0x14e8d3(0x169),$o=_0x14e8d3(0x165),zo=_0x14e8d3(0x166),Io=_0x14e8d3(0x16a),Ro=_0x14e8d3(0x157),Uo=_0x14e8d3(0x168);export class AIChatFeedContextChipsView extends _0x469e4a{[_0x14e8d3(0x162)]=this[_0x14e8d3(0x161)]();[_0x14e8d3(0x164)];[_0x14e8d3(0x14b)];constructor(_0x23ce81,_0x1bd131,_0x8c0a32){const _0x2dbfc2=_0x14e8d3;super(_0x23ce81),this[_0x2dbfc2(0x14b)]=_0x8c0a32,this[_0x2dbfc2(0x156)](_0x1bd131);const _0x78b420={'cssClasses':{'showMoreButton':Ro,'showMoreBalloon':Uo,'overflowContainer':zo,'controlsButton':Io}};this[_0x2dbfc2(0x164)]=new _0x2f3a4d(_0x23ce81,this[_0x2dbfc2(0x162)],_0x78b420,this[_0x2dbfc2(0x14b)],this),this[_0x2dbfc2(0x14f)]({'tag':_0x2dbfc2(0x14e),'attributes':{'class':[Fo,'ck',_0x2dbfc2(0x15e)]},'children':[{'tag':_0x2dbfc2(0x14e),'attributes':{'class':$o},'children':this[_0x2dbfc2(0x162)]}]});}[_0x14e8d3(0x163)](){const _0x8ce506=_0x14e8d3;super[_0x8ce506(0x163)]();const _0x36b890=this[_0x8ce506(0x15b)][_0x8ce506(0x160)]('.'+$o);_0x36b890&&(this[_0x8ce506(0x164)][_0x8ce506(0x158)](_0x36b890),this[_0x8ce506(0x164)][_0x8ce506(0x14d)]());}[_0x14e8d3(0x152)](){const _0x1e1ad2=_0x14e8d3;super[_0x1e1ad2(0x152)](),this[_0x1e1ad2(0x164)][_0x1e1ad2(0x152)]();}[_0x14e8d3(0x156)](_0x27aac5){const _0x18e849=_0x14e8d3;for(const _0x5ea3e7 of _0x27aac5){const _0x337b45=new _0x4cba56(this[_0x18e849(0x150)],_0x5ea3e7,!0x0,!0x1);this[_0x18e849(0x162)][_0x18e849(0x16b)](_0x337b45);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x281e(){var _0x2ef0a9=['options','initialContent','3580299MOVfcx','2544YIrBlo','innerHTML','12rQgthN','markAsDone','8AkQMFo','4LggdFv','16976457bpjjVJ','11137962EKdSKd','render','ck-ai-chat-error','extendTemplate','warning','element','19448360lUuubd','ck-ai-chat-error_warning','179EJeenB','level','6400114dlHeVI','setContent','7115335yQyXTU'];_0x281e=function(){return _0x2ef0a9;};return _0x281e();}function _0x4865(_0x16f796,_0x2ff4cb){var _0x281ece=_0x281e();return _0x4865=function(_0x4865d3,_0x1a48a8){_0x4865d3=_0x4865d3-0x1d1;var _0x3a3b56=_0x281ece[_0x4865d3];return _0x3a3b56;},_0x4865(_0x16f796,_0x2ff4cb);}var _0x3198ca=_0x4865;(function(_0x2f1e55,_0x524b04){var _0x45eb90=_0x4865,_0x40463e=_0x2f1e55();while(!![]){try{var _0x59d7e3=parseInt(_0x45eb90(0x1db))/0x1*(-parseInt(_0x45eb90(0x1e3))/0x2)+-parseInt(_0x45eb90(0x1e2))/0x3+-parseInt(_0x45eb90(0x1d1))/0x4*(-parseInt(_0x45eb90(0x1df))/0x5)+parseInt(_0x45eb90(0x1e5))/0x6*(-parseInt(_0x45eb90(0x1dd))/0x7)+-parseInt(_0x45eb90(0x1e7))/0x8*(-parseInt(_0x45eb90(0x1d2))/0x9)+parseInt(_0x45eb90(0x1d9))/0xa+-parseInt(_0x45eb90(0x1d3))/0xb;if(_0x59d7e3===_0x524b04)break;else _0x40463e['push'](_0x40463e['shift']());}catch(_0x4d896d){_0x40463e['push'](_0x40463e['shift']());}}}(_0x281e,0xf22a5));import{AIChatFeedItemView as _0xfb88bc}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0xfb88bc{constructor(_0x22dede){var _0x20aed3=_0x4865;super(_0x22dede),this[_0x20aed3(0x1d6)]({'attributes':{'class':[_0x20aed3(0x1d5),_0x20aed3(0x1d7)===_0x22dede[_0x20aed3(0x1dc)]?_0x20aed3(0x1da):'']}});}[_0x3198ca(0x1d4)](){var _0x5c5fc5=_0x3198ca;super[_0x5c5fc5(0x1d4)](),this[_0x5c5fc5(0x1de)](this[_0x5c5fc5(0x1e0)][_0x5c5fc5(0x1e1)]),this[_0x5c5fc5(0x1e6)]();}[_0x3198ca(0x1de)](_0x4f05ad){var _0x428725=_0x3198ca;this[_0x428725(0x1d8)][_0x428725(0x1e4)]=_0x4f05ad;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31f155=_0x2c1a;(function(_0x575401,_0xeef354){const _0x198186=_0x2c1a,_0x8ec390=_0x575401();while(!![]){try{const _0x49e277=parseInt(_0x198186(0xb3))/0x1+-parseInt(_0x198186(0xba))/0x2+parseInt(_0x198186(0xb4))/0x3+-parseInt(_0x198186(0xbc))/0x4+-parseInt(_0x198186(0xaf))/0x5+parseInt(_0x198186(0xb1))/0x6*(parseInt(_0x198186(0xc2))/0x7)+parseInt(_0x198186(0xb2))/0x8;if(_0x49e277===_0xeef354)break;else _0x8ec390['push'](_0x8ec390['shift']());}catch(_0x18bd44){_0x8ec390['push'](_0x8ec390['shift']());}}}(_0x3105,0x3fc56));import{IconBulb as _0x1bf89c,IconWeb as _0x2cb3e2}from'@ckeditor/ckeditor5-icons';import{IconView as _0x195a63,View as _0x3ef6aa}from'ckeditor5/src/ui.js';function _0x2c1a(_0x3a2804,_0x46f347){const _0x31052b=_0x3105();return _0x2c1a=function(_0x2c1a95,_0x46649f){_0x2c1a95=_0x2c1a95-0xad;let _0x20f3bf=_0x31052b[_0x2c1a95];return _0x20f3bf;},_0x2c1a(_0x3a2804,_0x46f347);}import{AIChatFeedItemView as _0x4ce267}from'./aichatfeeditemview.js';function _0x3105(){const _0x18825b=['AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','644785mjfLKT','extendTemplate','78UgemSj','1037184CoiXCq','383796cOAblY','687873dqCBkO','div','capabilities','children','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','1002388UGROjN','ck-ai-chat__feed__interaction-header__capabilities__text','100804NQHxjN','push','add','ck-hidden','span','ck-ai-chat__feed__interaction-header__capabilities','93597VTjort','ck-ai-chat__feed__interaction-header','setTemplate','content'];_0x3105=function(){return _0x18825b;};return _0x3105();}import{getTranslation as _0x22d983}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x4ce267{[_0x31f155(0xb6)];constructor(_0x362d82,_0x64bca7){const _0x463bb2=_0x31f155;super(_0x64bca7);const {isWebSearchEnabled:_0x3831f8,isReasoningEnabled:_0x144696}=_0x64bca7[_0x463bb2(0xb6)],_0x364c7e=[];let _0x4d561e='';_0x3831f8&&_0x144696?(_0x4d561e=_0x22d983(_0x362d82,_0x463bb2(0xae)),_0x364c7e[_0x463bb2(0xbd)](ea(_0x2cb3e2)),_0x364c7e[_0x463bb2(0xbd)](ea(_0x1bf89c))):_0x3831f8?(_0x4d561e=_0x22d983(_0x362d82,_0x463bb2(0xb9)),_0x364c7e[_0x463bb2(0xbd)](ea(_0x2cb3e2))):_0x144696&&(_0x4d561e=_0x22d983(_0x362d82,_0x463bb2(0xb8)),_0x364c7e[_0x463bb2(0xbd)](ea(_0x1bf89c))),this[_0x463bb2(0xb0)]({'attributes':{'class':[_0x463bb2(0xc3),_0x4d561e?'':_0x463bb2(0xbf)]}});const _0x594458=new _0x3ef6aa();_0x594458[_0x463bb2(0xc4)]({'tag':_0x463bb2(0xb5),'attributes':{'class':['ck',_0x463bb2(0xc1)]},'children':[..._0x364c7e,{'tag':_0x463bb2(0xc0),'attributes':{'class':[_0x463bb2(0xbb)]},'children':[_0x4d561e]}]}),this[_0x463bb2(0xb7)][_0x463bb2(0xbe)](_0x594458),this[_0x463bb2(0xb6)]=_0x64bca7[_0x463bb2(0xb6)];}}function ea(_0x268ff8){const _0x1fc528=_0x31f155,_0x551bd1=new _0x195a63();return _0x551bd1[_0x1fc528(0xad)]=_0x268ff8,_0x551bd1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x57ff23=_0x96c2;(function(_0x54112a,_0x1342a2){const _0x139b69=_0x96c2,_0x111e49=_0x54112a();while(!![]){try{const _0x1fc684=parseInt(_0x139b69(0x20a))/0x1+parseInt(_0x139b69(0x207))/0x2+-parseInt(_0x139b69(0x1fa))/0x3*(parseInt(_0x139b69(0x1f3))/0x4)+parseInt(_0x139b69(0x1fb))/0x5+parseInt(_0x139b69(0x1ef))/0x6*(parseInt(_0x139b69(0x208))/0x7)+-parseInt(_0x139b69(0x202))/0x8+-parseInt(_0x139b69(0x1f6))/0x9*(parseInt(_0x139b69(0x1f5))/0xa);if(_0x1fc684===_0x1342a2)break;else _0x111e49['push'](_0x111e49['shift']());}catch(_0x3ad07b){_0x111e49['push'](_0x111e49['shift']());}}}(_0x1e11,0x6618c));function _0x1e11(){const _0x5b7622=['ck-ai-chat__feed__item_done','markAsDone','forEach','6ikOMAJ','setTemplate','ck-ai-chat__feed__text-item','data-id','92MFdVLP','isDone','10SEmYmz','3028815MXVMrN','div','htmlStreamer','set','53790pUYDxK','1843930jbOkFk','[data-id]','options','ck-hidden','animation:\x20ck-html-streamer-fade-in\x20.5s','streamIntoElement','stream','2549944LHUKQb','querySelectorAll','cleanUpAnimations','createCollection','children','708686uWaLVu','2152927hJyFQv','element','455166iHFtun','ck-ai-chat__feed__item','content','bindTemplate','removeAttribute','isVisible'];_0x1e11=function(){return _0x5b7622;};return _0x1e11();}import{View as _0x47e7f9}from'ckeditor5/src/ui.js';function _0x96c2(_0x5b11cd,_0x38b712){const _0x1e1198=_0x1e11();return _0x96c2=function(_0x96c211,_0x2dab87){_0x96c211=_0x96c211-0x1ed;let _0x8530c5=_0x1e1198[_0x96c211];return _0x8530c5;},_0x96c2(_0x5b11cd,_0x38b712);}import{HTMLStreamer as _0x1620e4}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x47e7f9{[_0x57ff23(0x1fd)];[_0x57ff23(0x20c)]='';[_0x57ff23(0x1f8)];[_0x57ff23(0x206)];constructor(_0x407be3){const _0x1cdea8=_0x57ff23;super();const _0x51f8cd=this[_0x1cdea8(0x20d)];this[_0x1cdea8(0x1f9)](_0x1cdea8(0x1f4),!0x1),this[_0x1cdea8(0x1f9)](_0x1cdea8(0x20f),!0x0),this[_0x1cdea8(0x1f8)]=new _0x1620e4({'textNodeStyle':_0x1cdea8(0x1ff),'delay':0x14}),this[_0x1cdea8(0x1fd)]=_0x407be3,this[_0x1cdea8(0x206)]=this[_0x1cdea8(0x205)](),this[_0x1cdea8(0x1f0)]({'tag':_0x1cdea8(0x1f7),'attributes':{'class':['ck',_0x1cdea8(0x20b),_0x51f8cd['if'](_0x1cdea8(0x1f4),_0x1cdea8(0x210)),_0x51f8cd['if'](_0x1cdea8(0x20f),_0x1cdea8(0x1fe),_0x123857=>!_0x123857),_0x1cdea8(0x1f1)],'data-cke-ai-id':this[_0x1cdea8(0x1fd)]['id']},'children':this[_0x1cdea8(0x206)]});}[_0x57ff23(0x1ed)](){const _0x3f23a0=_0x57ff23;this[_0x3f23a0(0x1f8)][_0x3f23a0(0x204)]({'targetElement':this[_0x3f23a0(0x209)]}),this[_0x3f23a0(0x209)][_0x3f23a0(0x203)](_0x3f23a0(0x1fc))[_0x3f23a0(0x1ee)](_0x5df570=>{const _0x439aaf=_0x3f23a0;_0x5df570[_0x439aaf(0x20e)](_0x439aaf(0x1f2));}),this[_0x3f23a0(0x1f4)]=!0x0;}async[_0x57ff23(0x200)](_0x46ab1f,_0x3cf902,_0x260c73){const _0x3d306f=_0x57ff23;await this[_0x3d306f(0x1f8)][_0x3d306f(0x201)]({'document':_0x46ab1f,'targetElement':_0x3cf902,'abortSignal':_0x260c73});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x32ad1f=_0x351a;function _0x951f(){const _0x2472bf=['render','3096BJXorf','486NqggBM','261980NdWeZE','options','9GletMY','setTemplate','children','isVisible','add','static','183990eWwJAh','locale','innerHTML','ck-reset_all-excluded','initialContent','replyContainer','streaming','4895JZFAXB','2440148gQVJQG','markAsDone','addMany','162hYghkF','extendTemplate','387rvKwbd','3225033AjczqK','updateContent','map','139428kWhoAd','element','streamIntoElement','div','ck-ai-chat__feed__ai-reply-container','updateSources','7045928eNmaqq','ck-ai-chat__feed__ai-reply'];_0x951f=function(){return _0x2472bf;};return _0x951f();}function _0x351a(_0x38af09,_0x558a19){const _0x951f5=_0x951f();return _0x351a=function(_0x351aa6,_0x139946){_0x351aa6=_0x351aa6-0xac;let _0x45528f=_0x951f5[_0x351aa6];return _0x45528f;},_0x351a(_0x38af09,_0x558a19);}(function(_0x659598,_0x3a9249){const _0x44abef=_0x351a,_0x2ee2d9=_0x659598();while(!![]){try{const _0x24594e=parseInt(_0x44abef(0xc4))/0x1*(parseInt(_0x44abef(0xc5))/0x2)+-parseInt(_0x44abef(0xc8))/0x3*(-parseInt(_0x44abef(0xb2))/0x4)+-parseInt(_0x44abef(0xc6))/0x5*(-parseInt(_0x44abef(0xb5))/0x6)+parseInt(_0x44abef(0xb8))/0x7+parseInt(_0x44abef(0xc1))/0x8+parseInt(_0x44abef(0xb7))/0x9*(parseInt(_0x44abef(0xce))/0xa)+-parseInt(_0x44abef(0xb1))/0xb*(parseInt(_0x44abef(0xbb))/0xc);if(_0x24594e===_0x3a9249)break;else _0x2ee2d9['push'](_0x2ee2d9['shift']());}catch(_0x236087){_0x2ee2d9['push'](_0x2ee2d9['shift']());}}}(_0x951f,0xea33d));import{AIChatFeedItemView as _0x5ea7fb}from'./aichatfeeditemview.js';import{parse as _0x1108e8,render as _0x3c533c}from'../../../aicore/utils/htmlparser.js';import{View as _0x451a25}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x1ccc19,AIWebSourceView as _0x1f1ddc}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x5ea7fb{[_0x32ad1f(0xaf)];constructor(_0x3094fb,_0x588527){const _0x4de1e6=_0x32ad1f;super(_0x588527),this[_0x4de1e6(0xcf)]=_0x3094fb,this[_0x4de1e6(0xb6)]({'attributes':{'class':[_0x4de1e6(0xc2)]}}),this[_0x4de1e6(0xaf)]=new _0x451a25(),this[_0x4de1e6(0xaf)][_0x4de1e6(0xc9)]({'tag':_0x4de1e6(0xbe),'attributes':{'class':['ck',_0x4de1e6(0xad),_0x4de1e6(0xbf)]}}),this[_0x4de1e6(0xca)][_0x4de1e6(0xcc)](this[_0x4de1e6(0xaf)]);}async[_0x32ad1f(0xc3)](){const _0x8d8526=_0x32ad1f;super[_0x8d8526(0xc3)](),this[_0x8d8526(0xc7)][_0x8d8526(0xae)]&&(await this[_0x8d8526(0xb9)]({'parsedContent':_0x1108e8(this[_0x8d8526(0xc7)][_0x8d8526(0xae)]),'renderingStrategy':_0x8d8526(0xcd)}),this[_0x8d8526(0xb3)]());}async[_0x32ad1f(0xb9)]({parsedContent:_0x5ea36d,renderingStrategy:_0x2aa4a1,abortSignal:_0x4775ea}){const _0x40f450=_0x32ad1f;_0x40f450(0xb0)===_0x2aa4a1?await this[_0x40f450(0xbd)](_0x5ea36d,this[_0x40f450(0xaf)][_0x40f450(0xbc)],_0x4775ea):this[_0x40f450(0xaf)][_0x40f450(0xbc)][_0x40f450(0xac)]=_0x3c533c(_0x5ea36d);}[_0x32ad1f(0xc0)](_0x5318e5){const _0x47770f=_0x32ad1f,_0x3d0873=new _0x1ccc19(this[_0x47770f(0xcf)]);_0x3d0873[_0x47770f(0xca)][_0x47770f(0xb4)](_0x5318e5[_0x47770f(0xba)](_0xf073a7=>new _0x1f1ddc(this[_0x47770f(0xcf)],_0xf073a7))),_0x3d0873[_0x47770f(0xcb)]=!0x0,this[_0x47770f(0xca)][_0x47770f(0xcc)](_0x3d0873);}}
|