@ckeditor/ckeditor5-ai 47.3.0-alpha.2 → 47.3.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index-editor.css +18 -11
- package/dist/index.css +19 -11
- 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.d.ts +1 -0
- 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
- package/theme/aiballoon/aiballoon.css +2 -1
- package/theme/aiquickactions/aiquickactions.css +17 -10
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x492b(_0x35335a,_0x574764){const _0x465dd9=_0x465d();return _0x492b=function(_0x492bea,_0x5bc366){_0x492bea=_0x492bea-0x67;let _0x2e7fd7=_0x465dd9[_0x492bea];return _0x2e7fd7;},_0x492b(_0x35335a,_0x574764);}const _0x20725d=_0x492b;(function(_0x435ff5,_0x3e51df){const _0x29f5be=_0x492b,_0x25addd=_0x435ff5();while(!![]){try{const _0xd5ecc6=parseInt(_0x29f5be(0x6b))/0x1+-parseInt(_0x29f5be(0xaa))/0x2+parseInt(_0x29f5be(0x78))/0x3*(parseInt(_0x29f5be(0x88))/0x4)+parseInt(_0x29f5be(0x9a))/0x5+-parseInt(_0x29f5be(0x72))/0x6+-parseInt(_0x29f5be(0xa8))/0x7*(parseInt(_0x29f5be(0x90))/0x8)+parseInt(_0x29f5be(0xad))/0x9*(parseInt(_0x29f5be(0xb1))/0xa);if(_0xd5ecc6===_0x3e51df)break;else _0x25addd['push'](_0x25addd['shift']());}catch(_0x431ed5){_0x25addd['push'](_0x25addd['shift']());}}}(_0x465d,0x66e16));function _0x465d(){const _0x13bf28=['toggleWebSearch','isModelAvailable','2921190DDpEYa','startsWith','form','agent','toggleReasoning','low','78891kmhlpi','_shouldRestorePromptInputFocus','ck-ai-chat-controls-model-unavailable-message','execute','_promptInputView','startConversation','delegate','setModelList','setWebSearch','setConversationContext','resetMessageInput','_promptCapabilitiesView','updateResourceState','sendUserMessage','change:isLoading','find','4CGEZsh','setIsUploadInProgress','_displayedModels','div','clearCurrentContextItems','closeSourceResourceBalloon','abortPromptStream','locale','6737264FNLudD','_loaderView','bodyCollection','ck-hidden','setModel','set','contextResourcesSearchInputVisibleFrom','setAddContextOptions','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','ck-ai-chat-controls','2153450nbEUjG','setReasoning','populateSourceResourceBalloon','isDisabled','ck-ai-chat-controls-disabled','selectModel','focusPromptInput','setTemplate','setInputPlaceholder','enableModelSelector','setContextItemLoading','_createPromptInputView','ck-ai-chat-controls__start-new-chat-button','_contextPanelView','7reFOLr','_createContextPanelView','652984gjhUdk','clearConversationContextUI','removeContextItem','18LfBQdL','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_modelUnavailableMessageView','bindTemplate','4227320TikTLX','focus','clearConversationContextItems','addContextButtonView','_handlePromptInputFocus','element','disableModelSelector','_createLoaderView','clearPendingContextUI','setPlaceholderText','reset','774462ezTYvU','isLoading','_createPromptCapabilitiesView','addContextItem','_createModelUnavailableMessageView'];_0x465d=function(){return _0x13bf28;};return _0x465d();}import{ButtonView as _0x58aa8c,clickOutsideHandler as _0x3fa889,View as _0xb44d05}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x22e99a}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x222c6a}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x1527e6,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x20c28b}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x4f8390}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x186311}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0xb44d05{[_0x20725d(0x8a)]=[];[_0x20725d(0xa7)];[_0x20725d(0x7c)];[_0x20725d(0x83)];[_0x20725d(0x91)];[_0x20725d(0xaf)];[_0x20725d(0x79)];constructor(_0x31607e,_0x3e5814){const _0x5cd1fc=_0x20725d;super(_0x31607e),this[_0x5cd1fc(0xa7)]=this[_0x5cd1fc(0xa9)](_0x31607e,{'bodyCollection':_0x3e5814[_0x5cd1fc(0x92)],'searchInputVisibleFrom':_0x3e5814[_0x5cd1fc(0x96)]}),this[_0x5cd1fc(0x7c)]=this[_0x5cd1fc(0xa5)](_0x31607e),this[_0x5cd1fc(0x83)]=this[_0x5cd1fc(0x6d)](_0x31607e),this[_0x5cd1fc(0x91)]=this[_0x5cd1fc(0x67)](_0x31607e),this[_0x5cd1fc(0xaf)]=this[_0x5cd1fc(0x6f)](_0x31607e),this[_0x5cd1fc(0x79)]=!0x1,this[_0x5cd1fc(0x7c)][_0x5cd1fc(0x7e)](_0x5cd1fc(0x85))['to'](this),this[_0x5cd1fc(0x91)][_0x5cd1fc(0x7e)](_0x5cd1fc(0x8e))['to'](this),this[_0x5cd1fc(0x83)][_0x5cd1fc(0x7e)](_0x5cd1fc(0x70))['to'](this),this[_0x5cd1fc(0x83)][_0x5cd1fc(0x7e)](_0x5cd1fc(0x76))['to'](this),this[_0x5cd1fc(0x83)][_0x5cd1fc(0x7e)](_0x5cd1fc(0x9f))['to'](this),this[_0x5cd1fc(0xa7)][_0x5cd1fc(0x7e)](..._0x20c28b)['to'](this),this[_0x5cd1fc(0x95)](_0x5cd1fc(0x71),!0x0),this[_0x5cd1fc(0x95)](_0x5cd1fc(0x9d),!0x1);const _0x26f2ac=this[_0x5cd1fc(0xb0)];this[_0x5cd1fc(0xa1)]({'tag':_0x5cd1fc(0x74),'attributes':{'class':['ck',_0x5cd1fc(0x99),_0x26f2ac['if'](_0x5cd1fc(0x9d),_0x5cd1fc(0x9e))]},'children':[{'tag':_0x5cd1fc(0x8b),'attributes':{'class':[_0x26f2ac['if'](_0x5cd1fc(0x6c),_0x5cd1fc(0x93),_0x224f63=>_0x224f63||!this[_0x5cd1fc(0x71)]),_0x26f2ac['if'](_0x5cd1fc(0x71),_0x5cd1fc(0x93),_0x2ff679=>!_0x2ff679||this[_0x5cd1fc(0x6c)])]},'children':[this[_0x5cd1fc(0xa7)],this[_0x5cd1fc(0x7c)],this[_0x5cd1fc(0x83)]]},{'tag':_0x5cd1fc(0x8b),'attributes':{'class':[_0x26f2ac['if'](_0x5cd1fc(0x6c),_0x5cd1fc(0x93),_0x2aadc1=>!_0x2aadc1)]},'children':[this[_0x5cd1fc(0x91)]]},{'tag':_0x5cd1fc(0x8b),'attributes':{'class':[_0x26f2ac['if'](_0x5cd1fc(0x71),_0x5cd1fc(0x93),_0x46f85f=>_0x46f85f)]},'children':[this[_0x5cd1fc(0xaf)]]}]}),_0x3fa889({'emitter':this[_0x5cd1fc(0x7c)],'activator':()=>this[_0x5cd1fc(0x6c)],'contextElements':()=>[this[_0x5cd1fc(0xb6)]],'callback':()=>{const _0x24530a=_0x5cd1fc;this[_0x24530a(0x79)]=!0x1;}}),this['on'](_0x5cd1fc(0x86),this[_0x5cd1fc(0xb5)],{'priority':_0x5cd1fc(0x77)});}[_0x20725d(0xa9)](_0x1e57c0,_0x208781){return new _0x1527e6(_0x1e57c0,_0x208781);}[_0x20725d(0xa5)](_0x1eacdc){const _0x1a8b89=_0x20725d;return new _0x22e99a(_0x1eacdc,this[_0x1a8b89(0xa7)][_0x1a8b89(0xb4)]);}[_0x20725d(0x6d)](_0x395d8b){return new _0x222c6a(_0x395d8b);}[_0x20725d(0x67)](_0x28f395){return new _0x4f8390(_0x28f395);}[_0x20725d(0x6f)](_0x2c8cbb){const _0xe43121=_0x20725d,_0x259f63=new ws(_0x2c8cbb);return _0x259f63[_0xe43121(0x7e)](_0xe43121(0x7d))['to'](this),_0x259f63;}[_0x20725d(0xb5)](_0x433100,_0x30bf1f,_0xd2b4e8){const _0x4a4c12=_0x20725d;_0xd2b4e8?this[_0x4a4c12(0x79)]=!0x0:this[_0x4a4c12(0x79)]&&this[_0x4a4c12(0x7c)][_0x4a4c12(0xb2)]();}[_0x20725d(0x6e)](_0x58d1a9,_0x58c4f6){const _0x307ab0=_0x20725d;this[_0x307ab0(0xa7)][_0x307ab0(0x6e)](_0x58d1a9,_0x58c4f6);}[_0x20725d(0xac)](_0x8aa290){const _0x31c5e7=_0x20725d;this[_0x31c5e7(0xa7)][_0x31c5e7(0xac)](_0x8aa290);}[_0x20725d(0xa4)](_0x1c9d6c,_0x215838){const _0x2ffc1d=_0x20725d;this[_0x2ffc1d(0xa7)][_0x2ffc1d(0xa4)](_0x1c9d6c,_0x215838);}[_0x20725d(0x89)](_0x4ec6f5){const _0x2ab944=_0x20725d;this[_0x2ab944(0x7c)][_0x2ab944(0x89)](_0x4ec6f5);}[_0x20725d(0x81)](_0x67c90){const _0x2dc5d4=_0x20725d;this[_0x2dc5d4(0xa7)][_0x2dc5d4(0x81)](_0x67c90);}[_0x20725d(0x68)](){const _0x11c45b=_0x20725d;this[_0x11c45b(0xa7)][_0x11c45b(0x8c)]();}[_0x20725d(0xab)](){const _0x183eba=_0x20725d;this[_0x183eba(0xa7)][_0x183eba(0xb3)]();}[_0x20725d(0x84)](_0x28c5a3,_0x55d976,_0x4e6ff9){const _0x562a0d=_0x20725d;this[_0x562a0d(0xa7)][_0x562a0d(0x84)](_0x28c5a3,_0x55d976,_0x4e6ff9);}[_0x20725d(0x80)](_0x3ffb6b){const _0x5037be=_0x20725d;this[_0x5037be(0x83)][_0x5037be(0x80)](_0x3ffb6b);}[_0x20725d(0x9b)](_0x1e2ffe){const _0x2f383c=_0x20725d;this[_0x2f383c(0x83)][_0x2f383c(0x9b)](_0x1e2ffe);}[_0x20725d(0x82)](){const _0x8144d4=_0x20725d;this[_0x8144d4(0x7c)][_0x8144d4(0x6a)]();}[_0x20725d(0x97)](_0x3b3118){const _0x4391e6=_0x20725d;this[_0x4391e6(0xa7)][_0x4391e6(0x97)](_0x3b3118);}[_0x20725d(0xa2)](_0x286ec6){const _0x1ec255=_0x20725d;this[_0x1ec255(0x7c)][_0x1ec255(0x69)](_0x286ec6);}[_0x20725d(0x7f)](_0x1d268c,_0x3028ba){const _0x46b3fb=_0x20725d;this[_0x46b3fb(0x8a)]=_0x1d268c,this[_0x46b3fb(0x83)][_0x46b3fb(0x7f)](_0x1d268c,_0x3028ba);}[_0x20725d(0x94)](_0x2c3448){const _0x4810a3=_0x20725d;(_0x2c3448?this[_0x4810a3(0x8a)][_0x4810a3(0x87)](_0x132480=>_0x132480['id']===_0x2c3448['id']):null)?(this[_0x4810a3(0x71)]=!0x0,this[_0x4810a3(0x83)][_0x4810a3(0x94)](_0x2c3448)):_0x2c3448?.['id'][_0x4810a3(0x73)](_0x4810a3(0x75))?(this[_0x4810a3(0x71)]=!0x0,this[_0x4810a3(0x83)][_0x4810a3(0x94)](this[_0x4810a3(0x8a)][0x0])):this[_0x4810a3(0x71)]=!0x1;}[_0x20725d(0xa3)](){const _0x3945e1=_0x20725d;this[_0x3945e1(0x83)][_0x3945e1(0xa3)]();}[_0x20725d(0xb7)](_0x5e6f61){const _0x1eff4c=_0x20725d;this[_0x1eff4c(0x83)][_0x1eff4c(0xb7)](_0x5e6f61);}[_0x20725d(0x9c)](_0x3c79e6,_0x1cd739,_0x2d2fea,_0x3a647d){const _0x434955=_0x20725d;this[_0x434955(0xa7)][_0x434955(0x9c)](_0x3c79e6,_0x1cd739,_0x2d2fea,_0x3a647d);}[_0x20725d(0x8d)](_0x2956c4){const _0x42de3d=_0x20725d;this[_0x42de3d(0xa7)][_0x42de3d(0x8d)](_0x2956c4);}[_0x20725d(0xa0)](){const _0x397cb1=_0x20725d;this[_0x397cb1(0x7c)][_0x397cb1(0xb2)]();}}class ws extends _0xb44d05{constructor(_0x4af05a){const _0x44a0a4=_0x20725d;super(_0x4af05a);const _0x28f861=new _0x58aa8c(_0x4af05a);_0x28f861[_0x44a0a4(0x95)]({'label':_0x186311(this[_0x44a0a4(0x8f)],_0x44a0a4(0xae)),'withText':!0x0,'class':[_0x44a0a4(0xa6)],'tooltip':''}),_0x28f861[_0x44a0a4(0x7e)](_0x44a0a4(0x7b))['to'](this,_0x44a0a4(0x7d)),this[_0x44a0a4(0xa1)]({'tag':_0x44a0a4(0x8b),'attributes':{'class':['ck',_0x44a0a4(0x7a)]},'children':[{'tag':'p','children':[{'text':_0x186311(this[_0x44a0a4(0x8f)],_0x44a0a4(0x98))+'\x20'},_0x28f861]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10c5f1=_0xf60f;(function(_0x3303ac,_0x521d2e){const _0x3d3aa=_0xf60f,_0x2fab98=_0x3303ac();while(!![]){try{const _0x5c7c47=parseInt(_0x3d3aa(0x179))/0x1*(parseInt(_0x3d3aa(0x19c))/0x2)+-parseInt(_0x3d3aa(0x1b4))/0x3*(-parseInt(_0x3d3aa(0x1af))/0x4)+parseInt(_0x3d3aa(0x16c))/0x5+parseInt(_0x3d3aa(0x1ab))/0x6+-parseInt(_0x3d3aa(0x1a0))/0x7+parseInt(_0x3d3aa(0x1a2))/0x8+-parseInt(_0x3d3aa(0x187))/0x9*(parseInt(_0x3d3aa(0x195))/0xa);if(_0x5c7c47===_0x521d2e)break;else _0x2fab98['push'](_0x2fab98['shift']());}catch(_0xee7f68){_0x2fab98['push'](_0x2fab98['shift']());}}}(_0x550e,0x96b24));import{CKEditorError as _0x5284c4,logWarning as _0x20bbb2,scrollViewportToShowTarget as _0x2c7165}from'ckeditor5/src/utils.js';function _0x550e(){const _0x4e6e7f=['render','aiFeed','6252743sELOCu','includes','7978968FexeOP','extendTemplate','createCollection','div','removeItem','ck-ai-chat__loader-text','span','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat__loader','2453718snVRPq','destroy','find','bind','552UciBSs','ai-suggestion-reply','ai-reply','set','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','15507KGXFvd','_createFeedLoader','isVisible','setTemplate','_setupTemplate','markAsDone','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','updateSuggestionPartState','scrollToSuggestion','1298405MqPCoO','updateReplyItem','map','getPartView','ai-chat-feed-view-item-not-found','markItemAsDone','addItem','stop','children','_createLoaderChildren','bindTemplate','element','updateWebSources','1709cddmTX','updatePartState','updateContent','loadingMessage','updateSources','user-message','isTrackChangesOn','isPending','scrollManager','ai-chat-feed-view-item-not-a-reply-item','startAutoScroll','clear','getItemIds','ck-hidden','524205mbAeVV','add','_createFeedItems','locale','getItemById','isLoadingSkeletonVisible','start','setLoadingMessage','_createTemplateChildren','ck-ai-chat__feed','ai-chat-feed-view-item-not-a-suggestion-item','delegate','_bodyCollection','remove','170tLuyAl','stopAutoScroll','toggleLoadingSkeleton','options','interaction-header','updateSuggestionItem','ck-ai-chat__feed__items','142IBlyFz','_createSkeletonLoader'];_0x550e=function(){return _0x4e6e7f;};return _0x550e();}import{View as _0x5e64c1}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1426af}from'../utils/eventnames.js';function _0xf60f(_0x2b3a2a,_0x42214b){const _0x550edd=_0x550e();return _0xf60f=function(_0xf60f5,_0x231373){_0xf60f5=_0xf60f5-0x168;let _0x2d6d3f=_0x550edd[_0xf60f5];return _0x2d6d3f;},_0xf60f(_0x2b3a2a,_0x42214b);}import{AIChatFeedSuggestionItemView as _0x33fe8e}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x52fe5c}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x2454ae}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x3b57f8}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x255970}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x5397d9}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0xf4f87e,SKELETON_DEFINITIONS as _0x86d8f6}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x3c73ed}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x5e64c1{[_0x10c5f1(0x174)];[_0x10c5f1(0x181)];[_0x10c5f1(0x193)];constructor(_0xee7bd0,_0x1a568f){const _0x1e69d3=_0x10c5f1;super(_0xee7bd0),this[_0x1e69d3(0x193)]=_0x1a568f,this[_0x1e69d3(0x1b2)](_0x1e69d3(0x180),!0x1),this[_0x1e69d3(0x1b2)](_0x1e69d3(0x17c),''),this[_0x1e69d3(0x1b2)](_0x1e69d3(0x18c),!0x1),this[_0x1e69d3(0x1b2)](_0x1e69d3(0x17f),!0x1),this[_0x1e69d3(0x174)]=this[_0x1e69d3(0x1a4)](),this[_0x1e69d3(0x174)][_0x1e69d3(0x192)](..._0x1426af)['to'](this),this[_0x1e69d3(0x1b8)]();}[_0x10c5f1(0x19e)](){const _0x129635=_0x10c5f1;super[_0x129635(0x19e)](),this[_0x129635(0x181)]=new _0x5397d9(this[_0x129635(0x177)]);}[_0x10c5f1(0x1ac)](){const _0xb802cf=_0x10c5f1;super[_0xb802cf(0x1ac)](),this[_0xb802cf(0x181)][_0xb802cf(0x1ac)]();}[_0x10c5f1(0x184)](){const _0x27d8f1=_0x10c5f1;this[_0x27d8f1(0x174)][_0x27d8f1(0x184)]();}[_0x10c5f1(0x172)](_0x1267cc,_0x3cd301){const _0x337b4a=_0x10c5f1;let _0x3ccf17;_0x337b4a(0x1b1)===_0x1267cc?_0x3ccf17=new _0x52fe5c(this[_0x337b4a(0x18a)],_0x3cd301):_0x337b4a(0x1b0)===_0x1267cc?(_0x3ccf17=new _0x33fe8e(this[_0x337b4a(0x18a)],_0x3cd301),_0x3ccf17[_0x337b4a(0x1ae)](_0x337b4a(0x17f))['to'](this,_0x337b4a(0x17f))):_0x3ccf17=_0x337b4a(0x17e)===_0x1267cc?new _0x2454ae(this[_0x337b4a(0x18a)],_0x3cd301,this[_0x337b4a(0x193)]):_0x337b4a(0x199)===_0x1267cc?new _0x255970(this[_0x337b4a(0x18a)],_0x3cd301):new _0x3b57f8(_0x3cd301),this[_0x337b4a(0x174)][_0x337b4a(0x188)](_0x3ccf17);}async[_0x10c5f1(0x16d)]({id:_0x3c83c1,parsedContent:_0x28c7a5,renderingStrategy:_0x5e3cc1,abortSignal:_0x4567d8}){const _0x53a96a=_0x10c5f1,_0x5f3730=this[_0x53a96a(0x18b)](_0x3c83c1);if(!(_0x5f3730 instanceof _0x52fe5c))throw new _0x5284c4(_0x53a96a(0x182),null,{'itemView':_0x5f3730,'id':_0x3c83c1,'parsedContent':_0x28c7a5});await _0x5f3730[_0x53a96a(0x17b)]({'parsedContent':_0x28c7a5,'renderingStrategy':_0x5e3cc1,'abortSignal':_0x4567d8});}async[_0x10c5f1(0x178)](_0x27eb1d,_0x38f639){const _0x5e27c5=_0x10c5f1,_0x184e69=this[_0x5e27c5(0x18b)](_0x27eb1d);if(_0x184e69 instanceof _0x33fe8e)_0x184e69[_0x5e27c5(0x17d)](_0x38f639);else{if(!(_0x184e69 instanceof _0x52fe5c))throw new _0x5284c4(_0x5e27c5(0x169),null,{'itemView':_0x184e69,'id':_0x27eb1d,'sources':_0x38f639});_0x184e69[_0x5e27c5(0x17d)](_0x38f639);}}async[_0x10c5f1(0x19a)]({id:_0x466c1f,parts:_0x16dec5,renderingStrategy:_0x268584,abortSignal:_0x8dd5cb}){const _0x4a72b8=_0x10c5f1,_0x27de70=this[_0x4a72b8(0x18b)](_0x466c1f);if(!(_0x27de70 instanceof _0x33fe8e))throw new _0x5284c4(_0x4a72b8(0x191),null,{'itemView':_0x27de70,'id':_0x466c1f,'parts':_0x16dec5});await _0x27de70[_0x4a72b8(0x17b)]({'parts':_0x16dec5,'renderingStrategy':_0x268584,'abortSignal':_0x8dd5cb});}[_0x10c5f1(0x16a)]({id:_0x1669be,index:_0x2b004d,state:_0x336fc9}){const _0x5409ac=_0x10c5f1,_0x8e927d=this[_0x5409ac(0x18b)](_0x1669be);if(!(_0x8e927d instanceof _0x33fe8e))throw new _0x5284c4(_0x5409ac(0x191),this,{'id':_0x1669be});_0x8e927d[_0x5409ac(0x17a)](_0x2b004d,_0x336fc9);}[_0x10c5f1(0x171)](_0x36b602){const _0x268c91=_0x10c5f1;this[_0x268c91(0x18b)](_0x36b602)[_0x268c91(0x168)]();}[_0x10c5f1(0x185)](){const _0x4af1af=_0x10c5f1;return this[_0x4af1af(0x174)][_0x4af1af(0x16e)](_0x466a25=>_0x466a25[_0x4af1af(0x198)]['id']);}[_0x10c5f1(0x1a6)](_0x2f3663){const _0x1ee732=_0x10c5f1;this[_0x1ee732(0x174)][_0x1ee732(0x194)](this[_0x1ee732(0x18b)](_0x2f3663));}[_0x10c5f1(0x16b)](_0x63e75a,_0x819600){const _0x11eb8f=_0x10c5f1,_0x11a5bd=this[_0x11eb8f(0x18b)](_0x63e75a);if(!(_0x11a5bd instanceof _0x33fe8e))return void _0x20bbb2(_0x11eb8f(0x1b3),{'replyId':_0x63e75a,'partIndex':_0x819600});const _0x27d4d7=_0x11a5bd[_0x11eb8f(0x16f)](_0x819600);_0x27d4d7?_0x2c7165({'target':_0x27d4d7[_0x11eb8f(0x177)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x20bbb2(_0x11eb8f(0x1a9),{'replyId':_0x63e75a,'partIndex':_0x819600});}[_0x10c5f1(0x1b8)](){const _0x2dbae1=_0x10c5f1;this[_0x2dbae1(0x1b7)]({'tag':_0x2dbae1(0x1a5),'attributes':{'class':['ck',_0x2dbae1(0x190)]},'children':this[_0x2dbae1(0x18f)]()});}[_0x10c5f1(0x18f)](){const _0x11933a=_0x10c5f1,_0x2ded83=this[_0x11933a(0x19d)]();return[this[_0x11933a(0x189)](),_0x2ded83,this[_0x11933a(0x1b5)]()];}[_0x10c5f1(0x19d)](){const _0xd6f344=_0x10c5f1,_0x2f8f2d=new _0xf4f87e(this[_0xd6f344(0x18a)],_0x86d8f6[_0xd6f344(0x19f)]);return _0x2f8f2d[_0xd6f344(0x1a3)]({'attributes':{'class':[this[_0xd6f344(0x176)]['if'](_0xd6f344(0x18c),_0xd6f344(0x186),_0x1d877a=>!_0x1d877a)]}}),_0x2f8f2d;}[_0x10c5f1(0x189)](){const _0x44fed6=_0x10c5f1,_0x2b9a6b=new _0x5e64c1(this[_0x44fed6(0x18a)]);return _0x2b9a6b[_0x44fed6(0x1b7)]({'tag':_0x44fed6(0x1a5),'attributes':{'class':['ck',_0x44fed6(0x19b),this[_0x44fed6(0x176)]['if'](_0x44fed6(0x18c),_0x44fed6(0x186))]},'children':this[_0x44fed6(0x174)]}),_0x2b9a6b;}[_0x10c5f1(0x1b5)](){const _0x507156=_0x10c5f1,_0x5120e8=new _0x5e64c1(this[_0x507156(0x18a)]);return _0x5120e8[_0x507156(0x1b7)]({'tag':_0x507156(0x1a5),'attributes':{'class':['ck',_0x507156(0x1aa),this[_0x507156(0x176)]['if'](_0x507156(0x180),_0x507156(0x186),_0xf9ddb=>!_0xf9ddb)]},'children':this[_0x507156(0x175)]()}),_0x5120e8;}[_0x10c5f1(0x175)](){const _0x197a6a=_0x10c5f1,_0x2f68e4=new _0x3c73ed();return _0x2f68e4[_0x197a6a(0x1b6)]=!0x0,[_0x2f68e4,{'tag':_0x197a6a(0x1a8),'attributes':{'class':['ck',_0x197a6a(0x1a7)]},'children':[{'text':this[_0x197a6a(0x176)]['to'](_0x197a6a(0x17c))}]}];}[_0x10c5f1(0x18b)](_0x2ff842){const _0x45e01b=_0x10c5f1,_0x206373=this[_0x45e01b(0x174)][_0x45e01b(0x1ad)](_0x5b52dc=>_0x5b52dc[_0x45e01b(0x198)]['id'][_0x45e01b(0x1a1)](_0x2ff842));if(!_0x206373)throw new _0x5284c4(_0x45e01b(0x170),this,{'id':_0x2ff842});return _0x206373;}[_0x10c5f1(0x18e)](_0x344ef5){const _0x3e0bc7=_0x10c5f1;this[_0x3e0bc7(0x1b2)](_0x3e0bc7(0x17c),_0x344ef5);}[_0x10c5f1(0x197)](_0x291ed9){const _0x35ac83=_0x10c5f1;this[_0x35ac83(0x1b2)](_0x35ac83(0x18c),_0x291ed9);}[_0x10c5f1(0x183)](){const _0x54b69d=_0x10c5f1;this[_0x54b69d(0x181)][_0x54b69d(0x18d)]();}[_0x10c5f1(0x196)](){const _0x3c7e35=_0x10c5f1;this[_0x3c7e35(0x181)][_0x3c7e35(0x173)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3915f9=_0x2f7a;(function(_0x244c84,_0x35e733){const _0x4b4716=_0x2f7a,_0x408f41=_0x244c84();while(!![]){try{const _0x8a8adf=parseInt(_0x4b4716(0x187))/0x1*(parseInt(_0x4b4716(0x17c))/0x2)+-parseInt(_0x4b4716(0x18e))/0x3*(parseInt(_0x4b4716(0x18b))/0x4)+parseInt(_0x4b4716(0x18c))/0x5+parseInt(_0x4b4716(0x180))/0x6+parseInt(_0x4b4716(0x176))/0x7*(-parseInt(_0x4b4716(0x183))/0x8)+-parseInt(_0x4b4716(0x184))/0x9+-parseInt(_0x4b4716(0x18d))/0xa*(-parseInt(_0x4b4716(0x189))/0xb);if(_0x8a8adf===_0x35e733)break;else _0x408f41['push'](_0x408f41['shift']());}catch(_0x544db0){_0x408f41['push'](_0x408f41['shift']());}}}(_0x4892,0x31045));import{ButtonView as _0x2176dc,FormHeaderView as _0x35f86d}from'ckeditor5/src/ui.js';import{IconPlus as _0x5e5355,IconAIChat as _0x4e3723}from'ckeditor5/src/icons.js';import{getTranslation as _0x31d215}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x1312fc}from'../../aicore/utils/createresizebutton.js';function _0x2f7a(_0x3a7dcb,_0xf4472e){const _0x489207=_0x4892();return _0x2f7a=function(_0x2f7a92,_0x4b75c5){_0x2f7a92=_0x2f7a92-0x175;let _0x30c22f=_0x489207[_0x2f7a92];return _0x30c22f;},_0x2f7a(_0x3a7dcb,_0xf4472e);}function _0x4892(){const _0x4f91b9=['add','2971GeNKvR','_createStartConversationButton','334653btAgHV','execute','4TmbNek','307570ruZppX','40ubeSiL','70779dgrepM','AI_CHAT_HEADING','7GZAkIH','set','AI_CHAT_LABEL_NEW_CHAT','startConversation','isMaximized','resizeButton','56aSNIFT','fire','conversationStartButton','children','2357250SNTtgb','locale','ck-ai-chat__start-conversation','677608xGFwnv','3151818SDSeTl','ck-ai-header\x20ck-ai-header_chat'];_0x4892=function(){return _0x4f91b9;};return _0x4892();}export class AIChatHeaderView extends _0x35f86d{[_0x3915f9(0x17e)];[_0x3915f9(0x17b)];constructor(_0x956aaf,_0x41724b){const _0x1e977c=_0x3915f9;super(_0x956aaf,{'label':_0x31d215(_0x956aaf,_0x1e977c(0x175)),'class':_0x1e977c(0x185),'icon':_0x4e3723}),this[_0x1e977c(0x177)](_0x1e977c(0x17a),!0x1),this[_0x1e977c(0x17e)]=this[_0x1e977c(0x188)](_0x956aaf),this[_0x1e977c(0x17f)][_0x1e977c(0x186)](this[_0x1e977c(0x17e)]),_0x41724b&&(this[_0x1e977c(0x17b)]=_0x1312fc(_0x956aaf,this),this[_0x1e977c(0x17f)][_0x1e977c(0x186)](this[_0x1e977c(0x17b)]));}[_0x3915f9(0x188)](_0x2a3bf8){const _0x95f8df=_0x3915f9,_0x533e9c=new _0x2176dc(_0x2a3bf8);return _0x533e9c[_0x95f8df(0x177)]({'label':_0x31d215(this[_0x95f8df(0x181)],_0x95f8df(0x178)),'withText':!0x0,'icon':_0x5e5355,'class':_0x95f8df(0x182)}),_0x533e9c['on'](_0x95f8df(0x18a),()=>{const _0xd59152=_0x95f8df;this[_0xd59152(0x17d)](_0xd59152(0x179));}),_0x533e9c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3ff23c=_0x4eaf;function _0x488f(){var _0x5d99c5=['ck-ai-chat','delegate','detachFromDom','7122049TbAqTP','div','6DUbiWt','chatControls','5188noUqPh','showResizeButton','setTemplate','chatHeader','_bodyCollection','1389995XOmLMp','10NUAuxT','213bAvKRe','populateSourceResourceBalloon','attachToDom','chatDisclaimer','destroy','closeSourceResourceBalloon','contextResourcesSearchInputVisibleFrom','478758CWUCCf','1368976FZKqeD','2424861jeDirM','uiLanguageDirection','chatFeed','26278AgUACo','12sZoQwu','ck-rounded-corners','ck-reset_all'];_0x488f=function(){return _0x5d99c5;};return _0x488f();}(function(_0xd0c7a8,_0x1699cb){var _0x5a3c79=_0x4eaf,_0x192285=_0xd0c7a8();while(!![]){try{var _0x2cab41=parseInt(_0x5a3c79(0xe1))/0x1*(-parseInt(_0x5a3c79(0xe2))/0x2)+-parseInt(_0x5a3c79(0xf3))/0x3*(parseInt(_0x5a3c79(0xec))/0x4)+-parseInt(_0x5a3c79(0xf1))/0x5*(parseInt(_0x5a3c79(0xea))/0x6)+parseInt(_0x5a3c79(0xdc))/0x7+-parseInt(_0x5a3c79(0xdd))/0x8+-parseInt(_0x5a3c79(0xde))/0x9*(-parseInt(_0x5a3c79(0xf2))/0xa)+parseInt(_0x5a3c79(0xe8))/0xb;if(_0x2cab41===_0x1699cb)break;else _0x192285['push'](_0x192285['shift']());}catch(_0x116058){_0x192285['push'](_0x192285['shift']());}}}(_0x488f,0x45ec6));function _0x4eaf(_0xbbf55a,_0x452bc0){var _0x488f61=_0x488f();return _0x4eaf=function(_0x4eaff0,_0xda4611){_0x4eaff0=_0x4eaff0-0xda;var _0x370373=_0x488f61[_0x4eaff0];return _0x370373;},_0x4eaf(_0xbbf55a,_0x452bc0);}import{View as _0x51a2f7,BodyCollection as _0x145896}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1ff0a1}from'../utils/eventnames.js';import{AIChatFeedView as _0x5f1d6d}from'./aichatfeedview.js';import{AIChatControlsView as _0x25a4b1}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x317162}from'./aichatheaderview.js';import{AIDisclaimerView as _0x8e31ca}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x51a2f7{[_0x3ff23c(0xef)];[_0x3ff23c(0xe0)];[_0x3ff23c(0xeb)];[_0x3ff23c(0xf6)];[_0x3ff23c(0xf0)];constructor(_0x9413f1,_0x5c204b){var _0x41fcc2=_0x3ff23c;super(_0x9413f1),this[_0x41fcc2(0xf0)]=new _0x145896(_0x9413f1),this[_0x41fcc2(0xf0)][_0x41fcc2(0xf5)](),this[_0x41fcc2(0xef)]=new _0x317162(_0x9413f1,_0x5c204b[_0x41fcc2(0xed)]),this[_0x41fcc2(0xef)][_0x41fcc2(0xe6)](..._0x1ff0a1)['to'](this),this[_0x41fcc2(0xe0)]=new _0x5f1d6d(_0x9413f1,this[_0x41fcc2(0xf0)]),this[_0x41fcc2(0xe0)][_0x41fcc2(0xe6)](..._0x1ff0a1)['to'](this),this[_0x41fcc2(0xeb)]=new _0x25a4b1(_0x9413f1,{'bodyCollection':this[_0x41fcc2(0xf0)],'contextResourcesSearchInputVisibleFrom':_0x5c204b[_0x41fcc2(0xdb)]}),this[_0x41fcc2(0xeb)][_0x41fcc2(0xe6)](..._0x1ff0a1)['to'](this),this[_0x41fcc2(0xf6)]=new _0x8e31ca(_0x9413f1),this[_0x41fcc2(0xee)]({'tag':_0x41fcc2(0xe9),'attributes':{'class':['ck',_0x41fcc2(0xe4),_0x41fcc2(0xe5),_0x41fcc2(0xe3)],'dir':_0x9413f1[_0x41fcc2(0xdf)]},'children':[this[_0x41fcc2(0xef)],this[_0x41fcc2(0xe0)],this[_0x41fcc2(0xeb)],this[_0x41fcc2(0xf6)]]});}[_0x3ff23c(0xf4)](_0x18187e,_0x1a594,_0x1b772b,_0x19a888){var _0x13dc07=_0x3ff23c;this[_0x13dc07(0xeb)][_0x13dc07(0xf4)](_0x18187e,_0x1a594,_0x1b772b,_0x19a888);}[_0x3ff23c(0xda)](_0x42adec){var _0x45edeb=_0x3ff23c;this[_0x45edeb(0xeb)][_0x45edeb(0xda)](_0x42adec);}[_0x3ff23c(0xf7)](){var _0x2ee6b5=_0x3ff23c;this[_0x2ee6b5(0xf0)][_0x2ee6b5(0xe7)](),super[_0x2ee6b5(0xf7)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1200(){const _0x4d8ad3=['destroy','auto','_applyOverflowResults','_containerElement','_targetContainer','show','253841oDxqkY','innerWidth','_createShowMoreButtonView','284644PmAHXF','children','50px','push','_pendingCalculation','_showMoreButtonView','_calculateContainerWidth','300px','9vauWsV','setTemplate','execute','cssClasses','disableAnimationOnEnter','height','_updateOverflowUI','cloneNode','_createContainerElements','parentElement','body','from','_createMockButton','className','rowDetectionTolerance','button','offsetWidth','block','showMoreBalloon','appendChild','5551VHevou','classList','_testButtonFit','_updateShowMoreButtonVisibility','div','96AynuGt','render','innerHTML','isVisible','0px','forEach','4003893UiBrlt','_parentView','showMoreButtonView','isConnected','_restoreAncestorVisibility','_renderChipsAndCountRows','disconnect','-9999px','position','20pQhRJR','border-box','showMoreLabelPrefix','element','hide','showMoreButton','label','visibility','getComputedStyle','none','_repinBalloonPanel','querySelector','style','set','_intersectionObserver','zIndex','getBoundingClientRect','+\x201','opacity','.ck-ai-chat','clientWidth','_calculateOverflowInContainer','24wjXcBJ','toLowerCase','filter','tagName','right','pin','_setupVisibilityObserver','overflowContainer','_createCalculationContainer','_makeAncestorsVisible','ck-calculation-container','width','_overflowChips','some','visible','setContainerElement','extendTemplate','_createShowMoreBalloonPanelView','clear','_findTargetContainer','_showMoreBalloonPanelView','undefined','reorganizeChips','content','5905559alAHtw','top','bottom','_applyCalculationStyles','add','absolute','36760NuxoPv','clientHeight','isOn','length','hidden','hideBalloonPanel','_distributeChips','showBalloonPanel','calculationContainer','_updateBalloonContent','visible\x20!important','includes','_createShowMoreButton','observe','57JvEJTV','display','37974RoPJLR','_isContainerVisible','textContent','_checkAndHandleOverflow','controlsButton','createElement','overflowChips','_locale','_config','pointerEvents','remove','485vjjwHk','abs','_bodyCollection','documentElement','maxVisibleRows','pop','innerHeight','left','_ancestorsToRestore','isIntersecting','slice','_visibleChips','block\x20!important','120442oMnJmw','_handleShowMoreButtonClick','boxSizing'];_0x1200=function(){return _0x4d8ad3;};return _0x1200();}const _0x36457b=_0x1fb5;function _0x1fb5(_0x2ec76b,_0x1864c0){const _0x1200b9=_0x1200();return _0x1fb5=function(_0x1fb556,_0xfcaba){_0x1fb556=_0x1fb556-0x7a;let _0x3816e7=_0x1200b9[_0x1fb556];return _0x3816e7;},_0x1fb5(_0x2ec76b,_0x1864c0);}(function(_0x18e6c0,_0x475130){const _0x1ba9a5=_0x1fb5,_0x63d519=_0x18e6c0();while(!![]){try{const _0xcd6d3e=-parseInt(_0x1ba9a5(0x7c))/0x1*(parseInt(_0x1ba9a5(0x106))/0x2)+parseInt(_0x1ba9a5(0xaa))/0x3*(-parseInt(_0x1ba9a5(0xa2))/0x4)+-parseInt(_0x1ba9a5(0x89))/0x5*(-parseInt(_0x1ba9a5(0x7e))/0x6)+-parseInt(_0x1ba9a5(0x9f))/0x7*(parseInt(_0x1ba9a5(0xc3))/0x8)+parseInt(_0x1ba9a5(0xc9))/0x9*(-parseInt(_0x1ba9a5(0xd2))/0xa)+-parseInt(_0x1ba9a5(0x100))/0xb*(parseInt(_0x1ba9a5(0xe8))/0xc)+-parseInt(_0x1ba9a5(0xbe))/0xd*(-parseInt(_0x1ba9a5(0x96))/0xe);if(_0xcd6d3e===_0x475130)break;else _0x63d519['push'](_0x63d519['shift']());}catch(_0x369bcd){_0x63d519['push'](_0x63d519['shift']());}}}(_0x1200,0x99393));import{View as _0x3402cd,BalloonPanelView as _0x41059f,ButtonView as _0xe7ba15,clickOutsideHandler as _0x1f9741}from'ckeditor5/src/ui.js';import{Collection as _0x54815a}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x36457b(0xa9);export class AIChatChipsOverflowManager{[_0x36457b(0x85)];[_0x36457b(0x86)];[_0x36457b(0x94)];[_0x36457b(0xf4)];[_0x36457b(0xa7)]=null;[_0x36457b(0xfc)]=null;[_0x36457b(0x9c)]=null;[_0x36457b(0x8b)];[_0x36457b(0xca)]=null;[_0x36457b(0xe0)]=null;[_0x36457b(0xa6)]=!0x1;constructor(_0x89916f,_0x9ef9e9,_0x3d1034,_0x2ff3ac,_0x139c0a){const _0x69fe9c=_0x36457b;this[_0x69fe9c(0x85)]=_0x89916f,this[_0x69fe9c(0x94)]=_0x9ef9e9,this[_0x69fe9c(0x86)]={...hn,..._0x3d1034,'cssClasses':{'controlsButton':'','calculationContainer':_0x69fe9c(0xf2),..._0x3d1034[_0x69fe9c(0xad)]}},this[_0x69fe9c(0xf4)]=new _0x54815a(),this[_0x69fe9c(0x8b)]=_0x2ff3ac,this[_0x69fe9c(0xca)]=_0x139c0a||null;}[_0x36457b(0xf7)](_0x37c3c8){const _0x3e4bfc=_0x36457b;this[_0x3e4bfc(0xe0)]&&(this[_0x3e4bfc(0xe0)][_0x3e4bfc(0xcf)](),this[_0x3e4bfc(0xe0)]=null),this[_0x3e4bfc(0x9c)]=_0x37c3c8,this[_0x3e4bfc(0xee)]();}get[_0x36457b(0xcb)](){const _0x377822=_0x36457b;return this[_0x377822(0xa7)];}get[_0x36457b(0x84)](){const _0x2119e0=_0x36457b;return this[_0x2119e0(0xf4)];}[_0x36457b(0xfe)](){requestAnimationFrame(()=>{const _0x3ed0fd=_0x1fb5;this[_0x3ed0fd(0x81)]();});}[_0x36457b(0x10d)](){const _0x56e0bb=_0x36457b;this[_0x56e0bb(0xa7)]&&this[_0x56e0bb(0xfc)]&&(this[_0x56e0bb(0x10f)](),this[_0x56e0bb(0xa7)][_0x56e0bb(0x108)]=!0x0,this[_0x56e0bb(0xfc)][_0x56e0bb(0x9e)](),this[_0x56e0bb(0xfc)][_0x56e0bb(0xed)]({'target':this[_0x56e0bb(0xa7)][_0x56e0bb(0xd5)],'limiter':document[_0x56e0bb(0xdd)](_0x56e0bb(0xe5))}));}[_0x36457b(0x10b)](){const _0x2bff12=_0x36457b;this[_0x2bff12(0xa7)]&&this[_0x2bff12(0xfc)]&&(this[_0x2bff12(0xa7)][_0x2bff12(0x108)]=!0x1,this[_0x2bff12(0xfc)][_0x2bff12(0xd6)]());}[_0x36457b(0xfa)](){const _0x4fb1ce=_0x36457b;this[_0x4fb1ce(0xf4)][_0x4fb1ce(0xfa)](),this[_0x4fb1ce(0x10b)](),this[_0x4fb1ce(0xc1)](),this[_0x4fb1ce(0xa7)]&&(this[_0x4fb1ce(0xa7)][_0x4fb1ce(0xd8)]=''),this[_0x4fb1ce(0xfc)]&&this[_0x4fb1ce(0xfc)][_0x4fb1ce(0xff)][_0x4fb1ce(0xfa)]();}[_0x36457b(0x99)](){const _0x38d35e=_0x36457b;this[_0x38d35e(0xe0)]&&(this[_0x38d35e(0xe0)][_0x38d35e(0xcf)](),this[_0x38d35e(0xe0)]=null),this[_0x38d35e(0xa7)]&&(this[_0x38d35e(0xa7)][_0x38d35e(0x99)](),this[_0x38d35e(0xa7)]=null),this[_0x38d35e(0xfc)]&&(this[_0x38d35e(0xfc)][_0x38d35e(0x99)](),this[_0x38d35e(0xfc)]=null);}[_0x36457b(0x81)](){const _0x322c2a=_0x36457b;if(!this[_0x322c2a(0x9c)])return;if(!this[_0x322c2a(0x7f)]())return void(this[_0x322c2a(0xa6)]=!0x0);this[_0x322c2a(0xa6)]=!0x1;const _0x323a22=[...this[_0x322c2a(0x94)],...this[_0x322c2a(0xf4)]],_0x39efce=this[_0x322c2a(0xf0)](),_0x2c4e7e=this[_0x322c2a(0xe7)](_0x39efce,_0x323a22),_0x53072c=_0x39efce[_0x322c2a(0x91)];_0x53072c&&this[_0x322c2a(0xcd)](_0x53072c),_0x39efce[_0x322c2a(0x88)](),this[_0x322c2a(0x9b)](_0x323a22,_0x2c4e7e);}[_0x36457b(0x7a)](){const _0x3ba590=_0x36457b;this[_0x3ba590(0xa7)]=this[_0x3ba590(0xa1)](),this[_0x3ba590(0xfc)]=this[_0x3ba590(0xf9)](),this[_0x3ba590(0xa7)][_0x3ba590(0xc4)](),this[_0x3ba590(0x9c)][_0x3ba590(0xbd)](this[_0x3ba590(0xa7)][_0x3ba590(0xd5)]),this[_0x3ba590(0xa7)]['on'](_0x3ba590(0xac),()=>{const _0x35f27d=_0x3ba590;this[_0x35f27d(0x97)]();}),_0x1f9741({'emitter':this[_0x3ba590(0xfc)],'contextElements':[this[_0x3ba590(0xfc)][_0x3ba590(0xd5)],this[_0x3ba590(0xa7)][_0x3ba590(0xd5)]],'callback':()=>this[_0x3ba590(0x10b)](),'activator':()=>this[_0x3ba590(0xa7)][_0x3ba590(0x108)]});}[_0x36457b(0xa1)](){const _0x44a49a=_0x36457b,_0x744c64=new _0xe7ba15(this[_0x44a49a(0x85)]);_0x744c64[_0x44a49a(0xdf)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x23ffcf=[this[_0x44a49a(0x86)][_0x44a49a(0xad)][_0x44a49a(0xd7)]];return this[_0x44a49a(0x86)][_0x44a49a(0xad)][_0x44a49a(0x82)]&&_0x23ffcf[_0x44a49a(0xa5)](this[_0x44a49a(0x86)][_0x44a49a(0xad)][_0x44a49a(0x82)]),_0x744c64[_0x44a49a(0xf8)]({'attributes':{'class':_0x23ffcf}}),_0x744c64;}[_0x36457b(0xf9)](){const _0x175289=_0x36457b,_0x413cf3=new _0x41059f(this[_0x175289(0x85)]);return _0x413cf3[_0x175289(0xf8)]({'attributes':{'class':this[_0x175289(0x86)][_0x175289(0xad)][_0x175289(0xbc)]}}),this[_0x175289(0x8b)][_0x175289(0x104)](_0x413cf3),_0x413cf3;}[_0x36457b(0x10f)](){const _0x2a9732=_0x36457b;if(this[_0x2a9732(0xfc)]&&(this[_0x2a9732(0xfc)][_0x2a9732(0xff)][_0x2a9732(0xfa)](),this[_0x2a9732(0xf4)][_0x2a9732(0x109)]>0x0)){this[_0x2a9732(0xf4)][_0x2a9732(0xc8)](_0x29ce72=>{const _0x2fc59d=_0x2a9732;_0x29ce72[_0x2fc59d(0xae)]();});const _0x3598f=new _0x3402cd(this[_0x2a9732(0x85)]);_0x3598f[_0x2a9732(0xab)]({'tag':_0x2a9732(0xc2),'attributes':{'class':this[_0x2a9732(0x86)][_0x2a9732(0xad)][_0x2a9732(0xef)]},'children':this[_0x2a9732(0xf4)]}),this[_0x2a9732(0xfc)][_0x2a9732(0xff)][_0x2a9732(0x104)](_0x3598f);}}[_0x36457b(0x97)](){const _0x2ac94a=_0x36457b;this[_0x2ac94a(0xa7)][_0x2ac94a(0x108)]?this[_0x2ac94a(0x10b)]():this[_0x2ac94a(0x10d)]();}[_0x36457b(0xc1)](){const _0x23f81c=_0x36457b,_0x61e59=this[_0x23f81c(0xf4)][_0x23f81c(0x109)]>0x0;this[_0x23f81c(0xa7)]?.[_0x23f81c(0xd5)]&&(this[_0x23f81c(0xa7)][_0x23f81c(0xd5)][_0x23f81c(0xde)][_0x23f81c(0x7d)]=_0x61e59?'':_0x23f81c(0xdb));}[_0x36457b(0xdc)](){const _0x223ec5=_0x36457b;this[_0x223ec5(0xa7)]?.[_0x223ec5(0x108)]&&this[_0x223ec5(0xfc)]?.[_0x223ec5(0xc6)]&&this[_0x223ec5(0xa7)][_0x223ec5(0xd5)]&&this[_0x223ec5(0xfc)][_0x223ec5(0xed)]({'target':this[_0x223ec5(0xa7)][_0x223ec5(0xd5)],'limiter':document[_0x223ec5(0xdd)](_0x223ec5(0xe5))});}[_0x36457b(0xfb)](_0x2a2631){const _0x145604=_0x36457b,_0x1b3a18=this[_0x145604(0x9c)]?.[_0x145604(0xeb)][_0x145604(0xe9)]()||_0x145604(0xc2),_0x42d5c6=this[_0x145604(0x9c)]?.[_0x145604(0xbf)];if(_0x42d5c6){const _0x37f1e4=_0x42d5c6[0x0]||'',_0x124630=_0x2a2631[_0x145604(0xdd)]('.'+_0x37f1e4),_0x28afce=_0x2a2631[_0x145604(0xdd)](_0x1b3a18);return _0x124630||_0x28afce||_0x2a2631;}return _0x2a2631[_0x145604(0xdd)](_0x1b3a18)||_0x2a2631;}[_0x36457b(0xa8)](){const _0x58bc4a=_0x36457b,_0x4eaa35=this[_0x58bc4a(0xca)]?.[_0x58bc4a(0xd5)]||this[_0x58bc4a(0x9c)];if(!_0x4eaa35)return an;const _0x2583dc=window[_0x58bc4a(0xda)](_0x4eaa35)[_0x58bc4a(0xf3)];if(_0x58bc4a(0x9a)===_0x2583dc||_0x58bc4a(0xc7)===_0x2583dc||!_0x2583dc){const _0x588361=_0x4eaa35[_0x58bc4a(0xb3)];if(_0x588361){const _0x3e7463=window[_0x58bc4a(0xda)](_0x588361);return _0x58bc4a(0x9a)!==_0x3e7463[_0x58bc4a(0xf3)]?_0x3e7463[_0x58bc4a(0xf3)]:an;}return an;}return _0x2583dc;}[_0x36457b(0x103)](_0x12068e,_0x3fd49a){const _0x3f423c=_0x36457b;this[_0x3f423c(0x86)][_0x3f423c(0xad)][_0x3f423c(0x10e)]&&_0x12068e[_0x3f423c(0xbf)][_0x3f423c(0x104)](this[_0x3f423c(0x86)][_0x3f423c(0xad)][_0x3f423c(0x10e)]),_0x12068e[_0x3f423c(0xde)][_0x3f423c(0xf3)]=_0x3fd49a,_0x12068e[_0x3f423c(0xde)][_0x3f423c(0xd1)]=_0x3f423c(0x105),_0x12068e[_0x3f423c(0xde)][_0x3f423c(0x101)]=_0x3f423c(0xd0),_0x12068e[_0x3f423c(0xde)][_0x3f423c(0x90)]=_0x3f423c(0xd0),_0x12068e[_0x3f423c(0xde)][_0x3f423c(0xe4)]='0',_0x12068e[_0x3f423c(0xde)][_0x3f423c(0x87)]=_0x3f423c(0xdb),_0x12068e[_0x3f423c(0xde)][_0x3f423c(0xe1)]='-1',_0x12068e[_0x3f423c(0xde)][_0x3f423c(0xd9)]=_0x3f423c(0x110),_0x12068e[_0x3f423c(0xde)][_0x3f423c(0x7d)]=_0x3f423c(0x95),_0x12068e[_0x3f423c(0xde)][_0x3f423c(0x98)]=_0x3f423c(0xd3);}[_0x36457b(0xcd)](_0x4212c0){const _0x1129d9=_0x36457b;_0x4212c0[_0x1129d9(0xc8)](({element:_0x3d0d08,originalDisplay:_0xe9f9ba,originalVisibility:_0xdcc5f4})=>{const _0x4590ed=_0x1129d9;_0x3d0d08[_0x4590ed(0xde)][_0x4590ed(0x7d)]=_0xe9f9ba,_0x3d0d08[_0x4590ed(0xde)][_0x4590ed(0xd9)]=_0xdcc5f4;});}[_0x36457b(0xf1)](_0x56a03e){const _0xec6c7d=_0x36457b,_0x8b48d2=[];let _0x4f1678=_0x56a03e;for(;_0x4f1678&&_0x4f1678!==document[_0xec6c7d(0xb4)];){const _0x3fb566=window[_0xec6c7d(0xda)](_0x4f1678);_0xec6c7d(0xdb)!==_0x3fb566[_0xec6c7d(0x7d)]&&_0xec6c7d(0x10a)!==_0x3fb566[_0xec6c7d(0xd9)]||(_0x8b48d2[_0xec6c7d(0xa5)]({'element':_0x4f1678,'originalDisplay':_0x4f1678[_0xec6c7d(0xde)][_0xec6c7d(0x7d)],'originalVisibility':_0x4f1678[_0xec6c7d(0xde)][_0xec6c7d(0xd9)]}),_0x4f1678[_0xec6c7d(0xde)][_0xec6c7d(0x7d)]=_0xec6c7d(0xbb),_0x4f1678[_0xec6c7d(0xde)][_0xec6c7d(0xd9)]=_0xec6c7d(0xf6)),_0x4f1678=_0x4f1678[_0xec6c7d(0xb3)];}return _0x8b48d2;}[_0x36457b(0xb2)](){const _0x21313c=_0x36457b;let _0x1dc1d5,_0xf42c15;return this[_0x21313c(0xca)]?.[_0x21313c(0xd5)]?(_0x1dc1d5=this[_0x21313c(0xca)][_0x21313c(0xd5)][_0x21313c(0xb1)](!0x0),_0xf42c15=this[_0x21313c(0xfb)](_0x1dc1d5)):(_0x1dc1d5=document[_0x21313c(0x83)](_0x21313c(0xc2)),_0xf42c15=_0x1dc1d5),{'calculationContainer':_0x1dc1d5,'targetContainer':_0xf42c15};}[_0x36457b(0xf0)](){const _0x17321a=_0x36457b,{calculationContainer:_0x1263e9,targetContainer:_0x67b018}=this[_0x17321a(0xb2)](),_0x2f3adb=this[_0x17321a(0xa8)]();this[_0x17321a(0x103)](_0x1263e9,_0x2f3adb);const _0x3661f5=this[_0x17321a(0xca)]?.[_0x17321a(0xd5)]||this[_0x17321a(0x9c)],_0x19fe90=_0x3661f5?.[_0x17321a(0xb3)];_0x19fe90?_0x19fe90[_0x17321a(0xbd)](_0x1263e9):document[_0x17321a(0xb4)][_0x17321a(0xbd)](_0x1263e9),_0x1263e9[_0x17321a(0x9d)]=_0x67b018;const _0x5281e6=this[_0x17321a(0xf1)](_0x19fe90||null);return _0x1263e9[_0x17321a(0xba)],_0x1263e9[_0x17321a(0x91)]=_0x5281e6,_0x1263e9;}[_0x36457b(0xe7)](_0x2f4709,_0xb5401a){const _0x2d83fd=_0x36457b,_0x3e6873=_0x2f4709[_0x2d83fd(0x9d)]||_0x2f4709,_0x5fbb81=[],{rowCount:_0x36a30d}=this[_0x2d83fd(0xce)](_0x3e6873,_0xb5401a);if(_0x36a30d<=this[_0x2d83fd(0x86)][_0x2d83fd(0x8d)])return _0x5fbb81;const _0x3dd329=_0xb5401a[_0x2d83fd(0x93)]();for(;_0x3dd329[_0x2d83fd(0x109)]>0x0;){if(this[_0x2d83fd(0xc0)](_0x2f4709,_0x3e6873,_0x3dd329)){const _0x4bdba3=_0xb5401a[_0x2d83fd(0xea)](_0x10c5eb=>!_0x3dd329[_0x2d83fd(0x111)](_0x10c5eb));_0x5fbb81[_0x2d83fd(0xa5)](..._0x4bdba3);break;}if(!_0x3dd329[_0x2d83fd(0x8e)]())break;}return _0x5fbb81;}[_0x36457b(0xce)](_0x4399a0,_0x850871){const _0xa472f2=_0x36457b;_0x4399a0[_0xa472f2(0xc5)]='',_0x850871[_0xa472f2(0xc8)](_0x3ec8f8=>{const _0x2cb190=_0xa472f2;if(_0x3ec8f8[_0x2cb190(0xd5)]){const _0x5f01b2=_0x3ec8f8[_0x2cb190(0xd5)][_0x2cb190(0xb1)](!0x0);_0x4399a0[_0x2cb190(0xbd)](_0x5f01b2);}}),_0x4399a0[_0xa472f2(0xba)];const _0x5b3361=_0x4399a0[_0xa472f2(0xa3)],_0x2e287d=[];return Array[_0xa472f2(0xb5)](_0x5b3361)[_0xa472f2(0xc8)](_0x33f1ca=>{const _0x371ede=_0xa472f2,_0x46b1c9=_0x33f1ca[_0x371ede(0xe2)]()[_0x371ede(0x101)];_0x2e287d[_0x371ede(0xf5)](_0x3c167f=>Math[_0x371ede(0x8a)](_0x3c167f-_0x46b1c9)<this[_0x371ede(0x86)][_0x371ede(0xb8)])||_0x2e287d[_0x371ede(0xa5)](_0x46b1c9);}),{'rowCount':_0x2e287d[_0xa472f2(0x109)]};}[_0x36457b(0xb6)](){const _0x10633b=_0x36457b,_0x47f25d=document[_0x10633b(0x83)](_0x10633b(0xb9));return _0x47f25d[_0x10633b(0xb7)]=this[_0x10633b(0x86)][_0x10633b(0xad)][_0x10633b(0xd7)],this[_0x10633b(0x86)][_0x10633b(0xad)][_0x10633b(0x82)]&&_0x47f25d[_0x10633b(0xbf)][_0x10633b(0x104)](this[_0x10633b(0x86)][_0x10633b(0xad)][_0x10633b(0x82)]),_0x47f25d[_0x10633b(0x80)]=_0x10633b(0xe3),_0x47f25d;}[_0x36457b(0xc0)](_0x2d0249,_0x1ca43d,_0x524211){const _0x3768ed=_0x36457b;this[_0x3768ed(0xce)](_0x1ca43d,_0x524211);const _0x524559=this[_0x3768ed(0xb6)]();_0x2d0249[_0x3768ed(0xbd)](_0x524559),_0x2d0249[_0x3768ed(0xba)];const _0x165324=[..._0x1ca43d[_0x3768ed(0xa3)],_0x524559],_0x19fb2b=[];_0x165324[_0x3768ed(0xc8)](_0x183e46=>{const _0x3811ab=_0x3768ed,_0x4072a0=_0x183e46[_0x3811ab(0xe2)]()[_0x3811ab(0x101)];_0x19fb2b[_0x3811ab(0xf5)](_0x3d342f=>Math[_0x3811ab(0x8a)](_0x3d342f-_0x4072a0)<this[_0x3811ab(0x86)][_0x3811ab(0xb8)])||_0x19fb2b[_0x3811ab(0xa5)](_0x4072a0);});const _0x5c2f01=_0x19fb2b[_0x3768ed(0x109)];return _0x524559[_0x3768ed(0x88)](),_0x5c2f01<=this[_0x3768ed(0x86)][_0x3768ed(0x8d)];}[_0x36457b(0x10c)](_0x209867,_0x344209){const _0x12c707=_0x36457b;this[_0x12c707(0x94)][_0x12c707(0xfa)](),this[_0x12c707(0xf4)][_0x12c707(0xfa)](),_0x209867[_0x12c707(0xc8)](_0x1c654d=>{const _0x583380=_0x12c707;_0x344209[_0x583380(0x111)](_0x1c654d)?this[_0x583380(0xf4)][_0x583380(0x104)](_0x1c654d):this[_0x583380(0x94)][_0x583380(0x104)](_0x1c654d);});}[_0x36457b(0xb0)](_0x38880c){const _0x4fecc2=_0x36457b;if(_0x38880c>0x0&&!this[_0x4fecc2(0xa7)]&&this[_0x4fecc2(0x7a)](),_0x38880c>0x0&&this[_0x4fecc2(0xa7)]){const _0x3266b5=''+this[_0x4fecc2(0x86)][_0x4fecc2(0xd4)]+(_0x38880c<0x63?_0x38880c:'99');this[_0x4fecc2(0xa7)][_0x4fecc2(0xd8)]=_0x3266b5;}this[_0x4fecc2(0x10f)](),this[_0x4fecc2(0xc1)](),this[_0x4fecc2(0xdc)]();}[_0x36457b(0x9b)](_0xbd60d8,_0x22c739){const _0x463238=_0x36457b;this[_0x463238(0x10c)](_0xbd60d8,_0x22c739),this[_0x463238(0xb0)](_0x22c739[_0x463238(0x109)]);}[_0x36457b(0xee)](){const _0x245247=_0x36457b;this[_0x245247(0x9c)]&&_0x245247(0xfd)!=typeof IntersectionObserver&&(this[_0x245247(0xe0)]=new IntersectionObserver(_0x2a026e=>{const _0x4615c5=_0x245247;_0x2a026e[0x0][_0x4615c5(0x92)]&&this[_0x4615c5(0xa6)]&&requestAnimationFrame(()=>{const _0x52a541=_0x4615c5;this[_0x52a541(0x81)]();});},{'threshold':0.01,'rootMargin':_0x245247(0xa4)}),this[_0x245247(0xe0)][_0x245247(0x7b)](this[_0x245247(0x9c)]));}[_0x36457b(0x7f)](){const _0x433cf1=_0x36457b;if(!this[_0x433cf1(0x9c)])return!0x1;if(!this[_0x433cf1(0x9c)][_0x433cf1(0xcc)])return!0x1;const _0xa35901=this[_0x433cf1(0x9c)][_0x433cf1(0xe2)]();if(0x0===_0xa35901[_0x433cf1(0xf3)]||0x0===_0xa35901[_0x433cf1(0xaf)])return!0x1;const _0x400f38=window[_0x433cf1(0x8f)]||document[_0x433cf1(0x8c)][_0x433cf1(0x107)],_0x280abb=window[_0x433cf1(0xa0)]||document[_0x433cf1(0x8c)][_0x433cf1(0xe6)],_0x13e808=0xc8;return _0xa35901[_0x433cf1(0x102)]>=-0xc8&&_0xa35901[_0x433cf1(0x101)]<=_0x400f38+_0x13e808&&_0xa35901[_0x433cf1(0xec)]>=-0xc8&&_0xa35901[_0x433cf1(0x90)]<=_0x280abb+_0x13e808;}}
|
|
23
|
+
const _0x331c88=_0x3bf2;(function(_0xfb714c,_0x384375){const _0x2678bd=_0x3bf2,_0x2c1064=_0xfb714c();while(!![]){try{const _0x5a3be3=-parseInt(_0x2678bd(0xc7))/0x1*(-parseInt(_0x2678bd(0xe6))/0x2)+-parseInt(_0x2678bd(0xc1))/0x3*(parseInt(_0x2678bd(0xed))/0x4)+-parseInt(_0x2678bd(0xf2))/0x5*(-parseInt(_0x2678bd(0xa2))/0x6)+parseInt(_0x2678bd(0x8d))/0x7*(-parseInt(_0x2678bd(0xc3))/0x8)+-parseInt(_0x2678bd(0x6f))/0x9+-parseInt(_0x2678bd(0xa6))/0xa*(parseInt(_0x2678bd(0x87))/0xb)+parseInt(_0x2678bd(0x7b))/0xc*(parseInt(_0x2678bd(0xf9))/0xd);if(_0x5a3be3===_0x384375)break;else _0x2c1064['push'](_0x2c1064['shift']());}catch(_0x452f4b){_0x2c1064['push'](_0x2c1064['shift']());}}}(_0x3099,0x308e9));function _0x3bf2(_0x7971e1,_0x4bc379){const _0x30990a=_0x3099();return _0x3bf2=function(_0x3bf2f0,_0x521258){_0x3bf2f0=_0x3bf2f0-0x6f;let _0x2ea22a=_0x30990a[_0x3bf2f0];return _0x2ea22a;},_0x3bf2(_0x7971e1,_0x4bc379);}function _0x3099(){const _0x4998f9=['height','0px','_handleShowMoreButtonClick','cssClasses','1390446PEgJCf','querySelector','controlsButton','execute','10ybFehv','ck-calculation-container','children','tagName','forEach','some','_distributeChips','hideBalloonPanel','_restoreAncestorVisibility','pointerEvents','_createShowMoreButtonView','visible','getBoundingClientRect','includes','reorganizeChips','body','disableAnimationOnEnter','zIndex','clear','_isContainerVisible','destroy','_containerElement','-9999px','_bodyCollection','setContainerElement','toLowerCase','bottom','3Uvznjw','position','24120yFhUZy','_createShowMoreButton','50px','none','16iyUKWr','innerHTML','style','push','pin','left','show','from','width','_setupVisibilityObserver','div','button','disconnect','element','abs','_overflowChips','top','pop','parentElement','filter','_pendingCalculation','calculationContainer','_checkAndHandleOverflow','offsetWidth','maxVisibleRows','_config','opacity','visibility','remove','_ancestorsToRestore','overflowChips','17594HAgHcM','content','_renderChipsAndCountRows','label','observe','+\x201','300px','1299636GORNbA','render','_locale','showMoreButton','length','5fIupzv','clientWidth','boxSizing','rowDetectionTolerance','isIntersecting','display','_calculateContainerWidth','525668PFIXFE','_showMoreButtonView','isVisible','setTemplate','_applyOverflowResults','createElement','isConnected','_calculateOverflowInContainer','_createShowMoreBalloonPanelView','isOn','_findTargetContainer','add','hidden','750321EEliZW','border-box','block','.ck-ai-chat','cloneNode','overflowContainer','getComputedStyle','appendChild','_createMockButton','_updateShowMoreButtonVisibility','_createCalculationContainer','innerHeight','240SgYSVC','classList','right','_parentView','slice','absolute','_repinBalloonPanel','_createContainerElements','_makeAncestorsVisible','set','_targetContainer','_applyCalculationStyles','2235211sGVSRu','showMoreBalloon','_visibleChips','textContent','showBalloonPanel','documentElement','861rGPcfA','_showMoreBalloonPanelView','showMoreLabelPrefix','innerWidth','block\x20!important','extendTemplate','className','undefined','hide','clientHeight','_intersectionObserver','visible\x20!important','_testButtonFit','_updateOverflowUI','auto','showMoreButtonView','_updateBalloonContent'];_0x3099=function(){return _0x4998f9;};return _0x3099();}import{View as _0x27c4c3,BalloonPanelView as _0x1e4904,ButtonView as _0x18472b,clickOutsideHandler as _0x1f79a0}from'ckeditor5/src/ui.js';import{Collection as _0x392554}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x331c88(0xec);export class AIChatChipsOverflowManager{[_0x331c88(0xef)];[_0x331c88(0xe0)];[_0x331c88(0x89)];[_0x331c88(0xd6)];[_0x331c88(0xfa)]=null;[_0x331c88(0x8e)]=null;[_0x331c88(0xbb)]=null;[_0x331c88(0xbd)];[_0x331c88(0x7e)]=null;[_0x331c88(0x97)]=null;[_0x331c88(0xdb)]=!0x1;constructor(_0x5d093b,_0x26b5c6,_0x598684,_0x2fe18b,_0x5e6fe0){const _0x54505f=_0x331c88;this[_0x54505f(0xef)]=_0x5d093b,this[_0x54505f(0x89)]=_0x26b5c6,this[_0x54505f(0xe0)]={...wn,..._0x598684,'cssClasses':{'controlsButton':'','calculationContainer':_0x54505f(0xa7),..._0x598684[_0x54505f(0xa1)]}},this[_0x54505f(0xd6)]=new _0x392554(),this[_0x54505f(0xbd)]=_0x2fe18b,this[_0x54505f(0x7e)]=_0x5e6fe0||null;}[_0x331c88(0xbe)](_0x2c7eb2){const _0x5af7de=_0x331c88;this[_0x5af7de(0x97)]&&(this[_0x5af7de(0x97)][_0x5af7de(0xd3)](),this[_0x5af7de(0x97)]=null),this[_0x5af7de(0xbb)]=_0x2c7eb2,this[_0x5af7de(0xd0)]();}get[_0x331c88(0x9c)](){const _0x201c1d=_0x331c88;return this[_0x201c1d(0xfa)];}get[_0x331c88(0xe5)](){const _0x47ab6c=_0x331c88;return this[_0x47ab6c(0xd6)];}[_0x331c88(0xb4)](){requestAnimationFrame(()=>{const _0x51abef=_0x3bf2;this[_0x51abef(0xdd)]();});}[_0x331c88(0x8b)](){const _0x4aec00=_0x331c88;this[_0x4aec00(0xfa)]&&this[_0x4aec00(0x8e)]&&(this[_0x4aec00(0x9d)](),this[_0x4aec00(0xfa)][_0x4aec00(0x102)]=!0x0,this[_0x4aec00(0x8e)][_0x4aec00(0xcd)](),this[_0x4aec00(0x8e)][_0x4aec00(0xcb)]({'target':this[_0x4aec00(0xfa)][_0x4aec00(0xd4)],'limiter':document[_0x4aec00(0xa3)](_0x4aec00(0x72))}));}[_0x331c88(0xad)](){const _0x30eb7e=_0x331c88;this[_0x30eb7e(0xfa)]&&this[_0x30eb7e(0x8e)]&&(this[_0x30eb7e(0xfa)][_0x30eb7e(0x102)]=!0x1,this[_0x30eb7e(0x8e)][_0x30eb7e(0x95)]());}[_0x331c88(0xb8)](){const _0x5d5a31=_0x331c88;this[_0x5d5a31(0xd6)][_0x5d5a31(0xb8)](),this[_0x5d5a31(0xad)](),this[_0x5d5a31(0x78)](),this[_0x5d5a31(0xfa)]&&(this[_0x5d5a31(0xfa)][_0x5d5a31(0xe9)]=''),this[_0x5d5a31(0x8e)]&&this[_0x5d5a31(0x8e)][_0x5d5a31(0xe7)][_0x5d5a31(0xb8)]();}[_0x331c88(0xba)](){const _0x22ad60=_0x331c88;this[_0x22ad60(0x97)]&&(this[_0x22ad60(0x97)][_0x22ad60(0xd3)](),this[_0x22ad60(0x97)]=null),this[_0x22ad60(0xfa)]&&(this[_0x22ad60(0xfa)][_0x22ad60(0xba)](),this[_0x22ad60(0xfa)]=null),this[_0x22ad60(0x8e)]&&(this[_0x22ad60(0x8e)][_0x22ad60(0xba)](),this[_0x22ad60(0x8e)]=null);}[_0x331c88(0xdd)](){const _0x5e2b9d=_0x331c88;if(!this[_0x5e2b9d(0xbb)])return;if(!this[_0x5e2b9d(0xb9)]())return void(this[_0x5e2b9d(0xdb)]=!0x0);this[_0x5e2b9d(0xdb)]=!0x1;const _0xbc7b72=[...this[_0x5e2b9d(0x89)],...this[_0x5e2b9d(0xd6)]],_0x1eb479=this[_0x5e2b9d(0x79)](),_0x568ade=this[_0x5e2b9d(0x100)](_0x1eb479,_0xbc7b72),_0x160f54=_0x1eb479[_0x5e2b9d(0xe4)];_0x160f54&&this[_0x5e2b9d(0xae)](_0x160f54),_0x1eb479[_0x5e2b9d(0xe3)](),this[_0x5e2b9d(0xfd)](_0xbc7b72,_0x568ade);}[_0x331c88(0xc4)](){const _0x2edb21=_0x331c88;this[_0x2edb21(0xfa)]=this[_0x2edb21(0xb0)](),this[_0x2edb21(0x8e)]=this[_0x2edb21(0x101)](),this[_0x2edb21(0xfa)][_0x2edb21(0xee)](),this[_0x2edb21(0xbb)][_0x2edb21(0x76)](this[_0x2edb21(0xfa)][_0x2edb21(0xd4)]),this[_0x2edb21(0xfa)]['on'](_0x2edb21(0xa5),()=>{const _0x23138d=_0x2edb21;this[_0x23138d(0xa0)]();}),_0x1f79a0({'emitter':this[_0x2edb21(0x8e)],'contextElements':[this[_0x2edb21(0x8e)][_0x2edb21(0xd4)],this[_0x2edb21(0xfa)][_0x2edb21(0xd4)]],'callback':()=>this[_0x2edb21(0xad)](),'activator':()=>this[_0x2edb21(0xfa)][_0x2edb21(0x102)]});}[_0x331c88(0xb0)](){const _0x29e494=_0x331c88,_0x2d0a78=new _0x18472b(this[_0x29e494(0xef)]);_0x2d0a78[_0x29e494(0x84)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x113bd4=[this[_0x29e494(0xe0)][_0x29e494(0xa1)][_0x29e494(0xf0)]];return this[_0x29e494(0xe0)][_0x29e494(0xa1)][_0x29e494(0xa4)]&&_0x113bd4[_0x29e494(0xca)](this[_0x29e494(0xe0)][_0x29e494(0xa1)][_0x29e494(0xa4)]),_0x2d0a78[_0x29e494(0x92)]({'attributes':{'class':_0x113bd4}}),_0x2d0a78;}[_0x331c88(0x101)](){const _0x16b52b=_0x331c88,_0x5a27b5=new _0x1e4904(this[_0x16b52b(0xef)]);return _0x5a27b5[_0x16b52b(0x92)]({'attributes':{'class':this[_0x16b52b(0xe0)][_0x16b52b(0xa1)][_0x16b52b(0x88)]}}),this[_0x16b52b(0xbd)][_0x16b52b(0x104)](_0x5a27b5),_0x5a27b5;}[_0x331c88(0x9d)](){const _0x18d0cb=_0x331c88;if(this[_0x18d0cb(0x8e)]&&(this[_0x18d0cb(0x8e)][_0x18d0cb(0xe7)][_0x18d0cb(0xb8)](),this[_0x18d0cb(0xd6)][_0x18d0cb(0xf1)]>0x0)){this[_0x18d0cb(0xd6)][_0x18d0cb(0xaa)](_0xfc7e71=>{const _0x52026f=_0x18d0cb;_0xfc7e71[_0x52026f(0xb6)]();});const _0x146c81=new _0x27c4c3(this[_0x18d0cb(0xef)]);_0x146c81[_0x18d0cb(0xfc)]({'tag':_0x18d0cb(0xd1),'attributes':{'class':this[_0x18d0cb(0xe0)][_0x18d0cb(0xa1)][_0x18d0cb(0x74)]},'children':this[_0x18d0cb(0xd6)]}),this[_0x18d0cb(0x8e)][_0x18d0cb(0xe7)][_0x18d0cb(0x104)](_0x146c81);}}[_0x331c88(0xa0)](){const _0x1378aa=_0x331c88;this[_0x1378aa(0xfa)][_0x1378aa(0x102)]?this[_0x1378aa(0xad)]():this[_0x1378aa(0x8b)]();}[_0x331c88(0x78)](){const _0x43138d=_0x331c88,_0x4dfd70=this[_0x43138d(0xd6)][_0x43138d(0xf1)]>0x0;this[_0x43138d(0xfa)]?.[_0x43138d(0xd4)]&&(this[_0x43138d(0xfa)][_0x43138d(0xd4)][_0x43138d(0xc9)][_0x43138d(0xf7)]=_0x4dfd70?'':_0x43138d(0xc6));}[_0x331c88(0x81)](){const _0x188452=_0x331c88;this[_0x188452(0xfa)]?.[_0x188452(0x102)]&&this[_0x188452(0x8e)]?.[_0x188452(0xfb)]&&this[_0x188452(0xfa)][_0x188452(0xd4)]&&this[_0x188452(0x8e)][_0x188452(0xcb)]({'target':this[_0x188452(0xfa)][_0x188452(0xd4)],'limiter':document[_0x188452(0xa3)](_0x188452(0x72))});}[_0x331c88(0x103)](_0x1deb40){const _0x565ce6=_0x331c88,_0x4f723e=this[_0x565ce6(0xbb)]?.[_0x565ce6(0xa9)][_0x565ce6(0xbf)]()||_0x565ce6(0xd1),_0x41c705=this[_0x565ce6(0xbb)]?.[_0x565ce6(0x7c)];if(_0x41c705){const _0x40a073=_0x41c705[0x0]||'',_0x4a6f66=_0x1deb40[_0x565ce6(0xa3)]('.'+_0x40a073),_0x595be8=_0x1deb40[_0x565ce6(0xa3)](_0x4f723e);return _0x4a6f66||_0x595be8||_0x1deb40;}return _0x1deb40[_0x565ce6(0xa3)](_0x4f723e)||_0x1deb40;}[_0x331c88(0xf8)](){const _0x452567=_0x331c88,_0x341fe2=this[_0x452567(0x7e)]?.[_0x452567(0xd4)]||this[_0x452567(0xbb)];if(!_0x341fe2)return dn;const _0x5cd5e7=window[_0x452567(0x75)](_0x341fe2)[_0x452567(0xcf)];if(_0x452567(0x9b)===_0x5cd5e7||_0x452567(0x9f)===_0x5cd5e7||!_0x5cd5e7){const _0x312ac0=_0x341fe2[_0x452567(0xd9)];if(_0x312ac0){const _0x3852ec=window[_0x452567(0x75)](_0x312ac0);return _0x452567(0x9b)!==_0x3852ec[_0x452567(0xcf)]?_0x3852ec[_0x452567(0xcf)]:dn;}return dn;}return _0x5cd5e7;}[_0x331c88(0x86)](_0x18eca1,_0x4d5228){const _0x222d97=_0x331c88;this[_0x222d97(0xe0)][_0x222d97(0xa1)][_0x222d97(0xdc)]&&_0x18eca1[_0x222d97(0x7c)][_0x222d97(0x104)](this[_0x222d97(0xe0)][_0x222d97(0xa1)][_0x222d97(0xdc)]),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xcf)]=_0x4d5228,_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xc2)]=_0x222d97(0x80),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xd7)]=_0x222d97(0xbc),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xcc)]=_0x222d97(0xbc),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xe1)]='0',_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xaf)]=_0x222d97(0xc6),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xb7)]='-1',_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xe2)]=_0x222d97(0x98),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xf7)]=_0x222d97(0x91),_0x18eca1[_0x222d97(0xc9)][_0x222d97(0xf4)]=_0x222d97(0x70);}[_0x331c88(0xae)](_0x2cdf23){const _0x2dcf11=_0x331c88;_0x2cdf23[_0x2dcf11(0xaa)](({element:_0x43b79f,originalDisplay:_0x312e7c,originalVisibility:_0x5b5e46})=>{const _0x1699cf=_0x2dcf11;_0x43b79f[_0x1699cf(0xc9)][_0x1699cf(0xf7)]=_0x312e7c,_0x43b79f[_0x1699cf(0xc9)][_0x1699cf(0xe2)]=_0x5b5e46;});}[_0x331c88(0x83)](_0x58fa24){const _0x23cf0a=_0x331c88,_0x1d78b1=[];let _0x2404cf=_0x58fa24;for(;_0x2404cf&&_0x2404cf!==document[_0x23cf0a(0xb5)];){const _0x2ce972=window[_0x23cf0a(0x75)](_0x2404cf);_0x23cf0a(0xc6)!==_0x2ce972[_0x23cf0a(0xf7)]&&_0x23cf0a(0x105)!==_0x2ce972[_0x23cf0a(0xe2)]||(_0x1d78b1[_0x23cf0a(0xca)]({'element':_0x2404cf,'originalDisplay':_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xf7)],'originalVisibility':_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xe2)]}),_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xf7)]=_0x23cf0a(0x71),_0x2404cf[_0x23cf0a(0xc9)][_0x23cf0a(0xe2)]=_0x23cf0a(0xb1)),_0x2404cf=_0x2404cf[_0x23cf0a(0xd9)];}return _0x1d78b1;}[_0x331c88(0x82)](){const _0x15d5ed=_0x331c88;let _0x2cc2d2,_0x17008d;return this[_0x15d5ed(0x7e)]?.[_0x15d5ed(0xd4)]?(_0x2cc2d2=this[_0x15d5ed(0x7e)][_0x15d5ed(0xd4)][_0x15d5ed(0x73)](!0x0),_0x17008d=this[_0x15d5ed(0x103)](_0x2cc2d2)):(_0x2cc2d2=document[_0x15d5ed(0xfe)](_0x15d5ed(0xd1)),_0x17008d=_0x2cc2d2),{'calculationContainer':_0x2cc2d2,'targetContainer':_0x17008d};}[_0x331c88(0x79)](){const _0x2e7f97=_0x331c88,{calculationContainer:_0x5509f8,targetContainer:_0x363e48}=this[_0x2e7f97(0x82)](),_0xc11d72=this[_0x2e7f97(0xf8)]();this[_0x2e7f97(0x86)](_0x5509f8,_0xc11d72);const _0x49338d=this[_0x2e7f97(0x7e)]?.[_0x2e7f97(0xd4)]||this[_0x2e7f97(0xbb)],_0x5d8bb7=_0x49338d?.[_0x2e7f97(0xd9)];_0x5d8bb7?_0x5d8bb7[_0x2e7f97(0x76)](_0x5509f8):document[_0x2e7f97(0xb5)][_0x2e7f97(0x76)](_0x5509f8),_0x5509f8[_0x2e7f97(0x85)]=_0x363e48;const _0x59f00b=this[_0x2e7f97(0x83)](_0x5d8bb7||null);return _0x5509f8[_0x2e7f97(0xde)],_0x5509f8[_0x2e7f97(0xe4)]=_0x59f00b,_0x5509f8;}[_0x331c88(0x100)](_0x208282,_0x25a548){const _0x112c8d=_0x331c88,_0x2f55a4=_0x208282[_0x112c8d(0x85)]||_0x208282,_0x5307a1=[],{rowCount:_0x2be262}=this[_0x112c8d(0xe8)](_0x2f55a4,_0x25a548);if(_0x2be262<=this[_0x112c8d(0xe0)][_0x112c8d(0xdf)])return _0x5307a1;const _0x4c81fd=_0x25a548[_0x112c8d(0x7f)]();for(;_0x4c81fd[_0x112c8d(0xf1)]>0x0;){if(this[_0x112c8d(0x99)](_0x208282,_0x2f55a4,_0x4c81fd)){const _0xee5eb5=_0x25a548[_0x112c8d(0xda)](_0x450760=>!_0x4c81fd[_0x112c8d(0xb3)](_0x450760));_0x5307a1[_0x112c8d(0xca)](..._0xee5eb5);break;}if(!_0x4c81fd[_0x112c8d(0xd8)]())break;}return _0x5307a1;}[_0x331c88(0xe8)](_0x77f2d,_0x1d4779){const _0x303b83=_0x331c88;_0x77f2d[_0x303b83(0xc8)]='',_0x1d4779[_0x303b83(0xaa)](_0x29d119=>{const _0x19952d=_0x303b83;if(_0x29d119[_0x19952d(0xd4)]){const _0x42b658=_0x29d119[_0x19952d(0xd4)][_0x19952d(0x73)](!0x0);_0x77f2d[_0x19952d(0x76)](_0x42b658);}}),_0x77f2d[_0x303b83(0xde)];const _0x30ef77=_0x77f2d[_0x303b83(0xa8)],_0x370817=[];return Array[_0x303b83(0xce)](_0x30ef77)[_0x303b83(0xaa)](_0x43ffc3=>{const _0x4da1ab=_0x303b83,_0x438ec1=_0x43ffc3[_0x4da1ab(0xb2)]()[_0x4da1ab(0xd7)];_0x370817[_0x4da1ab(0xab)](_0x980efa=>Math[_0x4da1ab(0xd5)](_0x980efa-_0x438ec1)<this[_0x4da1ab(0xe0)][_0x4da1ab(0xf5)])||_0x370817[_0x4da1ab(0xca)](_0x438ec1);}),{'rowCount':_0x370817[_0x303b83(0xf1)]};}[_0x331c88(0x77)](){const _0x57355f=_0x331c88,_0x4fba00=document[_0x57355f(0xfe)](_0x57355f(0xd2));return _0x4fba00[_0x57355f(0x93)]=this[_0x57355f(0xe0)][_0x57355f(0xa1)][_0x57355f(0xf0)],this[_0x57355f(0xe0)][_0x57355f(0xa1)][_0x57355f(0xa4)]&&_0x4fba00[_0x57355f(0x7c)][_0x57355f(0x104)](this[_0x57355f(0xe0)][_0x57355f(0xa1)][_0x57355f(0xa4)]),_0x4fba00[_0x57355f(0x8a)]=_0x57355f(0xeb),_0x4fba00;}[_0x331c88(0x99)](_0x267a05,_0x1542bb,_0x25ec65){const _0x145ca6=_0x331c88;this[_0x145ca6(0xe8)](_0x1542bb,_0x25ec65);const _0x1f439c=this[_0x145ca6(0x77)]();_0x267a05[_0x145ca6(0x76)](_0x1f439c),_0x267a05[_0x145ca6(0xde)];const _0xed7d8e=[..._0x1542bb[_0x145ca6(0xa8)],_0x1f439c],_0xb96c9b=[];_0xed7d8e[_0x145ca6(0xaa)](_0x1464e6=>{const _0x4d5f35=_0x145ca6,_0x34a33a=_0x1464e6[_0x4d5f35(0xb2)]()[_0x4d5f35(0xd7)];_0xb96c9b[_0x4d5f35(0xab)](_0x1a9fc3=>Math[_0x4d5f35(0xd5)](_0x1a9fc3-_0x34a33a)<this[_0x4d5f35(0xe0)][_0x4d5f35(0xf5)])||_0xb96c9b[_0x4d5f35(0xca)](_0x34a33a);});const _0x1b034c=_0xb96c9b[_0x145ca6(0xf1)];return _0x1f439c[_0x145ca6(0xe3)](),_0x1b034c<=this[_0x145ca6(0xe0)][_0x145ca6(0xdf)];}[_0x331c88(0xac)](_0x2d2f8a,_0x4d6747){const _0x4be67b=_0x331c88;this[_0x4be67b(0x89)][_0x4be67b(0xb8)](),this[_0x4be67b(0xd6)][_0x4be67b(0xb8)](),_0x2d2f8a[_0x4be67b(0xaa)](_0x2275f0=>{const _0x36716d=_0x4be67b;_0x4d6747[_0x36716d(0xb3)](_0x2275f0)?this[_0x36716d(0xd6)][_0x36716d(0x104)](_0x2275f0):this[_0x36716d(0x89)][_0x36716d(0x104)](_0x2275f0);});}[_0x331c88(0x9a)](_0x1cc441){const _0x34a834=_0x331c88;if(_0x1cc441>0x0&&!this[_0x34a834(0xfa)]&&this[_0x34a834(0xc4)](),_0x1cc441>0x0&&this[_0x34a834(0xfa)]){const _0x3369cc=''+this[_0x34a834(0xe0)][_0x34a834(0x8f)]+(_0x1cc441<0x63?_0x1cc441:'99');this[_0x34a834(0xfa)][_0x34a834(0xe9)]=_0x3369cc;}this[_0x34a834(0x9d)](),this[_0x34a834(0x78)](),this[_0x34a834(0x81)]();}[_0x331c88(0xfd)](_0x51f016,_0x3d63c5){const _0x210109=_0x331c88;this[_0x210109(0xac)](_0x51f016,_0x3d63c5),this[_0x210109(0x9a)](_0x3d63c5[_0x210109(0xf1)]);}[_0x331c88(0xd0)](){const _0xa0331e=_0x331c88;this[_0xa0331e(0xbb)]&&_0xa0331e(0x94)!=typeof IntersectionObserver&&(this[_0xa0331e(0x97)]=new IntersectionObserver(_0x158fec=>{const _0x3aae12=_0xa0331e;_0x158fec[0x0][_0x3aae12(0xf6)]&&this[_0x3aae12(0xdb)]&&requestAnimationFrame(()=>{const _0x1806bc=_0x3aae12;this[_0x1806bc(0xdd)]();});},{'threshold':0.01,'rootMargin':_0xa0331e(0xc5)}),this[_0xa0331e(0x97)][_0xa0331e(0xea)](this[_0xa0331e(0xbb)]));}[_0x331c88(0xb9)](){const _0x1a40b3=_0x331c88;if(!this[_0x1a40b3(0xbb)])return!0x1;if(!this[_0x1a40b3(0xbb)][_0x1a40b3(0xff)])return!0x1;const _0x467466=this[_0x1a40b3(0xbb)][_0x1a40b3(0xb2)]();if(0x0===_0x467466[_0x1a40b3(0xcf)]||0x0===_0x467466[_0x1a40b3(0x9e)])return!0x1;const _0x1326b3=window[_0x1a40b3(0x7a)]||document[_0x1a40b3(0x8c)][_0x1a40b3(0x96)],_0x307c34=window[_0x1a40b3(0x90)]||document[_0x1a40b3(0x8c)][_0x1a40b3(0xf3)],_0x371d68=0xc8;return _0x467466[_0x1a40b3(0xc0)]>=-0xc8&&_0x467466[_0x1a40b3(0xd7)]<=_0x1326b3+_0x371d68&&_0x467466[_0x1a40b3(0x7d)]>=-0xc8&&_0x467466[_0x1a40b3(0xcc)]<=_0x307c34+_0x371d68;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bf021=_0x8c7c;(function(_0x3e03fa,_0x4c3d97){const _0x507721=_0x8c7c,_0xf483cd=_0x3e03fa();while(!![]){try{const _0x12c918=parseInt(_0x507721(0x194))/0x1+-parseInt(_0x507721(0x198))/0x2+parseInt(_0x507721(0x17e))/0x3*(parseInt(_0x507721(0x183))/0x4)+parseInt(_0x507721(0x1b6))/0x5*(parseInt(_0x507721(0x1ac))/0x6)+parseInt(_0x507721(0x199))/0x7+parseInt(_0x507721(0x1ad))/0x8+-parseInt(_0x507721(0x1b5))/0x9;if(_0x12c918===_0x4c3d97)break;else _0xf483cd['push'](_0xf483cd['shift']());}catch(_0x4cd0af){_0xf483cd['push'](_0xf483cd['shift']());}}}(_0x41b5,0x230d6));import{ButtonView as _0x476231,IconView as _0x3ec978}from'ckeditor5/src/ui.js';function _0x41b5(){const _0x290895=['length','_createTemplateAttributes','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','1220466XgUghX','1683760ktFVZz','ck-ai-chat-context-chip_wide','addEventListener','document','readonly','_createIconView','isVisible','execute','5580459qiPDjk','5ILEiMu','selection','ck-ai-chat-context-chip_new-chip','extendTemplate','ck-hidden','slice','ck-ai-chat-context-chip','div','_createTemplateChildren','63435JAhKtr','type','ck-ai-chat-context-chip_document','_setupTemplate','disableAnimationOnEnter','28QVxbVc','setTemplate','_isAnimationOnEnterEnabled','locale','add','element','remove','classList','_initializeProperties','itemType','render','isLoading','webkitAnimationEnd','ck-ai-chat-context-chip__label','_createLabelElement','tooltip','_createLoaderIcon','222952WRWBEq','label','_setupRemoveButtonEvent','lastIndexOf','77596houSAh','123025ClNhaU','small','removeEventListener','ck-ai-chat-context-controls__chip-tooltip','span','uiId','_handleAnimationEndOnce','_createRemoveButton','animationend','removeContextItemChip','ck-ai-chat-context-chip__type-icon','bindTemplate','content','bind','set','fire'];_0x41b5=function(){return _0x290895;};return _0x41b5();}import{IconClose as _0x54b4cd,IconDocument as _0x19e414,IconFileUpload as _0x5d04e3,IconLink as _0x4120f7,IconSelection as _0x448e43}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x46cccd}from'../../../aicore/utils/common-translations.js';function _0x8c7c(_0x1bf45f,_0x1735e1){const _0x41b50c=_0x41b5();return _0x8c7c=function(_0x8c7cb6,_0x1b37f5){_0x8c7cb6=_0x8c7cb6-0x17a;let _0x54b0c1=_0x41b50c[_0x8c7cb6];return _0x54b0c1;},_0x8c7c(_0x1bf45f,_0x1735e1);}import{AISpinnerView as _0x1b1c51}from'../../../aicore/ui/aispinner.js';const bn={'file':_0x5d04e3,'document':_0x19e414,'web-resource':_0x4120f7,'text':_0x5d04e3,'selection':_0x448e43},Tn=_0x3bf021(0x17b),En=_0x3bf021(0x1ae),fn=_0x3bf021(0x180),An=_0x3bf021(0x190),Cn=_0x3bf021(0x1a3),In=_0x3bf021(0x19c),On='n';export class AIChatContextItemButtonView extends _0x476231{constructor(_0x285e62,_0x5db53b,_0x163c67,_0x1855a5,_0x952568=!0x1){const _0x4d01f5=_0x3bf021;super(_0x285e62),this[_0x4d01f5(0x185)]=_0x1855a5,this[_0x4d01f5(0x18b)](_0x5db53b,_0x163c67,_0x952568),this[_0x4d01f5(0x181)]();}[_0x3bf021(0x18d)](){const _0x546d85=_0x3bf021;super[_0x546d85(0x18d)](),this[_0x546d85(0x185)]&&this[_0x546d85(0x188)]&&(this[_0x546d85(0x188)][_0x546d85(0x18a)][_0x546d85(0x187)](_0x546d85(0x1b8)),this[_0x546d85(0x19f)](this[_0x546d85(0x188)],()=>{const _0x41bde6=_0x546d85;this[_0x41bde6(0x188)]&&this[_0x41bde6(0x188)][_0x41bde6(0x18a)][_0x41bde6(0x189)](_0x41bde6(0x1b8));}));}[_0x3bf021(0x182)](){const _0x205580=_0x3bf021;this[_0x205580(0x185)]=!0x1,this[_0x205580(0x188)]&&this[_0x205580(0x188)][_0x205580(0x18a)][_0x205580(0x189)](_0x205580(0x1b8));}[_0x3bf021(0x18b)](_0x2590eb,_0x1ae251,_0x5d57b5){const _0x3f48a3=_0x3bf021;this[_0x3f48a3(0x1a7)](_0x3f48a3(0x195),_0x2590eb[_0x3f48a3(0x195)]),this[_0x3f48a3(0x1a7)](_0x3f48a3(0x192),!0x0),this[_0x3f48a3(0x1a7)](_0x3f48a3(0x18c),_0x2590eb[_0x3f48a3(0x17f)]),this[_0x3f48a3(0x1a7)]('id',_0x2590eb[_0x3f48a3(0x19e)]),this[_0x3f48a3(0x1a7)](_0x3f48a3(0x1b1),_0x1ae251),this[_0x3f48a3(0x1a7)](_0x3f48a3(0x18e),_0x5d57b5);}[_0x3bf021(0x181)](){const _0x40bef9=_0x3bf021,_0x40ef8b=this[_0x40bef9(0x1b2)](),_0x4cc636=this[_0x40bef9(0x1a0)](),_0x21dec6=this[_0x40bef9(0x1a4)];this[_0x40bef9(0x184)]({'tag':_0x40bef9(0x17c),'attributes':this[_0x40bef9(0x1aa)](_0x21dec6),'children':this[_0x40bef9(0x17d)](_0x40ef8b,_0x4cc636,_0x21dec6)});}[_0x3bf021(0x1aa)](_0x446109){const _0xa134b9=_0x3bf021;return{'class':[Tn,_0x446109['if'](_0xa134b9(0x18c),fn,_0x3a05af=>_0xa134b9(0x1b0)==_0x3a05af),_0x446109['if'](_0xa134b9(0x18c),En,_0x55c67a=>_0xa134b9(0x1b7)==_0x55c67a)],'data-cke-tooltip-text':_0x446109['to'](_0xa134b9(0x195),gn),'data-cke-tooltip-position':On,'data-cke-tooltip-class':In};}[_0x3bf021(0x17d)](_0x3031e0,_0x334ef1,_0x484f5a){const _0x38963c=_0x3bf021,_0x380ddf=this[_0x38963c(0x191)](_0x484f5a),_0x28fe00=this[_0x38963c(0x193)]();return this[_0x38963c(0x1b1)]?[_0x3031e0,_0x380ddf]:[_0x3031e0,_0x28fe00,_0x380ddf,_0x334ef1];}[_0x3bf021(0x191)](_0x528faf){const _0x5d7d25=_0x3bf021;return{'tag':_0x5d7d25(0x19d),'attributes':{'class':An},'children':[{'text':_0x528faf['to'](_0x5d7d25(0x195))}]};}[_0x3bf021(0x1a0)](){const _0x40dac0=_0x3bf021,_0x31df5b=new _0x476231(this[_0x40dac0(0x186)]);return _0x31df5b[_0x40dac0(0x1a7)]({'label':_0x46cccd(this[_0x40dac0(0x186)],_0x40dac0(0x1ab)),'icon':_0x54b4cd}),this[_0x40dac0(0x196)](_0x31df5b),_0x31df5b;}[_0x3bf021(0x196)](_0x391035){const _0x40c175=_0x3bf021;_0x391035['on'](_0x40c175(0x1b4),()=>{const _0x5601f2=_0x40c175;this[_0x5601f2(0x1a8)](_0x5601f2(0x1a2),this['id']);});}[_0x3bf021(0x1b2)](){const _0x1411cb=_0x3bf021,_0x48c054=this[_0x1411cb(0x1a4)],_0x5aea0a=new _0x3ec978();return _0x5aea0a[_0x1411cb(0x1a5)]=bn[this[_0x1411cb(0x18c)]],_0x5aea0a[_0x1411cb(0x1b9)]({'attributes':{'class':[Cn,_0x48c054['if'](_0x1411cb(0x18e),_0x1411cb(0x1ba),_0x8d08dc=>_0x8d08dc)]}}),_0x5aea0a;}[_0x3bf021(0x19f)](_0x54efb3,_0x52bb45){const _0x8a5d65=_0x3bf021;if(!_0x54efb3)return;const _0x337f3b=()=>{const _0x4e9612=_0x8c7c;_0x52bb45(),_0x54efb3[_0x4e9612(0x19b)](_0x4e9612(0x1a1),_0x337f3b),_0x54efb3[_0x4e9612(0x19b)](_0x4e9612(0x18f),_0x337f3b);};_0x54efb3[_0x8a5d65(0x1af)](_0x8a5d65(0x1a1),_0x337f3b),_0x54efb3[_0x8a5d65(0x1af)](_0x8a5d65(0x18f),_0x337f3b);}[_0x3bf021(0x193)](){const _0x53c1e4=_0x3bf021,_0x3cdfb3=new _0x1b1c51(_0x53c1e4(0x19a));return _0x3cdfb3[_0x53c1e4(0x1a6)](_0x53c1e4(0x1b3))['to'](this,_0x53c1e4(0x18e),_0x289461=>_0x289461),_0x3cdfb3;}}function gn(_0x48c3fc){const _0x34a994=_0x3bf021;if(!_0x48c3fc)return _0x48c3fc;if(_0x48c3fc[_0x34a994(0x1a9)]<=0x78)return _0x48c3fc;const _0x2bd835=_0x48c3fc[_0x34a994(0x17a)](0x0,0x78),_0x3c2cda=_0x2bd835[_0x34a994(0x197)]('\x20');return(_0x3c2cda>0x0?_0x2bd835[_0x34a994(0x17a)](0x0,_0x3c2cda):_0x2bd835)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x336f(){const _0x285d88=['_createUrlInputField','12582900TeBpfx','tab','fieldView','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-labeled-field-view_empty','AI_CHAT_CONTEXT_URL_ADD_URL','shift+tab','trim','_createConfirmButton','ck-button-icon\x20ck-button-back','_isValidUrl','AI_CHAT_CONTEXT_URL_INVALID_ERROR','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','input','children','1432632WESBDR','form','61604vyHziA','setTemplate','locale','ck-button-icon','stop','3709062ekUjsz','cancel','focusCycler','_setupKeystrokes','confirmButton','execute','div','errorText','add','destroy','AI_CHAT_CONTEXT_URL_PLACEHOLDER','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','_focusables','clear','listenTo','_setupEventHandlers','129765FHxMWu','element','_updateConfirmButtonState','length','submit','forEach','keystrokes','1029NPZfEo','focusTracker','setError','render','ck-ai-chat-context-controls__url-form','AI_CHAT_CONTEXT_URL_LABEL','value','_setupTemplate','backButton','esc','410gNhvhy','refreshBalloon','fire','1294864RwMggi','focus','getValue','_createBackButton','createCollection','submitUrl','_handleSubmit','urlInputField','set','59112fojQwT','clearError','isEnabled'];_0x336f=function(){return _0x285d88;};return _0x336f();}const _0x5a4c04=_0x41da;(function(_0x52399d,_0x1a15c1){const _0x1ef1bc=_0x41da,_0x5fcab6=_0x52399d();while(!![]){try{const _0x524df0=-parseInt(_0x1ef1bc(0x9d))/0x1+parseInt(_0x1ef1bc(0xcd))/0x2+parseInt(_0x1ef1bc(0x8c))/0x3+-parseInt(_0x1ef1bc(0xcf))/0x4*(parseInt(_0x1ef1bc(0xae))/0x5)+-parseInt(_0x1ef1bc(0xba))/0x6*(-parseInt(_0x1ef1bc(0xa4))/0x7)+parseInt(_0x1ef1bc(0xb1))/0x8+-parseInt(_0x1ef1bc(0xbe))/0x9;if(_0x524df0===_0x1a15c1)break;else _0x5fcab6['push'](_0x5fcab6['shift']());}catch(_0x99bf08){_0x5fcab6['push'](_0x5fcab6['shift']());}}}(_0x336f,0xbc7b9));import{FocusTracker as _0x4da908,KeystrokeHandler as _0x189e7f}from'ckeditor5/src/utils.js';import{ButtonView as _0x21915b,FocusCycler as _0x311d52,LabeledFieldView as _0x3aa5ab,View as _0x348e00,FormHeaderView as _0x16d553,createLabeledInputText as _0x25c3e9,submitHandler as _0x7cbb89}from'ckeditor5/src/ui.js';import{IconCheck as _0x55cff3,IconPreviousArrow as _0x11c8a9}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x488d2e}from'../../../aicore/utils/common-translations.js';const ch=_0x5a4c04(0xa8),nh=_0x5a4c04(0x97);function _0x41da(_0x3fc433,_0x602e34){const _0x336f21=_0x336f();return _0x41da=function(_0x41da7b,_0x2937ae){_0x41da7b=_0x41da7b-0x8c;let _0x4a9a31=_0x336f21[_0x41da7b];return _0x4a9a31;},_0x41da(_0x3fc433,_0x602e34);}export class AIChatContextPanelUrlInputView extends _0x348e00{[_0x5a4c04(0xa5)];[_0x5a4c04(0xa3)];[_0x5a4c04(0x99)];[_0x5a4c04(0x8e)];[_0x5a4c04(0xb8)];[_0x5a4c04(0xac)];[_0x5a4c04(0x90)];constructor(_0x1a4e60){const _0x3f1dd5=_0x5a4c04;super(_0x1a4e60),this[_0x3f1dd5(0xa5)]=new _0x4da908(),this[_0x3f1dd5(0xa3)]=new _0x189e7f(),this[_0x3f1dd5(0xac)]=this[_0x3f1dd5(0xb4)](),this[_0x3f1dd5(0xb8)]=this[_0x3f1dd5(0xbd)](),this[_0x3f1dd5(0x90)]=this[_0x3f1dd5(0xc6)](),this[_0x3f1dd5(0x99)]=this[_0x3f1dd5(0xb5)]([this[_0x3f1dd5(0xac)],this[_0x3f1dd5(0xb8)],this[_0x3f1dd5(0x90)]]),this[_0x3f1dd5(0x8e)]=new _0x311d52({'focusables':this[_0x3f1dd5(0x99)],'focusTracker':this[_0x3f1dd5(0xa5)],'keystrokeHandler':this[_0x3f1dd5(0xa3)],'actions':{'focusPrevious':_0x3f1dd5(0xc4),'focusNext':_0x3f1dd5(0xbf)}}),this[_0x3f1dd5(0xab)](),this[_0x3f1dd5(0x9c)](),this[_0x3f1dd5(0x8f)]();}[_0x5a4c04(0xa7)](){const _0x12657d=_0x5a4c04;super[_0x12657d(0xa7)](),this[_0x12657d(0x99)][_0x12657d(0xa2)](_0x1ba5c2=>{const _0x37d0e1=_0x12657d;this[_0x37d0e1(0xa5)][_0x37d0e1(0x94)](_0x1ba5c2[_0x37d0e1(0x9e)]),this[_0x37d0e1(0xa3)][_0x37d0e1(0x9b)](_0x1ba5c2[_0x37d0e1(0x9e)]);}),_0x7cbb89({'view':this}),this[_0x12657d(0xb2)]();}[_0x5a4c04(0x95)](){const _0x1706ab=_0x5a4c04;super[_0x1706ab(0x95)](),this[_0x1706ab(0xa5)][_0x1706ab(0x95)](),this[_0x1706ab(0xa3)][_0x1706ab(0x95)]();}[_0x5a4c04(0xb2)](){const _0x3ec8d7=_0x5a4c04;this[_0x3ec8d7(0xb8)][_0x3ec8d7(0xb2)]();}[_0x5a4c04(0xb3)](){const _0x305f27=_0x5a4c04;return this[_0x305f27(0xb8)][_0x305f27(0xc0)][_0x305f27(0x9e)]?.[_0x305f27(0xaa)]?.[_0x305f27(0xc5)]()||'';}[_0x5a4c04(0x9a)](){const _0x1cedb1=_0x5a4c04;this[_0x1cedb1(0xb8)][_0x1cedb1(0xc0)][_0x1cedb1(0x9e)][_0x1cedb1(0xaa)]='',this[_0x1cedb1(0xb8)][_0x1cedb1(0x93)]=null,this[_0x1cedb1(0x90)][_0x1cedb1(0xbc)]=!0x1;}[_0x5a4c04(0xa6)](_0x2a01df){const _0x2dd771=_0x5a4c04;this[_0x2dd771(0xb8)][_0x2dd771(0x93)]=_0x2a01df,this[_0x2dd771(0x9f)](),this[_0x2dd771(0xb0)](_0x2dd771(0xaf));}[_0x5a4c04(0xbb)](){const _0x1c593c=_0x5a4c04;this[_0x1c593c(0xb8)][_0x1c593c(0x93)]=null,this[_0x1c593c(0x9f)]();}[_0x5a4c04(0xb4)](){const _0x10d4a2=_0x5a4c04,_0x2ec443=new _0x21915b(this[_0x10d4a2(0xd1)]);return _0x2ec443[_0x10d4a2(0xb9)]({'icon':_0x11c8a9,'tooltip':_0x488d2e(this[_0x10d4a2(0xd1)],_0x10d4a2(0x98)),'tooltipPosition':'n','class':_0x10d4a2(0xc7)}),_0x2ec443;}[_0x5a4c04(0xbd)](){const _0x12f9ba=_0x5a4c04,_0x922fed=new _0x3aa5ab(this[_0x12f9ba(0xd1)],_0x25c3e9);return _0x922fed[_0x12f9ba(0xb9)]({'label':_0x488d2e(this[_0x12f9ba(0xd1)],_0x12f9ba(0xa9)),'class':_0x12f9ba(0xc2)}),_0x922fed[_0x12f9ba(0xc0)][_0x12f9ba(0xb9)]({'placeholder':_0x488d2e(this[_0x12f9ba(0xd1)],_0x12f9ba(0x96))}),_0x922fed;}[_0x5a4c04(0xc6)](){const _0x50382e=_0x5a4c04,_0x33b15f=new _0x21915b(this[_0x50382e(0xd1)]);return _0x33b15f[_0x50382e(0xb9)]({'icon':_0x55cff3,'tooltip':_0x488d2e(this[_0x50382e(0xd1)],_0x50382e(0xc3)),'tooltipPosition':'n','class':_0x50382e(0xd2),'type':_0x50382e(0xa1),'isEnabled':!0x1}),_0x33b15f;}[_0x5a4c04(0xab)](){const _0x553b06=_0x5a4c04,_0x6f210e=new _0x16d553(this[_0x553b06(0xd1)],{'label':_0x488d2e(this[_0x553b06(0xd1)],_0x553b06(0xc3)),'class':_0x553b06(0xc1)});_0x6f210e[_0x553b06(0xcc)][_0x553b06(0x94)](this[_0x553b06(0xac)],0x0),this[_0x553b06(0xd0)]({'tag':_0x553b06(0xce),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x6f210e,{'tag':_0x553b06(0x92),'attributes':{'class':nh},'children':[this[_0x553b06(0xb8)],this[_0x553b06(0x90)]]}]});}[_0x5a4c04(0x9c)](){const _0x14c2c5=_0x5a4c04;this[_0x14c2c5(0xac)]['on'](_0x14c2c5(0x91),()=>{const _0x321e7d=_0x14c2c5;this[_0x321e7d(0x9a)](),this[_0x321e7d(0xb0)](_0x321e7d(0x8d));}),this[_0x14c2c5(0xb8)][_0x14c2c5(0xc0)]['on'](_0x14c2c5(0xcb),()=>{const _0x818222=_0x14c2c5;this[_0x818222(0xbb)](),this[_0x818222(0x9f)](),this[_0x818222(0xb0)](_0x818222(0xaf));}),this['on'](_0x14c2c5(0xa1),_0x3f122a=>{const _0x20aa6a=_0x14c2c5;_0x3f122a[_0x20aa6a(0xd3)](),this[_0x20aa6a(0xb7)]();});}[_0x5a4c04(0x8f)](){const _0x466716=_0x5a4c04;this[_0x466716(0xa3)][_0x466716(0xb9)](_0x466716(0xad),(_0x4f79c3,_0x420367)=>{const _0x464d36=_0x466716;this[_0x464d36(0x9a)](),this[_0x464d36(0xb0)](_0x464d36(0x8d)),_0x420367();});}[_0x5a4c04(0xb7)](){const _0x332a9c=_0x5a4c04,_0x578aea=this[_0x332a9c(0xb3)]()[_0x332a9c(0xc5)]();_0x578aea?this[_0x332a9c(0xc8)](_0x578aea)?(this[_0x332a9c(0xbb)](),this[_0x332a9c(0xb0)](_0x332a9c(0xb6),_0x578aea)):this[_0x332a9c(0xa6)](_0x488d2e(this[_0x332a9c(0xd1)],_0x332a9c(0xc9))):this[_0x332a9c(0xa6)](_0x488d2e(this[_0x332a9c(0xd1)],_0x332a9c(0xca)));}[_0x5a4c04(0x9f)](){const _0x340f1a=_0x5a4c04,_0x3d1598=this[_0x340f1a(0xb3)]()[_0x340f1a(0xc5)](),_0x268022=!!this[_0x340f1a(0xb8)][_0x340f1a(0x93)];this[_0x340f1a(0x90)][_0x340f1a(0xbc)]=_0x3d1598[_0x340f1a(0xa0)]>0x0&&!_0x268022;}[_0x5a4c04(0xc8)](_0x106b17){try{return!!new URL(_0x106b17);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4ec16c=_0x3085;(function(_0x5cca15,_0x1b76c9){const _0x1e5711=_0x3085,_0x32cc8a=_0x5cca15();while(!![]){try{const _0x5a92c0=-parseInt(_0x1e5711(0x267))/0x1+parseInt(_0x1e5711(0x23d))/0x2*(-parseInt(_0x1e5711(0x23a))/0x3)+parseInt(_0x1e5711(0x22d))/0x4+parseInt(_0x1e5711(0x24a))/0x5*(parseInt(_0x1e5711(0x21d))/0x6)+parseInt(_0x1e5711(0x207))/0x7+-parseInt(_0x1e5711(0x23b))/0x8+parseInt(_0x1e5711(0x205))/0x9*(parseInt(_0x1e5711(0x21e))/0xa);if(_0x5a92c0===_0x1b76c9)break;else _0x32cc8a['push'](_0x32cc8a['shift']());}catch(_0x34dc8b){_0x32cc8a['push'](_0x32cc8a['shift']());}}}(_0x5768,0xba762));import{BalloonPanelView as _0x1f2f8d,ButtonView as _0x21c283,clickOutsideHandler as _0x4edc5f,FileDialogButtonView as _0x357881,IconView as _0x538dbc,View as _0x24f0f1}from'ckeditor5/src/ui.js';function _0x3085(_0x12b753,_0x2eb89c){const _0x5768e0=_0x5768();return _0x3085=function(_0x308598,_0x1062ba){_0x308598=_0x308598-0x1ea;let _0x25d310=_0x5768e0[_0x308598];return _0x25d310;},_0x3085(_0x12b753,_0x2eb89c);}import{IconBrowseFiles as _0x40af6b,IconDocument as _0x44575e,IconDocumentOutline as _0x22d455,IconDropdownArrow as _0x55ee0d,IconLink as _0x453cdb,IconPaperClip as _0x55e66a}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x213c6e}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x2b7c93}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x1e8afb}from'./aichatchipsoverflowmanager.js';function _0x5768(){const _0x4f84ad=['isLoading','removeContextItemChip','_setAddContextButtonEnabled','_addContextBalloonConfig','sources','_urlBalloonPanelView','1039694IYpXie','tooltip','overflowChips','submitUrl','menuitem','_createContextButton','ck-ai-chat-context-controls','bodyCollection','showUrlBalloonPanel','_urlInputView','removeContextItem','_setupAllBalloonClickOutsideHandlers','defaultPositions','set','_currentContextsChips','populateSourceResourceBalloon','_createUrlBalloonPanelView','document','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_FILE_LABEL','_createAddContextBalloonPanelView','closest','addUrlToContext','clearCurrentContextItems','_setBalloonPanelContent','div','remove','isHidden','setTemplate','_createAddContextButtonView','balloonView','_conversationContextsChips','pin','ck-ai-chat-context-controls__balloon-button','conversation','ck-reset_all-excluded','source','ck-ai-chat-context-chips-wrapper-balloon','type','current','northArrowSouthWest','locale','body','_bindEventHandlers','files','fire','94491ThGMHv','AI_CHAT_CONTEXT_URL_LABEL','786849VQhbrB','add','urls','setConversationContext','isOn','enabled','_createResourcesBalloonView','addContextButtonView','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__url-balloon-panel','bind','AI_CHAT_CONTEXT_ADD_CONTEXT','element','isVisible','_addContextBalloonPanelView','ck-ai-chat','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','northArrowSouth','ck-ai-chat-context-controls__add-context-button','execute','showSourceResourcesBalloon','searchInputVisibleFrom','114mQWDkk','1310dTSYcq','reorganizeChips','clearConversationContextItems','_removeContextFromCollection','closeSourceResourceBalloon','_createBaseBalloonPanel','icon','isReadOnly','_getLimiterElement','show','hideUrlBalloonPanel','_setupAddContextBalloonClickOutsideHandler','extendTemplate','_showSourceResourcesBalloon','addDocumentToContext','4897972UJGqWW','setContainerElement','__arrow','addResourceToContext','ck-ai-chat-context-controls__show-more-balloon-panel','addFileToContext','arrowView','southArrowNorthEast','northArrowSouthEast','_handleUrlSubmit','hideAddContextBalloonPanel','_toggleAddContextBalloon','find','6suTzsj','8168144HglEtD','content','677356sDVmzp','loadSourceResources','done','_addUrlContent','_handleAddContextButtonClick','render','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-context-controls__pending-contexts','setAddContextOptions','_createArrowView','southArrowNorth','destroy','ck-ai-chat-controls-button','207775iavBUE','_resourcesBalloonView','_overflowManager','addContextItem','isAnyResourceBalloonVisible','southArrowNorthWest','setContextItemLoading','isEnabled','clear','children','_setupTemplate','buttonView','updateResourceState','focus','hide','createCollection','showAddContextBalloonPanel','_createBalloonButton','_addContextToCollection','cancel','refreshBalloon','ck-ai-chat-context-controls__add-context-balloon-panel','label'];_0x5768=function(){return _0x4f84ad;};return _0x5768();}import{getTranslation as _0x1760be}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x92382c}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4ec16c(0x22c),_0x4ec16c(0x232),_0x4ec16c(0x1ed),_0x4ec16c(0x230),_0x4ec16c(0x271),_0x4ec16c(0x23e)];const po=_0x4ec16c(0x26d),Bo=_0x4ec16c(0x244),bo=_0x4ec16c(0x25f),To=_0x4ec16c(0x219),Ao=_0x4ec16c(0x210),ko=_0x4ec16c(0x1f8),Eo=_0x4ec16c(0x243),vo=_0x4ec16c(0x249),Vo=_0x4ec16c(0x1fc),fo=_0x4ec16c(0x279),Io=_0x4ec16c(0x231),Po=_0x4ec16c(0x216),Ro=[_0x1f2f8d[_0x4ec16c(0x273)][_0x4ec16c(0x1ff)],_0x1f2f8d[_0x4ec16c(0x273)][_0x4ec16c(0x218)],_0x1f2f8d[_0x4ec16c(0x273)][_0x4ec16c(0x235)],_0x1f2f8d[_0x4ec16c(0x273)][_0x4ec16c(0x24f)],_0x1f2f8d[_0x4ec16c(0x273)][_0x4ec16c(0x247)],_0x1f2f8d[_0x4ec16c(0x273)][_0x4ec16c(0x234)]];export class AIChatContextPanelView extends _0x24f0f1{[_0x4ec16c(0x20e)];[_0x4ec16c(0x275)]=this[_0x4ec16c(0x259)]();[_0x4ec16c(0x1f6)]=this[_0x4ec16c(0x259)]();[_0x4ec16c(0x24c)];[_0x4ec16c(0x215)];[_0x4ec16c(0x266)];[_0x4ec16c(0x270)];[_0x4ec16c(0x24b)];[_0x4ec16c(0x264)];[_0x4ec16c(0x26e)];constructor(_0x1e4d07,_0x1151e7){const _0x21bf82=_0x4ec16c;super(_0x1e4d07),this[_0x21bf82(0x26e)]=_0x1151e7[_0x21bf82(0x26e)],this[_0x21bf82(0x275)]=this[_0x21bf82(0x259)](),this[_0x21bf82(0x1f6)]=this[_0x21bf82(0x259)](),this[_0x21bf82(0x20e)]=this[_0x21bf82(0x1f4)](_0x1e4d07),this[_0x21bf82(0x215)]=this[_0x21bf82(0x1eb)](_0x1e4d07),this[_0x21bf82(0x266)]=this[_0x21bf82(0x277)](_0x1e4d07),this[_0x21bf82(0x24b)]=this[_0x21bf82(0x20d)](_0x1e4d07,_0x1151e7);const _0x513c51={'cssClasses':{'showMoreButton':fo,'showMoreBalloon':Io,'overflowContainer':Vo,'controlsButton':vo}};this[_0x21bf82(0x24c)]=new _0x1e8afb(_0x1e4d07,this[_0x21bf82(0x275)],_0x513c51,this[_0x21bf82(0x26e)],this),this[_0x21bf82(0x264)]={'buttonView':this[_0x21bf82(0x20e)],'balloonView':this[_0x21bf82(0x215)],'hideMethod':this[_0x21bf82(0x237)][_0x21bf82(0x211)](this),'showMethod':this[_0x21bf82(0x25a)][_0x21bf82(0x211)](this)},this[_0x21bf82(0x254)](),this[_0x21bf82(0x202)]();}[_0x4ec16c(0x242)](){const _0x3dfabd=_0x4ec16c;super[_0x3dfabd(0x242)](),this[_0x3dfabd(0x272)](),this[_0x3dfabd(0x24c)][_0x3dfabd(0x22e)](this[_0x3dfabd(0x213)]),this[_0x3dfabd(0x24c)][_0x3dfabd(0x21f)]();}[_0x4ec16c(0x248)](){const _0x1a4ae0=_0x4ec16c;super[_0x1a4ae0(0x248)](),this[_0x1a4ae0(0x24c)][_0x1a4ae0(0x248)](),this[_0x1a4ae0(0x24b)][_0x1a4ae0(0x248)]();}[_0x4ec16c(0x24d)](_0x1eeefc,_0x3dcabe){const _0x10d08e=_0x4ec16c,_0x3fd8ec=this[_0x10d08e(0x26c)](_0x1eeefc,_0x10d08e(0x1fe),!0x0,_0x3dcabe);this[_0x10d08e(0x25c)](_0x3fd8ec,this[_0x10d08e(0x275)]),this[_0x10d08e(0x24c)][_0x10d08e(0x21f)]();}[_0x4ec16c(0x271)](_0xd528f4){const _0x13a247=_0x4ec16c;this[_0x13a247(0x221)](_0xd528f4,this[_0x13a247(0x275)]),this[_0x13a247(0x221)](_0xd528f4,this[_0x13a247(0x24c)][_0x13a247(0x269)]),this[_0x13a247(0x24c)][_0x13a247(0x21f)]();}[_0x4ec16c(0x250)](_0x2c9ced,_0x557d4e){const _0x548e6d=_0x4ec16c;let _0x5332ee=this[_0x548e6d(0x275)][_0x548e6d(0x239)](_0x480c1e=>_0x480c1e['id']===_0x2c9ced);_0x5332ee||(_0x5332ee=this[_0x548e6d(0x24c)][_0x548e6d(0x269)][_0x548e6d(0x239)](_0x704c98=>_0x704c98['id']===_0x2c9ced)),_0x5332ee&&(_0x5332ee[_0x548e6d(0x261)]=_0x557d4e);}[_0x4ec16c(0x20a)](_0xe2f3cd){const _0x2ac05f=_0x4ec16c;this[_0x2ac05f(0x1f6)][_0x2ac05f(0x252)]();for(const _0x5ae5f1 of _0xe2f3cd){const _0x593157=this[_0x2ac05f(0x26c)](_0x5ae5f1,_0x2ac05f(0x1f9),!0x1,!0x1);this[_0x2ac05f(0x25c)](_0x593157,this[_0x2ac05f(0x1f6)]);}}[_0x4ec16c(0x1ee)](){const _0x937c0d=_0x4ec16c;this[_0x937c0d(0x275)][_0x937c0d(0x252)](),this[_0x937c0d(0x24c)][_0x937c0d(0x252)]();}[_0x4ec16c(0x220)](){const _0x54284d=_0x4ec16c;this[_0x54284d(0x1f6)][_0x54284d(0x252)]();}[_0x4ec16c(0x256)](_0x49abd5,_0x312b2a,_0x36a5d8){const _0x4b1a41=_0x4ec16c;this[_0x4b1a41(0x24b)][_0x4b1a41(0x256)](_0x49abd5,_0x312b2a,_0x36a5d8);}[_0x4ec16c(0x237)](){const _0xc22956=_0x4ec16c;this[_0xc22956(0x238)](!0x1);}[_0x4ec16c(0x25a)](){const _0x2cc675=_0x4ec16c;this[_0x2cc675(0x238)](!0x0);}[_0x4ec16c(0x228)](){const _0x2070bd=_0x4ec16c;this[_0x2070bd(0x266)][_0x2070bd(0x258)](),this[_0x2070bd(0x20e)][_0x2070bd(0x20b)]=!0x1,this[_0x2070bd(0x270)]&&this[_0x2070bd(0x270)][_0x2070bd(0x252)]();}[_0x4ec16c(0x26f)](){const _0x25892b=_0x4ec16c;this[_0x25892b(0x266)][_0x25892b(0x227)](),this[_0x25892b(0x20e)][_0x25892b(0x20b)]=!0x0;}[_0x4ec16c(0x22b)](_0x384953){const _0x2d0f2d=_0x4ec16c;this[_0x2d0f2d(0x24b)][_0x2d0f2d(0x21b)](_0x384953),this[_0x2d0f2d(0x20e)][_0x2d0f2d(0x20b)]=!0x0;}[_0x4ec16c(0x276)](_0x247669,_0x1e647e,_0x37ae99,_0x3f72d0){const _0x442514=_0x4ec16c;this[_0x442514(0x24b)][_0x442514(0x276)](_0x247669,_0x37ae99,_0x3f72d0);}[_0x4ec16c(0x222)](_0x589cf7){const _0x315a37=_0x4ec16c;this[_0x315a37(0x24b)][_0x315a37(0x222)](_0x589cf7),this[_0x315a37(0x20e)][_0x315a37(0x20b)]=!0x1;}[_0x4ec16c(0x245)](_0x2f4eea){const _0xf17249=_0x4ec16c;this[_0xf17249(0x1ef)](this[_0xf17249(0x215)],this[_0xf17249(0x200)],_0x2f4eea),this[_0xf17249(0x263)](_0x2f4eea);}[_0x4ec16c(0x263)](_0x1c88c7){const _0x4fe61b=_0x4ec16c,_0x41694b=!_0x1c88c7[_0x4fe61b(0x278)][_0x4fe61b(0x1f2)]&&_0x1c88c7[_0x4fe61b(0x278)][_0x4fe61b(0x20c)],_0x2d4d35=_0x1c88c7[_0x4fe61b(0x209)][_0x4fe61b(0x20c)],_0x1088f4=_0x1c88c7[_0x4fe61b(0x203)][_0x4fe61b(0x20c)];this[_0x4fe61b(0x20e)][_0x4fe61b(0x251)]=_0x41694b||_0x2d4d35||_0x1088f4;}[_0x4ec16c(0x254)](){const _0x274f1e=_0x4ec16c;this[_0x274f1e(0x1f3)]({'tag':_0x274f1e(0x1f0),'attributes':{'class':[po,_0x274f1e(0x1fa)]},'children':[{'tag':_0x274f1e(0x1f0),'attributes':{'class':Bo},'children':this[_0x274f1e(0x275)]}]});}[_0x4ec16c(0x202)](){const _0xccecd3=_0x4ec16c;this[_0xccecd3(0x20e)]['on'](_0xccecd3(0x21a),()=>{const _0x4ebe18=_0xccecd3;this[_0x4ebe18(0x241)]();});}[_0x4ec16c(0x1f4)](_0x3a1e44){const _0x5d6ab5=_0x4ec16c,_0x4e3851=new _0x21c283(_0x3a1e44);return _0x4e3851[_0x5d6ab5(0x274)]({'label':_0x1760be(_0x3a1e44,_0x5d6ab5(0x212)),'class':vo+'\x20'+To,'icon':_0x55e66a,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x4e3851;}[_0x4ec16c(0x1eb)](_0x5071a0){const _0x5906ae=_0x4ec16c;return this[_0x5906ae(0x223)](_0x5071a0,bo);}[_0x4ec16c(0x277)](_0x40974d){const _0x471cc3=_0x4ec16c,_0x21f9a8=this[_0x471cc3(0x223)](_0x40974d,Ao);return this[_0x471cc3(0x240)](_0x21f9a8,_0x40974d),_0x21f9a8;}[_0x4ec16c(0x20d)](_0x3dbdf1,_0x2edd5f){const _0x225fc5=_0x4ec16c,_0xf3793a={'searchInputVisibleFrom':_0x2edd5f[_0x225fc5(0x21c)],'onBackToContext':()=>{const _0x10aafa=_0x225fc5;this[_0x10aafa(0x25a)](),this[_0x10aafa(0x215)][_0x10aafa(0x1f7)]({'target':this[_0x10aafa(0x20e)][_0x10aafa(0x213)],'limiter':this[_0x10aafa(0x226)](),'positions':Ro});},'onResourceSelected':(_0x3e7228,_0x24c55b)=>{const _0x3b73a4=_0x225fc5;this[_0x3b73a4(0x204)](_0x3b73a4(0x230),{'source':_0x3e7228,'resource':_0x24c55b});},'onLoadSourceResources':_0x13e787=>{const _0x1646c0=_0x225fc5;this[_0x1646c0(0x204)](_0x1646c0(0x23e),_0x13e787);},'onBalloonClosed':()=>{const _0x2cf0d0=_0x225fc5;this[_0x2cf0d0(0x20e)][_0x2cf0d0(0x20b)]=!0x1;},'getLimiterElement':()=>this[_0x225fc5(0x226)](),'getTargetElement':()=>this[_0x225fc5(0x20e)][_0x225fc5(0x213)]};return new _0x92382c(_0x3dbdf1,_0x2edd5f[_0x225fc5(0x26e)],_0xf3793a);}[_0x4ec16c(0x226)](){const _0x1fefb6=_0x4ec16c;return this[_0x1fefb6(0x213)]?.[_0x1fefb6(0x1ec)]('.'+Po)||document[_0x1fefb6(0x201)];}[_0x4ec16c(0x223)](_0xf5d201,_0x1fce20){const _0x52493d=_0x4ec16c,_0x1ca44b=new _0x1f2f8d(_0xf5d201);return _0x1ca44b[_0x52493d(0x22a)]({'attributes':{'class':_0x1fce20}}),this[_0x52493d(0x26e)][_0x52493d(0x208)](_0x1ca44b),_0x1ca44b;}[_0x4ec16c(0x1ef)](_0x3b2353,_0x5346e9,_0x9b0cf2){const _0x2aa47d=_0x4ec16c;if(_0x3b2353[_0x2aa47d(0x23c)][_0x2aa47d(0x252)](),!_0x9b0cf2[_0x2aa47d(0x278)][_0x2aa47d(0x1f2)]&&_0x9b0cf2[_0x2aa47d(0x278)][_0x2aa47d(0x20c)]){const _0x48bd99=this[_0x2aa47d(0x25b)](_0x5346e9,{'label':_0x1760be(_0x5346e9,_0x2aa47d(0x217)),'icon':_0x44575e});_0x48bd99['on'](_0x2aa47d(0x21a),()=>{const _0xf5818e=_0x2aa47d;this[_0xf5818e(0x204)](_0xf5818e(0x22c)),this[_0xf5818e(0x237)]();}),_0x3b2353[_0x2aa47d(0x23c)][_0x2aa47d(0x208)](_0x48bd99);}if(_0x9b0cf2[_0x2aa47d(0x209)][_0x2aa47d(0x20c)]){const _0x4233d4=this[_0x2aa47d(0x25b)](_0x5346e9,{'label':_0x1760be(_0x5346e9,_0x2aa47d(0x206)),'icon':_0x453cdb});_0x4233d4['on'](_0x2aa47d(0x21a),()=>{const _0x459790=_0x2aa47d;this[_0x459790(0x237)](),this[_0x459790(0x26f)](),this[_0x459790(0x266)][_0x459790(0x1f7)]({'target':this[_0x459790(0x20e)][_0x459790(0x213)],'limiter':this[_0x459790(0x226)](),'positions':Ro}),this[_0x459790(0x270)][_0x459790(0x257)]();}),_0x3b2353[_0x2aa47d(0x23c)][_0x2aa47d(0x208)](_0x4233d4);}if(_0x9b0cf2[_0x2aa47d(0x203)][_0x2aa47d(0x20c)]){const _0x147d51=new _0x357881(_0x5346e9);_0x147d51[_0x2aa47d(0x274)]({'label':_0x1760be(_0x5346e9,_0x2aa47d(0x1ea)),'icon':_0x40af6b,'withText':!0x0,'tooltip':!0x0,'class':ko,'allowMultipleFiles':!0x0}),_0x147d51['on'](_0x2aa47d(0x23f),(_0x5e174f,_0x1a5c24)=>{const _0x5c694e=_0x2aa47d;this[_0x5c694e(0x204)](_0x5c694e(0x232),_0x1a5c24),this[_0x5c694e(0x237)]();}),_0x147d51[_0x2aa47d(0x268)]=!0x0,_0x3b2353[_0x2aa47d(0x23c)][_0x2aa47d(0x208)](_0x147d51);}for(const _0x176f3a of _0x9b0cf2[_0x2aa47d(0x265)]){const _0x45f488=this[_0x2aa47d(0x25b)](_0x5346e9,{'label':_0x176f3a[_0x2aa47d(0x260)],'icon':_0x176f3a[_0x2aa47d(0x224)]||_0x22d455,'type':_0x2aa47d(0x1fb)});_0x3b2353[_0x2aa47d(0x23c)][_0x2aa47d(0x208)](_0x45f488),_0x45f488['on'](_0x2aa47d(0x21a),()=>{const _0x4a0c26=_0x2aa47d;this[_0x4a0c26(0x237)](),this[_0x4a0c26(0x22b)](_0x176f3a);});}}[_0x4ec16c(0x240)](_0x716684,_0x14be97){const _0x52811b=_0x4ec16c;this[_0x52811b(0x270)]=new _0x2b7c93(_0x14be97),this[_0x52811b(0x270)]['on'](_0x52811b(0x26a),(_0x5a74af,_0x54d6b1)=>{const _0x42a13b=_0x52811b;this[_0x42a13b(0x236)](_0x54d6b1);}),this[_0x52811b(0x270)]['on'](_0x52811b(0x25d),()=>{const _0x4210d3=_0x52811b;this[_0x4210d3(0x228)](),this[_0x4210d3(0x25a)](),this[_0x4210d3(0x215)][_0x4210d3(0x1f7)]({'target':this[_0x4210d3(0x20e)][_0x4210d3(0x213)],'limiter':this[_0x4210d3(0x226)](),'positions':Ro});}),this[_0x52811b(0x270)]['on'](_0x52811b(0x25e),()=>{const _0x4f5f9a=_0x52811b;this[_0x4f5f9a(0x266)][_0x4f5f9a(0x214)]&&this[_0x4f5f9a(0x266)][_0x4f5f9a(0x1f7)]({'target':this[_0x4f5f9a(0x20e)][_0x4f5f9a(0x213)],'limiter':this[_0x4f5f9a(0x226)](),'positions':Ro});}),_0x716684[_0x52811b(0x23c)][_0x52811b(0x208)](this[_0x52811b(0x270)]);}[_0x4ec16c(0x25b)](_0x770a37,_0x21aeeb){const _0x48d200=_0x4ec16c,_0x1515e2=_0x48d200(0x1fb)===_0x21aeeb[_0x48d200(0x1fd)]?new SourcesBalloonButtonView(_0x770a37):new _0x21c283(_0x770a37);return _0x1515e2[_0x48d200(0x274)]({'label':_0x21aeeb[_0x48d200(0x260)],'icon':_0x21aeeb[_0x48d200(0x224)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':ko}),_0x1515e2;}[_0x4ec16c(0x272)](){const _0x162366=_0x4ec16c;this[_0x162366(0x229)](),this[_0x162366(0x20f)]();}[_0x4ec16c(0x20f)](){const _0x23198c=_0x4ec16c;_0x4edc5f({'emitter':this[_0x23198c(0x266)],'contextElements':[this[_0x23198c(0x266)][_0x23198c(0x213)]],'callback':()=>{const _0x44fcfc=_0x23198c;this[_0x44fcfc(0x228)]();},'activator':()=>this[_0x23198c(0x266)][_0x23198c(0x214)]});}[_0x4ec16c(0x238)](_0x1d2bfe){const _0x2e0bc5=_0x4ec16c,_0x3b850a=this[_0x2e0bc5(0x264)];_0x3b850a[_0x2e0bc5(0x255)][_0x2e0bc5(0x20b)]=_0x1d2bfe,_0x1d2bfe?_0x3b850a[_0x2e0bc5(0x1f5)][_0x2e0bc5(0x227)]():_0x3b850a[_0x2e0bc5(0x1f5)][_0x2e0bc5(0x258)]();}[_0x4ec16c(0x229)](){const _0x1089fe=_0x4ec16c,{balloonView:_0x552941,buttonView:_0x95bb06,hideMethod:_0x1b57a8}=this[_0x1089fe(0x264)];_0x4edc5f({'emitter':_0x552941,'contextElements':[_0x552941[_0x1089fe(0x213)],_0x95bb06[_0x1089fe(0x213)]],'callback':()=>{_0x1b57a8();},'activator':()=>_0x95bb06[_0x1089fe(0x20b)]&&!this[_0x1089fe(0x266)][_0x1089fe(0x214)]&&!this[_0x1089fe(0x24b)][_0x1089fe(0x24e)]()});}[_0x4ec16c(0x26c)](_0xbce479,_0x4c8582,_0x5ef06b=!0x1,_0x55799f=!0x1){const _0x5f1dc7=_0x4ec16c,_0x497b48=_0x5f1dc7(0x1f9)===_0x4c8582||!0x0===_0xbce479[_0x5f1dc7(0x225)],_0x46d613=new _0x213c6e(this[_0x5f1dc7(0x200)],_0xbce479,_0x497b48,_0x5ef06b,_0x55799f);return _0x497b48||_0x46d613['on'](_0x5f1dc7(0x262),()=>{const _0x2a7fc7=_0x5f1dc7;this[_0x2a7fc7(0x204)](_0x2a7fc7(0x271),_0x46d613['id']);}),_0x46d613;}[_0x4ec16c(0x25c)](_0x69007b,_0x4dff2e){const _0x8cd651=_0x4ec16c;_0x4dff2e[_0x8cd651(0x208)](_0x69007b,0x0);}[_0x4ec16c(0x221)](_0x1baf71,_0x10b423){const _0x1ecd63=_0x4ec16c,_0x437c60=_0x10b423[_0x1ecd63(0x239)](_0x4e4732=>_0x4e4732['id']===_0x1baf71);_0x437c60&&_0x10b423[_0x1ecd63(0x1f1)](_0x437c60);}[_0x4ec16c(0x241)](){const _0x2f8aa6=_0x4ec16c;this[_0x2f8aa6(0x20e)][_0x2f8aa6(0x20b)]?this[_0x2f8aa6(0x237)]():(this[_0x2f8aa6(0x25a)](),this[_0x2f8aa6(0x215)][_0x2f8aa6(0x1f7)]({'target':this[_0x2f8aa6(0x20e)][_0x2f8aa6(0x213)],'limiter':this[_0x2f8aa6(0x226)](),'positions':Ro}));}[_0x4ec16c(0x236)](_0xfa32aa){const _0x4cb39c=_0x4ec16c;this[_0x4cb39c(0x270)][_0x4cb39c(0x252)](),this[_0x4cb39c(0x228)](),this[_0x4cb39c(0x204)](_0x4cb39c(0x1ed),_0xfa32aa);}}export class SourcesBalloonButtonView extends _0x21c283{[_0x4ec16c(0x233)];constructor(_0x3c4f6e){const _0x3de829=_0x4ec16c;super(_0x3c4f6e),this[_0x3de829(0x274)]({'withText':!0x0,'role':_0x3de829(0x26b)}),this[_0x3de829(0x233)]=this[_0x3de829(0x246)](),this[_0x3de829(0x22a)]({'attributes':{'class':[Eo]}});}[_0x4ec16c(0x242)](){const _0x2057c0=_0x4ec16c;super[_0x2057c0(0x242)](),this[_0x2057c0(0x253)][_0x2057c0(0x208)](this[_0x2057c0(0x233)]);}[_0x4ec16c(0x246)](){const _0x2e0ad9=_0x4ec16c,_0x10fc76=new _0x538dbc();return _0x10fc76[_0x2e0ad9(0x23c)]=_0x55ee0d,_0x10fc76[_0x2e0ad9(0x22a)]({'attributes':{'class':Eo+_0x2e0ad9(0x22f)}}),_0x10fc76;}}
|
|
23
|
+
const _0x2faca7=_0x29ac;(function(_0x3e5f87,_0x3fbd7d){const _0x136e51=_0x29ac,_0x35db88=_0x3e5f87();while(!![]){try{const _0x4c9315=parseInt(_0x136e51(0x172))/0x1*(-parseInt(_0x136e51(0x17e))/0x2)+parseInt(_0x136e51(0x15c))/0x3*(parseInt(_0x136e51(0x1b6))/0x4)+parseInt(_0x136e51(0x1a3))/0x5*(parseInt(_0x136e51(0x152))/0x6)+-parseInt(_0x136e51(0x1be))/0x7+-parseInt(_0x136e51(0x1b5))/0x8*(-parseInt(_0x136e51(0x181))/0x9)+parseInt(_0x136e51(0x175))/0xa*(parseInt(_0x136e51(0x198))/0xb)+-parseInt(_0x136e51(0x13e))/0xc;if(_0x4c9315===_0x3fbd7d)break;else _0x35db88['push'](_0x35db88['shift']());}catch(_0x308962){_0x35db88['push'](_0x35db88['shift']());}}}(_0x46c4,0xa6063));import{BalloonPanelView as _0x1af2eb,ButtonView as _0xaf4d1d,clickOutsideHandler as _0x191ba2,FileDialogButtonView as _0x47f866,IconView as _0x3de797,View as _0x39fe25}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x47a33c,IconDocument as _0x32e42e,IconDocumentOutline as _0x3302cb,IconDropdownArrow as _0x1fd93d,IconLink as _0x42f1b6,IconPaperClip as _0x4a0fa6}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x37c993}from'./aichatcontextitembuttonview.js';function _0x46c4(){const _0x12c1a4=['showAddContextBalloonPanel','_currentContextsChips','_createUrlBalloonPanelView','source','_setAddContextButtonEnabled','setContextItemLoading','isOn','1104186QcwhhR','overflowChips','addContextButtonView','isEnabled','addContextItem','searchInputVisibleFrom','done','_createBaseBalloonPanel','_overflowManager','children','129rOWdKP','_conversationContextsChips','isVisible','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__pending-contexts','icon','div','_handleAddContextButtonClick','ck-ai-chat','_handleUrlSubmit','execute','isHidden','clear','ck-ai-chat-controls_context_show-more-button','_toggleAddContextBalloon','_resourcesBalloonView','_setupAllBalloonClickOutsideHandlers','hideAddContextBalloonPanel','setConversationContext','defaultPositions','reorganizeChips','addDocumentToContext','224879qExMPt','conversation','content','9986310jdEeAW','locale','sources','_addContextBalloonPanelView','_addUrlContent','setAddContextOptions','_createContextButton','northArrowSouthWest','removeContextItem','4GklXuV','bodyCollection','refreshBalloon','9XXsPGw','pin','_setBalloonPanelContent','fire','find','addFileToContext','showSourceResourcesBalloon','urls','document','_createAddContextButtonView','loadSourceResources','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat-context-controls__add-context-button','_createAddContextBalloonPanelView','render','ck-reset_all-excluded','southArrowNorthEast','bind','updateResourceState','_addContextToCollection','_urlBalloonPanelView','southArrowNorthWest','enabled','11wEkoSN','southArrowNorth','closest','balloonView','buttonView','addUrlToContext','populateSourceResourceBalloon','add','showUrlBalloonPanel','hideUrlBalloonPanel','body','10oGeeDJ','AI_CHAT_CONTEXT_URL_LABEL','focus','_urlInputView','extendTemplate','northArrowSouth','remove','clearCurrentContextItems','cancel','destroy','show','files','ck-ai-chat-context-controls__add-context-balloon-panel','_bindEventHandlers','_createArrowView','addResourceToContext','_getLimiterElement','_setupTemplate','4438088XkVBcV','22732bXjLOf','_showSourceResourcesBalloon','setContainerElement','ck-ai-chat-context-controls__balloon-button','isAnyResourceBalloonVisible','menuitem','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__balloon-button-source','1244243MZHwYX','closeSourceResourceBalloon','hide','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-context-controls__show-more-balloon-panel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','current','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls','type','submitUrl','arrowView','_createResourcesBalloonView','element','removeContextItemChip','clearConversationContextItems','northArrowSouthEast','ck-ai-chat-controls-button','10299372UcAzkS','__arrow','_removeContextFromCollection','AI_CHAT_CONTEXT_ADD_CONTEXT','label','isReadOnly','isLoading','set','_addContextBalloonConfig','createCollection','tooltip','_createBalloonButton','setTemplate'];_0x46c4=function(){return _0x12c1a4;};return _0x46c4();}import{AIChatContextPanelUrlInputView as _0x356019}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x42b056}from'./aichatchipsoverflowmanager.js';function _0x29ac(_0x32f462,_0x3e22d1){const _0x46c46d=_0x46c4();return _0x29ac=function(_0x29ac74,_0x5051e1){_0x29ac74=_0x29ac74-0x132;let _0x213ccd=_0x46c46d[_0x29ac74];return _0x213ccd;},_0x29ac(_0x32f462,_0x3e22d1);}import{getTranslation as _0x2b0163}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3559cb}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2faca7(0x171),_0x2faca7(0x186),_0x2faca7(0x19d),_0x2faca7(0x1b2),_0x2faca7(0x17d),_0x2faca7(0x18b)];const Eo=_0x2faca7(0x134),vo=_0x2faca7(0x160),Vo=_0x2faca7(0x1af),Io=_0x2faca7(0x18d),Po=_0x2faca7(0x1bc),Ro=_0x2faca7(0x1b9),Uo=_0x2faca7(0x1bd),Lo=_0x2faca7(0x13d),No=_0x2faca7(0x18c),Oo=_0x2faca7(0x169),Mo=_0x2faca7(0x1c2),Ho=_0x2faca7(0x164),jo=[_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x17c)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x1a8)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x13c)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x196)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x199)],_0x1af2eb[_0x2faca7(0x16f)][_0x2faca7(0x191)]];export class AIChatContextPanelView extends _0x39fe25{[_0x2faca7(0x154)];[_0x2faca7(0x14c)]=this[_0x2faca7(0x147)]();[_0x2faca7(0x15d)]=this[_0x2faca7(0x147)]();[_0x2faca7(0x15a)];[_0x2faca7(0x178)];[_0x2faca7(0x195)];[_0x2faca7(0x1a6)];[_0x2faca7(0x16b)];[_0x2faca7(0x146)];[_0x2faca7(0x17f)];constructor(_0x467894,_0x578270){const _0x156006=_0x2faca7;super(_0x467894),this[_0x156006(0x17f)]=_0x578270[_0x156006(0x17f)],this[_0x156006(0x14c)]=this[_0x156006(0x147)](),this[_0x156006(0x15d)]=this[_0x156006(0x147)](),this[_0x156006(0x154)]=this[_0x156006(0x18a)](_0x467894),this[_0x156006(0x178)]=this[_0x156006(0x18e)](_0x467894),this[_0x156006(0x195)]=this[_0x156006(0x14d)](_0x467894),this[_0x156006(0x16b)]=this[_0x156006(0x138)](_0x467894,_0x578270);const _0x19b973={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':No,'controlsButton':Lo}};this[_0x156006(0x15a)]=new _0x42b056(_0x467894,this[_0x156006(0x14c)],_0x19b973,this[_0x156006(0x17f)],this),this[_0x156006(0x146)]={'buttonView':this[_0x156006(0x154)],'balloonView':this[_0x156006(0x178)],'hideMethod':this[_0x156006(0x16d)][_0x156006(0x192)](this),'showMethod':this[_0x156006(0x14b)][_0x156006(0x192)](this)},this[_0x156006(0x1b4)](),this[_0x156006(0x1b0)]();}[_0x2faca7(0x18f)](){const _0x21b085=_0x2faca7;super[_0x21b085(0x18f)](),this[_0x21b085(0x16c)](),this[_0x21b085(0x15a)][_0x21b085(0x1b8)](this[_0x21b085(0x139)]),this[_0x21b085(0x15a)][_0x21b085(0x170)]();}[_0x2faca7(0x1ac)](){const _0x570003=_0x2faca7;super[_0x570003(0x1ac)](),this[_0x570003(0x15a)][_0x570003(0x1ac)](),this[_0x570003(0x16b)][_0x570003(0x1ac)]();}[_0x2faca7(0x156)](_0x32c3d6,_0x57f9ba){const _0x5603ed=_0x2faca7,_0x5129df=this[_0x5603ed(0x17b)](_0x32c3d6,_0x5603ed(0x132),!0x0,_0x57f9ba);this[_0x5603ed(0x194)](_0x5129df,this[_0x5603ed(0x14c)]),this[_0x5603ed(0x15a)][_0x5603ed(0x170)]();}[_0x2faca7(0x17d)](_0x294382){const _0x5382f4=_0x2faca7;this[_0x5382f4(0x140)](_0x294382,this[_0x5382f4(0x14c)]),this[_0x5382f4(0x140)](_0x294382,this[_0x5382f4(0x15a)][_0x5382f4(0x153)]),this[_0x5382f4(0x15a)][_0x5382f4(0x170)]();}[_0x2faca7(0x150)](_0x355bab,_0x402c0c){const _0x5b53bb=_0x2faca7;let _0xf6847a=this[_0x5b53bb(0x14c)][_0x5b53bb(0x185)](_0x93fba7=>_0x93fba7['id']===_0x355bab);_0xf6847a||(_0xf6847a=this[_0x5b53bb(0x15a)][_0x5b53bb(0x153)][_0x5b53bb(0x185)](_0x118a37=>_0x118a37['id']===_0x355bab)),_0xf6847a&&(_0xf6847a[_0x5b53bb(0x144)]=_0x402c0c);}[_0x2faca7(0x16e)](_0x29dd01){const _0x17b706=_0x2faca7;this[_0x17b706(0x15d)][_0x17b706(0x168)]();for(const _0xe55942 of _0x29dd01){const _0x851dd9=this[_0x17b706(0x17b)](_0xe55942,_0x17b706(0x173),!0x1,!0x1);this[_0x17b706(0x194)](_0x851dd9,this[_0x17b706(0x15d)]);}}[_0x2faca7(0x1aa)](){const _0x4a0ee8=_0x2faca7;this[_0x4a0ee8(0x14c)][_0x4a0ee8(0x168)](),this[_0x4a0ee8(0x15a)][_0x4a0ee8(0x168)]();}[_0x2faca7(0x13b)](){const _0x734455=_0x2faca7;this[_0x734455(0x15d)][_0x734455(0x168)]();}[_0x2faca7(0x193)](_0x36bb87,_0x4e2c34,_0x16d83e){const _0x44230b=_0x2faca7;this[_0x44230b(0x16b)][_0x44230b(0x193)](_0x36bb87,_0x4e2c34,_0x16d83e);}[_0x2faca7(0x16d)](){const _0x15dcdd=_0x2faca7;this[_0x15dcdd(0x16a)](!0x1);}[_0x2faca7(0x14b)](){const _0x32076d=_0x2faca7;this[_0x32076d(0x16a)](!0x0);}[_0x2faca7(0x1a1)](){const _0x317e1c=_0x2faca7;this[_0x317e1c(0x195)][_0x317e1c(0x1c0)](),this[_0x317e1c(0x154)][_0x317e1c(0x151)]=!0x1,this[_0x317e1c(0x1a6)]&&this[_0x317e1c(0x1a6)][_0x317e1c(0x168)]();}[_0x2faca7(0x1a0)](){const _0xeccb77=_0x2faca7;this[_0xeccb77(0x195)][_0xeccb77(0x1ad)](),this[_0xeccb77(0x154)][_0xeccb77(0x151)]=!0x0;}[_0x2faca7(0x1b7)](_0x2ced96){const _0x22e53d=_0x2faca7;this[_0x22e53d(0x16b)][_0x22e53d(0x187)](_0x2ced96),this[_0x22e53d(0x154)][_0x22e53d(0x151)]=!0x0;}[_0x2faca7(0x19e)](_0x381f33,_0x22039a,_0x494c7b,_0x3d4f71){const _0x1f9170=_0x2faca7;this[_0x1f9170(0x16b)][_0x1f9170(0x19e)](_0x381f33,_0x494c7b,_0x3d4f71);}[_0x2faca7(0x1bf)](_0x3d15d4){const _0x52f9c8=_0x2faca7;this[_0x52f9c8(0x16b)][_0x52f9c8(0x1bf)](_0x3d15d4),this[_0x52f9c8(0x154)][_0x52f9c8(0x151)]=!0x1;}[_0x2faca7(0x17a)](_0x2a55cc){const _0x409a5a=_0x2faca7;this[_0x409a5a(0x183)](this[_0x409a5a(0x178)],this[_0x409a5a(0x176)],_0x2a55cc),this[_0x409a5a(0x14f)](_0x2a55cc);}[_0x2faca7(0x14f)](_0x1e0f29){const _0x2a5e3e=_0x2faca7,_0x4fa724=!_0x1e0f29[_0x2a5e3e(0x189)][_0x2a5e3e(0x167)]&&_0x1e0f29[_0x2a5e3e(0x189)][_0x2a5e3e(0x197)],_0x4bdfba=_0x1e0f29[_0x2a5e3e(0x188)][_0x2a5e3e(0x197)],_0x4e7826=_0x1e0f29[_0x2a5e3e(0x1ae)][_0x2a5e3e(0x197)];this[_0x2a5e3e(0x154)][_0x2a5e3e(0x155)]=_0x4fa724||_0x4bdfba||_0x4e7826;}[_0x2faca7(0x1b4)](){const _0x517bdc=_0x2faca7;this[_0x517bdc(0x14a)]({'tag':_0x517bdc(0x162),'attributes':{'class':[Eo,_0x517bdc(0x190)]},'children':[{'tag':_0x517bdc(0x162),'attributes':{'class':vo},'children':this[_0x517bdc(0x14c)]}]});}[_0x2faca7(0x1b0)](){const _0x16475f=_0x2faca7;this[_0x16475f(0x154)]['on'](_0x16475f(0x166),()=>{const _0x58ad0c=_0x16475f;this[_0x58ad0c(0x163)]();});}[_0x2faca7(0x18a)](_0x140baa){const _0x3b887d=_0x2faca7,_0x4bbb61=new _0xaf4d1d(_0x140baa);return _0x4bbb61[_0x3b887d(0x145)]({'label':_0x2b0163(_0x140baa,_0x3b887d(0x141)),'class':Lo+'\x20'+Io,'icon':_0x4a0fa6,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x4bbb61;}[_0x2faca7(0x18e)](_0x45a489){const _0x50a57c=_0x2faca7;return this[_0x50a57c(0x159)](_0x45a489,Vo);}[_0x2faca7(0x14d)](_0x7fa483){const _0x59791d=_0x2faca7,_0x3133a9=this[_0x59791d(0x159)](_0x7fa483,Po);return this[_0x59791d(0x179)](_0x3133a9,_0x7fa483),_0x3133a9;}[_0x2faca7(0x138)](_0x387ab6,_0x162ac2){const _0x4df711=_0x2faca7,_0xd45ef6={'searchInputVisibleFrom':_0x162ac2[_0x4df711(0x157)],'onBackToContext':()=>{const _0x51a61b=_0x4df711;this[_0x51a61b(0x14b)](),this[_0x51a61b(0x178)][_0x51a61b(0x182)]({'target':this[_0x51a61b(0x154)][_0x51a61b(0x139)],'limiter':this[_0x51a61b(0x1b3)](),'positions':jo});},'onResourceSelected':(_0x194641,_0x1b6b92)=>{const _0x5e7a7f=_0x4df711;this[_0x5e7a7f(0x184)](_0x5e7a7f(0x1b2),{'source':_0x194641,'resource':_0x1b6b92});},'onLoadSourceResources':_0x3bf8d9=>{const _0x729c3c=_0x4df711;this[_0x729c3c(0x184)](_0x729c3c(0x18b),_0x3bf8d9);},'onBalloonClosed':()=>{const _0x4bf6fc=_0x4df711;this[_0x4bf6fc(0x154)][_0x4bf6fc(0x151)]=!0x1;},'getLimiterElement':()=>this[_0x4df711(0x1b3)](),'getTargetElement':()=>this[_0x4df711(0x154)][_0x4df711(0x139)]};return new _0x3559cb(_0x387ab6,_0x162ac2[_0x4df711(0x17f)],_0xd45ef6);}[_0x2faca7(0x1b3)](){const _0x557bf3=_0x2faca7;return this[_0x557bf3(0x139)]?.[_0x557bf3(0x19a)]('.'+Ho)||document[_0x557bf3(0x1a2)];}[_0x2faca7(0x159)](_0x2ea295,_0x4756cf){const _0x32bf28=_0x2faca7,_0x2c4e74=new _0x1af2eb(_0x2ea295);return _0x2c4e74[_0x32bf28(0x1a7)]({'attributes':{'class':_0x4756cf}}),this[_0x32bf28(0x17f)][_0x32bf28(0x19f)](_0x2c4e74),_0x2c4e74;}[_0x2faca7(0x183)](_0x47e6e1,_0x2df1e8,_0x57ec73){const _0x1f84f1=_0x2faca7;if(_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x168)](),!_0x57ec73[_0x1f84f1(0x189)][_0x1f84f1(0x167)]&&_0x57ec73[_0x1f84f1(0x189)][_0x1f84f1(0x197)]){const _0xfe81ca=this[_0x1f84f1(0x149)](_0x2df1e8,{'label':_0x2b0163(_0x2df1e8,_0x1f84f1(0x1c3)),'icon':_0x32e42e});_0xfe81ca['on'](_0x1f84f1(0x166),()=>{const _0x13c397=_0x1f84f1;this[_0x13c397(0x184)](_0x13c397(0x171)),this[_0x13c397(0x16d)]();}),_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0xfe81ca);}if(_0x57ec73[_0x1f84f1(0x188)][_0x1f84f1(0x197)]){const _0x16610a=this[_0x1f84f1(0x149)](_0x2df1e8,{'label':_0x2b0163(_0x2df1e8,_0x1f84f1(0x1a4)),'icon':_0x42f1b6});_0x16610a['on'](_0x1f84f1(0x166),()=>{const _0x14f326=_0x1f84f1;this[_0x14f326(0x16d)](),this[_0x14f326(0x1a0)](),this[_0x14f326(0x195)][_0x14f326(0x182)]({'target':this[_0x14f326(0x154)][_0x14f326(0x139)],'limiter':this[_0x14f326(0x1b3)](),'positions':jo}),this[_0x14f326(0x1a6)][_0x14f326(0x1a5)]();}),_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0x16610a);}if(_0x57ec73[_0x1f84f1(0x1ae)][_0x1f84f1(0x197)]){const _0xff2274=new _0x47f866(_0x2df1e8);_0xff2274[_0x1f84f1(0x145)]({'label':_0x2b0163(_0x2df1e8,_0x1f84f1(0x1c1)),'icon':_0x47a33c,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0xff2274['on'](_0x1f84f1(0x158),(_0x389855,_0x360e9b)=>{const _0x490792=_0x1f84f1;this[_0x490792(0x184)](_0x490792(0x186),_0x360e9b),this[_0x490792(0x16d)]();}),_0xff2274[_0x1f84f1(0x148)]=!0x0,_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0xff2274);}for(const _0x48e1cc of _0x57ec73[_0x1f84f1(0x177)]){const _0x5ef559=this[_0x1f84f1(0x149)](_0x2df1e8,{'label':_0x48e1cc[_0x1f84f1(0x142)],'icon':_0x48e1cc[_0x1f84f1(0x161)]||_0x3302cb,'type':_0x1f84f1(0x14e)});_0x47e6e1[_0x1f84f1(0x174)][_0x1f84f1(0x19f)](_0x5ef559),_0x5ef559['on'](_0x1f84f1(0x166),()=>{const _0x582682=_0x1f84f1;this[_0x582682(0x16d)](),this[_0x582682(0x1b7)](_0x48e1cc);});}}[_0x2faca7(0x179)](_0x5f0fa5,_0x35fee6){const _0x341a7d=_0x2faca7;this[_0x341a7d(0x1a6)]=new _0x356019(_0x35fee6),this[_0x341a7d(0x1a6)]['on'](_0x341a7d(0x136),(_0x14fd3e,_0x18dc48)=>{const _0x470c58=_0x341a7d;this[_0x470c58(0x165)](_0x18dc48);}),this[_0x341a7d(0x1a6)]['on'](_0x341a7d(0x1ab),()=>{const _0x3c4412=_0x341a7d;this[_0x3c4412(0x1a1)](),this[_0x3c4412(0x14b)](),this[_0x3c4412(0x178)][_0x3c4412(0x182)]({'target':this[_0x3c4412(0x154)][_0x3c4412(0x139)],'limiter':this[_0x3c4412(0x1b3)](),'positions':jo});}),this[_0x341a7d(0x1a6)]['on'](_0x341a7d(0x180),()=>{const _0x1498fe=_0x341a7d;this[_0x1498fe(0x195)][_0x1498fe(0x15e)]&&this[_0x1498fe(0x195)][_0x1498fe(0x182)]({'target':this[_0x1498fe(0x154)][_0x1498fe(0x139)],'limiter':this[_0x1498fe(0x1b3)](),'positions':jo});}),_0x5f0fa5[_0x341a7d(0x174)][_0x341a7d(0x19f)](this[_0x341a7d(0x1a6)]);}[_0x2faca7(0x149)](_0x3eb40c,_0x442968){const _0x556c8e=_0x2faca7,_0x166347=_0x556c8e(0x14e)===_0x442968[_0x556c8e(0x135)]?new SourcesBalloonButtonView(_0x3eb40c):new _0xaf4d1d(_0x3eb40c);return _0x166347[_0x556c8e(0x145)]({'label':_0x442968[_0x556c8e(0x142)],'icon':_0x442968[_0x556c8e(0x161)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x166347;}[_0x2faca7(0x16c)](){const _0xd95bfc=_0x2faca7;this[_0xd95bfc(0x133)](),this[_0xd95bfc(0x15f)]();}[_0x2faca7(0x15f)](){const _0x36b953=_0x2faca7;_0x191ba2({'emitter':this[_0x36b953(0x195)],'contextElements':[this[_0x36b953(0x195)][_0x36b953(0x139)]],'callback':()=>{const _0x394b85=_0x36b953;this[_0x394b85(0x1a1)]();},'activator':()=>this[_0x36b953(0x195)][_0x36b953(0x15e)]});}[_0x2faca7(0x16a)](_0x20e8f8){const _0x426e81=_0x2faca7,_0x223e04=this[_0x426e81(0x146)];_0x223e04[_0x426e81(0x19c)][_0x426e81(0x151)]=_0x20e8f8,_0x20e8f8?_0x223e04[_0x426e81(0x19b)][_0x426e81(0x1ad)]():_0x223e04[_0x426e81(0x19b)][_0x426e81(0x1c0)]();}[_0x2faca7(0x133)](){const _0x3bc6d6=_0x2faca7,{balloonView:_0x1ef23c,buttonView:_0x31e98b,hideMethod:_0x5ca139}=this[_0x3bc6d6(0x146)];_0x191ba2({'emitter':_0x1ef23c,'contextElements':[_0x1ef23c[_0x3bc6d6(0x139)],_0x31e98b[_0x3bc6d6(0x139)]],'callback':()=>{_0x5ca139();},'activator':()=>_0x31e98b[_0x3bc6d6(0x151)]&&!this[_0x3bc6d6(0x195)][_0x3bc6d6(0x15e)]&&!this[_0x3bc6d6(0x16b)][_0x3bc6d6(0x1ba)]()});}[_0x2faca7(0x17b)](_0x518b67,_0x473db2,_0x347e92=!0x1,_0x33fafa=!0x1){const _0x1cff8d=_0x2faca7,_0x221ec0=_0x1cff8d(0x173)===_0x473db2||!0x0===_0x518b67[_0x1cff8d(0x143)],_0x57af04=new _0x37c993(this[_0x1cff8d(0x176)],_0x518b67,_0x221ec0,_0x347e92,_0x33fafa);return _0x221ec0||_0x57af04['on'](_0x1cff8d(0x13a),()=>{const _0x2285df=_0x1cff8d;this[_0x2285df(0x184)](_0x2285df(0x17d),_0x57af04['id']);}),_0x57af04;}[_0x2faca7(0x194)](_0xb8d998,_0x3b48a8){const _0x47dfda=_0x2faca7;_0x3b48a8[_0x47dfda(0x19f)](_0xb8d998,0x0);}[_0x2faca7(0x140)](_0x2673d0,_0x6ce48f){const _0x349cd1=_0x2faca7,_0x333672=_0x6ce48f[_0x349cd1(0x185)](_0x3f3e18=>_0x3f3e18['id']===_0x2673d0);_0x333672&&_0x6ce48f[_0x349cd1(0x1a9)](_0x333672);}[_0x2faca7(0x163)](){const _0x3fd5fd=_0x2faca7;this[_0x3fd5fd(0x154)][_0x3fd5fd(0x151)]?this[_0x3fd5fd(0x16d)]():(this[_0x3fd5fd(0x14b)](),this[_0x3fd5fd(0x178)][_0x3fd5fd(0x182)]({'target':this[_0x3fd5fd(0x154)][_0x3fd5fd(0x139)],'limiter':this[_0x3fd5fd(0x1b3)](),'positions':jo}));}[_0x2faca7(0x165)](_0x4b7d4b){const _0x1344f5=_0x2faca7;this[_0x1344f5(0x1a6)][_0x1344f5(0x168)](),this[_0x1344f5(0x1a1)](),this[_0x1344f5(0x184)](_0x1344f5(0x19d),_0x4b7d4b);}}export class SourcesBalloonButtonView extends _0xaf4d1d{[_0x2faca7(0x137)];constructor(_0x1c0783){const _0x37defc=_0x2faca7;super(_0x1c0783),this[_0x37defc(0x145)]({'withText':!0x0,'role':_0x37defc(0x1bb)}),this[_0x37defc(0x137)]=this[_0x37defc(0x1b1)](),this[_0x37defc(0x1a7)]({'attributes':{'class':[Uo]}});}[_0x2faca7(0x18f)](){const _0x361f8d=_0x2faca7;super[_0x361f8d(0x18f)](),this[_0x361f8d(0x15b)][_0x361f8d(0x19f)](this[_0x361f8d(0x137)]);}[_0x2faca7(0x1b1)](){const _0x95ffd0=_0x2faca7,_0x55902d=new _0x3de797();return _0x55902d[_0x95ffd0(0x174)]=_0x1fd93d,_0x55902d[_0x95ffd0(0x1a7)]({'attributes':{'class':Uo+_0x95ffd0(0x13f)}}),_0x55902d;}}
|