@ckeditor/ckeditor5-ai 47.2.0-alpha.4 → 47.2.0-alpha.5
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/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/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/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/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.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/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dc13b=_0x5f02;(function(_0x31f7d2,_0x46c9de){const _0x27c353=_0x5f02,_0x25e798=_0x31f7d2();while(!![]){try{const _0x3496f4=-parseInt(_0x27c353(0x117))/0x1+-parseInt(_0x27c353(0x151))/0x2+-parseInt(_0x27c353(0x12d))/0x3+-parseInt(_0x27c353(0x126))/0x4+parseInt(_0x27c353(0x12c))/0x5*(parseInt(_0x27c353(0x112))/0x6)+-parseInt(_0x27c353(0x149))/0x7+-parseInt(_0x27c353(0x133))/0x8*(-parseInt(_0x27c353(0x148))/0x9);if(_0x3496f4===_0x46c9de)break;else _0x25e798['push'](_0x25e798['shift']());}catch(_0x347a99){_0x25e798['push'](_0x25e798['shift']());}}}(_0xe2ca,0x3bc45));function _0x5f02(_0x59e995,_0x394307){const _0xe2ca1=_0xe2ca();return _0x5f02=function(_0x5f02a6,_0x4b5207){_0x5f02a6=_0x5f02a6-0x10f;let _0x239770=_0xe2ca1[_0x5f02a6];return _0x239770;},_0x5f02(_0x59e995,_0x394307);}import{ButtonView as _0x577638,clickOutsideHandler as _0x1435c2,View as _0x59a4e5}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x5c48a8}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x511ecd}from'./controls/aichatpromptcapabilitiesview.js';function _0xe2ca(){const _0x1ea33a=['345246fUhqwE','_createModelUnavailableMessageView','focusPromptInput','setModel','_createLoaderView','focus','setWebSearch','setModelList','ck-ai-chat-controls__start-new-chat-button','setAddContextOptions','delegate','clearConversationContextItems','_createPromptInputView','closeSourceResourceBalloon','removeContextItem','814444UVYVnR','setConversationContext','setTemplate','agent','addContextItem','enableModelSelector','1793515LySypO','293142fNWITt','resetMessageInput','setContextItemLoading','sendUserMessage','_loaderView','isLoading','7506232tGFiTI','_modelUnavailableMessageView','setPlaceholderText','reset','_displayedModels','selectModel','change:isLoading','ck-hidden','isModelAvailable','bindTemplate','addContextButtonView','_createPromptCapabilitiesView','_shouldRestorePromptInputFocus','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','updateResourceState','_promptCapabilitiesView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','contextResourcesSearchInputVisibleFrom','_promptInputView','isDisabled','abortPromptStream','9blsFvQ','1885331cGaVCz','find','disableModelSelector','_contextPanelView','startConversation','_handlePromptInputFocus','setIsUploadInProgress','form','272546zRFazH','_createContextPanelView','element','startsWith','set','setReasoning','clearConversationContextUI','clearCurrentContextItems','ck-ai-chat-controls-model-unavailable-message','bodyCollection','low','execute','clearPendingContextUI','setInputPlaceholder','populateSourceResourceBalloon','ck-ai-chat-controls','ck-ai-chat-controls-disabled','6uQJOyJ','div','toggleReasoning','toggleWebSearch','locale'];_0xe2ca=function(){return _0x1ea33a;};return _0xe2ca();}import{AIChatContextPanelView as _0x2f068d,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5af801}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x4acebd}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x24ddd6}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x59a4e5{[_0x4dc13b(0x137)]=[];[_0x4dc13b(0x14c)];[_0x4dc13b(0x145)];[_0x4dc13b(0x142)];[_0x4dc13b(0x131)];[_0x4dc13b(0x134)];[_0x4dc13b(0x13f)];constructor(_0x899852,_0x43e96d){const _0x28ad0b=_0x4dc13b;super(_0x899852),this[_0x28ad0b(0x14c)]=this[_0x28ad0b(0x152)](_0x899852,{'bodyCollection':_0x43e96d[_0x28ad0b(0x15a)],'searchInputVisibleFrom':_0x43e96d[_0x28ad0b(0x144)]}),this[_0x28ad0b(0x145)]=this[_0x28ad0b(0x123)](_0x899852),this[_0x28ad0b(0x142)]=this[_0x28ad0b(0x13e)](_0x899852),this[_0x28ad0b(0x131)]=this[_0x28ad0b(0x11b)](_0x899852),this[_0x28ad0b(0x134)]=this[_0x28ad0b(0x118)](_0x899852),this[_0x28ad0b(0x13f)]=!0x1,this[_0x28ad0b(0x145)][_0x28ad0b(0x121)](_0x28ad0b(0x130))['to'](this),this[_0x28ad0b(0x131)][_0x28ad0b(0x121)](_0x28ad0b(0x147))['to'](this),this[_0x28ad0b(0x142)][_0x28ad0b(0x121)](_0x28ad0b(0x115))['to'](this),this[_0x28ad0b(0x142)][_0x28ad0b(0x121)](_0x28ad0b(0x114))['to'](this),this[_0x28ad0b(0x142)][_0x28ad0b(0x121)](_0x28ad0b(0x138))['to'](this),this[_0x28ad0b(0x14c)][_0x28ad0b(0x121)](..._0x5af801)['to'](this),this[_0x28ad0b(0x155)](_0x28ad0b(0x13b),!0x0),this[_0x28ad0b(0x155)](_0x28ad0b(0x146),!0x1);const _0xc23a09=this[_0x28ad0b(0x13c)];this[_0x28ad0b(0x128)]({'tag':_0x28ad0b(0x150),'attributes':{'class':['ck',_0x28ad0b(0x110),_0xc23a09['if'](_0x28ad0b(0x146),_0x28ad0b(0x111))]},'children':[{'tag':_0x28ad0b(0x113),'attributes':{'class':[_0xc23a09['if'](_0x28ad0b(0x132),_0x28ad0b(0x13a),_0x3cce52=>_0x3cce52||!this[_0x28ad0b(0x13b)]),_0xc23a09['if'](_0x28ad0b(0x13b),_0x28ad0b(0x13a),_0x2103b9=>!_0x2103b9||this[_0x28ad0b(0x132)])]},'children':[this[_0x28ad0b(0x14c)],this[_0x28ad0b(0x145)],this[_0x28ad0b(0x142)]]},{'tag':_0x28ad0b(0x113),'attributes':{'class':[_0xc23a09['if'](_0x28ad0b(0x132),_0x28ad0b(0x13a),_0x50119e=>!_0x50119e)]},'children':[this[_0x28ad0b(0x131)]]},{'tag':_0x28ad0b(0x113),'attributes':{'class':[_0xc23a09['if'](_0x28ad0b(0x13b),_0x28ad0b(0x13a),_0x448bc9=>_0x448bc9)]},'children':[this[_0x28ad0b(0x134)]]}]}),_0x1435c2({'emitter':this[_0x28ad0b(0x145)],'activator':()=>this[_0x28ad0b(0x132)],'contextElements':()=>[this[_0x28ad0b(0x153)]],'callback':()=>{const _0x42a273=_0x28ad0b;this[_0x42a273(0x13f)]=!0x1;}}),this['on'](_0x28ad0b(0x139),this[_0x28ad0b(0x14e)],{'priority':_0x28ad0b(0x15b)});}[_0x4dc13b(0x152)](_0x6f6287,_0x510b77){return new _0x2f068d(_0x6f6287,_0x510b77);}[_0x4dc13b(0x123)](_0x254573){const _0x1416aa=_0x4dc13b;return new _0x5c48a8(_0x254573,this[_0x1416aa(0x14c)][_0x1416aa(0x13d)]);}[_0x4dc13b(0x13e)](_0x195226){return new _0x511ecd(_0x195226);}[_0x4dc13b(0x11b)](_0x74ac6e){return new _0x4acebd(_0x74ac6e);}[_0x4dc13b(0x118)](_0x47bf20){const _0x26a18d=_0x4dc13b,_0x31a37f=new vs(_0x47bf20);return _0x31a37f[_0x26a18d(0x121)](_0x26a18d(0x14d))['to'](this),_0x31a37f;}[_0x4dc13b(0x14e)](_0x2f33bc,_0x210996,_0x4a4ec8){const _0x54e217=_0x4dc13b;_0x4a4ec8?this[_0x54e217(0x13f)]=!0x0:this[_0x54e217(0x13f)]&&this[_0x54e217(0x145)][_0x54e217(0x11c)]();}[_0x4dc13b(0x12a)](_0x5455d7,_0x91a10d){const _0xf340a3=_0x4dc13b;this[_0xf340a3(0x14c)][_0xf340a3(0x12a)](_0x5455d7,_0x91a10d);}[_0x4dc13b(0x125)](_0x3a881b){const _0x170a8f=_0x4dc13b;this[_0x170a8f(0x14c)][_0x170a8f(0x125)](_0x3a881b);}[_0x4dc13b(0x12f)](_0x3265f0,_0x227731){const _0x82683c=_0x4dc13b;this[_0x82683c(0x14c)][_0x82683c(0x12f)](_0x3265f0,_0x227731);}[_0x4dc13b(0x14f)](_0x6f0944){const _0x2377fd=_0x4dc13b;this[_0x2377fd(0x145)][_0x2377fd(0x14f)](_0x6f0944);}[_0x4dc13b(0x127)](_0x36d279){const _0x3b619a=_0x4dc13b;this[_0x3b619a(0x14c)][_0x3b619a(0x127)](_0x36d279);}[_0x4dc13b(0x15d)](){const _0x51b5c0=_0x4dc13b;this[_0x51b5c0(0x14c)][_0x51b5c0(0x158)]();}[_0x4dc13b(0x157)](){const _0x80b7eb=_0x4dc13b;this[_0x80b7eb(0x14c)][_0x80b7eb(0x122)]();}[_0x4dc13b(0x141)](_0x54697d,_0x4c6e20,_0x3c2209){const _0x99c2f3=_0x4dc13b;this[_0x99c2f3(0x14c)][_0x99c2f3(0x141)](_0x54697d,_0x4c6e20,_0x3c2209);}[_0x4dc13b(0x11d)](_0x5e4b62){const _0x582198=_0x4dc13b;this[_0x582198(0x142)][_0x582198(0x11d)](_0x5e4b62);}[_0x4dc13b(0x156)](_0x1a3156){const _0x4618eb=_0x4dc13b;this[_0x4618eb(0x142)][_0x4618eb(0x156)](_0x1a3156);}[_0x4dc13b(0x12e)](){const _0x2b01a6=_0x4dc13b;this[_0x2b01a6(0x145)][_0x2b01a6(0x136)]();}[_0x4dc13b(0x120)](_0x1a9d17){const _0x4f63dc=_0x4dc13b;this[_0x4f63dc(0x14c)][_0x4f63dc(0x120)](_0x1a9d17);}[_0x4dc13b(0x15e)](_0x6435e9){const _0x1d74fa=_0x4dc13b;this[_0x1d74fa(0x145)][_0x1d74fa(0x135)](_0x6435e9);}[_0x4dc13b(0x11e)](_0xb856b,_0x46ee8c){const _0x43db5b=_0x4dc13b;this[_0x43db5b(0x137)]=_0xb856b,this[_0x43db5b(0x142)][_0x43db5b(0x11e)](_0xb856b,_0x46ee8c);}[_0x4dc13b(0x11a)](_0x226a20){const _0x2fb333=_0x4dc13b;(_0x226a20?this[_0x2fb333(0x137)][_0x2fb333(0x14a)](_0x114082=>_0x114082['id']===_0x226a20['id']):null)?(this[_0x2fb333(0x13b)]=!0x0,this[_0x2fb333(0x142)][_0x2fb333(0x11a)](_0x226a20)):_0x226a20?.['id'][_0x2fb333(0x154)](_0x2fb333(0x129))?(this[_0x2fb333(0x13b)]=!0x0,this[_0x2fb333(0x142)][_0x2fb333(0x11a)](this[_0x2fb333(0x137)][0x0])):this[_0x2fb333(0x13b)]=!0x1;}[_0x4dc13b(0x12b)](){const _0x1c64a4=_0x4dc13b;this[_0x1c64a4(0x142)][_0x1c64a4(0x12b)]();}[_0x4dc13b(0x14b)](_0x2477ab){const _0x479f43=_0x4dc13b;this[_0x479f43(0x142)][_0x479f43(0x14b)](_0x2477ab);}[_0x4dc13b(0x10f)](_0x5c85c5,_0x20aed6,_0x39bbd0,_0x505e51){const _0x3c887e=_0x4dc13b;this[_0x3c887e(0x14c)][_0x3c887e(0x10f)](_0x5c85c5,_0x20aed6,_0x39bbd0,_0x505e51);}[_0x4dc13b(0x124)](_0x4c7750){const _0x21b315=_0x4dc13b;this[_0x21b315(0x14c)][_0x21b315(0x124)](_0x4c7750);}[_0x4dc13b(0x119)](){const _0x3dcc95=_0x4dc13b;this[_0x3dcc95(0x145)][_0x3dcc95(0x11c)]();}}class vs extends _0x59a4e5{constructor(_0x143ecb){const _0x1dee09=_0x4dc13b;super(_0x143ecb);const _0x3cbad0=new _0x577638(_0x143ecb);_0x3cbad0[_0x1dee09(0x155)]({'label':_0x24ddd6(this[_0x1dee09(0x116)],_0x1dee09(0x143)),'withText':!0x0,'class':[_0x1dee09(0x11f)],'tooltip':''}),_0x3cbad0[_0x1dee09(0x121)](_0x1dee09(0x15c))['to'](this,_0x1dee09(0x14d)),this[_0x1dee09(0x128)]({'tag':_0x1dee09(0x113),'attributes':{'class':['ck',_0x1dee09(0x159)]},'children':[{'tag':'p','children':[{'text':_0x24ddd6(this[_0x1dee09(0x116)],_0x1dee09(0x140))+'\x20'},_0x3cbad0]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ac673=_0x486b;(function(_0x2d3e45,_0x32e427){const _0x3c3d2e=_0x486b,_0x962029=_0x2d3e45();while(!![]){try{const _0xef66cf=-parseInt(_0x3c3d2e(0x183))/0x1*(parseInt(_0x3c3d2e(0x1a0))/0x2)+-parseInt(_0x3c3d2e(0x16d))/0x3+parseInt(_0x3c3d2e(0x16a))/0x4*(-parseInt(_0x3c3d2e(0x16f))/0x5)+-parseInt(_0x3c3d2e(0x16b))/0x6*(parseInt(_0x3c3d2e(0x15c))/0x7)+-parseInt(_0x3c3d2e(0x160))/0x8+-parseInt(_0x3c3d2e(0x18c))/0x9+parseInt(_0x3c3d2e(0x18b))/0xa;if(_0xef66cf===_0x32e427)break;else _0x962029['push'](_0x962029['shift']());}catch(_0x2a7fc5){_0x962029['push'](_0x962029['shift']());}}}(_0x5ed3,0xee348));function _0x486b(_0x425e0e,_0x516708){const _0x5ed331=_0x5ed3();return _0x486b=function(_0x486b47,_0x2e3e6b){_0x486b47=_0x486b47-0x150;let _0x133adb=_0x5ed331[_0x486b47];return _0x133adb;},_0x486b(_0x425e0e,_0x516708);}import{CKEditorError as _0x2ff4a0,logWarning as _0x363779,scrollViewportToShowTarget as _0x51b3fc}from'ckeditor5/src/utils.js';import{View as _0x2bb2e5}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5187c9}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x2cfeb0}from'./feed/aichatfeedsuggestionitemview.js';function _0x5ed3(){const _0x2d0303=['updateSuggestionItem','updateSources','setLoadingMessage','stopAutoScroll','user-message','markItemAsDone','isTrackChangesOn','locale','ck-hidden','remove','updateSuggestionPartState','find','scrollToSuggestion','_createFeedItems','4ZGRVHT','extendTemplate','isLoadingSkeletonVisible','delegate','getItemIds','updateContent','updateWebSources','set','scrollManager','ck-ai-chat__loader-text','isPending','includes','aiFeed','28RiaekA','start','ai-chat-feed-view-item-not-a-suggestion-item','updatePartState','13345208IXpBmM','div','isVisible','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','getPartView','_createSkeletonLoader','ck-ai-chat__feed__items','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','bind','element','1844FuWqRF','2201082VjyVRj','stop','1913952WzKzUC','_setupTemplate','16945paErNk','_createFeedLoader','ck-ai-chat__feed','bindTemplate','ck-ai-chat__loader','_bodyCollection','render','children','loadingMessage','removeItem','add','createCollection','span','interaction-header','map','ai-reply','toggleLoadingSkeleton','markAsDone','addItem','clear','750031pKhNlx','updateReplyItem','_createTemplateChildren','ai-suggestion-reply','_createLoaderChildren','destroy','setTemplate','ai-chat-feed-view-item-not-a-reply-item','85613010DEjhmi','6747291grkOId','ai-chat-feed-view-item-not-found','options','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','getItemById','startAutoScroll'];_0x5ed3=function(){return _0x2d0303;};return _0x5ed3();}import{AIChatFeedReplyItemView as _0x3cb136}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x4ee865}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x18e2f8}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x11c892}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x5c5a4f}from'../utils/scrollmanager.js';import{AISkeletonView as _0x334cb7,SKELETON_DEFINITIONS as _0x138556}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x96a9b0}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x2bb2e5{[_0x2ac673(0x176)];[_0x2ac673(0x157)];[_0x2ac673(0x174)];constructor(_0x4f43f4,_0x41ff95){const _0x2713a2=_0x2ac673;super(_0x4f43f4),this[_0x2713a2(0x174)]=_0x41ff95,this[_0x2713a2(0x156)](_0x2713a2(0x159),!0x1),this[_0x2713a2(0x156)](_0x2713a2(0x177),''),this[_0x2713a2(0x156)](_0x2713a2(0x151),!0x1),this[_0x2713a2(0x156)](_0x2713a2(0x198),!0x1),this[_0x2713a2(0x176)]=this[_0x2713a2(0x17a)](),this[_0x2713a2(0x176)][_0x2713a2(0x152)](..._0x5187c9)['to'](this),this[_0x2713a2(0x16e)]();}[_0x2ac673(0x175)](){const _0x8a1279=_0x2ac673;super[_0x8a1279(0x175)](),this[_0x8a1279(0x157)]=new _0x5c5a4f(this[_0x8a1279(0x169)]);}[_0x2ac673(0x188)](){const _0x142585=_0x2ac673;super[_0x142585(0x188)](),this[_0x142585(0x157)][_0x142585(0x188)]();}[_0x2ac673(0x182)](){const _0x3d5da2=_0x2ac673;this[_0x3d5da2(0x176)][_0x3d5da2(0x182)]();}[_0x2ac673(0x181)](_0x34e957,_0x308e7b){const _0x1ccfec=_0x2ac673;let _0x5177a7;_0x1ccfec(0x17e)===_0x34e957?_0x5177a7=new _0x3cb136(this[_0x1ccfec(0x199)],_0x308e7b):_0x1ccfec(0x186)===_0x34e957?(_0x5177a7=new _0x2cfeb0(this[_0x1ccfec(0x199)],_0x308e7b),_0x5177a7[_0x1ccfec(0x168)](_0x1ccfec(0x198))['to'](this,_0x1ccfec(0x198))):_0x5177a7=_0x1ccfec(0x196)===_0x34e957?new _0x4ee865(this[_0x1ccfec(0x199)],_0x308e7b,this[_0x1ccfec(0x174)]):_0x1ccfec(0x17c)===_0x34e957?new _0x11c892(this[_0x1ccfec(0x199)],_0x308e7b):new _0x18e2f8(_0x308e7b),this[_0x1ccfec(0x176)][_0x1ccfec(0x179)](_0x5177a7);}async[_0x2ac673(0x184)]({id:_0xed506d,parsedContent:_0x5eb03d,renderingStrategy:_0x151438,abortSignal:_0x2964eb}){const _0x38f932=_0x2ac673,_0x1bb21a=this[_0x38f932(0x190)](_0xed506d);if(!(_0x1bb21a instanceof _0x3cb136))throw new _0x2ff4a0(_0x38f932(0x18a),null,{'itemView':_0x1bb21a,'id':_0xed506d,'parsedContent':_0x5eb03d});await _0x1bb21a[_0x38f932(0x154)]({'parsedContent':_0x5eb03d,'renderingStrategy':_0x151438,'abortSignal':_0x2964eb});}async[_0x2ac673(0x155)](_0x4a4bae,_0x423c0c){const _0x93e34e=_0x2ac673,_0x46a643=this[_0x93e34e(0x190)](_0x4a4bae);if(_0x46a643 instanceof _0x2cfeb0)_0x46a643[_0x93e34e(0x193)](_0x423c0c);else{if(!(_0x46a643 instanceof _0x3cb136))throw new _0x2ff4a0(_0x93e34e(0x163),null,{'itemView':_0x46a643,'id':_0x4a4bae,'sources':_0x423c0c});_0x46a643[_0x93e34e(0x193)](_0x423c0c);}}async[_0x2ac673(0x192)]({id:_0x41f374,parts:_0x107d13,renderingStrategy:_0x158a9e,abortSignal:_0x522a8d}){const _0x2e5470=_0x2ac673,_0x10f2c4=this[_0x2e5470(0x190)](_0x41f374);if(!(_0x10f2c4 instanceof _0x2cfeb0))throw new _0x2ff4a0(_0x2e5470(0x15e),null,{'itemView':_0x10f2c4,'id':_0x41f374,'parts':_0x107d13});await _0x10f2c4[_0x2e5470(0x154)]({'parts':_0x107d13,'renderingStrategy':_0x158a9e,'abortSignal':_0x522a8d});}[_0x2ac673(0x19c)]({id:_0x3245d8,index:_0x5dd035,state:_0x102334}){const _0x25bc45=_0x2ac673,_0x9a2f0d=this[_0x25bc45(0x190)](_0x3245d8);if(!(_0x9a2f0d instanceof _0x2cfeb0))throw new _0x2ff4a0(_0x25bc45(0x15e),this,{'id':_0x3245d8});_0x9a2f0d[_0x25bc45(0x15f)](_0x5dd035,_0x102334);}[_0x2ac673(0x197)](_0x13c27a){const _0x441b8a=_0x2ac673;this[_0x441b8a(0x190)](_0x13c27a)[_0x441b8a(0x180)]();}[_0x2ac673(0x153)](){const _0x32ccf8=_0x2ac673;return this[_0x32ccf8(0x176)][_0x32ccf8(0x17d)](_0x1b1837=>_0x1b1837[_0x32ccf8(0x18e)]['id']);}[_0x2ac673(0x178)](_0x105f48){const _0x4c1523=_0x2ac673;this[_0x4c1523(0x176)][_0x4c1523(0x19b)](this[_0x4c1523(0x190)](_0x105f48));}[_0x2ac673(0x19e)](_0x52fbf1,_0x48820c){const _0x4d8035=_0x2ac673,_0x52ec00=this[_0x4d8035(0x190)](_0x52fbf1);if(!(_0x52ec00 instanceof _0x2cfeb0))return void _0x363779(_0x4d8035(0x18f),{'replyId':_0x52fbf1,'partIndex':_0x48820c});const _0x4d0805=_0x52ec00[_0x4d8035(0x164)](_0x48820c);_0x4d0805?_0x51b3fc({'target':_0x4d0805[_0x4d8035(0x169)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x363779(_0x4d8035(0x167),{'replyId':_0x52fbf1,'partIndex':_0x48820c});}[_0x2ac673(0x16e)](){const _0x41348d=_0x2ac673;this[_0x41348d(0x189)]({'tag':_0x41348d(0x161),'attributes':{'class':['ck',_0x41348d(0x171)]},'children':this[_0x41348d(0x185)]()});}[_0x2ac673(0x185)](){const _0x1f4ede=_0x2ac673,_0x4838fa=this[_0x1f4ede(0x165)]();return[this[_0x1f4ede(0x19f)](),_0x4838fa,this[_0x1f4ede(0x170)]()];}[_0x2ac673(0x165)](){const _0x173c03=_0x2ac673,_0x5698a7=new _0x334cb7(this[_0x173c03(0x199)],_0x138556[_0x173c03(0x15b)]);return _0x5698a7[_0x173c03(0x150)]({'attributes':{'class':[this[_0x173c03(0x172)]['if'](_0x173c03(0x151),_0x173c03(0x19a),_0x8b9018=>!_0x8b9018)]}}),_0x5698a7;}[_0x2ac673(0x19f)](){const _0x1e5757=_0x2ac673,_0x33e235=new _0x2bb2e5(this[_0x1e5757(0x199)]);return _0x33e235[_0x1e5757(0x189)]({'tag':_0x1e5757(0x161),'attributes':{'class':['ck',_0x1e5757(0x166),this[_0x1e5757(0x172)]['if'](_0x1e5757(0x151),_0x1e5757(0x19a))]},'children':this[_0x1e5757(0x176)]}),_0x33e235;}[_0x2ac673(0x170)](){const _0x2c4787=_0x2ac673,_0x4f66d1=new _0x2bb2e5(this[_0x2c4787(0x199)]);return _0x4f66d1[_0x2c4787(0x189)]({'tag':_0x2c4787(0x161),'attributes':{'class':['ck',_0x2c4787(0x173),this[_0x2c4787(0x172)]['if'](_0x2c4787(0x159),_0x2c4787(0x19a),_0x27f41e=>!_0x27f41e)]},'children':this[_0x2c4787(0x187)]()}),_0x4f66d1;}[_0x2ac673(0x187)](){const _0x45d6f4=_0x2ac673,_0x5a6416=new _0x96a9b0();return _0x5a6416[_0x45d6f4(0x162)]=!0x0,[_0x5a6416,{'tag':_0x45d6f4(0x17b),'attributes':{'class':['ck',_0x45d6f4(0x158)]},'children':[{'text':this[_0x45d6f4(0x172)]['to'](_0x45d6f4(0x177))}]}];}[_0x2ac673(0x190)](_0x3d1da7){const _0x469d66=_0x2ac673,_0x74e325=this[_0x469d66(0x176)][_0x469d66(0x19d)](_0x5684ec=>_0x5684ec[_0x469d66(0x18e)]['id'][_0x469d66(0x15a)](_0x3d1da7));if(!_0x74e325)throw new _0x2ff4a0(_0x469d66(0x18d),this,{'id':_0x3d1da7});return _0x74e325;}[_0x2ac673(0x194)](_0x422250){const _0x490171=_0x2ac673;this[_0x490171(0x156)](_0x490171(0x177),_0x422250);}[_0x2ac673(0x17f)](_0x21360a){const _0x284cdf=_0x2ac673;this[_0x284cdf(0x156)](_0x284cdf(0x151),_0x21360a);}[_0x2ac673(0x191)](){const _0x2c6b5f=_0x2ac673;this[_0x2c6b5f(0x157)][_0x2c6b5f(0x15d)]();}[_0x2ac673(0x195)](){const _0x2e6e55=_0x2ac673;this[_0x2e6e55(0x157)][_0x2e6e55(0x16c)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47d137=_0x1ad8;(function(_0x1f8e60,_0x209131){const _0x4cceda=_0x1ad8,_0x45028c=_0x1f8e60();while(!![]){try{const _0x2f43e1=parseInt(_0x4cceda(0xd3))/0x1+parseInt(_0x4cceda(0xe6))/0x2*(parseInt(_0x4cceda(0xd0))/0x3)+parseInt(_0x4cceda(0xd1))/0x4+-parseInt(_0x4cceda(0xe4))/0x5*(parseInt(_0x4cceda(0xdb))/0x6)+parseInt(_0x4cceda(0xe1))/0x7+parseInt(_0x4cceda(0xd5))/0x8+-parseInt(_0x4cceda(0xe5))/0x9*(parseInt(_0x4cceda(0xd2))/0xa);if(_0x2f43e1===_0x209131)break;else _0x45028c['push'](_0x45028c['shift']());}catch(_0x2d23ca){_0x45028c['push'](_0x45028c['shift']());}}}(_0x3958,0xe7dd0));import{ButtonView as _0x2a44ff,FormHeaderView as _0x549a3f}from'ckeditor5/src/ui.js';import{IconPlus as _0x618c52,IconAIChat as _0x514d7c}from'ckeditor5/src/icons.js';function _0x1ad8(_0x9b5b5d,_0x5a4647){const _0x39584b=_0x3958();return _0x1ad8=function(_0x1ad8e9,_0x4705da){_0x1ad8e9=_0x1ad8e9-0xce;let _0x293ae4=_0x39584b[_0x1ad8e9];return _0x293ae4;},_0x1ad8(_0x9b5b5d,_0x5a4647);}import{getTranslation as _0x232e28}from'../../aicore/utils/common-translations.js';function _0x3958(){const _0x499e6f=['resizeButton','fire','conversationStartButton','set','570axyQkE','AI_CHAT_LABEL_NEW_CHAT','children','locale','isMaximized','_createStartConversationButton','117866aeBQET','ck-ai-header\x20ck-ai-header_chat','ck-ai-chat__start-conversation','22885CwQfWq','27rjEfDw','48asEVbR','AI_CHAT_HEADING','execute','125310elHKQz','1488444HqSyxE','5144160ngTqhn','1004418ESzhnJ','startConversation','4255424FjqCvO','add'];_0x3958=function(){return _0x499e6f;};return _0x3958();}import{createResizeButton as _0x497276}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x549a3f{[_0x47d137(0xd9)];[_0x47d137(0xd7)];constructor(_0x308181,_0x59afbb){const _0x33fa09=_0x47d137;super(_0x308181,{'label':_0x232e28(_0x308181,_0x33fa09(0xce)),'class':_0x33fa09(0xe2),'icon':_0x514d7c}),this[_0x33fa09(0xda)](_0x33fa09(0xdf),!0x1),this[_0x33fa09(0xd9)]=this[_0x33fa09(0xe0)](_0x308181),this[_0x33fa09(0xdd)][_0x33fa09(0xd6)](this[_0x33fa09(0xd9)]),_0x59afbb&&(this[_0x33fa09(0xd7)]=_0x497276(_0x308181,this),this[_0x33fa09(0xdd)][_0x33fa09(0xd6)](this[_0x33fa09(0xd7)]));}[_0x47d137(0xe0)](_0xafefc5){const _0x1d7a9e=_0x47d137,_0x408776=new _0x2a44ff(_0xafefc5);return _0x408776[_0x1d7a9e(0xda)]({'label':_0x232e28(this[_0x1d7a9e(0xde)],_0x1d7a9e(0xdc)),'withText':!0x0,'icon':_0x618c52,'class':_0x1d7a9e(0xe3)}),_0x408776['on'](_0x1d7a9e(0xcf),()=>{const _0x36ba7e=_0x1d7a9e;this[_0x36ba7e(0xd8)](_0x36ba7e(0xd4));}),_0x408776;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x28eb6c=_0x43d1;(function(_0x55d8bf,_0x437a53){var _0x38d66d=_0x43d1,_0x5e22c3=_0x55d8bf();while(!![]){try{var _0x1d5416=parseInt(_0x38d66d(0x164))/0x1*(-parseInt(_0x38d66d(0x165))/0x2)+parseInt(_0x38d66d(0x16c))/0x3*(-parseInt(_0x38d66d(0x16a))/0x4)+-parseInt(_0x38d66d(0x161))/0x5+parseInt(_0x38d66d(0x15b))/0x6*(parseInt(_0x38d66d(0x15f))/0x7)+parseInt(_0x38d66d(0x16b))/0x8+parseInt(_0x38d66d(0x171))/0x9+parseInt(_0x38d66d(0x173))/0xa*(parseInt(_0x38d66d(0x168))/0xb);if(_0x1d5416===_0x437a53)break;else _0x5e22c3['push'](_0x5e22c3['shift']());}catch(_0x4c32af){_0x5e22c3['push'](_0x5e22c3['shift']());}}}(_0x9e1f,0x97b23));import{View as _0xa7306a,BodyCollection as _0x134f71}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x25348f}from'../utils/eventnames.js';import{AIChatFeedView as _0xe78333}from'./aichatfeedview.js';import{AIChatControlsView as _0x5d7532}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x1606d8}from'./aichatheaderview.js';import{AIDisclaimerView as _0x2a9f51}from'../../aicore/ui/aidisclaimerview.js';function _0x43d1(_0x3adca9,_0x9c2161){var _0x9e1f0d=_0x9e1f();return _0x43d1=function(_0x43d17f,_0x51fdd0){_0x43d17f=_0x43d17f-0x15a;var _0x865d01=_0x9e1f0d[_0x43d17f];return _0x865d01;},_0x43d1(_0x3adca9,_0x9c2161);}function _0x9e1f(){var _0x5cda5e=['detachFromDom','delegate','203886ObRJdf','div','_bodyCollection','uiLanguageDirection','70xBEjua','ck-ai-chat','3434905afYtpK','showResizeButton','chatHeader','361246KxUtKp','6pqQCjw','contextResourcesSearchInputVisibleFrom','destroy','250459IyUzwb','closeSourceResourceBalloon','444MEgEsu','5537744YbGJca','2772NliLVm','setTemplate','ck-rounded-corners','chatControls','attachToDom','9679761espypa','populateSourceResourceBalloon','170RnGFOj','chatFeed','chatDisclaimer','ck-reset_all'];_0x9e1f=function(){return _0x5cda5e;};return _0x9e1f();}export class AIChatView extends _0xa7306a{[_0x28eb6c(0x163)];[_0x28eb6c(0x174)];[_0x28eb6c(0x16f)];[_0x28eb6c(0x175)];[_0x28eb6c(0x15d)];constructor(_0x20d2ca,_0x458bbe){var _0x2ec418=_0x28eb6c;super(_0x20d2ca),this[_0x2ec418(0x15d)]=new _0x134f71(_0x20d2ca),this[_0x2ec418(0x15d)][_0x2ec418(0x170)](),this[_0x2ec418(0x163)]=new _0x1606d8(_0x20d2ca,_0x458bbe[_0x2ec418(0x162)]),this[_0x2ec418(0x163)][_0x2ec418(0x15a)](..._0x25348f)['to'](this),this[_0x2ec418(0x174)]=new _0xe78333(_0x20d2ca,this[_0x2ec418(0x15d)]),this[_0x2ec418(0x174)][_0x2ec418(0x15a)](..._0x25348f)['to'](this),this[_0x2ec418(0x16f)]=new _0x5d7532(_0x20d2ca,{'bodyCollection':this[_0x2ec418(0x15d)],'contextResourcesSearchInputVisibleFrom':_0x458bbe[_0x2ec418(0x166)]}),this[_0x2ec418(0x16f)][_0x2ec418(0x15a)](..._0x25348f)['to'](this),this[_0x2ec418(0x175)]=new _0x2a9f51(_0x20d2ca),this[_0x2ec418(0x16d)]({'tag':_0x2ec418(0x15c),'attributes':{'class':['ck',_0x2ec418(0x176),_0x2ec418(0x160),_0x2ec418(0x16e)],'dir':_0x20d2ca[_0x2ec418(0x15e)]},'children':[this[_0x2ec418(0x163)],this[_0x2ec418(0x174)],this[_0x2ec418(0x16f)],this[_0x2ec418(0x175)]]});}[_0x28eb6c(0x172)](_0x1b6603,_0xc29798,_0xf40f70,_0x5c292f){var _0x48612e=_0x28eb6c;this[_0x48612e(0x16f)][_0x48612e(0x172)](_0x1b6603,_0xc29798,_0xf40f70,_0x5c292f);}[_0x28eb6c(0x169)](_0x260a92){var _0x1bc227=_0x28eb6c;this[_0x1bc227(0x16f)][_0x1bc227(0x169)](_0x260a92);}[_0x28eb6c(0x167)](){var _0x6f97dc=_0x28eb6c;this[_0x6f97dc(0x15d)][_0x6f97dc(0x177)](),super[_0x6f97dc(0x167)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x5f3c(_0x523bbe,_0x37f394){const _0x5b62f4=_0x5b62();return _0x5f3c=function(_0x5f3c8f,_0x972f9){_0x5f3c8f=_0x5f3c8f-0xdd;let _0x32cd21=_0x5b62f4[_0x5f3c8f];return _0x32cd21;},_0x5f3c(_0x523bbe,_0x37f394);}function _0x5b62(){const _0xf6880c=['_containerElement','length','visible','_renderChipsAndCountRows','absolute','boxSizing','280012VeTlMs','_config','pin','_restoreAncestorVisibility','_findTargetContainer','_applyCalculationStyles','appendChild','_applyOverflowResults','_isContainerVisible','hideBalloonPanel','innerWidth','showMoreButton','width','50px','19611zuUvGD','visible\x20!important','reorganizeChips','zIndex','clientHeight','_createShowMoreButtonView','tagName','label','_repinBalloonPanel','_createShowMoreButton','_updateOverflowUI','show','forEach','right','35LNjLGf','push','488rALdAp','height','border-box','isOn','showMoreLabelPrefix','11262420cAyvuJ','_intersectionObserver','_createMockButton','none','add','top','block\x20!important','pointerEvents','overflowContainer','setTemplate','_distributeChips','content','_updateBalloonContent','showBalloonPanel','_pendingCalculation','getBoundingClientRect','observe','innerHeight','documentElement','undefined','button','_targetContainer','className','disconnect','_calculateContainerWidth','isIntersecting','cssClasses','parentElement','_checkAndHandleOverflow','style','isConnected','destroy','querySelector','getComputedStyle','17916kHdAhj','_locale','bottom','+\x201','_bodyCollection','300px','_showMoreButtonView','_createShowMoreBalloonPanelView','hide','clear','0px','ck-calculation-container','386446QkcJJm','position','isVisible','block','includes','calculationContainer','hidden','_calculateOverflowInContainer','visibility','_testButtonFit','_createCalculationContainer','overflowChips','body','_setupVisibilityObserver','toLowerCase','_ancestorsToRestore','set','-9999px','innerHTML','_parentView','clientWidth','1109949pgLuAr','filter','137992CxtPuU','_showMoreBalloonPanelView','render','.ck-ai-chat','abs','maxVisibleRows','auto','children','opacity','showMoreButtonView','slice','controlsButton','_overflowChips','_createContainerElements','from','_visibleChips','rowDetectionTolerance','_handleShowMoreButtonClick','pop','disableAnimationOnEnter','remove','classList','element','some','div','execute','cloneNode','offsetWidth','_makeAncestorsVisible','left','createElement','display','extendTemplate','10pmflmt','setContainerElement','showMoreBalloon','textContent','_updateShowMoreButtonVisibility'];_0x5b62=function(){return _0xf6880c;};return _0x5b62();}const _0x52ffef=_0x5f3c;(function(_0x3e0da0,_0x36557c){const _0x31fd25=_0x5f3c,_0x314fef=_0x3e0da0();while(!![]){try{const _0x32b0fd=-parseInt(_0x31fd25(0x10a))/0x1+parseInt(_0x31fd25(0x121))/0x2+-parseInt(_0x31fd25(0x11f))/0x3+-parseInt(_0x31fd25(0x14d))/0x4*(-parseInt(_0x31fd25(0x142))/0x5)+parseInt(_0x31fd25(0xfe))/0x6*(-parseInt(_0x31fd25(0x169))/0x7)+-parseInt(_0x31fd25(0x16b))/0x8*(parseInt(_0x31fd25(0x15b))/0x9)+parseInt(_0x31fd25(0x170))/0xa;if(_0x32b0fd===_0x36557c)break;else _0x314fef['push'](_0x314fef['shift']());}catch(_0x28f481){_0x314fef['push'](_0x314fef['shift']());}}}(_0x5b62,0x69376));import{View as _0x3d0895,BalloonPanelView as _0x4a40a3,ButtonView as _0x1d4db8,clickOutsideHandler as _0x5e4afb}from'ckeditor5/src/ui.js';import{Collection as _0x3a9232}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x52ffef(0x103);export class AIChatChipsOverflowManager{[_0x52ffef(0xff)];[_0x52ffef(0x14e)];[_0x52ffef(0x130)];[_0x52ffef(0x12d)];[_0x52ffef(0x104)]=null;[_0x52ffef(0x122)]=null;[_0x52ffef(0x147)]=null;[_0x52ffef(0x102)];[_0x52ffef(0x11d)]=null;[_0x52ffef(0xdd)]=null;[_0x52ffef(0xea)]=!0x1;constructor(_0x17d8be,_0x315f29,_0x28d3d0,_0x567fee,_0x3c8d74){const _0xf8cd5f=_0x52ffef;this[_0xf8cd5f(0xff)]=_0x17d8be,this[_0xf8cd5f(0x130)]=_0x315f29,this[_0xf8cd5f(0x14e)]={...hn,..._0x28d3d0,'cssClasses':{'controlsButton':'','calculationContainer':_0xf8cd5f(0x109),..._0x28d3d0[_0xf8cd5f(0xf6)]}},this[_0xf8cd5f(0x12d)]=new _0x3a9232(),this[_0xf8cd5f(0x102)]=_0x567fee,this[_0xf8cd5f(0x11d)]=_0x3c8d74||null;}[_0x52ffef(0x143)](_0x3d5a38){const _0xfcf733=_0x52ffef;this[_0xfcf733(0xdd)]&&(this[_0xfcf733(0xdd)][_0xfcf733(0xf3)](),this[_0xfcf733(0xdd)]=null),this[_0xfcf733(0x147)]=_0x3d5a38,this[_0xfcf733(0x117)]();}get[_0x52ffef(0x12a)](){const _0x320a71=_0x52ffef;return this[_0x320a71(0x104)];}get[_0x52ffef(0x115)](){const _0x56a414=_0x52ffef;return this[_0x56a414(0x12d)];}[_0x52ffef(0x15d)](){requestAnimationFrame(()=>{const _0x17d36c=_0x5f3c;this[_0x17d36c(0xf8)]();});}[_0x52ffef(0xe9)](){const _0xb8767b=_0x52ffef;this[_0xb8767b(0x104)]&&this[_0xb8767b(0x122)]&&(this[_0xb8767b(0xe8)](),this[_0xb8767b(0x104)][_0xb8767b(0x16e)]=!0x0,this[_0xb8767b(0x122)][_0xb8767b(0x166)](),this[_0xb8767b(0x122)][_0xb8767b(0x14f)]({'target':this[_0xb8767b(0x104)][_0xb8767b(0x137)],'limiter':document[_0xb8767b(0xfc)](_0xb8767b(0x124))}));}[_0x52ffef(0x156)](){const _0x4621cd=_0x52ffef;this[_0x4621cd(0x104)]&&this[_0x4621cd(0x122)]&&(this[_0x4621cd(0x104)][_0x4621cd(0x16e)]=!0x1,this[_0x4621cd(0x122)][_0x4621cd(0x106)]());}[_0x52ffef(0x107)](){const _0x255ae3=_0x52ffef;this[_0x255ae3(0x12d)][_0x255ae3(0x107)](),this[_0x255ae3(0x156)](),this[_0x255ae3(0x146)](),this[_0x255ae3(0x104)]&&(this[_0x255ae3(0x104)][_0x255ae3(0x162)]=''),this[_0x255ae3(0x122)]&&this[_0x255ae3(0x122)][_0x255ae3(0xe7)][_0x255ae3(0x107)]();}[_0x52ffef(0xfb)](){const _0x16a20b=_0x52ffef;this[_0x16a20b(0xdd)]&&(this[_0x16a20b(0xdd)][_0x16a20b(0xf3)](),this[_0x16a20b(0xdd)]=null),this[_0x16a20b(0x104)]&&(this[_0x16a20b(0x104)][_0x16a20b(0xfb)](),this[_0x16a20b(0x104)]=null),this[_0x16a20b(0x122)]&&(this[_0x16a20b(0x122)][_0x16a20b(0xfb)](),this[_0x16a20b(0x122)]=null);}[_0x52ffef(0xf8)](){const _0x55fb90=_0x52ffef;if(!this[_0x55fb90(0x147)])return;if(!this[_0x55fb90(0x155)]())return void(this[_0x55fb90(0xea)]=!0x0);this[_0x55fb90(0xea)]=!0x1;const _0x46f169=[...this[_0x55fb90(0x130)],...this[_0x55fb90(0x12d)]],_0x3df467=this[_0x55fb90(0x114)](),_0x27cb82=this[_0x55fb90(0x111)](_0x3df467,_0x46f169),_0x2b3c28=_0x3df467[_0x55fb90(0x119)];_0x2b3c28&&this[_0x55fb90(0x150)](_0x2b3c28),_0x3df467[_0x55fb90(0x135)](),this[_0x55fb90(0x154)](_0x46f169,_0x27cb82);}[_0x52ffef(0x164)](){const _0x313bac=_0x52ffef;this[_0x313bac(0x104)]=this[_0x313bac(0x160)](),this[_0x313bac(0x122)]=this[_0x313bac(0x105)](),this[_0x313bac(0x104)][_0x313bac(0x123)](),this[_0x313bac(0x147)][_0x313bac(0x153)](this[_0x313bac(0x104)][_0x313bac(0x137)]),this[_0x313bac(0x104)]['on'](_0x313bac(0x13a),()=>{const _0xb9b841=_0x313bac;this[_0xb9b841(0x132)]();}),_0x5e4afb({'emitter':this[_0x313bac(0x122)],'contextElements':[this[_0x313bac(0x122)][_0x313bac(0x137)],this[_0x313bac(0x104)][_0x313bac(0x137)]],'callback':()=>this[_0x313bac(0x156)](),'activator':()=>this[_0x313bac(0x104)][_0x313bac(0x16e)]});}[_0x52ffef(0x160)](){const _0x380038=_0x52ffef,_0x520da5=new _0x1d4db8(this[_0x380038(0xff)]);_0x520da5[_0x380038(0x11a)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x46db00=[this[_0x380038(0x14e)][_0x380038(0xf6)][_0x380038(0x158)]];return this[_0x380038(0x14e)][_0x380038(0xf6)][_0x380038(0x12c)]&&_0x46db00[_0x380038(0x16a)](this[_0x380038(0x14e)][_0x380038(0xf6)][_0x380038(0x12c)]),_0x520da5[_0x380038(0x141)]({'attributes':{'class':_0x46db00}}),_0x520da5;}[_0x52ffef(0x105)](){const _0x3d37b0=_0x52ffef,_0x57ed6b=new _0x4a40a3(this[_0x3d37b0(0xff)]);return _0x57ed6b[_0x3d37b0(0x141)]({'attributes':{'class':this[_0x3d37b0(0x14e)][_0x3d37b0(0xf6)][_0x3d37b0(0x144)]}}),this[_0x3d37b0(0x102)][_0x3d37b0(0xe0)](_0x57ed6b),_0x57ed6b;}[_0x52ffef(0xe8)](){const _0x49e9b3=_0x52ffef;if(this[_0x49e9b3(0x122)]&&(this[_0x49e9b3(0x122)][_0x49e9b3(0xe7)][_0x49e9b3(0x107)](),this[_0x49e9b3(0x12d)][_0x49e9b3(0x148)]>0x0)){this[_0x49e9b3(0x12d)][_0x49e9b3(0x167)](_0x23bc96=>{const _0x5e7052=_0x49e9b3;_0x23bc96[_0x5e7052(0x134)]();});const _0x25af09=new _0x3d0895(this[_0x49e9b3(0xff)]);_0x25af09[_0x49e9b3(0xe5)]({'tag':_0x49e9b3(0x139),'attributes':{'class':this[_0x49e9b3(0x14e)][_0x49e9b3(0xf6)][_0x49e9b3(0xe4)]},'children':this[_0x49e9b3(0x12d)]}),this[_0x49e9b3(0x122)][_0x49e9b3(0xe7)][_0x49e9b3(0xe0)](_0x25af09);}}[_0x52ffef(0x132)](){const _0x15e435=_0x52ffef;this[_0x15e435(0x104)][_0x15e435(0x16e)]?this[_0x15e435(0x156)]():this[_0x15e435(0xe9)]();}[_0x52ffef(0x146)](){const _0x27bb02=_0x52ffef,_0x30a336=this[_0x27bb02(0x12d)][_0x27bb02(0x148)]>0x0;this[_0x27bb02(0x104)]?.[_0x27bb02(0x137)]&&(this[_0x27bb02(0x104)][_0x27bb02(0x137)][_0x27bb02(0xf9)][_0x27bb02(0x140)]=_0x30a336?'':_0x27bb02(0xdf));}[_0x52ffef(0x163)](){const _0x405d9a=_0x52ffef;this[_0x405d9a(0x104)]?.[_0x405d9a(0x16e)]&&this[_0x405d9a(0x122)]?.[_0x405d9a(0x10c)]&&this[_0x405d9a(0x104)][_0x405d9a(0x137)]&&this[_0x405d9a(0x122)][_0x405d9a(0x14f)]({'target':this[_0x405d9a(0x104)][_0x405d9a(0x137)],'limiter':document[_0x405d9a(0xfc)](_0x405d9a(0x124))});}[_0x52ffef(0x151)](_0x5173f4){const _0x55e5a9=_0x52ffef,_0x140e10=this[_0x55e5a9(0x147)]?.[_0x55e5a9(0x161)][_0x55e5a9(0x118)]()||_0x55e5a9(0x139),_0x391574=this[_0x55e5a9(0x147)]?.[_0x55e5a9(0x136)];if(_0x391574){const _0x1c74f4=_0x391574[0x0]||'',_0x3adf52=_0x5173f4[_0x55e5a9(0xfc)]('.'+_0x1c74f4),_0x12bfe2=_0x5173f4[_0x55e5a9(0xfc)](_0x140e10);return _0x3adf52||_0x12bfe2||_0x5173f4;}return _0x5173f4[_0x55e5a9(0xfc)](_0x140e10)||_0x5173f4;}[_0x52ffef(0xf4)](){const _0x2603c1=_0x52ffef,_0x4a71aa=this[_0x2603c1(0x11d)]?.[_0x2603c1(0x137)]||this[_0x2603c1(0x147)];if(!_0x4a71aa)return an;const _0x150524=window[_0x2603c1(0xfd)](_0x4a71aa)[_0x2603c1(0x159)];if(_0x2603c1(0x127)===_0x150524||_0x2603c1(0x108)===_0x150524||!_0x150524){const _0x1fc4be=_0x4a71aa[_0x2603c1(0xf7)];if(_0x1fc4be){const _0x39c20a=window[_0x2603c1(0xfd)](_0x1fc4be);return _0x2603c1(0x127)!==_0x39c20a[_0x2603c1(0x159)]?_0x39c20a[_0x2603c1(0x159)]:an;}return an;}return _0x150524;}[_0x52ffef(0x152)](_0x12f4bd,_0xfac056){const _0x17490b=_0x52ffef;this[_0x17490b(0x14e)][_0x17490b(0xf6)][_0x17490b(0x10f)]&&_0x12f4bd[_0x17490b(0x136)][_0x17490b(0xe0)](this[_0x17490b(0x14e)][_0x17490b(0xf6)][_0x17490b(0x10f)]),_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x159)]=_0xfac056,_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x10b)]=_0x17490b(0x14b),_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0xe1)]=_0x17490b(0x11b),_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x13e)]=_0x17490b(0x11b),_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x129)]='0',_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0xe3)]=_0x17490b(0xdf),_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x15e)]='-1',_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x112)]=_0x17490b(0x15c),_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x140)]=_0x17490b(0xe2),_0x12f4bd[_0x17490b(0xf9)][_0x17490b(0x14c)]=_0x17490b(0x16d);}[_0x52ffef(0x150)](_0x5d6d93){const _0x48983b=_0x52ffef;_0x5d6d93[_0x48983b(0x167)](({element:_0x128315,originalDisplay:_0x139ad2,originalVisibility:_0x1684ab})=>{const _0xf6359b=_0x48983b;_0x128315[_0xf6359b(0xf9)][_0xf6359b(0x140)]=_0x139ad2,_0x128315[_0xf6359b(0xf9)][_0xf6359b(0x112)]=_0x1684ab;});}[_0x52ffef(0x13d)](_0x43adc3){const _0x29cc5d=_0x52ffef,_0x2aed77=[];let _0x3ed3a9=_0x43adc3;for(;_0x3ed3a9&&_0x3ed3a9!==document[_0x29cc5d(0x116)];){const _0x32dabe=window[_0x29cc5d(0xfd)](_0x3ed3a9);_0x29cc5d(0xdf)!==_0x32dabe[_0x29cc5d(0x140)]&&_0x29cc5d(0x110)!==_0x32dabe[_0x29cc5d(0x112)]||(_0x2aed77[_0x29cc5d(0x16a)]({'element':_0x3ed3a9,'originalDisplay':_0x3ed3a9[_0x29cc5d(0xf9)][_0x29cc5d(0x140)],'originalVisibility':_0x3ed3a9[_0x29cc5d(0xf9)][_0x29cc5d(0x112)]}),_0x3ed3a9[_0x29cc5d(0xf9)][_0x29cc5d(0x140)]=_0x29cc5d(0x10d),_0x3ed3a9[_0x29cc5d(0xf9)][_0x29cc5d(0x112)]=_0x29cc5d(0x149)),_0x3ed3a9=_0x3ed3a9[_0x29cc5d(0xf7)];}return _0x2aed77;}[_0x52ffef(0x12e)](){const _0x5b38cd=_0x52ffef;let _0x2c83c7,_0x2c7fbb;return this[_0x5b38cd(0x11d)]?.[_0x5b38cd(0x137)]?(_0x2c83c7=this[_0x5b38cd(0x11d)][_0x5b38cd(0x137)][_0x5b38cd(0x13b)](!0x0),_0x2c7fbb=this[_0x5b38cd(0x151)](_0x2c83c7)):(_0x2c83c7=document[_0x5b38cd(0x13f)](_0x5b38cd(0x139)),_0x2c7fbb=_0x2c83c7),{'calculationContainer':_0x2c83c7,'targetContainer':_0x2c7fbb};}[_0x52ffef(0x114)](){const _0x118326=_0x52ffef,{calculationContainer:_0x4ca1e6,targetContainer:_0x365964}=this[_0x118326(0x12e)](),_0x206e40=this[_0x118326(0xf4)]();this[_0x118326(0x152)](_0x4ca1e6,_0x206e40);const _0x55fa71=this[_0x118326(0x11d)]?.[_0x118326(0x137)]||this[_0x118326(0x147)],_0x413dd2=_0x55fa71?.[_0x118326(0xf7)];_0x413dd2?_0x413dd2[_0x118326(0x153)](_0x4ca1e6):document[_0x118326(0x116)][_0x118326(0x153)](_0x4ca1e6),_0x4ca1e6[_0x118326(0xf1)]=_0x365964;const _0xdfe193=this[_0x118326(0x13d)](_0x413dd2||null);return _0x4ca1e6[_0x118326(0x13c)],_0x4ca1e6[_0x118326(0x119)]=_0xdfe193,_0x4ca1e6;}[_0x52ffef(0x111)](_0x78ad76,_0x3f4e5c){const _0x1667af=_0x52ffef,_0x5352a5=_0x78ad76[_0x1667af(0xf1)]||_0x78ad76,_0x62a737=[],{rowCount:_0x7df3fd}=this[_0x1667af(0x14a)](_0x5352a5,_0x3f4e5c);if(_0x7df3fd<=this[_0x1667af(0x14e)][_0x1667af(0x126)])return _0x62a737;const _0x3529ca=_0x3f4e5c[_0x1667af(0x12b)]();for(;_0x3529ca[_0x1667af(0x148)]>0x0;){if(this[_0x1667af(0x113)](_0x78ad76,_0x5352a5,_0x3529ca)){const _0x2def85=_0x3f4e5c[_0x1667af(0x120)](_0x2c165f=>!_0x3529ca[_0x1667af(0x10e)](_0x2c165f));_0x62a737[_0x1667af(0x16a)](..._0x2def85);break;}if(!_0x3529ca[_0x1667af(0x133)]())break;}return _0x62a737;}[_0x52ffef(0x14a)](_0x56e769,_0x3dadd1){const _0x33864e=_0x52ffef;_0x56e769[_0x33864e(0x11c)]='',_0x3dadd1[_0x33864e(0x167)](_0x7ab181=>{const _0x215723=_0x33864e;if(_0x7ab181[_0x215723(0x137)]){const _0x14d3f3=_0x7ab181[_0x215723(0x137)][_0x215723(0x13b)](!0x0);_0x56e769[_0x215723(0x153)](_0x14d3f3);}}),_0x56e769[_0x33864e(0x13c)];const _0x543884=_0x56e769[_0x33864e(0x128)],_0xeefa4e=[];return Array[_0x33864e(0x12f)](_0x543884)[_0x33864e(0x167)](_0x85d88b=>{const _0x37166c=_0x33864e,_0x101158=_0x85d88b[_0x37166c(0xeb)]()[_0x37166c(0xe1)];_0xeefa4e[_0x37166c(0x138)](_0x162e08=>Math[_0x37166c(0x125)](_0x162e08-_0x101158)<this[_0x37166c(0x14e)][_0x37166c(0x131)])||_0xeefa4e[_0x37166c(0x16a)](_0x101158);}),{'rowCount':_0xeefa4e[_0x33864e(0x148)]};}[_0x52ffef(0xde)](){const _0x5b33de=_0x52ffef,_0x130427=document[_0x5b33de(0x13f)](_0x5b33de(0xf0));return _0x130427[_0x5b33de(0xf2)]=this[_0x5b33de(0x14e)][_0x5b33de(0xf6)][_0x5b33de(0x158)],this[_0x5b33de(0x14e)][_0x5b33de(0xf6)][_0x5b33de(0x12c)]&&_0x130427[_0x5b33de(0x136)][_0x5b33de(0xe0)](this[_0x5b33de(0x14e)][_0x5b33de(0xf6)][_0x5b33de(0x12c)]),_0x130427[_0x5b33de(0x145)]=_0x5b33de(0x101),_0x130427;}[_0x52ffef(0x113)](_0x3cb0cc,_0x525803,_0x30f8b0){const _0x4ec8f0=_0x52ffef;this[_0x4ec8f0(0x14a)](_0x525803,_0x30f8b0);const _0x274b8c=this[_0x4ec8f0(0xde)]();_0x3cb0cc[_0x4ec8f0(0x153)](_0x274b8c),_0x3cb0cc[_0x4ec8f0(0x13c)];const _0x43b2c4=[..._0x525803[_0x4ec8f0(0x128)],_0x274b8c],_0x781b23=[];_0x43b2c4[_0x4ec8f0(0x167)](_0x3d065a=>{const _0x2ae800=_0x4ec8f0,_0x59167b=_0x3d065a[_0x2ae800(0xeb)]()[_0x2ae800(0xe1)];_0x781b23[_0x2ae800(0x138)](_0xd4929f=>Math[_0x2ae800(0x125)](_0xd4929f-_0x59167b)<this[_0x2ae800(0x14e)][_0x2ae800(0x131)])||_0x781b23[_0x2ae800(0x16a)](_0x59167b);});const _0x558c6c=_0x781b23[_0x4ec8f0(0x148)];return _0x274b8c[_0x4ec8f0(0x135)](),_0x558c6c<=this[_0x4ec8f0(0x14e)][_0x4ec8f0(0x126)];}[_0x52ffef(0xe6)](_0x1e3343,_0xcf344c){const _0x189654=_0x52ffef;this[_0x189654(0x130)][_0x189654(0x107)](),this[_0x189654(0x12d)][_0x189654(0x107)](),_0x1e3343[_0x189654(0x167)](_0x134eed=>{const _0x1fe0a6=_0x189654;_0xcf344c[_0x1fe0a6(0x10e)](_0x134eed)?this[_0x1fe0a6(0x12d)][_0x1fe0a6(0xe0)](_0x134eed):this[_0x1fe0a6(0x130)][_0x1fe0a6(0xe0)](_0x134eed);});}[_0x52ffef(0x165)](_0x2c2334){const _0x50d00d=_0x52ffef;if(_0x2c2334>0x0&&!this[_0x50d00d(0x104)]&&this[_0x50d00d(0x164)](),_0x2c2334>0x0&&this[_0x50d00d(0x104)]){const _0x96782d=''+this[_0x50d00d(0x14e)][_0x50d00d(0x16f)]+(_0x2c2334<0x63?_0x2c2334:'99');this[_0x50d00d(0x104)][_0x50d00d(0x162)]=_0x96782d;}this[_0x50d00d(0xe8)](),this[_0x50d00d(0x146)](),this[_0x50d00d(0x163)]();}[_0x52ffef(0x154)](_0x44e664,_0x466fcb){const _0x5d6378=_0x52ffef;this[_0x5d6378(0xe6)](_0x44e664,_0x466fcb),this[_0x5d6378(0x165)](_0x466fcb[_0x5d6378(0x148)]);}[_0x52ffef(0x117)](){const _0x449d97=_0x52ffef;this[_0x449d97(0x147)]&&_0x449d97(0xef)!=typeof IntersectionObserver&&(this[_0x449d97(0xdd)]=new IntersectionObserver(_0x55f81a=>{const _0x403b53=_0x449d97;_0x55f81a[0x0][_0x403b53(0xf5)]&&this[_0x403b53(0xea)]&&requestAnimationFrame(()=>{const _0x42b905=_0x403b53;this[_0x42b905(0xf8)]();});},{'threshold':0.01,'rootMargin':_0x449d97(0x15a)}),this[_0x449d97(0xdd)][_0x449d97(0xec)](this[_0x449d97(0x147)]));}[_0x52ffef(0x155)](){const _0x5a09f4=_0x52ffef;if(!this[_0x5a09f4(0x147)])return!0x1;if(!this[_0x5a09f4(0x147)][_0x5a09f4(0xfa)])return!0x1;const _0x5d14ae=this[_0x5a09f4(0x147)][_0x5a09f4(0xeb)]();if(0x0===_0x5d14ae[_0x5a09f4(0x159)]||0x0===_0x5d14ae[_0x5a09f4(0x16c)])return!0x1;const _0x4a4670=window[_0x5a09f4(0xed)]||document[_0x5a09f4(0xee)][_0x5a09f4(0x15f)],_0x5a444e=window[_0x5a09f4(0x157)]||document[_0x5a09f4(0xee)][_0x5a09f4(0x11e)],_0x38ded5=0xc8;return _0x5d14ae[_0x5a09f4(0x100)]>=-0xc8&&_0x5d14ae[_0x5a09f4(0xe1)]<=_0x4a4670+_0x38ded5&&_0x5d14ae[_0x5a09f4(0x168)]>=-0xc8&&_0x5d14ae[_0x5a09f4(0x13e)]<=_0x5a444e+_0x38ded5;}}
|
|
23
|
+
const _0x2195ee=_0x176c;(function(_0x48815a,_0x303aea){const _0x205ca4=_0x176c,_0x5d4487=_0x48815a();while(!![]){try{const _0x2873f7=-parseInt(_0x205ca4(0x1d1))/0x1*(-parseInt(_0x205ca4(0x242))/0x2)+-parseInt(_0x205ca4(0x21d))/0x3+parseInt(_0x205ca4(0x23a))/0x4*(parseInt(_0x205ca4(0x1ef))/0x5)+parseInt(_0x205ca4(0x229))/0x6*(-parseInt(_0x205ca4(0x210))/0x7)+parseInt(_0x205ca4(0x1fd))/0x8*(-parseInt(_0x205ca4(0x1fc))/0x9)+parseInt(_0x205ca4(0x258))/0xa*(-parseInt(_0x205ca4(0x1f6))/0xb)+parseInt(_0x205ca4(0x20a))/0xc;if(_0x2873f7===_0x303aea)break;else _0x5d4487['push'](_0x5d4487['shift']());}catch(_0x2cb45e){_0x5d4487['push'](_0x5d4487['shift']());}}}(_0xb42c,0x4dbdd));function _0x176c(_0x5bb0c7,_0x1f9002){const _0xb42c02=_0xb42c();return _0x176c=function(_0x176cb8,_0x18fbfe){_0x176cb8=_0x176cb8-0x1cc;let _0x4acc73=_0xb42c02[_0x176cb8];return _0x4acc73;},_0x176c(_0x5bb0c7,_0x1f9002);}import{View as _0x5a7bed,BalloonPanelView as _0x23eb95,ButtonView as _0x5a955d,clickOutsideHandler as _0x20b850}from'ckeditor5/src/ui.js';function _0xb42c(){const _0x42dd3d=['tagName','hide','_renderChipsAndCountRows','some','showBalloonPanel','pop','+\x201','controlsButton','body','maxVisibleRows','cloneNode','none','overflowContainer','calculationContainer','visible','textContent','top','showMoreLabelPrefix','bottom','_handleShowMoreButtonClick','_checkAndHandleOverflow','_updateOverflowUI','set','isIntersecting','render','_repinBalloonPanel','button','height','_bodyCollection','5TcFbjL','_calculateOverflowInContainer','setTemplate','_parentView','_createShowMoreButton','_createShowMoreBalloonPanelView','zIndex','22CrZlDg','_locale','innerHeight','clientWidth','observe','opacity','747bmqNFx','21320pNrCYy','div','content','50px','isOn','show','reorganizeChips','disableAnimationOnEnter','_distributeChips','_setupVisibilityObserver','right','isConnected','-9999px','12420684rlQGhJ','_overflowChips','showMoreBalloon','absolute','_createShowMoreButtonView','_makeAncestorsVisible','14FVKJWz','_updateShowMoreButtonVisibility','filter','pin','offsetWidth','execute','300px','hidden','clientHeight','0px','setContainerElement','showMoreButton','border-box','1324557EfynnW','className','position','showMoreButtonView','_pendingCalculation','_intersectionObserver','visibility','.ck-ai-chat','display','extendTemplate','push','clear','1275174eLiPSA','getBoundingClientRect','_showMoreButtonView','_applyOverflowResults','includes','ck-calculation-container','from','_config','add','undefined','block\x20!important','_updateBalloonContent','_findTargetContainer','_createContainerElements','auto','disconnect','boxSizing','976828cTXMQG','forEach','slice','cssClasses','visible\x20!important','block','_createCalculationContainer','abs','2hQKUkC','_createMockButton','hideBalloonPanel','_testButtonFit','innerHTML','_visibleChips','_showMoreBalloonPanelView','_calculateContainerWidth','destroy','isVisible','children','_isContainerVisible','_targetContainer','documentElement','style','remove','innerWidth','appendChild','getComputedStyle','pointerEvents','label','toLowerCase','1195930SyxuVZ','classList','length','overflowChips','_containerElement','_restoreAncestorVisibility','querySelector','createElement','_applyCalculationStyles','parentElement','_ancestorsToRestore','left','element','rowDetectionTolerance','width','366123lQzcaf'];_0xb42c=function(){return _0x42dd3d;};return _0xb42c();}import{Collection as _0xd9f10a}from'ckeditor5/src/utils.js';const dn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},bn=_0x2195ee(0x216);export class AIChatChipsOverflowManager{[_0x2195ee(0x1f7)];[_0x2195ee(0x230)];[_0x2195ee(0x247)];[_0x2195ee(0x20b)];[_0x2195ee(0x22b)]=null;[_0x2195ee(0x248)]=null;[_0x2195ee(0x25c)]=null;[_0x2195ee(0x1ee)];[_0x2195ee(0x1f2)]=null;[_0x2195ee(0x222)]=null;[_0x2195ee(0x221)]=!0x1;constructor(_0x33d135,_0x4a2f58,_0x46e5dd,_0x4bbe60,_0x54e2fb){const _0xd2d8f0=_0x2195ee;this[_0xd2d8f0(0x1f7)]=_0x33d135,this[_0xd2d8f0(0x247)]=_0x4a2f58,this[_0xd2d8f0(0x230)]={...dn,..._0x46e5dd,'cssClasses':{'controlsButton':'','calculationContainer':_0xd2d8f0(0x22e),..._0x46e5dd[_0xd2d8f0(0x23d)]}},this[_0xd2d8f0(0x20b)]=new _0xd9f10a(),this[_0xd2d8f0(0x1ee)]=_0x4bbe60,this[_0xd2d8f0(0x1f2)]=_0x54e2fb||null;}[_0x2195ee(0x21a)](_0x9efdc2){const _0x18a004=_0x2195ee;this[_0x18a004(0x222)]&&(this[_0x18a004(0x222)][_0x18a004(0x238)](),this[_0x18a004(0x222)]=null),this[_0x18a004(0x25c)]=_0x9efdc2,this[_0x18a004(0x206)]();}get[_0x2195ee(0x220)](){const _0x1c8c9b=_0x2195ee;return this[_0x1c8c9b(0x22b)];}get[_0x2195ee(0x25b)](){const _0x55dd4a=_0x2195ee;return this[_0x55dd4a(0x20b)];}[_0x2195ee(0x203)](){requestAnimationFrame(()=>{const _0x41a561=_0x176c;this[_0x41a561(0x1e6)]();});}[_0x2195ee(0x1d6)](){const _0x5b1ab9=_0x2195ee;this[_0x5b1ab9(0x22b)]&&this[_0x5b1ab9(0x248)]&&(this[_0x5b1ab9(0x234)](),this[_0x5b1ab9(0x22b)][_0x5b1ab9(0x201)]=!0x0,this[_0x5b1ab9(0x248)][_0x5b1ab9(0x202)](),this[_0x5b1ab9(0x248)][_0x5b1ab9(0x213)]({'target':this[_0x5b1ab9(0x22b)][_0x5b1ab9(0x1ce)],'limiter':document[_0x5b1ab9(0x25e)](_0x5b1ab9(0x224))}));}[_0x2195ee(0x244)](){const _0x33159d=_0x2195ee;this[_0x33159d(0x22b)]&&this[_0x33159d(0x248)]&&(this[_0x33159d(0x22b)][_0x33159d(0x201)]=!0x1,this[_0x33159d(0x248)][_0x33159d(0x1d3)]());}[_0x2195ee(0x228)](){const _0x3186e4=_0x2195ee;this[_0x3186e4(0x20b)][_0x3186e4(0x228)](),this[_0x3186e4(0x244)](),this[_0x3186e4(0x211)](),this[_0x3186e4(0x22b)]&&(this[_0x3186e4(0x22b)][_0x3186e4(0x256)]=''),this[_0x3186e4(0x248)]&&this[_0x3186e4(0x248)][_0x3186e4(0x1ff)][_0x3186e4(0x228)]();}[_0x2195ee(0x24a)](){const _0x1393b6=_0x2195ee;this[_0x1393b6(0x222)]&&(this[_0x1393b6(0x222)][_0x1393b6(0x238)](),this[_0x1393b6(0x222)]=null),this[_0x1393b6(0x22b)]&&(this[_0x1393b6(0x22b)][_0x1393b6(0x24a)](),this[_0x1393b6(0x22b)]=null),this[_0x1393b6(0x248)]&&(this[_0x1393b6(0x248)][_0x1393b6(0x24a)](),this[_0x1393b6(0x248)]=null);}[_0x2195ee(0x1e6)](){const _0x5b0540=_0x2195ee;if(!this[_0x5b0540(0x25c)])return;if(!this[_0x5b0540(0x24d)]())return void(this[_0x5b0540(0x221)]=!0x0);this[_0x5b0540(0x221)]=!0x1;const _0x446b91=[...this[_0x5b0540(0x247)],...this[_0x5b0540(0x20b)]],_0x5c77e7=this[_0x5b0540(0x240)](),_0x1dac45=this[_0x5b0540(0x1f0)](_0x5c77e7,_0x446b91),_0x5bd0d5=_0x5c77e7[_0x5b0540(0x1cc)];_0x5bd0d5&&this[_0x5b0540(0x25d)](_0x5bd0d5),_0x5c77e7[_0x5b0540(0x251)](),this[_0x5b0540(0x22c)](_0x446b91,_0x1dac45);}[_0x2195ee(0x1f3)](){const _0x1b530e=_0x2195ee;this[_0x1b530e(0x22b)]=this[_0x1b530e(0x20e)](),this[_0x1b530e(0x248)]=this[_0x1b530e(0x1f4)](),this[_0x1b530e(0x22b)][_0x1b530e(0x1ea)](),this[_0x1b530e(0x25c)][_0x1b530e(0x253)](this[_0x1b530e(0x22b)][_0x1b530e(0x1ce)]),this[_0x1b530e(0x22b)]['on'](_0x1b530e(0x215),()=>{const _0x46fcb8=_0x1b530e;this[_0x46fcb8(0x1e5)]();}),_0x20b850({'emitter':this[_0x1b530e(0x248)],'contextElements':[this[_0x1b530e(0x248)][_0x1b530e(0x1ce)],this[_0x1b530e(0x22b)][_0x1b530e(0x1ce)]],'callback':()=>this[_0x1b530e(0x244)](),'activator':()=>this[_0x1b530e(0x22b)][_0x1b530e(0x201)]});}[_0x2195ee(0x20e)](){const _0x15e879=_0x2195ee,_0x9761fa=new _0x5a955d(this[_0x15e879(0x1f7)]);_0x9761fa[_0x15e879(0x1e8)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x3b3da0=[this[_0x15e879(0x230)][_0x15e879(0x23d)][_0x15e879(0x21b)]];return this[_0x15e879(0x230)][_0x15e879(0x23d)][_0x15e879(0x1d9)]&&_0x3b3da0[_0x15e879(0x227)](this[_0x15e879(0x230)][_0x15e879(0x23d)][_0x15e879(0x1d9)]),_0x9761fa[_0x15e879(0x226)]({'attributes':{'class':_0x3b3da0}}),_0x9761fa;}[_0x2195ee(0x1f4)](){const _0x46785=_0x2195ee,_0xc89efa=new _0x23eb95(this[_0x46785(0x1f7)]);return _0xc89efa[_0x46785(0x226)]({'attributes':{'class':this[_0x46785(0x230)][_0x46785(0x23d)][_0x46785(0x20c)]}}),this[_0x46785(0x1ee)][_0x46785(0x231)](_0xc89efa),_0xc89efa;}[_0x2195ee(0x234)](){const _0x2bcaeb=_0x2195ee;if(this[_0x2bcaeb(0x248)]&&(this[_0x2bcaeb(0x248)][_0x2bcaeb(0x1ff)][_0x2bcaeb(0x228)](),this[_0x2bcaeb(0x20b)][_0x2bcaeb(0x25a)]>0x0)){this[_0x2bcaeb(0x20b)][_0x2bcaeb(0x23b)](_0x59f466=>{const _0x39b4f4=_0x2bcaeb;_0x59f466[_0x39b4f4(0x204)]();});const _0x416a59=new _0x5a7bed(this[_0x2bcaeb(0x1f7)]);_0x416a59[_0x2bcaeb(0x1f1)]({'tag':_0x2bcaeb(0x1fe),'attributes':{'class':this[_0x2bcaeb(0x230)][_0x2bcaeb(0x23d)][_0x2bcaeb(0x1de)]},'children':this[_0x2bcaeb(0x20b)]}),this[_0x2bcaeb(0x248)][_0x2bcaeb(0x1ff)][_0x2bcaeb(0x231)](_0x416a59);}}[_0x2195ee(0x1e5)](){const _0x224533=_0x2195ee;this[_0x224533(0x22b)][_0x224533(0x201)]?this[_0x224533(0x244)]():this[_0x224533(0x1d6)]();}[_0x2195ee(0x211)](){const _0x18b7e6=_0x2195ee,_0x4daa43=this[_0x18b7e6(0x20b)][_0x18b7e6(0x25a)]>0x0;this[_0x18b7e6(0x22b)]?.[_0x18b7e6(0x1ce)]&&(this[_0x18b7e6(0x22b)][_0x18b7e6(0x1ce)][_0x18b7e6(0x250)][_0x18b7e6(0x225)]=_0x4daa43?'':_0x18b7e6(0x1dd));}[_0x2195ee(0x1eb)](){const _0x396001=_0x2195ee;this[_0x396001(0x22b)]?.[_0x396001(0x201)]&&this[_0x396001(0x248)]?.[_0x396001(0x24b)]&&this[_0x396001(0x22b)][_0x396001(0x1ce)]&&this[_0x396001(0x248)][_0x396001(0x213)]({'target':this[_0x396001(0x22b)][_0x396001(0x1ce)],'limiter':document[_0x396001(0x25e)](_0x396001(0x224))});}[_0x2195ee(0x235)](_0x5966f3){const _0x453edd=_0x2195ee,_0x135cdb=this[_0x453edd(0x25c)]?.[_0x453edd(0x1d2)][_0x453edd(0x257)]()||_0x453edd(0x1fe),_0x4275ee=this[_0x453edd(0x25c)]?.[_0x453edd(0x259)];if(_0x4275ee){const _0x4ef1b9=_0x4275ee[0x0]||'',_0x2d0c5a=_0x5966f3[_0x453edd(0x25e)]('.'+_0x4ef1b9),_0x5f45e5=_0x5966f3[_0x453edd(0x25e)](_0x135cdb);return _0x2d0c5a||_0x5f45e5||_0x5966f3;}return _0x5966f3[_0x453edd(0x25e)](_0x135cdb)||_0x5966f3;}[_0x2195ee(0x249)](){const _0xf70e47=_0x2195ee,_0x42c363=this[_0xf70e47(0x1f2)]?.[_0xf70e47(0x1ce)]||this[_0xf70e47(0x25c)];if(!_0x42c363)return bn;const _0x42aab3=window[_0xf70e47(0x254)](_0x42c363)[_0xf70e47(0x1d0)];if(_0xf70e47(0x237)===_0x42aab3||_0xf70e47(0x219)===_0x42aab3||!_0x42aab3){const _0x2b9be3=_0x42c363[_0xf70e47(0x261)];if(_0x2b9be3){const _0x4069b6=window[_0xf70e47(0x254)](_0x2b9be3);return _0xf70e47(0x237)!==_0x4069b6[_0xf70e47(0x1d0)]?_0x4069b6[_0xf70e47(0x1d0)]:bn;}return bn;}return _0x42aab3;}[_0x2195ee(0x260)](_0x1ab2fb,_0x16cb3b){const _0x1f0201=_0x2195ee;this[_0x1f0201(0x230)][_0x1f0201(0x23d)][_0x1f0201(0x1df)]&&_0x1ab2fb[_0x1f0201(0x259)][_0x1f0201(0x231)](this[_0x1f0201(0x230)][_0x1f0201(0x23d)][_0x1f0201(0x1df)]),_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x1d0)]=_0x16cb3b,_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x21f)]=_0x1f0201(0x20d),_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x1e2)]=_0x1f0201(0x209),_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x1cd)]=_0x1f0201(0x209),_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x1fb)]='0',_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x255)]=_0x1f0201(0x1dd),_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x1f5)]='-1',_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x223)]=_0x1f0201(0x23e),_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x225)]=_0x1f0201(0x233),_0x1ab2fb[_0x1f0201(0x250)][_0x1f0201(0x239)]=_0x1f0201(0x21c);}[_0x2195ee(0x25d)](_0x49d65c){const _0xd819cc=_0x2195ee;_0x49d65c[_0xd819cc(0x23b)](({element:_0x2f001c,originalDisplay:_0x222190,originalVisibility:_0x3c576d})=>{const _0x4ccb92=_0xd819cc;_0x2f001c[_0x4ccb92(0x250)][_0x4ccb92(0x225)]=_0x222190,_0x2f001c[_0x4ccb92(0x250)][_0x4ccb92(0x223)]=_0x3c576d;});}[_0x2195ee(0x20f)](_0x314dcd){const _0x37bf1a=_0x2195ee,_0x36bfbc=[];let _0x3cafea=_0x314dcd;for(;_0x3cafea&&_0x3cafea!==document[_0x37bf1a(0x1da)];){const _0x2bc4cc=window[_0x37bf1a(0x254)](_0x3cafea);_0x37bf1a(0x1dd)!==_0x2bc4cc[_0x37bf1a(0x225)]&&_0x37bf1a(0x217)!==_0x2bc4cc[_0x37bf1a(0x223)]||(_0x36bfbc[_0x37bf1a(0x227)]({'element':_0x3cafea,'originalDisplay':_0x3cafea[_0x37bf1a(0x250)][_0x37bf1a(0x225)],'originalVisibility':_0x3cafea[_0x37bf1a(0x250)][_0x37bf1a(0x223)]}),_0x3cafea[_0x37bf1a(0x250)][_0x37bf1a(0x225)]=_0x37bf1a(0x23f),_0x3cafea[_0x37bf1a(0x250)][_0x37bf1a(0x223)]=_0x37bf1a(0x1e0)),_0x3cafea=_0x3cafea[_0x37bf1a(0x261)];}return _0x36bfbc;}[_0x2195ee(0x236)](){const _0x4a6783=_0x2195ee;let _0x5dbc66,_0x31d1cb;return this[_0x4a6783(0x1f2)]?.[_0x4a6783(0x1ce)]?(_0x5dbc66=this[_0x4a6783(0x1f2)][_0x4a6783(0x1ce)][_0x4a6783(0x1dc)](!0x0),_0x31d1cb=this[_0x4a6783(0x235)](_0x5dbc66)):(_0x5dbc66=document[_0x4a6783(0x25f)](_0x4a6783(0x1fe)),_0x31d1cb=_0x5dbc66),{'calculationContainer':_0x5dbc66,'targetContainer':_0x31d1cb};}[_0x2195ee(0x240)](){const _0x231049=_0x2195ee,{calculationContainer:_0x2592b9,targetContainer:_0x37c859}=this[_0x231049(0x236)](),_0x320665=this[_0x231049(0x249)]();this[_0x231049(0x260)](_0x2592b9,_0x320665);const _0x27183d=this[_0x231049(0x1f2)]?.[_0x231049(0x1ce)]||this[_0x231049(0x25c)],_0xd234dc=_0x27183d?.[_0x231049(0x261)];_0xd234dc?_0xd234dc[_0x231049(0x253)](_0x2592b9):document[_0x231049(0x1da)][_0x231049(0x253)](_0x2592b9),_0x2592b9[_0x231049(0x24e)]=_0x37c859;const _0x53d2f2=this[_0x231049(0x20f)](_0xd234dc||null);return _0x2592b9[_0x231049(0x214)],_0x2592b9[_0x231049(0x1cc)]=_0x53d2f2,_0x2592b9;}[_0x2195ee(0x1f0)](_0x2a73b9,_0xa433aa){const _0x288443=_0x2195ee,_0x2b1a41=_0x2a73b9[_0x288443(0x24e)]||_0x2a73b9,_0x2d1197=[],{rowCount:_0x2af79f}=this[_0x288443(0x1d4)](_0x2b1a41,_0xa433aa);if(_0x2af79f<=this[_0x288443(0x230)][_0x288443(0x1db)])return _0x2d1197;const _0x4e7ec1=_0xa433aa[_0x288443(0x23c)]();for(;_0x4e7ec1[_0x288443(0x25a)]>0x0;){if(this[_0x288443(0x245)](_0x2a73b9,_0x2b1a41,_0x4e7ec1)){const _0x561114=_0xa433aa[_0x288443(0x212)](_0x198720=>!_0x4e7ec1[_0x288443(0x22d)](_0x198720));_0x2d1197[_0x288443(0x227)](..._0x561114);break;}if(!_0x4e7ec1[_0x288443(0x1d7)]())break;}return _0x2d1197;}[_0x2195ee(0x1d4)](_0xf58be7,_0x3c06d3){const _0x60c0d5=_0x2195ee;_0xf58be7[_0x60c0d5(0x246)]='',_0x3c06d3[_0x60c0d5(0x23b)](_0x5384f8=>{const _0x14e86b=_0x60c0d5;if(_0x5384f8[_0x14e86b(0x1ce)]){const _0x460205=_0x5384f8[_0x14e86b(0x1ce)][_0x14e86b(0x1dc)](!0x0);_0xf58be7[_0x14e86b(0x253)](_0x460205);}}),_0xf58be7[_0x60c0d5(0x214)];const _0x3c3cd3=_0xf58be7[_0x60c0d5(0x24c)],_0x5cfaae=[];return Array[_0x60c0d5(0x22f)](_0x3c3cd3)[_0x60c0d5(0x23b)](_0x23a23a=>{const _0x17fa07=_0x60c0d5,_0x2e3a30=_0x23a23a[_0x17fa07(0x22a)]()[_0x17fa07(0x1e2)];_0x5cfaae[_0x17fa07(0x1d5)](_0x3165ae=>Math[_0x17fa07(0x241)](_0x3165ae-_0x2e3a30)<this[_0x17fa07(0x230)][_0x17fa07(0x1cf)])||_0x5cfaae[_0x17fa07(0x227)](_0x2e3a30);}),{'rowCount':_0x5cfaae[_0x60c0d5(0x25a)]};}[_0x2195ee(0x243)](){const _0x43d80b=_0x2195ee,_0x12dfd1=document[_0x43d80b(0x25f)](_0x43d80b(0x1ec));return _0x12dfd1[_0x43d80b(0x21e)]=this[_0x43d80b(0x230)][_0x43d80b(0x23d)][_0x43d80b(0x21b)],this[_0x43d80b(0x230)][_0x43d80b(0x23d)][_0x43d80b(0x1d9)]&&_0x12dfd1[_0x43d80b(0x259)][_0x43d80b(0x231)](this[_0x43d80b(0x230)][_0x43d80b(0x23d)][_0x43d80b(0x1d9)]),_0x12dfd1[_0x43d80b(0x1e1)]=_0x43d80b(0x1d8),_0x12dfd1;}[_0x2195ee(0x245)](_0x3541bf,_0x151348,_0x1fcad3){const _0x49d869=_0x2195ee;this[_0x49d869(0x1d4)](_0x151348,_0x1fcad3);const _0x2dd10a=this[_0x49d869(0x243)]();_0x3541bf[_0x49d869(0x253)](_0x2dd10a),_0x3541bf[_0x49d869(0x214)];const _0x20bfc4=[..._0x151348[_0x49d869(0x24c)],_0x2dd10a],_0x429939=[];_0x20bfc4[_0x49d869(0x23b)](_0x450b4b=>{const _0x324a43=_0x49d869,_0xac8393=_0x450b4b[_0x324a43(0x22a)]()[_0x324a43(0x1e2)];_0x429939[_0x324a43(0x1d5)](_0x3cd75e=>Math[_0x324a43(0x241)](_0x3cd75e-_0xac8393)<this[_0x324a43(0x230)][_0x324a43(0x1cf)])||_0x429939[_0x324a43(0x227)](_0xac8393);});const _0x1c51e5=_0x429939[_0x49d869(0x25a)];return _0x2dd10a[_0x49d869(0x251)](),_0x1c51e5<=this[_0x49d869(0x230)][_0x49d869(0x1db)];}[_0x2195ee(0x205)](_0x16026a,_0x1e04d2){const _0x784482=_0x2195ee;this[_0x784482(0x247)][_0x784482(0x228)](),this[_0x784482(0x20b)][_0x784482(0x228)](),_0x16026a[_0x784482(0x23b)](_0x3ebc7b=>{const _0x1321c6=_0x784482;_0x1e04d2[_0x1321c6(0x22d)](_0x3ebc7b)?this[_0x1321c6(0x20b)][_0x1321c6(0x231)](_0x3ebc7b):this[_0x1321c6(0x247)][_0x1321c6(0x231)](_0x3ebc7b);});}[_0x2195ee(0x1e7)](_0x252882){const _0x3f8a88=_0x2195ee;if(_0x252882>0x0&&!this[_0x3f8a88(0x22b)]&&this[_0x3f8a88(0x1f3)](),_0x252882>0x0&&this[_0x3f8a88(0x22b)]){const _0x1693cb=''+this[_0x3f8a88(0x230)][_0x3f8a88(0x1e3)]+(_0x252882<0x63?_0x252882:'99');this[_0x3f8a88(0x22b)][_0x3f8a88(0x256)]=_0x1693cb;}this[_0x3f8a88(0x234)](),this[_0x3f8a88(0x211)](),this[_0x3f8a88(0x1eb)]();}[_0x2195ee(0x22c)](_0x2b5050,_0x2e9023){const _0x2d7e51=_0x2195ee;this[_0x2d7e51(0x205)](_0x2b5050,_0x2e9023),this[_0x2d7e51(0x1e7)](_0x2e9023[_0x2d7e51(0x25a)]);}[_0x2195ee(0x206)](){const _0x4be090=_0x2195ee;this[_0x4be090(0x25c)]&&_0x4be090(0x232)!=typeof IntersectionObserver&&(this[_0x4be090(0x222)]=new IntersectionObserver(_0xa20c2e=>{const _0xaac589=_0x4be090;_0xa20c2e[0x0][_0xaac589(0x1e9)]&&this[_0xaac589(0x221)]&&requestAnimationFrame(()=>{const _0x5636ad=_0xaac589;this[_0x5636ad(0x1e6)]();});},{'threshold':0.01,'rootMargin':_0x4be090(0x200)}),this[_0x4be090(0x222)][_0x4be090(0x1fa)](this[_0x4be090(0x25c)]));}[_0x2195ee(0x24d)](){const _0x2e4356=_0x2195ee;if(!this[_0x2e4356(0x25c)])return!0x1;if(!this[_0x2e4356(0x25c)][_0x2e4356(0x208)])return!0x1;const _0x284420=this[_0x2e4356(0x25c)][_0x2e4356(0x22a)]();if(0x0===_0x284420[_0x2e4356(0x1d0)]||0x0===_0x284420[_0x2e4356(0x1ed)])return!0x1;const _0x1d9686=window[_0x2e4356(0x1f8)]||document[_0x2e4356(0x24f)][_0x2e4356(0x218)],_0x4201ae=window[_0x2e4356(0x252)]||document[_0x2e4356(0x24f)][_0x2e4356(0x1f9)],_0x477a84=0xc8;return _0x284420[_0x2e4356(0x1e4)]>=-0xc8&&_0x284420[_0x2e4356(0x1e2)]<=_0x1d9686+_0x477a84&&_0x284420[_0x2e4356(0x207)]>=-0xc8&&_0x284420[_0x2e4356(0x1cd)]<=_0x4201ae+_0x477a84;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1483(){const _0xdd330b=['_createLabelElement','bindTemplate','2364666STmxpb','584oVzPkv','fire','execute','classList','_setupRemoveButtonEvent','content','1137582dMkUdp','ck-hidden','ck-ai-chat-context-chip_document','ck-ai-chat-context-chip_new-chip','label','setTemplate','itemType','render','16hpVCgt','readonly','_createRemoveButton','div','_createIconView','set','length','ck-ai-chat-context-chip__type-icon','extendTemplate','ck-ai-chat-context-chip__label','webkitAnimationEnd','small','isVisible','span','ck-ai-chat-context-chip','299065sVuPNY','99myHQWw','removeEventListener','remove','_initializeProperties','selection','type','tooltip','document','isLoading','_handleAnimationEndOnce','ck-ai-chat-context-controls__chip-tooltip','uiId','disableAnimationOnEnter','1242656RhfFDD','_isAnimationOnEnterEnabled','locale','removeContextItemChip','element','3261225JdoHDt','231090wXGJDd','7keYHTx','addEventListener','add','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','2139hnAZRb','animationend','_createTemplateAttributes','_createTemplateChildren','lastIndexOf','_setupTemplate','_createLoaderIcon','bind','slice','ck-ai-chat-context-chip_wide'];_0x1483=function(){return _0xdd330b;};return _0x1483();}const _0x59788b=_0x176c;(function(_0x1807c3,_0x22a94a){const _0x3ccd1a=_0x176c,_0x55ee9d=_0x1807c3();while(!![]){try{const _0x14eb66=parseInt(_0x3ccd1a(0x20a))/0x1+-parseInt(_0x3ccd1a(0x1ed))/0x2*(parseInt(_0x3ccd1a(0x1e0))/0x3)+-parseInt(_0x3ccd1a(0x218))/0x4+parseInt(_0x3ccd1a(0x1da))/0x5+parseInt(_0x3ccd1a(0x1ec))/0x6*(-parseInt(_0x3ccd1a(0x1dc))/0x7)+-parseInt(_0x3ccd1a(0x1fb))/0x8*(-parseInt(_0x3ccd1a(0x1f3))/0x9)+-parseInt(_0x3ccd1a(0x1db))/0xa*(-parseInt(_0x3ccd1a(0x20b))/0xb);if(_0x14eb66===_0x22a94a)break;else _0x55ee9d['push'](_0x55ee9d['shift']());}catch(_0x116206){_0x55ee9d['push'](_0x55ee9d['shift']());}}}(_0x1483,0x79dac));import{ButtonView as _0x1a716a,IconView as _0x2e3496}from'ckeditor5/src/ui.js';import{IconClose as _0xd55338,IconDocument as _0x3b926c,IconFileUpload as _0x25522b,IconLink as _0x9e55f1,IconSelection as _0x521f1a}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x3aecc4}from'../../../aicore/utils/common-translations.js';function _0x176c(_0x41576e,_0x143b36){const _0x1483b2=_0x1483();return _0x176c=function(_0x176c8a,_0x50da6b){_0x176c8a=_0x176c8a-0x1d8;let _0x1062f2=_0x1483b2[_0x176c8a];return _0x1062f2;},_0x176c(_0x41576e,_0x143b36);}import{AISpinnerView as _0x474654}from'../../../aicore/ui/aispinner.js';const An={'file':_0x25522b,'document':_0x3b926c,'web-resource':_0x9e55f1,'text':_0x25522b,'selection':_0x521f1a},Cn=_0x59788b(0x209),On=_0x59788b(0x1e9),vn=_0x59788b(0x1f5),yn=_0x59788b(0x204),Ln=_0x59788b(0x202),Rn=_0x59788b(0x215),Vn='n';export class AIChatContextItemButtonView extends _0x1a716a{constructor(_0xc5bd93,_0x4bc7eb,_0x50e7a6,_0x39458f,_0x30018c=!0x1){const _0x50966d=_0x59788b;super(_0xc5bd93),this[_0x50966d(0x219)]=_0x39458f,this[_0x50966d(0x20e)](_0x4bc7eb,_0x50e7a6,_0x30018c),this[_0x50966d(0x1e5)]();}[_0x59788b(0x1fa)](){const _0x71c4f9=_0x59788b;super[_0x71c4f9(0x1fa)](),this[_0x71c4f9(0x219)]&&this[_0x71c4f9(0x1d9)]&&(this[_0x71c4f9(0x1d9)][_0x71c4f9(0x1f0)][_0x71c4f9(0x1de)](_0x71c4f9(0x1f6)),this[_0x71c4f9(0x214)](this[_0x71c4f9(0x1d9)],()=>{const _0x4ae2a4=_0x71c4f9;this[_0x4ae2a4(0x1d9)]&&this[_0x4ae2a4(0x1d9)][_0x4ae2a4(0x1f0)][_0x4ae2a4(0x20d)](_0x4ae2a4(0x1f6));}));}[_0x59788b(0x217)](){const _0x2dcfe7=_0x59788b;this[_0x2dcfe7(0x219)]=!0x1,this[_0x2dcfe7(0x1d9)]&&this[_0x2dcfe7(0x1d9)][_0x2dcfe7(0x1f0)][_0x2dcfe7(0x20d)](_0x2dcfe7(0x1f6));}[_0x59788b(0x20e)](_0x553205,_0x5cf90e,_0x3e0178){const _0x237ea5=_0x59788b;this[_0x237ea5(0x200)](_0x237ea5(0x1f7),_0x553205[_0x237ea5(0x1f7)]),this[_0x237ea5(0x200)](_0x237ea5(0x211),!0x0),this[_0x237ea5(0x200)](_0x237ea5(0x1f9),_0x553205[_0x237ea5(0x210)]),this[_0x237ea5(0x200)]('id',_0x553205[_0x237ea5(0x216)]),this[_0x237ea5(0x200)](_0x237ea5(0x1fc),_0x5cf90e),this[_0x237ea5(0x200)](_0x237ea5(0x213),_0x3e0178);}[_0x59788b(0x1e5)](){const _0x21a376=_0x59788b,_0x43409b=this[_0x21a376(0x1ff)](),_0x4245a1=this[_0x21a376(0x1fd)](),_0x562a26=this[_0x21a376(0x1eb)];this[_0x21a376(0x1f8)]({'tag':_0x21a376(0x1fe),'attributes':this[_0x21a376(0x1e2)](_0x562a26),'children':this[_0x21a376(0x1e3)](_0x43409b,_0x4245a1,_0x562a26)});}[_0x59788b(0x1e2)](_0x185c8b){const _0x15afc0=_0x59788b;return{'class':[Cn,_0x185c8b['if'](_0x15afc0(0x1f9),vn,_0x3fbff3=>_0x15afc0(0x212)==_0x3fbff3),_0x185c8b['if'](_0x15afc0(0x1f9),On,_0x1a5176=>_0x15afc0(0x20f)==_0x1a5176)],'data-cke-tooltip-text':_0x185c8b['to'](_0x15afc0(0x1f7),jn),'data-cke-tooltip-position':Vn,'data-cke-tooltip-class':Rn};}[_0x59788b(0x1e3)](_0x3fc754,_0x258a32,_0x7ffb69){const _0x4f425a=_0x59788b,_0xa0a910=this[_0x4f425a(0x1ea)](_0x7ffb69),_0x324f77=this[_0x4f425a(0x1e6)]();return this[_0x4f425a(0x1fc)]?[_0x3fc754,_0xa0a910]:[_0x3fc754,_0x324f77,_0xa0a910,_0x258a32];}[_0x59788b(0x1ea)](_0x36d7db){const _0xe3e69=_0x59788b;return{'tag':_0xe3e69(0x208),'attributes':{'class':yn},'children':[{'text':_0x36d7db['to'](_0xe3e69(0x1f7))}]};}[_0x59788b(0x1fd)](){const _0x4e665a=_0x59788b,_0xcd0624=new _0x1a716a(this[_0x4e665a(0x21a)]);return _0xcd0624[_0x4e665a(0x200)]({'label':_0x3aecc4(this[_0x4e665a(0x21a)],_0x4e665a(0x1df)),'icon':_0xd55338}),this[_0x4e665a(0x1f1)](_0xcd0624),_0xcd0624;}[_0x59788b(0x1f1)](_0x295ba7){const _0xf1bc34=_0x59788b;_0x295ba7['on'](_0xf1bc34(0x1ef),()=>{const _0x1b8880=_0xf1bc34;this[_0x1b8880(0x1ee)](_0x1b8880(0x1d8),this['id']);});}[_0x59788b(0x1ff)](){const _0x1dce76=_0x59788b,_0x1ed4dc=this[_0x1dce76(0x1eb)],_0x3d97a0=new _0x2e3496();return _0x3d97a0[_0x1dce76(0x1f2)]=An[this[_0x1dce76(0x1f9)]],_0x3d97a0[_0x1dce76(0x203)]({'attributes':{'class':[Ln,_0x1ed4dc['if'](_0x1dce76(0x213),_0x1dce76(0x1f4),_0x5df913=>_0x5df913)]}}),_0x3d97a0;}[_0x59788b(0x214)](_0xaca36f,_0x3bd81c){const _0x4c7ffa=_0x59788b;if(!_0xaca36f)return;const _0x8b1eda=()=>{const _0x3e6fb7=_0x176c;_0x3bd81c(),_0xaca36f[_0x3e6fb7(0x20c)](_0x3e6fb7(0x1e1),_0x8b1eda),_0xaca36f[_0x3e6fb7(0x20c)](_0x3e6fb7(0x205),_0x8b1eda);};_0xaca36f[_0x4c7ffa(0x1dd)](_0x4c7ffa(0x1e1),_0x8b1eda),_0xaca36f[_0x4c7ffa(0x1dd)](_0x4c7ffa(0x205),_0x8b1eda);}[_0x59788b(0x1e6)](){const _0x4af215=_0x59788b,_0x3d7938=new _0x474654(_0x4af215(0x206));return _0x3d7938[_0x4af215(0x1e7)](_0x4af215(0x207))['to'](this,_0x4af215(0x213),_0x501aff=>_0x501aff),_0x3d7938;}}function jn(_0x4df61f){const _0x257db2=_0x59788b;if(!_0x4df61f)return _0x4df61f;if(_0x4df61f[_0x257db2(0x201)]<=0x78)return _0x4df61f;const _0x16df68=_0x4df61f[_0x257db2(0x1e8)](0x0,0x78),_0x246e02=_0x16df68[_0x257db2(0x1e4)]('\x20');return(_0x246e02>0x0?_0x16df68[_0x257db2(0x1e8)](0x0,_0x246e02):_0x16df68)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0xb56752=_0x1754;function _0x5224(){const _0x5b6dae=['_setupKeystrokes','createCollection','ck-button-icon','4SaXSlp','refreshBalloon','trim','focusCycler','getValue','focusTracker','2712WjAMGj','_isValidUrl','esc','value','tab','locale','ck-button-icon\x20ck-button-back','10719hKrZbb','AI_CHAT_CONTEXT_URL_INVALID_ERROR','focus','213394sVxRXV','2YXzBRy','ck-ai-chat-context-controls__url-input-section','2832078Dzchyl','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','fieldView','div','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','submitUrl','setError','setTemplate','urlInputField','confirmButton','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_createConfirmButton','listenTo','add','backButton','_handleSubmit','destroy','cancel','_setupTemplate','_updateConfirmButtonState','errorText','AI_CHAT_CONTEXT_URL_ADD_URL','shift+tab','4559639vvHiZw','_setupEventHandlers','children','clearError','length','AI_CHAT_CONTEXT_URL_LABEL','render','ck-labeled-field-view_empty','_createUrlInputField','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','isEnabled','execute','keystrokes','submit','element','40210dXeowl','set','fire','ck-ai-chat-context-controls__url-form','forEach','3060880jiQjME','stop','input','_createBackButton','1524489iRMnNR','form','clear','_focusables'];_0x5224=function(){return _0x5b6dae;};return _0x5224();}(function(_0x125ce9,_0x148f7f){const _0xc0e6d2=_0x1754,_0x29e6ae=_0x125ce9();while(!![]){try{const _0x2ae796=-parseInt(_0xc0e6d2(0xf0))/0x1*(-parseInt(_0xc0e6d2(0xef))/0x2)+parseInt(_0xc0e6d2(0x121))/0x3*(parseInt(_0xc0e6d2(0xdf))/0x4)+-parseInt(_0xc0e6d2(0x11d))/0x5+parseInt(_0xc0e6d2(0xf2))/0x6+-parseInt(_0xc0e6d2(0x109))/0x7+-parseInt(_0xc0e6d2(0xe5))/0x8*(-parseInt(_0xc0e6d2(0xec))/0x9)+-parseInt(_0xc0e6d2(0x118))/0xa;if(_0x2ae796===_0x148f7f)break;else _0x29e6ae['push'](_0x29e6ae['shift']());}catch(_0x9829ff){_0x29e6ae['push'](_0x29e6ae['shift']());}}}(_0x5224,0x50811));import{FocusTracker as _0x59653d,KeystrokeHandler as _0xa02d55}from'ckeditor5/src/utils.js';function _0x1754(_0x31bfe8,_0x54fbc1){const _0x522498=_0x5224();return _0x1754=function(_0x1754e0,_0x7f4995){_0x1754e0=_0x1754e0-0xdc;let _0x1dabf8=_0x522498[_0x1754e0];return _0x1dabf8;},_0x1754(_0x31bfe8,_0x54fbc1);}import{ButtonView as _0xbffa5c,FocusCycler as _0x5278e5,LabeledFieldView as _0x19c5a8,View as _0x210850,FormHeaderView as _0x1bede5,createLabeledInputText as _0x38a43d,submitHandler as _0x1c98ac}from'ckeditor5/src/ui.js';import{IconCheck as _0x4b083d,IconPreviousArrow as _0x8bdaa0}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x3a9763}from'../../../aicore/utils/common-translations.js';const ch=_0xb56752(0x11b),nh=_0xb56752(0xf1);export class AIChatContextPanelUrlInputView extends _0x210850{[_0xb56752(0xe4)];[_0xb56752(0x115)];[_0xb56752(0x124)];[_0xb56752(0xe2)];[_0xb56752(0xfa)];[_0xb56752(0x100)];[_0xb56752(0xfb)];constructor(_0xe41884){const _0x21383a=_0xb56752;super(_0xe41884),this[_0x21383a(0xe4)]=new _0x59653d(),this[_0x21383a(0x115)]=new _0xa02d55(),this[_0x21383a(0x100)]=this[_0x21383a(0x120)](),this[_0x21383a(0xfa)]=this[_0x21383a(0x111)](),this[_0x21383a(0xfb)]=this[_0x21383a(0xfd)](),this[_0x21383a(0x124)]=this[_0x21383a(0xdd)]([this[_0x21383a(0x100)],this[_0x21383a(0xfa)],this[_0x21383a(0xfb)]]),this[_0x21383a(0xe2)]=new _0x5278e5({'focusables':this[_0x21383a(0x124)],'focusTracker':this[_0x21383a(0xe4)],'keystrokeHandler':this[_0x21383a(0x115)],'actions':{'focusPrevious':_0x21383a(0x108),'focusNext':_0x21383a(0xe9)}}),this[_0x21383a(0x104)](),this[_0x21383a(0x10a)](),this[_0x21383a(0xdc)]();}[_0xb56752(0x10f)](){const _0x1e2a42=_0xb56752;super[_0x1e2a42(0x10f)](),this[_0x1e2a42(0x124)][_0x1e2a42(0x11c)](_0x5c21cd=>{const _0x582b02=_0x1e2a42;this[_0x582b02(0xe4)][_0x582b02(0xff)](_0x5c21cd[_0x582b02(0x117)]),this[_0x582b02(0x115)][_0x582b02(0xfe)](_0x5c21cd[_0x582b02(0x117)]);}),_0x1c98ac({'view':this}),this[_0x1e2a42(0xee)]();}[_0xb56752(0x102)](){const _0x1be51c=_0xb56752;super[_0x1be51c(0x102)](),this[_0x1be51c(0xe4)][_0x1be51c(0x102)](),this[_0x1be51c(0x115)][_0x1be51c(0x102)]();}[_0xb56752(0xee)](){const _0x1940bd=_0xb56752;this[_0x1940bd(0xfa)][_0x1940bd(0xee)]();}[_0xb56752(0xe3)](){const _0x3aedc6=_0xb56752;return this[_0x3aedc6(0xfa)][_0x3aedc6(0xf4)][_0x3aedc6(0x117)]?.[_0x3aedc6(0xe8)]?.[_0x3aedc6(0xe1)]()||'';}[_0xb56752(0x123)](){const _0x347bb6=_0xb56752;this[_0x347bb6(0xfa)][_0x347bb6(0xf4)][_0x347bb6(0x117)][_0x347bb6(0xe8)]='',this[_0x347bb6(0xfa)][_0x347bb6(0x106)]=null,this[_0x347bb6(0xfb)][_0x347bb6(0x113)]=!0x1;}[_0xb56752(0xf8)](_0x31e53){const _0x462f4f=_0xb56752;this[_0x462f4f(0xfa)][_0x462f4f(0x106)]=_0x31e53,this[_0x462f4f(0x105)](),this[_0x462f4f(0x11a)](_0x462f4f(0xe0));}[_0xb56752(0x10c)](){const _0x1e3da6=_0xb56752;this[_0x1e3da6(0xfa)][_0x1e3da6(0x106)]=null,this[_0x1e3da6(0x105)]();}[_0xb56752(0x120)](){const _0x53f6d7=_0xb56752,_0x2b8d9e=new _0xbffa5c(this[_0x53f6d7(0xea)]);return _0x2b8d9e[_0x53f6d7(0x119)]({'icon':_0x8bdaa0,'tooltip':_0x3a9763(this[_0x53f6d7(0xea)],_0x53f6d7(0x112)),'tooltipPosition':'n','class':_0x53f6d7(0xeb)}),_0x2b8d9e;}[_0xb56752(0x111)](){const _0x2415a7=_0xb56752,_0x528540=new _0x19c5a8(this[_0x2415a7(0xea)],_0x38a43d);return _0x528540[_0x2415a7(0x119)]({'label':_0x3a9763(this[_0x2415a7(0xea)],_0x2415a7(0x10e)),'class':_0x2415a7(0x110)}),_0x528540[_0x2415a7(0xf4)][_0x2415a7(0x119)]({'placeholder':_0x3a9763(this[_0x2415a7(0xea)],_0x2415a7(0xfc))}),_0x528540;}[_0xb56752(0xfd)](){const _0x366184=_0xb56752,_0x1acc32=new _0xbffa5c(this[_0x366184(0xea)]);return _0x1acc32[_0x366184(0x119)]({'icon':_0x4b083d,'tooltip':_0x3a9763(this[_0x366184(0xea)],_0x366184(0x107)),'tooltipPosition':'n','class':_0x366184(0xde),'type':_0x366184(0x116),'isEnabled':!0x1}),_0x1acc32;}[_0xb56752(0x104)](){const _0xc9a4bb=_0xb56752,_0x41b232=new _0x1bede5(this[_0xc9a4bb(0xea)],{'label':_0x3a9763(this[_0xc9a4bb(0xea)],_0xc9a4bb(0x107)),'class':_0xc9a4bb(0xf6)});_0x41b232[_0xc9a4bb(0x10b)][_0xc9a4bb(0xff)](this[_0xc9a4bb(0x100)],0x0),this[_0xc9a4bb(0xf9)]({'tag':_0xc9a4bb(0x122),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x41b232,{'tag':_0xc9a4bb(0xf5),'attributes':{'class':nh},'children':[this[_0xc9a4bb(0xfa)],this[_0xc9a4bb(0xfb)]]}]});}[_0xb56752(0x10a)](){const _0x5b9107=_0xb56752;this[_0x5b9107(0x100)]['on'](_0x5b9107(0x114),()=>{const _0x300506=_0x5b9107;this[_0x300506(0x123)](),this[_0x300506(0x11a)](_0x300506(0x103));}),this[_0x5b9107(0xfa)][_0x5b9107(0xf4)]['on'](_0x5b9107(0x11f),()=>{const _0x2a7358=_0x5b9107;this[_0x2a7358(0x10c)](),this[_0x2a7358(0x105)](),this[_0x2a7358(0x11a)](_0x2a7358(0xe0));}),this['on'](_0x5b9107(0x116),_0x526180=>{const _0xab259d=_0x5b9107;_0x526180[_0xab259d(0x11e)](),this[_0xab259d(0x101)]();});}[_0xb56752(0xdc)](){const _0x50e1c9=_0xb56752;this[_0x50e1c9(0x115)][_0x50e1c9(0x119)](_0x50e1c9(0xe7),(_0x5606c0,_0x3ec3fc)=>{const _0x54fe98=_0x50e1c9;this[_0x54fe98(0x123)](),this[_0x54fe98(0x11a)](_0x54fe98(0x103)),_0x3ec3fc();});}[_0xb56752(0x101)](){const _0x5291b2=_0xb56752,_0x39a7d6=this[_0x5291b2(0xe3)]()[_0x5291b2(0xe1)]();_0x39a7d6?this[_0x5291b2(0xe6)](_0x39a7d6)?(this[_0x5291b2(0x10c)](),this[_0x5291b2(0x11a)](_0x5291b2(0xf7),_0x39a7d6)):this[_0x5291b2(0xf8)](_0x3a9763(this[_0x5291b2(0xea)],_0x5291b2(0xed))):this[_0x5291b2(0xf8)](_0x3a9763(this[_0x5291b2(0xea)],_0x5291b2(0xf3)));}[_0xb56752(0x105)](){const _0x5b4dbe=_0xb56752,_0x130777=this[_0x5b4dbe(0xe3)]()[_0x5b4dbe(0xe1)](),_0x12217e=!!this[_0x5b4dbe(0xfa)][_0x5b4dbe(0x106)];this[_0x5b4dbe(0xfb)][_0x5b4dbe(0x113)]=_0x130777[_0x5b4dbe(0x10d)]>0x0&&!_0x12217e;}[_0xb56752(0xe6)](_0x2173a0){try{return!!new URL(_0x2173a0);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x18d755=_0x2123;(function(_0x2959d0,_0x53c798){const _0x2190d8=_0x2123,_0x379358=_0x2959d0();while(!![]){try{const _0x485b5c=parseInt(_0x2190d8(0x161))/0x1*(parseInt(_0x2190d8(0x12e))/0x2)+-parseInt(_0x2190d8(0x103))/0x3*(parseInt(_0x2190d8(0x179))/0x4)+parseInt(_0x2190d8(0x129))/0x5+parseInt(_0x2190d8(0x120))/0x6*(parseInt(_0x2190d8(0x12f))/0x7)+parseInt(_0x2190d8(0x131))/0x8+parseInt(_0x2190d8(0x14b))/0x9*(parseInt(_0x2190d8(0x147))/0xa)+-parseInt(_0x2190d8(0xf4))/0xb*(parseInt(_0x2190d8(0x11e))/0xc);if(_0x485b5c===_0x53c798)break;else _0x379358['push'](_0x379358['shift']());}catch(_0x1cd16b){_0x379358['push'](_0x379358['shift']());}}}(_0x5e26,0xbad05));import{BalloonPanelView as _0x5f5303,ButtonView as _0xa0da58,clickOutsideHandler as _0x100880,FileDialogButtonView as _0x21b043,IconView as _0x34880d,View as _0x52797c}from'ckeditor5/src/ui.js';function _0x2123(_0x4c9983,_0x32e490){const _0x5e2630=_0x5e26();return _0x2123=function(_0x2123e9,_0x413112){_0x2123e9=_0x2123e9-0xf1;let _0x2b5632=_0x5e2630[_0x2123e9];return _0x2b5632;},_0x2123(_0x4c9983,_0x32e490);}import{IconBrowseFiles as _0x3fca4b,IconDocument as _0x1fd7e2,IconDocumentOutline as _0xb7a0cd,IconDropdownArrow as _0x2938ae,IconLink as _0x5a0a9e,IconPaperClip as _0x35fc0e}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0xc1abd}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x1b4d70}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x537a19}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x533ca0}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x97b742}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x18d755(0x12d),_0x18d755(0x139),_0x18d755(0x10a),_0x18d755(0x16b),_0x18d755(0x118),_0x18d755(0x125)];const Bo=_0x18d755(0x180),bo=_0x18d755(0x158),To=_0x18d755(0x174),Ao=_0x18d755(0x111),ko=_0x18d755(0x165),Eo=_0x18d755(0xfa),vo=_0x18d755(0x11b),Vo=_0x18d755(0xfe),fo=_0x18d755(0x153),Io=_0x18d755(0x176),Po=_0x18d755(0x107),Ro=_0x18d755(0x121),So=[_0x5f5303[_0x18d755(0xfb)][_0x18d755(0x146)],_0x5f5303[_0x18d755(0xfb)][_0x18d755(0x169)],_0x5f5303[_0x18d755(0xfb)][_0x18d755(0x115)],_0x5f5303[_0x18d755(0xfb)][_0x18d755(0x145)],_0x5f5303[_0x18d755(0xfb)][_0x18d755(0xf7)],_0x5f5303[_0x18d755(0xfb)][_0x18d755(0x16a)]];export class AIChatContextPanelView extends _0x52797c{[_0x18d755(0x127)];[_0x18d755(0x114)]=this[_0x18d755(0x135)]();[_0x18d755(0x154)]=this[_0x18d755(0x135)]();[_0x18d755(0x13e)];[_0x18d755(0x11c)];[_0x18d755(0x10e)];[_0x18d755(0x15a)];[_0x18d755(0x144)];[_0x18d755(0x110)];[_0x18d755(0x159)];constructor(_0x164d82,_0x39ad2f){const _0x2154ec=_0x18d755;super(_0x164d82),this[_0x2154ec(0x159)]=_0x39ad2f[_0x2154ec(0x159)],this[_0x2154ec(0x114)]=this[_0x2154ec(0x135)](),this[_0x2154ec(0x154)]=this[_0x2154ec(0x135)](),this[_0x2154ec(0x127)]=this[_0x2154ec(0x11d)](_0x164d82),this[_0x2154ec(0x11c)]=this[_0x2154ec(0x172)](_0x164d82),this[_0x2154ec(0x10e)]=this[_0x2154ec(0x16e)](_0x164d82),this[_0x2154ec(0x144)]=this[_0x2154ec(0x152)](_0x164d82,_0x39ad2f);const _0x29589e={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x2154ec(0x13e)]=new _0x537a19(_0x164d82,this[_0x2154ec(0x114)],_0x29589e,this[_0x2154ec(0x159)],this),this[_0x2154ec(0x110)]={'buttonView':this[_0x2154ec(0x127)],'balloonView':this[_0x2154ec(0x11c)],'hideMethod':this[_0x2154ec(0x149)][_0x2154ec(0x143)](this),'showMethod':this[_0x2154ec(0x171)][_0x2154ec(0x143)](this)},this[_0x2154ec(0x16c)](),this[_0x2154ec(0x16d)]();}[_0x18d755(0x133)](){const _0x1a6953=_0x18d755;super[_0x1a6953(0x133)](),this[_0x1a6953(0x151)](),this[_0x1a6953(0x13e)][_0x1a6953(0x14f)](this[_0x1a6953(0x14c)]),this[_0x1a6953(0x13e)][_0x1a6953(0x14a)]();}[_0x18d755(0x162)](){const _0x122fcb=_0x18d755;super[_0x122fcb(0x162)](),this[_0x122fcb(0x13e)][_0x122fcb(0x162)](),this[_0x122fcb(0x144)][_0x122fcb(0x162)]();}[_0x18d755(0x112)](_0x556400,_0x46cd89){const _0x5e4518=_0x18d755,_0xe51e60=this[_0x5e4518(0x12c)](_0x556400,_0x5e4518(0x141),!0x0,_0x46cd89);this[_0x5e4518(0x13a)](_0xe51e60,this[_0x5e4518(0x114)]),this[_0x5e4518(0x13e)][_0x5e4518(0x14a)]();}[_0x18d755(0x118)](_0x4bb735){const _0x21e78b=_0x18d755;this[_0x21e78b(0x108)](_0x4bb735,this[_0x21e78b(0x114)]),this[_0x21e78b(0x108)](_0x4bb735,this[_0x21e78b(0x13e)][_0x21e78b(0xf5)]),this[_0x21e78b(0x13e)][_0x21e78b(0x14a)]();}[_0x18d755(0x168)](_0x5b73d2,_0x309b63){const _0x37b3c0=_0x18d755;let _0x34be6b=this[_0x37b3c0(0x114)][_0x37b3c0(0x128)](_0x2fd832=>_0x2fd832['id']===_0x5b73d2);_0x34be6b||(_0x34be6b=this[_0x37b3c0(0x13e)][_0x37b3c0(0xf5)][_0x37b3c0(0x128)](_0x324dc9=>_0x324dc9['id']===_0x5b73d2)),_0x34be6b&&(_0x34be6b[_0x37b3c0(0x137)]=_0x309b63);}[_0x18d755(0xfd)](_0x76a2aa){const _0x3bebe3=_0x18d755;this[_0x3bebe3(0x154)][_0x3bebe3(0x124)]();for(const _0x9b44bb of _0x76a2aa){const _0x1aa8b3=this[_0x3bebe3(0x12c)](_0x9b44bb,_0x3bebe3(0x182),!0x1,!0x1);this[_0x3bebe3(0x13a)](_0x1aa8b3,this[_0x3bebe3(0x154)]);}}[_0x18d755(0x10f)](){const _0x54f24f=_0x18d755;this[_0x54f24f(0x114)][_0x54f24f(0x124)](),this[_0x54f24f(0x13e)][_0x54f24f(0x124)]();}[_0x18d755(0xfc)](){const _0x1118ca=_0x18d755;this[_0x1118ca(0x154)][_0x1118ca(0x124)]();}[_0x18d755(0x10c)](_0x49f293,_0x305030,_0x266e73){const _0x380f36=_0x18d755;this[_0x380f36(0x144)][_0x380f36(0x10c)](_0x49f293,_0x305030,_0x266e73);}[_0x18d755(0x149)](){const _0x1d94c9=_0x18d755;this[_0x1d94c9(0x15f)](!0x1);}[_0x18d755(0x171)](){const _0x4fa3a4=_0x18d755;this[_0x4fa3a4(0x15f)](!0x0);}[_0x18d755(0x13b)](){const _0xb43d2a=_0x18d755;this[_0xb43d2a(0x10e)][_0xb43d2a(0x138)](),this[_0xb43d2a(0x127)][_0xb43d2a(0x12b)]=!0x1,this[_0xb43d2a(0x15a)]&&this[_0xb43d2a(0x15a)][_0xb43d2a(0x124)]();}[_0x18d755(0x117)](){const _0x51f71d=_0x18d755;this[_0x51f71d(0x10e)][_0x51f71d(0x17f)](),this[_0x51f71d(0x127)][_0x51f71d(0x12b)]=!0x0;}[_0x18d755(0x105)](_0x533976){const _0xc8a08=_0x18d755;this[_0xc8a08(0x144)][_0xc8a08(0x13c)](_0x533976),this[_0xc8a08(0x127)][_0xc8a08(0x12b)]=!0x0;}[_0x18d755(0xf9)](_0x4529ea,_0x201a04,_0x1c34aa,_0x435a88){const _0x5eec0a=_0x18d755;this[_0x5eec0a(0x144)][_0x5eec0a(0xf9)](_0x4529ea,_0x1c34aa,_0x435a88);}[_0x18d755(0x136)](_0x13efa1){const _0x3c21be=_0x18d755;this[_0x3c21be(0x144)][_0x3c21be(0x136)](_0x13efa1),this[_0x3c21be(0x127)][_0x3c21be(0x12b)]=!0x1;}[_0x18d755(0x15d)](_0x1baf2b){const _0x37f13f=_0x18d755;this[_0x37f13f(0x17c)](this[_0x37f13f(0x11c)],this[_0x37f13f(0x10d)],_0x1baf2b),this[_0x37f13f(0x181)](_0x1baf2b);}[_0x18d755(0x181)](_0x4fd4be){const _0x378c86=_0x18d755,_0x463c77=!_0x4fd4be[_0x378c86(0x170)][_0x378c86(0x166)]&&_0x4fd4be[_0x378c86(0x170)][_0x378c86(0xf8)],_0x3c1e10=_0x4fd4be[_0x378c86(0x122)][_0x378c86(0xf8)],_0x1e3c28=_0x4fd4be[_0x378c86(0x140)][_0x378c86(0xf8)];this[_0x378c86(0x127)][_0x378c86(0x10b)]=_0x463c77||_0x3c1e10||_0x1e3c28;}[_0x18d755(0x16c)](){const _0x222e37=_0x18d755;this[_0x222e37(0xf2)]({'tag':_0x222e37(0x142),'attributes':{'class':[Bo,_0x222e37(0xf3)]},'children':[{'tag':_0x222e37(0x142),'attributes':{'class':bo},'children':this[_0x222e37(0x114)]}]});}[_0x18d755(0x16d)](){const _0xbbb7cd=_0x18d755;this[_0xbbb7cd(0x127)]['on'](_0xbbb7cd(0x100),()=>{const _0x5d83a9=_0xbbb7cd;this[_0x5d83a9(0x155)]();});}[_0x18d755(0x11d)](_0x5a5627){const _0x40d276=_0x18d755,_0x394e75=new _0xa0da58(_0x5a5627);return _0x394e75[_0x40d276(0x11f)]({'label':_0x533ca0(_0x5a5627,_0x40d276(0x175)),'class':Vo+'\x20'+Ao,'icon':_0x35fc0e,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x394e75;}[_0x18d755(0x172)](_0x3ca0ab){const _0x4840ec=_0x18d755;return this[_0x4840ec(0x119)](_0x3ca0ab,To);}[_0x18d755(0x16e)](_0x21fc90){const _0x14626a=_0x18d755,_0x21717f=this[_0x14626a(0x119)](_0x21fc90,ko);return this[_0x14626a(0x178)](_0x21717f,_0x21fc90),_0x21717f;}[_0x18d755(0x152)](_0x4dce8c,_0x2ee6fa){const _0x14c855=_0x18d755,_0x4afeaa={'searchInputVisibleFrom':_0x2ee6fa[_0x14c855(0x13f)],'onBackToContext':()=>{const _0x16a2d1=_0x14c855;this[_0x16a2d1(0x171)](),this[_0x16a2d1(0x11c)][_0x16a2d1(0x134)]({'target':this[_0x16a2d1(0x127)][_0x16a2d1(0x14c)],'limiter':this[_0x16a2d1(0x163)](),'positions':So});},'onResourceSelected':(_0xf07d62,_0x5ac244)=>{const _0x3f6680=_0x14c855;this[_0x3f6680(0x177)](_0x3f6680(0x16b),{'source':_0xf07d62,'resource':_0x5ac244});},'onLoadSourceResources':_0x5a273e=>{const _0x27cc76=_0x14c855;this[_0x27cc76(0x177)](_0x27cc76(0x125),_0x5a273e);},'onBalloonClosed':()=>{const _0x57ebb7=_0x14c855;this[_0x57ebb7(0x127)][_0x57ebb7(0x12b)]=!0x1;},'getLimiterElement':()=>this[_0x14c855(0x163)](),'getTargetElement':()=>this[_0x14c855(0x127)][_0x14c855(0x14c)]};return new _0x97b742(_0x4dce8c,_0x2ee6fa[_0x14c855(0x159)],_0x4afeaa);}[_0x18d755(0x163)](){const _0xc5d1c7=_0x18d755;return this[_0xc5d1c7(0x14c)]?.[_0xc5d1c7(0x106)]('.'+Ro)||document[_0xc5d1c7(0x101)];}[_0x18d755(0x119)](_0x53b81f,_0x26141d){const _0x15a2f7=_0x18d755,_0x5968bf=new _0x5f5303(_0x53b81f);return _0x5968bf[_0x15a2f7(0x156)]({'attributes':{'class':_0x26141d}}),this[_0x15a2f7(0x159)][_0x15a2f7(0x167)](_0x5968bf),_0x5968bf;}[_0x18d755(0x17c)](_0x14a315,_0x5b9f66,_0x3d9268){const _0x3ed4ed=_0x18d755;if(_0x14a315[_0x3ed4ed(0xf1)][_0x3ed4ed(0x124)](),!_0x3d9268[_0x3ed4ed(0x170)][_0x3ed4ed(0x166)]&&_0x3d9268[_0x3ed4ed(0x170)][_0x3ed4ed(0xf8)]){const _0x49bb78=this[_0x3ed4ed(0x17a)](_0x5b9f66,{'label':_0x533ca0(_0x5b9f66,_0x3ed4ed(0x126)),'icon':_0x1fd7e2});_0x49bb78['on'](_0x3ed4ed(0x100),()=>{const _0x470ba5=_0x3ed4ed;this[_0x470ba5(0x177)](_0x470ba5(0x12d)),this[_0x470ba5(0x149)]();}),_0x14a315[_0x3ed4ed(0xf1)][_0x3ed4ed(0x167)](_0x49bb78);}if(_0x3d9268[_0x3ed4ed(0x122)][_0x3ed4ed(0xf8)]){const _0xfd4d10=this[_0x3ed4ed(0x17a)](_0x5b9f66,{'label':_0x533ca0(_0x5b9f66,_0x3ed4ed(0xff)),'icon':_0x5a0a9e});_0xfd4d10['on'](_0x3ed4ed(0x100),()=>{const _0x30257c=_0x3ed4ed;this[_0x30257c(0x149)](),this[_0x30257c(0x117)](),this[_0x30257c(0x10e)][_0x30257c(0x134)]({'target':this[_0x30257c(0x127)][_0x30257c(0x14c)],'limiter':this[_0x30257c(0x163)](),'positions':So}),this[_0x30257c(0x15a)][_0x30257c(0x14d)]();}),_0x14a315[_0x3ed4ed(0xf1)][_0x3ed4ed(0x167)](_0xfd4d10);}if(_0x3d9268[_0x3ed4ed(0x140)][_0x3ed4ed(0xf8)]){const _0x1cf1f4=new _0x21b043(_0x5b9f66);_0x1cf1f4[_0x3ed4ed(0x11f)]({'label':_0x533ca0(_0x5b9f66,_0x3ed4ed(0x17e)),'icon':_0x3fca4b,'withText':!0x0,'tooltip':!0x0,'class':Eo,'allowMultipleFiles':!0x0}),_0x1cf1f4['on'](_0x3ed4ed(0x164),(_0x192146,_0x249750)=>{const _0x2390f7=_0x3ed4ed;this[_0x2390f7(0x177)](_0x2390f7(0x139),_0x249750),this[_0x2390f7(0x149)]();}),_0x1cf1f4[_0x3ed4ed(0x102)]=!0x0,_0x14a315[_0x3ed4ed(0xf1)][_0x3ed4ed(0x167)](_0x1cf1f4);}for(const _0x57b6e1 of _0x3d9268[_0x3ed4ed(0x15b)]){const _0x43df22=this[_0x3ed4ed(0x17a)](_0x5b9f66,{'label':_0x57b6e1[_0x3ed4ed(0xf6)],'icon':_0x57b6e1[_0x3ed4ed(0x123)]||_0xb7a0cd,'type':_0x3ed4ed(0x13d)});_0x14a315[_0x3ed4ed(0xf1)][_0x3ed4ed(0x167)](_0x43df22),_0x43df22['on'](_0x3ed4ed(0x100),()=>{const _0x582f98=_0x3ed4ed;this[_0x582f98(0x149)](),this[_0x582f98(0x105)](_0x57b6e1);});}}[_0x18d755(0x178)](_0x542255,_0x504e23){const _0x46485e=_0x18d755;this[_0x46485e(0x15a)]=new _0x1b4d70(_0x504e23),this[_0x46485e(0x15a)]['on'](_0x46485e(0x12a),(_0xefebe3,_0x26248c)=>{const _0x55b5d8=_0x46485e;this[_0x55b5d8(0x16f)](_0x26248c);}),this[_0x46485e(0x15a)]['on'](_0x46485e(0x109),()=>{const _0x39aca4=_0x46485e;this[_0x39aca4(0x13b)](),this[_0x39aca4(0x171)](),this[_0x39aca4(0x11c)][_0x39aca4(0x134)]({'target':this[_0x39aca4(0x127)][_0x39aca4(0x14c)],'limiter':this[_0x39aca4(0x163)](),'positions':So});}),this[_0x46485e(0x15a)]['on'](_0x46485e(0x150),()=>{const _0x491a3f=_0x46485e;this[_0x491a3f(0x10e)][_0x491a3f(0x173)]&&this[_0x491a3f(0x10e)][_0x491a3f(0x134)]({'target':this[_0x491a3f(0x127)][_0x491a3f(0x14c)],'limiter':this[_0x491a3f(0x163)](),'positions':So});}),_0x542255[_0x46485e(0xf1)][_0x46485e(0x167)](this[_0x46485e(0x15a)]);}[_0x18d755(0x17a)](_0x31562a,_0x34634c){const _0x2e3de5=_0x18d755,_0x51fe4b=_0x2e3de5(0x13d)===_0x34634c[_0x2e3de5(0x104)]?new SourcesBalloonButtonView(_0x31562a):new _0xa0da58(_0x31562a);return _0x51fe4b[_0x2e3de5(0x11f)]({'label':_0x34634c[_0x2e3de5(0xf6)],'icon':_0x34634c[_0x2e3de5(0x123)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Eo}),_0x51fe4b;}[_0x18d755(0x151)](){const _0xe7826d=_0x18d755;this[_0xe7826d(0x11a)](),this[_0xe7826d(0x132)]();}[_0x18d755(0x132)](){const _0x16b5f8=_0x18d755;_0x100880({'emitter':this[_0x16b5f8(0x10e)],'contextElements':[this[_0x16b5f8(0x10e)][_0x16b5f8(0x14c)]],'callback':()=>{const _0x1e41af=_0x16b5f8;this[_0x1e41af(0x13b)]();},'activator':()=>this[_0x16b5f8(0x10e)][_0x16b5f8(0x173)]});}[_0x18d755(0x15f)](_0x29e269){const _0x5d33c1=_0x18d755,_0x4eef42=this[_0x5d33c1(0x110)];_0x4eef42[_0x5d33c1(0x14e)][_0x5d33c1(0x12b)]=_0x29e269,_0x29e269?_0x4eef42[_0x5d33c1(0x148)][_0x5d33c1(0x17f)]():_0x4eef42[_0x5d33c1(0x148)][_0x5d33c1(0x138)]();}[_0x18d755(0x11a)](){const _0x30cc0a=_0x18d755,{balloonView:_0x412dd9,buttonView:_0x179f36,hideMethod:_0x7bf180}=this[_0x30cc0a(0x110)];_0x100880({'emitter':_0x412dd9,'contextElements':[_0x412dd9[_0x30cc0a(0x14c)],_0x179f36[_0x30cc0a(0x14c)]],'callback':()=>{_0x7bf180();},'activator':()=>_0x179f36[_0x30cc0a(0x12b)]&&!this[_0x30cc0a(0x10e)][_0x30cc0a(0x173)]&&!this[_0x30cc0a(0x144)][_0x30cc0a(0x130)]()});}[_0x18d755(0x12c)](_0x24bf30,_0x304e78,_0x5e3457=!0x1,_0x5e4e9f=!0x1){const _0x7c32e4=_0x18d755,_0x49fe5a=_0x7c32e4(0x182)===_0x304e78||!0x0===_0x24bf30[_0x7c32e4(0x160)],_0x33c811=new _0xc1abd(this[_0x7c32e4(0x10d)],_0x24bf30,_0x49fe5a,_0x5e3457,_0x5e4e9f);return _0x49fe5a||_0x33c811['on'](_0x7c32e4(0x15c),()=>{const _0x38c643=_0x7c32e4;this[_0x38c643(0x177)](_0x38c643(0x118),_0x33c811['id']);}),_0x33c811;}[_0x18d755(0x13a)](_0x40145a,_0x3c887b){const _0x4b60bf=_0x18d755;_0x3c887b[_0x4b60bf(0x167)](_0x40145a,0x0);}[_0x18d755(0x108)](_0xf328f2,_0x29a7de){const _0x47a934=_0x18d755,_0x40eb23=_0x29a7de[_0x47a934(0x128)](_0x31181=>_0x31181['id']===_0xf328f2);_0x40eb23&&_0x29a7de[_0x47a934(0x157)](_0x40eb23);}[_0x18d755(0x155)](){const _0x3bd621=_0x18d755;this[_0x3bd621(0x127)][_0x3bd621(0x12b)]?this[_0x3bd621(0x149)]():(this[_0x3bd621(0x171)](),this[_0x3bd621(0x11c)][_0x3bd621(0x134)]({'target':this[_0x3bd621(0x127)][_0x3bd621(0x14c)],'limiter':this[_0x3bd621(0x163)](),'positions':So}));}[_0x18d755(0x16f)](_0x3d7892){const _0x1b52fb=_0x18d755;this[_0x1b52fb(0x15a)][_0x1b52fb(0x124)](),this[_0x1b52fb(0x13b)](),this[_0x1b52fb(0x177)](_0x1b52fb(0x10a),_0x3d7892);}}export class SourcesBalloonButtonView extends _0xa0da58{[_0x18d755(0x15e)];constructor(_0xd2697e){const _0x59642f=_0x18d755;super(_0xd2697e),this[_0x59642f(0x11f)]({'withText':!0x0,'role':_0x59642f(0x113)}),this[_0x59642f(0x15e)]=this[_0x59642f(0x17b)](),this[_0x59642f(0x156)]({'attributes':{'class':[vo]}});}[_0x18d755(0x133)](){const _0x2f0cb4=_0x18d755;super[_0x2f0cb4(0x133)](),this[_0x2f0cb4(0x116)][_0x2f0cb4(0x167)](this[_0x2f0cb4(0x15e)]);}[_0x18d755(0x17b)](){const _0x844f4=_0x18d755,_0x206f4d=new _0x34880d();return _0x206f4d[_0x844f4(0xf1)]=_0x2938ae,_0x206f4d[_0x844f4(0x156)]({'attributes':{'class':vo+_0x844f4(0x17d)}}),_0x206f4d;}}function _0x5e26(){const _0x4e857d=['_conversationContextsChips','_handleAddContextButtonClick','extendTemplate','remove','ck-ai-chat-context-controls__pending-contexts','bodyCollection','_urlInputView','sources','removeContextItemChip','setAddContextOptions','arrowView','_toggleAddContextBalloon','isReadOnly','4619MxWGnJ','destroy','_getLimiterElement','done','ck-ai-chat-context-controls__url-balloon-panel','isHidden','add','setContextItemLoading','northArrowSouth','southArrowNorthEast','addResourceToContext','_setupTemplate','_bindEventHandlers','_createUrlBalloonPanelView','_handleUrlSubmit','document','showAddContextBalloonPanel','_createAddContextBalloonPanelView','isVisible','ck-ai-chat-context-controls__add-context-balloon-panel','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat-controls_context_show-more-button','fire','_addUrlContent','28anyCzV','_createBalloonButton','_createArrowView','_setBalloonPanelContent','__arrow','AI_CHAT_CONTEXT_FILE_LABEL','show','ck-ai-chat-context-controls','_setAddContextButtonEnabled','conversation','content','setTemplate','ck-reset_all-excluded','11OeijDk','overflowChips','label','southArrowNorth','enabled','populateSourceResourceBalloon','ck-ai-chat-context-controls__balloon-button','defaultPositions','clearConversationContextItems','setConversationContext','ck-ai-chat-controls-button','AI_CHAT_CONTEXT_URL_LABEL','execute','body','tooltip','8787hIwMBf','type','_showSourceResourcesBalloon','closest','ck-ai-chat-context-controls__show-more-balloon-panel','_removeContextFromCollection','cancel','addUrlToContext','isEnabled','updateResourceState','locale','_urlBalloonPanelView','clearCurrentContextItems','_addContextBalloonConfig','ck-ai-chat-context-controls__add-context-button','addContextItem','menuitem','_currentContextsChips','northArrowSouthEast','children','showUrlBalloonPanel','removeContextItem','_createBaseBalloonPanel','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button-source','_addContextBalloonPanelView','_createAddContextButtonView','33145680zGSngo','set','2838702ZIXPkM','ck-ai-chat','urls','icon','clear','loadSourceResources','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addContextButtonView','find','6893145soQkuT','submitUrl','isOn','_createContextButton','addDocumentToContext','74GcNReO','7prMOiZ','isAnyResourceBalloonVisible','10943936aKraiz','_setupUrlBalloonClickOutsideHandler','render','pin','createCollection','closeSourceResourceBalloon','isLoading','hide','addFileToContext','_addContextToCollection','hideUrlBalloonPanel','showSourceResourcesBalloon','source','_overflowManager','searchInputVisibleFrom','files','current','div','bind','_resourcesBalloonView','southArrowNorthWest','northArrowSouthWest','1510ouEqKZ','balloonView','hideAddContextBalloonPanel','reorganizeChips','9369xfIKjR','element','focus','buttonView','setContainerElement','refreshBalloon','_setupAllBalloonClickOutsideHandlers','_createResourcesBalloonView','ck-ai-chat-context-chips-wrapper-balloon'];_0x5e26=function(){return _0x4e857d;};return _0x5e26();}
|
|
23
|
+
function _0x5a82(){const _0x263265=['southArrowNorthEast','refreshBalloon','div','5034190bQzuai','enabled','ck-ai-chat-context-controls__pending-contexts','element','ck-ai-chat','pin','_overflowManager','_createBaseBalloonPanel','isAnyResourceBalloonVisible','setContainerElement','AI_CHAT_CONTEXT_FILE_LABEL','addResourceToContext','loadSourceResources','146757quRdox','buttonView','76CJpPzt','files','_showSourceResourcesBalloon','body','_setBalloonPanelContent','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button','5347024LhXOvd','menuitem','set','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat-context-chips-wrapper-balloon','_addContextToCollection','icon','ck-ai-chat-context-controls__balloon-button-source','showSourceResourcesBalloon','searchInputVisibleFrom','_setupAllBalloonClickOutsideHandlers','northArrowSouth','_setAddContextButtonEnabled','_createAddContextButtonView','urls','label','_createContextButton','removeContextItemChip','find','__arrow','destroy','show','ck-ai-chat-controls_context_show-more-button','_urlBalloonPanelView','ck-ai-chat-context-controls__show-more-balloon-panel','northArrowSouthWest','_removeContextFromCollection','clearConversationContextItems','showAddContextBalloonPanel','clearCurrentContextItems','_createUrlBalloonPanelView','_setupTemplate','_createResourcesBalloonView','_addUrlContent','sources','overflowChips','8dGkEju','addDocumentToContext','3977178yofMun','balloonView','remove','hideUrlBalloonPanel','hide','current','southArrowNorthWest','AI_CHAT_CONTEXT_URL_LABEL','_handleAddContextButtonClick','_createArrowView','911178NhtMFk','_addContextBalloonPanelView','isLoading','setContextItemLoading','isEnabled','addUrlToContext','showUrlBalloonPanel','ck-ai-chat-context-controls__add-context-button','setAddContextOptions','_conversationContextsChips','add','arrowView','reorganizeChips','isVisible','isHidden','cancel','ck-reset_all-excluded','updateResourceState','_toggleAddContextBalloon','fire','addFileToContext','southArrowNorth','populateSourceResourceBalloon','submitUrl','_createBalloonButton','_handleUrlSubmit','done','render','defaultPositions','addContextItem','_resourcesBalloonView','addContextButtonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','locale','_createAddContextBalloonPanelView','execute','clear','_bindEventHandlers','_urlInputView','ck-ai-chat-context-controls__url-balloon-panel','_getLimiterElement','focus','closest','northArrowSouthEast','ck-ai-chat-context-controls__add-context-balloon-panel','setTemplate','conversation','removeContextItem','createCollection','bind','_currentContextsChips','_addContextBalloonConfig','extendTemplate','closeSourceResourceBalloon','setConversationContext','content','5QehvBt','children','5894000zSoAfW','70586cPNeyP','document','isOn','isReadOnly','bodyCollection','source','hideAddContextBalloonPanel','_setupAddContextBalloonClickOutsideHandler','type','ck-ai-chat-controls-button','ck-ai-chat-context-controls','tooltip'];_0x5a82=function(){return _0x263265;};return _0x5a82();}const _0x356aea=_0x1ee8;(function(_0x2e3f02,_0x4bd278){const _0x2499c3=_0x1ee8,_0x44ae7a=_0x2e3f02();while(!![]){try{const _0x3eb428=-parseInt(_0x2499c3(0x11d))/0x1*(parseInt(_0x2499c3(0x164))/0x2)+parseInt(_0x2499c3(0xf0))/0x3*(parseInt(_0x2499c3(0xf2))/0x4)+-parseInt(_0x2499c3(0x161))/0x5*(-parseInt(_0x2499c3(0x11f))/0x6)+-parseInt(_0x2499c3(0xe3))/0x7+parseInt(_0x2499c3(0xf9))/0x8+parseInt(_0x2499c3(0x129))/0x9+-parseInt(_0x2499c3(0x163))/0xa;if(_0x3eb428===_0x4bd278)break;else _0x44ae7a['push'](_0x44ae7a['shift']());}catch(_0x195ab8){_0x44ae7a['push'](_0x44ae7a['shift']());}}}(_0x5a82,0xbc3d6));import{BalloonPanelView as _0x487661,ButtonView as _0x5ee25a,clickOutsideHandler as _0x17e545,FileDialogButtonView as _0x5ea439,IconView as _0x17ed6b,View as _0x4652fb}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x203d3e,IconDocument as _0x5a6bed,IconDocumentOutline as _0x491d45,IconDropdownArrow as _0x4e34cd,IconLink as _0x3e945e,IconPaperClip as _0x2f9a6d}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x1d36aa}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x123718}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x2513bf}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x444bfb}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0xa6cac6}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x356aea(0x11e),_0x356aea(0x13d),_0x356aea(0x12e),_0x356aea(0xee),_0x356aea(0x158),_0x356aea(0xef)];function _0x1ee8(_0x32e1ef,_0x4141c0){const _0x5a8291=_0x5a82();return _0x1ee8=function(_0x1ee846,_0x321e3b){_0x1ee846=_0x1ee846-0xe1;let _0x328062=_0x5a8291[_0x1ee846];return _0x328062;},_0x1ee8(_0x32e1ef,_0x4141c0);}const Ro=_0x356aea(0x16e),Uo=_0x356aea(0xe5),Lo=_0x356aea(0x155),No=_0x356aea(0x130),Oo=_0x356aea(0x150),Mo=_0x356aea(0xf8),Ho=_0x356aea(0x100),bo=_0x356aea(0x16d),Fo=_0x356aea(0xfd),vo=_0x356aea(0x10f),jo=_0x356aea(0x111),Xo=_0x356aea(0xe7),Do=[_0x487661[_0x356aea(0x145)][_0x356aea(0x112)],_0x487661[_0x356aea(0x145)][_0x356aea(0x104)],_0x487661[_0x356aea(0x145)][_0x356aea(0x154)],_0x487661[_0x356aea(0x145)][_0x356aea(0x125)],_0x487661[_0x356aea(0x145)][_0x356aea(0x13e)],_0x487661[_0x356aea(0x145)][_0x356aea(0x170)]];export class AIChatContextPanelView extends _0x4652fb{[_0x356aea(0x148)];[_0x356aea(0x15b)]=this[_0x356aea(0x159)]();[_0x356aea(0x132)]=this[_0x356aea(0x159)]();[_0x356aea(0xe9)];[_0x356aea(0x12a)];[_0x356aea(0x110)];[_0x356aea(0x14f)];[_0x356aea(0x147)];[_0x356aea(0x15c)];[_0x356aea(0x168)];constructor(_0x11dca3,_0x45d41b){const _0x207793=_0x356aea;super(_0x11dca3),this[_0x207793(0x168)]=_0x45d41b[_0x207793(0x168)],this[_0x207793(0x15b)]=this[_0x207793(0x159)](),this[_0x207793(0x132)]=this[_0x207793(0x159)](),this[_0x207793(0x148)]=this[_0x207793(0x106)](_0x11dca3),this[_0x207793(0x12a)]=this[_0x207793(0x14b)](_0x11dca3),this[_0x207793(0x110)]=this[_0x207793(0x117)](_0x11dca3),this[_0x207793(0x147)]=this[_0x207793(0x119)](_0x11dca3,_0x45d41b);const _0x328caa={'cssClasses':{'showMoreButton':vo,'showMoreBalloon':jo,'overflowContainer':Fo,'controlsButton':bo}};this[_0x207793(0xe9)]=new _0x2513bf(_0x11dca3,this[_0x207793(0x15b)],_0x328caa,this[_0x207793(0x168)],this),this[_0x207793(0x15c)]={'buttonView':this[_0x207793(0x148)],'balloonView':this[_0x207793(0x12a)],'hideMethod':this[_0x207793(0x16a)][_0x207793(0x15a)](this),'showMethod':this[_0x207793(0x115)][_0x207793(0x15a)](this)},this[_0x207793(0x118)](),this[_0x207793(0x14e)]();}[_0x356aea(0x144)](){const _0x1df6e5=_0x356aea;super[_0x1df6e5(0x144)](),this[_0x1df6e5(0x103)](),this[_0x1df6e5(0xe9)][_0x1df6e5(0xec)](this[_0x1df6e5(0xe6)]),this[_0x1df6e5(0xe9)][_0x1df6e5(0x135)]();}[_0x356aea(0x10d)](){const _0x31a6a7=_0x356aea;super[_0x31a6a7(0x10d)](),this[_0x31a6a7(0xe9)][_0x31a6a7(0x10d)](),this[_0x31a6a7(0x147)][_0x31a6a7(0x10d)]();}[_0x356aea(0x146)](_0x19290b,_0xe605b8){const _0x5846ec=_0x356aea,_0x552bbe=this[_0x5846ec(0x109)](_0x19290b,_0x5846ec(0x124),!0x0,_0xe605b8);this[_0x5846ec(0xfe)](_0x552bbe,this[_0x5846ec(0x15b)]),this[_0x5846ec(0xe9)][_0x5846ec(0x135)]();}[_0x356aea(0x158)](_0x1fe700){const _0x46272f=_0x356aea;this[_0x46272f(0x113)](_0x1fe700,this[_0x46272f(0x15b)]),this[_0x46272f(0x113)](_0x1fe700,this[_0x46272f(0xe9)][_0x46272f(0x11c)]),this[_0x46272f(0xe9)][_0x46272f(0x135)]();}[_0x356aea(0x12c)](_0x5839d3,_0xba72c1){const _0x44b582=_0x356aea;let _0x1ceece=this[_0x44b582(0x15b)][_0x44b582(0x10b)](_0x3dcf73=>_0x3dcf73['id']===_0x5839d3);_0x1ceece||(_0x1ceece=this[_0x44b582(0xe9)][_0x44b582(0x11c)][_0x44b582(0x10b)](_0x257c93=>_0x257c93['id']===_0x5839d3)),_0x1ceece&&(_0x1ceece[_0x44b582(0x12b)]=_0xba72c1);}[_0x356aea(0x15f)](_0x4289b3){const _0x50b481=_0x356aea;this[_0x50b481(0x132)][_0x50b481(0x14d)]();for(const _0x1aeadd of _0x4289b3){const _0x1b43c1=this[_0x50b481(0x109)](_0x1aeadd,_0x50b481(0x157),!0x1,!0x1);this[_0x50b481(0xfe)](_0x1b43c1,this[_0x50b481(0x132)]);}}[_0x356aea(0x116)](){const _0x14ed5c=_0x356aea;this[_0x14ed5c(0x15b)][_0x14ed5c(0x14d)](),this[_0x14ed5c(0xe9)][_0x14ed5c(0x14d)]();}[_0x356aea(0x114)](){const _0x4619c3=_0x356aea;this[_0x4619c3(0x132)][_0x4619c3(0x14d)]();}[_0x356aea(0x13a)](_0xc2f0ac,_0x4df4ad,_0xfffc7){const _0x37a8ad=_0x356aea;this[_0x37a8ad(0x147)][_0x37a8ad(0x13a)](_0xc2f0ac,_0x4df4ad,_0xfffc7);}[_0x356aea(0x16a)](){const _0x326fb6=_0x356aea;this[_0x326fb6(0x13b)](!0x1);}[_0x356aea(0x115)](){const _0xfdd7d1=_0x356aea;this[_0xfdd7d1(0x13b)](!0x0);}[_0x356aea(0x122)](){const _0x3ccdd6=_0x356aea;this[_0x3ccdd6(0x110)][_0x3ccdd6(0x123)](),this[_0x3ccdd6(0x148)][_0x3ccdd6(0x166)]=!0x1,this[_0x3ccdd6(0x14f)]&&this[_0x3ccdd6(0x14f)][_0x3ccdd6(0x14d)]();}[_0x356aea(0x12f)](){const _0x3b06bf=_0x356aea;this[_0x3b06bf(0x110)][_0x3b06bf(0x10e)](),this[_0x3b06bf(0x148)][_0x3b06bf(0x166)]=!0x0;}[_0x356aea(0xf4)](_0x5c33e2){const _0x3c201b=_0x356aea;this[_0x3c201b(0x147)][_0x3c201b(0x101)](_0x5c33e2),this[_0x3c201b(0x148)][_0x3c201b(0x166)]=!0x0;}[_0x356aea(0x13f)](_0x18e5a2,_0x13c14b,_0x339db5,_0x54e2de){const _0x409d73=_0x356aea;this[_0x409d73(0x147)][_0x409d73(0x13f)](_0x18e5a2,_0x339db5,_0x54e2de);}[_0x356aea(0x15e)](_0x4d8e8d){const _0x9629a0=_0x356aea;this[_0x9629a0(0x147)][_0x9629a0(0x15e)](_0x4d8e8d),this[_0x9629a0(0x148)][_0x9629a0(0x166)]=!0x1;}[_0x356aea(0x131)](_0x1482cb){const _0x1059fe=_0x356aea;this[_0x1059fe(0xf6)](this[_0x1059fe(0x12a)],this[_0x1059fe(0x14a)],_0x1482cb),this[_0x1059fe(0x105)](_0x1482cb);}[_0x356aea(0x105)](_0xd7a906){const _0x4dcb60=_0x356aea,_0x170d16=!_0xd7a906[_0x4dcb60(0x165)][_0x4dcb60(0x137)]&&_0xd7a906[_0x4dcb60(0x165)][_0x4dcb60(0xe4)],_0x540e55=_0xd7a906[_0x4dcb60(0x107)][_0x4dcb60(0xe4)],_0x4c0213=_0xd7a906[_0x4dcb60(0xf3)][_0x4dcb60(0xe4)];this[_0x4dcb60(0x148)][_0x4dcb60(0x12d)]=_0x170d16||_0x540e55||_0x4c0213;}[_0x356aea(0x118)](){const _0x3983b7=_0x356aea;this[_0x3983b7(0x156)]({'tag':_0x3983b7(0xe2),'attributes':{'class':[Ro,_0x3983b7(0x139)]},'children':[{'tag':_0x3983b7(0xe2),'attributes':{'class':Uo},'children':this[_0x3983b7(0x15b)]}]});}[_0x356aea(0x14e)](){const _0x59b26f=_0x356aea;this[_0x59b26f(0x148)]['on'](_0x59b26f(0x14c),()=>{const _0x29e63d=_0x59b26f;this[_0x29e63d(0x127)]();});}[_0x356aea(0x106)](_0x53606c){const _0x46fab6=_0x356aea,_0x549b7b=new _0x5ee25a(_0x53606c);return _0x549b7b[_0x46fab6(0xfb)]({'label':_0x444bfb(_0x53606c,_0x46fab6(0xfc)),'class':bo+'\x20'+No,'icon':_0x2f9a6d,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x549b7b;}[_0x356aea(0x14b)](_0x419afc){const _0x41cc23=_0x356aea;return this[_0x41cc23(0xea)](_0x419afc,Lo);}[_0x356aea(0x117)](_0x2ab5ab){const _0x91fedb=_0x356aea,_0x3a934c=this[_0x91fedb(0xea)](_0x2ab5ab,Oo);return this[_0x91fedb(0x11a)](_0x3a934c,_0x2ab5ab),_0x3a934c;}[_0x356aea(0x119)](_0x28ace1,_0x375b12){const _0x2191ef=_0x356aea,_0x291fc6={'searchInputVisibleFrom':_0x375b12[_0x2191ef(0x102)],'onBackToContext':()=>{const _0x4c3dba=_0x2191ef;this[_0x4c3dba(0x115)](),this[_0x4c3dba(0x12a)][_0x4c3dba(0xe8)]({'target':this[_0x4c3dba(0x148)][_0x4c3dba(0xe6)],'limiter':this[_0x4c3dba(0x151)](),'positions':Do});},'onResourceSelected':(_0x3b1b8a,_0x58118c)=>{const _0x4093ec=_0x2191ef;this[_0x4093ec(0x13c)](_0x4093ec(0xee),{'source':_0x3b1b8a,'resource':_0x58118c});},'onLoadSourceResources':_0x2fb7fb=>{const _0x2f9ba2=_0x2191ef;this[_0x2f9ba2(0x13c)](_0x2f9ba2(0xef),_0x2fb7fb);},'onBalloonClosed':()=>{const _0x356240=_0x2191ef;this[_0x356240(0x148)][_0x356240(0x166)]=!0x1;},'getLimiterElement':()=>this[_0x2191ef(0x151)](),'getTargetElement':()=>this[_0x2191ef(0x148)][_0x2191ef(0xe6)]};return new _0xa6cac6(_0x28ace1,_0x375b12[_0x2191ef(0x168)],_0x291fc6);}[_0x356aea(0x151)](){const _0x5e1ff8=_0x356aea;return this[_0x5e1ff8(0xe6)]?.[_0x5e1ff8(0x153)]('.'+Xo)||document[_0x5e1ff8(0xf5)];}[_0x356aea(0xea)](_0x53027a,_0x2fdc46){const _0x26af1e=_0x356aea,_0x57434e=new _0x487661(_0x53027a);return _0x57434e[_0x26af1e(0x15d)]({'attributes':{'class':_0x2fdc46}}),this[_0x26af1e(0x168)][_0x26af1e(0x133)](_0x57434e),_0x57434e;}[_0x356aea(0xf6)](_0x1b56ab,_0x2b3d04,_0x284f08){const _0x4c66b2=_0x356aea;if(_0x1b56ab[_0x4c66b2(0x160)][_0x4c66b2(0x14d)](),!_0x284f08[_0x4c66b2(0x165)][_0x4c66b2(0x137)]&&_0x284f08[_0x4c66b2(0x165)][_0x4c66b2(0xe4)]){const _0x408218=this[_0x4c66b2(0x141)](_0x2b3d04,{'label':_0x444bfb(_0x2b3d04,_0x4c66b2(0x149)),'icon':_0x5a6bed});_0x408218['on'](_0x4c66b2(0x14c),()=>{const _0x5784e7=_0x4c66b2;this[_0x5784e7(0x13c)](_0x5784e7(0x11e)),this[_0x5784e7(0x16a)]();}),_0x1b56ab[_0x4c66b2(0x160)][_0x4c66b2(0x133)](_0x408218);}if(_0x284f08[_0x4c66b2(0x107)][_0x4c66b2(0xe4)]){const _0x47cccf=this[_0x4c66b2(0x141)](_0x2b3d04,{'label':_0x444bfb(_0x2b3d04,_0x4c66b2(0x126)),'icon':_0x3e945e});_0x47cccf['on'](_0x4c66b2(0x14c),()=>{const _0x46b1a9=_0x4c66b2;this[_0x46b1a9(0x16a)](),this[_0x46b1a9(0x12f)](),this[_0x46b1a9(0x110)][_0x46b1a9(0xe8)]({'target':this[_0x46b1a9(0x148)][_0x46b1a9(0xe6)],'limiter':this[_0x46b1a9(0x151)](),'positions':Do}),this[_0x46b1a9(0x14f)][_0x46b1a9(0x152)]();}),_0x1b56ab[_0x4c66b2(0x160)][_0x4c66b2(0x133)](_0x47cccf);}if(_0x284f08[_0x4c66b2(0xf3)][_0x4c66b2(0xe4)]){const _0x379386=new _0x5ea439(_0x2b3d04);_0x379386[_0x4c66b2(0xfb)]({'label':_0x444bfb(_0x2b3d04,_0x4c66b2(0xed)),'icon':_0x203d3e,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x379386['on'](_0x4c66b2(0x143),(_0x1d6446,_0x1138a5)=>{const _0x6dda1c=_0x4c66b2;this[_0x6dda1c(0x13c)](_0x6dda1c(0x13d),_0x1138a5),this[_0x6dda1c(0x16a)]();}),_0x379386[_0x4c66b2(0x16f)]=!0x0,_0x1b56ab[_0x4c66b2(0x160)][_0x4c66b2(0x133)](_0x379386);}for(const _0x4f5308 of _0x284f08[_0x4c66b2(0x11b)]){const _0x47ef3c=this[_0x4c66b2(0x141)](_0x2b3d04,{'label':_0x4f5308[_0x4c66b2(0x108)],'icon':_0x4f5308[_0x4c66b2(0xff)]||_0x491d45,'type':_0x4c66b2(0x169)});_0x1b56ab[_0x4c66b2(0x160)][_0x4c66b2(0x133)](_0x47ef3c),_0x47ef3c['on'](_0x4c66b2(0x14c),()=>{const _0x2db031=_0x4c66b2;this[_0x2db031(0x16a)](),this[_0x2db031(0xf4)](_0x4f5308);});}}[_0x356aea(0x11a)](_0x48770a,_0xa1428c){const _0x30c7c8=_0x356aea;this[_0x30c7c8(0x14f)]=new _0x123718(_0xa1428c),this[_0x30c7c8(0x14f)]['on'](_0x30c7c8(0x140),(_0x859637,_0x5263bf)=>{const _0x47e620=_0x30c7c8;this[_0x47e620(0x142)](_0x5263bf);}),this[_0x30c7c8(0x14f)]['on'](_0x30c7c8(0x138),()=>{const _0x2a66c0=_0x30c7c8;this[_0x2a66c0(0x122)](),this[_0x2a66c0(0x115)](),this[_0x2a66c0(0x12a)][_0x2a66c0(0xe8)]({'target':this[_0x2a66c0(0x148)][_0x2a66c0(0xe6)],'limiter':this[_0x2a66c0(0x151)](),'positions':Do});}),this[_0x30c7c8(0x14f)]['on'](_0x30c7c8(0xe1),()=>{const _0x130284=_0x30c7c8;this[_0x130284(0x110)][_0x130284(0x136)]&&this[_0x130284(0x110)][_0x130284(0xe8)]({'target':this[_0x130284(0x148)][_0x130284(0xe6)],'limiter':this[_0x130284(0x151)](),'positions':Do});}),_0x48770a[_0x30c7c8(0x160)][_0x30c7c8(0x133)](this[_0x30c7c8(0x14f)]);}[_0x356aea(0x141)](_0x4a21bd,_0x3f79fd){const _0x103b9b=_0x356aea,_0x2a338b=_0x103b9b(0x169)===_0x3f79fd[_0x103b9b(0x16c)]?new SourcesBalloonButtonView(_0x4a21bd):new _0x5ee25a(_0x4a21bd);return _0x2a338b[_0x103b9b(0xfb)]({'label':_0x3f79fd[_0x103b9b(0x108)],'icon':_0x3f79fd[_0x103b9b(0xff)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x2a338b;}[_0x356aea(0x103)](){const _0x43f010=_0x356aea;this[_0x43f010(0x16b)](),this[_0x43f010(0xf7)]();}[_0x356aea(0xf7)](){const _0x3d5ba5=_0x356aea;_0x17e545({'emitter':this[_0x3d5ba5(0x110)],'contextElements':[this[_0x3d5ba5(0x110)][_0x3d5ba5(0xe6)]],'callback':()=>{const _0x112e01=_0x3d5ba5;this[_0x112e01(0x122)]();},'activator':()=>this[_0x3d5ba5(0x110)][_0x3d5ba5(0x136)]});}[_0x356aea(0x13b)](_0x3bb669){const _0x173bb9=_0x356aea,_0x4a935f=this[_0x173bb9(0x15c)];_0x4a935f[_0x173bb9(0xf1)][_0x173bb9(0x166)]=_0x3bb669,_0x3bb669?_0x4a935f[_0x173bb9(0x120)][_0x173bb9(0x10e)]():_0x4a935f[_0x173bb9(0x120)][_0x173bb9(0x123)]();}[_0x356aea(0x16b)](){const _0x24faeb=_0x356aea,{balloonView:_0x4b61b6,buttonView:_0x326666,hideMethod:_0xcc49ac}=this[_0x24faeb(0x15c)];_0x17e545({'emitter':_0x4b61b6,'contextElements':[_0x4b61b6[_0x24faeb(0xe6)],_0x326666[_0x24faeb(0xe6)]],'callback':()=>{_0xcc49ac();},'activator':()=>_0x326666[_0x24faeb(0x166)]&&!this[_0x24faeb(0x110)][_0x24faeb(0x136)]&&!this[_0x24faeb(0x147)][_0x24faeb(0xeb)]()});}[_0x356aea(0x109)](_0x3a157e,_0x1ba411,_0x48fdd0=!0x1,_0x4570c7=!0x1){const _0x2500d9=_0x356aea,_0xca3c55=_0x2500d9(0x157)===_0x1ba411||!0x0===_0x3a157e[_0x2500d9(0x167)],_0x3c09c5=new _0x1d36aa(this[_0x2500d9(0x14a)],_0x3a157e,_0xca3c55,_0x48fdd0,_0x4570c7);return _0xca3c55||_0x3c09c5['on'](_0x2500d9(0x10a),()=>{const _0x2fb15c=_0x2500d9;this[_0x2fb15c(0x13c)](_0x2fb15c(0x158),_0x3c09c5['id']);}),_0x3c09c5;}[_0x356aea(0xfe)](_0x45f9e5,_0x5a13ac){const _0x3f33d0=_0x356aea;_0x5a13ac[_0x3f33d0(0x133)](_0x45f9e5,0x0);}[_0x356aea(0x113)](_0x4c2f3f,_0x36e111){const _0x5685c1=_0x356aea,_0x4c942d=_0x36e111[_0x5685c1(0x10b)](_0x33214e=>_0x33214e['id']===_0x4c2f3f);_0x4c942d&&_0x36e111[_0x5685c1(0x121)](_0x4c942d);}[_0x356aea(0x127)](){const _0x1d556a=_0x356aea;this[_0x1d556a(0x148)][_0x1d556a(0x166)]?this[_0x1d556a(0x16a)]():(this[_0x1d556a(0x115)](),this[_0x1d556a(0x12a)][_0x1d556a(0xe8)]({'target':this[_0x1d556a(0x148)][_0x1d556a(0xe6)],'limiter':this[_0x1d556a(0x151)](),'positions':Do}));}[_0x356aea(0x142)](_0x4f37ce){const _0x3d352a=_0x356aea;this[_0x3d352a(0x14f)][_0x3d352a(0x14d)](),this[_0x3d352a(0x122)](),this[_0x3d352a(0x13c)](_0x3d352a(0x12e),_0x4f37ce);}}export class SourcesBalloonButtonView extends _0x5ee25a{[_0x356aea(0x134)];constructor(_0x302b1b){const _0x72d1a8=_0x356aea;super(_0x302b1b),this[_0x72d1a8(0xfb)]({'withText':!0x0,'role':_0x72d1a8(0xfa)}),this[_0x72d1a8(0x134)]=this[_0x72d1a8(0x128)](),this[_0x72d1a8(0x15d)]({'attributes':{'class':[Ho]}});}[_0x356aea(0x144)](){const _0x2bbf09=_0x356aea;super[_0x2bbf09(0x144)](),this[_0x2bbf09(0x162)][_0x2bbf09(0x133)](this[_0x2bbf09(0x134)]);}[_0x356aea(0x128)](){const _0x25f859=_0x356aea,_0xc32490=new _0x17ed6b();return _0xc32490[_0x25f859(0x160)]=_0x4e34cd,_0xc32490[_0x25f859(0x15d)]({'attributes':{'class':Ho+_0x25f859(0x10c)}}),_0xc32490;}}
|