@ckeditor/ckeditor5-ai 47.4.0-alpha.0 → 47.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x24dcc7=_0x3c31;(function(_0x5b98e0,_0x426a78){const _0xa35d6d=_0x3c31,_0x547fc7=_0x5b98e0();while(!![]){try{const _0x3d4e3d=-parseInt(_0xa35d6d(0x150))/0x1+parseInt(_0xa35d6d(0x18a))/0x2*(-parseInt(_0xa35d6d(0x161))/0x3)+parseInt(_0xa35d6d(0x187))/0x4+parseInt(_0xa35d6d(0x183))/0x5+parseInt(_0xa35d6d(0x197))/0x6+parseInt(_0xa35d6d(0x18c))/0x7*(parseInt(_0xa35d6d(0x154))/0x8)+parseInt(_0xa35d6d(0x160))/0x9*(-parseInt(_0xa35d6d(0x163))/0xa);if(_0x3d4e3d===_0x426a78)break;else _0x547fc7['push'](_0x547fc7['shift']());}catch(_0x2e1322){_0x547fc7['push'](_0x547fc7['shift']());}}}(_0x5bba,0x3cd85));import{ButtonView as _0x432c43,clickOutsideHandler as _0x4be86f,View as _0x424013}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x56743d}from'./controls/aichatpromptinputview.js';function _0x3c31(_0x4cb432,_0x8bd40d){const _0x5bba5d=_0x5bba();return _0x3c31=function(_0x3c3104,_0x22fcd4){_0x3c3104=_0x3c3104-0x14c;let _0x4171d7=_0x5bba5d[_0x3c3104];return _0x4171d7;},_0x3c31(_0x4cb432,_0x8bd40d);}function _0x5bba(){const _0x5c7ea9=['setInputPlaceholder','div','resetMessageInput','_createLoaderView','_handlePromptInputFocus','selectModel','ck-ai-chat-controls','_contextPanelView','setPlaceholderText','_loaderView','2131170PLTnCM','setTemplate','contextResourcesSearchInputVisibleFrom','updateResourceState','1878168pqnaUI','_createModelUnavailableMessageView','agent','417098SOHkYC','clearCurrentContextItems','1022muSULI','toggleReasoning','change:isLoading','execute','_shouldRestorePromptInputFocus','toggleWebSearch','setReasoning','bindTemplate','disableModelSelector','setIsUploadInProgress','setConversationContext','2049030AhuoSl','isModelAvailable','clearConversationContextUI','_promptInputView','_createPromptCapabilitiesView','find','ck-hidden','_modelUnavailableMessageView','startConversation','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','44306MuoFnL','clearConversationContextItems','set','enableModelSelector','20464USrnrb','ck-ai-chat-controls-disabled','_displayedModels','addContextItem','_createContextPanelView','delegate','closeSourceResourceBalloon','addContextButtonView','reset','ck-ai-chat-controls-model-unavailable-message','abortPromptStream','setAddContextOptions','4050558VEcivc','6YgLOrR','populateSourceResourceBalloon','20JNjWNk','setModelList','_promptCapabilitiesView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','removeContextItem','isDisabled','locale','clearPendingContextUI','bodyCollection','setContextItemLoading','setModel','sendUserMessage','element','setWebSearch','form','focusPromptInput','low','startsWith','ck-ai-chat-controls__start-new-chat-button','isLoading','_createPromptInputView','focus'];_0x5bba=function(){return _0x5c7ea9;};return _0x5bba();}import{AIChatPromptCapabilitiesView as _0xec138c}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x2b1564,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0xdad7b5}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x5f28fd}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x2e33a8}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x424013{[_0x24dcc7(0x156)]=[];[_0x24dcc7(0x180)];[_0x24dcc7(0x19a)];[_0x24dcc7(0x165)];[_0x24dcc7(0x182)];[_0x24dcc7(0x14d)];[_0x24dcc7(0x190)];constructor(_0x1d25a2,_0x14b43d){const _0x592988=_0x24dcc7;super(_0x1d25a2),this[_0x592988(0x180)]=this[_0x592988(0x158)](_0x1d25a2,{'bodyCollection':_0x14b43d[_0x592988(0x16b)],'searchInputVisibleFrom':_0x14b43d[_0x592988(0x185)]}),this[_0x592988(0x19a)]=this[_0x592988(0x177)](_0x1d25a2),this[_0x592988(0x165)]=this[_0x592988(0x19b)](_0x1d25a2),this[_0x592988(0x182)]=this[_0x592988(0x17c)](_0x1d25a2),this[_0x592988(0x14d)]=this[_0x592988(0x188)](_0x1d25a2),this[_0x592988(0x190)]=!0x1,this[_0x592988(0x19a)][_0x592988(0x159)](_0x592988(0x16e))['to'](this),this[_0x592988(0x182)][_0x592988(0x159)](_0x592988(0x15e))['to'](this),this[_0x592988(0x165)][_0x592988(0x159)](_0x592988(0x191))['to'](this),this[_0x592988(0x165)][_0x592988(0x159)](_0x592988(0x18d))['to'](this),this[_0x592988(0x165)][_0x592988(0x159)](_0x592988(0x17e))['to'](this),this[_0x592988(0x180)][_0x592988(0x159)](..._0xdad7b5)['to'](this),this[_0x592988(0x152)](_0x592988(0x198),!0x0),this[_0x592988(0x152)](_0x592988(0x168),!0x1);const _0x5b5ccd=this[_0x592988(0x193)];this[_0x592988(0x184)]({'tag':_0x592988(0x171),'attributes':{'class':['ck',_0x592988(0x17f),_0x5b5ccd['if'](_0x592988(0x168),_0x592988(0x155))]},'children':[{'tag':_0x592988(0x17a),'attributes':{'class':[_0x5b5ccd['if'](_0x592988(0x176),_0x592988(0x14c),_0x388c5a=>_0x388c5a||!this[_0x592988(0x198)]),_0x5b5ccd['if'](_0x592988(0x198),_0x592988(0x14c),_0xcf3cc3=>!_0xcf3cc3||this[_0x592988(0x176)])]},'children':[this[_0x592988(0x180)],this[_0x592988(0x19a)],this[_0x592988(0x165)]]},{'tag':_0x592988(0x17a),'attributes':{'class':[_0x5b5ccd['if'](_0x592988(0x176),_0x592988(0x14c),_0x45931d=>!_0x45931d)]},'children':[this[_0x592988(0x182)]]},{'tag':_0x592988(0x17a),'attributes':{'class':[_0x5b5ccd['if'](_0x592988(0x198),_0x592988(0x14c),_0x478eec=>_0x478eec)]},'children':[this[_0x592988(0x14d)]]}]}),_0x4be86f({'emitter':this[_0x592988(0x19a)],'activator':()=>this[_0x592988(0x176)],'contextElements':()=>[this[_0x592988(0x16f)]],'callback':()=>{const _0x21ca9d=_0x592988;this[_0x21ca9d(0x190)]=!0x1;}}),this['on'](_0x592988(0x18e),this[_0x592988(0x17d)],{'priority':_0x592988(0x173)});}[_0x24dcc7(0x158)](_0x52599f,_0x36cf27){return new _0x2b1564(_0x52599f,_0x36cf27);}[_0x24dcc7(0x177)](_0xd444e5){const _0x3c3028=_0x24dcc7;return new _0x56743d(_0xd444e5,this[_0x3c3028(0x180)][_0x3c3028(0x15b)]);}[_0x24dcc7(0x19b)](_0x4c4c8a){return new _0xec138c(_0x4c4c8a);}[_0x24dcc7(0x17c)](_0x1b25b7){return new _0x5f28fd(_0x1b25b7);}[_0x24dcc7(0x188)](_0x14c754){const _0x5ccfb8=_0x24dcc7,_0x42d0ad=new vs(_0x14c754);return _0x42d0ad[_0x5ccfb8(0x159)](_0x5ccfb8(0x14e))['to'](this),_0x42d0ad;}[_0x24dcc7(0x17d)](_0x2f916c,_0x2619e2,_0x238b95){const _0x2dff74=_0x24dcc7;_0x238b95?this[_0x2dff74(0x190)]=!0x0:this[_0x2dff74(0x190)]&&this[_0x2dff74(0x19a)][_0x2dff74(0x178)]();}[_0x24dcc7(0x157)](_0x387891,_0x304ce7){const _0x128f5a=_0x24dcc7;this[_0x128f5a(0x180)][_0x128f5a(0x157)](_0x387891,_0x304ce7);}[_0x24dcc7(0x167)](_0x21d1fd){const _0x5b1716=_0x24dcc7;this[_0x5b1716(0x180)][_0x5b1716(0x167)](_0x21d1fd);}[_0x24dcc7(0x16c)](_0x3c49e9,_0x50ed06){const _0x2c81db=_0x24dcc7;this[_0x2c81db(0x180)][_0x2c81db(0x16c)](_0x3c49e9,_0x50ed06);}[_0x24dcc7(0x195)](_0x5f45c9){const _0x4d0b64=_0x24dcc7;this[_0x4d0b64(0x19a)][_0x4d0b64(0x195)](_0x5f45c9);}[_0x24dcc7(0x196)](_0x20cca6){const _0x1a8f6d=_0x24dcc7;this[_0x1a8f6d(0x180)][_0x1a8f6d(0x196)](_0x20cca6);}[_0x24dcc7(0x16a)](){const _0x5d6ac3=_0x24dcc7;this[_0x5d6ac3(0x180)][_0x5d6ac3(0x18b)]();}[_0x24dcc7(0x199)](){const _0x50c6bd=_0x24dcc7;this[_0x50c6bd(0x180)][_0x50c6bd(0x151)]();}[_0x24dcc7(0x186)](_0x98f043,_0xe99697,_0x46ba6d){const _0x179bae=_0x24dcc7;this[_0x179bae(0x180)][_0x179bae(0x186)](_0x98f043,_0xe99697,_0x46ba6d);}[_0x24dcc7(0x170)](_0x5985da){const _0xfe0bd2=_0x24dcc7;this[_0xfe0bd2(0x165)][_0xfe0bd2(0x170)](_0x5985da);}[_0x24dcc7(0x192)](_0x432991){const _0x4379ac=_0x24dcc7;this[_0x4379ac(0x165)][_0x4379ac(0x192)](_0x432991);}[_0x24dcc7(0x17b)](){const _0x30c496=_0x24dcc7;this[_0x30c496(0x19a)][_0x30c496(0x15c)]();}[_0x24dcc7(0x15f)](_0x5b78d8){const _0x19a104=_0x24dcc7;this[_0x19a104(0x180)][_0x19a104(0x15f)](_0x5b78d8);}[_0x24dcc7(0x179)](_0x42bc8d){const _0x3074f6=_0x24dcc7;this[_0x3074f6(0x19a)][_0x3074f6(0x181)](_0x42bc8d);}[_0x24dcc7(0x164)](_0x537eff,_0x55eb94){const _0x204d90=_0x24dcc7;this[_0x204d90(0x156)]=_0x537eff,this[_0x204d90(0x165)][_0x204d90(0x164)](_0x537eff,_0x55eb94);}[_0x24dcc7(0x16d)](_0x1c654b){const _0x56a9b5=_0x24dcc7;(_0x1c654b?this[_0x56a9b5(0x156)][_0x56a9b5(0x19c)](_0x1bed3b=>_0x1bed3b['id']===_0x1c654b['id']):null)?(this[_0x56a9b5(0x198)]=!0x0,this[_0x56a9b5(0x165)][_0x56a9b5(0x16d)](_0x1c654b)):_0x1c654b?.['id'][_0x56a9b5(0x174)](_0x56a9b5(0x189))?(this[_0x56a9b5(0x198)]=!0x0,this[_0x56a9b5(0x165)][_0x56a9b5(0x16d)](this[_0x56a9b5(0x156)][0x0])):this[_0x56a9b5(0x198)]=!0x1;}[_0x24dcc7(0x153)](){const _0x14f776=_0x24dcc7;this[_0x14f776(0x165)][_0x14f776(0x153)]();}[_0x24dcc7(0x194)](_0x561f65){const _0x3d3013=_0x24dcc7;this[_0x3d3013(0x165)][_0x3d3013(0x194)](_0x561f65);}[_0x24dcc7(0x162)](_0x1feb23,_0x40175d,_0x1112cd,_0x19b0c3){const _0x4d2677=_0x24dcc7;this[_0x4d2677(0x180)][_0x4d2677(0x162)](_0x1feb23,_0x40175d,_0x1112cd,_0x19b0c3);}[_0x24dcc7(0x15a)](_0xaedc78){const _0x1bf167=_0x24dcc7;this[_0x1bf167(0x180)][_0x1bf167(0x15a)](_0xaedc78);}[_0x24dcc7(0x172)](){const _0x46448e=_0x24dcc7;this[_0x46448e(0x19a)][_0x46448e(0x178)]();}}class vs extends _0x424013{constructor(_0x530ad4){const _0x5384ef=_0x24dcc7;super(_0x530ad4);const _0x536a0e=new _0x432c43(_0x530ad4);_0x536a0e[_0x5384ef(0x152)]({'label':_0x2e33a8(this[_0x5384ef(0x169)],_0x5384ef(0x166)),'withText':!0x0,'class':[_0x5384ef(0x175)],'tooltip':''}),_0x536a0e[_0x5384ef(0x159)](_0x5384ef(0x18f))['to'](this,_0x5384ef(0x14e)),this[_0x5384ef(0x184)]({'tag':_0x5384ef(0x17a),'attributes':{'class':['ck',_0x5384ef(0x15d)]},'children':[{'tag':'p','children':[{'text':_0x2e33a8(this[_0x5384ef(0x169)],_0x5384ef(0x14f))+'\x20'},_0x536a0e]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x217dc8=_0x3d67;(function(_0x3533b9,_0x2a0955){const _0x5f3552=_0x3d67,_0x6a79ba=_0x3533b9();while(!![]){try{const _0x40fe3a=-parseInt(_0x5f3552(0x21c))/0x1+parseInt(_0x5f3552(0x22a))/0x2+parseInt(_0x5f3552(0x22b))/0x3*(-parseInt(_0x5f3552(0x23e))/0x4)+-parseInt(_0x5f3552(0x220))/0x5+-parseInt(_0x5f3552(0x21f))/0x6+parseInt(_0x5f3552(0x1f6))/0x7+parseInt(_0x5f3552(0x1fb))/0x8*(parseInt(_0x5f3552(0x226))/0x9);if(_0x40fe3a===_0x2a0955)break;else _0x6a79ba['push'](_0x6a79ba['shift']());}catch(_0xf19da0){_0x6a79ba['push'](_0x6a79ba['shift']());}}}(_0x3058,0x5b893));import{CKEditorError as _0x34de43,logWarning as _0x1ac867,scrollViewportToShowTarget as _0x507231}from'ckeditor5/src/utils.js';import{View as _0x4d1bb1}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2bee2c}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x3de866}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x118ccb}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x52ec5d}from'./feed/aichatfeedusermessageitem.js';function _0x3d67(_0x5e8f86,_0x5de6fa){const _0x305839=_0x3058();return _0x3d67=function(_0x3d672a,_0xceaa0e){_0x3d672a=_0x3d672a-0x1f3;let _0x211142=_0x305839[_0x3d672a];return _0x211142;},_0x3d67(_0x5e8f86,_0x5de6fa);}import{AIChatFeedErrorItemView as _0x4cf4cf}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0xf5e98a}from'./feed/aichatfeedinteractionheaderview.js';function _0x3058(){const _0x313991=['ck-ai-chat__loader','987438leJpdy','414438WSNExP','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','_bodyCollection','div','ck-ai-chat__feed__items','children','updateWebSources','updateReplyItem','start','getItemById','_createLoaderChildren','ck-ai-chat__feed','user-message','interaction-header','ck-hidden','isTrackChangesOn','isLoadingSkeletonVisible','isPending','options','20BQLfSO','removeItem','clear','bindTemplate','map','getPartView','add','ai-reply','598598viHIxj','addItem','find','toggleLoadingSkeleton','ai-chat-feed-view-item-not-found','136984XcwrCF','setLoadingMessage','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','startAutoScroll','updateSuggestionItem','updatePartState','getItemIds','destroy','scrollToSuggestion','set','markItemAsDone','ai-chat-feed-view-item-not-a-suggestion-item','_createTemplateChildren','delegate','scrollManager','_createFeedLoader','ck-ai-chat__loader-text','updateSources','setTemplate','element','includes','ai-chat-feed-view-item-not-a-reply-item','updateSuggestionPartState','stop','createCollection','render','updateContent','loadingMessage','_createFeedItems','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','extendTemplate','aiFeed','ai-suggestion-reply','287568bjcrnC','markAsDone','stopAutoScroll','3048252sqEsDN','2579385TQbqbi','bind','span','remove','_createSkeletonLoader','locale','945nDRdWA','_setupTemplate','isVisible'];_0x3058=function(){return _0x313991;};return _0x3058();}import{ScrollManager as _0x1524c4}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x430db2,SKELETON_DEFINITIONS as _0xc76292}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x389943}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4d1bb1{[_0x217dc8(0x230)];[_0x217dc8(0x209)];[_0x217dc8(0x22d)];constructor(_0x29b6dc,_0x4cb166){const _0x2bd1ab=_0x217dc8;super(_0x29b6dc),this[_0x2bd1ab(0x22d)]=_0x4cb166,this[_0x2bd1ab(0x204)](_0x2bd1ab(0x23c),!0x1),this[_0x2bd1ab(0x204)](_0x2bd1ab(0x216),''),this[_0x2bd1ab(0x204)](_0x2bd1ab(0x23b),!0x1),this[_0x2bd1ab(0x204)](_0x2bd1ab(0x23a),!0x1),this[_0x2bd1ab(0x230)]=this[_0x2bd1ab(0x213)](),this[_0x2bd1ab(0x230)][_0x2bd1ab(0x208)](..._0x2bee2c)['to'](this),this[_0x2bd1ab(0x227)]();}[_0x217dc8(0x214)](){const _0x3d03ec=_0x217dc8;super[_0x3d03ec(0x214)](),this[_0x3d03ec(0x209)]=new _0x1524c4(this[_0x3d03ec(0x20e)]);}[_0x217dc8(0x202)](){const _0x3fb068=_0x217dc8;super[_0x3fb068(0x202)](),this[_0x3fb068(0x209)][_0x3fb068(0x202)]();}[_0x217dc8(0x240)](){const _0x89cd10=_0x217dc8;this[_0x89cd10(0x230)][_0x89cd10(0x240)]();}[_0x217dc8(0x1f7)](_0x147b77,_0x46a516){const _0x1a2f7c=_0x217dc8;let _0x408ec4;_0x1a2f7c(0x1f5)===_0x147b77?_0x408ec4=new _0x118ccb(this[_0x1a2f7c(0x225)],_0x46a516,this[_0x1a2f7c(0x22d)]):_0x1a2f7c(0x21b)===_0x147b77?(_0x408ec4=new _0x3de866(this[_0x1a2f7c(0x225)],_0x46a516,this[_0x1a2f7c(0x22d)]),_0x408ec4[_0x1a2f7c(0x221)](_0x1a2f7c(0x23a))['to'](this,_0x1a2f7c(0x23a))):_0x408ec4=_0x1a2f7c(0x237)===_0x147b77?new _0x52ec5d(this[_0x1a2f7c(0x225)],_0x46a516,this[_0x1a2f7c(0x22d)]):_0x1a2f7c(0x238)===_0x147b77?new _0xf5e98a(this[_0x1a2f7c(0x225)],_0x46a516):new _0x4cf4cf(_0x46a516),this[_0x1a2f7c(0x230)][_0x1a2f7c(0x1f4)](_0x408ec4);}async[_0x217dc8(0x232)]({id:_0x3eea7e,parsedContent:_0x2214ab,renderingStrategy:_0x53b46e,abortSignal:_0x366297}){const _0x1fb521=_0x217dc8,_0x3ce7b5=this[_0x1fb521(0x234)](_0x3eea7e);if(!(_0x3ce7b5 instanceof _0x118ccb))throw new _0x34de43(_0x1fb521(0x210),null,{'itemView':_0x3ce7b5,'id':_0x3eea7e,'parsedContent':_0x2214ab});await _0x3ce7b5[_0x1fb521(0x215)]({'parsedContent':_0x2214ab,'renderingStrategy':_0x53b46e,'abortSignal':_0x366297});}async[_0x217dc8(0x231)](_0x4a27ce,_0x18a697){const _0x1d0d4f=_0x217dc8,_0xbc49a0=this[_0x1d0d4f(0x234)](_0x4a27ce);if(_0xbc49a0 instanceof _0x3de866)_0xbc49a0[_0x1d0d4f(0x20c)](_0x18a697);else{if(!(_0xbc49a0 instanceof _0x118ccb))throw new _0x34de43(_0x1d0d4f(0x1fd),null,{'itemView':_0xbc49a0,'id':_0x4a27ce,'sources':_0x18a697});_0xbc49a0[_0x1d0d4f(0x20c)](_0x18a697);}}async[_0x217dc8(0x1ff)]({id:_0x40516f,parts:_0x5a51bf,renderingStrategy:_0x16ae3b,abortSignal:_0x295f32}){const _0x329fd1=_0x217dc8,_0x559689=this[_0x329fd1(0x234)](_0x40516f);if(!(_0x559689 instanceof _0x3de866))throw new _0x34de43(_0x329fd1(0x206),null,{'itemView':_0x559689,'id':_0x40516f,'parts':_0x5a51bf});await _0x559689[_0x329fd1(0x215)]({'parts':_0x5a51bf,'renderingStrategy':_0x16ae3b,'abortSignal':_0x295f32});}[_0x217dc8(0x211)]({id:_0x596372,index:_0x426c12,state:_0x2ddf4d}){const _0x492431=_0x217dc8,_0xbe6735=this[_0x492431(0x234)](_0x596372);if(!(_0xbe6735 instanceof _0x3de866))throw new _0x34de43(_0x492431(0x206),this,{'id':_0x596372});_0xbe6735[_0x492431(0x200)](_0x426c12,_0x2ddf4d);}[_0x217dc8(0x205)](_0x4ba742){const _0x5bb910=_0x217dc8;this[_0x5bb910(0x234)](_0x4ba742)[_0x5bb910(0x21d)]();}[_0x217dc8(0x201)](){const _0x1ec4c8=_0x217dc8;return this[_0x1ec4c8(0x230)][_0x1ec4c8(0x242)](_0x37bde8=>_0x37bde8[_0x1ec4c8(0x23d)]['id']);}[_0x217dc8(0x23f)](_0x31c5ff){const _0x33b5cc=_0x217dc8;this[_0x33b5cc(0x230)][_0x33b5cc(0x223)](this[_0x33b5cc(0x234)](_0x31c5ff));}[_0x217dc8(0x203)](_0x46fc1e,_0x199061){const _0x340833=_0x217dc8,_0x5242a3=this[_0x340833(0x234)](_0x46fc1e);if(!(_0x5242a3 instanceof _0x3de866))return void _0x1ac867(_0x340833(0x22c),{'replyId':_0x46fc1e,'partIndex':_0x199061});const _0x2d5315=_0x5242a3[_0x340833(0x1f3)](_0x199061);_0x2d5315?_0x507231({'target':_0x2d5315[_0x340833(0x20e)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x1ac867(_0x340833(0x218),{'replyId':_0x46fc1e,'partIndex':_0x199061});}[_0x217dc8(0x227)](){const _0x278750=_0x217dc8;this[_0x278750(0x20d)]({'tag':_0x278750(0x22e),'attributes':{'class':['ck',_0x278750(0x236)]},'children':this[_0x278750(0x207)]()});}[_0x217dc8(0x207)](){const _0x231989=_0x217dc8,_0x4dd651=this[_0x231989(0x224)]();return[this[_0x231989(0x217)](),_0x4dd651,this[_0x231989(0x20a)]()];}[_0x217dc8(0x224)](){const _0x120a28=_0x217dc8,_0x2b471a=new _0x430db2(this[_0x120a28(0x225)],_0xc76292[_0x120a28(0x21a)]);return _0x2b471a[_0x120a28(0x219)]({'attributes':{'class':[this[_0x120a28(0x241)]['if'](_0x120a28(0x23b),_0x120a28(0x239),_0x150c67=>!_0x150c67)]}}),_0x2b471a;}[_0x217dc8(0x217)](){const _0x4236cd=_0x217dc8,_0x2dd40e=new _0x4d1bb1(this[_0x4236cd(0x225)]);return _0x2dd40e[_0x4236cd(0x20d)]({'tag':_0x4236cd(0x22e),'attributes':{'class':['ck',_0x4236cd(0x22f),this[_0x4236cd(0x241)]['if'](_0x4236cd(0x23b),_0x4236cd(0x239))]},'children':this[_0x4236cd(0x230)]}),_0x2dd40e;}[_0x217dc8(0x20a)](){const _0xb360b=_0x217dc8,_0x525c67=new _0x4d1bb1(this[_0xb360b(0x225)]);return _0x525c67[_0xb360b(0x20d)]({'tag':_0xb360b(0x22e),'attributes':{'class':['ck',_0xb360b(0x229),this[_0xb360b(0x241)]['if'](_0xb360b(0x23c),_0xb360b(0x239),_0x80838a=>!_0x80838a)]},'children':this[_0xb360b(0x235)]()}),_0x525c67;}[_0x217dc8(0x235)](){const _0xf63004=_0x217dc8,_0x273139=new _0x389943();return _0x273139[_0xf63004(0x228)]=!0x0,[_0x273139,{'tag':_0xf63004(0x222),'attributes':{'class':['ck',_0xf63004(0x20b)]},'children':[{'text':this[_0xf63004(0x241)]['to'](_0xf63004(0x216))}]}];}[_0x217dc8(0x234)](_0x3a4362){const _0x5a8f64=_0x217dc8,_0x230381=this[_0x5a8f64(0x230)][_0x5a8f64(0x1f8)](_0xb3ca4c=>_0xb3ca4c[_0x5a8f64(0x23d)]['id'][_0x5a8f64(0x20f)](_0x3a4362));if(!_0x230381)throw new _0x34de43(_0x5a8f64(0x1fa),this,{'id':_0x3a4362});return _0x230381;}[_0x217dc8(0x1fc)](_0x22d1b0){const _0x13aa47=_0x217dc8;this[_0x13aa47(0x204)](_0x13aa47(0x216),_0x22d1b0);}[_0x217dc8(0x1f9)](_0x1b8ad8){const _0x34ade8=_0x217dc8;this[_0x34ade8(0x204)](_0x34ade8(0x23b),_0x1b8ad8);}[_0x217dc8(0x1fe)](){const _0x510f17=_0x217dc8;this[_0x510f17(0x209)][_0x510f17(0x233)]();}[_0x217dc8(0x21e)](){const _0x29086e=_0x217dc8;this[_0x29086e(0x209)][_0x29086e(0x212)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x504ced=_0x3148;(function(_0x9a0ea5,_0x3de9f1){const _0xcfc738=_0x3148,_0x4dbf55=_0x9a0ea5();while(!![]){try{const _0x93296=-parseInt(_0xcfc738(0x98))/0x1*(-parseInt(_0xcfc738(0xb0))/0x2)+parseInt(_0xcfc738(0xa2))/0x3*(parseInt(_0xcfc738(0xa4))/0x4)+parseInt(_0xcfc738(0xad))/0x5*(parseInt(_0xcfc738(0xa5))/0x6)+parseInt(_0xcfc738(0xa7))/0x7*(-parseInt(_0xcfc738(0x9b))/0x8)+parseInt(_0xcfc738(0xaa))/0x9*(parseInt(_0xcfc738(0x9d))/0xa)+-parseInt(_0xcfc738(0x9e))/0xb+-parseInt(_0xcfc738(0xab))/0xc;if(_0x93296===_0x3de9f1)break;else _0x4dbf55['push'](_0x4dbf55['shift']());}catch(_0x217141){_0x4dbf55['push'](_0x4dbf55['shift']());}}}(_0x203f,0x3f297));import{ButtonView as _0x135172,FormHeaderView as _0x28060c}from'ckeditor5/src/ui.js';function _0x3148(_0x9de2c0,_0x4eb758){const _0x203f62=_0x203f();return _0x3148=function(_0x3148ea,_0x3e7fc0){_0x3148ea=_0x3148ea-0x97;let _0x37c985=_0x203f62[_0x3148ea];return _0x37c985;},_0x3148(_0x9de2c0,_0x4eb758);}function _0x203f(){const _0x40b655=['add','resizeButton','25605qQCasi','5922924AoDroP','conversationStartButton','255MauHSp','startConversation','set','4YSNXkq','AI_CHAT_HEADING','isMaximized','84356JbdDfY','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat__start-conversation','8pDBfVZ','locale','1180BbQrIc','2580303BzIxjS','_createStartConversationButton','execute','children','50595KQXhFM','fire','100TSjWkN','54666CqDWbl','ck-ai-header\x20ck-ai-header_chat','2826929loHDdO'];_0x203f=function(){return _0x40b655;};return _0x203f();}import{IconPlus as _0x1ae98e,IconAIChat as _0x1cb5ab}from'ckeditor5/src/icons.js';import{getTranslation as _0x429ef0}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x427b9c}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x28060c{[_0x504ced(0xac)];[_0x504ced(0xa9)];constructor(_0x4f0227,_0x35f3ae){const _0xe9d90a=_0x504ced;super(_0x4f0227,{'label':_0x429ef0(_0x4f0227,_0xe9d90a(0xb1)),'class':_0xe9d90a(0xa6),'icon':_0x1cb5ab}),this[_0xe9d90a(0xaf)](_0xe9d90a(0x97),!0x1),this[_0xe9d90a(0xac)]=this[_0xe9d90a(0x9f)](_0x4f0227),this[_0xe9d90a(0xa1)][_0xe9d90a(0xa8)](this[_0xe9d90a(0xac)]),_0x35f3ae&&(this[_0xe9d90a(0xa9)]=_0x427b9c(_0x4f0227,this),this[_0xe9d90a(0xa1)][_0xe9d90a(0xa8)](this[_0xe9d90a(0xa9)]));}[_0x504ced(0x9f)](_0x17c77c){const _0x474d84=_0x504ced,_0x5c67f9=new _0x135172(_0x17c77c);return _0x5c67f9[_0x474d84(0xaf)]({'label':_0x429ef0(this[_0x474d84(0x9c)],_0x474d84(0x99)),'withText':!0x0,'icon':_0x1ae98e,'class':_0x474d84(0x9a)}),_0x5c67f9['on'](_0x474d84(0xa0),()=>{const _0x4cad7c=_0x474d84;this[_0x4cad7c(0xa3)](_0x4cad7c(0xae));}),_0x5c67f9;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x13248d=_0xe87c;(function(_0x33b6fa,_0x36ccd6){var _0x151506=_0xe87c,_0x2e4121=_0x33b6fa();while(!![]){try{var _0x1d5d9f=parseInt(_0x151506(0xa8))/0x1*(parseInt(_0x151506(0xbe))/0x2)+parseInt(_0x151506(0xb4))/0x3*(parseInt(_0x151506(0xac))/0x4)+-parseInt(_0x151506(0xa4))/0x5+-parseInt(_0x151506(0xb9))/0x6*(parseInt(_0x151506(0xaf))/0x7)+-parseInt(_0x151506(0xa6))/0x8*(parseInt(_0x151506(0xa9))/0x9)+-parseInt(_0x151506(0xa7))/0xa*(-parseInt(_0x151506(0xb5))/0xb)+parseInt(_0x151506(0xb1))/0xc;if(_0x1d5d9f===_0x36ccd6)break;else _0x2e4121['push'](_0x2e4121['shift']());}catch(_0x4ef573){_0x2e4121['push'](_0x2e4121['shift']());}}}(_0x3989,0x6b915));import{View as _0x4bae2e,BodyCollection as _0x98d15f}from'ckeditor5/src/ui.js';function _0xe87c(_0x4b1f56,_0x30f4b9){var _0x3989e7=_0x3989();return _0xe87c=function(_0xe87cec,_0x148c85){_0xe87cec=_0xe87cec-0xa3;var _0xc37ec7=_0x3989e7[_0xe87cec];return _0xc37ec7;},_0xe87c(_0x4b1f56,_0x30f4b9);}import{AI_CHAT_UI_EVENT_NAMES as _0x172281}from'../utils/eventnames.js';import{AIChatFeedView as _0x33d0f9}from'./aichatfeedview.js';import{AIChatControlsView as _0x58bcde}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x3c76a3}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4c31c7}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x4bae2e{[_0x13248d(0xaa)];[_0x13248d(0xb7)];[_0x13248d(0xb3)];[_0x13248d(0xae)];[_0x13248d(0xa5)];constructor(_0x3ffa6b,_0x530583){var _0x3ecd74=_0x13248d;super(_0x3ffa6b),this[_0x3ecd74(0xa5)]=new _0x98d15f(_0x3ffa6b),this[_0x3ecd74(0xa5)][_0x3ecd74(0xba)](),this[_0x3ecd74(0xaa)]=new _0x3c76a3(_0x3ffa6b,_0x530583[_0x3ecd74(0xb2)]),this[_0x3ecd74(0xaa)][_0x3ecd74(0xbd)](..._0x172281)['to'](this),this[_0x3ecd74(0xb7)]=new _0x33d0f9(_0x3ffa6b,this[_0x3ecd74(0xa5)]),this[_0x3ecd74(0xb7)][_0x3ecd74(0xbd)](..._0x172281)['to'](this),this[_0x3ecd74(0xb3)]=new _0x58bcde(_0x3ffa6b,{'bodyCollection':this[_0x3ecd74(0xa5)],'contextResourcesSearchInputVisibleFrom':_0x530583[_0x3ecd74(0xbc)]}),this[_0x3ecd74(0xb3)][_0x3ecd74(0xbd)](..._0x172281)['to'](this),this[_0x3ecd74(0xae)]=new _0x4c31c7(_0x3ffa6b),this[_0x3ecd74(0xa3)]({'tag':_0x3ecd74(0xb8),'attributes':{'class':['ck',_0x3ecd74(0xc1),_0x3ecd74(0xc0),_0x3ecd74(0xbf)],'dir':_0x3ffa6b[_0x3ecd74(0xb0)]},'children':[this[_0x3ecd74(0xaa)],this[_0x3ecd74(0xb7)],this[_0x3ecd74(0xb3)],this[_0x3ecd74(0xae)]]});}[_0x13248d(0xb6)](_0x2788b0,_0x329df0,_0x30cff,_0x3d0038){var _0x50929d=_0x13248d;this[_0x50929d(0xb3)][_0x50929d(0xb6)](_0x2788b0,_0x329df0,_0x30cff,_0x3d0038);}[_0x13248d(0xab)](_0x3f01e8){var _0x42ef27=_0x13248d;this[_0x42ef27(0xb3)][_0x42ef27(0xab)](_0x3f01e8);}[_0x13248d(0xbb)](){var _0x5d7e98=_0x13248d;this[_0x5d7e98(0xa5)][_0x5d7e98(0xad)](),super[_0x5d7e98(0xbb)]();}}function _0x3989(){var _0x1e1abf=['uiLanguageDirection','10220820emsCPT','showResizeButton','chatControls','6927nqyHNy','14487UdHuoW','populateSourceResourceBalloon','chatFeed','div','2040648xUDBaS','attachToDom','destroy','contextResourcesSearchInputVisibleFrom','delegate','40682BJGhWo','ck-rounded-corners','ck-ai-chat','ck-reset_all','setTemplate','701760OYRlqn','_bodyCollection','359464nAhTyF','790GGauZR','21PjAWtH','171HZXkwY','chatHeader','closeSourceResourceBalloon','1268isGwCy','detachFromDom','chatDisclaimer','14bPEbOg'];_0x3989=function(){return _0x1e1abf;};return _0x3989();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x367135=_0x10b3;(function(_0x32647c,_0x3d8276){const _0x84be46=_0x10b3,_0x13183f=_0x32647c();while(!![]){try{const _0x401b4f=-parseInt(_0x84be46(0x1df))/0x1+-parseInt(_0x84be46(0x1d7))/0x2*(parseInt(_0x84be46(0x1c9))/0x3)+parseInt(_0x84be46(0x1b7))/0x4*(parseInt(_0x84be46(0x1d1))/0x5)+-parseInt(_0x84be46(0x1f7))/0x6*(parseInt(_0x84be46(0x1ed))/0x7)+-parseInt(_0x84be46(0x197))/0x8+parseInt(_0x84be46(0x194))/0x9+parseInt(_0x84be46(0x1a9))/0xa;if(_0x401b4f===_0x3d8276)break;else _0x13183f['push'](_0x13183f['shift']());}catch(_0x3f271c){_0x13183f['push'](_0x13183f['shift']());}}}(_0x3e88,0x1a2ea));function _0x3e88(){const _0xa782a5=['filter','overflowContainer','isIntersecting','show','_containerElement','border-box','extendTemplate','_createShowMoreButton','50px','createElement','clientHeight','+\x201','699039tNWPqR','zIndex','label','1605152yZeWUI','_bodyCollection','pin','_testButtonFit','visible\x20!important','_showMoreButtonView','disconnect','_updateBalloonContent','block','_isContainerVisible','slice','none','showMoreBalloon','toLowerCase','_calculateContainerWidth','hideBalloonPanel','display','setTemplate','3356720gDZDva','_repinBalloonPanel','classList','_findTargetContainer','forEach','setContainerElement','cloneNode','maxVisibleRows','controlsButton','className','calculationContainer','top','_createShowMoreBalloonPanelView','right','20YXzRQC','width','_distributeChips','remove','isVisible','pointerEvents','getBoundingClientRect','_makeAncestorsVisible','_visibleChips','_ancestorsToRestore','set','reorganizeChips','add','appendChild','querySelector','div','destroy','render','136311HLfIoL','block\x20!important','_restoreAncestorVisibility','_renderChipsAndCountRows','_createShowMoreButtonView','_updateShowMoreButtonVisibility','hide','clear','197755mWRsyQ','showMoreButton','_intersectionObserver','_overflowChips','undefined','visibility','4BZahJH','_createMockButton','push','height','showMoreLabelPrefix','_targetContainer','style','clientWidth','52079yzaLGN','0px','position','getComputedStyle','includes','execute','showBalloonPanel','_showMoreBalloonPanelView','overflowChips','boxSizing','tagName','pop','visible','.ck-ai-chat','65989BcSrGm','from','hidden','300px','isConnected','body','_createContainerElements','_pendingCalculation','textContent','parentElement','102KwnCbG','button','bottom','_calculateOverflowInContainer','cssClasses','_locale','opacity','_updateOverflowUI','disableAnimationOnEnter','innerHTML','observe','_createCalculationContainer','children','innerHeight','absolute','_applyCalculationStyles','left','_parentView','isOn','content','_checkAndHandleOverflow','some','documentElement','_setupVisibilityObserver','offsetWidth','_handleShowMoreButtonClick','auto','-9999px','abs','element','length','_applyOverflowResults','_config','showMoreButtonView','ck-calculation-container','rowDetectionTolerance','innerWidth'];_0x3e88=function(){return _0xa782a5;};return _0x3e88();}import{View as _0x204bf3,BalloonPanelView as _0x3df055,ButtonView as _0x3b97c4,clickOutsideHandler as _0x122da8}from'ckeditor5/src/ui.js';function _0x10b3(_0x264b1d,_0x141ce2){const _0x3e883b=_0x3e88();return _0x10b3=function(_0x10b364,_0x2d16fe){_0x10b364=_0x10b364-0x193;let _0x45e4b7=_0x3e883b[_0x10b364];return _0x45e4b7;},_0x10b3(_0x264b1d,_0x141ce2);}import{Collection as _0x1f8b6a}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x367135(0x1f0);export class AIChatChipsOverflowManager{[_0x367135(0x1fc)];[_0x367135(0x217)];[_0x367135(0x1bf)];[_0x367135(0x1d4)];[_0x367135(0x19c)]=null;[_0x367135(0x1e6)]=null;[_0x367135(0x220)]=null;[_0x367135(0x198)];[_0x367135(0x208)]=null;[_0x367135(0x1d3)]=null;[_0x367135(0x1f4)]=!0x1;constructor(_0x29ff58,_0x2cf836,_0x32d59c,_0x407157,_0x97fea9){const _0x5c310f=_0x367135;this[_0x5c310f(0x1fc)]=_0x29ff58,this[_0x5c310f(0x1bf)]=_0x2cf836,this[_0x5c310f(0x217)]={...hn,..._0x32d59c,'cssClasses':{'controlsButton':'','calculationContainer':_0x5c310f(0x219),..._0x32d59c[_0x5c310f(0x1fb)]}},this[_0x5c310f(0x1d4)]=new _0x1f8b6a(),this[_0x5c310f(0x198)]=_0x407157,this[_0x5c310f(0x208)]=_0x97fea9||null;}[_0x367135(0x1ae)](_0x4aa879){const _0x1b945b=_0x367135;this[_0x1b945b(0x1d3)]&&(this[_0x1b945b(0x1d3)][_0x1b945b(0x19d)](),this[_0x1b945b(0x1d3)]=null),this[_0x1b945b(0x220)]=_0x4aa879,this[_0x1b945b(0x20e)]();}get[_0x367135(0x218)](){const _0x3c561f=_0x367135;return this[_0x3c561f(0x19c)];}get[_0x367135(0x1e7)](){const _0x48d56b=_0x367135;return this[_0x48d56b(0x1d4)];}[_0x367135(0x1c2)](){requestAnimationFrame(()=>{const _0x59938c=_0x10b3;this[_0x59938c(0x20b)]();});}[_0x367135(0x1e5)](){const _0x270a2d=_0x367135;this[_0x270a2d(0x19c)]&&this[_0x270a2d(0x1e6)]&&(this[_0x270a2d(0x19e)](),this[_0x270a2d(0x19c)][_0x270a2d(0x209)]=!0x0,this[_0x270a2d(0x1e6)][_0x270a2d(0x21f)](),this[_0x270a2d(0x1e6)][_0x270a2d(0x199)]({'target':this[_0x270a2d(0x19c)][_0x270a2d(0x214)],'limiter':document[_0x270a2d(0x1c5)](_0x270a2d(0x1ec))}));}[_0x367135(0x1a6)](){const _0x59373c=_0x367135;this[_0x59373c(0x19c)]&&this[_0x59373c(0x1e6)]&&(this[_0x59373c(0x19c)][_0x59373c(0x209)]=!0x1,this[_0x59373c(0x1e6)][_0x59373c(0x1cf)]());}[_0x367135(0x1d0)](){const _0x50530e=_0x367135;this[_0x50530e(0x1d4)][_0x50530e(0x1d0)](),this[_0x50530e(0x1a6)](),this[_0x50530e(0x1ce)](),this[_0x50530e(0x19c)]&&(this[_0x50530e(0x19c)][_0x50530e(0x196)]=''),this[_0x50530e(0x1e6)]&&this[_0x50530e(0x1e6)][_0x50530e(0x20a)][_0x50530e(0x1d0)]();}[_0x367135(0x1c7)](){const _0x28f46c=_0x367135;this[_0x28f46c(0x1d3)]&&(this[_0x28f46c(0x1d3)][_0x28f46c(0x19d)](),this[_0x28f46c(0x1d3)]=null),this[_0x28f46c(0x19c)]&&(this[_0x28f46c(0x19c)][_0x28f46c(0x1c7)](),this[_0x28f46c(0x19c)]=null),this[_0x28f46c(0x1e6)]&&(this[_0x28f46c(0x1e6)][_0x28f46c(0x1c7)](),this[_0x28f46c(0x1e6)]=null);}[_0x367135(0x20b)](){const _0x2e44a1=_0x367135;if(!this[_0x2e44a1(0x220)])return;if(!this[_0x2e44a1(0x1a0)]())return void(this[_0x2e44a1(0x1f4)]=!0x0);this[_0x2e44a1(0x1f4)]=!0x1;const _0x467e2c=[...this[_0x2e44a1(0x1bf)],...this[_0x2e44a1(0x1d4)]],_0x29715a=this[_0x2e44a1(0x202)](),_0x58e5a5=this[_0x2e44a1(0x1fa)](_0x29715a,_0x467e2c),_0x3247d6=_0x29715a[_0x2e44a1(0x1c0)];_0x3247d6&&this[_0x2e44a1(0x1cb)](_0x3247d6),_0x29715a[_0x2e44a1(0x1ba)](),this[_0x2e44a1(0x216)](_0x467e2c,_0x58e5a5);}[_0x367135(0x223)](){const _0x213cdd=_0x367135;this[_0x213cdd(0x19c)]=this[_0x213cdd(0x1cd)](),this[_0x213cdd(0x1e6)]=this[_0x213cdd(0x1b5)](),this[_0x213cdd(0x19c)][_0x213cdd(0x1c8)](),this[_0x213cdd(0x220)][_0x213cdd(0x1c4)](this[_0x213cdd(0x19c)][_0x213cdd(0x214)]),this[_0x213cdd(0x19c)]['on'](_0x213cdd(0x1e4),()=>{const _0x4ebe98=_0x213cdd;this[_0x4ebe98(0x210)]();}),_0x122da8({'emitter':this[_0x213cdd(0x1e6)],'contextElements':[this[_0x213cdd(0x1e6)][_0x213cdd(0x214)],this[_0x213cdd(0x19c)][_0x213cdd(0x214)]],'callback':()=>this[_0x213cdd(0x1a6)](),'activator':()=>this[_0x213cdd(0x19c)][_0x213cdd(0x209)]});}[_0x367135(0x1cd)](){const _0x5f5c08=_0x367135,_0x19153d=new _0x3b97c4(this[_0x5f5c08(0x1fc)]);_0x19153d[_0x5f5c08(0x1c1)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5b79a5=[this[_0x5f5c08(0x217)][_0x5f5c08(0x1fb)][_0x5f5c08(0x1d2)]];return this[_0x5f5c08(0x217)][_0x5f5c08(0x1fb)][_0x5f5c08(0x1b1)]&&_0x5b79a5[_0x5f5c08(0x1d9)](this[_0x5f5c08(0x217)][_0x5f5c08(0x1fb)][_0x5f5c08(0x1b1)]),_0x19153d[_0x5f5c08(0x222)]({'attributes':{'class':_0x5b79a5}}),_0x19153d;}[_0x367135(0x1b5)](){const _0x10f751=_0x367135,_0xdb7d63=new _0x3df055(this[_0x10f751(0x1fc)]);return _0xdb7d63[_0x10f751(0x222)]({'attributes':{'class':this[_0x10f751(0x217)][_0x10f751(0x1fb)][_0x10f751(0x1a3)]}}),this[_0x10f751(0x198)][_0x10f751(0x1c3)](_0xdb7d63),_0xdb7d63;}[_0x367135(0x19e)](){const _0x14944b=_0x367135;if(this[_0x14944b(0x1e6)]&&(this[_0x14944b(0x1e6)][_0x14944b(0x20a)][_0x14944b(0x1d0)](),this[_0x14944b(0x1d4)][_0x14944b(0x215)]>0x0)){this[_0x14944b(0x1d4)][_0x14944b(0x1ad)](_0x350246=>{const _0x124c52=_0x14944b;_0x350246[_0x124c52(0x1ff)]();});const _0xdc162d=new _0x204bf3(this[_0x14944b(0x1fc)]);_0xdc162d[_0x14944b(0x1a8)]({'tag':_0x14944b(0x1c6),'attributes':{'class':this[_0x14944b(0x217)][_0x14944b(0x1fb)][_0x14944b(0x21d)]},'children':this[_0x14944b(0x1d4)]}),this[_0x14944b(0x1e6)][_0x14944b(0x20a)][_0x14944b(0x1c3)](_0xdc162d);}}[_0x367135(0x210)](){const _0x40fb78=_0x367135;this[_0x40fb78(0x19c)][_0x40fb78(0x209)]?this[_0x40fb78(0x1a6)]():this[_0x40fb78(0x1e5)]();}[_0x367135(0x1ce)](){const _0x50abd9=_0x367135,_0x3e6792=this[_0x50abd9(0x1d4)][_0x50abd9(0x215)]>0x0;this[_0x50abd9(0x19c)]?.[_0x50abd9(0x214)]&&(this[_0x50abd9(0x19c)][_0x50abd9(0x214)][_0x50abd9(0x1dd)][_0x50abd9(0x1a7)]=_0x3e6792?'':_0x50abd9(0x1a2));}[_0x367135(0x1aa)](){const _0x1a9208=_0x367135;this[_0x1a9208(0x19c)]?.[_0x1a9208(0x209)]&&this[_0x1a9208(0x1e6)]?.[_0x1a9208(0x1bb)]&&this[_0x1a9208(0x19c)][_0x1a9208(0x214)]&&this[_0x1a9208(0x1e6)][_0x1a9208(0x199)]({'target':this[_0x1a9208(0x19c)][_0x1a9208(0x214)],'limiter':document[_0x1a9208(0x1c5)](_0x1a9208(0x1ec))});}[_0x367135(0x1ac)](_0x50eff0){const _0x3a98c5=_0x367135,_0x13d400=this[_0x3a98c5(0x220)]?.[_0x3a98c5(0x1e9)][_0x3a98c5(0x1a4)]()||_0x3a98c5(0x1c6),_0x46285d=this[_0x3a98c5(0x220)]?.[_0x3a98c5(0x1ab)];if(_0x46285d){const _0x56df4c=_0x46285d[0x0]||'',_0x3fa29b=_0x50eff0[_0x3a98c5(0x1c5)]('.'+_0x56df4c),_0x5c820e=_0x50eff0[_0x3a98c5(0x1c5)](_0x13d400);return _0x3fa29b||_0x5c820e||_0x50eff0;}return _0x50eff0[_0x3a98c5(0x1c5)](_0x13d400)||_0x50eff0;}[_0x367135(0x1a5)](){const _0x170d84=_0x367135,_0x132162=this[_0x170d84(0x208)]?.[_0x170d84(0x214)]||this[_0x170d84(0x220)];if(!_0x132162)return an;const _0x199104=window[_0x170d84(0x1e2)](_0x132162)[_0x170d84(0x1b8)];if(_0x170d84(0x211)===_0x199104||_0x170d84(0x1e0)===_0x199104||!_0x199104){const _0x381509=_0x132162[_0x170d84(0x1f6)];if(_0x381509){const _0xbb64c8=window[_0x170d84(0x1e2)](_0x381509);return _0x170d84(0x211)!==_0xbb64c8[_0x170d84(0x1b8)]?_0xbb64c8[_0x170d84(0x1b8)]:an;}return an;}return _0x199104;}[_0x367135(0x206)](_0x4a3851,_0x19057f){const _0x40ae4b=_0x367135;this[_0x40ae4b(0x217)][_0x40ae4b(0x1fb)][_0x40ae4b(0x1b3)]&&_0x4a3851[_0x40ae4b(0x1ab)][_0x40ae4b(0x1c3)](this[_0x40ae4b(0x217)][_0x40ae4b(0x1fb)][_0x40ae4b(0x1b3)]),_0x4a3851[_0x40ae4b(0x1dd)][_0x40ae4b(0x1b8)]=_0x19057f,_0x4a3851[_0x40ae4b(0x1dd)][_0x40ae4b(0x1e1)]=_0x40ae4b(0x205),_0x4a3851[_0x40ae4b(0x1dd)][_0x40ae4b(0x1b4)]=_0x40ae4b(0x212),_0x4a3851[_0x40ae4b(0x1dd)][_0x40ae4b(0x207)]=_0x40ae4b(0x212),_0x4a3851[_0x40ae4b(0x1dd)][_0x40ae4b(0x1fd)]='0',_0x4a3851[_0x40ae4b(0x1dd)][_0x40ae4b(0x1bc)]=_0x40ae4b(0x1a2),_0x4a3851[_0x40ae4b(0x1dd)][_0x40ae4b(0x195)]='-1',_0x4a3851[_0x40ae4b(0x1dd)][_0x40ae4b(0x1d6)]=_0x40ae4b(0x19b),_0x4a3851[_0x40ae4b(0x1dd)][_0x40ae4b(0x1a7)]=_0x40ae4b(0x1ca),_0x4a3851[_0x40ae4b(0x1dd)][_0x40ae4b(0x1e8)]=_0x40ae4b(0x221);}[_0x367135(0x1cb)](_0x27cc5e){const _0xe541d5=_0x367135;_0x27cc5e[_0xe541d5(0x1ad)](({element:_0x511caf,originalDisplay:_0x2773c6,originalVisibility:_0x287c3b})=>{const _0x257da3=_0xe541d5;_0x511caf[_0x257da3(0x1dd)][_0x257da3(0x1a7)]=_0x2773c6,_0x511caf[_0x257da3(0x1dd)][_0x257da3(0x1d6)]=_0x287c3b;});}[_0x367135(0x1be)](_0x552e43){const _0x5eb12b=_0x367135,_0x43265b=[];let _0x49e21f=_0x552e43;for(;_0x49e21f&&_0x49e21f!==document[_0x5eb12b(0x1f2)];){const _0x4644e8=window[_0x5eb12b(0x1e2)](_0x49e21f);_0x5eb12b(0x1a2)!==_0x4644e8[_0x5eb12b(0x1a7)]&&_0x5eb12b(0x1ef)!==_0x4644e8[_0x5eb12b(0x1d6)]||(_0x43265b[_0x5eb12b(0x1d9)]({'element':_0x49e21f,'originalDisplay':_0x49e21f[_0x5eb12b(0x1dd)][_0x5eb12b(0x1a7)],'originalVisibility':_0x49e21f[_0x5eb12b(0x1dd)][_0x5eb12b(0x1d6)]}),_0x49e21f[_0x5eb12b(0x1dd)][_0x5eb12b(0x1a7)]=_0x5eb12b(0x19f),_0x49e21f[_0x5eb12b(0x1dd)][_0x5eb12b(0x1d6)]=_0x5eb12b(0x1eb)),_0x49e21f=_0x49e21f[_0x5eb12b(0x1f6)];}return _0x43265b;}[_0x367135(0x1f3)](){const _0x2451e4=_0x367135;let _0x6b169f,_0x31e8aa;return this[_0x2451e4(0x208)]?.[_0x2451e4(0x214)]?(_0x6b169f=this[_0x2451e4(0x208)][_0x2451e4(0x214)][_0x2451e4(0x1af)](!0x0),_0x31e8aa=this[_0x2451e4(0x1ac)](_0x6b169f)):(_0x6b169f=document[_0x2451e4(0x225)](_0x2451e4(0x1c6)),_0x31e8aa=_0x6b169f),{'calculationContainer':_0x6b169f,'targetContainer':_0x31e8aa};}[_0x367135(0x202)](){const _0x14b63d=_0x367135,{calculationContainer:_0x4298ce,targetContainer:_0x2b1e19}=this[_0x14b63d(0x1f3)](),_0x16f18b=this[_0x14b63d(0x1a5)]();this[_0x14b63d(0x206)](_0x4298ce,_0x16f18b);const _0x2d7aaf=this[_0x14b63d(0x208)]?.[_0x14b63d(0x214)]||this[_0x14b63d(0x220)],_0x61a3bd=_0x2d7aaf?.[_0x14b63d(0x1f6)];_0x61a3bd?_0x61a3bd[_0x14b63d(0x1c4)](_0x4298ce):document[_0x14b63d(0x1f2)][_0x14b63d(0x1c4)](_0x4298ce),_0x4298ce[_0x14b63d(0x1dc)]=_0x2b1e19;const _0x10b978=this[_0x14b63d(0x1be)](_0x61a3bd||null);return _0x4298ce[_0x14b63d(0x20f)],_0x4298ce[_0x14b63d(0x1c0)]=_0x10b978,_0x4298ce;}[_0x367135(0x1fa)](_0x5c4e93,_0x3be022){const _0x234dc1=_0x367135,_0x57542e=_0x5c4e93[_0x234dc1(0x1dc)]||_0x5c4e93,_0x5565f3=[],{rowCount:_0x2bf860}=this[_0x234dc1(0x1cc)](_0x57542e,_0x3be022);if(_0x2bf860<=this[_0x234dc1(0x217)][_0x234dc1(0x1b0)])return _0x5565f3;const _0x5849e8=_0x3be022[_0x234dc1(0x1a1)]();for(;_0x5849e8[_0x234dc1(0x215)]>0x0;){if(this[_0x234dc1(0x19a)](_0x5c4e93,_0x57542e,_0x5849e8)){const _0x35a143=_0x3be022[_0x234dc1(0x21c)](_0xd8e165=>!_0x5849e8[_0x234dc1(0x1e3)](_0xd8e165));_0x5565f3[_0x234dc1(0x1d9)](..._0x35a143);break;}if(!_0x5849e8[_0x234dc1(0x1ea)]())break;}return _0x5565f3;}[_0x367135(0x1cc)](_0x3cba14,_0x3f7698){const _0x1b5d38=_0x367135;_0x3cba14[_0x1b5d38(0x200)]='',_0x3f7698[_0x1b5d38(0x1ad)](_0x33bf17=>{const _0x1d62eb=_0x1b5d38;if(_0x33bf17[_0x1d62eb(0x214)]){const _0xfae4ea=_0x33bf17[_0x1d62eb(0x214)][_0x1d62eb(0x1af)](!0x0);_0x3cba14[_0x1d62eb(0x1c4)](_0xfae4ea);}}),_0x3cba14[_0x1b5d38(0x20f)];const _0x1659d0=_0x3cba14[_0x1b5d38(0x203)],_0x2b872a=[];return Array[_0x1b5d38(0x1ee)](_0x1659d0)[_0x1b5d38(0x1ad)](_0x21eb2f=>{const _0x4dd844=_0x1b5d38,_0x23d9a8=_0x21eb2f[_0x4dd844(0x1bd)]()[_0x4dd844(0x1b4)];_0x2b872a[_0x4dd844(0x20c)](_0x210c18=>Math[_0x4dd844(0x213)](_0x210c18-_0x23d9a8)<this[_0x4dd844(0x217)][_0x4dd844(0x21a)])||_0x2b872a[_0x4dd844(0x1d9)](_0x23d9a8);}),{'rowCount':_0x2b872a[_0x1b5d38(0x215)]};}[_0x367135(0x1d8)](){const _0x36c4c1=_0x367135,_0x2968f0=document[_0x36c4c1(0x225)](_0x36c4c1(0x1f8));return _0x2968f0[_0x36c4c1(0x1b2)]=this[_0x36c4c1(0x217)][_0x36c4c1(0x1fb)][_0x36c4c1(0x1d2)],this[_0x36c4c1(0x217)][_0x36c4c1(0x1fb)][_0x36c4c1(0x1b1)]&&_0x2968f0[_0x36c4c1(0x1ab)][_0x36c4c1(0x1c3)](this[_0x36c4c1(0x217)][_0x36c4c1(0x1fb)][_0x36c4c1(0x1b1)]),_0x2968f0[_0x36c4c1(0x1f5)]=_0x36c4c1(0x193),_0x2968f0;}[_0x367135(0x19a)](_0x47563a,_0x410234,_0x45e654){const _0x1711bf=_0x367135;this[_0x1711bf(0x1cc)](_0x410234,_0x45e654);const _0x42575d=this[_0x1711bf(0x1d8)]();_0x47563a[_0x1711bf(0x1c4)](_0x42575d),_0x47563a[_0x1711bf(0x20f)];const _0x1164cf=[..._0x410234[_0x1711bf(0x203)],_0x42575d],_0x14b6f7=[];_0x1164cf[_0x1711bf(0x1ad)](_0x56763a=>{const _0x1839a6=_0x1711bf,_0x3c2297=_0x56763a[_0x1839a6(0x1bd)]()[_0x1839a6(0x1b4)];_0x14b6f7[_0x1839a6(0x20c)](_0x54ccce=>Math[_0x1839a6(0x213)](_0x54ccce-_0x3c2297)<this[_0x1839a6(0x217)][_0x1839a6(0x21a)])||_0x14b6f7[_0x1839a6(0x1d9)](_0x3c2297);});const _0x2608de=_0x14b6f7[_0x1711bf(0x215)];return _0x42575d[_0x1711bf(0x1ba)](),_0x2608de<=this[_0x1711bf(0x217)][_0x1711bf(0x1b0)];}[_0x367135(0x1b9)](_0x457464,_0x29d495){const _0x316240=_0x367135;this[_0x316240(0x1bf)][_0x316240(0x1d0)](),this[_0x316240(0x1d4)][_0x316240(0x1d0)](),_0x457464[_0x316240(0x1ad)](_0x349838=>{const _0x3988d0=_0x316240;_0x29d495[_0x3988d0(0x1e3)](_0x349838)?this[_0x3988d0(0x1d4)][_0x3988d0(0x1c3)](_0x349838):this[_0x3988d0(0x1bf)][_0x3988d0(0x1c3)](_0x349838);});}[_0x367135(0x1fe)](_0xd1caca){const _0xd57150=_0x367135;if(_0xd1caca>0x0&&!this[_0xd57150(0x19c)]&&this[_0xd57150(0x223)](),_0xd1caca>0x0&&this[_0xd57150(0x19c)]){const _0x4e5b72=''+this[_0xd57150(0x217)][_0xd57150(0x1db)]+(_0xd1caca<0x63?_0xd1caca:'99');this[_0xd57150(0x19c)][_0xd57150(0x196)]=_0x4e5b72;}this[_0xd57150(0x19e)](),this[_0xd57150(0x1ce)](),this[_0xd57150(0x1aa)]();}[_0x367135(0x216)](_0x441b4d,_0x1194bd){const _0x193929=_0x367135;this[_0x193929(0x1b9)](_0x441b4d,_0x1194bd),this[_0x193929(0x1fe)](_0x1194bd[_0x193929(0x215)]);}[_0x367135(0x20e)](){const _0x973e04=_0x367135;this[_0x973e04(0x220)]&&_0x973e04(0x1d5)!=typeof IntersectionObserver&&(this[_0x973e04(0x1d3)]=new IntersectionObserver(_0x457b29=>{const _0x161b5d=_0x973e04;_0x457b29[0x0][_0x161b5d(0x21e)]&&this[_0x161b5d(0x1f4)]&&requestAnimationFrame(()=>{const _0x1289ac=_0x161b5d;this[_0x1289ac(0x20b)]();});},{'threshold':0.01,'rootMargin':_0x973e04(0x224)}),this[_0x973e04(0x1d3)][_0x973e04(0x201)](this[_0x973e04(0x220)]));}[_0x367135(0x1a0)](){const _0x336940=_0x367135;if(!this[_0x336940(0x220)])return!0x1;if(!this[_0x336940(0x220)][_0x336940(0x1f1)])return!0x1;const _0x27ccf6=this[_0x336940(0x220)][_0x336940(0x1bd)]();if(0x0===_0x27ccf6[_0x336940(0x1b8)]||0x0===_0x27ccf6[_0x336940(0x1da)])return!0x1;const _0x47dfb7=window[_0x336940(0x204)]||document[_0x336940(0x20d)][_0x336940(0x226)],_0x358231=window[_0x336940(0x21b)]||document[_0x336940(0x20d)][_0x336940(0x1de)],_0x44da7a=0xc8;return _0x27ccf6[_0x336940(0x1f9)]>=-0xc8&&_0x27ccf6[_0x336940(0x1b4)]<=_0x47dfb7+_0x44da7a&&_0x27ccf6[_0x336940(0x1b6)]>=-0xc8&&_0x27ccf6[_0x336940(0x207)]<=_0x358231+_0x44da7a;}}
|
|
23
|
+
function _0x122a(_0x34edf4,_0x1a1525){const _0x10cf55=_0x10cf();return _0x122a=function(_0x122ac5,_0xe53358){_0x122ac5=_0x122ac5-0x13f;let _0x7c88ca=_0x10cf55[_0x122ac5];return _0x7c88ca;},_0x122a(_0x34edf4,_0x1a1525);}const _0x41eb55=_0x122a;(function(_0x5e3bdf,_0x5800b5){const _0x52a5f2=_0x122a,_0x511224=_0x5e3bdf();while(!![]){try{const _0x3b5907=parseInt(_0x52a5f2(0x155))/0x1*(parseInt(_0x52a5f2(0x169))/0x2)+-parseInt(_0x52a5f2(0x14c))/0x3*(-parseInt(_0x52a5f2(0x1b9))/0x4)+parseInt(_0x52a5f2(0x1a1))/0x5+-parseInt(_0x52a5f2(0x14f))/0x6+parseInt(_0x52a5f2(0x156))/0x7+-parseInt(_0x52a5f2(0x16c))/0x8*(-parseInt(_0x52a5f2(0x182))/0x9)+-parseInt(_0x52a5f2(0x197))/0xa*(parseInt(_0x52a5f2(0x1c8))/0xb);if(_0x3b5907===_0x5800b5)break;else _0x511224['push'](_0x511224['shift']());}catch(_0x43d69f){_0x511224['push'](_0x511224['shift']());}}}(_0x10cf,0x718b3));import{View as _0x1cacc1,BalloonPanelView as _0x4ff7e9,ButtonView as _0x321f,clickOutsideHandler as _0x5c5269}from'ckeditor5/src/ui.js';function _0x10cf(){const _0x38f5f7=['_calculateContainerWidth','300px','execute','_createShowMoreButtonView','pop','innerHTML','52CzJxCN','_handleShowMoreButtonClick','getComputedStyle','hideBalloonPanel','showMoreLabelPrefix','isConnected','_containerElement','_setupVisibilityObserver','cloneNode','_createShowMoreBalloonPanelView','isIntersecting','block','_createShowMoreButton','_findTargetContainer','maxVisibleRows','11ePKAvk','tagName','clientHeight','remove','position','div','textContent','forEach','setContainerElement','visible','add','_showMoreBalloonPanelView','+\x201','_checkAndHandleOverflow','_pendingCalculation','_updateShowMoreButtonVisibility','absolute','top','height','destroy','children','reorganizeChips','_applyOverflowResults','classList','auto','147843LWbryA','_ancestorsToRestore','_visibleChips','4805160szqJmw','calculationContainer','abs','isVisible','undefined','showMoreBalloon','251783DaBqDg','5471879xYqkmX','none','disconnect','left','includes','_restoreAncestorVisibility','push','pointerEvents','width','_createCalculationContainer','label','_locale','_updateBalloonContent','overflowContainer','_targetContainer','overflowChips','ck-calculation-container','_updateOverflowUI','block\x20!important','4gNGaIE','body','disableAnimationOnEnter','80Gluzpg','_renderChipsAndCountRows','extendTemplate','from','showBalloonPanel','_repinBalloonPanel','_testButtonFit','_parentView','_config','controlsButton','right','offsetWidth','cssClasses','show','_calculateOverflowInContainer','_createContainerElements','innerHeight','clientWidth','parentElement','zIndex','observe','clear','108513sclcha','set','appendChild','_isContainerVisible','querySelector','pin','display','render','0px','showMoreButton','boxSizing','length','visibility','setTemplate','_overflowChips','-9999px','toLowerCase','visible\x20!important','_bodyCollection','element','filter','11578990klPMkC','_intersectionObserver','rowDetectionTolerance','hide','hidden','content','opacity','_applyCalculationStyles','showMoreButtonView','.ck-ai-chat','1886740pXMJIp','bottom','documentElement','some','_createMockButton','50px','_showMoreButtonView','className','isOn','button','_distributeChips','style','getBoundingClientRect','border-box','slice','createElement','_makeAncestorsVisible','innerWidth'];_0x10cf=function(){return _0x38f5f7;};return _0x10cf();}import{Collection as _0x1cbfc3}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x41eb55(0x1b4);export class AIChatChipsOverflowManager{[_0x41eb55(0x161)];[_0x41eb55(0x174)];[_0x41eb55(0x14e)];[_0x41eb55(0x190)];[_0x41eb55(0x1a7)]=null;[_0x41eb55(0x1d3)]=null;[_0x41eb55(0x1bf)]=null;[_0x41eb55(0x194)];[_0x41eb55(0x173)]=null;[_0x41eb55(0x198)]=null;[_0x41eb55(0x141)]=!0x1;constructor(_0x46febd,_0x282c1b,_0x344ffb,_0x581795,_0x19cc3c){const _0x2c9c31=_0x41eb55;this[_0x2c9c31(0x161)]=_0x46febd,this[_0x2c9c31(0x14e)]=_0x282c1b,this[_0x2c9c31(0x174)]={...hn,..._0x344ffb,'cssClasses':{'controlsButton':'','calculationContainer':_0x2c9c31(0x166),..._0x344ffb[_0x2c9c31(0x178)]}},this[_0x2c9c31(0x190)]=new _0x1cbfc3(),this[_0x2c9c31(0x194)]=_0x581795,this[_0x2c9c31(0x173)]=_0x19cc3c||null;}[_0x41eb55(0x1d0)](_0x4eab97){const _0x12c561=_0x41eb55;this[_0x12c561(0x198)]&&(this[_0x12c561(0x198)][_0x12c561(0x158)](),this[_0x12c561(0x198)]=null),this[_0x12c561(0x1bf)]=_0x4eab97,this[_0x12c561(0x1c0)]();}get[_0x41eb55(0x19f)](){const _0x3f903f=_0x41eb55;return this[_0x3f903f(0x1a7)];}get[_0x41eb55(0x165)](){const _0x6e3029=_0x41eb55;return this[_0x6e3029(0x190)];}[_0x41eb55(0x148)](){requestAnimationFrame(()=>{const _0x2f7903=_0x122a;this[_0x2f7903(0x140)]();});}[_0x41eb55(0x170)](){const _0x9c6b92=_0x41eb55;this[_0x9c6b92(0x1a7)]&&this[_0x9c6b92(0x1d3)]&&(this[_0x9c6b92(0x162)](),this[_0x9c6b92(0x1a7)][_0x9c6b92(0x1a9)]=!0x0,this[_0x9c6b92(0x1d3)][_0x9c6b92(0x179)](),this[_0x9c6b92(0x1d3)][_0x9c6b92(0x187)]({'target':this[_0x9c6b92(0x1a7)][_0x9c6b92(0x195)],'limiter':document[_0x9c6b92(0x186)](_0x9c6b92(0x1a0))}));}[_0x41eb55(0x1bc)](){const _0x5a5367=_0x41eb55;this[_0x5a5367(0x1a7)]&&this[_0x5a5367(0x1d3)]&&(this[_0x5a5367(0x1a7)][_0x5a5367(0x1a9)]=!0x1,this[_0x5a5367(0x1d3)][_0x5a5367(0x19a)]());}[_0x41eb55(0x181)](){const _0x5681f9=_0x41eb55;this[_0x5681f9(0x190)][_0x5681f9(0x181)](),this[_0x5681f9(0x1bc)](),this[_0x5681f9(0x142)](),this[_0x5681f9(0x1a7)]&&(this[_0x5681f9(0x1a7)][_0x5681f9(0x160)]=''),this[_0x5681f9(0x1d3)]&&this[_0x5681f9(0x1d3)][_0x5681f9(0x19c)][_0x5681f9(0x181)]();}[_0x41eb55(0x146)](){const _0x1db787=_0x41eb55;this[_0x1db787(0x198)]&&(this[_0x1db787(0x198)][_0x1db787(0x158)](),this[_0x1db787(0x198)]=null),this[_0x1db787(0x1a7)]&&(this[_0x1db787(0x1a7)][_0x1db787(0x146)](),this[_0x1db787(0x1a7)]=null),this[_0x1db787(0x1d3)]&&(this[_0x1db787(0x1d3)][_0x1db787(0x146)](),this[_0x1db787(0x1d3)]=null);}[_0x41eb55(0x140)](){const _0x13aeb1=_0x41eb55;if(!this[_0x13aeb1(0x1bf)])return;if(!this[_0x13aeb1(0x185)]())return void(this[_0x13aeb1(0x141)]=!0x0);this[_0x13aeb1(0x141)]=!0x1;const _0x1f3822=[...this[_0x13aeb1(0x14e)],...this[_0x13aeb1(0x190)]],_0x24e6ea=this[_0x13aeb1(0x15f)](),_0x4c0434=this[_0x13aeb1(0x17a)](_0x24e6ea,_0x1f3822),_0x715553=_0x24e6ea[_0x13aeb1(0x14d)];_0x715553&&this[_0x13aeb1(0x15b)](_0x715553),_0x24e6ea[_0x13aeb1(0x1cb)](),this[_0x13aeb1(0x149)](_0x1f3822,_0x4c0434);}[_0x41eb55(0x1c5)](){const _0xaf814d=_0x41eb55;this[_0xaf814d(0x1a7)]=this[_0xaf814d(0x1b6)](),this[_0xaf814d(0x1d3)]=this[_0xaf814d(0x1c2)](),this[_0xaf814d(0x1a7)][_0xaf814d(0x189)](),this[_0xaf814d(0x1bf)][_0xaf814d(0x184)](this[_0xaf814d(0x1a7)][_0xaf814d(0x195)]),this[_0xaf814d(0x1a7)]['on'](_0xaf814d(0x1b5),()=>{const _0x3fafdc=_0xaf814d;this[_0x3fafdc(0x1ba)]();}),_0x5c5269({'emitter':this[_0xaf814d(0x1d3)],'contextElements':[this[_0xaf814d(0x1d3)][_0xaf814d(0x195)],this[_0xaf814d(0x1a7)][_0xaf814d(0x195)]],'callback':()=>this[_0xaf814d(0x1bc)](),'activator':()=>this[_0xaf814d(0x1a7)][_0xaf814d(0x1a9)]});}[_0x41eb55(0x1b6)](){const _0xdc69ab=_0x41eb55,_0x4edaef=new _0x321f(this[_0xdc69ab(0x161)]);_0x4edaef[_0xdc69ab(0x183)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1f18cd=[this[_0xdc69ab(0x174)][_0xdc69ab(0x178)][_0xdc69ab(0x18b)]];return this[_0xdc69ab(0x174)][_0xdc69ab(0x178)][_0xdc69ab(0x175)]&&_0x1f18cd[_0xdc69ab(0x15c)](this[_0xdc69ab(0x174)][_0xdc69ab(0x178)][_0xdc69ab(0x175)]),_0x4edaef[_0xdc69ab(0x16e)]({'attributes':{'class':_0x1f18cd}}),_0x4edaef;}[_0x41eb55(0x1c2)](){const _0x362586=_0x41eb55,_0x3b0e3f=new _0x4ff7e9(this[_0x362586(0x161)]);return _0x3b0e3f[_0x362586(0x16e)]({'attributes':{'class':this[_0x362586(0x174)][_0x362586(0x178)][_0x362586(0x154)]}}),this[_0x362586(0x194)][_0x362586(0x1d2)](_0x3b0e3f),_0x3b0e3f;}[_0x41eb55(0x162)](){const _0x5bd667=_0x41eb55;if(this[_0x5bd667(0x1d3)]&&(this[_0x5bd667(0x1d3)][_0x5bd667(0x19c)][_0x5bd667(0x181)](),this[_0x5bd667(0x190)][_0x5bd667(0x18d)]>0x0)){this[_0x5bd667(0x190)][_0x5bd667(0x1cf)](_0x2186c5=>{const _0xb1e54a=_0x5bd667;_0x2186c5[_0xb1e54a(0x16b)]();});const _0x1813d4=new _0x1cacc1(this[_0x5bd667(0x161)]);_0x1813d4[_0x5bd667(0x18f)]({'tag':_0x5bd667(0x1cd),'attributes':{'class':this[_0x5bd667(0x174)][_0x5bd667(0x178)][_0x5bd667(0x163)]},'children':this[_0x5bd667(0x190)]}),this[_0x5bd667(0x1d3)][_0x5bd667(0x19c)][_0x5bd667(0x1d2)](_0x1813d4);}}[_0x41eb55(0x1ba)](){const _0x56683f=_0x41eb55;this[_0x56683f(0x1a7)][_0x56683f(0x1a9)]?this[_0x56683f(0x1bc)]():this[_0x56683f(0x170)]();}[_0x41eb55(0x142)](){const _0x59900d=_0x41eb55,_0x4dabc0=this[_0x59900d(0x190)][_0x59900d(0x18d)]>0x0;this[_0x59900d(0x1a7)]?.[_0x59900d(0x195)]&&(this[_0x59900d(0x1a7)][_0x59900d(0x195)][_0x59900d(0x1ac)][_0x59900d(0x188)]=_0x4dabc0?'':_0x59900d(0x157));}[_0x41eb55(0x171)](){const _0x7e9973=_0x41eb55;this[_0x7e9973(0x1a7)]?.[_0x7e9973(0x1a9)]&&this[_0x7e9973(0x1d3)]?.[_0x7e9973(0x152)]&&this[_0x7e9973(0x1a7)][_0x7e9973(0x195)]&&this[_0x7e9973(0x1d3)][_0x7e9973(0x187)]({'target':this[_0x7e9973(0x1a7)][_0x7e9973(0x195)],'limiter':document[_0x7e9973(0x186)](_0x7e9973(0x1a0))});}[_0x41eb55(0x1c6)](_0x201859){const _0x5823f0=_0x41eb55,_0x5cc4ee=this[_0x5823f0(0x1bf)]?.[_0x5823f0(0x1c9)][_0x5823f0(0x192)]()||_0x5823f0(0x1cd),_0x427378=this[_0x5823f0(0x1bf)]?.[_0x5823f0(0x14a)];if(_0x427378){const _0x5a7c09=_0x427378[0x0]||'',_0x1b8d75=_0x201859[_0x5823f0(0x186)]('.'+_0x5a7c09),_0x5a5ffd=_0x201859[_0x5823f0(0x186)](_0x5cc4ee);return _0x1b8d75||_0x5a5ffd||_0x201859;}return _0x201859[_0x5823f0(0x186)](_0x5cc4ee)||_0x201859;}[_0x41eb55(0x1b3)](){const _0x7d714=_0x41eb55,_0xa1e6d7=this[_0x7d714(0x173)]?.[_0x7d714(0x195)]||this[_0x7d714(0x1bf)];if(!_0xa1e6d7)return an;const _0xbfa67c=window[_0x7d714(0x1bb)](_0xa1e6d7)[_0x7d714(0x15e)];if(_0x7d714(0x14b)===_0xbfa67c||_0x7d714(0x18a)===_0xbfa67c||!_0xbfa67c){const _0x382146=_0xa1e6d7[_0x7d714(0x17e)];if(_0x382146){const _0x571407=window[_0x7d714(0x1bb)](_0x382146);return _0x7d714(0x14b)!==_0x571407[_0x7d714(0x15e)]?_0x571407[_0x7d714(0x15e)]:an;}return an;}return _0xbfa67c;}[_0x41eb55(0x19e)](_0x556ff6,_0x344aba){const _0x2501e8=_0x41eb55;this[_0x2501e8(0x174)][_0x2501e8(0x178)][_0x2501e8(0x150)]&&_0x556ff6[_0x2501e8(0x14a)][_0x2501e8(0x1d2)](this[_0x2501e8(0x174)][_0x2501e8(0x178)][_0x2501e8(0x150)]),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x15e)]=_0x344aba,_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x1cc)]=_0x2501e8(0x143),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x144)]=_0x2501e8(0x191),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x159)]=_0x2501e8(0x191),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x19d)]='0',_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x15d)]=_0x2501e8(0x157),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x17f)]='-1',_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x18e)]=_0x2501e8(0x193),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x188)]=_0x2501e8(0x168),_0x556ff6[_0x2501e8(0x1ac)][_0x2501e8(0x18c)]=_0x2501e8(0x1ae);}[_0x41eb55(0x15b)](_0x2133e8){const _0x546266=_0x41eb55;_0x2133e8[_0x546266(0x1cf)](({element:_0x119881,originalDisplay:_0x3fb736,originalVisibility:_0x2b86fa})=>{const _0x43017a=_0x546266;_0x119881[_0x43017a(0x1ac)][_0x43017a(0x188)]=_0x3fb736,_0x119881[_0x43017a(0x1ac)][_0x43017a(0x18e)]=_0x2b86fa;});}[_0x41eb55(0x1b1)](_0x306939){const _0xba932c=_0x41eb55,_0x3c7ae5=[];let _0x470c1b=_0x306939;for(;_0x470c1b&&_0x470c1b!==document[_0xba932c(0x16a)];){const _0x10e004=window[_0xba932c(0x1bb)](_0x470c1b);_0xba932c(0x157)!==_0x10e004[_0xba932c(0x188)]&&_0xba932c(0x19b)!==_0x10e004[_0xba932c(0x18e)]||(_0x3c7ae5[_0xba932c(0x15c)]({'element':_0x470c1b,'originalDisplay':_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x188)],'originalVisibility':_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x18e)]}),_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x188)]=_0xba932c(0x1c4),_0x470c1b[_0xba932c(0x1ac)][_0xba932c(0x18e)]=_0xba932c(0x1d1)),_0x470c1b=_0x470c1b[_0xba932c(0x17e)];}return _0x3c7ae5;}[_0x41eb55(0x17b)](){const _0x47ad34=_0x41eb55;let _0x55096e,_0x11e980;return this[_0x47ad34(0x173)]?.[_0x47ad34(0x195)]?(_0x55096e=this[_0x47ad34(0x173)][_0x47ad34(0x195)][_0x47ad34(0x1c1)](!0x0),_0x11e980=this[_0x47ad34(0x1c6)](_0x55096e)):(_0x55096e=document[_0x47ad34(0x1b0)](_0x47ad34(0x1cd)),_0x11e980=_0x55096e),{'calculationContainer':_0x55096e,'targetContainer':_0x11e980};}[_0x41eb55(0x15f)](){const _0x37aa84=_0x41eb55,{calculationContainer:_0x48bd2c,targetContainer:_0x48368a}=this[_0x37aa84(0x17b)](),_0x1996d1=this[_0x37aa84(0x1b3)]();this[_0x37aa84(0x19e)](_0x48bd2c,_0x1996d1);const _0xca1c31=this[_0x37aa84(0x173)]?.[_0x37aa84(0x195)]||this[_0x37aa84(0x1bf)],_0xb99f6=_0xca1c31?.[_0x37aa84(0x17e)];_0xb99f6?_0xb99f6[_0x37aa84(0x184)](_0x48bd2c):document[_0x37aa84(0x16a)][_0x37aa84(0x184)](_0x48bd2c),_0x48bd2c[_0x37aa84(0x164)]=_0x48368a;const _0x4550d4=this[_0x37aa84(0x1b1)](_0xb99f6||null);return _0x48bd2c[_0x37aa84(0x177)],_0x48bd2c[_0x37aa84(0x14d)]=_0x4550d4,_0x48bd2c;}[_0x41eb55(0x17a)](_0x49b065,_0x42c456){const _0x164f82=_0x41eb55,_0x1837f8=_0x49b065[_0x164f82(0x164)]||_0x49b065,_0x19255d=[],{rowCount:_0x334218}=this[_0x164f82(0x16d)](_0x1837f8,_0x42c456);if(_0x334218<=this[_0x164f82(0x174)][_0x164f82(0x1c7)])return _0x19255d;const _0x338329=_0x42c456[_0x164f82(0x1af)]();for(;_0x338329[_0x164f82(0x18d)]>0x0;){if(this[_0x164f82(0x172)](_0x49b065,_0x1837f8,_0x338329)){const _0x127d9e=_0x42c456[_0x164f82(0x196)](_0x105cf9=>!_0x338329[_0x164f82(0x15a)](_0x105cf9));_0x19255d[_0x164f82(0x15c)](..._0x127d9e);break;}if(!_0x338329[_0x164f82(0x1b7)]())break;}return _0x19255d;}[_0x41eb55(0x16d)](_0x59ffa2,_0x4c6b95){const _0x228b76=_0x41eb55;_0x59ffa2[_0x228b76(0x1b8)]='',_0x4c6b95[_0x228b76(0x1cf)](_0x26bcd2=>{const _0x155adf=_0x228b76;if(_0x26bcd2[_0x155adf(0x195)]){const _0x52012d=_0x26bcd2[_0x155adf(0x195)][_0x155adf(0x1c1)](!0x0);_0x59ffa2[_0x155adf(0x184)](_0x52012d);}}),_0x59ffa2[_0x228b76(0x177)];const _0x5e440f=_0x59ffa2[_0x228b76(0x147)],_0x3344cd=[];return Array[_0x228b76(0x16f)](_0x5e440f)[_0x228b76(0x1cf)](_0x3ef968=>{const _0x1a0a81=_0x228b76,_0x271833=_0x3ef968[_0x1a0a81(0x1ad)]()[_0x1a0a81(0x144)];_0x3344cd[_0x1a0a81(0x1a4)](_0x20465d=>Math[_0x1a0a81(0x151)](_0x20465d-_0x271833)<this[_0x1a0a81(0x174)][_0x1a0a81(0x199)])||_0x3344cd[_0x1a0a81(0x15c)](_0x271833);}),{'rowCount':_0x3344cd[_0x228b76(0x18d)]};}[_0x41eb55(0x1a5)](){const _0x541341=_0x41eb55,_0x42940d=document[_0x541341(0x1b0)](_0x541341(0x1aa));return _0x42940d[_0x541341(0x1a8)]=this[_0x541341(0x174)][_0x541341(0x178)][_0x541341(0x18b)],this[_0x541341(0x174)][_0x541341(0x178)][_0x541341(0x175)]&&_0x42940d[_0x541341(0x14a)][_0x541341(0x1d2)](this[_0x541341(0x174)][_0x541341(0x178)][_0x541341(0x175)]),_0x42940d[_0x541341(0x1ce)]=_0x541341(0x13f),_0x42940d;}[_0x41eb55(0x172)](_0x1222ef,_0x51e005,_0x48c88){const _0x57dc09=_0x41eb55;this[_0x57dc09(0x16d)](_0x51e005,_0x48c88);const _0x8e54ca=this[_0x57dc09(0x1a5)]();_0x1222ef[_0x57dc09(0x184)](_0x8e54ca),_0x1222ef[_0x57dc09(0x177)];const _0x100897=[..._0x51e005[_0x57dc09(0x147)],_0x8e54ca],_0x3539e9=[];_0x100897[_0x57dc09(0x1cf)](_0x1a3138=>{const _0x76d602=_0x57dc09,_0x5ef97e=_0x1a3138[_0x76d602(0x1ad)]()[_0x76d602(0x144)];_0x3539e9[_0x76d602(0x1a4)](_0x25c370=>Math[_0x76d602(0x151)](_0x25c370-_0x5ef97e)<this[_0x76d602(0x174)][_0x76d602(0x199)])||_0x3539e9[_0x76d602(0x15c)](_0x5ef97e);});const _0x4f96ba=_0x3539e9[_0x57dc09(0x18d)];return _0x8e54ca[_0x57dc09(0x1cb)](),_0x4f96ba<=this[_0x57dc09(0x174)][_0x57dc09(0x1c7)];}[_0x41eb55(0x1ab)](_0x1e8334,_0x430f56){const _0x435a49=_0x41eb55;this[_0x435a49(0x14e)][_0x435a49(0x181)](),this[_0x435a49(0x190)][_0x435a49(0x181)](),_0x1e8334[_0x435a49(0x1cf)](_0x2eb012=>{const _0x2e58cd=_0x435a49;_0x430f56[_0x2e58cd(0x15a)](_0x2eb012)?this[_0x2e58cd(0x190)][_0x2e58cd(0x1d2)](_0x2eb012):this[_0x2e58cd(0x14e)][_0x2e58cd(0x1d2)](_0x2eb012);});}[_0x41eb55(0x167)](_0x209063){const _0x1d2dc4=_0x41eb55;if(_0x209063>0x0&&!this[_0x1d2dc4(0x1a7)]&&this[_0x1d2dc4(0x1c5)](),_0x209063>0x0&&this[_0x1d2dc4(0x1a7)]){const _0x19a682=''+this[_0x1d2dc4(0x174)][_0x1d2dc4(0x1bd)]+(_0x209063<0x63?_0x209063:'99');this[_0x1d2dc4(0x1a7)][_0x1d2dc4(0x160)]=_0x19a682;}this[_0x1d2dc4(0x162)](),this[_0x1d2dc4(0x142)](),this[_0x1d2dc4(0x171)]();}[_0x41eb55(0x149)](_0x28df08,_0x4b2521){const _0x2f28cb=_0x41eb55;this[_0x2f28cb(0x1ab)](_0x28df08,_0x4b2521),this[_0x2f28cb(0x167)](_0x4b2521[_0x2f28cb(0x18d)]);}[_0x41eb55(0x1c0)](){const _0x203b58=_0x41eb55;this[_0x203b58(0x1bf)]&&_0x203b58(0x153)!=typeof IntersectionObserver&&(this[_0x203b58(0x198)]=new IntersectionObserver(_0x22037c=>{const _0x4c5b4f=_0x203b58;_0x22037c[0x0][_0x4c5b4f(0x1c3)]&&this[_0x4c5b4f(0x141)]&&requestAnimationFrame(()=>{const _0x4b12d5=_0x4c5b4f;this[_0x4b12d5(0x140)]();});},{'threshold':0.01,'rootMargin':_0x203b58(0x1a6)}),this[_0x203b58(0x198)][_0x203b58(0x180)](this[_0x203b58(0x1bf)]));}[_0x41eb55(0x185)](){const _0x4c453e=_0x41eb55;if(!this[_0x4c453e(0x1bf)])return!0x1;if(!this[_0x4c453e(0x1bf)][_0x4c453e(0x1be)])return!0x1;const _0x3255ec=this[_0x4c453e(0x1bf)][_0x4c453e(0x1ad)]();if(0x0===_0x3255ec[_0x4c453e(0x15e)]||0x0===_0x3255ec[_0x4c453e(0x145)])return!0x1;const _0x3fc26b=window[_0x4c453e(0x17c)]||document[_0x4c453e(0x1a3)][_0x4c453e(0x1ca)],_0x37f469=window[_0x4c453e(0x1b2)]||document[_0x4c453e(0x1a3)][_0x4c453e(0x17d)],_0x50ce7d=0xc8;return _0x3255ec[_0x4c453e(0x1a2)]>=-0xc8&&_0x3255ec[_0x4c453e(0x144)]<=_0x3fc26b+_0x50ce7d&&_0x3255ec[_0x4c453e(0x176)]>=-0xc8&&_0x3255ec[_0x4c453e(0x159)]<=_0x37f469+_0x50ce7d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2844f7=_0x3477;(function(_0x25eb96,_0xe715be){const _0x11fbfa=_0x3477,_0x25d96d=_0x25eb96();while(!![]){try{const _0x4af2bf=parseInt(_0x11fbfa(0x89))/0x1+-parseInt(_0x11fbfa(0xad))/0x2+-parseInt(_0x11fbfa(0xc2))/0x3+parseInt(_0x11fbfa(0xb8))/0x4*(parseInt(_0x11fbfa(0xa1))/0x5)+parseInt(_0x11fbfa(0xbc))/0x6*(parseInt(_0x11fbfa(0x96))/0x7)+-parseInt(_0x11fbfa(0x85))/0x8*(-parseInt(_0x11fbfa(0x91))/0x9)+-parseInt(_0x11fbfa(0x8c))/0xa*(parseInt(_0x11fbfa(0x94))/0xb);if(_0x4af2bf===_0xe715be)break;else _0x25d96d['push'](_0x25d96d['shift']());}catch(_0x3a2669){_0x25d96d['push'](_0x25d96d['shift']());}}}(_0x232d,0x3a241));import{ButtonView as _0x507412,IconView as _0x108015}from'ckeditor5/src/ui.js';function _0x3477(_0x2cec8f,_0x215c36){const _0x232d8a=_0x232d();return _0x3477=function(_0x34778e,_0x2f9ba3){_0x34778e=_0x34778e-0x84;let _0x405ccd=_0x232d8a[_0x34778e];return _0x405ccd;},_0x3477(_0x2cec8f,_0x215c36);}import{IconClose as _0x391820,IconDocument as _0x49d1af,IconFileUpload as _0x1b6fd0,IconLink as _0x34cddd,IconSelection as _0x299a92}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x50120f}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x551689}from'../../../aicore/ui/aispinner.js';function _0x232d(){const _0x77cb6f=['bindTemplate','_createTemplateChildren','_isAnimationOnEnterEnabled','type','fire','set','disableAnimationOnEnter','ck-ai-chat-context-chip__label','div','496964OuiEsC','ck-ai-chat-context-chip_new-chip','_setupRemoveButtonEvent','isLoading','animationend','selection','small','tooltip','_initializeProperties','isVisible','addEventListener','273512HpbOUp','remove','_handleAnimationEndOnce','removeContextItemChip','564DEVIwQ','content','label','document','element','lastIndexOf','1159665wpIjip','_createRemoveButton','locale','uiId','ck-ai-chat-context-chip_document','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','4208GIguCw','ck-ai-chat-context-chip','classList','ck-ai-chat-context-chip__type-icon','474596jhpzGx','render','execute','940YiRIWi','itemType','add','webkitAnimationEnd','length','7983lkLnRj','_createTemplateAttributes','setTemplate','66561VYBaja','slice','27111duxEKT','ck-ai-chat-context-chip_wide','_createLabelElement','extendTemplate','bind','readonly','removeEventListener','span','_createLoaderIcon','_setupTemplate','_createIconView','10CjPhwp','ck-ai-chat-context-controls__chip-tooltip','ck-hidden'];_0x232d=function(){return _0x77cb6f;};return _0x232d();}const xn={'file':_0x1b6fd0,'document':_0x49d1af,'web-resource':_0x34cddd,'text':_0x1b6fd0,'selection':_0x299a92},bn=_0x2844f7(0x86),wn=_0x2844f7(0x97),Tn=_0x2844f7(0xc6),En=_0x2844f7(0xab),fn=_0x2844f7(0x88),An=_0x2844f7(0xa2),Cn='n';export class AIChatContextItemButtonView extends _0x507412{constructor(_0x1648fb,_0x12fef8,_0x492bc0,_0x82fce5,_0x2d434e=!0x1){const _0xcfc3a0=_0x2844f7;super(_0x1648fb),this[_0xcfc3a0(0xa6)]=_0x82fce5,this[_0xcfc3a0(0xb5)](_0x12fef8,_0x492bc0,_0x2d434e),this[_0xcfc3a0(0x9f)]();}[_0x2844f7(0x8a)](){const _0x95cd4e=_0x2844f7;super[_0x95cd4e(0x8a)](),this[_0x95cd4e(0xa6)]&&this[_0x95cd4e(0xc0)]&&(this[_0x95cd4e(0xc0)][_0x95cd4e(0x87)][_0x95cd4e(0x8e)](_0x95cd4e(0xae)),this[_0x95cd4e(0xba)](this[_0x95cd4e(0xc0)],()=>{const _0x9f6206=_0x95cd4e;this[_0x9f6206(0xc0)]&&this[_0x9f6206(0xc0)][_0x9f6206(0x87)][_0x9f6206(0xb9)](_0x9f6206(0xae));}));}[_0x2844f7(0xaa)](){const _0x34036e=_0x2844f7;this[_0x34036e(0xa6)]=!0x1,this[_0x34036e(0xc0)]&&this[_0x34036e(0xc0)][_0x34036e(0x87)][_0x34036e(0xb9)](_0x34036e(0xae));}[_0x2844f7(0xb5)](_0x5863b3,_0x2b3742,_0x44c6a1){const _0x280d3f=_0x2844f7;this[_0x280d3f(0xa9)](_0x280d3f(0xbe),_0x5863b3[_0x280d3f(0xbe)]),this[_0x280d3f(0xa9)](_0x280d3f(0xb4),!0x0),this[_0x280d3f(0xa9)](_0x280d3f(0x8d),_0x5863b3[_0x280d3f(0xa7)]),this[_0x280d3f(0xa9)]('id',_0x5863b3[_0x280d3f(0xc5)]),this[_0x280d3f(0xa9)](_0x280d3f(0x9b),_0x2b3742),this[_0x280d3f(0xa9)](_0x280d3f(0xb0),_0x44c6a1);}[_0x2844f7(0x9f)](){const _0x49bae6=_0x2844f7,_0x439289=this[_0x49bae6(0xa0)](),_0x52715e=this[_0x49bae6(0xc3)](),_0x226d3e=this[_0x49bae6(0xa4)];this[_0x49bae6(0x93)]({'tag':_0x49bae6(0xac),'attributes':this[_0x49bae6(0x92)](_0x226d3e),'children':this[_0x49bae6(0xa5)](_0x439289,_0x52715e,_0x226d3e)});}[_0x2844f7(0x92)](_0x53b1d2){const _0x479b09=_0x2844f7;return{'class':[bn,_0x53b1d2['if'](_0x479b09(0x8d),Tn,_0x49dee7=>_0x479b09(0xbf)==_0x49dee7),_0x53b1d2['if'](_0x479b09(0x8d),wn,_0x293811=>_0x479b09(0xb2)==_0x293811)],'data-cke-tooltip-text':_0x53b1d2['to'](_0x479b09(0xbe),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2844f7(0xa5)](_0x142e91,_0x510ad6,_0x36b9fa){const _0x2f6d1d=_0x2844f7,_0x440410=this[_0x2f6d1d(0x98)](_0x36b9fa),_0x1e76eb=this[_0x2f6d1d(0x9e)]();return this[_0x2f6d1d(0x9b)]?[_0x142e91,_0x440410]:[_0x142e91,_0x1e76eb,_0x440410,_0x510ad6];}[_0x2844f7(0x98)](_0x1e623a){const _0x2bdbb5=_0x2844f7;return{'tag':_0x2bdbb5(0x9d),'attributes':{'class':En},'children':[{'text':_0x1e623a['to'](_0x2bdbb5(0xbe))}]};}[_0x2844f7(0xc3)](){const _0x445393=_0x2844f7,_0x1eab5d=new _0x507412(this[_0x445393(0xc4)]);return _0x1eab5d[_0x445393(0xa9)]({'label':_0x50120f(this[_0x445393(0xc4)],_0x445393(0x84)),'icon':_0x391820}),this[_0x445393(0xaf)](_0x1eab5d),_0x1eab5d;}[_0x2844f7(0xaf)](_0x4d9b6a){const _0x2a8b8b=_0x2844f7;_0x4d9b6a['on'](_0x2a8b8b(0x8b),()=>{const _0x4690c3=_0x2a8b8b;this[_0x4690c3(0xa8)](_0x4690c3(0xbb),this['id']);});}[_0x2844f7(0xa0)](){const _0x35bc46=_0x2844f7,_0xad2b82=this[_0x35bc46(0xa4)],_0x323ee8=new _0x108015();return _0x323ee8[_0x35bc46(0xbd)]=xn[this[_0x35bc46(0x8d)]],_0x323ee8[_0x35bc46(0x99)]({'attributes':{'class':[fn,_0xad2b82['if'](_0x35bc46(0xb0),_0x35bc46(0xa3),_0x5b3458=>_0x5b3458)]}}),_0x323ee8;}[_0x2844f7(0xba)](_0x5cdb8e,_0x622a49){const _0x556cda=_0x2844f7;if(!_0x5cdb8e)return;const _0x7c0d47=()=>{const _0x1eb9a1=_0x3477;_0x622a49(),_0x5cdb8e[_0x1eb9a1(0x9c)](_0x1eb9a1(0xb1),_0x7c0d47),_0x5cdb8e[_0x1eb9a1(0x9c)](_0x1eb9a1(0x8f),_0x7c0d47);};_0x5cdb8e[_0x556cda(0xb7)](_0x556cda(0xb1),_0x7c0d47),_0x5cdb8e[_0x556cda(0xb7)](_0x556cda(0x8f),_0x7c0d47);}[_0x2844f7(0x9e)](){const _0x14315c=_0x2844f7,_0x2564e1=new _0x551689(_0x14315c(0xb3));return _0x2564e1[_0x14315c(0x9a)](_0x14315c(0xb6))['to'](this,_0x14315c(0xb0),_0x1b9ee6=>_0x1b9ee6),_0x2564e1;}}function In(_0x5c0e66){const _0x2542dc=_0x2844f7;if(!_0x5c0e66)return _0x5c0e66;if(_0x5c0e66[_0x2542dc(0x90)]<=0x78)return _0x5c0e66;const _0x348a21=_0x5c0e66[_0x2542dc(0x95)](0x0,0x78),_0x24cfc7=_0x348a21[_0x2542dc(0xc1)]('\x20');return(_0x24cfc7>0x0?_0x348a21[_0x2542dc(0x95)](0x0,_0x24cfc7):_0x348a21)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x50e4af=_0x111c;(function(_0x4478f5,_0xafec79){const _0x42e8f8=_0x111c,_0x408e4c=_0x4478f5();while(!![]){try{const _0x53de41=parseInt(_0x42e8f8(0x1e3))/0x1+parseInt(_0x42e8f8(0x1cb))/0x2+parseInt(_0x42e8f8(0x1fd))/0x3+-parseInt(_0x42e8f8(0x1d3))/0x4*(-parseInt(_0x42e8f8(0x1ee))/0x5)+-parseInt(_0x42e8f8(0x1e8))/0x6+-parseInt(_0x42e8f8(0x1db))/0x7+parseInt(_0x42e8f8(0x1e7))/0x8*(parseInt(_0x42e8f8(0x1dd))/0x9);if(_0x53de41===_0xafec79)break;else _0x408e4c['push'](_0x408e4c['shift']());}catch(_0x1528d9){_0x408e4c['push'](_0x408e4c['shift']());}}}(_0x2536,0x4f7f5));function _0x2536(){const _0xbbfee1=['form','_setupTemplate','locale','focus','ck-ai-chat-context-controls__url-form','trim','shift+tab','listenTo','_createConfirmButton','_setupEventHandlers','focusCycler','length','getValue','_handleSubmit','setTemplate','add','set','fire','AI_CHAT_CONTEXT_URL_INVALID_ERROR','30330sdZfsb','errorText','_setupKeystrokes','forEach','createCollection','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','tab','ck-button-icon\x20ck-button-back','76PyjgmP','children','div','setError','AI_CHAT_CONTEXT_URL_PLACEHOLDER','refreshBalloon','AI_CHAT_CONTEXT_URL_LABEL','cancel','681471LipRrc','execute','387378PctcVi','_focusables','urlInputField','input','submitUrl','submit','186194ieCYDN','ck-labeled-field-view_empty','AI_CHAT_CONTEXT_URL_ADD_URL','_createUrlInputField','88bEPeFJ','3734988KwQtjO','confirmButton','isEnabled','ck-button-icon','_isValidUrl','ck-ai-chat-context-controls__url-input-section','50110Odribh','clearError','keystrokes','destroy','focusTracker','render','value','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_createBackButton','fieldView','backButton','stop','_updateConfirmButtonState','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','element','540699CyZfBl','clear','esc'];_0x2536=function(){return _0xbbfee1;};return _0x2536();}import{FocusTracker as _0x2ab943,KeystrokeHandler as _0x1d2724}from'ckeditor5/src/utils.js';function _0x111c(_0x1abf28,_0x5e2fc1){const _0x2536bc=_0x2536();return _0x111c=function(_0x111c00,_0x5112c0){_0x111c00=_0x111c00-0x1c1;let _0x4221b8=_0x2536bc[_0x111c00];return _0x4221b8;},_0x111c(_0x1abf28,_0x5e2fc1);}import{ButtonView as _0x507a24,FocusCycler as _0x1d9388,LabeledFieldView as _0x10f37f,View as _0x23961f,FormHeaderView as _0x59abcc,createLabeledInputText as _0x3de0b3,submitHandler as _0x5466da}from'ckeditor5/src/ui.js';import{IconCheck as _0x5a5d4a,IconPreviousArrow as _0x2fe5d0}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x28e9a6}from'../../../aicore/utils/common-translations.js';const ch=_0x50e4af(0x204),nh=_0x50e4af(0x1ed);export class AIChatContextPanelUrlInputView extends _0x23961f{[_0x50e4af(0x1f2)];[_0x50e4af(0x1f0)];[_0x50e4af(0x1de)];[_0x50e4af(0x1c2)];[_0x50e4af(0x1df)];[_0x50e4af(0x1f8)];[_0x50e4af(0x1e9)];constructor(_0x165d6a){const _0x41cca1=_0x50e4af;super(_0x165d6a),this[_0x41cca1(0x1f2)]=new _0x2ab943(),this[_0x41cca1(0x1f0)]=new _0x1d2724(),this[_0x41cca1(0x1f8)]=this[_0x41cca1(0x1f6)](),this[_0x41cca1(0x1df)]=this[_0x41cca1(0x1e6)](),this[_0x41cca1(0x1e9)]=this[_0x41cca1(0x208)](),this[_0x41cca1(0x1de)]=this[_0x41cca1(0x1cf)]([this[_0x41cca1(0x1f8)],this[_0x41cca1(0x1df)],this[_0x41cca1(0x1e9)]]),this[_0x41cca1(0x1c2)]=new _0x1d9388({'focusables':this[_0x41cca1(0x1de)],'focusTracker':this[_0x41cca1(0x1f2)],'keystrokeHandler':this[_0x41cca1(0x1f0)],'actions':{'focusPrevious':_0x41cca1(0x206),'focusNext':_0x41cca1(0x1d1)}}),this[_0x41cca1(0x201)](),this[_0x41cca1(0x1c1)](),this[_0x41cca1(0x1cd)]();}[_0x50e4af(0x1f3)](){const _0x8b1b0b=_0x50e4af;super[_0x8b1b0b(0x1f3)](),this[_0x8b1b0b(0x1de)][_0x8b1b0b(0x1ce)](_0x52f34e=>{const _0x681608=_0x8b1b0b;this[_0x681608(0x1f2)][_0x681608(0x1c7)](_0x52f34e[_0x681608(0x1fc)]),this[_0x681608(0x1f0)][_0x681608(0x207)](_0x52f34e[_0x681608(0x1fc)]);}),_0x5466da({'view':this}),this[_0x8b1b0b(0x203)]();}[_0x50e4af(0x1f1)](){const _0x36bdaa=_0x50e4af;super[_0x36bdaa(0x1f1)](),this[_0x36bdaa(0x1f2)][_0x36bdaa(0x1f1)](),this[_0x36bdaa(0x1f0)][_0x36bdaa(0x1f1)]();}[_0x50e4af(0x203)](){const _0x302f81=_0x50e4af;this[_0x302f81(0x1df)][_0x302f81(0x203)]();}[_0x50e4af(0x1c4)](){const _0x5748f6=_0x50e4af;return this[_0x5748f6(0x1df)][_0x5748f6(0x1f7)][_0x5748f6(0x1fc)]?.[_0x5748f6(0x1f4)]?.[_0x5748f6(0x205)]()||'';}[_0x50e4af(0x1fe)](){const _0x41ad6c=_0x50e4af;this[_0x41ad6c(0x1df)][_0x41ad6c(0x1f7)][_0x41ad6c(0x1fc)][_0x41ad6c(0x1f4)]='',this[_0x41ad6c(0x1df)][_0x41ad6c(0x1cc)]=null,this[_0x41ad6c(0x1e9)][_0x41ad6c(0x1ea)]=!0x1;}[_0x50e4af(0x1d6)](_0x23e509){const _0x563b64=_0x50e4af;this[_0x563b64(0x1df)][_0x563b64(0x1cc)]=_0x23e509,this[_0x563b64(0x1fa)](),this[_0x563b64(0x1c9)](_0x563b64(0x1d8));}[_0x50e4af(0x1ef)](){const _0x2f23ec=_0x50e4af;this[_0x2f23ec(0x1df)][_0x2f23ec(0x1cc)]=null,this[_0x2f23ec(0x1fa)]();}[_0x50e4af(0x1f6)](){const _0x2f6bd9=_0x50e4af,_0x23c51d=new _0x507a24(this[_0x2f6bd9(0x202)]);return _0x23c51d[_0x2f6bd9(0x1c8)]({'icon':_0x2fe5d0,'tooltip':_0x28e9a6(this[_0x2f6bd9(0x202)],_0x2f6bd9(0x1f5)),'tooltipPosition':'n','class':_0x2f6bd9(0x1d2)}),_0x23c51d;}[_0x50e4af(0x1e6)](){const _0x330c6c=_0x50e4af,_0x244e2c=new _0x10f37f(this[_0x330c6c(0x202)],_0x3de0b3);return _0x244e2c[_0x330c6c(0x1c8)]({'label':_0x28e9a6(this[_0x330c6c(0x202)],_0x330c6c(0x1d9)),'class':_0x330c6c(0x1e4)}),_0x244e2c[_0x330c6c(0x1f7)][_0x330c6c(0x1c8)]({'placeholder':_0x28e9a6(this[_0x330c6c(0x202)],_0x330c6c(0x1d7))}),_0x244e2c;}[_0x50e4af(0x208)](){const _0x5eb378=_0x50e4af,_0x19a4cb=new _0x507a24(this[_0x5eb378(0x202)]);return _0x19a4cb[_0x5eb378(0x1c8)]({'icon':_0x5a5d4a,'tooltip':_0x28e9a6(this[_0x5eb378(0x202)],_0x5eb378(0x1e5)),'tooltipPosition':'n','class':_0x5eb378(0x1eb),'type':_0x5eb378(0x1e2),'isEnabled':!0x1}),_0x19a4cb;}[_0x50e4af(0x201)](){const _0x585a2b=_0x50e4af,_0x581d75=new _0x59abcc(this[_0x585a2b(0x202)],{'label':_0x28e9a6(this[_0x585a2b(0x202)],_0x585a2b(0x1e5)),'class':_0x585a2b(0x1d0)});_0x581d75[_0x585a2b(0x1d4)][_0x585a2b(0x1c7)](this[_0x585a2b(0x1f8)],0x0),this[_0x585a2b(0x1c6)]({'tag':_0x585a2b(0x200),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x581d75,{'tag':_0x585a2b(0x1d5),'attributes':{'class':nh},'children':[this[_0x585a2b(0x1df)],this[_0x585a2b(0x1e9)]]}]});}[_0x50e4af(0x1c1)](){const _0x6913f0=_0x50e4af;this[_0x6913f0(0x1f8)]['on'](_0x6913f0(0x1dc),()=>{const _0x285839=_0x6913f0;this[_0x285839(0x1fe)](),this[_0x285839(0x1c9)](_0x285839(0x1da));}),this[_0x6913f0(0x1df)][_0x6913f0(0x1f7)]['on'](_0x6913f0(0x1e0),()=>{const _0xcfcde0=_0x6913f0;this[_0xcfcde0(0x1ef)](),this[_0xcfcde0(0x1fa)](),this[_0xcfcde0(0x1c9)](_0xcfcde0(0x1d8));}),this['on'](_0x6913f0(0x1e2),_0x4080bf=>{const _0x3c20f8=_0x6913f0;_0x4080bf[_0x3c20f8(0x1f9)](),this[_0x3c20f8(0x1c5)]();});}[_0x50e4af(0x1cd)](){const _0x3f4c30=_0x50e4af;this[_0x3f4c30(0x1f0)][_0x3f4c30(0x1c8)](_0x3f4c30(0x1ff),(_0x5ca24d,_0x258115)=>{const _0x4b656a=_0x3f4c30;this[_0x4b656a(0x1fe)](),this[_0x4b656a(0x1c9)](_0x4b656a(0x1da)),_0x258115();});}[_0x50e4af(0x1c5)](){const _0x350145=_0x50e4af,_0x1e3bd9=this[_0x350145(0x1c4)]()[_0x350145(0x205)]();_0x1e3bd9?this[_0x350145(0x1ec)](_0x1e3bd9)?(this[_0x350145(0x1ef)](),this[_0x350145(0x1c9)](_0x350145(0x1e1),_0x1e3bd9)):this[_0x350145(0x1d6)](_0x28e9a6(this[_0x350145(0x202)],_0x350145(0x1ca))):this[_0x350145(0x1d6)](_0x28e9a6(this[_0x350145(0x202)],_0x350145(0x1fb)));}[_0x50e4af(0x1fa)](){const _0x47d78c=_0x50e4af,_0xc7673a=this[_0x47d78c(0x1c4)]()[_0x47d78c(0x205)](),_0x10bc4e=!!this[_0x47d78c(0x1df)][_0x47d78c(0x1cc)];this[_0x47d78c(0x1e9)][_0x47d78c(0x1ea)]=_0xc7673a[_0x47d78c(0x1c3)]>0x0&&!_0x10bc4e;}[_0x50e4af(0x1ec)](_0x32d4c2){try{return!!new URL(_0x32d4c2);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2330a2=_0x298f;(function(_0x5e5751,_0x602ef9){const _0xa48bc1=_0x298f,_0x368ccb=_0x5e5751();while(!![]){try{const _0x1fed01=-parseInt(_0xa48bc1(0x1ac))/0x1*(-parseInt(_0xa48bc1(0x189))/0x2)+-parseInt(_0xa48bc1(0x1c9))/0x3*(parseInt(_0xa48bc1(0x1b8))/0x4)+-parseInt(_0xa48bc1(0x208))/0x5+parseInt(_0xa48bc1(0x191))/0x6+-parseInt(_0xa48bc1(0x1dc))/0x7*(-parseInt(_0xa48bc1(0x1b6))/0x8)+-parseInt(_0xa48bc1(0x20c))/0x9*(-parseInt(_0xa48bc1(0x1de))/0xa)+parseInt(_0xa48bc1(0x1b3))/0xb*(-parseInt(_0xa48bc1(0x194))/0xc);if(_0x1fed01===_0x602ef9)break;else _0x368ccb['push'](_0x368ccb['shift']());}catch(_0x2e1e3b){_0x368ccb['push'](_0x368ccb['shift']());}}}(_0x456b,0xdd130));import{BalloonPanelView as _0x556ef8,ButtonView as _0x15cae6,clickOutsideHandler as _0x190e3f,FileDialogButtonView as _0xc3e90f,IconView as _0xef743,View as _0x4fe5fe}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x591a15,IconDocument as _0x506a7b,IconDocumentOutline as _0x2a83aa,IconDropdownArrow as _0x395458,IconLink as _0x323291,IconPaperClip as _0x3f6c31}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x16236e}from'./aichatcontextitembuttonview.js';function _0x456b(){const _0x308332=['clear','extendTemplate','clearCurrentContextItems','addContextButtonView','type','add','addResourceToContext','ck-ai-chat-controls_context_show-more-button','_handleAddContextButtonClick','105ZAYdzp','ck-ai-chat-context-chips-wrapper-balloon','__arrow','body','populateSourceResourceBalloon','isEnabled','current','files','ck-reset_all-excluded','ck-ai-chat-context-controls__pending-contexts','_urlBalloonPanelView','render','remove','setConversationContext','ck-ai-chat-controls-button','isOn','_handleUrlSubmit','balloonView','northArrowSouth','4210682WNMKMB','_urlInputView','17582210xSYFpx','_createUrlBalloonPanelView','icon','label','northArrowSouthWest','isAnyResourceBalloonVisible','refreshBalloon','source','_showSourceResourcesBalloon','arrowView','updateResourceState','_setupAllBalloonClickOutsideHandlers','overflowChips','southArrowNorthEast','ck-ai-chat-context-controls','locale','_setupUrlBalloonClickOutsideHandler','sources','urls','_addContextBalloonPanelView','defaultPositions','ck-ai-chat-context-controls__balloon-button','southArrowNorth','addContextItem','ck-ai-chat-context-controls__add-context-button','showUrlBalloonPanel','showAddContextBalloonPanel','cancel','conversation','ck-ai-chat','set','_createAddContextButtonView','AI_CHAT_CONTEXT_URL_LABEL','_toggleAddContextBalloon','_addContextToCollection','northArrowSouthEast','_currentContextsChips','_setBalloonPanelContent','createCollection','AI_CHAT_CONTEXT_FILE_LABEL','pin','loadSourceResources','5371425sHfIPW','addFileToContext','_createContextButton','ck-ai-chat-context-controls__add-context-balloon-panel','9OqsKbN','southArrowNorthWest','_getLimiterElement','_addUrlContent','menuitem','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__balloon-button-source','find','_overflowManager','_removeContextFromCollection','AI_CHAT_CONTEXT_ADD_CONTEXT','buttonView','hideAddContextBalloonPanel','_setupAddContextBalloonClickOutsideHandler','removeContextItemChip','4fzyKcR','done','addUrlToContext','hide','_conversationContextsChips','clearConversationContextItems','destroy','focus','10135068LXJmwU','document','reorganizeChips','319524parPsp','hideUrlBalloonPanel','enabled','_resourcesBalloonView','children','ck-ai-chat-context-controls__show-more-balloon-panel','isLoading','_createAddContextBalloonPanelView','fire','closest','show','_addContextBalloonConfig','closeSourceResourceBalloon','isVisible','_createResourcesBalloonView','content','isReadOnly','showSourceResourcesBalloon','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','bodyCollection','_createBalloonButton','div','execute','tooltip','842839zoKigH','setContextItemLoading','submitUrl','_setAddContextButtonEnabled','_bindEventHandlers','_createArrowView','removeContextItem','869KKjDmX','element','addDocumentToContext','8ovHzSr','_createBaseBalloonPanel','188716rQjcue','isHidden','setContainerElement','_setupTemplate','setTemplate','searchInputVisibleFrom','setAddContextOptions','bind'];_0x456b=function(){return _0x308332;};return _0x456b();}import{AIChatContextPanelUrlInputView as _0x4aff20}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x350c2c}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2ca9e0}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x50bad9}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2330a2(0x1b5),_0x2330a2(0x209),_0x2330a2(0x18b),_0x2330a2(0x1c6),_0x2330a2(0x1b2),_0x2330a2(0x207)];function _0x298f(_0x1cde0c,_0xf4fdb5){const _0x456b61=_0x456b();return _0x298f=function(_0x298f35,_0x28e5c7){_0x298f35=_0x298f35-0x180;let _0x48d8ff=_0x456b61[_0x298f35];return _0x48d8ff;},_0x298f(_0x1cde0c,_0xf4fdb5);}const Ao=_0x2330a2(0x1ec),ko=_0x2330a2(0x1d2),Eo=_0x2330a2(0x20b),vo=_0x2330a2(0x1f6),Vo=_0x2330a2(0x211),Io=_0x2330a2(0x1f3),Po=_0x2330a2(0x180),Ro=_0x2330a2(0x1d7),Uo=_0x2330a2(0x1ca),Lo=_0x2330a2(0x1c7),No=_0x2330a2(0x199),Oo=_0x2330a2(0x1fb),Mo=[_0x556ef8[_0x2330a2(0x1f2)][_0x2330a2(0x1e2)],_0x556ef8[_0x2330a2(0x1f2)][_0x2330a2(0x1db)],_0x556ef8[_0x2330a2(0x1f2)][_0x2330a2(0x201)],_0x556ef8[_0x2330a2(0x1f2)][_0x2330a2(0x20d)],_0x556ef8[_0x2330a2(0x1f2)][_0x2330a2(0x1f4)],_0x556ef8[_0x2330a2(0x1f2)][_0x2330a2(0x1eb)]];export class AIChatContextPanelView extends _0x4fe5fe{[_0x2330a2(0x1c3)];[_0x2330a2(0x202)]=this[_0x2330a2(0x204)]();[_0x2330a2(0x18d)]=this[_0x2330a2(0x204)]();[_0x2330a2(0x182)];[_0x2330a2(0x1f1)];[_0x2330a2(0x1d3)];[_0x2330a2(0x1dd)];[_0x2330a2(0x197)];[_0x2330a2(0x19f)];[_0x2330a2(0x1a7)];constructor(_0x4a983a,_0x38ccd7){const _0xb33d01=_0x2330a2;super(_0x4a983a),this[_0xb33d01(0x1a7)]=_0x38ccd7[_0xb33d01(0x1a7)],this[_0xb33d01(0x202)]=this[_0xb33d01(0x204)](),this[_0xb33d01(0x18d)]=this[_0xb33d01(0x204)](),this[_0xb33d01(0x1c3)]=this[_0xb33d01(0x1fd)](_0x4a983a),this[_0xb33d01(0x1f1)]=this[_0xb33d01(0x19b)](_0x4a983a),this[_0xb33d01(0x1d3)]=this[_0xb33d01(0x1df)](_0x4a983a),this[_0xb33d01(0x197)]=this[_0xb33d01(0x1a2)](_0x4a983a,_0x38ccd7);const _0x401865={'cssClasses':{'showMoreButton':Lo,'showMoreBalloon':No,'overflowContainer':Uo,'controlsButton':Ro}};this[_0xb33d01(0x182)]=new _0x350c2c(_0x4a983a,this[_0xb33d01(0x202)],_0x401865,this[_0xb33d01(0x1a7)],this),this[_0xb33d01(0x19f)]={'buttonView':this[_0xb33d01(0x1c3)],'balloonView':this[_0xb33d01(0x1f1)],'hideMethod':this[_0xb33d01(0x186)][_0xb33d01(0x1bf)](this),'showMethod':this[_0xb33d01(0x1f8)][_0xb33d01(0x1bf)](this)},this[_0xb33d01(0x1bb)](),this[_0xb33d01(0x1b0)]();}[_0x2330a2(0x1d4)](){const _0x115bad=_0x2330a2;super[_0x115bad(0x1d4)](),this[_0x115bad(0x1e9)](),this[_0x115bad(0x182)][_0x115bad(0x1ba)](this[_0x115bad(0x1b4)]),this[_0x115bad(0x182)][_0x115bad(0x193)]();}[_0x2330a2(0x18f)](){const _0x3d36d3=_0x2330a2;super[_0x3d36d3(0x18f)](),this[_0x3d36d3(0x182)][_0x3d36d3(0x18f)](),this[_0x3d36d3(0x197)][_0x3d36d3(0x18f)]();}[_0x2330a2(0x1f5)](_0x4bc7e1,_0xc45276){const _0x5940a2=_0x2330a2,_0x2727c2=this[_0x5940a2(0x20a)](_0x4bc7e1,_0x5940a2(0x1cf),!0x0,_0xc45276);this[_0x5940a2(0x200)](_0x2727c2,this[_0x5940a2(0x202)]),this[_0x5940a2(0x182)][_0x5940a2(0x193)]();}[_0x2330a2(0x1b2)](_0x32b159){const _0xa5ee7a=_0x2330a2;this[_0xa5ee7a(0x183)](_0x32b159,this[_0xa5ee7a(0x202)]),this[_0xa5ee7a(0x183)](_0x32b159,this[_0xa5ee7a(0x182)][_0xa5ee7a(0x1ea)]),this[_0xa5ee7a(0x182)][_0xa5ee7a(0x193)]();}[_0x2330a2(0x1ad)](_0x4d17f4,_0x5dcd86){const _0x4a4979=_0x2330a2;let _0x30ecbd=this[_0x4a4979(0x202)][_0x4a4979(0x181)](_0x5c4f1e=>_0x5c4f1e['id']===_0x4d17f4);_0x30ecbd||(_0x30ecbd=this[_0x4a4979(0x182)][_0x4a4979(0x1ea)][_0x4a4979(0x181)](_0x42525d=>_0x42525d['id']===_0x4d17f4)),_0x30ecbd&&(_0x30ecbd[_0x4a4979(0x19a)]=_0x5dcd86);}[_0x2330a2(0x1d6)](_0x27dfe4){const _0x81d5b4=_0x2330a2;this[_0x81d5b4(0x18d)][_0x81d5b4(0x1c0)]();for(const _0x2425db of _0x27dfe4){const _0x2d1e69=this[_0x81d5b4(0x20a)](_0x2425db,_0x81d5b4(0x1fa),!0x1,!0x1);this[_0x81d5b4(0x200)](_0x2d1e69,this[_0x81d5b4(0x18d)]);}}[_0x2330a2(0x1c2)](){const _0x17e353=_0x2330a2;this[_0x17e353(0x202)][_0x17e353(0x1c0)](),this[_0x17e353(0x182)][_0x17e353(0x1c0)]();}[_0x2330a2(0x18e)](){const _0x39515e=_0x2330a2;this[_0x39515e(0x18d)][_0x39515e(0x1c0)]();}[_0x2330a2(0x1e8)](_0x3d6c79,_0x41857e,_0x3a17e0){const _0x346b1b=_0x2330a2;this[_0x346b1b(0x197)][_0x346b1b(0x1e8)](_0x3d6c79,_0x41857e,_0x3a17e0);}[_0x2330a2(0x186)](){const _0xd9f544=_0x2330a2;this[_0xd9f544(0x1ff)](!0x1);}[_0x2330a2(0x1f8)](){const _0x401e33=_0x2330a2;this[_0x401e33(0x1ff)](!0x0);}[_0x2330a2(0x195)](){const _0x4d5a8f=_0x2330a2;this[_0x4d5a8f(0x1d3)][_0x4d5a8f(0x18c)](),this[_0x4d5a8f(0x1c3)][_0x4d5a8f(0x1d8)]=!0x1,this[_0x4d5a8f(0x1dd)]&&this[_0x4d5a8f(0x1dd)][_0x4d5a8f(0x1c0)]();}[_0x2330a2(0x1f7)](){const _0xbc358d=_0x2330a2;this[_0xbc358d(0x1d3)][_0xbc358d(0x19e)](),this[_0xbc358d(0x1c3)][_0xbc358d(0x1d8)]=!0x0;}[_0x2330a2(0x1e6)](_0x177ebd){const _0x168307=_0x2330a2;this[_0x168307(0x197)][_0x168307(0x1a5)](_0x177ebd),this[_0x168307(0x1c3)][_0x168307(0x1d8)]=!0x0;}[_0x2330a2(0x1cd)](_0x2bc32b,_0x151430,_0x1ba9c1,_0x5cd60d){const _0x44156f=_0x2330a2;this[_0x44156f(0x197)][_0x44156f(0x1cd)](_0x2bc32b,_0x1ba9c1,_0x5cd60d);}[_0x2330a2(0x1a0)](_0x557d0e){const _0x1191b5=_0x2330a2;this[_0x1191b5(0x197)][_0x1191b5(0x1a0)](_0x557d0e),this[_0x1191b5(0x1c3)][_0x1191b5(0x1d8)]=!0x1;}[_0x2330a2(0x1be)](_0x3bdfdd){const _0x12e57c=_0x2330a2;this[_0x12e57c(0x203)](this[_0x12e57c(0x1f1)],this[_0x12e57c(0x1ed)],_0x3bdfdd),this[_0x12e57c(0x1af)](_0x3bdfdd);}[_0x2330a2(0x1af)](_0x199a73){const _0x5a7f7f=_0x2330a2,_0x3ad681=!_0x199a73[_0x5a7f7f(0x192)][_0x5a7f7f(0x1b9)]&&_0x199a73[_0x5a7f7f(0x192)][_0x5a7f7f(0x196)],_0x4b49f6=_0x199a73[_0x5a7f7f(0x1f0)][_0x5a7f7f(0x196)],_0x120d55=_0x199a73[_0x5a7f7f(0x1d0)][_0x5a7f7f(0x196)];this[_0x5a7f7f(0x1c3)][_0x5a7f7f(0x1ce)]=_0x3ad681||_0x4b49f6||_0x120d55;}[_0x2330a2(0x1bb)](){const _0x315120=_0x2330a2;this[_0x315120(0x1bc)]({'tag':_0x315120(0x1a9),'attributes':{'class':[Ao,_0x315120(0x1d1)]},'children':[{'tag':_0x315120(0x1a9),'attributes':{'class':ko},'children':this[_0x315120(0x202)]}]});}[_0x2330a2(0x1b0)](){const _0x11dad8=_0x2330a2;this[_0x11dad8(0x1c3)]['on'](_0x11dad8(0x1aa),()=>{const _0x2c5cad=_0x11dad8;this[_0x2c5cad(0x1c8)]();});}[_0x2330a2(0x1fd)](_0x2b2e03){const _0xff3464=_0x2330a2,_0xaf4b9b=new _0x15cae6(_0x2b2e03);return _0xaf4b9b[_0xff3464(0x1fc)]({'label':_0x2ca9e0(_0x2b2e03,_0xff3464(0x184)),'class':Ro+'\x20'+vo,'icon':_0x3f6c31,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0xaf4b9b;}[_0x2330a2(0x19b)](_0x348135){const _0xcb68a6=_0x2330a2;return this[_0xcb68a6(0x1b7)](_0x348135,Eo);}[_0x2330a2(0x1df)](_0x16ac9a){const _0x168882=_0x2330a2,_0x1e8088=this[_0x168882(0x1b7)](_0x16ac9a,Vo);return this[_0x168882(0x20f)](_0x1e8088,_0x16ac9a),_0x1e8088;}[_0x2330a2(0x1a2)](_0x283cc5,_0x17bf23){const _0x500267=_0x2330a2,_0x38414a={'searchInputVisibleFrom':_0x17bf23[_0x500267(0x1bd)],'onBackToContext':()=>{const _0x1f1aa9=_0x500267;this[_0x1f1aa9(0x1f8)](),this[_0x1f1aa9(0x1f1)][_0x1f1aa9(0x206)]({'target':this[_0x1f1aa9(0x1c3)][_0x1f1aa9(0x1b4)],'limiter':this[_0x1f1aa9(0x20e)](),'positions':Mo});},'onResourceSelected':(_0x2e4381,_0x463129)=>{const _0x347aee=_0x500267;this[_0x347aee(0x19c)](_0x347aee(0x1c6),{'source':_0x2e4381,'resource':_0x463129});},'onLoadSourceResources':_0x3654bd=>{const _0x5175f7=_0x500267;this[_0x5175f7(0x19c)](_0x5175f7(0x207),_0x3654bd);},'onBalloonClosed':()=>{const _0x2206c7=_0x500267;this[_0x2206c7(0x1c3)][_0x2206c7(0x1d8)]=!0x1;},'getLimiterElement':()=>this[_0x500267(0x20e)](),'getTargetElement':()=>this[_0x500267(0x1c3)][_0x500267(0x1b4)]};return new _0x50bad9(_0x283cc5,_0x17bf23[_0x500267(0x1a7)],_0x38414a);}[_0x2330a2(0x20e)](){const _0x2311d5=_0x2330a2;return this[_0x2311d5(0x1b4)]?.[_0x2311d5(0x19d)]('.'+Oo)||document[_0x2311d5(0x1cc)];}[_0x2330a2(0x1b7)](_0x53c084,_0x14e585){const _0x174cb0=_0x2330a2,_0xedf6a0=new _0x556ef8(_0x53c084);return _0xedf6a0[_0x174cb0(0x1c1)]({'attributes':{'class':_0x14e585}}),this[_0x174cb0(0x1a7)][_0x174cb0(0x1c5)](_0xedf6a0),_0xedf6a0;}[_0x2330a2(0x203)](_0x2c369b,_0x523e27,_0x3dd2bd){const _0x1c5a67=_0x2330a2;if(_0x2c369b[_0x1c5a67(0x1a3)][_0x1c5a67(0x1c0)](),!_0x3dd2bd[_0x1c5a67(0x192)][_0x1c5a67(0x1b9)]&&_0x3dd2bd[_0x1c5a67(0x192)][_0x1c5a67(0x196)]){const _0x4144a3=this[_0x1c5a67(0x1a8)](_0x523e27,{'label':_0x2ca9e0(_0x523e27,_0x1c5a67(0x1a6)),'icon':_0x506a7b});_0x4144a3['on'](_0x1c5a67(0x1aa),()=>{const _0x356476=_0x1c5a67;this[_0x356476(0x19c)](_0x356476(0x1b5)),this[_0x356476(0x186)]();}),_0x2c369b[_0x1c5a67(0x1a3)][_0x1c5a67(0x1c5)](_0x4144a3);}if(_0x3dd2bd[_0x1c5a67(0x1f0)][_0x1c5a67(0x196)]){const _0x49abc9=this[_0x1c5a67(0x1a8)](_0x523e27,{'label':_0x2ca9e0(_0x523e27,_0x1c5a67(0x1fe)),'icon':_0x323291});_0x49abc9['on'](_0x1c5a67(0x1aa),()=>{const _0x493818=_0x1c5a67;this[_0x493818(0x186)](),this[_0x493818(0x1f7)](),this[_0x493818(0x1d3)][_0x493818(0x206)]({'target':this[_0x493818(0x1c3)][_0x493818(0x1b4)],'limiter':this[_0x493818(0x20e)](),'positions':Mo}),this[_0x493818(0x1dd)][_0x493818(0x190)]();}),_0x2c369b[_0x1c5a67(0x1a3)][_0x1c5a67(0x1c5)](_0x49abc9);}if(_0x3dd2bd[_0x1c5a67(0x1d0)][_0x1c5a67(0x196)]){const _0x532fc6=new _0xc3e90f(_0x523e27);_0x532fc6[_0x1c5a67(0x1fc)]({'label':_0x2ca9e0(_0x523e27,_0x1c5a67(0x205)),'icon':_0x591a15,'withText':!0x0,'tooltip':!0x0,'class':Io,'allowMultipleFiles':!0x0}),_0x532fc6['on'](_0x1c5a67(0x18a),(_0x30b026,_0xbb7520)=>{const _0x5c9558=_0x1c5a67;this[_0x5c9558(0x19c)](_0x5c9558(0x209),_0xbb7520),this[_0x5c9558(0x186)]();}),_0x532fc6[_0x1c5a67(0x1ab)]=!0x0,_0x2c369b[_0x1c5a67(0x1a3)][_0x1c5a67(0x1c5)](_0x532fc6);}for(const _0x5bcad2 of _0x3dd2bd[_0x1c5a67(0x1ef)]){const _0x1ed346=this[_0x1c5a67(0x1a8)](_0x523e27,{'label':_0x5bcad2[_0x1c5a67(0x1e1)],'icon':_0x5bcad2[_0x1c5a67(0x1e0)]||_0x2a83aa,'type':_0x1c5a67(0x1e5)});_0x2c369b[_0x1c5a67(0x1a3)][_0x1c5a67(0x1c5)](_0x1ed346),_0x1ed346['on'](_0x1c5a67(0x1aa),()=>{const _0x34f944=_0x1c5a67;this[_0x34f944(0x186)](),this[_0x34f944(0x1e6)](_0x5bcad2);});}}[_0x2330a2(0x20f)](_0x1adce1,_0x814204){const _0x5bd0ea=_0x2330a2;this[_0x5bd0ea(0x1dd)]=new _0x4aff20(_0x814204),this[_0x5bd0ea(0x1dd)]['on'](_0x5bd0ea(0x1ae),(_0x225075,_0x41b70c)=>{const _0x6091aa=_0x5bd0ea;this[_0x6091aa(0x1d9)](_0x41b70c);}),this[_0x5bd0ea(0x1dd)]['on'](_0x5bd0ea(0x1f9),()=>{const _0x4cf8c9=_0x5bd0ea;this[_0x4cf8c9(0x195)](),this[_0x4cf8c9(0x1f8)](),this[_0x4cf8c9(0x1f1)][_0x4cf8c9(0x206)]({'target':this[_0x4cf8c9(0x1c3)][_0x4cf8c9(0x1b4)],'limiter':this[_0x4cf8c9(0x20e)](),'positions':Mo});}),this[_0x5bd0ea(0x1dd)]['on'](_0x5bd0ea(0x1e4),()=>{const _0x41b380=_0x5bd0ea;this[_0x41b380(0x1d3)][_0x41b380(0x1a1)]&&this[_0x41b380(0x1d3)][_0x41b380(0x206)]({'target':this[_0x41b380(0x1c3)][_0x41b380(0x1b4)],'limiter':this[_0x41b380(0x20e)](),'positions':Mo});}),_0x1adce1[_0x5bd0ea(0x1a3)][_0x5bd0ea(0x1c5)](this[_0x5bd0ea(0x1dd)]);}[_0x2330a2(0x1a8)](_0x55b924,_0xc75824){const _0x566c15=_0x2330a2,_0x45e4b9=_0x566c15(0x1e5)===_0xc75824[_0x566c15(0x1c4)]?new SourcesBalloonButtonView(_0x55b924):new _0x15cae6(_0x55b924);return _0x45e4b9[_0x566c15(0x1fc)]({'label':_0xc75824[_0x566c15(0x1e1)],'icon':_0xc75824[_0x566c15(0x1e0)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Io}),_0x45e4b9;}[_0x2330a2(0x1e9)](){const _0x1c0789=_0x2330a2;this[_0x1c0789(0x187)](),this[_0x1c0789(0x1ee)]();}[_0x2330a2(0x1ee)](){const _0x147ac3=_0x2330a2;_0x190e3f({'emitter':this[_0x147ac3(0x1d3)],'contextElements':[this[_0x147ac3(0x1d3)][_0x147ac3(0x1b4)]],'callback':()=>{const _0x174ac6=_0x147ac3;this[_0x174ac6(0x195)]();},'activator':()=>this[_0x147ac3(0x1d3)][_0x147ac3(0x1a1)]});}[_0x2330a2(0x1ff)](_0x1da195){const _0x47056d=_0x2330a2,_0xa53c74=this[_0x47056d(0x19f)];_0xa53c74[_0x47056d(0x185)][_0x47056d(0x1d8)]=_0x1da195,_0x1da195?_0xa53c74[_0x47056d(0x1da)][_0x47056d(0x19e)]():_0xa53c74[_0x47056d(0x1da)][_0x47056d(0x18c)]();}[_0x2330a2(0x187)](){const _0xca6ce0=_0x2330a2,{balloonView:_0xc30c30,buttonView:_0xa73840,hideMethod:_0x292fc0}=this[_0xca6ce0(0x19f)];_0x190e3f({'emitter':_0xc30c30,'contextElements':[_0xc30c30[_0xca6ce0(0x1b4)],_0xa73840[_0xca6ce0(0x1b4)]],'callback':()=>{_0x292fc0();},'activator':()=>_0xa73840[_0xca6ce0(0x1d8)]&&!this[_0xca6ce0(0x1d3)][_0xca6ce0(0x1a1)]&&!this[_0xca6ce0(0x197)][_0xca6ce0(0x1e3)]()});}[_0x2330a2(0x20a)](_0x53c885,_0x28db05,_0x50168b=!0x1,_0x27a9f3=!0x1){const _0x4232d0=_0x2330a2,_0x7381d5=_0x4232d0(0x1fa)===_0x28db05||!0x0===_0x53c885[_0x4232d0(0x1a4)],_0x165fcb=new _0x16236e(this[_0x4232d0(0x1ed)],_0x53c885,_0x7381d5,_0x50168b,_0x27a9f3);return _0x7381d5||_0x165fcb['on'](_0x4232d0(0x188),()=>{const _0x388b76=_0x4232d0;this[_0x388b76(0x19c)](_0x388b76(0x1b2),_0x165fcb['id']);}),_0x165fcb;}[_0x2330a2(0x200)](_0x5e06f9,_0x3e35d1){const _0x2cc3e2=_0x2330a2;_0x3e35d1[_0x2cc3e2(0x1c5)](_0x5e06f9,0x0);}[_0x2330a2(0x183)](_0x18a5ef,_0x445808){const _0x2f51b0=_0x2330a2,_0x4d97ef=_0x445808[_0x2f51b0(0x181)](_0x3037a7=>_0x3037a7['id']===_0x18a5ef);_0x4d97ef&&_0x445808[_0x2f51b0(0x1d5)](_0x4d97ef);}[_0x2330a2(0x1c8)](){const _0x5e35aa=_0x2330a2;this[_0x5e35aa(0x1c3)][_0x5e35aa(0x1d8)]?this[_0x5e35aa(0x186)]():(this[_0x5e35aa(0x1f8)](),this[_0x5e35aa(0x1f1)][_0x5e35aa(0x206)]({'target':this[_0x5e35aa(0x1c3)][_0x5e35aa(0x1b4)],'limiter':this[_0x5e35aa(0x20e)](),'positions':Mo}));}[_0x2330a2(0x1d9)](_0x175983){const _0x34aed0=_0x2330a2;this[_0x34aed0(0x1dd)][_0x34aed0(0x1c0)](),this[_0x34aed0(0x195)](),this[_0x34aed0(0x19c)](_0x34aed0(0x18b),_0x175983);}}export class SourcesBalloonButtonView extends _0x15cae6{[_0x2330a2(0x1e7)];constructor(_0x10680f){const _0x965606=_0x2330a2;super(_0x10680f),this[_0x965606(0x1fc)]({'withText':!0x0,'role':_0x965606(0x210)}),this[_0x965606(0x1e7)]=this[_0x965606(0x1b1)](),this[_0x965606(0x1c1)]({'attributes':{'class':[Po]}});}[_0x2330a2(0x1d4)](){const _0x2a9913=_0x2330a2;super[_0x2a9913(0x1d4)](),this[_0x2a9913(0x198)][_0x2a9913(0x1c5)](this[_0x2a9913(0x1e7)]);}[_0x2330a2(0x1b1)](){const _0x6a2559=_0x2330a2,_0x7e8a3e=new _0xef743();return _0x7e8a3e[_0x6a2559(0x1a3)]=_0x395458,_0x7e8a3e[_0x6a2559(0x1c1)]({'attributes':{'class':Po+_0x6a2559(0x1cb)}}),_0x7e8a3e;}}
|
|
23
|
+
function _0x1248(){const _0x49edad=['extendTemplate','isAnyResourceBalloonVisible','_urlInputView','label','reorganizeChips','destroy','northArrowSouthEast','execute','southArrowNorthEast','render','_createAddContextBalloonPanelView','_setupTemplate','4bkUYch','_setBalloonPanelContent','_conversationContextsChips','done','15068LBcvfm','130YeKMcW','icon','type','files','addUrlToContext','hide','removeContextItem','83574rfbvba','_createResourcesBalloonView','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__show-more-balloon-panel','3108130PsOCEq','set','setContextItemLoading','_removeContextFromCollection','ck-ai-chat-context-chips-wrapper-balloon','locale','focus','fire','current','cancel','document','tooltip','element','_resourcesBalloonView','southArrowNorth','sources','isHidden','enabled','AI_CHAT_CONTEXT_URL_LABEL','_showSourceResourcesBalloon','show','273sXrlCj','southArrowNorthWest','_createBaseBalloonPanel','closeSourceResourceBalloon','showAddContextBalloonPanel','isReadOnly','ck-ai-chat-context-controls__add-context-balloon-panel','ck-ai-chat-context-controls__pending-contexts','add','body','_handleAddContextButtonClick','_createBalloonButton','ck-ai-chat-context-controls__balloon-button','bodyCollection','updateResourceState','pin','setTemplate','ck-ai-chat-controls-button','13ECBloV','northArrowSouth','126uJscLH','_createContextButton','removeContextItemChip','_addContextBalloonPanelView','addContextButtonView','populateSourceResourceBalloon','showUrlBalloonPanel','div','addResourceToContext','showSourceResourcesBalloon','_getLimiterElement','_createAddContextButtonView','urls','18hDQMdc','hideAddContextBalloonPanel','addDocumentToContext','ck-ai-chat-context-controls','closest','hideUrlBalloonPanel','remove','clearCurrentContextItems','815368vsEhjD','AI_CHAT_CONTEXT_FILE_LABEL','addFileToContext','isEnabled','overflowChips','isLoading','defaultPositions','ck-ai-chat','_addContextBalloonConfig','ck-ai-chat-context-controls__balloon-button-source','searchInputVisibleFrom','source','children','_setupAddContextBalloonClickOutsideHandler','loadSourceResources','_currentContextsChips','refreshBalloon','_toggleAddContextBalloon','_handleUrlSubmit','121803EtLLLw','bind','_addUrlContent','setContainerElement','_overflowManager','addContextItem','_addContextToCollection','_setupUrlBalloonClickOutsideHandler','clear','conversation','setAddContextOptions','northArrowSouthWest','ck-reset_all-excluded','createCollection','1465941cEwoUN','isOn','clearConversationContextItems','buttonView','ck-ai-chat-context-controls__add-context-button','__arrow','_createArrowView','find','setConversationContext','arrowView','_setAddContextButtonEnabled','572964KnpiJj','menuitem','balloonView','content','_createUrlBalloonPanelView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','submitUrl','isVisible','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_ADD_CONTEXT','_setupAllBalloonClickOutsideHandlers','_urlBalloonPanelView','_bindEventHandlers'];_0x1248=function(){return _0x49edad;};return _0x1248();}function _0x41a2(_0x109098,_0x1ff7fb){const _0x124886=_0x1248();return _0x41a2=function(_0x41a237,_0x1828cf){_0x41a237=_0x41a237-0x1b2;let _0x1fd7ed=_0x124886[_0x41a237];return _0x1fd7ed;},_0x41a2(_0x109098,_0x1ff7fb);}const _0x23ab82=_0x41a2;(function(_0x26ad5b,_0x500510){const _0x52a4f4=_0x41a2,_0x2bef76=_0x26ad5b();while(!![]){try{const _0x2d7268=parseInt(_0x52a4f4(0x223))/0x1*(-parseInt(_0x52a4f4(0x1f0))/0x2)+parseInt(_0x52a4f4(0x1c8))/0x3+parseInt(_0x52a4f4(0x1ec))/0x4*(parseInt(_0x52a4f4(0x1fc))/0x5)+-parseInt(_0x52a4f4(0x1f8))/0x6*(-parseInt(_0x52a4f4(0x225))/0x7)+-parseInt(_0x52a4f4(0x23a))/0x8*(-parseInt(_0x52a4f4(0x232))/0x9)+-parseInt(_0x52a4f4(0x1f1))/0xa*(parseInt(_0x52a4f4(0x1ba))/0xb)+parseInt(_0x52a4f4(0x1d3))/0xc*(-parseInt(_0x52a4f4(0x211))/0xd);if(_0x2d7268===_0x500510)break;else _0x2bef76['push'](_0x2bef76['shift']());}catch(_0x384513){_0x2bef76['push'](_0x2bef76['shift']());}}}(_0x1248,0x4e303));import{BalloonPanelView as _0x2bbc6f,ButtonView as _0x1996eb,clickOutsideHandler as _0x10455b,FileDialogButtonView as _0x362151,IconView as _0xb8700c,View as _0x5bafce}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x501175,IconDocument as _0xc38f9c,IconDocumentOutline as _0x3d019b,IconDropdownArrow as _0x3ca4c6,IconLink as _0xe9d30,IconPaperClip as _0x621e21}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x22d8fa}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x205b65}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x4d0c36}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x20c29a}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x58929c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x23ab82(0x234),_0x23ab82(0x23c),_0x23ab82(0x1f5),_0x23ab82(0x22d),_0x23ab82(0x1f7),_0x23ab82(0x1b5)];const ko=_0x23ab82(0x235),Eo=_0x23ab82(0x218),vo=_0x23ab82(0x217),Vo=_0x23ab82(0x1cc),Io=_0x23ab82(0x1fa),Po=_0x23ab82(0x21d),Ro=_0x23ab82(0x243),Uo=_0x23ab82(0x222),Lo=_0x23ab82(0x200),No=_0x23ab82(0x1db),Oo=_0x23ab82(0x1fb),Mo=_0x23ab82(0x241),Ho=[_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x1c5)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x224)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x1e6)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x212)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x20a)],_0x2bbc6f[_0x23ab82(0x240)][_0x23ab82(0x1e8)]];export class AIChatContextPanelView extends _0x5bafce{[_0x23ab82(0x229)];[_0x23ab82(0x1b6)]=this[_0x23ab82(0x1c7)]();[_0x23ab82(0x1ee)]=this[_0x23ab82(0x1c7)]();[_0x23ab82(0x1be)];[_0x23ab82(0x228)];[_0x23ab82(0x1de)];[_0x23ab82(0x1e2)];[_0x23ab82(0x209)];[_0x23ab82(0x242)];[_0x23ab82(0x21e)];constructor(_0x2a6e82,_0x52ce9d){const _0x5240fe=_0x23ab82;super(_0x2a6e82),this[_0x5240fe(0x21e)]=_0x52ce9d[_0x5240fe(0x21e)],this[_0x5240fe(0x1b6)]=this[_0x5240fe(0x1c7)](),this[_0x5240fe(0x1ee)]=this[_0x5240fe(0x1c7)](),this[_0x5240fe(0x229)]=this[_0x5240fe(0x230)](_0x2a6e82),this[_0x5240fe(0x228)]=this[_0x5240fe(0x1ea)](_0x2a6e82),this[_0x5240fe(0x1de)]=this[_0x5240fe(0x1d7)](_0x2a6e82),this[_0x5240fe(0x209)]=this[_0x5240fe(0x1f9)](_0x2a6e82,_0x52ce9d);const _0x5d6cc8={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x5240fe(0x1be)]=new _0x4d0c36(_0x2a6e82,this[_0x5240fe(0x1b6)],_0x5d6cc8,this[_0x5240fe(0x21e)],this),this[_0x5240fe(0x242)]={'buttonView':this[_0x5240fe(0x229)],'balloonView':this[_0x5240fe(0x228)],'hideMethod':this[_0x5240fe(0x233)][_0x5240fe(0x1bb)](this),'showMethod':this[_0x5240fe(0x215)][_0x5240fe(0x1bb)](this)},this[_0x5240fe(0x1eb)](),this[_0x5240fe(0x1df)]();}[_0x23ab82(0x1e9)](){const _0x10b18b=_0x23ab82;super[_0x10b18b(0x1e9)](),this[_0x10b18b(0x1dd)](),this[_0x10b18b(0x1be)][_0x10b18b(0x1bd)](this[_0x10b18b(0x208)]),this[_0x10b18b(0x1be)][_0x10b18b(0x1e4)]();}[_0x23ab82(0x1e5)](){const _0x319ddd=_0x23ab82;super[_0x319ddd(0x1e5)](),this[_0x319ddd(0x1be)][_0x319ddd(0x1e5)](),this[_0x319ddd(0x209)][_0x319ddd(0x1e5)]();}[_0x23ab82(0x1bf)](_0x4a3e56,_0x29ee7d){const _0x31b9ff=_0x23ab82,_0x5d8e5c=this[_0x31b9ff(0x226)](_0x4a3e56,_0x31b9ff(0x204),!0x0,_0x29ee7d);this[_0x31b9ff(0x1c0)](_0x5d8e5c,this[_0x31b9ff(0x1b6)]),this[_0x31b9ff(0x1be)][_0x31b9ff(0x1e4)]();}[_0x23ab82(0x1f7)](_0x42d914){const _0x2fd556=_0x23ab82;this[_0x2fd556(0x1ff)](_0x42d914,this[_0x2fd556(0x1b6)]),this[_0x2fd556(0x1ff)](_0x42d914,this[_0x2fd556(0x1be)][_0x2fd556(0x23e)]),this[_0x2fd556(0x1be)][_0x2fd556(0x1e4)]();}[_0x23ab82(0x1fe)](_0x126ddd,_0x166b35){const _0xc1d0f6=_0x23ab82;let _0x488fc2=this[_0xc1d0f6(0x1b6)][_0xc1d0f6(0x1cf)](_0x541408=>_0x541408['id']===_0x126ddd);_0x488fc2||(_0x488fc2=this[_0xc1d0f6(0x1be)][_0xc1d0f6(0x23e)][_0xc1d0f6(0x1cf)](_0x27521b=>_0x27521b['id']===_0x126ddd)),_0x488fc2&&(_0x488fc2[_0xc1d0f6(0x23f)]=_0x166b35);}[_0x23ab82(0x1d0)](_0x18cb0d){const _0x162a52=_0x23ab82;this[_0x162a52(0x1ee)][_0x162a52(0x1c2)]();for(const _0x537cca of _0x18cb0d){const _0x54364f=this[_0x162a52(0x226)](_0x537cca,_0x162a52(0x1c3),!0x1,!0x1);this[_0x162a52(0x1c0)](_0x54364f,this[_0x162a52(0x1ee)]);}}[_0x23ab82(0x239)](){const _0x343482=_0x23ab82;this[_0x343482(0x1b6)][_0x343482(0x1c2)](),this[_0x343482(0x1be)][_0x343482(0x1c2)]();}[_0x23ab82(0x1ca)](){const _0x2f2d64=_0x23ab82;this[_0x2f2d64(0x1ee)][_0x2f2d64(0x1c2)]();}[_0x23ab82(0x21f)](_0x51562a,_0x64324f,_0x544016){const _0x419ac6=_0x23ab82;this[_0x419ac6(0x209)][_0x419ac6(0x21f)](_0x51562a,_0x64324f,_0x544016);}[_0x23ab82(0x233)](){const _0x449a81=_0x23ab82;this[_0x449a81(0x1b8)](!0x1);}[_0x23ab82(0x215)](){const _0xf82d79=_0x23ab82;this[_0xf82d79(0x1b8)](!0x0);}[_0x23ab82(0x237)](){const _0x3ce0dc=_0x23ab82;this[_0x3ce0dc(0x1de)][_0x3ce0dc(0x1f6)](),this[_0x3ce0dc(0x229)][_0x3ce0dc(0x1c9)]=!0x1,this[_0x3ce0dc(0x1e2)]&&this[_0x3ce0dc(0x1e2)][_0x3ce0dc(0x1c2)]();}[_0x23ab82(0x22b)](){const _0xdd85c1=_0x23ab82;this[_0xdd85c1(0x1de)][_0xdd85c1(0x210)](),this[_0xdd85c1(0x229)][_0xdd85c1(0x1c9)]=!0x0;}[_0x23ab82(0x20f)](_0x35b38e){const _0x17c1c7=_0x23ab82;this[_0x17c1c7(0x209)][_0x17c1c7(0x22e)](_0x35b38e),this[_0x17c1c7(0x229)][_0x17c1c7(0x1c9)]=!0x0;}[_0x23ab82(0x22a)](_0x18453a,_0xa78cfe,_0x1a04ba,_0x32c56b){const _0x529484=_0x23ab82;this[_0x529484(0x209)][_0x529484(0x22a)](_0x18453a,_0x1a04ba,_0x32c56b);}[_0x23ab82(0x214)](_0x231bf1){const _0x2ac5af=_0x23ab82;this[_0x2ac5af(0x209)][_0x2ac5af(0x214)](_0x231bf1),this[_0x2ac5af(0x229)][_0x2ac5af(0x1c9)]=!0x1;}[_0x23ab82(0x1c4)](_0x204b45){const _0x165968=_0x23ab82;this[_0x165968(0x1ed)](this[_0x165968(0x228)],this[_0x165968(0x201)],_0x204b45),this[_0x165968(0x1d2)](_0x204b45);}[_0x23ab82(0x1d2)](_0x200719){const _0x194da2=_0x23ab82,_0x52980d=!_0x200719[_0x194da2(0x206)][_0x194da2(0x20c)]&&_0x200719[_0x194da2(0x206)][_0x194da2(0x20d)],_0x3af385=_0x200719[_0x194da2(0x231)][_0x194da2(0x20d)],_0x191fef=_0x200719[_0x194da2(0x1f4)][_0x194da2(0x20d)];this[_0x194da2(0x229)][_0x194da2(0x23d)]=_0x52980d||_0x3af385||_0x191fef;}[_0x23ab82(0x1eb)](){const _0x83354f=_0x23ab82;this[_0x83354f(0x221)]({'tag':_0x83354f(0x22c),'attributes':{'class':[ko,_0x83354f(0x1c6)]},'children':[{'tag':_0x83354f(0x22c),'attributes':{'class':Eo},'children':this[_0x83354f(0x1b6)]}]});}[_0x23ab82(0x1df)](){const _0x14229f=_0x23ab82;this[_0x14229f(0x229)]['on'](_0x14229f(0x1e7),()=>{const _0x5ac428=_0x14229f;this[_0x5ac428(0x21b)]();});}[_0x23ab82(0x230)](_0x431efa){const _0x254ca6=_0x23ab82,_0x247cce=new _0x1996eb(_0x431efa);return _0x247cce[_0x254ca6(0x1fd)]({'label':_0x20c29a(_0x431efa,_0x254ca6(0x1dc)),'class':Uo+'\x20'+Vo,'icon':_0x621e21,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x247cce;}[_0x23ab82(0x1ea)](_0x10b684){const _0x2a1bf0=_0x23ab82;return this[_0x2a1bf0(0x213)](_0x10b684,vo);}[_0x23ab82(0x1d7)](_0xc5803b){const _0x15d361=_0x23ab82,_0x9aadbb=this[_0x15d361(0x213)](_0xc5803b,Io);return this[_0x15d361(0x1bc)](_0x9aadbb,_0xc5803b),_0x9aadbb;}[_0x23ab82(0x1f9)](_0x3a9dcd,_0x3c5b90){const _0x2aa851=_0x23ab82,_0x3a3e0b={'searchInputVisibleFrom':_0x3c5b90[_0x2aa851(0x244)],'onBackToContext':()=>{const _0x1b3ae8=_0x2aa851;this[_0x1b3ae8(0x215)](),this[_0x1b3ae8(0x228)][_0x1b3ae8(0x220)]({'target':this[_0x1b3ae8(0x229)][_0x1b3ae8(0x208)],'limiter':this[_0x1b3ae8(0x22f)](),'positions':Ho});},'onResourceSelected':(_0x1a8f83,_0x559162)=>{const _0x11a3dc=_0x2aa851;this[_0x11a3dc(0x203)](_0x11a3dc(0x22d),{'source':_0x1a8f83,'resource':_0x559162});},'onLoadSourceResources':_0x11433d=>{const _0x359cb8=_0x2aa851;this[_0x359cb8(0x203)](_0x359cb8(0x1b5),_0x11433d);},'onBalloonClosed':()=>{const _0x490e86=_0x2aa851;this[_0x490e86(0x229)][_0x490e86(0x1c9)]=!0x1;},'getLimiterElement':()=>this[_0x2aa851(0x22f)](),'getTargetElement':()=>this[_0x2aa851(0x229)][_0x2aa851(0x208)]};return new _0x58929c(_0x3a9dcd,_0x3c5b90[_0x2aa851(0x21e)],_0x3a3e0b);}[_0x23ab82(0x22f)](){const _0x114b19=_0x23ab82;return this[_0x114b19(0x208)]?.[_0x114b19(0x236)]('.'+Mo)||document[_0x114b19(0x21a)];}[_0x23ab82(0x213)](_0x28097e,_0x3c9b30){const _0x7718ea=_0x23ab82,_0x27a591=new _0x2bbc6f(_0x28097e);return _0x27a591[_0x7718ea(0x1e0)]({'attributes':{'class':_0x3c9b30}}),this[_0x7718ea(0x21e)][_0x7718ea(0x219)](_0x27a591),_0x27a591;}[_0x23ab82(0x1ed)](_0x34fda8,_0x2e761e,_0x281b5f){const _0x2a4688=_0x23ab82;if(_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x1c2)](),!_0x281b5f[_0x2a4688(0x206)][_0x2a4688(0x20c)]&&_0x281b5f[_0x2a4688(0x206)][_0x2a4688(0x20d)]){const _0x5f28ba=this[_0x2a4688(0x21c)](_0x2e761e,{'label':_0x20c29a(_0x2e761e,_0x2a4688(0x1d8)),'icon':_0xc38f9c});_0x5f28ba['on'](_0x2a4688(0x1e7),()=>{const _0x381ed7=_0x2a4688;this[_0x381ed7(0x203)](_0x381ed7(0x234)),this[_0x381ed7(0x233)]();}),_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x5f28ba);}if(_0x281b5f[_0x2a4688(0x231)][_0x2a4688(0x20d)]){const _0x4f15d3=this[_0x2a4688(0x21c)](_0x2e761e,{'label':_0x20c29a(_0x2e761e,_0x2a4688(0x20e)),'icon':_0xe9d30});_0x4f15d3['on'](_0x2a4688(0x1e7),()=>{const _0x2d0508=_0x2a4688;this[_0x2d0508(0x233)](),this[_0x2d0508(0x22b)](),this[_0x2d0508(0x1de)][_0x2d0508(0x220)]({'target':this[_0x2d0508(0x229)][_0x2d0508(0x208)],'limiter':this[_0x2d0508(0x22f)](),'positions':Ho}),this[_0x2d0508(0x1e2)][_0x2d0508(0x202)]();}),_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x4f15d3);}if(_0x281b5f[_0x2a4688(0x1f4)][_0x2a4688(0x20d)]){const _0x5b13fc=new _0x362151(_0x2e761e);_0x5b13fc[_0x2a4688(0x1fd)]({'label':_0x20c29a(_0x2e761e,_0x2a4688(0x23b)),'icon':_0x501175,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x5b13fc['on'](_0x2a4688(0x1ef),(_0x406bd7,_0x51544c)=>{const _0x405c20=_0x2a4688;this[_0x405c20(0x203)](_0x405c20(0x23c),_0x51544c),this[_0x405c20(0x233)]();}),_0x5b13fc[_0x2a4688(0x207)]=!0x0,_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x5b13fc);}for(const _0x19141b of _0x281b5f[_0x2a4688(0x20b)]){const _0x22a54e=this[_0x2a4688(0x21c)](_0x2e761e,{'label':_0x19141b[_0x2a4688(0x1e3)],'icon':_0x19141b[_0x2a4688(0x1f2)]||_0x3d019b,'type':_0x2a4688(0x1b2)});_0x34fda8[_0x2a4688(0x1d6)][_0x2a4688(0x219)](_0x22a54e),_0x22a54e['on'](_0x2a4688(0x1e7),()=>{const _0x2332bd=_0x2a4688;this[_0x2332bd(0x233)](),this[_0x2332bd(0x20f)](_0x19141b);});}}[_0x23ab82(0x1bc)](_0x56ae05,_0x1fd8e0){const _0x1218ff=_0x23ab82;this[_0x1218ff(0x1e2)]=new _0x205b65(_0x1fd8e0),this[_0x1218ff(0x1e2)]['on'](_0x1218ff(0x1d9),(_0x185746,_0x2329fc)=>{const _0x4b8644=_0x1218ff;this[_0x4b8644(0x1b9)](_0x2329fc);}),this[_0x1218ff(0x1e2)]['on'](_0x1218ff(0x205),()=>{const _0x55eecb=_0x1218ff;this[_0x55eecb(0x237)](),this[_0x55eecb(0x215)](),this[_0x55eecb(0x228)][_0x55eecb(0x220)]({'target':this[_0x55eecb(0x229)][_0x55eecb(0x208)],'limiter':this[_0x55eecb(0x22f)](),'positions':Ho});}),this[_0x1218ff(0x1e2)]['on'](_0x1218ff(0x1b7),()=>{const _0x12ecdf=_0x1218ff;this[_0x12ecdf(0x1de)][_0x12ecdf(0x1da)]&&this[_0x12ecdf(0x1de)][_0x12ecdf(0x220)]({'target':this[_0x12ecdf(0x229)][_0x12ecdf(0x208)],'limiter':this[_0x12ecdf(0x22f)](),'positions':Ho});}),_0x56ae05[_0x1218ff(0x1d6)][_0x1218ff(0x219)](this[_0x1218ff(0x1e2)]);}[_0x23ab82(0x21c)](_0x18b19c,_0x529219){const _0x3eb633=_0x23ab82,_0x319a49=_0x3eb633(0x1b2)===_0x529219[_0x3eb633(0x1f3)]?new SourcesBalloonButtonView(_0x18b19c):new _0x1996eb(_0x18b19c);return _0x319a49[_0x3eb633(0x1fd)]({'label':_0x529219[_0x3eb633(0x1e3)],'icon':_0x529219[_0x3eb633(0x1f2)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x319a49;}[_0x23ab82(0x1dd)](){const _0x21afff=_0x23ab82;this[_0x21afff(0x1b4)](),this[_0x21afff(0x1c1)]();}[_0x23ab82(0x1c1)](){const _0x1e218e=_0x23ab82;_0x10455b({'emitter':this[_0x1e218e(0x1de)],'contextElements':[this[_0x1e218e(0x1de)][_0x1e218e(0x208)]],'callback':()=>{const _0x197645=_0x1e218e;this[_0x197645(0x237)]();},'activator':()=>this[_0x1e218e(0x1de)][_0x1e218e(0x1da)]});}[_0x23ab82(0x1b8)](_0x5df1bd){const _0x430ca8=_0x23ab82,_0x2b9818=this[_0x430ca8(0x242)];_0x2b9818[_0x430ca8(0x1cb)][_0x430ca8(0x1c9)]=_0x5df1bd,_0x5df1bd?_0x2b9818[_0x430ca8(0x1d5)][_0x430ca8(0x210)]():_0x2b9818[_0x430ca8(0x1d5)][_0x430ca8(0x1f6)]();}[_0x23ab82(0x1b4)](){const _0x2e551d=_0x23ab82,{balloonView:_0x28afc7,buttonView:_0x5cba55,hideMethod:_0x41c99c}=this[_0x2e551d(0x242)];_0x10455b({'emitter':_0x28afc7,'contextElements':[_0x28afc7[_0x2e551d(0x208)],_0x5cba55[_0x2e551d(0x208)]],'callback':()=>{_0x41c99c();},'activator':()=>_0x5cba55[_0x2e551d(0x1c9)]&&!this[_0x2e551d(0x1de)][_0x2e551d(0x1da)]&&!this[_0x2e551d(0x209)][_0x2e551d(0x1e1)]()});}[_0x23ab82(0x226)](_0x466583,_0x5efca8,_0x1da94a=!0x1,_0x232509=!0x1){const _0x524875=_0x23ab82,_0x1e39a2=_0x524875(0x1c3)===_0x5efca8||!0x0===_0x466583[_0x524875(0x216)],_0x27090a=new _0x22d8fa(this[_0x524875(0x201)],_0x466583,_0x1e39a2,_0x1da94a,_0x232509);return _0x1e39a2||_0x27090a['on'](_0x524875(0x227),()=>{const _0x2b1933=_0x524875;this[_0x2b1933(0x203)](_0x2b1933(0x1f7),_0x27090a['id']);}),_0x27090a;}[_0x23ab82(0x1c0)](_0x1632d1,_0xf9c634){const _0x4bde1b=_0x23ab82;_0xf9c634[_0x4bde1b(0x219)](_0x1632d1,0x0);}[_0x23ab82(0x1ff)](_0x16d4f8,_0x5a20ad){const _0xc97abe=_0x23ab82,_0x1d82b3=_0x5a20ad[_0xc97abe(0x1cf)](_0x616fea=>_0x616fea['id']===_0x16d4f8);_0x1d82b3&&_0x5a20ad[_0xc97abe(0x238)](_0x1d82b3);}[_0x23ab82(0x21b)](){const _0xd003bd=_0x23ab82;this[_0xd003bd(0x229)][_0xd003bd(0x1c9)]?this[_0xd003bd(0x233)]():(this[_0xd003bd(0x215)](),this[_0xd003bd(0x228)][_0xd003bd(0x220)]({'target':this[_0xd003bd(0x229)][_0xd003bd(0x208)],'limiter':this[_0xd003bd(0x22f)](),'positions':Ho}));}[_0x23ab82(0x1b9)](_0x1ac8e6){const _0x2b3ca7=_0x23ab82;this[_0x2b3ca7(0x1e2)][_0x2b3ca7(0x1c2)](),this[_0x2b3ca7(0x237)](),this[_0x2b3ca7(0x203)](_0x2b3ca7(0x1f5),_0x1ac8e6);}}export class SourcesBalloonButtonView extends _0x1996eb{[_0x23ab82(0x1d1)];constructor(_0x4fe985){const _0x3d5e85=_0x23ab82;super(_0x4fe985),this[_0x3d5e85(0x1fd)]({'withText':!0x0,'role':_0x3d5e85(0x1d4)}),this[_0x3d5e85(0x1d1)]=this[_0x3d5e85(0x1ce)](),this[_0x3d5e85(0x1e0)]({'attributes':{'class':[Ro]}});}[_0x23ab82(0x1e9)](){const _0x330514=_0x23ab82;super[_0x330514(0x1e9)](),this[_0x330514(0x1b3)][_0x330514(0x219)](this[_0x330514(0x1d1)]);}[_0x23ab82(0x1ce)](){const _0x2c28f0=_0x23ab82,_0x118df6=new _0xb8700c();return _0x118df6[_0x2c28f0(0x1d6)]=_0x3ca4c6,_0x118df6[_0x2c28f0(0x1e0)]({'attributes':{'class':Ro+_0x2c28f0(0x1cd)}}),_0x118df6;}}
|