@ckeditor/ckeditor5-ai 47.4.0-alpha.5 → 47.4.0-alpha.6
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/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.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/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/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/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/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/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/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.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/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x75dd37=_0x2886;(function(_0x142a80,_0x1feef9){const _0x7b65d0=_0x2886,_0x2e2863=_0x142a80();while(!![]){try{const _0x367917=parseInt(_0x7b65d0(0x174))/0x1*(-parseInt(_0x7b65d0(0x14a))/0x2)+parseInt(_0x7b65d0(0x177))/0x3*(parseInt(_0x7b65d0(0x134))/0x4)+parseInt(_0x7b65d0(0x176))/0x5*(-parseInt(_0x7b65d0(0x16d))/0x6)+parseInt(_0x7b65d0(0x15c))/0x7*(parseInt(_0x7b65d0(0x172))/0x8)+-parseInt(_0x7b65d0(0x164))/0x9+-parseInt(_0x7b65d0(0x181))/0xa*(-parseInt(_0x7b65d0(0x15a))/0xb)+-parseInt(_0x7b65d0(0x16b))/0xc*(-parseInt(_0x7b65d0(0x170))/0xd);if(_0x367917===_0x1feef9)break;else _0x2e2863['push'](_0x2e2863['shift']());}catch(_0x143a80){_0x2e2863['push'](_0x2e2863['shift']());}}}(_0xd876,0xcbe74));function _0xd876(){const _0x497960=['isLoading','_createContextPanelView','form','_contextPanelView','_createModelUnavailableMessageView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','change:isLoading','setConversationContext','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','div','_loaderView','clearConversationContextUI','_createPromptCapabilitiesView','agent','ck-ai-chat-controls__start-new-chat-button','clearPendingContextUI','2LiMWku','toggleReasoning','locale','setContextItemLoading','disableModelSelector','isModelAvailable','ck-hidden','_promptInputView','startConversation','element','closeSourceResourceBalloon','setAddContextOptions','setModel','setIsUploadInProgress','ck-ai-chat-controls-disabled','addContextItem','2997401ANouHX','focusPromptInput','1645mxHYUu','_displayedModels','setPlaceholderText','updateResourceState','toggleWebSearch','focus','_modelUnavailableMessageView','_createPromptInputView','3415977zCwfpa','execute','bodyCollection','selectModel','setWebSearch','startsWith','resetMessageInput','26151924tgNTAJ','clearCurrentContextItems','3499536wonjXz','reset','ck-ai-chat-controls-model-unavailable-message','13tWiywX','populateSourceResourceBalloon','13504qXWluW','contextResourcesSearchInputVisibleFrom','1298267deKGOX','isDisabled','10DMbvGf','3PseKYj','find','addContextButtonView','setModelList','_shouldRestorePromptInputFocus','setReasoning','setInputPlaceholder','clearConversationContextItems','bindTemplate','_promptCapabilitiesView','40rOjCCq','removeContextItem','low','_createLoaderView','abortPromptStream','set','delegate','54196BvYxIl','setTemplate','sendUserMessage','ck-ai-chat-controls','enableModelSelector','_handlePromptInputFocus'];_0xd876=function(){return _0x497960;};return _0xd876();}import{ButtonView as _0x15e766,clickOutsideHandler as _0xc754a2,View as _0x1669c9}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x539bff}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x183aac}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x3a485b,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5ac3d0}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x1da5b1}from'./controls/aichatcontrolsloaderview.js';function _0x2886(_0x16ebb7,_0x21056e){const _0xd876c=_0xd876();return _0x2886=function(_0x288698,_0x2fa117){_0x288698=_0x288698-0x134;let _0x1d5a7f=_0xd876c[_0x288698];return _0x1d5a7f;},_0x2886(_0x16ebb7,_0x21056e);}import{getTranslation as _0x132ab1}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x1669c9{[_0x75dd37(0x15d)]=[];[_0x75dd37(0x13d)];[_0x75dd37(0x151)];[_0x75dd37(0x180)];[_0x75dd37(0x144)];[_0x75dd37(0x162)];[_0x75dd37(0x17b)];constructor(_0x3ba47e,_0x131b10){const _0x40ca7c=_0x75dd37;super(_0x3ba47e),this[_0x40ca7c(0x13d)]=this[_0x40ca7c(0x13b)](_0x3ba47e,{'bodyCollection':_0x131b10[_0x40ca7c(0x166)],'searchInputVisibleFrom':_0x131b10[_0x40ca7c(0x173)]}),this[_0x40ca7c(0x151)]=this[_0x40ca7c(0x163)](_0x3ba47e),this[_0x40ca7c(0x180)]=this[_0x40ca7c(0x146)](_0x3ba47e),this[_0x40ca7c(0x144)]=this[_0x40ca7c(0x184)](_0x3ba47e),this[_0x40ca7c(0x162)]=this[_0x40ca7c(0x13e)](_0x3ba47e),this[_0x40ca7c(0x17b)]=!0x1,this[_0x40ca7c(0x151)][_0x40ca7c(0x187)](_0x40ca7c(0x136))['to'](this),this[_0x40ca7c(0x144)][_0x40ca7c(0x187)](_0x40ca7c(0x185))['to'](this),this[_0x40ca7c(0x180)][_0x40ca7c(0x187)](_0x40ca7c(0x160))['to'](this),this[_0x40ca7c(0x180)][_0x40ca7c(0x187)](_0x40ca7c(0x14b))['to'](this),this[_0x40ca7c(0x180)][_0x40ca7c(0x187)](_0x40ca7c(0x167))['to'](this),this[_0x40ca7c(0x13d)][_0x40ca7c(0x187)](..._0x5ac3d0)['to'](this),this[_0x40ca7c(0x186)](_0x40ca7c(0x14f),!0x0),this[_0x40ca7c(0x186)](_0x40ca7c(0x175),!0x1);const _0x5eee56=this[_0x40ca7c(0x17f)];this[_0x40ca7c(0x135)]({'tag':_0x40ca7c(0x13c),'attributes':{'class':['ck',_0x40ca7c(0x137),_0x5eee56['if'](_0x40ca7c(0x175),_0x40ca7c(0x158))]},'children':[{'tag':_0x40ca7c(0x143),'attributes':{'class':[_0x5eee56['if'](_0x40ca7c(0x13a),_0x40ca7c(0x150),_0x1a3d9b=>_0x1a3d9b||!this[_0x40ca7c(0x14f)]),_0x5eee56['if'](_0x40ca7c(0x14f),_0x40ca7c(0x150),_0x31f8c6=>!_0x31f8c6||this[_0x40ca7c(0x13a)])]},'children':[this[_0x40ca7c(0x13d)],this[_0x40ca7c(0x151)],this[_0x40ca7c(0x180)]]},{'tag':_0x40ca7c(0x143),'attributes':{'class':[_0x5eee56['if'](_0x40ca7c(0x13a),_0x40ca7c(0x150),_0x1c3690=>!_0x1c3690)]},'children':[this[_0x40ca7c(0x144)]]},{'tag':_0x40ca7c(0x143),'attributes':{'class':[_0x5eee56['if'](_0x40ca7c(0x14f),_0x40ca7c(0x150),_0x5d317c=>_0x5d317c)]},'children':[this[_0x40ca7c(0x162)]]}]}),_0xc754a2({'emitter':this[_0x40ca7c(0x151)],'activator':()=>this[_0x40ca7c(0x13a)],'contextElements':()=>[this[_0x40ca7c(0x153)]],'callback':()=>{const _0x1164b9=_0x40ca7c;this[_0x1164b9(0x17b)]=!0x1;}}),this['on'](_0x40ca7c(0x140),this[_0x40ca7c(0x139)],{'priority':_0x40ca7c(0x183)});}[_0x75dd37(0x13b)](_0x422ea7,_0x332a85){return new _0x3a485b(_0x422ea7,_0x332a85);}[_0x75dd37(0x163)](_0x110d3a){const _0x1d79e1=_0x75dd37;return new _0x539bff(_0x110d3a,this[_0x1d79e1(0x13d)][_0x1d79e1(0x179)]);}[_0x75dd37(0x146)](_0x2a5319){return new _0x183aac(_0x2a5319);}[_0x75dd37(0x184)](_0x5d1d50){return new _0x1da5b1(_0x5d1d50);}[_0x75dd37(0x13e)](_0x3033d8){const _0x28e0a7=_0x75dd37,_0x494def=new ps(_0x3033d8);return _0x494def[_0x28e0a7(0x187)](_0x28e0a7(0x152))['to'](this),_0x494def;}[_0x75dd37(0x139)](_0x534980,_0x104654,_0x348276){const _0x3c4118=_0x75dd37;_0x348276?this[_0x3c4118(0x17b)]=!0x0:this[_0x3c4118(0x17b)]&&this[_0x3c4118(0x151)][_0x3c4118(0x161)]();}[_0x75dd37(0x159)](_0x300c3a,_0x34d518){const _0x1f8f27=_0x75dd37;this[_0x1f8f27(0x13d)][_0x1f8f27(0x159)](_0x300c3a,_0x34d518);}[_0x75dd37(0x182)](_0x523d4d){const _0x45dfe4=_0x75dd37;this[_0x45dfe4(0x13d)][_0x45dfe4(0x182)](_0x523d4d);}[_0x75dd37(0x14d)](_0x52ef66,_0x1a6579){const _0x9db41a=_0x75dd37;this[_0x9db41a(0x13d)][_0x9db41a(0x14d)](_0x52ef66,_0x1a6579);}[_0x75dd37(0x157)](_0x40996d){const _0xd32897=_0x75dd37;this[_0xd32897(0x151)][_0xd32897(0x157)](_0x40996d);}[_0x75dd37(0x141)](_0x508f3e){const _0x1a4954=_0x75dd37;this[_0x1a4954(0x13d)][_0x1a4954(0x141)](_0x508f3e);}[_0x75dd37(0x149)](){const _0x3dd0fa=_0x75dd37;this[_0x3dd0fa(0x13d)][_0x3dd0fa(0x16c)]();}[_0x75dd37(0x145)](){const _0x34f55b=_0x75dd37;this[_0x34f55b(0x13d)][_0x34f55b(0x17e)]();}[_0x75dd37(0x15f)](_0x5500a3,_0x10b6d2,_0x56c3c1){const _0x3016cc=_0x75dd37;this[_0x3016cc(0x13d)][_0x3016cc(0x15f)](_0x5500a3,_0x10b6d2,_0x56c3c1);}[_0x75dd37(0x168)](_0x1395f6){const _0x413676=_0x75dd37;this[_0x413676(0x180)][_0x413676(0x168)](_0x1395f6);}[_0x75dd37(0x17c)](_0x5b5d63){const _0xe511b4=_0x75dd37;this[_0xe511b4(0x180)][_0xe511b4(0x17c)](_0x5b5d63);}[_0x75dd37(0x16a)](){const _0x3b1969=_0x75dd37;this[_0x3b1969(0x151)][_0x3b1969(0x16e)]();}[_0x75dd37(0x155)](_0x2f6538){const _0xe3a05f=_0x75dd37;this[_0xe3a05f(0x13d)][_0xe3a05f(0x155)](_0x2f6538);}[_0x75dd37(0x17d)](_0x494581){const _0x2257e6=_0x75dd37;this[_0x2257e6(0x151)][_0x2257e6(0x15e)](_0x494581);}[_0x75dd37(0x17a)](_0xad89bb,_0x469d9c){const _0x3254ac=_0x75dd37;this[_0x3254ac(0x15d)]=_0xad89bb,this[_0x3254ac(0x180)][_0x3254ac(0x17a)](_0xad89bb,_0x469d9c);}[_0x75dd37(0x156)](_0x526a96){const _0x4829fe=_0x75dd37;(_0x526a96?this[_0x4829fe(0x15d)][_0x4829fe(0x178)](_0x59d676=>_0x59d676['id']===_0x526a96['id']):null)?(this[_0x4829fe(0x14f)]=!0x0,this[_0x4829fe(0x180)][_0x4829fe(0x156)](_0x526a96)):_0x526a96?.['id'][_0x4829fe(0x169)](_0x4829fe(0x147))?(this[_0x4829fe(0x14f)]=!0x0,this[_0x4829fe(0x180)][_0x4829fe(0x156)](this[_0x4829fe(0x15d)][0x0])):this[_0x4829fe(0x14f)]=!0x1;}[_0x75dd37(0x138)](){const _0x5a88dd=_0x75dd37;this[_0x5a88dd(0x180)][_0x5a88dd(0x138)]();}[_0x75dd37(0x14e)](_0x361ffc){const _0x316aec=_0x75dd37;this[_0x316aec(0x180)][_0x316aec(0x14e)](_0x361ffc);}[_0x75dd37(0x171)](_0x17a554,_0x471e50,_0x4748ba,_0x2aeb2a){const _0x3d3e95=_0x75dd37;this[_0x3d3e95(0x13d)][_0x3d3e95(0x171)](_0x17a554,_0x471e50,_0x4748ba,_0x2aeb2a);}[_0x75dd37(0x154)](_0x99c31){const _0x4be31a=_0x75dd37;this[_0x4be31a(0x13d)][_0x4be31a(0x154)](_0x99c31);}[_0x75dd37(0x15b)](){const _0x3c9177=_0x75dd37;this[_0x3c9177(0x151)][_0x3c9177(0x161)]();}}class ps extends _0x1669c9{constructor(_0x90e6b4){const _0x4430b0=_0x75dd37;super(_0x90e6b4);const _0x56d74f=new _0x15e766(_0x90e6b4);_0x56d74f[_0x4430b0(0x186)]({'label':_0x132ab1(this[_0x4430b0(0x14c)],_0x4430b0(0x142)),'withText':!0x0,'class':[_0x4430b0(0x148)],'tooltip':''}),_0x56d74f[_0x4430b0(0x187)](_0x4430b0(0x165))['to'](this,_0x4430b0(0x152)),this[_0x4430b0(0x135)]({'tag':_0x4430b0(0x143),'attributes':{'class':['ck',_0x4430b0(0x16f)]},'children':[{'tag':'p','children':[{'text':_0x132ab1(this[_0x4430b0(0x14c)],_0x4430b0(0x13f))+'\x20'},_0x56d74f]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3db5(_0x26e8db,_0x1d9dcb){const _0x3800a5=_0x3800();return _0x3db5=function(_0x3db523,_0x77b14a){_0x3db523=_0x3db523-0x131;let _0x3b82e1=_0x3800a5[_0x3db523];return _0x3b82e1;},_0x3db5(_0x26e8db,_0x1d9dcb);}const _0x3930f5=_0x3db5;(function(_0x54a115,_0x3aced2){const _0x2affa6=_0x3db5,_0x3451ce=_0x54a115();while(!![]){try{const _0x356e1f=-parseInt(_0x2affa6(0x157))/0x1+parseInt(_0x2affa6(0x16b))/0x2*(parseInt(_0x2affa6(0x133))/0x3)+parseInt(_0x2affa6(0x158))/0x4*(parseInt(_0x2affa6(0x139))/0x5)+parseInt(_0x2affa6(0x15a))/0x6*(-parseInt(_0x2affa6(0x163))/0x7)+-parseInt(_0x2affa6(0x143))/0x8+-parseInt(_0x2affa6(0x154))/0x9*(-parseInt(_0x2affa6(0x16e))/0xa)+-parseInt(_0x2affa6(0x152))/0xb*(-parseInt(_0x2affa6(0x174))/0xc);if(_0x356e1f===_0x3aced2)break;else _0x3451ce['push'](_0x3451ce['shift']());}catch(_0x3d376f){_0x3451ce['push'](_0x3451ce['shift']());}}}(_0x3800,0xe8ad6));import{CKEditorError as _0x1b2370,logWarning as _0x5aefb1,scrollViewportToShowTarget as _0x4db389}from'ckeditor5/src/utils.js';import{View as _0x23bd02}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x19b7a5}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x6ad9c9}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x1866b2}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4d2111}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x31c7cd}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x5af3f5}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0xe2430a}from'../../aicore/utils/scrollmanager.js';function _0x3800(){const _0x5eacee=['find','1944086VKrSzL','isVisible','ck-ai-chat__loader-text','319090leAJtm','markAsDone','markItemAsDone','isPending','_bodyCollection','isLoadingSkeletonVisible','132NJRdut','includes','stopAutoScroll','start','ai-suggestion-reply','createCollection','updateSources','render','bindTemplate','updateReplyItem','ai-chat-feed-view-item-not-a-suggestion-item','div','startAutoScroll','ck-ai-chat__loader','updateSuggestionPartState','remove','removeItem','updateSuggestionItem','3JxVlNK','delegate','scrollToSuggestion','map','ai-reply','bind','2830gkxbkp','addItem','interaction-header','_createFeedLoader','_createSkeletonLoader','options','toggleLoadingSkeleton','_createLoaderChildren','getItemIds','_setupTemplate','12732336uILOWF','ai-chat-feed-view-item-not-found','locale','isTrackChangesOn','_createTemplateChildren','scrollManager','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','user-message','aiFeed','children','getPartView','ck-ai-chat__feed','updatePartState','setTemplate','stop','1667061mCtHjO','extendTemplate','342DVuIkI','clear','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','1281861aKaJBc','10676ctAzoy','add','21282bVQMFB','destroy','getItemById','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','setLoadingMessage','set','updateWebSources','element','_createFeedItems','3031QGhzDo','span','ai-chat-feed-view-item-not-a-reply-item','loadingMessage','ck-hidden','ck-ai-chat__feed__items','updateContent'];_0x3800=function(){return _0x5eacee;};return _0x3800();}import{AISkeletonView as _0x17ad7a,SKELETON_DEFINITIONS as _0x207b9f}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x44c45e}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x23bd02{[_0x3930f5(0x14c)];[_0x3930f5(0x148)];[_0x3930f5(0x172)];constructor(_0x2e5d63,_0x58b730){const _0xc9c7e1=_0x3930f5;super(_0x2e5d63),this[_0xc9c7e1(0x172)]=_0x58b730,this[_0xc9c7e1(0x15f)](_0xc9c7e1(0x171),!0x1),this[_0xc9c7e1(0x15f)](_0xc9c7e1(0x166),''),this[_0xc9c7e1(0x15f)](_0xc9c7e1(0x173),!0x1),this[_0xc9c7e1(0x15f)](_0xc9c7e1(0x146),!0x1),this[_0xc9c7e1(0x14c)]=this[_0xc9c7e1(0x179)](),this[_0xc9c7e1(0x14c)][_0xc9c7e1(0x134)](..._0x19b7a5)['to'](this),this[_0xc9c7e1(0x142)]();}[_0x3930f5(0x17b)](){const _0x4a6f38=_0x3930f5;super[_0x4a6f38(0x17b)](),this[_0x4a6f38(0x148)]=new _0xe2430a(this[_0x4a6f38(0x161)]);}[_0x3930f5(0x15b)](){const _0x338327=_0x3930f5;super[_0x338327(0x15b)](),this[_0x338327(0x148)][_0x338327(0x15b)]();}[_0x3930f5(0x155)](){const _0x289283=_0x3930f5;this[_0x289283(0x14c)][_0x289283(0x155)]();}[_0x3930f5(0x13a)](_0x350f70,_0x2f707c){const _0x5a840b=_0x3930f5;let _0x2890a3;_0x5a840b(0x137)===_0x350f70?_0x2890a3=new _0x1866b2(this[_0x5a840b(0x145)],_0x2f707c,this[_0x5a840b(0x172)]):_0x5a840b(0x178)===_0x350f70?(_0x2890a3=new _0x6ad9c9(this[_0x5a840b(0x145)],_0x2f707c,this[_0x5a840b(0x172)]),_0x2890a3[_0x5a840b(0x138)](_0x5a840b(0x146))['to'](this,_0x5a840b(0x146))):_0x2890a3=_0x5a840b(0x14a)===_0x350f70?new _0x4d2111(this[_0x5a840b(0x145)],_0x2f707c,this[_0x5a840b(0x172)]):_0x5a840b(0x13b)===_0x350f70?new _0x5af3f5(this[_0x5a840b(0x145)],_0x2f707c):new _0x31c7cd(_0x2f707c),this[_0x5a840b(0x14c)][_0x5a840b(0x159)](_0x2890a3);}async[_0x3930f5(0x17d)]({id:_0x315d0d,parsedContent:_0x30780a,renderingStrategy:_0x457cea,abortSignal:_0x20e97f}){const _0x52c595=_0x3930f5,_0x316796=this[_0x52c595(0x15c)](_0x315d0d);if(!(_0x316796 instanceof _0x1866b2))throw new _0x1b2370(_0x52c595(0x165),null,{'itemView':_0x316796,'id':_0x315d0d,'parsedContent':_0x30780a});await _0x316796[_0x52c595(0x169)]({'parsedContent':_0x30780a,'renderingStrategy':_0x457cea,'abortSignal':_0x20e97f});}async[_0x3930f5(0x160)](_0x32a705,_0xf77885){const _0x57b674=_0x3930f5,_0x2710b9=this[_0x57b674(0x15c)](_0x32a705);if(_0x2710b9 instanceof _0x6ad9c9)_0x2710b9[_0x57b674(0x17a)](_0xf77885);else{if(!(_0x2710b9 instanceof _0x1866b2))throw new _0x1b2370(_0x57b674(0x149),null,{'itemView':_0x2710b9,'id':_0x32a705,'sources':_0xf77885});_0x2710b9[_0x57b674(0x17a)](_0xf77885);}}async[_0x3930f5(0x132)]({id:_0x16e2bb,parts:_0x435790,renderingStrategy:_0x413c59,abortSignal:_0x4a5f82}){const _0x2697fc=_0x3930f5,_0x461ff3=this[_0x2697fc(0x15c)](_0x16e2bb);if(!(_0x461ff3 instanceof _0x6ad9c9))throw new _0x1b2370(_0x2697fc(0x17e),null,{'itemView':_0x461ff3,'id':_0x16e2bb,'parts':_0x435790});await _0x461ff3[_0x2697fc(0x169)]({'parts':_0x435790,'renderingStrategy':_0x413c59,'abortSignal':_0x4a5f82});}[_0x3930f5(0x182)]({id:_0x16f5df,index:_0x5a3112,state:_0x2becc6}){const _0x5b0551=_0x3930f5,_0x95d36=this[_0x5b0551(0x15c)](_0x16f5df);if(!(_0x95d36 instanceof _0x6ad9c9))throw new _0x1b2370(_0x5b0551(0x17e),this,{'id':_0x16f5df});_0x95d36[_0x5b0551(0x14f)](_0x5a3112,_0x2becc6);}[_0x3930f5(0x170)](_0x475e87){const _0x317205=_0x3930f5;this[_0x317205(0x15c)](_0x475e87)[_0x317205(0x16f)]();}[_0x3930f5(0x141)](){const _0x266b91=_0x3930f5;return this[_0x266b91(0x14c)][_0x266b91(0x136)](_0x5ac798=>_0x5ac798[_0x266b91(0x13e)]['id']);}[_0x3930f5(0x131)](_0x4ab70a){const _0x19d157=_0x3930f5;this[_0x19d157(0x14c)][_0x19d157(0x183)](this[_0x19d157(0x15c)](_0x4ab70a));}[_0x3930f5(0x135)](_0x2abba8,_0x3a9231){const _0x161451=_0x3930f5,_0x305ac7=this[_0x161451(0x15c)](_0x2abba8);if(!(_0x305ac7 instanceof _0x6ad9c9))return void _0x5aefb1(_0x161451(0x156),{'replyId':_0x2abba8,'partIndex':_0x3a9231});const _0x10ce0f=_0x305ac7[_0x161451(0x14d)](_0x3a9231);_0x10ce0f?_0x4db389({'target':_0x10ce0f[_0x161451(0x161)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x5aefb1(_0x161451(0x15d),{'replyId':_0x2abba8,'partIndex':_0x3a9231});}[_0x3930f5(0x142)](){const _0x2a7260=_0x3930f5;this[_0x2a7260(0x150)]({'tag':_0x2a7260(0x17f),'attributes':{'class':['ck',_0x2a7260(0x14e)]},'children':this[_0x2a7260(0x147)]()});}[_0x3930f5(0x147)](){const _0x4a8297=_0x3930f5,_0x9c0b56=this[_0x4a8297(0x13d)]();return[this[_0x4a8297(0x162)](),_0x9c0b56,this[_0x4a8297(0x13c)]()];}[_0x3930f5(0x13d)](){const _0x5dc43f=_0x3930f5,_0x5ec0c5=new _0x17ad7a(this[_0x5dc43f(0x145)],_0x207b9f[_0x5dc43f(0x14b)]);return _0x5ec0c5[_0x5dc43f(0x153)]({'attributes':{'class':[this[_0x5dc43f(0x17c)]['if'](_0x5dc43f(0x173),_0x5dc43f(0x167),_0x4c0a56=>!_0x4c0a56)]}}),_0x5ec0c5;}[_0x3930f5(0x162)](){const _0x24217e=_0x3930f5,_0x1f93c7=new _0x23bd02(this[_0x24217e(0x145)]);return _0x1f93c7[_0x24217e(0x150)]({'tag':_0x24217e(0x17f),'attributes':{'class':['ck',_0x24217e(0x168),this[_0x24217e(0x17c)]['if'](_0x24217e(0x173),_0x24217e(0x167))]},'children':this[_0x24217e(0x14c)]}),_0x1f93c7;}[_0x3930f5(0x13c)](){const _0x3864c9=_0x3930f5,_0x296b7d=new _0x23bd02(this[_0x3864c9(0x145)]);return _0x296b7d[_0x3864c9(0x150)]({'tag':_0x3864c9(0x17f),'attributes':{'class':['ck',_0x3864c9(0x181),this[_0x3864c9(0x17c)]['if'](_0x3864c9(0x171),_0x3864c9(0x167),_0x10ef80=>!_0x10ef80)]},'children':this[_0x3864c9(0x140)]()}),_0x296b7d;}[_0x3930f5(0x140)](){const _0x350b7a=_0x3930f5,_0x4034b6=new _0x44c45e();return _0x4034b6[_0x350b7a(0x16c)]=!0x0,[_0x4034b6,{'tag':_0x350b7a(0x164),'attributes':{'class':['ck',_0x350b7a(0x16d)]},'children':[{'text':this[_0x350b7a(0x17c)]['to'](_0x350b7a(0x166))}]}];}[_0x3930f5(0x15c)](_0x1e3bbc){const _0x3fe631=_0x3930f5,_0x2ad0e9=this[_0x3fe631(0x14c)][_0x3fe631(0x16a)](_0x54cee8=>_0x54cee8[_0x3fe631(0x13e)]['id'][_0x3fe631(0x175)](_0x1e3bbc));if(!_0x2ad0e9)throw new _0x1b2370(_0x3fe631(0x144),this,{'id':_0x1e3bbc});return _0x2ad0e9;}[_0x3930f5(0x15e)](_0x5b425c){const _0x47104c=_0x3930f5;this[_0x47104c(0x15f)](_0x47104c(0x166),_0x5b425c);}[_0x3930f5(0x13f)](_0x2e0a25){const _0xccc422=_0x3930f5;this[_0xccc422(0x15f)](_0xccc422(0x173),_0x2e0a25);}[_0x3930f5(0x180)](){const _0x52d0b6=_0x3930f5;this[_0x52d0b6(0x148)][_0x52d0b6(0x177)]();}[_0x3930f5(0x176)](){const _0x322761=_0x3930f5;this[_0x322761(0x148)][_0x322761(0x151)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x165928=_0x303f;(function(_0x3a96b8,_0x4caccb){const _0x3ed6c1=_0x303f,_0x3353b5=_0x3a96b8();while(!![]){try{const _0x323d7b=-parseInt(_0x3ed6c1(0x106))/0x1+-parseInt(_0x3ed6c1(0x102))/0x2*(-parseInt(_0x3ed6c1(0x100))/0x3)+-parseInt(_0x3ed6c1(0x101))/0x4+parseInt(_0x3ed6c1(0xf5))/0x5+-parseInt(_0x3ed6c1(0xfe))/0x6*(-parseInt(_0x3ed6c1(0x109))/0x7)+-parseInt(_0x3ed6c1(0x103))/0x8*(-parseInt(_0x3ed6c1(0xf9))/0x9)+-parseInt(_0x3ed6c1(0xf6))/0xa;if(_0x323d7b===_0x4caccb)break;else _0x3353b5['push'](_0x3353b5['shift']());}catch(_0x11fb56){_0x3353b5['push'](_0x3353b5['shift']());}}}(_0xc2f8,0x651bc));import{ButtonView as _0x1a8d8c,FormHeaderView as _0x3cdca9}from'ckeditor5/src/ui.js';import{IconPlus as _0x2ebebf,IconAIChat as _0x4c29e6}from'ckeditor5/src/icons.js';import{getTranslation as _0x1bc322}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x10b6da}from'../../aicore/utils/createresizebutton.js';function _0x303f(_0xc148d3,_0x320256){const _0xc2f803=_0xc2f8();return _0x303f=function(_0x303f61,_0x5bb6af){_0x303f61=_0x303f61-0xf2;let _0x5d7e44=_0xc2f803[_0x303f61];return _0x5d7e44;},_0x303f(_0xc148d3,_0x320256);}export class AIChatHeaderView extends _0x3cdca9{[_0x165928(0x107)];[_0x165928(0xf2)];constructor(_0x54c0f8,_0x3b19c3){const _0x2dfddc=_0x165928;super(_0x54c0f8,{'label':_0x1bc322(_0x54c0f8,_0x2dfddc(0xfd)),'class':_0x2dfddc(0xf7),'icon':_0x4c29e6}),this[_0x2dfddc(0x108)](_0x2dfddc(0x10a),!0x1),this[_0x2dfddc(0x107)]=this[_0x2dfddc(0xfc)](_0x54c0f8),this[_0x2dfddc(0xfb)][_0x2dfddc(0xf8)](this[_0x2dfddc(0x107)]),_0x3b19c3&&(this[_0x2dfddc(0xf2)]=_0x10b6da(_0x54c0f8,this),this[_0x2dfddc(0xfb)][_0x2dfddc(0xf8)](this[_0x2dfddc(0xf2)]));}[_0x165928(0xfc)](_0x564e1b){const _0x2f90b5=_0x165928,_0x1b72e4=new _0x1a8d8c(_0x564e1b);return _0x1b72e4[_0x2f90b5(0x108)]({'label':_0x1bc322(this[_0x2f90b5(0xf4)],_0x2f90b5(0x105)),'withText':!0x0,'icon':_0x2ebebf,'class':_0x2f90b5(0xf3)}),_0x1b72e4['on'](_0x2f90b5(0xfa),()=>{const _0x11cbb9=_0x2f90b5;this[_0x11cbb9(0xff)](_0x11cbb9(0x104));}),_0x1b72e4;}}function _0xc2f8(){const _0x4ef041=['execute','children','_createStartConversationButton','AI_CHAT_HEADING','6KAzWKC','fire','763281SGJBYB','624868klxUzC','2AZSgSH','1268968mPlyNz','startConversation','AI_CHAT_LABEL_NEW_CHAT','561090CnlEKf','conversationStartButton','set','3464741IQzZmK','isMaximized','resizeButton','ck-ai-chat__start-conversation','locale','2243770FVzbuY','2253180QQTuOY','ck-ai-header\x20ck-ai-header_chat','add','9LmvvZl'];_0xc2f8=function(){return _0x4ef041;};return _0xc2f8();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x4d5a97=_0x2389;(function(_0xb618dc,_0x5d4bc0){var _0x22c7b4=_0x2389,_0x7df247=_0xb618dc();while(!![]){try{var _0x2deed7=parseInt(_0x22c7b4(0x118))/0x1*(parseInt(_0x22c7b4(0x110))/0x2)+parseInt(_0x22c7b4(0x128))/0x3+parseInt(_0x22c7b4(0x111))/0x4*(-parseInt(_0x22c7b4(0x11a))/0x5)+parseInt(_0x22c7b4(0x11d))/0x6*(-parseInt(_0x22c7b4(0x125))/0x7)+-parseInt(_0x22c7b4(0x112))/0x8+-parseInt(_0x22c7b4(0x122))/0x9+-parseInt(_0x22c7b4(0x126))/0xa*(parseInt(_0x22c7b4(0x11c))/0xb);if(_0x2deed7===_0x5d4bc0)break;else _0x7df247['push'](_0x7df247['shift']());}catch(_0x4c3c1d){_0x7df247['push'](_0x7df247['shift']());}}}(_0x5caa,0x875b9));import{View as _0x410ec6,BodyCollection as _0x4cea54}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x20d95b}from'../utils/eventnames.js';function _0x2389(_0xba681a,_0x281969){var _0x5caaa9=_0x5caa();return _0x2389=function(_0x238972,_0xe70dd6){_0x238972=_0x238972-0x10d;var _0x429db4=_0x5caaa9[_0x238972];return _0x429db4;},_0x2389(_0xba681a,_0x281969);}import{AIChatFeedView as _0x35f70b}from'./aichatfeedview.js';import{AIChatControlsView as _0x34ad78}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x12858d}from'./aichatheaderview.js';import{AIDisclaimerView as _0x3d9314}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x410ec6{[_0x4d5a97(0x116)];[_0x4d5a97(0x127)];[_0x4d5a97(0x117)];[_0x4d5a97(0x113)];[_0x4d5a97(0x11e)];constructor(_0x3c74a5,_0x263b78){var _0x7dcf58=_0x4d5a97;super(_0x3c74a5),this[_0x7dcf58(0x11e)]=new _0x4cea54(_0x3c74a5),this[_0x7dcf58(0x11e)][_0x7dcf58(0x115)](),this[_0x7dcf58(0x116)]=new _0x12858d(_0x3c74a5,_0x263b78[_0x7dcf58(0x11f)]),this[_0x7dcf58(0x116)][_0x7dcf58(0x114)](..._0x20d95b)['to'](this),this[_0x7dcf58(0x127)]=new _0x35f70b(_0x3c74a5,this[_0x7dcf58(0x11e)]),this[_0x7dcf58(0x127)][_0x7dcf58(0x114)](..._0x20d95b)['to'](this),this[_0x7dcf58(0x117)]=new _0x34ad78(_0x3c74a5,{'bodyCollection':this[_0x7dcf58(0x11e)],'contextResourcesSearchInputVisibleFrom':_0x263b78[_0x7dcf58(0x124)]}),this[_0x7dcf58(0x117)][_0x7dcf58(0x114)](..._0x20d95b)['to'](this),this[_0x7dcf58(0x113)]=new _0x3d9314(_0x3c74a5),this[_0x7dcf58(0x10d)]({'tag':_0x7dcf58(0x123),'attributes':{'class':['ck',_0x7dcf58(0x12a),_0x7dcf58(0x129),_0x7dcf58(0x11b)],'dir':_0x3c74a5[_0x7dcf58(0x10f)]},'children':[this[_0x7dcf58(0x116)],this[_0x7dcf58(0x127)],this[_0x7dcf58(0x117)],this[_0x7dcf58(0x113)]]});}[_0x4d5a97(0x119)](_0x225da,_0x582395,_0x1a1f51,_0x446764){var _0x1f0b80=_0x4d5a97;this[_0x1f0b80(0x117)][_0x1f0b80(0x119)](_0x225da,_0x582395,_0x1a1f51,_0x446764);}[_0x4d5a97(0x10e)](_0x4363c3){var _0x5da3e8=_0x4d5a97;this[_0x5da3e8(0x117)][_0x5da3e8(0x10e)](_0x4363c3);}[_0x4d5a97(0x121)](){var _0x5914d7=_0x4d5a97;this[_0x5914d7(0x11e)][_0x5914d7(0x120)](),super[_0x5914d7(0x121)]();}}function _0x5caa(){var _0x332f4a=['chatHeader','chatControls','1cmvrAs','populateSourceResourceBalloon','145HcxzuF','ck-rounded-corners','132QgRlPQ','6ZhNbbk','_bodyCollection','showResizeButton','detachFromDom','destroy','7292106SRxWyo','div','contextResourcesSearchInputVisibleFrom','1914647fUhMnW','59710famuxG','chatFeed','3268629NITPfb','ck-ai-chat','ck-reset_all','setTemplate','closeSourceResourceBalloon','uiLanguageDirection','2120146HTWGCA','31576yFWrjT','1686864TTCzds','chatDisclaimer','delegate','attachToDom'];_0x5caa=function(){return _0x332f4a;};return _0x5caa();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x405662=_0x1991;(function(_0x4e690f,_0x22fa2e){const _0x3f630b=_0x1991,_0x372d2f=_0x4e690f();while(!![]){try{const _0x2117ed=-parseInt(_0x3f630b(0x115))/0x1*(-parseInt(_0x3f630b(0x106))/0x2)+-parseInt(_0x3f630b(0x152))/0x3+parseInt(_0x3f630b(0x170))/0x4+parseInt(_0x3f630b(0x126))/0x5+-parseInt(_0x3f630b(0x16d))/0x6+parseInt(_0x3f630b(0x11c))/0x7*(-parseInt(_0x3f630b(0x10a))/0x8)+parseInt(_0x3f630b(0x110))/0x9;if(_0x2117ed===_0x22fa2e)break;else _0x372d2f['push'](_0x372d2f['shift']());}catch(_0x5b077f){_0x372d2f['push'](_0x372d2f['shift']());}}}(_0x3974,0x3463c));function _0x3974(){const _0x1a9ef2=['showMoreLabelPrefix','_locale','push','setContainerElement','block\x20!important','toLowerCase','observe','_overflowChips','showBalloonPanel','_checkAndHandleOverflow','_createMockButton','_containerElement','isConnected','_repinBalloonPanel','from','pop','2tzTfne','isIntersecting','_updateBalloonContent','extendTemplate','16VqItnC','filter','showMoreBalloon','_handleShowMoreButtonClick','.ck-ai-chat','_showMoreButtonView','3007611TdToWb','_parentView','_intersectionObserver','_config','clear','176647URxQLd','border-box','button','opacity','visible\x20!important','pointerEvents','-9999px','574098lFXVJo','_bodyCollection','render','set','showMoreButton','_updateShowMoreButtonVisibility','_createShowMoreBalloonPanelView','_pendingCalculation','_createShowMoreButtonView','execute','492190SJgcql','label','_calculateContainerWidth','_targetContainer','hideBalloonPanel','auto','_testButtonFit','className','50px','controlsButton','querySelector','_applyOverflowResults','getBoundingClientRect','_restoreAncestorVisibility','_createContainerElements','zIndex','calculationContainer','showMoreButtonView','isOn','overflowContainer','innerHTML','children','tagName','_ancestorsToRestore','length','hidden','overflowChips','offsetWidth','textContent','destroy','div','style','_visibleChips','boxSizing','body','ck-calculation-container','none','_applyCalculationStyles','rowDetectionTolerance','show','disableAnimationOnEnter','setTemplate','0px','innerHeight','2826GtATvS','innerWidth','createElement','remove','clientHeight','_calculateOverflowInContainer','maxVisibleRows','_showMoreBalloonPanelView','appendChild','parentElement','right','width','classList','abs','height','isVisible','clientWidth','content','_makeAncestorsVisible','_distributeChips','bottom','_isContainerVisible','_createShowMoreButton','element','undefined','forEach','_findTargetContainer','1511880XFrCSC','_createCalculationContainer','some','89096KWdPaA','_renderChipsAndCountRows','display','disconnect','visible','cloneNode','top','position','absolute','getComputedStyle','+\x201','slice','hide','includes','add','reorganizeChips','pin','documentElement','left','block','300px','cssClasses','_setupVisibilityObserver','visibility','_updateOverflowUI'];_0x3974=function(){return _0x1a9ef2;};return _0x3974();}import{View as _0x4df433,BalloonPanelView as _0x14d302,ButtonView as _0x181df7,clickOutsideHandler as _0x643fc8}from'ckeditor5/src/ui.js';import{Collection as _0x27e6d4}from'ckeditor5/src/utils.js';function _0x1991(_0x51331d,_0x3f822b){const _0x39747f=_0x3974();return _0x1991=function(_0x1991b2,_0x40d2b7){_0x1991b2=_0x1991b2-0xf0;let _0x413880=_0x39747f[_0x1991b2];return _0x413880;},_0x1991(_0x51331d,_0x3f822b);}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x405662(0xf1);export class AIChatChipsOverflowManager{[_0x405662(0xf7)];[_0x405662(0x113)];[_0x405662(0x146)];[_0x405662(0xfd)];[_0x405662(0x10f)]=null;[_0x405662(0x159)]=null;[_0x405662(0x101)]=null;[_0x405662(0x11d)];[_0x405662(0x111)]=null;[_0x405662(0x112)]=null;[_0x405662(0x123)]=!0x1;constructor(_0x1e7840,_0x1c43cf,_0x41e0ea,_0x9e0a4b,_0x1972c1){const _0x542eaf=_0x405662;this[_0x542eaf(0xf7)]=_0x1e7840,this[_0x542eaf(0x146)]=_0x1c43cf,this[_0x542eaf(0x113)]={...hn,..._0x41e0ea,'cssClasses':{'controlsButton':'','calculationContainer':_0x542eaf(0x149),..._0x41e0ea[_0x542eaf(0xf2)]}},this[_0x542eaf(0xfd)]=new _0x27e6d4(),this[_0x542eaf(0x11d)]=_0x9e0a4b,this[_0x542eaf(0x111)]=_0x1972c1||null;}[_0x405662(0xf9)](_0x15b9ef){const _0x4026a9=_0x405662;this[_0x4026a9(0x112)]&&(this[_0x4026a9(0x112)][_0x4026a9(0x173)](),this[_0x4026a9(0x112)]=null),this[_0x4026a9(0x101)]=_0x15b9ef,this[_0x4026a9(0xf3)]();}get[_0x405662(0x137)](){const _0x1eacf9=_0x405662;return this[_0x1eacf9(0x10f)];}get[_0x405662(0x140)](){const _0x580f92=_0x405662;return this[_0x580f92(0xfd)];}[_0x405662(0x17f)](){requestAnimationFrame(()=>{const _0x2da94f=_0x1991;this[_0x2da94f(0xff)]();});}[_0x405662(0xfe)](){const _0x4ba81a=_0x405662;this[_0x4ba81a(0x10f)]&&this[_0x4ba81a(0x159)]&&(this[_0x4ba81a(0x108)](),this[_0x4ba81a(0x10f)][_0x4ba81a(0x138)]=!0x0,this[_0x4ba81a(0x159)][_0x4ba81a(0x14d)](),this[_0x4ba81a(0x159)][_0x4ba81a(0x180)]({'target':this[_0x4ba81a(0x10f)][_0x4ba81a(0x169)],'limiter':document[_0x4ba81a(0x130)](_0x4ba81a(0x10e))}));}[_0x405662(0x12a)](){const _0xcea030=_0x405662;this[_0xcea030(0x10f)]&&this[_0xcea030(0x159)]&&(this[_0xcea030(0x10f)][_0xcea030(0x138)]=!0x1,this[_0xcea030(0x159)][_0xcea030(0x17c)]());}[_0x405662(0x114)](){const _0x55b8f0=_0x405662;this[_0x55b8f0(0xfd)][_0x55b8f0(0x114)](),this[_0x55b8f0(0x12a)](),this[_0x55b8f0(0x121)](),this[_0x55b8f0(0x10f)]&&(this[_0x55b8f0(0x10f)][_0x55b8f0(0x127)]=''),this[_0x55b8f0(0x159)]&&this[_0x55b8f0(0x159)][_0x55b8f0(0x163)][_0x55b8f0(0x114)]();}[_0x405662(0x143)](){const _0x2aed93=_0x405662;this[_0x2aed93(0x112)]&&(this[_0x2aed93(0x112)][_0x2aed93(0x173)](),this[_0x2aed93(0x112)]=null),this[_0x2aed93(0x10f)]&&(this[_0x2aed93(0x10f)][_0x2aed93(0x143)](),this[_0x2aed93(0x10f)]=null),this[_0x2aed93(0x159)]&&(this[_0x2aed93(0x159)][_0x2aed93(0x143)](),this[_0x2aed93(0x159)]=null);}[_0x405662(0xff)](){const _0x2a6b9e=_0x405662;if(!this[_0x2a6b9e(0x101)])return;if(!this[_0x2a6b9e(0x167)]())return void(this[_0x2a6b9e(0x123)]=!0x0);this[_0x2a6b9e(0x123)]=!0x1;const _0x33b479=[...this[_0x2a6b9e(0x146)],...this[_0x2a6b9e(0xfd)]],_0x3b8318=this[_0x2a6b9e(0x16e)](),_0x215695=this[_0x2a6b9e(0x157)](_0x3b8318,_0x33b479),_0xa68e46=_0x3b8318[_0x2a6b9e(0x13d)];_0xa68e46&&this[_0x2a6b9e(0x133)](_0xa68e46),_0x3b8318[_0x2a6b9e(0x155)](),this[_0x2a6b9e(0x131)](_0x33b479,_0x215695);}[_0x405662(0x168)](){const _0x17425f=_0x405662;this[_0x17425f(0x10f)]=this[_0x17425f(0x124)](),this[_0x17425f(0x159)]=this[_0x17425f(0x122)](),this[_0x17425f(0x10f)][_0x17425f(0x11e)](),this[_0x17425f(0x101)][_0x17425f(0x15a)](this[_0x17425f(0x10f)][_0x17425f(0x169)]),this[_0x17425f(0x10f)]['on'](_0x17425f(0x125),()=>{const _0x2e909d=_0x17425f;this[_0x2e909d(0x10d)]();}),_0x643fc8({'emitter':this[_0x17425f(0x159)],'contextElements':[this[_0x17425f(0x159)][_0x17425f(0x169)],this[_0x17425f(0x10f)][_0x17425f(0x169)]],'callback':()=>this[_0x17425f(0x12a)](),'activator':()=>this[_0x17425f(0x10f)][_0x17425f(0x138)]});}[_0x405662(0x124)](){const _0x87b0a9=_0x405662,_0x57cabb=new _0x181df7(this[_0x87b0a9(0xf7)]);_0x57cabb[_0x87b0a9(0x11f)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5978f0=[this[_0x87b0a9(0x113)][_0x87b0a9(0xf2)][_0x87b0a9(0x120)]];return this[_0x87b0a9(0x113)][_0x87b0a9(0xf2)][_0x87b0a9(0x12f)]&&_0x5978f0[_0x87b0a9(0xf8)](this[_0x87b0a9(0x113)][_0x87b0a9(0xf2)][_0x87b0a9(0x12f)]),_0x57cabb[_0x87b0a9(0x109)]({'attributes':{'class':_0x5978f0}}),_0x57cabb;}[_0x405662(0x122)](){const _0x31e6f5=_0x405662,_0x370fc7=new _0x14d302(this[_0x31e6f5(0xf7)]);return _0x370fc7[_0x31e6f5(0x109)]({'attributes':{'class':this[_0x31e6f5(0x113)][_0x31e6f5(0xf2)][_0x31e6f5(0x10c)]}}),this[_0x31e6f5(0x11d)][_0x31e6f5(0x17e)](_0x370fc7),_0x370fc7;}[_0x405662(0x108)](){const _0x47769c=_0x405662;if(this[_0x47769c(0x159)]&&(this[_0x47769c(0x159)][_0x47769c(0x163)][_0x47769c(0x114)](),this[_0x47769c(0xfd)][_0x47769c(0x13e)]>0x0)){this[_0x47769c(0xfd)][_0x47769c(0x16b)](_0x46950a=>{const _0x4c2aea=_0x47769c;_0x46950a[_0x4c2aea(0x14e)]();});const _0x5173d6=new _0x4df433(this[_0x47769c(0xf7)]);_0x5173d6[_0x47769c(0x14f)]({'tag':_0x47769c(0x144),'attributes':{'class':this[_0x47769c(0x113)][_0x47769c(0xf2)][_0x47769c(0x139)]},'children':this[_0x47769c(0xfd)]}),this[_0x47769c(0x159)][_0x47769c(0x163)][_0x47769c(0x17e)](_0x5173d6);}}[_0x405662(0x10d)](){const _0x2d021e=_0x405662;this[_0x2d021e(0x10f)][_0x2d021e(0x138)]?this[_0x2d021e(0x12a)]():this[_0x2d021e(0xfe)]();}[_0x405662(0x121)](){const _0x2dfacb=_0x405662,_0x59849a=this[_0x2dfacb(0xfd)][_0x2dfacb(0x13e)]>0x0;this[_0x2dfacb(0x10f)]?.[_0x2dfacb(0x169)]&&(this[_0x2dfacb(0x10f)][_0x2dfacb(0x169)][_0x2dfacb(0x145)][_0x2dfacb(0x172)]=_0x59849a?'':_0x2dfacb(0x14a));}[_0x405662(0x103)](){const _0x55071e=_0x405662;this[_0x55071e(0x10f)]?.[_0x55071e(0x138)]&&this[_0x55071e(0x159)]?.[_0x55071e(0x161)]&&this[_0x55071e(0x10f)][_0x55071e(0x169)]&&this[_0x55071e(0x159)][_0x55071e(0x180)]({'target':this[_0x55071e(0x10f)][_0x55071e(0x169)],'limiter':document[_0x55071e(0x130)](_0x55071e(0x10e))});}[_0x405662(0x16c)](_0x44be5){const _0x1f29c5=_0x405662,_0x2dd183=this[_0x1f29c5(0x101)]?.[_0x1f29c5(0x13c)][_0x1f29c5(0xfb)]()||_0x1f29c5(0x144),_0x2f066a=this[_0x1f29c5(0x101)]?.[_0x1f29c5(0x15e)];if(_0x2f066a){const _0x5801a3=_0x2f066a[0x0]||'',_0x2c5a75=_0x44be5[_0x1f29c5(0x130)]('.'+_0x5801a3),_0x356860=_0x44be5[_0x1f29c5(0x130)](_0x2dd183);return _0x2c5a75||_0x356860||_0x44be5;}return _0x44be5[_0x1f29c5(0x130)](_0x2dd183)||_0x44be5;}[_0x405662(0x128)](){const _0x479a1d=_0x405662,_0x23933c=this[_0x479a1d(0x111)]?.[_0x479a1d(0x169)]||this[_0x479a1d(0x101)];if(!_0x23933c)return an;const _0x42ab6a=window[_0x479a1d(0x179)](_0x23933c)[_0x479a1d(0x15d)];if(_0x479a1d(0x12b)===_0x42ab6a||_0x479a1d(0x150)===_0x42ab6a||!_0x42ab6a){const _0x2d69f2=_0x23933c[_0x479a1d(0x15b)];if(_0x2d69f2){const _0x3a1f4c=window[_0x479a1d(0x179)](_0x2d69f2);return _0x479a1d(0x12b)!==_0x3a1f4c[_0x479a1d(0x15d)]?_0x3a1f4c[_0x479a1d(0x15d)]:an;}return an;}return _0x42ab6a;}[_0x405662(0x14b)](_0x2fe2d0,_0x1e2381){const _0x2f7472=_0x405662;this[_0x2f7472(0x113)][_0x2f7472(0xf2)][_0x2f7472(0x136)]&&_0x2fe2d0[_0x2f7472(0x15e)][_0x2f7472(0x17e)](this[_0x2f7472(0x113)][_0x2f7472(0xf2)][_0x2f7472(0x136)]),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x15d)]=_0x1e2381,_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x177)]=_0x2f7472(0x178),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x176)]=_0x2f7472(0x11b),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x182)]=_0x2f7472(0x11b),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x118)]='0',_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x11a)]=_0x2f7472(0x14a),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x135)]='-1',_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0xf4)]=_0x2f7472(0x119),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x172)]=_0x2f7472(0xfa),_0x2fe2d0[_0x2f7472(0x145)][_0x2f7472(0x147)]=_0x2f7472(0x116);}[_0x405662(0x133)](_0x1e141a){const _0x5c160f=_0x405662;_0x1e141a[_0x5c160f(0x16b)](({element:_0x24e8d9,originalDisplay:_0x13faf7,originalVisibility:_0x2acdb8})=>{const _0x393f97=_0x5c160f;_0x24e8d9[_0x393f97(0x145)][_0x393f97(0x172)]=_0x13faf7,_0x24e8d9[_0x393f97(0x145)][_0x393f97(0xf4)]=_0x2acdb8;});}[_0x405662(0x164)](_0x788a67){const _0x279584=_0x405662,_0x1d0137=[];let _0x73f977=_0x788a67;for(;_0x73f977&&_0x73f977!==document[_0x279584(0x148)];){const _0x2759d6=window[_0x279584(0x179)](_0x73f977);_0x279584(0x14a)!==_0x2759d6[_0x279584(0x172)]&&_0x279584(0x13f)!==_0x2759d6[_0x279584(0xf4)]||(_0x1d0137[_0x279584(0xf8)]({'element':_0x73f977,'originalDisplay':_0x73f977[_0x279584(0x145)][_0x279584(0x172)],'originalVisibility':_0x73f977[_0x279584(0x145)][_0x279584(0xf4)]}),_0x73f977[_0x279584(0x145)][_0x279584(0x172)]=_0x279584(0xf0),_0x73f977[_0x279584(0x145)][_0x279584(0xf4)]=_0x279584(0x174)),_0x73f977=_0x73f977[_0x279584(0x15b)];}return _0x1d0137;}[_0x405662(0x134)](){const _0x5979bc=_0x405662;let _0x3a5578,_0x4d22ae;return this[_0x5979bc(0x111)]?.[_0x5979bc(0x169)]?(_0x3a5578=this[_0x5979bc(0x111)][_0x5979bc(0x169)][_0x5979bc(0x175)](!0x0),_0x4d22ae=this[_0x5979bc(0x16c)](_0x3a5578)):(_0x3a5578=document[_0x5979bc(0x154)](_0x5979bc(0x144)),_0x4d22ae=_0x3a5578),{'calculationContainer':_0x3a5578,'targetContainer':_0x4d22ae};}[_0x405662(0x16e)](){const _0x4edf05=_0x405662,{calculationContainer:_0xd4c0a8,targetContainer:_0x1abe31}=this[_0x4edf05(0x134)](),_0x5d4651=this[_0x4edf05(0x128)]();this[_0x4edf05(0x14b)](_0xd4c0a8,_0x5d4651);const _0x2a2a3e=this[_0x4edf05(0x111)]?.[_0x4edf05(0x169)]||this[_0x4edf05(0x101)],_0x47d099=_0x2a2a3e?.[_0x4edf05(0x15b)];_0x47d099?_0x47d099[_0x4edf05(0x15a)](_0xd4c0a8):document[_0x4edf05(0x148)][_0x4edf05(0x15a)](_0xd4c0a8),_0xd4c0a8[_0x4edf05(0x129)]=_0x1abe31;const _0x59a112=this[_0x4edf05(0x164)](_0x47d099||null);return _0xd4c0a8[_0x4edf05(0x141)],_0xd4c0a8[_0x4edf05(0x13d)]=_0x59a112,_0xd4c0a8;}[_0x405662(0x157)](_0x4dca6f,_0x148fed){const _0xbc2eb0=_0x405662,_0x3d72ac=_0x4dca6f[_0xbc2eb0(0x129)]||_0x4dca6f,_0x3f0d6b=[],{rowCount:_0xb1794d}=this[_0xbc2eb0(0x171)](_0x3d72ac,_0x148fed);if(_0xb1794d<=this[_0xbc2eb0(0x113)][_0xbc2eb0(0x158)])return _0x3f0d6b;const _0x2377dd=_0x148fed[_0xbc2eb0(0x17b)]();for(;_0x2377dd[_0xbc2eb0(0x13e)]>0x0;){if(this[_0xbc2eb0(0x12c)](_0x4dca6f,_0x3d72ac,_0x2377dd)){const _0x4c0561=_0x148fed[_0xbc2eb0(0x10b)](_0x47e756=>!_0x2377dd[_0xbc2eb0(0x17d)](_0x47e756));_0x3f0d6b[_0xbc2eb0(0xf8)](..._0x4c0561);break;}if(!_0x2377dd[_0xbc2eb0(0x105)]())break;}return _0x3f0d6b;}[_0x405662(0x171)](_0x561fb2,_0x990b17){const _0x4a3b1e=_0x405662;_0x561fb2[_0x4a3b1e(0x13a)]='',_0x990b17[_0x4a3b1e(0x16b)](_0x386a16=>{const _0x551af6=_0x4a3b1e;if(_0x386a16[_0x551af6(0x169)]){const _0xc6e7cc=_0x386a16[_0x551af6(0x169)][_0x551af6(0x175)](!0x0);_0x561fb2[_0x551af6(0x15a)](_0xc6e7cc);}}),_0x561fb2[_0x4a3b1e(0x141)];const _0x36a7de=_0x561fb2[_0x4a3b1e(0x13b)],_0x1e99e8=[];return Array[_0x4a3b1e(0x104)](_0x36a7de)[_0x4a3b1e(0x16b)](_0x33d919=>{const _0x51b0e7=_0x4a3b1e,_0x4fdab0=_0x33d919[_0x51b0e7(0x132)]()[_0x51b0e7(0x176)];_0x1e99e8[_0x51b0e7(0x16f)](_0x1f9e05=>Math[_0x51b0e7(0x15f)](_0x1f9e05-_0x4fdab0)<this[_0x51b0e7(0x113)][_0x51b0e7(0x14c)])||_0x1e99e8[_0x51b0e7(0xf8)](_0x4fdab0);}),{'rowCount':_0x1e99e8[_0x4a3b1e(0x13e)]};}[_0x405662(0x100)](){const _0xa9cf08=_0x405662,_0x4c4c30=document[_0xa9cf08(0x154)](_0xa9cf08(0x117));return _0x4c4c30[_0xa9cf08(0x12d)]=this[_0xa9cf08(0x113)][_0xa9cf08(0xf2)][_0xa9cf08(0x120)],this[_0xa9cf08(0x113)][_0xa9cf08(0xf2)][_0xa9cf08(0x12f)]&&_0x4c4c30[_0xa9cf08(0x15e)][_0xa9cf08(0x17e)](this[_0xa9cf08(0x113)][_0xa9cf08(0xf2)][_0xa9cf08(0x12f)]),_0x4c4c30[_0xa9cf08(0x142)]=_0xa9cf08(0x17a),_0x4c4c30;}[_0x405662(0x12c)](_0x4d5fec,_0xfec7ed,_0x21d145){const _0x51aeb0=_0x405662;this[_0x51aeb0(0x171)](_0xfec7ed,_0x21d145);const _0x5e9157=this[_0x51aeb0(0x100)]();_0x4d5fec[_0x51aeb0(0x15a)](_0x5e9157),_0x4d5fec[_0x51aeb0(0x141)];const _0xf5dcdf=[..._0xfec7ed[_0x51aeb0(0x13b)],_0x5e9157],_0x488b03=[];_0xf5dcdf[_0x51aeb0(0x16b)](_0x42772e=>{const _0x25c5d4=_0x51aeb0,_0xa27e96=_0x42772e[_0x25c5d4(0x132)]()[_0x25c5d4(0x176)];_0x488b03[_0x25c5d4(0x16f)](_0x5728fb=>Math[_0x25c5d4(0x15f)](_0x5728fb-_0xa27e96)<this[_0x25c5d4(0x113)][_0x25c5d4(0x14c)])||_0x488b03[_0x25c5d4(0xf8)](_0xa27e96);});const _0x4bb15b=_0x488b03[_0x51aeb0(0x13e)];return _0x5e9157[_0x51aeb0(0x155)](),_0x4bb15b<=this[_0x51aeb0(0x113)][_0x51aeb0(0x158)];}[_0x405662(0x165)](_0x122a73,_0x6dab35){const _0x2ae4a2=_0x405662;this[_0x2ae4a2(0x146)][_0x2ae4a2(0x114)](),this[_0x2ae4a2(0xfd)][_0x2ae4a2(0x114)](),_0x122a73[_0x2ae4a2(0x16b)](_0x4b0a0b=>{const _0x6a61bd=_0x2ae4a2;_0x6dab35[_0x6a61bd(0x17d)](_0x4b0a0b)?this[_0x6a61bd(0xfd)][_0x6a61bd(0x17e)](_0x4b0a0b):this[_0x6a61bd(0x146)][_0x6a61bd(0x17e)](_0x4b0a0b);});}[_0x405662(0xf5)](_0x3e627e){const _0x3243d5=_0x405662;if(_0x3e627e>0x0&&!this[_0x3243d5(0x10f)]&&this[_0x3243d5(0x168)](),_0x3e627e>0x0&&this[_0x3243d5(0x10f)]){const _0x15515e=''+this[_0x3243d5(0x113)][_0x3243d5(0xf6)]+(_0x3e627e<0x63?_0x3e627e:'99');this[_0x3243d5(0x10f)][_0x3243d5(0x127)]=_0x15515e;}this[_0x3243d5(0x108)](),this[_0x3243d5(0x121)](),this[_0x3243d5(0x103)]();}[_0x405662(0x131)](_0x29cb3e,_0x5232e0){const _0x801747=_0x405662;this[_0x801747(0x165)](_0x29cb3e,_0x5232e0),this[_0x801747(0xf5)](_0x5232e0[_0x801747(0x13e)]);}[_0x405662(0xf3)](){const _0x25ed76=_0x405662;this[_0x25ed76(0x101)]&&_0x25ed76(0x16a)!=typeof IntersectionObserver&&(this[_0x25ed76(0x112)]=new IntersectionObserver(_0x38a4bd=>{const _0x183520=_0x25ed76;_0x38a4bd[0x0][_0x183520(0x107)]&&this[_0x183520(0x123)]&&requestAnimationFrame(()=>{const _0x35a4e6=_0x183520;this[_0x35a4e6(0xff)]();});},{'threshold':0.01,'rootMargin':_0x25ed76(0x12e)}),this[_0x25ed76(0x112)][_0x25ed76(0xfc)](this[_0x25ed76(0x101)]));}[_0x405662(0x167)](){const _0x398f6d=_0x405662;if(!this[_0x398f6d(0x101)])return!0x1;if(!this[_0x398f6d(0x101)][_0x398f6d(0x102)])return!0x1;const _0xc4982d=this[_0x398f6d(0x101)][_0x398f6d(0x132)]();if(0x0===_0xc4982d[_0x398f6d(0x15d)]||0x0===_0xc4982d[_0x398f6d(0x160)])return!0x1;const _0xb44943=window[_0x398f6d(0x151)]||document[_0x398f6d(0x181)][_0x398f6d(0x156)],_0x588470=window[_0x398f6d(0x153)]||document[_0x398f6d(0x181)][_0x398f6d(0x162)],_0x4be3ab=0xc8;return _0xc4982d[_0x398f6d(0x166)]>=-0xc8&&_0xc4982d[_0x398f6d(0x176)]<=_0xb44943+_0x4be3ab&&_0xc4982d[_0x398f6d(0x15c)]>=-0xc8&&_0xc4982d[_0x398f6d(0x182)]<=_0x588470+_0x4be3ab;}}
|
|
23
|
+
const _0x410709=_0xf654;(function(_0x6aa6d3,_0x51cf81){const _0x2a0c4f=_0xf654,_0xdde5ba=_0x6aa6d3();while(!![]){try{const _0x4a68ad=parseInt(_0x2a0c4f(0x19d))/0x1*(parseInt(_0x2a0c4f(0x1a9))/0x2)+parseInt(_0x2a0c4f(0x1c8))/0x3*(-parseInt(_0x2a0c4f(0x1ee))/0x4)+parseInt(_0x2a0c4f(0x192))/0x5*(-parseInt(_0x2a0c4f(0x1b2))/0x6)+-parseInt(_0x2a0c4f(0x215))/0x7+parseInt(_0x2a0c4f(0x1fd))/0x8*(parseInt(_0x2a0c4f(0x1af))/0x9)+-parseInt(_0x2a0c4f(0x1cb))/0xa+parseInt(_0x2a0c4f(0x18d))/0xb*(parseInt(_0x2a0c4f(0x1f5))/0xc);if(_0x4a68ad===_0x51cf81)break;else _0xdde5ba['push'](_0xdde5ba['shift']());}catch(_0x2bf2a1){_0xdde5ba['push'](_0xdde5ba['shift']());}}}(_0x3151,0x29e2b));import{View as _0x3dd104,BalloonPanelView as _0x4b4411,ButtonView as _0x22f141,clickOutsideHandler as _0x760a16}from'ckeditor5/src/ui.js';function _0xf654(_0x2685a2,_0x5b721e){const _0x315194=_0x3151();return _0xf654=function(_0xf654d6,_0x57ed12){_0xf654d6=_0xf654d6-0x182;let _0x584b78=_0x315194[_0xf654d6];return _0x584b78;},_0xf654(_0x2685a2,_0x5b721e);}import{Collection as _0x239a35}from'ckeditor5/src/utils.js';function _0x3151(){const _0x4011f1=['hide','300px','style','_createContainerElements','getComputedStyle','3RvAWnu','reorganizeChips','_applyCalculationStyles','some','querySelector','destroy','_updateShowMoreButtonVisibility','right','add','_bodyCollection','documentElement','calculationContainer','133372jhSORM','overflowChips','_ancestorsToRestore','showMoreButtonView','50px','_createMockButton','48537eBnDBI','children','from','58284feKhDP','innerHeight','position','slice','abs','remove','top','opacity','observe','_overflowChips','isVisible','left','none','setTemplate','_makeAncestorsVisible','pop','button','boxSizing','controlsButton','_containerElement','_showMoreBalloonPanelView','_createShowMoreButton','9aCXvig','height','block','487590PWqxNd','clientWidth','disconnect','disableAnimationOnEnter','_renderChipsAndCountRows','-9999px','div','_calculateContainerWidth','_checkAndHandleOverflow','textContent','clientHeight','bottom','_createCalculationContainer','zIndex','_repinBalloonPanel','_createShowMoreBalloonPanelView','_createShowMoreButtonView','isIntersecting','block\x20!important','createElement','clear','+\x201','overflowContainer','set','innerHTML','label','isConnected','render','showMoreLabelPrefix','push','element','tagName','extendTemplate','border-box','setContainerElement','119696tPXpAp','_updateOverflowUI','rowDetectionTolerance','_findTargetContainer','ck-calculation-container','cloneNode','content','1056fMJzIZ','_config','length','pointerEvents','forEach','_handleShowMoreButtonClick','_pendingCalculation','hidden','80rnDbrX','hideBalloonPanel','_applyOverflowResults','_showMoreButtonView','_parentView','width','visibility','innerWidth','_targetContainer','showMoreBalloon','maxVisibleRows','showBalloonPanel','appendChild','includes','visible\x20!important','_intersectionObserver','_visibleChips','parentElement','pin','display','_locale','_restoreAncestorVisibility','filter','auto','390922zQVQHs','visible','absolute','_distributeChips','_updateBalloonContent','_isContainerVisible','isOn','className','show','_testButtonFit','_calculateOverflowInContainer','_setupVisibilityObserver','showMoreButton','cssClasses','47993UQEWTn','body','execute','.ck-ai-chat','undefined','140EYtQnJ','classList','0px','offsetWidth','toLowerCase','getBoundingClientRect'];_0x3151=function(){return _0x4011f1;};return _0x3151();}const sn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},hn=_0x410709(0x199);export class AIChatChipsOverflowManager{[_0x410709(0x211)];[_0x410709(0x1f6)];[_0x410709(0x20d)];[_0x410709(0x1bb)];[_0x410709(0x200)]=null;[_0x410709(0x1c6)]=null;[_0x410709(0x1c5)]=null;[_0x410709(0x1a6)];[_0x410709(0x201)]=null;[_0x410709(0x20c)]=null;[_0x410709(0x1fb)]=!0x1;constructor(_0x2583c3,_0x30c166,_0x1390b1,_0x5a8601,_0x443e46){const _0x25d957=_0x410709;this[_0x25d957(0x211)]=_0x2583c3,this[_0x25d957(0x20d)]=_0x30c166,this[_0x25d957(0x1f6)]={...sn,..._0x1390b1,'cssClasses':{'controlsButton':'','calculationContainer':_0x25d957(0x1f2),..._0x1390b1[_0x25d957(0x18c)]}},this[_0x25d957(0x1bb)]=new _0x239a35(),this[_0x25d957(0x1a6)]=_0x5a8601,this[_0x25d957(0x201)]=_0x443e46||null;}[_0x410709(0x1ed)](_0x4555f5){const _0x24ad6c=_0x410709;this[_0x24ad6c(0x20c)]&&(this[_0x24ad6c(0x20c)][_0x24ad6c(0x1cd)](),this[_0x24ad6c(0x20c)]=null),this[_0x24ad6c(0x1c5)]=_0x4555f5,this[_0x24ad6c(0x18a)]();}get[_0x410709(0x1ac)](){const _0x1cb884=_0x410709;return this[_0x1cb884(0x200)];}get[_0x410709(0x1aa)](){const _0x57d0ac=_0x410709;return this[_0x57d0ac(0x1bb)];}[_0x410709(0x19e)](){requestAnimationFrame(()=>{const _0x20a8bf=_0xf654;this[_0x20a8bf(0x1d3)]();});}[_0x410709(0x208)](){const _0x563539=_0x410709;this[_0x563539(0x200)]&&this[_0x563539(0x1c6)]&&(this[_0x563539(0x183)](),this[_0x563539(0x200)][_0x563539(0x185)]=!0x0,this[_0x563539(0x1c6)][_0x563539(0x187)](),this[_0x563539(0x1c6)][_0x563539(0x20f)]({'target':this[_0x563539(0x200)][_0x563539(0x1e9)],'limiter':document[_0x563539(0x1a1)](_0x563539(0x190))}));}[_0x410709(0x1fe)](){const _0x3f864e=_0x410709;this[_0x3f864e(0x200)]&&this[_0x3f864e(0x1c6)]&&(this[_0x3f864e(0x200)][_0x3f864e(0x185)]=!0x1,this[_0x3f864e(0x1c6)][_0x3f864e(0x198)]());}[_0x410709(0x1df)](){const _0x436852=_0x410709;this[_0x436852(0x1bb)][_0x436852(0x1df)](),this[_0x436852(0x1fe)](),this[_0x436852(0x1a3)](),this[_0x436852(0x200)]&&(this[_0x436852(0x200)][_0x436852(0x1e4)]=''),this[_0x436852(0x1c6)]&&this[_0x436852(0x1c6)][_0x436852(0x1f4)][_0x436852(0x1df)]();}[_0x410709(0x1a2)](){const _0x2d2a5b=_0x410709;this[_0x2d2a5b(0x20c)]&&(this[_0x2d2a5b(0x20c)][_0x2d2a5b(0x1cd)](),this[_0x2d2a5b(0x20c)]=null),this[_0x2d2a5b(0x200)]&&(this[_0x2d2a5b(0x200)][_0x2d2a5b(0x1a2)](),this[_0x2d2a5b(0x200)]=null),this[_0x2d2a5b(0x1c6)]&&(this[_0x2d2a5b(0x1c6)][_0x2d2a5b(0x1a2)](),this[_0x2d2a5b(0x1c6)]=null);}[_0x410709(0x1d3)](){const _0x2bc960=_0x410709;if(!this[_0x2bc960(0x1c5)])return;if(!this[_0x2bc960(0x184)]())return void(this[_0x2bc960(0x1fb)]=!0x0);this[_0x2bc960(0x1fb)]=!0x1;const _0x827518=[...this[_0x2bc960(0x20d)],...this[_0x2bc960(0x1bb)]],_0x119bad=this[_0x2bc960(0x1d7)](),_0x2169ae=this[_0x2bc960(0x189)](_0x119bad,_0x827518),_0x2a3aa0=_0x119bad[_0x2bc960(0x1ab)];_0x2a3aa0&&this[_0x2bc960(0x212)](_0x2a3aa0),_0x119bad[_0x2bc960(0x1b7)](),this[_0x2bc960(0x1ff)](_0x827518,_0x2169ae);}[_0x410709(0x1c7)](){const _0x52eba8=_0x410709;this[_0x52eba8(0x200)]=this[_0x52eba8(0x1db)](),this[_0x52eba8(0x1c6)]=this[_0x52eba8(0x1da)](),this[_0x52eba8(0x200)][_0x52eba8(0x1e6)](),this[_0x52eba8(0x1c5)][_0x52eba8(0x209)](this[_0x52eba8(0x200)][_0x52eba8(0x1e9)]),this[_0x52eba8(0x200)]['on'](_0x52eba8(0x18f),()=>{const _0x337330=_0x52eba8;this[_0x337330(0x1fa)]();}),_0x760a16({'emitter':this[_0x52eba8(0x1c6)],'contextElements':[this[_0x52eba8(0x1c6)][_0x52eba8(0x1e9)],this[_0x52eba8(0x200)][_0x52eba8(0x1e9)]],'callback':()=>this[_0x52eba8(0x1fe)](),'activator':()=>this[_0x52eba8(0x200)][_0x52eba8(0x185)]});}[_0x410709(0x1db)](){const _0x4519ef=_0x410709,_0x243c26=new _0x22f141(this[_0x4519ef(0x211)]);_0x243c26[_0x4519ef(0x1e2)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1009a6=[this[_0x4519ef(0x1f6)][_0x4519ef(0x18c)][_0x4519ef(0x18b)]];return this[_0x4519ef(0x1f6)][_0x4519ef(0x18c)][_0x4519ef(0x1c4)]&&_0x1009a6[_0x4519ef(0x1e8)](this[_0x4519ef(0x1f6)][_0x4519ef(0x18c)][_0x4519ef(0x1c4)]),_0x243c26[_0x4519ef(0x1eb)]({'attributes':{'class':_0x1009a6}}),_0x243c26;}[_0x410709(0x1da)](){const _0x140b36=_0x410709,_0xa6fce6=new _0x4b4411(this[_0x140b36(0x211)]);return _0xa6fce6[_0x140b36(0x1eb)]({'attributes':{'class':this[_0x140b36(0x1f6)][_0x140b36(0x18c)][_0x140b36(0x206)]}}),this[_0x140b36(0x1a6)][_0x140b36(0x1a5)](_0xa6fce6),_0xa6fce6;}[_0x410709(0x183)](){const _0x51a24a=_0x410709;if(this[_0x51a24a(0x1c6)]&&(this[_0x51a24a(0x1c6)][_0x51a24a(0x1f4)][_0x51a24a(0x1df)](),this[_0x51a24a(0x1bb)][_0x51a24a(0x1f7)]>0x0)){this[_0x51a24a(0x1bb)][_0x51a24a(0x1f9)](_0xd4527=>{const _0x7bdb75=_0x51a24a;_0xd4527[_0x7bdb75(0x1ce)]();});const _0x21ea14=new _0x3dd104(this[_0x51a24a(0x211)]);_0x21ea14[_0x51a24a(0x1bf)]({'tag':_0x51a24a(0x1d1),'attributes':{'class':this[_0x51a24a(0x1f6)][_0x51a24a(0x18c)][_0x51a24a(0x1e1)]},'children':this[_0x51a24a(0x1bb)]}),this[_0x51a24a(0x1c6)][_0x51a24a(0x1f4)][_0x51a24a(0x1a5)](_0x21ea14);}}[_0x410709(0x1fa)](){const _0x1a9274=_0x410709;this[_0x1a9274(0x200)][_0x1a9274(0x185)]?this[_0x1a9274(0x1fe)]():this[_0x1a9274(0x208)]();}[_0x410709(0x1a3)](){const _0x527784=_0x410709,_0x4fbd6d=this[_0x527784(0x1bb)][_0x527784(0x1f7)]>0x0;this[_0x527784(0x200)]?.[_0x527784(0x1e9)]&&(this[_0x527784(0x200)][_0x527784(0x1e9)][_0x527784(0x19a)][_0x527784(0x210)]=_0x4fbd6d?'':_0x527784(0x1be));}[_0x410709(0x1d9)](){const _0x23128e=_0x410709;this[_0x23128e(0x200)]?.[_0x23128e(0x185)]&&this[_0x23128e(0x1c6)]?.[_0x23128e(0x1bc)]&&this[_0x23128e(0x200)][_0x23128e(0x1e9)]&&this[_0x23128e(0x1c6)][_0x23128e(0x20f)]({'target':this[_0x23128e(0x200)][_0x23128e(0x1e9)],'limiter':document[_0x23128e(0x1a1)](_0x23128e(0x190))});}[_0x410709(0x1f1)](_0x2b2d6a){const _0x5810f1=_0x410709,_0x437ba0=this[_0x5810f1(0x1c5)]?.[_0x5810f1(0x1ea)][_0x5810f1(0x196)]()||_0x5810f1(0x1d1),_0x1f9c34=this[_0x5810f1(0x1c5)]?.[_0x5810f1(0x193)];if(_0x1f9c34){const _0x47f52d=_0x1f9c34[0x0]||'',_0x10ff10=_0x2b2d6a[_0x5810f1(0x1a1)]('.'+_0x47f52d),_0x446526=_0x2b2d6a[_0x5810f1(0x1a1)](_0x437ba0);return _0x10ff10||_0x446526||_0x2b2d6a;}return _0x2b2d6a[_0x5810f1(0x1a1)](_0x437ba0)||_0x2b2d6a;}[_0x410709(0x1d2)](){const _0xf3d922=_0x410709,_0x2abb3a=this[_0xf3d922(0x201)]?.[_0xf3d922(0x1e9)]||this[_0xf3d922(0x1c5)];if(!_0x2abb3a)return hn;const _0x5ee15d=window[_0xf3d922(0x19c)](_0x2abb3a)[_0xf3d922(0x202)];if(_0xf3d922(0x214)===_0x5ee15d||_0xf3d922(0x194)===_0x5ee15d||!_0x5ee15d){const _0x2f2925=_0x2abb3a[_0xf3d922(0x20e)];if(_0x2f2925){const _0xc944be=window[_0xf3d922(0x19c)](_0x2f2925);return _0xf3d922(0x214)!==_0xc944be[_0xf3d922(0x202)]?_0xc944be[_0xf3d922(0x202)]:hn;}return hn;}return _0x5ee15d;}[_0x410709(0x19f)](_0xe9d7d3,_0x2f36b2){const _0x10de0d=_0x410709;this[_0x10de0d(0x1f6)][_0x10de0d(0x18c)][_0x10de0d(0x1a8)]&&_0xe9d7d3[_0x10de0d(0x193)][_0x10de0d(0x1a5)](this[_0x10de0d(0x1f6)][_0x10de0d(0x18c)][_0x10de0d(0x1a8)]),_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x202)]=_0x2f36b2,_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x1b4)]=_0x10de0d(0x217),_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x1b8)]=_0x10de0d(0x1d0),_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x1bd)]=_0x10de0d(0x1d0),_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x1b9)]='0',_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x1f8)]=_0x10de0d(0x1be),_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x1d8)]='-1',_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x203)]=_0x10de0d(0x20b),_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x210)]=_0x10de0d(0x1dd),_0xe9d7d3[_0x10de0d(0x19a)][_0x10de0d(0x1c3)]=_0x10de0d(0x1ec);}[_0x410709(0x212)](_0x3cd3b4){const _0x5eafed=_0x410709;_0x3cd3b4[_0x5eafed(0x1f9)](({element:_0x46de12,originalDisplay:_0x17c060,originalVisibility:_0xa979e0})=>{const _0x4d198c=_0x5eafed;_0x46de12[_0x4d198c(0x19a)][_0x4d198c(0x210)]=_0x17c060,_0x46de12[_0x4d198c(0x19a)][_0x4d198c(0x203)]=_0xa979e0;});}[_0x410709(0x1c0)](_0x3ea299){const _0x57988f=_0x410709,_0x3d5626=[];let _0x39b1ba=_0x3ea299;for(;_0x39b1ba&&_0x39b1ba!==document[_0x57988f(0x18e)];){const _0x32bced=window[_0x57988f(0x19c)](_0x39b1ba);_0x57988f(0x1be)!==_0x32bced[_0x57988f(0x210)]&&_0x57988f(0x1fc)!==_0x32bced[_0x57988f(0x203)]||(_0x3d5626[_0x57988f(0x1e8)]({'element':_0x39b1ba,'originalDisplay':_0x39b1ba[_0x57988f(0x19a)][_0x57988f(0x210)],'originalVisibility':_0x39b1ba[_0x57988f(0x19a)][_0x57988f(0x203)]}),_0x39b1ba[_0x57988f(0x19a)][_0x57988f(0x210)]=_0x57988f(0x1ca),_0x39b1ba[_0x57988f(0x19a)][_0x57988f(0x203)]=_0x57988f(0x216)),_0x39b1ba=_0x39b1ba[_0x57988f(0x20e)];}return _0x3d5626;}[_0x410709(0x19b)](){const _0x1450fd=_0x410709;let _0x408902,_0x2d479e;return this[_0x1450fd(0x201)]?.[_0x1450fd(0x1e9)]?(_0x408902=this[_0x1450fd(0x201)][_0x1450fd(0x1e9)][_0x1450fd(0x1f3)](!0x0),_0x2d479e=this[_0x1450fd(0x1f1)](_0x408902)):(_0x408902=document[_0x1450fd(0x1de)](_0x1450fd(0x1d1)),_0x2d479e=_0x408902),{'calculationContainer':_0x408902,'targetContainer':_0x2d479e};}[_0x410709(0x1d7)](){const _0x283556=_0x410709,{calculationContainer:_0x400ff3,targetContainer:_0x37cfcb}=this[_0x283556(0x19b)](),_0x5efc4=this[_0x283556(0x1d2)]();this[_0x283556(0x19f)](_0x400ff3,_0x5efc4);const _0xba9161=this[_0x283556(0x201)]?.[_0x283556(0x1e9)]||this[_0x283556(0x1c5)],_0x5b44c1=_0xba9161?.[_0x283556(0x20e)];_0x5b44c1?_0x5b44c1[_0x283556(0x209)](_0x400ff3):document[_0x283556(0x18e)][_0x283556(0x209)](_0x400ff3),_0x400ff3[_0x283556(0x205)]=_0x37cfcb;const _0x3d4f7c=this[_0x283556(0x1c0)](_0x5b44c1||null);return _0x400ff3[_0x283556(0x195)],_0x400ff3[_0x283556(0x1ab)]=_0x3d4f7c,_0x400ff3;}[_0x410709(0x189)](_0x5b1a77,_0x3c67f5){const _0x7dd004=_0x410709,_0x374f48=_0x5b1a77[_0x7dd004(0x205)]||_0x5b1a77,_0x590387=[],{rowCount:_0x1ce375}=this[_0x7dd004(0x1cf)](_0x374f48,_0x3c67f5);if(_0x1ce375<=this[_0x7dd004(0x1f6)][_0x7dd004(0x207)])return _0x590387;const _0x1742d3=_0x3c67f5[_0x7dd004(0x1b5)]();for(;_0x1742d3[_0x7dd004(0x1f7)]>0x0;){if(this[_0x7dd004(0x188)](_0x5b1a77,_0x374f48,_0x1742d3)){const _0x3015db=_0x3c67f5[_0x7dd004(0x213)](_0x574561=>!_0x1742d3[_0x7dd004(0x20a)](_0x574561));_0x590387[_0x7dd004(0x1e8)](..._0x3015db);break;}if(!_0x1742d3[_0x7dd004(0x1c1)]())break;}return _0x590387;}[_0x410709(0x1cf)](_0x15a5e8,_0x5bfbd0){const _0x4560ba=_0x410709;_0x15a5e8[_0x4560ba(0x1e3)]='',_0x5bfbd0[_0x4560ba(0x1f9)](_0x3ffb9f=>{const _0x1f8786=_0x4560ba;if(_0x3ffb9f[_0x1f8786(0x1e9)]){const _0x3e3f9d=_0x3ffb9f[_0x1f8786(0x1e9)][_0x1f8786(0x1f3)](!0x0);_0x15a5e8[_0x1f8786(0x209)](_0x3e3f9d);}}),_0x15a5e8[_0x4560ba(0x195)];const _0x5569a0=_0x15a5e8[_0x4560ba(0x1b0)],_0x3e7039=[];return Array[_0x4560ba(0x1b1)](_0x5569a0)[_0x4560ba(0x1f9)](_0x310ef4=>{const _0x1a8425=_0x4560ba,_0x849187=_0x310ef4[_0x1a8425(0x197)]()[_0x1a8425(0x1b8)];_0x3e7039[_0x1a8425(0x1a0)](_0x4cf25d=>Math[_0x1a8425(0x1b6)](_0x4cf25d-_0x849187)<this[_0x1a8425(0x1f6)][_0x1a8425(0x1f0)])||_0x3e7039[_0x1a8425(0x1e8)](_0x849187);}),{'rowCount':_0x3e7039[_0x4560ba(0x1f7)]};}[_0x410709(0x1ae)](){const _0x43d942=_0x410709,_0x45b5e4=document[_0x43d942(0x1de)](_0x43d942(0x1c2));return _0x45b5e4[_0x43d942(0x186)]=this[_0x43d942(0x1f6)][_0x43d942(0x18c)][_0x43d942(0x18b)],this[_0x43d942(0x1f6)][_0x43d942(0x18c)][_0x43d942(0x1c4)]&&_0x45b5e4[_0x43d942(0x193)][_0x43d942(0x1a5)](this[_0x43d942(0x1f6)][_0x43d942(0x18c)][_0x43d942(0x1c4)]),_0x45b5e4[_0x43d942(0x1d4)]=_0x43d942(0x1e0),_0x45b5e4;}[_0x410709(0x188)](_0x15a00b,_0x259db2,_0x1320d7){const _0x2def2=_0x410709;this[_0x2def2(0x1cf)](_0x259db2,_0x1320d7);const _0x595a0b=this[_0x2def2(0x1ae)]();_0x15a00b[_0x2def2(0x209)](_0x595a0b),_0x15a00b[_0x2def2(0x195)];const _0x505f7a=[..._0x259db2[_0x2def2(0x1b0)],_0x595a0b],_0x3547c7=[];_0x505f7a[_0x2def2(0x1f9)](_0x371705=>{const _0x48c8c9=_0x2def2,_0x6cf854=_0x371705[_0x48c8c9(0x197)]()[_0x48c8c9(0x1b8)];_0x3547c7[_0x48c8c9(0x1a0)](_0x56cdcf=>Math[_0x48c8c9(0x1b6)](_0x56cdcf-_0x6cf854)<this[_0x48c8c9(0x1f6)][_0x48c8c9(0x1f0)])||_0x3547c7[_0x48c8c9(0x1e8)](_0x6cf854);});const _0x15d339=_0x3547c7[_0x2def2(0x1f7)];return _0x595a0b[_0x2def2(0x1b7)](),_0x15d339<=this[_0x2def2(0x1f6)][_0x2def2(0x207)];}[_0x410709(0x182)](_0x57fc2a,_0x3cffe1){const _0x3e70bf=_0x410709;this[_0x3e70bf(0x20d)][_0x3e70bf(0x1df)](),this[_0x3e70bf(0x1bb)][_0x3e70bf(0x1df)](),_0x57fc2a[_0x3e70bf(0x1f9)](_0x1fe918=>{const _0x20138e=_0x3e70bf;_0x3cffe1[_0x20138e(0x20a)](_0x1fe918)?this[_0x20138e(0x1bb)][_0x20138e(0x1a5)](_0x1fe918):this[_0x20138e(0x20d)][_0x20138e(0x1a5)](_0x1fe918);});}[_0x410709(0x1ef)](_0x506bf0){const _0x46ca61=_0x410709;if(_0x506bf0>0x0&&!this[_0x46ca61(0x200)]&&this[_0x46ca61(0x1c7)](),_0x506bf0>0x0&&this[_0x46ca61(0x200)]){const _0x41252c=''+this[_0x46ca61(0x1f6)][_0x46ca61(0x1e7)]+(_0x506bf0<0x63?_0x506bf0:'99');this[_0x46ca61(0x200)][_0x46ca61(0x1e4)]=_0x41252c;}this[_0x46ca61(0x183)](),this[_0x46ca61(0x1a3)](),this[_0x46ca61(0x1d9)]();}[_0x410709(0x1ff)](_0x31ba5c,_0x32fd08){const _0x50cec0=_0x410709;this[_0x50cec0(0x182)](_0x31ba5c,_0x32fd08),this[_0x50cec0(0x1ef)](_0x32fd08[_0x50cec0(0x1f7)]);}[_0x410709(0x18a)](){const _0xa31369=_0x410709;this[_0xa31369(0x1c5)]&&_0xa31369(0x191)!=typeof IntersectionObserver&&(this[_0xa31369(0x20c)]=new IntersectionObserver(_0x2df0a1=>{const _0xd8e93c=_0xa31369;_0x2df0a1[0x0][_0xd8e93c(0x1dc)]&&this[_0xd8e93c(0x1fb)]&&requestAnimationFrame(()=>{const _0x2cfb8a=_0xd8e93c;this[_0x2cfb8a(0x1d3)]();});},{'threshold':0.01,'rootMargin':_0xa31369(0x1ad)}),this[_0xa31369(0x20c)][_0xa31369(0x1ba)](this[_0xa31369(0x1c5)]));}[_0x410709(0x184)](){const _0x37f177=_0x410709;if(!this[_0x37f177(0x1c5)])return!0x1;if(!this[_0x37f177(0x1c5)][_0x37f177(0x1e5)])return!0x1;const _0x576cbf=this[_0x37f177(0x1c5)][_0x37f177(0x197)]();if(0x0===_0x576cbf[_0x37f177(0x202)]||0x0===_0x576cbf[_0x37f177(0x1c9)])return!0x1;const _0x518615=window[_0x37f177(0x1b3)]||document[_0x37f177(0x1a7)][_0x37f177(0x1d5)],_0x6acaa7=window[_0x37f177(0x204)]||document[_0x37f177(0x1a7)][_0x37f177(0x1cc)],_0x42ff04=0xc8;return _0x576cbf[_0x37f177(0x1d6)]>=-0xc8&&_0x576cbf[_0x37f177(0x1b8)]<=_0x518615+_0x42ff04&&_0x576cbf[_0x37f177(0x1a4)]>=-0xc8&&_0x576cbf[_0x37f177(0x1bd)]<=_0x6acaa7+_0x42ff04;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x565e85=_0x44f0;(function(_0x121c70,_0x11f1d8){const _0x1952fd=_0x44f0,_0x1f316d=_0x121c70();while(!![]){try{const _0x5d3940=parseInt(_0x1952fd(0xf1))/0x1*(-parseInt(_0x1952fd(0xf5))/0x2)+-parseInt(_0x1952fd(0xdc))/0x3*(parseInt(_0x1952fd(0xfd))/0x4)+-parseInt(_0x1952fd(0xf4))/0x5*(parseInt(_0x1952fd(0xda))/0x6)+-parseInt(_0x1952fd(0xec))/0x7+-parseInt(_0x1952fd(0x114))/0x8+parseInt(_0x1952fd(0x106))/0x9+parseInt(_0x1952fd(0x10a))/0xa;if(_0x5d3940===_0x11f1d8)break;else _0x1f316d['push'](_0x1f316d['shift']());}catch(_0x21ab02){_0x1f316d['push'](_0x1f316d['shift']());}}}(_0xcc3e,0x2aa15));function _0x44f0(_0x1070ca,_0x6f9fcc){const _0xcc3e7c=_0xcc3e();return _0x44f0=function(_0x44f0c3,_0x80ed9b){_0x44f0c3=_0x44f0c3-0xd3;let _0x100099=_0xcc3e7c[_0x44f0c3];return _0x100099;},_0x44f0(_0x1070ca,_0x6f9fcc);}import{ButtonView as _0x660fdc,IconView as _0xe19375}from'ckeditor5/src/ui.js';import{IconClose as _0x1af7eb,IconDocument as _0x5e5357,IconFileUpload as _0x14df55,IconLink as _0xa1c169,IconSelection as _0x6def14}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x288f4a}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x41fcc7}from'../../../aicore/ui/aispinner.js';const mn={'file':_0x14df55,'document':_0x5e5357,'web-resource':_0xa1c169,'text':_0x14df55,'selection':_0x6def14},dn=_0x565e85(0xd8),un=_0x565e85(0xd9),_n=_0x565e85(0xeb),kn=_0x565e85(0xe7),xn=_0x565e85(0xf0),bn=_0x565e85(0xdd),wn='n';function _0xcc3e(){const _0x2d8f9c=['removeEventListener','remove','label','11347320obnxGh','_handleAnimationEndOnce','isVisible','webkitAnimationEnd','div','_initializeProperties','add','fire','removeContextItemChip','setTemplate','970328UKxkIM','type','ck-hidden','render','isLoading','_createTemplateChildren','ck-ai-chat-context-chip','ck-ai-chat-context-chip_wide','90XWTKdi','bindTemplate','38616doLxlm','ck-ai-chat-context-controls__chip-tooltip','_createRemoveButton','selection','uiId','set','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','disableAnimationOnEnter','_createLabelElement','ck-ai-chat-context-chip_new-chip','small','ck-ai-chat-context-chip__label','bind','tooltip','itemType','ck-ai-chat-context-chip_document','1827651jKXzoR','element','_createLoaderIcon','slice','ck-ai-chat-context-chip__type-icon','11OitVsx','_isAnimationOnEnterEnabled','_createIconView','77755FvWBBZ','54566ldPFjA','length','_createTemplateAttributes','content','addEventListener','extendTemplate','span','lastIndexOf','104mXNRvR','readonly','_setupRemoveButtonEvent','document','classList','locale','animationend','execute','_setupTemplate','2612835NCqjZI'];_0xcc3e=function(){return _0x2d8f9c;};return _0xcc3e();}export class AIChatContextItemButtonView extends _0x660fdc{constructor(_0x331035,_0x5b4ffc,_0x192231,_0x13b9a0,_0x5d0be2=!0x1){const _0x3b0a62=_0x565e85;super(_0x331035),this[_0x3b0a62(0xf2)]=_0x13b9a0,this[_0x3b0a62(0x10f)](_0x5b4ffc,_0x192231,_0x5d0be2),this[_0x3b0a62(0x105)]();}[_0x565e85(0xd5)](){const _0x11d9f4=_0x565e85;super[_0x11d9f4(0xd5)](),this[_0x11d9f4(0xf2)]&&this[_0x11d9f4(0xed)]&&(this[_0x11d9f4(0xed)][_0x11d9f4(0x101)][_0x11d9f4(0x110)](_0x11d9f4(0xe5)),this[_0x11d9f4(0x10b)](this[_0x11d9f4(0xed)],()=>{const _0x289e1a=_0x11d9f4;this[_0x289e1a(0xed)]&&this[_0x289e1a(0xed)][_0x289e1a(0x101)][_0x289e1a(0x108)](_0x289e1a(0xe5));}));}[_0x565e85(0xe3)](){const _0x398adf=_0x565e85;this[_0x398adf(0xf2)]=!0x1,this[_0x398adf(0xed)]&&this[_0x398adf(0xed)][_0x398adf(0x101)][_0x398adf(0x108)](_0x398adf(0xe5));}[_0x565e85(0x10f)](_0x49b576,_0x54c5c9,_0x514f64){const _0x18a540=_0x565e85;this[_0x18a540(0xe1)](_0x18a540(0x109),_0x49b576[_0x18a540(0x109)]),this[_0x18a540(0xe1)](_0x18a540(0xe9),!0x0),this[_0x18a540(0xe1)](_0x18a540(0xea),_0x49b576[_0x18a540(0xd3)]),this[_0x18a540(0xe1)]('id',_0x49b576[_0x18a540(0xe0)]),this[_0x18a540(0xe1)](_0x18a540(0xfe),_0x54c5c9),this[_0x18a540(0xe1)](_0x18a540(0xd6),_0x514f64);}[_0x565e85(0x105)](){const _0x3c35de=_0x565e85,_0x1784ef=this[_0x3c35de(0xf3)](),_0x5b55a9=this[_0x3c35de(0xde)](),_0x22de8b=this[_0x3c35de(0xdb)];this[_0x3c35de(0x113)]({'tag':_0x3c35de(0x10e),'attributes':this[_0x3c35de(0xf7)](_0x22de8b),'children':this[_0x3c35de(0xd7)](_0x1784ef,_0x5b55a9,_0x22de8b)});}[_0x565e85(0xf7)](_0x1c40b9){const _0x4cbfb2=_0x565e85;return{'class':[dn,_0x1c40b9['if'](_0x4cbfb2(0xea),_n,_0x1acd06=>_0x4cbfb2(0x100)==_0x1acd06),_0x1c40b9['if'](_0x4cbfb2(0xea),un,_0x1ce87d=>_0x4cbfb2(0xdf)==_0x1ce87d)],'data-cke-tooltip-text':_0x1c40b9['to'](_0x4cbfb2(0x109),Tn),'data-cke-tooltip-position':wn,'data-cke-tooltip-class':bn};}[_0x565e85(0xd7)](_0x3e29c5,_0x39a7ee,_0x44d858){const _0x1ee88d=_0x565e85,_0x3aed14=this[_0x1ee88d(0xe4)](_0x44d858),_0x49142b=this[_0x1ee88d(0xee)]();return this[_0x1ee88d(0xfe)]?[_0x3e29c5,_0x3aed14]:[_0x3e29c5,_0x49142b,_0x3aed14,_0x39a7ee];}[_0x565e85(0xe4)](_0x59df4e){const _0x32c974=_0x565e85;return{'tag':_0x32c974(0xfb),'attributes':{'class':kn},'children':[{'text':_0x59df4e['to'](_0x32c974(0x109))}]};}[_0x565e85(0xde)](){const _0x19800d=_0x565e85,_0x175098=new _0x660fdc(this[_0x19800d(0x102)]);return _0x175098[_0x19800d(0xe1)]({'label':_0x288f4a(this[_0x19800d(0x102)],_0x19800d(0xe2)),'icon':_0x1af7eb}),this[_0x19800d(0xff)](_0x175098),_0x175098;}[_0x565e85(0xff)](_0x413758){const _0x523f93=_0x565e85;_0x413758['on'](_0x523f93(0x104),()=>{const _0x3ee9f5=_0x523f93;this[_0x3ee9f5(0x111)](_0x3ee9f5(0x112),this['id']);});}[_0x565e85(0xf3)](){const _0x3dc754=_0x565e85,_0x11f0eb=this[_0x3dc754(0xdb)],_0x221140=new _0xe19375();return _0x221140[_0x3dc754(0xf8)]=mn[this[_0x3dc754(0xea)]],_0x221140[_0x3dc754(0xfa)]({'attributes':{'class':[xn,_0x11f0eb['if'](_0x3dc754(0xd6),_0x3dc754(0xd4),_0x3c7017=>_0x3c7017)]}}),_0x221140;}[_0x565e85(0x10b)](_0x464733,_0x1986e1){const _0x129d37=_0x565e85;if(!_0x464733)return;const _0x40726c=()=>{const _0x12753b=_0x44f0;_0x1986e1(),_0x464733[_0x12753b(0x107)](_0x12753b(0x103),_0x40726c),_0x464733[_0x12753b(0x107)](_0x12753b(0x10d),_0x40726c);};_0x464733[_0x129d37(0xf9)](_0x129d37(0x103),_0x40726c),_0x464733[_0x129d37(0xf9)](_0x129d37(0x10d),_0x40726c);}[_0x565e85(0xee)](){const _0x544532=_0x565e85,_0x407f70=new _0x41fcc7(_0x544532(0xe6));return _0x407f70[_0x544532(0xe8)](_0x544532(0x10c))['to'](this,_0x544532(0xd6),_0x5f58ab=>_0x5f58ab),_0x407f70;}}function Tn(_0x1541b7){const _0x43530f=_0x565e85;if(!_0x1541b7)return _0x1541b7;if(_0x1541b7[_0x43530f(0xf6)]<=0x78)return _0x1541b7;const _0x16513e=_0x1541b7[_0x43530f(0xef)](0x0,0x78),_0x24b196=_0x16513e[_0x43530f(0xfc)]('\x20');return(_0x24b196>0x0?_0x16513e[_0x43530f(0xef)](0x0,_0x24b196):_0x16513e)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3c63a1=_0x302c;(function(_0x54ea5f,_0x4f5a8c){const _0x537b05=_0x302c,_0x577c3b=_0x54ea5f();while(!![]){try{const _0x310561=-parseInt(_0x537b05(0x192))/0x1*(-parseInt(_0x537b05(0x1cb))/0x2)+-parseInt(_0x537b05(0x195))/0x3*(-parseInt(_0x537b05(0x1cc))/0x4)+parseInt(_0x537b05(0x1b0))/0x5+-parseInt(_0x537b05(0x1cd))/0x6*(parseInt(_0x537b05(0x194))/0x7)+parseInt(_0x537b05(0x1a5))/0x8*(-parseInt(_0x537b05(0x1cf))/0x9)+parseInt(_0x537b05(0x198))/0xa*(parseInt(_0x537b05(0x19a))/0xb)+-parseInt(_0x537b05(0x1a0))/0xc;if(_0x310561===_0x4f5a8c)break;else _0x577c3b['push'](_0x577c3b['shift']());}catch(_0x30064b){_0x577c3b['push'](_0x577c3b['shift']());}}}(_0x1a59,0xed8a8));import{FocusTracker as _0x406790,KeystrokeHandler as _0x5e8608}from'ckeditor5/src/utils.js';function _0x1a59(){const _0x4598d7=['536968RbKcBE','35376isgzNM','focus','4310532HmCySU','clear','element','clearError','listenTo','locale','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','div','stop','render','AI_CHAT_CONTEXT_URL_INVALID_ERROR','errorText','add','ck-button-icon\x20ck-button-back','727EzhsML','trim','826FsLYDu','36dJQJiH','focusTracker','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','3349900VXaugl','AI_CHAT_CONTEXT_URL_PLACEHOLDER','22xtRMfV','AI_CHAT_CONTEXT_URL_LABEL','esc','shift+tab','ck-button-icon','ck-labeled-field-view_empty','5756508mocYVA','cancel','_updateConfirmButtonState','set','fieldView','8hHEadr','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_setupEventHandlers','urlInputField','keystrokes','fire','submitUrl','execute','length','_createUrlInputField','confirmButton','1347035HxwggT','focusCycler','submit','_createBackButton','_setupTemplate','_isValidUrl','_createConfirmButton','input','createCollection','getValue','tab','_handleSubmit','setError','forEach','ck-ai-chat-context-controls__url-input-section','isEnabled','ck-ai-chat-context-controls__url-form','refreshBalloon','children','value','_focusables','AI_CHAT_CONTEXT_URL_ADD_URL','form','destroy','backButton','_setupKeystrokes','setTemplate','212xxSTEy'];_0x1a59=function(){return _0x4598d7;};return _0x1a59();}import{ButtonView as _0x2d113e,FocusCycler as _0xb89a67,LabeledFieldView as _0x52789b,View as _0x159f82,FormHeaderView as _0x304cd9,createLabeledInputText as _0x147ef3,submitHandler as _0x4a20d8}from'ckeditor5/src/ui.js';import{IconCheck as _0x41e897,IconPreviousArrow as _0x230b24}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2a3dbb}from'../../../aicore/utils/common-translations.js';function _0x302c(_0x56f12d,_0x608550){const _0x1a5914=_0x1a59();return _0x302c=function(_0x302c9c,_0x2f5972){_0x302c9c=_0x302c9c-0x18d;let _0x22d3ca=_0x1a5914[_0x302c9c];return _0x22d3ca;},_0x302c(_0x56f12d,_0x608550);}const ch=_0x3c63a1(0x1c0),nh=_0x3c63a1(0x1be);export class AIChatContextPanelUrlInputView extends _0x159f82{[_0x3c63a1(0x196)];[_0x3c63a1(0x1a9)];[_0x3c63a1(0x1c4)];[_0x3c63a1(0x1b1)];[_0x3c63a1(0x1a8)];[_0x3c63a1(0x1c8)];[_0x3c63a1(0x1af)];constructor(_0x450ea0){const _0x47d851=_0x3c63a1;super(_0x450ea0),this[_0x47d851(0x196)]=new _0x406790(),this[_0x47d851(0x1a9)]=new _0x5e8608(),this[_0x47d851(0x1c8)]=this[_0x47d851(0x1b3)](),this[_0x47d851(0x1a8)]=this[_0x47d851(0x1ae)](),this[_0x47d851(0x1af)]=this[_0x47d851(0x1b6)](),this[_0x47d851(0x1c4)]=this[_0x47d851(0x1b8)]([this[_0x47d851(0x1c8)],this[_0x47d851(0x1a8)],this[_0x47d851(0x1af)]]),this[_0x47d851(0x1b1)]=new _0xb89a67({'focusables':this[_0x47d851(0x1c4)],'focusTracker':this[_0x47d851(0x196)],'keystrokeHandler':this[_0x47d851(0x1a9)],'actions':{'focusPrevious':_0x47d851(0x19d),'focusNext':_0x47d851(0x1ba)}}),this[_0x47d851(0x1b4)](),this[_0x47d851(0x1a7)](),this[_0x47d851(0x1c9)]();}[_0x3c63a1(0x18d)](){const _0x5b6dea=_0x3c63a1;super[_0x5b6dea(0x18d)](),this[_0x5b6dea(0x1c4)][_0x5b6dea(0x1bd)](_0x5d2913=>{const _0x104885=_0x5b6dea;this[_0x104885(0x196)][_0x104885(0x190)](_0x5d2913[_0x104885(0x1d1)]),this[_0x104885(0x1a9)][_0x104885(0x1d3)](_0x5d2913[_0x104885(0x1d1)]);}),_0x4a20d8({'view':this}),this[_0x5b6dea(0x1ce)]();}[_0x3c63a1(0x1c7)](){const _0x512282=_0x3c63a1;super[_0x512282(0x1c7)](),this[_0x512282(0x196)][_0x512282(0x1c7)](),this[_0x512282(0x1a9)][_0x512282(0x1c7)]();}[_0x3c63a1(0x1ce)](){const _0x18cc38=_0x3c63a1;this[_0x18cc38(0x1a8)][_0x18cc38(0x1ce)]();}[_0x3c63a1(0x1b9)](){const _0x4d0a47=_0x3c63a1;return this[_0x4d0a47(0x1a8)][_0x4d0a47(0x1a4)][_0x4d0a47(0x1d1)]?.[_0x4d0a47(0x1c3)]?.[_0x4d0a47(0x193)]()||'';}[_0x3c63a1(0x1d0)](){const _0x34b366=_0x3c63a1;this[_0x34b366(0x1a8)][_0x34b366(0x1a4)][_0x34b366(0x1d1)][_0x34b366(0x1c3)]='',this[_0x34b366(0x1a8)][_0x34b366(0x18f)]=null,this[_0x34b366(0x1af)][_0x34b366(0x1bf)]=!0x1;}[_0x3c63a1(0x1bc)](_0x1f0de3){const _0x2521f7=_0x3c63a1;this[_0x2521f7(0x1a8)][_0x2521f7(0x18f)]=_0x1f0de3,this[_0x2521f7(0x1a2)](),this[_0x2521f7(0x1aa)](_0x2521f7(0x1c1));}[_0x3c63a1(0x1d2)](){const _0x3e02d1=_0x3c63a1;this[_0x3e02d1(0x1a8)][_0x3e02d1(0x18f)]=null,this[_0x3e02d1(0x1a2)]();}[_0x3c63a1(0x1b3)](){const _0x2418ba=_0x3c63a1,_0x279af8=new _0x2d113e(this[_0x2418ba(0x1d4)]);return _0x279af8[_0x2418ba(0x1a3)]({'icon':_0x230b24,'tooltip':_0x2a3dbb(this[_0x2418ba(0x1d4)],_0x2418ba(0x1d5)),'tooltipPosition':'n','class':_0x2418ba(0x191)}),_0x279af8;}[_0x3c63a1(0x1ae)](){const _0x13bd34=_0x3c63a1,_0x3a2a5c=new _0x52789b(this[_0x13bd34(0x1d4)],_0x147ef3);return _0x3a2a5c[_0x13bd34(0x1a3)]({'label':_0x2a3dbb(this[_0x13bd34(0x1d4)],_0x13bd34(0x19b)),'class':_0x13bd34(0x19f)}),_0x3a2a5c[_0x13bd34(0x1a4)][_0x13bd34(0x1a3)]({'placeholder':_0x2a3dbb(this[_0x13bd34(0x1d4)],_0x13bd34(0x199))}),_0x3a2a5c;}[_0x3c63a1(0x1b6)](){const _0x142e22=_0x3c63a1,_0x4e9ba6=new _0x2d113e(this[_0x142e22(0x1d4)]);return _0x4e9ba6[_0x142e22(0x1a3)]({'icon':_0x41e897,'tooltip':_0x2a3dbb(this[_0x142e22(0x1d4)],_0x142e22(0x1c5)),'tooltipPosition':'n','class':_0x142e22(0x19e),'type':_0x142e22(0x1b2),'isEnabled':!0x1}),_0x4e9ba6;}[_0x3c63a1(0x1b4)](){const _0x312867=_0x3c63a1,_0xe87050=new _0x304cd9(this[_0x312867(0x1d4)],{'label':_0x2a3dbb(this[_0x312867(0x1d4)],_0x312867(0x1c5)),'class':_0x312867(0x197)});_0xe87050[_0x312867(0x1c2)][_0x312867(0x190)](this[_0x312867(0x1c8)],0x0),this[_0x312867(0x1ca)]({'tag':_0x312867(0x1c6),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0xe87050,{'tag':_0x312867(0x1d6),'attributes':{'class':nh},'children':[this[_0x312867(0x1a8)],this[_0x312867(0x1af)]]}]});}[_0x3c63a1(0x1a7)](){const _0xb18045=_0x3c63a1;this[_0xb18045(0x1c8)]['on'](_0xb18045(0x1ac),()=>{const _0x5a08f1=_0xb18045;this[_0x5a08f1(0x1d0)](),this[_0x5a08f1(0x1aa)](_0x5a08f1(0x1a1));}),this[_0xb18045(0x1a8)][_0xb18045(0x1a4)]['on'](_0xb18045(0x1b7),()=>{const _0x410e82=_0xb18045;this[_0x410e82(0x1d2)](),this[_0x410e82(0x1a2)](),this[_0x410e82(0x1aa)](_0x410e82(0x1c1));}),this['on'](_0xb18045(0x1b2),_0x35d235=>{const _0x518ce3=_0xb18045;_0x35d235[_0x518ce3(0x1d7)](),this[_0x518ce3(0x1bb)]();});}[_0x3c63a1(0x1c9)](){const _0xd0bd6e=_0x3c63a1;this[_0xd0bd6e(0x1a9)][_0xd0bd6e(0x1a3)](_0xd0bd6e(0x19c),(_0x48c8ff,_0xc427d2)=>{const _0x507562=_0xd0bd6e;this[_0x507562(0x1d0)](),this[_0x507562(0x1aa)](_0x507562(0x1a1)),_0xc427d2();});}[_0x3c63a1(0x1bb)](){const _0x287410=_0x3c63a1,_0x1b223a=this[_0x287410(0x1b9)]()[_0x287410(0x193)]();_0x1b223a?this[_0x287410(0x1b5)](_0x1b223a)?(this[_0x287410(0x1d2)](),this[_0x287410(0x1aa)](_0x287410(0x1ab),_0x1b223a)):this[_0x287410(0x1bc)](_0x2a3dbb(this[_0x287410(0x1d4)],_0x287410(0x18e))):this[_0x287410(0x1bc)](_0x2a3dbb(this[_0x287410(0x1d4)],_0x287410(0x1a6)));}[_0x3c63a1(0x1a2)](){const _0xa0fd45=_0x3c63a1,_0x4aa5c9=this[_0xa0fd45(0x1b9)]()[_0xa0fd45(0x193)](),_0x250a76=!!this[_0xa0fd45(0x1a8)][_0xa0fd45(0x18f)];this[_0xa0fd45(0x1af)][_0xa0fd45(0x1bf)]=_0x4aa5c9[_0xa0fd45(0x1ad)]>0x0&&!_0x250a76;}[_0x3c63a1(0x1b5)](_0x297493){try{return!!new URL(_0x297493);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x50aa3b=_0x44f6;function _0x1c38(){const _0x561109=['element','northArrowSouthWest','extendTemplate','_urlInputView','setContextItemLoading','enabled','urls','buttonView','_createResourcesBalloonView','bind','setAddContextOptions','current','removeContextItemChip','cancel','balloonView','showUrlBalloonPanel','showSourceResourcesBalloon','reorganizeChips','searchInputVisibleFrom','_addContextBalloonConfig','_setupTemplate','remove','execute','_createContextButton','ck-ai-chat-context-controls__add-context-button','_bindEventHandlers','20414664fthoDb','ck-ai-chat-context-controls__add-context-balloon-panel','defaultPositions','ck-ai-chat-context-controls__url-balloon-panel','pin','_conversationContextsChips','showAddContextBalloonPanel','addContextButtonView','submitUrl','_setupAllBalloonClickOutsideHandlers','done','removeContextItem','setContainerElement','addUrlToContext','createCollection','_currentContextsChips','isLoading','icon','2263935IosoTZ','_toggleAddContextBalloon','updateResourceState','menuitem','_addContextToCollection','clearCurrentContextItems','clear','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addDocumentToContext','conversation','southArrowNorth','_handleUrlSubmit','_createBalloonButton','_setBalloonPanelContent','addFileToContext','_resourcesBalloonView','div','overflowChips','_createAddContextBalloonPanelView','northArrowSouth','document','setConversationContext','isVisible','_setAddContextButtonEnabled','arrowView','5229364ODEnCG','addContextItem','fire','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat','locale','1368340eUwwAG','ck-ai-chat-controls-button','_setupAddContextBalloonClickOutsideHandler','AI_CHAT_CONTEXT_ADD_CONTEXT','set','add','closeSourceResourceBalloon','_getLimiterElement','ck-reset_all-excluded','_addContextBalloonPanelView','children','hide','focus','render','populateSourceResourceBalloon','_showSourceResourcesBalloon','tooltip','closest','southArrowNorthEast','2508762jeDmft','isOn','source','body','_setupUrlBalloonClickOutsideHandler','_createUrlBalloonPanelView','_createArrowView','_createAddContextButtonView','loadSourceResources','995094HNsNKL','ck-ai-chat-controls_context_show-more-button','files','type','hideAddContextBalloonPanel','10687313VhYQMB','_overflowManager','refreshBalloon','__arrow','hideUrlBalloonPanel','ck-ai-chat-context-controls','show','_handleAddContextButtonClick','_removeContextFromCollection','_urlBalloonPanelView','bodyCollection','label','isAnyResourceBalloonVisible','sources','content','ck-ai-chat-context-controls__pending-contexts','AI_CHAT_CONTEXT_URL_LABEL','southArrowNorthWest','destroy','find','clearConversationContextItems','_createBaseBalloonPanel','isEnabled','northArrowSouthEast','ck-ai-chat-context-chips-wrapper-balloon','addResourceToContext','setTemplate','_addUrlContent','isHidden','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-context-controls__balloon-button','25bwkKQR','AI_CHAT_CONTEXT_FILE_LABEL','isReadOnly'];_0x1c38=function(){return _0x561109;};return _0x1c38();}(function(_0x44f480,_0x218049){const _0x463f1b=_0x44f6,_0x1afcb4=_0x44f480();while(!![]){try{const _0x530172=parseInt(_0x463f1b(0xfc))/0x1+-parseInt(_0x463f1b(0x10f))/0x2+-parseInt(_0x463f1b(0x16b))/0x3+parseInt(_0x463f1b(0xf6))/0x4+parseInt(_0x463f1b(0x13c))/0x5*(-parseInt(_0x463f1b(0x118))/0x6)+-parseInt(_0x463f1b(0x11d))/0x7+parseInt(_0x463f1b(0x159))/0x8;if(_0x530172===_0x218049)break;else _0x1afcb4['push'](_0x1afcb4['shift']());}catch(_0x4e59be){_0x1afcb4['push'](_0x1afcb4['shift']());}}}(_0x1c38,0xd2914));import{BalloonPanelView as _0x1c9cbe,ButtonView as _0x314fe6,clickOutsideHandler as _0x323c3c,FileDialogButtonView as _0x283fcb,IconView as _0x14ed84,View as _0x313c89}from'ckeditor5/src/ui.js';function _0x44f6(_0x188b7a,_0x455f63){const _0x1c3808=_0x1c38();return _0x44f6=function(_0x44f63a,_0x5e9914){_0x44f63a=_0x44f63a-0xf3;let _0x29ee83=_0x1c3808[_0x44f63a];return _0x29ee83;},_0x44f6(_0x188b7a,_0x455f63);}import{IconBrowseFiles as _0x44a71f,IconDocument as _0x29d693,IconDocumentOutline as _0x186b14,IconDropdownArrow as _0xe95710,IconLink as _0x3e19cf,IconPaperClip as _0x1caf9f}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x39520d}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x42ee9b}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x1b0994}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1fb0bb}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x47334c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x50aa3b(0x173),_0x50aa3b(0x179),_0x50aa3b(0x166),_0x50aa3b(0x136),_0x50aa3b(0x164),_0x50aa3b(0x117)];const ko=_0x50aa3b(0x122),Eo=_0x50aa3b(0x12c),vo=_0x50aa3b(0x15a),Vo=_0x50aa3b(0x157),Io=_0x50aa3b(0x15c),Po=_0x50aa3b(0x13b),Ro=_0x50aa3b(0x13a),Uo=_0x50aa3b(0xfd),Lo=_0x50aa3b(0x135),No=_0x50aa3b(0x119),Oo=_0x50aa3b(0xf9),Mo=_0x50aa3b(0xfa),Ho=[_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x140)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x17e)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x134)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x12e)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x175)],_0x1c9cbe[_0x50aa3b(0x15b)][_0x50aa3b(0x10e)]];export class AIChatContextPanelView extends _0x313c89{[_0x50aa3b(0x160)];[_0x50aa3b(0x168)]=this[_0x50aa3b(0x167)]();[_0x50aa3b(0x15e)]=this[_0x50aa3b(0x167)]();[_0x50aa3b(0x11e)];[_0x50aa3b(0x105)];[_0x50aa3b(0x126)];[_0x50aa3b(0x142)];[_0x50aa3b(0x17a)];[_0x50aa3b(0x152)];[_0x50aa3b(0x127)];constructor(_0x1bd29c,_0x1c4dea){const _0x1e4f60=_0x50aa3b;super(_0x1bd29c),this[_0x1e4f60(0x127)]=_0x1c4dea[_0x1e4f60(0x127)],this[_0x1e4f60(0x168)]=this[_0x1e4f60(0x167)](),this[_0x1e4f60(0x15e)]=this[_0x1e4f60(0x167)](),this[_0x1e4f60(0x160)]=this[_0x1e4f60(0x116)](_0x1bd29c),this[_0x1e4f60(0x105)]=this[_0x1e4f60(0x17d)](_0x1bd29c),this[_0x1e4f60(0x126)]=this[_0x1e4f60(0x114)](_0x1bd29c),this[_0x1e4f60(0x17a)]=this[_0x1e4f60(0x147)](_0x1bd29c,_0x1c4dea);const _0x177362={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x1e4f60(0x11e)]=new _0x1b0994(_0x1bd29c,this[_0x1e4f60(0x168)],_0x177362,this[_0x1e4f60(0x127)],this),this[_0x1e4f60(0x152)]={'buttonView':this[_0x1e4f60(0x160)],'balloonView':this[_0x1e4f60(0x105)],'hideMethod':this[_0x1e4f60(0x11c)][_0x1e4f60(0x148)](this),'showMethod':this[_0x1e4f60(0x15f)][_0x1e4f60(0x148)](this)},this[_0x1e4f60(0x153)](),this[_0x1e4f60(0x158)]();}[_0x50aa3b(0x109)](){const _0x4fc124=_0x50aa3b;super[_0x4fc124(0x109)](),this[_0x4fc124(0x162)](),this[_0x4fc124(0x11e)][_0x4fc124(0x165)](this[_0x4fc124(0x13f)]),this[_0x4fc124(0x11e)][_0x4fc124(0x150)]();}[_0x50aa3b(0x12f)](){const _0x58fa80=_0x50aa3b;super[_0x58fa80(0x12f)](),this[_0x58fa80(0x11e)][_0x58fa80(0x12f)](),this[_0x58fa80(0x17a)][_0x58fa80(0x12f)]();}[_0x50aa3b(0xf7)](_0x4707d9,_0x749ced){const _0x152883=_0x50aa3b,_0x895c29=this[_0x152883(0x156)](_0x4707d9,_0x152883(0x14a),!0x0,_0x749ced);this[_0x152883(0x16f)](_0x895c29,this[_0x152883(0x168)]),this[_0x152883(0x11e)][_0x152883(0x150)]();}[_0x50aa3b(0x164)](_0x412bb9){const _0xb591e9=_0x50aa3b;this[_0xb591e9(0x125)](_0x412bb9,this[_0xb591e9(0x168)]),this[_0xb591e9(0x125)](_0x412bb9,this[_0xb591e9(0x11e)][_0xb591e9(0x17c)]),this[_0xb591e9(0x11e)][_0xb591e9(0x150)]();}[_0x50aa3b(0x143)](_0x15907b,_0x54dbca){const _0x252c2e=_0x50aa3b;let _0x158954=this[_0x252c2e(0x168)][_0x252c2e(0x130)](_0x979143=>_0x979143['id']===_0x15907b);_0x158954||(_0x158954=this[_0x252c2e(0x11e)][_0x252c2e(0x17c)][_0x252c2e(0x130)](_0x1e6be6=>_0x1e6be6['id']===_0x15907b)),_0x158954&&(_0x158954[_0x252c2e(0x169)]=_0x54dbca);}[_0x50aa3b(0x180)](_0x5bf8d8){const _0x5f3a06=_0x50aa3b;this[_0x5f3a06(0x15e)][_0x5f3a06(0x171)]();for(const _0x3fcfc4 of _0x5bf8d8){const _0x5f0cc1=this[_0x5f3a06(0x156)](_0x3fcfc4,_0x5f3a06(0x174),!0x1,!0x1);this[_0x5f3a06(0x16f)](_0x5f0cc1,this[_0x5f3a06(0x15e)]);}}[_0x50aa3b(0x170)](){const _0x18d821=_0x50aa3b;this[_0x18d821(0x168)][_0x18d821(0x171)](),this[_0x18d821(0x11e)][_0x18d821(0x171)]();}[_0x50aa3b(0x131)](){const _0x1f6741=_0x50aa3b;this[_0x1f6741(0x15e)][_0x1f6741(0x171)]();}[_0x50aa3b(0x16d)](_0x1a136b,_0x1337b0,_0xe51e09){const _0x3bd277=_0x50aa3b;this[_0x3bd277(0x17a)][_0x3bd277(0x16d)](_0x1a136b,_0x1337b0,_0xe51e09);}[_0x50aa3b(0x11c)](){const _0x77ddd9=_0x50aa3b;this[_0x77ddd9(0x16c)](!0x1);}[_0x50aa3b(0x15f)](){const _0x272810=_0x50aa3b;this[_0x272810(0x16c)](!0x0);}[_0x50aa3b(0x121)](){const _0x2d2052=_0x50aa3b;this[_0x2d2052(0x126)][_0x2d2052(0x107)](),this[_0x2d2052(0x160)][_0x2d2052(0x110)]=!0x1,this[_0x2d2052(0x142)]&&this[_0x2d2052(0x142)][_0x2d2052(0x171)]();}[_0x50aa3b(0x14e)](){const _0xd9e229=_0x50aa3b;this[_0xd9e229(0x126)][_0xd9e229(0x123)](),this[_0xd9e229(0x160)][_0xd9e229(0x110)]=!0x0;}[_0x50aa3b(0x10b)](_0xb3c101){const _0x54c867=_0x50aa3b;this[_0x54c867(0x17a)][_0x54c867(0x14f)](_0xb3c101),this[_0x54c867(0x160)][_0x54c867(0x110)]=!0x0;}[_0x50aa3b(0x10a)](_0x1db187,_0x412b41,_0x4f5262,_0x4b3a57){const _0x5f0fe2=_0x50aa3b;this[_0x5f0fe2(0x17a)][_0x5f0fe2(0x10a)](_0x1db187,_0x4f5262,_0x4b3a57);}[_0x50aa3b(0x102)](_0x349546){const _0xcc158e=_0x50aa3b;this[_0xcc158e(0x17a)][_0xcc158e(0x102)](_0x349546),this[_0xcc158e(0x160)][_0xcc158e(0x110)]=!0x1;}[_0x50aa3b(0x149)](_0x34cc00){const _0x34dcdb=_0x50aa3b;this[_0x34dcdb(0x178)](this[_0x34dcdb(0x105)],this[_0x34dcdb(0xfb)],_0x34cc00),this[_0x34dcdb(0xf4)](_0x34cc00);}[_0x50aa3b(0xf4)](_0x480a1e){const _0xceafa9=_0x50aa3b,_0x5963be=!_0x480a1e[_0xceafa9(0x17f)][_0xceafa9(0x139)]&&_0x480a1e[_0xceafa9(0x17f)][_0xceafa9(0x144)],_0x980089=_0x480a1e[_0xceafa9(0x145)][_0xceafa9(0x144)],_0x25d585=_0x480a1e[_0xceafa9(0x11a)][_0xceafa9(0x144)];this[_0xceafa9(0x160)][_0xceafa9(0x133)]=_0x5963be||_0x980089||_0x25d585;}[_0x50aa3b(0x153)](){const _0x2aea55=_0x50aa3b;this[_0x2aea55(0x137)]({'tag':_0x2aea55(0x17b),'attributes':{'class':[ko,_0x2aea55(0x104)]},'children':[{'tag':_0x2aea55(0x17b),'attributes':{'class':Eo},'children':this[_0x2aea55(0x168)]}]});}[_0x50aa3b(0x158)](){const _0x1c1cb1=_0x50aa3b;this[_0x1c1cb1(0x160)]['on'](_0x1c1cb1(0x155),()=>{const _0x3e0798=_0x1c1cb1;this[_0x3e0798(0x124)]();});}[_0x50aa3b(0x116)](_0x27e5a1){const _0xa57a76=_0x50aa3b,_0x5922c1=new _0x314fe6(_0x27e5a1);return _0x5922c1[_0xa57a76(0x100)]({'label':_0x1fb0bb(_0x27e5a1,_0xa57a76(0xff)),'class':Uo+'\x20'+Vo,'icon':_0x1caf9f,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x5922c1;}[_0x50aa3b(0x17d)](_0xb8a6ba){const _0x48c061=_0x50aa3b;return this[_0x48c061(0x132)](_0xb8a6ba,vo);}[_0x50aa3b(0x114)](_0x345afa){const _0x549982=_0x50aa3b,_0x5f15d1=this[_0x549982(0x132)](_0x345afa,Io);return this[_0x549982(0x138)](_0x5f15d1,_0x345afa),_0x5f15d1;}[_0x50aa3b(0x147)](_0x9fa319,_0x1aaaad){const _0x13c721=_0x50aa3b,_0xcd2eb2={'searchInputVisibleFrom':_0x1aaaad[_0x13c721(0x151)],'onBackToContext':()=>{const _0x6c92a4=_0x13c721;this[_0x6c92a4(0x15f)](),this[_0x6c92a4(0x105)][_0x6c92a4(0x15d)]({'target':this[_0x6c92a4(0x160)][_0x6c92a4(0x13f)],'limiter':this[_0x6c92a4(0x103)](),'positions':Ho});},'onResourceSelected':(_0x463a34,_0x583958)=>{const _0xa05ad2=_0x13c721;this[_0xa05ad2(0xf8)](_0xa05ad2(0x136),{'source':_0x463a34,'resource':_0x583958});},'onLoadSourceResources':_0x4a61a8=>{const _0x4ed3fc=_0x13c721;this[_0x4ed3fc(0xf8)](_0x4ed3fc(0x117),_0x4a61a8);},'onBalloonClosed':()=>{const _0x3ab139=_0x13c721;this[_0x3ab139(0x160)][_0x3ab139(0x110)]=!0x1;},'getLimiterElement':()=>this[_0x13c721(0x103)](),'getTargetElement':()=>this[_0x13c721(0x160)][_0x13c721(0x13f)]};return new _0x47334c(_0x9fa319,_0x1aaaad[_0x13c721(0x127)],_0xcd2eb2);}[_0x50aa3b(0x103)](){const _0x113cc6=_0x50aa3b;return this[_0x113cc6(0x13f)]?.[_0x113cc6(0x10d)]('.'+Mo)||document[_0x113cc6(0x112)];}[_0x50aa3b(0x132)](_0x366f40,_0x33eae4){const _0x4517c6=_0x50aa3b,_0x4ac0b6=new _0x1c9cbe(_0x366f40);return _0x4ac0b6[_0x4517c6(0x141)]({'attributes':{'class':_0x33eae4}}),this[_0x4517c6(0x127)][_0x4517c6(0x101)](_0x4ac0b6),_0x4ac0b6;}[_0x50aa3b(0x178)](_0x5d1473,_0xd71d79,_0x4ff088){const _0x183ff0=_0x50aa3b;if(_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x171)](),!_0x4ff088[_0x183ff0(0x17f)][_0x183ff0(0x139)]&&_0x4ff088[_0x183ff0(0x17f)][_0x183ff0(0x144)]){const _0x13f26a=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x172)),'icon':_0x29d693});_0x13f26a['on'](_0x183ff0(0x155),()=>{const _0x3f2be5=_0x183ff0;this[_0x3f2be5(0xf8)](_0x3f2be5(0x173)),this[_0x3f2be5(0x11c)]();}),_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x13f26a);}if(_0x4ff088[_0x183ff0(0x145)][_0x183ff0(0x144)]){const _0x561c0b=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x12d)),'icon':_0x3e19cf});_0x561c0b['on'](_0x183ff0(0x155),()=>{const _0x5a5317=_0x183ff0;this[_0x5a5317(0x11c)](),this[_0x5a5317(0x14e)](),this[_0x5a5317(0x126)][_0x5a5317(0x15d)]({'target':this[_0x5a5317(0x160)][_0x5a5317(0x13f)],'limiter':this[_0x5a5317(0x103)](),'positions':Ho}),this[_0x5a5317(0x142)][_0x5a5317(0x108)]();}),_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x561c0b);}if(_0x4ff088[_0x183ff0(0x11a)][_0x183ff0(0x144)]){const _0x221f9a=new _0x283fcb(_0xd71d79);_0x221f9a[_0x183ff0(0x100)]({'label':_0x1fb0bb(_0xd71d79,_0x183ff0(0x13d)),'icon':_0x44a71f,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x221f9a['on'](_0x183ff0(0x163),(_0x46c28b,_0x57dc48)=>{const _0x5ed8d8=_0x183ff0;this[_0x5ed8d8(0xf8)](_0x5ed8d8(0x179),_0x57dc48),this[_0x5ed8d8(0x11c)]();}),_0x221f9a[_0x183ff0(0x10c)]=!0x0,_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x221f9a);}for(const _0x110180 of _0x4ff088[_0x183ff0(0x12a)]){const _0x5da222=this[_0x183ff0(0x177)](_0xd71d79,{'label':_0x110180[_0x183ff0(0x128)],'icon':_0x110180[_0x183ff0(0x16a)]||_0x186b14,'type':_0x183ff0(0x111)});_0x5d1473[_0x183ff0(0x12b)][_0x183ff0(0x101)](_0x5da222),_0x5da222['on'](_0x183ff0(0x155),()=>{const _0x494d49=_0x183ff0;this[_0x494d49(0x11c)](),this[_0x494d49(0x10b)](_0x110180);});}}[_0x50aa3b(0x138)](_0x44e142,_0x510dc0){const _0x339e56=_0x50aa3b;this[_0x339e56(0x142)]=new _0x42ee9b(_0x510dc0),this[_0x339e56(0x142)]['on'](_0x339e56(0x161),(_0x5f48e6,_0x2611ac)=>{const _0x5bbee9=_0x339e56;this[_0x5bbee9(0x176)](_0x2611ac);}),this[_0x339e56(0x142)]['on'](_0x339e56(0x14c),()=>{const _0x2c6f52=_0x339e56;this[_0x2c6f52(0x121)](),this[_0x2c6f52(0x15f)](),this[_0x2c6f52(0x105)][_0x2c6f52(0x15d)]({'target':this[_0x2c6f52(0x160)][_0x2c6f52(0x13f)],'limiter':this[_0x2c6f52(0x103)](),'positions':Ho});}),this[_0x339e56(0x142)]['on'](_0x339e56(0x11f),()=>{const _0x2e75e9=_0x339e56;this[_0x2e75e9(0x126)][_0x2e75e9(0xf3)]&&this[_0x2e75e9(0x126)][_0x2e75e9(0x15d)]({'target':this[_0x2e75e9(0x160)][_0x2e75e9(0x13f)],'limiter':this[_0x2e75e9(0x103)](),'positions':Ho});}),_0x44e142[_0x339e56(0x12b)][_0x339e56(0x101)](this[_0x339e56(0x142)]);}[_0x50aa3b(0x177)](_0x3603fc,_0x5684e6){const _0x1b128d=_0x50aa3b,_0x312bd6=_0x1b128d(0x111)===_0x5684e6[_0x1b128d(0x11b)]?new SourcesBalloonButtonView(_0x3603fc):new _0x314fe6(_0x3603fc);return _0x312bd6[_0x1b128d(0x100)]({'label':_0x5684e6[_0x1b128d(0x128)],'icon':_0x5684e6[_0x1b128d(0x16a)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x312bd6;}[_0x50aa3b(0x162)](){const _0x28dd63=_0x50aa3b;this[_0x28dd63(0xfe)](),this[_0x28dd63(0x113)]();}[_0x50aa3b(0x113)](){const _0x2b866c=_0x50aa3b;_0x323c3c({'emitter':this[_0x2b866c(0x126)],'contextElements':[this[_0x2b866c(0x126)][_0x2b866c(0x13f)]],'callback':()=>{const _0x4d9d84=_0x2b866c;this[_0x4d9d84(0x121)]();},'activator':()=>this[_0x2b866c(0x126)][_0x2b866c(0xf3)]});}[_0x50aa3b(0x16c)](_0x402cc1){const _0x2830b8=_0x50aa3b,_0x5ef567=this[_0x2830b8(0x152)];_0x5ef567[_0x2830b8(0x146)][_0x2830b8(0x110)]=_0x402cc1,_0x402cc1?_0x5ef567[_0x2830b8(0x14d)][_0x2830b8(0x123)]():_0x5ef567[_0x2830b8(0x14d)][_0x2830b8(0x107)]();}[_0x50aa3b(0xfe)](){const _0xd8b80c=_0x50aa3b,{balloonView:_0x292585,buttonView:_0x54397a,hideMethod:_0x5e37bc}=this[_0xd8b80c(0x152)];_0x323c3c({'emitter':_0x292585,'contextElements':[_0x292585[_0xd8b80c(0x13f)],_0x54397a[_0xd8b80c(0x13f)]],'callback':()=>{_0x5e37bc();},'activator':()=>_0x54397a[_0xd8b80c(0x110)]&&!this[_0xd8b80c(0x126)][_0xd8b80c(0xf3)]&&!this[_0xd8b80c(0x17a)][_0xd8b80c(0x129)]()});}[_0x50aa3b(0x156)](_0x168339,_0x4b41a6,_0x49ef6a=!0x1,_0x2218ca=!0x1){const _0x14e5c5=_0x50aa3b,_0x3a2b25=_0x14e5c5(0x174)===_0x4b41a6||!0x0===_0x168339[_0x14e5c5(0x13e)],_0x45f2cd=new _0x39520d(this[_0x14e5c5(0xfb)],_0x168339,_0x3a2b25,_0x49ef6a,_0x2218ca);return _0x3a2b25||_0x45f2cd['on'](_0x14e5c5(0x14b),()=>{const _0x341c2d=_0x14e5c5;this[_0x341c2d(0xf8)](_0x341c2d(0x164),_0x45f2cd['id']);}),_0x45f2cd;}[_0x50aa3b(0x16f)](_0x25bab5,_0x324e8f){const _0xf2af35=_0x50aa3b;_0x324e8f[_0xf2af35(0x101)](_0x25bab5,0x0);}[_0x50aa3b(0x125)](_0x4e9c9f,_0x58c3dc){const _0x466616=_0x50aa3b,_0x260aa4=_0x58c3dc[_0x466616(0x130)](_0x41c5e7=>_0x41c5e7['id']===_0x4e9c9f);_0x260aa4&&_0x58c3dc[_0x466616(0x154)](_0x260aa4);}[_0x50aa3b(0x124)](){const _0x39a1d5=_0x50aa3b;this[_0x39a1d5(0x160)][_0x39a1d5(0x110)]?this[_0x39a1d5(0x11c)]():(this[_0x39a1d5(0x15f)](),this[_0x39a1d5(0x105)][_0x39a1d5(0x15d)]({'target':this[_0x39a1d5(0x160)][_0x39a1d5(0x13f)],'limiter':this[_0x39a1d5(0x103)](),'positions':Ho}));}[_0x50aa3b(0x176)](_0x5f57d5){const _0x1e0e46=_0x50aa3b;this[_0x1e0e46(0x142)][_0x1e0e46(0x171)](),this[_0x1e0e46(0x121)](),this[_0x1e0e46(0xf8)](_0x1e0e46(0x166),_0x5f57d5);}}export class SourcesBalloonButtonView extends _0x314fe6{[_0x50aa3b(0xf5)];constructor(_0x5d2071){const _0x15fe35=_0x50aa3b;super(_0x5d2071),this[_0x15fe35(0x100)]({'withText':!0x0,'role':_0x15fe35(0x16e)}),this[_0x15fe35(0xf5)]=this[_0x15fe35(0x115)](),this[_0x15fe35(0x141)]({'attributes':{'class':[Ro]}});}[_0x50aa3b(0x109)](){const _0x1b83e0=_0x50aa3b;super[_0x1b83e0(0x109)](),this[_0x1b83e0(0x106)][_0x1b83e0(0x101)](this[_0x1b83e0(0xf5)]);}[_0x50aa3b(0x115)](){const _0x5679e8=_0x50aa3b,_0x44115e=new _0x14ed84();return _0x44115e[_0x5679e8(0x12b)]=_0xe95710,_0x44115e[_0x5679e8(0x141)]({'attributes':{'class':Ro+_0x5679e8(0x120)}}),_0x44115e;}}
|
|
23
|
+
function _0x3f7a(_0x41f10e,_0x2bf53b){const _0x19e624=_0x19e6();return _0x3f7a=function(_0x3f7a24,_0xbf7128){_0x3f7a24=_0x3f7a24-0x166;let _0x5d8d80=_0x19e624[_0x3f7a24];return _0x5d8d80;},_0x3f7a(_0x41f10e,_0x2bf53b);}const _0x2f4993=_0x3f7a;(function(_0x55e66e,_0x1c8aba){const _0x586a4a=_0x3f7a,_0x1a725b=_0x55e66e();while(!![]){try{const _0x3e08a4=parseInt(_0x586a4a(0x1b2))/0x1*(-parseInt(_0x586a4a(0x169))/0x2)+parseInt(_0x586a4a(0x1f6))/0x3+-parseInt(_0x586a4a(0x1cc))/0x4*(-parseInt(_0x586a4a(0x1f4))/0x5)+-parseInt(_0x586a4a(0x1ce))/0x6*(parseInt(_0x586a4a(0x17e))/0x7)+parseInt(_0x586a4a(0x1eb))/0x8*(parseInt(_0x586a4a(0x1af))/0x9)+parseInt(_0x586a4a(0x1ec))/0xa+-parseInt(_0x586a4a(0x16f))/0xb*(parseInt(_0x586a4a(0x16a))/0xc);if(_0x3e08a4===_0x1c8aba)break;else _0x1a725b['push'](_0x1a725b['shift']());}catch(_0x4bee35){_0x1a725b['push'](_0x1a725b['shift']());}}}(_0x19e6,0x3318f));import{BalloonPanelView as _0x488bd0,ButtonView as _0x1dec6f,clickOutsideHandler as _0x43329d,FileDialogButtonView as _0x4bd77d,IconView as _0x598c44,View as _0x6126f6}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1bd93f,IconDocument as _0x3d82e1,IconDocumentOutline as _0x5d6e1d,IconDropdownArrow as _0x12a032,IconLink as _0x4dddc7,IconPaperClip as _0x145df5}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x493e49}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x43cb5c}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x902824}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3c5ce3}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x85a221}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2f4993(0x1d7),_0x2f4993(0x1c6),_0x2f4993(0x1f7),_0x2f4993(0x16b),_0x2f4993(0x16e),_0x2f4993(0x1bf)];const Vo=_0x2f4993(0x19d),Io=_0x2f4993(0x1cb),Po=_0x2f4993(0x190),Ro=_0x2f4993(0x1cf),Uo=_0x2f4993(0x1b3),Lo=_0x2f4993(0x183),No=_0x2f4993(0x17d),Oo=_0x2f4993(0x1ab),Mo=_0x2f4993(0x168),Ho=_0x2f4993(0x198),jo=_0x2f4993(0x170),Fo=_0x2f4993(0x1ed),Xo=[_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x18b)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x19a)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x1f5)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x1c0)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x187)],_0x488bd0[_0x2f4993(0x1ae)][_0x2f4993(0x19f)]];export class AIChatContextPanelView extends _0x6126f6{[_0x2f4993(0x1e1)];[_0x2f4993(0x1df)]=this[_0x2f4993(0x195)]();[_0x2f4993(0x17f)]=this[_0x2f4993(0x195)]();[_0x2f4993(0x174)];[_0x2f4993(0x17b)];[_0x2f4993(0x193)];[_0x2f4993(0x196)];[_0x2f4993(0x1a3)];[_0x2f4993(0x16d)];[_0x2f4993(0x184)];constructor(_0x56a9f4,_0x183029){const _0x4117fe=_0x2f4993;super(_0x56a9f4),this[_0x4117fe(0x184)]=_0x183029[_0x4117fe(0x184)],this[_0x4117fe(0x1df)]=this[_0x4117fe(0x195)](),this[_0x4117fe(0x17f)]=this[_0x4117fe(0x195)](),this[_0x4117fe(0x1e1)]=this[_0x4117fe(0x18e)](_0x56a9f4),this[_0x4117fe(0x17b)]=this[_0x4117fe(0x1d0)](_0x56a9f4),this[_0x4117fe(0x193)]=this[_0x4117fe(0x1c8)](_0x56a9f4),this[_0x4117fe(0x1a3)]=this[_0x4117fe(0x199)](_0x56a9f4,_0x183029);const _0x1fe10f={'cssClasses':{'showMoreButton':Ho,'showMoreBalloon':jo,'overflowContainer':Mo,'controlsButton':Oo}};this[_0x4117fe(0x174)]=new _0x902824(_0x56a9f4,this[_0x4117fe(0x1df)],_0x1fe10f,this[_0x4117fe(0x184)],this),this[_0x4117fe(0x16d)]={'buttonView':this[_0x4117fe(0x1e1)],'balloonView':this[_0x4117fe(0x17b)],'hideMethod':this[_0x4117fe(0x185)][_0x4117fe(0x1e0)](this),'showMethod':this[_0x4117fe(0x175)][_0x4117fe(0x1e0)](this)},this[_0x4117fe(0x1b6)](),this[_0x4117fe(0x18d)]();}[_0x2f4993(0x177)](){const _0x9e0c05=_0x2f4993;super[_0x9e0c05(0x177)](),this[_0x9e0c05(0x1d3)](),this[_0x9e0c05(0x174)][_0x9e0c05(0x1a2)](this[_0x9e0c05(0x1d8)]),this[_0x9e0c05(0x174)][_0x9e0c05(0x18a)]();}[_0x2f4993(0x1e6)](){const _0x48dea8=_0x2f4993;super[_0x48dea8(0x1e6)](),this[_0x48dea8(0x174)][_0x48dea8(0x1e6)](),this[_0x48dea8(0x1a3)][_0x48dea8(0x1e6)]();}[_0x2f4993(0x1aa)](_0x2b4967,_0x497944){const _0x4d89f1=_0x2f4993,_0x55de98=this[_0x4d89f1(0x1e8)](_0x2b4967,_0x4d89f1(0x1de),!0x0,_0x497944);this[_0x4d89f1(0x181)](_0x55de98,this[_0x4d89f1(0x1df)]),this[_0x4d89f1(0x174)][_0x4d89f1(0x18a)]();}[_0x2f4993(0x16e)](_0x5d1ade){const _0x13e302=_0x2f4993;this[_0x13e302(0x166)](_0x5d1ade,this[_0x13e302(0x1df)]),this[_0x13e302(0x166)](_0x5d1ade,this[_0x13e302(0x174)][_0x13e302(0x1d4)]),this[_0x13e302(0x174)][_0x13e302(0x18a)]();}[_0x2f4993(0x1d1)](_0x595a93,_0x2118ab){const _0x13be94=_0x2f4993;let _0x365605=this[_0x13be94(0x1df)][_0x13be94(0x1db)](_0x40bd1f=>_0x40bd1f['id']===_0x595a93);_0x365605||(_0x365605=this[_0x13be94(0x174)][_0x13be94(0x1d4)][_0x13be94(0x1db)](_0xc4ef6c=>_0xc4ef6c['id']===_0x595a93)),_0x365605&&(_0x365605[_0x13be94(0x182)]=_0x2118ab);}[_0x2f4993(0x1a9)](_0x3da974){const _0x141949=_0x2f4993;this[_0x141949(0x17f)][_0x141949(0x17c)]();for(const _0x235d67 of _0x3da974){const _0x516028=this[_0x141949(0x1e8)](_0x235d67,_0x141949(0x1c7),!0x1,!0x1);this[_0x141949(0x181)](_0x516028,this[_0x141949(0x17f)]);}}[_0x2f4993(0x1c9)](){const _0x400f22=_0x2f4993;this[_0x400f22(0x1df)][_0x400f22(0x17c)](),this[_0x400f22(0x174)][_0x400f22(0x17c)]();}[_0x2f4993(0x176)](){const _0x1ebff4=_0x2f4993;this[_0x1ebff4(0x17f)][_0x1ebff4(0x17c)]();}[_0x2f4993(0x1f0)](_0xe05d9a,_0x43460a,_0x42452a){const _0x281791=_0x2f4993;this[_0x281791(0x1a3)][_0x281791(0x1f0)](_0xe05d9a,_0x43460a,_0x42452a);}[_0x2f4993(0x185)](){const _0x2a7a12=_0x2f4993;this[_0x2a7a12(0x1e5)](!0x1);}[_0x2f4993(0x175)](){const _0x28f576=_0x2f4993;this[_0x28f576(0x1e5)](!0x0);}[_0x2f4993(0x19e)](){const _0x5b7ab7=_0x2f4993;this[_0x5b7ab7(0x193)][_0x5b7ab7(0x172)](),this[_0x5b7ab7(0x1e1)][_0x5b7ab7(0x197)]=!0x1,this[_0x5b7ab7(0x196)]&&this[_0x5b7ab7(0x196)][_0x5b7ab7(0x17c)]();}[_0x2f4993(0x1b8)](){const _0x3b1213=_0x2f4993;this[_0x3b1213(0x193)][_0x3b1213(0x1ca)](),this[_0x3b1213(0x1e1)][_0x3b1213(0x197)]=!0x0;}[_0x2f4993(0x186)](_0x97fbe5){const _0x340d60=_0x2f4993;this[_0x340d60(0x1a3)][_0x340d60(0x1c5)](_0x97fbe5),this[_0x340d60(0x1e1)][_0x340d60(0x197)]=!0x0;}[_0x2f4993(0x1b0)](_0x51bbf0,_0x25322b,_0x1fb21f,_0x597b66){const _0x4cc006=_0x2f4993;this[_0x4cc006(0x1a3)][_0x4cc006(0x1b0)](_0x51bbf0,_0x1fb21f,_0x597b66);}[_0x2f4993(0x1d2)](_0x5e2c94){const _0x20121c=_0x2f4993;this[_0x20121c(0x1a3)][_0x20121c(0x1d2)](_0x5e2c94),this[_0x20121c(0x1e1)][_0x20121c(0x197)]=!0x1;}[_0x2f4993(0x1f3)](_0x119c03){const _0x1e0b37=_0x2f4993;this[_0x1e0b37(0x1a7)](this[_0x1e0b37(0x17b)],this[_0x1e0b37(0x1e3)],_0x119c03),this[_0x1e0b37(0x19c)](_0x119c03);}[_0x2f4993(0x19c)](_0x1b3342){const _0x32b2bd=_0x2f4993,_0x313059=!_0x1b3342[_0x32b2bd(0x180)][_0x32b2bd(0x189)]&&_0x1b3342[_0x32b2bd(0x180)][_0x32b2bd(0x1ba)],_0x18a5de=_0x1b3342[_0x32b2bd(0x1a6)][_0x32b2bd(0x1ba)],_0x5cf396=_0x1b3342[_0x32b2bd(0x1bb)][_0x32b2bd(0x1ba)];this[_0x32b2bd(0x1e1)][_0x32b2bd(0x188)]=_0x313059||_0x18a5de||_0x5cf396;}[_0x2f4993(0x1b6)](){const _0x4b199b=_0x2f4993;this[_0x4b199b(0x1f1)]({'tag':_0x4b199b(0x1f2),'attributes':{'class':[Vo,_0x4b199b(0x18f)]},'children':[{'tag':_0x4b199b(0x1f2),'attributes':{'class':Io},'children':this[_0x4b199b(0x1df)]}]});}[_0x2f4993(0x18d)](){const _0x48df61=_0x2f4993;this[_0x48df61(0x1e1)]['on'](_0x48df61(0x1c3),()=>{const _0x423281=_0x48df61;this[_0x423281(0x16c)]();});}[_0x2f4993(0x18e)](_0x543d72){const _0x4b0272=_0x2f4993,_0x29f007=new _0x1dec6f(_0x543d72);return _0x29f007[_0x4b0272(0x173)]({'label':_0x3c5ce3(_0x543d72,_0x4b0272(0x1c2)),'class':Oo+'\x20'+Ro,'icon':_0x145df5,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x29f007;}[_0x2f4993(0x1d0)](_0x193d52){const _0x43196c=_0x2f4993;return this[_0x43196c(0x1d9)](_0x193d52,Po);}[_0x2f4993(0x1c8)](_0x3c0b80){const _0x56f6c4=_0x2f4993,_0x5453cd=this[_0x56f6c4(0x1d9)](_0x3c0b80,Uo);return this[_0x56f6c4(0x192)](_0x5453cd,_0x3c0b80),_0x5453cd;}[_0x2f4993(0x199)](_0x501370,_0x4acdee){const _0x403a11=_0x2f4993,_0x45b51f={'searchInputVisibleFrom':_0x4acdee[_0x403a11(0x19b)],'onBackToContext':()=>{const _0x9ed660=_0x403a11;this[_0x9ed660(0x175)](),this[_0x9ed660(0x17b)][_0x9ed660(0x1da)]({'target':this[_0x9ed660(0x1e1)][_0x9ed660(0x1d8)],'limiter':this[_0x9ed660(0x1b7)](),'positions':Xo});},'onResourceSelected':(_0x285da2,_0x4990df)=>{const _0x358291=_0x403a11;this[_0x358291(0x1be)](_0x358291(0x16b),{'source':_0x285da2,'resource':_0x4990df});},'onLoadSourceResources':_0x5713df=>{const _0x19eb92=_0x403a11;this[_0x19eb92(0x1be)](_0x19eb92(0x1bf),_0x5713df);},'onBalloonClosed':()=>{const _0x3fdaee=_0x403a11;this[_0x3fdaee(0x1e1)][_0x3fdaee(0x197)]=!0x1;},'getLimiterElement':()=>this[_0x403a11(0x1b7)](),'getTargetElement':()=>this[_0x403a11(0x1e1)][_0x403a11(0x1d8)]};return new _0x85a221(_0x501370,_0x4acdee[_0x403a11(0x184)],_0x45b51f);}[_0x2f4993(0x1b7)](){const _0x46a9e3=_0x2f4993;return this[_0x46a9e3(0x1d8)]?.[_0x46a9e3(0x1e2)]('.'+Fo)||document[_0x46a9e3(0x1ef)];}[_0x2f4993(0x1d9)](_0x31ef35,_0x482648){const _0x10fd29=_0x2f4993,_0x45dd22=new _0x488bd0(_0x31ef35);return _0x45dd22[_0x10fd29(0x1dd)]({'attributes':{'class':_0x482648}}),this[_0x10fd29(0x184)][_0x10fd29(0x1bd)](_0x45dd22),_0x45dd22;}[_0x2f4993(0x1a7)](_0x5f0f8f,_0x58561f,_0x16cf60){const _0x29714c=_0x2f4993;if(_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x17c)](),!_0x16cf60[_0x29714c(0x180)][_0x29714c(0x189)]&&_0x16cf60[_0x29714c(0x180)][_0x29714c(0x1ba)]){const _0x5b360c=this[_0x29714c(0x1e7)](_0x58561f,{'label':_0x3c5ce3(_0x58561f,_0x29714c(0x1ee)),'icon':_0x3d82e1});_0x5b360c['on'](_0x29714c(0x1c3),()=>{const _0xc58781=_0x29714c;this[_0xc58781(0x1be)](_0xc58781(0x1d7)),this[_0xc58781(0x185)]();}),_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x1bd)](_0x5b360c);}if(_0x16cf60[_0x29714c(0x1a6)][_0x29714c(0x1ba)]){const _0x3da3f2=this[_0x29714c(0x1e7)](_0x58561f,{'label':_0x3c5ce3(_0x58561f,_0x29714c(0x1e9)),'icon':_0x4dddc7});_0x3da3f2['on'](_0x29714c(0x1c3),()=>{const _0x560e1e=_0x29714c;this[_0x560e1e(0x185)](),this[_0x560e1e(0x1b8)](),this[_0x560e1e(0x193)][_0x560e1e(0x1da)]({'target':this[_0x560e1e(0x1e1)][_0x560e1e(0x1d8)],'limiter':this[_0x560e1e(0x1b7)](),'positions':Xo}),this[_0x560e1e(0x196)][_0x560e1e(0x1ad)]();}),_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x1bd)](_0x3da3f2);}if(_0x16cf60[_0x29714c(0x1bb)][_0x29714c(0x1ba)]){const _0x3cc449=new _0x4bd77d(_0x58561f);_0x3cc449[_0x29714c(0x173)]({'label':_0x3c5ce3(_0x58561f,_0x29714c(0x1a5)),'icon':_0x1bd93f,'withText':!0x0,'tooltip':!0x0,'class':Lo,'allowMultipleFiles':!0x0}),_0x3cc449['on'](_0x29714c(0x1bc),(_0x1d3487,_0x4f04ec)=>{const _0x32eb1b=_0x29714c;this[_0x32eb1b(0x1be)](_0x32eb1b(0x1c6),_0x4f04ec),this[_0x32eb1b(0x185)]();}),_0x3cc449[_0x29714c(0x1c1)]=!0x0,_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x1bd)](_0x3cc449);}for(const _0x556944 of _0x16cf60[_0x29714c(0x1c4)]){const _0x4ba739=this[_0x29714c(0x1e7)](_0x58561f,{'label':_0x556944[_0x29714c(0x1d6)],'icon':_0x556944[_0x29714c(0x1e4)]||_0x5d6e1d,'type':_0x29714c(0x171)});_0x5f0f8f[_0x29714c(0x1a8)][_0x29714c(0x1bd)](_0x4ba739),_0x4ba739['on'](_0x29714c(0x1c3),()=>{const _0x26946f=_0x29714c;this[_0x26946f(0x185)](),this[_0x26946f(0x186)](_0x556944);});}}[_0x2f4993(0x192)](_0x18e37a,_0x5ab1f6){const _0x4bd36d=_0x2f4993;this[_0x4bd36d(0x196)]=new _0x43cb5c(_0x5ab1f6),this[_0x4bd36d(0x196)]['on'](_0x4bd36d(0x1a0),(_0x20bbe5,_0x21ca26)=>{const _0x6ef4a3=_0x4bd36d;this[_0x6ef4a3(0x1d5)](_0x21ca26);}),this[_0x4bd36d(0x196)]['on'](_0x4bd36d(0x167),()=>{const _0x10b53c=_0x4bd36d;this[_0x10b53c(0x19e)](),this[_0x10b53c(0x175)](),this[_0x10b53c(0x17b)][_0x10b53c(0x1da)]({'target':this[_0x10b53c(0x1e1)][_0x10b53c(0x1d8)],'limiter':this[_0x10b53c(0x1b7)](),'positions':Xo});}),this[_0x4bd36d(0x196)]['on'](_0x4bd36d(0x1b4),()=>{const _0x46e38c=_0x4bd36d;this[_0x46e38c(0x193)][_0x46e38c(0x1b5)]&&this[_0x46e38c(0x193)][_0x46e38c(0x1da)]({'target':this[_0x46e38c(0x1e1)][_0x46e38c(0x1d8)],'limiter':this[_0x46e38c(0x1b7)](),'positions':Xo});}),_0x18e37a[_0x4bd36d(0x1a8)][_0x4bd36d(0x1bd)](this[_0x4bd36d(0x196)]);}[_0x2f4993(0x1e7)](_0x204905,_0x32a10d){const _0xdbbd04=_0x2f4993,_0x4a1ccb=_0xdbbd04(0x171)===_0x32a10d[_0xdbbd04(0x194)]?new SourcesBalloonButtonView(_0x204905):new _0x1dec6f(_0x204905);return _0x4a1ccb[_0xdbbd04(0x173)]({'label':_0x32a10d[_0xdbbd04(0x1d6)],'icon':_0x32a10d[_0xdbbd04(0x1e4)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Lo}),_0x4a1ccb;}[_0x2f4993(0x1d3)](){const _0x48c1c4=_0x2f4993;this[_0x48c1c4(0x17a)](),this[_0x48c1c4(0x1a4)]();}[_0x2f4993(0x1a4)](){const _0x4d6f42=_0x2f4993;_0x43329d({'emitter':this[_0x4d6f42(0x193)],'contextElements':[this[_0x4d6f42(0x193)][_0x4d6f42(0x1d8)]],'callback':()=>{const _0x540660=_0x4d6f42;this[_0x540660(0x19e)]();},'activator':()=>this[_0x4d6f42(0x193)][_0x4d6f42(0x1b5)]});}[_0x2f4993(0x1e5)](_0x7ab4e9){const _0x471761=_0x2f4993,_0x12cbe8=this[_0x471761(0x16d)];_0x12cbe8[_0x471761(0x1cd)][_0x471761(0x197)]=_0x7ab4e9,_0x7ab4e9?_0x12cbe8[_0x471761(0x1dc)][_0x471761(0x1ca)]():_0x12cbe8[_0x471761(0x1dc)][_0x471761(0x172)]();}[_0x2f4993(0x17a)](){const _0xc8666b=_0x2f4993,{balloonView:_0x599d6a,buttonView:_0x5f4dc5,hideMethod:_0x4d99}=this[_0xc8666b(0x16d)];_0x43329d({'emitter':_0x599d6a,'contextElements':[_0x599d6a[_0xc8666b(0x1d8)],_0x5f4dc5[_0xc8666b(0x1d8)]],'callback':()=>{_0x4d99();},'activator':()=>_0x5f4dc5[_0xc8666b(0x197)]&&!this[_0xc8666b(0x193)][_0xc8666b(0x1b5)]&&!this[_0xc8666b(0x1a3)][_0xc8666b(0x191)]()});}[_0x2f4993(0x1e8)](_0xb6ee31,_0x2ef760,_0x294e4a=!0x1,_0x52db65=!0x1){const _0x527d8c=_0x2f4993,_0x12324d=_0x527d8c(0x1c7)===_0x2ef760||!0x0===_0xb6ee31[_0x527d8c(0x1a1)],_0x4b4fad=new _0x493e49(this[_0x527d8c(0x1e3)],_0xb6ee31,_0x12324d,_0x294e4a,_0x52db65);return _0x12324d||_0x4b4fad['on'](_0x527d8c(0x179),()=>{const _0x89f20a=_0x527d8c;this[_0x89f20a(0x1be)](_0x89f20a(0x16e),_0x4b4fad['id']);}),_0x4b4fad;}[_0x2f4993(0x181)](_0x322d18,_0x3b7f1e){const _0x29988d=_0x2f4993;_0x3b7f1e[_0x29988d(0x1bd)](_0x322d18,0x0);}[_0x2f4993(0x166)](_0x3f380f,_0x444e0e){const _0x22d48b=_0x2f4993,_0x5b8539=_0x444e0e[_0x22d48b(0x1db)](_0x89aaf7=>_0x89aaf7['id']===_0x3f380f);_0x5b8539&&_0x444e0e[_0x22d48b(0x1ac)](_0x5b8539);}[_0x2f4993(0x16c)](){const _0x627611=_0x2f4993;this[_0x627611(0x1e1)][_0x627611(0x197)]?this[_0x627611(0x185)]():(this[_0x627611(0x175)](),this[_0x627611(0x17b)][_0x627611(0x1da)]({'target':this[_0x627611(0x1e1)][_0x627611(0x1d8)],'limiter':this[_0x627611(0x1b7)](),'positions':Xo}));}[_0x2f4993(0x1d5)](_0x29567e){const _0x7d30ad=_0x2f4993;this[_0x7d30ad(0x196)][_0x7d30ad(0x17c)](),this[_0x7d30ad(0x19e)](),this[_0x7d30ad(0x1be)](_0x7d30ad(0x1f7),_0x29567e);}}function _0x19e6(){const _0x2174b4=['_overflowManager','showAddContextBalloonPanel','clearConversationContextItems','render','arrowView','removeContextItemChip','_setupAddContextBalloonClickOutsideHandler','_addContextBalloonPanelView','clear','ck-ai-chat-context-controls__balloon-button-source','309953cynhMS','_conversationContextsChips','document','_addContextToCollection','isLoading','ck-ai-chat-context-controls__balloon-button','bodyCollection','hideAddContextBalloonPanel','_showSourceResourcesBalloon','southArrowNorth','isEnabled','isHidden','reorganizeChips','northArrowSouthWest','__arrow','_bindEventHandlers','_createAddContextButtonView','ck-reset_all-excluded','ck-ai-chat-context-controls__add-context-balloon-panel','isAnyResourceBalloonVisible','_addUrlContent','_urlBalloonPanelView','type','createCollection','_urlInputView','isOn','ck-ai-chat-controls_context_show-more-button','_createResourcesBalloonView','northArrowSouth','searchInputVisibleFrom','_setAddContextButtonEnabled','ck-ai-chat-context-controls','hideUrlBalloonPanel','southArrowNorthEast','submitUrl','isReadOnly','setContainerElement','_resourcesBalloonView','_setupUrlBalloonClickOutsideHandler','AI_CHAT_CONTEXT_FILE_LABEL','urls','_setBalloonPanelContent','content','setConversationContext','addContextItem','ck-ai-chat-controls-button','remove','focus','defaultPositions','177048ydRSTZ','populateSourceResourceBalloon','children','104336DEPJri','ck-ai-chat-context-controls__url-balloon-panel','refreshBalloon','isVisible','_setupTemplate','_getLimiterElement','showUrlBalloonPanel','_createArrowView','enabled','files','done','add','fire','loadSourceResources','southArrowNorthWest','tooltip','AI_CHAT_CONTEXT_ADD_CONTEXT','execute','sources','showSourceResourcesBalloon','addFileToContext','conversation','_createUrlBalloonPanelView','clearCurrentContextItems','show','ck-ai-chat-context-controls__pending-contexts','1064308acZzmJ','buttonView','42gVGcPc','ck-ai-chat-context-controls__add-context-button','_createAddContextBalloonPanelView','setContextItemLoading','closeSourceResourceBalloon','_setupAllBalloonClickOutsideHandlers','overflowChips','_handleUrlSubmit','label','addDocumentToContext','element','_createBaseBalloonPanel','pin','find','balloonView','extendTemplate','current','_currentContextsChips','bind','addContextButtonView','closest','locale','icon','_toggleAddContextBalloon','destroy','_createBalloonButton','_createContextButton','AI_CHAT_CONTEXT_URL_LABEL','menuitem','136XLcfkx','1319220Tsuwzj','ck-ai-chat','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','body','updateResourceState','setTemplate','div','setAddContextOptions','5AyLirf','northArrowSouthEast','890523hNtRnz','addUrlToContext','_removeContextFromCollection','cancel','ck-ai-chat-context-chips-wrapper-balloon','6uDGTwf','84nKtjaK','addResourceToContext','_handleAddContextButtonClick','_addContextBalloonConfig','removeContextItem','309584AgxxOD','ck-ai-chat-context-controls__show-more-balloon-panel','source','hide','set'];_0x19e6=function(){return _0x2174b4;};return _0x19e6();}export class SourcesBalloonButtonView extends _0x1dec6f{[_0x2f4993(0x178)];constructor(_0x4b380f){const _0x379853=_0x2f4993;super(_0x4b380f),this[_0x379853(0x173)]({'withText':!0x0,'role':_0x379853(0x1ea)}),this[_0x379853(0x178)]=this[_0x379853(0x1b9)](),this[_0x379853(0x1dd)]({'attributes':{'class':[No]}});}[_0x2f4993(0x177)](){const _0x155d2d=_0x2f4993;super[_0x155d2d(0x177)](),this[_0x155d2d(0x1b1)][_0x155d2d(0x1bd)](this[_0x155d2d(0x178)]);}[_0x2f4993(0x1b9)](){const _0x5c3bb3=_0x2f4993,_0x2e26a6=new _0x598c44();return _0x2e26a6[_0x5c3bb3(0x1a8)]=_0x12a032,_0x2e26a6[_0x5c3bb3(0x1dd)]({'attributes':{'class':No+_0x5c3bb3(0x18c)}}),_0x2e26a6;}}
|