@ckeditor/ckeditor5-ai 47.3.0-alpha.5 → 47.3.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/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/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/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/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/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/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/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/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30fe85=_0x50e4;(function(_0x19966a,_0x21a84b){const _0x2cb883=_0x50e4,_0x80ff84=_0x19966a();while(!![]){try{const _0x17f17d=parseInt(_0x2cb883(0xd0))/0x1+parseInt(_0x2cb883(0xd9))/0x2*(-parseInt(_0x2cb883(0xb5))/0x3)+parseInt(_0x2cb883(0x96))/0x4+parseInt(_0x2cb883(0x90))/0x5*(parseInt(_0x2cb883(0xb6))/0x6)+-parseInt(_0x2cb883(0xc5))/0x7*(parseInt(_0x2cb883(0xc2))/0x8)+-parseInt(_0x2cb883(0x9b))/0x9*(-parseInt(_0x2cb883(0xd6))/0xa)+-parseInt(_0x2cb883(0xb4))/0xb;if(_0x17f17d===_0x21a84b)break;else _0x80ff84['push'](_0x80ff84['shift']());}catch(_0x2f8d96){_0x80ff84['push'](_0x80ff84['shift']());}}}(_0x4ed5,0x43e38));import{ButtonView as _0x5233a4,clickOutsideHandler as _0x5db31a,View as _0x4c1c6d}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x54d4ad}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x52fa6f}from'./controls/aichatpromptcapabilitiesview.js';function _0x4ed5(){const _0x4be345=['low','toggleReasoning','startConversation','_createPromptCapabilitiesView','8893577eatdXN','3eUAZkJ','171954ynmjMA','selectModel','focus','resetMessageInput','ck-hidden','clearConversationContextItems','ck-ai-chat-controls__start-new-chat-button','_shouldRestorePromptInputFocus','setContextItemLoading','bodyCollection','setTemplate','isLoading','1388008fmpBYF','updateResourceState','setReasoning','7iXXtqa','_promptCapabilitiesView','form','enableModelSelector','startsWith','setWebSearch','execute','toggleWebSearch','sendUserMessage','setPlaceholderText','clearConversationContextUI','507747ZcYCmM','_createModelUnavailableMessageView','_createContextPanelView','addContextItem','setInputPlaceholder','reset','20690vxtQhH','element','_displayedModels','555692WuTgKs','change:isLoading','div','set','populateSourceResourceBalloon','_createPromptInputView','_handlePromptInputFocus','setAddContextOptions','_modelUnavailableMessageView','95DNbloo','setModelList','bindTemplate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','delegate','abortPromptStream','1851596flCwBh','ck-ai-chat-controls-model-unavailable-message','isDisabled','ck-ai-chat-controls-disabled','agent','99kkmmyG','isModelAvailable','clearCurrentContextItems','setConversationContext','setIsUploadInProgress','find','closeSourceResourceBalloon','removeContextItem','clearPendingContextUI','contextResourcesSearchInputVisibleFrom','addContextButtonView','disableModelSelector','setModel','_contextPanelView','_createLoaderView','_promptInputView','_loaderView','ck-ai-chat-controls','focusPromptInput','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','locale'];_0x4ed5=function(){return _0x4be345;};return _0x4ed5();}import{AIChatContextPanelView as _0x1fb689,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x251d49}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2b5585}from'./controls/aichatcontrolsloaderview.js';function _0x50e4(_0x2ae07c,_0x504b11){const _0x4ed505=_0x4ed5();return _0x50e4=function(_0x50e48f,_0xecc28f){_0x50e48f=_0x50e48f-0x8b;let _0x2d9b15=_0x4ed505[_0x50e48f];return _0x2d9b15;},_0x50e4(_0x2ae07c,_0x504b11);}import{getTranslation as _0x1bf560}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x4c1c6d{[_0x30fe85(0xd8)]=[];[_0x30fe85(0xa8)];[_0x30fe85(0xaa)];[_0x30fe85(0xc6)];[_0x30fe85(0xab)];[_0x30fe85(0x8f)];[_0x30fe85(0xbd)];constructor(_0x544a60,_0x5d4a7b){const _0x84189=_0x30fe85;super(_0x544a60),this[_0x84189(0xa8)]=this[_0x84189(0xd2)](_0x544a60,{'bodyCollection':_0x5d4a7b[_0x84189(0xbf)],'searchInputVisibleFrom':_0x5d4a7b[_0x84189(0xa4)]}),this[_0x84189(0xaa)]=this[_0x84189(0x8c)](_0x544a60),this[_0x84189(0xc6)]=this[_0x84189(0xb3)](_0x544a60),this[_0x84189(0xab)]=this[_0x84189(0xa9)](_0x544a60),this[_0x84189(0x8f)]=this[_0x84189(0xd1)](_0x544a60),this[_0x84189(0xbd)]=!0x1,this[_0x84189(0xaa)][_0x84189(0x94)](_0x84189(0xcd))['to'](this),this[_0x84189(0xab)][_0x84189(0x94)](_0x84189(0x95))['to'](this),this[_0x84189(0xc6)][_0x84189(0x94)](_0x84189(0xcc))['to'](this),this[_0x84189(0xc6)][_0x84189(0x94)](_0x84189(0xb1))['to'](this),this[_0x84189(0xc6)][_0x84189(0x94)](_0x84189(0xb7))['to'](this),this[_0x84189(0xa8)][_0x84189(0x94)](..._0x251d49)['to'](this),this[_0x84189(0xdc)](_0x84189(0x9c),!0x0),this[_0x84189(0xdc)](_0x84189(0x98),!0x1);const _0x7efd0d=this[_0x84189(0x92)];this[_0x84189(0xc0)]({'tag':_0x84189(0xc7),'attributes':{'class':['ck',_0x84189(0xac),_0x7efd0d['if'](_0x84189(0x98),_0x84189(0x99))]},'children':[{'tag':_0x84189(0xdb),'attributes':{'class':[_0x7efd0d['if'](_0x84189(0xc1),_0x84189(0xba),_0x56dc8f=>_0x56dc8f||!this[_0x84189(0x9c)]),_0x7efd0d['if'](_0x84189(0x9c),_0x84189(0xba),_0x44b785=>!_0x44b785||this[_0x84189(0xc1)])]},'children':[this[_0x84189(0xa8)],this[_0x84189(0xaa)],this[_0x84189(0xc6)]]},{'tag':_0x84189(0xdb),'attributes':{'class':[_0x7efd0d['if'](_0x84189(0xc1),_0x84189(0xba),_0x207049=>!_0x207049)]},'children':[this[_0x84189(0xab)]]},{'tag':_0x84189(0xdb),'attributes':{'class':[_0x7efd0d['if'](_0x84189(0x9c),_0x84189(0xba),_0x341a58=>_0x341a58)]},'children':[this[_0x84189(0x8f)]]}]}),_0x5db31a({'emitter':this[_0x84189(0xaa)],'activator':()=>this[_0x84189(0xc1)],'contextElements':()=>[this[_0x84189(0xd7)]],'callback':()=>{const _0x543982=_0x84189;this[_0x543982(0xbd)]=!0x1;}}),this['on'](_0x84189(0xda),this[_0x84189(0x8d)],{'priority':_0x84189(0xb0)});}[_0x30fe85(0xd2)](_0x57328b,_0x5e5d50){return new _0x1fb689(_0x57328b,_0x5e5d50);}[_0x30fe85(0x8c)](_0x5ae00c){const _0x2517d1=_0x30fe85;return new _0x54d4ad(_0x5ae00c,this[_0x2517d1(0xa8)][_0x2517d1(0xa5)]);}[_0x30fe85(0xb3)](_0x59ae0b){return new _0x52fa6f(_0x59ae0b);}[_0x30fe85(0xa9)](_0x2269ab){return new _0x2b5585(_0x2269ab);}[_0x30fe85(0xd1)](_0x40f322){const _0x2a29ec=_0x30fe85,_0x599576=new _s(_0x40f322);return _0x599576[_0x2a29ec(0x94)](_0x2a29ec(0xb2))['to'](this),_0x599576;}[_0x30fe85(0x8d)](_0x509d8d,_0x63910c,_0x58a92f){const _0xc76096=_0x30fe85;_0x58a92f?this[_0xc76096(0xbd)]=!0x0:this[_0xc76096(0xbd)]&&this[_0xc76096(0xaa)][_0xc76096(0xb8)]();}[_0x30fe85(0xd3)](_0x51e1a8,_0x5f4872){const _0x35d8fa=_0x30fe85;this[_0x35d8fa(0xa8)][_0x35d8fa(0xd3)](_0x51e1a8,_0x5f4872);}[_0x30fe85(0xa2)](_0x546142){const _0x41f968=_0x30fe85;this[_0x41f968(0xa8)][_0x41f968(0xa2)](_0x546142);}[_0x30fe85(0xbe)](_0x304ce4,_0x56505f){const _0x5920f7=_0x30fe85;this[_0x5920f7(0xa8)][_0x5920f7(0xbe)](_0x304ce4,_0x56505f);}[_0x30fe85(0x9f)](_0x4ae4b3){const _0x2290fb=_0x30fe85;this[_0x2290fb(0xaa)][_0x2290fb(0x9f)](_0x4ae4b3);}[_0x30fe85(0x9e)](_0x37460b){const _0x38fded=_0x30fe85;this[_0x38fded(0xa8)][_0x38fded(0x9e)](_0x37460b);}[_0x30fe85(0xa3)](){const _0xb0db3f=_0x30fe85;this[_0xb0db3f(0xa8)][_0xb0db3f(0x9d)]();}[_0x30fe85(0xcf)](){const _0x34aa3b=_0x30fe85;this[_0x34aa3b(0xa8)][_0x34aa3b(0xbb)]();}[_0x30fe85(0xc3)](_0x4f7433,_0x1d6185,_0x4bc61e){const _0xb2f72e=_0x30fe85;this[_0xb2f72e(0xa8)][_0xb2f72e(0xc3)](_0x4f7433,_0x1d6185,_0x4bc61e);}[_0x30fe85(0xca)](_0x225bcd){const _0x38742c=_0x30fe85;this[_0x38742c(0xc6)][_0x38742c(0xca)](_0x225bcd);}[_0x30fe85(0xc4)](_0x67dbe6){const _0x4ab9fe=_0x30fe85;this[_0x4ab9fe(0xc6)][_0x4ab9fe(0xc4)](_0x67dbe6);}[_0x30fe85(0xb9)](){const _0x54f906=_0x30fe85;this[_0x54f906(0xaa)][_0x54f906(0xd5)]();}[_0x30fe85(0x8e)](_0x35f2f8){const _0x3fc992=_0x30fe85;this[_0x3fc992(0xa8)][_0x3fc992(0x8e)](_0x35f2f8);}[_0x30fe85(0xd4)](_0x56cd57){const _0x1f43f2=_0x30fe85;this[_0x1f43f2(0xaa)][_0x1f43f2(0xce)](_0x56cd57);}[_0x30fe85(0x91)](_0x2bbaa6,_0x1bd542){const _0x1f509c=_0x30fe85;this[_0x1f509c(0xd8)]=_0x2bbaa6,this[_0x1f509c(0xc6)][_0x1f509c(0x91)](_0x2bbaa6,_0x1bd542);}[_0x30fe85(0xa7)](_0x362f5e){const _0x214bd2=_0x30fe85;(_0x362f5e?this[_0x214bd2(0xd8)][_0x214bd2(0xa0)](_0x101d3b=>_0x101d3b['id']===_0x362f5e['id']):null)?(this[_0x214bd2(0x9c)]=!0x0,this[_0x214bd2(0xc6)][_0x214bd2(0xa7)](_0x362f5e)):_0x362f5e?.['id'][_0x214bd2(0xc9)](_0x214bd2(0x9a))?(this[_0x214bd2(0x9c)]=!0x0,this[_0x214bd2(0xc6)][_0x214bd2(0xa7)](this[_0x214bd2(0xd8)][0x0])):this[_0x214bd2(0x9c)]=!0x1;}[_0x30fe85(0xc8)](){const _0x4a2efc=_0x30fe85;this[_0x4a2efc(0xc6)][_0x4a2efc(0xc8)]();}[_0x30fe85(0xa6)](_0x507561){const _0x46579a=_0x30fe85;this[_0x46579a(0xc6)][_0x46579a(0xa6)](_0x507561);}[_0x30fe85(0x8b)](_0x8013f5,_0x49f051,_0xd9239e,_0x1bea84){const _0x2053ed=_0x30fe85;this[_0x2053ed(0xa8)][_0x2053ed(0x8b)](_0x8013f5,_0x49f051,_0xd9239e,_0x1bea84);}[_0x30fe85(0xa1)](_0x44e3b7){const _0x4fb716=_0x30fe85;this[_0x4fb716(0xa8)][_0x4fb716(0xa1)](_0x44e3b7);}[_0x30fe85(0xad)](){const _0x38cd37=_0x30fe85;this[_0x38cd37(0xaa)][_0x38cd37(0xb8)]();}}class _s extends _0x4c1c6d{constructor(_0x41eb41){const _0x3705be=_0x30fe85;super(_0x41eb41);const _0x9cc918=new _0x5233a4(_0x41eb41);_0x9cc918[_0x3705be(0xdc)]({'label':_0x1bf560(this[_0x3705be(0xaf)],_0x3705be(0x93)),'withText':!0x0,'class':[_0x3705be(0xbc)],'tooltip':''}),_0x9cc918[_0x3705be(0x94)](_0x3705be(0xcb))['to'](this,_0x3705be(0xb2)),this[_0x3705be(0xc0)]({'tag':_0x3705be(0xdb),'attributes':{'class':['ck',_0x3705be(0x97)]},'children':[{'tag':'p','children':[{'text':_0x1bf560(this[_0x3705be(0xaf)],_0x3705be(0xae))+'\x20'},_0x9cc918]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5045a7=_0x3bd9;function _0x3bd9(_0x2be9f0,_0x5928dd){const _0x466ebf=_0x466e();return _0x3bd9=function(_0x3bd987,_0x1fe83a){_0x3bd987=_0x3bd987-0xd9;let _0x460efd=_0x466ebf[_0x3bd987];return _0x460efd;},_0x3bd9(_0x2be9f0,_0x5928dd);}(function(_0x301e2e,_0x151491){const _0x555865=_0x3bd9,_0x11cd56=_0x301e2e();while(!![]){try{const _0x3079c5=parseInt(_0x555865(0xed))/0x1*(parseInt(_0x555865(0xf3))/0x2)+parseInt(_0x555865(0xde))/0x3*(parseInt(_0x555865(0xda))/0x4)+parseInt(_0x555865(0x10b))/0x5*(parseInt(_0x555865(0x121))/0x6)+-parseInt(_0x555865(0xfe))/0x7*(-parseInt(_0x555865(0x125))/0x8)+parseInt(_0x555865(0xe6))/0x9+parseInt(_0x555865(0xdc))/0xa*(parseInt(_0x555865(0x101))/0xb)+-parseInt(_0x555865(0xfc))/0xc*(parseInt(_0x555865(0x11c))/0xd);if(_0x3079c5===_0x151491)break;else _0x11cd56['push'](_0x11cd56['shift']());}catch(_0x387dfa){_0x11cd56['push'](_0x11cd56['shift']());}}}(_0x466e,0xe16f2));import{CKEditorError as _0x11d7d7,logWarning as _0x35f803,scrollViewportToShowTarget as _0x57ad91}from'ckeditor5/src/utils.js';import{View as _0x46e5ff}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x12b6ac}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x24b556}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3ff82a}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x807c26}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5583cc}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x46c838}from'./feed/aichatfeedinteractionheaderview.js';function _0x466e(){const _0x517ce5=['isPending','div','locale','startAutoScroll','updateSources','isVisible','find','12696GlIBFW','ai-chat-feed-view-item-not-a-suggestion-item','7YTQesl','toggleLoadingSkeleton','addItem','242PjbHbi','updateContent','scrollToSuggestion','updateReplyItem','removeItem','ai-reply','ck-ai-chat__loader-text','interaction-header','loadingMessage','_createLoaderChildren','5xVjdVC','ck-ai-chat__feed__items','getItemIds','setTemplate','_createFeedItems','map','ai-suggestion-reply','updatePartState','updateSuggestionPartState','isTrackChangesOn','getPartView','options','ai-chat-feed-view-item-not-found','_setupTemplate','_createSkeletonLoader','bind','getItemById','72059oaYUmC','updateWebSources','add','stop','ck-ai-chat__feed','9616806bfMKcl','scrollManager','set','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','2703112dXAWiH','stopAutoScroll','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat__loader','user-message','ck-hidden','clear','remove','markItemAsDone','4evvOPR','_bodyCollection','366450VbJvfX','updateSuggestionItem','4168935CQqeqt','span','destroy','setLoadingMessage','markAsDone','isLoadingSkeletonVisible','children','_createFeedLoader','11129040XUHcNY','render','ai-chat-feed-view-item-not-a-reply-item','extendTemplate','aiFeed','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','createCollection','1414787KpxJVh','includes','element','bindTemplate','_createTemplateChildren','start','2NukYbb','delegate'];_0x466e=function(){return _0x517ce5;};return _0x466e();}import{ScrollManager as _0xe77619}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x1a2dcc,SKELETON_DEFINITIONS as _0x1cc8da}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x44d0d8}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x46e5ff{[_0x5045a7(0xe4)];[_0x5045a7(0x122)];[_0x5045a7(0xdb)];constructor(_0x20d1e7,_0x560c4b){const _0x15bb8b=_0x5045a7;super(_0x20d1e7),this[_0x15bb8b(0xdb)]=_0x560c4b,this[_0x15bb8b(0x123)](_0x15bb8b(0xf5),!0x1),this[_0x15bb8b(0x123)](_0x15bb8b(0x109),''),this[_0x15bb8b(0x123)](_0x15bb8b(0xe3),!0x1),this[_0x15bb8b(0x123)](_0x15bb8b(0x114),!0x1),this[_0x15bb8b(0xe4)]=this[_0x15bb8b(0xec)](),this[_0x15bb8b(0xe4)][_0x15bb8b(0xf4)](..._0x12b6ac)['to'](this),this[_0x15bb8b(0x118)]();}[_0x5045a7(0xe7)](){const _0x37dc56=_0x5045a7;super[_0x37dc56(0xe7)](),this[_0x37dc56(0x122)]=new _0xe77619(this[_0x37dc56(0xef)]);}[_0x5045a7(0xe0)](){const _0x5b2c82=_0x5045a7;super[_0x5b2c82(0xe0)](),this[_0x5b2c82(0x122)][_0x5b2c82(0xe0)]();}[_0x5045a7(0x12b)](){const _0x1185eb=_0x5045a7;this[_0x1185eb(0xe4)][_0x1185eb(0x12b)]();}[_0x5045a7(0x100)](_0x39c680,_0x5e33a2){const _0x5567de=_0x5045a7;let _0x1917e0;_0x5567de(0x106)===_0x39c680?_0x1917e0=new _0x3ff82a(this[_0x5567de(0xf7)],_0x5e33a2):_0x5567de(0x111)===_0x39c680?(_0x1917e0=new _0x24b556(this[_0x5567de(0xf7)],_0x5e33a2),_0x1917e0[_0x5567de(0x11a)](_0x5567de(0x114))['to'](this,_0x5567de(0x114))):_0x1917e0=_0x5567de(0x129)===_0x39c680?new _0x807c26(this[_0x5567de(0xf7)],_0x5e33a2,this[_0x5567de(0xdb)]):_0x5567de(0x108)===_0x39c680?new _0x46c838(this[_0x5567de(0xf7)],_0x5e33a2):new _0x5583cc(_0x5e33a2),this[_0x5567de(0xe4)][_0x5567de(0x11e)](_0x1917e0);}async[_0x5045a7(0x104)]({id:_0x3be74d,parsedContent:_0x6a287c,renderingStrategy:_0x4e0d6b,abortSignal:_0x121212}){const _0x209dc1=_0x5045a7,_0x4ab3c3=this[_0x209dc1(0x11b)](_0x3be74d);if(!(_0x4ab3c3 instanceof _0x3ff82a))throw new _0x11d7d7(_0x209dc1(0xe8),null,{'itemView':_0x4ab3c3,'id':_0x3be74d,'parsedContent':_0x6a287c});await _0x4ab3c3[_0x209dc1(0x102)]({'parsedContent':_0x6a287c,'renderingStrategy':_0x4e0d6b,'abortSignal':_0x121212});}async[_0x5045a7(0x11d)](_0x116b6b,_0x2bec7a){const _0x2be4f4=_0x5045a7,_0x15e373=this[_0x2be4f4(0x11b)](_0x116b6b);if(_0x15e373 instanceof _0x24b556)_0x15e373[_0x2be4f4(0xf9)](_0x2bec7a);else{if(!(_0x15e373 instanceof _0x3ff82a))throw new _0x11d7d7(_0x2be4f4(0xeb),null,{'itemView':_0x15e373,'id':_0x116b6b,'sources':_0x2bec7a});_0x15e373[_0x2be4f4(0xf9)](_0x2bec7a);}}async[_0x5045a7(0xdd)]({id:_0x356401,parts:_0x44b461,renderingStrategy:_0x17421b,abortSignal:_0x58a020}){const _0x704faa=_0x5045a7,_0x59ae47=this[_0x704faa(0x11b)](_0x356401);if(!(_0x59ae47 instanceof _0x24b556))throw new _0x11d7d7(_0x704faa(0xfd),null,{'itemView':_0x59ae47,'id':_0x356401,'parts':_0x44b461});await _0x59ae47[_0x704faa(0x102)]({'parts':_0x44b461,'renderingStrategy':_0x17421b,'abortSignal':_0x58a020});}[_0x5045a7(0x113)]({id:_0x38c83d,index:_0x4f9124,state:_0xd779aa}){const _0x572db5=_0x5045a7,_0x28f17d=this[_0x572db5(0x11b)](_0x38c83d);if(!(_0x28f17d instanceof _0x24b556))throw new _0x11d7d7(_0x572db5(0xfd),this,{'id':_0x38c83d});_0x28f17d[_0x572db5(0x112)](_0x4f9124,_0xd779aa);}[_0x5045a7(0xd9)](_0xe7acc1){const _0x406610=_0x5045a7;this[_0x406610(0x11b)](_0xe7acc1)[_0x406610(0xe2)]();}[_0x5045a7(0x10d)](){const _0x4672e9=_0x5045a7;return this[_0x4672e9(0xe4)][_0x4672e9(0x110)](_0x5c376f=>_0x5c376f[_0x4672e9(0x116)]['id']);}[_0x5045a7(0x105)](_0x58e7a1){const _0x52a8d4=_0x5045a7;this[_0x52a8d4(0xe4)][_0x52a8d4(0x12c)](this[_0x52a8d4(0x11b)](_0x58e7a1));}[_0x5045a7(0x103)](_0x3d3ec6,_0xf16a2b){const _0x2d9096=_0x5045a7,_0x5e796e=this[_0x2d9096(0x11b)](_0x3d3ec6);if(!(_0x5e796e instanceof _0x24b556))return void _0x35f803(_0x2d9096(0x124),{'replyId':_0x3d3ec6,'partIndex':_0xf16a2b});const _0x30a9e4=_0x5e796e[_0x2d9096(0x115)](_0xf16a2b);_0x30a9e4?_0x57ad91({'target':_0x30a9e4[_0x2d9096(0xef)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x35f803(_0x2d9096(0x127),{'replyId':_0x3d3ec6,'partIndex':_0xf16a2b});}[_0x5045a7(0x118)](){const _0x3d72ce=_0x5045a7;this[_0x3d72ce(0x10e)]({'tag':_0x3d72ce(0xf6),'attributes':{'class':['ck',_0x3d72ce(0x120)]},'children':this[_0x3d72ce(0xf1)]()});}[_0x5045a7(0xf1)](){const _0x381c74=_0x5045a7,_0x361b3e=this[_0x381c74(0x119)]();return[this[_0x381c74(0x10f)](),_0x361b3e,this[_0x381c74(0xe5)]()];}[_0x5045a7(0x119)](){const _0xa4cff4=_0x5045a7,_0x416f80=new _0x1a2dcc(this[_0xa4cff4(0xf7)],_0x1cc8da[_0xa4cff4(0xea)]);return _0x416f80[_0xa4cff4(0xe9)]({'attributes':{'class':[this[_0xa4cff4(0xf0)]['if'](_0xa4cff4(0xe3),_0xa4cff4(0x12a),_0x37fed2=>!_0x37fed2)]}}),_0x416f80;}[_0x5045a7(0x10f)](){const _0x1cb63f=_0x5045a7,_0x63a768=new _0x46e5ff(this[_0x1cb63f(0xf7)]);return _0x63a768[_0x1cb63f(0x10e)]({'tag':_0x1cb63f(0xf6),'attributes':{'class':['ck',_0x1cb63f(0x10c),this[_0x1cb63f(0xf0)]['if'](_0x1cb63f(0xe3),_0x1cb63f(0x12a))]},'children':this[_0x1cb63f(0xe4)]}),_0x63a768;}[_0x5045a7(0xe5)](){const _0x196375=_0x5045a7,_0x4aadcb=new _0x46e5ff(this[_0x196375(0xf7)]);return _0x4aadcb[_0x196375(0x10e)]({'tag':_0x196375(0xf6),'attributes':{'class':['ck',_0x196375(0x128),this[_0x196375(0xf0)]['if'](_0x196375(0xf5),_0x196375(0x12a),_0xd7554f=>!_0xd7554f)]},'children':this[_0x196375(0x10a)]()}),_0x4aadcb;}[_0x5045a7(0x10a)](){const _0x1ab614=_0x5045a7,_0x551d76=new _0x44d0d8();return _0x551d76[_0x1ab614(0xfa)]=!0x0,[_0x551d76,{'tag':_0x1ab614(0xdf),'attributes':{'class':['ck',_0x1ab614(0x107)]},'children':[{'text':this[_0x1ab614(0xf0)]['to'](_0x1ab614(0x109))}]}];}[_0x5045a7(0x11b)](_0x370e04){const _0x491115=_0x5045a7,_0x6cf797=this[_0x491115(0xe4)][_0x491115(0xfb)](_0x41aa95=>_0x41aa95[_0x491115(0x116)]['id'][_0x491115(0xee)](_0x370e04));if(!_0x6cf797)throw new _0x11d7d7(_0x491115(0x117),this,{'id':_0x370e04});return _0x6cf797;}[_0x5045a7(0xe1)](_0x98a351){const _0x20aae7=_0x5045a7;this[_0x20aae7(0x123)](_0x20aae7(0x109),_0x98a351);}[_0x5045a7(0xff)](_0x27ee34){const _0x27141d=_0x5045a7;this[_0x27141d(0x123)](_0x27141d(0xe3),_0x27ee34);}[_0x5045a7(0xf8)](){const _0x5b71b1=_0x5045a7;this[_0x5b71b1(0x122)][_0x5b71b1(0xf2)]();}[_0x5045a7(0x126)](){const _0x48e98e=_0x5045a7;this[_0x48e98e(0x122)][_0x48e98e(0x11f)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x179692=_0x2e30;function _0xa4af(){const _0x2c1383=['ck-ai-chat__start-conversation','1712193zeJwbB','set','conversationStartButton','isMaximized','AI_CHAT_LABEL_NEW_CHAT','ck-ai-header\x20ck-ai-header_chat','startConversation','fire','4EkIipD','10HQaXIE','505vNYSTa','AI_CHAT_HEADING','_createStartConversationButton','children','locale','resizeButton','71006ZeEWvA','7858737ZYTtza','11313390DGTzRg','2299213VkfNBK','66504DAYxbF','3318776orwWMC','add','execute','4WrubsM'];_0xa4af=function(){return _0x2c1383;};return _0xa4af();}(function(_0x257fe5,_0x1f1a2b){const _0x187ce6=_0x2e30,_0x4bfe60=_0x257fe5();while(!![]){try{const _0x17db15=parseInt(_0x187ce6(0x169))/0x1*(-parseInt(_0x187ce6(0x171))/0x2)+-parseInt(_0x187ce6(0x17b))/0x3*(parseInt(_0x187ce6(0x179))/0x4)+parseInt(_0x187ce6(0x16b))/0x5*(parseInt(_0x187ce6(0x175))/0x6)+-parseInt(_0x187ce6(0x174))/0x7+parseInt(_0x187ce6(0x176))/0x8+-parseInt(_0x187ce6(0x172))/0x9*(parseInt(_0x187ce6(0x16a))/0xa)+parseInt(_0x187ce6(0x173))/0xb;if(_0x17db15===_0x1f1a2b)break;else _0x4bfe60['push'](_0x4bfe60['shift']());}catch(_0x2b21d2){_0x4bfe60['push'](_0x4bfe60['shift']());}}}(_0xa4af,0x9e4ea));import{ButtonView as _0x578e85,FormHeaderView as _0x4d2f6f}from'ckeditor5/src/ui.js';function _0x2e30(_0x17e519,_0x3e447e){const _0xa4aff6=_0xa4af();return _0x2e30=function(_0x2e3023,_0x2d7e48){_0x2e3023=_0x2e3023-0x167;let _0x207103=_0xa4aff6[_0x2e3023];return _0x207103;},_0x2e30(_0x17e519,_0x3e447e);}import{IconPlus as _0x291b2a,IconAIChat as _0x46684d}from'ckeditor5/src/icons.js';import{getTranslation as _0x19a6af}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x499818}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x4d2f6f{[_0x179692(0x17d)];[_0x179692(0x170)];constructor(_0x2e332b,_0x5d5934){const _0x3ca333=_0x179692;super(_0x2e332b,{'label':_0x19a6af(_0x2e332b,_0x3ca333(0x16c)),'class':_0x3ca333(0x180),'icon':_0x46684d}),this[_0x3ca333(0x17c)](_0x3ca333(0x17e),!0x1),this[_0x3ca333(0x17d)]=this[_0x3ca333(0x16d)](_0x2e332b),this[_0x3ca333(0x16e)][_0x3ca333(0x177)](this[_0x3ca333(0x17d)]),_0x5d5934&&(this[_0x3ca333(0x170)]=_0x499818(_0x2e332b,this),this[_0x3ca333(0x16e)][_0x3ca333(0x177)](this[_0x3ca333(0x170)]));}[_0x179692(0x16d)](_0x4721b4){const _0x12bc0d=_0x179692,_0x39418d=new _0x578e85(_0x4721b4);return _0x39418d[_0x12bc0d(0x17c)]({'label':_0x19a6af(this[_0x12bc0d(0x16f)],_0x12bc0d(0x17f)),'withText':!0x0,'icon':_0x291b2a,'class':_0x12bc0d(0x17a)}),_0x39418d['on'](_0x12bc0d(0x178),()=>{const _0x51067d=_0x12bc0d;this[_0x51067d(0x168)](_0x51067d(0x167));}),_0x39418d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3245a6=_0x5f81;(function(_0x41eccc,_0x5d716b){var _0x152ece=_0x5f81,_0x210219=_0x41eccc();while(!![]){try{var _0x1042d3=parseInt(_0x152ece(0x153))/0x1+parseInt(_0x152ece(0x15b))/0x2*(parseInt(_0x152ece(0x15d))/0x3)+parseInt(_0x152ece(0x155))/0x4+parseInt(_0x152ece(0x15c))/0x5+parseInt(_0x152ece(0x154))/0x6*(-parseInt(_0x152ece(0x14b))/0x7)+parseInt(_0x152ece(0x148))/0x8+parseInt(_0x152ece(0x150))/0x9*(-parseInt(_0x152ece(0x15f))/0xa);if(_0x1042d3===_0x5d716b)break;else _0x210219['push'](_0x210219['shift']());}catch(_0x806e5a){_0x210219['push'](_0x210219['shift']());}}}(_0x3aa7,0x8bb51));import{View as _0x1588f5,BodyCollection as _0x4b1036}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xee3f2}from'../utils/eventnames.js';function _0x3aa7(){var _0x312b07=['detachFromDom','ck-reset_all','setTemplate','closeSourceResourceBalloon','div','481456ZAWBgh','delegate','chatFeed','1787681VgTRXa','ck-rounded-corners','chatHeader','contextResourcesSearchInputVisibleFrom','_bodyCollection','4977NxwMxk','uiLanguageDirection','showResizeButton','730480kUUlEu','12bjfspw','1278160XtkldX','populateSourceResourceBalloon','chatControls','ck-ai-chat','chatDisclaimer','attachToDom','112JFWBdE','353465NaWQMA','58983HgnwpE','destroy','21680rcixcJ'];_0x3aa7=function(){return _0x312b07;};return _0x3aa7();}import{AIChatFeedView as _0x4b4654}from'./aichatfeedview.js';import{AIChatControlsView as _0x122649}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x4c50a8}from'./aichatheaderview.js';import{AIDisclaimerView as _0x284f08}from'../../aicore/ui/aidisclaimerview.js';function _0x5f81(_0x195a09,_0x370c4d){var _0x3aa73f=_0x3aa7();return _0x5f81=function(_0x5f8126,_0x4b4c9a){_0x5f8126=_0x5f8126-0x144;var _0x4357bf=_0x3aa73f[_0x5f8126];return _0x4357bf;},_0x5f81(_0x195a09,_0x370c4d);}export class AIChatView extends _0x1588f5{[_0x3245a6(0x14d)];[_0x3245a6(0x14a)];[_0x3245a6(0x157)];[_0x3245a6(0x159)];[_0x3245a6(0x14f)];constructor(_0x29f66e,_0x520693){var _0x4bf9f3=_0x3245a6;super(_0x29f66e),this[_0x4bf9f3(0x14f)]=new _0x4b1036(_0x29f66e),this[_0x4bf9f3(0x14f)][_0x4bf9f3(0x15a)](),this[_0x4bf9f3(0x14d)]=new _0x4c50a8(_0x29f66e,_0x520693[_0x4bf9f3(0x152)]),this[_0x4bf9f3(0x14d)][_0x4bf9f3(0x149)](..._0xee3f2)['to'](this),this[_0x4bf9f3(0x14a)]=new _0x4b4654(_0x29f66e,this[_0x4bf9f3(0x14f)]),this[_0x4bf9f3(0x14a)][_0x4bf9f3(0x149)](..._0xee3f2)['to'](this),this[_0x4bf9f3(0x157)]=new _0x122649(_0x29f66e,{'bodyCollection':this[_0x4bf9f3(0x14f)],'contextResourcesSearchInputVisibleFrom':_0x520693[_0x4bf9f3(0x14e)]}),this[_0x4bf9f3(0x157)][_0x4bf9f3(0x149)](..._0xee3f2)['to'](this),this[_0x4bf9f3(0x159)]=new _0x284f08(_0x29f66e),this[_0x4bf9f3(0x145)]({'tag':_0x4bf9f3(0x147),'attributes':{'class':['ck',_0x4bf9f3(0x144),_0x4bf9f3(0x158),_0x4bf9f3(0x14c)],'dir':_0x29f66e[_0x4bf9f3(0x151)]},'children':[this[_0x4bf9f3(0x14d)],this[_0x4bf9f3(0x14a)],this[_0x4bf9f3(0x157)],this[_0x4bf9f3(0x159)]]});}[_0x3245a6(0x156)](_0x9d6372,_0x1e937c,_0x49c698,_0xd3b75c){var _0x597921=_0x3245a6;this[_0x597921(0x157)][_0x597921(0x156)](_0x9d6372,_0x1e937c,_0x49c698,_0xd3b75c);}[_0x3245a6(0x146)](_0x47dbf4){var _0x4846d2=_0x3245a6;this[_0x4846d2(0x157)][_0x4846d2(0x146)](_0x47dbf4);}[_0x3245a6(0x15e)](){var _0x628fde=_0x3245a6;this[_0x628fde(0x14f)][_0x628fde(0x160)](),super[_0x628fde(0x15e)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4cf5e2=_0x4d4a;(function(_0x57e118,_0x33085d){const _0x352a2b=_0x4d4a,_0x361489=_0x57e118();while(!![]){try{const _0x40cf12=-parseInt(_0x352a2b(0x165))/0x1+-parseInt(_0x352a2b(0x195))/0x2*(-parseInt(_0x352a2b(0x138))/0x3)+-parseInt(_0x352a2b(0x198))/0x4*(-parseInt(_0x352a2b(0x143))/0x5)+-parseInt(_0x352a2b(0x11d))/0x6*(parseInt(_0x352a2b(0x178))/0x7)+-parseInt(_0x352a2b(0x137))/0x8*(parseInt(_0x352a2b(0x11b))/0x9)+parseInt(_0x352a2b(0x159))/0xa*(-parseInt(_0x352a2b(0x11f))/0xb)+-parseInt(_0x352a2b(0x173))/0xc*(parseInt(_0x352a2b(0x193))/0xd);if(_0x40cf12===_0x33085d)break;else _0x361489['push'](_0x361489['shift']());}catch(_0x1c3e02){_0x361489['push'](_0x361489['shift']());}}}(_0x2478,0x288bd));import{View as _0x86989a,BalloonPanelView as _0x23109e,ButtonView as _0x554c65,clickOutsideHandler as _0xf778b3}from'ckeditor5/src/ui.js';import{Collection as _0x1ad72d}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x4cf5e2(0x142);function _0x2478(){const _0x2c425b=['9rDaFLC','isConnected','remove','innerWidth','element','zIndex','_handleShowMoreButtonClick','innerHeight','_repinBalloonPanel','slice','300px','111540XiGXtY','_visibleChips','isVisible','calculationContainer','auto','pointerEvents','_createContainerElements','tagName','_applyCalculationStyles','innerHTML','isIntersecting','border-box','overflowContainer','left','absolute','includes','_updateBalloonContent','_showMoreBalloonPanelView','destroy','appendChild','undefined','_bodyCollection','490630ajCUAy','extendTemplate','_config','_findTargetContainer','0px','set','showMoreBalloon','_pendingCalculation','display','observe','_locale','showMoreButtonView','99684GyirMu','disconnect','visible','visible\x20!important','toLowerCase','setContainerElement','visibility','_createMockButton','pin','abs','documentElement','showMoreLabelPrefix','offsetWidth','showMoreButton','12RwMfLg','forEach','.ck-ai-chat','_parentView','_updateOverflowUI','3108qxLnmO','_createCalculationContainer','position','-9999px','cloneNode','hide','block\x20!important','getComputedStyle','showBalloonPanel','body','right','execute','render','pop','reorganizeChips','_testButtonFit','rowDetectionTolerance','height','_overflowChips','boxSizing','_checkAndHandleOverflow','ck-calculation-container','none','_containerElement','add','classList','_showMoreButtonView','400439BpAjJr','bottom','134182DNEheq','+\x201','maxVisibleRows','32JhJkQf','_createShowMoreButton','hideBalloonPanel','clear','_makeAncestorsVisible','controlsButton','some','createElement','_isContainerVisible','_calculateOverflowInContainer','50px','overflowChips','querySelector','_ancestorsToRestore','content','style','children','block','setTemplate','textContent','from','width','length','_restoreAncestorVisibility','clientHeight','_createShowMoreButtonView','54atTXGR','_applyOverflowResults','108vNYZwV','label','11OcZBkF','_createShowMoreBalloonPanelView','_setupVisibilityObserver','parentElement','_renderChipsAndCountRows','cssClasses','div','hidden','top','isOn','opacity','show','_calculateContainerWidth','getBoundingClientRect','_intersectionObserver','_updateShowMoreButtonVisibility','disableAnimationOnEnter','className','filter','push','_distributeChips','_targetContainer','clientWidth','button','34824mcqADT'];_0x2478=function(){return _0x2c425b;};return _0x2478();}function _0x4d4a(_0xbfa48,_0x4ef460){const _0x24788c=_0x2478();return _0x4d4a=function(_0x4d4a1d,_0x530bfc){_0x4d4a1d=_0x4d4a1d-0x112;let _0x277a45=_0x24788c[_0x4d4a1d];return _0x277a45;},_0x4d4a(_0xbfa48,_0x4ef460);}export class AIChatChipsOverflowManager{[_0x4cf5e2(0x163)];[_0x4cf5e2(0x15b)];[_0x4cf5e2(0x144)];[_0x4cf5e2(0x18a)];[_0x4cf5e2(0x192)]=null;[_0x4cf5e2(0x154)]=null;[_0x4cf5e2(0x18f)]=null;[_0x4cf5e2(0x158)];[_0x4cf5e2(0x176)]=null;[_0x4cf5e2(0x12d)]=null;[_0x4cf5e2(0x160)]=!0x1;constructor(_0x452dc9,_0x309f17,_0xb21776,_0x351209,_0x912da2){const _0x45e523=_0x4cf5e2;this[_0x45e523(0x163)]=_0x452dc9,this[_0x45e523(0x144)]=_0x309f17,this[_0x45e523(0x15b)]={...hn,..._0xb21776,'cssClasses':{'controlsButton':'','calculationContainer':_0x45e523(0x18d),..._0xb21776[_0x45e523(0x124)]}},this[_0x45e523(0x18a)]=new _0x1ad72d(),this[_0x45e523(0x158)]=_0x351209,this[_0x45e523(0x176)]=_0x912da2||null;}[_0x4cf5e2(0x16a)](_0x52b01a){const _0xb7aa9=_0x4cf5e2;this[_0xb7aa9(0x12d)]&&(this[_0xb7aa9(0x12d)][_0xb7aa9(0x166)](),this[_0xb7aa9(0x12d)]=null),this[_0xb7aa9(0x18f)]=_0x52b01a,this[_0xb7aa9(0x121)]();}get[_0x4cf5e2(0x164)](){const _0x2a44ef=_0x4cf5e2;return this[_0x2a44ef(0x192)];}get[_0x4cf5e2(0x1a3)](){const _0x33f297=_0x4cf5e2;return this[_0x33f297(0x18a)];}[_0x4cf5e2(0x186)](){requestAnimationFrame(()=>{const _0x3db7fe=_0x4d4a;this[_0x3db7fe(0x18c)]();});}[_0x4cf5e2(0x180)](){const _0x256a4e=_0x4cf5e2;this[_0x256a4e(0x192)]&&this[_0x256a4e(0x154)]&&(this[_0x256a4e(0x153)](),this[_0x256a4e(0x192)][_0x256a4e(0x128)]=!0x0,this[_0x256a4e(0x154)][_0x256a4e(0x12a)](),this[_0x256a4e(0x154)][_0x256a4e(0x16d)]({'target':this[_0x256a4e(0x192)][_0x256a4e(0x13c)],'limiter':document[_0x256a4e(0x1a4)](_0x256a4e(0x175))}));}[_0x4cf5e2(0x19a)](){const _0x518197=_0x4cf5e2;this[_0x518197(0x192)]&&this[_0x518197(0x154)]&&(this[_0x518197(0x192)][_0x518197(0x128)]=!0x1,this[_0x518197(0x154)][_0x518197(0x17d)]());}[_0x4cf5e2(0x19b)](){const _0x5b1b81=_0x4cf5e2;this[_0x5b1b81(0x18a)][_0x5b1b81(0x19b)](),this[_0x5b1b81(0x19a)](),this[_0x5b1b81(0x12e)](),this[_0x5b1b81(0x192)]&&(this[_0x5b1b81(0x192)][_0x5b1b81(0x11e)]=''),this[_0x5b1b81(0x154)]&&this[_0x5b1b81(0x154)][_0x5b1b81(0x1a6)][_0x5b1b81(0x19b)]();}[_0x4cf5e2(0x155)](){const _0x55f6da=_0x4cf5e2;this[_0x55f6da(0x12d)]&&(this[_0x55f6da(0x12d)][_0x55f6da(0x166)](),this[_0x55f6da(0x12d)]=null),this[_0x55f6da(0x192)]&&(this[_0x55f6da(0x192)][_0x55f6da(0x155)](),this[_0x55f6da(0x192)]=null),this[_0x55f6da(0x154)]&&(this[_0x55f6da(0x154)][_0x55f6da(0x155)](),this[_0x55f6da(0x154)]=null);}[_0x4cf5e2(0x18c)](){const _0x57cfba=_0x4cf5e2;if(!this[_0x57cfba(0x18f)])return;if(!this[_0x57cfba(0x1a0)]())return void(this[_0x57cfba(0x160)]=!0x0);this[_0x57cfba(0x160)]=!0x1;const _0x14cc12=[...this[_0x57cfba(0x144)],...this[_0x57cfba(0x18a)]],_0x5674ef=this[_0x57cfba(0x179)](),_0x4629ea=this[_0x57cfba(0x1a1)](_0x5674ef,_0x14cc12),_0x58f6fe=_0x5674ef[_0x57cfba(0x1a5)];_0x58f6fe&&this[_0x57cfba(0x118)](_0x58f6fe),_0x5674ef[_0x57cfba(0x13a)](),this[_0x57cfba(0x11c)](_0x14cc12,_0x4629ea);}[_0x4cf5e2(0x199)](){const _0x225226=_0x4cf5e2;this[_0x225226(0x192)]=this[_0x225226(0x11a)](),this[_0x225226(0x154)]=this[_0x225226(0x120)](),this[_0x225226(0x192)][_0x225226(0x184)](),this[_0x225226(0x18f)][_0x225226(0x156)](this[_0x225226(0x192)][_0x225226(0x13c)]),this[_0x225226(0x192)]['on'](_0x225226(0x183),()=>{const _0x47a306=_0x225226;this[_0x47a306(0x13e)]();}),_0xf778b3({'emitter':this[_0x225226(0x154)],'contextElements':[this[_0x225226(0x154)][_0x225226(0x13c)],this[_0x225226(0x192)][_0x225226(0x13c)]],'callback':()=>this[_0x225226(0x19a)](),'activator':()=>this[_0x225226(0x192)][_0x225226(0x128)]});}[_0x4cf5e2(0x11a)](){const _0x551359=_0x4cf5e2,_0xbb118d=new _0x554c65(this[_0x551359(0x163)]);_0xbb118d[_0x551359(0x15e)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5a40f6=[this[_0x551359(0x15b)][_0x551359(0x124)][_0x551359(0x172)]];return this[_0x551359(0x15b)][_0x551359(0x124)][_0x551359(0x19d)]&&_0x5a40f6[_0x551359(0x132)](this[_0x551359(0x15b)][_0x551359(0x124)][_0x551359(0x19d)]),_0xbb118d[_0x551359(0x15a)]({'attributes':{'class':_0x5a40f6}}),_0xbb118d;}[_0x4cf5e2(0x120)](){const _0x5d4adf=_0x4cf5e2,_0x59c6d0=new _0x23109e(this[_0x5d4adf(0x163)]);return _0x59c6d0[_0x5d4adf(0x15a)]({'attributes':{'class':this[_0x5d4adf(0x15b)][_0x5d4adf(0x124)][_0x5d4adf(0x15f)]}}),this[_0x5d4adf(0x158)][_0x5d4adf(0x190)](_0x59c6d0),_0x59c6d0;}[_0x4cf5e2(0x153)](){const _0x2488e5=_0x4cf5e2;if(this[_0x2488e5(0x154)]&&(this[_0x2488e5(0x154)][_0x2488e5(0x1a6)][_0x2488e5(0x19b)](),this[_0x2488e5(0x18a)][_0x2488e5(0x117)]>0x0)){this[_0x2488e5(0x18a)][_0x2488e5(0x174)](_0x3b036d=>{const _0x358d9d=_0x2488e5;_0x3b036d[_0x358d9d(0x12f)]();});const _0x9071b3=new _0x86989a(this[_0x2488e5(0x163)]);_0x9071b3[_0x2488e5(0x113)]({'tag':_0x2488e5(0x125),'attributes':{'class':this[_0x2488e5(0x15b)][_0x2488e5(0x124)][_0x2488e5(0x14f)]},'children':this[_0x2488e5(0x18a)]}),this[_0x2488e5(0x154)][_0x2488e5(0x1a6)][_0x2488e5(0x190)](_0x9071b3);}}[_0x4cf5e2(0x13e)](){const _0xf3c1f0=_0x4cf5e2;this[_0xf3c1f0(0x192)][_0xf3c1f0(0x128)]?this[_0xf3c1f0(0x19a)]():this[_0xf3c1f0(0x180)]();}[_0x4cf5e2(0x12e)](){const _0x5d30a2=_0x4cf5e2,_0xbeaefe=this[_0x5d30a2(0x18a)][_0x5d30a2(0x117)]>0x0;this[_0x5d30a2(0x192)]?.[_0x5d30a2(0x13c)]&&(this[_0x5d30a2(0x192)][_0x5d30a2(0x13c)][_0x5d30a2(0x1a7)][_0x5d30a2(0x161)]=_0xbeaefe?'':_0x5d30a2(0x18e));}[_0x4cf5e2(0x140)](){const _0x4a2ba4=_0x4cf5e2;this[_0x4a2ba4(0x192)]?.[_0x4a2ba4(0x128)]&&this[_0x4a2ba4(0x154)]?.[_0x4a2ba4(0x145)]&&this[_0x4a2ba4(0x192)][_0x4a2ba4(0x13c)]&&this[_0x4a2ba4(0x154)][_0x4a2ba4(0x16d)]({'target':this[_0x4a2ba4(0x192)][_0x4a2ba4(0x13c)],'limiter':document[_0x4a2ba4(0x1a4)](_0x4a2ba4(0x175))});}[_0x4cf5e2(0x15c)](_0x1a6e10){const _0x1ffb79=_0x4cf5e2,_0x50240c=this[_0x1ffb79(0x18f)]?.[_0x1ffb79(0x14a)][_0x1ffb79(0x169)]()||_0x1ffb79(0x125),_0x1f378a=this[_0x1ffb79(0x18f)]?.[_0x1ffb79(0x191)];if(_0x1f378a){const _0x2ef5b0=_0x1f378a[0x0]||'',_0x562bd8=_0x1a6e10[_0x1ffb79(0x1a4)]('.'+_0x2ef5b0),_0x46c87f=_0x1a6e10[_0x1ffb79(0x1a4)](_0x50240c);return _0x562bd8||_0x46c87f||_0x1a6e10;}return _0x1a6e10[_0x1ffb79(0x1a4)](_0x50240c)||_0x1a6e10;}[_0x4cf5e2(0x12b)](){const _0x4886cb=_0x4cf5e2,_0x30ddec=this[_0x4886cb(0x176)]?.[_0x4886cb(0x13c)]||this[_0x4886cb(0x18f)];if(!_0x30ddec)return an;const _0x3e191d=window[_0x4886cb(0x17f)](_0x30ddec)[_0x4886cb(0x116)];if(_0x4886cb(0x147)===_0x3e191d||_0x4886cb(0x15d)===_0x3e191d||!_0x3e191d){const _0x210837=_0x30ddec[_0x4886cb(0x122)];if(_0x210837){const _0x5af5be=window[_0x4886cb(0x17f)](_0x210837);return _0x4886cb(0x147)!==_0x5af5be[_0x4886cb(0x116)]?_0x5af5be[_0x4886cb(0x116)]:an;}return an;}return _0x3e191d;}[_0x4cf5e2(0x14b)](_0x1d5192,_0x211e4f){const _0x20679a=_0x4cf5e2;this[_0x20679a(0x15b)][_0x20679a(0x124)][_0x20679a(0x146)]&&_0x1d5192[_0x20679a(0x191)][_0x20679a(0x190)](this[_0x20679a(0x15b)][_0x20679a(0x124)][_0x20679a(0x146)]),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x116)]=_0x211e4f,_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x17a)]=_0x20679a(0x151),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x127)]=_0x20679a(0x17b),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x150)]=_0x20679a(0x17b),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x129)]='0',_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x148)]=_0x20679a(0x18e),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x13d)]='-1',_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x16b)]=_0x20679a(0x168),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x161)]=_0x20679a(0x17e),_0x1d5192[_0x20679a(0x1a7)][_0x20679a(0x18b)]=_0x20679a(0x14e);}[_0x4cf5e2(0x118)](_0x5b4a6a){const _0x468dbb=_0x4cf5e2;_0x5b4a6a[_0x468dbb(0x174)](({element:_0x1968be,originalDisplay:_0x3ef6bc,originalVisibility:_0x37aefd})=>{const _0x9a12d9=_0x468dbb;_0x1968be[_0x9a12d9(0x1a7)][_0x9a12d9(0x161)]=_0x3ef6bc,_0x1968be[_0x9a12d9(0x1a7)][_0x9a12d9(0x16b)]=_0x37aefd;});}[_0x4cf5e2(0x19c)](_0x5d4b54){const _0xcc6058=_0x4cf5e2,_0x39a789=[];let _0x352a25=_0x5d4b54;for(;_0x352a25&&_0x352a25!==document[_0xcc6058(0x181)];){const _0x2e7fc1=window[_0xcc6058(0x17f)](_0x352a25);_0xcc6058(0x18e)!==_0x2e7fc1[_0xcc6058(0x161)]&&_0xcc6058(0x126)!==_0x2e7fc1[_0xcc6058(0x16b)]||(_0x39a789[_0xcc6058(0x132)]({'element':_0x352a25,'originalDisplay':_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x161)],'originalVisibility':_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x16b)]}),_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x161)]=_0xcc6058(0x112),_0x352a25[_0xcc6058(0x1a7)][_0xcc6058(0x16b)]=_0xcc6058(0x167)),_0x352a25=_0x352a25[_0xcc6058(0x122)];}return _0x39a789;}[_0x4cf5e2(0x149)](){const _0x366cf3=_0x4cf5e2;let _0x23f42d,_0xc6dc36;return this[_0x366cf3(0x176)]?.[_0x366cf3(0x13c)]?(_0x23f42d=this[_0x366cf3(0x176)][_0x366cf3(0x13c)][_0x366cf3(0x17c)](!0x0),_0xc6dc36=this[_0x366cf3(0x15c)](_0x23f42d)):(_0x23f42d=document[_0x366cf3(0x19f)](_0x366cf3(0x125)),_0xc6dc36=_0x23f42d),{'calculationContainer':_0x23f42d,'targetContainer':_0xc6dc36};}[_0x4cf5e2(0x179)](){const _0x324aab=_0x4cf5e2,{calculationContainer:_0x41e244,targetContainer:_0x5e147b}=this[_0x324aab(0x149)](),_0x2f96b0=this[_0x324aab(0x12b)]();this[_0x324aab(0x14b)](_0x41e244,_0x2f96b0);const _0x586469=this[_0x324aab(0x176)]?.[_0x324aab(0x13c)]||this[_0x324aab(0x18f)],_0x29d114=_0x586469?.[_0x324aab(0x122)];_0x29d114?_0x29d114[_0x324aab(0x156)](_0x41e244):document[_0x324aab(0x181)][_0x324aab(0x156)](_0x41e244),_0x41e244[_0x324aab(0x134)]=_0x5e147b;const _0x4edf54=this[_0x324aab(0x19c)](_0x29d114||null);return _0x41e244[_0x324aab(0x171)],_0x41e244[_0x324aab(0x1a5)]=_0x4edf54,_0x41e244;}[_0x4cf5e2(0x1a1)](_0x9bce86,_0x44a0e9){const _0x53864b=_0x4cf5e2,_0x1690e0=_0x9bce86[_0x53864b(0x134)]||_0x9bce86,_0xedc2ba=[],{rowCount:_0x1fe8ea}=this[_0x53864b(0x123)](_0x1690e0,_0x44a0e9);if(_0x1fe8ea<=this[_0x53864b(0x15b)][_0x53864b(0x197)])return _0xedc2ba;const _0x4b2006=_0x44a0e9[_0x53864b(0x141)]();for(;_0x4b2006[_0x53864b(0x117)]>0x0;){if(this[_0x53864b(0x187)](_0x9bce86,_0x1690e0,_0x4b2006)){const _0x34cd97=_0x44a0e9[_0x53864b(0x131)](_0xc27de1=>!_0x4b2006[_0x53864b(0x152)](_0xc27de1));_0xedc2ba[_0x53864b(0x132)](..._0x34cd97);break;}if(!_0x4b2006[_0x53864b(0x185)]())break;}return _0xedc2ba;}[_0x4cf5e2(0x123)](_0xc84b64,_0x582537){const _0xa0e227=_0x4cf5e2;_0xc84b64[_0xa0e227(0x14c)]='',_0x582537[_0xa0e227(0x174)](_0x23df89=>{const _0x440dfe=_0xa0e227;if(_0x23df89[_0x440dfe(0x13c)]){const _0x4c47f9=_0x23df89[_0x440dfe(0x13c)][_0x440dfe(0x17c)](!0x0);_0xc84b64[_0x440dfe(0x156)](_0x4c47f9);}}),_0xc84b64[_0xa0e227(0x171)];const _0x7f99e=_0xc84b64[_0xa0e227(0x1a8)],_0xb298ed=[];return Array[_0xa0e227(0x115)](_0x7f99e)[_0xa0e227(0x174)](_0x1e6550=>{const _0x203354=_0xa0e227,_0x4d6b50=_0x1e6550[_0x203354(0x12c)]()[_0x203354(0x127)];_0xb298ed[_0x203354(0x19e)](_0x22ed12=>Math[_0x203354(0x16e)](_0x22ed12-_0x4d6b50)<this[_0x203354(0x15b)][_0x203354(0x188)])||_0xb298ed[_0x203354(0x132)](_0x4d6b50);}),{'rowCount':_0xb298ed[_0xa0e227(0x117)]};}[_0x4cf5e2(0x16c)](){const _0xfce3b0=_0x4cf5e2,_0x2137c1=document[_0xfce3b0(0x19f)](_0xfce3b0(0x136));return _0x2137c1[_0xfce3b0(0x130)]=this[_0xfce3b0(0x15b)][_0xfce3b0(0x124)][_0xfce3b0(0x172)],this[_0xfce3b0(0x15b)][_0xfce3b0(0x124)][_0xfce3b0(0x19d)]&&_0x2137c1[_0xfce3b0(0x191)][_0xfce3b0(0x190)](this[_0xfce3b0(0x15b)][_0xfce3b0(0x124)][_0xfce3b0(0x19d)]),_0x2137c1[_0xfce3b0(0x114)]=_0xfce3b0(0x196),_0x2137c1;}[_0x4cf5e2(0x187)](_0xce34f4,_0x30e9e5,_0x4c26e2){const _0x52f2a5=_0x4cf5e2;this[_0x52f2a5(0x123)](_0x30e9e5,_0x4c26e2);const _0x2b26ed=this[_0x52f2a5(0x16c)]();_0xce34f4[_0x52f2a5(0x156)](_0x2b26ed),_0xce34f4[_0x52f2a5(0x171)];const _0x42a9d2=[..._0x30e9e5[_0x52f2a5(0x1a8)],_0x2b26ed],_0x12ad02=[];_0x42a9d2[_0x52f2a5(0x174)](_0x927c64=>{const _0x460420=_0x52f2a5,_0x2614d2=_0x927c64[_0x460420(0x12c)]()[_0x460420(0x127)];_0x12ad02[_0x460420(0x19e)](_0x265b88=>Math[_0x460420(0x16e)](_0x265b88-_0x2614d2)<this[_0x460420(0x15b)][_0x460420(0x188)])||_0x12ad02[_0x460420(0x132)](_0x2614d2);});const _0x10e15e=_0x12ad02[_0x52f2a5(0x117)];return _0x2b26ed[_0x52f2a5(0x13a)](),_0x10e15e<=this[_0x52f2a5(0x15b)][_0x52f2a5(0x197)];}[_0x4cf5e2(0x133)](_0x43cac8,_0x4a711b){const _0x58aa10=_0x4cf5e2;this[_0x58aa10(0x144)][_0x58aa10(0x19b)](),this[_0x58aa10(0x18a)][_0x58aa10(0x19b)](),_0x43cac8[_0x58aa10(0x174)](_0x3cf4a2=>{const _0x5f5cc3=_0x58aa10;_0x4a711b[_0x5f5cc3(0x152)](_0x3cf4a2)?this[_0x5f5cc3(0x18a)][_0x5f5cc3(0x190)](_0x3cf4a2):this[_0x5f5cc3(0x144)][_0x5f5cc3(0x190)](_0x3cf4a2);});}[_0x4cf5e2(0x177)](_0x5d42a1){const _0x2f031b=_0x4cf5e2;if(_0x5d42a1>0x0&&!this[_0x2f031b(0x192)]&&this[_0x2f031b(0x199)](),_0x5d42a1>0x0&&this[_0x2f031b(0x192)]){const _0x4f1bc7=''+this[_0x2f031b(0x15b)][_0x2f031b(0x170)]+(_0x5d42a1<0x63?_0x5d42a1:'99');this[_0x2f031b(0x192)][_0x2f031b(0x11e)]=_0x4f1bc7;}this[_0x2f031b(0x153)](),this[_0x2f031b(0x12e)](),this[_0x2f031b(0x140)]();}[_0x4cf5e2(0x11c)](_0x31758b,_0x28bdfb){const _0x4d1acf=_0x4cf5e2;this[_0x4d1acf(0x133)](_0x31758b,_0x28bdfb),this[_0x4d1acf(0x177)](_0x28bdfb[_0x4d1acf(0x117)]);}[_0x4cf5e2(0x121)](){const _0x3660a0=_0x4cf5e2;this[_0x3660a0(0x18f)]&&_0x3660a0(0x157)!=typeof IntersectionObserver&&(this[_0x3660a0(0x12d)]=new IntersectionObserver(_0x4e9e18=>{const _0x138c79=_0x3660a0;_0x4e9e18[0x0][_0x138c79(0x14d)]&&this[_0x138c79(0x160)]&&requestAnimationFrame(()=>{const _0x58214d=_0x138c79;this[_0x58214d(0x18c)]();});},{'threshold':0.01,'rootMargin':_0x3660a0(0x1a2)}),this[_0x3660a0(0x12d)][_0x3660a0(0x162)](this[_0x3660a0(0x18f)]));}[_0x4cf5e2(0x1a0)](){const _0x1ae7cd=_0x4cf5e2;if(!this[_0x1ae7cd(0x18f)])return!0x1;if(!this[_0x1ae7cd(0x18f)][_0x1ae7cd(0x139)])return!0x1;const _0x291f15=this[_0x1ae7cd(0x18f)][_0x1ae7cd(0x12c)]();if(0x0===_0x291f15[_0x1ae7cd(0x116)]||0x0===_0x291f15[_0x1ae7cd(0x189)])return!0x1;const _0x4c47e0=window[_0x1ae7cd(0x13f)]||document[_0x1ae7cd(0x16f)][_0x1ae7cd(0x119)],_0x548245=window[_0x1ae7cd(0x13b)]||document[_0x1ae7cd(0x16f)][_0x1ae7cd(0x135)],_0xeb8a12=0xc8;return _0x291f15[_0x1ae7cd(0x194)]>=-0xc8&&_0x291f15[_0x1ae7cd(0x127)]<=_0x4c47e0+_0xeb8a12&&_0x291f15[_0x1ae7cd(0x182)]>=-0xc8&&_0x291f15[_0x1ae7cd(0x150)]<=_0x548245+_0xeb8a12;}}
|
|
23
|
+
const _0x836b3=_0x934d;(function(_0x4f039a,_0x20dfcc){const _0x313fb7=_0x934d,_0x2baf39=_0x4f039a();while(!![]){try{const _0xa433be=-parseInt(_0x313fb7(0xb0))/0x1*(parseInt(_0x313fb7(0xf4))/0x2)+-parseInt(_0x313fb7(0xe4))/0x3+parseInt(_0x313fb7(0xf3))/0x4+-parseInt(_0x313fb7(0x92))/0x5+parseInt(_0x313fb7(0x6f))/0x6*(parseInt(_0x313fb7(0xe0))/0x7)+-parseInt(_0x313fb7(0x94))/0x8+parseInt(_0x313fb7(0xc8))/0x9;if(_0xa433be===_0x20dfcc)break;else _0x2baf39['push'](_0x2baf39['shift']());}catch(_0x4c09a0){_0x2baf39['push'](_0x2baf39['shift']());}}}(_0x40c8,0xa2a84));import{View as _0x5d657d,BalloonPanelView as _0x3e644b,ButtonView as _0x1787cf,clickOutsideHandler as _0x126de1}from'ckeditor5/src/ui.js';import{Collection as _0xde7a8f}from'ckeditor5/src/utils.js';function _0x40c8(){const _0x45cd33=['block','7iPFBny','width','_makeAncestorsVisible','_applyCalculationStyles','1467858MpfEAc','add','border-box','left','_calculateOverflowInContainer','isOn','clear','content','textContent','cssClasses','offsetWidth','showBalloonPanel','visibility','_bodyCollection','length','3677800hzZOyF','2QIndfv','300px','_restoreAncestorVisibility','_isContainerVisible','hidden','+\x201','includes','getBoundingClientRect','destroy','_renderChipsAndCountRows','div','_setupVisibilityObserver','_updateOverflowUI','_createShowMoreBalloonPanelView','7915962BUkMtY','undefined','createElement','disconnect','pin','classList','appendChild','setTemplate','clientWidth','_visibleChips','right','innerWidth','filter','showMoreButtonView','element','bottom','_showMoreButtonView','opacity','visible\x20!important','pop','_calculateContainerWidth','_parentView','_createShowMoreButton','observe','slice','isIntersecting','display','-9999px','remove','position','showMoreButton','_targetContainer','rowDetectionTolerance','pointerEvents','block\x20!important','5203925NIMAUV','_pendingCalculation','9850160BlxwiT','innerHeight','_intersectionObserver','showMoreBalloon','cloneNode','forEach','getComputedStyle','_testButtonFit','isVisible','_checkAndHandleOverflow','.ck-ai-chat','push','controlsButton','_containerElement','calculationContainer','height','from','_handleShowMoreButtonClick','_findTargetContainer','reorganizeChips','body','_overflowChips','ck-calculation-container','auto','_ancestorsToRestore','visible','none','_createMockButton','140729xIJiGi','render','maxVisibleRows','top','some','isConnected','_locale','set','showMoreLabelPrefix','_createShowMoreButtonView','hideBalloonPanel','className','abs','overflowContainer','style','zIndex','extendTemplate','_distributeChips','0px','clientHeight','button','querySelector','_updateBalloonContent','children','11965833UtQpxF','label','disableAnimationOnEnter','execute','_createCalculationContainer','absolute','_showMoreBalloonPanelView','documentElement','_repinBalloonPanel','_config','hide','overflowChips','_updateShowMoreButtonVisibility','parentElement','innerHTML','tagName','50px','toLowerCase','boxSizing','_createContainerElements','_applyOverflowResults','setContainerElement','show'];_0x40c8=function(){return _0x45cd33;};return _0x40c8();}function _0x934d(_0x1472d5,_0x5933ac){const _0x40c85a=_0x40c8();return _0x934d=function(_0x934d44,_0x23c050){_0x934d44=_0x934d44-0x6a;let _0x7b53b8=_0x40c85a[_0x934d44];return _0x7b53b8;},_0x934d(_0x1472d5,_0x5933ac);}const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x836b3(0xf5);export class AIChatChipsOverflowManager{[_0x836b3(0xb6)];[_0x836b3(0xd1)];[_0x836b3(0x78)];[_0x836b3(0xa9)];[_0x836b3(0x7f)]=null;[_0x836b3(0xce)]=null;[_0x836b3(0xa1)]=null;[_0x836b3(0xf1)];[_0x836b3(0x84)]=null;[_0x836b3(0x96)]=null;[_0x836b3(0x93)]=!0x1;constructor(_0xa4207b,_0x4c643b,_0x3fe2fd,_0x17cc90,_0x136c8c){const _0x3ce28b=_0x836b3;this[_0x3ce28b(0xb6)]=_0xa4207b,this[_0x3ce28b(0x78)]=_0x4c643b,this[_0x3ce28b(0xd1)]={...wn,..._0x3fe2fd,'cssClasses':{'controlsButton':'','calculationContainer':_0x3ce28b(0xaa),..._0x3fe2fd[_0x3ce28b(0xed)]}},this[_0x3ce28b(0xa9)]=new _0xde7a8f(),this[_0x3ce28b(0xf1)]=_0x17cc90,this[_0x3ce28b(0x84)]=_0x136c8c||null;}[_0x836b3(0xdd)](_0x340d11){const _0x4dd507=_0x836b3;this[_0x4dd507(0x96)]&&(this[_0x4dd507(0x96)][_0x4dd507(0x72)](),this[_0x4dd507(0x96)]=null),this[_0x4dd507(0xa1)]=_0x340d11,this[_0x4dd507(0x6c)]();}get[_0x836b3(0x7c)](){const _0x44dd1a=_0x836b3;return this[_0x44dd1a(0x7f)];}get[_0x836b3(0xd3)](){const _0xff18f0=_0x836b3;return this[_0xff18f0(0xa9)];}[_0x836b3(0xa7)](){requestAnimationFrame(()=>{const _0x3ba1fe=_0x934d;this[_0x3ba1fe(0x9d)]();});}[_0x836b3(0xef)](){const _0x279f91=_0x836b3;this[_0x279f91(0x7f)]&&this[_0x279f91(0xce)]&&(this[_0x279f91(0xc6)](),this[_0x279f91(0x7f)][_0x279f91(0xe9)]=!0x0,this[_0x279f91(0xce)][_0x279f91(0xde)](),this[_0x279f91(0xce)][_0x279f91(0x73)]({'target':this[_0x279f91(0x7f)][_0x279f91(0x7d)],'limiter':document[_0x279f91(0xc5)](_0x279f91(0x9e))}));}[_0x836b3(0xba)](){const _0x16695e=_0x836b3;this[_0x16695e(0x7f)]&&this[_0x16695e(0xce)]&&(this[_0x16695e(0x7f)][_0x16695e(0xe9)]=!0x1,this[_0x16695e(0xce)][_0x16695e(0xd2)]());}[_0x836b3(0xea)](){const _0x3db2dc=_0x836b3;this[_0x3db2dc(0xa9)][_0x3db2dc(0xea)](),this[_0x3db2dc(0xba)](),this[_0x3db2dc(0xd4)](),this[_0x3db2dc(0x7f)]&&(this[_0x3db2dc(0x7f)][_0x3db2dc(0xc9)]=''),this[_0x3db2dc(0xce)]&&this[_0x3db2dc(0xce)][_0x3db2dc(0xeb)][_0x3db2dc(0xea)]();}[_0x836b3(0xfc)](){const _0x28cbc7=_0x836b3;this[_0x28cbc7(0x96)]&&(this[_0x28cbc7(0x96)][_0x28cbc7(0x72)](),this[_0x28cbc7(0x96)]=null),this[_0x28cbc7(0x7f)]&&(this[_0x28cbc7(0x7f)][_0x28cbc7(0xfc)](),this[_0x28cbc7(0x7f)]=null),this[_0x28cbc7(0xce)]&&(this[_0x28cbc7(0xce)][_0x28cbc7(0xfc)](),this[_0x28cbc7(0xce)]=null);}[_0x836b3(0x9d)](){const _0x487220=_0x836b3;if(!this[_0x487220(0xa1)])return;if(!this[_0x487220(0xf7)]())return void(this[_0x487220(0x93)]=!0x0);this[_0x487220(0x93)]=!0x1;const _0x2172a0=[...this[_0x487220(0x78)],...this[_0x487220(0xa9)]],_0x2d6f8c=this[_0x487220(0xcc)](),_0x5e8104=this[_0x487220(0xe8)](_0x2d6f8c,_0x2172a0),_0x8ff5a4=_0x2d6f8c[_0x487220(0xac)];_0x8ff5a4&&this[_0x487220(0xf6)](_0x8ff5a4),_0x2d6f8c[_0x487220(0x8b)](),this[_0x487220(0xdc)](_0x2172a0,_0x5e8104);}[_0x836b3(0x85)](){const _0x3887f8=_0x836b3;this[_0x3887f8(0x7f)]=this[_0x3887f8(0xb9)](),this[_0x3887f8(0xce)]=this[_0x3887f8(0x6e)](),this[_0x3887f8(0x7f)][_0x3887f8(0xb1)](),this[_0x3887f8(0xa1)][_0x3887f8(0x75)](this[_0x3887f8(0x7f)][_0x3887f8(0x7d)]),this[_0x3887f8(0x7f)]['on'](_0x3887f8(0xcb),()=>{const _0x370066=_0x3887f8;this[_0x370066(0xa5)]();}),_0x126de1({'emitter':this[_0x3887f8(0xce)],'contextElements':[this[_0x3887f8(0xce)][_0x3887f8(0x7d)],this[_0x3887f8(0x7f)][_0x3887f8(0x7d)]],'callback':()=>this[_0x3887f8(0xba)](),'activator':()=>this[_0x3887f8(0x7f)][_0x3887f8(0xe9)]});}[_0x836b3(0xb9)](){const _0x115d6d=_0x836b3,_0x4cd16c=new _0x1787cf(this[_0x115d6d(0xb6)]);_0x4cd16c[_0x115d6d(0xb7)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x772b77=[this[_0x115d6d(0xd1)][_0x115d6d(0xed)][_0x115d6d(0x8d)]];return this[_0x115d6d(0xd1)][_0x115d6d(0xed)][_0x115d6d(0xa0)]&&_0x772b77[_0x115d6d(0x9f)](this[_0x115d6d(0xd1)][_0x115d6d(0xed)][_0x115d6d(0xa0)]),_0x4cd16c[_0x115d6d(0xc0)]({'attributes':{'class':_0x772b77}}),_0x4cd16c;}[_0x836b3(0x6e)](){const _0x39cdf4=_0x836b3,_0x441f80=new _0x3e644b(this[_0x39cdf4(0xb6)]);return _0x441f80[_0x39cdf4(0xc0)]({'attributes':{'class':this[_0x39cdf4(0xd1)][_0x39cdf4(0xed)][_0x39cdf4(0x97)]}}),this[_0x39cdf4(0xf1)][_0x39cdf4(0xe5)](_0x441f80),_0x441f80;}[_0x836b3(0xc6)](){const _0x446f11=_0x836b3;if(this[_0x446f11(0xce)]&&(this[_0x446f11(0xce)][_0x446f11(0xeb)][_0x446f11(0xea)](),this[_0x446f11(0xa9)][_0x446f11(0xf2)]>0x0)){this[_0x446f11(0xa9)][_0x446f11(0x99)](_0x4ab8b1=>{const _0x5980d5=_0x446f11;_0x4ab8b1[_0x5980d5(0xca)]();});const _0x2869a7=new _0x5d657d(this[_0x446f11(0xb6)]);_0x2869a7[_0x446f11(0x76)]({'tag':_0x446f11(0x6b),'attributes':{'class':this[_0x446f11(0xd1)][_0x446f11(0xed)][_0x446f11(0xbd)]},'children':this[_0x446f11(0xa9)]}),this[_0x446f11(0xce)][_0x446f11(0xeb)][_0x446f11(0xe5)](_0x2869a7);}}[_0x836b3(0xa5)](){const _0x4e0a66=_0x836b3;this[_0x4e0a66(0x7f)][_0x4e0a66(0xe9)]?this[_0x4e0a66(0xba)]():this[_0x4e0a66(0xef)]();}[_0x836b3(0xd4)](){const _0x5d67f2=_0x836b3,_0x11c1b2=this[_0x5d67f2(0xa9)][_0x5d67f2(0xf2)]>0x0;this[_0x5d67f2(0x7f)]?.[_0x5d67f2(0x7d)]&&(this[_0x5d67f2(0x7f)][_0x5d67f2(0x7d)][_0x5d67f2(0xbe)][_0x5d67f2(0x89)]=_0x11c1b2?'':_0x5d67f2(0xae));}[_0x836b3(0xd0)](){const _0x4c2b08=_0x836b3;this[_0x4c2b08(0x7f)]?.[_0x4c2b08(0xe9)]&&this[_0x4c2b08(0xce)]?.[_0x4c2b08(0x9c)]&&this[_0x4c2b08(0x7f)][_0x4c2b08(0x7d)]&&this[_0x4c2b08(0xce)][_0x4c2b08(0x73)]({'target':this[_0x4c2b08(0x7f)][_0x4c2b08(0x7d)],'limiter':document[_0x4c2b08(0xc5)](_0x4c2b08(0x9e))});}[_0x836b3(0xa6)](_0x5d50ea){const _0x13f229=_0x836b3,_0x3d6846=this[_0x13f229(0xa1)]?.[_0x13f229(0xd7)][_0x13f229(0xd9)]()||_0x13f229(0x6b),_0xcd2015=this[_0x13f229(0xa1)]?.[_0x13f229(0x74)];if(_0xcd2015){const _0x1a2422=_0xcd2015[0x0]||'',_0x4a9c41=_0x5d50ea[_0x13f229(0xc5)]('.'+_0x1a2422),_0x202044=_0x5d50ea[_0x13f229(0xc5)](_0x3d6846);return _0x4a9c41||_0x202044||_0x5d50ea;}return _0x5d50ea[_0x13f229(0xc5)](_0x3d6846)||_0x5d50ea;}[_0x836b3(0x83)](){const _0x53a807=_0x836b3,_0x1110fd=this[_0x53a807(0x84)]?.[_0x53a807(0x7d)]||this[_0x53a807(0xa1)];if(!_0x1110fd)return dn;const _0x1da4f5=window[_0x53a807(0x9a)](_0x1110fd)[_0x53a807(0xe1)];if(_0x53a807(0xab)===_0x1da4f5||_0x53a807(0xc2)===_0x1da4f5||!_0x1da4f5){const _0x3fd885=_0x1110fd[_0x53a807(0xd5)];if(_0x3fd885){const _0x4dca06=window[_0x53a807(0x9a)](_0x3fd885);return _0x53a807(0xab)!==_0x4dca06[_0x53a807(0xe1)]?_0x4dca06[_0x53a807(0xe1)]:dn;}return dn;}return _0x1da4f5;}[_0x836b3(0xe3)](_0x398103,_0x41697f){const _0x2fcaec=_0x836b3;this[_0x2fcaec(0xd1)][_0x2fcaec(0xed)][_0x2fcaec(0xa2)]&&_0x398103[_0x2fcaec(0x74)][_0x2fcaec(0xe5)](this[_0x2fcaec(0xd1)][_0x2fcaec(0xed)][_0x2fcaec(0xa2)]),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xe1)]=_0x41697f,_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0x8c)]=_0x2fcaec(0xcd),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xb3)]=_0x2fcaec(0x8a),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xe7)]=_0x2fcaec(0x8a),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0x80)]='0',_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0x90)]=_0x2fcaec(0xae),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xbf)]='-1',_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xf0)]=_0x2fcaec(0x81),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0x89)]=_0x2fcaec(0x91),_0x398103[_0x2fcaec(0xbe)][_0x2fcaec(0xda)]=_0x2fcaec(0xe6);}[_0x836b3(0xf6)](_0x59a445){const _0x3eac10=_0x836b3;_0x59a445[_0x3eac10(0x99)](({element:_0x60f729,originalDisplay:_0x310312,originalVisibility:_0x365a78})=>{const _0x450c22=_0x3eac10;_0x60f729[_0x450c22(0xbe)][_0x450c22(0x89)]=_0x310312,_0x60f729[_0x450c22(0xbe)][_0x450c22(0xf0)]=_0x365a78;});}[_0x836b3(0xe2)](_0x17d90d){const _0x266874=_0x836b3,_0x2087e6=[];let _0x212877=_0x17d90d;for(;_0x212877&&_0x212877!==document[_0x266874(0xa8)];){const _0xb93dc1=window[_0x266874(0x9a)](_0x212877);_0x266874(0xae)!==_0xb93dc1[_0x266874(0x89)]&&_0x266874(0xf8)!==_0xb93dc1[_0x266874(0xf0)]||(_0x2087e6[_0x266874(0x9f)]({'element':_0x212877,'originalDisplay':_0x212877[_0x266874(0xbe)][_0x266874(0x89)],'originalVisibility':_0x212877[_0x266874(0xbe)][_0x266874(0xf0)]}),_0x212877[_0x266874(0xbe)][_0x266874(0x89)]=_0x266874(0xdf),_0x212877[_0x266874(0xbe)][_0x266874(0xf0)]=_0x266874(0xad)),_0x212877=_0x212877[_0x266874(0xd5)];}return _0x2087e6;}[_0x836b3(0xdb)](){const _0x185566=_0x836b3;let _0x37fefb,_0xbc0bbd;return this[_0x185566(0x84)]?.[_0x185566(0x7d)]?(_0x37fefb=this[_0x185566(0x84)][_0x185566(0x7d)][_0x185566(0x98)](!0x0),_0xbc0bbd=this[_0x185566(0xa6)](_0x37fefb)):(_0x37fefb=document[_0x185566(0x71)](_0x185566(0x6b)),_0xbc0bbd=_0x37fefb),{'calculationContainer':_0x37fefb,'targetContainer':_0xbc0bbd};}[_0x836b3(0xcc)](){const _0x1bd521=_0x836b3,{calculationContainer:_0x4f9e31,targetContainer:_0x743d27}=this[_0x1bd521(0xdb)](),_0x34fc11=this[_0x1bd521(0x83)]();this[_0x1bd521(0xe3)](_0x4f9e31,_0x34fc11);const _0x252b03=this[_0x1bd521(0x84)]?.[_0x1bd521(0x7d)]||this[_0x1bd521(0xa1)],_0x49a382=_0x252b03?.[_0x1bd521(0xd5)];_0x49a382?_0x49a382[_0x1bd521(0x75)](_0x4f9e31):document[_0x1bd521(0xa8)][_0x1bd521(0x75)](_0x4f9e31),_0x4f9e31[_0x1bd521(0x8e)]=_0x743d27;const _0x3aa235=this[_0x1bd521(0xe2)](_0x49a382||null);return _0x4f9e31[_0x1bd521(0xee)],_0x4f9e31[_0x1bd521(0xac)]=_0x3aa235,_0x4f9e31;}[_0x836b3(0xe8)](_0x128641,_0x2f8d57){const _0x27b25d=_0x836b3,_0x1859f8=_0x128641[_0x27b25d(0x8e)]||_0x128641,_0x35b4b8=[],{rowCount:_0x3dff84}=this[_0x27b25d(0x6a)](_0x1859f8,_0x2f8d57);if(_0x3dff84<=this[_0x27b25d(0xd1)][_0x27b25d(0xb2)])return _0x35b4b8;const _0x53178b=_0x2f8d57[_0x27b25d(0x87)]();for(;_0x53178b[_0x27b25d(0xf2)]>0x0;){if(this[_0x27b25d(0x9b)](_0x128641,_0x1859f8,_0x53178b)){const _0x249873=_0x2f8d57[_0x27b25d(0x7b)](_0x522f40=>!_0x53178b[_0x27b25d(0xfa)](_0x522f40));_0x35b4b8[_0x27b25d(0x9f)](..._0x249873);break;}if(!_0x53178b[_0x27b25d(0x82)]())break;}return _0x35b4b8;}[_0x836b3(0x6a)](_0x1b2f7f,_0x3bbca4){const _0x49a3df=_0x836b3;_0x1b2f7f[_0x49a3df(0xd6)]='',_0x3bbca4[_0x49a3df(0x99)](_0x43e6b4=>{const _0x2f3307=_0x49a3df;if(_0x43e6b4[_0x2f3307(0x7d)]){const _0x3600f5=_0x43e6b4[_0x2f3307(0x7d)][_0x2f3307(0x98)](!0x0);_0x1b2f7f[_0x2f3307(0x75)](_0x3600f5);}}),_0x1b2f7f[_0x49a3df(0xee)];const _0x29f9c3=_0x1b2f7f[_0x49a3df(0xc7)],_0x4c0b87=[];return Array[_0x49a3df(0xa4)](_0x29f9c3)[_0x49a3df(0x99)](_0x30735f=>{const _0x82fc30=_0x49a3df,_0x1d579f=_0x30735f[_0x82fc30(0xfb)]()[_0x82fc30(0xb3)];_0x4c0b87[_0x82fc30(0xb4)](_0x19652c=>Math[_0x82fc30(0xbc)](_0x19652c-_0x1d579f)<this[_0x82fc30(0xd1)][_0x82fc30(0x8f)])||_0x4c0b87[_0x82fc30(0x9f)](_0x1d579f);}),{'rowCount':_0x4c0b87[_0x49a3df(0xf2)]};}[_0x836b3(0xaf)](){const _0x4a39d2=_0x836b3,_0x3ad88b=document[_0x4a39d2(0x71)](_0x4a39d2(0xc4));return _0x3ad88b[_0x4a39d2(0xbb)]=this[_0x4a39d2(0xd1)][_0x4a39d2(0xed)][_0x4a39d2(0x8d)],this[_0x4a39d2(0xd1)][_0x4a39d2(0xed)][_0x4a39d2(0xa0)]&&_0x3ad88b[_0x4a39d2(0x74)][_0x4a39d2(0xe5)](this[_0x4a39d2(0xd1)][_0x4a39d2(0xed)][_0x4a39d2(0xa0)]),_0x3ad88b[_0x4a39d2(0xec)]=_0x4a39d2(0xf9),_0x3ad88b;}[_0x836b3(0x9b)](_0x36b713,_0x5446f4,_0x3b967c){const _0x2c15ec=_0x836b3;this[_0x2c15ec(0x6a)](_0x5446f4,_0x3b967c);const _0x5a26c8=this[_0x2c15ec(0xaf)]();_0x36b713[_0x2c15ec(0x75)](_0x5a26c8),_0x36b713[_0x2c15ec(0xee)];const _0x353c3c=[..._0x5446f4[_0x2c15ec(0xc7)],_0x5a26c8],_0x1089fc=[];_0x353c3c[_0x2c15ec(0x99)](_0x153c64=>{const _0x22c630=_0x2c15ec,_0x56f87d=_0x153c64[_0x22c630(0xfb)]()[_0x22c630(0xb3)];_0x1089fc[_0x22c630(0xb4)](_0x3cb322=>Math[_0x22c630(0xbc)](_0x3cb322-_0x56f87d)<this[_0x22c630(0xd1)][_0x22c630(0x8f)])||_0x1089fc[_0x22c630(0x9f)](_0x56f87d);});const _0x112a2a=_0x1089fc[_0x2c15ec(0xf2)];return _0x5a26c8[_0x2c15ec(0x8b)](),_0x112a2a<=this[_0x2c15ec(0xd1)][_0x2c15ec(0xb2)];}[_0x836b3(0xc1)](_0x83c0fc,_0x2f0f87){const _0x48862a=_0x836b3;this[_0x48862a(0x78)][_0x48862a(0xea)](),this[_0x48862a(0xa9)][_0x48862a(0xea)](),_0x83c0fc[_0x48862a(0x99)](_0xd18f40=>{const _0x1be81a=_0x48862a;_0x2f0f87[_0x1be81a(0xfa)](_0xd18f40)?this[_0x1be81a(0xa9)][_0x1be81a(0xe5)](_0xd18f40):this[_0x1be81a(0x78)][_0x1be81a(0xe5)](_0xd18f40);});}[_0x836b3(0x6d)](_0x2f8382){const _0x58c5da=_0x836b3;if(_0x2f8382>0x0&&!this[_0x58c5da(0x7f)]&&this[_0x58c5da(0x85)](),_0x2f8382>0x0&&this[_0x58c5da(0x7f)]){const _0x5068a6=''+this[_0x58c5da(0xd1)][_0x58c5da(0xb8)]+(_0x2f8382<0x63?_0x2f8382:'99');this[_0x58c5da(0x7f)][_0x58c5da(0xc9)]=_0x5068a6;}this[_0x58c5da(0xc6)](),this[_0x58c5da(0xd4)](),this[_0x58c5da(0xd0)]();}[_0x836b3(0xdc)](_0x59fbc0,_0x31f007){const _0x28e5aa=_0x836b3;this[_0x28e5aa(0xc1)](_0x59fbc0,_0x31f007),this[_0x28e5aa(0x6d)](_0x31f007[_0x28e5aa(0xf2)]);}[_0x836b3(0x6c)](){const _0x53491d=_0x836b3;this[_0x53491d(0xa1)]&&_0x53491d(0x70)!=typeof IntersectionObserver&&(this[_0x53491d(0x96)]=new IntersectionObserver(_0x1e3a36=>{const _0x3cb98e=_0x53491d;_0x1e3a36[0x0][_0x3cb98e(0x88)]&&this[_0x3cb98e(0x93)]&&requestAnimationFrame(()=>{const _0x443ef5=_0x3cb98e;this[_0x443ef5(0x9d)]();});},{'threshold':0.01,'rootMargin':_0x53491d(0xd8)}),this[_0x53491d(0x96)][_0x53491d(0x86)](this[_0x53491d(0xa1)]));}[_0x836b3(0xf7)](){const _0x451679=_0x836b3;if(!this[_0x451679(0xa1)])return!0x1;if(!this[_0x451679(0xa1)][_0x451679(0xb5)])return!0x1;const _0x326637=this[_0x451679(0xa1)][_0x451679(0xfb)]();if(0x0===_0x326637[_0x451679(0xe1)]||0x0===_0x326637[_0x451679(0xa3)])return!0x1;const _0x4bf1a8=window[_0x451679(0x95)]||document[_0x451679(0xcf)][_0x451679(0xc3)],_0x2596e1=window[_0x451679(0x7a)]||document[_0x451679(0xcf)][_0x451679(0x77)],_0x544db5=0xc8;return _0x326637[_0x451679(0x7e)]>=-0xc8&&_0x326637[_0x451679(0xb3)]<=_0x4bf1a8+_0x544db5&&_0x326637[_0x451679(0x79)]>=-0xc8&&_0x326637[_0x451679(0xe7)]<=_0x2596e1+_0x544db5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4ee9ba=_0x2d13;(function(_0x22dfc3,_0x16b3e3){const _0x3fa9ba=_0x2d13,_0x132da5=_0x22dfc3();while(!![]){try{const _0x303eb1=parseInt(_0x3fa9ba(0xe1))/0x1+parseInt(_0x3fa9ba(0xd6))/0x2*(-parseInt(_0x3fa9ba(0xf5))/0x3)+-parseInt(_0x3fa9ba(0xfe))/0x4*(parseInt(_0x3fa9ba(0xfb))/0x5)+parseInt(_0x3fa9ba(0xde))/0x6+-parseInt(_0x3fa9ba(0x104))/0x7+parseInt(_0x3fa9ba(0x10d))/0x8+parseInt(_0x3fa9ba(0xd1))/0x9*(parseInt(_0x3fa9ba(0x108))/0xa);if(_0x303eb1===_0x16b3e3)break;else _0x132da5['push'](_0x132da5['shift']());}catch(_0x42e4c1){_0x132da5['push'](_0x132da5['shift']());}}}(_0x1f92,0x385af));import{ButtonView as _0x419a0c,IconView as _0x10d238}from'ckeditor5/src/ui.js';import{IconClose as _0x154d53,IconDocument as _0x562a73,IconFileUpload as _0xcf4db1,IconLink as _0x1177a3,IconSelection as _0x2f777c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1653bd}from'../../../aicore/utils/common-translations.js';function _0x1f92(){const _0x5a3a79=['_handleAnimationEndOnce','_createTemplateAttributes','_createIconView','selection','_createLoaderIcon','306ulinnl','content','ck-ai-chat-context-chip_document','ck-ai-chat-context-chip','uiId','set','255ikGOJY','removeContextItemChip','bindTemplate','8348rxGpvk','removeEventListener','tooltip','type','ck-ai-chat-context-chip__label','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','3133368MhwQGe','small','_createRemoveButton','span','1630lvkaxy','ck-ai-chat-context-chip_wide','_isAnimationOnEnterEnabled','ck-ai-chat-context-controls__chip-tooltip','_setupRemoveButtonEvent','1299304UBxbJB','_initializeProperties','_setupTemplate','render','ck-ai-chat-context-chip_new-chip','readonly','18369NiFGJj','remove','add','lastIndexOf','locale','258uHFQIJ','div','setTemplate','itemType','document','webkitAnimationEnd','_createTemplateChildren','addEventListener','194418YeeXnu','ck-hidden','_createLabelElement','270551lOHDXV','execute','isLoading','bind','label','ck-ai-chat-context-chip__type-icon','isVisible','disableAnimationOnEnter','classList','length','animationend','element','extendTemplate','fire','slice'];_0x1f92=function(){return _0x5a3a79;};return _0x1f92();}import{AISpinnerView as _0x5b5884}from'../../../aicore/ui/aispinner.js';const fn={'file':_0xcf4db1,'document':_0x562a73,'web-resource':_0x1177a3,'text':_0xcf4db1,'selection':_0x2f777c},An=_0x4ee9ba(0xf8),Cn=_0x4ee9ba(0x109),On=_0x4ee9ba(0xf7),vn=_0x4ee9ba(0x102),yn=_0x4ee9ba(0xe6),Ln=_0x4ee9ba(0x10b),Rn='n';function _0x2d13(_0x3da449,_0x474f1c){const _0x1f920c=_0x1f92();return _0x2d13=function(_0x2d1382,_0xde6af9){_0x2d1382=_0x2d1382-0xcd;let _0x56c041=_0x1f920c[_0x2d1382];return _0x56c041;},_0x2d13(_0x3da449,_0x474f1c);}export class AIChatContextItemButtonView extends _0x419a0c{constructor(_0x32ff04,_0x3b2370,_0x362633,_0x58159a,_0x337bec=!0x1){const _0x378c03=_0x4ee9ba;super(_0x32ff04),this[_0x378c03(0x10a)]=_0x58159a,this[_0x378c03(0x10e)](_0x3b2370,_0x362633,_0x337bec),this[_0x378c03(0xcd)]();}[_0x4ee9ba(0xce)](){const _0x9519c7=_0x4ee9ba;super[_0x9519c7(0xce)](),this[_0x9519c7(0x10a)]&&this[_0x9519c7(0xec)]&&(this[_0x9519c7(0xec)][_0x9519c7(0xe9)][_0x9519c7(0xd3)](_0x9519c7(0xcf)),this[_0x9519c7(0xf0)](this[_0x9519c7(0xec)],()=>{const _0x1a64da=_0x9519c7;this[_0x1a64da(0xec)]&&this[_0x1a64da(0xec)][_0x1a64da(0xe9)][_0x1a64da(0xd2)](_0x1a64da(0xcf));}));}[_0x4ee9ba(0xe8)](){const _0x55ffd3=_0x4ee9ba;this[_0x55ffd3(0x10a)]=!0x1,this[_0x55ffd3(0xec)]&&this[_0x55ffd3(0xec)][_0x55ffd3(0xe9)][_0x55ffd3(0xd2)](_0x55ffd3(0xcf));}[_0x4ee9ba(0x10e)](_0x54eb23,_0x3f01c2,_0x12f59f){const _0x2cea16=_0x4ee9ba;this[_0x2cea16(0xfa)](_0x2cea16(0xe5),_0x54eb23[_0x2cea16(0xe5)]),this[_0x2cea16(0xfa)](_0x2cea16(0x100),!0x0),this[_0x2cea16(0xfa)](_0x2cea16(0xd9),_0x54eb23[_0x2cea16(0x101)]),this[_0x2cea16(0xfa)]('id',_0x54eb23[_0x2cea16(0xf9)]),this[_0x2cea16(0xfa)](_0x2cea16(0xd0),_0x3f01c2),this[_0x2cea16(0xfa)](_0x2cea16(0xe3),_0x12f59f);}[_0x4ee9ba(0xcd)](){const _0x424b52=_0x4ee9ba,_0x4dd26d=this[_0x424b52(0xf2)](),_0x412a23=this[_0x424b52(0x106)](),_0xceb2c2=this[_0x424b52(0xfd)];this[_0x424b52(0xd8)]({'tag':_0x424b52(0xd7),'attributes':this[_0x424b52(0xf1)](_0xceb2c2),'children':this[_0x424b52(0xdc)](_0x4dd26d,_0x412a23,_0xceb2c2)});}[_0x4ee9ba(0xf1)](_0x418c3e){const _0x1b9fc0=_0x4ee9ba;return{'class':[An,_0x418c3e['if'](_0x1b9fc0(0xd9),On,_0x4a0737=>_0x1b9fc0(0xda)==_0x4a0737),_0x418c3e['if'](_0x1b9fc0(0xd9),Cn,_0x425bcf=>_0x1b9fc0(0xf3)==_0x425bcf)],'data-cke-tooltip-text':_0x418c3e['to'](_0x1b9fc0(0xe5),Vn),'data-cke-tooltip-position':Rn,'data-cke-tooltip-class':Ln};}[_0x4ee9ba(0xdc)](_0x333235,_0x5f439a,_0x2c5696){const _0x24552f=_0x4ee9ba,_0x11c07d=this[_0x24552f(0xe0)](_0x2c5696),_0x482f8d=this[_0x24552f(0xf4)]();return this[_0x24552f(0xd0)]?[_0x333235,_0x11c07d]:[_0x333235,_0x482f8d,_0x11c07d,_0x5f439a];}[_0x4ee9ba(0xe0)](_0x2125d8){const _0x12c889=_0x4ee9ba;return{'tag':_0x12c889(0x107),'attributes':{'class':vn},'children':[{'text':_0x2125d8['to'](_0x12c889(0xe5))}]};}[_0x4ee9ba(0x106)](){const _0xa75937=_0x4ee9ba,_0x4044a1=new _0x419a0c(this[_0xa75937(0xd5)]);return _0x4044a1[_0xa75937(0xfa)]({'label':_0x1653bd(this[_0xa75937(0xd5)],_0xa75937(0x103)),'icon':_0x154d53}),this[_0xa75937(0x10c)](_0x4044a1),_0x4044a1;}[_0x4ee9ba(0x10c)](_0x1cfb5e){const _0x40d0bc=_0x4ee9ba;_0x1cfb5e['on'](_0x40d0bc(0xe2),()=>{const _0x4b05aa=_0x40d0bc;this[_0x4b05aa(0xee)](_0x4b05aa(0xfc),this['id']);});}[_0x4ee9ba(0xf2)](){const _0x4ae4c7=_0x4ee9ba,_0x1329af=this[_0x4ae4c7(0xfd)],_0x1f0130=new _0x10d238();return _0x1f0130[_0x4ae4c7(0xf6)]=fn[this[_0x4ae4c7(0xd9)]],_0x1f0130[_0x4ae4c7(0xed)]({'attributes':{'class':[yn,_0x1329af['if'](_0x4ae4c7(0xe3),_0x4ae4c7(0xdf),_0x189247=>_0x189247)]}}),_0x1f0130;}[_0x4ee9ba(0xf0)](_0x52cbdc,_0x566031){const _0x5d61c7=_0x4ee9ba;if(!_0x52cbdc)return;const _0x125a80=()=>{const _0x316298=_0x2d13;_0x566031(),_0x52cbdc[_0x316298(0xff)](_0x316298(0xeb),_0x125a80),_0x52cbdc[_0x316298(0xff)](_0x316298(0xdb),_0x125a80);};_0x52cbdc[_0x5d61c7(0xdd)](_0x5d61c7(0xeb),_0x125a80),_0x52cbdc[_0x5d61c7(0xdd)](_0x5d61c7(0xdb),_0x125a80);}[_0x4ee9ba(0xf4)](){const _0xaf7a4f=_0x4ee9ba,_0xfad33a=new _0x5b5884(_0xaf7a4f(0x105));return _0xfad33a[_0xaf7a4f(0xe4)](_0xaf7a4f(0xe7))['to'](this,_0xaf7a4f(0xe3),_0x307c59=>_0x307c59),_0xfad33a;}}function Vn(_0xdb60cc){const _0x230d54=_0x4ee9ba;if(!_0xdb60cc)return _0xdb60cc;if(_0xdb60cc[_0x230d54(0xea)]<=0x78)return _0xdb60cc;const _0x74615f=_0xdb60cc[_0x230d54(0xef)](0x0,0x78),_0x30285f=_0x74615f[_0x230d54(0xd4)]('\x20');return(_0x30285f>0x0?_0x74615f[_0x230d54(0xef)](0x0,_0x30285f):_0x74615f)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1e60d1=_0x4b8e;function _0x111b(){const _0x5209d8=['AI_CHAT_CONTEXT_URL_INVALID_ERROR','_createConfirmButton','children','submit','getValue','form','_createBackButton','4lrHjOv','1171706kBCLsb','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','refreshBalloon','keystrokes','setTemplate','_setupEventHandlers','element','destroy','cancel','_createUrlInputField','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','1543434vlydGj','_updateConfirmButtonState','_isValidUrl','div','forEach','ck-ai-chat-context-controls__url-form','stop','_setupTemplate','fieldView','esc','errorText','set','focus','18767zGneCD','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','AI_CHAT_CONTEXT_URL_PLACEHOLDER','37584OOIkTH','setError','AI_CHAT_CONTEXT_URL_ADD_URL','1iGpsSD','534vNQDNP','clear','input','5239605vdQKkG','locale','trim','isEnabled','342qLUbDp','_focusables','confirmButton','tab','shift+tab','focusTracker','execute','AI_CHAT_CONTEXT_URL_LABEL','value','add','fire','focusCycler','createCollection','ck-labeled-field-view_empty','809540wZhLGL','ck-button-icon\x20ck-button-back','urlInputField','clearError','listenTo','ck-button-icon','submitUrl','2154350CLxOZz','_setupKeystrokes','render','length','ck-ai-chat-context-controls__url-input-section','_handleSubmit','backButton'];_0x111b=function(){return _0x5209d8;};return _0x111b();}(function(_0xbb1559,_0x20d766){const _0x455d30=_0x4b8e,_0x5a3c00=_0xbb1559();while(!![]){try{const _0x4efacb=parseInt(_0x455d30(0x1d5))/0x1*(parseInt(_0x455d30(0x1b7))/0x2)+parseInt(_0x455d30(0x1c2))/0x3*(-parseInt(_0x455d30(0x1b6))/0x4)+parseInt(_0x455d30(0x1d9))/0x5+parseInt(_0x455d30(0x1d6))/0x6*(-parseInt(_0x455d30(0x1cf))/0x7)+-parseInt(_0x455d30(0x1d2))/0x8*(parseInt(_0x455d30(0x193))/0x9)+parseInt(_0x455d30(0x1a1))/0xa+-parseInt(_0x455d30(0x1a8))/0xb;if(_0x4efacb===_0x20d766)break;else _0x5a3c00['push'](_0x5a3c00['shift']());}catch(_0x5c6a69){_0x5a3c00['push'](_0x5a3c00['shift']());}}}(_0x111b,0x8f603));function _0x4b8e(_0x151299,_0x4af8c8){const _0x111b1e=_0x111b();return _0x4b8e=function(_0x4b8e1e,_0x212a3a){_0x4b8e1e=_0x4b8e1e-0x190;let _0x1fd1e6=_0x111b1e[_0x4b8e1e];return _0x1fd1e6;},_0x4b8e(_0x151299,_0x4af8c8);}import{FocusTracker as _0x2ec5b1,KeystrokeHandler as _0x420275}from'ckeditor5/src/utils.js';import{ButtonView as _0x21ad0f,FocusCycler as _0x1935d7,LabeledFieldView as _0x2dffcc,View as _0x124d52,FormHeaderView as _0x4c6876,createLabeledInputText as _0x485fe1,submitHandler as _0x3d2a90}from'ckeditor5/src/ui.js';import{IconCheck as _0x12166a,IconPreviousArrow as _0x3420c8}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x504f2d}from'../../../aicore/utils/common-translations.js';const ch=_0x1e60d1(0x1c7),lh=_0x1e60d1(0x1ac);export class AIChatContextPanelUrlInputView extends _0x124d52{[_0x1e60d1(0x198)];[_0x1e60d1(0x1ba)];[_0x1e60d1(0x194)];[_0x1e60d1(0x19e)];[_0x1e60d1(0x1a3)];[_0x1e60d1(0x1ae)];[_0x1e60d1(0x195)];constructor(_0x54e707){const _0x3dc841=_0x1e60d1;super(_0x54e707),this[_0x3dc841(0x198)]=new _0x2ec5b1(),this[_0x3dc841(0x1ba)]=new _0x420275(),this[_0x3dc841(0x1ae)]=this[_0x3dc841(0x1b5)](),this[_0x3dc841(0x1a3)]=this[_0x3dc841(0x1c0)](),this[_0x3dc841(0x195)]=this[_0x3dc841(0x1b0)](),this[_0x3dc841(0x194)]=this[_0x3dc841(0x19f)]([this[_0x3dc841(0x1ae)],this[_0x3dc841(0x1a3)],this[_0x3dc841(0x195)]]),this[_0x3dc841(0x19e)]=new _0x1935d7({'focusables':this[_0x3dc841(0x194)],'focusTracker':this[_0x3dc841(0x198)],'keystrokeHandler':this[_0x3dc841(0x1ba)],'actions':{'focusPrevious':_0x3dc841(0x197),'focusNext':_0x3dc841(0x196)}}),this[_0x3dc841(0x1c9)](),this[_0x3dc841(0x1bc)](),this[_0x3dc841(0x1a9)]();}[_0x1e60d1(0x1aa)](){const _0x1422db=_0x1e60d1;super[_0x1422db(0x1aa)](),this[_0x1422db(0x194)][_0x1422db(0x1c6)](_0x24d159=>{const _0x440b14=_0x1422db;this[_0x440b14(0x198)][_0x440b14(0x19c)](_0x24d159[_0x440b14(0x1bd)]),this[_0x440b14(0x1ba)][_0x440b14(0x1a5)](_0x24d159[_0x440b14(0x1bd)]);}),_0x3d2a90({'view':this}),this[_0x1422db(0x1ce)]();}[_0x1e60d1(0x1be)](){const _0x4aae76=_0x1e60d1;super[_0x4aae76(0x1be)](),this[_0x4aae76(0x198)][_0x4aae76(0x1be)](),this[_0x4aae76(0x1ba)][_0x4aae76(0x1be)]();}[_0x1e60d1(0x1ce)](){const _0x9434a0=_0x1e60d1;this[_0x9434a0(0x1a3)][_0x9434a0(0x1ce)]();}[_0x1e60d1(0x1b3)](){const _0x54f0dc=_0x1e60d1;return this[_0x54f0dc(0x1a3)][_0x54f0dc(0x1ca)][_0x54f0dc(0x1bd)]?.[_0x54f0dc(0x19b)]?.[_0x54f0dc(0x191)]()||'';}[_0x1e60d1(0x1d7)](){const _0x2c2dd6=_0x1e60d1;this[_0x2c2dd6(0x1a3)][_0x2c2dd6(0x1ca)][_0x2c2dd6(0x1bd)][_0x2c2dd6(0x19b)]='',this[_0x2c2dd6(0x1a3)][_0x2c2dd6(0x1cc)]=null,this[_0x2c2dd6(0x195)][_0x2c2dd6(0x192)]=!0x1;}[_0x1e60d1(0x1d3)](_0x3a77ff){const _0x5698ac=_0x1e60d1;this[_0x5698ac(0x1a3)][_0x5698ac(0x1cc)]=_0x3a77ff,this[_0x5698ac(0x1c3)](),this[_0x5698ac(0x19d)](_0x5698ac(0x1b9));}[_0x1e60d1(0x1a4)](){const _0x15709d=_0x1e60d1;this[_0x15709d(0x1a3)][_0x15709d(0x1cc)]=null,this[_0x15709d(0x1c3)]();}[_0x1e60d1(0x1b5)](){const _0x2a8f79=_0x1e60d1,_0x165399=new _0x21ad0f(this[_0x2a8f79(0x190)]);return _0x165399[_0x2a8f79(0x1cd)]({'icon':_0x3420c8,'tooltip':_0x504f2d(this[_0x2a8f79(0x190)],_0x2a8f79(0x1c1)),'tooltipPosition':'n','class':_0x2a8f79(0x1a2)}),_0x165399;}[_0x1e60d1(0x1c0)](){const _0x35900d=_0x1e60d1,_0x111424=new _0x2dffcc(this[_0x35900d(0x190)],_0x485fe1);return _0x111424[_0x35900d(0x1cd)]({'label':_0x504f2d(this[_0x35900d(0x190)],_0x35900d(0x19a)),'class':_0x35900d(0x1a0)}),_0x111424[_0x35900d(0x1ca)][_0x35900d(0x1cd)]({'placeholder':_0x504f2d(this[_0x35900d(0x190)],_0x35900d(0x1d1))}),_0x111424;}[_0x1e60d1(0x1b0)](){const _0x3731b9=_0x1e60d1,_0x5dd681=new _0x21ad0f(this[_0x3731b9(0x190)]);return _0x5dd681[_0x3731b9(0x1cd)]({'icon':_0x12166a,'tooltip':_0x504f2d(this[_0x3731b9(0x190)],_0x3731b9(0x1d4)),'tooltipPosition':'n','class':_0x3731b9(0x1a6),'type':_0x3731b9(0x1b2),'isEnabled':!0x1}),_0x5dd681;}[_0x1e60d1(0x1c9)](){const _0x1cd357=_0x1e60d1,_0x2c827f=new _0x4c6876(this[_0x1cd357(0x190)],{'label':_0x504f2d(this[_0x1cd357(0x190)],_0x1cd357(0x1d4)),'class':_0x1cd357(0x1b8)});_0x2c827f[_0x1cd357(0x1b1)][_0x1cd357(0x19c)](this[_0x1cd357(0x1ae)],0x0),this[_0x1cd357(0x1bb)]({'tag':_0x1cd357(0x1b4),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x2c827f,{'tag':_0x1cd357(0x1c5),'attributes':{'class':lh},'children':[this[_0x1cd357(0x1a3)],this[_0x1cd357(0x195)]]}]});}[_0x1e60d1(0x1bc)](){const _0x2ba086=_0x1e60d1;this[_0x2ba086(0x1ae)]['on'](_0x2ba086(0x199),()=>{const _0x13756d=_0x2ba086;this[_0x13756d(0x1d7)](),this[_0x13756d(0x19d)](_0x13756d(0x1bf));}),this[_0x2ba086(0x1a3)][_0x2ba086(0x1ca)]['on'](_0x2ba086(0x1d8),()=>{const _0x57c800=_0x2ba086;this[_0x57c800(0x1a4)](),this[_0x57c800(0x1c3)](),this[_0x57c800(0x19d)](_0x57c800(0x1b9));}),this['on'](_0x2ba086(0x1b2),_0x43a821=>{const _0x4e17d9=_0x2ba086;_0x43a821[_0x4e17d9(0x1c8)](),this[_0x4e17d9(0x1ad)]();});}[_0x1e60d1(0x1a9)](){const _0x345c49=_0x1e60d1;this[_0x345c49(0x1ba)][_0x345c49(0x1cd)](_0x345c49(0x1cb),(_0x3d1eab,_0xd4e89c)=>{const _0x424630=_0x345c49;this[_0x424630(0x1d7)](),this[_0x424630(0x19d)](_0x424630(0x1bf)),_0xd4e89c();});}[_0x1e60d1(0x1ad)](){const _0x2bd3e4=_0x1e60d1,_0x38cffe=this[_0x2bd3e4(0x1b3)]()[_0x2bd3e4(0x191)]();_0x38cffe?this[_0x2bd3e4(0x1c4)](_0x38cffe)?(this[_0x2bd3e4(0x1a4)](),this[_0x2bd3e4(0x19d)](_0x2bd3e4(0x1a7),_0x38cffe)):this[_0x2bd3e4(0x1d3)](_0x504f2d(this[_0x2bd3e4(0x190)],_0x2bd3e4(0x1af))):this[_0x2bd3e4(0x1d3)](_0x504f2d(this[_0x2bd3e4(0x190)],_0x2bd3e4(0x1d0)));}[_0x1e60d1(0x1c3)](){const _0x5128d3=_0x1e60d1,_0xd49c10=this[_0x5128d3(0x1b3)]()[_0x5128d3(0x191)](),_0x290160=!!this[_0x5128d3(0x1a3)][_0x5128d3(0x1cc)];this[_0x5128d3(0x195)][_0x5128d3(0x192)]=_0xd49c10[_0x5128d3(0x1ab)]>0x0&&!_0x290160;}[_0x1e60d1(0x1c4)](_0x4f9828){try{return!!new URL(_0x4f9828);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x5cfc(){const _0x130e1c=['hideAddContextBalloonPanel','AI_CHAT_CONTEXT_FILE_LABEL','4428384JUOoMn','ck-ai-chat-context-chips-wrapper-balloon','cancel','add','find','div','ck-ai-chat-context-controls__add-context-button','sources','northArrowSouth','setContainerElement','southArrowNorth','conversation','hide','execute','_createContextButton','_handleAddContextButtonClick','_addContextBalloonPanelView','AI_CHAT_CONTEXT_ADD_CONTEXT','__arrow','_overflowManager','setTemplate','_handleUrlSubmit','populateSourceResourceBalloon','_conversationContextsChips','type','bodyCollection','pin','render','current','southArrowNorthWest','_createUrlBalloonPanelView','401116fngaEA','isLoading','done','ck-ai-chat-controls_context_show-more-button','ck-ai-chat-context-controls__add-context-balloon-panel','loadSourceResources','focus','_toggleAddContextBalloon','isOn','bind','closeSourceResourceBalloon','balloonView','386628SXWrSv','northArrowSouthEast','1206534YXQEDH','arrowView','ck-ai-chat-context-controls__url-balloon-panel','showSourceResourcesBalloon','buttonView','_getLimiterElement','_removeContextFromCollection','set','_createBaseBalloonPanel','addContextItem','_createArrowView','_setupAllBalloonClickOutsideHandlers','addFileToContext','setContextItemLoading','_resourcesBalloonView','_urlInputView','menuitem','_createBalloonButton','hideUrlBalloonPanel','ck-ai-chat-context-controls__balloon-button','enabled','isHidden','ck-reset_all-excluded','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__pending-contexts','clear','element','files','children','updateResourceState','submitUrl','overflowChips','ck-ai-chat-context-controls__balloon-button-source','647358yCmFvH','northArrowSouthWest','icon','label','addDocumentToContext','clearConversationContextItems','removeContextItemChip','setAddContextOptions','searchInputVisibleFrom','tooltip','_setupUrlBalloonClickOutsideHandler','636935jvfDbF','isReadOnly','urls','content','827394qjgWoE','_urlBalloonPanelView','source','southArrowNorthEast','defaultPositions','_createResourcesBalloonView','_bindEventHandlers','body','addContextButtonView','isEnabled','addUrlToContext','_addUrlContent','closest','show','_addContextBalloonConfig','fire','showAddContextBalloonPanel','_setupTemplate','addResourceToContext','_showSourceResourcesBalloon','ck-ai-chat-context-controls','extendTemplate','clearCurrentContextItems','_currentContextsChips','destroy','ck-ai-chat','_addContextToCollection','locale','_createAddContextButtonView','12IoSyHs','document','remove','_setAddContextButtonEnabled','_setBalloonPanelContent','reorganizeChips','setConversationContext','showUrlBalloonPanel','removeContextItem','ck-ai-chat-context-controls__show-more-balloon-panel','createCollection','isAnyResourceBalloonVisible','ck-ai-chat-controls-button','refreshBalloon','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createAddContextBalloonPanelView','isVisible','AI_CHAT_CONTEXT_URL_LABEL'];_0x5cfc=function(){return _0x130e1c;};return _0x5cfc();}function _0x118a(_0x41c22a,_0x4dd91b){const _0x5cfc84=_0x5cfc();return _0x118a=function(_0x118ac2,_0x3ecc5f){_0x118ac2=_0x118ac2-0x1f0;let _0x2961c5=_0x5cfc84[_0x118ac2];return _0x2961c5;},_0x118a(_0x41c22a,_0x4dd91b);}const _0x5954e3=_0x118a;(function(_0x3ea876,_0x57141c){const _0x3b86b7=_0x118a,_0x34ebd2=_0x3ea876();while(!![]){try{const _0x3c4c2e=-parseInt(_0x3b86b7(0x268))/0x1+parseInt(_0x3b86b7(0x209))/0x2+parseInt(_0x3b86b7(0x235))/0x3*(-parseInt(_0x3b86b7(0x274))/0x4)+parseInt(_0x3b86b7(0x214))/0x5+-parseInt(_0x3b86b7(0x218))/0x6+parseInt(_0x3b86b7(0x276))/0x7+parseInt(_0x3b86b7(0x249))/0x8;if(_0x3c4c2e===_0x57141c)break;else _0x34ebd2['push'](_0x34ebd2['shift']());}catch(_0x29efab){_0x34ebd2['push'](_0x34ebd2['shift']());}}}(_0x5cfc,0x3d5c5));import{BalloonPanelView as _0x2c7ae8,ButtonView as _0x40dae2,clickOutsideHandler as _0x24dd19,FileDialogButtonView as _0x42329f,IconView as _0x543a0f,View as _0x551670}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0xd6a1b0,IconDocument as _0x2396fc,IconDocumentOutline as _0x45372a,IconDropdownArrow as _0x51f472,IconLink as _0x4ff0c6,IconPaperClip as _0x53ad40}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x25e2d8}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x3919f7}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x3ccaa9}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x245725}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x257b9a}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x5954e3(0x20d),_0x5954e3(0x1f4),_0x5954e3(0x222),_0x5954e3(0x22a),_0x5954e3(0x23d),_0x5954e3(0x26d)];const ko=_0x5954e3(0x22c),Eo=_0x5954e3(0x200),vo=_0x5954e3(0x26c),Vo=_0x5954e3(0x24f),Io=_0x5954e3(0x278),Po=_0x5954e3(0x1fb),Ro=_0x5954e3(0x208),Uo=_0x5954e3(0x241),Lo=_0x5954e3(0x24a),No=_0x5954e3(0x26b),Oo=_0x5954e3(0x23e),Mo=_0x5954e3(0x231),Ho=[_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x20a)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x251)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x275)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x266)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x253)],_0x2c7ae8[_0x5954e3(0x21c)][_0x5954e3(0x21b)]];export class AIChatContextPanelView extends _0x551670{[_0x5954e3(0x220)];[_0x5954e3(0x22f)]=this[_0x5954e3(0x23f)]();[_0x5954e3(0x260)]=this[_0x5954e3(0x23f)]();[_0x5954e3(0x25c)];[_0x5954e3(0x259)];[_0x5954e3(0x219)];[_0x5954e3(0x1f7)];[_0x5954e3(0x1f6)];[_0x5954e3(0x226)];[_0x5954e3(0x262)];constructor(_0x54e1bd,_0x342c93){const _0x265983=_0x5954e3;super(_0x54e1bd),this[_0x265983(0x262)]=_0x342c93[_0x265983(0x262)],this[_0x265983(0x22f)]=this[_0x265983(0x23f)](),this[_0x265983(0x260)]=this[_0x265983(0x23f)](),this[_0x265983(0x220)]=this[_0x265983(0x234)](_0x54e1bd),this[_0x265983(0x259)]=this[_0x265983(0x244)](_0x54e1bd),this[_0x265983(0x219)]=this[_0x265983(0x267)](_0x54e1bd),this[_0x265983(0x1f6)]=this[_0x265983(0x21d)](_0x54e1bd,_0x342c93);const _0x4fa8d8={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x265983(0x25c)]=new _0x3ccaa9(_0x54e1bd,this[_0x265983(0x22f)],_0x4fa8d8,this[_0x265983(0x262)],this),this[_0x265983(0x226)]={'buttonView':this[_0x265983(0x220)],'balloonView':this[_0x265983(0x259)],'hideMethod':this[_0x265983(0x247)][_0x265983(0x271)](this),'showMethod':this[_0x265983(0x228)][_0x265983(0x271)](this)},this[_0x265983(0x229)](),this[_0x265983(0x21e)]();}[_0x5954e3(0x264)](){const _0x4e3c82=_0x5954e3;super[_0x4e3c82(0x264)](),this[_0x4e3c82(0x1f3)](),this[_0x4e3c82(0x25c)][_0x4e3c82(0x252)](this[_0x4e3c82(0x202)]),this[_0x4e3c82(0x25c)][_0x4e3c82(0x23a)]();}[_0x5954e3(0x230)](){const _0xa1cabb=_0x5954e3;super[_0xa1cabb(0x230)](),this[_0xa1cabb(0x25c)][_0xa1cabb(0x230)](),this[_0xa1cabb(0x1f6)][_0xa1cabb(0x230)]();}[_0x5954e3(0x1f1)](_0xc40b61,_0x3de4e3){const _0x1a8130=_0x5954e3,_0x46a153=this[_0x1a8130(0x257)](_0xc40b61,_0x1a8130(0x265),!0x0,_0x3de4e3);this[_0x1a8130(0x232)](_0x46a153,this[_0x1a8130(0x22f)]),this[_0x1a8130(0x25c)][_0x1a8130(0x23a)]();}[_0x5954e3(0x23d)](_0x390416){const _0xa4b05c=_0x5954e3;this[_0xa4b05c(0x27c)](_0x390416,this[_0xa4b05c(0x22f)]),this[_0xa4b05c(0x27c)](_0x390416,this[_0xa4b05c(0x25c)][_0xa4b05c(0x207)]),this[_0xa4b05c(0x25c)][_0xa4b05c(0x23a)]();}[_0x5954e3(0x1f5)](_0x305d4b,_0x3ee02c){const _0x505500=_0x5954e3;let _0x2805d7=this[_0x505500(0x22f)][_0x505500(0x24d)](_0x15f993=>_0x15f993['id']===_0x305d4b);_0x2805d7||(_0x2805d7=this[_0x505500(0x25c)][_0x505500(0x207)][_0x505500(0x24d)](_0x559a60=>_0x559a60['id']===_0x305d4b)),_0x2805d7&&(_0x2805d7[_0x505500(0x269)]=_0x3ee02c);}[_0x5954e3(0x23b)](_0x51bffe){const _0x385136=_0x5954e3;this[_0x385136(0x260)][_0x385136(0x201)]();for(const _0x1fe814 of _0x51bffe){const _0x543e72=this[_0x385136(0x257)](_0x1fe814,_0x385136(0x254),!0x1,!0x1);this[_0x385136(0x232)](_0x543e72,this[_0x385136(0x260)]);}}[_0x5954e3(0x22e)](){const _0x3d09e8=_0x5954e3;this[_0x3d09e8(0x22f)][_0x3d09e8(0x201)](),this[_0x3d09e8(0x25c)][_0x3d09e8(0x201)]();}[_0x5954e3(0x20e)](){const _0x2a885a=_0x5954e3;this[_0x2a885a(0x260)][_0x2a885a(0x201)]();}[_0x5954e3(0x205)](_0x3aef0e,_0x2d05ad,_0x3efbe5){const _0x5e86dc=_0x5954e3;this[_0x5e86dc(0x1f6)][_0x5e86dc(0x205)](_0x3aef0e,_0x2d05ad,_0x3efbe5);}[_0x5954e3(0x247)](){const _0xfbd381=_0x5954e3;this[_0xfbd381(0x26f)](!0x1);}[_0x5954e3(0x228)](){const _0x12dbcc=_0x5954e3;this[_0x12dbcc(0x26f)](!0x0);}[_0x5954e3(0x1fa)](){const _0x41d111=_0x5954e3;this[_0x41d111(0x219)][_0x41d111(0x255)](),this[_0x41d111(0x220)][_0x41d111(0x270)]=!0x1,this[_0x41d111(0x1f7)]&&this[_0x41d111(0x1f7)][_0x41d111(0x201)]();}[_0x5954e3(0x23c)](){const _0xb41abe=_0x5954e3;this[_0xb41abe(0x219)][_0xb41abe(0x225)](),this[_0xb41abe(0x220)][_0xb41abe(0x270)]=!0x0;}[_0x5954e3(0x22b)](_0x41758a){const _0x45724d=_0x5954e3;this[_0x45724d(0x1f6)][_0x45724d(0x279)](_0x41758a),this[_0x45724d(0x220)][_0x45724d(0x270)]=!0x0;}[_0x5954e3(0x25f)](_0xa72282,_0x5f2ca0,_0x111afe,_0x2fdd2b){const _0x2a36e8=_0x5954e3;this[_0x2a36e8(0x1f6)][_0x2a36e8(0x25f)](_0xa72282,_0x111afe,_0x2fdd2b);}[_0x5954e3(0x272)](_0x5c9c74){const _0xbd8926=_0x5954e3;this[_0xbd8926(0x1f6)][_0xbd8926(0x272)](_0x5c9c74),this[_0xbd8926(0x220)][_0xbd8926(0x270)]=!0x1;}[_0x5954e3(0x210)](_0x255de9){const _0x1e7613=_0x5954e3;this[_0x1e7613(0x239)](this[_0x1e7613(0x259)],this[_0x1e7613(0x233)],_0x255de9),this[_0x1e7613(0x238)](_0x255de9);}[_0x5954e3(0x238)](_0x33e7d6){const _0x4be565=_0x5954e3,_0x2d68b1=!_0x33e7d6[_0x4be565(0x236)][_0x4be565(0x1fd)]&&_0x33e7d6[_0x4be565(0x236)][_0x4be565(0x1fc)],_0x517d93=_0x33e7d6[_0x4be565(0x216)][_0x4be565(0x1fc)],_0x3b6f81=_0x33e7d6[_0x4be565(0x203)][_0x4be565(0x1fc)];this[_0x4be565(0x220)][_0x4be565(0x221)]=_0x2d68b1||_0x517d93||_0x3b6f81;}[_0x5954e3(0x229)](){const _0x5d68e9=_0x5954e3;this[_0x5d68e9(0x25d)]({'tag':_0x5d68e9(0x24e),'attributes':{'class':[ko,_0x5d68e9(0x1fe)]},'children':[{'tag':_0x5d68e9(0x24e),'attributes':{'class':Eo},'children':this[_0x5d68e9(0x22f)]}]});}[_0x5954e3(0x21e)](){const _0x3c0a1b=_0x5954e3;this[_0x3c0a1b(0x220)]['on'](_0x3c0a1b(0x256),()=>{const _0x138a76=_0x3c0a1b;this[_0x138a76(0x258)]();});}[_0x5954e3(0x234)](_0x2265a3){const _0x16cfed=_0x5954e3,_0x13fc80=new _0x40dae2(_0x2265a3);return _0x13fc80[_0x16cfed(0x27d)]({'label':_0x245725(_0x2265a3,_0x16cfed(0x25a)),'class':Uo+'\x20'+Vo,'icon':_0x53ad40,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x13fc80;}[_0x5954e3(0x244)](_0x42397f){const _0x6100b5=_0x5954e3;return this[_0x6100b5(0x1f0)](_0x42397f,vo);}[_0x5954e3(0x267)](_0x1764de){const _0xad43da=_0x5954e3,_0x34ddb2=this[_0xad43da(0x1f0)](_0x1764de,Io);return this[_0xad43da(0x223)](_0x34ddb2,_0x1764de),_0x34ddb2;}[_0x5954e3(0x21d)](_0x514140,_0x47e9f2){const _0x33574d=_0x5954e3,_0x446c72={'searchInputVisibleFrom':_0x47e9f2[_0x33574d(0x211)],'onBackToContext':()=>{const _0x133a16=_0x33574d;this[_0x133a16(0x228)](),this[_0x133a16(0x259)][_0x133a16(0x263)]({'target':this[_0x133a16(0x220)][_0x133a16(0x202)],'limiter':this[_0x133a16(0x27b)](),'positions':Ho});},'onResourceSelected':(_0x5486ef,_0x258866)=>{const _0x9e79e1=_0x33574d;this[_0x9e79e1(0x227)](_0x9e79e1(0x22a),{'source':_0x5486ef,'resource':_0x258866});},'onLoadSourceResources':_0x483ba2=>{const _0x4d97a0=_0x33574d;this[_0x4d97a0(0x227)](_0x4d97a0(0x26d),_0x483ba2);},'onBalloonClosed':()=>{const _0x6c84d5=_0x33574d;this[_0x6c84d5(0x220)][_0x6c84d5(0x270)]=!0x1;},'getLimiterElement':()=>this[_0x33574d(0x27b)](),'getTargetElement':()=>this[_0x33574d(0x220)][_0x33574d(0x202)]};return new _0x257b9a(_0x514140,_0x47e9f2[_0x33574d(0x262)],_0x446c72);}[_0x5954e3(0x27b)](){const _0x2b49a5=_0x5954e3;return this[_0x2b49a5(0x202)]?.[_0x2b49a5(0x224)]('.'+Mo)||document[_0x2b49a5(0x21f)];}[_0x5954e3(0x1f0)](_0x2944d6,_0x5752f7){const _0x4a8aea=_0x5954e3,_0x10b0a8=new _0x2c7ae8(_0x2944d6);return _0x10b0a8[_0x4a8aea(0x22d)]({'attributes':{'class':_0x5752f7}}),this[_0x4a8aea(0x262)][_0x4a8aea(0x24c)](_0x10b0a8),_0x10b0a8;}[_0x5954e3(0x239)](_0x1eb030,_0x6b62a1,_0xdf5b9a){const _0x48a88c=_0x5954e3;if(_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x201)](),!_0xdf5b9a[_0x48a88c(0x236)][_0x48a88c(0x1fd)]&&_0xdf5b9a[_0x48a88c(0x236)][_0x48a88c(0x1fc)]){const _0x14e854=this[_0x48a88c(0x1f9)](_0x6b62a1,{'label':_0x245725(_0x6b62a1,_0x48a88c(0x243)),'icon':_0x2396fc});_0x14e854['on'](_0x48a88c(0x256),()=>{const _0x2d7666=_0x48a88c;this[_0x2d7666(0x227)](_0x2d7666(0x20d)),this[_0x2d7666(0x247)]();}),_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x14e854);}if(_0xdf5b9a[_0x48a88c(0x216)][_0x48a88c(0x1fc)]){const _0x6cbebd=this[_0x48a88c(0x1f9)](_0x6b62a1,{'label':_0x245725(_0x6b62a1,_0x48a88c(0x246)),'icon':_0x4ff0c6});_0x6cbebd['on'](_0x48a88c(0x256),()=>{const _0x4082e4=_0x48a88c;this[_0x4082e4(0x247)](),this[_0x4082e4(0x23c)](),this[_0x4082e4(0x219)][_0x4082e4(0x263)]({'target':this[_0x4082e4(0x220)][_0x4082e4(0x202)],'limiter':this[_0x4082e4(0x27b)](),'positions':Ho}),this[_0x4082e4(0x1f7)][_0x4082e4(0x26e)]();}),_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x6cbebd);}if(_0xdf5b9a[_0x48a88c(0x203)][_0x48a88c(0x1fc)]){const _0x13630d=new _0x42329f(_0x6b62a1);_0x13630d[_0x48a88c(0x27d)]({'label':_0x245725(_0x6b62a1,_0x48a88c(0x248)),'icon':_0xd6a1b0,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x13630d['on'](_0x48a88c(0x26a),(_0x340f46,_0x31d441)=>{const _0x4679f4=_0x48a88c;this[_0x4679f4(0x227)](_0x4679f4(0x1f4),_0x31d441),this[_0x4679f4(0x247)]();}),_0x13630d[_0x48a88c(0x212)]=!0x0,_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x13630d);}for(const _0x44de6b of _0xdf5b9a[_0x48a88c(0x250)]){const _0x45e2a2=this[_0x48a88c(0x1f9)](_0x6b62a1,{'label':_0x44de6b[_0x48a88c(0x20c)],'icon':_0x44de6b[_0x48a88c(0x20b)]||_0x45372a,'type':_0x48a88c(0x21a)});_0x1eb030[_0x48a88c(0x217)][_0x48a88c(0x24c)](_0x45e2a2),_0x45e2a2['on'](_0x48a88c(0x256),()=>{const _0x1d7af0=_0x48a88c;this[_0x1d7af0(0x247)](),this[_0x1d7af0(0x22b)](_0x44de6b);});}}[_0x5954e3(0x223)](_0x3be987,_0x1b9eeb){const _0x17ed2c=_0x5954e3;this[_0x17ed2c(0x1f7)]=new _0x3919f7(_0x1b9eeb),this[_0x17ed2c(0x1f7)]['on'](_0x17ed2c(0x206),(_0x12d745,_0x131054)=>{const _0x3c135c=_0x17ed2c;this[_0x3c135c(0x25e)](_0x131054);}),this[_0x17ed2c(0x1f7)]['on'](_0x17ed2c(0x24b),()=>{const _0x4422ce=_0x17ed2c;this[_0x4422ce(0x1fa)](),this[_0x4422ce(0x228)](),this[_0x4422ce(0x259)][_0x4422ce(0x263)]({'target':this[_0x4422ce(0x220)][_0x4422ce(0x202)],'limiter':this[_0x4422ce(0x27b)](),'positions':Ho});}),this[_0x17ed2c(0x1f7)]['on'](_0x17ed2c(0x242),()=>{const _0x2f8ebf=_0x17ed2c;this[_0x2f8ebf(0x219)][_0x2f8ebf(0x245)]&&this[_0x2f8ebf(0x219)][_0x2f8ebf(0x263)]({'target':this[_0x2f8ebf(0x220)][_0x2f8ebf(0x202)],'limiter':this[_0x2f8ebf(0x27b)](),'positions':Ho});}),_0x3be987[_0x17ed2c(0x217)][_0x17ed2c(0x24c)](this[_0x17ed2c(0x1f7)]);}[_0x5954e3(0x1f9)](_0x5cbe0a,_0xa909b3){const _0x20ff69=_0x5954e3,_0x353809=_0x20ff69(0x21a)===_0xa909b3[_0x20ff69(0x261)]?new SourcesBalloonButtonView(_0x5cbe0a):new _0x40dae2(_0x5cbe0a);return _0x353809[_0x20ff69(0x27d)]({'label':_0xa909b3[_0x20ff69(0x20c)],'icon':_0xa909b3[_0x20ff69(0x20b)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x353809;}[_0x5954e3(0x1f3)](){const _0x20eb8c=_0x5954e3;this[_0x20eb8c(0x1ff)](),this[_0x20eb8c(0x213)]();}[_0x5954e3(0x213)](){const _0xadc78=_0x5954e3;_0x24dd19({'emitter':this[_0xadc78(0x219)],'contextElements':[this[_0xadc78(0x219)][_0xadc78(0x202)]],'callback':()=>{const _0x571936=_0xadc78;this[_0x571936(0x1fa)]();},'activator':()=>this[_0xadc78(0x219)][_0xadc78(0x245)]});}[_0x5954e3(0x26f)](_0x52a60a){const _0x5da277=_0x5954e3,_0x280ced=this[_0x5da277(0x226)];_0x280ced[_0x5da277(0x27a)][_0x5da277(0x270)]=_0x52a60a,_0x52a60a?_0x280ced[_0x5da277(0x273)][_0x5da277(0x225)]():_0x280ced[_0x5da277(0x273)][_0x5da277(0x255)]();}[_0x5954e3(0x1ff)](){const _0x4e55e0=_0x5954e3,{balloonView:_0x16e772,buttonView:_0x68b4bf,hideMethod:_0xce3754}=this[_0x4e55e0(0x226)];_0x24dd19({'emitter':_0x16e772,'contextElements':[_0x16e772[_0x4e55e0(0x202)],_0x68b4bf[_0x4e55e0(0x202)]],'callback':()=>{_0xce3754();},'activator':()=>_0x68b4bf[_0x4e55e0(0x270)]&&!this[_0x4e55e0(0x219)][_0x4e55e0(0x245)]&&!this[_0x4e55e0(0x1f6)][_0x4e55e0(0x240)]()});}[_0x5954e3(0x257)](_0x4a6591,_0x39c838,_0x53b430=!0x1,_0x582913=!0x1){const _0x15ecec=_0x5954e3,_0x3bdd1f=_0x15ecec(0x254)===_0x39c838||!0x0===_0x4a6591[_0x15ecec(0x215)],_0x32633f=new _0x25e2d8(this[_0x15ecec(0x233)],_0x4a6591,_0x3bdd1f,_0x53b430,_0x582913);return _0x3bdd1f||_0x32633f['on'](_0x15ecec(0x20f),()=>{const _0x4c3827=_0x15ecec;this[_0x4c3827(0x227)](_0x4c3827(0x23d),_0x32633f['id']);}),_0x32633f;}[_0x5954e3(0x232)](_0x3525c1,_0x20fa59){const _0x3dad29=_0x5954e3;_0x20fa59[_0x3dad29(0x24c)](_0x3525c1,0x0);}[_0x5954e3(0x27c)](_0x5b378f,_0x1cb47b){const _0x10c420=_0x5954e3,_0x32e3b6=_0x1cb47b[_0x10c420(0x24d)](_0x46ec0d=>_0x46ec0d['id']===_0x5b378f);_0x32e3b6&&_0x1cb47b[_0x10c420(0x237)](_0x32e3b6);}[_0x5954e3(0x258)](){const _0x1b0f4e=_0x5954e3;this[_0x1b0f4e(0x220)][_0x1b0f4e(0x270)]?this[_0x1b0f4e(0x247)]():(this[_0x1b0f4e(0x228)](),this[_0x1b0f4e(0x259)][_0x1b0f4e(0x263)]({'target':this[_0x1b0f4e(0x220)][_0x1b0f4e(0x202)],'limiter':this[_0x1b0f4e(0x27b)](),'positions':Ho}));}[_0x5954e3(0x25e)](_0x485473){const _0x37712a=_0x5954e3;this[_0x37712a(0x1f7)][_0x37712a(0x201)](),this[_0x37712a(0x1fa)](),this[_0x37712a(0x227)](_0x37712a(0x222),_0x485473);}}export class SourcesBalloonButtonView extends _0x40dae2{[_0x5954e3(0x277)];constructor(_0x5b9f56){const _0xf530f0=_0x5954e3;super(_0x5b9f56),this[_0xf530f0(0x27d)]({'withText':!0x0,'role':_0xf530f0(0x1f8)}),this[_0xf530f0(0x277)]=this[_0xf530f0(0x1f2)](),this[_0xf530f0(0x22d)]({'attributes':{'class':[Ro]}});}[_0x5954e3(0x264)](){const _0x5b9a7e=_0x5954e3;super[_0x5b9a7e(0x264)](),this[_0x5b9a7e(0x204)][_0x5b9a7e(0x24c)](this[_0x5b9a7e(0x277)]);}[_0x5954e3(0x1f2)](){const _0x11163f=_0x5954e3,_0x1dedd6=new _0x543a0f();return _0x1dedd6[_0x11163f(0x217)]=_0x51f472,_0x1dedd6[_0x11163f(0x22d)]({'attributes':{'class':Ro+_0x11163f(0x25b)}}),_0x1dedd6;}}
|
|
23
|
+
function _0x24d9(_0x454858,_0x4360f1){const _0x4adc95=_0x4adc();return _0x24d9=function(_0x24d961,_0xfa4d0b){_0x24d961=_0x24d961-0x1d0;let _0x489bed=_0x4adc95[_0x24d961];return _0x489bed;},_0x24d9(_0x454858,_0x4360f1);}const _0x1b294a=_0x24d9;(function(_0x402a09,_0x300083){const _0x1c5eab=_0x24d9,_0xd77907=_0x402a09();while(!![]){try{const _0x46b0ce=-parseInt(_0x1c5eab(0x261))/0x1*(-parseInt(_0x1c5eab(0x24e))/0x2)+-parseInt(_0x1c5eab(0x238))/0x3*(-parseInt(_0x1c5eab(0x228))/0x4)+-parseInt(_0x1c5eab(0x217))/0x5*(parseInt(_0x1c5eab(0x23d))/0x6)+-parseInt(_0x1c5eab(0x23e))/0x7*(-parseInt(_0x1c5eab(0x208))/0x8)+parseInt(_0x1c5eab(0x1f8))/0x9+parseInt(_0x1c5eab(0x1e3))/0xa*(-parseInt(_0x1c5eab(0x25d))/0xb)+-parseInt(_0x1c5eab(0x24b))/0xc;if(_0x46b0ce===_0x300083)break;else _0xd77907['push'](_0xd77907['shift']());}catch(_0x416a64){_0xd77907['push'](_0xd77907['shift']());}}}(_0x4adc,0x6b2d9));import{BalloonPanelView as _0x70fcb2,ButtonView as _0x1d78a3,clickOutsideHandler as _0x236d5d,FileDialogButtonView as _0x570aca,IconView as _0x5590e3,View as _0x130c3f}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x158680,IconDocument as _0x1aa855,IconDocumentOutline as _0x4213dc,IconDropdownArrow as _0x2acf06,IconLink as _0x50e3a5,IconPaperClip as _0x577500}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x264106}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x3b6efd}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x3d31e7}from'./aichatchipsoverflowmanager.js';function _0x4adc(){const _0x510720=['showSourceResourcesBalloon','setConversationContext','_addContextBalloonConfig','setTemplate','cancel','showUrlBalloonPanel','updateResourceState','_addContextToCollection','ck-ai-chat-context-controls__balloon-button-source','overflowChips','__arrow','done','isReadOnly','fire','11rxwZUY','ck-ai-chat-controls-button','_createAddContextButtonView','files','2041pxJUgL','_createArrowView','_setAddContextButtonEnabled','addContextItem','isVisible','reorganizeChips','addFileToContext','conversation','populateSourceResourceBalloon','isHidden','execute','addResourceToContext','_showSourceResourcesBalloon','ck-ai-chat-context-controls__show-more-balloon-panel','_handleAddContextButtonClick','showAddContextBalloonPanel','addContextButtonView','northArrowSouthEast','div','balloonView','6563660QLJKIM','defaultPositions','menuitem','setAddContextOptions','sources','isLoading','_setupUrlBalloonClickOutsideHandler','_createUrlBalloonPanelView','loadSourceResources','setContextItemLoading','isEnabled','clearCurrentContextItems','ck-ai-chat-controls_context_show-more-button','northArrowSouth','submitUrl','render','hideAddContextBalloonPanel','urls','arrowView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','hide','1236213ZjeBng','_createBalloonButton','_setupTemplate','closeSourceResourceBalloon','searchInputVisibleFrom','body','ck-ai-chat-context-controls__add-context-balloon-panel','_toggleAddContextBalloon','clearConversationContextItems','isOn','content','_setupAllBalloonClickOutsideHandlers','ck-ai-chat-context-chips-wrapper-balloon','_overflowManager','source','_createBaseBalloonPanel','15328ZJNmQY','southArrowNorth','_resourcesBalloonView','southArrowNorthEast','_setBalloonPanelContent','hideUrlBalloonPanel','_currentContextsChips','_createAddContextBalloonPanelView','AI_CHAT_CONTEXT_ADD_CONTEXT','icon','AI_CHAT_CONTEXT_FILE_LABEL','buttonView','focus','ck-ai-chat-context-controls__pending-contexts','set','868435TawxoW','createCollection','addUrlToContext','_createResourcesBalloonView','_urlBalloonPanelView','ck-reset_all-excluded','tooltip','_removeContextFromCollection','ck-ai-chat','closest','_conversationContextsChips','label','_createContextButton','bodyCollection','_setupAddContextBalloonClickOutsideHandler','type','ck-ai-chat-context-controls','261176umwYwv','ck-ai-chat-context-controls__add-context-button','remove','setContainerElement','isAnyResourceBalloonVisible','AI_CHAT_CONTEXT_URL_LABEL','locale','extendTemplate','addDocumentToContext','clear','southArrowNorthWest','enabled','add','bind','_addContextBalloonPanelView','_addUrlContent','39rfUxmZ','destroy','_handleUrlSubmit','refreshBalloon','pin','30HCumzt','2569GUFRdP','_urlInputView','element','_bindEventHandlers','removeContextItemChip','ck-ai-chat-context-controls__url-balloon-panel','northArrowSouthWest','current','show','document','find','_getLimiterElement','ck-ai-chat-context-controls__balloon-button','1653972EwmWFi','removeContextItem','children','404kFIMcM'];_0x4adc=function(){return _0x510720;};return _0x4adc();}import{getTranslation as _0x224cf3}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x5ebf0f}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x1b294a(0x230),_0x1b294a(0x1d5),_0x1b294a(0x219),_0x1b294a(0x1da),_0x1b294a(0x24c),_0x1b294a(0x1eb)];const Po=_0x1b294a(0x227),Ro=_0x1b294a(0x215),Uo=_0x1b294a(0x1fe),Lo=_0x1b294a(0x229),No=_0x1b294a(0x243),Oo=_0x1b294a(0x24a),Mo=_0x1b294a(0x257),bo=_0x1b294a(0x25e),Ho=_0x1b294a(0x204),vo=_0x1b294a(0x1ef),jo=_0x1b294a(0x1dc),Fo=_0x1b294a(0x21f),Xo=[_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x244)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x1f0)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x1e0)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x232)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x209)],_0x70fcb2[_0x1b294a(0x1e4)][_0x1b294a(0x20b)]];export class AIChatContextPanelView extends _0x130c3f{[_0x1b294a(0x1df)];[_0x1b294a(0x20e)]=this[_0x1b294a(0x218)]();[_0x1b294a(0x221)]=this[_0x1b294a(0x218)]();[_0x1b294a(0x205)];[_0x1b294a(0x236)];[_0x1b294a(0x21b)];[_0x1b294a(0x23f)];[_0x1b294a(0x20a)];[_0x1b294a(0x251)];[_0x1b294a(0x224)];constructor(_0x5ddb11,_0xa0209d){const _0x4b2481=_0x1b294a;super(_0x5ddb11),this[_0x4b2481(0x224)]=_0xa0209d[_0x4b2481(0x224)],this[_0x4b2481(0x20e)]=this[_0x4b2481(0x218)](),this[_0x4b2481(0x221)]=this[_0x4b2481(0x218)](),this[_0x4b2481(0x1df)]=this[_0x4b2481(0x25f)](_0x5ddb11),this[_0x4b2481(0x236)]=this[_0x4b2481(0x20f)](_0x5ddb11),this[_0x4b2481(0x21b)]=this[_0x4b2481(0x1ea)](_0x5ddb11),this[_0x4b2481(0x20a)]=this[_0x4b2481(0x21a)](_0x5ddb11,_0xa0209d);const _0x4b2b5d={'cssClasses':{'showMoreButton':vo,'showMoreBalloon':jo,'overflowContainer':Ho,'controlsButton':bo}};this[_0x4b2481(0x205)]=new _0x3d31e7(_0x5ddb11,this[_0x4b2481(0x20e)],_0x4b2b5d,this[_0x4b2481(0x224)],this),this[_0x4b2481(0x251)]={'buttonView':this[_0x4b2481(0x1df)],'balloonView':this[_0x4b2481(0x236)],'hideMethod':this[_0x4b2481(0x1f3)][_0x4b2481(0x235)](this),'showMethod':this[_0x4b2481(0x1de)][_0x4b2481(0x235)](this)},this[_0x4b2481(0x1fa)](),this[_0x4b2481(0x241)]();}[_0x1b294a(0x1f2)](){const _0x3eac90=_0x1b294a;super[_0x3eac90(0x1f2)](),this[_0x3eac90(0x203)](),this[_0x3eac90(0x205)][_0x3eac90(0x22b)](this[_0x3eac90(0x240)]),this[_0x3eac90(0x205)][_0x3eac90(0x1d4)]();}[_0x1b294a(0x239)](){const _0xbe021e=_0x1b294a;super[_0xbe021e(0x239)](),this[_0xbe021e(0x205)][_0xbe021e(0x239)](),this[_0xbe021e(0x20a)][_0xbe021e(0x239)]();}[_0x1b294a(0x1d2)](_0x31ec36,_0x3747b6){const _0x385245=_0x1b294a,_0x2ddcda=this[_0x385245(0x223)](_0x31ec36,_0x385245(0x245),!0x0,_0x3747b6);this[_0x385245(0x256)](_0x2ddcda,this[_0x385245(0x20e)]),this[_0x385245(0x205)][_0x385245(0x1d4)]();}[_0x1b294a(0x24c)](_0x47b2cf){const _0x3e584d=_0x1b294a;this[_0x3e584d(0x21e)](_0x47b2cf,this[_0x3e584d(0x20e)]),this[_0x3e584d(0x21e)](_0x47b2cf,this[_0x3e584d(0x205)][_0x3e584d(0x258)]),this[_0x3e584d(0x205)][_0x3e584d(0x1d4)]();}[_0x1b294a(0x1ec)](_0x5219c9,_0x2f92e6){const _0xb45ded=_0x1b294a;let _0x423291=this[_0xb45ded(0x20e)][_0xb45ded(0x248)](_0x20145b=>_0x20145b['id']===_0x5219c9);_0x423291||(_0x423291=this[_0xb45ded(0x205)][_0xb45ded(0x258)][_0xb45ded(0x248)](_0x230fd0=>_0x230fd0['id']===_0x5219c9)),_0x423291&&(_0x423291[_0xb45ded(0x1e8)]=_0x2f92e6);}[_0x1b294a(0x250)](_0x282fde){const _0x51c192=_0x1b294a;this[_0x51c192(0x221)][_0x51c192(0x231)]();for(const _0x4efe24 of _0x282fde){const _0x45db9f=this[_0x51c192(0x223)](_0x4efe24,_0x51c192(0x1d6),!0x1,!0x1);this[_0x51c192(0x256)](_0x45db9f,this[_0x51c192(0x221)]);}}[_0x1b294a(0x1ee)](){const _0x5c91b0=_0x1b294a;this[_0x5c91b0(0x20e)][_0x5c91b0(0x231)](),this[_0x5c91b0(0x205)][_0x5c91b0(0x231)]();}[_0x1b294a(0x200)](){const _0x148e6a=_0x1b294a;this[_0x148e6a(0x221)][_0x148e6a(0x231)]();}[_0x1b294a(0x255)](_0x1c7a37,_0x596176,_0x1dcfdb){const _0x4ba7d0=_0x1b294a;this[_0x4ba7d0(0x20a)][_0x4ba7d0(0x255)](_0x1c7a37,_0x596176,_0x1dcfdb);}[_0x1b294a(0x1f3)](){const _0x21e0b2=_0x1b294a;this[_0x21e0b2(0x1ff)](!0x1);}[_0x1b294a(0x1de)](){const _0x412460=_0x1b294a;this[_0x412460(0x1ff)](!0x0);}[_0x1b294a(0x20d)](){const _0x4c0440=_0x1b294a;this[_0x4c0440(0x21b)][_0x4c0440(0x1f7)](),this[_0x4c0440(0x1df)][_0x4c0440(0x201)]=!0x1,this[_0x4c0440(0x23f)]&&this[_0x4c0440(0x23f)][_0x4c0440(0x231)]();}[_0x1b294a(0x254)](){const _0x43bc8b=_0x1b294a;this[_0x43bc8b(0x21b)][_0x43bc8b(0x246)](),this[_0x43bc8b(0x1df)][_0x43bc8b(0x201)]=!0x0;}[_0x1b294a(0x1db)](_0x273834){const _0x1abdb5=_0x1b294a;this[_0x1abdb5(0x20a)][_0x1abdb5(0x24f)](_0x273834),this[_0x1abdb5(0x1df)][_0x1abdb5(0x201)]=!0x0;}[_0x1b294a(0x1d7)](_0xfc8449,_0x5aab99,_0x16e80d,_0xbc82f4){const _0x275602=_0x1b294a;this[_0x275602(0x20a)][_0x275602(0x1d7)](_0xfc8449,_0x16e80d,_0xbc82f4);}[_0x1b294a(0x1fb)](_0x11fdaa){const _0x4e651d=_0x1b294a;this[_0x4e651d(0x20a)][_0x4e651d(0x1fb)](_0x11fdaa),this[_0x4e651d(0x1df)][_0x4e651d(0x201)]=!0x1;}[_0x1b294a(0x1e6)](_0x56b0e6){const _0x1c39a4=_0x1b294a;this[_0x1c39a4(0x20c)](this[_0x1c39a4(0x236)],this[_0x1c39a4(0x22e)],_0x56b0e6),this[_0x1c39a4(0x1d1)](_0x56b0e6);}[_0x1b294a(0x1d1)](_0x4564e0){const _0x55e99d=_0x1b294a,_0x5c6d9d=!_0x4564e0[_0x55e99d(0x247)][_0x55e99d(0x1d8)]&&_0x4564e0[_0x55e99d(0x247)][_0x55e99d(0x233)],_0xd311f7=_0x4564e0[_0x55e99d(0x1f4)][_0x55e99d(0x233)],_0x4df923=_0x4564e0[_0x55e99d(0x260)][_0x55e99d(0x233)];this[_0x55e99d(0x1df)][_0x55e99d(0x1ed)]=_0x5c6d9d||_0xd311f7||_0x4df923;}[_0x1b294a(0x1fa)](){const _0x5ba627=_0x1b294a;this[_0x5ba627(0x252)]({'tag':_0x5ba627(0x1e1),'attributes':{'class':[Po,_0x5ba627(0x21c)]},'children':[{'tag':_0x5ba627(0x1e1),'attributes':{'class':Ro},'children':this[_0x5ba627(0x20e)]}]});}[_0x1b294a(0x241)](){const _0x43734e=_0x1b294a;this[_0x43734e(0x1df)]['on'](_0x43734e(0x1d9),()=>{const _0x5cbb78=_0x43734e;this[_0x5cbb78(0x1dd)]();});}[_0x1b294a(0x25f)](_0x43b2db){const _0x1af8bc=_0x1b294a,_0x3c3e9d=new _0x1d78a3(_0x43b2db);return _0x3c3e9d[_0x1af8bc(0x216)]({'label':_0x224cf3(_0x43b2db,_0x1af8bc(0x210)),'class':bo+'\x20'+Lo,'icon':_0x577500,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x3c3e9d;}[_0x1b294a(0x20f)](_0xfb84e8){const _0x30f608=_0x1b294a;return this[_0x30f608(0x207)](_0xfb84e8,Uo);}[_0x1b294a(0x1ea)](_0x1f6728){const _0x1aed2b=_0x1b294a,_0x528397=this[_0x1aed2b(0x207)](_0x1f6728,No);return this[_0x1aed2b(0x237)](_0x528397,_0x1f6728),_0x528397;}[_0x1b294a(0x21a)](_0xee2fbf,_0x3f1f04){const _0x48fcce=_0x1b294a,_0x7668ad={'searchInputVisibleFrom':_0x3f1f04[_0x48fcce(0x1fc)],'onBackToContext':()=>{const _0x56fa56=_0x48fcce;this[_0x56fa56(0x1de)](),this[_0x56fa56(0x236)][_0x56fa56(0x23c)]({'target':this[_0x56fa56(0x1df)][_0x56fa56(0x240)],'limiter':this[_0x56fa56(0x249)](),'positions':Xo});},'onResourceSelected':(_0x317de8,_0xd3eb4e)=>{const _0x38cc6a=_0x48fcce;this[_0x38cc6a(0x25c)](_0x38cc6a(0x1da),{'source':_0x317de8,'resource':_0xd3eb4e});},'onLoadSourceResources':_0x183462=>{const _0x3a84e7=_0x48fcce;this[_0x3a84e7(0x25c)](_0x3a84e7(0x1eb),_0x183462);},'onBalloonClosed':()=>{const _0x4af6d7=_0x48fcce;this[_0x4af6d7(0x1df)][_0x4af6d7(0x201)]=!0x1;},'getLimiterElement':()=>this[_0x48fcce(0x249)](),'getTargetElement':()=>this[_0x48fcce(0x1df)][_0x48fcce(0x240)]};return new _0x5ebf0f(_0xee2fbf,_0x3f1f04[_0x48fcce(0x224)],_0x7668ad);}[_0x1b294a(0x249)](){const _0x37fe06=_0x1b294a;return this[_0x37fe06(0x240)]?.[_0x37fe06(0x220)]('.'+Fo)||document[_0x37fe06(0x1fd)];}[_0x1b294a(0x207)](_0x13202c,_0x2c7f1d){const _0x48f0c5=_0x1b294a,_0x35e28f=new _0x70fcb2(_0x13202c);return _0x35e28f[_0x48f0c5(0x22f)]({'attributes':{'class':_0x2c7f1d}}),this[_0x48f0c5(0x224)][_0x48f0c5(0x234)](_0x35e28f),_0x35e28f;}[_0x1b294a(0x20c)](_0x1b4a10,_0x1a1789,_0x3f076a){const _0x59a9b3=_0x1b294a;if(_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x231)](),!_0x3f076a[_0x59a9b3(0x247)][_0x59a9b3(0x1d8)]&&_0x3f076a[_0x59a9b3(0x247)][_0x59a9b3(0x233)]){const _0x1f0cbe=this[_0x59a9b3(0x1f9)](_0x1a1789,{'label':_0x224cf3(_0x1a1789,_0x59a9b3(0x1f6)),'icon':_0x1aa855});_0x1f0cbe['on'](_0x59a9b3(0x1d9),()=>{const _0x33ac0b=_0x59a9b3;this[_0x33ac0b(0x25c)](_0x33ac0b(0x230)),this[_0x33ac0b(0x1f3)]();}),_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x234)](_0x1f0cbe);}if(_0x3f076a[_0x59a9b3(0x1f4)][_0x59a9b3(0x233)]){const _0x2b5af1=this[_0x59a9b3(0x1f9)](_0x1a1789,{'label':_0x224cf3(_0x1a1789,_0x59a9b3(0x22d)),'icon':_0x50e3a5});_0x2b5af1['on'](_0x59a9b3(0x1d9),()=>{const _0x5b2dc8=_0x59a9b3;this[_0x5b2dc8(0x1f3)](),this[_0x5b2dc8(0x254)](),this[_0x5b2dc8(0x21b)][_0x5b2dc8(0x23c)]({'target':this[_0x5b2dc8(0x1df)][_0x5b2dc8(0x240)],'limiter':this[_0x5b2dc8(0x249)](),'positions':Xo}),this[_0x5b2dc8(0x23f)][_0x5b2dc8(0x214)]();}),_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x234)](_0x2b5af1);}if(_0x3f076a[_0x59a9b3(0x260)][_0x59a9b3(0x233)]){const _0x26dd60=new _0x570aca(_0x1a1789);_0x26dd60[_0x59a9b3(0x216)]({'label':_0x224cf3(_0x1a1789,_0x59a9b3(0x212)),'icon':_0x158680,'withText':!0x0,'tooltip':!0x0,'class':Oo,'allowMultipleFiles':!0x0}),_0x26dd60['on'](_0x59a9b3(0x25a),(_0x22cf66,_0x4b9a9a)=>{const _0x261ccc=_0x59a9b3;this[_0x261ccc(0x25c)](_0x261ccc(0x1d5),_0x4b9a9a),this[_0x261ccc(0x1f3)]();}),_0x26dd60[_0x59a9b3(0x21d)]=!0x0,_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x234)](_0x26dd60);}for(const _0x239fcf of _0x3f076a[_0x59a9b3(0x1e7)]){const _0x931a63=this[_0x59a9b3(0x1f9)](_0x1a1789,{'label':_0x239fcf[_0x59a9b3(0x222)],'icon':_0x239fcf[_0x59a9b3(0x211)]||_0x4213dc,'type':_0x59a9b3(0x206)});_0x1b4a10[_0x59a9b3(0x202)][_0x59a9b3(0x234)](_0x931a63),_0x931a63['on'](_0x59a9b3(0x1d9),()=>{const _0x533f5f=_0x59a9b3;this[_0x533f5f(0x1f3)](),this[_0x533f5f(0x1db)](_0x239fcf);});}}[_0x1b294a(0x237)](_0x173efb,_0x316384){const _0x725ad6=_0x1b294a;this[_0x725ad6(0x23f)]=new _0x3b6efd(_0x316384),this[_0x725ad6(0x23f)]['on'](_0x725ad6(0x1f1),(_0x56117b,_0x5303d3)=>{const _0x58e79d=_0x725ad6;this[_0x58e79d(0x23a)](_0x5303d3);}),this[_0x725ad6(0x23f)]['on'](_0x725ad6(0x253),()=>{const _0x3f553c=_0x725ad6;this[_0x3f553c(0x20d)](),this[_0x3f553c(0x1de)](),this[_0x3f553c(0x236)][_0x3f553c(0x23c)]({'target':this[_0x3f553c(0x1df)][_0x3f553c(0x240)],'limiter':this[_0x3f553c(0x249)](),'positions':Xo});}),this[_0x725ad6(0x23f)]['on'](_0x725ad6(0x23b),()=>{const _0x205106=_0x725ad6;this[_0x205106(0x21b)][_0x205106(0x1d3)]&&this[_0x205106(0x21b)][_0x205106(0x23c)]({'target':this[_0x205106(0x1df)][_0x205106(0x240)],'limiter':this[_0x205106(0x249)](),'positions':Xo});}),_0x173efb[_0x725ad6(0x202)][_0x725ad6(0x234)](this[_0x725ad6(0x23f)]);}[_0x1b294a(0x1f9)](_0x191121,_0x535388){const _0xa507c4=_0x1b294a,_0xc2477=_0xa507c4(0x206)===_0x535388[_0xa507c4(0x226)]?new SourcesBalloonButtonView(_0x191121):new _0x1d78a3(_0x191121);return _0xc2477[_0xa507c4(0x216)]({'label':_0x535388[_0xa507c4(0x222)],'icon':_0x535388[_0xa507c4(0x211)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Oo}),_0xc2477;}[_0x1b294a(0x203)](){const _0x17beb2=_0x1b294a;this[_0x17beb2(0x225)](),this[_0x17beb2(0x1e9)]();}[_0x1b294a(0x1e9)](){const _0xa4057d=_0x1b294a;_0x236d5d({'emitter':this[_0xa4057d(0x21b)],'contextElements':[this[_0xa4057d(0x21b)][_0xa4057d(0x240)]],'callback':()=>{const _0x2b20d9=_0xa4057d;this[_0x2b20d9(0x20d)]();},'activator':()=>this[_0xa4057d(0x21b)][_0xa4057d(0x1d3)]});}[_0x1b294a(0x1ff)](_0x429160){const _0x145592=_0x1b294a,_0x1077d7=this[_0x145592(0x251)];_0x1077d7[_0x145592(0x213)][_0x145592(0x201)]=_0x429160,_0x429160?_0x1077d7[_0x145592(0x1e2)][_0x145592(0x246)]():_0x1077d7[_0x145592(0x1e2)][_0x145592(0x1f7)]();}[_0x1b294a(0x225)](){const _0x496568=_0x1b294a,{balloonView:_0x319d38,buttonView:_0x2dca5f,hideMethod:_0x3aa41a}=this[_0x496568(0x251)];_0x236d5d({'emitter':_0x319d38,'contextElements':[_0x319d38[_0x496568(0x240)],_0x2dca5f[_0x496568(0x240)]],'callback':()=>{_0x3aa41a();},'activator':()=>_0x2dca5f[_0x496568(0x201)]&&!this[_0x496568(0x21b)][_0x496568(0x1d3)]&&!this[_0x496568(0x20a)][_0x496568(0x22c)]()});}[_0x1b294a(0x223)](_0x315429,_0x3c3bbd,_0x3e9d1e=!0x1,_0x50425f=!0x1){const _0x19763c=_0x1b294a,_0x35692f=_0x19763c(0x1d6)===_0x3c3bbd||!0x0===_0x315429[_0x19763c(0x25b)],_0x32d063=new _0x264106(this[_0x19763c(0x22e)],_0x315429,_0x35692f,_0x3e9d1e,_0x50425f);return _0x35692f||_0x32d063['on'](_0x19763c(0x242),()=>{const _0x15baf9=_0x19763c;this[_0x15baf9(0x25c)](_0x15baf9(0x24c),_0x32d063['id']);}),_0x32d063;}[_0x1b294a(0x256)](_0x16111f,_0x2111a1){const _0x78eeae=_0x1b294a;_0x2111a1[_0x78eeae(0x234)](_0x16111f,0x0);}[_0x1b294a(0x21e)](_0x2b21e8,_0x12606c){const _0x49763e=_0x1b294a,_0x2182e1=_0x12606c[_0x49763e(0x248)](_0x508265=>_0x508265['id']===_0x2b21e8);_0x2182e1&&_0x12606c[_0x49763e(0x22a)](_0x2182e1);}[_0x1b294a(0x1dd)](){const _0x41ee8f=_0x1b294a;this[_0x41ee8f(0x1df)][_0x41ee8f(0x201)]?this[_0x41ee8f(0x1f3)]():(this[_0x41ee8f(0x1de)](),this[_0x41ee8f(0x236)][_0x41ee8f(0x23c)]({'target':this[_0x41ee8f(0x1df)][_0x41ee8f(0x240)],'limiter':this[_0x41ee8f(0x249)](),'positions':Xo}));}[_0x1b294a(0x23a)](_0x108b68){const _0x155b1f=_0x1b294a;this[_0x155b1f(0x23f)][_0x155b1f(0x231)](),this[_0x155b1f(0x20d)](),this[_0x155b1f(0x25c)](_0x155b1f(0x219),_0x108b68);}}export class SourcesBalloonButtonView extends _0x1d78a3{[_0x1b294a(0x1f5)];constructor(_0x2c4747){const _0x5e14b6=_0x1b294a;super(_0x2c4747),this[_0x5e14b6(0x216)]({'withText':!0x0,'role':_0x5e14b6(0x1e5)}),this[_0x5e14b6(0x1f5)]=this[_0x5e14b6(0x1d0)](),this[_0x5e14b6(0x22f)]({'attributes':{'class':[Mo]}});}[_0x1b294a(0x1f2)](){const _0x417011=_0x1b294a;super[_0x417011(0x1f2)](),this[_0x417011(0x24d)][_0x417011(0x234)](this[_0x417011(0x1f5)]);}[_0x1b294a(0x1d0)](){const _0x6bfdca=_0x1b294a,_0x3881c4=new _0x5590e3();return _0x3881c4[_0x6bfdca(0x202)]=_0x2acf06,_0x3881c4[_0x6bfdca(0x22f)]({'attributes':{'class':Mo+_0x6bfdca(0x259)}}),_0x3881c4;}}
|