@ckeditor/ckeditor5-ai 47.3.0-alpha.6 → 47.3.0
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 _0x5c51c0=_0x53af;(function(_0x1383ee,_0x4c3b6a){const _0x48a6fc=_0x53af,_0x95d41b=_0x1383ee();while(!![]){try{const _0x101a85=parseInt(_0x48a6fc(0xa1))/0x1+-parseInt(_0x48a6fc(0xd4))/0x2+parseInt(_0x48a6fc(0xce))/0x3+parseInt(_0x48a6fc(0xe6))/0x4*(-parseInt(_0x48a6fc(0xdc))/0x5)+parseInt(_0x48a6fc(0xcb))/0x6+-parseInt(_0x48a6fc(0xcc))/0x7*(parseInt(_0x48a6fc(0xc8))/0x8)+parseInt(_0x48a6fc(0xbe))/0x9;if(_0x101a85===_0x4c3b6a)break;else _0x95d41b['push'](_0x95d41b['shift']());}catch(_0x1bc3f8){_0x95d41b['push'](_0x95d41b['shift']());}}}(_0x2016,0xaeec2));import{ButtonView as _0x155d3e,clickOutsideHandler as _0x5b63cf,View as _0x52b72c}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x1494c0}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x140a24}from'./controls/aichatpromptcapabilitiesview.js';function _0x2016(){const _0x46e637=['_createPromptCapabilitiesView','952190HfgFIb','agent','startsWith','execute','find','setModel','_promptInputView','startConversation','form','isModelAvailable','24vsFiTR','addContextButtonView','change:isLoading','setAddContextOptions','low','div','set','clearPendingContextUI','setInputPlaceholder','sendUserMessage','locale','229056qOJfko','setIsUploadInProgress','isDisabled','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setModelList','bindTemplate','removeContextItem','_loaderView','updateResourceState','setPlaceholderText','bodyCollection','setWebSearch','setConversationContext','ck-hidden','focus','isLoading','_displayedModels','toggleWebSearch','_shouldRestorePromptInputFocus','setTemplate','enableModelSelector','_createContextPanelView','_modelUnavailableMessageView','clearCurrentContextItems','disableModelSelector','contextResourcesSearchInputVisibleFrom','selectModel','clearConversationContextItems','_contextPanelView','8142912gjGoZV','clearConversationContextUI','_createModelUnavailableMessageView','reset','ck-ai-chat-controls','focusPromptInput','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','addContextItem','element','toggleReasoning','6496312dtvYyY','ck-ai-chat-controls__start-new-chat-button','_handlePromptInputFocus','8320596oxMbap','7JVERet','resetMessageInput','685704ImQxPP','_promptCapabilitiesView','closeSourceResourceBalloon','ck-ai-chat-controls-model-unavailable-message','setContextItemLoading','delegate','156018WezXta','populateSourceResourceBalloon','ck-ai-chat-controls-disabled','_createPromptInputView','setReasoning','abortPromptStream','_createLoaderView'];_0x2016=function(){return _0x46e637;};return _0x2016();}import{AIChatContextPanelView as _0x50c758,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x57e45c}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x478701}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x23e44e}from'../../aicore/utils/common-translations.js';function _0x53af(_0x4c90be,_0x216c5f){const _0x201683=_0x2016();return _0x53af=function(_0x53af3c,_0x1d1c6f){_0x53af3c=_0x53af3c-0x9f;let _0x175eac=_0x201683[_0x53af3c];return _0x175eac;},_0x53af(_0x4c90be,_0x216c5f);}export class AIChatControlsView extends _0x52b72c{[_0x5c51c0(0xb1)]=[];[_0x5c51c0(0xbd)];[_0x5c51c0(0xe2)];[_0x5c51c0(0xcf)];[_0x5c51c0(0xa8)];[_0x5c51c0(0xb7)];[_0x5c51c0(0xb3)];constructor(_0x2c5017,_0xdd416c){const _0x52d2ee=_0x5c51c0;super(_0x2c5017),this[_0x52d2ee(0xbd)]=this[_0x52d2ee(0xb6)](_0x2c5017,{'bodyCollection':_0xdd416c[_0x52d2ee(0xab)],'searchInputVisibleFrom':_0xdd416c[_0x52d2ee(0xba)]}),this[_0x52d2ee(0xe2)]=this[_0x52d2ee(0xd7)](_0x2c5017),this[_0x52d2ee(0xcf)]=this[_0x52d2ee(0xdb)](_0x2c5017),this[_0x52d2ee(0xa8)]=this[_0x52d2ee(0xda)](_0x2c5017),this[_0x52d2ee(0xb7)]=this[_0x52d2ee(0xc0)](_0x2c5017),this[_0x52d2ee(0xb3)]=!0x1,this[_0x52d2ee(0xe2)][_0x52d2ee(0xd3)](_0x52d2ee(0x9f))['to'](this),this[_0x52d2ee(0xa8)][_0x52d2ee(0xd3)](_0x52d2ee(0xd9))['to'](this),this[_0x52d2ee(0xcf)][_0x52d2ee(0xd3)](_0x52d2ee(0xb2))['to'](this),this[_0x52d2ee(0xcf)][_0x52d2ee(0xd3)](_0x52d2ee(0xc7))['to'](this),this[_0x52d2ee(0xcf)][_0x52d2ee(0xd3)](_0x52d2ee(0xbb))['to'](this),this[_0x52d2ee(0xbd)][_0x52d2ee(0xd3)](..._0x57e45c)['to'](this),this[_0x52d2ee(0xec)](_0x52d2ee(0xe5),!0x0),this[_0x52d2ee(0xec)](_0x52d2ee(0xa3),!0x1);const _0x10cc38=this[_0x52d2ee(0xa6)];this[_0x52d2ee(0xb4)]({'tag':_0x52d2ee(0xe4),'attributes':{'class':['ck',_0x52d2ee(0xc2),_0x10cc38['if'](_0x52d2ee(0xa3),_0x52d2ee(0xd6))]},'children':[{'tag':_0x52d2ee(0xeb),'attributes':{'class':[_0x10cc38['if'](_0x52d2ee(0xb0),_0x52d2ee(0xae),_0x109eb5=>_0x109eb5||!this[_0x52d2ee(0xe5)]),_0x10cc38['if'](_0x52d2ee(0xe5),_0x52d2ee(0xae),_0x1e6dd6=>!_0x1e6dd6||this[_0x52d2ee(0xb0)])]},'children':[this[_0x52d2ee(0xbd)],this[_0x52d2ee(0xe2)],this[_0x52d2ee(0xcf)]]},{'tag':_0x52d2ee(0xeb),'attributes':{'class':[_0x10cc38['if'](_0x52d2ee(0xb0),_0x52d2ee(0xae),_0x3b9586=>!_0x3b9586)]},'children':[this[_0x52d2ee(0xa8)]]},{'tag':_0x52d2ee(0xeb),'attributes':{'class':[_0x10cc38['if'](_0x52d2ee(0xe5),_0x52d2ee(0xae),_0x2c0b16=>_0x2c0b16)]},'children':[this[_0x52d2ee(0xb7)]]}]}),_0x5b63cf({'emitter':this[_0x52d2ee(0xe2)],'activator':()=>this[_0x52d2ee(0xb0)],'contextElements':()=>[this[_0x52d2ee(0xc6)]],'callback':()=>{const _0x1d1e99=_0x52d2ee;this[_0x1d1e99(0xb3)]=!0x1;}}),this['on'](_0x52d2ee(0xe8),this[_0x52d2ee(0xca)],{'priority':_0x52d2ee(0xea)});}[_0x5c51c0(0xb6)](_0x3b9a31,_0x14a4a2){return new _0x50c758(_0x3b9a31,_0x14a4a2);}[_0x5c51c0(0xd7)](_0x3e33d7){const _0x72c650=_0x5c51c0;return new _0x1494c0(_0x3e33d7,this[_0x72c650(0xbd)][_0x72c650(0xe7)]);}[_0x5c51c0(0xdb)](_0x3351d){return new _0x140a24(_0x3351d);}[_0x5c51c0(0xda)](_0x285fb9){return new _0x478701(_0x285fb9);}[_0x5c51c0(0xc0)](_0x580259){const _0x302e32=_0x5c51c0,_0x2658e3=new _s(_0x580259);return _0x2658e3[_0x302e32(0xd3)](_0x302e32(0xe3))['to'](this),_0x2658e3;}[_0x5c51c0(0xca)](_0x2eb8fe,_0x2e6a0e,_0x3af720){const _0x51c972=_0x5c51c0;_0x3af720?this[_0x51c972(0xb3)]=!0x0:this[_0x51c972(0xb3)]&&this[_0x51c972(0xe2)][_0x51c972(0xaf)]();}[_0x5c51c0(0xc5)](_0x8d39c2,_0x3cc8f9){const _0x569fea=_0x5c51c0;this[_0x569fea(0xbd)][_0x569fea(0xc5)](_0x8d39c2,_0x3cc8f9);}[_0x5c51c0(0xa7)](_0x53e271){const _0x7a6ec9=_0x5c51c0;this[_0x7a6ec9(0xbd)][_0x7a6ec9(0xa7)](_0x53e271);}[_0x5c51c0(0xd2)](_0x88772,_0x347ce9){const _0x3ceb8e=_0x5c51c0;this[_0x3ceb8e(0xbd)][_0x3ceb8e(0xd2)](_0x88772,_0x347ce9);}[_0x5c51c0(0xa2)](_0x3fb6ec){const _0x33803b=_0x5c51c0;this[_0x33803b(0xe2)][_0x33803b(0xa2)](_0x3fb6ec);}[_0x5c51c0(0xad)](_0x5a8574){const _0x1f1550=_0x5c51c0;this[_0x1f1550(0xbd)][_0x1f1550(0xad)](_0x5a8574);}[_0x5c51c0(0xed)](){const _0x5223cc=_0x5c51c0;this[_0x5223cc(0xbd)][_0x5223cc(0xb8)]();}[_0x5c51c0(0xbf)](){const _0x5c6308=_0x5c51c0;this[_0x5c6308(0xbd)][_0x5c6308(0xbc)]();}[_0x5c51c0(0xa9)](_0x2df641,_0x897a25,_0x1dc2d0){const _0x1e4777=_0x5c51c0;this[_0x1e4777(0xbd)][_0x1e4777(0xa9)](_0x2df641,_0x897a25,_0x1dc2d0);}[_0x5c51c0(0xac)](_0x4d91fc){const _0x4ad1e8=_0x5c51c0;this[_0x4ad1e8(0xcf)][_0x4ad1e8(0xac)](_0x4d91fc);}[_0x5c51c0(0xd8)](_0x41ca8c){const _0x37f3d6=_0x5c51c0;this[_0x37f3d6(0xcf)][_0x37f3d6(0xd8)](_0x41ca8c);}[_0x5c51c0(0xcd)](){const _0x316de2=_0x5c51c0;this[_0x316de2(0xe2)][_0x316de2(0xc1)]();}[_0x5c51c0(0xe9)](_0xa10866){const _0x4f91ee=_0x5c51c0;this[_0x4f91ee(0xbd)][_0x4f91ee(0xe9)](_0xa10866);}[_0x5c51c0(0xee)](_0x8a6ea7){const _0x4bb50a=_0x5c51c0;this[_0x4bb50a(0xe2)][_0x4bb50a(0xaa)](_0x8a6ea7);}[_0x5c51c0(0xa5)](_0x49687a,_0x565449){const _0x462205=_0x5c51c0;this[_0x462205(0xb1)]=_0x49687a,this[_0x462205(0xcf)][_0x462205(0xa5)](_0x49687a,_0x565449);}[_0x5c51c0(0xe1)](_0x5817e3){const _0x544105=_0x5c51c0;(_0x5817e3?this[_0x544105(0xb1)][_0x544105(0xe0)](_0x197c98=>_0x197c98['id']===_0x5817e3['id']):null)?(this[_0x544105(0xe5)]=!0x0,this[_0x544105(0xcf)][_0x544105(0xe1)](_0x5817e3)):_0x5817e3?.['id'][_0x544105(0xde)](_0x544105(0xdd))?(this[_0x544105(0xe5)]=!0x0,this[_0x544105(0xcf)][_0x544105(0xe1)](this[_0x544105(0xb1)][0x0])):this[_0x544105(0xe5)]=!0x1;}[_0x5c51c0(0xb5)](){const _0x1cdb0a=_0x5c51c0;this[_0x1cdb0a(0xcf)][_0x1cdb0a(0xb5)]();}[_0x5c51c0(0xb9)](_0x3f53e3){const _0xc89760=_0x5c51c0;this[_0xc89760(0xcf)][_0xc89760(0xb9)](_0x3f53e3);}[_0x5c51c0(0xd5)](_0xe61e9c,_0x58fe5d,_0x27ba5d,_0x2bc42b){const _0x1da38a=_0x5c51c0;this[_0x1da38a(0xbd)][_0x1da38a(0xd5)](_0xe61e9c,_0x58fe5d,_0x27ba5d,_0x2bc42b);}[_0x5c51c0(0xd0)](_0x306887){const _0x2fe9f9=_0x5c51c0;this[_0x2fe9f9(0xbd)][_0x2fe9f9(0xd0)](_0x306887);}[_0x5c51c0(0xc3)](){const _0x470f08=_0x5c51c0;this[_0x470f08(0xe2)][_0x470f08(0xaf)]();}}class _s extends _0x52b72c{constructor(_0x4ebf26){const _0x2a1eb0=_0x5c51c0;super(_0x4ebf26);const _0x9aaefe=new _0x155d3e(_0x4ebf26);_0x9aaefe[_0x2a1eb0(0xec)]({'label':_0x23e44e(this[_0x2a1eb0(0xa0)],_0x2a1eb0(0xc4)),'withText':!0x0,'class':[_0x2a1eb0(0xc9)],'tooltip':''}),_0x9aaefe[_0x2a1eb0(0xd3)](_0x2a1eb0(0xdf))['to'](this,_0x2a1eb0(0xe3)),this[_0x2a1eb0(0xb4)]({'tag':_0x2a1eb0(0xeb),'attributes':{'class':['ck',_0x2a1eb0(0xd1)]},'children':[{'tag':'p','children':[{'text':_0x23e44e(this[_0x2a1eb0(0xa0)],_0x2a1eb0(0xa4))+'\x20'},_0x9aaefe]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13dd39=_0x1a37;(function(_0x8a5a67,_0x1f8bdf){const _0x20c950=_0x1a37,_0x4185ea=_0x8a5a67();while(!![]){try{const _0x4ea11e=-parseInt(_0x20c950(0x1fa))/0x1+parseInt(_0x20c950(0x1f1))/0x2*(parseInt(_0x20c950(0x212))/0x3)+parseInt(_0x20c950(0x22d))/0x4+parseInt(_0x20c950(0x215))/0x5*(-parseInt(_0x20c950(0x1e8))/0x6)+parseInt(_0x20c950(0x1f0))/0x7+-parseInt(_0x20c950(0x220))/0x8+-parseInt(_0x20c950(0x21f))/0x9;if(_0x4ea11e===_0x1f8bdf)break;else _0x4185ea['push'](_0x4185ea['shift']());}catch(_0x4d74ef){_0x4185ea['push'](_0x4185ea['shift']());}}}(_0x1db7,0x933de));import{CKEditorError as _0x44d121,logWarning as _0x2a59dd,scrollViewportToShowTarget as _0x463203}from'ckeditor5/src/utils.js';import{View as _0x719094}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x45de7d}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x5132a3}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x42857d}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x18a55d}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x1fba7a}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x3b07ca}from'./feed/aichatfeedinteractionheaderview.js';function _0x1db7(){const _0x5ea89d=['aiFeed','toggleLoadingSkeleton','isLoadingSkeletonVisible','_createFeedLoader','bind','_createFeedItems','stopAutoScroll','ai-reply','1710eXycwj','loadingMessage','_setupTemplate','25oqCZJe','ck-ai-chat__feed__items','ai-suggestion-reply','span','bindTemplate','ck-hidden','isPending','setLoadingMessage','delegate','ai-chat-feed-view-item-not-found','2655648ukYLbQ','3821864eLNtjr','getItemIds','destroy','start','clear','createCollection','scrollToSuggestion','remove','setTemplate','removeItem','user-message','element','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','2945700PvXOmZ','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','getItemById','extendTemplate','find','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','locale','ck-ai-chat__loader','map','scrollManager','markAsDone','575202QEqSuh','addItem','isTrackChangesOn','markItemAsDone','updateReplyItem','add','updateSuggestionPartState','children','1519490YcuZhg','4120TpEkYA','stop','_createSkeletonLoader','updateSources','set','ck-ai-chat__loader-text','_createTemplateChildren','updateWebSources','ai-chat-feed-view-item-not-a-suggestion-item','272453zdfQSk','updateSuggestionItem','isVisible','_bodyCollection','getPartView','ck-ai-chat__feed','startAutoScroll','ai-chat-feed-view-item-not-a-reply-item','updatePartState','updateContent','interaction-header','_createLoaderChildren','render','includes','options','div'];_0x1db7=function(){return _0x5ea89d;};return _0x1db7();}import{ScrollManager as _0x4c5172}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x2df60f,SKELETON_DEFINITIONS as _0x53d832}from'../../aicore/ui/aiskeleton.js';function _0x1a37(_0x3d9b13,_0x3524de){const _0x1db75b=_0x1db7();return _0x1a37=function(_0x1a376f,_0x4cbdf9){_0x1a376f=_0x1a376f-0x1e8;let _0x55412e=_0x1db75b[_0x1a376f];return _0x55412e;},_0x1a37(_0x3d9b13,_0x3524de);}import{AISpinnerView as _0x537639}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x719094{[_0x13dd39(0x1ef)];[_0x13dd39(0x236)];[_0x13dd39(0x1fd)];constructor(_0x5428f5,_0xf7450f){const _0x2f2aca=_0x13dd39;super(_0x5428f5),this[_0x2f2aca(0x1fd)]=_0xf7450f,this[_0x2f2aca(0x1f5)](_0x2f2aca(0x21b),!0x1),this[_0x2f2aca(0x1f5)](_0x2f2aca(0x213),''),this[_0x2f2aca(0x1f5)](_0x2f2aca(0x20c),!0x1),this[_0x2f2aca(0x1f5)](_0x2f2aca(0x1ea),!0x1),this[_0x2f2aca(0x1ef)]=this[_0x2f2aca(0x225)](),this[_0x2f2aca(0x1ef)][_0x2f2aca(0x21d)](..._0x45de7d)['to'](this),this[_0x2f2aca(0x214)]();}[_0x13dd39(0x206)](){const _0x25ddb4=_0x13dd39;super[_0x25ddb4(0x206)](),this[_0x25ddb4(0x236)]=new _0x4c5172(this[_0x25ddb4(0x22b)]);}[_0x13dd39(0x222)](){const _0x2b463e=_0x13dd39;super[_0x2b463e(0x222)](),this[_0x2b463e(0x236)][_0x2b463e(0x222)]();}[_0x13dd39(0x224)](){const _0x569620=_0x13dd39;this[_0x569620(0x1ef)][_0x569620(0x224)]();}[_0x13dd39(0x1e9)](_0x2a5e21,_0xed5f9e){const _0x58565f=_0x13dd39;let _0x7bfcf6;_0x58565f(0x211)===_0x2a5e21?_0x7bfcf6=new _0x42857d(this[_0x58565f(0x233)],_0xed5f9e):_0x58565f(0x217)===_0x2a5e21?(_0x7bfcf6=new _0x5132a3(this[_0x58565f(0x233)],_0xed5f9e),_0x7bfcf6[_0x58565f(0x20e)](_0x58565f(0x1ea))['to'](this,_0x58565f(0x1ea))):_0x7bfcf6=_0x58565f(0x22a)===_0x2a5e21?new _0x18a55d(this[_0x58565f(0x233)],_0xed5f9e,this[_0x58565f(0x1fd)]):_0x58565f(0x204)===_0x2a5e21?new _0x3b07ca(this[_0x58565f(0x233)],_0xed5f9e):new _0x1fba7a(_0xed5f9e),this[_0x58565f(0x1ef)][_0x58565f(0x1ed)](_0x7bfcf6);}async[_0x13dd39(0x1ec)]({id:_0x90644f,parsedContent:_0x3dd99e,renderingStrategy:_0x2b1737,abortSignal:_0x12e2ca}){const _0xfc258f=_0x13dd39,_0x38a89c=this[_0xfc258f(0x22f)](_0x90644f);if(!(_0x38a89c instanceof _0x42857d))throw new _0x44d121(_0xfc258f(0x201),null,{'itemView':_0x38a89c,'id':_0x90644f,'parsedContent':_0x3dd99e});await _0x38a89c[_0xfc258f(0x203)]({'parsedContent':_0x3dd99e,'renderingStrategy':_0x2b1737,'abortSignal':_0x12e2ca});}async[_0x13dd39(0x1f8)](_0x33a64f,_0x21355b){const _0x88925a=_0x13dd39,_0x4d9379=this[_0x88925a(0x22f)](_0x33a64f);if(_0x4d9379 instanceof _0x5132a3)_0x4d9379[_0x88925a(0x1f4)](_0x21355b);else{if(!(_0x4d9379 instanceof _0x42857d))throw new _0x44d121(_0x88925a(0x232),null,{'itemView':_0x4d9379,'id':_0x33a64f,'sources':_0x21355b});_0x4d9379[_0x88925a(0x1f4)](_0x21355b);}}async[_0x13dd39(0x1fb)]({id:_0xc54955,parts:_0x5d6c27,renderingStrategy:_0x3fed4f,abortSignal:_0x58cbb4}){const _0x3da6bc=_0x13dd39,_0x1f064d=this[_0x3da6bc(0x22f)](_0xc54955);if(!(_0x1f064d instanceof _0x5132a3))throw new _0x44d121(_0x3da6bc(0x1f9),null,{'itemView':_0x1f064d,'id':_0xc54955,'parts':_0x5d6c27});await _0x1f064d[_0x3da6bc(0x203)]({'parts':_0x5d6c27,'renderingStrategy':_0x3fed4f,'abortSignal':_0x58cbb4});}[_0x13dd39(0x1ee)]({id:_0x188a33,index:_0x23aa2a,state:_0x31c170}){const _0x5a758a=_0x13dd39,_0xf4a4c5=this[_0x5a758a(0x22f)](_0x188a33);if(!(_0xf4a4c5 instanceof _0x5132a3))throw new _0x44d121(_0x5a758a(0x1f9),this,{'id':_0x188a33});_0xf4a4c5[_0x5a758a(0x202)](_0x23aa2a,_0x31c170);}[_0x13dd39(0x1eb)](_0x3af7d2){const _0x283c6d=_0x13dd39;this[_0x283c6d(0x22f)](_0x3af7d2)[_0x283c6d(0x237)]();}[_0x13dd39(0x221)](){const _0x668b19=_0x13dd39;return this[_0x668b19(0x1ef)][_0x668b19(0x235)](_0x321864=>_0x321864[_0x668b19(0x208)]['id']);}[_0x13dd39(0x229)](_0x375db2){const _0x1bb829=_0x13dd39;this[_0x1bb829(0x1ef)][_0x1bb829(0x227)](this[_0x1bb829(0x22f)](_0x375db2));}[_0x13dd39(0x226)](_0x5e0940,_0x1ec099){const _0x16d4c6=_0x13dd39,_0xd63fd0=this[_0x16d4c6(0x22f)](_0x5e0940);if(!(_0xd63fd0 instanceof _0x5132a3))return void _0x2a59dd(_0x16d4c6(0x22c),{'replyId':_0x5e0940,'partIndex':_0x1ec099});const _0x4d39db=_0xd63fd0[_0x16d4c6(0x1fe)](_0x1ec099);_0x4d39db?_0x463203({'target':_0x4d39db[_0x16d4c6(0x22b)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x2a59dd(_0x16d4c6(0x22e),{'replyId':_0x5e0940,'partIndex':_0x1ec099});}[_0x13dd39(0x214)](){const _0x2b01f6=_0x13dd39;this[_0x2b01f6(0x228)]({'tag':_0x2b01f6(0x209),'attributes':{'class':['ck',_0x2b01f6(0x1ff)]},'children':this[_0x2b01f6(0x1f7)]()});}[_0x13dd39(0x1f7)](){const _0x59f4ae=_0x13dd39,_0x17d121=this[_0x59f4ae(0x1f3)]();return[this[_0x59f4ae(0x20f)](),_0x17d121,this[_0x59f4ae(0x20d)]()];}[_0x13dd39(0x1f3)](){const _0x3dc42d=_0x13dd39,_0x337481=new _0x2df60f(this[_0x3dc42d(0x233)],_0x53d832[_0x3dc42d(0x20a)]);return _0x337481[_0x3dc42d(0x230)]({'attributes':{'class':[this[_0x3dc42d(0x219)]['if'](_0x3dc42d(0x20c),_0x3dc42d(0x21a),_0x46aca1=>!_0x46aca1)]}}),_0x337481;}[_0x13dd39(0x20f)](){const _0x1ffa58=_0x13dd39,_0x5195a5=new _0x719094(this[_0x1ffa58(0x233)]);return _0x5195a5[_0x1ffa58(0x228)]({'tag':_0x1ffa58(0x209),'attributes':{'class':['ck',_0x1ffa58(0x216),this[_0x1ffa58(0x219)]['if'](_0x1ffa58(0x20c),_0x1ffa58(0x21a))]},'children':this[_0x1ffa58(0x1ef)]}),_0x5195a5;}[_0x13dd39(0x20d)](){const _0x1477a4=_0x13dd39,_0x36584e=new _0x719094(this[_0x1477a4(0x233)]);return _0x36584e[_0x1477a4(0x228)]({'tag':_0x1477a4(0x209),'attributes':{'class':['ck',_0x1477a4(0x234),this[_0x1477a4(0x219)]['if'](_0x1477a4(0x21b),_0x1477a4(0x21a),_0x5aae90=>!_0x5aae90)]},'children':this[_0x1477a4(0x205)]()}),_0x36584e;}[_0x13dd39(0x205)](){const _0x3df1dd=_0x13dd39,_0x2cd225=new _0x537639();return _0x2cd225[_0x3df1dd(0x1fc)]=!0x0,[_0x2cd225,{'tag':_0x3df1dd(0x218),'attributes':{'class':['ck',_0x3df1dd(0x1f6)]},'children':[{'text':this[_0x3df1dd(0x219)]['to'](_0x3df1dd(0x213))}]}];}[_0x13dd39(0x22f)](_0x5d8118){const _0x51ef58=_0x13dd39,_0x107e6a=this[_0x51ef58(0x1ef)][_0x51ef58(0x231)](_0xab56c9=>_0xab56c9[_0x51ef58(0x208)]['id'][_0x51ef58(0x207)](_0x5d8118));if(!_0x107e6a)throw new _0x44d121(_0x51ef58(0x21e),this,{'id':_0x5d8118});return _0x107e6a;}[_0x13dd39(0x21c)](_0x1fb118){const _0x3fc4be=_0x13dd39;this[_0x3fc4be(0x1f5)](_0x3fc4be(0x213),_0x1fb118);}[_0x13dd39(0x20b)](_0x2fc09a){const _0x17c6c5=_0x13dd39;this[_0x17c6c5(0x1f5)](_0x17c6c5(0x20c),_0x2fc09a);}[_0x13dd39(0x200)](){const _0x3f94d1=_0x13dd39;this[_0x3f94d1(0x236)][_0x3f94d1(0x223)]();}[_0x13dd39(0x210)](){const _0x183bec=_0x13dd39;this[_0x183bec(0x236)][_0x183bec(0x1f2)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2e1b(){const _0x5b3979=['add','fire','ck-ai-chat__start-conversation','resizeButton','778DKuMCL','5614308IqKMoI','ck-ai-header\x20ck-ai-header_chat','conversationStartButton','_createStartConversationButton','13385RjUaHt','2976xDWRbc','execute','locale','isMaximized','172774oAsSnT','1891761wHPaDb','501sNbNhd','children','1920YIDlUX','1280VzHGHQ','AI_CHAT_HEADING','27555FthbaA','22239epExiQ','set','startConversation','AI_CHAT_LABEL_NEW_CHAT'];_0x2e1b=function(){return _0x5b3979;};return _0x2e1b();}const _0x1f46ad=_0xcba5;(function(_0x35ba85,_0x3cc5c9){const _0x2591ad=_0xcba5,_0x2d918a=_0x35ba85();while(!![]){try{const _0x207be4=-parseInt(_0x2591ad(0xfc))/0x1*(-parseInt(_0x2591ad(0xf0))/0x2)+parseInt(_0x2591ad(0xfb))/0x3+parseInt(_0x2591ad(0xff))/0x4*(-parseInt(_0x2591ad(0xf5))/0x5)+parseInt(_0x2591ad(0xf1))/0x6+parseInt(_0x2591ad(0xfa))/0x7+-parseInt(_0x2591ad(0xf6))/0x8*(parseInt(_0x2591ad(0x102))/0x9)+-parseInt(_0x2591ad(0xfe))/0xa*(-parseInt(_0x2591ad(0x101))/0xb);if(_0x207be4===_0x3cc5c9)break;else _0x2d918a['push'](_0x2d918a['shift']());}catch(_0x14d7ae){_0x2d918a['push'](_0x2d918a['shift']());}}}(_0x2e1b,0x77de8));import{ButtonView as _0x328855,FormHeaderView as _0x36ef0a}from'ckeditor5/src/ui.js';import{IconPlus as _0x5b1032,IconAIChat as _0x3e0727}from'ckeditor5/src/icons.js';import{getTranslation as _0x27856f}from'../../aicore/utils/common-translations.js';function _0xcba5(_0x2bf270,_0x1831ff){const _0x2e1bd1=_0x2e1b();return _0xcba5=function(_0xcba588,_0x2c950b){_0xcba588=_0xcba588-0xef;let _0x3c967b=_0x2e1bd1[_0xcba588];return _0x3c967b;},_0xcba5(_0x2bf270,_0x1831ff);}import{createResizeButton as _0x5902bf}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x36ef0a{[_0x1f46ad(0xf3)];[_0x1f46ad(0xef)];constructor(_0x31c782,_0x17cda3){const _0x511801=_0x1f46ad;super(_0x31c782,{'label':_0x27856f(_0x31c782,_0x511801(0x100)),'class':_0x511801(0xf2),'icon':_0x3e0727}),this[_0x511801(0x103)](_0x511801(0xf9),!0x1),this[_0x511801(0xf3)]=this[_0x511801(0xf4)](_0x31c782),this[_0x511801(0xfd)][_0x511801(0x106)](this[_0x511801(0xf3)]),_0x17cda3&&(this[_0x511801(0xef)]=_0x5902bf(_0x31c782,this),this[_0x511801(0xfd)][_0x511801(0x106)](this[_0x511801(0xef)]));}[_0x1f46ad(0xf4)](_0x39b6ed){const _0x5da2d7=_0x1f46ad,_0x108b20=new _0x328855(_0x39b6ed);return _0x108b20[_0x5da2d7(0x103)]({'label':_0x27856f(this[_0x5da2d7(0xf8)],_0x5da2d7(0x105)),'withText':!0x0,'icon':_0x5b1032,'class':_0x5da2d7(0x108)}),_0x108b20['on'](_0x5da2d7(0xf7),()=>{const _0x1fa6a0=_0x5da2d7;this[_0x1fa6a0(0x107)](_0x1fa6a0(0x104));}),_0x108b20;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xf708c3=_0x1eb2;(function(_0x290413,_0x61677a){var _0x7d4f9c=_0x1eb2,_0x5a88e5=_0x290413();while(!![]){try{var _0x38f9fc=parseInt(_0x7d4f9c(0x7f))/0x1+-parseInt(_0x7d4f9c(0x6e))/0x2*(-parseInt(_0x7d4f9c(0x75))/0x3)+-parseInt(_0x7d4f9c(0x7d))/0x4*(parseInt(_0x7d4f9c(0x88))/0x5)+parseInt(_0x7d4f9c(0x74))/0x6+parseInt(_0x7d4f9c(0x81))/0x7+parseInt(_0x7d4f9c(0x80))/0x8+-parseInt(_0x7d4f9c(0x76))/0x9*(parseInt(_0x7d4f9c(0x6c))/0xa);if(_0x38f9fc===_0x61677a)break;else _0x5a88e5['push'](_0x5a88e5['shift']());}catch(_0x402652){_0x5a88e5['push'](_0x5a88e5['shift']());}}}(_0x239e,0xb9b93));import{View as _0x51f595,BodyCollection as _0x5a1558}from'ckeditor5/src/ui.js';function _0x1eb2(_0x2ad040,_0x36a56d){var _0x239ec5=_0x239e();return _0x1eb2=function(_0x1eb239,_0x48fcca){_0x1eb239=_0x1eb239-0x6c;var _0x4fefb0=_0x239ec5[_0x1eb239];return _0x4fefb0;},_0x1eb2(_0x2ad040,_0x36a56d);}import{AI_CHAT_UI_EVENT_NAMES as _0x2240be}from'../utils/eventnames.js';import{AIChatFeedView as _0x3dbedf}from'./aichatfeedview.js';import{AIChatControlsView as _0x3f1e47}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x1ba95f}from'./aichatheaderview.js';import{AIDisclaimerView as _0x4013e7}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x51f595{[_0xf708c3(0x84)];[_0xf708c3(0x77)];[_0xf708c3(0x86)];[_0xf708c3(0x7b)];[_0xf708c3(0x7a)];constructor(_0x3c813d,_0x21a98a){var _0x121ec6=_0xf708c3;super(_0x3c813d),this[_0x121ec6(0x7a)]=new _0x5a1558(_0x3c813d),this[_0x121ec6(0x7a)][_0x121ec6(0x71)](),this[_0x121ec6(0x84)]=new _0x1ba95f(_0x3c813d,_0x21a98a[_0x121ec6(0x79)]),this[_0x121ec6(0x84)][_0x121ec6(0x6f)](..._0x2240be)['to'](this),this[_0x121ec6(0x77)]=new _0x3dbedf(_0x3c813d,this[_0x121ec6(0x7a)]),this[_0x121ec6(0x77)][_0x121ec6(0x6f)](..._0x2240be)['to'](this),this[_0x121ec6(0x86)]=new _0x3f1e47(_0x3c813d,{'bodyCollection':this[_0x121ec6(0x7a)],'contextResourcesSearchInputVisibleFrom':_0x21a98a[_0x121ec6(0x7e)]}),this[_0x121ec6(0x86)][_0x121ec6(0x6f)](..._0x2240be)['to'](this),this[_0x121ec6(0x7b)]=new _0x4013e7(_0x3c813d),this[_0x121ec6(0x73)]({'tag':_0x121ec6(0x82),'attributes':{'class':['ck',_0x121ec6(0x6d),_0x121ec6(0x83),_0x121ec6(0x78)],'dir':_0x3c813d[_0x121ec6(0x7c)]},'children':[this[_0x121ec6(0x84)],this[_0x121ec6(0x77)],this[_0x121ec6(0x86)],this[_0x121ec6(0x7b)]]});}[_0xf708c3(0x87)](_0x5af8d6,_0x4edac1,_0x27a364,_0x167c22){var _0x241627=_0xf708c3;this[_0x241627(0x86)][_0x241627(0x87)](_0x5af8d6,_0x4edac1,_0x27a364,_0x167c22);}[_0xf708c3(0x70)](_0x9dfa39){var _0x13e5c7=_0xf708c3;this[_0x13e5c7(0x86)][_0x13e5c7(0x70)](_0x9dfa39);}[_0xf708c3(0x85)](){var _0x16b3b7=_0xf708c3;this[_0x16b3b7(0x7a)][_0x16b3b7(0x72)](),super[_0x16b3b7(0x85)]();}}function _0x239e(){var _0x3ace1e=['chatHeader','destroy','chatControls','populateSourceResourceBalloon','3950230ugvgrO','2110qVfWQf','ck-reset_all','92HUTyLs','delegate','closeSourceResourceBalloon','attachToDom','detachFromDom','setTemplate','3384918gXrmkV','5727AJlvFK','30501TngrqS','chatFeed','ck-rounded-corners','showResizeButton','_bodyCollection','chatDisclaimer','uiLanguageDirection','4ltKSZx','contextResourcesSearchInputVisibleFrom','1036358dnkqaO','2980384JLEBOf','1434825nPaoXf','div','ck-ai-chat'];_0x239e=function(){return _0x3ace1e;};return _0x239e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x150268=_0x5725;(function(_0x54367a,_0x4b8914){const _0x5696fb=_0x5725,_0x41127b=_0x54367a();while(!![]){try{const _0x4e94ee=parseInt(_0x5696fb(0x116))/0x1+parseInt(_0x5696fb(0xc4))/0x2+-parseInt(_0x5696fb(0xbb))/0x3+parseInt(_0x5696fb(0xa4))/0x4*(parseInt(_0x5696fb(0xbd))/0x5)+-parseInt(_0x5696fb(0xf2))/0x6+-parseInt(_0x5696fb(0x100))/0x7*(parseInt(_0x5696fb(0xd4))/0x8)+-parseInt(_0x5696fb(0xd0))/0x9*(-parseInt(_0x5696fb(0xe7))/0xa);if(_0x4e94ee===_0x4b8914)break;else _0x41127b['push'](_0x41127b['shift']());}catch(_0x284646){_0x41127b['push'](_0x41127b['shift']());}}}(_0x44dd,0x58904));import{View as _0x39eaab,BalloonPanelView as _0x163201,ButtonView as _0x23f99f,clickOutsideHandler as _0x3a9117}from'ckeditor5/src/ui.js';function _0x44dd(){const _0x2e8ded=['hidden','showMoreButton','execute','50px','opacity','length','maxVisibleRows','includes','isConnected','4GyIfHC','_createShowMoreButtonView','getBoundingClientRect','zIndex','top','calculationContainer','visible','_targetContainer','rowDetectionTolerance','_createCalculationContainer','_makeAncestorsVisible','_isContainerVisible','documentElement','textContent','_visibleChips','_overflowChips','showMoreLabelPrefix','visibility','_updateOverflowUI','destroy','from','offsetWidth','bottom','1297239JTGMuO','overflowChips','2677885YDbFMS','none','_handleShowMoreButtonClick','_checkAndHandleOverflow','classList','setTemplate','height','608700ptHPMe','pointerEvents','_showMoreButtonView','cloneNode','abs','label','isIntersecting','style','.ck-ai-chat','visible\x20!important','div','_createContainerElements','9OaCwZQ','tagName','hide','_applyOverflowResults','968264ginuBv','overflowContainer','ck-calculation-container','_distributeChips','show','appendChild','_showMoreBalloonPanelView','_calculateOverflowInContainer','className','pop','render','_pendingCalculation','_parentView','_bodyCollection','observe','_containerElement','content','+\x201','_locale','903340qCUjnM','_createMockButton','_repinBalloonPanel','some','block','block\x20!important','position','reorganizeChips','toLowerCase','_intersectionObserver','-9999px','3060972mkkegU','controlsButton','remove','innerWidth','hideBalloonPanel','_calculateContainerWidth','showMoreButtonView','0px','createElement','element','clear','_ancestorsToRestore','button','_restoreAncestorVisibility','7gxTbbQ','cssClasses','body','filter','_config','showMoreBalloon','_applyCalculationStyles','_createShowMoreButton','undefined','innerHeight','parentElement','clientWidth','isOn','clientHeight','isVisible','setContainerElement','width','_updateShowMoreButtonVisibility','add','_createShowMoreBalloonPanelView','forEach','set','496103VoQXPY','border-box','left','300px','querySelector','_updateBalloonContent','extendTemplate','auto','absolute','_renderChipsAndCountRows','_testButtonFit','disableAnimationOnEnter','children','display','showBalloonPanel','_setupVisibilityObserver','push','pin','right','slice','boxSizing','_findTargetContainer','innerHTML','disconnect','getComputedStyle'];_0x44dd=function(){return _0x2e8ded;};return _0x44dd();}function _0x5725(_0xd4f308,_0x3a0a2b){const _0x44dd6f=_0x44dd();return _0x5725=function(_0x57253c,_0x4ac6c5){_0x57253c=_0x57253c-0xa0;let _0x5c5a69=_0x44dd6f[_0x57253c];return _0x5c5a69;},_0x5725(_0xd4f308,_0x3a0a2b);}import{Collection as _0x3eb3ff}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x150268(0x119);export class AIChatChipsOverflowManager{[_0x150268(0xe6)];[_0x150268(0x104)];[_0x150268(0xb2)];[_0x150268(0xb3)];[_0x150268(0xc6)]=null;[_0x150268(0xda)]=null;[_0x150268(0xe3)]=null;[_0x150268(0xe1)];[_0x150268(0xe0)]=null;[_0x150268(0xf0)]=null;[_0x150268(0xdf)]=!0x1;constructor(_0x2de664,_0x3b3f16,_0x5f0c21,_0x33663b,_0x2317f2){const _0x382e6e=_0x150268;this[_0x382e6e(0xe6)]=_0x2de664,this[_0x382e6e(0xb2)]=_0x3b3f16,this[_0x382e6e(0x104)]={...hn,..._0x5f0c21,'cssClasses':{'controlsButton':'','calculationContainer':_0x382e6e(0xd6),..._0x5f0c21[_0x382e6e(0x101)]}},this[_0x382e6e(0xb3)]=new _0x3eb3ff(),this[_0x382e6e(0xe1)]=_0x33663b,this[_0x382e6e(0xe0)]=_0x2317f2||null;}[_0x150268(0x10f)](_0xc595a){const _0x257fe7=_0x150268;this[_0x257fe7(0xf0)]&&(this[_0x257fe7(0xf0)][_0x257fe7(0x12d)](),this[_0x257fe7(0xf0)]=null),this[_0x257fe7(0xe3)]=_0xc595a,this[_0x257fe7(0x125)]();}get[_0x150268(0xf8)](){const _0x5559ca=_0x150268;return this[_0x5559ca(0xc6)];}get[_0x150268(0xbc)](){const _0x2e449a=_0x150268;return this[_0x2e449a(0xb3)];}[_0x150268(0xee)](){requestAnimationFrame(()=>{const _0x56d9f3=_0x5725;this[_0x56d9f3(0xc0)]();});}[_0x150268(0x124)](){const _0x3248b6=_0x150268;this[_0x3248b6(0xc6)]&&this[_0x3248b6(0xda)]&&(this[_0x3248b6(0x11b)](),this[_0x3248b6(0xc6)][_0x3248b6(0x10c)]=!0x0,this[_0x3248b6(0xda)][_0x3248b6(0xd8)](),this[_0x3248b6(0xda)][_0x3248b6(0x127)]({'target':this[_0x3248b6(0xc6)][_0x3248b6(0xfb)],'limiter':document[_0x3248b6(0x11a)](_0x3248b6(0xcc))}));}[_0x150268(0xf6)](){const _0x1e2962=_0x150268;this[_0x1e2962(0xc6)]&&this[_0x1e2962(0xda)]&&(this[_0x1e2962(0xc6)][_0x1e2962(0x10c)]=!0x1,this[_0x1e2962(0xda)][_0x1e2962(0xd2)]());}[_0x150268(0xfc)](){const _0x1a0231=_0x150268;this[_0x1a0231(0xb3)][_0x1a0231(0xfc)](),this[_0x1a0231(0xf6)](),this[_0x1a0231(0x111)](),this[_0x1a0231(0xc6)]&&(this[_0x1a0231(0xc6)][_0x1a0231(0xc9)]=''),this[_0x1a0231(0xda)]&&this[_0x1a0231(0xda)][_0x1a0231(0xe4)][_0x1a0231(0xfc)]();}[_0x150268(0xb7)](){const _0xc05413=_0x150268;this[_0xc05413(0xf0)]&&(this[_0xc05413(0xf0)][_0xc05413(0x12d)](),this[_0xc05413(0xf0)]=null),this[_0xc05413(0xc6)]&&(this[_0xc05413(0xc6)][_0xc05413(0xb7)](),this[_0xc05413(0xc6)]=null),this[_0xc05413(0xda)]&&(this[_0xc05413(0xda)][_0xc05413(0xb7)](),this[_0xc05413(0xda)]=null);}[_0x150268(0xc0)](){const _0x5de3cf=_0x150268;if(!this[_0x5de3cf(0xe3)])return;if(!this[_0x5de3cf(0xaf)]())return void(this[_0x5de3cf(0xdf)]=!0x0);this[_0x5de3cf(0xdf)]=!0x1;const _0x5e726e=[...this[_0x5de3cf(0xb2)],...this[_0x5de3cf(0xb3)]],_0x4c4a15=this[_0x5de3cf(0xad)](),_0x14a189=this[_0x5de3cf(0xdb)](_0x4c4a15,_0x5e726e),_0x2e165d=_0x4c4a15[_0x5de3cf(0xfd)];_0x2e165d&&this[_0x5de3cf(0xff)](_0x2e165d),_0x4c4a15[_0x5de3cf(0xf4)](),this[_0x5de3cf(0xd3)](_0x5e726e,_0x14a189);}[_0x150268(0x107)](){const _0x277957=_0x150268;this[_0x277957(0xc6)]=this[_0x277957(0xa5)](),this[_0x277957(0xda)]=this[_0x277957(0x113)](),this[_0x277957(0xc6)][_0x277957(0xde)](),this[_0x277957(0xe3)][_0x277957(0xd9)](this[_0x277957(0xc6)][_0x277957(0xfb)]),this[_0x277957(0xc6)]['on'](_0x277957(0x131),()=>{const _0x3a5bef=_0x277957;this[_0x3a5bef(0xbf)]();}),_0x3a9117({'emitter':this[_0x277957(0xda)],'contextElements':[this[_0x277957(0xda)][_0x277957(0xfb)],this[_0x277957(0xc6)][_0x277957(0xfb)]],'callback':()=>this[_0x277957(0xf6)](),'activator':()=>this[_0x277957(0xc6)][_0x277957(0x10c)]});}[_0x150268(0xa5)](){const _0xc109cf=_0x150268,_0x4089e9=new _0x23f99f(this[_0xc109cf(0xe6)]);_0x4089e9[_0xc109cf(0x115)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x18b2e2=[this[_0xc109cf(0x104)][_0xc109cf(0x101)][_0xc109cf(0x130)]];return this[_0xc109cf(0x104)][_0xc109cf(0x101)][_0xc109cf(0xf3)]&&_0x18b2e2[_0xc109cf(0x126)](this[_0xc109cf(0x104)][_0xc109cf(0x101)][_0xc109cf(0xf3)]),_0x4089e9[_0xc109cf(0x11c)]({'attributes':{'class':_0x18b2e2}}),_0x4089e9;}[_0x150268(0x113)](){const _0x4e9c57=_0x150268,_0x2e71be=new _0x163201(this[_0x4e9c57(0xe6)]);return _0x2e71be[_0x4e9c57(0x11c)]({'attributes':{'class':this[_0x4e9c57(0x104)][_0x4e9c57(0x101)][_0x4e9c57(0x105)]}}),this[_0x4e9c57(0xe1)][_0x4e9c57(0x112)](_0x2e71be),_0x2e71be;}[_0x150268(0x11b)](){const _0x7292b5=_0x150268;if(this[_0x7292b5(0xda)]&&(this[_0x7292b5(0xda)][_0x7292b5(0xe4)][_0x7292b5(0xfc)](),this[_0x7292b5(0xb3)][_0x7292b5(0xa0)]>0x0)){this[_0x7292b5(0xb3)][_0x7292b5(0x114)](_0x2d1047=>{const _0x13a1be=_0x7292b5;_0x2d1047[_0x13a1be(0x121)]();});const _0x40f64f=new _0x39eaab(this[_0x7292b5(0xe6)]);_0x40f64f[_0x7292b5(0xc2)]({'tag':_0x7292b5(0xce),'attributes':{'class':this[_0x7292b5(0x104)][_0x7292b5(0x101)][_0x7292b5(0xd5)]},'children':this[_0x7292b5(0xb3)]}),this[_0x7292b5(0xda)][_0x7292b5(0xe4)][_0x7292b5(0x112)](_0x40f64f);}}[_0x150268(0xbf)](){const _0xe47329=_0x150268;this[_0xe47329(0xc6)][_0xe47329(0x10c)]?this[_0xe47329(0xf6)]():this[_0xe47329(0x124)]();}[_0x150268(0x111)](){const _0x3b0dfe=_0x150268,_0x1a70a2=this[_0x3b0dfe(0xb3)][_0x3b0dfe(0xa0)]>0x0;this[_0x3b0dfe(0xc6)]?.[_0x3b0dfe(0xfb)]&&(this[_0x3b0dfe(0xc6)][_0x3b0dfe(0xfb)][_0x3b0dfe(0xcb)][_0x3b0dfe(0x123)]=_0x1a70a2?'':_0x3b0dfe(0xbe));}[_0x150268(0xe9)](){const _0x481501=_0x150268;this[_0x481501(0xc6)]?.[_0x481501(0x10c)]&&this[_0x481501(0xda)]?.[_0x481501(0x10e)]&&this[_0x481501(0xc6)][_0x481501(0xfb)]&&this[_0x481501(0xda)][_0x481501(0x127)]({'target':this[_0x481501(0xc6)][_0x481501(0xfb)],'limiter':document[_0x481501(0x11a)](_0x481501(0xcc))});}[_0x150268(0x12b)](_0x36c620){const _0x52eeb9=_0x150268,_0xad80dd=this[_0x52eeb9(0xe3)]?.[_0x52eeb9(0xd1)][_0x52eeb9(0xef)]()||_0x52eeb9(0xce),_0x3c5a8e=this[_0x52eeb9(0xe3)]?.[_0x52eeb9(0xc1)];if(_0x3c5a8e){const _0x4bbe7a=_0x3c5a8e[0x0]||'',_0x52ce91=_0x36c620[_0x52eeb9(0x11a)]('.'+_0x4bbe7a),_0x2599e2=_0x36c620[_0x52eeb9(0x11a)](_0xad80dd);return _0x52ce91||_0x2599e2||_0x36c620;}return _0x36c620[_0x52eeb9(0x11a)](_0xad80dd)||_0x36c620;}[_0x150268(0xf7)](){const _0x505b8f=_0x150268,_0x4e8af6=this[_0x505b8f(0xe0)]?.[_0x505b8f(0xfb)]||this[_0x505b8f(0xe3)];if(!_0x4e8af6)return an;const _0x53b602=window[_0x505b8f(0x12e)](_0x4e8af6)[_0x505b8f(0x110)];if(_0x505b8f(0x11d)===_0x53b602||_0x505b8f(0xf9)===_0x53b602||!_0x53b602){const _0xf36e11=_0x4e8af6[_0x505b8f(0x10a)];if(_0xf36e11){const _0x5512f4=window[_0x505b8f(0x12e)](_0xf36e11);return _0x505b8f(0x11d)!==_0x5512f4[_0x505b8f(0x110)]?_0x5512f4[_0x505b8f(0x110)]:an;}return an;}return _0x53b602;}[_0x150268(0x106)](_0x1ae852,_0x28c11c){const _0x5e1107=_0x150268;this[_0x5e1107(0x104)][_0x5e1107(0x101)][_0x5e1107(0xa9)]&&_0x1ae852[_0x5e1107(0xc1)][_0x5e1107(0x112)](this[_0x5e1107(0x104)][_0x5e1107(0x101)][_0x5e1107(0xa9)]),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x110)]=_0x28c11c,_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xed)]=_0x5e1107(0x11e),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xa8)]=_0x5e1107(0xf1),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x118)]=_0x5e1107(0xf1),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x133)]='0',_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xc5)]=_0x5e1107(0xbe),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xa7)]='-1',_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0xb5)]=_0x5e1107(0xcd),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x123)]=_0x5e1107(0xec),_0x1ae852[_0x5e1107(0xcb)][_0x5e1107(0x12a)]=_0x5e1107(0x117);}[_0x150268(0xff)](_0x104c20){const _0x332f6d=_0x150268;_0x104c20[_0x332f6d(0x114)](({element:_0x324079,originalDisplay:_0x264422,originalVisibility:_0x42272f})=>{const _0x2c5723=_0x332f6d;_0x324079[_0x2c5723(0xcb)][_0x2c5723(0x123)]=_0x264422,_0x324079[_0x2c5723(0xcb)][_0x2c5723(0xb5)]=_0x42272f;});}[_0x150268(0xae)](_0x4ecd7b){const _0x523e44=_0x150268,_0x1c0c18=[];let _0x522bff=_0x4ecd7b;for(;_0x522bff&&_0x522bff!==document[_0x523e44(0x102)];){const _0x4701f6=window[_0x523e44(0x12e)](_0x522bff);_0x523e44(0xbe)!==_0x4701f6[_0x523e44(0x123)]&&_0x523e44(0x12f)!==_0x4701f6[_0x523e44(0xb5)]||(_0x1c0c18[_0x523e44(0x126)]({'element':_0x522bff,'originalDisplay':_0x522bff[_0x523e44(0xcb)][_0x523e44(0x123)],'originalVisibility':_0x522bff[_0x523e44(0xcb)][_0x523e44(0xb5)]}),_0x522bff[_0x523e44(0xcb)][_0x523e44(0x123)]=_0x523e44(0xeb),_0x522bff[_0x523e44(0xcb)][_0x523e44(0xb5)]=_0x523e44(0xaa)),_0x522bff=_0x522bff[_0x523e44(0x10a)];}return _0x1c0c18;}[_0x150268(0xcf)](){const _0xb46e00=_0x150268;let _0x504d4f,_0x396447;return this[_0xb46e00(0xe0)]?.[_0xb46e00(0xfb)]?(_0x504d4f=this[_0xb46e00(0xe0)][_0xb46e00(0xfb)][_0xb46e00(0xc7)](!0x0),_0x396447=this[_0xb46e00(0x12b)](_0x504d4f)):(_0x504d4f=document[_0xb46e00(0xfa)](_0xb46e00(0xce)),_0x396447=_0x504d4f),{'calculationContainer':_0x504d4f,'targetContainer':_0x396447};}[_0x150268(0xad)](){const _0x1c42cc=_0x150268,{calculationContainer:_0x45730d,targetContainer:_0x2a208b}=this[_0x1c42cc(0xcf)](),_0xdf0989=this[_0x1c42cc(0xf7)]();this[_0x1c42cc(0x106)](_0x45730d,_0xdf0989);const _0x1ec086=this[_0x1c42cc(0xe0)]?.[_0x1c42cc(0xfb)]||this[_0x1c42cc(0xe3)],_0x526b4a=_0x1ec086?.[_0x1c42cc(0x10a)];_0x526b4a?_0x526b4a[_0x1c42cc(0xd9)](_0x45730d):document[_0x1c42cc(0x102)][_0x1c42cc(0xd9)](_0x45730d),_0x45730d[_0x1c42cc(0xab)]=_0x2a208b;const _0x50ddf9=this[_0x1c42cc(0xae)](_0x526b4a||null);return _0x45730d[_0x1c42cc(0xb9)],_0x45730d[_0x1c42cc(0xfd)]=_0x50ddf9,_0x45730d;}[_0x150268(0xdb)](_0x4c52ef,_0x3a6f3b){const _0x58d477=_0x150268,_0x30deec=_0x4c52ef[_0x58d477(0xab)]||_0x4c52ef,_0x3bcac8=[],{rowCount:_0x270283}=this[_0x58d477(0x11f)](_0x30deec,_0x3a6f3b);if(_0x270283<=this[_0x58d477(0x104)][_0x58d477(0xa1)])return _0x3bcac8;const _0x4a21bf=_0x3a6f3b[_0x58d477(0x129)]();for(;_0x4a21bf[_0x58d477(0xa0)]>0x0;){if(this[_0x58d477(0x120)](_0x4c52ef,_0x30deec,_0x4a21bf)){const _0xea88cb=_0x3a6f3b[_0x58d477(0x103)](_0x3f4449=>!_0x4a21bf[_0x58d477(0xa2)](_0x3f4449));_0x3bcac8[_0x58d477(0x126)](..._0xea88cb);break;}if(!_0x4a21bf[_0x58d477(0xdd)]())break;}return _0x3bcac8;}[_0x150268(0x11f)](_0x2c07a9,_0x58d405){const _0x191ef1=_0x150268;_0x2c07a9[_0x191ef1(0x12c)]='',_0x58d405[_0x191ef1(0x114)](_0xf2bf20=>{const _0x1c144e=_0x191ef1;if(_0xf2bf20[_0x1c144e(0xfb)]){const _0x8543cc=_0xf2bf20[_0x1c144e(0xfb)][_0x1c144e(0xc7)](!0x0);_0x2c07a9[_0x1c144e(0xd9)](_0x8543cc);}}),_0x2c07a9[_0x191ef1(0xb9)];const _0x5e2231=_0x2c07a9[_0x191ef1(0x122)],_0x44c57a=[];return Array[_0x191ef1(0xb8)](_0x5e2231)[_0x191ef1(0x114)](_0xc3d289=>{const _0x51500b=_0x191ef1,_0x437b30=_0xc3d289[_0x51500b(0xa6)]()[_0x51500b(0xa8)];_0x44c57a[_0x51500b(0xea)](_0x176e64=>Math[_0x51500b(0xc8)](_0x176e64-_0x437b30)<this[_0x51500b(0x104)][_0x51500b(0xac)])||_0x44c57a[_0x51500b(0x126)](_0x437b30);}),{'rowCount':_0x44c57a[_0x191ef1(0xa0)]};}[_0x150268(0xe8)](){const _0x3e6d4f=_0x150268,_0x253d92=document[_0x3e6d4f(0xfa)](_0x3e6d4f(0xfe));return _0x253d92[_0x3e6d4f(0xdc)]=this[_0x3e6d4f(0x104)][_0x3e6d4f(0x101)][_0x3e6d4f(0x130)],this[_0x3e6d4f(0x104)][_0x3e6d4f(0x101)][_0x3e6d4f(0xf3)]&&_0x253d92[_0x3e6d4f(0xc1)][_0x3e6d4f(0x112)](this[_0x3e6d4f(0x104)][_0x3e6d4f(0x101)][_0x3e6d4f(0xf3)]),_0x253d92[_0x3e6d4f(0xb1)]=_0x3e6d4f(0xe5),_0x253d92;}[_0x150268(0x120)](_0xd9b0bd,_0x6cf49b,_0x4efbb3){const _0x1c0837=_0x150268;this[_0x1c0837(0x11f)](_0x6cf49b,_0x4efbb3);const _0x417862=this[_0x1c0837(0xe8)]();_0xd9b0bd[_0x1c0837(0xd9)](_0x417862),_0xd9b0bd[_0x1c0837(0xb9)];const _0xfa00a1=[..._0x6cf49b[_0x1c0837(0x122)],_0x417862],_0x22aaf5=[];_0xfa00a1[_0x1c0837(0x114)](_0x5b6227=>{const _0x9e68f7=_0x1c0837,_0x12cbbf=_0x5b6227[_0x9e68f7(0xa6)]()[_0x9e68f7(0xa8)];_0x22aaf5[_0x9e68f7(0xea)](_0x44c9d3=>Math[_0x9e68f7(0xc8)](_0x44c9d3-_0x12cbbf)<this[_0x9e68f7(0x104)][_0x9e68f7(0xac)])||_0x22aaf5[_0x9e68f7(0x126)](_0x12cbbf);});const _0x3bfe38=_0x22aaf5[_0x1c0837(0xa0)];return _0x417862[_0x1c0837(0xf4)](),_0x3bfe38<=this[_0x1c0837(0x104)][_0x1c0837(0xa1)];}[_0x150268(0xd7)](_0x31d11a,_0x368d68){const _0x5bdad7=_0x150268;this[_0x5bdad7(0xb2)][_0x5bdad7(0xfc)](),this[_0x5bdad7(0xb3)][_0x5bdad7(0xfc)](),_0x31d11a[_0x5bdad7(0x114)](_0x48aeea=>{const _0x24f9f7=_0x5bdad7;_0x368d68[_0x24f9f7(0xa2)](_0x48aeea)?this[_0x24f9f7(0xb3)][_0x24f9f7(0x112)](_0x48aeea):this[_0x24f9f7(0xb2)][_0x24f9f7(0x112)](_0x48aeea);});}[_0x150268(0xb6)](_0x41b694){const _0x4c6d99=_0x150268;if(_0x41b694>0x0&&!this[_0x4c6d99(0xc6)]&&this[_0x4c6d99(0x107)](),_0x41b694>0x0&&this[_0x4c6d99(0xc6)]){const _0x3e87ea=''+this[_0x4c6d99(0x104)][_0x4c6d99(0xb4)]+(_0x41b694<0x63?_0x41b694:'99');this[_0x4c6d99(0xc6)][_0x4c6d99(0xc9)]=_0x3e87ea;}this[_0x4c6d99(0x11b)](),this[_0x4c6d99(0x111)](),this[_0x4c6d99(0xe9)]();}[_0x150268(0xd3)](_0x3d9b2a,_0x2e28c6){const _0x39f868=_0x150268;this[_0x39f868(0xd7)](_0x3d9b2a,_0x2e28c6),this[_0x39f868(0xb6)](_0x2e28c6[_0x39f868(0xa0)]);}[_0x150268(0x125)](){const _0x305d28=_0x150268;this[_0x305d28(0xe3)]&&_0x305d28(0x108)!=typeof IntersectionObserver&&(this[_0x305d28(0xf0)]=new IntersectionObserver(_0x4acc68=>{const _0x5e04ca=_0x305d28;_0x4acc68[0x0][_0x5e04ca(0xca)]&&this[_0x5e04ca(0xdf)]&&requestAnimationFrame(()=>{const _0x5d955e=_0x5e04ca;this[_0x5d955e(0xc0)]();});},{'threshold':0.01,'rootMargin':_0x305d28(0x132)}),this[_0x305d28(0xf0)][_0x305d28(0xe2)](this[_0x305d28(0xe3)]));}[_0x150268(0xaf)](){const _0x5c15e3=_0x150268;if(!this[_0x5c15e3(0xe3)])return!0x1;if(!this[_0x5c15e3(0xe3)][_0x5c15e3(0xa3)])return!0x1;const _0x304c11=this[_0x5c15e3(0xe3)][_0x5c15e3(0xa6)]();if(0x0===_0x304c11[_0x5c15e3(0x110)]||0x0===_0x304c11[_0x5c15e3(0xc3)])return!0x1;const _0x4e748f=window[_0x5c15e3(0x109)]||document[_0x5c15e3(0xb0)][_0x5c15e3(0x10d)],_0x306c44=window[_0x5c15e3(0xf5)]||document[_0x5c15e3(0xb0)][_0x5c15e3(0x10b)],_0x324312=0xc8;return _0x304c11[_0x5c15e3(0xba)]>=-0xc8&&_0x304c11[_0x5c15e3(0xa8)]<=_0x4e748f+_0x324312&&_0x304c11[_0x5c15e3(0x128)]>=-0xc8&&_0x304c11[_0x5c15e3(0x118)]<=_0x306c44+_0x324312;}}
|
|
23
|
+
const _0xa66336=_0x1b83;(function(_0x901e23,_0x29df2d){const _0x201b19=_0x1b83,_0xaaa950=_0x901e23();while(!![]){try{const _0xe9af67=parseInt(_0x201b19(0x14f))/0x1+-parseInt(_0x201b19(0x13d))/0x2*(parseInt(_0x201b19(0x115))/0x3)+parseInt(_0x201b19(0x16e))/0x4+parseInt(_0x201b19(0x154))/0x5*(-parseInt(_0x201b19(0x122))/0x6)+parseInt(_0x201b19(0x114))/0x7*(-parseInt(_0x201b19(0x11a))/0x8)+parseInt(_0x201b19(0x104))/0x9*(parseInt(_0x201b19(0x12d))/0xa)+parseInt(_0x201b19(0xf8))/0xb*(-parseInt(_0x201b19(0x160))/0xc);if(_0xe9af67===_0x29df2d)break;else _0xaaa950['push'](_0xaaa950['shift']());}catch(_0x5e94a6){_0xaaa950['push'](_0xaaa950['shift']());}}}(_0x5f30,0xe4869));import{View as _0xa7c5c,BalloonPanelView as _0x4b0f99,ButtonView as _0x164cae,clickOutsideHandler as _0x1a40ad}from'ckeditor5/src/ui.js';import{Collection as _0x53970b}from'ckeditor5/src/utils.js';function _0x5f30(){const _0x189d10=['set','5QhnBYt','appendChild','_bodyCollection','querySelector','isConnected','_updateBalloonContent','visible','absolute','forEach','_locale','_checkAndHandleOverflow','maxVisibleRows','12TcKofB','pop','classList','visible\x20!important','disconnect','createElement','showMoreButtonView','visibility','setContainerElement','showMoreBalloon','block\x20!important','width','0px','pointerEvents','5299072zLIWNV','top','+\x201','toLowerCase','_renderChipsAndCountRows','rowDetectionTolerance','_showMoreBalloonPanelView','_createCalculationContainer','controlsButton','-9999px','_pendingCalculation','add','_ancestorsToRestore','_makeAncestorsVisible','300px','cloneNode','bottom','opacity','_config','from','_createShowMoreButtonView','cssClasses','div','execute','getComputedStyle','border-box','isOn','tagName','_distributeChips','element','_isContainerVisible','remove','3584141PbrAvd','right','children','label','_handleShowMoreButtonClick','_repinBalloonPanel','_calculateOverflowInContainer','_calculateContainerWidth','showMoreLabelPrefix','showBalloonPanel','extendTemplate','_applyCalculationStyles','270BQAUFl','_testButtonFit','reorganizeChips','hidden','overflowChips','pin','show','_targetContainer','parentElement','showMoreButton','zIndex','length','button','_setupVisibilityObserver','_containerElement','offsetWidth','14ovNrZJ','401061KBnDRx','block','clientWidth','destroy','_parentView','3502928gAiXLI','_applyOverflowResults','none','overflowContainer','auto','abs','observe','_overflowChips','5472066XJPxoQ','setTemplate','filter','_findTargetContainer','boxSizing','50px','hide','calculationContainer','push','_restoreAncestorVisibility','content','217850LxpKlN','_updateShowMoreButtonVisibility','getBoundingClientRect','isIntersecting','_createShowMoreButton','textContent','innerHTML','isVisible','left','className','ck-calculation-container','display','_visibleChips','height','_createMockButton','body','4wOEblL','clientHeight','style','position','clear','innerWidth','documentElement','slice','includes','hideBalloonPanel','_createShowMoreBalloonPanelView','_showMoreButtonView','innerHeight','_updateOverflowUI','some','.ck-ai-chat','undefined','render','1338671dvGFdq','_intersectionObserver','_createContainerElements','disableAnimationOnEnter'];_0x5f30=function(){return _0x189d10;};return _0x5f30();}function _0x1b83(_0x58d242,_0x30921b){const _0x5f300b=_0x5f30();return _0x1b83=function(_0x1b83d9,_0x3b8893){_0x1b83d9=_0x1b83d9-0xf6;let _0x1c1b68=_0x5f300b[_0x1b83d9];return _0x1c1b68;},_0x1b83(_0x58d242,_0x30921b);}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0xa66336(0x17c);export class AIChatChipsOverflowManager{[_0xa66336(0x15d)];[_0xa66336(0x180)];[_0xa66336(0x139)];[_0xa66336(0x121)];[_0xa66336(0x148)]=null;[_0xa66336(0x174)]=null;[_0xa66336(0x112)]=null;[_0xa66336(0x156)];[_0xa66336(0x119)]=null;[_0xa66336(0x150)]=null;[_0xa66336(0x178)]=!0x1;constructor(_0x3f28c8,_0x10775e,_0x44638f,_0x80087c,_0xd15ed){const _0x37d09e=_0xa66336;this[_0x37d09e(0x15d)]=_0x3f28c8,this[_0x37d09e(0x139)]=_0x10775e,this[_0x37d09e(0x180)]={...hn,..._0x44638f,'cssClasses':{'controlsButton':'','calculationContainer':_0x37d09e(0x137),..._0x44638f[_0x37d09e(0x183)]}},this[_0x37d09e(0x121)]=new _0x53970b(),this[_0x37d09e(0x156)]=_0x80087c,this[_0x37d09e(0x119)]=_0xd15ed||null;}[_0xa66336(0x168)](_0x22cf5c){const _0x1b52e0=_0xa66336;this[_0x1b52e0(0x150)]&&(this[_0x1b52e0(0x150)][_0x1b52e0(0x164)](),this[_0x1b52e0(0x150)]=null),this[_0x1b52e0(0x112)]=_0x22cf5c,this[_0x1b52e0(0x111)]();}get[_0xa66336(0x166)](){const _0x23482d=_0xa66336;return this[_0x23482d(0x148)];}get[_0xa66336(0x108)](){const _0x1d562e=_0xa66336;return this[_0x1d562e(0x121)];}[_0xa66336(0x106)](){requestAnimationFrame(()=>{const _0x80d3d=_0x1b83;this[_0x80d3d(0x15e)]();});}[_0xa66336(0x101)](){const _0x125fd3=_0xa66336;this[_0x125fd3(0x148)]&&this[_0x125fd3(0x174)]&&(this[_0x125fd3(0x159)](),this[_0x125fd3(0x148)][_0x125fd3(0x188)]=!0x0,this[_0x125fd3(0x174)][_0x125fd3(0x10a)](),this[_0x125fd3(0x174)][_0x125fd3(0x109)]({'target':this[_0x125fd3(0x148)][_0x125fd3(0x18b)],'limiter':document[_0x125fd3(0x157)](_0x125fd3(0x14c))}));}[_0xa66336(0x146)](){const _0x2989fc=_0xa66336;this[_0x2989fc(0x148)]&&this[_0x2989fc(0x174)]&&(this[_0x2989fc(0x148)][_0x2989fc(0x188)]=!0x1,this[_0x2989fc(0x174)][_0x2989fc(0x128)]());}[_0xa66336(0x141)](){const _0x13969d=_0xa66336;this[_0x13969d(0x121)][_0x13969d(0x141)](),this[_0x13969d(0x146)](),this[_0x13969d(0x12e)](),this[_0x13969d(0x148)]&&(this[_0x13969d(0x148)][_0x13969d(0xfb)]=''),this[_0x13969d(0x174)]&&this[_0x13969d(0x174)][_0x13969d(0x12c)][_0x13969d(0x141)]();}[_0xa66336(0x118)](){const _0x19863f=_0xa66336;this[_0x19863f(0x150)]&&(this[_0x19863f(0x150)][_0x19863f(0x164)](),this[_0x19863f(0x150)]=null),this[_0x19863f(0x148)]&&(this[_0x19863f(0x148)][_0x19863f(0x118)](),this[_0x19863f(0x148)]=null),this[_0x19863f(0x174)]&&(this[_0x19863f(0x174)][_0x19863f(0x118)](),this[_0x19863f(0x174)]=null);}[_0xa66336(0x15e)](){const _0x5beb0a=_0xa66336;if(!this[_0x5beb0a(0x112)])return;if(!this[_0x5beb0a(0xf6)]())return void(this[_0x5beb0a(0x178)]=!0x0);this[_0x5beb0a(0x178)]=!0x1;const _0x38fa47=[...this[_0x5beb0a(0x139)],...this[_0x5beb0a(0x121)]],_0x4d9b23=this[_0x5beb0a(0x175)](),_0x178a5a=this[_0x5beb0a(0xfe)](_0x4d9b23,_0x38fa47),_0xe17ed6=_0x4d9b23[_0x5beb0a(0x17a)];_0xe17ed6&&this[_0x5beb0a(0x12b)](_0xe17ed6),_0x4d9b23[_0x5beb0a(0xf7)](),this[_0x5beb0a(0x11b)](_0x38fa47,_0x178a5a);}[_0xa66336(0x131)](){const _0xb05b3c=_0xa66336;this[_0xb05b3c(0x148)]=this[_0xb05b3c(0x182)](),this[_0xb05b3c(0x174)]=this[_0xb05b3c(0x147)](),this[_0xb05b3c(0x148)][_0xb05b3c(0x14e)](),this[_0xb05b3c(0x112)][_0xb05b3c(0x155)](this[_0xb05b3c(0x148)][_0xb05b3c(0x18b)]),this[_0xb05b3c(0x148)]['on'](_0xb05b3c(0x185),()=>{const _0x49bb00=_0xb05b3c;this[_0x49bb00(0xfc)]();}),_0x1a40ad({'emitter':this[_0xb05b3c(0x174)],'contextElements':[this[_0xb05b3c(0x174)][_0xb05b3c(0x18b)],this[_0xb05b3c(0x148)][_0xb05b3c(0x18b)]],'callback':()=>this[_0xb05b3c(0x146)](),'activator':()=>this[_0xb05b3c(0x148)][_0xb05b3c(0x188)]});}[_0xa66336(0x182)](){const _0x25835c=_0xa66336,_0x26f92e=new _0x164cae(this[_0x25835c(0x15d)]);_0x26f92e[_0x25835c(0x153)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x3f1785=[this[_0x25835c(0x180)][_0x25835c(0x183)][_0x25835c(0x10d)]];return this[_0x25835c(0x180)][_0x25835c(0x183)][_0x25835c(0x176)]&&_0x3f1785[_0x25835c(0x12a)](this[_0x25835c(0x180)][_0x25835c(0x183)][_0x25835c(0x176)]),_0x26f92e[_0x25835c(0x102)]({'attributes':{'class':_0x3f1785}}),_0x26f92e;}[_0xa66336(0x147)](){const _0x4ee7ff=_0xa66336,_0x1637f9=new _0x4b0f99(this[_0x4ee7ff(0x15d)]);return _0x1637f9[_0x4ee7ff(0x102)]({'attributes':{'class':this[_0x4ee7ff(0x180)][_0x4ee7ff(0x183)][_0x4ee7ff(0x169)]}}),this[_0x4ee7ff(0x156)][_0x4ee7ff(0x179)](_0x1637f9),_0x1637f9;}[_0xa66336(0x159)](){const _0x44ae57=_0xa66336;if(this[_0x44ae57(0x174)]&&(this[_0x44ae57(0x174)][_0x44ae57(0x12c)][_0x44ae57(0x141)](),this[_0x44ae57(0x121)][_0x44ae57(0x10f)]>0x0)){this[_0x44ae57(0x121)][_0x44ae57(0x15c)](_0x5636e3=>{const _0x45adb3=_0x44ae57;_0x5636e3[_0x45adb3(0x152)]();});const _0x45e66a=new _0xa7c5c(this[_0x44ae57(0x15d)]);_0x45e66a[_0x44ae57(0x123)]({'tag':_0x44ae57(0x184),'attributes':{'class':this[_0x44ae57(0x180)][_0x44ae57(0x183)][_0x44ae57(0x11d)]},'children':this[_0x44ae57(0x121)]}),this[_0x44ae57(0x174)][_0x44ae57(0x12c)][_0x44ae57(0x179)](_0x45e66a);}}[_0xa66336(0xfc)](){const _0x589cac=_0xa66336;this[_0x589cac(0x148)][_0x589cac(0x188)]?this[_0x589cac(0x146)]():this[_0x589cac(0x101)]();}[_0xa66336(0x12e)](){const _0x429ba8=_0xa66336,_0x184462=this[_0x429ba8(0x121)][_0x429ba8(0x10f)]>0x0;this[_0x429ba8(0x148)]?.[_0x429ba8(0x18b)]&&(this[_0x429ba8(0x148)][_0x429ba8(0x18b)][_0x429ba8(0x13f)][_0x429ba8(0x138)]=_0x184462?'':_0x429ba8(0x11c));}[_0xa66336(0xfd)](){const _0x2eb455=_0xa66336;this[_0x2eb455(0x148)]?.[_0x2eb455(0x188)]&&this[_0x2eb455(0x174)]?.[_0x2eb455(0x134)]&&this[_0x2eb455(0x148)][_0x2eb455(0x18b)]&&this[_0x2eb455(0x174)][_0x2eb455(0x109)]({'target':this[_0x2eb455(0x148)][_0x2eb455(0x18b)],'limiter':document[_0x2eb455(0x157)](_0x2eb455(0x14c))});}[_0xa66336(0x125)](_0x3676b5){const _0x398831=_0xa66336,_0x499d69=this[_0x398831(0x112)]?.[_0x398831(0x189)][_0x398831(0x171)]()||_0x398831(0x184),_0x5e27ee=this[_0x398831(0x112)]?.[_0x398831(0x162)];if(_0x5e27ee){const _0x4e755d=_0x5e27ee[0x0]||'',_0x27186a=_0x3676b5[_0x398831(0x157)]('.'+_0x4e755d),_0x16f76f=_0x3676b5[_0x398831(0x157)](_0x499d69);return _0x27186a||_0x16f76f||_0x3676b5;}return _0x3676b5[_0x398831(0x157)](_0x499d69)||_0x3676b5;}[_0xa66336(0xff)](){const _0x3f06b9=_0xa66336,_0x157fc1=this[_0x3f06b9(0x119)]?.[_0x3f06b9(0x18b)]||this[_0x3f06b9(0x112)];if(!_0x157fc1)return an;const _0x31e030=window[_0x3f06b9(0x186)](_0x157fc1)[_0x3f06b9(0x16b)];if(_0x3f06b9(0x11e)===_0x31e030||_0x3f06b9(0x16c)===_0x31e030||!_0x31e030){const _0x389822=_0x157fc1[_0x3f06b9(0x10c)];if(_0x389822){const _0x3e10ad=window[_0x3f06b9(0x186)](_0x389822);return _0x3f06b9(0x11e)!==_0x3e10ad[_0x3f06b9(0x16b)]?_0x3e10ad[_0x3f06b9(0x16b)]:an;}return an;}return _0x31e030;}[_0xa66336(0x103)](_0x52dfb3,_0x3d8cc8){const _0x2b3c4c=_0xa66336;this[_0x2b3c4c(0x180)][_0x2b3c4c(0x183)][_0x2b3c4c(0x129)]&&_0x52dfb3[_0x2b3c4c(0x162)][_0x2b3c4c(0x179)](this[_0x2b3c4c(0x180)][_0x2b3c4c(0x183)][_0x2b3c4c(0x129)]),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x16b)]=_0x3d8cc8,_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x140)]=_0x2b3c4c(0x15b),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x16f)]=_0x2b3c4c(0x177),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x135)]=_0x2b3c4c(0x177),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x17f)]='0',_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x16d)]=_0x2b3c4c(0x11c),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x10e)]='-1',_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x167)]=_0x2b3c4c(0x163),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x138)]=_0x2b3c4c(0x16a),_0x52dfb3[_0x2b3c4c(0x13f)][_0x2b3c4c(0x126)]=_0x2b3c4c(0x187);}[_0xa66336(0x12b)](_0x4d4320){const _0x342917=_0xa66336;_0x4d4320[_0x342917(0x15c)](({element:_0x4e4ba6,originalDisplay:_0x5c5199,originalVisibility:_0x3feaab})=>{const _0x514edb=_0x342917;_0x4e4ba6[_0x514edb(0x13f)][_0x514edb(0x138)]=_0x5c5199,_0x4e4ba6[_0x514edb(0x13f)][_0x514edb(0x167)]=_0x3feaab;});}[_0xa66336(0x17b)](_0x196e25){const _0x341508=_0xa66336,_0x1f155b=[];let _0x11a07=_0x196e25;for(;_0x11a07&&_0x11a07!==document[_0x341508(0x13c)];){const _0x4d0425=window[_0x341508(0x186)](_0x11a07);_0x341508(0x11c)!==_0x4d0425[_0x341508(0x138)]&&_0x341508(0x107)!==_0x4d0425[_0x341508(0x167)]||(_0x1f155b[_0x341508(0x12a)]({'element':_0x11a07,'originalDisplay':_0x11a07[_0x341508(0x13f)][_0x341508(0x138)],'originalVisibility':_0x11a07[_0x341508(0x13f)][_0x341508(0x167)]}),_0x11a07[_0x341508(0x13f)][_0x341508(0x138)]=_0x341508(0x116),_0x11a07[_0x341508(0x13f)][_0x341508(0x167)]=_0x341508(0x15a)),_0x11a07=_0x11a07[_0x341508(0x10c)];}return _0x1f155b;}[_0xa66336(0x151)](){const _0x5d0e11=_0xa66336;let _0x797ff8,_0x521fa5;return this[_0x5d0e11(0x119)]?.[_0x5d0e11(0x18b)]?(_0x797ff8=this[_0x5d0e11(0x119)][_0x5d0e11(0x18b)][_0x5d0e11(0x17d)](!0x0),_0x521fa5=this[_0x5d0e11(0x125)](_0x797ff8)):(_0x797ff8=document[_0x5d0e11(0x165)](_0x5d0e11(0x184)),_0x521fa5=_0x797ff8),{'calculationContainer':_0x797ff8,'targetContainer':_0x521fa5};}[_0xa66336(0x175)](){const _0x16739f=_0xa66336,{calculationContainer:_0x68d150,targetContainer:_0x171182}=this[_0x16739f(0x151)](),_0x28b232=this[_0x16739f(0xff)]();this[_0x16739f(0x103)](_0x68d150,_0x28b232);const _0x371a32=this[_0x16739f(0x119)]?.[_0x16739f(0x18b)]||this[_0x16739f(0x112)],_0x5a606f=_0x371a32?.[_0x16739f(0x10c)];_0x5a606f?_0x5a606f[_0x16739f(0x155)](_0x68d150):document[_0x16739f(0x13c)][_0x16739f(0x155)](_0x68d150),_0x68d150[_0x16739f(0x10b)]=_0x171182;const _0x12a4be=this[_0x16739f(0x17b)](_0x5a606f||null);return _0x68d150[_0x16739f(0x113)],_0x68d150[_0x16739f(0x17a)]=_0x12a4be,_0x68d150;}[_0xa66336(0xfe)](_0x1806f3,_0x5c720a){const _0x5e3ba3=_0xa66336,_0x6959f2=_0x1806f3[_0x5e3ba3(0x10b)]||_0x1806f3,_0x2316cc=[],{rowCount:_0x298378}=this[_0x5e3ba3(0x172)](_0x6959f2,_0x5c720a);if(_0x298378<=this[_0x5e3ba3(0x180)][_0x5e3ba3(0x15f)])return _0x2316cc;const _0x2d2290=_0x5c720a[_0x5e3ba3(0x144)]();for(;_0x2d2290[_0x5e3ba3(0x10f)]>0x0;){if(this[_0x5e3ba3(0x105)](_0x1806f3,_0x6959f2,_0x2d2290)){const _0x4f611d=_0x5c720a[_0x5e3ba3(0x124)](_0x2dd087=>!_0x2d2290[_0x5e3ba3(0x145)](_0x2dd087));_0x2316cc[_0x5e3ba3(0x12a)](..._0x4f611d);break;}if(!_0x2d2290[_0x5e3ba3(0x161)]())break;}return _0x2316cc;}[_0xa66336(0x172)](_0x25e06b,_0x35639e){const _0x1c39e1=_0xa66336;_0x25e06b[_0x1c39e1(0x133)]='',_0x35639e[_0x1c39e1(0x15c)](_0x3502c6=>{const _0xdd4f=_0x1c39e1;if(_0x3502c6[_0xdd4f(0x18b)]){const _0x1b7429=_0x3502c6[_0xdd4f(0x18b)][_0xdd4f(0x17d)](!0x0);_0x25e06b[_0xdd4f(0x155)](_0x1b7429);}}),_0x25e06b[_0x1c39e1(0x113)];const _0x530e3e=_0x25e06b[_0x1c39e1(0xfa)],_0x8d4b29=[];return Array[_0x1c39e1(0x181)](_0x530e3e)[_0x1c39e1(0x15c)](_0x58dc7a=>{const _0x2247fd=_0x1c39e1,_0xd764a=_0x58dc7a[_0x2247fd(0x12f)]()[_0x2247fd(0x16f)];_0x8d4b29[_0x2247fd(0x14b)](_0x5cd229=>Math[_0x2247fd(0x11f)](_0x5cd229-_0xd764a)<this[_0x2247fd(0x180)][_0x2247fd(0x173)])||_0x8d4b29[_0x2247fd(0x12a)](_0xd764a);}),{'rowCount':_0x8d4b29[_0x1c39e1(0x10f)]};}[_0xa66336(0x13b)](){const _0x56d97a=_0xa66336,_0x58171c=document[_0x56d97a(0x165)](_0x56d97a(0x110));return _0x58171c[_0x56d97a(0x136)]=this[_0x56d97a(0x180)][_0x56d97a(0x183)][_0x56d97a(0x10d)],this[_0x56d97a(0x180)][_0x56d97a(0x183)][_0x56d97a(0x176)]&&_0x58171c[_0x56d97a(0x162)][_0x56d97a(0x179)](this[_0x56d97a(0x180)][_0x56d97a(0x183)][_0x56d97a(0x176)]),_0x58171c[_0x56d97a(0x132)]=_0x56d97a(0x170),_0x58171c;}[_0xa66336(0x105)](_0x1726b4,_0x383ca0,_0x3acc60){const _0x3fbed1=_0xa66336;this[_0x3fbed1(0x172)](_0x383ca0,_0x3acc60);const _0x4faff7=this[_0x3fbed1(0x13b)]();_0x1726b4[_0x3fbed1(0x155)](_0x4faff7),_0x1726b4[_0x3fbed1(0x113)];const _0x3e2b64=[..._0x383ca0[_0x3fbed1(0xfa)],_0x4faff7],_0x1e5cb7=[];_0x3e2b64[_0x3fbed1(0x15c)](_0x373f55=>{const _0x39b23e=_0x3fbed1,_0x1d5d48=_0x373f55[_0x39b23e(0x12f)]()[_0x39b23e(0x16f)];_0x1e5cb7[_0x39b23e(0x14b)](_0x454b3f=>Math[_0x39b23e(0x11f)](_0x454b3f-_0x1d5d48)<this[_0x39b23e(0x180)][_0x39b23e(0x173)])||_0x1e5cb7[_0x39b23e(0x12a)](_0x1d5d48);});const _0x5be8df=_0x1e5cb7[_0x3fbed1(0x10f)];return _0x4faff7[_0x3fbed1(0xf7)](),_0x5be8df<=this[_0x3fbed1(0x180)][_0x3fbed1(0x15f)];}[_0xa66336(0x18a)](_0x5ada4f,_0x4b4b28){const _0x5ea79d=_0xa66336;this[_0x5ea79d(0x139)][_0x5ea79d(0x141)](),this[_0x5ea79d(0x121)][_0x5ea79d(0x141)](),_0x5ada4f[_0x5ea79d(0x15c)](_0xd67019=>{const _0x101aa6=_0x5ea79d;_0x4b4b28[_0x101aa6(0x145)](_0xd67019)?this[_0x101aa6(0x121)][_0x101aa6(0x179)](_0xd67019):this[_0x101aa6(0x139)][_0x101aa6(0x179)](_0xd67019);});}[_0xa66336(0x14a)](_0x1ced6d){const _0x4e785b=_0xa66336;if(_0x1ced6d>0x0&&!this[_0x4e785b(0x148)]&&this[_0x4e785b(0x131)](),_0x1ced6d>0x0&&this[_0x4e785b(0x148)]){const _0x421b20=''+this[_0x4e785b(0x180)][_0x4e785b(0x100)]+(_0x1ced6d<0x63?_0x1ced6d:'99');this[_0x4e785b(0x148)][_0x4e785b(0xfb)]=_0x421b20;}this[_0x4e785b(0x159)](),this[_0x4e785b(0x12e)](),this[_0x4e785b(0xfd)]();}[_0xa66336(0x11b)](_0x1b5a87,_0x3ec378){const _0x1f1e27=_0xa66336;this[_0x1f1e27(0x18a)](_0x1b5a87,_0x3ec378),this[_0x1f1e27(0x14a)](_0x3ec378[_0x1f1e27(0x10f)]);}[_0xa66336(0x111)](){const _0x26f21d=_0xa66336;this[_0x26f21d(0x112)]&&_0x26f21d(0x14d)!=typeof IntersectionObserver&&(this[_0x26f21d(0x150)]=new IntersectionObserver(_0x1ecabc=>{const _0xeed07e=_0x26f21d;_0x1ecabc[0x0][_0xeed07e(0x130)]&&this[_0xeed07e(0x178)]&&requestAnimationFrame(()=>{const _0x28301a=_0xeed07e;this[_0x28301a(0x15e)]();});},{'threshold':0.01,'rootMargin':_0x26f21d(0x127)}),this[_0x26f21d(0x150)][_0x26f21d(0x120)](this[_0x26f21d(0x112)]));}[_0xa66336(0xf6)](){const _0x335753=_0xa66336;if(!this[_0x335753(0x112)])return!0x1;if(!this[_0x335753(0x112)][_0x335753(0x158)])return!0x1;const _0x48c299=this[_0x335753(0x112)][_0x335753(0x12f)]();if(0x0===_0x48c299[_0x335753(0x16b)]||0x0===_0x48c299[_0x335753(0x13a)])return!0x1;const _0x270960=window[_0x335753(0x149)]||document[_0x335753(0x143)][_0x335753(0x13e)],_0x5ae70c=window[_0x335753(0x142)]||document[_0x335753(0x143)][_0x335753(0x117)],_0x1f325d=0xc8;return _0x48c299[_0x335753(0x17e)]>=-0xc8&&_0x48c299[_0x335753(0x16f)]<=_0x270960+_0x1f325d&&_0x48c299[_0x335753(0xf9)]>=-0xc8&&_0x48c299[_0x335753(0x135)]<=_0x5ae70c+_0x1f325d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x555038=_0x15ef;(function(_0x553bb9,_0x3308ad){const _0x4ba93c=_0x15ef,_0x437cf7=_0x553bb9();while(!![]){try{const _0x7992bf=-parseInt(_0x4ba93c(0x1c3))/0x1+parseInt(_0x4ba93c(0x1b3))/0x2+-parseInt(_0x4ba93c(0x1c0))/0x3*(-parseInt(_0x4ba93c(0x1b6))/0x4)+-parseInt(_0x4ba93c(0x1b9))/0x5*(-parseInt(_0x4ba93c(0x1a6))/0x6)+parseInt(_0x4ba93c(0x1d6))/0x7*(parseInt(_0x4ba93c(0x1aa))/0x8)+-parseInt(_0x4ba93c(0x1da))/0x9*(-parseInt(_0x4ba93c(0x1c8))/0xa)+parseInt(_0x4ba93c(0x1b4))/0xb*(-parseInt(_0x4ba93c(0x1d4))/0xc);if(_0x7992bf===_0x3308ad)break;else _0x437cf7['push'](_0x437cf7['shift']());}catch(_0x1a09dd){_0x437cf7['push'](_0x437cf7['shift']());}}}(_0x3ebd,0x1d696));import{ButtonView as _0x4c844e,IconView as _0x101fc3}from'ckeditor5/src/ui.js';function _0x15ef(_0x3f6c13,_0x246afd){const _0x3ebdc5=_0x3ebd();return _0x15ef=function(_0x15ef21,_0x5b7392){_0x15ef21=_0x15ef21-0x198;let _0x279c61=_0x3ebdc5[_0x15ef21];return _0x279c61;},_0x15ef(_0x3f6c13,_0x246afd);}function _0x3ebd(){const _0x449416=['653000lgqwMg','_initializeProperties','isVisible','lastIndexOf','removeEventListener','setTemplate','fire','small','isLoading','328164YSRjUS','1441Stjigk','execute','4HQSpQG','label','_handleAnimationEndOnce','5dvGcRY','element','ck-ai-chat-context-chip_new-chip','locale','ck-ai-chat-context-chip__type-icon','tooltip','add','81318ceEJfx','_createRemoveButton','itemType','143315nTqdHK','selection','_setupRemoveButtonEvent','slice','_createLoaderIcon','470pEbsKR','ck-ai-chat-context-chip__label','ck-ai-chat-context-controls__chip-tooltip','bind','classList','uiId','ck-ai-chat-context-chip_wide','render','webkitAnimationEnd','readonly','bindTemplate','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','30396HUIhxT','ck-ai-chat-context-chip','7TZmhLw','type','_isAnimationOnEnterEnabled','_createIconView','21591mQFzyn','document','ck-ai-chat-context-chip_document','removeContextItemChip','content','addEventListener','length','animationend','_createTemplateChildren','_createLabelElement','span','remove','disableAnimationOnEnter','div','ck-hidden','extendTemplate','1260252YHgSQO','set','_setupTemplate','_createTemplateAttributes'];_0x3ebd=function(){return _0x449416;};return _0x3ebd();}import{IconClose as _0x35776a,IconDocument as _0x21681a,IconFileUpload as _0x25d78d,IconLink as _0x20ca3b,IconSelection as _0x43fa46}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x34d30f}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x3dff25}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x25d78d,'document':_0x21681a,'web-resource':_0x20ca3b,'text':_0x25d78d,'selection':_0x43fa46},bn=_0x555038(0x1d5),wn=_0x555038(0x1ce),Tn=_0x555038(0x198),En=_0x555038(0x1c9),fn=_0x555038(0x1bd),An=_0x555038(0x1ca),Cn='n';export class AIChatContextItemButtonView extends _0x4c844e{constructor(_0x3b0e26,_0x12814f,_0x4ba47e,_0x4fc3f9,_0x659b0b=!0x1){const _0xb99868=_0x555038;super(_0x3b0e26),this[_0xb99868(0x1d8)]=_0x4fc3f9,this[_0xb99868(0x1ab)](_0x12814f,_0x4ba47e,_0x659b0b),this[_0xb99868(0x1a8)]();}[_0x555038(0x1cf)](){const _0x28b2f0=_0x555038;super[_0x28b2f0(0x1cf)](),this[_0x28b2f0(0x1d8)]&&this[_0x28b2f0(0x1ba)]&&(this[_0x28b2f0(0x1ba)][_0x28b2f0(0x1cc)][_0x28b2f0(0x1bf)](_0x28b2f0(0x1bb)),this[_0x28b2f0(0x1b8)](this[_0x28b2f0(0x1ba)],()=>{const _0x4303ca=_0x28b2f0;this[_0x4303ca(0x1ba)]&&this[_0x4303ca(0x1ba)][_0x4303ca(0x1cc)][_0x4303ca(0x1a1)](_0x4303ca(0x1bb));}));}[_0x555038(0x1a2)](){const _0x254284=_0x555038;this[_0x254284(0x1d8)]=!0x1,this[_0x254284(0x1ba)]&&this[_0x254284(0x1ba)][_0x254284(0x1cc)][_0x254284(0x1a1)](_0x254284(0x1bb));}[_0x555038(0x1ab)](_0x113daa,_0x5e4825,_0x30c950){const _0x5b2321=_0x555038;this[_0x5b2321(0x1a7)](_0x5b2321(0x1b7),_0x113daa[_0x5b2321(0x1b7)]),this[_0x5b2321(0x1a7)](_0x5b2321(0x1be),!0x0),this[_0x5b2321(0x1a7)](_0x5b2321(0x1c2),_0x113daa[_0x5b2321(0x1d7)]),this[_0x5b2321(0x1a7)]('id',_0x113daa[_0x5b2321(0x1cd)]),this[_0x5b2321(0x1a7)](_0x5b2321(0x1d1),_0x5e4825),this[_0x5b2321(0x1a7)](_0x5b2321(0x1b2),_0x30c950);}[_0x555038(0x1a8)](){const _0x5a4b9a=_0x555038,_0x1dd372=this[_0x5a4b9a(0x1d9)](),_0x28c508=this[_0x5a4b9a(0x1c1)](),_0x531540=this[_0x5a4b9a(0x1d2)];this[_0x5a4b9a(0x1af)]({'tag':_0x5a4b9a(0x1a3),'attributes':this[_0x5a4b9a(0x1a9)](_0x531540),'children':this[_0x5a4b9a(0x19e)](_0x1dd372,_0x28c508,_0x531540)});}[_0x555038(0x1a9)](_0x501baa){const _0x26eeca=_0x555038;return{'class':[bn,_0x501baa['if'](_0x26eeca(0x1c2),Tn,_0x3a88fe=>_0x26eeca(0x1db)==_0x3a88fe),_0x501baa['if'](_0x26eeca(0x1c2),wn,_0x1cbf0f=>_0x26eeca(0x1c4)==_0x1cbf0f)],'data-cke-tooltip-text':_0x501baa['to'](_0x26eeca(0x1b7),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x555038(0x19e)](_0x31cef9,_0x47a323,_0x3201cf){const _0x5eff0c=_0x555038,_0x4286d8=this[_0x5eff0c(0x19f)](_0x3201cf),_0x13b27d=this[_0x5eff0c(0x1c7)]();return this[_0x5eff0c(0x1d1)]?[_0x31cef9,_0x4286d8]:[_0x31cef9,_0x13b27d,_0x4286d8,_0x47a323];}[_0x555038(0x19f)](_0x3195b9){const _0x2da849=_0x555038;return{'tag':_0x2da849(0x1a0),'attributes':{'class':En},'children':[{'text':_0x3195b9['to'](_0x2da849(0x1b7))}]};}[_0x555038(0x1c1)](){const _0x363e2e=_0x555038,_0x47f855=new _0x4c844e(this[_0x363e2e(0x1bc)]);return _0x47f855[_0x363e2e(0x1a7)]({'label':_0x34d30f(this[_0x363e2e(0x1bc)],_0x363e2e(0x1d3)),'icon':_0x35776a}),this[_0x363e2e(0x1c5)](_0x47f855),_0x47f855;}[_0x555038(0x1c5)](_0x5f2ff6){const _0x29bc23=_0x555038;_0x5f2ff6['on'](_0x29bc23(0x1b5),()=>{const _0x154890=_0x29bc23;this[_0x154890(0x1b0)](_0x154890(0x199),this['id']);});}[_0x555038(0x1d9)](){const _0x55d35e=_0x555038,_0x323a0a=this[_0x55d35e(0x1d2)],_0x31c5cd=new _0x101fc3();return _0x31c5cd[_0x55d35e(0x19a)]=xn[this[_0x55d35e(0x1c2)]],_0x31c5cd[_0x55d35e(0x1a5)]({'attributes':{'class':[fn,_0x323a0a['if'](_0x55d35e(0x1b2),_0x55d35e(0x1a4),_0x5ce6b7=>_0x5ce6b7)]}}),_0x31c5cd;}[_0x555038(0x1b8)](_0x54499d,_0x24cbce){const _0x2f9a06=_0x555038;if(!_0x54499d)return;const _0x420463=()=>{const _0xd9ec0e=_0x15ef;_0x24cbce(),_0x54499d[_0xd9ec0e(0x1ae)](_0xd9ec0e(0x19d),_0x420463),_0x54499d[_0xd9ec0e(0x1ae)](_0xd9ec0e(0x1d0),_0x420463);};_0x54499d[_0x2f9a06(0x19b)](_0x2f9a06(0x19d),_0x420463),_0x54499d[_0x2f9a06(0x19b)](_0x2f9a06(0x1d0),_0x420463);}[_0x555038(0x1c7)](){const _0x922102=_0x555038,_0x274d90=new _0x3dff25(_0x922102(0x1b1));return _0x274d90[_0x922102(0x1cb)](_0x922102(0x1ac))['to'](this,_0x922102(0x1b2),_0x51208e=>_0x51208e),_0x274d90;}}function In(_0x278f86){const _0x3f0987=_0x555038;if(!_0x278f86)return _0x278f86;if(_0x278f86[_0x3f0987(0x19c)]<=0x78)return _0x278f86;const _0x358bc=_0x278f86[_0x3f0987(0x1c6)](0x0,0x78),_0x51fdf1=_0x358bc[_0x3f0987(0x1ad)]('\x20');return(_0x51fdf1>0x0?_0x358bc[_0x3f0987(0x1c6)](0x0,_0x51fdf1):_0x358bc)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f4291=_0x44c9;function _0x44c9(_0x3089d2,_0x4cfe0c){const _0xca3c56=_0xca3c();return _0x44c9=function(_0x44c9dc,_0x2befd2){_0x44c9dc=_0x44c9dc-0x14e;let _0x19e59c=_0xca3c56[_0x44c9dc];return _0x19e59c;},_0x44c9(_0x3089d2,_0x4cfe0c);}(function(_0x44a94a,_0x3de9e0){const _0xfbfd99=_0x44c9,_0x3f400a=_0x44a94a();while(!![]){try{const _0x46af3a=-parseInt(_0xfbfd99(0x175))/0x1*(-parseInt(_0xfbfd99(0x185))/0x2)+parseInt(_0xfbfd99(0x18e))/0x3*(parseInt(_0xfbfd99(0x16f))/0x4)+parseInt(_0xfbfd99(0x181))/0x5+-parseInt(_0xfbfd99(0x167))/0x6+-parseInt(_0xfbfd99(0x196))/0x7+parseInt(_0xfbfd99(0x164))/0x8*(-parseInt(_0xfbfd99(0x18d))/0x9)+parseInt(_0xfbfd99(0x172))/0xa;if(_0x46af3a===_0x3de9e0)break;else _0x3f400a['push'](_0x3f400a['shift']());}catch(_0x1f6549){_0x3f400a['push'](_0x3f400a['shift']());}}}(_0xca3c,0x886fd));import{FocusTracker as _0x19992d,KeystrokeHandler as _0x5463e7}from'ckeditor5/src/utils.js';import{ButtonView as _0x266e96,FocusCycler as _0x34d381,LabeledFieldView as _0x8ffdfc,View as _0x251757,FormHeaderView as _0x4a5c42,createLabeledInputText as _0x2c39f2,submitHandler as _0x419fb0}from'ckeditor5/src/ui.js';import{IconCheck as _0x3b198d,IconPreviousArrow as _0x404aab}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x44b068}from'../../../aicore/utils/common-translations.js';function _0xca3c(){const _0x38e386=['shift+tab','_createUrlInputField','backButton','ck-button-icon\x20ck-button-back','getValue','4584VAdEhV','destroy','fire','4190730DfmCvW','_setupTemplate','urlInputField','div','locale','setError','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-ai-chat-context-controls__url-input-section','18672VRnzVJ','length','forEach','855360jFfTiD','_createConfirmButton','add','9539LSIcWN','input','render','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','set','stop','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','AI_CHAT_CONTEXT_URL_ADD_URL','form','focus','AI_CHAT_CONTEXT_URL_INVALID_ERROR','execute','3041165TtSttK','refreshBalloon','_setupKeystrokes','_updateConfirmButtonState','122dIMySf','AI_CHAT_CONTEXT_URL_LABEL','children','esc','_handleSubmit','focusCycler','tab','clearError','81aSZjYO','186HCRREB','errorText','ck-labeled-field-view_empty','submit','ck-ai-chat-context-controls__url-form','isEnabled','_setupEventHandlers','element','2118249HVZIiD','setTemplate','_createBackButton','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_focusables','trim','_isValidUrl','submitUrl','clear','confirmButton','fieldView','keystrokes','focusTracker','value','createCollection','ck-button-icon','listenTo','cancel'];_0xca3c=function(){return _0x38e386;};return _0xca3c();}const ch=_0x2f4291(0x192),nh=_0x2f4291(0x16e);export class AIChatContextPanelUrlInputView extends _0x251757{[_0x2f4291(0x159)];[_0x2f4291(0x158)];[_0x2f4291(0x151)];[_0x2f4291(0x18a)];[_0x2f4291(0x169)];[_0x2f4291(0x161)];[_0x2f4291(0x156)];constructor(_0x130361){const _0x36c367=_0x2f4291;super(_0x130361),this[_0x36c367(0x159)]=new _0x19992d(),this[_0x36c367(0x158)]=new _0x5463e7(),this[_0x36c367(0x161)]=this[_0x36c367(0x14f)](),this[_0x36c367(0x169)]=this[_0x36c367(0x160)](),this[_0x36c367(0x156)]=this[_0x36c367(0x173)](),this[_0x36c367(0x151)]=this[_0x36c367(0x15b)]([this[_0x36c367(0x161)],this[_0x36c367(0x169)],this[_0x36c367(0x156)]]),this[_0x36c367(0x18a)]=new _0x34d381({'focusables':this[_0x36c367(0x151)],'focusTracker':this[_0x36c367(0x159)],'keystrokeHandler':this[_0x36c367(0x158)],'actions':{'focusPrevious':_0x36c367(0x15f),'focusNext':_0x36c367(0x18b)}}),this[_0x36c367(0x168)](),this[_0x36c367(0x194)](),this[_0x36c367(0x183)]();}[_0x2f4291(0x177)](){const _0x2500e9=_0x2f4291;super[_0x2500e9(0x177)](),this[_0x2500e9(0x151)][_0x2500e9(0x171)](_0x4a90d7=>{const _0x1b587c=_0x2500e9;this[_0x1b587c(0x159)][_0x1b587c(0x174)](_0x4a90d7[_0x1b587c(0x195)]),this[_0x1b587c(0x158)][_0x1b587c(0x15d)](_0x4a90d7[_0x1b587c(0x195)]);}),_0x419fb0({'view':this}),this[_0x2500e9(0x17e)]();}[_0x2f4291(0x165)](){const _0x5b2139=_0x2f4291;super[_0x5b2139(0x165)](),this[_0x5b2139(0x159)][_0x5b2139(0x165)](),this[_0x5b2139(0x158)][_0x5b2139(0x165)]();}[_0x2f4291(0x17e)](){const _0x2818bf=_0x2f4291;this[_0x2818bf(0x169)][_0x2818bf(0x17e)]();}[_0x2f4291(0x163)](){const _0x5d31d6=_0x2f4291;return this[_0x5d31d6(0x169)][_0x5d31d6(0x157)][_0x5d31d6(0x195)]?.[_0x5d31d6(0x15a)]?.[_0x5d31d6(0x152)]()||'';}[_0x2f4291(0x155)](){const _0x172337=_0x2f4291;this[_0x172337(0x169)][_0x172337(0x157)][_0x172337(0x195)][_0x172337(0x15a)]='',this[_0x172337(0x169)][_0x172337(0x18f)]=null,this[_0x172337(0x156)][_0x172337(0x193)]=!0x1;}[_0x2f4291(0x16c)](_0x2978f7){const _0x2053e3=_0x2f4291;this[_0x2053e3(0x169)][_0x2053e3(0x18f)]=_0x2978f7,this[_0x2053e3(0x184)](),this[_0x2053e3(0x166)](_0x2053e3(0x182));}[_0x2f4291(0x18c)](){const _0x491d16=_0x2f4291;this[_0x491d16(0x169)][_0x491d16(0x18f)]=null,this[_0x491d16(0x184)]();}[_0x2f4291(0x14f)](){const _0xf0cd19=_0x2f4291,_0xddd2b9=new _0x266e96(this[_0xf0cd19(0x16b)]);return _0xddd2b9[_0xf0cd19(0x179)]({'icon':_0x404aab,'tooltip':_0x44b068(this[_0xf0cd19(0x16b)],_0xf0cd19(0x16d)),'tooltipPosition':'n','class':_0xf0cd19(0x162)}),_0xddd2b9;}[_0x2f4291(0x160)](){const _0x1d19ca=_0x2f4291,_0x1ef6d7=new _0x8ffdfc(this[_0x1d19ca(0x16b)],_0x2c39f2);return _0x1ef6d7[_0x1d19ca(0x179)]({'label':_0x44b068(this[_0x1d19ca(0x16b)],_0x1d19ca(0x186)),'class':_0x1d19ca(0x190)}),_0x1ef6d7[_0x1d19ca(0x157)][_0x1d19ca(0x179)]({'placeholder':_0x44b068(this[_0x1d19ca(0x16b)],_0x1d19ca(0x150))}),_0x1ef6d7;}[_0x2f4291(0x173)](){const _0x29ec43=_0x2f4291,_0x34e4fc=new _0x266e96(this[_0x29ec43(0x16b)]);return _0x34e4fc[_0x29ec43(0x179)]({'icon':_0x3b198d,'tooltip':_0x44b068(this[_0x29ec43(0x16b)],_0x29ec43(0x17c)),'tooltipPosition':'n','class':_0x29ec43(0x15c),'type':_0x29ec43(0x191),'isEnabled':!0x1}),_0x34e4fc;}[_0x2f4291(0x168)](){const _0x485b9d=_0x2f4291,_0x363114=new _0x4a5c42(this[_0x485b9d(0x16b)],{'label':_0x44b068(this[_0x485b9d(0x16b)],_0x485b9d(0x17c)),'class':_0x485b9d(0x178)});_0x363114[_0x485b9d(0x187)][_0x485b9d(0x174)](this[_0x485b9d(0x161)],0x0),this[_0x485b9d(0x14e)]({'tag':_0x485b9d(0x17d),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x363114,{'tag':_0x485b9d(0x16a),'attributes':{'class':nh},'children':[this[_0x485b9d(0x169)],this[_0x485b9d(0x156)]]}]});}[_0x2f4291(0x194)](){const _0x3e22af=_0x2f4291;this[_0x3e22af(0x161)]['on'](_0x3e22af(0x180),()=>{const _0x54ebcb=_0x3e22af;this[_0x54ebcb(0x155)](),this[_0x54ebcb(0x166)](_0x54ebcb(0x15e));}),this[_0x3e22af(0x169)][_0x3e22af(0x157)]['on'](_0x3e22af(0x176),()=>{const _0x42153a=_0x3e22af;this[_0x42153a(0x18c)](),this[_0x42153a(0x184)](),this[_0x42153a(0x166)](_0x42153a(0x182));}),this['on'](_0x3e22af(0x191),_0x435575=>{const _0x249c95=_0x3e22af;_0x435575[_0x249c95(0x17a)](),this[_0x249c95(0x189)]();});}[_0x2f4291(0x183)](){const _0x3a461d=_0x2f4291;this[_0x3a461d(0x158)][_0x3a461d(0x179)](_0x3a461d(0x188),(_0x564689,_0x2914be)=>{const _0x2f2ef8=_0x3a461d;this[_0x2f2ef8(0x155)](),this[_0x2f2ef8(0x166)](_0x2f2ef8(0x15e)),_0x2914be();});}[_0x2f4291(0x189)](){const _0x346341=_0x2f4291,_0x441f5d=this[_0x346341(0x163)]()[_0x346341(0x152)]();_0x441f5d?this[_0x346341(0x153)](_0x441f5d)?(this[_0x346341(0x18c)](),this[_0x346341(0x166)](_0x346341(0x154),_0x441f5d)):this[_0x346341(0x16c)](_0x44b068(this[_0x346341(0x16b)],_0x346341(0x17f))):this[_0x346341(0x16c)](_0x44b068(this[_0x346341(0x16b)],_0x346341(0x17b)));}[_0x2f4291(0x184)](){const _0x4890fa=_0x2f4291,_0x9ece08=this[_0x4890fa(0x163)]()[_0x4890fa(0x152)](),_0x554c5d=!!this[_0x4890fa(0x169)][_0x4890fa(0x18f)];this[_0x4890fa(0x156)][_0x4890fa(0x193)]=_0x9ece08[_0x4890fa(0x170)]>0x0&&!_0x554c5d;}[_0x2f4291(0x153)](_0x2d1f37){try{return!!new URL(_0x2d1f37);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x330758=_0x52b3;(function(_0x424286,_0x42cf82){const _0x5427aa=_0x52b3,_0x1b2bf3=_0x424286();while(!![]){try{const _0x358ec7=parseInt(_0x5427aa(0xf8))/0x1+-parseInt(_0x5427aa(0xad))/0x2*(parseInt(_0x5427aa(0x11b))/0x3)+-parseInt(_0x5427aa(0x10f))/0x4*(-parseInt(_0x5427aa(0xb1))/0x5)+-parseInt(_0x5427aa(0xcf))/0x6*(parseInt(_0x5427aa(0x10e))/0x7)+-parseInt(_0x5427aa(0xe8))/0x8*(-parseInt(_0x5427aa(0x11e))/0x9)+-parseInt(_0x5427aa(0xfe))/0xa+parseInt(_0x5427aa(0xd0))/0xb;if(_0x358ec7===_0x42cf82)break;else _0x1b2bf3['push'](_0x1b2bf3['shift']());}catch(_0x2e577a){_0x1b2bf3['push'](_0x1b2bf3['shift']());}}}(_0x476e,0xddc57));import{BalloonPanelView as _0x40138b,ButtonView as _0x4f1412,clickOutsideHandler as _0x85bbe,FileDialogButtonView as _0x1f6764,IconView as _0x455a0d,View as _0x370baf}from'ckeditor5/src/ui.js';function _0x52b3(_0xad0def,_0x1c6095){const _0x476e53=_0x476e();return _0x52b3=function(_0x52b31a,_0xab4453){_0x52b31a=_0x52b31a-0xa5;let _0x10bc35=_0x476e53[_0x52b31a];return _0x10bc35;},_0x52b3(_0xad0def,_0x1c6095);}function _0x476e(){const _0xff964e=['document','AI_CHAT_CONTEXT_URL_LABEL','menuitem','ck-ai-chat-context-chips-wrapper-balloon','_urlInputView','type','setContextItemLoading','ck-ai-chat-context-controls__add-context-balloon-panel','focus','arrowView','southArrowNorthEast','addContextItem','_setupTemplate','isLoading','hide','tooltip','add','setTemplate','2iejOWE','ck-ai-chat-context-controls__add-context-button','div','setConversationContext','68555btYRry','_setAddContextButtonEnabled','southArrowNorth','addUrlToContext','done','northArrowSouthWest','showSourceResourcesBalloon','closest','_createArrowView','source','ck-ai-chat-controls_context_show-more-button','locale','ck-ai-chat-context-controls__url-balloon-panel','searchInputVisibleFrom','_bindEventHandlers','conversation','remove','hideAddContextBalloonPanel','showUrlBalloonPanel','northArrowSouthEast','bind','populateSourceResourceBalloon','_toggleAddContextBalloon','ck-ai-chat-context-controls','closeSourceResourceBalloon','render','current','bodyCollection','_createResourcesBalloonView','_addContextToCollection','6677784aAnIMq','32988175cKkKOX','_createAddContextButtonView','_handleAddContextButtonClick','show','execute','destroy','_createContextButton','createCollection','set','isEnabled','isOn','urls','AI_CHAT_CONTEXT_FILE_LABEL','isReadOnly','_getLimiterElement','hideUrlBalloonPanel','children','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','fire','AI_CHAT_CONTEXT_ADD_CONTEXT','_setupAddContextBalloonClickOutsideHandler','_setBalloonPanelContent','extendTemplate','setContainerElement','7619736jzDQgA','ck-reset_all-excluded','ck-ai-chat-context-controls__pending-contexts','_resourcesBalloonView','_createBalloonButton','sources','ck-ai-chat-controls-button','find','_showSourceResourcesBalloon','pin','_overflowManager','_createUrlBalloonPanelView','body','label','_removeContextFromCollection','content','957353NiiwGP','northArrowSouth','ck-ai-chat-context-controls__balloon-button','clearConversationContextItems','clearCurrentContextItems','isHidden','17180650CLqKIs','removeContextItem','balloonView','icon','reorganizeChips','overflowChips','_handleUrlSubmit','buttonView','cancel','_addUrlContent','addDocumentToContext','loadSourceResources','files','isVisible','showAddContextBalloonPanel','ck-ai-chat-context-controls__show-more-balloon-panel','7ogjafM','40gcEOlZ','defaultPositions','setAddContextOptions','enabled','addFileToContext','_urlBalloonPanelView','refreshBalloon','_createBaseBalloonPanel','removeContextItemChip','southArrowNorthWest','element','addContextButtonView','3919353trhtLR','isAnyResourceBalloonVisible','_setupUrlBalloonClickOutsideHandler','9rCAhVP','_addContextBalloonPanelView','__arrow','submitUrl','_addContextBalloonConfig','_createAddContextBalloonPanelView','ck-ai-chat','clear','addResourceToContext','ck-ai-chat-context-controls__balloon-button-source','_currentContextsChips','_setupAllBalloonClickOutsideHandlers','updateResourceState','_conversationContextsChips'];_0x476e=function(){return _0xff964e;};return _0x476e();}import{IconBrowseFiles as _0xfacc5d,IconDocument as _0x114fc7,IconDocumentOutline as _0x670049,IconDropdownArrow as _0x405a20,IconLink as _0x33b2c0,IconPaperClip as _0x288576}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x185cbf}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xa6e7a4}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x59a94e}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1ca2c8}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x32d3b4}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x330758(0x108),_0x330758(0x113),_0x330758(0xb4),_0x330758(0x126),_0x330758(0xff),_0x330758(0x109)];const po=_0x330758(0xc8),Bo=_0x330758(0xea),bo=_0x330758(0x133),To=_0x330758(0xae),Ao=_0x330758(0xbd),ko=_0x330758(0xfa),Eo=_0x330758(0x127),vo=_0x330758(0xee),Vo=_0x330758(0x12f),fo=_0x330758(0xbb),Io=_0x330758(0x10d),Po=_0x330758(0x124),Ro=[_0x40138b[_0x330758(0x110)][_0x330758(0xb6)],_0x40138b[_0x330758(0x110)][_0x330758(0xf9)],_0x40138b[_0x330758(0x110)][_0x330758(0xc4)],_0x40138b[_0x330758(0x110)][_0x330758(0x118)],_0x40138b[_0x330758(0x110)][_0x330758(0xb3)],_0x40138b[_0x330758(0x110)][_0x330758(0xa5)]];export class AIChatContextPanelView extends _0x370baf{[_0x330758(0x11a)];[_0x330758(0x128)]=this[_0x330758(0xd7)]();[_0x330758(0x12b)]=this[_0x330758(0xd7)]();[_0x330758(0xf2)];[_0x330758(0x11f)];[_0x330758(0x114)];[_0x330758(0x130)];[_0x330758(0xeb)];[_0x330758(0x122)];[_0x330758(0xcc)];constructor(_0x372a5c,_0x1655dd){const _0x526454=_0x330758;super(_0x372a5c),this[_0x526454(0xcc)]=_0x1655dd[_0x526454(0xcc)],this[_0x526454(0x128)]=this[_0x526454(0xd7)](),this[_0x526454(0x12b)]=this[_0x526454(0xd7)](),this[_0x526454(0x11a)]=this[_0x526454(0xd1)](_0x372a5c),this[_0x526454(0x11f)]=this[_0x526454(0x123)](_0x372a5c),this[_0x526454(0x114)]=this[_0x526454(0xf3)](_0x372a5c),this[_0x526454(0xeb)]=this[_0x526454(0xcd)](_0x372a5c,_0x1655dd);const _0x225fa5={'cssClasses':{'showMoreButton':fo,'showMoreBalloon':Io,'overflowContainer':Vo,'controlsButton':vo}};this[_0x526454(0xf2)]=new _0x59a94e(_0x372a5c,this[_0x526454(0x128)],_0x225fa5,this[_0x526454(0xcc)],this),this[_0x526454(0x122)]={'buttonView':this[_0x526454(0x11a)],'balloonView':this[_0x526454(0x11f)],'hideMethod':this[_0x526454(0xc2)][_0x526454(0xc5)](this),'showMethod':this[_0x526454(0x10c)][_0x526454(0xc5)](this)},this[_0x526454(0xa7)](),this[_0x526454(0xbf)]();}[_0x330758(0xca)](){const _0x36e52a=_0x330758;super[_0x36e52a(0xca)](),this[_0x36e52a(0x129)](),this[_0x36e52a(0xf2)][_0x36e52a(0xe7)](this[_0x36e52a(0x119)]),this[_0x36e52a(0xf2)][_0x36e52a(0x102)]();}[_0x330758(0xd5)](){const _0x4365fe=_0x330758;super[_0x4365fe(0xd5)](),this[_0x4365fe(0xf2)][_0x4365fe(0xd5)](),this[_0x4365fe(0xeb)][_0x4365fe(0xd5)]();}[_0x330758(0xa6)](_0xc5990d,_0x515dc2){const _0x182613=_0x330758,_0x265fc4=this[_0x182613(0xd6)](_0xc5990d,_0x182613(0xcb),!0x0,_0x515dc2);this[_0x182613(0xce)](_0x265fc4,this[_0x182613(0x128)]),this[_0x182613(0xf2)][_0x182613(0x102)]();}[_0x330758(0xff)](_0xb5c87b){const _0x1c8ad0=_0x330758;this[_0x1c8ad0(0xf6)](_0xb5c87b,this[_0x1c8ad0(0x128)]),this[_0x1c8ad0(0xf6)](_0xb5c87b,this[_0x1c8ad0(0xf2)][_0x1c8ad0(0x103)]),this[_0x1c8ad0(0xf2)][_0x1c8ad0(0x102)]();}[_0x330758(0x132)](_0xa75f8c,_0x3805d6){const _0x388c8e=_0x330758;let _0x561718=this[_0x388c8e(0x128)][_0x388c8e(0xef)](_0x185bcf=>_0x185bcf['id']===_0xa75f8c);_0x561718||(_0x561718=this[_0x388c8e(0xf2)][_0x388c8e(0x103)][_0x388c8e(0xef)](_0x48dd35=>_0x48dd35['id']===_0xa75f8c)),_0x561718&&(_0x561718[_0x388c8e(0xa8)]=_0x3805d6);}[_0x330758(0xb0)](_0x2653c9){const _0x6836c9=_0x330758;this[_0x6836c9(0x12b)][_0x6836c9(0x125)]();for(const _0x5998ec of _0x2653c9){const _0x5a01ea=this[_0x6836c9(0xd6)](_0x5998ec,_0x6836c9(0xc0),!0x1,!0x1);this[_0x6836c9(0xce)](_0x5a01ea,this[_0x6836c9(0x12b)]);}}[_0x330758(0xfc)](){const _0xee7055=_0x330758;this[_0xee7055(0x128)][_0xee7055(0x125)](),this[_0xee7055(0xf2)][_0xee7055(0x125)]();}[_0x330758(0xfb)](){const _0x35011d=_0x330758;this[_0x35011d(0x12b)][_0x35011d(0x125)]();}[_0x330758(0x12a)](_0x58845a,_0x4f60d1,_0x1ceefe){const _0x4470a6=_0x330758;this[_0x4470a6(0xeb)][_0x4470a6(0x12a)](_0x58845a,_0x4f60d1,_0x1ceefe);}[_0x330758(0xc2)](){const _0x3a39ea=_0x330758;this[_0x3a39ea(0xc7)](!0x1);}[_0x330758(0x10c)](){const _0x36a60c=_0x330758;this[_0x36a60c(0xc7)](!0x0);}[_0x330758(0xdf)](){const _0x5ec06a=_0x330758;this[_0x5ec06a(0x114)][_0x5ec06a(0xa9)](),this[_0x5ec06a(0x11a)][_0x5ec06a(0xda)]=!0x1,this[_0x5ec06a(0x130)]&&this[_0x5ec06a(0x130)][_0x5ec06a(0x125)]();}[_0x330758(0xc3)](){const _0x586615=_0x330758;this[_0x586615(0x114)][_0x586615(0xd3)](),this[_0x586615(0x11a)][_0x586615(0xda)]=!0x0;}[_0x330758(0xf0)](_0xaf15aa){const _0x3fb2b0=_0x330758;this[_0x3fb2b0(0xeb)][_0x3fb2b0(0xb7)](_0xaf15aa),this[_0x3fb2b0(0x11a)][_0x3fb2b0(0xda)]=!0x0;}[_0x330758(0xc6)](_0x324028,_0x4da5c5,_0x1b8a70,_0x3849eb){const _0x2a1c44=_0x330758;this[_0x2a1c44(0xeb)][_0x2a1c44(0xc6)](_0x324028,_0x1b8a70,_0x3849eb);}[_0x330758(0xc9)](_0x5d2ff3){const _0x225673=_0x330758;this[_0x225673(0xeb)][_0x225673(0xc9)](_0x5d2ff3),this[_0x225673(0x11a)][_0x225673(0xda)]=!0x1;}[_0x330758(0x111)](_0x359670){const _0x1bebf2=_0x330758;this[_0x1bebf2(0xe5)](this[_0x1bebf2(0x11f)],this[_0x1bebf2(0xbc)],_0x359670),this[_0x1bebf2(0xb2)](_0x359670);}[_0x330758(0xb2)](_0x28717c){const _0x3fa018=_0x330758,_0x42ac21=!_0x28717c[_0x3fa018(0x12c)][_0x3fa018(0xfd)]&&_0x28717c[_0x3fa018(0x12c)][_0x3fa018(0x112)],_0xa79205=_0x28717c[_0x3fa018(0xdb)][_0x3fa018(0x112)],_0x416af0=_0x28717c[_0x3fa018(0x10a)][_0x3fa018(0x112)];this[_0x3fa018(0x11a)][_0x3fa018(0xd9)]=_0x42ac21||_0xa79205||_0x416af0;}[_0x330758(0xa7)](){const _0x34e541=_0x330758;this[_0x34e541(0xac)]({'tag':_0x34e541(0xaf),'attributes':{'class':[po,_0x34e541(0xe9)]},'children':[{'tag':_0x34e541(0xaf),'attributes':{'class':Bo},'children':this[_0x34e541(0x128)]}]});}[_0x330758(0xbf)](){const _0x5ea643=_0x330758;this[_0x5ea643(0x11a)]['on'](_0x5ea643(0xd4),()=>{const _0x1b91b=_0x5ea643;this[_0x1b91b(0xd2)]();});}[_0x330758(0xd1)](_0x14cb20){const _0x234ad7=_0x330758,_0x205be2=new _0x4f1412(_0x14cb20);return _0x205be2[_0x234ad7(0xd8)]({'label':_0x1ca2c8(_0x14cb20,_0x234ad7(0xe3)),'class':vo+'\x20'+To,'icon':_0x288576,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x205be2;}[_0x330758(0x123)](_0xe5257b){const _0x5ccca6=_0x330758;return this[_0x5ccca6(0x116)](_0xe5257b,bo);}[_0x330758(0xf3)](_0x504df2){const _0x26f010=_0x330758,_0x5dbd92=this[_0x26f010(0x116)](_0x504df2,Ao);return this[_0x26f010(0x107)](_0x5dbd92,_0x504df2),_0x5dbd92;}[_0x330758(0xcd)](_0x48f692,_0x11b56d){const _0x3d151e=_0x330758,_0x5344d8={'searchInputVisibleFrom':_0x11b56d[_0x3d151e(0xbe)],'onBackToContext':()=>{const _0x40cff4=_0x3d151e;this[_0x40cff4(0x10c)](),this[_0x40cff4(0x11f)][_0x40cff4(0xf1)]({'target':this[_0x40cff4(0x11a)][_0x40cff4(0x119)],'limiter':this[_0x40cff4(0xde)](),'positions':Ro});},'onResourceSelected':(_0x430643,_0xc33be8)=>{const _0x12f064=_0x3d151e;this[_0x12f064(0xe2)](_0x12f064(0x126),{'source':_0x430643,'resource':_0xc33be8});},'onLoadSourceResources':_0x34af4f=>{const _0x461539=_0x3d151e;this[_0x461539(0xe2)](_0x461539(0x109),_0x34af4f);},'onBalloonClosed':()=>{const _0x476705=_0x3d151e;this[_0x476705(0x11a)][_0x476705(0xda)]=!0x1;},'getLimiterElement':()=>this[_0x3d151e(0xde)](),'getTargetElement':()=>this[_0x3d151e(0x11a)][_0x3d151e(0x119)]};return new _0x32d3b4(_0x48f692,_0x11b56d[_0x3d151e(0xcc)],_0x5344d8);}[_0x330758(0xde)](){const _0x2c368a=_0x330758;return this[_0x2c368a(0x119)]?.[_0x2c368a(0xb8)]('.'+Po)||document[_0x2c368a(0xf4)];}[_0x330758(0x116)](_0x1acfe8,_0x368108){const _0x260e70=_0x330758,_0xa5c304=new _0x40138b(_0x1acfe8);return _0xa5c304[_0x260e70(0xe6)]({'attributes':{'class':_0x368108}}),this[_0x260e70(0xcc)][_0x260e70(0xab)](_0xa5c304),_0xa5c304;}[_0x330758(0xe5)](_0x700d7d,_0x3bb825,_0x1158b7){const _0x17194e=_0x330758;if(_0x700d7d[_0x17194e(0xf7)][_0x17194e(0x125)](),!_0x1158b7[_0x17194e(0x12c)][_0x17194e(0xfd)]&&_0x1158b7[_0x17194e(0x12c)][_0x17194e(0x112)]){const _0x684692=this[_0x17194e(0xec)](_0x3bb825,{'label':_0x1ca2c8(_0x3bb825,_0x17194e(0xe1)),'icon':_0x114fc7});_0x684692['on'](_0x17194e(0xd4),()=>{const _0x3f5276=_0x17194e;this[_0x3f5276(0xe2)](_0x3f5276(0x108)),this[_0x3f5276(0xc2)]();}),_0x700d7d[_0x17194e(0xf7)][_0x17194e(0xab)](_0x684692);}if(_0x1158b7[_0x17194e(0xdb)][_0x17194e(0x112)]){const _0x19af16=this[_0x17194e(0xec)](_0x3bb825,{'label':_0x1ca2c8(_0x3bb825,_0x17194e(0x12d)),'icon':_0x33b2c0});_0x19af16['on'](_0x17194e(0xd4),()=>{const _0x4d8511=_0x17194e;this[_0x4d8511(0xc2)](),this[_0x4d8511(0xc3)](),this[_0x4d8511(0x114)][_0x4d8511(0xf1)]({'target':this[_0x4d8511(0x11a)][_0x4d8511(0x119)],'limiter':this[_0x4d8511(0xde)](),'positions':Ro}),this[_0x4d8511(0x130)][_0x4d8511(0x134)]();}),_0x700d7d[_0x17194e(0xf7)][_0x17194e(0xab)](_0x19af16);}if(_0x1158b7[_0x17194e(0x10a)][_0x17194e(0x112)]){const _0x420e39=new _0x1f6764(_0x3bb825);_0x420e39[_0x17194e(0xd8)]({'label':_0x1ca2c8(_0x3bb825,_0x17194e(0xdc)),'icon':_0xfacc5d,'withText':!0x0,'tooltip':!0x0,'class':ko,'allowMultipleFiles':!0x0}),_0x420e39['on'](_0x17194e(0xb5),(_0x43e5df,_0x138322)=>{const _0x13d3e0=_0x17194e;this[_0x13d3e0(0xe2)](_0x13d3e0(0x113),_0x138322),this[_0x13d3e0(0xc2)]();}),_0x420e39[_0x17194e(0xaa)]=!0x0,_0x700d7d[_0x17194e(0xf7)][_0x17194e(0xab)](_0x420e39);}for(const _0x3fe163 of _0x1158b7[_0x17194e(0xed)]){const _0x51d784=this[_0x17194e(0xec)](_0x3bb825,{'label':_0x3fe163[_0x17194e(0xf5)],'icon':_0x3fe163[_0x17194e(0x101)]||_0x670049,'type':_0x17194e(0xba)});_0x700d7d[_0x17194e(0xf7)][_0x17194e(0xab)](_0x51d784),_0x51d784['on'](_0x17194e(0xd4),()=>{const _0x25e758=_0x17194e;this[_0x25e758(0xc2)](),this[_0x25e758(0xf0)](_0x3fe163);});}}[_0x330758(0x107)](_0x29fc48,_0x4f95ef){const _0x44d7ec=_0x330758;this[_0x44d7ec(0x130)]=new _0xa6e7a4(_0x4f95ef),this[_0x44d7ec(0x130)]['on'](_0x44d7ec(0x121),(_0x26867c,_0x129fef)=>{const _0x34f52f=_0x44d7ec;this[_0x34f52f(0x104)](_0x129fef);}),this[_0x44d7ec(0x130)]['on'](_0x44d7ec(0x106),()=>{const _0x2b7606=_0x44d7ec;this[_0x2b7606(0xdf)](),this[_0x2b7606(0x10c)](),this[_0x2b7606(0x11f)][_0x2b7606(0xf1)]({'target':this[_0x2b7606(0x11a)][_0x2b7606(0x119)],'limiter':this[_0x2b7606(0xde)](),'positions':Ro});}),this[_0x44d7ec(0x130)]['on'](_0x44d7ec(0x115),()=>{const _0x274f54=_0x44d7ec;this[_0x274f54(0x114)][_0x274f54(0x10b)]&&this[_0x274f54(0x114)][_0x274f54(0xf1)]({'target':this[_0x274f54(0x11a)][_0x274f54(0x119)],'limiter':this[_0x274f54(0xde)](),'positions':Ro});}),_0x29fc48[_0x44d7ec(0xf7)][_0x44d7ec(0xab)](this[_0x44d7ec(0x130)]);}[_0x330758(0xec)](_0x9ee67c,_0x5c6abe){const _0x44ba89=_0x330758,_0x28d41c=_0x44ba89(0xba)===_0x5c6abe[_0x44ba89(0x131)]?new SourcesBalloonButtonView(_0x9ee67c):new _0x4f1412(_0x9ee67c);return _0x28d41c[_0x44ba89(0xd8)]({'label':_0x5c6abe[_0x44ba89(0xf5)],'icon':_0x5c6abe[_0x44ba89(0x101)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':ko}),_0x28d41c;}[_0x330758(0x129)](){const _0x2fc6ac=_0x330758;this[_0x2fc6ac(0xe4)](),this[_0x2fc6ac(0x11d)]();}[_0x330758(0x11d)](){const _0x8d86d6=_0x330758;_0x85bbe({'emitter':this[_0x8d86d6(0x114)],'contextElements':[this[_0x8d86d6(0x114)][_0x8d86d6(0x119)]],'callback':()=>{const _0x56af2d=_0x8d86d6;this[_0x56af2d(0xdf)]();},'activator':()=>this[_0x8d86d6(0x114)][_0x8d86d6(0x10b)]});}[_0x330758(0xc7)](_0x2a9eac){const _0x455183=_0x330758,_0x3b4e43=this[_0x455183(0x122)];_0x3b4e43[_0x455183(0x105)][_0x455183(0xda)]=_0x2a9eac,_0x2a9eac?_0x3b4e43[_0x455183(0x100)][_0x455183(0xd3)]():_0x3b4e43[_0x455183(0x100)][_0x455183(0xa9)]();}[_0x330758(0xe4)](){const _0x39e67c=_0x330758,{balloonView:_0x19a508,buttonView:_0x18335e,hideMethod:_0x966b5d}=this[_0x39e67c(0x122)];_0x85bbe({'emitter':_0x19a508,'contextElements':[_0x19a508[_0x39e67c(0x119)],_0x18335e[_0x39e67c(0x119)]],'callback':()=>{_0x966b5d();},'activator':()=>_0x18335e[_0x39e67c(0xda)]&&!this[_0x39e67c(0x114)][_0x39e67c(0x10b)]&&!this[_0x39e67c(0xeb)][_0x39e67c(0x11c)]()});}[_0x330758(0xd6)](_0x4d48a0,_0x106172,_0x402ead=!0x1,_0x139a2f=!0x1){const _0x5aa89f=_0x330758,_0x47a983=_0x5aa89f(0xc0)===_0x106172||!0x0===_0x4d48a0[_0x5aa89f(0xdd)],_0x1da2fd=new _0x185cbf(this[_0x5aa89f(0xbc)],_0x4d48a0,_0x47a983,_0x402ead,_0x139a2f);return _0x47a983||_0x1da2fd['on'](_0x5aa89f(0x117),()=>{const _0x21c0ab=_0x5aa89f;this[_0x21c0ab(0xe2)](_0x21c0ab(0xff),_0x1da2fd['id']);}),_0x1da2fd;}[_0x330758(0xce)](_0x342a8d,_0x1b3349){const _0x42f9c6=_0x330758;_0x1b3349[_0x42f9c6(0xab)](_0x342a8d,0x0);}[_0x330758(0xf6)](_0x513e8e,_0x4f6be5){const _0x330d70=_0x330758,_0x5713c4=_0x4f6be5[_0x330d70(0xef)](_0x5becbe=>_0x5becbe['id']===_0x513e8e);_0x5713c4&&_0x4f6be5[_0x330d70(0xc1)](_0x5713c4);}[_0x330758(0xd2)](){const _0x411f97=_0x330758;this[_0x411f97(0x11a)][_0x411f97(0xda)]?this[_0x411f97(0xc2)]():(this[_0x411f97(0x10c)](),this[_0x411f97(0x11f)][_0x411f97(0xf1)]({'target':this[_0x411f97(0x11a)][_0x411f97(0x119)],'limiter':this[_0x411f97(0xde)](),'positions':Ro}));}[_0x330758(0x104)](_0x172d70){const _0x221820=_0x330758;this[_0x221820(0x130)][_0x221820(0x125)](),this[_0x221820(0xdf)](),this[_0x221820(0xe2)](_0x221820(0xb4),_0x172d70);}}export class SourcesBalloonButtonView extends _0x4f1412{[_0x330758(0x135)];constructor(_0x1bc549){const _0x2e9830=_0x330758;super(_0x1bc549),this[_0x2e9830(0xd8)]({'withText':!0x0,'role':_0x2e9830(0x12e)}),this[_0x2e9830(0x135)]=this[_0x2e9830(0xb9)](),this[_0x2e9830(0xe6)]({'attributes':{'class':[Eo]}});}[_0x330758(0xca)](){const _0x3468e9=_0x330758;super[_0x3468e9(0xca)](),this[_0x3468e9(0xe0)][_0x3468e9(0xab)](this[_0x3468e9(0x135)]);}[_0x330758(0xb9)](){const _0x4ba2aa=_0x330758,_0xe453c6=new _0x455a0d();return _0xe453c6[_0x4ba2aa(0xf7)]=_0x405a20,_0xe453c6[_0x4ba2aa(0xe6)]({'attributes':{'class':Eo+_0x4ba2aa(0x120)}}),_0xe453c6;}}
|
|
23
|
+
function _0xa314(_0x4374be,_0x31521f){const _0x4bde8e=_0x4bde();return _0xa314=function(_0xa31436,_0x2f2d48){_0xa31436=_0xa31436-0x18e;let _0x391ee1=_0x4bde8e[_0xa31436];return _0x391ee1;},_0xa314(_0x4374be,_0x31521f);}const _0x247f4c=_0xa314;(function(_0x4962e2,_0x31a610){const _0x5a1add=_0xa314,_0x328624=_0x4962e2();while(!![]){try{const _0x141a8b=parseInt(_0x5a1add(0x211))/0x1*(-parseInt(_0x5a1add(0x1d4))/0x2)+parseInt(_0x5a1add(0x1e3))/0x3*(-parseInt(_0x5a1add(0x1f3))/0x4)+-parseInt(_0x5a1add(0x193))/0x5+-parseInt(_0x5a1add(0x1a8))/0x6*(parseInt(_0x5a1add(0x198))/0x7)+parseInt(_0x5a1add(0x1dd))/0x8*(parseInt(_0x5a1add(0x1d1))/0x9)+-parseInt(_0x5a1add(0x1b2))/0xa+-parseInt(_0x5a1add(0x1be))/0xb*(-parseInt(_0x5a1add(0x19b))/0xc);if(_0x141a8b===_0x31a610)break;else _0x328624['push'](_0x328624['shift']());}catch(_0x3b6cf4){_0x328624['push'](_0x328624['shift']());}}}(_0x4bde,0x35331));import{BalloonPanelView as _0x220da,ButtonView as _0x4b4e07,clickOutsideHandler as _0x46870e,FileDialogButtonView as _0x2b6d07,IconView as _0x7fb187,View as _0x4104fe}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x4b4bcb,IconDocument as _0x595f96,IconDocumentOutline as _0x5ddcc8,IconDropdownArrow as _0x202baf,IconLink as _0x12d98f,IconPaperClip as _0x13cbaf}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x5c0b74}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x7cef34}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xe6ab1d}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x27b36e}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x46500a}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x247f4c(0x1ca),_0x247f4c(0x1e1),_0x247f4c(0x1cd),_0x247f4c(0x21d),_0x247f4c(0x1fb),_0x247f4c(0x1ee)];function _0x4bde(){const _0x3d197c=['_setupAllBalloonClickOutsideHandlers','1043cByDuL','tooltip','add','36IjYiRe','locale','_createResourcesBalloonView','ck-reset_all-excluded','ck-ai-chat-context-chips-wrapper-balloon','_addContextBalloonConfig','_urlBalloonPanelView','_currentContextsChips','ck-ai-chat-controls-button','source','_addUrlContent','extendTemplate','find','16356NjDIiP','overflowChips','_resourcesBalloonView','show','hideAddContextBalloonPanel','_toggleAddContextBalloon','_setupTemplate','ck-ai-chat-context-controls','_overflowManager','_removeContextFromCollection','87210qxlajX','_setAddContextButtonEnabled','type','southArrowNorthWest','remove','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','clear','enabled','document','AI_CHAT_CONTEXT_URL_LABEL','setConversationContext','ck-ai-chat-context-controls__balloon-button-source','3753409PQCsOv','_createUrlBalloonPanelView','menuitem','ck-ai-chat-controls_context_show-more-button','northArrowSouth','_createContextButton','_createAddContextBalloonPanelView','render','setAddContextOptions','set','isEnabled','submitUrl','addDocumentToContext','_conversationContextsChips','_createArrowView','addUrlToContext','_handleUrlSubmit','content','isOn','27eZPfES','isAnyResourceBalloonVisible','showUrlBalloonPanel','4KzqwgC','southArrowNorth','ck-ai-chat-context-controls__url-balloon-panel','_showSourceResourcesBalloon','hideUrlBalloonPanel','AI_CHAT_CONTEXT_FILE_LABEL','updateResourceState','sources','cancel','304976grovmd','files','_createBalloonButton','conversation','addFileToContext','addContextButtonView','621051XaSvTA','balloonView','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button','bodyCollection','buttonView','done','body','northArrowSouthEast','_addContextToCollection','isVisible','loadSourceResources','isHidden','execute','closest','ck-ai-chat','4uPmrNt','_handleAddContextButtonClick','element','southArrowNorthEast','_setupAddContextBalloonClickOutsideHandler','focus','hide','label','removeContextItem','fire','clearCurrentContextItems','_urlInputView','setContextItemLoading','ck-ai-chat-context-controls__show-more-balloon-panel','isLoading','reorganizeChips','icon','ck-ai-chat-context-controls__add-context-button','ck-ai-chat-context-controls__add-context-balloon-panel','removeContextItemChip','addContextItem','destroy','isReadOnly','setContainerElement','clearConversationContextItems','populateSourceResourceBalloon','setTemplate','closeSourceResourceBalloon','northArrowSouthWest','showAddContextBalloonPanel','28019feFNuP','arrowView','searchInputVisibleFrom','_createAddContextButtonView','showSourceResourcesBalloon','defaultPositions','ck-ai-chat-context-controls__pending-contexts','children','createCollection','_getLimiterElement','current','_addContextBalloonPanelView','addResourceToContext','_bindEventHandlers','refreshBalloon','bind','pin','div','_createBaseBalloonPanel','urls','1210840NRWwPG','_setBalloonPanelContent','__arrow','AI_CHAT_CONTEXT_ADD_CONTEXT'];_0x4bde=function(){return _0x3d197c;};return _0x4bde();}const ko=_0x247f4c(0x1af),Eo=_0x247f4c(0x217),vo=_0x247f4c(0x205),Vo=_0x247f4c(0x204),Io=_0x247f4c(0x1d6),Po=_0x247f4c(0x1e6),Ro=_0x247f4c(0x1bd),Uo=_0x247f4c(0x1a3),Lo=_0x247f4c(0x19f),No=_0x247f4c(0x1c1),Oo=_0x247f4c(0x200),Mo=_0x247f4c(0x1f2),Ho=[_0x220da[_0x247f4c(0x216)][_0x247f4c(0x20f)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1c2)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1eb)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1b5)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1d5)],_0x220da[_0x247f4c(0x216)][_0x247f4c(0x1f6)]];export class AIChatContextPanelView extends _0x4104fe{[_0x247f4c(0x1e2)];[_0x247f4c(0x1a2)]=this[_0x247f4c(0x219)]();[_0x247f4c(0x1cb)]=this[_0x247f4c(0x219)]();[_0x247f4c(0x1b0)];[_0x247f4c(0x21c)];[_0x247f4c(0x1a1)];[_0x247f4c(0x1fe)];[_0x247f4c(0x1aa)];[_0x247f4c(0x1a0)];[_0x247f4c(0x1e7)];constructor(_0x39c407,_0x51352c){const _0x4ff0fc=_0x247f4c;super(_0x39c407),this[_0x4ff0fc(0x1e7)]=_0x51352c[_0x4ff0fc(0x1e7)],this[_0x4ff0fc(0x1a2)]=this[_0x4ff0fc(0x219)](),this[_0x4ff0fc(0x1cb)]=this[_0x4ff0fc(0x219)](),this[_0x4ff0fc(0x1e2)]=this[_0x4ff0fc(0x214)](_0x39c407),this[_0x4ff0fc(0x21c)]=this[_0x4ff0fc(0x1c4)](_0x39c407),this[_0x4ff0fc(0x1a1)]=this[_0x4ff0fc(0x1bf)](_0x39c407),this[_0x4ff0fc(0x1aa)]=this[_0x4ff0fc(0x19d)](_0x39c407,_0x51352c);const _0x4fa966={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x4ff0fc(0x1b0)]=new _0xe6ab1d(_0x39c407,this[_0x4ff0fc(0x1a2)],_0x4fa966,this[_0x4ff0fc(0x1e7)],this),this[_0x4ff0fc(0x1a0)]={'buttonView':this[_0x4ff0fc(0x1e2)],'balloonView':this[_0x4ff0fc(0x21c)],'hideMethod':this[_0x4ff0fc(0x1ac)][_0x4ff0fc(0x18e)](this),'showMethod':this[_0x4ff0fc(0x210)][_0x4ff0fc(0x18e)](this)},this[_0x4ff0fc(0x1ae)](),this[_0x4ff0fc(0x21e)]();}[_0x247f4c(0x1c5)](){const _0x16edb9=_0x247f4c;super[_0x16edb9(0x1c5)](),this[_0x16edb9(0x197)](),this[_0x16edb9(0x1b0)][_0x16edb9(0x20a)](this[_0x16edb9(0x1f5)]),this[_0x16edb9(0x1b0)][_0x16edb9(0x202)]();}[_0x247f4c(0x208)](){const _0x5eea72=_0x247f4c;super[_0x5eea72(0x208)](),this[_0x5eea72(0x1b0)][_0x5eea72(0x208)](),this[_0x5eea72(0x1aa)][_0x5eea72(0x208)]();}[_0x247f4c(0x207)](_0x3db0d8,_0x516bb9){const _0x22a57d=_0x247f4c,_0xc2fb90=this[_0x22a57d(0x1c3)](_0x3db0d8,_0x22a57d(0x21b),!0x0,_0x516bb9);this[_0x22a57d(0x1ec)](_0xc2fb90,this[_0x22a57d(0x1a2)]),this[_0x22a57d(0x1b0)][_0x22a57d(0x202)]();}[_0x247f4c(0x1fb)](_0x5eb56d){const _0x532be5=_0x247f4c;this[_0x532be5(0x1b1)](_0x5eb56d,this[_0x532be5(0x1a2)]),this[_0x532be5(0x1b1)](_0x5eb56d,this[_0x532be5(0x1b0)][_0x532be5(0x1a9)]),this[_0x532be5(0x1b0)][_0x532be5(0x202)]();}[_0x247f4c(0x1ff)](_0x31b31e,_0xb001ee){const _0x2f67b1=_0x247f4c;let _0x14c85f=this[_0x2f67b1(0x1a2)][_0x2f67b1(0x1a7)](_0x3582dd=>_0x3582dd['id']===_0x31b31e);_0x14c85f||(_0x14c85f=this[_0x2f67b1(0x1b0)][_0x2f67b1(0x1a9)][_0x2f67b1(0x1a7)](_0x471314=>_0x471314['id']===_0x31b31e)),_0x14c85f&&(_0x14c85f[_0x2f67b1(0x201)]=_0xb001ee);}[_0x247f4c(0x1bc)](_0x24b386){const _0x399faa=_0x247f4c;this[_0x399faa(0x1cb)][_0x399faa(0x1b8)]();for(const _0x16bb6e of _0x24b386){const _0x217e5f=this[_0x399faa(0x1c3)](_0x16bb6e,_0x399faa(0x1e0),!0x1,!0x1);this[_0x399faa(0x1ec)](_0x217e5f,this[_0x399faa(0x1cb)]);}}[_0x247f4c(0x1fd)](){const _0x205fb7=_0x247f4c;this[_0x205fb7(0x1a2)][_0x205fb7(0x1b8)](),this[_0x205fb7(0x1b0)][_0x205fb7(0x1b8)]();}[_0x247f4c(0x20b)](){const _0x36cbad=_0x247f4c;this[_0x36cbad(0x1cb)][_0x36cbad(0x1b8)]();}[_0x247f4c(0x1da)](_0x5668f6,_0x43e9c9,_0xe04db4){const _0x2e3926=_0x247f4c;this[_0x2e3926(0x1aa)][_0x2e3926(0x1da)](_0x5668f6,_0x43e9c9,_0xe04db4);}[_0x247f4c(0x1ac)](){const _0x231b61=_0x247f4c;this[_0x231b61(0x1ad)](!0x1);}[_0x247f4c(0x210)](){const _0x5f117c=_0x247f4c;this[_0x5f117c(0x1ad)](!0x0);}[_0x247f4c(0x1d8)](){const _0xcc22a4=_0x247f4c;this[_0xcc22a4(0x1a1)][_0xcc22a4(0x1f9)](),this[_0xcc22a4(0x1e2)][_0xcc22a4(0x1d0)]=!0x1,this[_0xcc22a4(0x1fe)]&&this[_0xcc22a4(0x1fe)][_0xcc22a4(0x1b8)]();}[_0x247f4c(0x1d3)](){const _0x14fac2=_0x247f4c;this[_0x14fac2(0x1a1)][_0x14fac2(0x1ab)](),this[_0x14fac2(0x1e2)][_0x14fac2(0x1d0)]=!0x0;}[_0x247f4c(0x1d7)](_0x3efed0){const _0x17ea05=_0x247f4c;this[_0x17ea05(0x1aa)][_0x17ea05(0x215)](_0x3efed0),this[_0x17ea05(0x1e2)][_0x17ea05(0x1d0)]=!0x0;}[_0x247f4c(0x20c)](_0x2ac2a3,_0x132288,_0x1d18b4,_0x19f8bb){const _0x1c42d1=_0x247f4c;this[_0x1c42d1(0x1aa)][_0x1c42d1(0x20c)](_0x2ac2a3,_0x1d18b4,_0x19f8bb);}[_0x247f4c(0x20e)](_0x5a5026){const _0x5dc315=_0x247f4c;this[_0x5dc315(0x1aa)][_0x5dc315(0x20e)](_0x5a5026),this[_0x5dc315(0x1e2)][_0x5dc315(0x1d0)]=!0x1;}[_0x247f4c(0x1c6)](_0x3bb636){const _0xdb9fed=_0x247f4c;this[_0xdb9fed(0x194)](this[_0xdb9fed(0x21c)],this[_0xdb9fed(0x19c)],_0x3bb636),this[_0xdb9fed(0x1b3)](_0x3bb636);}[_0x247f4c(0x1b3)](_0x3c9743){const _0x152817=_0x247f4c,_0x3d908a=!_0x3c9743[_0x152817(0x1ba)][_0x152817(0x1ef)]&&_0x3c9743[_0x152817(0x1ba)][_0x152817(0x1b9)],_0xa3ccc0=_0x3c9743[_0x152817(0x192)][_0x152817(0x1b9)],_0x124f08=_0x3c9743[_0x152817(0x1de)][_0x152817(0x1b9)];this[_0x152817(0x1e2)][_0x152817(0x1c8)]=_0x3d908a||_0xa3ccc0||_0x124f08;}[_0x247f4c(0x1ae)](){const _0x1e2bd8=_0x247f4c;this[_0x1e2bd8(0x20d)]({'tag':_0x1e2bd8(0x190),'attributes':{'class':[ko,_0x1e2bd8(0x19e)]},'children':[{'tag':_0x1e2bd8(0x190),'attributes':{'class':Eo},'children':this[_0x1e2bd8(0x1a2)]}]});}[_0x247f4c(0x21e)](){const _0x5e7841=_0x247f4c;this[_0x5e7841(0x1e2)]['on'](_0x5e7841(0x1f0),()=>{const _0x14f75d=_0x5e7841;this[_0x14f75d(0x1f4)]();});}[_0x247f4c(0x214)](_0x3451fa){const _0x45e943=_0x247f4c,_0x347f4f=new _0x4b4e07(_0x3451fa);return _0x347f4f[_0x45e943(0x1c7)]({'label':_0x27b36e(_0x3451fa,_0x45e943(0x196)),'class':Uo+'\x20'+Vo,'icon':_0x13cbaf,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x347f4f;}[_0x247f4c(0x1c4)](_0x36b37d){const _0x193573=_0x247f4c;return this[_0x193573(0x191)](_0x36b37d,vo);}[_0x247f4c(0x1bf)](_0x469825){const _0x4097c3=_0x247f4c,_0x179418=this[_0x4097c3(0x191)](_0x469825,Io);return this[_0x4097c3(0x1a5)](_0x179418,_0x469825),_0x179418;}[_0x247f4c(0x19d)](_0x1d8d6d,_0x1a836b){const _0x26f24=_0x247f4c,_0x39edda={'searchInputVisibleFrom':_0x1a836b[_0x26f24(0x213)],'onBackToContext':()=>{const _0x115c51=_0x26f24;this[_0x115c51(0x210)](),this[_0x115c51(0x21c)][_0x115c51(0x18f)]({'target':this[_0x115c51(0x1e2)][_0x115c51(0x1f5)],'limiter':this[_0x115c51(0x21a)](),'positions':Ho});},'onResourceSelected':(_0x4232e9,_0x3394f1)=>{const _0x3451d1=_0x26f24;this[_0x3451d1(0x1fc)](_0x3451d1(0x21d),{'source':_0x4232e9,'resource':_0x3394f1});},'onLoadSourceResources':_0x43ad42=>{const _0xb4dd0b=_0x26f24;this[_0xb4dd0b(0x1fc)](_0xb4dd0b(0x1ee),_0x43ad42);},'onBalloonClosed':()=>{const _0x5c573a=_0x26f24;this[_0x5c573a(0x1e2)][_0x5c573a(0x1d0)]=!0x1;},'getLimiterElement':()=>this[_0x26f24(0x21a)](),'getTargetElement':()=>this[_0x26f24(0x1e2)][_0x26f24(0x1f5)]};return new _0x46500a(_0x1d8d6d,_0x1a836b[_0x26f24(0x1e7)],_0x39edda);}[_0x247f4c(0x21a)](){const _0x590d2a=_0x247f4c;return this[_0x590d2a(0x1f5)]?.[_0x590d2a(0x1f1)]('.'+Mo)||document[_0x590d2a(0x1ea)];}[_0x247f4c(0x191)](_0x14be31,_0xa50878){const _0x9098e6=_0x247f4c,_0x375b44=new _0x220da(_0x14be31);return _0x375b44[_0x9098e6(0x1a6)]({'attributes':{'class':_0xa50878}}),this[_0x9098e6(0x1e7)][_0x9098e6(0x19a)](_0x375b44),_0x375b44;}[_0x247f4c(0x194)](_0x5cc7f2,_0x709694,_0x5efd53){const _0x38f2d6=_0x247f4c;if(_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x1b8)](),!_0x5efd53[_0x38f2d6(0x1ba)][_0x38f2d6(0x1ef)]&&_0x5efd53[_0x38f2d6(0x1ba)][_0x38f2d6(0x1b9)]){const _0x407b1b=this[_0x38f2d6(0x1df)](_0x709694,{'label':_0x27b36e(_0x709694,_0x38f2d6(0x1b7)),'icon':_0x595f96});_0x407b1b['on'](_0x38f2d6(0x1f0),()=>{const _0x1f6753=_0x38f2d6;this[_0x1f6753(0x1fc)](_0x1f6753(0x1ca)),this[_0x1f6753(0x1ac)]();}),_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x407b1b);}if(_0x5efd53[_0x38f2d6(0x192)][_0x38f2d6(0x1b9)]){const _0x397e88=this[_0x38f2d6(0x1df)](_0x709694,{'label':_0x27b36e(_0x709694,_0x38f2d6(0x1bb)),'icon':_0x12d98f});_0x397e88['on'](_0x38f2d6(0x1f0),()=>{const _0x17c706=_0x38f2d6;this[_0x17c706(0x1ac)](),this[_0x17c706(0x1d3)](),this[_0x17c706(0x1a1)][_0x17c706(0x18f)]({'target':this[_0x17c706(0x1e2)][_0x17c706(0x1f5)],'limiter':this[_0x17c706(0x21a)](),'positions':Ho}),this[_0x17c706(0x1fe)][_0x17c706(0x1f8)]();}),_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x397e88);}if(_0x5efd53[_0x38f2d6(0x1de)][_0x38f2d6(0x1b9)]){const _0x4b21b2=new _0x2b6d07(_0x709694);_0x4b21b2[_0x38f2d6(0x1c7)]({'label':_0x27b36e(_0x709694,_0x38f2d6(0x1d9)),'icon':_0x4b4bcb,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x4b21b2['on'](_0x38f2d6(0x1e9),(_0x7767be,_0xbe24aa)=>{const _0x4ef42a=_0x38f2d6;this[_0x4ef42a(0x1fc)](_0x4ef42a(0x1e1),_0xbe24aa),this[_0x4ef42a(0x1ac)]();}),_0x4b21b2[_0x38f2d6(0x199)]=!0x0,_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x4b21b2);}for(const _0x334e65 of _0x5efd53[_0x38f2d6(0x1db)]){const _0x547d1c=this[_0x38f2d6(0x1df)](_0x709694,{'label':_0x334e65[_0x38f2d6(0x1fa)],'icon':_0x334e65[_0x38f2d6(0x203)]||_0x5ddcc8,'type':_0x38f2d6(0x1a4)});_0x5cc7f2[_0x38f2d6(0x1cf)][_0x38f2d6(0x19a)](_0x547d1c),_0x547d1c['on'](_0x38f2d6(0x1f0),()=>{const _0x177368=_0x38f2d6;this[_0x177368(0x1ac)](),this[_0x177368(0x1d7)](_0x334e65);});}}[_0x247f4c(0x1a5)](_0x10ab1f,_0x59948a){const _0x97f836=_0x247f4c;this[_0x97f836(0x1fe)]=new _0x7cef34(_0x59948a),this[_0x97f836(0x1fe)]['on'](_0x97f836(0x1c9),(_0x31e82a,_0x3b5c31)=>{const _0x158f2=_0x97f836;this[_0x158f2(0x1ce)](_0x3b5c31);}),this[_0x97f836(0x1fe)]['on'](_0x97f836(0x1dc),()=>{const _0x56581=_0x97f836;this[_0x56581(0x1d8)](),this[_0x56581(0x210)](),this[_0x56581(0x21c)][_0x56581(0x18f)]({'target':this[_0x56581(0x1e2)][_0x56581(0x1f5)],'limiter':this[_0x56581(0x21a)](),'positions':Ho});}),this[_0x97f836(0x1fe)]['on'](_0x97f836(0x21f),()=>{const _0x1d097c=_0x97f836;this[_0x1d097c(0x1a1)][_0x1d097c(0x1ed)]&&this[_0x1d097c(0x1a1)][_0x1d097c(0x18f)]({'target':this[_0x1d097c(0x1e2)][_0x1d097c(0x1f5)],'limiter':this[_0x1d097c(0x21a)](),'positions':Ho});}),_0x10ab1f[_0x97f836(0x1cf)][_0x97f836(0x19a)](this[_0x97f836(0x1fe)]);}[_0x247f4c(0x1df)](_0x2dd08a,_0x55acd5){const _0x228579=_0x247f4c,_0x5d7f5f=_0x228579(0x1a4)===_0x55acd5[_0x228579(0x1b4)]?new SourcesBalloonButtonView(_0x2dd08a):new _0x4b4e07(_0x2dd08a);return _0x5d7f5f[_0x228579(0x1c7)]({'label':_0x55acd5[_0x228579(0x1fa)],'icon':_0x55acd5[_0x228579(0x203)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x5d7f5f;}[_0x247f4c(0x197)](){const _0x33241f=_0x247f4c;this[_0x33241f(0x1f7)](),this[_0x33241f(0x1e5)]();}[_0x247f4c(0x1e5)](){const _0x25fb5a=_0x247f4c;_0x46870e({'emitter':this[_0x25fb5a(0x1a1)],'contextElements':[this[_0x25fb5a(0x1a1)][_0x25fb5a(0x1f5)]],'callback':()=>{const _0x2e73a1=_0x25fb5a;this[_0x2e73a1(0x1d8)]();},'activator':()=>this[_0x25fb5a(0x1a1)][_0x25fb5a(0x1ed)]});}[_0x247f4c(0x1ad)](_0x40cdfe){const _0xb0018c=_0x247f4c,_0x5c4f01=this[_0xb0018c(0x1a0)];_0x5c4f01[_0xb0018c(0x1e8)][_0xb0018c(0x1d0)]=_0x40cdfe,_0x40cdfe?_0x5c4f01[_0xb0018c(0x1e4)][_0xb0018c(0x1ab)]():_0x5c4f01[_0xb0018c(0x1e4)][_0xb0018c(0x1f9)]();}[_0x247f4c(0x1f7)](){const _0x37c0d8=_0x247f4c,{balloonView:_0x3cdd7d,buttonView:_0x38530c,hideMethod:_0x4fa446}=this[_0x37c0d8(0x1a0)];_0x46870e({'emitter':_0x3cdd7d,'contextElements':[_0x3cdd7d[_0x37c0d8(0x1f5)],_0x38530c[_0x37c0d8(0x1f5)]],'callback':()=>{_0x4fa446();},'activator':()=>_0x38530c[_0x37c0d8(0x1d0)]&&!this[_0x37c0d8(0x1a1)][_0x37c0d8(0x1ed)]&&!this[_0x37c0d8(0x1aa)][_0x37c0d8(0x1d2)]()});}[_0x247f4c(0x1c3)](_0x342f32,_0x46482b,_0x2d2c11=!0x1,_0x4b3c49=!0x1){const _0x4c8ee0=_0x247f4c,_0xa88353=_0x4c8ee0(0x1e0)===_0x46482b||!0x0===_0x342f32[_0x4c8ee0(0x209)],_0x585f5c=new _0x5c0b74(this[_0x4c8ee0(0x19c)],_0x342f32,_0xa88353,_0x2d2c11,_0x4b3c49);return _0xa88353||_0x585f5c['on'](_0x4c8ee0(0x206),()=>{const _0x41df6c=_0x4c8ee0;this[_0x41df6c(0x1fc)](_0x41df6c(0x1fb),_0x585f5c['id']);}),_0x585f5c;}[_0x247f4c(0x1ec)](_0x22536c,_0xcb432a){const _0x19990d=_0x247f4c;_0xcb432a[_0x19990d(0x19a)](_0x22536c,0x0);}[_0x247f4c(0x1b1)](_0x39c82e,_0x1a02c6){const _0x38a596=_0x247f4c,_0x1212d7=_0x1a02c6[_0x38a596(0x1a7)](_0x2f9997=>_0x2f9997['id']===_0x39c82e);_0x1212d7&&_0x1a02c6[_0x38a596(0x1b6)](_0x1212d7);}[_0x247f4c(0x1f4)](){const _0x1de822=_0x247f4c;this[_0x1de822(0x1e2)][_0x1de822(0x1d0)]?this[_0x1de822(0x1ac)]():(this[_0x1de822(0x210)](),this[_0x1de822(0x21c)][_0x1de822(0x18f)]({'target':this[_0x1de822(0x1e2)][_0x1de822(0x1f5)],'limiter':this[_0x1de822(0x21a)](),'positions':Ho}));}[_0x247f4c(0x1ce)](_0x2de11b){const _0x3c3462=_0x247f4c;this[_0x3c3462(0x1fe)][_0x3c3462(0x1b8)](),this[_0x3c3462(0x1d8)](),this[_0x3c3462(0x1fc)](_0x3c3462(0x1cd),_0x2de11b);}}export class SourcesBalloonButtonView extends _0x4b4e07{[_0x247f4c(0x212)];constructor(_0x5d821e){const _0x12727f=_0x247f4c;super(_0x5d821e),this[_0x12727f(0x1c7)]({'withText':!0x0,'role':_0x12727f(0x1c0)}),this[_0x12727f(0x212)]=this[_0x12727f(0x1cc)](),this[_0x12727f(0x1a6)]({'attributes':{'class':[Ro]}});}[_0x247f4c(0x1c5)](){const _0x2d1530=_0x247f4c;super[_0x2d1530(0x1c5)](),this[_0x2d1530(0x218)][_0x2d1530(0x19a)](this[_0x2d1530(0x212)]);}[_0x247f4c(0x1cc)](){const _0x2fa894=_0x247f4c,_0x31aea4=new _0x7fb187();return _0x31aea4[_0x2fa894(0x1cf)]=_0x202baf,_0x31aea4[_0x2fa894(0x1a6)]({'attributes':{'class':Ro+_0x2fa894(0x195)}}),_0x31aea4;}}
|