@ckeditor/ckeditor5-ai 47.7.0-alpha.0 → 47.7.0-alpha.1
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 +5 -5
- package/package.json +15 -15
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- 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/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/ui/aichatballoonview.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/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.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/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.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 +2 -2
- 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/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.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/aimodels.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/aispinner.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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/createresizebutton.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/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4b1ccc=_0x4efc;(function(_0x1ef61c,_0x73663c){const _0x4e3342=_0x4efc,_0x221571=_0x1ef61c();while(!![]){try{const _0xdc292a=parseInt(_0x4e3342(0x13c))/0x1+parseInt(_0x4e3342(0x120))/0x2+-parseInt(_0x4e3342(0x131))/0x3+-parseInt(_0x4e3342(0x156))/0x4*(parseInt(_0x4e3342(0x12a))/0x5)+parseInt(_0x4e3342(0x124))/0x6+-parseInt(_0x4e3342(0x125))/0x7*(-parseInt(_0x4e3342(0x14d))/0x8)+parseInt(_0x4e3342(0x157))/0x9*(parseInt(_0x4e3342(0x151))/0xa);if(_0xdc292a===_0x73663c)break;else _0x221571['push'](_0x221571['shift']());}catch(_0x4461b0){_0x221571['push'](_0x221571['shift']());}}}(_0x3456,0x89cb7));function _0x4efc(_0x12c7a1,_0x532a75){const _0x3456b1=_0x3456();return _0x4efc=function(_0x4efcc2,_0x9acb09){_0x4efcc2=_0x4efcc2-0x11d;let _0x3eac3f=_0x3456b1[_0x4efcc2];return _0x3eac3f;},_0x4efc(_0x12c7a1,_0x532a75);}import{FocusTracker as _0x2f4b9e,KeystrokeHandler as _0x13d192}from'ckeditor5/src/utils.js';import{ButtonView as _0x53ce50,FocusCycler as _0x29db51,LabeledFieldView as _0x4fae3b,View as _0x2208dc,FormHeaderView as _0x30e19d,createLabeledInputText as _0xae5c9,submitHandler as _0x21a0fc}from'ckeditor5/src/ui.js';function _0x3456(){const _0x50b6df=['errorText','ck-button-icon\x20ck-button-back','input','_createUrlInputField','_updateConfirmButtonState','stop','ck-ai-chat-context-controls__url-input-section','trim','forEach','720540tabJfF','_isValidUrl','change:withBackButton','fire','2718162VxihAL','4570867jSXFia','destroy','form','value','AI_CHAT_CONTEXT_URL_INVALID_ERROR','5ybLWXy','urlInputField','_setupTemplate','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','clear','length','2357712KFQXPS','submitUrl','_createConfirmButton','esc','_focusables','focusTracker','ck-ai-chat-context-controls__url-form','withBackButton','createCollection','keystrokes','\x20ck-hidden','436777CQrhVM','children','submit','refreshBalloon','set','setError','setTemplate','focusCycler','render','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','execute','AI_CHAT_CONTEXT_URL_ADD_URL','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_setupEventHandlers','ck-button-icon','confirmButton','element','8XJPIyX','div','listenTo','clearError','2465990LsoOJi','AI_CHAT_CONTEXT_URL_LABEL','add','backButton','_createBackButton','3197372iEIhYV','9hSoABC','isEnabled','_setupKeystrokes','_handleSubmit','cancel','focus','fieldView','tab','locale','getValue','shift+tab','ck-labeled-field-view_empty'];_0x3456=function(){return _0x50b6df;};return _0x3456();}import{IconCheck as _0x1d988e,IconPreviousArrow as _0x46c664}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1d7c68}from'../../../aicore/utils/common-translations.js';const oh=_0x4b1ccc(0x137),ch=_0x4b1ccc(0x11d);export class AIChatContextPanelUrlInputView extends _0x2208dc{[_0x4b1ccc(0x136)];[_0x4b1ccc(0x13a)];[_0x4b1ccc(0x135)];[_0x4b1ccc(0x143)];[_0x4b1ccc(0x12b)];[_0x4b1ccc(0x154)];[_0x4b1ccc(0x14b)];constructor(_0x1d5bbf){const _0x2ab52f=_0x4b1ccc;super(_0x1d5bbf),this[_0x2ab52f(0x136)]=new _0x2f4b9e(),this[_0x2ab52f(0x13a)]=new _0x13d192(),this[_0x2ab52f(0x154)]=this[_0x2ab52f(0x155)](),this[_0x2ab52f(0x12b)]=this[_0x2ab52f(0x166)](),this[_0x2ab52f(0x14b)]=this[_0x2ab52f(0x133)](),this[_0x2ab52f(0x135)]=this[_0x2ab52f(0x139)]([this[_0x2ab52f(0x154)],this[_0x2ab52f(0x12b)],this[_0x2ab52f(0x14b)]]),this[_0x2ab52f(0x143)]=new _0x29db51({'focusables':this[_0x2ab52f(0x135)],'focusTracker':this[_0x2ab52f(0x136)],'keystrokeHandler':this[_0x2ab52f(0x13a)],'actions':{'focusPrevious':_0x2ab52f(0x161),'focusNext':_0x2ab52f(0x15e)}}),this[_0x2ab52f(0x140)](_0x2ab52f(0x138),!0x0),this[_0x2ab52f(0x12c)](),this[_0x2ab52f(0x149)](),this[_0x2ab52f(0x159)]();}[_0x4b1ccc(0x144)](){const _0x37e994=_0x4b1ccc;super[_0x37e994(0x144)](),this[_0x37e994(0x135)][_0x37e994(0x11f)](_0x2deaee=>{const _0x452be1=_0x37e994;this[_0x452be1(0x136)][_0x452be1(0x153)](_0x2deaee[_0x452be1(0x14c)]),this[_0x452be1(0x13a)][_0x452be1(0x14f)](_0x2deaee[_0x452be1(0x14c)]);}),_0x21a0fc({'view':this}),this[_0x37e994(0x15c)]();}[_0x4b1ccc(0x126)](){const _0x5020b1=_0x4b1ccc;super[_0x5020b1(0x126)](),this[_0x5020b1(0x136)][_0x5020b1(0x126)](),this[_0x5020b1(0x13a)][_0x5020b1(0x126)]();}[_0x4b1ccc(0x15c)](){const _0x3e9214=_0x4b1ccc;this[_0x3e9214(0x12b)][_0x3e9214(0x15c)]();}[_0x4b1ccc(0x160)](){const _0x1cce2f=_0x4b1ccc;return this[_0x1cce2f(0x12b)][_0x1cce2f(0x15d)][_0x1cce2f(0x14c)]?.[_0x1cce2f(0x128)]?.[_0x1cce2f(0x11e)]()||'';}[_0x4b1ccc(0x12f)](){const _0x5ce22e=_0x4b1ccc;this[_0x5ce22e(0x12b)][_0x5ce22e(0x15d)][_0x5ce22e(0x14c)][_0x5ce22e(0x128)]='',this[_0x5ce22e(0x12b)][_0x5ce22e(0x163)]=null,this[_0x5ce22e(0x14b)][_0x5ce22e(0x158)]=!0x1;}[_0x4b1ccc(0x141)](_0x558237){const _0x14865d=_0x4b1ccc;this[_0x14865d(0x12b)][_0x14865d(0x163)]=_0x558237,this[_0x14865d(0x167)](),this[_0x14865d(0x123)](_0x14865d(0x13f));}[_0x4b1ccc(0x150)](){const _0x29e9d4=_0x4b1ccc;this[_0x29e9d4(0x12b)][_0x29e9d4(0x163)]=null,this[_0x29e9d4(0x167)]();}[_0x4b1ccc(0x155)](){const _0x322c39=_0x4b1ccc,_0x5b4e37=new _0x53ce50(this[_0x322c39(0x15f)]);return _0x5b4e37[_0x322c39(0x140)]({'icon':_0x46c664,'tooltip':_0x1d7c68(this[_0x322c39(0x15f)],_0x322c39(0x12e)),'tooltipPosition':'n','class':[_0x322c39(0x164)]}),this['on'](_0x322c39(0x122),(_0x50ea0f,_0x2654d9,_0x5e6a4e)=>{const _0xd8f542=_0x322c39;_0x5b4e37[_0xd8f542(0x140)]({'class':[_0xd8f542(0x164)+(_0x5e6a4e?'':_0xd8f542(0x13b))]});}),_0x5b4e37;}[_0x4b1ccc(0x166)](){const _0x544289=_0x4b1ccc,_0x446561=new _0x4fae3b(this[_0x544289(0x15f)],_0xae5c9);return _0x446561[_0x544289(0x140)]({'label':_0x1d7c68(this[_0x544289(0x15f)],_0x544289(0x152)),'class':_0x544289(0x162)}),_0x446561[_0x544289(0x15d)][_0x544289(0x140)]({'placeholder':_0x1d7c68(this[_0x544289(0x15f)],_0x544289(0x148))}),_0x446561;}[_0x4b1ccc(0x133)](){const _0x52ae43=_0x4b1ccc,_0x46e9bc=new _0x53ce50(this[_0x52ae43(0x15f)]);return _0x46e9bc[_0x52ae43(0x140)]({'icon':_0x1d988e,'tooltip':_0x1d7c68(this[_0x52ae43(0x15f)],_0x52ae43(0x147)),'tooltipPosition':'n','class':_0x52ae43(0x14a),'type':_0x52ae43(0x13e),'isEnabled':!0x1}),_0x46e9bc;}[_0x4b1ccc(0x12c)](){const _0x107737=_0x4b1ccc,_0x3ab9de=new _0x30e19d(this[_0x107737(0x15f)],{'label':_0x1d7c68(this[_0x107737(0x15f)],_0x107737(0x147)),'class':_0x107737(0x145)});_0x3ab9de[_0x107737(0x13d)][_0x107737(0x153)](this[_0x107737(0x154)],0x0),this[_0x107737(0x142)]({'tag':_0x107737(0x127),'attributes':{'class':oh,'tabindex':'-1'},'children':[_0x3ab9de,{'tag':_0x107737(0x14e),'attributes':{'class':ch},'children':[this[_0x107737(0x12b)],this[_0x107737(0x14b)]]}]});}[_0x4b1ccc(0x149)](){const _0x25b608=_0x4b1ccc;this[_0x25b608(0x154)]['on'](_0x25b608(0x146),()=>{const _0x1e4476=_0x25b608;this[_0x1e4476(0x12f)](),this[_0x1e4476(0x123)](_0x1e4476(0x15b));}),this[_0x25b608(0x12b)][_0x25b608(0x15d)]['on'](_0x25b608(0x165),()=>{const _0x2b2468=_0x25b608;this[_0x2b2468(0x150)](),this[_0x2b2468(0x167)](),this[_0x2b2468(0x123)](_0x2b2468(0x13f));}),this['on'](_0x25b608(0x13e),_0x13690e=>{const _0xfb7446=_0x25b608;_0x13690e[_0xfb7446(0x168)](),this[_0xfb7446(0x15a)]();});}[_0x4b1ccc(0x159)](){const _0x1f0797=_0x4b1ccc;this[_0x1f0797(0x13a)][_0x1f0797(0x140)](_0x1f0797(0x134),(_0xd8e5f3,_0xbc825d)=>{const _0x387bc0=_0x1f0797;this[_0x387bc0(0x12f)](),this[_0x387bc0(0x123)](_0x387bc0(0x15b)),_0xbc825d();});}[_0x4b1ccc(0x15a)](){const _0x428bf7=_0x4b1ccc,_0x3c6e76=this[_0x428bf7(0x160)]()[_0x428bf7(0x11e)]();_0x3c6e76?this[_0x428bf7(0x121)](_0x3c6e76)?(this[_0x428bf7(0x150)](),this[_0x428bf7(0x123)](_0x428bf7(0x132),_0x3c6e76)):this[_0x428bf7(0x141)](_0x1d7c68(this[_0x428bf7(0x15f)],_0x428bf7(0x129))):this[_0x428bf7(0x141)](_0x1d7c68(this[_0x428bf7(0x15f)],_0x428bf7(0x12d)));}[_0x4b1ccc(0x167)](){const _0x2397c7=_0x4b1ccc,_0x16e26a=this[_0x2397c7(0x160)]()[_0x2397c7(0x11e)](),_0x5c536e=!!this[_0x2397c7(0x12b)][_0x2397c7(0x163)];this[_0x2397c7(0x14b)][_0x2397c7(0x158)]=_0x16e26a[_0x2397c7(0x130)]>0x0&&!_0x5c536e;}[_0x4b1ccc(0x121)](_0x2bf98e){try{return!!new URL(_0x2bf98e);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x332a5a=_0x337a;(function(_0x16d5fa,_0x17423b){const _0x38b984=_0x337a,_0x1f431f=_0x16d5fa();while(!![]){try{const _0x493da2=-parseInt(_0x38b984(0xd6))/0x1*(parseInt(_0x38b984(0xc9))/0x2)+-parseInt(_0x38b984(0xaa))/0x3+-parseInt(_0x38b984(0x115))/0x4*(parseInt(_0x38b984(0xf9))/0x5)+-parseInt(_0x38b984(0xce))/0x6*(parseInt(_0x38b984(0x113))/0x7)+-parseInt(_0x38b984(0xfd))/0x8+parseInt(_0x38b984(0x8c))/0x9+parseInt(_0x38b984(0x118))/0xa*(parseInt(_0x38b984(0xdc))/0xb);if(_0x493da2===_0x17423b)break;else _0x1f431f['push'](_0x1f431f['shift']());}catch(_0x34cebe){_0x1f431f['push'](_0x1f431f['shift']());}}}(_0x588e,0x706a0));function _0x337a(_0x5f21ef,_0x447b3d){const _0x588e33=_0x588e();return _0x337a=function(_0x337a9d,_0x3d86d6){_0x337a9d=_0x337a9d-0x8c;let _0x50dbe2=_0x588e33[_0x337a9d];return _0x50dbe2;},_0x337a(_0x5f21ef,_0x447b3d);}import{BalloonPanelView as _0x326ad9,ButtonView as _0x1aaae2,clickOutsideHandler as _0x2bc39a,FileDialogButtonView as _0x53301e,IconView as _0x2591a5,View as _0x1d9dd9}from'ckeditor5/src/ui.js';function _0x588e(){const _0x510e46=['show','_createContextButton','addResourceToContext','ck-ai-chat-context-controls__add-context-balloon-panel','southArrowNorth','submitUrl','_handleUrlSubmit','addFileToContext','urls','AI_CHAT_CONTEXT_URL_LABEL','icon','_currentContextsChips','ck-ai-chat-context-controls__balloon-button-source','overflowChips','createCollection','hideAddContextBalloonPanel','set','showAddContextBalloonPanel','_urlBalloonPanelView','_urlInputView','ck-ai-chat-controls-button','AI_CHAT_CONTEXT_FILE_LABEL','setContainerElement','_setBalloonPanelContent','balloonView','remove','pin','1831713LmdtaH','isLoading','buttonView','isOn','_setupAllBalloonClickOutsideHandlers','removeContextItemChip','content','length','_addUrlContent','element','cancel','ck-ai-chat-context-controls','destroy','_setupAddContextBalloonClickOutsideHandler','isHidden','menuitem','setTemplate','updateResourceState','ck-reset_all-excluded','addDocumentToContext','fire','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','northArrowSouth','children','hide','arrowView','ck-ai-chat-context-controls__url-balloon-panel','loadSourceResources','isVisible','ck-ai-chat-context-chips-wrapper-balloon','_addContextBalloonConfig','68558QjoXdV','withBackButton','_showSourceResourcesBalloon','removeContextItem','isEnabled','2208bLVPaA','_getLimiterElement','done','bind','clearConversationContextItems','render','div','focus','19NfrNIK','_createAddContextButtonView','northArrowSouthWest','_overflowManager','addContextItem','closest','8904302BQmTVt','addUrlToContext','_createAddContextBalloonPanelView','_setupTemplate','ck-ai-chat-controls_context_show-more-button','__arrow','label','showSourceResourcesBalloon','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat','AI_CHAT_CONTEXT_ADD_CONTEXT','_createArrowView','execute','isReadOnly','ck-ai-chat-context-controls__pending-contexts','reorganizeChips','southArrowNorthWest','showUrlBalloonPanel','_setAddContextButtonEnabled','_hasExactlyOneSource','_conversationContextsChips','northArrowSouthEast','sources','find','ck-ai-chat-context-controls__add-context-button','_toggleAddContextBalloon','_addContextBalloonPanelView','defaultPositions','conversation','5GBAXnC','setContextItemLoading','_createBaseBalloonPanel','_removeContextFromCollection','4225984ZXiEZj','locale','_createUrlBalloonPanelView','clearCurrentContextItems','_handleAddContextButtonClick','southArrowNorthEast','_createResourcesBalloonView','get','_addContextToCollection','type','searchInputVisibleFrom','source','customItems','body','_resourcesBalloonView','setConversationContext','_createBalloonButton','_setupUrlBalloonClickOutsideHandler','customItem','populateSourceResourceBalloon','executeCustomItemCallback','bodyCollection','4046PfXAxU','clear','81964ftUpis','tooltip','extendTemplate','20FmHbnd','ck-ai-chat-context-controls__balloon-button','document','files','current','_bindEventHandlers','hideUrlBalloonPanel','setAddContextOptions','isAnyResourceBalloonVisible','closeSourceResourceBalloon','enabled','addContextButtonView','7783191iLkXZW','refreshBalloon','add'];_0x588e=function(){return _0x510e46;};return _0x588e();}import{IconBrowseFiles as _0x1b2325,IconDocument as _0x26f362,IconDocumentOutline as _0x24336e,IconDropdownArrow as _0x51b208,IconLink as _0x49e023,IconPaperClip as _0x467c86}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xc213b7}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xcb4a00}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5b4784}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0xb471ff}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x1d0400}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x332a5a(0xbd),_0x332a5a(0x96),_0x332a5a(0xdd),_0x332a5a(0x91),_0x332a5a(0xcc),_0x332a5a(0xc5),_0x332a5a(0x111)];const Vo=_0x332a5a(0xb5),go=_0x332a5a(0xea),Io=_0x332a5a(0x92),Po=_0x332a5a(0xf4),Ro=_0x332a5a(0xc4),So=_0x332a5a(0x119),Oo=_0x332a5a(0x9b),Uo=_0x332a5a(0xa3),Lo=_0x332a5a(0xc7),No=_0x332a5a(0xe0),Mo=_0x332a5a(0xe4),Ho=_0x332a5a(0xe5),jo=[_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0xd8)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0xc0)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0xf1)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0xec)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0x93)],_0x326ad9[_0x332a5a(0xf7)][_0x332a5a(0x102)]];export class AIChatContextPanelView extends _0x1d9dd9{[_0x332a5a(0x123)];[_0x332a5a(0x9a)]=this[_0x332a5a(0x9d)]();[_0x332a5a(0xf0)]=this[_0x332a5a(0x9d)]();[_0x332a5a(0xd9)];[_0x332a5a(0xf6)];[_0x332a5a(0xa1)];[_0x332a5a(0xa2)];[_0x332a5a(0x10b)];[_0x332a5a(0xc8)];[_0x332a5a(0xef)]=!0x1;[_0x332a5a(0x112)];constructor(_0x29baee,_0x455fbc){const _0xc26b36=_0x332a5a;super(_0x29baee),this[_0xc26b36(0x112)]=_0x455fbc[_0xc26b36(0x112)],this[_0xc26b36(0x9a)]=this[_0xc26b36(0x9d)](),this[_0xc26b36(0xf0)]=this[_0xc26b36(0x9d)](),this[_0xc26b36(0x123)]=this[_0xc26b36(0xd7)](_0x29baee),this[_0xc26b36(0xf6)]=this[_0xc26b36(0xde)](_0x29baee),this[_0xc26b36(0xa1)]=this[_0xc26b36(0xff)](_0x29baee),this[_0xc26b36(0x10b)]=this[_0xc26b36(0x103)](_0x29baee,_0x455fbc);const _0x2cd852={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Mo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0xc26b36(0xd9)]=new _0x5b4784(_0x29baee,this[_0xc26b36(0x9a)],_0x2cd852,this[_0xc26b36(0x112)],this),this[_0xc26b36(0xc8)]={'buttonView':this[_0xc26b36(0x123)],'balloonView':this[_0xc26b36(0xf6)],'hideMethod':this[_0xc26b36(0x9e)][_0xc26b36(0xd1)](this),'showMethod':this[_0xc26b36(0xa0)][_0xc26b36(0xd1)](this)},this[_0xc26b36(0xdf)](),this[_0xc26b36(0x11d)]();}[_0x332a5a(0xd3)](){const _0x587b8e=_0x332a5a;super[_0x587b8e(0xd3)](),this[_0x587b8e(0xae)](),this[_0x587b8e(0xd9)][_0x587b8e(0xa5)](this[_0x587b8e(0xb3)]),this[_0x587b8e(0xd9)][_0x587b8e(0xeb)]();}[_0x332a5a(0xb6)](){const _0x3e3750=_0x332a5a;super[_0x3e3750(0xb6)](),this[_0x3e3750(0xd9)][_0x3e3750(0xb6)](),this[_0x3e3750(0x10b)][_0x3e3750(0xb6)]();}[_0x332a5a(0xda)](_0x50d434,_0x5c2bd5){const _0x7250f9=_0x332a5a,_0x53c305=this[_0x7250f9(0x90)](_0x50d434,_0x7250f9(0x11c),!0x0,_0x5c2bd5);this[_0x7250f9(0x105)](_0x53c305,this[_0x7250f9(0x9a)]),this[_0x7250f9(0xd9)][_0x7250f9(0xeb)]();}[_0x332a5a(0xcc)](_0x388e35){const _0x3ff062=_0x332a5a;this[_0x3ff062(0xfc)](_0x388e35,this[_0x3ff062(0x9a)]),this[_0x3ff062(0xfc)](_0x388e35,this[_0x3ff062(0xd9)][_0x3ff062(0x9c)]),this[_0x3ff062(0xd9)][_0x3ff062(0xeb)]();}[_0x332a5a(0xfa)](_0x563b13,_0x3f0b49){const _0x48985a=_0x332a5a;let _0xa61190=this[_0x48985a(0x9a)][_0x48985a(0xf3)](_0x47aada=>_0x47aada['id']===_0x563b13);_0xa61190||(_0xa61190=this[_0x48985a(0xd9)][_0x48985a(0x9c)][_0x48985a(0xf3)](_0x255d74=>_0x255d74['id']===_0x563b13)),_0xa61190&&(_0xa61190[_0x48985a(0xab)]=_0x3f0b49);}[_0x332a5a(0x10c)](_0x38cb96){const _0x109276=_0x332a5a;this[_0x109276(0xf0)][_0x109276(0x114)]();for(const _0x371b41 of _0x38cb96){const _0xdfbb86=this[_0x109276(0x90)](_0x371b41,_0x109276(0xf8),!0x1,!0x1);this[_0x109276(0x105)](_0xdfbb86,this[_0x109276(0xf0)]);}}[_0x332a5a(0x100)](){const _0x15727f=_0x332a5a;this[_0x15727f(0x9a)][_0x15727f(0x114)](),this[_0x15727f(0xd9)][_0x15727f(0x114)]();}[_0x332a5a(0xd2)](){const _0x84bca0=_0x332a5a;this[_0x84bca0(0xf0)][_0x84bca0(0x114)]();}[_0x332a5a(0xbb)](_0x361cfb,_0x5f0bc2,_0x2b23cd){const _0x2552a9=_0x332a5a;this[_0x2552a9(0x10b)][_0x2552a9(0xbb)](_0x361cfb,_0x5f0bc2,_0x2b23cd);}[_0x332a5a(0x9e)](){const _0x5e9e40=_0x332a5a;this[_0x5e9e40(0xf5)](!0x1);}[_0x332a5a(0xa0)](){const _0x126222=_0x332a5a;this[_0x126222(0xf5)](!0x0);}[_0x332a5a(0x11e)](){const _0x491af2=_0x332a5a;this[_0x491af2(0xa1)][_0x491af2(0xc2)](),this[_0x491af2(0x123)][_0x491af2(0xad)]=!0x1,this[_0x491af2(0xa2)]&&this[_0x491af2(0xa2)][_0x491af2(0x114)]();}[_0x332a5a(0xed)](){const _0x31a820=_0x332a5a;this[_0x31a820(0xa1)][_0x31a820(0x8f)](),this[_0x31a820(0x123)][_0x31a820(0xad)]=!0x0;}[_0x332a5a(0xcb)]({source:_0x453094,withBackButton:_0x2e1ca5}){const _0x4cafe2=_0x332a5a;this[_0x4cafe2(0x10b)][_0x4cafe2(0xe3)]({'source':_0x453094,'withBackButton':_0x2e1ca5}),this[_0x4cafe2(0x123)][_0x4cafe2(0xad)]=!0x0;}[_0x332a5a(0x110)](_0x2c2f43,_0x24c336,_0x14d6cf,_0x57d8c3){const _0x6e0fe4=_0x332a5a;this[_0x6e0fe4(0x10b)][_0x6e0fe4(0x110)](_0x2c2f43,_0x14d6cf,_0x57d8c3);}[_0x332a5a(0x121)](_0x1467a1){const _0x386326=_0x332a5a;this[_0x386326(0x10b)][_0x386326(0x121)](_0x1467a1),this[_0x386326(0x123)][_0x386326(0xad)]=!0x1;}[_0x332a5a(0x11f)](_0x13a53e){const _0x10d3f8=_0x332a5a;this[_0x10d3f8(0xa6)](this[_0x10d3f8(0xf6)],this[_0x10d3f8(0xfe)],_0x13a53e),this[_0x10d3f8(0xee)](_0x13a53e);}[_0x332a5a(0xee)](_0x3a86f9){const _0x5b9e91=_0x332a5a,_0x416df1=!_0x3a86f9[_0x5b9e91(0x11a)][_0x5b9e91(0xb8)]&&_0x3a86f9[_0x5b9e91(0x11a)][_0x5b9e91(0x122)],_0x1c3d75=_0x3a86f9[_0x5b9e91(0x97)][_0x5b9e91(0x122)],_0x4ac197=_0x3a86f9[_0x5b9e91(0x11b)][_0x5b9e91(0x122)],_0x3e1d82=_0x3a86f9[_0x5b9e91(0xf2)][_0x5b9e91(0xb1)]>0x0,_0x2b6c6c=_0x3a86f9[_0x5b9e91(0x109)]&&_0x3a86f9[_0x5b9e91(0x109)][_0x5b9e91(0xb1)]>0x0;this[_0x5b9e91(0x123)][_0x5b9e91(0xcd)]=_0x416df1||_0x1c3d75||_0x4ac197||_0x3e1d82||_0x2b6c6c;}[_0x332a5a(0xdf)](){const _0x4f7154=_0x332a5a;this[_0x4f7154(0xba)]({'tag':_0x4f7154(0xd4),'attributes':{'class':[Vo,_0x4f7154(0xbc)]},'children':[{'tag':_0x4f7154(0xd4),'attributes':{'class':go},'children':this[_0x4f7154(0x9a)]}]});}[_0x332a5a(0x11d)](){const _0x940656=_0x332a5a;this[_0x940656(0x123)]['on'](_0x940656(0xe8),()=>{const _0x7d307b=_0x940656;this[_0x7d307b(0x101)]();});}[_0x332a5a(0xd7)](_0x1e8b20){const _0x488a68=_0x332a5a,_0x26acf4=new _0x1aaae2(_0x1e8b20);return _0x26acf4[_0x488a68(0x9f)]({'label':_0xb471ff(_0x1e8b20,_0x488a68(0xe6)),'class':Uo+'\x20'+Po,'icon':_0x467c86,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x26acf4;}[_0x332a5a(0xde)](_0x50109e){const _0x96e1fe=_0x332a5a;return this[_0x96e1fe(0xfb)](_0x50109e,Io);}[_0x332a5a(0xff)](_0xfe931f){const _0xf6f97b=_0x332a5a,_0x1ccbfc=this[_0xf6f97b(0xfb)](_0xfe931f,Ro);return this[_0xf6f97b(0xb2)](_0x1ccbfc,_0xfe931f),_0x1ccbfc;}[_0x332a5a(0x103)](_0x4806b4,_0x5d9c3c){const _0x3e2612=_0x332a5a,_0x19285d={'searchInputVisibleFrom':_0x5d9c3c[_0x3e2612(0x107)],'onBackToContext':()=>{const _0x41502f=_0x3e2612;this[_0x41502f(0xa0)](),this[_0x41502f(0xf6)][_0x41502f(0xa9)]({'target':this[_0x41502f(0x123)][_0x41502f(0xb3)],'limiter':this[_0x41502f(0xcf)](),'positions':jo});},'onResourceSelected':(_0x270cfb,_0x5bb3d4)=>{const _0x49a8a6=_0x3e2612;this[_0x49a8a6(0xbe)](_0x49a8a6(0x91),{'source':_0x270cfb,'resource':_0x5bb3d4});},'onLoadSourceResources':_0x5d2d61=>{const _0x38604d=_0x3e2612;this[_0x38604d(0xbe)](_0x38604d(0xc5),_0x5d2d61);},'onBalloonClosed':()=>{const _0x2c8cae=_0x3e2612;this[_0x2c8cae(0x123)][_0x2c8cae(0xad)]=!0x1;},'getLimiterElement':()=>this[_0x3e2612(0xcf)](),'getTargetElement':()=>this[_0x3e2612(0x123)][_0x3e2612(0xb3)]};return new _0x1d0400(_0x4806b4,_0x5d9c3c[_0x3e2612(0x112)],_0x19285d);}[_0x332a5a(0xcf)](){const _0x2af1c7=_0x332a5a;return this[_0x2af1c7(0xb3)]?.[_0x2af1c7(0xdb)]('.'+Ho)||document[_0x2af1c7(0x10a)];}[_0x332a5a(0xfb)](_0x1f2a6a,_0x2cf631){const _0x23facf=_0x332a5a,_0x44013b=new _0x326ad9(_0x1f2a6a);return _0x44013b[_0x23facf(0x117)]({'attributes':{'class':_0x2cf631}}),this[_0x23facf(0x112)][_0x23facf(0x8e)](_0x44013b),_0x44013b;}[_0x332a5a(0xa6)](_0x2ad8b3,_0x529f92,_0x5a1a70){const _0x1b2ec9=_0x332a5a;if(_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x114)](),!_0x5a1a70[_0x1b2ec9(0x11a)][_0x1b2ec9(0xb8)]&&_0x5a1a70[_0x1b2ec9(0x11a)][_0x1b2ec9(0x122)]){const _0x49574f=this[_0x1b2ec9(0x10d)](_0x529f92,{'label':_0xb471ff(_0x529f92,_0x1b2ec9(0xbf)),'icon':_0x26f362});_0x49574f['on'](_0x1b2ec9(0xe8),()=>{const _0x8d9bdf=_0x1b2ec9;this[_0x8d9bdf(0xbe)](_0x8d9bdf(0xbd)),this[_0x8d9bdf(0x9e)]();}),_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x49574f);}if(_0x5a1a70[_0x1b2ec9(0x97)][_0x1b2ec9(0x122)]){const _0x541b05=this[_0x1b2ec9(0x10d)](_0x529f92,{'label':_0xb471ff(_0x529f92,_0x1b2ec9(0x98)),'icon':_0x49e023});_0x541b05['on'](_0x1b2ec9(0xe8),()=>{const _0x360df6=_0x1b2ec9;this[_0x360df6(0x9e)](),this[_0x360df6(0xed)](),this[_0x360df6(0xa1)][_0x360df6(0xa9)]({'target':this[_0x360df6(0x123)][_0x360df6(0xb3)],'limiter':this[_0x360df6(0xcf)](),'positions':jo}),this[_0x360df6(0xa2)][_0x360df6(0xd5)]();}),_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x541b05);}if(_0x5a1a70[_0x1b2ec9(0x11b)][_0x1b2ec9(0x122)]){const _0x2c2527=new _0x53301e(_0x529f92);_0x2c2527[_0x1b2ec9(0x9f)]({'label':_0xb471ff(_0x529f92,_0x1b2ec9(0xa4)),'icon':_0x1b2325,'withText':!0x0,'tooltip':!0x0,'class':So,'allowMultipleFiles':!0x0}),_0x2c2527['on'](_0x1b2ec9(0xe8),()=>{const _0x2b0515=_0x1b2ec9;this[_0x2b0515(0x9e)]();}),_0x2c2527['on'](_0x1b2ec9(0xd0),(_0x225de1,_0x4179c3)=>{const _0x53f033=_0x1b2ec9;this[_0x53f033(0xbe)](_0x53f033(0x96),_0x4179c3);}),_0x2c2527[_0x1b2ec9(0x116)]=!0x0,_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x2c2527);}for(const _0x15b0e1 of _0x5a1a70[_0x1b2ec9(0xf2)]){const _0x207cec=this[_0x1b2ec9(0x10d)](_0x529f92,{'label':_0x15b0e1[_0x1b2ec9(0xe2)],'icon':_0x15b0e1[_0x1b2ec9(0x99)]||_0x24336e,'type':_0x1b2ec9(0x108)});_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x207cec),_0x207cec['on'](_0x1b2ec9(0xe8),()=>{const _0x521b69=_0x1b2ec9;this[_0x521b69(0x9e)](),this[_0x521b69(0xcb)]({'source':_0x15b0e1,'withBackButton':!this[_0x521b69(0xef)]});});}for(const _0x6b8a14 of _0x5a1a70[_0x1b2ec9(0x109)]||[]){const _0x154045=this[_0x1b2ec9(0x10d)](_0x529f92,{'label':_0x6b8a14[_0x1b2ec9(0xe2)],'icon':_0x6b8a14[_0x1b2ec9(0x99)]||_0x24336e,'type':_0x1b2ec9(0x10f)});_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0x8e)](_0x154045),_0x154045['on'](_0x1b2ec9(0xe8),()=>{const _0x273b33=_0x1b2ec9;this[_0x273b33(0x9e)](),this[_0x273b33(0xbe)](_0x273b33(0x111),_0x6b8a14);});}this[_0x1b2ec9(0xef)]=0x1===_0x2ad8b3[_0x1b2ec9(0xb0)][_0x1b2ec9(0xb1)],this[_0x1b2ec9(0xa2)][_0x1b2ec9(0xca)]=!this[_0x1b2ec9(0xef)];}[_0x332a5a(0xb2)](_0x269661,_0x346ecf){const _0xdb14d5=_0x332a5a;this[_0xdb14d5(0xa2)]=new _0xcb4a00(_0x346ecf),this[_0xdb14d5(0xa2)]['on'](_0xdb14d5(0x94),(_0x42619f,_0x1dd5e2)=>{const _0x243a94=_0xdb14d5;this[_0x243a94(0x95)](_0x1dd5e2);}),this[_0xdb14d5(0xa2)]['on'](_0xdb14d5(0xb4),()=>{const _0x42532e=_0xdb14d5;this[_0x42532e(0x11e)](),this[_0x42532e(0xef)]||(this[_0x42532e(0xa0)](),this[_0x42532e(0xf6)][_0x42532e(0xa9)]({'target':this[_0x42532e(0x123)][_0x42532e(0xb3)],'limiter':this[_0x42532e(0xcf)](),'positions':jo}));}),this[_0xdb14d5(0xa2)]['on'](_0xdb14d5(0x8d),()=>{const _0x598350=_0xdb14d5;this[_0x598350(0xa1)][_0x598350(0xc6)]&&this[_0x598350(0xa1)][_0x598350(0xa9)]({'target':this[_0x598350(0x123)][_0x598350(0xb3)],'limiter':this[_0x598350(0xcf)](),'positions':jo});}),_0x269661[_0xdb14d5(0xb0)][_0xdb14d5(0x8e)](this[_0xdb14d5(0xa2)]);}[_0x332a5a(0x10d)](_0xce181a,_0x227068){const _0x3157dc=_0x332a5a,_0x4257fc=_0x3157dc(0x108)===_0x227068[_0x3157dc(0x106)]?new SourcesBalloonButtonView(_0xce181a):new _0x1aaae2(_0xce181a);return _0x4257fc[_0x3157dc(0x9f)]({'label':_0x227068[_0x3157dc(0xe2)],'icon':_0x227068[_0x3157dc(0x99)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':So}),_0x4257fc;}[_0x332a5a(0xae)](){const _0x3f06a7=_0x332a5a;this[_0x3f06a7(0xb7)](),this[_0x3f06a7(0x10e)]();}[_0x332a5a(0x10e)](){const _0x5e1f0e=_0x332a5a;_0x2bc39a({'emitter':this[_0x5e1f0e(0xa1)],'contextElements':[this[_0x5e1f0e(0xa1)][_0x5e1f0e(0xb3)]],'callback':()=>{const _0x208533=_0x5e1f0e;this[_0x208533(0x11e)]();},'activator':()=>this[_0x5e1f0e(0xa1)][_0x5e1f0e(0xc6)]});}[_0x332a5a(0xf5)](_0x368546){const _0x5b9bac=_0x332a5a,_0x3842e0=this[_0x5b9bac(0xc8)];_0x3842e0[_0x5b9bac(0xac)][_0x5b9bac(0xad)]=_0x368546,_0x368546?_0x3842e0[_0x5b9bac(0xa7)][_0x5b9bac(0x8f)]():_0x3842e0[_0x5b9bac(0xa7)][_0x5b9bac(0xc2)]();}[_0x332a5a(0xb7)](){const _0x3fcfc9=_0x332a5a,{balloonView:_0x986d06,buttonView:_0x465810,hideMethod:_0x5d8a9c}=this[_0x3fcfc9(0xc8)];_0x2bc39a({'emitter':_0x986d06,'contextElements':[_0x986d06[_0x3fcfc9(0xb3)],_0x465810[_0x3fcfc9(0xb3)]],'callback':()=>{_0x5d8a9c();},'activator':()=>_0x465810[_0x3fcfc9(0xad)]&&!this[_0x3fcfc9(0xa1)][_0x3fcfc9(0xc6)]&&!this[_0x3fcfc9(0x10b)][_0x3fcfc9(0x120)]()});}[_0x332a5a(0x90)](_0x4c2962,_0x5e2d5e,_0x200fb7=!0x1,_0x2acbd5=!0x1){const _0x4da69c=_0x332a5a,_0x1b2ffa=_0x4da69c(0xf8)===_0x5e2d5e||!0x0===_0x4c2962[_0x4da69c(0xe9)],_0x1dc260=new _0xc213b7(this[_0x4da69c(0xfe)],_0x4c2962,_0x1b2ffa,_0x200fb7,_0x2acbd5);return _0x1b2ffa||_0x1dc260['on'](_0x4da69c(0xaf),()=>{const _0x2b93b8=_0x4da69c;this[_0x2b93b8(0xbe)](_0x2b93b8(0xcc),_0x1dc260['id']);}),_0x1dc260;}[_0x332a5a(0x105)](_0x489f9c,_0x2bd692){const _0x20d064=_0x332a5a;_0x2bd692[_0x20d064(0x8e)](_0x489f9c,0x0);}[_0x332a5a(0xfc)](_0x11dd3a,_0x2b60bd){const _0x3d6cdf=_0x332a5a,_0x3dfaee=_0x2b60bd[_0x3d6cdf(0xf3)](_0x3ed6a5=>_0x3ed6a5['id']===_0x11dd3a);_0x3dfaee&&_0x2b60bd[_0x3d6cdf(0xa8)](_0x3dfaee);}[_0x332a5a(0x101)](){const _0x4941e3=_0x332a5a;this[_0x4941e3(0x123)][_0x4941e3(0xad)]?this[_0x4941e3(0x9e)]():(this[_0x4941e3(0xa0)](),this[_0x4941e3(0xf6)][_0x4941e3(0xa9)]({'target':this[_0x4941e3(0x123)][_0x4941e3(0xb3)],'limiter':this[_0x4941e3(0xcf)](),'positions':jo}),this[_0x4941e3(0xef)]&&this[_0x4941e3(0xf6)][_0x4941e3(0xb0)][_0x4941e3(0x104)](0x0)?.[_0x4941e3(0xbe)](_0x4941e3(0xe8)));}[_0x332a5a(0x95)](_0x407d89){const _0x43c920=_0x332a5a;this[_0x43c920(0xa2)][_0x43c920(0x114)](),this[_0x43c920(0x11e)](),this[_0x43c920(0xbe)](_0x43c920(0xdd),_0x407d89);}}export class SourcesBalloonButtonView extends _0x1aaae2{[_0x332a5a(0xc3)];constructor(_0x12fe44){const _0xb8c17d=_0x332a5a;super(_0x12fe44),this[_0xb8c17d(0x9f)]({'withText':!0x0,'role':_0xb8c17d(0xb9)}),this[_0xb8c17d(0xc3)]=this[_0xb8c17d(0xe7)](),this[_0xb8c17d(0x117)]({'attributes':{'class':[Oo]}});}[_0x332a5a(0xd3)](){const _0xd2db03=_0x332a5a;super[_0xd2db03(0xd3)](),this[_0xd2db03(0xc1)][_0xd2db03(0x8e)](this[_0xd2db03(0xc3)]);}[_0x332a5a(0xe7)](){const _0x23bd2c=_0x332a5a,_0x5d90b=new _0x2591a5();return _0x5d90b[_0x23bd2c(0xb0)]=_0x51b208,_0x5d90b[_0x23bd2c(0x117)]({'attributes':{'class':Oo+_0x23bd2c(0xe1)}}),_0x5d90b;}}
|
|
23
|
+
const _0x5aa4aa=_0x170e;(function(_0x5e5632,_0x537dca){const _0x6d5ad5=_0x170e,_0x3ca345=_0x5e5632();while(!![]){try{const _0x1ee7a6=parseInt(_0x6d5ad5(0x146))/0x1+parseInt(_0x6d5ad5(0x16a))/0x2+parseInt(_0x6d5ad5(0x1bb))/0x3*(-parseInt(_0x6d5ad5(0x13d))/0x4)+parseInt(_0x6d5ad5(0x1c3))/0x5+parseInt(_0x6d5ad5(0x1bd))/0x6*(-parseInt(_0x6d5ad5(0x1c0))/0x7)+-parseInt(_0x6d5ad5(0x18c))/0x8*(-parseInt(_0x6d5ad5(0x151))/0x9)+-parseInt(_0x6d5ad5(0x15f))/0xa;if(_0x1ee7a6===_0x537dca)break;else _0x3ca345['push'](_0x3ca345['shift']());}catch(_0x212433){_0x3ca345['push'](_0x3ca345['shift']());}}}(_0x5138,0x59975));import{BalloonPanelView as _0x188dc9,ButtonView as _0x3f1ab6,clickOutsideHandler as _0xbe59cf,FileDialogButtonView as _0x5b8dd7,IconView as _0x14e21f,View as _0x44cff2}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x130f20,IconDocument as _0x30e002,IconDocumentOutline as _0x3c8f62,IconDropdownArrow as _0x4a6f43,IconLink as _0x4e8400,IconPaperClip as _0x28516a}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x393f94}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x98802e}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xfc1d85}from'./aichatchipsoverflowmanager.js';function _0x170e(_0x21427e,_0x340e9c){const _0x5138bc=_0x5138();return _0x170e=function(_0x170eff,_0x286227){_0x170eff=_0x170eff-0x133;let _0x5a8b41=_0x5138bc[_0x170eff];return _0x5a8b41;},_0x170e(_0x21427e,_0x340e9c);}import{getTranslation as _0x330cce}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5468b9}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5aa4aa(0x160),_0x5aa4aa(0x18e),_0x5aa4aa(0x158),_0x5aa4aa(0x159),_0x5aa4aa(0x135),_0x5aa4aa(0x144),_0x5aa4aa(0x1a6)];function _0x5138(){const _0x47ccc9=['_addUrlContent','closeSourceResourceBalloon','setConversationContext','children','12YwfyYX','ck-ai-chat','6UbdvsQ','isLoading','_createContextButton','554029uPVmQY','ck-ai-chat-context-controls__balloon-button-source','add','822700jtUSHg','_createBaseBalloonPanel','_hasExactlyOneSource','_setBalloonPanelContent','sources','extendTemplate','fire','customItem','submitUrl','removeContextItem','setContextItemLoading','createCollection','clearConversationContextItems','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-controls-button','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__add-context-balloon-panel','37420czOzHp','_setupTemplate','ck-ai-chat-context-controls__pending-contexts','refreshBalloon','remove','icon','closest','loadSourceResources','ck-ai-chat-context-controls__add-context-button','352197SnBiJl','_overflowManager','_urlBalloonPanelView','_handleAddContextButtonClick','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_ADD_CONTEXT','southArrowNorthWest','_getLimiterElement','execute','_conversationContextsChips','hide','2795553pWQqfZ','overflowChips','balloonView','northArrowSouthWest','setContainerElement','pin','southArrowNorthEast','addUrlToContext','addResourceToContext','bodyCollection','source','_createBalloonButton','_removeContextFromCollection','updateResourceState','7736020DThFzP','addDocumentToContext','defaultPositions','locale','_showSourceResourcesBalloon','AI_CHAT_CONTEXT_URL_LABEL','_createAddContextButtonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_bindEventHandlers','setAddContextOptions','withBackButton','238326NgLIqt','menuitem','northArrowSouthEast','enabled','__arrow','_addContextBalloonPanelView','_handleUrlSubmit','isHidden','reorganizeChips','_setupAddContextBalloonClickOutsideHandler','customItems','addContextItem','find','isReadOnly','ck-ai-chat-context-controls__show-more-balloon-panel','_setupAllBalloonClickOutsideHandlers','hideUrlBalloonPanel','isVisible','clearCurrentContextItems','_addContextToCollection','element','urls','cancel','southArrowNorth','body','_setupUrlBalloonClickOutsideHandler','_resourcesBalloonView','done','_createArrowView','addContextButtonView','_createAddContextBalloonPanelView','showSourceResourcesBalloon','render','bind','16dGVIyo','label','addFileToContext','_currentContextsChips','ck-ai-chat-context-chips-wrapper-balloon','content','removeContextItemChip','_setAddContextButtonEnabled','ck-reset_all-excluded','div','files','_addContextBalloonConfig','setTemplate','destroy','_createResourcesBalloonView','populateSourceResourceBalloon','buttonView','length','isOn','isEnabled','showAddContextBalloonPanel','focus','hideAddContextBalloonPanel','type','tooltip','isAnyResourceBalloonVisible','executeCustomItemCallback','document','ck-ai-chat-context-controls__balloon-button','northArrowSouth','ck-ai-chat-context-controls','clear','_urlInputView','_toggleAddContextBalloon','get','searchInputVisibleFrom','show','_createUrlBalloonPanelView','arrowView','showUrlBalloonPanel','conversation','current','set'];_0x5138=function(){return _0x47ccc9;};return _0x5138();}const Uo=_0x5aa4aa(0x1aa),Lo=_0x5aa4aa(0x13f),No=_0x5aa4aa(0x13c),Mo=_0x5aa4aa(0x145),Ho=_0x5aa4aa(0x13b),jo=_0x5aa4aa(0x1a8),Fo=_0x5aa4aa(0x1c1),Xo=_0x5aa4aa(0x13a),Do=_0x5aa4aa(0x190),$o=_0x5aa4aa(0x14a),Wo=_0x5aa4aa(0x178),qo=_0x5aa4aa(0x1bc),zo=[_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x154)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x1a9)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x16c)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x14c)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x181)],_0x188dc9[_0x5aa4aa(0x161)][_0x5aa4aa(0x157)]];export class AIChatContextPanelView extends _0x44cff2{[_0x5aa4aa(0x187)];[_0x5aa4aa(0x18f)]=this[_0x5aa4aa(0x137)]();[_0x5aa4aa(0x14f)]=this[_0x5aa4aa(0x137)]();[_0x5aa4aa(0x147)];[_0x5aa4aa(0x16f)];[_0x5aa4aa(0x148)];[_0x5aa4aa(0x1ac)];[_0x5aa4aa(0x184)];[_0x5aa4aa(0x197)];[_0x5aa4aa(0x1c5)]=!0x1;[_0x5aa4aa(0x15a)];constructor(_0x5b48fe,_0x117375){const _0xe0f155=_0x5aa4aa;super(_0x5b48fe),this[_0xe0f155(0x15a)]=_0x117375[_0xe0f155(0x15a)],this[_0xe0f155(0x18f)]=this[_0xe0f155(0x137)](),this[_0xe0f155(0x14f)]=this[_0xe0f155(0x137)](),this[_0xe0f155(0x187)]=this[_0xe0f155(0x165)](_0x5b48fe),this[_0xe0f155(0x16f)]=this[_0xe0f155(0x188)](_0x5b48fe),this[_0xe0f155(0x148)]=this[_0xe0f155(0x1b1)](_0x5b48fe),this[_0xe0f155(0x184)]=this[_0xe0f155(0x19a)](_0x5b48fe,_0x117375);const _0x307345={'cssClasses':{'showMoreButton':$o,'showMoreBalloon':Wo,'overflowContainer':Do,'controlsButton':Xo}};this[_0xe0f155(0x147)]=new _0xfc1d85(_0x5b48fe,this[_0xe0f155(0x18f)],_0x307345,this[_0xe0f155(0x15a)],this),this[_0xe0f155(0x197)]={'buttonView':this[_0xe0f155(0x187)],'balloonView':this[_0xe0f155(0x16f)],'hideMethod':this[_0xe0f155(0x1a2)][_0xe0f155(0x18b)](this),'showMethod':this[_0xe0f155(0x1a0)][_0xe0f155(0x18b)](this)},this[_0xe0f155(0x13e)](),this[_0xe0f155(0x167)]();}[_0x5aa4aa(0x18a)](){const _0x5ef417=_0x5aa4aa;super[_0x5ef417(0x18a)](),this[_0x5ef417(0x179)](),this[_0x5ef417(0x147)][_0x5ef417(0x155)](this[_0x5ef417(0x17e)]),this[_0x5ef417(0x147)][_0x5ef417(0x172)]();}[_0x5aa4aa(0x199)](){const _0x65d9a=_0x5aa4aa;super[_0x65d9a(0x199)](),this[_0x65d9a(0x147)][_0x65d9a(0x199)](),this[_0x65d9a(0x184)][_0x65d9a(0x199)]();}[_0x5aa4aa(0x175)](_0x474df1,_0x3b8d0e){const _0x5badb2=_0x5aa4aa,_0x1fe178=this[_0x5badb2(0x1bf)](_0x474df1,_0x5badb2(0x1b5),!0x0,_0x3b8d0e);this[_0x5badb2(0x17d)](_0x1fe178,this[_0x5badb2(0x18f)]),this[_0x5badb2(0x147)][_0x5badb2(0x172)]();}[_0x5aa4aa(0x135)](_0x318170){const _0x6cc64b=_0x5aa4aa;this[_0x6cc64b(0x15d)](_0x318170,this[_0x6cc64b(0x18f)]),this[_0x6cc64b(0x15d)](_0x318170,this[_0x6cc64b(0x147)][_0x6cc64b(0x152)]),this[_0x6cc64b(0x147)][_0x6cc64b(0x172)]();}[_0x5aa4aa(0x136)](_0x2c2a57,_0x23abee){const _0x455492=_0x5aa4aa;let _0x3855c6=this[_0x455492(0x18f)][_0x455492(0x176)](_0x3266a0=>_0x3266a0['id']===_0x2c2a57);_0x3855c6||(_0x3855c6=this[_0x455492(0x147)][_0x455492(0x152)][_0x455492(0x176)](_0x4132ba=>_0x4132ba['id']===_0x2c2a57)),_0x3855c6&&(_0x3855c6[_0x455492(0x1be)]=_0x23abee);}[_0x5aa4aa(0x1b9)](_0x34949b){const _0x5abccb=_0x5aa4aa;this[_0x5abccb(0x14f)][_0x5abccb(0x1ab)]();for(const _0x3f38ff of _0x34949b){const _0x43f72f=this[_0x5abccb(0x1bf)](_0x3f38ff,_0x5abccb(0x1b4),!0x1,!0x1);this[_0x5abccb(0x17d)](_0x43f72f,this[_0x5abccb(0x14f)]);}}[_0x5aa4aa(0x17c)](){const _0x560150=_0x5aa4aa;this[_0x560150(0x18f)][_0x560150(0x1ab)](),this[_0x560150(0x147)][_0x560150(0x1ab)]();}[_0x5aa4aa(0x138)](){const _0x3186af=_0x5aa4aa;this[_0x3186af(0x14f)][_0x3186af(0x1ab)]();}[_0x5aa4aa(0x15e)](_0x5e67fb,_0x4c1415,_0x5069f5){const _0x33cb26=_0x5aa4aa;this[_0x33cb26(0x184)][_0x33cb26(0x15e)](_0x5e67fb,_0x4c1415,_0x5069f5);}[_0x5aa4aa(0x1a2)](){const _0x788766=_0x5aa4aa;this[_0x788766(0x1ad)](!0x1);}[_0x5aa4aa(0x1a0)](){const _0x33e9cb=_0x5aa4aa;this[_0x33e9cb(0x1ad)](!0x0);}[_0x5aa4aa(0x17a)](){const _0x4e3b42=_0x5aa4aa;this[_0x4e3b42(0x148)][_0x4e3b42(0x150)](),this[_0x4e3b42(0x187)][_0x4e3b42(0x19e)]=!0x1,this[_0x4e3b42(0x1ac)]&&this[_0x4e3b42(0x1ac)][_0x4e3b42(0x1ab)]();}[_0x5aa4aa(0x1b3)](){const _0x4c4898=_0x5aa4aa;this[_0x4c4898(0x148)][_0x4c4898(0x1b0)](),this[_0x4c4898(0x187)][_0x4c4898(0x19e)]=!0x0;}[_0x5aa4aa(0x163)]({source:_0xb0b1ec,withBackButton:_0x230052}){const _0x1ee97b=_0x5aa4aa;this[_0x1ee97b(0x184)][_0x1ee97b(0x189)]({'source':_0xb0b1ec,'withBackButton':_0x230052}),this[_0x1ee97b(0x187)][_0x1ee97b(0x19e)]=!0x0;}[_0x5aa4aa(0x19b)](_0x22c4a6,_0x28fc1c,_0x4aea69,_0x1df71d){const _0x22efa1=_0x5aa4aa;this[_0x22efa1(0x184)][_0x22efa1(0x19b)](_0x22c4a6,_0x4aea69,_0x1df71d);}[_0x5aa4aa(0x1b8)](_0x3136d7){const _0x1afefc=_0x5aa4aa;this[_0x1afefc(0x184)][_0x1afefc(0x1b8)](_0x3136d7),this[_0x1afefc(0x187)][_0x1afefc(0x19e)]=!0x1;}[_0x5aa4aa(0x168)](_0x4cad6f){const _0x44e773=_0x5aa4aa;this[_0x44e773(0x1c6)](this[_0x44e773(0x16f)],this[_0x44e773(0x162)],_0x4cad6f),this[_0x44e773(0x193)](_0x4cad6f);}[_0x5aa4aa(0x193)](_0x5241cc){const _0x550ebf=_0x5aa4aa,_0x5eb210=!_0x5241cc[_0x550ebf(0x1a7)][_0x550ebf(0x171)]&&_0x5241cc[_0x550ebf(0x1a7)][_0x550ebf(0x16d)],_0x20dddf=_0x5241cc[_0x550ebf(0x17f)][_0x550ebf(0x16d)],_0x5ca415=_0x5241cc[_0x550ebf(0x196)][_0x550ebf(0x16d)],_0x5881c3=_0x5241cc[_0x550ebf(0x1c7)][_0x550ebf(0x19d)]>0x0,_0x4fdb0d=_0x5241cc[_0x550ebf(0x174)]&&_0x5241cc[_0x550ebf(0x174)][_0x550ebf(0x19d)]>0x0;this[_0x550ebf(0x187)][_0x550ebf(0x19f)]=_0x5eb210||_0x20dddf||_0x5ca415||_0x5881c3||_0x4fdb0d;}[_0x5aa4aa(0x13e)](){const _0x55b6d9=_0x5aa4aa;this[_0x55b6d9(0x198)]({'tag':_0x55b6d9(0x195),'attributes':{'class':[Uo,_0x55b6d9(0x194)]},'children':[{'tag':_0x55b6d9(0x195),'attributes':{'class':Lo},'children':this[_0x55b6d9(0x18f)]}]});}[_0x5aa4aa(0x167)](){const _0x49a811=_0x5aa4aa;this[_0x49a811(0x187)]['on'](_0x49a811(0x14e),()=>{const _0x3b4ca8=_0x49a811;this[_0x3b4ca8(0x149)]();});}[_0x5aa4aa(0x165)](_0x4871b6){const _0x204765=_0x5aa4aa,_0x48ca0e=new _0x3f1ab6(_0x4871b6);return _0x48ca0e[_0x204765(0x1b6)]({'label':_0x330cce(_0x4871b6,_0x204765(0x14b)),'class':Xo+'\x20'+Mo,'icon':_0x28516a,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x48ca0e;}[_0x5aa4aa(0x188)](_0x4ea810){const _0x3e0f73=_0x5aa4aa;return this[_0x3e0f73(0x1c4)](_0x4ea810,No);}[_0x5aa4aa(0x1b1)](_0x3ecff6){const _0x915725=_0x5aa4aa,_0x51cf43=this[_0x915725(0x1c4)](_0x3ecff6,Ho);return this[_0x915725(0x1b7)](_0x51cf43,_0x3ecff6),_0x51cf43;}[_0x5aa4aa(0x19a)](_0x2b1387,_0xfc47bc){const _0x513852=_0x5aa4aa,_0x37ab96={'searchInputVisibleFrom':_0xfc47bc[_0x513852(0x1af)],'onBackToContext':()=>{const _0x3357e7=_0x513852;this[_0x3357e7(0x1a0)](),this[_0x3357e7(0x16f)][_0x3357e7(0x156)]({'target':this[_0x3357e7(0x187)][_0x3357e7(0x17e)],'limiter':this[_0x3357e7(0x14d)](),'positions':zo});},'onResourceSelected':(_0x389eb4,_0x21602e)=>{const _0x169647=_0x513852;this[_0x169647(0x1c9)](_0x169647(0x159),{'source':_0x389eb4,'resource':_0x21602e});},'onLoadSourceResources':_0x3051ec=>{const _0x497eca=_0x513852;this[_0x497eca(0x1c9)](_0x497eca(0x144),_0x3051ec);},'onBalloonClosed':()=>{const _0x3beba3=_0x513852;this[_0x3beba3(0x187)][_0x3beba3(0x19e)]=!0x1;},'getLimiterElement':()=>this[_0x513852(0x14d)](),'getTargetElement':()=>this[_0x513852(0x187)][_0x513852(0x17e)]};return new _0x5468b9(_0x2b1387,_0xfc47bc[_0x513852(0x15a)],_0x37ab96);}[_0x5aa4aa(0x14d)](){const _0x2dceff=_0x5aa4aa;return this[_0x2dceff(0x17e)]?.[_0x2dceff(0x143)]('.'+qo)||document[_0x2dceff(0x182)];}[_0x5aa4aa(0x1c4)](_0x4ef5e9,_0x4be51c){const _0x53a815=_0x5aa4aa,_0x3135c1=new _0x188dc9(_0x4ef5e9);return _0x3135c1[_0x53a815(0x1c8)]({'attributes':{'class':_0x4be51c}}),this[_0x53a815(0x15a)][_0x53a815(0x1c2)](_0x3135c1),_0x3135c1;}[_0x5aa4aa(0x1c6)](_0x2ee558,_0x6d1e00,_0x285bb8){const _0x357f96=_0x5aa4aa;if(_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1ab)](),!_0x285bb8[_0x357f96(0x1a7)][_0x357f96(0x171)]&&_0x285bb8[_0x357f96(0x1a7)][_0x357f96(0x16d)]){const _0x4cda68=this[_0x357f96(0x15c)](_0x6d1e00,{'label':_0x330cce(_0x6d1e00,_0x357f96(0x166)),'icon':_0x30e002});_0x4cda68['on'](_0x357f96(0x14e),()=>{const _0x5e9c38=_0x357f96;this[_0x5e9c38(0x1c9)](_0x5e9c38(0x160)),this[_0x5e9c38(0x1a2)]();}),_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x4cda68);}if(_0x285bb8[_0x357f96(0x17f)][_0x357f96(0x16d)]){const _0x5d8528=this[_0x357f96(0x15c)](_0x6d1e00,{'label':_0x330cce(_0x6d1e00,_0x357f96(0x164)),'icon':_0x4e8400});_0x5d8528['on'](_0x357f96(0x14e),()=>{const _0x259448=_0x357f96;this[_0x259448(0x1a2)](),this[_0x259448(0x1b3)](),this[_0x259448(0x148)][_0x259448(0x156)]({'target':this[_0x259448(0x187)][_0x259448(0x17e)],'limiter':this[_0x259448(0x14d)](),'positions':zo}),this[_0x259448(0x1ac)][_0x259448(0x1a1)]();}),_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x5d8528);}if(_0x285bb8[_0x357f96(0x196)][_0x357f96(0x16d)]){const _0x33814b=new _0x5b8dd7(_0x6d1e00);_0x33814b[_0x357f96(0x1b6)]({'label':_0x330cce(_0x6d1e00,_0x357f96(0x139)),'icon':_0x130f20,'withText':!0x0,'tooltip':!0x0,'class':jo,'allowMultipleFiles':!0x0}),_0x33814b['on'](_0x357f96(0x14e),()=>{const _0x514195=_0x357f96;this[_0x514195(0x1a2)]();}),_0x33814b['on'](_0x357f96(0x185),(_0x380056,_0x42e64f)=>{const _0x52c0e0=_0x357f96;this[_0x52c0e0(0x1c9)](_0x52c0e0(0x18e),_0x42e64f);}),_0x33814b[_0x357f96(0x1a4)]=!0x0,_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x33814b);}for(const _0x21df9d of _0x285bb8[_0x357f96(0x1c7)]){const _0x46e4d7=this[_0x357f96(0x15c)](_0x6d1e00,{'label':_0x21df9d[_0x357f96(0x18d)],'icon':_0x21df9d[_0x357f96(0x142)]||_0x3c8f62,'type':_0x357f96(0x15b)});_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x46e4d7),_0x46e4d7['on'](_0x357f96(0x14e),()=>{const _0x50cbe9=_0x357f96;this[_0x50cbe9(0x1a2)](),this[_0x50cbe9(0x163)]({'source':_0x21df9d,'withBackButton':!this[_0x50cbe9(0x1c5)]});});}for(const _0x2dea4c of _0x285bb8[_0x357f96(0x174)]||[]){const _0x11cf12=this[_0x357f96(0x15c)](_0x6d1e00,{'label':_0x2dea4c[_0x357f96(0x18d)],'icon':_0x2dea4c[_0x357f96(0x142)]||_0x3c8f62,'type':_0x357f96(0x133)});_0x2ee558[_0x357f96(0x191)][_0x357f96(0x1c2)](_0x11cf12),_0x11cf12['on'](_0x357f96(0x14e),()=>{const _0x17ff4d=_0x357f96;this[_0x17ff4d(0x1a2)](),this[_0x17ff4d(0x1c9)](_0x17ff4d(0x1a6),_0x2dea4c);});}this[_0x357f96(0x1c5)]=0x1===_0x2ee558[_0x357f96(0x191)][_0x357f96(0x19d)],this[_0x357f96(0x1ac)][_0x357f96(0x169)]=!this[_0x357f96(0x1c5)];}[_0x5aa4aa(0x1b7)](_0x1b1e98,_0x56aca7){const _0xbf5023=_0x5aa4aa;this[_0xbf5023(0x1ac)]=new _0x98802e(_0x56aca7),this[_0xbf5023(0x1ac)]['on'](_0xbf5023(0x134),(_0xa8dd32,_0x1a479c)=>{const _0x4adf93=_0xbf5023;this[_0x4adf93(0x170)](_0x1a479c);}),this[_0xbf5023(0x1ac)]['on'](_0xbf5023(0x180),()=>{const _0x604506=_0xbf5023;this[_0x604506(0x17a)](),this[_0x604506(0x1c5)]||(this[_0x604506(0x1a0)](),this[_0x604506(0x16f)][_0x604506(0x156)]({'target':this[_0x604506(0x187)][_0x604506(0x17e)],'limiter':this[_0x604506(0x14d)](),'positions':zo}));}),this[_0xbf5023(0x1ac)]['on'](_0xbf5023(0x140),()=>{const _0x5ba16b=_0xbf5023;this[_0x5ba16b(0x148)][_0x5ba16b(0x17b)]&&this[_0x5ba16b(0x148)][_0x5ba16b(0x156)]({'target':this[_0x5ba16b(0x187)][_0x5ba16b(0x17e)],'limiter':this[_0x5ba16b(0x14d)](),'positions':zo});}),_0x1b1e98[_0xbf5023(0x191)][_0xbf5023(0x1c2)](this[_0xbf5023(0x1ac)]);}[_0x5aa4aa(0x15c)](_0x3d74fc,_0x18a54a){const _0x467f01=_0x5aa4aa,_0x74b9db=_0x467f01(0x15b)===_0x18a54a[_0x467f01(0x1a3)]?new SourcesBalloonButtonView(_0x3d74fc):new _0x3f1ab6(_0x3d74fc);return _0x74b9db[_0x467f01(0x1b6)]({'label':_0x18a54a[_0x467f01(0x18d)],'icon':_0x18a54a[_0x467f01(0x142)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':jo}),_0x74b9db;}[_0x5aa4aa(0x179)](){const _0x315fa6=_0x5aa4aa;this[_0x315fa6(0x173)](),this[_0x315fa6(0x183)]();}[_0x5aa4aa(0x183)](){const _0x1bf279=_0x5aa4aa;_0xbe59cf({'emitter':this[_0x1bf279(0x148)],'contextElements':[this[_0x1bf279(0x148)][_0x1bf279(0x17e)]],'callback':()=>{const _0x8d6407=_0x1bf279;this[_0x8d6407(0x17a)]();},'activator':()=>this[_0x1bf279(0x148)][_0x1bf279(0x17b)]});}[_0x5aa4aa(0x1ad)](_0x3261b1){const _0xa6cbf1=_0x5aa4aa,_0x4f3234=this[_0xa6cbf1(0x197)];_0x4f3234[_0xa6cbf1(0x19c)][_0xa6cbf1(0x19e)]=_0x3261b1,_0x3261b1?_0x4f3234[_0xa6cbf1(0x153)][_0xa6cbf1(0x1b0)]():_0x4f3234[_0xa6cbf1(0x153)][_0xa6cbf1(0x150)]();}[_0x5aa4aa(0x173)](){const _0x515a02=_0x5aa4aa,{balloonView:_0x2fb522,buttonView:_0x3e4c9a,hideMethod:_0x371cdb}=this[_0x515a02(0x197)];_0xbe59cf({'emitter':_0x2fb522,'contextElements':[_0x2fb522[_0x515a02(0x17e)],_0x3e4c9a[_0x515a02(0x17e)]],'callback':()=>{_0x371cdb();},'activator':()=>_0x3e4c9a[_0x515a02(0x19e)]&&!this[_0x515a02(0x148)][_0x515a02(0x17b)]&&!this[_0x515a02(0x184)][_0x515a02(0x1a5)]()});}[_0x5aa4aa(0x1bf)](_0x20eb1f,_0x1c22a0,_0x44e45c=!0x1,_0x4106c4=!0x1){const _0x30cd09=_0x5aa4aa,_0x22b1be=_0x30cd09(0x1b4)===_0x1c22a0||!0x0===_0x20eb1f[_0x30cd09(0x177)],_0x43f3a7=new _0x393f94(this[_0x30cd09(0x162)],_0x20eb1f,_0x22b1be,_0x44e45c,_0x4106c4);return _0x22b1be||_0x43f3a7['on'](_0x30cd09(0x192),()=>{const _0x4f532e=_0x30cd09;this[_0x4f532e(0x1c9)](_0x4f532e(0x135),_0x43f3a7['id']);}),_0x43f3a7;}[_0x5aa4aa(0x17d)](_0xf31c8f,_0x42d835){const _0x3b5988=_0x5aa4aa;_0x42d835[_0x3b5988(0x1c2)](_0xf31c8f,0x0);}[_0x5aa4aa(0x15d)](_0x2184b8,_0x3e221d){const _0x598f7f=_0x5aa4aa,_0x257a1a=_0x3e221d[_0x598f7f(0x176)](_0x35ae56=>_0x35ae56['id']===_0x2184b8);_0x257a1a&&_0x3e221d[_0x598f7f(0x141)](_0x257a1a);}[_0x5aa4aa(0x149)](){const _0x580cd3=_0x5aa4aa;this[_0x580cd3(0x187)][_0x580cd3(0x19e)]?this[_0x580cd3(0x1a2)]():(this[_0x580cd3(0x1a0)](),this[_0x580cd3(0x16f)][_0x580cd3(0x156)]({'target':this[_0x580cd3(0x187)][_0x580cd3(0x17e)],'limiter':this[_0x580cd3(0x14d)](),'positions':zo}),this[_0x580cd3(0x1c5)]&&this[_0x580cd3(0x16f)][_0x580cd3(0x191)][_0x580cd3(0x1ae)](0x0)?.[_0x580cd3(0x1c9)](_0x580cd3(0x14e)));}[_0x5aa4aa(0x170)](_0x55fd07){const _0x54443f=_0x5aa4aa;this[_0x54443f(0x1ac)][_0x54443f(0x1ab)](),this[_0x54443f(0x17a)](),this[_0x54443f(0x1c9)](_0x54443f(0x158),_0x55fd07);}}export class SourcesBalloonButtonView extends _0x3f1ab6{[_0x5aa4aa(0x1b2)];constructor(_0x562082){const _0x3a8c84=_0x5aa4aa;super(_0x562082),this[_0x3a8c84(0x1b6)]({'withText':!0x0,'role':_0x3a8c84(0x16b)}),this[_0x3a8c84(0x1b2)]=this[_0x3a8c84(0x186)](),this[_0x3a8c84(0x1c8)]({'attributes':{'class':[Fo]}});}[_0x5aa4aa(0x18a)](){const _0x5db28d=_0x5aa4aa;super[_0x5db28d(0x18a)](),this[_0x5db28d(0x1ba)][_0x5db28d(0x1c2)](this[_0x5db28d(0x1b2)]);}[_0x5aa4aa(0x186)](){const _0x5858a6=_0x5aa4aa,_0x2b5b97=new _0x14e21f();return _0x2b5b97[_0x5858a6(0x191)]=_0x4a6f43,_0x2b5b97[_0x5858a6(0x1c8)]({'attributes':{'class':Fo+_0x5858a6(0x16e)}}),_0x2b5b97;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1cc1ac=_0x43c1;(function(_0x362d6f,_0x2710e4){const _0x3468d2=_0x43c1,_0x33bf66=_0x362d6f();while(!![]){try{const _0x3ca5dc=-parseInt(_0x3468d2(0x173))/0x1+-parseInt(_0x3468d2(0x15c))/0x2+-parseInt(_0x3468d2(0x16e))/0x3*(-parseInt(_0x3468d2(0x16b))/0x4)+parseInt(_0x3468d2(0x176))/0x5*(parseInt(_0x3468d2(0x15d))/0x6)+-parseInt(_0x3468d2(0x171))/0x7+-parseInt(_0x3468d2(0x163))/0x8*(-parseInt(_0x3468d2(0x160))/0x9)+parseInt(_0x3468d2(0x16f))/0xa;if(_0x3ca5dc===_0x2710e4)break;else _0x33bf66['push'](_0x33bf66['shift']());}catch(_0x92edb5){_0x33bf66['push'](_0x33bf66['shift']());}}}(_0x4165,0x74a90));function _0x4165(){const _0x388727=['ck-ai-chat-controls-loader-icon-dot','1425755hZJSYF','div','_loaderView','776660TAEnAE','6mbnFOp','abortPromptStream','ck-ai-button-secondary\x20ck-ai-button-stop-generating','467829xfWVKE','_createLoaderView','setTemplate','40kXQAVB','ck-reset_all','_createCancelButtonView','ck-ai-chat-controls-loader-icon','set','ck-ai-chat-controls-loader-wrapper','fire','locale','62452RqWSNt','AI_CHAT_STOP_GENERATING','_cancelButtonView','21gSRDhy','8464590YJhSzR','execute','773388ShOGzW','ck-ai-chat-controls-loader','524152FAzSIB','AI_CHAT_IS_WRITING'];_0x4165=function(){return _0x388727;};return _0x4165();}import{ButtonView as _0x11a98a,View as _0x197aaa}from'ckeditor5/src/ui.js';function _0x43c1(_0x5dc682,_0x2e6762){const _0x4165f4=_0x4165();return _0x43c1=function(_0x43c1e5,_0x19f910){_0x43c1e5=_0x43c1e5-0x15a;let _0x3c0ce1=_0x4165f4[_0x43c1e5];return _0x3c0ce1;},_0x43c1(_0x5dc682,_0x2e6762);}import{IconStop as _0x2351cc}from'ckeditor5/src/icons.js';import{getTranslation as _0x5bfab7}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x197aaa{[_0x1cc1ac(0x16d)];[_0x1cc1ac(0x15b)];constructor(_0x514038){const _0x16ff7d=_0x1cc1ac;super(_0x514038),this[_0x16ff7d(0x16d)]=this[_0x16ff7d(0x165)](),this[_0x16ff7d(0x15b)]=this[_0x16ff7d(0x161)](),this[_0x16ff7d(0x162)]({'tag':_0x16ff7d(0x15a),'attributes':{'class':['ck',_0x16ff7d(0x168),_0x16ff7d(0x164)]},'children':[this[_0x16ff7d(0x15b)],this[_0x16ff7d(0x16d)]]});}[_0x1cc1ac(0x165)](){const _0x11cdb1=_0x1cc1ac,_0x146928=new _0x11a98a(this[_0x11cdb1(0x16a)]);return _0x146928[_0x11cdb1(0x167)]({'label':_0x5bfab7(this[_0x11cdb1(0x16a)],_0x11cdb1(0x16c)),'withText':!0x0,'class':_0x11cdb1(0x15f),'icon':_0x2351cc}),_0x146928['on'](_0x11cdb1(0x170),()=>{const _0x3549a0=_0x11cdb1;this[_0x3549a0(0x169)](_0x3549a0(0x15e));}),_0x146928;}[_0x1cc1ac(0x161)](){const _0x51a8f2=_0x1cc1ac,_0x415793=new _0x197aaa(this[_0x51a8f2(0x16a)]);return _0x415793[_0x51a8f2(0x162)]({'tag':_0x51a8f2(0x15a),'attributes':{'class':[_0x51a8f2(0x172)]},'children':[{'tag':_0x51a8f2(0x15a),'attributes':{'class':[_0x51a8f2(0x166)]},'children':[{'tag':_0x51a8f2(0x15a),'attributes':{'class':[_0x51a8f2(0x175)]}},{'tag':_0x51a8f2(0x15a),'attributes':{'class':[_0x51a8f2(0x175)]}},{'tag':_0x51a8f2(0x15a),'attributes':{'class':[_0x51a8f2(0x175)]}}]},{'text':_0x5bfab7(this[_0x51a8f2(0x16a)],_0x51a8f2(0x174))}]}),_0x415793;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x4103(){const _0x3f98fb=['source','_createWebSearchButton','10MTeynP','reasoningActive','_reasoningButton','1727696MAcWiL','addMany','ck-ai-button-tertiary','modelDisplayMode','clear','text','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_DISABLE_REASONING','130JjUmSK','activeModelId','span','model','selectModel','AI_CHAT_COMMANDS','_modelSelectionDropdown','toggleWebSearch','name','webSearch','log','ck-ai-chat-controls__model-selection__item-capabilities','activeModelName','toggleReasoning','ck-ai-chat-controls-button--commands','set','isOn','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','locale','enabled','Commands\x20are\x20not\x20implemented\x20yet.','webSearchActive','setModel','AI_CHAT_ENABLE_WEB_SEARCH','ck-ai-chat-controls__model-selection__item-description','execute','length','add','capabilities','bind','ck-ai-chat__prompt-capabilities','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_SEARCH_WEB','bindTemplate','setTemplate','tooltip','label','ck-button__label','createCollection','AI_CHAT_CAPABILITIES_YES','6197118gXcMZA','ck-ai-chat-controls__model-name','content','fire','reasoning','enableModelSelector','_createModelSelectionDropdown','selector','_getCapabilityParts','54948oyJbkR','_modelNameView','_createCommandsButton','isVisible','24776541OXsejx','disableModelSelector','3074502ZTaXdT','listenTo','setWebSearch','_webSearchButton','modelSelectorEnabled','14ieacFO','description','style','AI_CHAT_ENABLE_REASONING','AI_CHAT_CAPABILITIES_NO','hidden','_createModelNameView','div','_commandsButton','button','_createReasoningButton','buttonView','extendTemplate','ck-hidden','isEnabled','setModelList','setReasoning','AI_CHAT_REASONING','2284366lqjfUh','menuitemradio','_modelSelectionDropdownItems','ck-ai-chat-controls-button','1157628IWKOtX','ck-ai-chat-controls__model-selection','AI_CHAT_DISABLE_WEB_SEARCH'];_0x4103=function(){return _0x3f98fb;};return _0x4103();}const _0x4ca1c8=_0x107f;(function(_0x4b88e,_0x40d3c6){const _0x96d785=_0x107f,_0x24b0f7=_0x4b88e();while(!![]){try{const _0x499b0d=parseInt(_0x96d785(0x125))/0x1+-parseInt(_0x96d785(0x121))/0x2+-parseInt(_0x96d785(0x16c))/0x3+parseInt(_0x96d785(0x166))/0x4*(parseInt(_0x96d785(0x135))/0x5)+-parseInt(_0x96d785(0x15d))/0x6+parseInt(_0x96d785(0x10f))/0x7*(-parseInt(_0x96d785(0x12d))/0x8)+-parseInt(_0x96d785(0x16a))/0x9*(-parseInt(_0x96d785(0x12a))/0xa);if(_0x499b0d===_0x40d3c6)break;else _0x24b0f7['push'](_0x24b0f7['shift']());}catch(_0x378515){_0x24b0f7['push'](_0x24b0f7['shift']());}}}(_0x4103,0x9b429));import{Collection as _0x13dfd8}from'ckeditor5/src/utils.js';function _0x107f(_0xf4a7b1,_0x459752){const _0x410384=_0x4103();return _0x107f=function(_0x107f52,_0x5c6434){_0x107f52=_0x107f52-0x10e;let _0x60e051=_0x410384[_0x107f52];return _0x60e051;},_0x107f(_0xf4a7b1,_0x459752);}import{IconAI as _0x2829b5,IconBulb as _0x17013f,IconWeb as _0x199264}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x304a35,ButtonLabelView as _0x473e2b,ButtonView as _0xe26c3e,createDropdown as _0x1997a0,IconView as _0x4bb74a,UIModel as _0x5622a7,View as _0x11c665}from'ckeditor5/src/ui.js';import{getTranslation as _0x13c993}from'../../../aicore/utils/common-translations.js';const Go=_0x4ca1c8(0x153),Uo=_0x4ca1c8(0x124),Yo=_0x4ca1c8(0x143),qo=_0x4ca1c8(0x12f),zo=_0x4ca1c8(0x126),Fo=_0x4ca1c8(0x154),Jo=_0x4ca1c8(0x14d),Ko=_0x4ca1c8(0x140),Qo='n';export class AIChatPromptCapabilitiesView extends _0x11c665{[_0x4ca1c8(0x16f)];[_0x4ca1c8(0x12c)];[_0x4ca1c8(0x117)];[_0x4ca1c8(0x13b)];[_0x4ca1c8(0x123)];[_0x4ca1c8(0x167)];constructor(_0x6a13b0){const _0x385d74=_0x4ca1c8;super(_0x6a13b0),this[_0x385d74(0x144)](_0x385d74(0x14a),!0x1),this[_0x385d74(0x144)](_0x385d74(0x12b),!0x1),this[_0x385d74(0x144)](_0x385d74(0x130),_0x385d74(0x164)),this[_0x385d74(0x144)](_0x385d74(0x10e),!0x0),this[_0x385d74(0x144)](_0x385d74(0x136),null),this[_0x385d74(0x144)](_0x385d74(0x141),null),this[_0x385d74(0x13b)]=this[_0x385d74(0x163)](),this[_0x385d74(0x167)]=this[_0x385d74(0x115)](),this[_0x385d74(0x16f)]=this[_0x385d74(0x129)](),this[_0x385d74(0x12c)]=this[_0x385d74(0x119)](),this[_0x385d74(0x117)]=this[_0x385d74(0x168)](),this[_0x385d74(0x13b)][_0x385d74(0x11a)][_0x385d74(0x152)](_0x385d74(0x169))['to'](this,_0x385d74(0x130),_0x23b9aa=>_0x385d74(0x164)===_0x23b9aa),this[_0x385d74(0x13b)][_0x385d74(0x11a)][_0x385d74(0x152)](_0x385d74(0x158))['to'](this,_0x385d74(0x10e),_0x1253ab=>_0x1253ab?this[_0x385d74(0x13b)][_0x385d74(0x11a)][_0x385d74(0x159)]:_0x13c993(this[_0x385d74(0x147)],_0x385d74(0x133))),this[_0x385d74(0x13b)][_0x385d74(0x152)](_0x385d74(0x11d))['to'](this,_0x385d74(0x10e),_0x549111=>_0x549111),this[_0x385d74(0x16f)][_0x385d74(0x152)](_0x385d74(0x145))['to'](this,_0x385d74(0x14a),_0x26e775=>_0x26e775),this[_0x385d74(0x16f)][_0x385d74(0x152)](_0x385d74(0x158))['to'](this,_0x385d74(0x14a),_0x49956b=>_0x13c993(this[_0x385d74(0x147)],_0x49956b?_0x385d74(0x127):_0x385d74(0x14c))),this[_0x385d74(0x12c)][_0x385d74(0x152)](_0x385d74(0x145))['to'](this,_0x385d74(0x12b),_0x43d72d=>_0x43d72d),this[_0x385d74(0x12c)][_0x385d74(0x152)](_0x385d74(0x158))['to'](this,_0x385d74(0x12b),_0x3728bc=>_0x13c993(this[_0x385d74(0x147)],_0x3728bc?_0x385d74(0x134):_0x385d74(0x112))),this[_0x385d74(0x157)]({'tag':_0x385d74(0x116),'attributes':{'class':[Go]},'children':[this[_0x385d74(0x13b)],this[_0x385d74(0x167)],this[_0x385d74(0x16f)],this[_0x385d74(0x12c)],this[_0x385d74(0x117)]]}),this[_0x385d74(0x123)]=new _0x13dfd8(),_0x304a35(this[_0x385d74(0x13b)],this[_0x385d74(0x123)]);}[_0x4ca1c8(0x11e)](_0x156eb8,_0x25fcca){const _0x3dd0ac=_0x4ca1c8;if(_0x25fcca)this[_0x3dd0ac(0x144)](_0x3dd0ac(0x130),_0x3dd0ac(0x114));else{const _0x222369=0x1===_0x156eb8[_0x3dd0ac(0x14f)];this[_0x3dd0ac(0x144)](_0x3dd0ac(0x130),_0x222369?_0x3dd0ac(0x13d):_0x3dd0ac(0x164));}if(this[_0x3dd0ac(0x123)][_0x3dd0ac(0x131)](),_0x156eb8?.[_0x3dd0ac(0x14f)])for(const _0x3e3b97 of _0x156eb8){const _0x70e7c0=new _0x5622a7({'label':_0x3e3b97[_0x3dd0ac(0x13d)],'withText':!0x0,'role':_0x3dd0ac(0x122),'id':_0x3e3b97['id'],'model':_0x3e3b97});_0x70e7c0[_0x3dd0ac(0x152)](_0x3dd0ac(0x145))['to'](this,_0x3dd0ac(0x136),_0x2e480c=>_0x2e480c===_0x3e3b97['id']),this[_0x3dd0ac(0x123)][_0x3dd0ac(0x150)]({'type':_0x3dd0ac(0x118),'model':_0x70e7c0,'labelView':new ko(this[_0x3dd0ac(0x147)],_0x3e3b97)});}}[_0x4ca1c8(0x16e)](_0x56c5ea){const _0x44a700=_0x4ca1c8;this[_0x44a700(0x144)](_0x44a700(0x14a),_0x56c5ea);}[_0x4ca1c8(0x11f)](_0x31fc3c){const _0x11c4af=_0x4ca1c8;this[_0x11c4af(0x144)](_0x11c4af(0x12b),_0x31fc3c);}[_0x4ca1c8(0x14b)](_0x394b21){const _0x3d76c9=_0x4ca1c8;if(!_0x394b21)return;this[_0x3d76c9(0x136)]=_0x394b21['id'],this[_0x3d76c9(0x141)]=_0x394b21[_0x3d76c9(0x13d)]||_0x394b21['id'],this[_0x3d76c9(0x13b)][_0x3d76c9(0x11a)][_0x3d76c9(0x144)](_0x3d76c9(0x159),_0x394b21[_0x3d76c9(0x13d)]),this[_0x3d76c9(0x13b)][_0x3d76c9(0x11a)][_0x3d76c9(0x144)](_0x3d76c9(0x158),_0x394b21[_0x3d76c9(0x13d)]);const _0x2949ac=_0x394b21[_0x3d76c9(0x151)][_0x3d76c9(0x13e)]?.[_0x3d76c9(0x148)]??!0x1;this[_0x3d76c9(0x144)](_0x3d76c9(0x14a),!0x1),this[_0x3d76c9(0x16f)][_0x3d76c9(0x144)](_0x3d76c9(0x145),!0x1),this[_0x3d76c9(0x16f)][_0x3d76c9(0x144)](_0x3d76c9(0x11d),_0x2949ac),this[_0x3d76c9(0x16f)][_0x3d76c9(0x144)](_0x3d76c9(0x169),_0x2949ac);const _0x5c95ed=_0x394b21[_0x3d76c9(0x151)][_0x3d76c9(0x161)]?.[_0x3d76c9(0x148)]??!0x1;this[_0x3d76c9(0x144)](_0x3d76c9(0x12b),!0x1),this[_0x3d76c9(0x12c)][_0x3d76c9(0x144)](_0x3d76c9(0x145),!0x1),this[_0x3d76c9(0x12c)][_0x3d76c9(0x144)](_0x3d76c9(0x11d),_0x5c95ed),this[_0x3d76c9(0x12c)][_0x3d76c9(0x144)](_0x3d76c9(0x169),_0x5c95ed);}[_0x4ca1c8(0x162)](){const _0x35834e=_0x4ca1c8;this[_0x35834e(0x144)](_0x35834e(0x10e),!0x0);}[_0x4ca1c8(0x16b)](_0x3ffd65){const _0x37e2dd=_0x4ca1c8;this[_0x37e2dd(0x144)](_0x37e2dd(0x10e),!0x1),_0x3ffd65&&this[_0x37e2dd(0x144)](_0x37e2dd(0x130),_0x37e2dd(0x114));}[_0x4ca1c8(0x129)](){const _0x2617a3=_0x4ca1c8,_0x19d0c2=new _0xe26c3e();return _0x19d0c2[_0x2617a3(0x144)]({'label':_0x13c993(this[_0x2617a3(0x147)],_0x2617a3(0x155)),'icon':_0x199264,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Qo}),_0x19d0c2['on'](_0x2617a3(0x14e),()=>{const _0x7b4fa1=_0x2617a3;this[_0x7b4fa1(0x160)](_0x7b4fa1(0x13c));}),_0x19d0c2;}[_0x4ca1c8(0x119)](){const _0x497461=_0x4ca1c8,_0x46adc4=new _0xe26c3e();return _0x46adc4[_0x497461(0x144)]({'label':_0x13c993(this[_0x497461(0x147)],_0x497461(0x120)),'icon':_0x17013f,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Qo}),_0x46adc4['on'](_0x497461(0x14e),()=>{const _0x145581=_0x497461;this[_0x145581(0x160)](_0x145581(0x142));}),_0x46adc4;}[_0x4ca1c8(0x168)](){const _0x51ef77=_0x4ca1c8,_0x4a7a86=new _0xe26c3e();return _0x4a7a86[_0x51ef77(0x144)]({'label':_0x13c993(this[_0x51ef77(0x147)],_0x51ef77(0x13a)),'icon':_0x2829b5,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x13c993(this[_0x51ef77(0x147)],_0x51ef77(0x13a)),'tooltipPosition':Qo}),_0x4a7a86[_0x51ef77(0x11b)]({'attributes':{'class':[Yo]}}),_0x4a7a86['on'](_0x51ef77(0x14e),()=>{const _0x3318ed=_0x51ef77;console[_0x3318ed(0x13f)](_0x3318ed(0x149)),alert(_0x3318ed(0x149));}),_0x4a7a86;}[_0x4ca1c8(0x163)](){const _0x549b87=_0x4ca1c8,_0x23b0ed=_0x1997a0(this[_0x549b87(0x147)]);return _0x23b0ed[_0x549b87(0x144)]({'panelPosition':'ne','class':[zo]}),_0x23b0ed[_0x549b87(0x11a)][_0x549b87(0x144)]({'label':_0x13c993(this[_0x549b87(0x147)],_0x549b87(0x146)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Qo,'class':qo}),this[_0x549b87(0x16d)](_0x23b0ed,_0x549b87(0x14e),_0x2f7a01=>{const _0x5884ae=_0x549b87;this[_0x5884ae(0x160)](_0x5884ae(0x139),_0x2f7a01[_0x5884ae(0x128)][_0x5884ae(0x138)]);}),_0x23b0ed;}[_0x4ca1c8(0x115)](){const _0x524439=_0x4ca1c8,_0x595710=new _o(this[_0x524439(0x147)]);return _0x595710[_0x524439(0x152)](_0x524439(0x132))['to'](this,_0x524439(0x141),_0x4c5d0b=>_0x4c5d0b??''),_0x595710[_0x524439(0x152)](_0x524439(0x169))['to'](this,_0x524439(0x130),_0x1d2104=>_0x524439(0x13d)===_0x1d2104),_0x595710;}}class ko extends _0x473e2b{constructor(_0x475472,_0x55e59d){const _0x5a785f=_0x4ca1c8;super();const _0x24b6d1=this[_0x5a785f(0x156)],_0x33cd42=this[_0x5a785f(0x15b)]();this[_0x5a785f(0x157)]({'tag':_0x5a785f(0x116),'attributes':{'class':['ck',_0x5a785f(0x15a)],'style':_0x24b6d1['to'](_0x5a785f(0x111)),'id':_0x24b6d1['to']('id')},'children':[{'tag':_0x5a785f(0x116),'attributes':{'class':[Fo]},'children':[{'text':_0x24b6d1['to'](_0x5a785f(0x132))}]},{'tag':_0x5a785f(0x116),'attributes':{'class':[Jo]},'children':[{'tag':_0x5a785f(0x137),'children':[{'text':_0x55e59d[_0x5a785f(0x110)]}]}]},{'tag':_0x5a785f(0x116),'attributes':{'class':[Ko]},'children':_0x33cd42}]}),_0x33cd42[_0x5a785f(0x12e)](this[_0x5a785f(0x165)](_0x475472,_0x199264,_0x5a785f(0x155),_0x55e59d[_0x5a785f(0x151)][_0x5a785f(0x13e)]?.[_0x5a785f(0x148)]??!0x1)),_0x33cd42[_0x5a785f(0x12e)](this[_0x5a785f(0x165)](_0x475472,_0x17013f,_0x5a785f(0x120),_0x55e59d[_0x5a785f(0x151)][_0x5a785f(0x161)]?.[_0x5a785f(0x148)]??!0x1));}[_0x4ca1c8(0x165)](_0x24253c,_0x51b423,_0x311da9,_0x3a5aa9){const _0x4afe3c=_0x4ca1c8,_0x5f20ca=new _0x4bb74a();_0x5f20ca[_0x4afe3c(0x15f)]=_0x51b423;const _0x3f558a=new _0x11c665(_0x24253c);_0x3f558a[_0x4afe3c(0x157)]({'tag':_0x4afe3c(0x137),'children':[{'text':_0x13c993(_0x24253c,_0x311da9)+':\x20'}]});const _0x31ebc6=new _0x11c665(_0x24253c);return _0x31ebc6[_0x4afe3c(0x157)]({'tag':_0x4afe3c(0x137),'children':[{'text':_0x13c993(_0x24253c,_0x3a5aa9?_0x4afe3c(0x15c):_0x4afe3c(0x113))}]}),[_0x5f20ca,_0x3f558a,_0x31ebc6];}}class _o extends _0x11c665{constructor(_0x1693f1){const _0x1c5ad2=_0x4ca1c8;super(_0x1693f1),this[_0x1c5ad2(0x144)](_0x1c5ad2(0x132),void 0x0),this[_0x1c5ad2(0x144)](_0x1c5ad2(0x169),!0x0);const _0xeaf68f=this[_0x1c5ad2(0x156)];this[_0x1c5ad2(0x157)]({'tag':_0x1c5ad2(0x137),'attributes':{'class':['ck',_0x1c5ad2(0x15e),_0xeaf68f['if'](_0x1c5ad2(0x169),_0x1c5ad2(0x11c),_0x35512c=>!_0x35512c)]},'children':[{'text':_0xeaf68f['to'](_0x1c5ad2(0x132))}]});}}
|
|
23
|
+
const _0x5470f1=_0x2191;(function(_0x178b61,_0x5c60e4){const _0x246b0a=_0x2191,_0x1c6ac3=_0x178b61();while(!![]){try{const _0xde4b=-parseInt(_0x246b0a(0xdb))/0x1+-parseInt(_0x246b0a(0xd3))/0x2+parseInt(_0x246b0a(0xc2))/0x3+-parseInt(_0x246b0a(0xf5))/0x4+parseInt(_0x246b0a(0x102))/0x5+-parseInt(_0x246b0a(0xd9))/0x6+parseInt(_0x246b0a(0x101))/0x7*(parseInt(_0x246b0a(0xd4))/0x8);if(_0xde4b===_0x5c60e4)break;else _0x1c6ac3['push'](_0x1c6ac3['shift']());}catch(_0x12a385){_0x1c6ac3['push'](_0x1c6ac3['shift']());}}}(_0x2bff,0x6651c));import{Collection as _0x40b21b}from'ckeditor5/src/utils.js';import{IconAI as _0x27a826,IconBulb as _0x2aff40,IconWeb as _0x1eff67}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3b4f17,ButtonLabelView as _0xb3ab28,ButtonView as _0x101216,createDropdown as _0x3fbc8c,IconView as _0x192eb7,UIModel as _0x658508,View as _0xa5e00}from'ckeditor5/src/ui.js';import{getTranslation as _0x566889}from'../../../aicore/utils/common-translations.js';const Ko=_0x5470f1(0xdd),Xo=_0x5470f1(0xf6),Qo=_0x5470f1(0xff),Zo=_0x5470f1(0xf4),tl=_0x5470f1(0xf2),el=_0x5470f1(0xdc),il=_0x5470f1(0xcb),sl=_0x5470f1(0xc3),ol='n';function _0x2191(_0x3dbf2e,_0x345b0b){const _0x2bff74=_0x2bff();return _0x2191=function(_0x219116,_0xea77ce){_0x219116=_0x219116-0xab;let _0x4233b2=_0x2bff74[_0x219116];return _0x4233b2;},_0x2191(_0x3dbf2e,_0x345b0b);}export class AIChatPromptCapabilitiesView extends _0xa5e00{[_0x5470f1(0xca)];[_0x5470f1(0xbd)];[_0x5470f1(0xd2)];[_0x5470f1(0xe5)];[_0x5470f1(0xb0)];[_0x5470f1(0xce)];constructor(_0x4256fa){const _0x46e6c7=_0x5470f1;super(_0x4256fa),this[_0x46e6c7(0xfc)](_0x46e6c7(0xd1),!0x1),this[_0x46e6c7(0xfc)](_0x46e6c7(0xfd),!0x1),this[_0x46e6c7(0xfc)](_0x46e6c7(0xe8),_0x46e6c7(0xd0)),this[_0x46e6c7(0xfc)](_0x46e6c7(0xeb),!0x0),this[_0x46e6c7(0xfc)](_0x46e6c7(0xfa),null),this[_0x46e6c7(0xfc)](_0x46e6c7(0xef),null),this[_0x46e6c7(0xe5)]=this[_0x46e6c7(0xe1)](),this[_0x46e6c7(0xce)]=this[_0x46e6c7(0xe2)](),this[_0x46e6c7(0xca)]=this[_0x46e6c7(0xbe)](),this[_0x46e6c7(0xbd)]=this[_0x46e6c7(0xb6)](),this[_0x46e6c7(0xd2)]=this[_0x46e6c7(0xe6)](),this[_0x46e6c7(0xe5)][_0x46e6c7(0xc4)][_0x46e6c7(0xcf)](_0x46e6c7(0xc9))['to'](this,_0x46e6c7(0xe8),_0xd69e8c=>_0x46e6c7(0xd0)===_0xd69e8c),this[_0x46e6c7(0xe5)][_0x46e6c7(0xc4)][_0x46e6c7(0xcf)](_0x46e6c7(0xac))['to'](this,_0x46e6c7(0xeb),_0x4e3a1f=>_0x4e3a1f?this[_0x46e6c7(0xe5)][_0x46e6c7(0xc4)][_0x46e6c7(0x109)]:_0x566889(this[_0x46e6c7(0xad)],_0x46e6c7(0xbf))),this[_0x46e6c7(0xe5)][_0x46e6c7(0xcf)](_0x46e6c7(0xe7))['to'](this,_0x46e6c7(0xeb),_0x9880f5=>_0x9880f5),this[_0x46e6c7(0xca)][_0x46e6c7(0xcf)](_0x46e6c7(0xb2))['to'](this,_0x46e6c7(0xd1),_0x33d11d=>_0x33d11d),this[_0x46e6c7(0xca)][_0x46e6c7(0xcf)](_0x46e6c7(0xac))['to'](this,_0x46e6c7(0xd1),_0x25c420=>_0x566889(this[_0x46e6c7(0xad)],_0x25c420?_0x46e6c7(0xbb):_0x46e6c7(0xf8))),this[_0x46e6c7(0xbd)][_0x46e6c7(0xcf)](_0x46e6c7(0xb2))['to'](this,_0x46e6c7(0xfd),_0x23a097=>_0x23a097),this[_0x46e6c7(0xbd)][_0x46e6c7(0xcf)](_0x46e6c7(0xac))['to'](this,_0x46e6c7(0xfd),_0x27207e=>_0x566889(this[_0x46e6c7(0xad)],_0x27207e?_0x46e6c7(0xc5):_0x46e6c7(0x106))),this[_0x46e6c7(0x108)]({'tag':_0x46e6c7(0xab),'attributes':{'class':[Ko]},'children':[this[_0x46e6c7(0xe5)],this[_0x46e6c7(0xce)],this[_0x46e6c7(0xca)],this[_0x46e6c7(0xbd)],this[_0x46e6c7(0xd2)]]}),this[_0x46e6c7(0xb0)]=new _0x40b21b(),_0x3b4f17(this[_0x46e6c7(0xe5)],this[_0x46e6c7(0xb0)]);}[_0x5470f1(0x103)](_0xd74fe2,_0x2468ac){const _0x10c1e9=_0x5470f1;if(_0x2468ac)this[_0x10c1e9(0xfc)](_0x10c1e9(0xe8),_0x10c1e9(0xaf));else{const _0x56038a=0x1===_0xd74fe2[_0x10c1e9(0xc8)];this[_0x10c1e9(0xfc)](_0x10c1e9(0xe8),_0x56038a?_0x10c1e9(0xda):_0x10c1e9(0xd0));}if(this[_0x10c1e9(0xb0)][_0x10c1e9(0xbc)](),_0xd74fe2?.[_0x10c1e9(0xc8)])for(const _0x3bafa2 of _0xd74fe2){const _0x9e575a=new _0x658508({'label':_0x3bafa2[_0x10c1e9(0xda)],'withText':!0x0,'role':_0x10c1e9(0xf3),'id':_0x3bafa2['id'],'model':_0x3bafa2});_0x9e575a[_0x10c1e9(0xcf)](_0x10c1e9(0xb2))['to'](this,_0x10c1e9(0xfa),_0x2632b9=>_0x2632b9===_0x3bafa2['id']),this[_0x10c1e9(0xb0)][_0x10c1e9(0xf9)]({'type':_0x10c1e9(0xb7),'model':_0x9e575a,'labelView':new ko(this[_0x10c1e9(0xad)],_0x3bafa2)});}}[_0x5470f1(0xf7)](_0x5a5d17){const _0x2b495e=_0x5470f1;this[_0x2b495e(0xfc)](_0x2b495e(0xd1),_0x5a5d17);}[_0x5470f1(0xed)](_0xa3c79a){const _0x5387cb=_0x5470f1;this[_0x5387cb(0xfc)](_0x5387cb(0xfd),_0xa3c79a);}[_0x5470f1(0xfb)](_0x59ac3d){const _0x3af313=_0x5470f1;if(!_0x59ac3d)return;this[_0x3af313(0xfa)]=_0x59ac3d['id'],this[_0x3af313(0xef)]=_0x59ac3d[_0x3af313(0xda)]||_0x59ac3d['id'],this[_0x3af313(0xe5)][_0x3af313(0xc4)][_0x3af313(0xfc)](_0x3af313(0x109),_0x59ac3d[_0x3af313(0xda)]),this[_0x3af313(0xe5)][_0x3af313(0xc4)][_0x3af313(0xfc)](_0x3af313(0xac),_0x59ac3d[_0x3af313(0xda)]);const _0x15f65f=_0x59ac3d[_0x3af313(0xfe)][_0x3af313(0xea)]?.[_0x3af313(0xd6)]??!0x1;this[_0x3af313(0xfc)](_0x3af313(0xd1),!0x1),this[_0x3af313(0xca)][_0x3af313(0xfc)](_0x3af313(0xb2),!0x1),this[_0x3af313(0xca)][_0x3af313(0xfc)](_0x3af313(0xe7),_0x15f65f),this[_0x3af313(0xca)][_0x3af313(0xfc)](_0x3af313(0xc9),_0x15f65f);const _0x302846=_0x59ac3d[_0x3af313(0xfe)][_0x3af313(0xb5)]?.[_0x3af313(0xd6)]??!0x1;this[_0x3af313(0xfc)](_0x3af313(0xfd),!0x1),this[_0x3af313(0xbd)][_0x3af313(0xfc)](_0x3af313(0xb2),!0x1),this[_0x3af313(0xbd)][_0x3af313(0xfc)](_0x3af313(0xe7),_0x302846),this[_0x3af313(0xbd)][_0x3af313(0xfc)](_0x3af313(0xc9),_0x302846);}[_0x5470f1(0xc7)](){const _0xff143a=_0x5470f1;this[_0xff143a(0xfc)](_0xff143a(0xeb),!0x0);}[_0x5470f1(0xc6)](_0x1f7a3f){const _0x58d98f=_0x5470f1;this[_0x58d98f(0xfc)](_0x58d98f(0xeb),!0x1),_0x1f7a3f&&this[_0x58d98f(0xfc)](_0x58d98f(0xe8),_0x58d98f(0xaf));}[_0x5470f1(0xbe)](){const _0x178244=_0x5470f1,_0x5234e1=new _0x101216();return _0x5234e1[_0x178244(0xfc)]({'label':_0x566889(this[_0x178244(0xad)],_0x178244(0xee)),'icon':_0x1eff67,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x5234e1['on'](_0x178244(0x104),()=>{const _0x5e00db=_0x178244;this[_0x5e00db(0x105)](_0x5e00db(0xb3));}),_0x5234e1;}[_0x5470f1(0xb6)](){const _0x36638d=_0x5470f1,_0x17fc18=new _0x101216();return _0x17fc18[_0x36638d(0xfc)]({'label':_0x566889(this[_0x36638d(0xad)],_0x36638d(0xe4)),'icon':_0x2aff40,'class':Xo,'isToggleable':!0x0,'tooltipPosition':ol}),_0x17fc18['on'](_0x36638d(0x104),()=>{const _0x56f7d9=_0x36638d;this[_0x56f7d9(0x105)](_0x56f7d9(0xcd));}),_0x17fc18;}[_0x5470f1(0xe6)](){const _0x5a5519=_0x5470f1,_0x39c40e=new _0x101216();return _0x39c40e[_0x5a5519(0xfc)]({'label':_0x566889(this[_0x5a5519(0xad)],_0x5a5519(0xde)),'icon':_0x27a826,'withText':!0x0,'class':Xo,'isToggleable':!0x0,'tooltip':_0x566889(this[_0x5a5519(0xad)],_0x5a5519(0xde)),'tooltipPosition':ol}),_0x39c40e[_0x5a5519(0xb8)]({'attributes':{'class':[Qo]}}),_0x39c40e['on'](_0x5a5519(0x104),()=>{const _0x37d5ad=_0x5a5519;console[_0x37d5ad(0xb4)](_0x37d5ad(0xba)),alert(_0x37d5ad(0xba));}),_0x39c40e;}[_0x5470f1(0xe1)](){const _0x26bb8d=_0x5470f1,_0x3570ad=_0x3fbc8c(this[_0x26bb8d(0xad)]);return _0x3570ad[_0x26bb8d(0xfc)]({'panelPosition':'ne','class':[tl]}),_0x3570ad[_0x26bb8d(0xc4)][_0x26bb8d(0xfc)]({'label':_0x566889(this[_0x26bb8d(0xad)],_0x26bb8d(0xd7)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':ol,'class':Zo}),this[_0x26bb8d(0xae)](_0x3570ad,_0x26bb8d(0x104),_0x211ccb=>{const _0x4cf78b=_0x26bb8d;this[_0x4cf78b(0x105)](_0x4cf78b(0xf1),_0x211ccb[_0x4cf78b(0xec)][_0x4cf78b(0xcc)]);}),_0x3570ad;}[_0x5470f1(0xe2)](){const _0x3fec29=_0x5470f1,_0x24f290=new _o(this[_0x3fec29(0xad)]);return _0x24f290[_0x3fec29(0xcf)](_0x3fec29(0xdf))['to'](this,_0x3fec29(0xef),_0x24775d=>_0x24775d??''),_0x24f290[_0x3fec29(0xcf)](_0x3fec29(0xc9))['to'](this,_0x3fec29(0xe8),_0x12a02c=>_0x3fec29(0xda)===_0x12a02c),_0x24f290;}}class ko extends _0xb3ab28{constructor(_0x4b79cb,_0x844469){const _0x1fb361=_0x5470f1;super();const _0x6bf051=this[_0x1fb361(0xb1)],_0xba2e61=this[_0x1fb361(0xe3)]();this[_0x1fb361(0x108)]({'tag':_0x1fb361(0xab),'attributes':{'class':['ck',_0x1fb361(0xc0)],'style':_0x6bf051['to'](_0x1fb361(0xd5)),'id':_0x6bf051['to']('id')},'children':[{'tag':_0x1fb361(0xab),'attributes':{'class':[el]},'children':[{'text':_0x6bf051['to'](_0x1fb361(0xdf))}]},{'tag':_0x1fb361(0xab),'attributes':{'class':[il]},'children':[{'tag':_0x1fb361(0x100),'children':[{'text':_0x844469[_0x1fb361(0xe0)]}]}]},{'tag':_0x1fb361(0xab),'attributes':{'class':[sl]},'children':_0xba2e61}]}),_0xba2e61[_0x1fb361(0xf0)](this[_0x1fb361(0xb9)](_0x4b79cb,_0x1eff67,_0x1fb361(0xee),_0x844469[_0x1fb361(0xfe)][_0x1fb361(0xea)]?.[_0x1fb361(0xd6)]??!0x1)),_0xba2e61[_0x1fb361(0xf0)](this[_0x1fb361(0xb9)](_0x4b79cb,_0x2aff40,_0x1fb361(0xe4),_0x844469[_0x1fb361(0xfe)][_0x1fb361(0xb5)]?.[_0x1fb361(0xd6)]??!0x1));}[_0x5470f1(0xb9)](_0x4c0fba,_0x7e85b5,_0xcc1e6d,_0x2057de){const _0x57f9ad=_0x5470f1,_0x121cb7=new _0x192eb7();_0x121cb7[_0x57f9ad(0x10a)]=_0x7e85b5;const _0x49cec8=new _0xa5e00(_0x4c0fba);_0x49cec8[_0x57f9ad(0x108)]({'tag':_0x57f9ad(0x100),'children':[{'text':_0x566889(_0x4c0fba,_0xcc1e6d)+':\x20'}]});const _0x2d4253=new _0xa5e00(_0x4c0fba);return _0x2d4253[_0x57f9ad(0x108)]({'tag':_0x57f9ad(0x100),'children':[{'text':_0x566889(_0x4c0fba,_0x2057de?_0x57f9ad(0xd8):_0x57f9ad(0xc1))}]}),[_0x121cb7,_0x49cec8,_0x2d4253];}}class _o extends _0xa5e00{constructor(_0x292b98){const _0x4b3765=_0x5470f1;super(_0x292b98),this[_0x4b3765(0xfc)](_0x4b3765(0xdf),void 0x0),this[_0x4b3765(0xfc)](_0x4b3765(0xc9),!0x0);const _0x322d6d=this[_0x4b3765(0xb1)];this[_0x4b3765(0x108)]({'tag':_0x4b3765(0x100),'attributes':{'class':['ck',_0x4b3765(0x107),_0x322d6d['if'](_0x4b3765(0xc9),_0x4b3765(0xe9),_0x15590d=>!_0x15590d)]},'children':[{'text':_0x322d6d['to'](_0x4b3765(0xdf))}]});}}function _0x2bff(){const _0x2e1703=['ck-ai-chat-controls-button','setWebSearch','AI_CHAT_ENABLE_WEB_SEARCH','add','activeModelId','setModel','set','reasoningActive','capabilities','ck-ai-chat-controls-button--commands','span','1395688JnSNKu','3985280FxNywo','setModelList','execute','fire','AI_CHAT_ENABLE_REASONING','ck-ai-chat-controls__model-name','setTemplate','label','content','div','tooltip','locale','listenTo','hidden','_modelSelectionDropdownItems','bindTemplate','isOn','toggleWebSearch','log','reasoning','_createReasoningButton','button','extendTemplate','_getCapabilityParts','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_DISABLE_WEB_SEARCH','clear','_reasoningButton','_createWebSearchButton','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','ck-button__label','AI_CHAT_CAPABILITIES_NO','685365tfBtWk','ck-ai-chat-controls__model-selection__item-capabilities','buttonView','AI_CHAT_DISABLE_REASONING','disableModelSelector','enableModelSelector','length','isVisible','_webSearchButton','ck-ai-chat-controls__model-selection__item-description','model','toggleReasoning','_modelNameView','bind','selector','webSearchActive','_commandsButton','183262kgTsVf','8aFjvvC','style','enabled','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','AI_CHAT_CAPABILITIES_YES','426444aHvfpi','name','444265Pqowii','ck-ai-chat-controls__model-selection__item-name','ck-ai-chat__prompt-capabilities','AI_CHAT_COMMANDS','text','description','_createModelSelectionDropdown','_createModelNameView','createCollection','AI_CHAT_REASONING','_modelSelectionDropdown','_createCommandsButton','isEnabled','modelDisplayMode','ck-hidden','webSearch','modelSelectorEnabled','source','setReasoning','AI_CHAT_SEARCH_WEB','activeModelName','addMany','selectModel','ck-ai-chat-controls__model-selection','menuitemradio','ck-ai-button-tertiary','795300RjUsdl'];_0x2bff=function(){return _0x2e1703;};return _0x2bff();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x522526=_0x5759;(function(_0x860b70,_0x42e238){const _0x60d253=_0x5759,_0x15d664=_0x860b70();while(!![]){try{const _0xe886d5=-parseInt(_0x60d253(0x192))/0x1+-parseInt(_0x60d253(0x1b4))/0x2*(parseInt(_0x60d253(0x180))/0x3)+-parseInt(_0x60d253(0x1a1))/0x4*(parseInt(_0x60d253(0x1ad))/0x5)+-parseInt(_0x60d253(0x193))/0x6*(parseInt(_0x60d253(0x18c))/0x7)+parseInt(_0x60d253(0x1a8))/0x8*(-parseInt(_0x60d253(0x183))/0x9)+-parseInt(_0x60d253(0x1c1))/0xa+-parseInt(_0x60d253(0x1a2))/0xb*(-parseInt(_0x60d253(0x1b8))/0xc);if(_0xe886d5===_0x42e238)break;else _0x15d664['push'](_0x15d664['shift']());}catch(_0x325e3b){_0x15d664['push'](_0x15d664['shift']());}}}(_0x2384,0xc2c86));import{IconSubmit as _0x41af55}from'ckeditor5/src/icons.js';function _0x2384(){const _0x460e37=['focusableChildren','px\x20-\x20var(--ck-spacing-tiny))','trim','8MpPQtx','width','AI_CHAT_LABEL_SUBMIT','left','MAX_ROWS','5IwWYgN','submitButtonView','contains','submit','locale','enter','right','2FTUGvS','render','focus','setPlaceholderText','24osfAsB','remove','fieldView','reset','fieldWrapperChildren','classList','set','calc(','style','10253620XhMdFr','_setUpAddContextButtonPositioning','_queryViewResizeObserver','value','destroy','_addContextButtonView','excludeScrollbarsAndBorders','2592573GxbsVo','sendUserMessage','isEmpty','836370hjQOMT','fire','setIsUploadInProgress','element','keystrokes','hasError','ck-ai-chat__prompt-submit-button','errorText','window','5493236aMtzoK','rtl','_createSubmitButton','AI_CHAT_PROMPT_EMPTY_ERROR','target','placeholder','931649iuaJZx','12vbxFqS','execute','update','requestAnimationFrame','minRows','queryView','extendTemplate','isUploadInProgress','ck-ai-chat__prompt-input_highlighted','ck-ai-chat__prompt-input','bind','uiLanguageDirection','add','isEnabled','5434472bXHqIy','36520418IFrLeG','maxRows','MIN_ROWS'];_0x2384=function(){return _0x460e37;};return _0x2384();}function _0x5759(_0x1b5e44,_0xd71a18){const _0x23845e=_0x2384();return _0x5759=function(_0x5759a7,_0x52b122){_0x5759a7=_0x5759a7-0x17e;let _0x276369=_0x23845e[_0x5759a7];return _0x276369;},_0x5759(_0x1b5e44,_0xd71a18);}import{ButtonView as _0x43dd03,AutocompleteView as _0xd85ea1,createLabeledTextarea as _0x4f6e48}from'ckeditor5/src/ui.js';import{global as _0x334c60,isVisible as _0x3d8c68,Rect as _0x577c4c,ResizeObserver as _0x4cfd27}from'ckeditor5/src/utils.js';import{getTranslation as _0x35dd8b}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x24f75f}from'./aichatpromptsuggestionslistview.js';import{escape as _0x523004}from'es-toolkit/compat';const ah=_0x522526(0x19b);export class AIChatPromptInputView extends _0xd85ea1{[_0x522526(0x1ae)];static [_0x522526(0x1a4)]=0x1;static [_0x522526(0x1ac)]=0xc;[_0x522526(0x17e)];[_0x522526(0x1c3)];constructor(_0x57af68,_0x583a7e){const _0x135066=_0x522526;super(_0x57af68,{'queryView':{'label':'','creator':_0x4f6e48,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x24f75f(_0x57af68),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x135066(0x1be)](_0x135066(0x182),!0x0),this[_0x135066(0x1be)](_0x135066(0x19a),!0x1),this[_0x135066(0x17e)]=_0x583a7e,this[_0x135066(0x1c3)]=null,this[_0x135066(0x198)][_0x135066(0x1ba)][_0x135066(0x197)]=AIChatPromptInputView[_0x135066(0x1a4)],this[_0x135066(0x198)][_0x135066(0x1ba)][_0x135066(0x1a3)]=AIChatPromptInputView[_0x135066(0x1ac)],this[_0x135066(0x198)][_0x135066(0x1bc)][_0x135066(0x19f)](this[_0x135066(0x17e)]),this[_0x135066(0x1c2)](),this[_0x135066(0x199)]({'attributes':{'class':['ck',_0x135066(0x19c)]}}),this[_0x135066(0x1ae)]=this[_0x135066(0x18e)](),this[_0x135066(0x1ae)][_0x135066(0x19d)](_0x135066(0x1a0))['to'](this,_0x135066(0x182),this,_0x135066(0x19a),(_0xf9abfe,_0x54fa2f)=>!_0xf9abfe&&!_0x54fa2f),this[_0x135066(0x1a5)][_0x135066(0x19f)](this[_0x135066(0x1ae)]);}[_0x522526(0x1b5)](){const _0x21203b=_0x522526;super[_0x21203b(0x1b5)](),this[_0x21203b(0x198)][_0x21203b(0x1bc)][_0x21203b(0x19f)](this[_0x21203b(0x1ae)]),this[_0x21203b(0x187)][_0x21203b(0x1be)](_0x21203b(0x1b2),(_0x4d3d94,_0x4895e3)=>{const _0x2a7cbd=_0x21203b;this[_0x2a7cbd(0x19a)]||this[_0x2a7cbd(0x182)]||_0x4d3d94[_0x2a7cbd(0x190)]==this[_0x2a7cbd(0x198)][_0x2a7cbd(0x1ba)][_0x2a7cbd(0x186)]&&(this[_0x2a7cbd(0x1b0)](),_0x4895e3());}),this[_0x21203b(0x198)][_0x21203b(0x1ba)]['on'](_0x21203b(0x195),()=>{const _0x33f00a=_0x21203b;this[_0x33f00a(0x182)]=''===this[_0x33f00a(0x198)][_0x33f00a(0x1ba)][_0x33f00a(0x186)][_0x33f00a(0x1c4)]?.[_0x33f00a(0x1a7)]();});}[_0x522526(0x1c5)](){const _0xf033b7=_0x522526;super[_0xf033b7(0x1c5)](),this[_0xf033b7(0x1c3)]&&this[_0xf033b7(0x1c3)][_0xf033b7(0x1c5)]();}[_0x522526(0x1b0)](){const _0x5810a2=_0x522526,_0x124322=this[_0x5810a2(0x198)][_0x5810a2(0x1ba)][_0x5810a2(0x186)][_0x5810a2(0x1c4)]?.[_0x5810a2(0x1a7)]();if(!_0x124322)return this[_0x5810a2(0x198)][_0x5810a2(0x18a)]=_0x35dd8b(this[_0x5810a2(0x1b1)],_0x5810a2(0x18f)),void(this[_0x5810a2(0x198)][_0x5810a2(0x1ba)][_0x5810a2(0x188)]=!0x0);this[_0x5810a2(0x198)][_0x5810a2(0x1ba)][_0x5810a2(0x188)]=!0x1;const _0x376239=_0x523004(_0x124322);this[_0x5810a2(0x184)](_0x5810a2(0x181),_0x376239),this[_0x5810a2(0x198)][_0x5810a2(0x1ba)][_0x5810a2(0x1bb)]();}[_0x522526(0x1b7)](_0x14813a){const _0x3a301b=_0x522526;this[_0x3a301b(0x198)][_0x3a301b(0x1ba)][_0x3a301b(0x1be)](_0x3a301b(0x191),_0x14813a);}[_0x522526(0x1b6)](_0x172d4a=!0x1){const _0x31dca8=_0x522526;super[_0x31dca8(0x1b6)](),_0x172d4a&&(this[_0x31dca8(0x186)][_0x31dca8(0x1bd)][_0x31dca8(0x1af)](ah)||(this[_0x31dca8(0x186)][_0x31dca8(0x1bd)][_0x31dca8(0x19f)](ah),setTimeout(()=>{const _0x5b7975=_0x31dca8;this[_0x5b7975(0x186)][_0x5b7975(0x1bd)][_0x5b7975(0x1b9)](ah);},0x320)));}[_0x522526(0x18e)](){const _0x55ffcf=_0x522526,_0x14ce9f=new _0x43dd03(this[_0x55ffcf(0x1b1)]);return _0x14ce9f[_0x55ffcf(0x1be)]({'icon':_0x41af55,'label':_0x35dd8b(this[_0x55ffcf(0x1b1)],_0x55ffcf(0x1aa)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x55ffcf(0x189),'isEnabled':!0x1}),_0x14ce9f['on'](_0x55ffcf(0x194),()=>{const _0x77d513=_0x55ffcf;this[_0x77d513(0x1b0)]();}),_0x14ce9f;}[_0x522526(0x185)](_0x3501df){const _0x1815fb=_0x522526;this[_0x1815fb(0x19a)]=_0x3501df;}[_0x522526(0x1c2)](){const _0x56c441=_0x522526,_0x1230a2=this[_0x56c441(0x1b1)],_0x177fa4=()=>{const _0x37a785=_0x56c441;_0x334c60[_0x37a785(0x18b)][_0x37a785(0x196)](()=>{const _0x89557e=_0x37a785;if(_0x3d8c68(this[_0x89557e(0x186)])){const _0x23f642=new _0x577c4c(this[_0x89557e(0x198)][_0x89557e(0x1ba)][_0x89557e(0x186)]),_0xbee4ba=new _0x577c4c(this[_0x89557e(0x17e)][_0x89557e(0x186)]),_0x79857e=_0x23f642[_0x89557e(0x1a9)],_0x4bfdaf=_0x89557e(0x18d)===_0x1230a2[_0x89557e(0x19e)]?_0x89557e(0x1b3):_0x89557e(0x1ab);_0x23f642[_0x89557e(0x17f)]();const _0x75aeca=_0x79857e-_0x23f642[_0x89557e(0x1a9)]+0x1;this[_0x89557e(0x17e)][_0x89557e(0x186)][_0x89557e(0x1c0)][_0x4bfdaf]=_0x89557e(0x1bf)+(_0x79857e-_0xbee4ba[_0x89557e(0x1a9)]-_0x75aeca)+_0x89557e(0x1a6);}});};this[_0x56c441(0x198)][_0x56c441(0x1ba)]['on'](_0x56c441(0x195),_0x177fa4),this['on'](_0x56c441(0x1b5),()=>{const _0x1dd623=_0x56c441;_0x177fa4(),this[_0x1dd623(0x1c3)]=new _0x4cfd27(this[_0x1dd623(0x198)][_0x1dd623(0x1ba)][_0x1dd623(0x186)],()=>{_0x177fa4();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c393=_0x1ddb;(function(_0x23d01f,_0x16837b){const _0x67234e=_0x1ddb,_0x2c5557=_0x23d01f();while(!![]){try{const _0xf87cc9=parseInt(_0x67234e(0x9c))/0x1+parseInt(_0x67234e(0x93))/0x2*(parseInt(_0x67234e(0x94))/0x3)+parseInt(_0x67234e(0x9d))/0x4*(parseInt(_0x67234e(0x95))/0x5)+parseInt(_0x67234e(0x91))/0x6*(-parseInt(_0x67234e(0x99))/0x7)+parseInt(_0x67234e(0x9a))/0x8+-parseInt(_0x67234e(0x9b))/0x9+-parseInt(_0x67234e(0x97))/0xa;if(_0xf87cc9===_0x16837b)break;else _0x2c5557['push'](_0x2c5557['shift']());}catch(_0x2981bf){_0x2c5557['push'](_0x2c5557['shift']());}}}(_0x3ebf,0xa33d1));function _0x3ebf(){const _0x9dbe29=['items','268219sdTgFM','3626040RexOFs','2122254ceXtWN','908861QYCBvV','3636008AwKrst','42vruDUe','length','137648rYzuJK','54fZVqds','5oQWYJu','filter','23373000tiQxZV'];_0x3ebf=function(){return _0x9dbe29;};return _0x3ebf();}import{ListView as _0x1524f6}from'ckeditor5/src/ui.js';function _0x1ddb(_0x1b245b,_0x1949a0){const _0x3ebfb6=_0x3ebf();return _0x1ddb=function(_0x1ddbea,_0x5d2075){_0x1ddbea=_0x1ddbea-0x91;let _0x5d95b1=_0x3ebfb6[_0x1ddbea];return _0x5d95b1;},_0x1ddb(_0x1b245b,_0x1949a0);}export class AIChatPromptSuggestionsListView extends _0x1524f6{[_0x5c393(0x96)](){const _0x5c975f=_0x5c393;let _0x1b8826=0x0;for(const _0x5aae53 of this[_0x5c975f(0x98)])_0x1b8826+=_0x5aae53[_0x5c975f(0x98)][_0x5c975f(0x92)];return{'resultsCount':_0x1b8826,'totalItemsCount':_0x1b8826};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3da0(_0x1e7305,_0x5d1027){const _0x5d6b4a=_0x5d6b();return _0x3da0=function(_0x3da0e2,_0x2348a2){_0x3da0e2=_0x3da0e2-0x19f;let _0x56d589=_0x5d6b4a[_0x3da0e2];return _0x56d589;},_0x3da0(_0x1e7305,_0x5d1027);}const _0x35b4e5=_0x3da0;function _0x5d6b(){const _0xe04669=['useDefaultFiltering','highlightText','\x5c$&','1bwwlfI','trim','addResourceToContext','7010127NRaTcZ','items','extendTemplate','498aQUIro','clear','7yFmScz','setResources','updateResourceState','_source','30230gfLTnQ','filter','121jjnoMF','13440DvZqMI','fire','140424oBeLDO','_handleResourceSelection','960708FIaZNe','label','ck-ai-chat-resources__list','test','4500904kaPlEh','resource','205644anmCmn','replace','10FmrSrm','add','execute','forEach','locale'];_0x5d6b=function(){return _0xe04669;};return _0x5d6b();}(function(_0x2ac96f,_0x195bae){const _0x1dc1a3=_0x3da0,_0x236077=_0x2ac96f();while(!![]){try{const _0x3cd14e=parseInt(_0x1dc1a3(0x1b2))/0x1*(parseInt(_0x1dc1a3(0x1a2))/0x2)+-parseInt(_0x1dc1a3(0x1a0))/0x3+parseInt(_0x1dc1a3(0x1c1))/0x4+parseInt(_0x1dc1a3(0x1be))/0x5*(parseInt(_0x1dc1a3(0x1b8))/0x6)+-parseInt(_0x1dc1a3(0x1ba))/0x7*(-parseInt(_0x1dc1a3(0x1a6))/0x8)+parseInt(_0x1dc1a3(0x1b5))/0x9*(-parseInt(_0x1dc1a3(0x1aa))/0xa)+parseInt(_0x1dc1a3(0x1c0))/0xb*(-parseInt(_0x1dc1a3(0x1a8))/0xc);if(_0x3cd14e===_0x195bae)break;else _0x236077['push'](_0x236077['shift']());}catch(_0x1489c3){_0x236077['push'](_0x236077['shift']());}}}(_0x5d6b,0x825a7));import{ListView as _0x1143ec}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0xe89060}from'./aichatresourcelistitemview.js';const uc=_0x35b4e5(0x1a4);export class AIChatContextResourcesListView extends _0x1143ec{[_0x35b4e5(0x1bd)];constructor(_0x50e8d4,_0x496a2d){const _0x4ab4eb=_0x35b4e5;super(_0x50e8d4),this[_0x4ab4eb(0x1bd)]=_0x496a2d,this[_0x4ab4eb(0x1b7)]({'attributes':{'class':[uc]}});}[_0x35b4e5(0x1bb)](_0x5711f3,_0x17f8dd){const _0x6256c5=_0x35b4e5;this[_0x6256c5(0x1b6)][_0x6256c5(0x1b9)]();let _0x5ddc50=_0x5711f3;if(this[_0x6256c5(0x1bd)][_0x6256c5(0x1af)]&&_0x17f8dd&&''!==_0x17f8dd[_0x6256c5(0x1b3)]()){const _0x3a3f1d=new RegExp(_0x17f8dd[_0x6256c5(0x1a9)](/[.*+?^${}()|[\]\\]/g,_0x6256c5(0x1b1)),'gi');_0x5ddc50=_0x5711f3[_0x6256c5(0x1bf)](_0x108b27=>_0x3a3f1d[_0x6256c5(0x1a5)](_0x108b27[_0x6256c5(0x1a3)]));}for(const _0x582062 of _0x5ddc50){const _0x39076f=new _0xe89060(this[_0x6256c5(0x1ae)],_0x582062);_0x39076f['on'](_0x6256c5(0x1ac),()=>{const _0x213a3a=_0x6256c5;this[_0x213a3a(0x1a1)](this[_0x213a3a(0x1bd)],_0x582062);}),this[_0x6256c5(0x1b6)][_0x6256c5(0x1ab)](_0x39076f);}this[_0x6256c5(0x1bd)][_0x6256c5(0x1af)]&&this[_0x6256c5(0x1b0)](_0x17f8dd);}[_0x35b4e5(0x1b0)](_0x52f8b1){const _0x56e74e=_0x35b4e5;this[_0x56e74e(0x1bd)][_0x56e74e(0x1af)]&&this[_0x56e74e(0x1b6)][_0x56e74e(0x1ad)](_0x5b2301=>{const _0x2a35c4=_0x56e74e;_0x5b2301[_0x2a35c4(0x1b0)](_0x52f8b1);});}[_0x35b4e5(0x1bc)](_0x275315,_0x133f64){const _0x33c465=_0x35b4e5;for(const _0x4d8ada of this[_0x33c465(0x1b6)]){const _0x155267=_0x4d8ada;_0x155267[_0x33c465(0x1a7)]['id']===_0x275315&&_0x155267[_0x33c465(0x1bc)](_0x133f64);}}[_0x35b4e5(0x1a1)](_0x515f87,_0x3c3c95){const _0x10ff93=_0x35b4e5;this[_0x10ff93(0x19f)](_0x10ff93(0x1b4),{'source':_0x515f87,'resource':_0x3c3c95});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x18ecf7=_0x26cb;(function(_0xf633b7,_0x13df75){const _0xef9656=_0x26cb,_0x1462bf=_0xf633b7();while(!![]){try{const _0x474a2e=-parseInt(_0xef9656(0xd5))/0x1+-parseInt(_0xef9656(0xb1))/0x2+parseInt(_0xef9656(0xdf))/0x3+-parseInt(_0xef9656(0xbb))/0x4*(-parseInt(_0xef9656(0xbe))/0x5)+-parseInt(_0xef9656(0xca))/0x6*(-parseInt(_0xef9656(0xcc))/0x7)+parseInt(_0xef9656(0xaf))/0x8+-parseInt(_0xef9656(0xcb))/0x9*(parseInt(_0xef9656(0xd6))/0xa);if(_0x474a2e===_0x13df75)break;else _0x1462bf['push'](_0x1462bf['shift']());}catch(_0x355c58){_0x1462bf['push'](_0x1462bf['shift']());}}}(_0x140f,0xc6828));import{View as _0x25bcbf,ViewCollection as _0x22c8d1}from'ckeditor5/src/ui.js';import{uid as _0x2d4775}from'ckeditor5/src/utils.js';function _0x26cb(_0x513a7d,_0x434284){const _0x140ff8=_0x140f();return _0x26cb=function(_0x26cbc1,_0x259b9c){_0x26cbc1=_0x26cbc1-0xae;let _0x537e57=_0x140ff8[_0x26cbc1];return _0x537e57;},_0x26cb(_0x513a7d,_0x434284);}function _0x140f(){const _0x34a0da=['search','locale','bindTemplate','set','_createResourcesListView','source','54OfsQUW','43182Chnbeb','121303DtSNnN','ck\x20ck-search','add','setResources','searchInputVisibleFrom','highlightText','_latestLoadResourcesUid','render','children','664809JbGhjl','4790iMdvnk','addResourceToContext','_source','_searchSection','div','fire','length','ck-ai-chat-resources','extendTemplate','4260720xBGOWv','_skeletonLoader','10154568PLWEbJ','useDefaultFiltering','396280WBzZsm','_searchInputVisibleFrom','has','getQuery','isLoading','delegate','_searchView','loadSourceResources','ck-hidden','_createSearchView','4515060sGrGSR','_resourcesListView','loadResources','5xZJJSX','updateResourceState','setTemplate','aiChatResources','_createSkeletonView','_createSearchSection'];_0x140f=function(){return _0x34a0da;};return _0x140f();}import{AIChatContextResourcesListView as _0x2c03ec}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x3ea8fd}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x1728f8,SKELETON_DEFINITIONS as _0x7337e0}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x25bcbf{[_0x18ecf7(0xb7)];[_0x18ecf7(0xd9)];[_0x18ecf7(0xb2)];[_0x18ecf7(0xbc)];[_0x18ecf7(0xae)];[_0x18ecf7(0xd8)];[_0x18ecf7(0xd4)];[_0x18ecf7(0xd2)]=null;constructor(_0x3fbe2a,_0x5eb565){const _0x296ca0=_0x18ecf7;super(_0x3fbe2a),this[_0x296ca0(0xd8)]=_0x5eb565[_0x296ca0(0xc9)],this[_0x296ca0(0xb2)]=_0x5eb565[_0x296ca0(0xd0)]??0x7,this[_0x296ca0(0xc7)](_0x296ca0(0xb5),!0x0),this[_0x296ca0(0xb7)]=this[_0x296ca0(0xba)](),this[_0x296ca0(0xd9)]=this[_0x296ca0(0xc3)](),this[_0x296ca0(0xbc)]=this[_0x296ca0(0xc8)](),this[_0x296ca0(0xae)]=this[_0x296ca0(0xc2)](),this[_0x296ca0(0xd4)]=new _0x22c8d1([this[_0x296ca0(0xae)],this[_0x296ca0(0xbc)]]),this[_0x296ca0(0xc0)]({'tag':_0x296ca0(0xda),'attributes':{'class':_0x296ca0(0xdd)},'children':this[_0x296ca0(0xd4)]});}[_0x18ecf7(0xba)](){const _0xb74eb2=_0x18ecf7;return new _0x3ea8fd(this[_0xb74eb2(0xc5)]);}[_0x18ecf7(0xc3)](){const _0x13c698=_0x18ecf7,_0x9a7b79=new _0x25bcbf(this[_0x13c698(0xc5)]);return _0x9a7b79[_0x13c698(0xc0)]({'tag':_0x13c698(0xda),'attributes':{'class':_0x13c698(0xcd)},'children':[this[_0x13c698(0xb7)]]}),this[_0x13c698(0xb7)]['on'](_0x13c698(0xc4),(_0x527bee,_0x511239)=>{const _0x3b660e=_0x13c698;this[_0x3b660e(0xbd)](_0x511239),this[_0x3b660e(0xd8)][_0x3b660e(0xb0)]&&this[_0x3b660e(0xbc)][_0x3b660e(0xd1)](_0x511239);}),_0x9a7b79;}[_0x18ecf7(0xc8)](){const _0x511822=_0x18ecf7,_0x200d91=new _0x2c03ec(this[_0x511822(0xc5)],this[_0x511822(0xd8)]);return _0x200d91[_0x511822(0xb6)](_0x511822(0xd7))['to'](this),_0x200d91[_0x511822(0xde)]({'attributes':{'class':this[_0x511822(0xc6)]['if'](_0x511822(0xb5),_0x511822(0xb9))}}),_0x200d91;}[_0x18ecf7(0xc2)](){const _0x5eabf5=_0x18ecf7,_0x52f104=new _0x1728f8(this[_0x5eabf5(0xc5)],_0x7337e0[_0x5eabf5(0xc1)]);return _0x52f104[_0x5eabf5(0xde)]({'attributes':{'class':[this[_0x5eabf5(0xc6)]['if'](_0x5eabf5(0xb5),_0x5eabf5(0xb9),_0x1a3a26=>!_0x1a3a26)]}}),_0x52f104;}[_0x18ecf7(0xd3)](){const _0xf880b1=_0x18ecf7;super[_0xf880b1(0xd3)](),this[_0xf880b1(0xbd)]('');}[_0x18ecf7(0xbd)](_0x7ac9d){const _0x5d44bf=_0x18ecf7,_0x342f8f=_0x2d4775();this[_0x5d44bf(0xd2)]=_0x342f8f,this[_0x5d44bf(0xdb)](_0x5d44bf(0xb8),{'sourceId':this[_0x5d44bf(0xd8)]['id'],'query':_0x7ac9d,'uid':_0x342f8f}),this[_0x5d44bf(0xb5)]=!0x0;}[_0x18ecf7(0xcf)](_0x1d7f15,_0x53ca34){const _0xc766da=_0x18ecf7;if(_0x53ca34&&_0x53ca34!==this[_0xc766da(0xd2)])return;const _0x496680=this[_0xc766da(0xd8)][_0xc766da(0xb0)]?this[_0xc766da(0xb7)][_0xc766da(0xb4)]():'';this[_0xc766da(0xbc)][_0xc766da(0xcf)](_0x1d7f15,_0x496680),_0x1d7f15[_0xc766da(0xdc)]>=this[_0xc766da(0xb2)]&&!this[_0xc766da(0xd4)][_0xc766da(0xb3)](this[_0xc766da(0xd9)])&&this[_0xc766da(0xd4)][_0xc766da(0xce)](this[_0xc766da(0xd9)],0x0),requestAnimationFrame(()=>{const _0x437cbf=_0xc766da;this[_0x437cbf(0xb5)]=!0x1;});}[_0x18ecf7(0xbf)](_0x548702,_0x37602b){const _0x1f4d5f=_0x18ecf7;this[_0x1f4d5f(0xbc)][_0x1f4d5f(0xbf)](_0x548702,_0x37602b);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dc520=_0x2731;(function(_0x50b25d,_0x518595){const _0x5ec45b=_0x2731,_0x444360=_0x50b25d();while(!![]){try{const _0x4e263d=parseInt(_0x5ec45b(0xd0))/0x1+-parseInt(_0x5ec45b(0xc1))/0x2*(-parseInt(_0x5ec45b(0xba))/0x3)+parseInt(_0x5ec45b(0xab))/0x4*(-parseInt(_0x5ec45b(0xce))/0x5)+parseInt(_0x5ec45b(0xc8))/0x6+parseInt(_0x5ec45b(0xb8))/0x7*(parseInt(_0x5ec45b(0xad))/0x8)+parseInt(_0x5ec45b(0xd3))/0x9*(parseInt(_0x5ec45b(0xbd))/0xa)+-parseInt(_0x5ec45b(0xbc))/0xb;if(_0x4e263d===_0x518595)break;else _0x444360['push'](_0x444360['shift']());}catch(_0x26afd0){_0x444360['push'](_0x444360['shift']());}}}(_0x3ccd,0xa4ea6));import{HighlightedTextView as _0x50cc34,IconView as _0x4a839a,ListItemView as _0x52e94a}from'ckeditor5/src/ui.js';import{escapeRegExp as _0xdf715b}from'es-toolkit/compat';import{AIContextItemType as _0x2e455f}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x496138,IconCheck as _0x7ad3ae,IconDocument as _0x826e23,IconDocumentOutline as _0x6c49de,IconLink as _0x5d9038}from'@ckeditor/ckeditor5-icons';function _0x3ccd(){const _0x413c61=['DOCUMENT','isInContext','5404fEOhZO','text','268200WpENkI','type','label','trim','ck-ai-chat-resources__item__icon','ck-ai-chat-resources__item-title','extendTemplate','FILE','setTemplate','div','ck-hidden','154AxZKOi','ck-ai-chat-resources__item','3UWrvIx','content','21620786YTMRIn','1980rGNdut','_setupTemplate','resource','getResourceIcon','622442cfrNyZ','_createTitleView','_updateIcon','highlightText','TEXT','_iconView','_createIconView','6121212hoffNj','updateResourceState','URL','render','set','ck-ai-chat-resources__item--in-context','265HxfyQR','execute','519108VwUgLl','_titleView','bindTemplate','5661EcKmYE','isVisible','span'];_0x3ccd=function(){return _0x413c61;};return _0x3ccd();}const zr=_0x4dc520(0xb9),Gr=_0x4dc520(0xcd),Jr=_0x4dc520(0xb2),Kr=_0x4dc520(0xb1);function _0x2731(_0x5718b7,_0x229b6c){const _0x3ccd30=_0x3ccd();return _0x2731=function(_0x2731d2,_0x3adecd){_0x2731d2=_0x2731d2-0xab;let _0x3ae4f5=_0x3ccd30[_0x2731d2];return _0x3ae4f5;},_0x2731(_0x5718b7,_0x229b6c);}export class AIChatResourceListItemView extends _0x52e94a{[_0x4dc520(0xbf)];[_0x4dc520(0xd1)];[_0x4dc520(0xc6)];constructor(_0x368643,_0x2b0048){const _0x1981c2=_0x4dc520;super(_0x368643),this[_0x1981c2(0xbf)]=_0x2b0048,this[_0x1981c2(0xcc)](_0x1981c2(0xd7),!!_0x2b0048[_0x1981c2(0xd7)]),this[_0x1981c2(0xd1)]=this[_0x1981c2(0xc2)](),this[_0x1981c2(0xc6)]=this[_0x1981c2(0xc7)](),this[_0x1981c2(0xbe)]();}[_0x4dc520(0xcb)](){const _0x44acf1=_0x4dc520;super[_0x44acf1(0xcb)]();}[_0x4dc520(0xc0)](_0x2f4757){const _0x374539=_0x4dc520;if(_0x2f4757[_0x374539(0xd7)])return _0x7ad3ae;switch(_0x2f4757[_0x374539(0xae)]){case _0x2e455f[_0x374539(0xd6)]:return _0x826e23;case _0x2e455f[_0x374539(0xca)]:return _0x5d9038;case _0x2e455f[_0x374539(0xb4)]:case _0x2e455f[_0x374539(0xc5)]:return _0x496138;default:return _0x6c49de;}}[_0x4dc520(0xc4)](_0x12c314){const _0x6ca599=_0x4dc520;if(!_0x12c314||''===_0x12c314[_0x6ca599(0xb0)]())return void this[_0x6ca599(0xd1)][_0x6ca599(0xc4)](null);const _0x5ef1ba=new RegExp(_0xdf715b(_0x12c314),'gi');this[_0x6ca599(0xd1)][_0x6ca599(0xc4)](_0x5ef1ba);}[_0x4dc520(0xc9)](_0x1d8993){const _0x138b50=_0x4dc520;this[_0x138b50(0xbf)][_0x138b50(0xd7)]=_0x1d8993,this[_0x138b50(0xd7)]=_0x1d8993,this[_0x138b50(0xc3)]();}[_0x4dc520(0xc2)](){const _0x2f514f=_0x4dc520,_0x5f303d=new _0x50cc34();return _0x5f303d[_0x2f514f(0xac)]=this[_0x2f514f(0xbf)][_0x2f514f(0xaf)],_0x5f303d[_0x2f514f(0xb3)]({'tag':_0x2f514f(0xd5),'attributes':{'class':[Jr]}}),_0x5f303d;}[_0x4dc520(0xc7)](){const _0x415706=_0x4dc520,_0x31e9d9=new _0x4a839a();return _0x31e9d9[_0x415706(0xbb)]=this[_0x415706(0xc0)](this[_0x415706(0xbf)]),_0x31e9d9;}[_0x4dc520(0xbe)](){const _0x14caac=_0x4dc520,_0x3a463c=this[_0x14caac(0xd2)];this[_0x14caac(0xb5)]({'tag':_0x14caac(0xb6),'attributes':{'class':[zr,_0x3a463c['if'](_0x14caac(0xd4),_0x14caac(0xb7),_0x52f474=>!_0x52f474),_0x3a463c['if'](_0x14caac(0xd7),Gr)]},'children':[{'tag':_0x14caac(0xb6),'attributes':{'class':[Kr]},'children':[this[_0x14caac(0xc6)]]},this[_0x14caac(0xd1)]],'on':{'click':_0x3a463c['to'](_0x14caac(0xcf))}});}[_0x4dc520(0xc3)](){const _0x3775cf=_0x4dc520;this[_0x3775cf(0xc6)][_0x3775cf(0xbb)]=this[_0x3775cf(0xc0)](this[_0x3775cf(0xbf)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x330fa5=_0xcfc5;function _0xcfc5(_0x1912b9,_0x109dcb){const _0x4570fe=_0x4570();return _0xcfc5=function(_0xcfc5e3,_0xa730fa){_0xcfc5e3=_0xcfc5e3-0x128;let _0x578981=_0x4570fe[_0xcfc5e3];return _0x578981;},_0xcfc5(_0x1912b9,_0x109dcb);}(function(_0x27b2d6,_0x2539b8){const _0xbfa75c=_0xcfc5,_0x1c5fb0=_0x27b2d6();while(!![]){try{const _0x4f8988=-parseInt(_0xbfa75c(0x12a))/0x1+-parseInt(_0xbfa75c(0x139))/0x2*(parseInt(_0xbfa75c(0x147))/0x3)+parseInt(_0xbfa75c(0x14c))/0x4+parseInt(_0xbfa75c(0x133))/0x5*(-parseInt(_0xbfa75c(0x13a))/0x6)+-parseInt(_0xbfa75c(0x13d))/0x7*(-parseInt(_0xbfa75c(0x13e))/0x8)+-parseInt(_0xbfa75c(0x12f))/0x9*(-parseInt(_0xbfa75c(0x162))/0xa)+parseInt(_0xbfa75c(0x164))/0xb;if(_0x4f8988===_0x2539b8)break;else _0x1c5fb0['push'](_0x1c5fb0['shift']());}catch(_0x23130c){_0x1c5fb0['push'](_0x1c5fb0['shift']());}}}(_0x4570,0x92f7b));import{BalloonPanelView as _0x216f9e,ButtonView as _0x403c8c,clickOutsideHandler as _0x4325ee,FormHeaderView as _0x294a70}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x22e332}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x583227}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x26b5ef}from'./aichatcontextresourcesview.js';const Bc=_0x330fa5(0x165),mc=_0x330fa5(0x138),dc=_0x330fa5(0x163);function _0x4570(){const _0x225f92=['onBackToContext','onBalloonClosed','224086WSAOBB','onLoadSourceResources','values','_addSourceResourceContent','_getResourcesViewFromBalloon','36OVQRNe','show','getLimiterElement','searchInputVisibleFrom','45610NSOGfV','change:isLoading','delete','_createBalloonResourcesView','hide','ck-button-icon\x20ck-button-back','446TTwgoL','276ziHESO','get','_config','7OnJjzZ','7208912NEIUsJ','addResourceToContext','showSourceResourcesBalloon','add','extendTemplate','clear','updateResourceState','isVisible','children','10539fKsmnr','isAnyResourceBalloonVisible','setResources','label','_createSourceResourceBalloonPanel','1105228OGMQBr','onResourceSelected','content','destroy','_sourceResourceBalloons','element','_locale','set','loadSourceResources','resource','source','_createBackButton','once','populateSourceResourceBalloon','_bodyCollection','getTargetElement','pin','execute','closeSourceResourceBalloon','_createBalloonHeader','_setupSingleResourceBalloonClickOutsideHandler','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','173810UkJoIQ','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','8603441iMUOrK','ck-ai-chat-context-controls__source-balloon-panel'];_0x4570=function(){return _0x225f92;};return _0x4570();}export class AIChatResourcesBalloonView{[_0x330fa5(0x150)]=new Map();[_0x330fa5(0x15a)];[_0x330fa5(0x152)];[_0x330fa5(0x13c)];constructor(_0x5c29ec,_0xbc9477,_0x47c4a8){const _0x3be467=_0x330fa5;this[_0x3be467(0x152)]=_0x5c29ec,this[_0x3be467(0x15a)]=_0xbc9477,this[_0x3be467(0x13c)]=_0x47c4a8;}[_0x330fa5(0x140)]({source:_0x414619,withBackButton:_0x2990fb}){const _0x413f44=_0x330fa5;let _0xf5f604=this[_0x413f44(0x150)][_0x413f44(0x13b)](_0x414619['id']);_0xf5f604||(_0xf5f604=this[_0x413f44(0x14b)](),this[_0x413f44(0x150)][_0x413f44(0x153)](_0x414619['id'],_0xf5f604),this[_0x413f44(0x160)](_0xf5f604)),this[_0x413f44(0x12d)]({'balloonPanel':_0xf5f604,'source':_0x414619,'withBackButton':_0x2990fb}),_0xf5f604[_0x413f44(0x130)]();const _0x509fa1=this[_0x413f44(0x13c)][_0x413f44(0x15b)]();_0x509fa1&&_0xf5f604[_0x413f44(0x15c)]({'target':_0x509fa1,'limiter':this[_0x413f44(0x13c)][_0x413f44(0x131)]()});}[_0x330fa5(0x159)](_0xe036c8,_0x2269d5,_0x492c3f){const _0x35bcab=_0x330fa5,_0x5617db=this[_0x35bcab(0x150)][_0x35bcab(0x13b)](_0xe036c8);if(!_0x5617db)return;const _0x12b4b7=this[_0x35bcab(0x12e)](_0x5617db);_0x12b4b7&&(_0x12b4b7[_0x35bcab(0x149)](_0x2269d5,_0x492c3f),_0x12b4b7[_0x35bcab(0x158)](_0x35bcab(0x134),()=>{const _0x74a8a6=_0x35bcab;_0x5617db[_0x74a8a6(0x15c)]({'target':this[_0x74a8a6(0x13c)][_0x74a8a6(0x15b)](),'limiter':this[_0x74a8a6(0x13c)][_0x74a8a6(0x131)]()});}));}[_0x330fa5(0x15e)](_0x31e870){const _0x4b7e95=_0x330fa5,_0x4b6891=this[_0x4b7e95(0x150)][_0x4b7e95(0x13b)](_0x31e870);_0x4b6891&&requestAnimationFrame(()=>{const _0x3c8367=_0x4b7e95;_0x4b6891[_0x3c8367(0x137)](),this[_0x3c8367(0x150)][_0x3c8367(0x135)](_0x31e870),this[_0x3c8367(0x13c)][_0x3c8367(0x129)]();});}[_0x330fa5(0x148)](){const _0x535f3a=_0x330fa5;for(const _0x190840 of this[_0x535f3a(0x150)][_0x535f3a(0x12c)]())if(_0x190840[_0x535f3a(0x145)])return!0x0;return!0x1;}[_0x330fa5(0x144)](_0x484a8e,_0x16c3f8,_0x38ad0c){const _0x34993f=_0x330fa5,_0x5dddeb=this[_0x34993f(0x150)][_0x34993f(0x13b)](_0x484a8e);if(!_0x5dddeb||!_0x5dddeb[_0x34993f(0x145)])return;const _0x15f569=this[_0x34993f(0x13c)][_0x34993f(0x15b)]();if(!_0x15f569)return;_0x5dddeb[_0x34993f(0x15c)]({'target':_0x15f569,'limiter':this[_0x34993f(0x13c)][_0x34993f(0x131)]()});const _0x531e9c=this[_0x34993f(0x12e)](_0x5dddeb);_0x531e9c&&_0x531e9c[_0x34993f(0x144)](_0x16c3f8,_0x38ad0c);}[_0x330fa5(0x14f)](){const _0xc145da=_0x330fa5;for(const _0x1d5f59 of this[_0xc145da(0x150)][_0xc145da(0x12c)]())_0x1d5f59[_0xc145da(0x14f)]();this[_0xc145da(0x150)][_0xc145da(0x143)]();}[_0x330fa5(0x14b)](){const _0x3b5b47=_0x330fa5,_0x42968f=new _0x216f9e(this[_0x3b5b47(0x152)]);return _0x42968f[_0x3b5b47(0x142)]({'attributes':{'class':Bc}}),this[_0x3b5b47(0x15a)][_0x3b5b47(0x141)](_0x42968f),_0x42968f;}[_0x330fa5(0x12d)]({balloonPanel:_0x2ce67b,source:_0x485625,withBackButton:_0x4e4aef}){const _0x23b4ae=_0x330fa5;_0x2ce67b[_0x23b4ae(0x14e)][_0x23b4ae(0x143)]();const _0x494bdd=this[_0x23b4ae(0x15f)]({'balloonPanel':_0x2ce67b,'source':_0x485625,'withBackButton':_0x4e4aef});_0x2ce67b[_0x23b4ae(0x14e)][_0x23b4ae(0x141)](_0x494bdd);const _0x37b5d2=this[_0x23b4ae(0x136)](_0x485625);_0x2ce67b[_0x23b4ae(0x14e)][_0x23b4ae(0x141)](_0x37b5d2);}[_0x330fa5(0x15f)]({balloonPanel:_0x1f0c4a,source:_0x162236,withBackButton:_0x52d4a2}){const _0x20e2a8=_0x330fa5,_0x5d6868=new _0x294a70(this[_0x20e2a8(0x152)],{'label':_0x162236[_0x20e2a8(0x14a)],'class':dc});return _0x52d4a2&&_0x5d6868[_0x20e2a8(0x146)][_0x20e2a8(0x141)](this[_0x20e2a8(0x157)](_0x1f0c4a),0x0),_0x5d6868;}[_0x330fa5(0x157)](_0x28dc6){const _0x3ced91=_0x330fa5,_0x5737cf=new _0x403c8c(this[_0x3ced91(0x152)]);return _0x5737cf[_0x3ced91(0x153)]({'icon':_0x22e332,'tooltip':_0x583227(this[_0x3ced91(0x152)],_0x3ced91(0x161)),'tooltipPosition':'n','class':mc}),_0x5737cf['on'](_0x3ced91(0x15d),()=>{const _0x489e7b=_0x3ced91;_0x28dc6[_0x489e7b(0x137)](),this[_0x489e7b(0x13c)][_0x489e7b(0x128)]();}),_0x5737cf;}[_0x330fa5(0x136)](_0xcc8e4c){const _0x182638=_0x330fa5,_0x1eba18=new _0x26b5ef(this[_0x182638(0x152)],{'source':_0xcc8e4c,'searchInputVisibleFrom':this[_0x182638(0x13c)][_0x182638(0x132)]});return _0x1eba18['on'](_0x182638(0x154),(_0x56a50e,_0x6c45f)=>{const _0x20d424=_0x182638;this[_0x20d424(0x13c)][_0x20d424(0x12b)](_0x6c45f);}),_0x1eba18['on'](_0x182638(0x13f),(_0x3ab84f,_0x24d968)=>{const _0x4060ac=_0x182638;this[_0x4060ac(0x13c)][_0x4060ac(0x14d)](_0x24d968[_0x4060ac(0x156)],_0x24d968[_0x4060ac(0x155)]),this[_0x4060ac(0x15e)](_0xcc8e4c['id']);}),_0x1eba18;}[_0x330fa5(0x12e)](_0x3076f3){const _0x10954b=_0x330fa5,_0x5cd67e=_0x3076f3[_0x10954b(0x14e)][_0x10954b(0x13b)](0x1);return _0x5cd67e instanceof _0x26b5ef?_0x5cd67e:null;}[_0x330fa5(0x160)](_0x553f06){const _0x7dfa10=_0x330fa5;_0x4325ee({'emitter':_0x553f06,'contextElements':[_0x553f06[_0x7dfa10(0x151)]],'callback':()=>{const _0x3deb9a=_0x7dfa10;_0x553f06[_0x3deb9a(0x137)](),this[_0x3deb9a(0x13c)][_0x3deb9a(0x129)]();},'activator':()=>_0x553f06[_0x7dfa10(0x145)]});}}
|