@ckeditor/ckeditor5-ai 47.4.0-alpha.2 → 47.4.0-alpha.3
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/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.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/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.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/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/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.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/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.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/aireply.js +1 -1
- 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/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/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/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/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ba8ee=_0x111f;(function(_0x6b7233,_0x24f9fc){const _0x5a0786=_0x111f,_0xcffa02=_0x6b7233();while(!![]){try{const _0x55e967=parseInt(_0x5a0786(0x144))/0x1*(parseInt(_0x5a0786(0x14a))/0x2)+-parseInt(_0x5a0786(0x12b))/0x3*(-parseInt(_0x5a0786(0x137))/0x4)+-parseInt(_0x5a0786(0x12e))/0x5*(-parseInt(_0x5a0786(0x14d))/0x6)+parseInt(_0x5a0786(0x13a))/0x7*(parseInt(_0x5a0786(0x156))/0x8)+parseInt(_0x5a0786(0x146))/0x9*(-parseInt(_0x5a0786(0x145))/0xa)+parseInt(_0x5a0786(0x13f))/0xb*(parseInt(_0x5a0786(0x13d))/0xc)+parseInt(_0x5a0786(0x138))/0xd*(-parseInt(_0x5a0786(0x128))/0xe);if(_0x55e967===_0x24f9fc)break;else _0xcffa02['push'](_0xcffa02['shift']());}catch(_0x7dbc68){_0xcffa02['push'](_0xcffa02['shift']());}}}(_0x208f,0x4b504));import{ButtonView as _0x38b33f,clickOutsideHandler as _0x981bab,View as _0x27175e}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x35f017}from'./controls/aichatpromptinputview.js';function _0x111f(_0x2f033b,_0x1d5882){const _0x208f95=_0x208f();return _0x111f=function(_0x111f0d,_0x3c3ddf){_0x111f0d=_0x111f0d-0x103;let _0x2c8eb2=_0x208f95[_0x111f0d];return _0x2c8eb2;},_0x111f(_0x2f033b,_0x1d5882);}import{AIChatPromptCapabilitiesView as _0x47b1b6}from'./controls/aichatpromptcapabilitiesview.js';function _0x208f(){const _0x516329=['_displayedModels','locale','setAddContextOptions','624UKCjHF','resetMessageInput','delegate','738yvFWBz','toggleReasoning','setReasoning','ck-ai-chat-controls-model-unavailable-message','isLoading','setModel','agent','_createPromptInputView','focus','146456WKlhMD','div','_modelUnavailableMessageView','isDisabled','startsWith','selectModel','populateSourceResourceBalloon','_shouldRestorePromptInputFocus','clearConversationContextItems','low','isModelAvailable','form','ck-hidden','disableModelSelector','reset','set','setIsUploadInProgress','enableModelSelector','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','change:isLoading','ck-ai-chat-controls__start-new-chat-button','_handlePromptInputFocus','toggleWebSearch','_createPromptCapabilitiesView','closeSourceResourceBalloon','updateResourceState','ck-ai-chat-controls','_loaderView','setContextItemLoading','addContextButtonView','contextResourcesSearchInputVisibleFrom','setInputPlaceholder','clearConversationContextUI','execute','setPlaceholderText','setWebSearch','bindTemplate','setModelList','setTemplate','8806Ieppby','_promptCapabilitiesView','_createLoaderView','87iEYnzM','_promptInputView','focusPromptInput','13415NmsuUQ','startConversation','addContextItem','_createContextPanelView','clearPendingContextUI','abortPromptStream','clearCurrentContextItems','_createModelUnavailableMessageView','element','61756CkRqci','22243ozJWuY','sendUserMessage','77JiznwM','removeContextItem','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','3385752dqoLxS','_contextPanelView','11yjXBUk','find','setConversationContext','ck-ai-chat-controls-disabled','bodyCollection','1787fHJCxJ','80AQbtcj','488367zLJsMf'];_0x208f=function(){return _0x516329;};return _0x208f();}import{AIChatContextPanelView as _0x1da27d,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x2fdc92}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x771d06}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x5606b0}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x27175e{[_0x4ba8ee(0x147)]=[];[_0x4ba8ee(0x13e)];[_0x4ba8ee(0x12c)];[_0x4ba8ee(0x129)];[_0x4ba8ee(0x11c)];[_0x4ba8ee(0x103)];[_0x4ba8ee(0x108)];constructor(_0x3e7d48,_0x18b992){const _0x3b9a71=_0x4ba8ee;super(_0x3e7d48),this[_0x3b9a71(0x13e)]=this[_0x3b9a71(0x131)](_0x3e7d48,{'bodyCollection':_0x18b992[_0x3b9a71(0x143)],'searchInputVisibleFrom':_0x18b992[_0x3b9a71(0x11f)]}),this[_0x3b9a71(0x12c)]=this[_0x3b9a71(0x154)](_0x3e7d48),this[_0x3b9a71(0x129)]=this[_0x3b9a71(0x118)](_0x3e7d48),this[_0x3b9a71(0x11c)]=this[_0x3b9a71(0x12a)](_0x3e7d48),this[_0x3b9a71(0x103)]=this[_0x3b9a71(0x135)](_0x3e7d48),this[_0x3b9a71(0x108)]=!0x1,this[_0x3b9a71(0x12c)][_0x3b9a71(0x14c)](_0x3b9a71(0x139))['to'](this),this[_0x3b9a71(0x11c)][_0x3b9a71(0x14c)](_0x3b9a71(0x133))['to'](this),this[_0x3b9a71(0x129)][_0x3b9a71(0x14c)](_0x3b9a71(0x117))['to'](this),this[_0x3b9a71(0x129)][_0x3b9a71(0x14c)](_0x3b9a71(0x14e))['to'](this),this[_0x3b9a71(0x129)][_0x3b9a71(0x14c)](_0x3b9a71(0x106))['to'](this),this[_0x3b9a71(0x13e)][_0x3b9a71(0x14c)](..._0x2fdc92)['to'](this),this[_0x3b9a71(0x110)](_0x3b9a71(0x10b),!0x0),this[_0x3b9a71(0x110)](_0x3b9a71(0x104),!0x1);const _0x3395f8=this[_0x3b9a71(0x125)];this[_0x3b9a71(0x127)]({'tag':_0x3b9a71(0x10c),'attributes':{'class':['ck',_0x3b9a71(0x11b),_0x3395f8['if'](_0x3b9a71(0x104),_0x3b9a71(0x142))]},'children':[{'tag':_0x3b9a71(0x157),'attributes':{'class':[_0x3395f8['if'](_0x3b9a71(0x151),_0x3b9a71(0x10d),_0x5593aa=>_0x5593aa||!this[_0x3b9a71(0x10b)]),_0x3395f8['if'](_0x3b9a71(0x10b),_0x3b9a71(0x10d),_0x1dac69=>!_0x1dac69||this[_0x3b9a71(0x151)])]},'children':[this[_0x3b9a71(0x13e)],this[_0x3b9a71(0x12c)],this[_0x3b9a71(0x129)]]},{'tag':_0x3b9a71(0x157),'attributes':{'class':[_0x3395f8['if'](_0x3b9a71(0x151),_0x3b9a71(0x10d),_0x5fc8a4=>!_0x5fc8a4)]},'children':[this[_0x3b9a71(0x11c)]]},{'tag':_0x3b9a71(0x157),'attributes':{'class':[_0x3395f8['if'](_0x3b9a71(0x10b),_0x3b9a71(0x10d),_0x26efc5=>_0x26efc5)]},'children':[this[_0x3b9a71(0x103)]]}]}),_0x981bab({'emitter':this[_0x3b9a71(0x12c)],'activator':()=>this[_0x3b9a71(0x151)],'contextElements':()=>[this[_0x3b9a71(0x136)]],'callback':()=>{const _0x35d86a=_0x3b9a71;this[_0x35d86a(0x108)]=!0x1;}}),this['on'](_0x3b9a71(0x114),this[_0x3b9a71(0x116)],{'priority':_0x3b9a71(0x10a)});}[_0x4ba8ee(0x131)](_0x4ff0c9,_0x2f8a81){return new _0x1da27d(_0x4ff0c9,_0x2f8a81);}[_0x4ba8ee(0x154)](_0x1c654f){const _0x504dba=_0x4ba8ee;return new _0x35f017(_0x1c654f,this[_0x504dba(0x13e)][_0x504dba(0x11e)]);}[_0x4ba8ee(0x118)](_0x588c7f){return new _0x47b1b6(_0x588c7f);}[_0x4ba8ee(0x12a)](_0x3f1f74){return new _0x771d06(_0x3f1f74);}[_0x4ba8ee(0x135)](_0x313e0a){const _0x457d3c=_0x4ba8ee,_0x499013=new ws(_0x313e0a);return _0x499013[_0x457d3c(0x14c)](_0x457d3c(0x12f))['to'](this),_0x499013;}[_0x4ba8ee(0x116)](_0x5a18fe,_0x4bebb6,_0x57a793){const _0x1b3fcf=_0x4ba8ee;_0x57a793?this[_0x1b3fcf(0x108)]=!0x0:this[_0x1b3fcf(0x108)]&&this[_0x1b3fcf(0x12c)][_0x1b3fcf(0x155)]();}[_0x4ba8ee(0x130)](_0x260db3,_0x2b2828){const _0x9de855=_0x4ba8ee;this[_0x9de855(0x13e)][_0x9de855(0x130)](_0x260db3,_0x2b2828);}[_0x4ba8ee(0x13b)](_0x5ee099){const _0xe8515d=_0x4ba8ee;this[_0xe8515d(0x13e)][_0xe8515d(0x13b)](_0x5ee099);}[_0x4ba8ee(0x11d)](_0x1a546b,_0x5ccb14){const _0x24d34d=_0x4ba8ee;this[_0x24d34d(0x13e)][_0x24d34d(0x11d)](_0x1a546b,_0x5ccb14);}[_0x4ba8ee(0x111)](_0xd071bb){const _0x5bea34=_0x4ba8ee;this[_0x5bea34(0x12c)][_0x5bea34(0x111)](_0xd071bb);}[_0x4ba8ee(0x141)](_0x1ba137){const _0x146c0b=_0x4ba8ee;this[_0x146c0b(0x13e)][_0x146c0b(0x141)](_0x1ba137);}[_0x4ba8ee(0x132)](){const _0x267c15=_0x4ba8ee;this[_0x267c15(0x13e)][_0x267c15(0x134)]();}[_0x4ba8ee(0x121)](){const _0x5b21d=_0x4ba8ee;this[_0x5b21d(0x13e)][_0x5b21d(0x109)]();}[_0x4ba8ee(0x11a)](_0x3b70ec,_0x325e6b,_0x550b1a){const _0x29abd0=_0x4ba8ee;this[_0x29abd0(0x13e)][_0x29abd0(0x11a)](_0x3b70ec,_0x325e6b,_0x550b1a);}[_0x4ba8ee(0x124)](_0x2ac06d){const _0x400b5e=_0x4ba8ee;this[_0x400b5e(0x129)][_0x400b5e(0x124)](_0x2ac06d);}[_0x4ba8ee(0x14f)](_0x12fb24){const _0x32fcf9=_0x4ba8ee;this[_0x32fcf9(0x129)][_0x32fcf9(0x14f)](_0x12fb24);}[_0x4ba8ee(0x14b)](){const _0x2185f5=_0x4ba8ee;this[_0x2185f5(0x12c)][_0x2185f5(0x10f)]();}[_0x4ba8ee(0x149)](_0xbc422a){const _0x694e23=_0x4ba8ee;this[_0x694e23(0x13e)][_0x694e23(0x149)](_0xbc422a);}[_0x4ba8ee(0x120)](_0x414ab1){const _0x4b7ca1=_0x4ba8ee;this[_0x4b7ca1(0x12c)][_0x4b7ca1(0x123)](_0x414ab1);}[_0x4ba8ee(0x126)](_0x2643fa,_0x3219f2){const _0x1ba4fa=_0x4ba8ee;this[_0x1ba4fa(0x147)]=_0x2643fa,this[_0x1ba4fa(0x129)][_0x1ba4fa(0x126)](_0x2643fa,_0x3219f2);}[_0x4ba8ee(0x152)](_0x412306){const _0x1d3691=_0x4ba8ee;(_0x412306?this[_0x1d3691(0x147)][_0x1d3691(0x140)](_0x2aeec4=>_0x2aeec4['id']===_0x412306['id']):null)?(this[_0x1d3691(0x10b)]=!0x0,this[_0x1d3691(0x129)][_0x1d3691(0x152)](_0x412306)):_0x412306?.['id'][_0x1d3691(0x105)](_0x1d3691(0x153))?(this[_0x1d3691(0x10b)]=!0x0,this[_0x1d3691(0x129)][_0x1d3691(0x152)](this[_0x1d3691(0x147)][0x0])):this[_0x1d3691(0x10b)]=!0x1;}[_0x4ba8ee(0x112)](){const _0x41393a=_0x4ba8ee;this[_0x41393a(0x129)][_0x41393a(0x112)]();}[_0x4ba8ee(0x10e)](_0x146623){const _0x5261be=_0x4ba8ee;this[_0x5261be(0x129)][_0x5261be(0x10e)](_0x146623);}[_0x4ba8ee(0x107)](_0xc7ad56,_0xcaca57,_0x59334c,_0x392de7){const _0x3673c7=_0x4ba8ee;this[_0x3673c7(0x13e)][_0x3673c7(0x107)](_0xc7ad56,_0xcaca57,_0x59334c,_0x392de7);}[_0x4ba8ee(0x119)](_0x4d47ad){const _0x5ee586=_0x4ba8ee;this[_0x5ee586(0x13e)][_0x5ee586(0x119)](_0x4d47ad);}[_0x4ba8ee(0x12d)](){const _0x42785d=_0x4ba8ee;this[_0x42785d(0x12c)][_0x42785d(0x155)]();}}class ws extends _0x27175e{constructor(_0x6fbb30){const _0x7c32d7=_0x4ba8ee;super(_0x6fbb30);const _0x35ddbe=new _0x38b33f(_0x6fbb30);_0x35ddbe[_0x7c32d7(0x110)]({'label':_0x5606b0(this[_0x7c32d7(0x148)],_0x7c32d7(0x13c)),'withText':!0x0,'class':[_0x7c32d7(0x115)],'tooltip':''}),_0x35ddbe[_0x7c32d7(0x14c)](_0x7c32d7(0x122))['to'](this,_0x7c32d7(0x12f)),this[_0x7c32d7(0x127)]({'tag':_0x7c32d7(0x157),'attributes':{'class':['ck',_0x7c32d7(0x150)]},'children':[{'tag':'p','children':[{'text':_0x5606b0(this[_0x7c32d7(0x148)],_0x7c32d7(0x113))+'\x20'},_0x35ddbe]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x55c2a9=_0x212c;(function(_0xae4015,_0x310ae8){const _0x1baf49=_0x212c,_0x2054ba=_0xae4015();while(!![]){try{const _0xf6aa9b=-parseInt(_0x1baf49(0x20d))/0x1*(-parseInt(_0x1baf49(0x21a))/0x2)+parseInt(_0x1baf49(0x1f3))/0x3+-parseInt(_0x1baf49(0x1f7))/0x4+parseInt(_0x1baf49(0x21b))/0x5+-parseInt(_0x1baf49(0x1db))/0x6*(-parseInt(_0x1baf49(0x1d7))/0x7)+parseInt(_0x1baf49(0x1fe))/0x8+-parseInt(_0x1baf49(0x207))/0x9;if(_0xf6aa9b===_0x310ae8)break;else _0x2054ba['push'](_0x2054ba['shift']());}catch(_0x4b19c5){_0x2054ba['push'](_0x2054ba['shift']());}}}(_0x4bef,0xa10e3));import{CKEditorError as _0x3a85df,logWarning as _0x1febc1,scrollViewportToShowTarget as _0x39850a}from'ckeditor5/src/utils.js';import{View as _0x421e4c}from'ckeditor5/src/ui.js';function _0x4bef(){const _0x1512a9=['ck-ai-chat__loader-text','element','loadingMessage','17772DButZZ','5565285aVPzAL','updateSources','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','createCollection','_bodyCollection','ai-chat-feed-view-item-not-a-suggestion-item','div','find','ai-suggestion-reply','render','startAutoScroll','stop','147021DChYsv','set','updateReplyItem','aiFeed','6rphLFz','start','getPartView','updatePartState','ck-ai-chat__loader','ai-chat-feed-view-item-not-a-reply-item','_createFeedLoader','removeItem','delegate','ai-chat-feed-view-item-not-found','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','toggleLoadingSkeleton','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','isPending','includes','bindTemplate','destroy','isLoadingSkeletonVisible','ai-reply','updateWebSources','setTemplate','extendTemplate','map','ck-ai-chat__feed','1702506oUgqST','ck-hidden','bind','scrollManager','311256rmxPUP','addItem','getItemById','locale','options','_setupTemplate','add','7310432haGovx','_createSkeletonLoader','setLoadingMessage','remove','_createFeedItems','scrollToSuggestion','isTrackChangesOn','markAsDone','updateContent','21619287AEOaVq','updateSuggestionPartState','user-message','interaction-header','isVisible','markItemAsDone','59qItNGX','_createTemplateChildren','stopAutoScroll','getItemIds','span','children','ck-ai-chat__feed__items','_createLoaderChildren','clear','updateSuggestionItem'];_0x4bef=function(){return _0x1512a9;};return _0x4bef();}import{AI_CHAT_UI_EVENT_NAMES as _0x47ebe0}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x3b7127}from'./feed/aichatfeedsuggestionitemview.js';function _0x212c(_0x5cfd1d,_0x348e76){const _0x4bef75=_0x4bef();return _0x212c=function(_0x212cc8,_0x5aa1c){_0x212cc8=_0x212cc8-0x1d0;let _0xaa70aa=_0x4bef75[_0x212cc8];return _0xaa70aa;},_0x212c(_0x5cfd1d,_0x348e76);}import{AIChatFeedReplyItemView as _0x5490a8}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4922d2}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x2a68ba}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x2d081d}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4999b8}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x1d8539,SKELETON_DEFINITIONS as _0x1c2e40}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4c7445}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x421e4c{[_0x55c2a9(0x212)];[_0x55c2a9(0x1f6)];[_0x55c2a9(0x21f)];constructor(_0x254328,_0xe2d4c9){const _0x1d4c52=_0x55c2a9;super(_0x254328),this[_0x1d4c52(0x21f)]=_0xe2d4c9,this[_0x1d4c52(0x1d8)](_0x1d4c52(0x1e8),!0x1),this[_0x1d4c52(0x1d8)](_0x1d4c52(0x219),''),this[_0x1d4c52(0x1d8)](_0x1d4c52(0x1ec),!0x1),this[_0x1d4c52(0x1d8)](_0x1d4c52(0x204),!0x1),this[_0x1d4c52(0x212)]=this[_0x1d4c52(0x21e)](),this[_0x1d4c52(0x212)][_0x1d4c52(0x1e3)](..._0x47ebe0)['to'](this),this[_0x1d4c52(0x1fc)]();}[_0x55c2a9(0x1d4)](){const _0x18f7dc=_0x55c2a9;super[_0x18f7dc(0x1d4)](),this[_0x18f7dc(0x1f6)]=new _0x4999b8(this[_0x18f7dc(0x218)]);}[_0x55c2a9(0x1eb)](){const _0x59c297=_0x55c2a9;super[_0x59c297(0x1eb)](),this[_0x59c297(0x1f6)][_0x59c297(0x1eb)]();}[_0x55c2a9(0x215)](){const _0x2cfab4=_0x55c2a9;this[_0x2cfab4(0x212)][_0x2cfab4(0x215)]();}[_0x55c2a9(0x1f8)](_0x535dbc,_0x3a91f9){const _0x119eab=_0x55c2a9;let _0x202a08;_0x119eab(0x1ed)===_0x535dbc?_0x202a08=new _0x5490a8(this[_0x119eab(0x1fa)],_0x3a91f9,this[_0x119eab(0x21f)]):_0x119eab(0x1d3)===_0x535dbc?(_0x202a08=new _0x3b7127(this[_0x119eab(0x1fa)],_0x3a91f9,this[_0x119eab(0x21f)]),_0x202a08[_0x119eab(0x1f5)](_0x119eab(0x204))['to'](this,_0x119eab(0x204))):_0x202a08=_0x119eab(0x209)===_0x535dbc?new _0x4922d2(this[_0x119eab(0x1fa)],_0x3a91f9,this[_0x119eab(0x21f)]):_0x119eab(0x20a)===_0x535dbc?new _0x2d081d(this[_0x119eab(0x1fa)],_0x3a91f9):new _0x2a68ba(_0x3a91f9),this[_0x119eab(0x212)][_0x119eab(0x1fd)](_0x202a08);}async[_0x55c2a9(0x1d9)]({id:_0x5d9b25,parsedContent:_0x29a323,renderingStrategy:_0x17133a,abortSignal:_0x4f74cd}){const _0x5c7994=_0x55c2a9,_0x477230=this[_0x5c7994(0x1f9)](_0x5d9b25);if(!(_0x477230 instanceof _0x5490a8))throw new _0x3a85df(_0x5c7994(0x1e0),null,{'itemView':_0x477230,'id':_0x5d9b25,'parsedContent':_0x29a323});await _0x477230[_0x5c7994(0x206)]({'parsedContent':_0x29a323,'renderingStrategy':_0x17133a,'abortSignal':_0x4f74cd});}async[_0x55c2a9(0x1ee)](_0x3600d5,_0x44fff1){const _0x21d15c=_0x55c2a9,_0x3864e9=this[_0x21d15c(0x1f9)](_0x3600d5);if(_0x3864e9 instanceof _0x3b7127)_0x3864e9[_0x21d15c(0x21c)](_0x44fff1);else{if(!(_0x3864e9 instanceof _0x5490a8))throw new _0x3a85df(_0x21d15c(0x1e7),null,{'itemView':_0x3864e9,'id':_0x3600d5,'sources':_0x44fff1});_0x3864e9[_0x21d15c(0x21c)](_0x44fff1);}}async[_0x55c2a9(0x216)]({id:_0x55626c,parts:_0x52f5ca,renderingStrategy:_0x23637,abortSignal:_0x32699b}){const _0x4e4139=_0x55c2a9,_0x56337b=this[_0x4e4139(0x1f9)](_0x55626c);if(!(_0x56337b instanceof _0x3b7127))throw new _0x3a85df(_0x4e4139(0x1d0),null,{'itemView':_0x56337b,'id':_0x55626c,'parts':_0x52f5ca});await _0x56337b[_0x4e4139(0x206)]({'parts':_0x52f5ca,'renderingStrategy':_0x23637,'abortSignal':_0x32699b});}[_0x55c2a9(0x208)]({id:_0x38ebb3,index:_0x3da0ee,state:_0x2e4239}){const _0x4b2edd=_0x55c2a9,_0x4304a6=this[_0x4b2edd(0x1f9)](_0x38ebb3);if(!(_0x4304a6 instanceof _0x3b7127))throw new _0x3a85df(_0x4b2edd(0x1d0),this,{'id':_0x38ebb3});_0x4304a6[_0x4b2edd(0x1de)](_0x3da0ee,_0x2e4239);}[_0x55c2a9(0x20c)](_0x28ecf6){const _0x5e4c0c=_0x55c2a9;this[_0x5e4c0c(0x1f9)](_0x28ecf6)[_0x5e4c0c(0x205)]();}[_0x55c2a9(0x210)](){const _0x24c829=_0x55c2a9;return this[_0x24c829(0x212)][_0x24c829(0x1f1)](_0x10ad14=>_0x10ad14[_0x24c829(0x1fb)]['id']);}[_0x55c2a9(0x1e2)](_0x5a7cc6){const _0x6ef9f1=_0x55c2a9;this[_0x6ef9f1(0x212)][_0x6ef9f1(0x201)](this[_0x6ef9f1(0x1f9)](_0x5a7cc6));}[_0x55c2a9(0x203)](_0x188857,_0x2cc5a9){const _0x320975=_0x55c2a9,_0x23ad5f=this[_0x320975(0x1f9)](_0x188857);if(!(_0x23ad5f instanceof _0x3b7127))return void _0x1febc1(_0x320975(0x1e5),{'replyId':_0x188857,'partIndex':_0x2cc5a9});const _0x206ff0=_0x23ad5f[_0x320975(0x1dd)](_0x2cc5a9);_0x206ff0?_0x39850a({'target':_0x206ff0[_0x320975(0x218)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x1febc1(_0x320975(0x21d),{'replyId':_0x188857,'partIndex':_0x2cc5a9});}[_0x55c2a9(0x1fc)](){const _0x50947d=_0x55c2a9;this[_0x50947d(0x1ef)]({'tag':_0x50947d(0x1d1),'attributes':{'class':['ck',_0x50947d(0x1f2)]},'children':this[_0x50947d(0x20e)]()});}[_0x55c2a9(0x20e)](){const _0x5cfa3d=_0x55c2a9,_0x1e9c11=this[_0x5cfa3d(0x1ff)]();return[this[_0x5cfa3d(0x202)](),_0x1e9c11,this[_0x5cfa3d(0x1e1)]()];}[_0x55c2a9(0x1ff)](){const _0x39daaa=_0x55c2a9,_0x5c0fa7=new _0x1d8539(this[_0x39daaa(0x1fa)],_0x1c2e40[_0x39daaa(0x1da)]);return _0x5c0fa7[_0x39daaa(0x1f0)]({'attributes':{'class':[this[_0x39daaa(0x1ea)]['if'](_0x39daaa(0x1ec),_0x39daaa(0x1f4),_0x1d93b4=>!_0x1d93b4)]}}),_0x5c0fa7;}[_0x55c2a9(0x202)](){const _0x26af44=_0x55c2a9,_0x326f0d=new _0x421e4c(this[_0x26af44(0x1fa)]);return _0x326f0d[_0x26af44(0x1ef)]({'tag':_0x26af44(0x1d1),'attributes':{'class':['ck',_0x26af44(0x213),this[_0x26af44(0x1ea)]['if'](_0x26af44(0x1ec),_0x26af44(0x1f4))]},'children':this[_0x26af44(0x212)]}),_0x326f0d;}[_0x55c2a9(0x1e1)](){const _0x33d25a=_0x55c2a9,_0x4e7222=new _0x421e4c(this[_0x33d25a(0x1fa)]);return _0x4e7222[_0x33d25a(0x1ef)]({'tag':_0x33d25a(0x1d1),'attributes':{'class':['ck',_0x33d25a(0x1df),this[_0x33d25a(0x1ea)]['if'](_0x33d25a(0x1e8),_0x33d25a(0x1f4),_0x95eef=>!_0x95eef)]},'children':this[_0x33d25a(0x214)]()}),_0x4e7222;}[_0x55c2a9(0x214)](){const _0x355fa8=_0x55c2a9,_0x2fc175=new _0x4c7445();return _0x2fc175[_0x355fa8(0x20b)]=!0x0,[_0x2fc175,{'tag':_0x355fa8(0x211),'attributes':{'class':['ck',_0x355fa8(0x217)]},'children':[{'text':this[_0x355fa8(0x1ea)]['to'](_0x355fa8(0x219))}]}];}[_0x55c2a9(0x1f9)](_0x48b9c7){const _0x18eecc=_0x55c2a9,_0x3a57b6=this[_0x18eecc(0x212)][_0x18eecc(0x1d2)](_0x2943b6=>_0x2943b6[_0x18eecc(0x1fb)]['id'][_0x18eecc(0x1e9)](_0x48b9c7));if(!_0x3a57b6)throw new _0x3a85df(_0x18eecc(0x1e4),this,{'id':_0x48b9c7});return _0x3a57b6;}[_0x55c2a9(0x200)](_0x37763d){const _0xebf6fb=_0x55c2a9;this[_0xebf6fb(0x1d8)](_0xebf6fb(0x219),_0x37763d);}[_0x55c2a9(0x1e6)](_0x88dc22){const _0x2fb6ca=_0x55c2a9;this[_0x2fb6ca(0x1d8)](_0x2fb6ca(0x1ec),_0x88dc22);}[_0x55c2a9(0x1d5)](){const _0x419917=_0x55c2a9;this[_0x419917(0x1f6)][_0x419917(0x1dc)]();}[_0x55c2a9(0x20f)](){const _0x249e73=_0x55c2a9;this[_0x249e73(0x1f6)][_0x249e73(0x1d6)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x334a(){var _0x5916e2=['10NdoCbH','populateSourceResourceBalloon','594215huCaHA','chatDisclaimer','6009507mNoIbP','showResizeButton','attachToDom','3650SxVuMh','detachFromDom','contextResourcesSearchInputVisibleFrom','566216xWqcKX','21921030gTVkRP','div','ck-ai-chat','setTemplate','975vNTcnm','ck-rounded-corners','14etkjzm','uiLanguageDirection','905444LdJWRg','chatFeed','_bodyCollection','ck-reset_all','5128350QzIbMt','destroy','chatControls','closeSourceResourceBalloon','chatHeader','delegate'];_0x334a=function(){return _0x5916e2;};return _0x334a();}var _0x1a0f84=_0x4cd5;(function(_0x30c028,_0x4055e3){var _0x520f98=_0x4cd5,_0x37b44c=_0x30c028();while(!![]){try{var _0x5d9a7d=-parseInt(_0x520f98(0x1d1))/0x1+parseInt(_0x520f98(0x1d6))/0x2*(-parseInt(_0x520f98(0x1de))/0x3)+-parseInt(_0x520f98(0x1e2))/0x4*(parseInt(_0x520f98(0x1cf))/0x5)+-parseInt(_0x520f98(0x1e6))/0x6+parseInt(_0x520f98(0x1e0))/0x7*(parseInt(_0x520f98(0x1d9))/0x8)+parseInt(_0x520f98(0x1d3))/0x9+parseInt(_0x520f98(0x1da))/0xa;if(_0x5d9a7d===_0x4055e3)break;else _0x37b44c['push'](_0x37b44c['shift']());}catch(_0x16fd49){_0x37b44c['push'](_0x37b44c['shift']());}}}(_0x334a,0x7bae1));import{View as _0x17a19e,BodyCollection as _0x47137b}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4685bd}from'../utils/eventnames.js';import{AIChatFeedView as _0x25340b}from'./aichatfeedview.js';import{AIChatControlsView as _0x359251}from'./aichatcontrolsview.js';function _0x4cd5(_0x38d0d5,_0x581120){var _0x334ae8=_0x334a();return _0x4cd5=function(_0x4cd5a8,_0x41c7c0){_0x4cd5a8=_0x4cd5a8-0x1cb;var _0x464d40=_0x334ae8[_0x4cd5a8];return _0x464d40;},_0x4cd5(_0x38d0d5,_0x581120);}import{AIChatHeaderView as _0x171897}from'./aichatheaderview.js';import{AIDisclaimerView as _0x27e167}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x17a19e{[_0x1a0f84(0x1cd)];[_0x1a0f84(0x1e3)];[_0x1a0f84(0x1cb)];[_0x1a0f84(0x1d2)];[_0x1a0f84(0x1e4)];constructor(_0x53760c,_0x303239){var _0x2b5676=_0x1a0f84;super(_0x53760c),this[_0x2b5676(0x1e4)]=new _0x47137b(_0x53760c),this[_0x2b5676(0x1e4)][_0x2b5676(0x1d5)](),this[_0x2b5676(0x1cd)]=new _0x171897(_0x53760c,_0x303239[_0x2b5676(0x1d4)]),this[_0x2b5676(0x1cd)][_0x2b5676(0x1ce)](..._0x4685bd)['to'](this),this[_0x2b5676(0x1e3)]=new _0x25340b(_0x53760c,this[_0x2b5676(0x1e4)]),this[_0x2b5676(0x1e3)][_0x2b5676(0x1ce)](..._0x4685bd)['to'](this),this[_0x2b5676(0x1cb)]=new _0x359251(_0x53760c,{'bodyCollection':this[_0x2b5676(0x1e4)],'contextResourcesSearchInputVisibleFrom':_0x303239[_0x2b5676(0x1d8)]}),this[_0x2b5676(0x1cb)][_0x2b5676(0x1ce)](..._0x4685bd)['to'](this),this[_0x2b5676(0x1d2)]=new _0x27e167(_0x53760c),this[_0x2b5676(0x1dd)]({'tag':_0x2b5676(0x1db),'attributes':{'class':['ck',_0x2b5676(0x1e5),_0x2b5676(0x1dc),_0x2b5676(0x1df)],'dir':_0x53760c[_0x2b5676(0x1e1)]},'children':[this[_0x2b5676(0x1cd)],this[_0x2b5676(0x1e3)],this[_0x2b5676(0x1cb)],this[_0x2b5676(0x1d2)]]});}[_0x1a0f84(0x1d0)](_0x189b9d,_0x29b939,_0x4e5899,_0x2cca6b){var _0x29c0dd=_0x1a0f84;this[_0x29c0dd(0x1cb)][_0x29c0dd(0x1d0)](_0x189b9d,_0x29b939,_0x4e5899,_0x2cca6b);}[_0x1a0f84(0x1cc)](_0x4acf1e){var _0x119e9a=_0x1a0f84;this[_0x119e9a(0x1cb)][_0x119e9a(0x1cc)](_0x4acf1e);}[_0x1a0f84(0x1e7)](){var _0x264971=_0x1a0f84;this[_0x264971(0x1e4)][_0x264971(0x1d7)](),super[_0x264971(0x1e7)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x590f(){const _0x52c7b0=['_setupVisibilityObserver','_applyCalculationStyles','_locale','_createShowMoreButtonView','length','execute','1241835yJqhgq','absolute','show','+\x201','_config','cssClasses','pointerEvents','_targetContainer','setContainerElement','273343MxYXTe','_calculateOverflowInContainer','none','push','filter','extendTemplate','showMoreLabelPrefix','pin','_ancestorsToRestore','9zNVxit','textContent','_renderChipsAndCountRows','disableAnimationOnEnter','height','clientWidth','zIndex','isConnected','_updateShowMoreButtonVisibility','add','-9999px','_calculateContainerWidth','_checkAndHandleOverflow','includes','showBalloonPanel','_handleShowMoreButtonClick','96qVSZTe','_overflowChips','_applyOverflowResults','2101FTMzpr','_repinBalloonPanel','boxSizing','_createCalculationContainer','rowDetectionTolerance','_isContainerVisible','children','left','from','_showMoreBalloonPanelView','visible\x20!important','set','_pendingCalculation','clear','right','className','clientHeight','label','body','controlsButton','300px','element','tagName','_createShowMoreBalloonPanelView','calculationContainer','render','hidden','width','_distributeChips','_bodyCollection','isIntersecting','_parentView','_createMockButton','0px','visibility','hide','_findTargetContainer','createElement','destroy','forEach','pop','showMoreButton','content','classList','_updateBalloonContent','showMoreButtonView','block\x20!important','opacity','setTemplate','isOn','_visibleChips','ck-calculation-container','div','auto','35175336zyRcAv','remove','809448ZKdTDF','.ck-ai-chat','innerHeight','disconnect','86070EnPAgQ','style','top','_containerElement','querySelector','some','hideBalloonPanel','2644cSlFzd','getBoundingClientRect','18odqVGr','position','toLowerCase','_testButtonFit','observe','block','maxVisibleRows','appendChild','_createContainerElements','7634EMwsSS','abs','50px','documentElement','_showMoreButtonView','_createShowMoreButton','_makeAncestorsVisible','_updateOverflowUI','innerHTML','_restoreAncestorVisibility','undefined','display','showMoreBalloon','border-box','button','overflowContainer','slice','offsetWidth','cloneNode','parentElement','reorganizeChips','overflowChips','14255susJMc','_intersectionObserver','isVisible','innerWidth','getComputedStyle','visible','bottom'];_0x590f=function(){return _0x52c7b0;};return _0x590f();}const _0x1ef46b=_0x166f;function _0x166f(_0x170840,_0x3e0308){const _0x590f28=_0x590f();return _0x166f=function(_0x166f15,_0x584663){_0x166f15=_0x166f15-0x175;let _0x1da4b2=_0x590f28[_0x166f15];return _0x1da4b2;},_0x166f(_0x170840,_0x3e0308);}(function(_0x320756,_0x28d6c2){const _0x2a5757=_0x166f,_0x201aca=_0x320756();while(!![]){try{const _0x12bd3f=parseInt(_0x2a5757(0x1dd))/0x1+parseInt(_0x2a5757(0x1ba))/0x2*(parseInt(_0x2a5757(0x1ff))/0x3)+-parseInt(_0x2a5757(0x1af))/0x4*(parseInt(_0x2a5757(0x1d0))/0x5)+-parseInt(_0x2a5757(0x1b1))/0x6*(-parseInt(_0x2a5757(0x1e6))/0x7)+-parseInt(_0x2a5757(0x1a4))/0x8*(-parseInt(_0x2a5757(0x1ef))/0x9)+parseInt(_0x2a5757(0x1a8))/0xa*(-parseInt(_0x2a5757(0x202))/0xb)+parseInt(_0x2a5757(0x1a2))/0xc;if(_0x12bd3f===_0x28d6c2)break;else _0x201aca['push'](_0x201aca['shift']());}catch(_0x1a8c74){_0x201aca['push'](_0x201aca['shift']());}}}(_0x590f,0xf0831));import{View as _0x5307be,BalloonPanelView as _0x1f07f7,ButtonView as _0x5c0b92,clickOutsideHandler as _0x738804}from'ckeditor5/src/ui.js';import{Collection as _0x362882}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x1ef46b(0x180);export class AIChatChipsOverflowManager{[_0x1ef46b(0x1d9)];[_0x1ef46b(0x1e1)];[_0x1ef46b(0x19e)];[_0x1ef46b(0x200)];[_0x1ef46b(0x1be)]=null;[_0x1ef46b(0x175)]=null;[_0x1ef46b(0x1ab)]=null;[_0x1ef46b(0x189)];[_0x1ef46b(0x18b)]=null;[_0x1ef46b(0x1d1)]=null;[_0x1ef46b(0x178)]=!0x1;constructor(_0x1c6bce,_0x21e75f,_0x325684,_0x256e24,_0x452ba3){const _0x5d1af7=_0x1ef46b;this[_0x5d1af7(0x1d9)]=_0x1c6bce,this[_0x5d1af7(0x19e)]=_0x21e75f,this[_0x5d1af7(0x1e1)]={...hn,..._0x325684,'cssClasses':{'controlsButton':'','calculationContainer':_0x5d1af7(0x19f),..._0x325684[_0x5d1af7(0x1e2)]}},this[_0x5d1af7(0x200)]=new _0x362882(),this[_0x5d1af7(0x189)]=_0x256e24,this[_0x5d1af7(0x18b)]=_0x452ba3||null;}[_0x1ef46b(0x1e5)](_0x4ab61a){const _0x420dc8=_0x1ef46b;this[_0x420dc8(0x1d1)]&&(this[_0x420dc8(0x1d1)][_0x420dc8(0x1a7)](),this[_0x420dc8(0x1d1)]=null),this[_0x420dc8(0x1ab)]=_0x4ab61a,this[_0x420dc8(0x1d7)]();}get[_0x1ef46b(0x199)](){const _0x4ebddd=_0x1ef46b;return this[_0x4ebddd(0x1be)];}get[_0x1ef46b(0x1cf)](){const _0x3fd1c8=_0x1ef46b;return this[_0x3fd1c8(0x200)];}[_0x1ef46b(0x1ce)](){requestAnimationFrame(()=>{const _0x487d8b=_0x166f;this[_0x487d8b(0x1fb)]();});}[_0x1ef46b(0x1fd)](){const _0x4023fd=_0x1ef46b;this[_0x4023fd(0x1be)]&&this[_0x4023fd(0x175)]&&(this[_0x4023fd(0x198)](),this[_0x4023fd(0x1be)][_0x4023fd(0x19d)]=!0x0,this[_0x4023fd(0x175)][_0x4023fd(0x1df)](),this[_0x4023fd(0x175)][_0x4023fd(0x1ed)]({'target':this[_0x4023fd(0x1be)][_0x4023fd(0x181)],'limiter':document[_0x4023fd(0x1ac)](_0x4023fd(0x1a5))}));}[_0x1ef46b(0x1ae)](){const _0x22ba8c=_0x1ef46b;this[_0x22ba8c(0x1be)]&&this[_0x22ba8c(0x175)]&&(this[_0x22ba8c(0x1be)][_0x22ba8c(0x19d)]=!0x1,this[_0x22ba8c(0x175)][_0x22ba8c(0x18f)]());}[_0x1ef46b(0x179)](){const _0x5f4b10=_0x1ef46b;this[_0x5f4b10(0x200)][_0x5f4b10(0x179)](),this[_0x5f4b10(0x1ae)](),this[_0x5f4b10(0x1f7)](),this[_0x5f4b10(0x1be)]&&(this[_0x5f4b10(0x1be)][_0x5f4b10(0x17d)]=''),this[_0x5f4b10(0x175)]&&this[_0x5f4b10(0x175)][_0x5f4b10(0x196)][_0x5f4b10(0x179)]();}[_0x1ef46b(0x192)](){const _0x79f8ef=_0x1ef46b;this[_0x79f8ef(0x1d1)]&&(this[_0x79f8ef(0x1d1)][_0x79f8ef(0x1a7)](),this[_0x79f8ef(0x1d1)]=null),this[_0x79f8ef(0x1be)]&&(this[_0x79f8ef(0x1be)][_0x79f8ef(0x192)](),this[_0x79f8ef(0x1be)]=null),this[_0x79f8ef(0x175)]&&(this[_0x79f8ef(0x175)][_0x79f8ef(0x192)](),this[_0x79f8ef(0x175)]=null);}[_0x1ef46b(0x1fb)](){const _0x58f7b5=_0x1ef46b;if(!this[_0x58f7b5(0x1ab)])return;if(!this[_0x58f7b5(0x207)]())return void(this[_0x58f7b5(0x178)]=!0x0);this[_0x58f7b5(0x178)]=!0x1;const _0x1f7ed1=[...this[_0x58f7b5(0x19e)],...this[_0x58f7b5(0x200)]],_0x445b7e=this[_0x58f7b5(0x205)](),_0x2e0929=this[_0x58f7b5(0x1e7)](_0x445b7e,_0x1f7ed1),_0x23ea6e=_0x445b7e[_0x58f7b5(0x1ee)];_0x23ea6e&&this[_0x58f7b5(0x1c3)](_0x23ea6e),_0x445b7e[_0x58f7b5(0x1a3)](),this[_0x58f7b5(0x201)](_0x1f7ed1,_0x2e0929);}[_0x1ef46b(0x1bf)](){const _0xe50188=_0x1ef46b;this[_0xe50188(0x1be)]=this[_0xe50188(0x1da)](),this[_0xe50188(0x175)]=this[_0xe50188(0x183)](),this[_0xe50188(0x1be)][_0xe50188(0x185)](),this[_0xe50188(0x1ab)][_0xe50188(0x1b8)](this[_0xe50188(0x1be)][_0xe50188(0x181)]),this[_0xe50188(0x1be)]['on'](_0xe50188(0x1dc),()=>{const _0x574e93=_0xe50188;this[_0x574e93(0x1fe)]();}),_0x738804({'emitter':this[_0xe50188(0x175)],'contextElements':[this[_0xe50188(0x175)][_0xe50188(0x181)],this[_0xe50188(0x1be)][_0xe50188(0x181)]],'callback':()=>this[_0xe50188(0x1ae)](),'activator':()=>this[_0xe50188(0x1be)][_0xe50188(0x19d)]});}[_0x1ef46b(0x1da)](){const _0x4eb7c6=_0x1ef46b,_0x32c067=new _0x5c0b92(this[_0x4eb7c6(0x1d9)]);_0x32c067[_0x4eb7c6(0x177)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1d93c7=[this[_0x4eb7c6(0x1e1)][_0x4eb7c6(0x1e2)][_0x4eb7c6(0x195)]];return this[_0x4eb7c6(0x1e1)][_0x4eb7c6(0x1e2)][_0x4eb7c6(0x17f)]&&_0x1d93c7[_0x4eb7c6(0x1e9)](this[_0x4eb7c6(0x1e1)][_0x4eb7c6(0x1e2)][_0x4eb7c6(0x17f)]),_0x32c067[_0x4eb7c6(0x1eb)]({'attributes':{'class':_0x1d93c7}}),_0x32c067;}[_0x1ef46b(0x183)](){const _0x71f1bd=_0x1ef46b,_0x31c694=new _0x1f07f7(this[_0x71f1bd(0x1d9)]);return _0x31c694[_0x71f1bd(0x1eb)]({'attributes':{'class':this[_0x71f1bd(0x1e1)][_0x71f1bd(0x1e2)][_0x71f1bd(0x1c6)]}}),this[_0x71f1bd(0x189)][_0x71f1bd(0x1f8)](_0x31c694),_0x31c694;}[_0x1ef46b(0x198)](){const _0x34126d=_0x1ef46b;if(this[_0x34126d(0x175)]&&(this[_0x34126d(0x175)][_0x34126d(0x196)][_0x34126d(0x179)](),this[_0x34126d(0x200)][_0x34126d(0x1db)]>0x0)){this[_0x34126d(0x200)][_0x34126d(0x193)](_0x431617=>{const _0x154319=_0x34126d;_0x431617[_0x154319(0x1f2)]();});const _0x10cf23=new _0x5307be(this[_0x34126d(0x1d9)]);_0x10cf23[_0x34126d(0x19c)]({'tag':_0x34126d(0x1a0),'attributes':{'class':this[_0x34126d(0x1e1)][_0x34126d(0x1e2)][_0x34126d(0x1c9)]},'children':this[_0x34126d(0x200)]}),this[_0x34126d(0x175)][_0x34126d(0x196)][_0x34126d(0x1f8)](_0x10cf23);}}[_0x1ef46b(0x1fe)](){const _0x1f24d7=_0x1ef46b;this[_0x1f24d7(0x1be)][_0x1f24d7(0x19d)]?this[_0x1f24d7(0x1ae)]():this[_0x1f24d7(0x1fd)]();}[_0x1ef46b(0x1f7)](){const _0x20426e=_0x1ef46b,_0x17f550=this[_0x20426e(0x200)][_0x20426e(0x1db)]>0x0;this[_0x20426e(0x1be)]?.[_0x20426e(0x181)]&&(this[_0x20426e(0x1be)][_0x20426e(0x181)][_0x20426e(0x1a9)][_0x20426e(0x1c5)]=_0x17f550?'':_0x20426e(0x1e8));}[_0x1ef46b(0x203)](){const _0x4ee974=_0x1ef46b;this[_0x4ee974(0x1be)]?.[_0x4ee974(0x19d)]&&this[_0x4ee974(0x175)]?.[_0x4ee974(0x1d2)]&&this[_0x4ee974(0x1be)][_0x4ee974(0x181)]&&this[_0x4ee974(0x175)][_0x4ee974(0x1ed)]({'target':this[_0x4ee974(0x1be)][_0x4ee974(0x181)],'limiter':document[_0x4ee974(0x1ac)](_0x4ee974(0x1a5))});}[_0x1ef46b(0x190)](_0xdc5dc){const _0x25040f=_0x1ef46b,_0x5c8271=this[_0x25040f(0x1ab)]?.[_0x25040f(0x182)][_0x25040f(0x1b3)]()||_0x25040f(0x1a0),_0x11fa3e=this[_0x25040f(0x1ab)]?.[_0x25040f(0x197)];if(_0x11fa3e){const _0x22852b=_0x11fa3e[0x0]||'',_0x42a22c=_0xdc5dc[_0x25040f(0x1ac)]('.'+_0x22852b),_0x17c1be=_0xdc5dc[_0x25040f(0x1ac)](_0x5c8271);return _0x42a22c||_0x17c1be||_0xdc5dc;}return _0xdc5dc[_0x25040f(0x1ac)](_0x5c8271)||_0xdc5dc;}[_0x1ef46b(0x1fa)](){const _0x8f9e1=_0x1ef46b,_0x467a56=this[_0x8f9e1(0x18b)]?.[_0x8f9e1(0x181)]||this[_0x8f9e1(0x1ab)];if(!_0x467a56)return an;const _0x2bcb98=window[_0x8f9e1(0x1d4)](_0x467a56)[_0x8f9e1(0x187)];if(_0x8f9e1(0x1a1)===_0x2bcb98||_0x8f9e1(0x18d)===_0x2bcb98||!_0x2bcb98){const _0x589747=_0x467a56[_0x8f9e1(0x1cd)];if(_0x589747){const _0x487233=window[_0x8f9e1(0x1d4)](_0x589747);return _0x8f9e1(0x1a1)!==_0x487233[_0x8f9e1(0x187)]?_0x487233[_0x8f9e1(0x187)]:an;}return an;}return _0x2bcb98;}[_0x1ef46b(0x1d8)](_0x31b782,_0x401356){const _0x44111f=_0x1ef46b;this[_0x44111f(0x1e1)][_0x44111f(0x1e2)][_0x44111f(0x184)]&&_0x31b782[_0x44111f(0x197)][_0x44111f(0x1f8)](this[_0x44111f(0x1e1)][_0x44111f(0x1e2)][_0x44111f(0x184)]),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x187)]=_0x401356,_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1b2)]=_0x44111f(0x1de),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1aa)]=_0x44111f(0x1f9),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x209)]=_0x44111f(0x1f9),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x19b)]='0',_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1e3)]=_0x44111f(0x1e8),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1f5)]='-1',_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x18e)]=_0x44111f(0x176),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x1c5)]=_0x44111f(0x19a),_0x31b782[_0x44111f(0x1a9)][_0x44111f(0x204)]=_0x44111f(0x1c7);}[_0x1ef46b(0x1c3)](_0x49214f){const _0x35a9f8=_0x1ef46b;_0x49214f[_0x35a9f8(0x193)](({element:_0x1c25c3,originalDisplay:_0x6e2ad5,originalVisibility:_0xf58b90})=>{const _0x4d0fe2=_0x35a9f8;_0x1c25c3[_0x4d0fe2(0x1a9)][_0x4d0fe2(0x1c5)]=_0x6e2ad5,_0x1c25c3[_0x4d0fe2(0x1a9)][_0x4d0fe2(0x18e)]=_0xf58b90;});}[_0x1ef46b(0x1c0)](_0xd6b613){const _0x4b05fd=_0x1ef46b,_0x5a475e=[];let _0xdc9a2d=_0xd6b613;for(;_0xdc9a2d&&_0xdc9a2d!==document[_0x4b05fd(0x17e)];){const _0x1152a1=window[_0x4b05fd(0x1d4)](_0xdc9a2d);_0x4b05fd(0x1e8)!==_0x1152a1[_0x4b05fd(0x1c5)]&&_0x4b05fd(0x186)!==_0x1152a1[_0x4b05fd(0x18e)]||(_0x5a475e[_0x4b05fd(0x1e9)]({'element':_0xdc9a2d,'originalDisplay':_0xdc9a2d[_0x4b05fd(0x1a9)][_0x4b05fd(0x1c5)],'originalVisibility':_0xdc9a2d[_0x4b05fd(0x1a9)][_0x4b05fd(0x18e)]}),_0xdc9a2d[_0x4b05fd(0x1a9)][_0x4b05fd(0x1c5)]=_0x4b05fd(0x1b6),_0xdc9a2d[_0x4b05fd(0x1a9)][_0x4b05fd(0x18e)]=_0x4b05fd(0x1d5)),_0xdc9a2d=_0xdc9a2d[_0x4b05fd(0x1cd)];}return _0x5a475e;}[_0x1ef46b(0x1b9)](){const _0x174fcd=_0x1ef46b;let _0x1ce289,_0x47581c;return this[_0x174fcd(0x18b)]?.[_0x174fcd(0x181)]?(_0x1ce289=this[_0x174fcd(0x18b)][_0x174fcd(0x181)][_0x174fcd(0x1cc)](!0x0),_0x47581c=this[_0x174fcd(0x190)](_0x1ce289)):(_0x1ce289=document[_0x174fcd(0x191)](_0x174fcd(0x1a0)),_0x47581c=_0x1ce289),{'calculationContainer':_0x1ce289,'targetContainer':_0x47581c};}[_0x1ef46b(0x205)](){const _0xd55de6=_0x1ef46b,{calculationContainer:_0x468cfd,targetContainer:_0x19a540}=this[_0xd55de6(0x1b9)](),_0x523415=this[_0xd55de6(0x1fa)]();this[_0xd55de6(0x1d8)](_0x468cfd,_0x523415);const _0x11d63a=this[_0xd55de6(0x18b)]?.[_0xd55de6(0x181)]||this[_0xd55de6(0x1ab)],_0x2fc487=_0x11d63a?.[_0xd55de6(0x1cd)];_0x2fc487?_0x2fc487[_0xd55de6(0x1b8)](_0x468cfd):document[_0xd55de6(0x17e)][_0xd55de6(0x1b8)](_0x468cfd),_0x468cfd[_0xd55de6(0x1e4)]=_0x19a540;const _0x70128b=this[_0xd55de6(0x1c0)](_0x2fc487||null);return _0x468cfd[_0xd55de6(0x1cb)],_0x468cfd[_0xd55de6(0x1ee)]=_0x70128b,_0x468cfd;}[_0x1ef46b(0x1e7)](_0xe64465,_0x1c6100){const _0x1c20eb=_0x1ef46b,_0x3fad8b=_0xe64465[_0x1c20eb(0x1e4)]||_0xe64465,_0x34ae4f=[],{rowCount:_0x17cef3}=this[_0x1c20eb(0x1f1)](_0x3fad8b,_0x1c6100);if(_0x17cef3<=this[_0x1c20eb(0x1e1)][_0x1c20eb(0x1b7)])return _0x34ae4f;const _0x20b7e3=_0x1c6100[_0x1c20eb(0x1ca)]();for(;_0x20b7e3[_0x1c20eb(0x1db)]>0x0;){if(this[_0x1c20eb(0x1b4)](_0xe64465,_0x3fad8b,_0x20b7e3)){const _0x3c994b=_0x1c6100[_0x1c20eb(0x1ea)](_0x29732e=>!_0x20b7e3[_0x1c20eb(0x1fc)](_0x29732e));_0x34ae4f[_0x1c20eb(0x1e9)](..._0x3c994b);break;}if(!_0x20b7e3[_0x1c20eb(0x194)]())break;}return _0x34ae4f;}[_0x1ef46b(0x1f1)](_0x22201c,_0x499711){const _0x4236a0=_0x1ef46b;_0x22201c[_0x4236a0(0x1c2)]='',_0x499711[_0x4236a0(0x193)](_0x750742=>{const _0x3ca153=_0x4236a0;if(_0x750742[_0x3ca153(0x181)]){const _0x37c935=_0x750742[_0x3ca153(0x181)][_0x3ca153(0x1cc)](!0x0);_0x22201c[_0x3ca153(0x1b8)](_0x37c935);}}),_0x22201c[_0x4236a0(0x1cb)];const _0x3f08d6=_0x22201c[_0x4236a0(0x208)],_0x598f05=[];return Array[_0x4236a0(0x20a)](_0x3f08d6)[_0x4236a0(0x193)](_0x2f3bff=>{const _0x407d65=_0x4236a0,_0x3bbc5c=_0x2f3bff[_0x407d65(0x1b0)]()[_0x407d65(0x1aa)];_0x598f05[_0x407d65(0x1ad)](_0x18d122=>Math[_0x407d65(0x1bb)](_0x18d122-_0x3bbc5c)<this[_0x407d65(0x1e1)][_0x407d65(0x206)])||_0x598f05[_0x407d65(0x1e9)](_0x3bbc5c);}),{'rowCount':_0x598f05[_0x4236a0(0x1db)]};}[_0x1ef46b(0x18c)](){const _0x52892e=_0x1ef46b,_0x1c4b91=document[_0x52892e(0x191)](_0x52892e(0x1c8));return _0x1c4b91[_0x52892e(0x17b)]=this[_0x52892e(0x1e1)][_0x52892e(0x1e2)][_0x52892e(0x195)],this[_0x52892e(0x1e1)][_0x52892e(0x1e2)][_0x52892e(0x17f)]&&_0x1c4b91[_0x52892e(0x197)][_0x52892e(0x1f8)](this[_0x52892e(0x1e1)][_0x52892e(0x1e2)][_0x52892e(0x17f)]),_0x1c4b91[_0x52892e(0x1f0)]=_0x52892e(0x1e0),_0x1c4b91;}[_0x1ef46b(0x1b4)](_0x348a65,_0x377b78,_0x5bf918){const _0x35f3d6=_0x1ef46b;this[_0x35f3d6(0x1f1)](_0x377b78,_0x5bf918);const _0x2afd4a=this[_0x35f3d6(0x18c)]();_0x348a65[_0x35f3d6(0x1b8)](_0x2afd4a),_0x348a65[_0x35f3d6(0x1cb)];const _0x5a92fe=[..._0x377b78[_0x35f3d6(0x208)],_0x2afd4a],_0x2573dc=[];_0x5a92fe[_0x35f3d6(0x193)](_0x13d7e0=>{const _0x50a7bf=_0x35f3d6,_0x3655ca=_0x13d7e0[_0x50a7bf(0x1b0)]()[_0x50a7bf(0x1aa)];_0x2573dc[_0x50a7bf(0x1ad)](_0x265a38=>Math[_0x50a7bf(0x1bb)](_0x265a38-_0x3655ca)<this[_0x50a7bf(0x1e1)][_0x50a7bf(0x206)])||_0x2573dc[_0x50a7bf(0x1e9)](_0x3655ca);});const _0x397b4e=_0x2573dc[_0x35f3d6(0x1db)];return _0x2afd4a[_0x35f3d6(0x1a3)](),_0x397b4e<=this[_0x35f3d6(0x1e1)][_0x35f3d6(0x1b7)];}[_0x1ef46b(0x188)](_0xa60a16,_0x5e338a){const _0x58a621=_0x1ef46b;this[_0x58a621(0x19e)][_0x58a621(0x179)](),this[_0x58a621(0x200)][_0x58a621(0x179)](),_0xa60a16[_0x58a621(0x193)](_0x224cd1=>{const _0x5e9d5c=_0x58a621;_0x5e338a[_0x5e9d5c(0x1fc)](_0x224cd1)?this[_0x5e9d5c(0x200)][_0x5e9d5c(0x1f8)](_0x224cd1):this[_0x5e9d5c(0x19e)][_0x5e9d5c(0x1f8)](_0x224cd1);});}[_0x1ef46b(0x1c1)](_0x3735b6){const _0x42bd4c=_0x1ef46b;if(_0x3735b6>0x0&&!this[_0x42bd4c(0x1be)]&&this[_0x42bd4c(0x1bf)](),_0x3735b6>0x0&&this[_0x42bd4c(0x1be)]){const _0x15dd5f=''+this[_0x42bd4c(0x1e1)][_0x42bd4c(0x1ec)]+(_0x3735b6<0x63?_0x3735b6:'99');this[_0x42bd4c(0x1be)][_0x42bd4c(0x17d)]=_0x15dd5f;}this[_0x42bd4c(0x198)](),this[_0x42bd4c(0x1f7)](),this[_0x42bd4c(0x203)]();}[_0x1ef46b(0x201)](_0x54cbbc,_0x2a2bc6){const _0x9c97e=_0x1ef46b;this[_0x9c97e(0x188)](_0x54cbbc,_0x2a2bc6),this[_0x9c97e(0x1c1)](_0x2a2bc6[_0x9c97e(0x1db)]);}[_0x1ef46b(0x1d7)](){const _0x36c2e6=_0x1ef46b;this[_0x36c2e6(0x1ab)]&&_0x36c2e6(0x1c4)!=typeof IntersectionObserver&&(this[_0x36c2e6(0x1d1)]=new IntersectionObserver(_0x40e9be=>{const _0x4dc04f=_0x36c2e6;_0x40e9be[0x0][_0x4dc04f(0x18a)]&&this[_0x4dc04f(0x178)]&&requestAnimationFrame(()=>{const _0x3379c3=_0x4dc04f;this[_0x3379c3(0x1fb)]();});},{'threshold':0.01,'rootMargin':_0x36c2e6(0x1bc)}),this[_0x36c2e6(0x1d1)][_0x36c2e6(0x1b5)](this[_0x36c2e6(0x1ab)]));}[_0x1ef46b(0x207)](){const _0x2538ca=_0x1ef46b;if(!this[_0x2538ca(0x1ab)])return!0x1;if(!this[_0x2538ca(0x1ab)][_0x2538ca(0x1f6)])return!0x1;const _0x2726c8=this[_0x2538ca(0x1ab)][_0x2538ca(0x1b0)]();if(0x0===_0x2726c8[_0x2538ca(0x187)]||0x0===_0x2726c8[_0x2538ca(0x1f3)])return!0x1;const _0x1cece6=window[_0x2538ca(0x1a6)]||document[_0x2538ca(0x1bd)][_0x2538ca(0x17c)],_0x5e1121=window[_0x2538ca(0x1d3)]||document[_0x2538ca(0x1bd)][_0x2538ca(0x1f4)],_0x5d127e=0xc8;return _0x2726c8[_0x2538ca(0x1d6)]>=-0xc8&&_0x2726c8[_0x2538ca(0x1aa)]<=_0x1cece6+_0x5d127e&&_0x2726c8[_0x2538ca(0x17a)]>=-0xc8&&_0x2726c8[_0x2538ca(0x209)]<=_0x5e1121+_0x5d127e;}}
|
|
23
|
+
const _0x320527=_0x1613;function _0x2e25(){const _0x57f6ac=['content','0px','_handleShowMoreButtonClick','1185480svgEln','4575480fUVPcd','includes','_showMoreBalloonPanelView','classList','className','push','execute','_parentView','none','_createContainerElements','parentElement','block\x20!important','_calculateContainerWidth','children','showMoreLabelPrefix','visibility','showMoreButtonView','render','querySelector','set','add','_createShowMoreBalloonPanelView','display','5oZlpjt','length','isConnected','reorganizeChips','position','auto','clientWidth','clear','_showMoreButtonView','extendTemplate','maxVisibleRows','appendChild','_applyOverflowResults','220xLnvkg','rowDetectionTolerance','slice','18FJbiBx','50px','label','documentElement','_containerElement','innerWidth','hide','observe','_checkAndHandleOverflow','_pendingCalculation','720167EviSHn','forEach','1626344ukJPKP','undefined','style','hidden','_targetContainer','right','_updateShowMoreButtonVisibility','_overflowChips','1218753iyUmmn','button','_locale','_createMockButton','_bodyCollection','controlsButton','.ck-ai-chat','bottom','_calculateOverflowInContainer','_distributeChips','77JqZQIk','innerHeight','border-box','element','_testButtonFit','pop','_makeAncestorsVisible','remove','boxSizing','_isContainerVisible','overflowContainer','offsetWidth','pointerEvents','body','absolute','getBoundingClientRect','height','some','calculationContainer','left','visible\x20!important','showMoreButton','from','_findTargetContainer','_setupVisibilityObserver','abs','show','_applyCalculationStyles','isOn','_ancestorsToRestore','filter','hideBalloonPanel','getComputedStyle','-9999px','300px','_renderChipsAndCountRows','toLowerCase','setContainerElement','_config','_createShowMoreButton','visible','setTemplate','_updateOverflowUI','5059vDOkSs','showBalloonPanel','pin','textContent','_intersectionObserver','_updateBalloonContent','cssClasses','_restoreAncestorVisibility','showMoreBalloon','_createCalculationContainer','isIntersecting','div','clientHeight','width','tagName','top','cloneNode','innerHTML','createElement','_visibleChips','overflowChips','_repinBalloonPanel','ck-calculation-container','zIndex','isVisible','+\x201','disconnect','disableAnimationOnEnter','_createShowMoreButtonView','block','1032429TuGSVf','destroy','opacity'];_0x2e25=function(){return _0x57f6ac;};return _0x2e25();}(function(_0x1b5d2a,_0x224100){const _0x5260e3=_0x1613,_0x3a91e5=_0x1b5d2a();while(!![]){try{const _0x9af9b9=-parseInt(_0x5260e3(0xf5))/0x1*(parseInt(_0x5260e3(0xa9))/0x2)+parseInt(_0x5260e3(0x7e))/0x3+parseInt(_0x5260e3(0xb8))/0x4*(parseInt(_0x5260e3(0x9c))/0x5)+parseInt(_0x5260e3(0xac))/0x6*(parseInt(_0x5260e3(0xb6))/0x7)+parseInt(_0x5260e3(0x85))/0x8+parseInt(_0x5260e3(0xc0))/0x9+parseInt(_0x5260e3(0x84))/0xa*(-parseInt(_0x5260e3(0xca))/0xb);if(_0x9af9b9===_0x224100)break;else _0x3a91e5['push'](_0x3a91e5['shift']());}catch(_0x3831af){_0x3a91e5['push'](_0x3a91e5['shift']());}}}(_0x2e25,0x5cdee));function _0x1613(_0x5bf52a,_0x335b3b){const _0x2e2567=_0x2e25();return _0x1613=function(_0x16134c,_0x76dc5e){_0x16134c=_0x16134c-0x77;let _0x521ded=_0x2e2567[_0x16134c];return _0x521ded;},_0x1613(_0x5bf52a,_0x335b3b);}import{View as _0x3ca723,BalloonPanelView as _0x41567d,ButtonView as _0x3bd45d,clickOutsideHandler as _0x5842f2}from'ckeditor5/src/ui.js';import{Collection as _0x4f5549}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x320527(0xec);export class AIChatChipsOverflowManager{[_0x320527(0xc2)];[_0x320527(0xf0)];[_0x320527(0x108)];[_0x320527(0xbf)];[_0x320527(0xa4)]=null;[_0x320527(0x87)]=null;[_0x320527(0xb0)]=null;[_0x320527(0xc4)];[_0x320527(0x8c)]=null;[_0x320527(0xf9)]=null;[_0x320527(0xb5)]=!0x1;constructor(_0x29ed7d,_0x5155fd,_0xf242a8,_0x44f39a,_0xd0e79b){const _0x33a1c2=_0x320527;this[_0x33a1c2(0xc2)]=_0x29ed7d,this[_0x33a1c2(0x108)]=_0x5155fd,this[_0x33a1c2(0xf0)]={...hn,..._0xf242a8,'cssClasses':{'controlsButton':'','calculationContainer':_0x33a1c2(0x10b),..._0xf242a8[_0x33a1c2(0xfb)]}},this[_0x33a1c2(0xbf)]=new _0x4f5549(),this[_0x33a1c2(0xc4)]=_0x44f39a,this[_0x33a1c2(0x8c)]=_0xd0e79b||null;}[_0x320527(0xef)](_0x109de0){const _0x358316=_0x320527;this[_0x358316(0xf9)]&&(this[_0x358316(0xf9)][_0x358316(0x7a)](),this[_0x358316(0xf9)]=null),this[_0x358316(0xb0)]=_0x109de0,this[_0x358316(0xe2)]();}get[_0x320527(0x95)](){const _0x1c4412=_0x320527;return this[_0x1c4412(0xa4)];}get[_0x320527(0x109)](){const _0x1b7923=_0x320527;return this[_0x1b7923(0xbf)];}[_0x320527(0x9f)](){requestAnimationFrame(()=>{const _0x260ff2=_0x1613;this[_0x260ff2(0xb4)]();});}[_0x320527(0xf6)](){const _0x8453cf=_0x320527;this[_0x8453cf(0xa4)]&&this[_0x8453cf(0x87)]&&(this[_0x8453cf(0xfa)](),this[_0x8453cf(0xa4)][_0x8453cf(0xe6)]=!0x0,this[_0x8453cf(0x87)][_0x8453cf(0xe4)](),this[_0x8453cf(0x87)][_0x8453cf(0xf7)]({'target':this[_0x8453cf(0xa4)][_0x8453cf(0xcd)],'limiter':document[_0x8453cf(0x97)](_0x8453cf(0xc6))}));}[_0x320527(0xe9)](){const _0x2ad5b9=_0x320527;this[_0x2ad5b9(0xa4)]&&this[_0x2ad5b9(0x87)]&&(this[_0x2ad5b9(0xa4)][_0x2ad5b9(0xe6)]=!0x1,this[_0x2ad5b9(0x87)][_0x2ad5b9(0xb2)]());}[_0x320527(0xa3)](){const _0x39da2c=_0x320527;this[_0x39da2c(0xbf)][_0x39da2c(0xa3)](),this[_0x39da2c(0xe9)](),this[_0x39da2c(0xbe)](),this[_0x39da2c(0xa4)]&&(this[_0x39da2c(0xa4)][_0x39da2c(0xae)]=''),this[_0x39da2c(0x87)]&&this[_0x39da2c(0x87)][_0x39da2c(0x81)][_0x39da2c(0xa3)]();}[_0x320527(0x7f)](){const _0xb816f6=_0x320527;this[_0xb816f6(0xf9)]&&(this[_0xb816f6(0xf9)][_0xb816f6(0x7a)](),this[_0xb816f6(0xf9)]=null),this[_0xb816f6(0xa4)]&&(this[_0xb816f6(0xa4)][_0xb816f6(0x7f)](),this[_0xb816f6(0xa4)]=null),this[_0xb816f6(0x87)]&&(this[_0xb816f6(0x87)][_0xb816f6(0x7f)](),this[_0xb816f6(0x87)]=null);}[_0x320527(0xb4)](){const _0x4dd6f2=_0x320527;if(!this[_0x4dd6f2(0xb0)])return;if(!this[_0x4dd6f2(0xd3)]())return void(this[_0x4dd6f2(0xb5)]=!0x0);this[_0x4dd6f2(0xb5)]=!0x1;const _0x49e129=[...this[_0x4dd6f2(0x108)],...this[_0x4dd6f2(0xbf)]],_0x3595b5=this[_0x4dd6f2(0xfe)](),_0x1b62d2=this[_0x4dd6f2(0xc8)](_0x3595b5,_0x49e129),_0x3671a4=_0x3595b5[_0x4dd6f2(0xe7)];_0x3671a4&&this[_0x4dd6f2(0xfc)](_0x3671a4),_0x3595b5[_0x4dd6f2(0xd1)](),this[_0x4dd6f2(0xa8)](_0x49e129,_0x1b62d2);}[_0x320527(0xf1)](){const _0x5218e1=_0x320527;this[_0x5218e1(0xa4)]=this[_0x5218e1(0x7c)](),this[_0x5218e1(0x87)]=this[_0x5218e1(0x9a)](),this[_0x5218e1(0xa4)][_0x5218e1(0x96)](),this[_0x5218e1(0xb0)][_0x5218e1(0xa7)](this[_0x5218e1(0xa4)][_0x5218e1(0xcd)]),this[_0x5218e1(0xa4)]['on'](_0x5218e1(0x8b),()=>{const _0x358647=_0x5218e1;this[_0x358647(0x83)]();}),_0x5842f2({'emitter':this[_0x5218e1(0x87)],'contextElements':[this[_0x5218e1(0x87)][_0x5218e1(0xcd)],this[_0x5218e1(0xa4)][_0x5218e1(0xcd)]],'callback':()=>this[_0x5218e1(0xe9)](),'activator':()=>this[_0x5218e1(0xa4)][_0x5218e1(0xe6)]});}[_0x320527(0x7c)](){const _0x30df49=_0x320527,_0x427791=new _0x3bd45d(this[_0x30df49(0xc2)]);_0x427791[_0x30df49(0x98)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5b9396=[this[_0x30df49(0xf0)][_0x30df49(0xfb)][_0x30df49(0xdf)]];return this[_0x30df49(0xf0)][_0x30df49(0xfb)][_0x30df49(0xc5)]&&_0x5b9396[_0x30df49(0x8a)](this[_0x30df49(0xf0)][_0x30df49(0xfb)][_0x30df49(0xc5)]),_0x427791[_0x30df49(0xa5)]({'attributes':{'class':_0x5b9396}}),_0x427791;}[_0x320527(0x9a)](){const _0x38dcbd=_0x320527,_0x15be3e=new _0x41567d(this[_0x38dcbd(0xc2)]);return _0x15be3e[_0x38dcbd(0xa5)]({'attributes':{'class':this[_0x38dcbd(0xf0)][_0x38dcbd(0xfb)][_0x38dcbd(0xfd)]}}),this[_0x38dcbd(0xc4)][_0x38dcbd(0x99)](_0x15be3e),_0x15be3e;}[_0x320527(0xfa)](){const _0x49d906=_0x320527;if(this[_0x49d906(0x87)]&&(this[_0x49d906(0x87)][_0x49d906(0x81)][_0x49d906(0xa3)](),this[_0x49d906(0xbf)][_0x49d906(0x9d)]>0x0)){this[_0x49d906(0xbf)][_0x49d906(0xb7)](_0x7678f3=>{const _0x4955f2=_0x49d906;_0x7678f3[_0x4955f2(0x7b)]();});const _0x4c6894=new _0x3ca723(this[_0x49d906(0xc2)]);_0x4c6894[_0x49d906(0xf3)]({'tag':_0x49d906(0x100),'attributes':{'class':this[_0x49d906(0xf0)][_0x49d906(0xfb)][_0x49d906(0xd4)]},'children':this[_0x49d906(0xbf)]}),this[_0x49d906(0x87)][_0x49d906(0x81)][_0x49d906(0x99)](_0x4c6894);}}[_0x320527(0x83)](){const _0x3d7c7d=_0x320527;this[_0x3d7c7d(0xa4)][_0x3d7c7d(0xe6)]?this[_0x3d7c7d(0xe9)]():this[_0x3d7c7d(0xf6)]();}[_0x320527(0xbe)](){const _0x59cee7=_0x320527,_0x3277a2=this[_0x59cee7(0xbf)][_0x59cee7(0x9d)]>0x0;this[_0x59cee7(0xa4)]?.[_0x59cee7(0xcd)]&&(this[_0x59cee7(0xa4)][_0x59cee7(0xcd)][_0x59cee7(0xba)][_0x59cee7(0x9b)]=_0x3277a2?'':_0x59cee7(0x8d));}[_0x320527(0x10a)](){const _0x129663=_0x320527;this[_0x129663(0xa4)]?.[_0x129663(0xe6)]&&this[_0x129663(0x87)]?.[_0x129663(0x78)]&&this[_0x129663(0xa4)][_0x129663(0xcd)]&&this[_0x129663(0x87)][_0x129663(0xf7)]({'target':this[_0x129663(0xa4)][_0x129663(0xcd)],'limiter':document[_0x129663(0x97)](_0x129663(0xc6))});}[_0x320527(0xe1)](_0x229b46){const _0x410c=_0x320527,_0x440982=this[_0x410c(0xb0)]?.[_0x410c(0x103)][_0x410c(0xee)]()||_0x410c(0x100),_0x297f5d=this[_0x410c(0xb0)]?.[_0x410c(0x88)];if(_0x297f5d){const _0x5d2c5e=_0x297f5d[0x0]||'',_0x40b116=_0x229b46[_0x410c(0x97)]('.'+_0x5d2c5e),_0x35396d=_0x229b46[_0x410c(0x97)](_0x440982);return _0x40b116||_0x35396d||_0x229b46;}return _0x229b46[_0x410c(0x97)](_0x440982)||_0x229b46;}[_0x320527(0x91)](){const _0x48587c=_0x320527,_0x5581b7=this[_0x48587c(0x8c)]?.[_0x48587c(0xcd)]||this[_0x48587c(0xb0)];if(!_0x5581b7)return an;const _0x475c44=window[_0x48587c(0xea)](_0x5581b7)[_0x48587c(0x102)];if(_0x48587c(0xa1)===_0x475c44||_0x48587c(0x82)===_0x475c44||!_0x475c44){const _0x2867b9=_0x5581b7[_0x48587c(0x8f)];if(_0x2867b9){const _0x1c4513=window[_0x48587c(0xea)](_0x2867b9);return _0x48587c(0xa1)!==_0x1c4513[_0x48587c(0x102)]?_0x1c4513[_0x48587c(0x102)]:an;}return an;}return _0x475c44;}[_0x320527(0xe5)](_0x51e779,_0x3597bb){const _0x1a6a5a=_0x320527;this[_0x1a6a5a(0xf0)][_0x1a6a5a(0xfb)][_0x1a6a5a(0xdc)]&&_0x51e779[_0x1a6a5a(0x88)][_0x1a6a5a(0x99)](this[_0x1a6a5a(0xf0)][_0x1a6a5a(0xfb)][_0x1a6a5a(0xdc)]),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x102)]=_0x3597bb,_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0xa0)]=_0x1a6a5a(0xd8),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x104)]=_0x1a6a5a(0xeb),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0xdd)]=_0x1a6a5a(0xeb),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x80)]='0',_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0xd6)]=_0x1a6a5a(0x8d),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x77)]='-1',_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x94)]=_0x1a6a5a(0xde),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0x9b)]=_0x1a6a5a(0x90),_0x51e779[_0x1a6a5a(0xba)][_0x1a6a5a(0xd2)]=_0x1a6a5a(0xcc);}[_0x320527(0xfc)](_0x33e85c){const _0x3355d1=_0x320527;_0x33e85c[_0x3355d1(0xb7)](({element:_0x54b8c8,originalDisplay:_0x19a4fe,originalVisibility:_0x3e3b36})=>{const _0xde0b41=_0x3355d1;_0x54b8c8[_0xde0b41(0xba)][_0xde0b41(0x9b)]=_0x19a4fe,_0x54b8c8[_0xde0b41(0xba)][_0xde0b41(0x94)]=_0x3e3b36;});}[_0x320527(0xd0)](_0x2069fc){const _0x4dd882=_0x320527,_0x599e37=[];let _0x5115fd=_0x2069fc;for(;_0x5115fd&&_0x5115fd!==document[_0x4dd882(0xd7)];){const _0x57712e=window[_0x4dd882(0xea)](_0x5115fd);_0x4dd882(0x8d)!==_0x57712e[_0x4dd882(0x9b)]&&_0x4dd882(0xbb)!==_0x57712e[_0x4dd882(0x94)]||(_0x599e37[_0x4dd882(0x8a)]({'element':_0x5115fd,'originalDisplay':_0x5115fd[_0x4dd882(0xba)][_0x4dd882(0x9b)],'originalVisibility':_0x5115fd[_0x4dd882(0xba)][_0x4dd882(0x94)]}),_0x5115fd[_0x4dd882(0xba)][_0x4dd882(0x9b)]=_0x4dd882(0x7d),_0x5115fd[_0x4dd882(0xba)][_0x4dd882(0x94)]=_0x4dd882(0xf2)),_0x5115fd=_0x5115fd[_0x4dd882(0x8f)];}return _0x599e37;}[_0x320527(0x8e)](){const _0x32077d=_0x320527;let _0x5a7dc5,_0x197502;return this[_0x32077d(0x8c)]?.[_0x32077d(0xcd)]?(_0x5a7dc5=this[_0x32077d(0x8c)][_0x32077d(0xcd)][_0x32077d(0x105)](!0x0),_0x197502=this[_0x32077d(0xe1)](_0x5a7dc5)):(_0x5a7dc5=document[_0x32077d(0x107)](_0x32077d(0x100)),_0x197502=_0x5a7dc5),{'calculationContainer':_0x5a7dc5,'targetContainer':_0x197502};}[_0x320527(0xfe)](){const _0x362686=_0x320527,{calculationContainer:_0x3e1a7e,targetContainer:_0x30fa52}=this[_0x362686(0x8e)](),_0x1e9a2a=this[_0x362686(0x91)]();this[_0x362686(0xe5)](_0x3e1a7e,_0x1e9a2a);const _0x8ba5b7=this[_0x362686(0x8c)]?.[_0x362686(0xcd)]||this[_0x362686(0xb0)],_0x67059c=_0x8ba5b7?.[_0x362686(0x8f)];_0x67059c?_0x67059c[_0x362686(0xa7)](_0x3e1a7e):document[_0x362686(0xd7)][_0x362686(0xa7)](_0x3e1a7e),_0x3e1a7e[_0x362686(0xbc)]=_0x30fa52;const _0x49c860=this[_0x362686(0xd0)](_0x67059c||null);return _0x3e1a7e[_0x362686(0xd5)],_0x3e1a7e[_0x362686(0xe7)]=_0x49c860,_0x3e1a7e;}[_0x320527(0xc8)](_0x3ea8c4,_0x3067ba){const _0x546396=_0x320527,_0x5c1e82=_0x3ea8c4[_0x546396(0xbc)]||_0x3ea8c4,_0x40754a=[],{rowCount:_0xd2a542}=this[_0x546396(0xed)](_0x5c1e82,_0x3067ba);if(_0xd2a542<=this[_0x546396(0xf0)][_0x546396(0xa6)])return _0x40754a;const _0x4a48b6=_0x3067ba[_0x546396(0xab)]();for(;_0x4a48b6[_0x546396(0x9d)]>0x0;){if(this[_0x546396(0xce)](_0x3ea8c4,_0x5c1e82,_0x4a48b6)){const _0x2ca0fb=_0x3067ba[_0x546396(0xe8)](_0xfe8906=>!_0x4a48b6[_0x546396(0x86)](_0xfe8906));_0x40754a[_0x546396(0x8a)](..._0x2ca0fb);break;}if(!_0x4a48b6[_0x546396(0xcf)]())break;}return _0x40754a;}[_0x320527(0xed)](_0x47a01d,_0x5b2af0){const _0x55d4de=_0x320527;_0x47a01d[_0x55d4de(0x106)]='',_0x5b2af0[_0x55d4de(0xb7)](_0x2fd186=>{const _0x3f074b=_0x55d4de;if(_0x2fd186[_0x3f074b(0xcd)]){const _0x50a173=_0x2fd186[_0x3f074b(0xcd)][_0x3f074b(0x105)](!0x0);_0x47a01d[_0x3f074b(0xa7)](_0x50a173);}}),_0x47a01d[_0x55d4de(0xd5)];const _0x1ffc1c=_0x47a01d[_0x55d4de(0x92)],_0x19be39=[];return Array[_0x55d4de(0xe0)](_0x1ffc1c)[_0x55d4de(0xb7)](_0x1d7507=>{const _0x37cdf7=_0x55d4de,_0x1cb2f8=_0x1d7507[_0x37cdf7(0xd9)]()[_0x37cdf7(0x104)];_0x19be39[_0x37cdf7(0xdb)](_0x59533a=>Math[_0x37cdf7(0xe3)](_0x59533a-_0x1cb2f8)<this[_0x37cdf7(0xf0)][_0x37cdf7(0xaa)])||_0x19be39[_0x37cdf7(0x8a)](_0x1cb2f8);}),{'rowCount':_0x19be39[_0x55d4de(0x9d)]};}[_0x320527(0xc3)](){const _0x57968e=_0x320527,_0x976ec8=document[_0x57968e(0x107)](_0x57968e(0xc1));return _0x976ec8[_0x57968e(0x89)]=this[_0x57968e(0xf0)][_0x57968e(0xfb)][_0x57968e(0xdf)],this[_0x57968e(0xf0)][_0x57968e(0xfb)][_0x57968e(0xc5)]&&_0x976ec8[_0x57968e(0x88)][_0x57968e(0x99)](this[_0x57968e(0xf0)][_0x57968e(0xfb)][_0x57968e(0xc5)]),_0x976ec8[_0x57968e(0xf8)]=_0x57968e(0x79),_0x976ec8;}[_0x320527(0xce)](_0x433a09,_0x56468d,_0x577400){const _0x5e23e4=_0x320527;this[_0x5e23e4(0xed)](_0x56468d,_0x577400);const _0x2422af=this[_0x5e23e4(0xc3)]();_0x433a09[_0x5e23e4(0xa7)](_0x2422af),_0x433a09[_0x5e23e4(0xd5)];const _0x5325a4=[..._0x56468d[_0x5e23e4(0x92)],_0x2422af],_0x47a2d2=[];_0x5325a4[_0x5e23e4(0xb7)](_0x5a13fb=>{const _0x4478a2=_0x5e23e4,_0x59442b=_0x5a13fb[_0x4478a2(0xd9)]()[_0x4478a2(0x104)];_0x47a2d2[_0x4478a2(0xdb)](_0x232d45=>Math[_0x4478a2(0xe3)](_0x232d45-_0x59442b)<this[_0x4478a2(0xf0)][_0x4478a2(0xaa)])||_0x47a2d2[_0x4478a2(0x8a)](_0x59442b);});const _0x5b504c=_0x47a2d2[_0x5e23e4(0x9d)];return _0x2422af[_0x5e23e4(0xd1)](),_0x5b504c<=this[_0x5e23e4(0xf0)][_0x5e23e4(0xa6)];}[_0x320527(0xc9)](_0x4cff16,_0x434bd8){const _0x3f528b=_0x320527;this[_0x3f528b(0x108)][_0x3f528b(0xa3)](),this[_0x3f528b(0xbf)][_0x3f528b(0xa3)](),_0x4cff16[_0x3f528b(0xb7)](_0x19efc6=>{const _0x410668=_0x3f528b;_0x434bd8[_0x410668(0x86)](_0x19efc6)?this[_0x410668(0xbf)][_0x410668(0x99)](_0x19efc6):this[_0x410668(0x108)][_0x410668(0x99)](_0x19efc6);});}[_0x320527(0xf4)](_0x16b478){const _0x52c24d=_0x320527;if(_0x16b478>0x0&&!this[_0x52c24d(0xa4)]&&this[_0x52c24d(0xf1)](),_0x16b478>0x0&&this[_0x52c24d(0xa4)]){const _0x7b5f6d=''+this[_0x52c24d(0xf0)][_0x52c24d(0x93)]+(_0x16b478<0x63?_0x16b478:'99');this[_0x52c24d(0xa4)][_0x52c24d(0xae)]=_0x7b5f6d;}this[_0x52c24d(0xfa)](),this[_0x52c24d(0xbe)](),this[_0x52c24d(0x10a)]();}[_0x320527(0xa8)](_0x41ce42,_0x3b88e7){const _0xf74f44=_0x320527;this[_0xf74f44(0xc9)](_0x41ce42,_0x3b88e7),this[_0xf74f44(0xf4)](_0x3b88e7[_0xf74f44(0x9d)]);}[_0x320527(0xe2)](){const _0x15798a=_0x320527;this[_0x15798a(0xb0)]&&_0x15798a(0xb9)!=typeof IntersectionObserver&&(this[_0x15798a(0xf9)]=new IntersectionObserver(_0x3b8377=>{const _0x188e9d=_0x15798a;_0x3b8377[0x0][_0x188e9d(0xff)]&&this[_0x188e9d(0xb5)]&&requestAnimationFrame(()=>{const _0x38dc47=_0x188e9d;this[_0x38dc47(0xb4)]();});},{'threshold':0.01,'rootMargin':_0x15798a(0xad)}),this[_0x15798a(0xf9)][_0x15798a(0xb3)](this[_0x15798a(0xb0)]));}[_0x320527(0xd3)](){const _0x30f59f=_0x320527;if(!this[_0x30f59f(0xb0)])return!0x1;if(!this[_0x30f59f(0xb0)][_0x30f59f(0x9e)])return!0x1;const _0x2f9867=this[_0x30f59f(0xb0)][_0x30f59f(0xd9)]();if(0x0===_0x2f9867[_0x30f59f(0x102)]||0x0===_0x2f9867[_0x30f59f(0xda)])return!0x1;const _0x389e22=window[_0x30f59f(0xcb)]||document[_0x30f59f(0xaf)][_0x30f59f(0x101)],_0x1a01a4=window[_0x30f59f(0xb1)]||document[_0x30f59f(0xaf)][_0x30f59f(0xa2)],_0x1d2eb3=0xc8;return _0x2f9867[_0x30f59f(0xc7)]>=-0xc8&&_0x2f9867[_0x30f59f(0x104)]<=_0x389e22+_0x1d2eb3&&_0x2f9867[_0x30f59f(0xbd)]>=-0xc8&&_0x2f9867[_0x30f59f(0xdd)]<=_0x1a01a4+_0x1d2eb3;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x26a8(){const _0x2fd6ee=['div','6uenSlE','ck-ai-chat-context-controls__url-form','shift+tab','add','ck-labeled-field-view_empty','focus','execute','AI_CHAT_CONTEXT_URL_PLACEHOLDER','tab','confirmButton','locale','13XLZZqJ','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_createConfirmButton','_focusables','input','cancel','_isValidUrl','form','63055eiTbZW','AI_CHAT_CONTEXT_URL_LABEL','urlInputField','11IfLelt','listenTo','createCollection','getValue','clear','ck-button-icon','element','forEach','setTemplate','AI_CHAT_CONTEXT_URL_ADD_URL','_setupKeystrokes','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','render','clearError','29844gERTip','1968472HPFUVv','fire','backButton','_createBackButton','_updateConfirmButtonState','errorText','isEnabled','destroy','_handleSubmit','set','value','focusTracker','_setupEventHandlers','keystrokes','_createUrlInputField','stop','trim','140119fhlygz','16epEroh','setError','1022319pFIMTr','submit','children','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','2762230cbQmqx','refreshBalloon','submitUrl','ck-button-icon\x20ck-button-back','ck-ai-chat-context-controls__url-input-section','fieldView','length','69804qUCDCy','focusCycler','_setupTemplate','esc'];_0x26a8=function(){return _0x2fd6ee;};return _0x26a8();}const _0x312e2b=_0x1e30;function _0x1e30(_0x4fa152,_0x567ef6){const _0x26a894=_0x26a8();return _0x1e30=function(_0x1e30d7,_0x5e3d19){_0x1e30d7=_0x1e30d7-0x81;let _0x5b1a40=_0x26a894[_0x1e30d7];return _0x5b1a40;},_0x1e30(_0x4fa152,_0x567ef6);}(function(_0x24a055,_0x1afe1d){const _0x20080a=_0x1e30,_0x5da3b4=_0x24a055();while(!![]){try{const _0xa16be5=parseInt(_0x20080a(0xca))/0x1*(parseInt(_0x20080a(0x9a))/0x2)+-parseInt(_0x20080a(0xba))/0x3*(-parseInt(_0x20080a(0xad))/0x4)+parseInt(_0x20080a(0x88))/0x5*(parseInt(_0x20080a(0xbf))/0x6)+-parseInt(_0x20080a(0xac))/0x7+-parseInt(_0x20080a(0x9b))/0x8+-parseInt(_0x20080a(0xaf))/0x9+parseInt(_0x20080a(0xb3))/0xa*(parseInt(_0x20080a(0x8b))/0xb);if(_0xa16be5===_0x1afe1d)break;else _0x5da3b4['push'](_0x5da3b4['shift']());}catch(_0x14110b){_0x5da3b4['push'](_0x5da3b4['shift']());}}}(_0x26a8,0x2fe81));import{FocusTracker as _0x5dc94e,KeystrokeHandler as _0x59f56c}from'ckeditor5/src/utils.js';import{ButtonView as _0x5dfb50,FocusCycler as _0x2e8294,LabeledFieldView as _0x120256,View as _0x30dd4e,FormHeaderView as _0x1d6de9,createLabeledInputText as _0x2d30ce,submitHandler as _0x3c51d2}from'ckeditor5/src/ui.js';import{IconCheck as _0xd13433,IconPreviousArrow as _0x42326c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x48090a}from'../../../aicore/utils/common-translations.js';const ch=_0x312e2b(0xc0),nh=_0x312e2b(0xb7);export class AIChatContextPanelUrlInputView extends _0x30dd4e{[_0x312e2b(0xa6)];[_0x312e2b(0xa8)];[_0x312e2b(0x83)];[_0x312e2b(0xbb)];[_0x312e2b(0x8a)];[_0x312e2b(0x9d)];[_0x312e2b(0xc8)];constructor(_0x53ba62){const _0x2cc116=_0x312e2b;super(_0x53ba62),this[_0x2cc116(0xa6)]=new _0x5dc94e(),this[_0x2cc116(0xa8)]=new _0x59f56c(),this[_0x2cc116(0x9d)]=this[_0x2cc116(0x9e)](),this[_0x2cc116(0x8a)]=this[_0x2cc116(0xa9)](),this[_0x2cc116(0xc8)]=this[_0x2cc116(0x82)](),this[_0x2cc116(0x83)]=this[_0x2cc116(0x8d)]([this[_0x2cc116(0x9d)],this[_0x2cc116(0x8a)],this[_0x2cc116(0xc8)]]),this[_0x2cc116(0xbb)]=new _0x2e8294({'focusables':this[_0x2cc116(0x83)],'focusTracker':this[_0x2cc116(0xa6)],'keystrokeHandler':this[_0x2cc116(0xa8)],'actions':{'focusPrevious':_0x2cc116(0xc1),'focusNext':_0x2cc116(0xc7)}}),this[_0x2cc116(0xbc)](),this[_0x2cc116(0xa7)](),this[_0x2cc116(0x95)]();}[_0x312e2b(0x98)](){const _0x4c3af8=_0x312e2b;super[_0x4c3af8(0x98)](),this[_0x4c3af8(0x83)][_0x4c3af8(0x92)](_0x16118b=>{const _0x54c895=_0x4c3af8;this[_0x54c895(0xa6)][_0x54c895(0xc2)](_0x16118b[_0x54c895(0x91)]),this[_0x54c895(0xa8)][_0x54c895(0x8c)](_0x16118b[_0x54c895(0x91)]);}),_0x3c51d2({'view':this}),this[_0x4c3af8(0xc4)]();}[_0x312e2b(0xa2)](){const _0x329cfa=_0x312e2b;super[_0x329cfa(0xa2)](),this[_0x329cfa(0xa6)][_0x329cfa(0xa2)](),this[_0x329cfa(0xa8)][_0x329cfa(0xa2)]();}[_0x312e2b(0xc4)](){const _0x304f0e=_0x312e2b;this[_0x304f0e(0x8a)][_0x304f0e(0xc4)]();}[_0x312e2b(0x8e)](){const _0x139b10=_0x312e2b;return this[_0x139b10(0x8a)][_0x139b10(0xb8)][_0x139b10(0x91)]?.[_0x139b10(0xa5)]?.[_0x139b10(0xab)]()||'';}[_0x312e2b(0x8f)](){const _0x5b2efc=_0x312e2b;this[_0x5b2efc(0x8a)][_0x5b2efc(0xb8)][_0x5b2efc(0x91)][_0x5b2efc(0xa5)]='',this[_0x5b2efc(0x8a)][_0x5b2efc(0xa0)]=null,this[_0x5b2efc(0xc8)][_0x5b2efc(0xa1)]=!0x1;}[_0x312e2b(0xae)](_0x3706ac){const _0x5c97f2=_0x312e2b;this[_0x5c97f2(0x8a)][_0x5c97f2(0xa0)]=_0x3706ac,this[_0x5c97f2(0x9f)](),this[_0x5c97f2(0x9c)](_0x5c97f2(0xb4));}[_0x312e2b(0x99)](){const _0x3e7c96=_0x312e2b;this[_0x3e7c96(0x8a)][_0x3e7c96(0xa0)]=null,this[_0x3e7c96(0x9f)]();}[_0x312e2b(0x9e)](){const _0x2054db=_0x312e2b,_0xec1659=new _0x5dfb50(this[_0x2054db(0xc9)]);return _0xec1659[_0x2054db(0xa4)]({'icon':_0x42326c,'tooltip':_0x48090a(this[_0x2054db(0xc9)],_0x2054db(0x97)),'tooltipPosition':'n','class':_0x2054db(0xb6)}),_0xec1659;}[_0x312e2b(0xa9)](){const _0x1e59b0=_0x312e2b,_0x140791=new _0x120256(this[_0x1e59b0(0xc9)],_0x2d30ce);return _0x140791[_0x1e59b0(0xa4)]({'label':_0x48090a(this[_0x1e59b0(0xc9)],_0x1e59b0(0x89)),'class':_0x1e59b0(0xc3)}),_0x140791[_0x1e59b0(0xb8)][_0x1e59b0(0xa4)]({'placeholder':_0x48090a(this[_0x1e59b0(0xc9)],_0x1e59b0(0xc6))}),_0x140791;}[_0x312e2b(0x82)](){const _0x205931=_0x312e2b,_0x124183=new _0x5dfb50(this[_0x205931(0xc9)]);return _0x124183[_0x205931(0xa4)]({'icon':_0xd13433,'tooltip':_0x48090a(this[_0x205931(0xc9)],_0x205931(0x94)),'tooltipPosition':'n','class':_0x205931(0x90),'type':_0x205931(0xb0),'isEnabled':!0x1}),_0x124183;}[_0x312e2b(0xbc)](){const _0x5d14f3=_0x312e2b,_0x33757c=new _0x1d6de9(this[_0x5d14f3(0xc9)],{'label':_0x48090a(this[_0x5d14f3(0xc9)],_0x5d14f3(0x94)),'class':_0x5d14f3(0x96)});_0x33757c[_0x5d14f3(0xb1)][_0x5d14f3(0xc2)](this[_0x5d14f3(0x9d)],0x0),this[_0x5d14f3(0x93)]({'tag':_0x5d14f3(0x87),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x33757c,{'tag':_0x5d14f3(0xbe),'attributes':{'class':nh},'children':[this[_0x5d14f3(0x8a)],this[_0x5d14f3(0xc8)]]}]});}[_0x312e2b(0xa7)](){const _0x4d959b=_0x312e2b;this[_0x4d959b(0x9d)]['on'](_0x4d959b(0xc5),()=>{const _0x507670=_0x4d959b;this[_0x507670(0x8f)](),this[_0x507670(0x9c)](_0x507670(0x85));}),this[_0x4d959b(0x8a)][_0x4d959b(0xb8)]['on'](_0x4d959b(0x84),()=>{const _0x5a2585=_0x4d959b;this[_0x5a2585(0x99)](),this[_0x5a2585(0x9f)](),this[_0x5a2585(0x9c)](_0x5a2585(0xb4));}),this['on'](_0x4d959b(0xb0),_0x31ae2f=>{const _0x515bd0=_0x4d959b;_0x31ae2f[_0x515bd0(0xaa)](),this[_0x515bd0(0xa3)]();});}[_0x312e2b(0x95)](){const _0xf8abd0=_0x312e2b;this[_0xf8abd0(0xa8)][_0xf8abd0(0xa4)](_0xf8abd0(0xbd),(_0x425e5f,_0x53ad63)=>{const _0x175a9a=_0xf8abd0;this[_0x175a9a(0x8f)](),this[_0x175a9a(0x9c)](_0x175a9a(0x85)),_0x53ad63();});}[_0x312e2b(0xa3)](){const _0x3327bf=_0x312e2b,_0x12171e=this[_0x3327bf(0x8e)]()[_0x3327bf(0xab)]();_0x12171e?this[_0x3327bf(0x86)](_0x12171e)?(this[_0x3327bf(0x99)](),this[_0x3327bf(0x9c)](_0x3327bf(0xb5),_0x12171e)):this[_0x3327bf(0xae)](_0x48090a(this[_0x3327bf(0xc9)],_0x3327bf(0x81))):this[_0x3327bf(0xae)](_0x48090a(this[_0x3327bf(0xc9)],_0x3327bf(0xb2)));}[_0x312e2b(0x9f)](){const _0x3f6680=_0x312e2b,_0x303889=this[_0x3f6680(0x8e)]()[_0x3f6680(0xab)](),_0x1f4f65=!!this[_0x3f6680(0x8a)][_0x3f6680(0xa0)];this[_0x3f6680(0xc8)][_0x3f6680(0xa1)]=_0x303889[_0x3f6680(0xb9)]>0x0&&!_0x1f4f65;}[_0x312e2b(0x86)](_0x3af5e3){try{return!!new URL(_0x3af5e3);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x436a(){const _0x9a4e=['isEnabled','cancel','icon','ck-ai-chat','show','southArrowNorthEast','submitUrl','children','tooltip','northArrowSouthEast','ck-ai-chat-context-controls__add-context-balloon-panel','document','closeSourceResourceBalloon','hide','bind','createCollection','_createAddContextButtonView','southArrowNorth','11065txydmu','_setAddContextButtonEnabled','_getLimiterElement','render','clearCurrentContextItems','sources','element','northArrowSouthWest','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createBalloonButton','remove','AI_CHAT_CONTEXT_FILE_LABEL','buttonView','extendTemplate','ck-ai-chat-context-controls__balloon-button','reorganizeChips','setContextItemLoading','populateSourceResourceBalloon','_addContextToCollection','defaultPositions','_overflowManager','arrowView','_bindEventHandlers','removeContextItemChip','addDocumentToContext','enabled','8657310YEjWQP','ck-ai-chat-context-controls__url-balloon-panel','pin','balloonView','hideAddContextBalloonPanel','destroy','30165ulRURE','setContainerElement','isAnyResourceBalloonVisible','isOn','_createBaseBalloonPanel','clearConversationContextItems','_conversationContextsChips','showUrlBalloonPanel','setConversationContext','setTemplate','urls','_createResourcesBalloonView','_createContextButton','AI_CHAT_CONTEXT_ADD_CONTEXT','8YziOkL','refreshBalloon','removeContextItem','48YUgWgr','_toggleAddContextBalloon','_setBalloonPanelContent','_handleAddContextButtonClick','_setupAddContextBalloonClickOutsideHandler','_createUrlBalloonPanelView','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat-controls-button','_currentContextsChips','bodyCollection','set','_setupUrlBalloonClickOutsideHandler','isLoading','locale','updateResourceState','isHidden','__arrow','fire','div','hideUrlBalloonPanel','ck-ai-chat-context-controls__show-more-balloon-panel','current','_createAddContextBalloonPanelView','closest','addFileToContext','_addContextBalloonConfig','clear','add','_resourcesBalloonView','204vflyvl','_createArrowView','1045440kNdQPU','6144bwGXts','_urlInputView','setAddContextOptions','_setupAllBalloonClickOutsideHandlers','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-controls_context_show-more-button','files','done','searchInputVisibleFrom','conversation','ck-ai-chat-context-controls__add-context-button','execute','focus','isVisible','source','_handleUrlSubmit','_addUrlContent','addResourceToContext','_setupTemplate','2424THMtrn','label','ck-ai-chat-context-controls__pending-contexts','addContextButtonView','_addContextBalloonPanelView','menuitem','overflowChips','find','_showSourceResourcesBalloon','_urlBalloonPanelView','5804436nXZOiF','loadSourceResources','334936FNhXzW','AI_CHAT_CONTEXT_URL_LABEL','showAddContextBalloonPanel','ck-ai-chat-context-controls','addContextItem','ck-reset_all-excluded','addUrlToContext','southArrowNorthWest','body','_removeContextFromCollection','showSourceResourcesBalloon','northArrowSouth','isReadOnly','type','content'];_0x436a=function(){return _0x9a4e;};return _0x436a();}const _0x4acd59=_0x51dd;(function(_0x537bd0,_0x8bf7e){const _0x482415=_0x51dd,_0x365349=_0x537bd0();while(!![]){try{const _0x2dd45a=parseInt(_0x482415(0x1c4))/0x1*(parseInt(_0x482415(0x1a1))/0x2)+parseInt(_0x482415(0x224))/0x3*(-parseInt(_0x482415(0x1c1))/0x4)+parseInt(_0x482415(0x204))/0x5*(parseInt(_0x482415(0x1d7))/0x6)+-parseInt(_0x482415(0x1e3))/0x7*(-parseInt(_0x482415(0x1a4))/0x8)+parseInt(_0x482415(0x1c3))/0x9+-parseInt(_0x482415(0x21e))/0xa+parseInt(_0x482415(0x1e1))/0xb;if(_0x2dd45a===_0x8bf7e)break;else _0x365349['push'](_0x365349['shift']());}catch(_0x5d7c91){_0x365349['push'](_0x365349['shift']());}}}(_0x436a,0x72fe8));import{BalloonPanelView as _0x1be137,ButtonView as _0x3808bb,clickOutsideHandler as _0x199031,FileDialogButtonView as _0x3c1e31,IconView as _0x4ec24f,View as _0x5e48bb}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x329c58,IconDocument as _0x175401,IconDocumentOutline as _0x540d6b,IconDropdownArrow as _0x428490,IconLink as _0x4dbdea,IconPaperClip as _0x4fb726}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x43dea2}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xbbf1a6}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x2c9b7e}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x3c5d82}from'../../../aicore/utils/common-translations.js';function _0x51dd(_0x24d09f,_0x3bde50){const _0x436afb=_0x436a();return _0x51dd=function(_0x51ddd3,_0x40a244){_0x51ddd3=_0x51ddd3-0x195;let _0x5dc6e1=_0x436afb[_0x51ddd3];return _0x5dc6e1;},_0x51dd(_0x24d09f,_0x3bde50);}import{AIChatResourcesBalloonView as _0x72adf1}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4acd59(0x21c),_0x4acd59(0x1bc),_0x4acd59(0x1e9),_0x4acd59(0x1d5),_0x4acd59(0x1a3),_0x4acd59(0x1e2)];const ko=_0x4acd59(0x1e6),Eo=_0x4acd59(0x1d9),vo=_0x4acd59(0x1fc),Vo=_0x4acd59(0x1ce),Io=_0x4acd59(0x21f),Po=_0x4acd59(0x212),Ro=_0x4acd59(0x1c8),Uo=_0x4acd59(0x1ab),Lo=_0x4acd59(0x1aa),No=_0x4acd59(0x1c9),Oo=_0x4acd59(0x1b8),Mo=_0x4acd59(0x1f5),Ho=[_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x20b)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1ee)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1fb)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1ea)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x203)],_0x1be137[_0x4acd59(0x217)][_0x4acd59(0x1f7)]];export class AIChatContextPanelView extends _0x5e48bb{[_0x4acd59(0x1da)];[_0x4acd59(0x1ac)]=this[_0x4acd59(0x201)]();[_0x4acd59(0x199)]=this[_0x4acd59(0x201)]();[_0x4acd59(0x218)];[_0x4acd59(0x1db)];[_0x4acd59(0x1e0)];[_0x4acd59(0x1c5)];[_0x4acd59(0x1c0)];[_0x4acd59(0x1bd)];[_0x4acd59(0x1ad)];constructor(_0x5c3559,_0x267484){const _0x280aa1=_0x4acd59;super(_0x5c3559),this[_0x280aa1(0x1ad)]=_0x267484[_0x280aa1(0x1ad)],this[_0x280aa1(0x1ac)]=this[_0x280aa1(0x201)](),this[_0x280aa1(0x199)]=this[_0x280aa1(0x201)](),this[_0x280aa1(0x1da)]=this[_0x280aa1(0x202)](_0x5c3559),this[_0x280aa1(0x1db)]=this[_0x280aa1(0x1ba)](_0x5c3559),this[_0x280aa1(0x1e0)]=this[_0x280aa1(0x1a9)](_0x5c3559),this[_0x280aa1(0x1c0)]=this[_0x280aa1(0x19e)](_0x5c3559,_0x267484);const _0x21e268={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x280aa1(0x218)]=new _0x2c9b7e(_0x5c3559,this[_0x280aa1(0x1ac)],_0x21e268,this[_0x280aa1(0x1ad)],this),this[_0x280aa1(0x1bd)]={'buttonView':this[_0x280aa1(0x1da)],'balloonView':this[_0x280aa1(0x1db)],'hideMethod':this[_0x280aa1(0x222)][_0x280aa1(0x200)](this),'showMethod':this[_0x280aa1(0x1e5)][_0x280aa1(0x200)](this)},this[_0x280aa1(0x1d6)](),this[_0x280aa1(0x21a)]();}[_0x4acd59(0x207)](){const _0x270225=_0x4acd59;super[_0x270225(0x207)](),this[_0x270225(0x1c7)](),this[_0x270225(0x218)][_0x270225(0x225)](this[_0x270225(0x20a)]),this[_0x270225(0x218)][_0x270225(0x213)]();}[_0x4acd59(0x223)](){const _0x2a97d1=_0x4acd59;super[_0x2a97d1(0x223)](),this[_0x2a97d1(0x218)][_0x2a97d1(0x223)](),this[_0x2a97d1(0x1c0)][_0x2a97d1(0x223)]();}[_0x4acd59(0x1e7)](_0x5a2d57,_0x2ff556){const _0x15d023=_0x4acd59,_0xf387d0=this[_0x15d023(0x19f)](_0x5a2d57,_0x15d023(0x1b9),!0x0,_0x2ff556);this[_0x15d023(0x216)](_0xf387d0,this[_0x15d023(0x1ac)]),this[_0x15d023(0x218)][_0x15d023(0x213)]();}[_0x4acd59(0x1a3)](_0x36b6bd){const _0x2346ee=_0x4acd59;this[_0x2346ee(0x1ec)](_0x36b6bd,this[_0x2346ee(0x1ac)]),this[_0x2346ee(0x1ec)](_0x36b6bd,this[_0x2346ee(0x218)][_0x2346ee(0x1dd)]),this[_0x2346ee(0x218)][_0x2346ee(0x213)]();}[_0x4acd59(0x214)](_0x4c94c0,_0x5919c6){const _0x1fc899=_0x4acd59;let _0x323790=this[_0x1fc899(0x1ac)][_0x1fc899(0x1de)](_0x4cb6df=>_0x4cb6df['id']===_0x4c94c0);_0x323790||(_0x323790=this[_0x1fc899(0x218)][_0x1fc899(0x1dd)][_0x1fc899(0x1de)](_0x4027e3=>_0x4027e3['id']===_0x4c94c0)),_0x323790&&(_0x323790[_0x1fc899(0x1b0)]=_0x5919c6);}[_0x4acd59(0x19b)](_0x5b7eeb){const _0x41cbb3=_0x4acd59;this[_0x41cbb3(0x199)][_0x41cbb3(0x1be)]();for(const _0x587bac of _0x5b7eeb){const _0x4d459a=this[_0x41cbb3(0x19f)](_0x587bac,_0x41cbb3(0x1cd),!0x1,!0x1);this[_0x41cbb3(0x216)](_0x4d459a,this[_0x41cbb3(0x199)]);}}[_0x4acd59(0x208)](){const _0x38978c=_0x4acd59;this[_0x38978c(0x1ac)][_0x38978c(0x1be)](),this[_0x38978c(0x218)][_0x38978c(0x1be)]();}[_0x4acd59(0x198)](){const _0x4026f8=_0x4acd59;this[_0x4026f8(0x199)][_0x4026f8(0x1be)]();}[_0x4acd59(0x1b2)](_0x523c1e,_0x42fbba,_0x23a60a){const _0x41bd46=_0x4acd59;this[_0x41bd46(0x1c0)][_0x41bd46(0x1b2)](_0x523c1e,_0x42fbba,_0x23a60a);}[_0x4acd59(0x222)](){const _0x59fc0c=_0x4acd59;this[_0x59fc0c(0x1a5)](!0x1);}[_0x4acd59(0x1e5)](){const _0x145970=_0x4acd59;this[_0x145970(0x1a5)](!0x0);}[_0x4acd59(0x1b7)](){const _0x42e17a=_0x4acd59;this[_0x42e17a(0x1e0)][_0x42e17a(0x1ff)](),this[_0x42e17a(0x1da)][_0x42e17a(0x196)]=!0x1,this[_0x42e17a(0x1c5)]&&this[_0x42e17a(0x1c5)][_0x42e17a(0x1be)]();}[_0x4acd59(0x19a)](){const _0x4717c6=_0x4acd59;this[_0x4717c6(0x1e0)][_0x4717c6(0x1f6)](),this[_0x4717c6(0x1da)][_0x4717c6(0x196)]=!0x0;}[_0x4acd59(0x1df)](_0x1b2eaa){const _0x2d9e25=_0x4acd59;this[_0x2d9e25(0x1c0)][_0x2d9e25(0x1ed)](_0x1b2eaa),this[_0x2d9e25(0x1da)][_0x2d9e25(0x196)]=!0x0;}[_0x4acd59(0x215)](_0x335a41,_0x1e1382,_0x8b06ff,_0xb8b745){const _0x27b8a6=_0x4acd59;this[_0x27b8a6(0x1c0)][_0x27b8a6(0x215)](_0x335a41,_0x8b06ff,_0xb8b745);}[_0x4acd59(0x1fe)](_0x279f53){const _0x3eef89=_0x4acd59;this[_0x3eef89(0x1c0)][_0x3eef89(0x1fe)](_0x279f53),this[_0x3eef89(0x1da)][_0x3eef89(0x196)]=!0x1;}[_0x4acd59(0x1c6)](_0x13c673){const _0xf006ec=_0x4acd59;this[_0xf006ec(0x1a6)](this[_0xf006ec(0x1db)],this[_0xf006ec(0x1b1)],_0x13c673),this[_0xf006ec(0x205)](_0x13c673);}[_0x4acd59(0x205)](_0x2204e4){const _0x3c8c32=_0x4acd59,_0x45b253=!_0x2204e4[_0x3c8c32(0x1fd)][_0x3c8c32(0x1b3)]&&_0x2204e4[_0x3c8c32(0x1fd)][_0x3c8c32(0x21d)],_0x1921b9=_0x2204e4[_0x3c8c32(0x19d)][_0x3c8c32(0x21d)],_0x12c5f5=_0x2204e4[_0x3c8c32(0x1ca)][_0x3c8c32(0x21d)];this[_0x3c8c32(0x1da)][_0x3c8c32(0x1f2)]=_0x45b253||_0x1921b9||_0x12c5f5;}[_0x4acd59(0x1d6)](){const _0x5e2166=_0x4acd59;this[_0x5e2166(0x19c)]({'tag':_0x5e2166(0x1b6),'attributes':{'class':[ko,_0x5e2166(0x1e8)]},'children':[{'tag':_0x5e2166(0x1b6),'attributes':{'class':Eo},'children':this[_0x5e2166(0x1ac)]}]});}[_0x4acd59(0x21a)](){const _0x127cee=_0x4acd59;this[_0x127cee(0x1da)]['on'](_0x127cee(0x1cf),()=>{const _0x218b44=_0x127cee;this[_0x218b44(0x1a7)]();});}[_0x4acd59(0x202)](_0x523465){const _0x3dbe92=_0x4acd59,_0xa535f1=new _0x3808bb(_0x523465);return _0xa535f1[_0x3dbe92(0x1ae)]({'label':_0x3c5d82(_0x523465,_0x3dbe92(0x1a0)),'class':Uo+'\x20'+Vo,'icon':_0x4fb726,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xa535f1;}[_0x4acd59(0x1ba)](_0x173b13){const _0x12f13a=_0x4acd59;return this[_0x12f13a(0x197)](_0x173b13,vo);}[_0x4acd59(0x1a9)](_0x5e3ac2){const _0x428c3c=_0x4acd59,_0x1f4814=this[_0x428c3c(0x197)](_0x5e3ac2,Io);return this[_0x428c3c(0x1d4)](_0x1f4814,_0x5e3ac2),_0x1f4814;}[_0x4acd59(0x19e)](_0x28df8c,_0x46c55c){const _0x257698=_0x4acd59,_0x438ccd={'searchInputVisibleFrom':_0x46c55c[_0x257698(0x1cc)],'onBackToContext':()=>{const _0x387e22=_0x257698;this[_0x387e22(0x1e5)](),this[_0x387e22(0x1db)][_0x387e22(0x220)]({'target':this[_0x387e22(0x1da)][_0x387e22(0x20a)],'limiter':this[_0x387e22(0x206)](),'positions':Ho});},'onResourceSelected':(_0x3411b4,_0x674a5)=>{const _0x3382e6=_0x257698;this[_0x3382e6(0x1b5)](_0x3382e6(0x1d5),{'source':_0x3411b4,'resource':_0x674a5});},'onLoadSourceResources':_0x2f2408=>{const _0xac3a82=_0x257698;this[_0xac3a82(0x1b5)](_0xac3a82(0x1e2),_0x2f2408);},'onBalloonClosed':()=>{const _0x25f806=_0x257698;this[_0x25f806(0x1da)][_0x25f806(0x196)]=!0x1;},'getLimiterElement':()=>this[_0x257698(0x206)](),'getTargetElement':()=>this[_0x257698(0x1da)][_0x257698(0x20a)]};return new _0x72adf1(_0x28df8c,_0x46c55c[_0x257698(0x1ad)],_0x438ccd);}[_0x4acd59(0x206)](){const _0x46f3df=_0x4acd59;return this[_0x46f3df(0x20a)]?.[_0x46f3df(0x1bb)]('.'+Mo)||document[_0x46f3df(0x1eb)];}[_0x4acd59(0x197)](_0x39399d,_0x1b78ad){const _0x34492f=_0x4acd59,_0x34bce8=new _0x1be137(_0x39399d);return _0x34bce8[_0x34492f(0x211)]({'attributes':{'class':_0x1b78ad}}),this[_0x34492f(0x1ad)][_0x34492f(0x1bf)](_0x34bce8),_0x34bce8;}[_0x4acd59(0x1a6)](_0x903611,_0x4299a3,_0x3f27d8){const _0x5e4f3b=_0x4acd59;if(_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1be)](),!_0x3f27d8[_0x5e4f3b(0x1fd)][_0x5e4f3b(0x1b3)]&&_0x3f27d8[_0x5e4f3b(0x1fd)][_0x5e4f3b(0x21d)]){const _0x565ed3=this[_0x5e4f3b(0x20d)](_0x4299a3,{'label':_0x3c5d82(_0x4299a3,_0x5e4f3b(0x20c)),'icon':_0x175401});_0x565ed3['on'](_0x5e4f3b(0x1cf),()=>{const _0xf292c3=_0x5e4f3b;this[_0xf292c3(0x1b5)](_0xf292c3(0x21c)),this[_0xf292c3(0x222)]();}),_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x565ed3);}if(_0x3f27d8[_0x5e4f3b(0x19d)][_0x5e4f3b(0x21d)]){const _0x4a2a31=this[_0x5e4f3b(0x20d)](_0x4299a3,{'label':_0x3c5d82(_0x4299a3,_0x5e4f3b(0x1e4)),'icon':_0x4dbdea});_0x4a2a31['on'](_0x5e4f3b(0x1cf),()=>{const _0x3f46e6=_0x5e4f3b;this[_0x3f46e6(0x222)](),this[_0x3f46e6(0x19a)](),this[_0x3f46e6(0x1e0)][_0x3f46e6(0x220)]({'target':this[_0x3f46e6(0x1da)][_0x3f46e6(0x20a)],'limiter':this[_0x3f46e6(0x206)](),'positions':Ho}),this[_0x3f46e6(0x1c5)][_0x3f46e6(0x1d0)]();}),_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x4a2a31);}if(_0x3f27d8[_0x5e4f3b(0x1ca)][_0x5e4f3b(0x21d)]){const _0x4cce0f=new _0x3c1e31(_0x4299a3);_0x4cce0f[_0x5e4f3b(0x1ae)]({'label':_0x3c5d82(_0x4299a3,_0x5e4f3b(0x20f)),'icon':_0x329c58,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x4cce0f['on'](_0x5e4f3b(0x1cb),(_0x29f99e,_0x5c103b)=>{const _0x246bb2=_0x5e4f3b;this[_0x246bb2(0x1b5)](_0x246bb2(0x1bc),_0x5c103b),this[_0x246bb2(0x222)]();}),_0x4cce0f[_0x5e4f3b(0x1fa)]=!0x0,_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x4cce0f);}for(const _0x3d231a of _0x3f27d8[_0x5e4f3b(0x209)]){const _0x5d317d=this[_0x5e4f3b(0x20d)](_0x4299a3,{'label':_0x3d231a[_0x5e4f3b(0x1d8)],'icon':_0x3d231a[_0x5e4f3b(0x1f4)]||_0x540d6b,'type':_0x5e4f3b(0x1d2)});_0x903611[_0x5e4f3b(0x1f1)][_0x5e4f3b(0x1bf)](_0x5d317d),_0x5d317d['on'](_0x5e4f3b(0x1cf),()=>{const _0x57aff4=_0x5e4f3b;this[_0x57aff4(0x222)](),this[_0x57aff4(0x1df)](_0x3d231a);});}}[_0x4acd59(0x1d4)](_0x4fd2b8,_0x2450df){const _0x462ec8=_0x4acd59;this[_0x462ec8(0x1c5)]=new _0xbbf1a6(_0x2450df),this[_0x462ec8(0x1c5)]['on'](_0x462ec8(0x1f8),(_0x541291,_0xc51ea1)=>{const _0x3429ff=_0x462ec8;this[_0x3429ff(0x1d3)](_0xc51ea1);}),this[_0x462ec8(0x1c5)]['on'](_0x462ec8(0x1f3),()=>{const _0x390fc9=_0x462ec8;this[_0x390fc9(0x1b7)](),this[_0x390fc9(0x1e5)](),this[_0x390fc9(0x1db)][_0x390fc9(0x220)]({'target':this[_0x390fc9(0x1da)][_0x390fc9(0x20a)],'limiter':this[_0x390fc9(0x206)](),'positions':Ho});}),this[_0x462ec8(0x1c5)]['on'](_0x462ec8(0x1a2),()=>{const _0x1c2e05=_0x462ec8;this[_0x1c2e05(0x1e0)][_0x1c2e05(0x1d1)]&&this[_0x1c2e05(0x1e0)][_0x1c2e05(0x220)]({'target':this[_0x1c2e05(0x1da)][_0x1c2e05(0x20a)],'limiter':this[_0x1c2e05(0x206)](),'positions':Ho});}),_0x4fd2b8[_0x462ec8(0x1f1)][_0x462ec8(0x1bf)](this[_0x462ec8(0x1c5)]);}[_0x4acd59(0x20d)](_0x46915f,_0x456b09){const _0x5c310d=_0x4acd59,_0x17a1d9=_0x5c310d(0x1d2)===_0x456b09[_0x5c310d(0x1f0)]?new SourcesBalloonButtonView(_0x46915f):new _0x3808bb(_0x46915f);return _0x17a1d9[_0x5c310d(0x1ae)]({'label':_0x456b09[_0x5c310d(0x1d8)],'icon':_0x456b09[_0x5c310d(0x1f4)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x17a1d9;}[_0x4acd59(0x1c7)](){const _0x2599ad=_0x4acd59;this[_0x2599ad(0x1a8)](),this[_0x2599ad(0x1af)]();}[_0x4acd59(0x1af)](){const _0x3b3560=_0x4acd59;_0x199031({'emitter':this[_0x3b3560(0x1e0)],'contextElements':[this[_0x3b3560(0x1e0)][_0x3b3560(0x20a)]],'callback':()=>{const _0x3b9cf8=_0x3b3560;this[_0x3b9cf8(0x1b7)]();},'activator':()=>this[_0x3b3560(0x1e0)][_0x3b3560(0x1d1)]});}[_0x4acd59(0x1a5)](_0x209779){const _0x10b768=_0x4acd59,_0x26ad8d=this[_0x10b768(0x1bd)];_0x26ad8d[_0x10b768(0x210)][_0x10b768(0x196)]=_0x209779,_0x209779?_0x26ad8d[_0x10b768(0x221)][_0x10b768(0x1f6)]():_0x26ad8d[_0x10b768(0x221)][_0x10b768(0x1ff)]();}[_0x4acd59(0x1a8)](){const _0xef8231=_0x4acd59,{balloonView:_0xe8beb0,buttonView:_0x54d1ec,hideMethod:_0x2c391b}=this[_0xef8231(0x1bd)];_0x199031({'emitter':_0xe8beb0,'contextElements':[_0xe8beb0[_0xef8231(0x20a)],_0x54d1ec[_0xef8231(0x20a)]],'callback':()=>{_0x2c391b();},'activator':()=>_0x54d1ec[_0xef8231(0x196)]&&!this[_0xef8231(0x1e0)][_0xef8231(0x1d1)]&&!this[_0xef8231(0x1c0)][_0xef8231(0x195)]()});}[_0x4acd59(0x19f)](_0xf9a8c6,_0x430061,_0x297c0f=!0x1,_0xd36195=!0x1){const _0x3494fa=_0x4acd59,_0x15381d=_0x3494fa(0x1cd)===_0x430061||!0x0===_0xf9a8c6[_0x3494fa(0x1ef)],_0x103cb1=new _0x43dea2(this[_0x3494fa(0x1b1)],_0xf9a8c6,_0x15381d,_0x297c0f,_0xd36195);return _0x15381d||_0x103cb1['on'](_0x3494fa(0x21b),()=>{const _0x515274=_0x3494fa;this[_0x515274(0x1b5)](_0x515274(0x1a3),_0x103cb1['id']);}),_0x103cb1;}[_0x4acd59(0x216)](_0x34c63d,_0x6daa68){const _0x515e9f=_0x4acd59;_0x6daa68[_0x515e9f(0x1bf)](_0x34c63d,0x0);}[_0x4acd59(0x1ec)](_0x5c5035,_0xe7f486){const _0x2098ee=_0x4acd59,_0x61eb0b=_0xe7f486[_0x2098ee(0x1de)](_0x194ca0=>_0x194ca0['id']===_0x5c5035);_0x61eb0b&&_0xe7f486[_0x2098ee(0x20e)](_0x61eb0b);}[_0x4acd59(0x1a7)](){const _0x3220ee=_0x4acd59;this[_0x3220ee(0x1da)][_0x3220ee(0x196)]?this[_0x3220ee(0x222)]():(this[_0x3220ee(0x1e5)](),this[_0x3220ee(0x1db)][_0x3220ee(0x220)]({'target':this[_0x3220ee(0x1da)][_0x3220ee(0x20a)],'limiter':this[_0x3220ee(0x206)](),'positions':Ho}));}[_0x4acd59(0x1d3)](_0x124a03){const _0x317ac3=_0x4acd59;this[_0x317ac3(0x1c5)][_0x317ac3(0x1be)](),this[_0x317ac3(0x1b7)](),this[_0x317ac3(0x1b5)](_0x317ac3(0x1e9),_0x124a03);}}export class SourcesBalloonButtonView extends _0x3808bb{[_0x4acd59(0x219)];constructor(_0x318159){const _0x30c07f=_0x4acd59;super(_0x318159),this[_0x30c07f(0x1ae)]({'withText':!0x0,'role':_0x30c07f(0x1dc)}),this[_0x30c07f(0x219)]=this[_0x30c07f(0x1c2)](),this[_0x30c07f(0x211)]({'attributes':{'class':[Ro]}});}[_0x4acd59(0x207)](){const _0x2a4293=_0x4acd59;super[_0x2a4293(0x207)](),this[_0x2a4293(0x1f9)][_0x2a4293(0x1bf)](this[_0x2a4293(0x219)]);}[_0x4acd59(0x1c2)](){const _0x2fe587=_0x4acd59,_0x437f2c=new _0x4ec24f();return _0x437f2c[_0x2fe587(0x1f1)]=_0x428490,_0x437f2c[_0x2fe587(0x211)]({'attributes':{'class':Ro+_0x2fe587(0x1b4)}}),_0x437f2c;}}
|
|
23
|
+
function _0x47dd(){const _0x4c2ff8=['_conversationContextsChips','label','tooltip','_removeContextFromCollection','enabled','isHidden','addContextItem','addResourceToContext','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','find','_createAddContextBalloonPanelView','isReadOnly','clearCurrentContextItems','showAddContextBalloonPanel','ck-ai-chat-context-controls__add-context-button','15049793uHHxHm','southArrowNorth','_setAddContextButtonEnabled','done','8132649DSKmvh','pin','destroy','cancel','southArrowNorthWest','locale','render','isOn','type','body','closeSourceResourceBalloon','removeContextItem','ck-ai-chat-context-controls__url-balloon-panel','hide','arrowView','ck-ai-chat-context-controls__show-more-balloon-panel','16LYKKVY','sources','_createAddContextButtonView','_urlInputView','ck-ai-chat-context-controls','_createUrlBalloonPanelView','setConversationContext','363215DilEfS','AI_CHAT_CONTEXT_URL_LABEL','12DGJpeT','ck-ai-chat-context-controls__balloon-button','content','bodyCollection','ck-ai-chat','add','_addContextBalloonConfig','clear','extendTemplate','_resourcesBalloonView','_setBalloonPanelContent','northArrowSouthEast','files','document','_addUrlContent','_bindEventHandlers','_createBaseBalloonPanel','_currentContextsChips','AI_CHAT_CONTEXT_FILE_LABEL','6uwhjDj','isAnyResourceBalloonVisible','set','ck-ai-chat-context-controls__add-context-balloon-panel','_showSourceResourcesBalloon','defaultPositions','_overflowManager','4174556BEvEft','focus','source','_createContextButton','conversation','_addContextToCollection','ck-ai-chat-controls-button','3hKgQEY','northArrowSouth','_createBalloonButton','ck-ai-chat-context-controls__pending-contexts','updateResourceState','_createArrowView','fire','southArrowNorthEast','menuitem','isLoading','setContainerElement','_getLimiterElement','removeContextItemChip','children','AI_CHAT_CONTEXT_ADD_CONTEXT','populateSourceResourceBalloon','addDocumentToContext','_setupAllBalloonClickOutsideHandlers','_handleUrlSubmit','showSourceResourcesBalloon','remove','urls','_setupTemplate','7315731FZCvAF','reorganizeChips','submitUrl','_addContextBalloonPanelView','_toggleAddContextBalloon','ck-reset_all-excluded','_urlBalloonPanelView','hideAddContextBalloonPanel','addContextButtonView','hideUrlBalloonPanel','element','searchInputVisibleFrom','show','icon','8436170uKmKay','current','addUrlToContext','2wEZXRw','closest','_setupUrlBalloonClickOutsideHandler','bind','isVisible','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-controls_context_show-more-button','addFileToContext','northArrowSouthWest','setTemplate','buttonView','ck-ai-chat-context-chips-wrapper-balloon','_handleAddContextButtonClick','div','clearConversationContextItems','isEnabled','createCollection','582725IjzwWZ','execute','balloonView','overflowChips','__arrow','setAddContextOptions','refreshBalloon','showUrlBalloonPanel','loadSourceResources','_setupAddContextBalloonClickOutsideHandler','setContextItemLoading','_createResourcesBalloonView'];_0x47dd=function(){return _0x4c2ff8;};return _0x47dd();}function _0x28ba(_0xc8e398,_0x5234e4){const _0x47dd1b=_0x47dd();return _0x28ba=function(_0x28ba0c,_0x132d2d){_0x28ba0c=_0x28ba0c-0x103;let _0x25102b=_0x47dd1b[_0x28ba0c];return _0x25102b;},_0x28ba(_0xc8e398,_0x5234e4);}const _0x23fc3b=_0x28ba;(function(_0x40cf71,_0x15aaf5){const _0x44b458=_0x28ba,_0x4eb2c3=_0x40cf71();while(!![]){try{const _0x1169b1=parseInt(_0x44b458(0x124))/0x1*(-parseInt(_0x44b458(0x16f))/0x2)+-parseInt(_0x44b458(0x147))/0x3*(parseInt(_0x44b458(0x140))/0x4)+parseInt(_0x44b458(0x180))/0x5+parseInt(_0x44b458(0x139))/0x6*(parseInt(_0x44b458(0x10d))/0x7)+parseInt(_0x44b458(0x11d))/0x8*(parseInt(_0x44b458(0x15e))/0x9)+parseInt(_0x44b458(0x16c))/0xa+parseInt(_0x44b458(0x109))/0xb*(-parseInt(_0x44b458(0x126))/0xc);if(_0x1169b1===_0x15aaf5)break;else _0x4eb2c3['push'](_0x4eb2c3['shift']());}catch(_0x2ee231){_0x4eb2c3['push'](_0x4eb2c3['shift']());}}}(_0x47dd,0xed77e));import{BalloonPanelView as _0x403b86,ButtonView as _0x34c5d4,clickOutsideHandler as _0x508cdc,FileDialogButtonView as _0xfca9ea,IconView as _0xb0d752,View as _0xa2a5d8}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x52bdc2,IconDocument as _0xb863f5,IconDocumentOutline as _0x4a3ac8,IconDropdownArrow as _0x2ce1a5,IconLink as _0x3ccff2,IconPaperClip as _0x2ff9b2}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x49ff92}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x5809df}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x234973}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x370ec1}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x14e4f8}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x23fc3b(0x157),_0x23fc3b(0x176),_0x23fc3b(0x16e),_0x23fc3b(0x193),_0x23fc3b(0x118),_0x23fc3b(0x188)];const ko=_0x23fc3b(0x121),Eo=_0x23fc3b(0x14a),vo=_0x23fc3b(0x13c),Vo=_0x23fc3b(0x108),Io=_0x23fc3b(0x119),Po=_0x23fc3b(0x127),Ro=_0x23fc3b(0x174),Uo=_0x23fc3b(0x146),Lo=_0x23fc3b(0x17a),No=_0x23fc3b(0x175),Oo=_0x23fc3b(0x11c),Mo=_0x23fc3b(0x12a),Ho=[_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x177)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x148)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x131)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x111)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x10a)],_0x403b86[_0x23fc3b(0x13e)][_0x23fc3b(0x14e)]];export class AIChatContextPanelView extends _0xa2a5d8{[_0x23fc3b(0x166)];[_0x23fc3b(0x137)]=this[_0x23fc3b(0x17f)]();[_0x23fc3b(0x18c)]=this[_0x23fc3b(0x17f)]();[_0x23fc3b(0x13f)];[_0x23fc3b(0x161)];[_0x23fc3b(0x164)];[_0x23fc3b(0x120)];[_0x23fc3b(0x12f)];[_0x23fc3b(0x12c)];[_0x23fc3b(0x129)];constructor(_0x55e931,_0x4561bb){const _0x25d466=_0x23fc3b;super(_0x55e931),this[_0x25d466(0x129)]=_0x4561bb[_0x25d466(0x129)],this[_0x25d466(0x137)]=this[_0x25d466(0x17f)](),this[_0x25d466(0x18c)]=this[_0x25d466(0x17f)](),this[_0x25d466(0x166)]=this[_0x25d466(0x11f)](_0x55e931),this[_0x25d466(0x161)]=this[_0x25d466(0x104)](_0x55e931),this[_0x25d466(0x164)]=this[_0x25d466(0x122)](_0x55e931),this[_0x25d466(0x12f)]=this[_0x25d466(0x18b)](_0x55e931,_0x4561bb);const _0x3a6995={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x25d466(0x13f)]=new _0x234973(_0x55e931,this[_0x25d466(0x137)],_0x3a6995,this[_0x25d466(0x129)],this),this[_0x25d466(0x12c)]={'buttonView':this[_0x25d466(0x166)],'balloonView':this[_0x25d466(0x161)],'hideMethod':this[_0x25d466(0x165)][_0x25d466(0x172)](this),'showMethod':this[_0x25d466(0x107)][_0x25d466(0x172)](this)},this[_0x25d466(0x15d)](),this[_0x25d466(0x135)]();}[_0x23fc3b(0x113)](){const _0x13ad8d=_0x23fc3b;super[_0x13ad8d(0x113)](),this[_0x13ad8d(0x158)](),this[_0x13ad8d(0x13f)][_0x13ad8d(0x151)](this[_0x13ad8d(0x168)]),this[_0x13ad8d(0x13f)][_0x13ad8d(0x15f)]();}[_0x23fc3b(0x10f)](){const _0x357946=_0x23fc3b;super[_0x357946(0x10f)](),this[_0x357946(0x13f)][_0x357946(0x10f)](),this[_0x357946(0x12f)][_0x357946(0x10f)]();}[_0x23fc3b(0x192)](_0x15c26a,_0x582bef){const _0x2b57a3=_0x23fc3b,_0xe090d9=this[_0x2b57a3(0x143)](_0x15c26a,_0x2b57a3(0x16d),!0x0,_0x582bef);this[_0x2b57a3(0x145)](_0xe090d9,this[_0x2b57a3(0x137)]),this[_0x2b57a3(0x13f)][_0x2b57a3(0x15f)]();}[_0x23fc3b(0x118)](_0x4f4dba){const _0x4b5d1e=_0x23fc3b;this[_0x4b5d1e(0x18f)](_0x4f4dba,this[_0x4b5d1e(0x137)]),this[_0x4b5d1e(0x18f)](_0x4f4dba,this[_0x4b5d1e(0x13f)][_0x4b5d1e(0x183)]),this[_0x4b5d1e(0x13f)][_0x4b5d1e(0x15f)]();}[_0x23fc3b(0x18a)](_0x3174e4,_0x1fa110){const _0xb05c2a=_0x23fc3b;let _0x4c4f7d=this[_0xb05c2a(0x137)][_0xb05c2a(0x103)](_0x596c0d=>_0x596c0d['id']===_0x3174e4);_0x4c4f7d||(_0x4c4f7d=this[_0xb05c2a(0x13f)][_0xb05c2a(0x183)][_0xb05c2a(0x103)](_0x5e02de=>_0x5e02de['id']===_0x3174e4)),_0x4c4f7d&&(_0x4c4f7d[_0xb05c2a(0x150)]=_0x1fa110);}[_0x23fc3b(0x123)](_0x2f8c4e){const _0x4380a2=_0x23fc3b;this[_0x4380a2(0x18c)][_0x4380a2(0x12d)]();for(const _0x2334d3 of _0x2f8c4e){const _0x298b13=this[_0x4380a2(0x143)](_0x2334d3,_0x4380a2(0x144),!0x1,!0x1);this[_0x4380a2(0x145)](_0x298b13,this[_0x4380a2(0x18c)]);}}[_0x23fc3b(0x106)](){const _0x60dd96=_0x23fc3b;this[_0x60dd96(0x137)][_0x60dd96(0x12d)](),this[_0x60dd96(0x13f)][_0x60dd96(0x12d)]();}[_0x23fc3b(0x17d)](){const _0x57acbc=_0x23fc3b;this[_0x57acbc(0x18c)][_0x57acbc(0x12d)]();}[_0x23fc3b(0x14b)](_0x59028e,_0x46d4a2,_0x392d83){const _0x248505=_0x23fc3b;this[_0x248505(0x12f)][_0x248505(0x14b)](_0x59028e,_0x46d4a2,_0x392d83);}[_0x23fc3b(0x165)](){const _0x1e6b1d=_0x23fc3b;this[_0x1e6b1d(0x162)](!0x1);}[_0x23fc3b(0x107)](){const _0x7312ee=_0x23fc3b;this[_0x7312ee(0x162)](!0x0);}[_0x23fc3b(0x167)](){const _0x3527fb=_0x23fc3b;this[_0x3527fb(0x164)][_0x3527fb(0x11a)](),this[_0x3527fb(0x166)][_0x3527fb(0x114)]=!0x1,this[_0x3527fb(0x120)]&&this[_0x3527fb(0x120)][_0x3527fb(0x12d)]();}[_0x23fc3b(0x187)](){const _0x1fffda=_0x23fc3b;this[_0x1fffda(0x164)][_0x1fffda(0x16a)](),this[_0x1fffda(0x166)][_0x1fffda(0x114)]=!0x0;}[_0x23fc3b(0x13d)](_0x46fd32){const _0x3358f5=_0x23fc3b;this[_0x3358f5(0x12f)][_0x3358f5(0x15a)](_0x46fd32),this[_0x3358f5(0x166)][_0x3358f5(0x114)]=!0x0;}[_0x23fc3b(0x156)](_0x595af7,_0x810d01,_0x3b865a,_0x28b958){const _0x507061=_0x23fc3b;this[_0x507061(0x12f)][_0x507061(0x156)](_0x595af7,_0x3b865a,_0x28b958);}[_0x23fc3b(0x117)](_0x4bd004){const _0x1467c6=_0x23fc3b;this[_0x1467c6(0x12f)][_0x1467c6(0x117)](_0x4bd004),this[_0x1467c6(0x166)][_0x1467c6(0x114)]=!0x1;}[_0x23fc3b(0x185)](_0x5b9ec3){const _0x218e29=_0x23fc3b;this[_0x218e29(0x130)](this[_0x218e29(0x161)],this[_0x218e29(0x112)],_0x5b9ec3),this[_0x218e29(0x10b)](_0x5b9ec3);}[_0x23fc3b(0x10b)](_0x283257){const _0x138c59=_0x23fc3b,_0x1b8b66=!_0x283257[_0x138c59(0x133)][_0x138c59(0x191)]&&_0x283257[_0x138c59(0x133)][_0x138c59(0x190)],_0x14d2cc=_0x283257[_0x138c59(0x15c)][_0x138c59(0x190)],_0x4c06f9=_0x283257[_0x138c59(0x132)][_0x138c59(0x190)];this[_0x138c59(0x166)][_0x138c59(0x17e)]=_0x1b8b66||_0x14d2cc||_0x4c06f9;}[_0x23fc3b(0x15d)](){const _0x57f040=_0x23fc3b;this[_0x57f040(0x178)]({'tag':_0x57f040(0x17c),'attributes':{'class':[ko,_0x57f040(0x163)]},'children':[{'tag':_0x57f040(0x17c),'attributes':{'class':Eo},'children':this[_0x57f040(0x137)]}]});}[_0x23fc3b(0x135)](){const _0x5b2a49=_0x23fc3b;this[_0x5b2a49(0x166)]['on'](_0x5b2a49(0x181),()=>{const _0x4232e2=_0x5b2a49;this[_0x4232e2(0x17b)]();});}[_0x23fc3b(0x11f)](_0x167791){const _0x59c2fa=_0x23fc3b,_0x2ed311=new _0x34c5d4(_0x167791);return _0x2ed311[_0x59c2fa(0x13b)]({'label':_0x370ec1(_0x167791,_0x59c2fa(0x155)),'class':Uo+'\x20'+Vo,'icon':_0x2ff9b2,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x2ed311;}[_0x23fc3b(0x104)](_0xdc2788){const _0x44292c=_0x23fc3b;return this[_0x44292c(0x136)](_0xdc2788,vo);}[_0x23fc3b(0x122)](_0x164457){const _0x2efe5d=_0x23fc3b,_0x3d054a=this[_0x2efe5d(0x136)](_0x164457,Io);return this[_0x2efe5d(0x134)](_0x3d054a,_0x164457),_0x3d054a;}[_0x23fc3b(0x18b)](_0x16a46d,_0x581cce){const _0x1f4c58=_0x23fc3b,_0x154a43={'searchInputVisibleFrom':_0x581cce[_0x1f4c58(0x169)],'onBackToContext':()=>{const _0x3e2e99=_0x1f4c58;this[_0x3e2e99(0x107)](),this[_0x3e2e99(0x161)][_0x3e2e99(0x10e)]({'target':this[_0x3e2e99(0x166)][_0x3e2e99(0x168)],'limiter':this[_0x3e2e99(0x152)](),'positions':Ho});},'onResourceSelected':(_0x510ccc,_0x5ee55c)=>{const _0x36f21e=_0x1f4c58;this[_0x36f21e(0x14d)](_0x36f21e(0x193),{'source':_0x510ccc,'resource':_0x5ee55c});},'onLoadSourceResources':_0x578540=>{const _0xe3814b=_0x1f4c58;this[_0xe3814b(0x14d)](_0xe3814b(0x188),_0x578540);},'onBalloonClosed':()=>{const _0x250a30=_0x1f4c58;this[_0x250a30(0x166)][_0x250a30(0x114)]=!0x1;},'getLimiterElement':()=>this[_0x1f4c58(0x152)](),'getTargetElement':()=>this[_0x1f4c58(0x166)][_0x1f4c58(0x168)]};return new _0x14e4f8(_0x16a46d,_0x581cce[_0x1f4c58(0x129)],_0x154a43);}[_0x23fc3b(0x152)](){const _0x2a3436=_0x23fc3b;return this[_0x2a3436(0x168)]?.[_0x2a3436(0x170)]('.'+Mo)||document[_0x2a3436(0x116)];}[_0x23fc3b(0x136)](_0x17bc8d,_0xac9cb8){const _0x2998be=_0x23fc3b,_0x330e08=new _0x403b86(_0x17bc8d);return _0x330e08[_0x2998be(0x12e)]({'attributes':{'class':_0xac9cb8}}),this[_0x2998be(0x129)][_0x2998be(0x12b)](_0x330e08),_0x330e08;}[_0x23fc3b(0x130)](_0x26d0cd,_0x582640,_0x3af163){const _0x2b31cb=_0x23fc3b;if(_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12d)](),!_0x3af163[_0x2b31cb(0x133)][_0x2b31cb(0x191)]&&_0x3af163[_0x2b31cb(0x133)][_0x2b31cb(0x190)]){const _0x33a0e1=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x370ec1(_0x582640,_0x2b31cb(0x194)),'icon':_0xb863f5});_0x33a0e1['on'](_0x2b31cb(0x181),()=>{const _0x24b7fb=_0x2b31cb;this[_0x24b7fb(0x14d)](_0x24b7fb(0x157)),this[_0x24b7fb(0x165)]();}),_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x33a0e1);}if(_0x3af163[_0x2b31cb(0x15c)][_0x2b31cb(0x190)]){const _0x5c3b3b=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x370ec1(_0x582640,_0x2b31cb(0x125)),'icon':_0x3ccff2});_0x5c3b3b['on'](_0x2b31cb(0x181),()=>{const _0x53addf=_0x2b31cb;this[_0x53addf(0x165)](),this[_0x53addf(0x187)](),this[_0x53addf(0x164)][_0x53addf(0x10e)]({'target':this[_0x53addf(0x166)][_0x53addf(0x168)],'limiter':this[_0x53addf(0x152)](),'positions':Ho}),this[_0x53addf(0x120)][_0x53addf(0x141)]();}),_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x5c3b3b);}if(_0x3af163[_0x2b31cb(0x132)][_0x2b31cb(0x190)]){const _0x588439=new _0xfca9ea(_0x582640);_0x588439[_0x2b31cb(0x13b)]({'label':_0x370ec1(_0x582640,_0x2b31cb(0x138)),'icon':_0x52bdc2,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x588439['on'](_0x2b31cb(0x10c),(_0x1f0f12,_0x3bed3f)=>{const _0x5a6dc3=_0x2b31cb;this[_0x5a6dc3(0x14d)](_0x5a6dc3(0x176),_0x3bed3f),this[_0x5a6dc3(0x165)]();}),_0x588439[_0x2b31cb(0x18e)]=!0x0,_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x588439);}for(const _0x278b83 of _0x3af163[_0x2b31cb(0x11e)]){const _0x1a20c8=this[_0x2b31cb(0x149)](_0x582640,{'label':_0x278b83[_0x2b31cb(0x18d)],'icon':_0x278b83[_0x2b31cb(0x16b)]||_0x4a3ac8,'type':_0x2b31cb(0x142)});_0x26d0cd[_0x2b31cb(0x128)][_0x2b31cb(0x12b)](_0x1a20c8),_0x1a20c8['on'](_0x2b31cb(0x181),()=>{const _0x235acf=_0x2b31cb;this[_0x235acf(0x165)](),this[_0x235acf(0x13d)](_0x278b83);});}}[_0x23fc3b(0x134)](_0x231f04,_0xd59676){const _0x1a5548=_0x23fc3b;this[_0x1a5548(0x120)]=new _0x5809df(_0xd59676),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x160),(_0x464fb8,_0x37facb)=>{const _0x2b9303=_0x1a5548;this[_0x2b9303(0x159)](_0x37facb);}),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x110),()=>{const _0x27ab9b=_0x1a5548;this[_0x27ab9b(0x167)](),this[_0x27ab9b(0x107)](),this[_0x27ab9b(0x161)][_0x27ab9b(0x10e)]({'target':this[_0x27ab9b(0x166)][_0x27ab9b(0x168)],'limiter':this[_0x27ab9b(0x152)](),'positions':Ho});}),this[_0x1a5548(0x120)]['on'](_0x1a5548(0x186),()=>{const _0x444008=_0x1a5548;this[_0x444008(0x164)][_0x444008(0x173)]&&this[_0x444008(0x164)][_0x444008(0x10e)]({'target':this[_0x444008(0x166)][_0x444008(0x168)],'limiter':this[_0x444008(0x152)](),'positions':Ho});}),_0x231f04[_0x1a5548(0x128)][_0x1a5548(0x12b)](this[_0x1a5548(0x120)]);}[_0x23fc3b(0x149)](_0x149b9d,_0x50fa86){const _0x1943db=_0x23fc3b,_0x8cd326=_0x1943db(0x142)===_0x50fa86[_0x1943db(0x115)]?new SourcesBalloonButtonView(_0x149b9d):new _0x34c5d4(_0x149b9d);return _0x8cd326[_0x1943db(0x13b)]({'label':_0x50fa86[_0x1943db(0x18d)],'icon':_0x50fa86[_0x1943db(0x16b)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x8cd326;}[_0x23fc3b(0x158)](){const _0x3bd9b3=_0x23fc3b;this[_0x3bd9b3(0x189)](),this[_0x3bd9b3(0x171)]();}[_0x23fc3b(0x171)](){const _0x552fb0=_0x23fc3b;_0x508cdc({'emitter':this[_0x552fb0(0x164)],'contextElements':[this[_0x552fb0(0x164)][_0x552fb0(0x168)]],'callback':()=>{const _0x339195=_0x552fb0;this[_0x339195(0x167)]();},'activator':()=>this[_0x552fb0(0x164)][_0x552fb0(0x173)]});}[_0x23fc3b(0x162)](_0x299e0f){const _0x2b9544=_0x23fc3b,_0x1dcd09=this[_0x2b9544(0x12c)];_0x1dcd09[_0x2b9544(0x179)][_0x2b9544(0x114)]=_0x299e0f,_0x299e0f?_0x1dcd09[_0x2b9544(0x182)][_0x2b9544(0x16a)]():_0x1dcd09[_0x2b9544(0x182)][_0x2b9544(0x11a)]();}[_0x23fc3b(0x189)](){const _0x248f10=_0x23fc3b,{balloonView:_0x1ce5d0,buttonView:_0x205472,hideMethod:_0x22630a}=this[_0x248f10(0x12c)];_0x508cdc({'emitter':_0x1ce5d0,'contextElements':[_0x1ce5d0[_0x248f10(0x168)],_0x205472[_0x248f10(0x168)]],'callback':()=>{_0x22630a();},'activator':()=>_0x205472[_0x248f10(0x114)]&&!this[_0x248f10(0x164)][_0x248f10(0x173)]&&!this[_0x248f10(0x12f)][_0x248f10(0x13a)]()});}[_0x23fc3b(0x143)](_0x31762e,_0xdc9f5f,_0x510faa=!0x1,_0x27892d=!0x1){const _0x308231=_0x23fc3b,_0x3be048=_0x308231(0x144)===_0xdc9f5f||!0x0===_0x31762e[_0x308231(0x105)],_0x347b2e=new _0x49ff92(this[_0x308231(0x112)],_0x31762e,_0x3be048,_0x510faa,_0x27892d);return _0x3be048||_0x347b2e['on'](_0x308231(0x153),()=>{const _0x18acdc=_0x308231;this[_0x18acdc(0x14d)](_0x18acdc(0x118),_0x347b2e['id']);}),_0x347b2e;}[_0x23fc3b(0x145)](_0x4d617c,_0x186854){const _0x2c275c=_0x23fc3b;_0x186854[_0x2c275c(0x12b)](_0x4d617c,0x0);}[_0x23fc3b(0x18f)](_0x30f366,_0x35d86e){const _0x99fde8=_0x23fc3b,_0x31581a=_0x35d86e[_0x99fde8(0x103)](_0xb2ee80=>_0xb2ee80['id']===_0x30f366);_0x31581a&&_0x35d86e[_0x99fde8(0x15b)](_0x31581a);}[_0x23fc3b(0x17b)](){const _0x27820d=_0x23fc3b;this[_0x27820d(0x166)][_0x27820d(0x114)]?this[_0x27820d(0x165)]():(this[_0x27820d(0x107)](),this[_0x27820d(0x161)][_0x27820d(0x10e)]({'target':this[_0x27820d(0x166)][_0x27820d(0x168)],'limiter':this[_0x27820d(0x152)](),'positions':Ho}));}[_0x23fc3b(0x159)](_0x53d94b){const _0x1a7b1f=_0x23fc3b;this[_0x1a7b1f(0x120)][_0x1a7b1f(0x12d)](),this[_0x1a7b1f(0x167)](),this[_0x1a7b1f(0x14d)](_0x1a7b1f(0x16e),_0x53d94b);}}export class SourcesBalloonButtonView extends _0x34c5d4{[_0x23fc3b(0x11b)];constructor(_0xda1d15){const _0x399c3f=_0x23fc3b;super(_0xda1d15),this[_0x399c3f(0x13b)]({'withText':!0x0,'role':_0x399c3f(0x14f)}),this[_0x399c3f(0x11b)]=this[_0x399c3f(0x14c)](),this[_0x399c3f(0x12e)]({'attributes':{'class':[Ro]}});}[_0x23fc3b(0x113)](){const _0x3e5f3e=_0x23fc3b;super[_0x3e5f3e(0x113)](),this[_0x3e5f3e(0x154)][_0x3e5f3e(0x12b)](this[_0x3e5f3e(0x11b)]);}[_0x23fc3b(0x14c)](){const _0x4b51e7=_0x23fc3b,_0x1b15c8=new _0xb0d752();return _0x1b15c8[_0x4b51e7(0x128)]=_0x2ce1a5,_0x1b15c8[_0x4b51e7(0x12e)]({'attributes':{'class':Ro+_0x4b51e7(0x184)}}),_0x1b15c8;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x301c77=_0x3fc5;function _0x3fc5(_0x3353f9,_0x33b2ec){const _0x4156c1=_0x4156();return _0x3fc5=function(_0x3fc50e,_0x192584){_0x3fc50e=_0x3fc50e-0x1d8;let _0x69829=_0x4156c1[_0x3fc50e];return _0x69829;},_0x3fc5(_0x3353f9,_0x33b2ec);}function _0x4156(){const _0x1c410f=['_createLoaderView','fire','AI_CHAT_IS_WRITING','35019fvGclg','ck-ai-chat-controls-loader','ck-ai-chat-controls-loader-wrapper','ck-ai-chat-controls-loader-icon-dot','execute','4089540QpxaHr','set','div','1136CIyOmb','ck-reset_all','2423232VDJBJD','setTemplate','_loaderView','ck-ai-chat-controls-loader-icon','431292vfYgpC','locale','_createCancelButtonView','5NWrWfY','451938wWRQlD','AI_CHAT_STOP_GENERATING','17160180VKNerC','1678exSCfu','265YdIjev','ck-ai-button-secondary\x20ck-ai-button-stop-generating','abortPromptStream','_cancelButtonView'];_0x4156=function(){return _0x1c410f;};return _0x4156();}(function(_0x4c933b,_0x381b47){const _0x1b27cf=_0x3fc5,_0x56d090=_0x4c933b();while(!![]){try{const _0x1bbad1=parseInt(_0x1b27cf(0x1e6))/0x1*(parseInt(_0x1b27cf(0x1e5))/0x2)+parseInt(_0x1b27cf(0x1e2))/0x3+parseInt(_0x1b27cf(0x1de))/0x4+-parseInt(_0x1b27cf(0x1e1))/0x5*(-parseInt(_0x1b27cf(0x1da))/0x6)+parseInt(_0x1b27cf(0x1f2))/0x7+parseInt(_0x1b27cf(0x1d8))/0x8*(parseInt(_0x1b27cf(0x1ed))/0x9)+-parseInt(_0x1b27cf(0x1e4))/0xa;if(_0x1bbad1===_0x381b47)break;else _0x56d090['push'](_0x56d090['shift']());}catch(_0x178517){_0x56d090['push'](_0x56d090['shift']());}}}(_0x4156,0x4a8f8));import{ButtonView as _0x2eb60d,View as _0x51cad9}from'ckeditor5/src/ui.js';import{IconStop as _0x3fc845}from'ckeditor5/src/icons.js';import{getTranslation as _0x53544a}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x51cad9{[_0x301c77(0x1e9)];[_0x301c77(0x1dc)];constructor(_0x537f13){const _0x4dde8c=_0x301c77;super(_0x537f13),this[_0x4dde8c(0x1e9)]=this[_0x4dde8c(0x1e0)](),this[_0x4dde8c(0x1dc)]=this[_0x4dde8c(0x1ea)](),this[_0x4dde8c(0x1db)]({'tag':_0x4dde8c(0x1f4),'attributes':{'class':['ck',_0x4dde8c(0x1ef),_0x4dde8c(0x1d9)]},'children':[this[_0x4dde8c(0x1dc)],this[_0x4dde8c(0x1e9)]]});}[_0x301c77(0x1e0)](){const _0x3a5e73=_0x301c77,_0x111769=new _0x2eb60d(this[_0x3a5e73(0x1df)]);return _0x111769[_0x3a5e73(0x1f3)]({'label':_0x53544a(this[_0x3a5e73(0x1df)],_0x3a5e73(0x1e3)),'withText':!0x0,'class':_0x3a5e73(0x1e7),'icon':_0x3fc845}),_0x111769['on'](_0x3a5e73(0x1f1),()=>{const _0x4eb23a=_0x3a5e73;this[_0x4eb23a(0x1eb)](_0x4eb23a(0x1e8));}),_0x111769;}[_0x301c77(0x1ea)](){const _0x8e7cb6=_0x301c77,_0x2f4db5=new _0x51cad9(this[_0x8e7cb6(0x1df)]);return _0x2f4db5[_0x8e7cb6(0x1db)]({'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1ee)]},'children':[{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1dd)]},'children':[{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1f0)]}},{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1f0)]}},{'tag':_0x8e7cb6(0x1f4),'attributes':{'class':[_0x8e7cb6(0x1f0)]}}]},{'text':_0x53544a(this[_0x8e7cb6(0x1df)],_0x8e7cb6(0x1ec))}]}),_0x2f4db5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x206f6c=_0x3347;(function(_0x5b3d83,_0x18427c){const _0x4cbae9=_0x3347,_0x8489a8=_0x5b3d83();while(!![]){try{const _0x3a6336=-parseInt(_0x4cbae9(0x1f0))/0x1*(-parseInt(_0x4cbae9(0x1e0))/0x2)+parseInt(_0x4cbae9(0x206))/0x3+-parseInt(_0x4cbae9(0x1e5))/0x4*(-parseInt(_0x4cbae9(0x1eb))/0x5)+parseInt(_0x4cbae9(0x1d1))/0x6*(parseInt(_0x4cbae9(0x217))/0x7)+parseInt(_0x4cbae9(0x1c3))/0x8*(-parseInt(_0x4cbae9(0x1fe))/0x9)+-parseInt(_0x4cbae9(0x1c2))/0xa*(parseInt(_0x4cbae9(0x220))/0xb)+parseInt(_0x4cbae9(0x1e8))/0xc*(parseInt(_0x4cbae9(0x21d))/0xd);if(_0x3a6336===_0x18427c)break;else _0x8489a8['push'](_0x8489a8['shift']());}catch(_0x5386cf){_0x8489a8['push'](_0x8489a8['shift']());}}}(_0x2466,0x38dee));import{Collection as _0x23f1eb}from'ckeditor5/src/utils.js';import{IconAI as _0x103b6e,IconBulb as _0x14c6ea,IconWeb as _0x79d5c0}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x369e46,ButtonLabelView as _0x2f83aa,ButtonView as _0x4aee6b,createDropdown as _0x2bcede,IconView as _0x563876,UIModel as _0xfd2744,View as _0xfe161e}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e060f}from'../../../aicore/utils/common-translations.js';function _0x2466(){const _0x45b92d=['setModelList','capabilities','AI_CHAT_CAPABILITIES_NO','ck-ai-chat-controls__model-name','ck-ai-chat-controls__model-selection__item-description','_commandsButton','enabled','220113JddBYE','locale','log','_createModelSelectionDropdown','disableModelSelector','clear','enableModelSelector','addMany','124338qTCORv','webSearch','listenTo','isEnabled','AI_CHAT_REASONING','name','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','description','_modelSelectionDropdown','style','AI_CHAT_SEARCH_WEB','isVisible','content','model','AI_CHAT_COMMANDS','activeModelName','createCollection','583646rQdyYl','reasoningActive','startsWith','reasoning','_createCommandsButton','ck-ai-chat-controls-button--commands','325TphazB','ck-ai-chat-controls-button','isOn','77NbExJu','div','_createReasoningButton','agent','AI_CHAT_ENABLE_REASONING','menuitemradio','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','ck-ai-chat-controls__model-selection','436510XYFZGB','8hdGSfj','execute','_createWebSearchButton','toLowerCase','setReasoning','set','bindTemplate','_createModelNameView','toggleReasoning','add','buttonView','span','length','ck-button__label','12YRvEEt','text','_modelSelectionDropdownItems','webSearchActive','extendTemplate','button','_modelNameView','modelSelectorEnabled','bind','setTemplate','AI_CHAT_DISABLE_REASONING','_webSearchButton','fire','toggleWebSearch','Commands\x20are\x20not\x20implemented\x20yet.','114254mwewnO','tooltip','ck-ai-chat-controls__model-selection__item-name','_getCapabilityParts','AI_CHAT_DISABLE_WEB_SEARCH','1524WUwVVg','AI_CHAT_ENABLE_WEB_SEARCH','modelSelectorVisible','66600tRvWZx','selectModel','_reasoningButton','2085JJOanl','label','withText','ck-hidden','activeModelId','1QNWpRJ','setWebSearch','source','ck-ai-chat-controls__model-selection__item-capabilities','AI_CHAT_CAPABILITIES_YES','ck-ai-chat__prompt-capabilities','setModel'];_0x2466=function(){return _0x45b92d;};return _0x2466();}const yo=_0x206f6c(0x1f5),Uo=_0x206f6c(0x21e),Go=_0x206f6c(0x21c),jo=_0x206f6c(0x1c1),Yo=_0x206f6c(0x1e2),qo=_0x206f6c(0x1fb),zo=_0x206f6c(0x1f3),Fo='n';function _0x3347(_0x2e6668,_0x11fddc){const _0x246633=_0x2466();return _0x3347=function(_0x33475c,_0xb562bb){_0x33475c=_0x33475c-0x1bb;let _0x2802ca=_0x246633[_0x33475c];return _0x2802ca;},_0x3347(_0x2e6668,_0x11fddc);}export class AIChatPromptCapabilitiesView extends _0xfe161e{[_0x206f6c(0x1dc)];[_0x206f6c(0x1ea)];[_0x206f6c(0x1fc)];[_0x206f6c(0x20e)];[_0x206f6c(0x1d3)];[_0x206f6c(0x1d7)];constructor(_0x554e81){const _0x389d0e=_0x206f6c;super(_0x554e81),this[_0x389d0e(0x1c8)](_0x389d0e(0x1d4),!0x1),this[_0x389d0e(0x1c8)](_0x389d0e(0x218),!0x1),this[_0x389d0e(0x1c8)](_0x389d0e(0x1e7),!0x0),this[_0x389d0e(0x1c8)](_0x389d0e(0x1d8),!0x0),this[_0x389d0e(0x1c8)](_0x389d0e(0x1ef),null),this[_0x389d0e(0x1c8)](_0x389d0e(0x215),null),this[_0x389d0e(0x20e)]=this[_0x389d0e(0x201)](),this[_0x389d0e(0x1d7)]=this[_0x389d0e(0x1ca)](),this[_0x389d0e(0x1dc)]=this[_0x389d0e(0x1c5)](),this[_0x389d0e(0x1ea)]=this[_0x389d0e(0x1bc)](),this[_0x389d0e(0x1fc)]=this[_0x389d0e(0x21b)](),this[_0x389d0e(0x20e)][_0x389d0e(0x1cd)][_0x389d0e(0x1d9)](_0x389d0e(0x211))['to'](this,_0x389d0e(0x1e7),_0x101719=>_0x101719),this[_0x389d0e(0x20e)][_0x389d0e(0x1cd)][_0x389d0e(0x1d9)](_0x389d0e(0x1e1))['to'](this,_0x389d0e(0x1d8),_0x20ea27=>_0x20ea27?this[_0x389d0e(0x20e)][_0x389d0e(0x1cd)][_0x389d0e(0x1ec)]:_0x5e060f(this[_0x389d0e(0x1ff)],_0x389d0e(0x20c))),this[_0x389d0e(0x20e)][_0x389d0e(0x1d9)](_0x389d0e(0x209))['to'](this,_0x389d0e(0x1d8),_0x11e00c=>_0x11e00c),this[_0x389d0e(0x1dc)][_0x389d0e(0x1d9)](_0x389d0e(0x21f))['to'](this,_0x389d0e(0x1d4),_0xa261c=>_0xa261c),this[_0x389d0e(0x1dc)][_0x389d0e(0x1d9)](_0x389d0e(0x1ed))['to'](this,_0x389d0e(0x1e7),_0x4d112f=>!_0x4d112f),this[_0x389d0e(0x1dc)][_0x389d0e(0x1d9)](_0x389d0e(0x1e1))['to'](this,_0x389d0e(0x1d4),_0x537aff=>_0x5e060f(this[_0x389d0e(0x1ff)],_0x537aff?_0x389d0e(0x1e4):_0x389d0e(0x1e6))),this[_0x389d0e(0x1ea)][_0x389d0e(0x1d9)](_0x389d0e(0x21f))['to'](this,_0x389d0e(0x218),_0xd0bd60=>_0xd0bd60),this[_0x389d0e(0x1ea)][_0x389d0e(0x1d9)](_0x389d0e(0x1ed))['to'](this,_0x389d0e(0x1e7),_0x407e17=>!_0x407e17),this[_0x389d0e(0x1ea)][_0x389d0e(0x1d9)](_0x389d0e(0x1e1))['to'](this,_0x389d0e(0x218),_0x49abe4=>_0x5e060f(this[_0x389d0e(0x1ff)],_0x49abe4?_0x389d0e(0x1db):_0x389d0e(0x1be))),this[_0x389d0e(0x1da)]({'tag':_0x389d0e(0x1bb),'attributes':{'class':[yo]},'children':[this[_0x389d0e(0x20e)],this[_0x389d0e(0x1d7)],this[_0x389d0e(0x1dc)],this[_0x389d0e(0x1ea)],this[_0x389d0e(0x1fc)]]}),this[_0x389d0e(0x1d3)]=new _0x23f1eb(),_0x369e46(this[_0x389d0e(0x20e)],this[_0x389d0e(0x1d3)]);}[_0x206f6c(0x1f7)](_0x3576b0,_0x5d64ed){const _0x4ce994=_0x206f6c;if(this[_0x4ce994(0x1c8)](_0x4ce994(0x1e7),!(_0x5d64ed&&_0x3576b0[_0x4ce994(0x1cf)]<=0x1)),this[_0x4ce994(0x1d3)][_0x4ce994(0x203)](),_0x3576b0?.[_0x4ce994(0x1cf)])for(const _0x120b82 of _0x3576b0){const _0x2abf8f=new _0xfd2744({'label':_0x120b82[_0x4ce994(0x20b)],'withText':!0x0,'role':_0x4ce994(0x1bf),'id':_0x120b82['id'],'model':_0x120b82});_0x2abf8f[_0x4ce994(0x1d9)](_0x4ce994(0x21f))['to'](this,_0x4ce994(0x1ef),_0x5ed78b=>_0x5ed78b===_0x120b82['id']),this[_0x4ce994(0x1d3)][_0x4ce994(0x1cc)]({'type':_0x4ce994(0x1d6),'model':_0x2abf8f,'labelView':new Us(this[_0x4ce994(0x1ff)],_0x120b82)});}}[_0x206f6c(0x1f1)](_0x4c34c5){const _0x561d5f=_0x206f6c;this[_0x561d5f(0x1c8)](_0x561d5f(0x1d4),_0x4c34c5);}[_0x206f6c(0x1c7)](_0x54ec7a){const _0x122b0b=_0x206f6c;this[_0x122b0b(0x1c8)](_0x122b0b(0x218),_0x54ec7a);}[_0x206f6c(0x1f6)](_0x540ae2){const _0x49b12f=_0x206f6c;if(!_0x540ae2)return;this[_0x49b12f(0x1ef)]=_0x540ae2['id'],this[_0x49b12f(0x215)]=_0x540ae2[_0x49b12f(0x20b)]||_0x540ae2['id'],this[_0x49b12f(0x20e)][_0x49b12f(0x1cd)][_0x49b12f(0x1c8)](_0x49b12f(0x1ec),_0x540ae2[_0x49b12f(0x20b)]),this[_0x49b12f(0x20e)][_0x49b12f(0x1cd)][_0x49b12f(0x1c8)](_0x49b12f(0x1e1),_0x540ae2[_0x49b12f(0x20b)]);const _0x8c2321=_0x540ae2[_0x49b12f(0x1f8)][_0x49b12f(0x207)]?.[_0x49b12f(0x1fd)]??!0x1;this[_0x49b12f(0x1c8)](_0x49b12f(0x1d4),!0x1),this[_0x49b12f(0x1dc)][_0x49b12f(0x1c8)](_0x49b12f(0x21f),!0x1),this[_0x49b12f(0x1dc)][_0x49b12f(0x1c8)](_0x49b12f(0x209),_0x8c2321),this[_0x49b12f(0x1dc)][_0x49b12f(0x1c8)](_0x49b12f(0x211),_0x8c2321);const _0x34ed02=_0x540ae2[_0x49b12f(0x1f8)][_0x49b12f(0x21a)]?.[_0x49b12f(0x1fd)]??!0x1;this[_0x49b12f(0x1c8)](_0x49b12f(0x218),!0x1),this[_0x49b12f(0x1ea)][_0x49b12f(0x1c8)](_0x49b12f(0x21f),!0x1),this[_0x49b12f(0x1ea)][_0x49b12f(0x1c8)](_0x49b12f(0x209),_0x34ed02),this[_0x49b12f(0x1ea)][_0x49b12f(0x1c8)](_0x49b12f(0x211),_0x34ed02);}[_0x206f6c(0x204)](){const _0x380990=_0x206f6c;this[_0x380990(0x1c8)](_0x380990(0x1d8),!0x0),this[_0x380990(0x1c8)](_0x380990(0x1e7),!0x0);}[_0x206f6c(0x202)](_0x3c6fc7){const _0x51a72e=_0x206f6c;this[_0x51a72e(0x1c8)](_0x51a72e(0x1d8),!0x1),_0x3c6fc7&&this[_0x51a72e(0x1c8)](_0x51a72e(0x1e7),!0x1);}[_0x206f6c(0x1c5)](){const _0x1e687a=_0x206f6c,_0xa2f9d9=new _0x4aee6b();return _0xa2f9d9[_0x1e687a(0x1c8)]({'label':_0x5e060f(this[_0x1e687a(0x1ff)],_0x1e687a(0x210)),'icon':_0x79d5c0,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0xa2f9d9['on'](_0x1e687a(0x1c4),()=>{const _0x5e6a2d=_0x1e687a;this[_0x5e6a2d(0x1dd)](_0x5e6a2d(0x1de));}),_0xa2f9d9;}[_0x206f6c(0x1bc)](){const _0x55d491=_0x206f6c,_0x507f90=new _0x4aee6b();return _0x507f90[_0x55d491(0x1c8)]({'label':_0x5e060f(this[_0x55d491(0x1ff)],_0x55d491(0x20a)),'icon':_0x14c6ea,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x507f90['on'](_0x55d491(0x1c4),()=>{const _0x1d00fb=_0x55d491;this[_0x1d00fb(0x1dd)](_0x1d00fb(0x1cb));}),_0x507f90;}[_0x206f6c(0x21b)](){const _0x20c918=_0x206f6c,_0x557a35=new _0x4aee6b();return _0x557a35[_0x20c918(0x1c8)]({'label':_0x5e060f(this[_0x20c918(0x1ff)],_0x20c918(0x214)),'icon':_0x103b6e,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x5e060f(this[_0x20c918(0x1ff)],_0x20c918(0x214)),'tooltipPosition':Fo}),_0x557a35[_0x20c918(0x1d5)]({'attributes':{'class':[Go]}}),_0x557a35['on'](_0x20c918(0x1c4),()=>{const _0x5cbe8d=_0x20c918;console[_0x5cbe8d(0x200)](_0x5cbe8d(0x1df)),alert(_0x5cbe8d(0x1df));}),_0x557a35;}[_0x206f6c(0x201)](){const _0x194eb6=_0x206f6c,_0x7f88fc=_0x2bcede(this[_0x194eb6(0x1ff)]);return _0x7f88fc[_0x194eb6(0x1c8)]({'panelPosition':'ne','class':[jo]}),_0x7f88fc[_0x194eb6(0x1cd)][_0x194eb6(0x1c8)]({'label':_0x5e060f(this[_0x194eb6(0x1ff)],_0x194eb6(0x1c0)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x194eb6(0x208)](_0x7f88fc,_0x194eb6(0x1c4),_0x232cc7=>{const _0x1187d3=_0x194eb6;this[_0x1187d3(0x1dd)](_0x1187d3(0x1e9),_0x232cc7[_0x1187d3(0x1f2)][_0x1187d3(0x213)]);}),_0x7f88fc;}[_0x206f6c(0x1ca)](){const _0x29bfc5=_0x206f6c,_0x58160f=new Jo(this[_0x29bfc5(0x1ff)]);return _0x58160f[_0x29bfc5(0x1d9)](_0x29bfc5(0x1d2))['to'](this,_0x29bfc5(0x215),_0x485493=>_0x485493??''),_0x58160f[_0x29bfc5(0x1d9)](_0x29bfc5(0x211))['to'](this,_0x29bfc5(0x1e7),this,_0x29bfc5(0x215),(_0x3f0bcc,_0xbcf433)=>!_0x3f0bcc&&!_0xbcf433?.[_0x29bfc5(0x1c6)]()[_0x29bfc5(0x219)](_0x29bfc5(0x1bd))),_0x58160f;}}class Us extends _0x2f83aa{constructor(_0x2eebfb,_0x2b3fa3){const _0x4d8915=_0x206f6c;super();const _0x202709=this[_0x4d8915(0x1c9)],_0x4b7810=this[_0x4d8915(0x216)]();this[_0x4d8915(0x1da)]({'tag':_0x4d8915(0x1bb),'attributes':{'class':['ck',_0x4d8915(0x1d0)],'style':_0x202709['to'](_0x4d8915(0x20f)),'id':_0x202709['to']('id')},'children':[{'tag':_0x4d8915(0x1bb),'attributes':{'class':[Yo]},'children':[{'text':_0x202709['to'](_0x4d8915(0x1d2))}]},{'tag':_0x4d8915(0x1bb),'attributes':{'class':[qo]},'children':[{'tag':_0x4d8915(0x1ce),'children':[{'text':_0x2b3fa3[_0x4d8915(0x20d)]}]}]},{'tag':_0x4d8915(0x1bb),'attributes':{'class':[zo]},'children':_0x4b7810}]}),_0x4b7810[_0x4d8915(0x205)](this[_0x4d8915(0x1e3)](_0x2eebfb,_0x79d5c0,_0x4d8915(0x210),_0x2b3fa3[_0x4d8915(0x1f8)][_0x4d8915(0x207)]?.[_0x4d8915(0x1fd)]??!0x1)),_0x4b7810[_0x4d8915(0x205)](this[_0x4d8915(0x1e3)](_0x2eebfb,_0x14c6ea,_0x4d8915(0x20a),_0x2b3fa3[_0x4d8915(0x1f8)][_0x4d8915(0x21a)]?.[_0x4d8915(0x1fd)]??!0x1));}[_0x206f6c(0x1e3)](_0x2645a2,_0x19c463,_0x572ba6,_0x3e008f){const _0x37417d=_0x206f6c,_0xb42ce8=new _0x563876();_0xb42ce8[_0x37417d(0x212)]=_0x19c463;const _0x320463=new _0xfe161e(_0x2645a2);_0x320463[_0x37417d(0x1da)]({'tag':_0x37417d(0x1ce),'children':[{'text':_0x5e060f(_0x2645a2,_0x572ba6)+':\x20'}]});const _0x4ced8d=new _0xfe161e(_0x2645a2);return _0x4ced8d[_0x37417d(0x1da)]({'tag':_0x37417d(0x1ce),'children':[{'text':_0x5e060f(_0x2645a2,_0x3e008f?_0x37417d(0x1f4):_0x37417d(0x1f9))}]}),[_0xb42ce8,_0x320463,_0x4ced8d];}}class Jo extends _0xfe161e{constructor(_0x53c167){const _0x34dae2=_0x206f6c;super(_0x53c167),this[_0x34dae2(0x1c8)](_0x34dae2(0x1d2),void 0x0),this[_0x34dae2(0x1c8)](_0x34dae2(0x211),!0x0);const _0x75ee0a=this[_0x34dae2(0x1c9)];this[_0x34dae2(0x1da)]({'tag':_0x34dae2(0x1ce),'attributes':{'class':['ck',_0x34dae2(0x1fa),_0x75ee0a['if'](_0x34dae2(0x211),_0x34dae2(0x1ee),_0x47e019=>!_0x47e019)]},'children':[{'text':_0x75ee0a['to'](_0x34dae2(0x1d2))}]});}}
|
|
23
|
+
const _0x53184d=_0x51b0;(function(_0x4576de,_0x3dc9ed){const _0x5bc16d=_0x51b0,_0x578709=_0x4576de();while(!![]){try{const _0x6291d8=-parseInt(_0x5bc16d(0xfd))/0x1*(-parseInt(_0x5bc16d(0x11d))/0x2)+parseInt(_0x5bc16d(0x157))/0x3+parseInt(_0x5bc16d(0x154))/0x4+-parseInt(_0x5bc16d(0x132))/0x5*(parseInt(_0x5bc16d(0x13c))/0x6)+-parseInt(_0x5bc16d(0x116))/0x7+-parseInt(_0x5bc16d(0x126))/0x8*(-parseInt(_0x5bc16d(0x11a))/0x9)+parseInt(_0x5bc16d(0x15f))/0xa*(-parseInt(_0x5bc16d(0x15e))/0xb);if(_0x6291d8===_0x3dc9ed)break;else _0x578709['push'](_0x578709['shift']());}catch(_0x47103a){_0x578709['push'](_0x578709['shift']());}}}(_0x18d4,0xadc6f));function _0x51b0(_0x487252,_0x3cd8d8){const _0x18d4c4=_0x18d4();return _0x51b0=function(_0x51b0cf,_0xbc6b9a){_0x51b0cf=_0x51b0cf-0xfd;let _0x11ff07=_0x18d4c4[_0x51b0cf];return _0x11ff07;},_0x51b0(_0x487252,_0x3cd8d8);}import{Collection as _0x55bae2}from'ckeditor5/src/utils.js';import{IconAI as _0x4b8959,IconBulb as _0x35b36c,IconWeb as _0x1ced6a}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x36508b,ButtonLabelView as _0x275c46,ButtonView as _0x1f5bf6,createDropdown as _0x518fc9,IconView as _0x235d38,UIModel as _0x32f870,View as _0x34d75e}from'ckeditor5/src/ui.js';import{getTranslation as _0x5e0d75}from'../../../aicore/utils/common-translations.js';const yo=_0x53184d(0x11b),Uo=_0x53184d(0x131),Go=_0x53184d(0x133),jo=_0x53184d(0x159),Yo=_0x53184d(0x149),qo=_0x53184d(0x15d),zo=_0x53184d(0x102),Fo='n';export class AIChatPromptCapabilitiesView extends _0x34d75e{[_0x53184d(0x106)];[_0x53184d(0x10d)];[_0x53184d(0x14e)];[_0x53184d(0x134)];[_0x53184d(0x142)];[_0x53184d(0x146)];constructor(_0x401d97){const _0x48867e=_0x53184d;super(_0x401d97),this[_0x48867e(0x122)](_0x48867e(0x108),!0x1),this[_0x48867e(0x122)](_0x48867e(0x145),!0x1),this[_0x48867e(0x122)](_0x48867e(0x119),!0x0),this[_0x48867e(0x122)](_0x48867e(0x117),!0x0),this[_0x48867e(0x122)](_0x48867e(0x144),null),this[_0x48867e(0x122)](_0x48867e(0x10a),null),this[_0x48867e(0x134)]=this[_0x48867e(0x105)](),this[_0x48867e(0x146)]=this[_0x48867e(0x127)](),this[_0x48867e(0x106)]=this[_0x48867e(0x110)](),this[_0x48867e(0x10d)]=this[_0x48867e(0x137)](),this[_0x48867e(0x14e)]=this[_0x48867e(0x11f)](),this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x10f)](_0x48867e(0x13e))['to'](this,_0x48867e(0x119),_0x1576dd=>_0x1576dd),this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x117),_0x4b2b8b=>_0x4b2b8b?this[_0x48867e(0x134)][_0x48867e(0x13f)][_0x48867e(0x14f)]:_0x5e0d75(this[_0x48867e(0x120)],_0x48867e(0x139))),this[_0x48867e(0x134)][_0x48867e(0x10f)](_0x48867e(0x12f))['to'](this,_0x48867e(0x117),_0x11e02e=>_0x11e02e),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x124))['to'](this,_0x48867e(0x108),_0x7486a4=>_0x7486a4),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x101))['to'](this,_0x48867e(0x119),_0x3259b5=>!_0x3259b5),this[_0x48867e(0x106)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x108),_0x284769=>_0x5e0d75(this[_0x48867e(0x120)],_0x284769?_0x48867e(0x155):_0x48867e(0x12e))),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x124))['to'](this,_0x48867e(0x145),_0x2f188c=>_0x2f188c),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x101))['to'](this,_0x48867e(0x119),_0x18ed98=>!_0x18ed98),this[_0x48867e(0x10d)][_0x48867e(0x10f)](_0x48867e(0x138))['to'](this,_0x48867e(0x145),_0x3f9125=>_0x5e0d75(this[_0x48867e(0x120)],_0x3f9125?_0x48867e(0x12d):_0x48867e(0x13a))),this[_0x48867e(0x141)]({'tag':_0x48867e(0x12a),'attributes':{'class':[yo]},'children':[this[_0x48867e(0x134)],this[_0x48867e(0x146)],this[_0x48867e(0x106)],this[_0x48867e(0x10d)],this[_0x48867e(0x14e)]]}),this[_0x48867e(0x142)]=new _0x55bae2(),_0x36508b(this[_0x48867e(0x134)],this[_0x48867e(0x142)]);}[_0x53184d(0x114)](_0x539083,_0x3af1b4){const _0x3000b0=_0x53184d;if(this[_0x3000b0(0x122)](_0x3000b0(0x119),!(_0x3af1b4&&_0x539083[_0x3000b0(0x107)]<=0x1)),this[_0x3000b0(0x142)][_0x3000b0(0x15c)](),_0x539083?.[_0x3000b0(0x107)])for(const _0x5ef192 of _0x539083){const _0x201ee9=new _0x32f870({'label':_0x5ef192[_0x3000b0(0x112)],'withText':!0x0,'role':_0x3000b0(0x130),'id':_0x5ef192['id'],'model':_0x5ef192});_0x201ee9[_0x3000b0(0x10f)](_0x3000b0(0x124))['to'](this,_0x3000b0(0x144),_0x49bb2d=>_0x49bb2d===_0x5ef192['id']),this[_0x3000b0(0x142)][_0x3000b0(0x152)]({'type':_0x3000b0(0x14d),'model':_0x201ee9,'labelView':new Us(this[_0x3000b0(0x120)],_0x5ef192)});}}[_0x53184d(0x135)](_0x395d7f){const _0x3f50b3=_0x53184d;this[_0x3f50b3(0x122)](_0x3f50b3(0x108),_0x395d7f);}[_0x53184d(0x13d)](_0x279921){const _0x1c24e0=_0x53184d;this[_0x1c24e0(0x122)](_0x1c24e0(0x145),_0x279921);}[_0x53184d(0x118)](_0x4cf860){const _0x47bf8b=_0x53184d;if(!_0x4cf860)return;this[_0x47bf8b(0x144)]=_0x4cf860['id'],this[_0x47bf8b(0x10a)]=_0x4cf860[_0x47bf8b(0x112)]||_0x4cf860['id'],this[_0x47bf8b(0x134)][_0x47bf8b(0x13f)][_0x47bf8b(0x122)](_0x47bf8b(0x14f),_0x4cf860[_0x47bf8b(0x112)]),this[_0x47bf8b(0x134)][_0x47bf8b(0x13f)][_0x47bf8b(0x122)](_0x47bf8b(0x138),_0x4cf860[_0x47bf8b(0x112)]);const _0x48ebf3=_0x4cf860[_0x47bf8b(0x136)][_0x47bf8b(0x147)]?.[_0x47bf8b(0x151)]??!0x1;this[_0x47bf8b(0x122)](_0x47bf8b(0x108),!0x1),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x124),!0x1),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x12f),_0x48ebf3),this[_0x47bf8b(0x106)][_0x47bf8b(0x122)](_0x47bf8b(0x13e),_0x48ebf3);const _0x35c5e8=_0x4cf860[_0x47bf8b(0x136)][_0x47bf8b(0x143)]?.[_0x47bf8b(0x151)]??!0x1;this[_0x47bf8b(0x122)](_0x47bf8b(0x145),!0x1),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x124),!0x1),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x12f),_0x35c5e8),this[_0x47bf8b(0x10d)][_0x47bf8b(0x122)](_0x47bf8b(0x13e),_0x35c5e8);}[_0x53184d(0x148)](){const _0x4cd84b=_0x53184d;this[_0x4cd84b(0x122)](_0x4cd84b(0x117),!0x0),this[_0x4cd84b(0x122)](_0x4cd84b(0x119),!0x0);}[_0x53184d(0x150)](_0x107ea4){const _0xb0b3dc=_0x53184d;this[_0xb0b3dc(0x122)](_0xb0b3dc(0x117),!0x1),_0x107ea4&&this[_0xb0b3dc(0x122)](_0xb0b3dc(0x119),!0x1);}[_0x53184d(0x110)](){const _0x15461d=_0x53184d,_0x465603=new _0x1f5bf6();return _0x465603[_0x15461d(0x122)]({'label':_0x5e0d75(this[_0x15461d(0x120)],_0x15461d(0x14a)),'icon':_0x1ced6a,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x465603['on'](_0x15461d(0x103),()=>{const _0x59352a=_0x15461d;this[_0x59352a(0x128)](_0x59352a(0x129));}),_0x465603;}[_0x53184d(0x137)](){const _0x40540d=_0x53184d,_0x169ebb=new _0x1f5bf6();return _0x169ebb[_0x40540d(0x122)]({'label':_0x5e0d75(this[_0x40540d(0x120)],_0x40540d(0x121)),'icon':_0x35b36c,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x169ebb['on'](_0x40540d(0x103),()=>{const _0x3df381=_0x40540d;this[_0x3df381(0x128)](_0x3df381(0x123));}),_0x169ebb;}[_0x53184d(0x11f)](){const _0x222bda=_0x53184d,_0x4bf74e=new _0x1f5bf6();return _0x4bf74e[_0x222bda(0x122)]({'label':_0x5e0d75(this[_0x222bda(0x120)],_0x222bda(0x10b)),'icon':_0x4b8959,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x5e0d75(this[_0x222bda(0x120)],_0x222bda(0x10b)),'tooltipPosition':Fo}),_0x4bf74e[_0x222bda(0xfe)]({'attributes':{'class':[Go]}}),_0x4bf74e['on'](_0x222bda(0x103),()=>{const _0x4c3c71=_0x222bda;console[_0x4c3c71(0x113)](_0x4c3c71(0x12c)),alert(_0x4c3c71(0x12c));}),_0x4bf74e;}[_0x53184d(0x105)](){const _0x268f07=_0x53184d,_0x115ddf=_0x518fc9(this[_0x268f07(0x120)]);return _0x115ddf[_0x268f07(0x122)]({'panelPosition':'ne','class':[jo]}),_0x115ddf[_0x268f07(0x13f)][_0x268f07(0x122)]({'label':_0x5e0d75(this[_0x268f07(0x120)],_0x268f07(0x104)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x268f07(0x12b)](_0x115ddf,_0x268f07(0x103),_0x301590=>{const _0x583de2=_0x268f07;this[_0x583de2(0x128)](_0x583de2(0x125),_0x301590[_0x583de2(0x14b)][_0x583de2(0x160)]);}),_0x115ddf;}[_0x53184d(0x127)](){const _0x26e5d5=_0x53184d,_0x3ed2fa=new Jo(this[_0x26e5d5(0x120)]);return _0x3ed2fa[_0x26e5d5(0x10f)](_0x26e5d5(0x153))['to'](this,_0x26e5d5(0x10a),_0x564a63=>_0x564a63??''),_0x3ed2fa[_0x26e5d5(0x10f)](_0x26e5d5(0x13e))['to'](this,_0x26e5d5(0x119),this,_0x26e5d5(0x10a),(_0x5d1d97,_0xed983c)=>!_0x5d1d97&&!_0xed983c?.[_0x26e5d5(0x11c)]()[_0x26e5d5(0x111)](_0x26e5d5(0x10c))),_0x3ed2fa;}}class Us extends _0x275c46{constructor(_0x5a68ea,_0xabd9c5){const _0x295e83=_0x53184d;super();const _0x4b0917=this[_0x295e83(0x14c)],_0x409509=this[_0x295e83(0x13b)]();this[_0x295e83(0x141)]({'tag':_0x295e83(0x12a),'attributes':{'class':['ck',_0x295e83(0x15a)],'style':_0x4b0917['to'](_0x295e83(0x15b)),'id':_0x4b0917['to']('id')},'children':[{'tag':_0x295e83(0x12a),'attributes':{'class':[Yo]},'children':[{'text':_0x4b0917['to'](_0x295e83(0x153))}]},{'tag':_0x295e83(0x12a),'attributes':{'class':[qo]},'children':[{'tag':_0x295e83(0x109),'children':[{'text':_0xabd9c5[_0x295e83(0x140)]}]}]},{'tag':_0x295e83(0x12a),'attributes':{'class':[zo]},'children':_0x409509}]}),_0x409509[_0x295e83(0x11e)](this[_0x295e83(0xff)](_0x5a68ea,_0x1ced6a,_0x295e83(0x14a),_0xabd9c5[_0x295e83(0x136)][_0x295e83(0x147)]?.[_0x295e83(0x151)]??!0x1)),_0x409509[_0x295e83(0x11e)](this[_0x295e83(0xff)](_0x5a68ea,_0x35b36c,_0x295e83(0x121),_0xabd9c5[_0x295e83(0x136)][_0x295e83(0x143)]?.[_0x295e83(0x151)]??!0x1));}[_0x53184d(0xff)](_0x70974a,_0x373b2e,_0xe8c32c,_0x2e08a4){const _0x7a66e4=_0x53184d,_0xb22966=new _0x235d38();_0xb22966[_0x7a66e4(0x158)]=_0x373b2e;const _0x3e3027=new _0x34d75e(_0x70974a);_0x3e3027[_0x7a66e4(0x141)]({'tag':_0x7a66e4(0x109),'children':[{'text':_0x5e0d75(_0x70974a,_0xe8c32c)+':\x20'}]});const _0x26eea7=new _0x34d75e(_0x70974a);return _0x26eea7[_0x7a66e4(0x141)]({'tag':_0x7a66e4(0x109),'children':[{'text':_0x5e0d75(_0x70974a,_0x2e08a4?_0x7a66e4(0x115):_0x7a66e4(0x100))}]}),[_0xb22966,_0x3e3027,_0x26eea7];}}class Jo extends _0x34d75e{constructor(_0x4e0ad5){const _0x267688=_0x53184d;super(_0x4e0ad5),this[_0x267688(0x122)](_0x267688(0x153),void 0x0),this[_0x267688(0x122)](_0x267688(0x13e),!0x0);const _0x5439a7=this[_0x267688(0x14c)];this[_0x267688(0x141)]({'tag':_0x267688(0x109),'attributes':{'class':['ck',_0x267688(0x156),_0x5439a7['if'](_0x267688(0x13e),_0x267688(0x10e),_0x559007=>!_0x559007)]},'children':[{'text':_0x5439a7['to'](_0x267688(0x153))}]});}}function _0x18d4(){const _0x4c5ad7=['_createModelSelectionDropdown','_webSearchButton','length','webSearchActive','span','activeModelName','AI_CHAT_COMMANDS','agent','_reasoningButton','ck-hidden','bind','_createWebSearchButton','startsWith','name','log','setModelList','AI_CHAT_CAPABILITIES_YES','5124602bgyIDv','modelSelectorEnabled','setModel','modelSelectorVisible','1016748bnaSzk','ck-ai-chat__prompt-capabilities','toLowerCase','1516fMGYzX','addMany','_createCommandsButton','locale','AI_CHAT_REASONING','set','toggleReasoning','isOn','selectModel','32UESIXg','_createModelNameView','fire','toggleWebSearch','div','listenTo','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_DISABLE_REASONING','AI_CHAT_ENABLE_WEB_SEARCH','isEnabled','menuitemradio','ck-ai-chat-controls-button','4190oitxZX','ck-ai-chat-controls-button--commands','_modelSelectionDropdown','setWebSearch','capabilities','_createReasoningButton','tooltip','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_ENABLE_REASONING','createCollection','3162gSwcle','setReasoning','isVisible','buttonView','description','setTemplate','_modelSelectionDropdownItems','reasoning','activeModelId','reasoningActive','_modelNameView','webSearch','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','AI_CHAT_SEARCH_WEB','source','bindTemplate','button','_commandsButton','label','disableModelSelector','enabled','add','text','1901760xCbEhO','AI_CHAT_DISABLE_WEB_SEARCH','ck-ai-chat-controls__model-name','750669eOjGLb','content','ck-ai-chat-controls__model-selection','ck-button__label','style','clear','ck-ai-chat-controls__model-selection__item-description','7700qZacUX','8230HvRyMK','model','1694vDzDtO','extendTemplate','_getCapabilityParts','AI_CHAT_CAPABILITIES_NO','withText','ck-ai-chat-controls__model-selection__item-capabilities','execute','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP'];_0x18d4=function(){return _0x4c5ad7;};return _0x18d4();}
|