@ckeditor/ckeditor5-ai 47.0.0-alpha.3 → 47.0.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-editor.css +10 -1
- package/dist/index.css +10 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- 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/legacyerrors.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/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.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 +1 -1
- 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/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.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/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.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/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/utils/common-translations.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.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/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/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/aireviewmodeformamanager.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/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.js +1 -1
- package/theme/aireviewmode/aireviewmode-check-list.css +10 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41ea1b=_0x10c0;(function(_0x21a258,_0x5a5c58){const _0x11ae94=_0x10c0,_0x51ca37=_0x21a258();while(!![]){try{const _0x3e8b97=-parseInt(_0x11ae94(0x16b))/0x1*(parseInt(_0x11ae94(0x15e))/0x2)+parseInt(_0x11ae94(0x163))/0x3*(-parseInt(_0x11ae94(0x153))/0x4)+parseInt(_0x11ae94(0x179))/0x5+parseInt(_0x11ae94(0x161))/0x6+parseInt(_0x11ae94(0x146))/0x7+parseInt(_0x11ae94(0x14d))/0x8+-parseInt(_0x11ae94(0x176))/0x9;if(_0x3e8b97===_0x5a5c58)break;else _0x51ca37['push'](_0x51ca37['shift']());}catch(_0x163f2d){_0x51ca37['push'](_0x51ca37['shift']());}}}(_0x1bf5,0x981ec));import{clickOutsideHandler as _0x5624c2,View as _0x234983}from'ckeditor5/src/ui.js';function _0x10c0(_0x4be3aa,_0x49ce6e){const _0x1bf50d=_0x1bf5();return _0x10c0=function(_0x10c0e4,_0x3b04d1){_0x10c0e4=_0x10c0e4-0x146;let _0x541004=_0x1bf50d[_0x10c0e4];return _0x541004;},_0x10c0(_0x4be3aa,_0x49ce6e);}import{AIChatPromptInputView as _0x412ef0}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x19de2f}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x3ad696,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x16537d}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x5bc32d}from'./controls/aichatcontrolsloaderview.js';function _0x1bf5(){const _0x58ad75=['abortPromptStream','setPlaceholderText','setAddContextOptions','_createPromptCapabilitiesView','bindTemplate','isLoading','focus','622OiixwI','low','change:isLoading','6579198aRIddu','_contextPanelView','9jWAoaN','delegate','clearCurrentContextItems','setInputPlaceholder','enableModelSelector','clearConversationContextUI','selectModel','_promptInputView','3709SSsoFo','populateSourceResourceBalloon','setModelList','sendUserMessage','addContextButtonView','form','reset','div','removeContextItem','disableModelSelector','ck-hidden','4141485VzikfM','ck-ai-chat-controls','_createLoaderView','4432905TFlhKd','_createPromptInputView','setContextItemLoading','clearConversationContextItems','clearPendingContextUI','element','resetMessageInput','_createContextPanelView','focusPromptInput','setWebSearch','2039226wVFkXg','toggleReasoning','setTemplate','_handlePromptInputFocus','setModel','setIsUploadInProgress','_promptCapabilitiesView','943360FbmAzI','setConversationContext','setReasoning','_loaderView','updateResourceState','_shouldRestorePromptInputFocus','207472zzYNkp','addContextItem','toggleWebSearch','closeSourceResourceBalloon'];_0x1bf5=function(){return _0x58ad75;};return _0x1bf5();}export class AIChatControlsView extends _0x234983{[_0x41ea1b(0x162)];[_0x41ea1b(0x16a)];[_0x41ea1b(0x14c)];[_0x41ea1b(0x150)];[_0x41ea1b(0x152)];constructor(_0x21bf16,_0x243500){const _0x265e60=_0x41ea1b;super(_0x21bf16),this[_0x265e60(0x162)]=this[_0x265e60(0x180)](_0x21bf16,_0x243500),this[_0x265e60(0x16a)]=this[_0x265e60(0x17a)](_0x21bf16),this[_0x265e60(0x14c)]=this[_0x265e60(0x15a)](_0x21bf16),this[_0x265e60(0x150)]=this[_0x265e60(0x178)](_0x21bf16),this[_0x265e60(0x152)]=!0x1,this[_0x265e60(0x16a)][_0x265e60(0x164)](_0x265e60(0x16e))['to'](this),this[_0x265e60(0x150)][_0x265e60(0x164)](_0x265e60(0x157))['to'](this),this[_0x265e60(0x14c)][_0x265e60(0x164)](_0x265e60(0x155))['to'](this),this[_0x265e60(0x14c)][_0x265e60(0x164)](_0x265e60(0x147))['to'](this),this[_0x265e60(0x14c)][_0x265e60(0x164)](_0x265e60(0x169))['to'](this),this[_0x265e60(0x162)][_0x265e60(0x164)](..._0x16537d)['to'](this);const _0x36d228=this[_0x265e60(0x15b)];this[_0x265e60(0x148)]({'tag':_0x265e60(0x170),'attributes':{'class':['ck',_0x265e60(0x177)]},'children':[{'tag':_0x265e60(0x172),'attributes':{'class':[_0x36d228['if'](_0x265e60(0x15c),_0x265e60(0x175))]},'children':[this[_0x265e60(0x162)],this[_0x265e60(0x16a)],this[_0x265e60(0x14c)]]},{'tag':_0x265e60(0x172),'attributes':{'class':[_0x36d228['if'](_0x265e60(0x15c),_0x265e60(0x175),_0x1eb2f3=>!_0x1eb2f3)]},'children':[this[_0x265e60(0x150)]]}]}),_0x5624c2({'emitter':this[_0x265e60(0x16a)],'activator':()=>this[_0x265e60(0x15c)],'contextElements':()=>[this[_0x265e60(0x17e)]],'callback':()=>{const _0x5e8811=_0x265e60;this[_0x5e8811(0x152)]=!0x1;}}),this['on'](_0x265e60(0x160),this[_0x265e60(0x149)],{'priority':_0x265e60(0x15f)});}[_0x41ea1b(0x180)](_0x19063f,_0x1572a6){return new _0x3ad696(_0x19063f,_0x1572a6);}[_0x41ea1b(0x17a)](_0x25e343){const _0x1d5c20=_0x41ea1b;return new _0x412ef0(_0x25e343,this[_0x1d5c20(0x162)][_0x1d5c20(0x16f)]);}[_0x41ea1b(0x15a)](_0x599729){return new _0x19de2f(_0x599729);}[_0x41ea1b(0x178)](_0x5333fa){return new _0x5bc32d(_0x5333fa);}[_0x41ea1b(0x149)](_0x297c0d,_0x535392,_0x4ae9b2){const _0x91931=_0x41ea1b;_0x4ae9b2?this[_0x91931(0x152)]=!0x0:this[_0x91931(0x152)]&&this[_0x91931(0x16a)][_0x91931(0x15d)]();}[_0x41ea1b(0x154)](_0x2dccf9,_0x5b4980){const _0x4df994=_0x41ea1b;this[_0x4df994(0x162)][_0x4df994(0x154)](_0x2dccf9,_0x5b4980);}[_0x41ea1b(0x173)](_0x88520){const _0x4540ed=_0x41ea1b;this[_0x4540ed(0x162)][_0x4540ed(0x173)](_0x88520);}[_0x41ea1b(0x17b)](_0x461d75,_0x32be1e){const _0x1a6cf0=_0x41ea1b;this[_0x1a6cf0(0x162)][_0x1a6cf0(0x17b)](_0x461d75,_0x32be1e);}[_0x41ea1b(0x14b)](_0x7485a4){const _0xe5b6e1=_0x41ea1b;this[_0xe5b6e1(0x16a)][_0xe5b6e1(0x14b)](_0x7485a4);}[_0x41ea1b(0x14e)](_0x1ba3bd){const _0x4acc8d=_0x41ea1b;this[_0x4acc8d(0x162)][_0x4acc8d(0x14e)](_0x1ba3bd);}[_0x41ea1b(0x17d)](){const _0x5311ff=_0x41ea1b;this[_0x5311ff(0x162)][_0x5311ff(0x165)]();}[_0x41ea1b(0x168)](){const _0x32f33a=_0x41ea1b;this[_0x32f33a(0x162)][_0x32f33a(0x17c)]();}[_0x41ea1b(0x151)](_0x588631,_0x38d938,_0x1a4720){const _0x465f09=_0x41ea1b;this[_0x465f09(0x162)][_0x465f09(0x151)](_0x588631,_0x38d938,_0x1a4720);}[_0x41ea1b(0x182)](_0x1dd1f8){const _0x3e930f=_0x41ea1b;this[_0x3e930f(0x14c)][_0x3e930f(0x182)](_0x1dd1f8);}[_0x41ea1b(0x14f)](_0x3c7a60){const _0x454173=_0x41ea1b;this[_0x454173(0x14c)][_0x454173(0x14f)](_0x3c7a60);}[_0x41ea1b(0x17f)](){const _0xfbbbe6=_0x41ea1b;this[_0xfbbbe6(0x16a)][_0xfbbbe6(0x171)]();}[_0x41ea1b(0x159)](_0x4b23c0){const _0x24539e=_0x41ea1b;this[_0x24539e(0x162)][_0x24539e(0x159)](_0x4b23c0);}[_0x41ea1b(0x166)](_0x34d884){const _0x53f6a3=_0x41ea1b;this[_0x53f6a3(0x16a)][_0x53f6a3(0x158)](_0x34d884);}[_0x41ea1b(0x16d)](_0x23bd49,_0x32f0fa){const _0x59c761=_0x41ea1b;this[_0x59c761(0x14c)][_0x59c761(0x16d)](_0x23bd49,_0x32f0fa);}[_0x41ea1b(0x14a)](_0x5f2085){const _0x4466b8=_0x41ea1b;this[_0x4466b8(0x14c)][_0x4466b8(0x14a)](_0x5f2085);}[_0x41ea1b(0x167)](){const _0x51dd88=_0x41ea1b;this[_0x51dd88(0x14c)][_0x51dd88(0x167)]();}[_0x41ea1b(0x174)](_0x585f2f){const _0x16d77c=_0x41ea1b;this[_0x16d77c(0x14c)][_0x16d77c(0x174)](_0x585f2f);}[_0x41ea1b(0x16c)](_0x7ce624,_0x41aa83,_0x3eb4b4,_0x46f291){const _0x43601b=_0x41ea1b;this[_0x43601b(0x162)][_0x43601b(0x16c)](_0x7ce624,_0x41aa83,_0x3eb4b4,_0x46f291);}[_0x41ea1b(0x156)](_0x321e27){const _0xa437ff=_0x41ea1b;this[_0xa437ff(0x162)][_0xa437ff(0x156)](_0x321e27);}[_0x41ea1b(0x181)](){const _0x1ba7e2=_0x41ea1b;this[_0x1ba7e2(0x16a)][_0x1ba7e2(0x15d)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x588c7e=_0x1084;(function(_0x1ecbea,_0x197bfe){const _0x137229=_0x1084,_0x456564=_0x1ecbea();while(!![]){try{const _0x447ff8=parseInt(_0x137229(0x224))/0x1+parseInt(_0x137229(0x201))/0x2+-parseInt(_0x137229(0x1e8))/0x3*(parseInt(_0x137229(0x222))/0x4)+-parseInt(_0x137229(0x22a))/0x5+parseInt(_0x137229(0x1f8))/0x6+parseInt(_0x137229(0x1f9))/0x7+-parseInt(_0x137229(0x1eb))/0x8*(parseInt(_0x137229(0x20f))/0x9);if(_0x447ff8===_0x197bfe)break;else _0x456564['push'](_0x456564['shift']());}catch(_0x25559f){_0x456564['push'](_0x456564['shift']());}}}(_0x4182,0x4f4ee));import{CKEditorError as _0x254ce0,logWarning as _0x2deb97,scrollViewportToShowTarget as _0xfde5a8}from'ckeditor5/src/utils.js';import{View as _0x4caf9c}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x16cbbd}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x3e5310}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x426664}from'./feed/aichatfeedreplyitemview.js';function _0x1084(_0x365302,_0x4b1889){const _0x41823a=_0x4182();return _0x1084=function(_0x108440,_0x2aab88){_0x108440=_0x108440-0x1e6;let _0x3c286e=_0x41823a[_0x108440];return _0x3c286e;},_0x1084(_0x365302,_0x4b1889);}import{AIChatFeedUserMessageItemView as _0xb9cbd3}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x49e132}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x57307e}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4755c9}from'../utils/scrollmanager.js';import{AISkeletonView as _0x16f68f,SKELETON_DEFINITIONS as _0x52d8d0}from'../../aicore/ui/aiskeleton.js';function _0x4182(){const _0x2a6bfc=['markItemAsDone','1740495FDLWsg','locale','element','add','_createFeedLoader','ck-ai-chat__loader-text','loadingMessage','remove','createCollection','addItem','options','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','6fdkRFI','isVisible','isLoadingSkeletonVisible','1117672SiLAQN','scrollManager','interaction-header','includes','scrollToSuggestion','stop','ck-hidden','children','span','map','_setupTemplate','extendTemplate','_createSkeletonLoader','1983438KPTFny','238980RAqfBQ','removeItem','updateSuggestionPartState','_createTemplateChildren','updateContent','ai-reply','_bodyCollection','clear','562718zBZxPu','find','getPartView','start','updateWebSources','ai-chat-feed-view-item-not-found','ck-ai-chat__loader','isPending','ai-suggestion-reply','updateReplyItem','bindTemplate','render','set','startAutoScroll','18MuqEkZ','updatePartState','div','_createFeedItems','ck-ai-chat__feed','updateSources','toggleLoadingSkeleton','stopAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','markAsDone','ai-chat-feed-view-item-not-a-suggestion-item','getItemIds','updateSuggestionItem','_createLoaderChildren','destroy','getItemById','ck-ai-chat__feed__items','user-message','setTemplate','375944bWEBYe','delegate','494263IGBvQx','setLoadingMessage','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-chat-feed-view-item-not-a-reply-item','aiFeed'];_0x4182=function(){return _0x2a6bfc;};return _0x4182();}import{AISpinnerView as _0x3ddc4f}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4caf9c{[_0x588c7e(0x1f2)];[_0x588c7e(0x1ec)];[_0x588c7e(0x1ff)];constructor(_0x10ec04,_0x430f8e){const _0x2e4a6c=_0x588c7e;super(_0x10ec04),this[_0x2e4a6c(0x1ff)]=_0x430f8e,this[_0x2e4a6c(0x20d)](_0x2e4a6c(0x208),!0x1),this[_0x2e4a6c(0x20d)](_0x2e4a6c(0x230),''),this[_0x2e4a6c(0x20d)](_0x2e4a6c(0x1ea),!0x1),this[_0x2e4a6c(0x1f2)]=this[_0x2e4a6c(0x232)](),this[_0x2e4a6c(0x1f2)][_0x2e4a6c(0x223)](..._0x16cbbd)['to'](this),this[_0x2e4a6c(0x1f5)]();}[_0x588c7e(0x20c)](){const _0x27b171=_0x588c7e;super[_0x27b171(0x20c)](),this[_0x27b171(0x1ec)]=new _0x4755c9(this[_0x27b171(0x22c)]);}[_0x588c7e(0x21d)](){const _0x2db5e4=_0x588c7e;super[_0x2db5e4(0x21d)](),this[_0x2db5e4(0x1ec)][_0x2db5e4(0x21d)]();}[_0x588c7e(0x200)](){const _0x393fce=_0x588c7e;this[_0x393fce(0x1f2)][_0x393fce(0x200)]();}[_0x588c7e(0x233)](_0x56eccf,_0x2c34ab){const _0x556654=_0x588c7e;let _0x15ab89;_0x15ab89=_0x556654(0x1fe)===_0x56eccf?new _0x426664(this[_0x556654(0x22b)],_0x2c34ab):_0x556654(0x209)===_0x56eccf?new _0x3e5310(this[_0x556654(0x22b)],_0x2c34ab):_0x556654(0x220)===_0x56eccf?new _0xb9cbd3(this[_0x556654(0x22b)],_0x2c34ab,this[_0x556654(0x1ff)]):_0x556654(0x1ed)===_0x56eccf?new _0x57307e(this[_0x556654(0x22b)],_0x2c34ab):new _0x49e132(_0x2c34ab),this[_0x556654(0x1f2)][_0x556654(0x22d)](_0x15ab89);}async[_0x588c7e(0x20a)]({id:_0x214ba6,parsedContent:_0x54808a,renderingStrategy:_0x3b3589,abortSignal:_0x6477de}){const _0x764a21=_0x588c7e,_0x1cdfc4=this[_0x764a21(0x21e)](_0x214ba6);if(!(_0x1cdfc4 instanceof _0x426664))throw new _0x254ce0(_0x764a21(0x227),null,{'itemView':_0x1cdfc4,'id':_0x214ba6,'parsedContent':_0x54808a});await _0x1cdfc4[_0x764a21(0x1fd)]({'parsedContent':_0x54808a,'renderingStrategy':_0x3b3589,'abortSignal':_0x6477de});}async[_0x588c7e(0x205)](_0x99c0ef,_0x274a4d){const _0x35af73=_0x588c7e,_0x4c6ecd=this[_0x35af73(0x21e)](_0x99c0ef);if(_0x4c6ecd instanceof _0x3e5310)_0x4c6ecd[_0x35af73(0x214)](_0x274a4d);else{if(!(_0x4c6ecd instanceof _0x426664))throw new _0x254ce0(_0x35af73(0x217),null,{'itemView':_0x4c6ecd,'id':_0x99c0ef,'sources':_0x274a4d});_0x4c6ecd[_0x35af73(0x214)](_0x274a4d);}}async[_0x588c7e(0x21b)]({id:_0x45547d,parts:_0x358af4,renderingStrategy:_0x44ec2f,abortSignal:_0x31b348}){const _0x4f7152=_0x588c7e,_0x4d68af=this[_0x4f7152(0x21e)](_0x45547d);if(!(_0x4d68af instanceof _0x3e5310))throw new _0x254ce0(_0x4f7152(0x219),null,{'itemView':_0x4d68af,'id':_0x45547d,'parts':_0x358af4});await _0x4d68af[_0x4f7152(0x1fd)]({'parts':_0x358af4,'renderingStrategy':_0x44ec2f,'abortSignal':_0x31b348});}[_0x588c7e(0x1fb)]({id:_0x3cb05d,index:_0x2977ae,state:_0x147eb0}){const _0x20c6e6=_0x588c7e,_0x3690d1=this[_0x20c6e6(0x21e)](_0x3cb05d);if(!(_0x3690d1 instanceof _0x3e5310))throw new _0x254ce0(_0x20c6e6(0x219),this,{'id':_0x3cb05d});_0x3690d1[_0x20c6e6(0x210)](_0x2977ae,_0x147eb0);}[_0x588c7e(0x229)](_0x52269f){const _0xa2ef70=_0x588c7e;this[_0xa2ef70(0x21e)](_0x52269f)[_0xa2ef70(0x218)]();}[_0x588c7e(0x21a)](){const _0x22bf8e=_0x588c7e;return this[_0x22bf8e(0x1f2)][_0x22bf8e(0x1f4)](_0x4a64ae=>_0x4a64ae[_0x22bf8e(0x1e6)]['id']);}[_0x588c7e(0x1fa)](_0x52ec85){const _0x3c3fac=_0x588c7e;this[_0x3c3fac(0x1f2)][_0x3c3fac(0x231)](this[_0x3c3fac(0x21e)](_0x52ec85));}[_0x588c7e(0x1ef)](_0x132a5b,_0xc556b6){const _0x3d0ce0=_0x588c7e,_0x2013ea=this[_0x3d0ce0(0x21e)](_0x132a5b);if(!(_0x2013ea instanceof _0x3e5310))return void _0x2deb97(_0x3d0ce0(0x1e7),{'replyId':_0x132a5b,'partIndex':_0xc556b6});const _0x438557=_0x2013ea[_0x3d0ce0(0x203)](_0xc556b6);_0x438557?_0xfde5a8({'target':_0x438557[_0x3d0ce0(0x22c)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x2deb97(_0x3d0ce0(0x226),{'replyId':_0x132a5b,'partIndex':_0xc556b6});}[_0x588c7e(0x1f5)](){const _0x51e368=_0x588c7e;this[_0x51e368(0x221)]({'tag':_0x51e368(0x211),'attributes':{'class':['ck',_0x51e368(0x213)]},'children':this[_0x51e368(0x1fc)]()});}[_0x588c7e(0x1fc)](){const _0x19868d=_0x588c7e,_0x3dfbc2=this[_0x19868d(0x1f7)]();return[this[_0x19868d(0x212)](),_0x3dfbc2,this[_0x19868d(0x22e)]()];}[_0x588c7e(0x1f7)](){const _0x1b7af6=_0x588c7e,_0x10485d=new _0x16f68f(this[_0x1b7af6(0x22b)],_0x52d8d0[_0x1b7af6(0x228)]);return _0x10485d[_0x1b7af6(0x1f6)]({'attributes':{'class':[this[_0x1b7af6(0x20b)]['if'](_0x1b7af6(0x1ea),_0x1b7af6(0x1f1),_0x4e4bcc=>!_0x4e4bcc)]}}),_0x10485d;}[_0x588c7e(0x212)](){const _0x117862=_0x588c7e,_0x34d04f=new _0x4caf9c(this[_0x117862(0x22b)]);return _0x34d04f[_0x117862(0x221)]({'tag':_0x117862(0x211),'attributes':{'class':['ck',_0x117862(0x21f),this[_0x117862(0x20b)]['if'](_0x117862(0x1ea),_0x117862(0x1f1))]},'children':this[_0x117862(0x1f2)]}),_0x34d04f;}[_0x588c7e(0x22e)](){const _0x478596=_0x588c7e,_0x2e1382=new _0x4caf9c(this[_0x478596(0x22b)]);return _0x2e1382[_0x478596(0x221)]({'tag':_0x478596(0x211),'attributes':{'class':['ck',_0x478596(0x207),this[_0x478596(0x20b)]['if'](_0x478596(0x208),_0x478596(0x1f1),_0x3b9c10=>!_0x3b9c10)]},'children':this[_0x478596(0x21c)]()}),_0x2e1382;}[_0x588c7e(0x21c)](){const _0x469b6c=_0x588c7e,_0x302662=new _0x3ddc4f();return _0x302662[_0x469b6c(0x1e9)]=!0x0,[_0x302662,{'tag':_0x469b6c(0x1f3),'attributes':{'class':['ck',_0x469b6c(0x22f)]},'children':[{'text':this[_0x469b6c(0x20b)]['to'](_0x469b6c(0x230))}]}];}[_0x588c7e(0x21e)](_0x133178){const _0x208f00=_0x588c7e,_0x190955=this[_0x208f00(0x1f2)][_0x208f00(0x202)](_0x23c406=>_0x23c406[_0x208f00(0x1e6)]['id'][_0x208f00(0x1ee)](_0x133178));if(!_0x190955)throw new _0x254ce0(_0x208f00(0x206),this,{'id':_0x133178});return _0x190955;}[_0x588c7e(0x225)](_0x42dc0c){const _0x39fa9b=_0x588c7e;this[_0x39fa9b(0x20d)](_0x39fa9b(0x230),_0x42dc0c);}[_0x588c7e(0x215)](_0x63b774){const _0x312100=_0x588c7e;this[_0x312100(0x20d)](_0x312100(0x1ea),_0x63b774);}[_0x588c7e(0x20e)](){const _0x41515d=_0x588c7e;this[_0x41515d(0x1ec)][_0x41515d(0x204)]();}[_0x588c7e(0x216)](){const _0x184ba0=_0x588c7e;this[_0x184ba0(0x1ec)][_0x184ba0(0x1f0)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5b3d(){const _0x43e52b=['startConversation','AI_CHAT_LABEL_NEW_CHAT','2913492EraNMk','_createStartConversationButton','5705196XeKmUD','5036235zTbwmC','603fKGYNT','fire','add','398968sTbTlm','2103268EslFXH','3vbHiFE','resizeButton','7458600xpYiih','conversationStartButton','isMaximized','ck-ai-chat__start-conversation','execute','848554MPflaU','ck-ai-header\x20ck-ai-header_chat','children','AI_CHAT_HEADING','set','locale'];_0x5b3d=function(){return _0x43e52b;};return _0x5b3d();}const _0x4fbb86=_0x1504;(function(_0x4dfb83,_0x1a6f52){const _0x242afc=_0x1504,_0x18fb1b=_0x4dfb83();while(!![]){try{const _0x28651a=-parseInt(_0x242afc(0x1c4))/0x1+-parseInt(_0x242afc(0x1d4))/0x2*(-parseInt(_0x242afc(0x1d5))/0x3)+parseInt(_0x242afc(0x1cc))/0x4+parseInt(_0x242afc(0x1cf))/0x5+parseInt(_0x242afc(0x1d7))/0x6+parseInt(_0x242afc(0x1ce))/0x7+-parseInt(_0x242afc(0x1d3))/0x8*(parseInt(_0x242afc(0x1d0))/0x9);if(_0x28651a===_0x1a6f52)break;else _0x18fb1b['push'](_0x18fb1b['shift']());}catch(_0x14ca5b){_0x18fb1b['push'](_0x18fb1b['shift']());}}}(_0x5b3d,0xa006f));function _0x1504(_0x3ade4e,_0x4cbdcf){const _0x5b3d79=_0x5b3d();return _0x1504=function(_0x150495,_0x27312f){_0x150495=_0x150495-0x1c4;let _0x2b87e4=_0x5b3d79[_0x150495];return _0x2b87e4;},_0x1504(_0x3ade4e,_0x4cbdcf);}import{ButtonView as _0x40ce88,FormHeaderView as _0x5ab043}from'ckeditor5/src/ui.js';import{IconPlus as _0x55e782,IconAIChat as _0x558014}from'ckeditor5/src/icons.js';import{getTranslation as _0x3d8c83}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x48b016}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x5ab043{[_0x4fbb86(0x1d8)];[_0x4fbb86(0x1d6)];constructor(_0x573bff,_0x1d5758){const _0x5d1127=_0x4fbb86;super(_0x573bff,{'label':_0x3d8c83(_0x573bff,_0x5d1127(0x1c7)),'class':_0x5d1127(0x1c5),'icon':_0x558014}),this[_0x5d1127(0x1c8)](_0x5d1127(0x1d9),!0x1),this[_0x5d1127(0x1d8)]=this[_0x5d1127(0x1cd)](_0x573bff),this[_0x5d1127(0x1c6)][_0x5d1127(0x1d2)](this[_0x5d1127(0x1d8)]),_0x1d5758&&(this[_0x5d1127(0x1d6)]=_0x48b016(_0x573bff,this),this[_0x5d1127(0x1c6)][_0x5d1127(0x1d2)](this[_0x5d1127(0x1d6)]));}[_0x4fbb86(0x1cd)](_0x1a63be){const _0x13c056=_0x4fbb86,_0x2f4a32=new _0x40ce88(_0x1a63be);return _0x2f4a32[_0x13c056(0x1c8)]({'label':_0x3d8c83(this[_0x13c056(0x1c9)],_0x13c056(0x1cb)),'withText':!0x0,'icon':_0x55e782,'class':_0x13c056(0x1da)}),_0x2f4a32['on'](_0x13c056(0x1db),()=>{const _0x57d889=_0x13c056;this[_0x57d889(0x1d1)](_0x57d889(0x1ca));}),_0x2f4a32;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x451b5d=_0x5069;(function(_0x18d495,_0x5c5826){var _0x4e2c2b=_0x5069,_0x1797a9=_0x18d495();while(!![]){try{var _0x8bd265=-parseInt(_0x4e2c2b(0x1ac))/0x1*(-parseInt(_0x4e2c2b(0x1a2))/0x2)+parseInt(_0x4e2c2b(0x1b8))/0x3*(-parseInt(_0x4e2c2b(0x1b9))/0x4)+-parseInt(_0x4e2c2b(0x1b6))/0x5*(-parseInt(_0x4e2c2b(0x1b4))/0x6)+parseInt(_0x4e2c2b(0x1b1))/0x7*(-parseInt(_0x4e2c2b(0x1ad))/0x8)+-parseInt(_0x4e2c2b(0x1ae))/0x9*(parseInt(_0x4e2c2b(0x1bc))/0xa)+parseInt(_0x4e2c2b(0x1bb))/0xb+-parseInt(_0x4e2c2b(0x1ab))/0xc*(parseInt(_0x4e2c2b(0x1a9))/0xd);if(_0x8bd265===_0x5c5826)break;else _0x1797a9['push'](_0x1797a9['shift']());}catch(_0x3b0e81){_0x1797a9['push'](_0x1797a9['shift']());}}}(_0x6e84,0x3f93a));function _0x6e84(){var _0x5daa92=['454065YFkVZL','4NOPyiA','ck-ai-chat','3649921bIstgV','1099090eZezxD','_bodyCollection','populateSourceResourceBalloon','closeSourceResourceBalloon','572XhIlAa','detachFromDom','ck-rounded-corners','uiLanguageDirection','ck-reset_all','attachToDom','chatControls','1530568sLOBLy','chatFeed','12FsVspq','908FjHAmh','48MQegEQ','9IbysQe','div','destroy','176071gLxSNT','setTemplate','delegate','1192974AVcCZf','chatHeader','5ScdXnm','chatDisclaimer'];_0x6e84=function(){return _0x5daa92;};return _0x6e84();}import{View as _0x2f2d2e,BodyCollection as _0x49669a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4758fe}from'../utils/eventnames.js';import{AIChatFeedView as _0x3cd60f}from'./aichatfeedview.js';import{AIChatControlsView as _0x33c6e4}from'./aichatcontrolsview.js';function _0x5069(_0x3a1423,_0x1a6ef5){var _0x6e84e7=_0x6e84();return _0x5069=function(_0x50690e,_0x560d15){_0x50690e=_0x50690e-0x19f;var _0x264697=_0x6e84e7[_0x50690e];return _0x264697;},_0x5069(_0x3a1423,_0x1a6ef5);}import{AIChatHeaderView as _0x5a968b}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4b9609}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x2f2d2e{[_0x451b5d(0x1b5)];[_0x451b5d(0x1aa)];[_0x451b5d(0x1a8)];[_0x451b5d(0x1b7)];[_0x451b5d(0x19f)];constructor(_0x22f235,_0x1ac730){var _0x28a084=_0x451b5d;super(_0x22f235),this[_0x28a084(0x19f)]=new _0x49669a(_0x22f235),this[_0x28a084(0x19f)][_0x28a084(0x1a7)](),this[_0x28a084(0x1b5)]=new _0x5a968b(_0x22f235,_0x1ac730),this[_0x28a084(0x1b5)][_0x28a084(0x1b3)](..._0x4758fe)['to'](this),this[_0x28a084(0x1aa)]=new _0x3cd60f(_0x22f235,this[_0x28a084(0x19f)]),this[_0x28a084(0x1aa)][_0x28a084(0x1b3)](..._0x4758fe)['to'](this),this[_0x28a084(0x1a8)]=new _0x33c6e4(_0x22f235,this[_0x28a084(0x19f)]),this[_0x28a084(0x1a8)][_0x28a084(0x1b3)](..._0x4758fe)['to'](this),this[_0x28a084(0x1b7)]=new _0x4b9609(_0x22f235),this[_0x28a084(0x1b2)]({'tag':_0x28a084(0x1af),'attributes':{'class':['ck',_0x28a084(0x1a6),_0x28a084(0x1ba),_0x28a084(0x1a4)],'dir':_0x22f235[_0x28a084(0x1a5)]},'children':[this[_0x28a084(0x1b5)],this[_0x28a084(0x1aa)],this[_0x28a084(0x1a8)],this[_0x28a084(0x1b7)]]});}[_0x451b5d(0x1a0)](_0x4f87de,_0x35acf1,_0x11c7fa,_0x308d38){var _0x3d92ba=_0x451b5d;this[_0x3d92ba(0x1a8)][_0x3d92ba(0x1a0)](_0x4f87de,_0x35acf1,_0x11c7fa,_0x308d38);}[_0x451b5d(0x1a1)](_0x197f51){var _0x1c073e=_0x451b5d;this[_0x1c073e(0x1a8)][_0x1c073e(0x1a1)](_0x197f51);}[_0x451b5d(0x1b0)](){var _0x561cb9=_0x451b5d;this[_0x561cb9(0x19f)][_0x561cb9(0x1a3)](),super[_0x561cb9(0x1b0)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xf4227d=_0x1ce4;(function(_0x1b03c3,_0x2384d4){const _0x3077d2=_0x1ce4,_0x3b7901=_0x1b03c3();while(!![]){try{const _0x5d0adf=-parseInt(_0x3077d2(0x1ed))/0x1+parseInt(_0x3077d2(0x21d))/0x2*(parseInt(_0x3077d2(0x210))/0x3)+parseInt(_0x3077d2(0x1a7))/0x4+-parseInt(_0x3077d2(0x215))/0x5*(parseInt(_0x3077d2(0x1b7))/0x6)+parseInt(_0x3077d2(0x1ce))/0x7+-parseInt(_0x3077d2(0x1f4))/0x8*(parseInt(_0x3077d2(0x1da))/0x9)+parseInt(_0x3077d2(0x1b6))/0xa*(parseInt(_0x3077d2(0x1d1))/0xb);if(_0x5d0adf===_0x2384d4)break;else _0x3b7901['push'](_0x3b7901['shift']());}catch(_0x4f7fb0){_0x3b7901['push'](_0x3b7901['shift']());}}}(_0x36f5,0x3f710));import{View as _0x2abfae,BalloonPanelView as _0x23692d,ButtonView as _0x39eaf9,clickOutsideHandler as _0x421e92}from'ckeditor5/src/ui.js';import{Collection as _0x216c2a}from'ckeditor5/src/utils.js';function _0x36f5(){const _0x61d3a9=['querySelector','_updateOverflowUI','_calculateOverflowInContainer','_config','rowDetectionTolerance','slice','from','showMoreLabelPrefix','_makeAncestorsVisible','className','_restoreAncestorVisibility','visible','pop','134595jtKuqp','pin','forEach','isConnected','right','1066060kfoYFM','undefined','_locale','push','_intersectionObserver','block\x20!important','overflowChips','createElement','2FaxPhc','_handleShowMoreButtonClick','0px','div','_createMockButton','classList','50px','_updateShowMoreButtonVisibility','opacity','hideBalloonPanel','border-box','innerHTML','display','_targetContainer','isIntersecting','pointerEvents','element','innerWidth','innerHeight','reorganizeChips','_createCalculationContainer','documentElement','auto','calculationContainer','cloneNode','children','bottom','_bodyCollection','zIndex','clientWidth','includes','1569356bVIGoQ','appendChild','_updateBalloonContent','block','execute','_renderChipsAndCountRows','content','remove','show','textContent','clear','offsetWidth','isOn','position','showBalloonPanel','36870KuRNjE','6UrfhTt','add','300px','_showMoreButtonView','toLowerCase','button','disconnect','_containerElement','isVisible','_createShowMoreBalloonPanelView','_testButtonFit','controlsButton','absolute','showMoreButton','+\x201','_overflowChips','getComputedStyle','getBoundingClientRect','disableAnimationOnEnter','maxVisibleRows','hide','body','width','3430945aKfyie','_createShowMoreButtonView','parentElement','297AwHclX','_createShowMoreButton','.ck-ai-chat','cssClasses','set','tagName','setTemplate','-9999px','_findTargetContainer','548721COMMhy','style','top','showMoreButtonView','boxSizing','clientHeight','left','ck-calculation-container','_checkAndHandleOverflow','_parentView','hidden','label','_ancestorsToRestore','visible\x20!important','render','showMoreBalloon','_visibleChips','_pendingCalculation','_isContainerVisible','492851MEJZid','observe','height','extendTemplate','_distributeChips','length','some','8eQdOvn','destroy','visibility','_createContainerElements','_showMoreBalloonPanelView','_applyOverflowResults','abs','_setupVisibilityObserver','setContainerElement','overflowContainer','_repinBalloonPanel','_calculateContainerWidth','filter','_applyCalculationStyles','none'];_0x36f5=function(){return _0x61d3a9;};return _0x36f5();}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0xf4227d(0x1b9);function _0x1ce4(_0xf002c2,_0x3cdf6b){const _0x36f551=_0x36f5();return _0x1ce4=function(_0x1ce47c,_0x36a7d0){_0x1ce47c=_0x1ce47c-0x19a;let _0x1d1c00=_0x36f551[_0x1ce47c];return _0x1d1c00;},_0x1ce4(_0xf002c2,_0x3cdf6b);}export class AIChatChipsOverflowManager{[_0xf4227d(0x217)];[_0xf4227d(0x206)];[_0xf4227d(0x1ea)];[_0xf4227d(0x1c6)];[_0xf4227d(0x1ba)]=null;[_0xf4227d(0x1f8)]=null;[_0xf4227d(0x1be)]=null;[_0xf4227d(0x1a3)];[_0xf4227d(0x1e3)]=null;[_0xf4227d(0x219)]=null;[_0xf4227d(0x1eb)]=!0x1;constructor(_0x53e5ef,_0x185ea3,_0x46327f,_0x4c963c,_0x52f1a3){const _0x1f7d10=_0xf4227d;this[_0x1f7d10(0x217)]=_0x53e5ef,this[_0x1f7d10(0x1ea)]=_0x185ea3,this[_0x1f7d10(0x206)]={...hn,..._0x46327f,'cssClasses':{'controlsButton':'','calculationContainer':_0x1f7d10(0x1e1),..._0x46327f[_0x1f7d10(0x1d4)]}},this[_0x1f7d10(0x1c6)]=new _0x216c2a(),this[_0x1f7d10(0x1a3)]=_0x4c963c,this[_0x1f7d10(0x1e3)]=_0x52f1a3||null;}[_0xf4227d(0x1fc)](_0x1f3952){const _0x27c375=_0xf4227d;this[_0x27c375(0x219)]&&(this[_0x27c375(0x219)][_0x27c375(0x1bd)](),this[_0x27c375(0x219)]=null),this[_0x27c375(0x1be)]=_0x1f3952,this[_0x27c375(0x1fb)]();}get[_0xf4227d(0x1dd)](){const _0x558189=_0xf4227d;return this[_0x558189(0x1ba)];}get[_0xf4227d(0x21b)](){const _0x916a8d=_0xf4227d;return this[_0x916a8d(0x1c6)];}[_0xf4227d(0x19b)](){requestAnimationFrame(()=>{const _0x49ac2f=_0x1ce4;this[_0x49ac2f(0x1e2)]();});}[_0xf4227d(0x1b5)](){const _0xba0d2d=_0xf4227d;this[_0xba0d2d(0x1ba)]&&this[_0xba0d2d(0x1f8)]&&(this[_0xba0d2d(0x1a9)](),this[_0xba0d2d(0x1ba)][_0xba0d2d(0x1b3)]=!0x0,this[_0xba0d2d(0x1f8)][_0xba0d2d(0x1af)](),this[_0xba0d2d(0x1f8)][_0xba0d2d(0x211)]({'target':this[_0xba0d2d(0x1ba)][_0xba0d2d(0x22d)],'limiter':document[_0xba0d2d(0x203)](_0xba0d2d(0x1d3))}));}[_0xf4227d(0x226)](){const _0x866028=_0xf4227d;this[_0x866028(0x1ba)]&&this[_0x866028(0x1f8)]&&(this[_0x866028(0x1ba)][_0x866028(0x1b3)]=!0x1,this[_0x866028(0x1f8)][_0x866028(0x1cb)]());}[_0xf4227d(0x1b1)](){const _0x1f810a=_0xf4227d;this[_0x1f810a(0x1c6)][_0x1f810a(0x1b1)](),this[_0x1f810a(0x226)](),this[_0x1f810a(0x224)](),this[_0x1f810a(0x1ba)]&&(this[_0x1f810a(0x1ba)][_0x1f810a(0x1e5)]=''),this[_0x1f810a(0x1f8)]&&this[_0x1f810a(0x1f8)][_0x1f810a(0x1ad)][_0x1f810a(0x1b1)]();}[_0xf4227d(0x1f5)](){const _0x182965=_0xf4227d;this[_0x182965(0x219)]&&(this[_0x182965(0x219)][_0x182965(0x1bd)](),this[_0x182965(0x219)]=null),this[_0x182965(0x1ba)]&&(this[_0x182965(0x1ba)][_0x182965(0x1f5)](),this[_0x182965(0x1ba)]=null),this[_0x182965(0x1f8)]&&(this[_0x182965(0x1f8)][_0x182965(0x1f5)](),this[_0x182965(0x1f8)]=null);}[_0xf4227d(0x1e2)](){const _0x56a5bf=_0xf4227d;if(!this[_0x56a5bf(0x1be)])return;if(!this[_0x56a5bf(0x1ec)]())return void(this[_0x56a5bf(0x1eb)]=!0x0);this[_0x56a5bf(0x1eb)]=!0x1;const _0xbb5fe0=[...this[_0x56a5bf(0x1ea)],...this[_0x56a5bf(0x1c6)]],_0x30f1ae=this[_0x56a5bf(0x19c)](),_0x38128c=this[_0x56a5bf(0x205)](_0x30f1ae,_0xbb5fe0),_0x235ee4=_0x30f1ae[_0x56a5bf(0x1e6)];_0x235ee4&&this[_0x56a5bf(0x20d)](_0x235ee4),_0x30f1ae[_0x56a5bf(0x1ae)](),this[_0x56a5bf(0x1f9)](_0xbb5fe0,_0x38128c);}[_0xf4227d(0x1d2)](){const _0x2f9bf9=_0xf4227d;this[_0x2f9bf9(0x1ba)]=this[_0x2f9bf9(0x1cf)](),this[_0x2f9bf9(0x1f8)]=this[_0x2f9bf9(0x1c0)](),this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x1e8)](),this[_0x2f9bf9(0x1be)][_0x2f9bf9(0x1a8)](this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x22d)]),this[_0x2f9bf9(0x1ba)]['on'](_0x2f9bf9(0x1ab),()=>{const _0x1bed3=_0x2f9bf9;this[_0x1bed3(0x21e)]();}),_0x421e92({'emitter':this[_0x2f9bf9(0x1f8)],'contextElements':[this[_0x2f9bf9(0x1f8)][_0x2f9bf9(0x22d)],this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x22d)]],'callback':()=>this[_0x2f9bf9(0x226)](),'activator':()=>this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x1b3)]});}[_0xf4227d(0x1cf)](){const _0x2b8e79=_0xf4227d,_0x4f7fec=new _0x39eaf9(this[_0x2b8e79(0x217)]);_0x4f7fec[_0x2b8e79(0x1d5)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x326afc=[this[_0x2b8e79(0x206)][_0x2b8e79(0x1d4)][_0x2b8e79(0x1c4)]];return this[_0x2b8e79(0x206)][_0x2b8e79(0x1d4)][_0x2b8e79(0x1c2)]&&_0x326afc[_0x2b8e79(0x218)](this[_0x2b8e79(0x206)][_0x2b8e79(0x1d4)][_0x2b8e79(0x1c2)]),_0x4f7fec[_0x2b8e79(0x1f0)]({'attributes':{'class':_0x326afc}}),_0x4f7fec;}[_0xf4227d(0x1c0)](){const _0x5ce91b=_0xf4227d,_0x4b9357=new _0x23692d(this[_0x5ce91b(0x217)]);return _0x4b9357[_0x5ce91b(0x1f0)]({'attributes':{'class':this[_0x5ce91b(0x206)][_0x5ce91b(0x1d4)][_0x5ce91b(0x1e9)]}}),this[_0x5ce91b(0x1a3)][_0x5ce91b(0x1b8)](_0x4b9357),_0x4b9357;}[_0xf4227d(0x1a9)](){const _0x28b930=_0xf4227d;if(this[_0x28b930(0x1f8)]&&(this[_0x28b930(0x1f8)][_0x28b930(0x1ad)][_0x28b930(0x1b1)](),this[_0x28b930(0x1c6)][_0x28b930(0x1f2)]>0x0)){this[_0x28b930(0x1c6)][_0x28b930(0x212)](_0x20e5ca=>{const _0x508a95=_0x28b930;_0x20e5ca[_0x508a95(0x1c9)]();});const _0x45a584=new _0x2abfae(this[_0x28b930(0x217)]);_0x45a584[_0x28b930(0x1d7)]({'tag':_0x28b930(0x220),'attributes':{'class':this[_0x28b930(0x206)][_0x28b930(0x1d4)][_0x28b930(0x1fd)]},'children':this[_0x28b930(0x1c6)]}),this[_0x28b930(0x1f8)][_0x28b930(0x1ad)][_0x28b930(0x1b8)](_0x45a584);}}[_0xf4227d(0x21e)](){const _0x5c39b9=_0xf4227d;this[_0x5c39b9(0x1ba)][_0x5c39b9(0x1b3)]?this[_0x5c39b9(0x226)]():this[_0x5c39b9(0x1b5)]();}[_0xf4227d(0x224)](){const _0x88c65c=_0xf4227d,_0x4d4f00=this[_0x88c65c(0x1c6)][_0x88c65c(0x1f2)]>0x0;this[_0x88c65c(0x1ba)]?.[_0x88c65c(0x22d)]&&(this[_0x88c65c(0x1ba)][_0x88c65c(0x22d)][_0x88c65c(0x1db)][_0x88c65c(0x229)]=_0x4d4f00?'':_0x88c65c(0x202));}[_0xf4227d(0x1fe)](){const _0x5bb28a=_0xf4227d;this[_0x5bb28a(0x1ba)]?.[_0x5bb28a(0x1b3)]&&this[_0x5bb28a(0x1f8)]?.[_0x5bb28a(0x1bf)]&&this[_0x5bb28a(0x1ba)][_0x5bb28a(0x22d)]&&this[_0x5bb28a(0x1f8)][_0x5bb28a(0x211)]({'target':this[_0x5bb28a(0x1ba)][_0x5bb28a(0x22d)],'limiter':document[_0x5bb28a(0x203)](_0x5bb28a(0x1d3))});}[_0xf4227d(0x1d9)](_0x50dae9){const _0x4f9755=_0xf4227d,_0x1fe079=this[_0x4f9755(0x1be)]?.[_0x4f9755(0x1d6)][_0x4f9755(0x1bb)]()||_0x4f9755(0x220),_0x314a73=this[_0x4f9755(0x1be)]?.[_0x4f9755(0x222)];if(_0x314a73){const _0x27cfd0=_0x314a73[0x0]||'',_0x55845b=_0x50dae9[_0x4f9755(0x203)]('.'+_0x27cfd0),_0x35bdbf=_0x50dae9[_0x4f9755(0x203)](_0x1fe079);return _0x55845b||_0x35bdbf||_0x50dae9;}return _0x50dae9[_0x4f9755(0x203)](_0x1fe079)||_0x50dae9;}[_0xf4227d(0x1ff)](){const _0x1810f3=_0xf4227d,_0x170b6c=this[_0x1810f3(0x1e3)]?.[_0x1810f3(0x22d)]||this[_0x1810f3(0x1be)];if(!_0x170b6c)return ln;const _0x4d5783=window[_0x1810f3(0x1c7)](_0x170b6c)[_0x1810f3(0x1cd)];if(_0x1810f3(0x19e)===_0x4d5783||_0x1810f3(0x21f)===_0x4d5783||!_0x4d5783){const _0x57318f=_0x170b6c[_0x1810f3(0x1d0)];if(_0x57318f){const _0x286817=window[_0x1810f3(0x1c7)](_0x57318f);return _0x1810f3(0x19e)!==_0x286817[_0x1810f3(0x1cd)]?_0x286817[_0x1810f3(0x1cd)]:ln;}return ln;}return _0x4d5783;}[_0xf4227d(0x201)](_0x3e907e,_0x54af8a){const _0x1b6fe7=_0xf4227d;this[_0x1b6fe7(0x206)][_0x1b6fe7(0x1d4)][_0x1b6fe7(0x19f)]&&_0x3e907e[_0x1b6fe7(0x222)][_0x1b6fe7(0x1b8)](this[_0x1b6fe7(0x206)][_0x1b6fe7(0x1d4)][_0x1b6fe7(0x19f)]),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1cd)]=_0x54af8a,_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1b4)]=_0x1b6fe7(0x1c3),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1dc)]=_0x1b6fe7(0x1d8),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1e0)]=_0x1b6fe7(0x1d8),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x225)]='0',_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x22c)]=_0x1b6fe7(0x202),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1a4)]='-1',_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1f6)]=_0x1b6fe7(0x1e7),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x229)]=_0x1b6fe7(0x21a),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1de)]=_0x1b6fe7(0x227);}[_0xf4227d(0x20d)](_0x51e945){const _0x203242=_0xf4227d;_0x51e945[_0x203242(0x212)](({element:_0x1e0c57,originalDisplay:_0x284915,originalVisibility:_0x2d43ba})=>{const _0x4adf6c=_0x203242;_0x1e0c57[_0x4adf6c(0x1db)][_0x4adf6c(0x229)]=_0x284915,_0x1e0c57[_0x4adf6c(0x1db)][_0x4adf6c(0x1f6)]=_0x2d43ba;});}[_0xf4227d(0x20b)](_0x2db3f1){const _0x2a90e5=_0xf4227d,_0xb65ea=[];let _0x5f206f=_0x2db3f1;for(;_0x5f206f&&_0x5f206f!==document[_0x2a90e5(0x1cc)];){const _0x2a1034=window[_0x2a90e5(0x1c7)](_0x5f206f);_0x2a90e5(0x202)!==_0x2a1034[_0x2a90e5(0x229)]&&_0x2a90e5(0x1e4)!==_0x2a1034[_0x2a90e5(0x1f6)]||(_0xb65ea[_0x2a90e5(0x218)]({'element':_0x5f206f,'originalDisplay':_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x229)],'originalVisibility':_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x1f6)]}),_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x229)]=_0x2a90e5(0x1aa),_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x1f6)]=_0x2a90e5(0x20e)),_0x5f206f=_0x5f206f[_0x2a90e5(0x1d0)];}return _0xb65ea;}[_0xf4227d(0x1f7)](){const _0x21b46e=_0xf4227d;let _0x4289f6,_0x44441e;return this[_0x21b46e(0x1e3)]?.[_0x21b46e(0x22d)]?(_0x4289f6=this[_0x21b46e(0x1e3)][_0x21b46e(0x22d)][_0x21b46e(0x1a0)](!0x0),_0x44441e=this[_0x21b46e(0x1d9)](_0x4289f6)):(_0x4289f6=document[_0x21b46e(0x21c)](_0x21b46e(0x220)),_0x44441e=_0x4289f6),{'calculationContainer':_0x4289f6,'targetContainer':_0x44441e};}[_0xf4227d(0x19c)](){const _0xc462bd=_0xf4227d,{calculationContainer:_0x238794,targetContainer:_0x3d6595}=this[_0xc462bd(0x1f7)](),_0x394d66=this[_0xc462bd(0x1ff)]();this[_0xc462bd(0x201)](_0x238794,_0x394d66);const _0x16e1af=this[_0xc462bd(0x1e3)]?.[_0xc462bd(0x22d)]||this[_0xc462bd(0x1be)],_0x3adb15=_0x16e1af?.[_0xc462bd(0x1d0)];_0x3adb15?_0x3adb15[_0xc462bd(0x1a8)](_0x238794):document[_0xc462bd(0x1cc)][_0xc462bd(0x1a8)](_0x238794),_0x238794[_0xc462bd(0x22a)]=_0x3d6595;const _0x186699=this[_0xc462bd(0x20b)](_0x3adb15||null);return _0x238794[_0xc462bd(0x1b2)],_0x238794[_0xc462bd(0x1e6)]=_0x186699,_0x238794;}[_0xf4227d(0x205)](_0x114ee4,_0x281efb){const _0x462649=_0xf4227d,_0x1e79c3=_0x114ee4[_0x462649(0x22a)]||_0x114ee4,_0x44e52d=[],{rowCount:_0x5eb92c}=this[_0x462649(0x1ac)](_0x1e79c3,_0x281efb);if(_0x5eb92c<=this[_0x462649(0x206)][_0x462649(0x1ca)])return _0x44e52d;const _0x9048a2=_0x281efb[_0x462649(0x208)]();for(;_0x9048a2[_0x462649(0x1f2)]>0x0;){if(this[_0x462649(0x1c1)](_0x114ee4,_0x1e79c3,_0x9048a2)){const _0x4a31be=_0x281efb[_0x462649(0x200)](_0xd902b5=>!_0x9048a2[_0x462649(0x1a6)](_0xd902b5));_0x44e52d[_0x462649(0x218)](..._0x4a31be);break;}if(!_0x9048a2[_0x462649(0x20f)]())break;}return _0x44e52d;}[_0xf4227d(0x1ac)](_0x257a92,_0x158f0e){const _0x351d47=_0xf4227d;_0x257a92[_0x351d47(0x228)]='',_0x158f0e[_0x351d47(0x212)](_0x2db86e=>{const _0x47e5bd=_0x351d47;if(_0x2db86e[_0x47e5bd(0x22d)]){const _0x6930f9=_0x2db86e[_0x47e5bd(0x22d)][_0x47e5bd(0x1a0)](!0x0);_0x257a92[_0x47e5bd(0x1a8)](_0x6930f9);}}),_0x257a92[_0x351d47(0x1b2)];const _0x29afd7=_0x257a92[_0x351d47(0x1a1)],_0x4e8299=[];return Array[_0x351d47(0x209)](_0x29afd7)[_0x351d47(0x212)](_0x2356ff=>{const _0x30efaa=_0x351d47,_0x36ac13=_0x2356ff[_0x30efaa(0x1c8)]()[_0x30efaa(0x1dc)];_0x4e8299[_0x30efaa(0x1f3)](_0x2d46a9=>Math[_0x30efaa(0x1fa)](_0x2d46a9-_0x36ac13)<this[_0x30efaa(0x206)][_0x30efaa(0x207)])||_0x4e8299[_0x30efaa(0x218)](_0x36ac13);}),{'rowCount':_0x4e8299[_0x351d47(0x1f2)]};}[_0xf4227d(0x221)](){const _0x419dfa=_0xf4227d,_0xa19994=document[_0x419dfa(0x21c)](_0x419dfa(0x1bc));return _0xa19994[_0x419dfa(0x20c)]=this[_0x419dfa(0x206)][_0x419dfa(0x1d4)][_0x419dfa(0x1c4)],this[_0x419dfa(0x206)][_0x419dfa(0x1d4)][_0x419dfa(0x1c2)]&&_0xa19994[_0x419dfa(0x222)][_0x419dfa(0x1b8)](this[_0x419dfa(0x206)][_0x419dfa(0x1d4)][_0x419dfa(0x1c2)]),_0xa19994[_0x419dfa(0x1b0)]=_0x419dfa(0x1c5),_0xa19994;}[_0xf4227d(0x1c1)](_0x15bca0,_0x3068a8,_0x58f833){const _0x5c4362=_0xf4227d;this[_0x5c4362(0x1ac)](_0x3068a8,_0x58f833);const _0x38fc09=this[_0x5c4362(0x221)]();_0x15bca0[_0x5c4362(0x1a8)](_0x38fc09),_0x15bca0[_0x5c4362(0x1b2)];const _0x2a97da=[..._0x3068a8[_0x5c4362(0x1a1)],_0x38fc09],_0x190a24=[];_0x2a97da[_0x5c4362(0x212)](_0x214ad6=>{const _0x417fd1=_0x5c4362,_0x2229a9=_0x214ad6[_0x417fd1(0x1c8)]()[_0x417fd1(0x1dc)];_0x190a24[_0x417fd1(0x1f3)](_0x24331a=>Math[_0x417fd1(0x1fa)](_0x24331a-_0x2229a9)<this[_0x417fd1(0x206)][_0x417fd1(0x207)])||_0x190a24[_0x417fd1(0x218)](_0x2229a9);});const _0x3604ec=_0x190a24[_0x5c4362(0x1f2)];return _0x38fc09[_0x5c4362(0x1ae)](),_0x3604ec<=this[_0x5c4362(0x206)][_0x5c4362(0x1ca)];}[_0xf4227d(0x1f1)](_0x4b623c,_0x226fe0){const _0x206741=_0xf4227d;this[_0x206741(0x1ea)][_0x206741(0x1b1)](),this[_0x206741(0x1c6)][_0x206741(0x1b1)](),_0x4b623c[_0x206741(0x212)](_0x47752c=>{const _0x310e8a=_0x206741;_0x226fe0[_0x310e8a(0x1a6)](_0x47752c)?this[_0x310e8a(0x1c6)][_0x310e8a(0x1b8)](_0x47752c):this[_0x310e8a(0x1ea)][_0x310e8a(0x1b8)](_0x47752c);});}[_0xf4227d(0x204)](_0x4bc346){const _0x2f0f0d=_0xf4227d;if(_0x4bc346>0x0&&!this[_0x2f0f0d(0x1ba)]&&this[_0x2f0f0d(0x1d2)](),_0x4bc346>0x0&&this[_0x2f0f0d(0x1ba)]){const _0x227330=''+this[_0x2f0f0d(0x206)][_0x2f0f0d(0x20a)]+(_0x4bc346<0x63?_0x4bc346:'99');this[_0x2f0f0d(0x1ba)][_0x2f0f0d(0x1e5)]=_0x227330;}this[_0x2f0f0d(0x1a9)](),this[_0x2f0f0d(0x224)](),this[_0x2f0f0d(0x1fe)]();}[_0xf4227d(0x1f9)](_0x8982f4,_0x46d988){const _0x2507d1=_0xf4227d;this[_0x2507d1(0x1f1)](_0x8982f4,_0x46d988),this[_0x2507d1(0x204)](_0x46d988[_0x2507d1(0x1f2)]);}[_0xf4227d(0x1fb)](){const _0x544d99=_0xf4227d;this[_0x544d99(0x1be)]&&_0x544d99(0x216)!=typeof IntersectionObserver&&(this[_0x544d99(0x219)]=new IntersectionObserver(_0x5a556b=>{const _0x64239a=_0x544d99;_0x5a556b[0x0][_0x64239a(0x22b)]&&this[_0x64239a(0x1eb)]&&requestAnimationFrame(()=>{const _0x5edf19=_0x64239a;this[_0x5edf19(0x1e2)]();});},{'threshold':0.01,'rootMargin':_0x544d99(0x223)}),this[_0x544d99(0x219)][_0x544d99(0x1ee)](this[_0x544d99(0x1be)]));}[_0xf4227d(0x1ec)](){const _0x37563a=_0xf4227d;if(!this[_0x37563a(0x1be)])return!0x1;if(!this[_0x37563a(0x1be)][_0x37563a(0x213)])return!0x1;const _0x48d8f0=this[_0x37563a(0x1be)][_0x37563a(0x1c8)]();if(0x0===_0x48d8f0[_0x37563a(0x1cd)]||0x0===_0x48d8f0[_0x37563a(0x1ef)])return!0x1;const _0x178d2e=window[_0x37563a(0x19a)]||document[_0x37563a(0x19d)][_0x37563a(0x1df)],_0x43e574=window[_0x37563a(0x22e)]||document[_0x37563a(0x19d)][_0x37563a(0x1a5)],_0x5f75a7=0xc8;return _0x48d8f0[_0x37563a(0x1a2)]>=-0xc8&&_0x48d8f0[_0x37563a(0x1dc)]<=_0x178d2e+_0x5f75a7&&_0x48d8f0[_0x37563a(0x214)]>=-0xc8&&_0x48d8f0[_0x37563a(0x1e0)]<=_0x43e574+_0x5f75a7;}}
|
|
23
|
+
const _0x40cfd0=_0x5170;function _0x5170(_0x137084,_0x869867){const _0x30923a=_0x3092();return _0x5170=function(_0x517044,_0x3ec749){_0x517044=_0x517044-0xde;let _0xab6ab6=_0x30923a[_0x517044];return _0xab6ab6;},_0x5170(_0x137084,_0x869867);}(function(_0x4892f8,_0x2c0f39){const _0x2e33b8=_0x5170,_0x5830c0=_0x4892f8();while(!![]){try{const _0x585761=parseInt(_0x2e33b8(0xf4))/0x1*(-parseInt(_0x2e33b8(0x13f))/0x2)+-parseInt(_0x2e33b8(0x170))/0x3+parseInt(_0x2e33b8(0xde))/0x4*(-parseInt(_0x2e33b8(0x154))/0x5)+parseInt(_0x2e33b8(0x129))/0x6+parseInt(_0x2e33b8(0x16c))/0x7+-parseInt(_0x2e33b8(0x15b))/0x8*(parseInt(_0x2e33b8(0x147))/0x9)+parseInt(_0x2e33b8(0x109))/0xa;if(_0x585761===_0x2c0f39)break;else _0x5830c0['push'](_0x5830c0['shift']());}catch(_0x278df7){_0x5830c0['push'](_0x5830c0['shift']());}}}(_0x3092,0x59f48));function _0x3092(){const _0x5e4135=['getComputedStyle','overflowContainer','999060Fmyieg','_createMockButton','clientWidth','pop','disconnect','right','bottom','style','_createShowMoreButtonView','reorganizeChips','innerWidth','auto','isOn','_repinBalloonPanel','offsetWidth','_isContainerVisible','visibility','body','observe','_calculateContainerWidth','showMoreButton','push','25656OYjkvo','_createShowMoreButton','hidden','_overflowChips','+\x201','_targetContainer','_updateShowMoreButtonVisibility','tagName','15786jNerJs','display','_distributeChips','cloneNode','showBalloonPanel','calculationContainer','destroy','add','innerHeight','block\x20!important','content','element','_applyOverflowResults','5Utabfl','pin','includes','-9999px','controlsButton','_parentView','ck-calculation-container','536PerowT','_showMoreButtonView','boxSizing','setTemplate','_createContainerElements','execute','border-box','_showMoreBalloonPanelView','abs','visible','absolute','innerHTML','undefined','show','disableAnimationOnEnter','div','_setupVisibilityObserver','5132876LaBRFA','_updateOverflowUI','documentElement','setContainerElement','1942281EKhzUc','from','2815496yhGiRo','render','classList','children','0px','zIndex','_pendingCalculation','_createShowMoreBalloonPanelView','_intersectionObserver','_calculateOverflowInContainer','.ck-ai-chat','overflowChips','length','forEach','_visibleChips','rowDetectionTolerance','button','_config','width','some','_updateBalloonContent','none','10zjKhhx','showMoreLabelPrefix','_handleShowMoreButtonClick','label','createElement','50px','className','left','pointerEvents','top','appendChild','_containerElement','remove','_ancestorsToRestore','cssClasses','showMoreBalloon','set','querySelector','height','_checkAndHandleOverflow','isIntersecting','10657770pxPuSp','parentElement','hideBalloonPanel','getBoundingClientRect','block','isConnected','toLowerCase','300px','_locale','_renderChipsAndCountRows','filter','_createCalculationContainer','_bodyCollection','_restoreAncestorVisibility','maxVisibleRows','clear','opacity','isVisible','_makeAncestorsVisible','slice','position','textContent','showMoreButtonView','_testButtonFit','visible\x20!important','_applyCalculationStyles','_findTargetContainer','hide','extendTemplate','clientHeight'];_0x3092=function(){return _0x5e4135;};return _0x3092();}import{View as _0x344de5,BalloonPanelView as _0x2c75e1,ButtonView as _0x323fb2,clickOutsideHandler as _0x4dfbf2}from'ckeditor5/src/ui.js';import{Collection as _0x476ac6}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},_n=_0x40cfd0(0x110);export class AIChatChipsOverflowManager{[_0x40cfd0(0x111)];[_0x40cfd0(0xef)];[_0x40cfd0(0xec)];[_0x40cfd0(0x142)];[_0x40cfd0(0x15c)]=null;[_0x40cfd0(0x162)]=null;[_0x40cfd0(0xff)]=null;[_0x40cfd0(0x115)];[_0x40cfd0(0x159)]=null;[_0x40cfd0(0xe6)]=null;[_0x40cfd0(0xe4)]=!0x1;constructor(_0x33db8a,_0x298836,_0x5ab03b,_0xb217dc,_0x3db2e3){const _0x58a174=_0x40cfd0;this[_0x58a174(0x111)]=_0x33db8a,this[_0x58a174(0xec)]=_0x298836,this[_0x58a174(0xef)]={...wn,..._0x5ab03b,'cssClasses':{'controlsButton':'','calculationContainer':_0x58a174(0x15a),..._0x5ab03b[_0x58a174(0x102)]}},this[_0x58a174(0x142)]=new _0x476ac6(),this[_0x58a174(0x115)]=_0xb217dc,this[_0x58a174(0x159)]=_0x3db2e3||null;}[_0x40cfd0(0x16f)](_0xfe6d8c){const _0x201a00=_0x40cfd0;this[_0x201a00(0xe6)]&&(this[_0x201a00(0xe6)][_0x201a00(0x12d)](),this[_0x201a00(0xe6)]=null),this[_0x201a00(0xff)]=_0xfe6d8c,this[_0x201a00(0x16b)]();}get[_0x40cfd0(0x11f)](){const _0x28a2b4=_0x40cfd0;return this[_0x28a2b4(0x15c)];}get[_0x40cfd0(0xe9)](){const _0xb164f0=_0x40cfd0;return this[_0xb164f0(0x142)];}[_0x40cfd0(0x132)](){requestAnimationFrame(()=>{const _0x51761b=_0x5170;this[_0x51761b(0x107)]();});}[_0x40cfd0(0x14b)](){const _0x5b93d2=_0x40cfd0;this[_0x5b93d2(0x15c)]&&this[_0x5b93d2(0x162)]&&(this[_0x5b93d2(0xf2)](),this[_0x5b93d2(0x15c)][_0x5b93d2(0x135)]=!0x0,this[_0x5b93d2(0x162)][_0x5b93d2(0x168)](),this[_0x5b93d2(0x162)][_0x5b93d2(0x155)]({'target':this[_0x5b93d2(0x15c)][_0x5b93d2(0x152)],'limiter':document[_0x5b93d2(0x105)](_0x5b93d2(0xe8))}));}[_0x40cfd0(0x10b)](){const _0x1b7d04=_0x40cfd0;this[_0x1b7d04(0x15c)]&&this[_0x1b7d04(0x162)]&&(this[_0x1b7d04(0x15c)][_0x1b7d04(0x135)]=!0x1,this[_0x1b7d04(0x162)][_0x1b7d04(0x124)]());}[_0x40cfd0(0x118)](){const _0x3ed850=_0x40cfd0;this[_0x3ed850(0x142)][_0x3ed850(0x118)](),this[_0x3ed850(0x10b)](),this[_0x3ed850(0x145)](),this[_0x3ed850(0x15c)]&&(this[_0x3ed850(0x15c)][_0x3ed850(0xf7)]=''),this[_0x3ed850(0x162)]&&this[_0x3ed850(0x162)][_0x3ed850(0x151)][_0x3ed850(0x118)]();}[_0x40cfd0(0x14d)](){const _0x5ee2cc=_0x40cfd0;this[_0x5ee2cc(0xe6)]&&(this[_0x5ee2cc(0xe6)][_0x5ee2cc(0x12d)](),this[_0x5ee2cc(0xe6)]=null),this[_0x5ee2cc(0x15c)]&&(this[_0x5ee2cc(0x15c)][_0x5ee2cc(0x14d)](),this[_0x5ee2cc(0x15c)]=null),this[_0x5ee2cc(0x162)]&&(this[_0x5ee2cc(0x162)][_0x5ee2cc(0x14d)](),this[_0x5ee2cc(0x162)]=null);}[_0x40cfd0(0x107)](){const _0xa7c93b=_0x40cfd0;if(!this[_0xa7c93b(0xff)])return;if(!this[_0xa7c93b(0x138)]())return void(this[_0xa7c93b(0xe4)]=!0x0);this[_0xa7c93b(0xe4)]=!0x1;const _0x28118c=[...this[_0xa7c93b(0xec)],...this[_0xa7c93b(0x142)]],_0x16aaa9=this[_0xa7c93b(0x114)](),_0x3f6e66=this[_0xa7c93b(0xe7)](_0x16aaa9,_0x28118c),_0x5a3c04=_0x16aaa9[_0xa7c93b(0x101)];_0x5a3c04&&this[_0xa7c93b(0x116)](_0x5a3c04),_0x16aaa9[_0xa7c93b(0x100)](),this[_0xa7c93b(0x153)](_0x28118c,_0x3f6e66);}[_0x40cfd0(0x140)](){const _0x3f12a2=_0x40cfd0;this[_0x3f12a2(0x15c)]=this[_0x3f12a2(0x131)](),this[_0x3f12a2(0x162)]=this[_0x3f12a2(0xe5)](),this[_0x3f12a2(0x15c)][_0x3f12a2(0xdf)](),this[_0x3f12a2(0xff)][_0x3f12a2(0xfe)](this[_0x3f12a2(0x15c)][_0x3f12a2(0x152)]),this[_0x3f12a2(0x15c)]['on'](_0x3f12a2(0x160),()=>{const _0x584bd7=_0x3f12a2;this[_0x584bd7(0xf6)]();}),_0x4dfbf2({'emitter':this[_0x3f12a2(0x162)],'contextElements':[this[_0x3f12a2(0x162)][_0x3f12a2(0x152)],this[_0x3f12a2(0x15c)][_0x3f12a2(0x152)]],'callback':()=>this[_0x3f12a2(0x10b)](),'activator':()=>this[_0x3f12a2(0x15c)][_0x3f12a2(0x135)]});}[_0x40cfd0(0x131)](){const _0x219910=_0x40cfd0,_0x3489f3=new _0x323fb2(this[_0x219910(0x111)]);_0x3489f3[_0x219910(0x104)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4e7587=[this[_0x219910(0xef)][_0x219910(0x102)][_0x219910(0x13d)]];return this[_0x219910(0xef)][_0x219910(0x102)][_0x219910(0x158)]&&_0x4e7587[_0x219910(0x13e)](this[_0x219910(0xef)][_0x219910(0x102)][_0x219910(0x158)]),_0x3489f3[_0x219910(0x125)]({'attributes':{'class':_0x4e7587}}),_0x3489f3;}[_0x40cfd0(0xe5)](){const _0x5be973=_0x40cfd0,_0x44f4bc=new _0x2c75e1(this[_0x5be973(0x111)]);return _0x44f4bc[_0x5be973(0x125)]({'attributes':{'class':this[_0x5be973(0xef)][_0x5be973(0x102)][_0x5be973(0x103)]}}),this[_0x5be973(0x115)][_0x5be973(0x14e)](_0x44f4bc),_0x44f4bc;}[_0x40cfd0(0xf2)](){const _0x34859b=_0x40cfd0;if(this[_0x34859b(0x162)]&&(this[_0x34859b(0x162)][_0x34859b(0x151)][_0x34859b(0x118)](),this[_0x34859b(0x142)][_0x34859b(0xea)]>0x0)){this[_0x34859b(0x142)][_0x34859b(0xeb)](_0x29b7cc=>{const _0x5b7ff6=_0x34859b;_0x29b7cc[_0x5b7ff6(0x169)]();});const _0x1d1c77=new _0x344de5(this[_0x34859b(0x111)]);_0x1d1c77[_0x34859b(0x15e)]({'tag':_0x34859b(0x16a),'attributes':{'class':this[_0x34859b(0xef)][_0x34859b(0x102)][_0x34859b(0x128)]},'children':this[_0x34859b(0x142)]}),this[_0x34859b(0x162)][_0x34859b(0x151)][_0x34859b(0x14e)](_0x1d1c77);}}[_0x40cfd0(0xf6)](){const _0x3b4aa5=_0x40cfd0;this[_0x3b4aa5(0x15c)][_0x3b4aa5(0x135)]?this[_0x3b4aa5(0x10b)]():this[_0x3b4aa5(0x14b)]();}[_0x40cfd0(0x145)](){const _0x388454=_0x40cfd0,_0x2f5515=this[_0x388454(0x142)][_0x388454(0xea)]>0x0;this[_0x388454(0x15c)]?.[_0x388454(0x152)]&&(this[_0x388454(0x15c)][_0x388454(0x152)][_0x388454(0x130)][_0x388454(0x148)]=_0x2f5515?'':_0x388454(0xf3));}[_0x40cfd0(0x136)](){const _0x8d1398=_0x40cfd0;this[_0x8d1398(0x15c)]?.[_0x8d1398(0x135)]&&this[_0x8d1398(0x162)]?.[_0x8d1398(0x11a)]&&this[_0x8d1398(0x15c)][_0x8d1398(0x152)]&&this[_0x8d1398(0x162)][_0x8d1398(0x155)]({'target':this[_0x8d1398(0x15c)][_0x8d1398(0x152)],'limiter':document[_0x8d1398(0x105)](_0x8d1398(0xe8))});}[_0x40cfd0(0x123)](_0x2b9376){const _0x55c8de=_0x40cfd0,_0x1b4836=this[_0x55c8de(0xff)]?.[_0x55c8de(0x146)][_0x55c8de(0x10f)]()||_0x55c8de(0x16a),_0x1b768c=this[_0x55c8de(0xff)]?.[_0x55c8de(0xe0)];if(_0x1b768c){const _0x6394bf=_0x1b768c[0x0]||'',_0x2652d4=_0x2b9376[_0x55c8de(0x105)]('.'+_0x6394bf),_0x564de1=_0x2b9376[_0x55c8de(0x105)](_0x1b4836);return _0x2652d4||_0x564de1||_0x2b9376;}return _0x2b9376[_0x55c8de(0x105)](_0x1b4836)||_0x2b9376;}[_0x40cfd0(0x13c)](){const _0x4d4f46=_0x40cfd0,_0x348c99=this[_0x4d4f46(0x159)]?.[_0x4d4f46(0x152)]||this[_0x4d4f46(0xff)];if(!_0x348c99)return _n;const _0x3fa22b=window[_0x4d4f46(0x127)](_0x348c99)[_0x4d4f46(0xf0)];if(_0x4d4f46(0x134)===_0x3fa22b||_0x4d4f46(0xe2)===_0x3fa22b||!_0x3fa22b){const _0x16db9b=_0x348c99[_0x4d4f46(0x10a)];if(_0x16db9b){const _0x34be58=window[_0x4d4f46(0x127)](_0x16db9b);return _0x4d4f46(0x134)!==_0x34be58[_0x4d4f46(0xf0)]?_0x34be58[_0x4d4f46(0xf0)]:_n;}return _n;}return _0x3fa22b;}[_0x40cfd0(0x122)](_0x408e9c,_0x56f05a){const _0x5efbca=_0x40cfd0;this[_0x5efbca(0xef)][_0x5efbca(0x102)][_0x5efbca(0x14c)]&&_0x408e9c[_0x5efbca(0xe0)][_0x5efbca(0x14e)](this[_0x5efbca(0xef)][_0x5efbca(0x102)][_0x5efbca(0x14c)]),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xf0)]=_0x56f05a,_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x11d)]=_0x5efbca(0x165),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xfd)]=_0x5efbca(0x157),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xfb)]=_0x5efbca(0x157),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x119)]='0',_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xfc)]=_0x5efbca(0xf3),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xe3)]='-1',_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x139)]=_0x5efbca(0x121),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x148)]=_0x5efbca(0x150),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x15d)]=_0x5efbca(0x161);}[_0x40cfd0(0x116)](_0x446f95){const _0x3b7afe=_0x40cfd0;_0x446f95[_0x3b7afe(0xeb)](({element:_0x722349,originalDisplay:_0xdea2c6,originalVisibility:_0x46e2f7})=>{const _0x596517=_0x3b7afe;_0x722349[_0x596517(0x130)][_0x596517(0x148)]=_0xdea2c6,_0x722349[_0x596517(0x130)][_0x596517(0x139)]=_0x46e2f7;});}[_0x40cfd0(0x11b)](_0x51681c){const _0x441f6d=_0x40cfd0,_0x37bd66=[];let _0x214522=_0x51681c;for(;_0x214522&&_0x214522!==document[_0x441f6d(0x13a)];){const _0x55c182=window[_0x441f6d(0x127)](_0x214522);_0x441f6d(0xf3)!==_0x55c182[_0x441f6d(0x148)]&&_0x441f6d(0x141)!==_0x55c182[_0x441f6d(0x139)]||(_0x37bd66[_0x441f6d(0x13e)]({'element':_0x214522,'originalDisplay':_0x214522[_0x441f6d(0x130)][_0x441f6d(0x148)],'originalVisibility':_0x214522[_0x441f6d(0x130)][_0x441f6d(0x139)]}),_0x214522[_0x441f6d(0x130)][_0x441f6d(0x148)]=_0x441f6d(0x10d),_0x214522[_0x441f6d(0x130)][_0x441f6d(0x139)]=_0x441f6d(0x164)),_0x214522=_0x214522[_0x441f6d(0x10a)];}return _0x37bd66;}[_0x40cfd0(0x15f)](){const _0x483372=_0x40cfd0;let _0x4d6fae,_0x2fd627;return this[_0x483372(0x159)]?.[_0x483372(0x152)]?(_0x4d6fae=this[_0x483372(0x159)][_0x483372(0x152)][_0x483372(0x14a)](!0x0),_0x2fd627=this[_0x483372(0x123)](_0x4d6fae)):(_0x4d6fae=document[_0x483372(0xf8)](_0x483372(0x16a)),_0x2fd627=_0x4d6fae),{'calculationContainer':_0x4d6fae,'targetContainer':_0x2fd627};}[_0x40cfd0(0x114)](){const _0x34eba2=_0x40cfd0,{calculationContainer:_0x442a5d,targetContainer:_0xa716cb}=this[_0x34eba2(0x15f)](),_0x5ab85a=this[_0x34eba2(0x13c)]();this[_0x34eba2(0x122)](_0x442a5d,_0x5ab85a);const _0x15743d=this[_0x34eba2(0x159)]?.[_0x34eba2(0x152)]||this[_0x34eba2(0xff)],_0x373998=_0x15743d?.[_0x34eba2(0x10a)];_0x373998?_0x373998[_0x34eba2(0xfe)](_0x442a5d):document[_0x34eba2(0x13a)][_0x34eba2(0xfe)](_0x442a5d),_0x442a5d[_0x34eba2(0x144)]=_0xa716cb;const _0x12b941=this[_0x34eba2(0x11b)](_0x373998||null);return _0x442a5d[_0x34eba2(0x137)],_0x442a5d[_0x34eba2(0x101)]=_0x12b941,_0x442a5d;}[_0x40cfd0(0xe7)](_0x598008,_0xafb743){const _0x7dfa8d=_0x40cfd0,_0x4f2554=_0x598008[_0x7dfa8d(0x144)]||_0x598008,_0x5bf7f9=[],{rowCount:_0x60e5f5}=this[_0x7dfa8d(0x112)](_0x4f2554,_0xafb743);if(_0x60e5f5<=this[_0x7dfa8d(0xef)][_0x7dfa8d(0x117)])return _0x5bf7f9;const _0x4144d2=_0xafb743[_0x7dfa8d(0x11c)]();for(;_0x4144d2[_0x7dfa8d(0xea)]>0x0;){if(this[_0x7dfa8d(0x120)](_0x598008,_0x4f2554,_0x4144d2)){const _0x47bf11=_0xafb743[_0x7dfa8d(0x113)](_0x203453=>!_0x4144d2[_0x7dfa8d(0x156)](_0x203453));_0x5bf7f9[_0x7dfa8d(0x13e)](..._0x47bf11);break;}if(!_0x4144d2[_0x7dfa8d(0x12c)]())break;}return _0x5bf7f9;}[_0x40cfd0(0x112)](_0x280161,_0x29b1d1){const _0xe6237d=_0x40cfd0;_0x280161[_0xe6237d(0x166)]='',_0x29b1d1[_0xe6237d(0xeb)](_0x4c71d3=>{const _0x2b49c3=_0xe6237d;if(_0x4c71d3[_0x2b49c3(0x152)]){const _0x2377c3=_0x4c71d3[_0x2b49c3(0x152)][_0x2b49c3(0x14a)](!0x0);_0x280161[_0x2b49c3(0xfe)](_0x2377c3);}}),_0x280161[_0xe6237d(0x137)];const _0x330f19=_0x280161[_0xe6237d(0xe1)],_0xc5c771=[];return Array[_0xe6237d(0x171)](_0x330f19)[_0xe6237d(0xeb)](_0x4fb3b9=>{const _0xd33734=_0xe6237d,_0x44a749=_0x4fb3b9[_0xd33734(0x10c)]()[_0xd33734(0xfd)];_0xc5c771[_0xd33734(0xf1)](_0x546838=>Math[_0xd33734(0x163)](_0x546838-_0x44a749)<this[_0xd33734(0xef)][_0xd33734(0xed)])||_0xc5c771[_0xd33734(0x13e)](_0x44a749);}),{'rowCount':_0xc5c771[_0xe6237d(0xea)]};}[_0x40cfd0(0x12a)](){const _0x41c9b6=_0x40cfd0,_0x5c4a52=document[_0x41c9b6(0xf8)](_0x41c9b6(0xee));return _0x5c4a52[_0x41c9b6(0xfa)]=this[_0x41c9b6(0xef)][_0x41c9b6(0x102)][_0x41c9b6(0x13d)],this[_0x41c9b6(0xef)][_0x41c9b6(0x102)][_0x41c9b6(0x158)]&&_0x5c4a52[_0x41c9b6(0xe0)][_0x41c9b6(0x14e)](this[_0x41c9b6(0xef)][_0x41c9b6(0x102)][_0x41c9b6(0x158)]),_0x5c4a52[_0x41c9b6(0x11e)]=_0x41c9b6(0x143),_0x5c4a52;}[_0x40cfd0(0x120)](_0x5e40d1,_0xb88651,_0x15cfcc){const _0x3601d9=_0x40cfd0;this[_0x3601d9(0x112)](_0xb88651,_0x15cfcc);const _0x54c71a=this[_0x3601d9(0x12a)]();_0x5e40d1[_0x3601d9(0xfe)](_0x54c71a),_0x5e40d1[_0x3601d9(0x137)];const _0x400852=[..._0xb88651[_0x3601d9(0xe1)],_0x54c71a],_0x2594e2=[];_0x400852[_0x3601d9(0xeb)](_0x23c3e7=>{const _0x1f8dda=_0x3601d9,_0x437df4=_0x23c3e7[_0x1f8dda(0x10c)]()[_0x1f8dda(0xfd)];_0x2594e2[_0x1f8dda(0xf1)](_0x13e462=>Math[_0x1f8dda(0x163)](_0x13e462-_0x437df4)<this[_0x1f8dda(0xef)][_0x1f8dda(0xed)])||_0x2594e2[_0x1f8dda(0x13e)](_0x437df4);});const _0xf8bab6=_0x2594e2[_0x3601d9(0xea)];return _0x54c71a[_0x3601d9(0x100)](),_0xf8bab6<=this[_0x3601d9(0xef)][_0x3601d9(0x117)];}[_0x40cfd0(0x149)](_0xfe18ff,_0x127e4f){const _0x476320=_0x40cfd0;this[_0x476320(0xec)][_0x476320(0x118)](),this[_0x476320(0x142)][_0x476320(0x118)](),_0xfe18ff[_0x476320(0xeb)](_0x3f00b4=>{const _0x49dfe5=_0x476320;_0x127e4f[_0x49dfe5(0x156)](_0x3f00b4)?this[_0x49dfe5(0x142)][_0x49dfe5(0x14e)](_0x3f00b4):this[_0x49dfe5(0xec)][_0x49dfe5(0x14e)](_0x3f00b4);});}[_0x40cfd0(0x16d)](_0x5d5429){const _0x1b63c7=_0x40cfd0;if(_0x5d5429>0x0&&!this[_0x1b63c7(0x15c)]&&this[_0x1b63c7(0x140)](),_0x5d5429>0x0&&this[_0x1b63c7(0x15c)]){const _0x2a2f64=''+this[_0x1b63c7(0xef)][_0x1b63c7(0xf5)]+(_0x5d5429<0x63?_0x5d5429:'99');this[_0x1b63c7(0x15c)][_0x1b63c7(0xf7)]=_0x2a2f64;}this[_0x1b63c7(0xf2)](),this[_0x1b63c7(0x145)](),this[_0x1b63c7(0x136)]();}[_0x40cfd0(0x153)](_0x55ce17,_0x4048ea){const _0x1b4046=_0x40cfd0;this[_0x1b4046(0x149)](_0x55ce17,_0x4048ea),this[_0x1b4046(0x16d)](_0x4048ea[_0x1b4046(0xea)]);}[_0x40cfd0(0x16b)](){const _0x47288c=_0x40cfd0;this[_0x47288c(0xff)]&&_0x47288c(0x167)!=typeof IntersectionObserver&&(this[_0x47288c(0xe6)]=new IntersectionObserver(_0xab17b8=>{const _0x29cbf6=_0x47288c;_0xab17b8[0x0][_0x29cbf6(0x108)]&&this[_0x29cbf6(0xe4)]&&requestAnimationFrame(()=>{const _0x22ba89=_0x29cbf6;this[_0x22ba89(0x107)]();});},{'threshold':0.01,'rootMargin':_0x47288c(0xf9)}),this[_0x47288c(0xe6)][_0x47288c(0x13b)](this[_0x47288c(0xff)]));}[_0x40cfd0(0x138)](){const _0x10d65a=_0x40cfd0;if(!this[_0x10d65a(0xff)])return!0x1;if(!this[_0x10d65a(0xff)][_0x10d65a(0x10e)])return!0x1;const _0x272b38=this[_0x10d65a(0xff)][_0x10d65a(0x10c)]();if(0x0===_0x272b38[_0x10d65a(0xf0)]||0x0===_0x272b38[_0x10d65a(0x106)])return!0x1;const _0x3149d1=window[_0x10d65a(0x14f)]||document[_0x10d65a(0x16e)][_0x10d65a(0x126)],_0x3bb631=window[_0x10d65a(0x133)]||document[_0x10d65a(0x16e)][_0x10d65a(0x12b)],_0x7d8459=0xc8;return _0x272b38[_0x10d65a(0x12f)]>=-0xc8&&_0x272b38[_0x10d65a(0xfd)]<=_0x3149d1+_0x7d8459&&_0x272b38[_0x10d65a(0x12e)]>=-0xc8&&_0x272b38[_0x10d65a(0xfb)]<=_0x3bb631+_0x7d8459;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x48cfec=_0x1a6b;(function(_0x7426fa,_0x50a83a){const _0x3ac473=_0x1a6b,_0x5b3446=_0x7426fa();while(!![]){try{const _0x59df14=parseInt(_0x3ac473(0x17e))/0x1*(parseInt(_0x3ac473(0x183))/0x2)+-parseInt(_0x3ac473(0x159))/0x3+parseInt(_0x3ac473(0x173))/0x4+-parseInt(_0x3ac473(0x155))/0x5*(-parseInt(_0x3ac473(0x15a))/0x6)+parseInt(_0x3ac473(0x176))/0x7+parseInt(_0x3ac473(0x17b))/0x8*(parseInt(_0x3ac473(0x17c))/0x9)+-parseInt(_0x3ac473(0x160))/0xa;if(_0x59df14===_0x50a83a)break;else _0x5b3446['push'](_0x5b3446['shift']());}catch(_0x308017){_0x5b3446['push'](_0x5b3446['shift']());}}}(_0xfd18,0xea9f9));import{ButtonView as _0x1739b4,IconView as _0x3587c1}from'ckeditor5/src/ui.js';function _0xfd18(){const _0x13c2de=['4025720rHrQIE','label','_createTemplateChildren','6407289gCpKcA','_createIconView','render','ck-ai-chat-context-chip_wide','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','9496LvkHXO','12060ZTRUcE','_createRemoveButton','1PVgRfZ','addEventListener','type','set','small','3508030noyJIw','ck-ai-chat-context-chip_document','span','webkitAnimationEnd','length','lastIndexOf','content','classList','itemType','setTemplate','slice','ck-ai-chat-context-chip__type-icon','_createLoaderIcon','isVisible','removeContextItemChip','animationend','tooltip','_isAnimationOnEnterEnabled','ck-hidden','ck-ai-chat-context-chip','35TpOugs','readonly','locale','add','1481529mvMuLf','477234crpPfX','selection','fire','isLoading','bind','element','43682650AxyyMo','_initializeProperties','_setupRemoveButtonEvent','_setupTemplate','ck-ai-chat-context-chip_new-chip','uiId','_handleAnimationEndOnce','div','ck-ai-chat-context-controls__chip-tooltip','_createLabelElement','ck-ai-chat-context-chip__label','remove','removeEventListener','extendTemplate','bindTemplate','document','_createTemplateAttributes','disableAnimationOnEnter','execute'];_0xfd18=function(){return _0x13c2de;};return _0xfd18();}function _0x1a6b(_0x3f2dd8,_0x144211){const _0xfd18b9=_0xfd18();return _0x1a6b=function(_0x1a6b74,_0x32af52){_0x1a6b74=_0x1a6b74-0x150;let _0x2acffa=_0xfd18b9[_0x1a6b74];return _0x2acffa;},_0x1a6b(_0x3f2dd8,_0x144211);}import{IconClose as _0x596fe6,IconDocument as _0x2f7d88,IconFileUpload as _0x4a59b0,IconLink as _0x533b4b,IconSelection as _0x8f1b5a}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x39d8db}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x27aadd}from'../../../aicore/ui/aispinner.js';const En={'file':_0x4a59b0,'document':_0x2f7d88,'web-resource':_0x533b4b,'text':_0x4a59b0,'selection':_0x8f1b5a},An=_0x48cfec(0x154),Cn=_0x48cfec(0x179),In=_0x48cfec(0x184),On=_0x48cfec(0x16a),gn=_0x48cfec(0x18e),vn=_0x48cfec(0x168),yn='n';export class AIChatContextItemButtonView extends _0x1739b4{constructor(_0x5197d1,_0x12b831,_0x5c4562,_0x36447f,_0x4ea2c6=!0x1){const _0x227347=_0x48cfec;super(_0x5197d1),this[_0x227347(0x152)]=_0x36447f,this[_0x227347(0x161)](_0x12b831,_0x5c4562,_0x4ea2c6),this[_0x227347(0x163)]();}[_0x48cfec(0x178)](){const _0x1e277f=_0x48cfec;super[_0x1e277f(0x178)](),this[_0x1e277f(0x152)]&&this[_0x1e277f(0x15f)]&&(this[_0x1e277f(0x15f)][_0x1e277f(0x18a)][_0x1e277f(0x158)](_0x1e277f(0x164)),this[_0x1e277f(0x166)](this[_0x1e277f(0x15f)],()=>{const _0x1770e0=_0x1e277f;this[_0x1770e0(0x15f)]&&this[_0x1770e0(0x15f)][_0x1770e0(0x18a)][_0x1770e0(0x16b)](_0x1770e0(0x164));}));}[_0x48cfec(0x171)](){const _0x329afb=_0x48cfec;this[_0x329afb(0x152)]=!0x1,this[_0x329afb(0x15f)]&&this[_0x329afb(0x15f)][_0x329afb(0x18a)][_0x329afb(0x16b)](_0x329afb(0x164));}[_0x48cfec(0x161)](_0x37dc26,_0x163658,_0x37151f){const _0x506956=_0x48cfec;this[_0x506956(0x181)](_0x506956(0x174),_0x37dc26[_0x506956(0x174)]),this[_0x506956(0x181)](_0x506956(0x151),!0x0),this[_0x506956(0x181)](_0x506956(0x18b),_0x37dc26[_0x506956(0x180)]),this[_0x506956(0x181)]('id',_0x37dc26[_0x506956(0x165)]),this[_0x506956(0x181)](_0x506956(0x156),_0x163658),this[_0x506956(0x181)](_0x506956(0x15d),_0x37151f);}[_0x48cfec(0x163)](){const _0x2d0140=_0x48cfec,_0x77e6b4=this[_0x2d0140(0x177)](),_0xdd45cc=this[_0x2d0140(0x17d)](),_0x1b6aae=this[_0x2d0140(0x16e)];this[_0x2d0140(0x18c)]({'tag':_0x2d0140(0x167),'attributes':this[_0x2d0140(0x170)](_0x1b6aae),'children':this[_0x2d0140(0x175)](_0x77e6b4,_0xdd45cc,_0x1b6aae)});}[_0x48cfec(0x170)](_0x2b1d18){const _0xc6a0d1=_0x48cfec;return{'class':[An,_0x2b1d18['if'](_0xc6a0d1(0x18b),In,_0x5e05d8=>_0xc6a0d1(0x16f)==_0x5e05d8),_0x2b1d18['if'](_0xc6a0d1(0x18b),Cn,_0x4ac94b=>_0xc6a0d1(0x15b)==_0x4ac94b)],'data-cke-tooltip-text':_0x2b1d18['to'](_0xc6a0d1(0x174),Ln),'data-cke-tooltip-position':yn,'data-cke-tooltip-class':vn};}[_0x48cfec(0x175)](_0x4287bc,_0x3b0d0e,_0x18b2ba){const _0x5f5719=_0x48cfec,_0x347ed1=this[_0x5f5719(0x169)](_0x18b2ba),_0x72a465=this[_0x5f5719(0x18f)]();return this[_0x5f5719(0x156)]?[_0x4287bc,_0x347ed1]:[_0x4287bc,_0x72a465,_0x347ed1,_0x3b0d0e];}[_0x48cfec(0x169)](_0x952964){const _0x10e1c0=_0x48cfec;return{'tag':_0x10e1c0(0x185),'attributes':{'class':On},'children':[{'text':_0x952964['to'](_0x10e1c0(0x174))}]};}[_0x48cfec(0x17d)](){const _0x5a6476=_0x48cfec,_0x51aaac=new _0x1739b4(this[_0x5a6476(0x157)]);return _0x51aaac[_0x5a6476(0x181)]({'label':_0x39d8db(this[_0x5a6476(0x157)],_0x5a6476(0x17a)),'icon':_0x596fe6}),this[_0x5a6476(0x162)](_0x51aaac),_0x51aaac;}[_0x48cfec(0x162)](_0x264f9d){const _0x2e8edd=_0x48cfec;_0x264f9d['on'](_0x2e8edd(0x172),()=>{const _0x2804c4=_0x2e8edd;this[_0x2804c4(0x15c)](_0x2804c4(0x191),this['id']);});}[_0x48cfec(0x177)](){const _0x1d1426=_0x48cfec,_0x296254=this[_0x1d1426(0x16e)],_0x47cf7d=new _0x3587c1();return _0x47cf7d[_0x1d1426(0x189)]=En[this[_0x1d1426(0x18b)]],_0x47cf7d[_0x1d1426(0x16d)]({'attributes':{'class':[gn,_0x296254['if'](_0x1d1426(0x15d),_0x1d1426(0x153),_0x74057f=>_0x74057f)]}}),_0x47cf7d;}[_0x48cfec(0x166)](_0x3c8ef0,_0x3066e3){const _0x1bc3e9=_0x48cfec;if(!_0x3c8ef0)return;const _0x7cbba0=()=>{const _0x5386f0=_0x1a6b;_0x3066e3(),_0x3c8ef0[_0x5386f0(0x16c)](_0x5386f0(0x150),_0x7cbba0),_0x3c8ef0[_0x5386f0(0x16c)](_0x5386f0(0x186),_0x7cbba0);};_0x3c8ef0[_0x1bc3e9(0x17f)](_0x1bc3e9(0x150),_0x7cbba0),_0x3c8ef0[_0x1bc3e9(0x17f)](_0x1bc3e9(0x186),_0x7cbba0);}[_0x48cfec(0x18f)](){const _0x32fd45=_0x48cfec,_0x30e847=new _0x27aadd(_0x32fd45(0x182));return _0x30e847[_0x32fd45(0x15e)](_0x32fd45(0x190))['to'](this,_0x32fd45(0x15d),_0x9710a5=>_0x9710a5),_0x30e847;}}function Ln(_0x5af48a){const _0xadc45d=_0x48cfec;if(!_0x5af48a)return _0x5af48a;if(_0x5af48a[_0xadc45d(0x187)]<=0x78)return _0x5af48a;const _0x432837=_0x5af48a[_0xadc45d(0x18d)](0x0,0x78),_0x1c8a93=_0x432837[_0xadc45d(0x188)]('\x20');return(_0x1c8a93>0x0?_0x432837[_0xadc45d(0x18d)](0x0,_0x1c8a93):_0x432837)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16ee71=_0x59cf;(function(_0x326a7f,_0x1cb456){const _0xdeb1=_0x59cf,_0x4a64d2=_0x326a7f();while(!![]){try{const _0x3dc9e4=-parseInt(_0xdeb1(0xa7))/0x1*(parseInt(_0xdeb1(0xac))/0x2)+parseInt(_0xdeb1(0x94))/0x3*(parseInt(_0xdeb1(0xaf))/0x4)+-parseInt(_0xdeb1(0x9c))/0x5*(parseInt(_0xdeb1(0xad))/0x6)+-parseInt(_0xdeb1(0xa5))/0x7*(-parseInt(_0xdeb1(0x90))/0x8)+parseInt(_0xdeb1(0xa1))/0x9*(-parseInt(_0xdeb1(0x93))/0xa)+parseInt(_0xdeb1(0xb6))/0xb+parseInt(_0xdeb1(0x92))/0xc*(-parseInt(_0xdeb1(0x8b))/0xd);if(_0x3dc9e4===_0x1cb456)break;else _0x4a64d2['push'](_0x4a64d2['shift']());}catch(_0x1d34ae){_0x4a64d2['push'](_0x4a64d2['shift']());}}}(_0x7239,0x1c244));import{FocusTracker as _0x572969,KeystrokeHandler as _0x87e96f}from'ckeditor5/src/utils.js';import{ButtonView as _0x1bb77d,FocusCycler as _0x61a953,LabeledFieldView as _0x3c157d,View as _0x442224,FormHeaderView as _0x1221ac,createLabeledInputText as _0x125936,submitHandler as _0x33b6c2}from'ckeditor5/src/ui.js';import{IconCheck as _0x12cc97,IconPreviousArrow as _0x210eea}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x4406fc}from'../../../aicore/utils/common-translations.js';function _0x7239(){const _0x4170bd=['clearError','forEach','_isValidUrl','1495659BcTEHa','esc','submit','fieldView','AI_CHAT_CONTEXT_URL_INVALID_ERROR','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon','AI_CHAT_CONTEXT_URL_PLACEHOLDER','element','ck-ai-chat-context-controls__url-input-section','submitUrl','ck-labeled-field-view_empty','setTemplate','fire','form','ck-button-icon\x20ck-button-back','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_handleSubmit','shift+tab','length','trim','input','urlInputField','focus','_focusables','_setupEventHandlers','execute','children','keystrokes','locale','_createBackButton','getValue','backButton','104OMofYL','clear','_updateConfirmButtonState','add','setError','4232ZnOJtv','_createUrlInputField','87936snhBpg','561190XaiUgY','195EMwshp','AI_CHAT_CONTEXT_URL_LABEL','_setupTemplate','refreshBalloon','ck-ai-chat-context-controls__url-form','isEnabled','render','AI_CHAT_CONTEXT_URL_ADD_URL','5qUEriQ','focusCycler','_createConfirmButton','errorText','div','9QqCqro','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','focusTracker','createCollection','308FoCvEO','stop','3TFabuf','_setupKeystrokes','value','listenTo','confirmButton','56338pqvXGF','256302oIZmcK','set','12184YipWTl','tab','destroy','cancel'];_0x7239=function(){return _0x4170bd;};return _0x7239();}function _0x59cf(_0xbcdb90,_0x2971ea){const _0x72397b=_0x7239();return _0x59cf=function(_0x59cfa0,_0x40957d){_0x59cfa0=_0x59cfa0-0x7b;let _0x27edf4=_0x72397b[_0x59cfa0];return _0x27edf4;},_0x59cf(_0xbcdb90,_0x2971ea);}const eh=_0x16ee71(0x98),hh=_0x16ee71(0xbf);export class AIChatContextPanelUrlInputView extends _0x442224{[_0x16ee71(0xa3)];[_0x16ee71(0x86)];[_0x16ee71(0x82)];[_0x16ee71(0x9d)];[_0x16ee71(0x80)];[_0x16ee71(0x8a)];[_0x16ee71(0xab)];constructor(_0xa46d35){const _0x135560=_0x16ee71;super(_0xa46d35),this[_0x135560(0xa3)]=new _0x572969(),this[_0x135560(0x86)]=new _0x87e96f(),this[_0x135560(0x8a)]=this[_0x135560(0x88)](),this[_0x135560(0x80)]=this[_0x135560(0x91)](),this[_0x135560(0xab)]=this[_0x135560(0x9e)](),this[_0x135560(0x82)]=this[_0x135560(0xa4)]([this[_0x135560(0x8a)],this[_0x135560(0x80)],this[_0x135560(0xab)]]),this[_0x135560(0x9d)]=new _0x61a953({'focusables':this[_0x135560(0x82)],'focusTracker':this[_0x135560(0xa3)],'keystrokeHandler':this[_0x135560(0x86)],'actions':{'focusPrevious':_0x135560(0x7c),'focusNext':_0x135560(0xb0)}}),this[_0x135560(0x96)](),this[_0x135560(0x83)](),this[_0x135560(0xa8)]();}[_0x16ee71(0x9a)](){const _0x3391aa=_0x16ee71;super[_0x3391aa(0x9a)](),this[_0x3391aa(0x82)][_0x3391aa(0xb4)](_0x15c89e=>{const _0x1da264=_0x3391aa;this[_0x1da264(0xa3)][_0x1da264(0x8e)](_0x15c89e[_0x1da264(0xbe)]),this[_0x1da264(0x86)][_0x1da264(0xaa)](_0x15c89e[_0x1da264(0xbe)]);}),_0x33b6c2({'view':this}),this[_0x3391aa(0x81)]();}[_0x16ee71(0xb1)](){const _0x1d11d3=_0x16ee71;super[_0x1d11d3(0xb1)](),this[_0x1d11d3(0xa3)][_0x1d11d3(0xb1)](),this[_0x1d11d3(0x86)][_0x1d11d3(0xb1)]();}[_0x16ee71(0x81)](){const _0x5243ca=_0x16ee71;this[_0x5243ca(0x80)][_0x5243ca(0x81)]();}[_0x16ee71(0x89)](){const _0x7bac86=_0x16ee71;return this[_0x7bac86(0x80)][_0x7bac86(0xb9)][_0x7bac86(0xbe)]?.[_0x7bac86(0xa9)]?.[_0x7bac86(0x7e)]()||'';}[_0x16ee71(0x8c)](){const _0x25113e=_0x16ee71;this[_0x25113e(0x80)][_0x25113e(0xb9)][_0x25113e(0xbe)][_0x25113e(0xa9)]='',this[_0x25113e(0x80)][_0x25113e(0x9f)]=null,this[_0x25113e(0xab)][_0x25113e(0x99)]=!0x1;}[_0x16ee71(0x8f)](_0x43af58){const _0x5a643a=_0x16ee71;this[_0x5a643a(0x80)][_0x5a643a(0x9f)]=_0x43af58,this[_0x5a643a(0x8d)](),this[_0x5a643a(0xc3)](_0x5a643a(0x97));}[_0x16ee71(0xb3)](){const _0x30cda0=_0x16ee71;this[_0x30cda0(0x80)][_0x30cda0(0x9f)]=null,this[_0x30cda0(0x8d)]();}[_0x16ee71(0x88)](){const _0x4a5e8d=_0x16ee71,_0x5a8038=new _0x1bb77d(this[_0x4a5e8d(0x87)]);return _0x5a8038[_0x4a5e8d(0xae)]({'icon':_0x210eea,'tooltip':_0x4406fc(this[_0x4a5e8d(0x87)],_0x4a5e8d(0xbb)),'tooltipPosition':'n','class':_0x4a5e8d(0xc5)}),_0x5a8038;}[_0x16ee71(0x91)](){const _0x2bdf79=_0x16ee71,_0x3e7a68=new _0x3c157d(this[_0x2bdf79(0x87)],_0x125936);return _0x3e7a68[_0x2bdf79(0xae)]({'label':_0x4406fc(this[_0x2bdf79(0x87)],_0x2bdf79(0x95)),'class':_0x2bdf79(0xc1)}),_0x3e7a68[_0x2bdf79(0xb9)][_0x2bdf79(0xae)]({'placeholder':_0x4406fc(this[_0x2bdf79(0x87)],_0x2bdf79(0xbd))}),_0x3e7a68;}[_0x16ee71(0x9e)](){const _0x7356fd=_0x16ee71,_0x5e5d23=new _0x1bb77d(this[_0x7356fd(0x87)]);return _0x5e5d23[_0x7356fd(0xae)]({'icon':_0x12cc97,'tooltip':_0x4406fc(this[_0x7356fd(0x87)],_0x7356fd(0x9b)),'tooltipPosition':'n','class':_0x7356fd(0xbc),'type':_0x7356fd(0xb8),'isEnabled':!0x1}),_0x5e5d23;}[_0x16ee71(0x96)](){const _0x5a240a=_0x16ee71,_0x58b76b=new _0x1221ac(this[_0x5a240a(0x87)],{'label':_0x4406fc(this[_0x5a240a(0x87)],_0x5a240a(0x9b)),'class':_0x5a240a(0xa2)});_0x58b76b[_0x5a240a(0x85)][_0x5a240a(0x8e)](this[_0x5a240a(0x8a)],0x0),this[_0x5a240a(0xc2)]({'tag':_0x5a240a(0xc4),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x58b76b,{'tag':_0x5a240a(0xa0),'attributes':{'class':hh},'children':[this[_0x5a240a(0x80)],this[_0x5a240a(0xab)]]}]});}[_0x16ee71(0x83)](){const _0x14f297=_0x16ee71;this[_0x14f297(0x8a)]['on'](_0x14f297(0x84),()=>{const _0x209f7f=_0x14f297;this[_0x209f7f(0x8c)](),this[_0x209f7f(0xc3)](_0x209f7f(0xb2));}),this[_0x14f297(0x80)][_0x14f297(0xb9)]['on'](_0x14f297(0x7f),()=>{const _0x1df67d=_0x14f297;this[_0x1df67d(0xb3)](),this[_0x1df67d(0x8d)](),this[_0x1df67d(0xc3)](_0x1df67d(0x97));}),this['on'](_0x14f297(0xb8),_0x142a29=>{const _0x34f7d8=_0x14f297;_0x142a29[_0x34f7d8(0xa6)](),this[_0x34f7d8(0x7b)]();});}[_0x16ee71(0xa8)](){const _0x20f8ff=_0x16ee71;this[_0x20f8ff(0x86)][_0x20f8ff(0xae)](_0x20f8ff(0xb7),(_0x41663e,_0x26d2be)=>{const _0x352a11=_0x20f8ff;this[_0x352a11(0x8c)](),this[_0x352a11(0xc3)](_0x352a11(0xb2)),_0x26d2be();});}[_0x16ee71(0x7b)](){const _0x57305a=_0x16ee71,_0x4aae99=this[_0x57305a(0x89)]()[_0x57305a(0x7e)]();_0x4aae99?this[_0x57305a(0xb5)](_0x4aae99)?(this[_0x57305a(0xb3)](),this[_0x57305a(0xc3)](_0x57305a(0xc0),_0x4aae99)):this[_0x57305a(0x8f)](_0x4406fc(this[_0x57305a(0x87)],_0x57305a(0xba))):this[_0x57305a(0x8f)](_0x4406fc(this[_0x57305a(0x87)],_0x57305a(0xc6)));}[_0x16ee71(0x8d)](){const _0x29244e=_0x16ee71,_0x3c8682=this[_0x29244e(0x89)]()[_0x29244e(0x7e)](),_0x30dcbe=!!this[_0x29244e(0x80)][_0x29244e(0x9f)];this[_0x29244e(0xab)][_0x29244e(0x99)]=_0x3c8682[_0x29244e(0x7d)]>0x0&&!_0x30dcbe;}[_0x16ee71(0xb5)](_0x3d3f67){try{return!!new URL(_0x3d3f67);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x19d5cf=_0x19d7;(function(_0x481392,_0x176901){const _0x306e50=_0x19d7,_0x59cf60=_0x481392();while(!![]){try{const _0x1c15eb=-parseInt(_0x306e50(0x197))/0x1+-parseInt(_0x306e50(0x1e3))/0x2+parseInt(_0x306e50(0x1bc))/0x3+-parseInt(_0x306e50(0x194))/0x4+-parseInt(_0x306e50(0x195))/0x5*(parseInt(_0x306e50(0x1df))/0x6)+-parseInt(_0x306e50(0x1c9))/0x7*(-parseInt(_0x306e50(0x20b))/0x8)+-parseInt(_0x306e50(0x1bd))/0x9*(-parseInt(_0x306e50(0x1f3))/0xa);if(_0x1c15eb===_0x176901)break;else _0x59cf60['push'](_0x59cf60['shift']());}catch(_0x2504b8){_0x59cf60['push'](_0x59cf60['shift']());}}}(_0x5cad,0x38b96));import{BalloonPanelView as _0x5ba009,ButtonView as _0x1a69a5,clickOutsideHandler as _0x4e344e,FileDialogButtonView as _0x1aa42d,IconView as _0x1e9b06,View as _0x37febe}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1e54e6,IconDocument as _0x50884a,IconDocumentOutline as _0x82fc53,IconDropdownArrow as _0x52fdbc,IconLink as _0x4a9546,IconPaperClip as _0x5bd2ef}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2fdbd2}from'./aichatcontextitembuttonview.js';function _0x19d7(_0x545330,_0x388296){const _0x5cad40=_0x5cad();return _0x19d7=function(_0x19d7ab,_0x19570b){_0x19d7ab=_0x19d7ab-0x182;let _0x2bab91=_0x5cad40[_0x19d7ab];return _0x2bab91;},_0x19d7(_0x545330,_0x388296);}import{AIChatContextPanelUrlInputView as _0x13a8f3}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xf11c38}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x513eb1}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x446091}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x19d5cf(0x1ca),_0x19d5cf(0x18f),_0x19d5cf(0x1e2),_0x19d5cf(0x190),_0x19d5cf(0x1af),_0x19d5cf(0x1f1)];const Po=_0x19d5cf(0x192),Ro=_0x19d5cf(0x1d2),Uo=_0x19d5cf(0x1bb),Lo=_0x19d5cf(0x1ce),No=_0x19d5cf(0x1f9),Mo=_0x19d5cf(0x1d0),Ho=_0x19d5cf(0x1d5),uo=_0x19d5cf(0x209),jo=_0x19d5cf(0x1c7),xo=_0x19d5cf(0x1d7),mo=_0x19d5cf(0x1b1),Xo=_0x19d5cf(0x1c8),Do=[_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x210)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x1c1)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x201)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x1b3)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x19a)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x1fe)]];export class AIChatContextPanelView extends _0x37febe{[_0x19d5cf(0x1a8)];[_0x19d5cf(0x1f4)]=this[_0x19d5cf(0x20e)]();[_0x19d5cf(0x200)]=this[_0x19d5cf(0x20e)]();[_0x19d5cf(0x1c5)];[_0x19d5cf(0x1e8)];[_0x19d5cf(0x1dd)];[_0x19d5cf(0x1a5)];[_0x19d5cf(0x1d4)];[_0x19d5cf(0x1da)];[_0x19d5cf(0x1d6)];constructor(_0x3330d8,_0x3de151){const _0x311369=_0x19d5cf;super(_0x3330d8),this[_0x311369(0x1d6)]=_0x3de151,this[_0x311369(0x1f4)]=this[_0x311369(0x20e)](),this[_0x311369(0x200)]=this[_0x311369(0x20e)](),this[_0x311369(0x1a8)]=this[_0x311369(0x1d3)](_0x3330d8),this[_0x311369(0x1e8)]=this[_0x311369(0x187)](_0x3330d8),this[_0x311369(0x1dd)]=this[_0x311369(0x1c4)](_0x3330d8),this[_0x311369(0x1d4)]=this[_0x311369(0x1bf)](_0x3330d8,_0x3de151);const _0x18f2bb={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':mo,'overflowContainer':jo,'controlsButton':uo}};this[_0x311369(0x1c5)]=new _0xf11c38(_0x3330d8,this[_0x311369(0x1f4)],_0x18f2bb,this[_0x311369(0x1d6)],this),this[_0x311369(0x1da)]={'buttonView':this[_0x311369(0x1a8)],'balloonView':this[_0x311369(0x1e8)],'hideMethod':this[_0x311369(0x1e5)][_0x311369(0x1fa)](this),'showMethod':this[_0x311369(0x20f)][_0x311369(0x1fa)](this)},this[_0x311369(0x202)](),this[_0x311369(0x1c6)]();}[_0x19d5cf(0x1e4)](){const _0x16ebf6=_0x19d5cf;super[_0x16ebf6(0x1e4)](),this[_0x16ebf6(0x193)](),this[_0x16ebf6(0x1c5)][_0x16ebf6(0x196)](this[_0x16ebf6(0x1dc)]),this[_0x16ebf6(0x1c5)][_0x16ebf6(0x1c3)]();}[_0x19d5cf(0x1a1)](){const _0x2c0270=_0x19d5cf;super[_0x2c0270(0x1a1)](),this[_0x2c0270(0x1c5)][_0x2c0270(0x1a1)](),this[_0x2c0270(0x1d4)][_0x2c0270(0x1a1)]();}[_0x19d5cf(0x191)](_0x25a0b7,_0x3cd42d){const _0x3879bd=_0x19d5cf,_0x443c2c=this[_0x3879bd(0x1e6)](_0x25a0b7,_0x3879bd(0x1fc),!0x0,_0x3cd42d);this[_0x3879bd(0x185)](_0x443c2c,this[_0x3879bd(0x1f4)]),this[_0x3879bd(0x1c5)][_0x3879bd(0x1c3)]();}[_0x19d5cf(0x1af)](_0x3ca5b2){const _0x37f186=_0x19d5cf;this[_0x37f186(0x19e)](_0x3ca5b2,this[_0x37f186(0x1f4)]),this[_0x37f186(0x19e)](_0x3ca5b2,this[_0x37f186(0x1c5)][_0x37f186(0x1a9)]),this[_0x37f186(0x1c5)][_0x37f186(0x1c3)]();}[_0x19d5cf(0x20c)](_0x48c473,_0x3fcae){const _0x5145f9=_0x19d5cf;let _0x50376f=this[_0x5145f9(0x1f4)][_0x5145f9(0x208)](_0xac9186=>_0xac9186['id']===_0x48c473);_0x50376f||(_0x50376f=this[_0x5145f9(0x1c5)][_0x5145f9(0x1a9)][_0x5145f9(0x208)](_0xeac4e=>_0xeac4e['id']===_0x48c473)),_0x50376f&&(_0x50376f[_0x5145f9(0x18a)]=_0x3fcae);}[_0x19d5cf(0x1b6)](_0x119e0b){const _0x437873=_0x19d5cf;this[_0x437873(0x200)][_0x437873(0x1f6)]();for(const _0xddc00d of _0x119e0b){const _0x4c6d4d=this[_0x437873(0x1e6)](_0xddc00d,_0x437873(0x1ff),!0x1,!0x1);this[_0x437873(0x185)](_0x4c6d4d,this[_0x437873(0x200)]);}}[_0x19d5cf(0x1db)](){const _0xea61ee=_0x19d5cf;this[_0xea61ee(0x1f4)][_0xea61ee(0x1f6)](),this[_0xea61ee(0x1c5)][_0xea61ee(0x1f6)]();}[_0x19d5cf(0x1ed)](){const _0x80966f=_0x19d5cf;this[_0x80966f(0x200)][_0x80966f(0x1f6)]();}[_0x19d5cf(0x1ec)](_0x35f55f,_0x341462,_0x5011e9){const _0x40811e=_0x19d5cf;this[_0x40811e(0x1d4)][_0x40811e(0x1ec)](_0x35f55f,_0x341462,_0x5011e9);}[_0x19d5cf(0x1e5)](){const _0x2ec9c4=_0x19d5cf;this[_0x2ec9c4(0x184)](!0x1);}[_0x19d5cf(0x20f)](){const _0x56f647=_0x19d5cf;this[_0x56f647(0x184)](!0x0);}[_0x19d5cf(0x1be)](){const _0x294b6d=_0x19d5cf;this[_0x294b6d(0x1dd)][_0x294b6d(0x1b4)](),this[_0x294b6d(0x1a8)][_0x294b6d(0x1a2)]=!0x1,this[_0x294b6d(0x1a5)]&&this[_0x294b6d(0x1a5)][_0x294b6d(0x1f6)]();}[_0x19d5cf(0x1d8)](){const _0x49a7d4=_0x19d5cf;this[_0x49a7d4(0x1dd)][_0x49a7d4(0x1a3)](),this[_0x49a7d4(0x1a8)][_0x49a7d4(0x1a2)]=!0x0;}[_0x19d5cf(0x1a7)](_0x3e5fe9){const _0x1888c7=_0x19d5cf;this[_0x1888c7(0x1d4)][_0x1888c7(0x19f)](_0x3e5fe9),this[_0x1888c7(0x1a8)][_0x1888c7(0x1a2)]=!0x0;}[_0x19d5cf(0x1cd)](_0x358b12,_0xd3544d,_0x589102,_0x182c92){const _0x530632=_0x19d5cf;this[_0x530632(0x1d4)][_0x530632(0x1cd)](_0x358b12,_0x589102,_0x182c92);}[_0x19d5cf(0x203)](_0x289027){const _0x34d3c9=_0x19d5cf;this[_0x34d3c9(0x1d4)][_0x34d3c9(0x203)](_0x289027),this[_0x34d3c9(0x1a8)][_0x34d3c9(0x1a2)]=!0x1;}[_0x19d5cf(0x188)](_0x4d7930){const _0x1e76b2=_0x19d5cf;this[_0x1e76b2(0x1ea)](this[_0x1e76b2(0x1e8)],this[_0x1e76b2(0x1ba)],_0x4d7930),this[_0x1e76b2(0x186)](_0x4d7930);}[_0x19d5cf(0x186)](_0x27819d){const _0x2d45af=_0x19d5cf,_0x4c774e=!_0x27819d[_0x2d45af(0x198)][_0x2d45af(0x1f8)]&&_0x27819d[_0x2d45af(0x198)][_0x2d45af(0x206)],_0x5a5c77=_0x27819d[_0x2d45af(0x1b8)][_0x2d45af(0x206)],_0x2fa2d6=_0x27819d[_0x2d45af(0x183)][_0x2d45af(0x206)];this[_0x2d45af(0x1a8)][_0x2d45af(0x1e9)]=_0x4c774e||_0x5a5c77||_0x2fa2d6;}[_0x19d5cf(0x202)](){const _0x255534=_0x19d5cf;this[_0x255534(0x1b0)]({'tag':_0x255534(0x1a4),'attributes':{'class':[Po,_0x255534(0x1f7)]},'children':[{'tag':_0x255534(0x1a4),'attributes':{'class':Ro},'children':this[_0x255534(0x1f4)]}]});}[_0x19d5cf(0x1c6)](){const _0x5f161c=_0x19d5cf;this[_0x5f161c(0x1a8)]['on'](_0x5f161c(0x1b7),()=>{const _0x44c1b9=_0x5f161c;this[_0x44c1b9(0x1c0)]();});}[_0x19d5cf(0x1d3)](_0x3acf99){const _0x3d5b08=_0x19d5cf,_0x1dba6f=new _0x1a69a5(_0x3acf99);return _0x1dba6f[_0x3d5b08(0x1b2)]({'label':_0x513eb1(_0x3acf99,_0x3d5b08(0x19d)),'class':uo+'\x20'+Lo,'icon':_0x5bd2ef,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x1dba6f;}[_0x19d5cf(0x187)](_0x200a17){const _0x47a211=_0x19d5cf;return this[_0x47a211(0x1c2)](_0x200a17,Uo);}[_0x19d5cf(0x1c4)](_0x5c8689){const _0x5d09f6=_0x19d5cf,_0x3af17e=this[_0x5d09f6(0x1c2)](_0x5c8689,No);return this[_0x5d09f6(0x1cc)](_0x3af17e,_0x5c8689),_0x3af17e;}[_0x19d5cf(0x1bf)](_0x160cbb,_0x243280){const _0x172359=_0x19d5cf;return new _0x446091(_0x160cbb,_0x243280,{'onBackToContext':()=>{const _0x30d5ad=_0x19d7;this[_0x30d5ad(0x20f)](),this[_0x30d5ad(0x1e8)][_0x30d5ad(0x1e1)]({'target':this[_0x30d5ad(0x1a8)][_0x30d5ad(0x1dc)],'limiter':this[_0x30d5ad(0x1eb)](),'positions':Do});},'onResourceSelected':(_0x3dba9e,_0xee21ad)=>{const _0x20b160=_0x19d7;this[_0x20b160(0x1ab)](_0x20b160(0x190),{'source':_0x3dba9e,'resource':_0xee21ad});},'onLoadSourceResources':_0x2eb2f1=>{const _0x13e0c9=_0x19d7;this[_0x13e0c9(0x1ab)](_0x13e0c9(0x1f1),_0x2eb2f1);},'onBalloonClosed':()=>{const _0x4396b4=_0x19d7;this[_0x4396b4(0x1a8)][_0x4396b4(0x1a2)]=!0x1;},'getLimiterElement':()=>this[_0x172359(0x1eb)](),'getTargetElement':()=>this[_0x172359(0x1a8)][_0x172359(0x1dc)]});}[_0x19d5cf(0x1eb)](){const _0x480bdc=_0x19d5cf;return this[_0x480bdc(0x1dc)]?.[_0x480bdc(0x205)]('.'+Xo)||document[_0x480bdc(0x189)];}[_0x19d5cf(0x1c2)](_0x15486c,_0x4e42){const _0x12b578=_0x19d5cf,_0x27cf65=new _0x5ba009(_0x15486c);return _0x27cf65[_0x12b578(0x1f0)]({'attributes':{'class':_0x4e42}}),this[_0x12b578(0x1d6)][_0x12b578(0x19c)](_0x27cf65),_0x27cf65;}[_0x19d5cf(0x1ea)](_0x96e411,_0x548689,_0x412021){const _0x4048d7=_0x19d5cf;if(_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x1f6)](),!_0x412021[_0x4048d7(0x198)][_0x4048d7(0x1f8)]&&_0x412021[_0x4048d7(0x198)][_0x4048d7(0x206)]){const _0x5a9beb=this[_0x4048d7(0x1ac)](_0x548689,{'label':_0x513eb1(_0x548689,_0x4048d7(0x18e)),'icon':_0x50884a});_0x5a9beb['on'](_0x4048d7(0x1b7),()=>{const _0x374929=_0x4048d7;this[_0x374929(0x1ab)](_0x374929(0x1ca)),this[_0x374929(0x1e5)]();}),_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0x5a9beb);}if(_0x412021[_0x4048d7(0x1b8)][_0x4048d7(0x206)]){const _0xd21924=this[_0x4048d7(0x1ac)](_0x548689,{'label':_0x513eb1(_0x548689,_0x4048d7(0x207)),'icon':_0x4a9546});_0xd21924['on'](_0x4048d7(0x1b7),()=>{const _0xb5316=_0x4048d7;this[_0xb5316(0x1e5)](),this[_0xb5316(0x1d8)](),this[_0xb5316(0x1dd)][_0xb5316(0x1e1)]({'target':this[_0xb5316(0x1a8)][_0xb5316(0x1dc)],'limiter':this[_0xb5316(0x1eb)](),'positions':Do}),this[_0xb5316(0x1a5)][_0xb5316(0x1e7)]();}),_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0xd21924);}if(_0x412021[_0x4048d7(0x183)][_0x4048d7(0x206)]){const _0x16575d=new _0x1aa42d(_0x548689);_0x16575d[_0x4048d7(0x1b2)]({'label':_0x513eb1(_0x548689,_0x4048d7(0x1cb)),'icon':_0x1e54e6,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x16575d['on'](_0x4048d7(0x1b9),(_0x199d60,_0x240d94)=>{const _0x1ff8e5=_0x4048d7;this[_0x1ff8e5(0x1ab)](_0x1ff8e5(0x18f),_0x240d94),this[_0x1ff8e5(0x1e5)]();}),_0x16575d[_0x4048d7(0x1fd)]=!0x0,_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0x16575d);}for(const _0x141822 of _0x412021[_0x4048d7(0x19b)]){const _0x449a76=this[_0x4048d7(0x1ac)](_0x548689,{'label':_0x141822[_0x4048d7(0x199)],'icon':_0x141822[_0x4048d7(0x1ae)]||_0x82fc53,'type':_0x4048d7(0x1f5)});_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0x449a76),_0x449a76['on'](_0x4048d7(0x1b7),()=>{const _0x19b15d=_0x4048d7;this[_0x19b15d(0x1e5)](),this[_0x19b15d(0x1a7)](_0x141822);});}}[_0x19d5cf(0x1cc)](_0x4d6e3a,_0x29946){const _0x3ce44e=_0x19d5cf;this[_0x3ce44e(0x1a5)]=new _0x13a8f3(_0x29946),this[_0x3ce44e(0x1a5)]['on'](_0x3ce44e(0x18b),(_0xa2c2cd,_0x111398)=>{const _0x154a06=_0x3ce44e;this[_0x154a06(0x1aa)](_0x111398);}),this[_0x3ce44e(0x1a5)]['on'](_0x3ce44e(0x1de),()=>{const _0x5bc2f2=_0x3ce44e;this[_0x5bc2f2(0x1be)](),this[_0x5bc2f2(0x20f)](),this[_0x5bc2f2(0x1e8)][_0x5bc2f2(0x1e1)]({'target':this[_0x5bc2f2(0x1a8)][_0x5bc2f2(0x1dc)],'limiter':this[_0x5bc2f2(0x1eb)](),'positions':Do});}),this[_0x3ce44e(0x1a5)]['on'](_0x3ce44e(0x1ee),()=>{const _0x1e836b=_0x3ce44e;this[_0x1e836b(0x1dd)][_0x1e836b(0x1d9)]&&this[_0x1e836b(0x1dd)][_0x1e836b(0x1e1)]({'target':this[_0x1e836b(0x1a8)][_0x1e836b(0x1dc)],'limiter':this[_0x1e836b(0x1eb)](),'positions':Do});}),_0x4d6e3a[_0x3ce44e(0x1b5)][_0x3ce44e(0x19c)](this[_0x3ce44e(0x1a5)]);}[_0x19d5cf(0x1ac)](_0x3cf052,_0x488391){const _0x5c7311=_0x19d5cf,_0x28945d=_0x5c7311(0x1f5)===_0x488391[_0x5c7311(0x1fb)]?new SourcesBalloonButtonView(_0x3cf052):new _0x1a69a5(_0x3cf052);return _0x28945d[_0x5c7311(0x1b2)]({'label':_0x488391[_0x5c7311(0x199)],'icon':_0x488391[_0x5c7311(0x1ae)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x28945d;}[_0x19d5cf(0x193)](){const _0x164c61=_0x19d5cf;this[_0x164c61(0x20d)](),this[_0x164c61(0x1e0)]();}[_0x19d5cf(0x1e0)](){const _0x52c465=_0x19d5cf;_0x4e344e({'emitter':this[_0x52c465(0x1dd)],'contextElements':[this[_0x52c465(0x1dd)][_0x52c465(0x1dc)]],'callback':()=>{const _0x161619=_0x52c465;this[_0x161619(0x1be)]();},'activator':()=>this[_0x52c465(0x1dd)][_0x52c465(0x1d9)]});}[_0x19d5cf(0x184)](_0x1a1ecd){const _0x32d0df=_0x19d5cf,_0x4c52be=this[_0x32d0df(0x1da)];_0x4c52be[_0x32d0df(0x18c)][_0x32d0df(0x1a2)]=_0x1a1ecd,_0x1a1ecd?_0x4c52be[_0x32d0df(0x204)][_0x32d0df(0x1a3)]():_0x4c52be[_0x32d0df(0x204)][_0x32d0df(0x1b4)]();}[_0x19d5cf(0x20d)](){const _0x51ab3a=_0x19d5cf,{balloonView:_0x4c8474,buttonView:_0x14da55,hideMethod:_0x530054}=this[_0x51ab3a(0x1da)];_0x4e344e({'emitter':_0x4c8474,'contextElements':[_0x4c8474[_0x51ab3a(0x1dc)],_0x14da55[_0x51ab3a(0x1dc)]],'callback':()=>{_0x530054();},'activator':()=>_0x14da55[_0x51ab3a(0x1a2)]&&!this[_0x51ab3a(0x1dd)][_0x51ab3a(0x1d9)]&&!this[_0x51ab3a(0x1d4)][_0x51ab3a(0x1d1)]()});}[_0x19d5cf(0x1e6)](_0x4cd569,_0xb2cfe6,_0x885c76=!0x1,_0x592cb2=!0x1){const _0x44d1f0=_0x19d5cf,_0x2e5b37=_0x44d1f0(0x1ff)===_0xb2cfe6||!0x0===_0x4cd569[_0x44d1f0(0x1ad)],_0x51f926=new _0x2fdbd2(this[_0x44d1f0(0x1ba)],_0x4cd569,_0x2e5b37,_0x885c76,_0x592cb2);return _0x2e5b37||_0x51f926['on'](_0x44d1f0(0x1ef),()=>{const _0x16f6e8=_0x44d1f0;this[_0x16f6e8(0x1ab)](_0x16f6e8(0x1af),_0x51f926['id']);}),_0x51f926;}[_0x19d5cf(0x185)](_0x47caf7,_0xcc820c){const _0x2d97de=_0x19d5cf;_0xcc820c[_0x2d97de(0x19c)](_0x47caf7,0x0);}[_0x19d5cf(0x19e)](_0x346e27,_0x5a8ac6){const _0x31cd09=_0x19d5cf,_0x106965=_0x5a8ac6[_0x31cd09(0x208)](_0x5de15a=>_0x5de15a['id']===_0x346e27);_0x106965&&_0x5a8ac6[_0x31cd09(0x20a)](_0x106965);}[_0x19d5cf(0x1c0)](){const _0x373856=_0x19d5cf;this[_0x373856(0x1a8)][_0x373856(0x1a2)]?this[_0x373856(0x1e5)]():(this[_0x373856(0x20f)](),this[_0x373856(0x1e8)][_0x373856(0x1e1)]({'target':this[_0x373856(0x1a8)][_0x373856(0x1dc)],'limiter':this[_0x373856(0x1eb)](),'positions':Do}));}[_0x19d5cf(0x1aa)](_0x69d33){const _0x20847c=_0x19d5cf;this[_0x20847c(0x1a5)][_0x20847c(0x1f6)](),this[_0x20847c(0x1be)](),this[_0x20847c(0x1ab)](_0x20847c(0x1e2),_0x69d33);}}function _0x5cad(){const _0x50b887=['5jVLvkR','setContainerElement','184813NNuygQ','document','label','southArrowNorth','sources','add','AI_CHAT_CONTEXT_ADD_CONTEXT','_removeContextFromCollection','showSourceResourcesBalloon','menuitem','destroy','isOn','show','div','_urlInputView','__arrow','_showSourceResourcesBalloon','addContextButtonView','overflowChips','_handleUrlSubmit','fire','_createBalloonButton','isReadOnly','icon','removeContextItem','setTemplate','ck-ai-chat-context-controls__show-more-balloon-panel','set','southArrowNorthWest','hide','content','setConversationContext','execute','urls','done','locale','ck-ai-chat-context-controls__add-context-balloon-panel','1033371ldRIOi','712737PdsUaH','hideUrlBalloonPanel','_createResourcesBalloonView','_handleAddContextButtonClick','northArrowSouth','_createBaseBalloonPanel','reorganizeChips','_createUrlBalloonPanelView','_overflowManager','_bindEventHandlers','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat','7XeXFKz','addDocumentToContext','AI_CHAT_CONTEXT_FILE_LABEL','_addUrlContent','populateSourceResourceBalloon','ck-ai-chat-context-controls__add-context-button','_createArrowView','ck-ai-chat-context-controls__balloon-button','isAnyResourceBalloonVisible','ck-ai-chat-context-controls__pending-contexts','_createAddContextButtonView','_resourcesBalloonView','ck-ai-chat-context-controls__balloon-button-source','bodyCollection','ck-ai-chat-controls_context_show-more-button','showUrlBalloonPanel','isVisible','_addContextBalloonConfig','clearCurrentContextItems','element','_urlBalloonPanelView','cancel','700332ISwnno','_setupUrlBalloonClickOutsideHandler','pin','addUrlToContext','837438rLuhOy','render','hideAddContextBalloonPanel','_createContextButton','focus','_addContextBalloonPanelView','isEnabled','_setBalloonPanelContent','_getLimiterElement','updateResourceState','clearConversationContextItems','refreshBalloon','removeContextItemChip','extendTemplate','loadSourceResources','children','130fINiaQ','_currentContextsChips','source','clear','ck-reset_all-excluded','isHidden','ck-ai-chat-context-controls__url-balloon-panel','bind','type','current','tooltip','southArrowNorthEast','conversation','_conversationContextsChips','northArrowSouthEast','_setupTemplate','closeSourceResourceBalloon','balloonView','closest','enabled','AI_CHAT_CONTEXT_URL_LABEL','find','ck-ai-chat-controls-button','remove','153368uBLsVr','setContextItemLoading','_setupAddContextBalloonClickOutsideHandler','createCollection','showAddContextBalloonPanel','northArrowSouthWest','arrowView','files','_toggleAddContextBalloon','_addContextToCollection','_setAddContextButtonEnabled','_createAddContextBalloonPanelView','setAddContextOptions','body','isLoading','submitUrl','buttonView','defaultPositions','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addFileToContext','addResourceToContext','addContextItem','ck-ai-chat-context-controls','_setupAllBalloonClickOutsideHandlers','1762164WJkaFG'];_0x5cad=function(){return _0x50b887;};return _0x5cad();}export class SourcesBalloonButtonView extends _0x1a69a5{[_0x19d5cf(0x182)];constructor(_0x4fabfa){const _0x185824=_0x19d5cf;super(_0x4fabfa),this[_0x185824(0x1b2)]({'withText':!0x0,'role':_0x185824(0x1a0)}),this[_0x185824(0x182)]=this[_0x185824(0x1cf)](),this[_0x185824(0x1f0)]({'attributes':{'class':[Ho]}});}[_0x19d5cf(0x1e4)](){const _0x1cdc4f=_0x19d5cf;super[_0x1cdc4f(0x1e4)](),this[_0x1cdc4f(0x1f2)][_0x1cdc4f(0x19c)](this[_0x1cdc4f(0x182)]);}[_0x19d5cf(0x1cf)](){const _0x31f1c0=_0x19d5cf,_0x568f8c=new _0x1e9b06();return _0x568f8c[_0x31f1c0(0x1b5)]=_0x52fdbc,_0x568f8c[_0x31f1c0(0x1f0)]({'attributes':{'class':Ho+_0x31f1c0(0x1a6)}}),_0x568f8c;}}
|
|
23
|
+
function _0x1e5b(){const _0x10971c=['isHidden','set','_setAddContextButtonEnabled','_addContextBalloonConfig','updateResourceState','ck-ai-chat-context-chips-wrapper-balloon','type','3827362MJuBik','addResourceToContext','addFileToContext','addContextButtonView','addDocumentToContext','southArrowNorthWest','setTemplate','_urlInputView','document','current','79968YrXipK','createCollection','sources','enabled','_createArrowView','removeContextItemChip','ck-ai-chat-context-controls','icon','menuitem','conversation','ck-ai-chat-controls_context_show-more-button','_showSourceResourcesBalloon','hideAddContextBalloonPanel','isOn','destroy','_handleAddContextButtonClick','focus','buttonView','submitUrl','_createUrlBalloonPanelView','setConversationContext','__arrow','3028725BBIpTS','6hHFrdb','clear','ck-reset_all-excluded','southArrowNorth','add','addContextItem','ck-ai-chat-context-controls__balloon-button-source','hide','div','_setBalloonPanelContent','setAddContextOptions','_conversationContextsChips','3SfpNgu','935164YAYJqE','AI_CHAT_CONTEXT_URL_LABEL','ck-ai-chat-context-controls__pending-contexts','_getLimiterElement','execute','tooltip','4378pjxWQY','clearCurrentContextItems','_handleUrlSubmit','_urlBalloonPanelView','removeContextItem','159065gjZQjS','files','_createResourcesBalloonView','setContextItemLoading','closest','southArrowNorthEast','populateSourceResourceBalloon','bind','_overflowManager','showAddContextBalloonPanel','defaultPositions','done','locale','urls','1602265zqYDBY','northArrowSouth','northArrowSouthEast','_setupTemplate','AI_CHAT_CONTEXT_FILE_LABEL','isLoading','_addContextToCollection','setContainerElement','northArrowSouthWest','find','_addContextBalloonPanelView','isAnyResourceBalloonVisible','remove','10CuLrRC','8sNzIzB','_setupUrlBalloonClickOutsideHandler','_createAddContextBalloonPanelView','arrowView','extendTemplate','closeSourceResourceBalloon','_createContextButton','208FqdtSp','_removeContextFromCollection','balloonView','render','_toggleAddContextBalloon','refreshBalloon','content','ck-ai-chat-controls-button','show','fire','ck-ai-chat-context-controls__balloon-button','_createBaseBalloonPanel','children','_resourcesBalloonView','showSourceResourcesBalloon','ck-ai-chat-context-controls__add-context-balloon-panel','ck-ai-chat','source','isEnabled','showUrlBalloonPanel','_setupAddContextBalloonClickOutsideHandler','_currentContextsChips','hideUrlBalloonPanel','_setupAllBalloonClickOutsideHandlers','element','label','cancel','overflowChips','_createAddContextButtonView','AI_CHAT_CONTEXT_ADD_CONTEXT','reorganizeChips','addUrlToContext','_addUrlContent','_bindEventHandlers','loadSourceResources','pin','ck-ai-chat-context-controls__show-more-balloon-panel','_createBalloonButton','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','58JCkTFv','clearConversationContextItems','isReadOnly','isVisible','bodyCollection','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__url-balloon-panel','body'];_0x1e5b=function(){return _0x10971c;};return _0x1e5b();}const _0x2a1b80=_0x20f6;(function(_0x4aa0c9,_0x26ba98){const _0x39d9fa=_0x20f6,_0x2c0185=_0x4aa0c9();while(!![]){try{const _0x285601=-parseInt(_0x39d9fa(0x190))/0x1*(-parseInt(_0x39d9fa(0x1d3))/0x2)+parseInt(_0x39d9fa(0x1cc))/0x3*(-parseInt(_0x39d9fa(0x1cd))/0x4)+-parseInt(_0x39d9fa(0x1d8))/0x5*(parseInt(_0x39d9fa(0x1c0))/0x6)+-parseInt(_0x39d9fa(0x1e6))/0x7+-parseInt(_0x39d9fa(0x1f4))/0x8*(-parseInt(_0x39d9fa(0x1bf))/0x9)+-parseInt(_0x39d9fa(0x1f3))/0xa*(-parseInt(_0x39d9fa(0x19f))/0xb)+parseInt(_0x39d9fa(0x1a9))/0xc*(-parseInt(_0x39d9fa(0x1fb))/0xd);if(_0x285601===_0x26ba98)break;else _0x2c0185['push'](_0x2c0185['shift']());}catch(_0x576243){_0x2c0185['push'](_0x2c0185['shift']());}}}(_0x1e5b,0x33582));import{BalloonPanelView as _0xd97f0a,ButtonView as _0x53f213,clickOutsideHandler as _0xb7579c,FileDialogButtonView as _0x5d0e9f,IconView as _0xf2b7d4,View as _0x5c5759}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4e693f,IconDocument as _0x5baeda,IconDocumentOutline as _0x17490f,IconDropdownArrow as _0x1b8916,IconLink as _0x3c3bb6,IconPaperClip as _0x509479}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x36aaac}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x5ffd88}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x5b307c}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1a0bfc}from'../../../aicore/utils/common-translations.js';function _0x20f6(_0x500f39,_0x39cae4){const _0x1e5bee=_0x1e5b();return _0x20f6=function(_0x20f663,_0x2b48fc){_0x20f663=_0x20f663-0x175;let _0x33a997=_0x1e5bee[_0x20f663];return _0x33a997;},_0x20f6(_0x500f39,_0x39cae4);}import{AIChatResourcesBalloonView as _0x48750c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2a1b80(0x1a3),_0x2a1b80(0x1a1),_0x2a1b80(0x188),_0x2a1b80(0x1a0),_0x2a1b80(0x1d7),_0x2a1b80(0x18b)];const po=_0x2a1b80(0x1af),Bo=_0x2a1b80(0x1cf),bo=_0x2a1b80(0x178),To=_0x2a1b80(0x195),Ao=_0x2a1b80(0x196),ko=_0x2a1b80(0x205),Eo=_0x2a1b80(0x1c6),vo=_0x2a1b80(0x202),go=_0x2a1b80(0x19d),Vo=_0x2a1b80(0x1b3),fo=_0x2a1b80(0x18d),Io=_0x2a1b80(0x179),Po=[_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1ee)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1e7)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1e8)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1a4)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1c3)],_0xd97f0a[_0x2a1b80(0x1e2)][_0x2a1b80(0x1dd)]];export class AIChatContextPanelView extends _0x5c5759{[_0x2a1b80(0x1a2)];[_0x2a1b80(0x17e)]=this[_0x2a1b80(0x1aa)]();[_0x2a1b80(0x1cb)]=this[_0x2a1b80(0x1aa)]();[_0x2a1b80(0x1e0)];[_0x2a1b80(0x1f0)];[_0x2a1b80(0x1d6)];[_0x2a1b80(0x1a6)];[_0x2a1b80(0x176)];[_0x2a1b80(0x19b)];[_0x2a1b80(0x194)];constructor(_0x10b443,_0x157913){const _0x4500d7=_0x2a1b80;super(_0x10b443),this[_0x4500d7(0x194)]=_0x157913,this[_0x4500d7(0x17e)]=this[_0x4500d7(0x1aa)](),this[_0x4500d7(0x1cb)]=this[_0x4500d7(0x1aa)](),this[_0x4500d7(0x1a2)]=this[_0x4500d7(0x185)](_0x10b443),this[_0x4500d7(0x1f0)]=this[_0x4500d7(0x1f6)](_0x10b443),this[_0x4500d7(0x1d6)]=this[_0x4500d7(0x1bc)](_0x10b443),this[_0x4500d7(0x176)]=this[_0x4500d7(0x1da)](_0x10b443,_0x157913);const _0x49a7a6={'cssClasses':{'showMoreButton':Vo,'showMoreBalloon':fo,'overflowContainer':go,'controlsButton':vo}};this[_0x4500d7(0x1e0)]=new _0x5b307c(_0x10b443,this[_0x4500d7(0x17e)],_0x49a7a6,this[_0x4500d7(0x194)],this),this[_0x4500d7(0x19b)]={'buttonView':this[_0x4500d7(0x1a2)],'balloonView':this[_0x4500d7(0x1f0)],'hideMethod':this[_0x4500d7(0x1b5)][_0x4500d7(0x1df)](this),'showMethod':this[_0x4500d7(0x1e1)][_0x4500d7(0x1df)](this)},this[_0x4500d7(0x1e9)](),this[_0x4500d7(0x18a)]();}[_0x2a1b80(0x1fe)](){const _0x2841a1=_0x2a1b80;super[_0x2841a1(0x1fe)](),this[_0x2841a1(0x180)](),this[_0x2841a1(0x1e0)][_0x2841a1(0x1ed)](this[_0x2841a1(0x181)]),this[_0x2841a1(0x1e0)][_0x2841a1(0x187)]();}[_0x2a1b80(0x1b7)](){const _0x390068=_0x2a1b80;super[_0x390068(0x1b7)](),this[_0x390068(0x1e0)][_0x390068(0x1b7)](),this[_0x390068(0x176)][_0x390068(0x1b7)]();}[_0x2a1b80(0x1c5)](_0x9037dd,_0x503845){const _0x36eb0e=_0x2a1b80,_0x245813=this[_0x36eb0e(0x1fa)](_0x9037dd,_0x36eb0e(0x1a8),!0x0,_0x503845);this[_0x36eb0e(0x1ec)](_0x245813,this[_0x36eb0e(0x17e)]),this[_0x36eb0e(0x1e0)][_0x36eb0e(0x187)]();}[_0x2a1b80(0x1d7)](_0x2eee89){const _0x3f1f9c=_0x2a1b80;this[_0x3f1f9c(0x1fc)](_0x2eee89,this[_0x3f1f9c(0x17e)]),this[_0x3f1f9c(0x1fc)](_0x2eee89,this[_0x3f1f9c(0x1e0)][_0x3f1f9c(0x184)]),this[_0x3f1f9c(0x1e0)][_0x3f1f9c(0x187)]();}[_0x2a1b80(0x1db)](_0xd7f09c,_0xd6e52){const _0x35cdfe=_0x2a1b80;let _0x551e6f=this[_0x35cdfe(0x17e)][_0x35cdfe(0x1ef)](_0x133960=>_0x133960['id']===_0xd7f09c);_0x551e6f||(_0x551e6f=this[_0x35cdfe(0x1e0)][_0x35cdfe(0x184)][_0x35cdfe(0x1ef)](_0x5398f7=>_0x5398f7['id']===_0xd7f09c)),_0x551e6f&&(_0x551e6f[_0x35cdfe(0x1eb)]=_0xd6e52);}[_0x2a1b80(0x1bd)](_0x32bc75){const _0x4f3c35=_0x2a1b80;this[_0x4f3c35(0x1cb)][_0x4f3c35(0x1c1)]();for(const _0x4f4b0a of _0x32bc75){const _0x32ed8c=this[_0x4f3c35(0x1fa)](_0x4f4b0a,_0x4f3c35(0x1b2),!0x1,!0x1);this[_0x4f3c35(0x1ec)](_0x32ed8c,this[_0x4f3c35(0x1cb)]);}}[_0x2a1b80(0x1d4)](){const _0x30a8f3=_0x2a1b80;this[_0x30a8f3(0x17e)][_0x30a8f3(0x1c1)](),this[_0x30a8f3(0x1e0)][_0x30a8f3(0x1c1)]();}[_0x2a1b80(0x191)](){const _0x283fd0=_0x2a1b80;this[_0x283fd0(0x1cb)][_0x283fd0(0x1c1)]();}[_0x2a1b80(0x19c)](_0x1c443e,_0x4ef5be,_0x47876d){const _0x238bfb=_0x2a1b80;this[_0x238bfb(0x176)][_0x238bfb(0x19c)](_0x1c443e,_0x4ef5be,_0x47876d);}[_0x2a1b80(0x1b5)](){const _0x476cfd=_0x2a1b80;this[_0x476cfd(0x1ff)](!0x1);}[_0x2a1b80(0x1e1)](){const _0x15e7d7=_0x2a1b80;this[_0x15e7d7(0x1ff)](!0x0);}[_0x2a1b80(0x17f)](){const _0x53eff7=_0x2a1b80;this[_0x53eff7(0x1d6)][_0x53eff7(0x1c7)](),this[_0x53eff7(0x1a2)][_0x53eff7(0x1b6)]=!0x1,this[_0x53eff7(0x1a6)]&&this[_0x53eff7(0x1a6)][_0x53eff7(0x1c1)]();}[_0x2a1b80(0x17c)](){const _0x567c04=_0x2a1b80;this[_0x567c04(0x1d6)][_0x567c04(0x203)](),this[_0x567c04(0x1a2)][_0x567c04(0x1b6)]=!0x0;}[_0x2a1b80(0x1b4)](_0x25bf91){const _0x3c11b0=_0x2a1b80;this[_0x3c11b0(0x176)][_0x3c11b0(0x177)](_0x25bf91),this[_0x3c11b0(0x1a2)][_0x3c11b0(0x1b6)]=!0x0;}[_0x2a1b80(0x1de)](_0x387de9,_0x24287c,_0x790fdc,_0x901129){const _0x1579d3=_0x2a1b80;this[_0x1579d3(0x176)][_0x1579d3(0x1de)](_0x387de9,_0x790fdc,_0x901129);}[_0x2a1b80(0x1f9)](_0x89ce1e){const _0x1232d6=_0x2a1b80;this[_0x1232d6(0x176)][_0x1232d6(0x1f9)](_0x89ce1e),this[_0x1232d6(0x1a2)][_0x1232d6(0x1b6)]=!0x1;}[_0x2a1b80(0x1ca)](_0x4b5351){const _0xfafe49=_0x2a1b80;this[_0xfafe49(0x1c9)](this[_0xfafe49(0x1f0)],this[_0xfafe49(0x1e4)],_0x4b5351),this[_0xfafe49(0x19a)](_0x4b5351);}[_0x2a1b80(0x19a)](_0x100b47){const _0x553366=_0x2a1b80,_0x5e5c03=!_0x100b47[_0x553366(0x1a7)][_0x553366(0x198)]&&_0x100b47[_0x553366(0x1a7)][_0x553366(0x1ac)],_0x9cd169=_0x100b47[_0x553366(0x1e5)][_0x553366(0x1ac)],_0x49f6c1=_0x100b47[_0x553366(0x1d9)][_0x553366(0x1ac)];this[_0x553366(0x1a2)][_0x553366(0x17b)]=_0x5e5c03||_0x9cd169||_0x49f6c1;}[_0x2a1b80(0x1e9)](){const _0x501bd1=_0x2a1b80;this[_0x501bd1(0x1a5)]({'tag':_0x501bd1(0x1c8),'attributes':{'class':[po,_0x501bd1(0x1c2)]},'children':[{'tag':_0x501bd1(0x1c8),'attributes':{'class':Bo},'children':this[_0x501bd1(0x17e)]}]});}[_0x2a1b80(0x18a)](){const _0x333f07=_0x2a1b80;this[_0x333f07(0x1a2)]['on'](_0x333f07(0x1d1),()=>{const _0x598f50=_0x333f07;this[_0x598f50(0x1b8)]();});}[_0x2a1b80(0x185)](_0x19f37d){const _0x10e6ab=_0x2a1b80,_0x4e098e=new _0x53f213(_0x19f37d);return _0x4e098e[_0x10e6ab(0x199)]({'label':_0x1a0bfc(_0x19f37d,_0x10e6ab(0x186)),'class':vo+'\x20'+To,'icon':_0x509479,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x4e098e;}[_0x2a1b80(0x1f6)](_0x3e5995){const _0x1d91da=_0x2a1b80;return this[_0x1d91da(0x206)](_0x3e5995,bo);}[_0x2a1b80(0x1bc)](_0x35c282){const _0x178c1f=_0x2a1b80,_0x33d105=this[_0x178c1f(0x206)](_0x35c282,Ao);return this[_0x178c1f(0x189)](_0x33d105,_0x35c282),_0x33d105;}[_0x2a1b80(0x1da)](_0x53562e,_0x4ec004){const _0x5be9c1=_0x2a1b80;return new _0x48750c(_0x53562e,_0x4ec004,{'onBackToContext':()=>{const _0x4f22b5=_0x20f6;this[_0x4f22b5(0x1e1)](),this[_0x4f22b5(0x1f0)][_0x4f22b5(0x18c)]({'target':this[_0x4f22b5(0x1a2)][_0x4f22b5(0x181)],'limiter':this[_0x4f22b5(0x1d0)](),'positions':Po});},'onResourceSelected':(_0x5c76bc,_0x8d922a)=>{const _0x1ab08a=_0x20f6;this[_0x1ab08a(0x204)](_0x1ab08a(0x1a0),{'source':_0x5c76bc,'resource':_0x8d922a});},'onLoadSourceResources':_0x465279=>{const _0x524b20=_0x20f6;this[_0x524b20(0x204)](_0x524b20(0x18b),_0x465279);},'onBalloonClosed':()=>{const _0x288c16=_0x20f6;this[_0x288c16(0x1a2)][_0x288c16(0x1b6)]=!0x1;},'getLimiterElement':()=>this[_0x5be9c1(0x1d0)](),'getTargetElement':()=>this[_0x5be9c1(0x1a2)][_0x5be9c1(0x181)]});}[_0x2a1b80(0x1d0)](){const _0x54d3f4=_0x2a1b80;return this[_0x54d3f4(0x181)]?.[_0x54d3f4(0x1dc)]('.'+Io)||document[_0x54d3f4(0x197)];}[_0x2a1b80(0x206)](_0xa0ffbb,_0x4ce952){const _0x19f690=_0x2a1b80,_0x458097=new _0xd97f0a(_0xa0ffbb);return _0x458097[_0x19f690(0x1f8)]({'attributes':{'class':_0x4ce952}}),this[_0x19f690(0x194)][_0x19f690(0x1c4)](_0x458097),_0x458097;}[_0x2a1b80(0x1c9)](_0x293821,_0x2ca0eb,_0x15bc06){const _0x249a4c=_0x2a1b80;if(_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c1)](),!_0x15bc06[_0x249a4c(0x1a7)][_0x249a4c(0x198)]&&_0x15bc06[_0x249a4c(0x1a7)][_0x249a4c(0x1ac)]){const _0x1a4fb3=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x18f)),'icon':_0x5baeda});_0x1a4fb3['on'](_0x249a4c(0x1d1),()=>{const _0x23832f=_0x249a4c;this[_0x23832f(0x204)](_0x23832f(0x1a3)),this[_0x23832f(0x1b5)]();}),_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x1a4fb3);}if(_0x15bc06[_0x249a4c(0x1e5)][_0x249a4c(0x1ac)]){const _0x141eb3=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x1ce)),'icon':_0x3c3bb6});_0x141eb3['on'](_0x249a4c(0x1d1),()=>{const _0x5c7f4f=_0x249a4c;this[_0x5c7f4f(0x1b5)](),this[_0x5c7f4f(0x17c)](),this[_0x5c7f4f(0x1d6)][_0x5c7f4f(0x18c)]({'target':this[_0x5c7f4f(0x1a2)][_0x5c7f4f(0x181)],'limiter':this[_0x5c7f4f(0x1d0)](),'positions':Po}),this[_0x5c7f4f(0x1a6)][_0x5c7f4f(0x1b9)]();}),_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x141eb3);}if(_0x15bc06[_0x249a4c(0x1d9)][_0x249a4c(0x1ac)]){const _0x35777c=new _0x5d0e9f(_0x2ca0eb);_0x35777c[_0x249a4c(0x199)]({'label':_0x1a0bfc(_0x2ca0eb,_0x249a4c(0x1ea)),'icon':_0x4e693f,'withText':!0x0,'tooltip':!0x0,'class':ko,'allowMultipleFiles':!0x0}),_0x35777c['on'](_0x249a4c(0x1e3),(_0x4c0484,_0x2be06b)=>{const _0x354b9a=_0x249a4c;this[_0x354b9a(0x204)](_0x354b9a(0x1a1),_0x2be06b),this[_0x354b9a(0x1b5)]();}),_0x35777c[_0x249a4c(0x1d2)]=!0x0,_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x35777c);}for(const _0x41cd4b of _0x15bc06[_0x249a4c(0x1ab)]){const _0x427d56=this[_0x249a4c(0x18e)](_0x2ca0eb,{'label':_0x41cd4b[_0x249a4c(0x182)],'icon':_0x41cd4b[_0x249a4c(0x1b0)]||_0x17490f,'type':_0x249a4c(0x17a)});_0x293821[_0x249a4c(0x201)][_0x249a4c(0x1c4)](_0x427d56),_0x427d56['on'](_0x249a4c(0x1d1),()=>{const _0x5bb7c5=_0x249a4c;this[_0x5bb7c5(0x1b5)](),this[_0x5bb7c5(0x1b4)](_0x41cd4b);});}}[_0x2a1b80(0x189)](_0x260d5a,_0x36d75a){const _0x3811f6=_0x2a1b80;this[_0x3811f6(0x1a6)]=new _0x5ffd88(_0x36d75a),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x1bb),(_0x2edd61,_0x4e27c1)=>{const _0x4a2199=_0x3811f6;this[_0x4a2199(0x1d5)](_0x4e27c1);}),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x183),()=>{const _0x8538d8=_0x3811f6;this[_0x8538d8(0x17f)](),this[_0x8538d8(0x1e1)](),this[_0x8538d8(0x1f0)][_0x8538d8(0x18c)]({'target':this[_0x8538d8(0x1a2)][_0x8538d8(0x181)],'limiter':this[_0x8538d8(0x1d0)](),'positions':Po});}),this[_0x3811f6(0x1a6)]['on'](_0x3811f6(0x200),()=>{const _0x51b051=_0x3811f6;this[_0x51b051(0x1d6)][_0x51b051(0x193)]&&this[_0x51b051(0x1d6)][_0x51b051(0x18c)]({'target':this[_0x51b051(0x1a2)][_0x51b051(0x181)],'limiter':this[_0x51b051(0x1d0)](),'positions':Po});}),_0x260d5a[_0x3811f6(0x201)][_0x3811f6(0x1c4)](this[_0x3811f6(0x1a6)]);}[_0x2a1b80(0x18e)](_0x4a95b6,_0x28c627){const _0x4170d1=_0x2a1b80,_0x2a2716=_0x4170d1(0x17a)===_0x28c627[_0x4170d1(0x19e)]?new SourcesBalloonButtonView(_0x4a95b6):new _0x53f213(_0x4a95b6);return _0x2a2716[_0x4170d1(0x199)]({'label':_0x28c627[_0x4170d1(0x182)],'icon':_0x28c627[_0x4170d1(0x1b0)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':ko}),_0x2a2716;}[_0x2a1b80(0x180)](){const _0x414004=_0x2a1b80;this[_0x414004(0x17d)](),this[_0x414004(0x1f5)]();}[_0x2a1b80(0x1f5)](){const _0x4da4df=_0x2a1b80;_0xb7579c({'emitter':this[_0x4da4df(0x1d6)],'contextElements':[this[_0x4da4df(0x1d6)][_0x4da4df(0x181)]],'callback':()=>{const _0x478cc3=_0x4da4df;this[_0x478cc3(0x17f)]();},'activator':()=>this[_0x4da4df(0x1d6)][_0x4da4df(0x193)]});}[_0x2a1b80(0x1ff)](_0x563d21){const _0x24d741=_0x2a1b80,_0xed96d6=this[_0x24d741(0x19b)];_0xed96d6[_0x24d741(0x1ba)][_0x24d741(0x1b6)]=_0x563d21,_0x563d21?_0xed96d6[_0x24d741(0x1fd)][_0x24d741(0x203)]():_0xed96d6[_0x24d741(0x1fd)][_0x24d741(0x1c7)]();}[_0x2a1b80(0x17d)](){const _0x487763=_0x2a1b80,{balloonView:_0x31ec94,buttonView:_0x384993,hideMethod:_0xd7771e}=this[_0x487763(0x19b)];_0xb7579c({'emitter':_0x31ec94,'contextElements':[_0x31ec94[_0x487763(0x181)],_0x384993[_0x487763(0x181)]],'callback':()=>{_0xd7771e();},'activator':()=>_0x384993[_0x487763(0x1b6)]&&!this[_0x487763(0x1d6)][_0x487763(0x193)]&&!this[_0x487763(0x176)][_0x487763(0x1f1)]()});}[_0x2a1b80(0x1fa)](_0x4ac952,_0x3b65e7,_0x53b6b1=!0x1,_0x830b05=!0x1){const _0x13431c=_0x2a1b80,_0x4724f2=_0x13431c(0x1b2)===_0x3b65e7||!0x0===_0x4ac952[_0x13431c(0x192)],_0x538925=new _0x36aaac(this[_0x13431c(0x1e4)],_0x4ac952,_0x4724f2,_0x53b6b1,_0x830b05);return _0x4724f2||_0x538925['on'](_0x13431c(0x1ae),()=>{const _0x247828=_0x13431c;this[_0x247828(0x204)](_0x247828(0x1d7),_0x538925['id']);}),_0x538925;}[_0x2a1b80(0x1ec)](_0x231e4a,_0x2307f4){const _0x8bc736=_0x2a1b80;_0x2307f4[_0x8bc736(0x1c4)](_0x231e4a,0x0);}[_0x2a1b80(0x1fc)](_0x49746f,_0x4fa8c7){const _0x486f50=_0x2a1b80,_0x214332=_0x4fa8c7[_0x486f50(0x1ef)](_0x423902=>_0x423902['id']===_0x49746f);_0x214332&&_0x4fa8c7[_0x486f50(0x1f2)](_0x214332);}[_0x2a1b80(0x1b8)](){const _0x55a4e0=_0x2a1b80;this[_0x55a4e0(0x1a2)][_0x55a4e0(0x1b6)]?this[_0x55a4e0(0x1b5)]():(this[_0x55a4e0(0x1e1)](),this[_0x55a4e0(0x1f0)][_0x55a4e0(0x18c)]({'target':this[_0x55a4e0(0x1a2)][_0x55a4e0(0x181)],'limiter':this[_0x55a4e0(0x1d0)](),'positions':Po}));}[_0x2a1b80(0x1d5)](_0x2e5329){const _0xd2f881=_0x2a1b80;this[_0xd2f881(0x1a6)][_0xd2f881(0x1c1)](),this[_0xd2f881(0x17f)](),this[_0xd2f881(0x204)](_0xd2f881(0x188),_0x2e5329);}}export class SourcesBalloonButtonView extends _0x53f213{[_0x2a1b80(0x1f7)];constructor(_0x3c39df){const _0x38cccc=_0x2a1b80;super(_0x3c39df),this[_0x38cccc(0x199)]({'withText':!0x0,'role':_0x38cccc(0x1b1)}),this[_0x38cccc(0x1f7)]=this[_0x38cccc(0x1ad)](),this[_0x38cccc(0x1f8)]({'attributes':{'class':[Eo]}});}[_0x2a1b80(0x1fe)](){const _0x13157e=_0x2a1b80;super[_0x13157e(0x1fe)](),this[_0x13157e(0x175)][_0x13157e(0x1c4)](this[_0x13157e(0x1f7)]);}[_0x2a1b80(0x1ad)](){const _0x27657b=_0x2a1b80,_0x31937e=new _0xf2b7d4();return _0x31937e[_0x27657b(0x201)]=_0x1b8916,_0x31937e[_0x27657b(0x1f8)]({'attributes':{'class':Eo+_0x27657b(0x1be)}}),_0x31937e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xb5d69b=_0x1d91;function _0x1d91(_0x1e80f6,_0x46931b){const _0x4bdbba=_0x4bdb();return _0x1d91=function(_0x1d91f4,_0x1ec4f7){_0x1d91f4=_0x1d91f4-0x15e;let _0x14cbfc=_0x4bdbba[_0x1d91f4];return _0x14cbfc;},_0x1d91(_0x1e80f6,_0x46931b);}(function(_0x188c2d,_0x42b7c8){const _0x48f645=_0x1d91,_0x781c15=_0x188c2d();while(!![]){try{const _0x8a279e=-parseInt(_0x48f645(0x167))/0x1+-parseInt(_0x48f645(0x15f))/0x2+-parseInt(_0x48f645(0x179))/0x3*(-parseInt(_0x48f645(0x16e))/0x4)+-parseInt(_0x48f645(0x177))/0x5+-parseInt(_0x48f645(0x171))/0x6*(parseInt(_0x48f645(0x172))/0x7)+parseInt(_0x48f645(0x166))/0x8+parseInt(_0x48f645(0x174))/0x9;if(_0x8a279e===_0x42b7c8)break;else _0x781c15['push'](_0x781c15['shift']());}catch(_0x4c67c3){_0x781c15['push'](_0x781c15['shift']());}}}(_0x4bdb,0xdce28));function _0x4bdb(){const _0x368ebc=['ck-ai-chat-controls-loader-icon','ai-chat-controls-loader__cancel-button','_createCancelButtonView','ck-ai-chat-controls-loader-icon-dot','_loaderView','ck-ai-chat-controls-loader-wrapper','53916MEXsjl','AI_CHAT_STOP_GENERATING','ck-ai-chat-controls-loader','6QfjymA','5493082QjsusN','abortPromptStream','18341226LsVpOK','div','fire','7849850atqZNX','setTemplate','369OPwiqY','_createLoaderView','207568XYiFqw','_cancelButtonView','AI_CHAT_IS_WRITING','execute','set','ck-reset_all','locale','9756976WfXfDg','1552229DNrXMP'];_0x4bdb=function(){return _0x368ebc;};return _0x4bdb();}import{ButtonView as _0x1ea2ee,View as _0x510501}from'ckeditor5/src/ui.js';import{IconStop as _0xdf7d69}from'ckeditor5/src/icons.js';import{getTranslation as _0x3d9cff}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x510501{[_0xb5d69b(0x160)];[_0xb5d69b(0x16c)];constructor(_0x4aa64a){const _0x599643=_0xb5d69b;super(_0x4aa64a),this[_0x599643(0x160)]=this[_0x599643(0x16a)](),this[_0x599643(0x16c)]=this[_0x599643(0x15e)](),this[_0x599643(0x178)]({'tag':_0x599643(0x175),'attributes':{'class':['ck',_0x599643(0x16d),_0x599643(0x164)]},'children':[this[_0x599643(0x16c)],this[_0x599643(0x160)]]});}[_0xb5d69b(0x16a)](){const _0x3f7ca5=_0xb5d69b,_0x4d22c4=new _0x1ea2ee(this[_0x3f7ca5(0x165)]);return _0x4d22c4[_0x3f7ca5(0x163)]({'label':_0x3d9cff(this[_0x3f7ca5(0x165)],_0x3f7ca5(0x16f)),'withText':!0x0,'class':_0x3f7ca5(0x169),'icon':_0xdf7d69}),_0x4d22c4['on'](_0x3f7ca5(0x162),()=>{const _0x3a99d2=_0x3f7ca5;this[_0x3a99d2(0x176)](_0x3a99d2(0x173));}),_0x4d22c4;}[_0xb5d69b(0x15e)](){const _0xc73dd9=_0xb5d69b,_0x30740f=new _0x510501(this[_0xc73dd9(0x165)]);return _0x30740f[_0xc73dd9(0x178)]({'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x170)]},'children':[{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x168)]},'children':[{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}},{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}},{'tag':_0xc73dd9(0x175),'attributes':{'class':[_0xc73dd9(0x16b)]}}]},{'text':_0x3d9cff(this[_0xc73dd9(0x165)],_0xc73dd9(0x161))}]}),_0x30740f;}}
|