@ckeditor/ckeditor5-ai 47.3.0-alpha.1 → 47.3.0-alpha.3
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 -15
- package/dist/index.css +19 -15
- 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 -14
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f5caf=_0x19b4;(function(_0x36c855,_0x6325f9){const _0x473a85=_0x19b4,_0x3c70ff=_0x36c855();while(!![]){try{const _0x4a31a8=parseInt(_0x473a85(0x1b6))/0x1+parseInt(_0x473a85(0x1c8))/0x2*(-parseInt(_0x473a85(0x1b1))/0x3)+parseInt(_0x473a85(0x1c4))/0x4+-parseInt(_0x473a85(0x186))/0x5+-parseInt(_0x473a85(0x1a6))/0x6+-parseInt(_0x473a85(0x19b))/0x7+parseInt(_0x473a85(0x197))/0x8;if(_0x4a31a8===_0x6325f9)break;else _0x3c70ff['push'](_0x3c70ff['shift']());}catch(_0x41985e){_0x3c70ff['push'](_0x3c70ff['shift']());}}}(_0x4071,0x4f25b));function _0x19b4(_0x143d4b,_0x3b5df8){const _0x4071bd=_0x4071();return _0x19b4=function(_0x19b40b,_0xde0467){_0x19b40b=_0x19b40b-0x180;let _0xd13aa6=_0x4071bd[_0x19b40b];return _0xd13aa6;},_0x19b4(_0x143d4b,_0x3b5df8);}function _0x4071(){const _0x515b09=['change:isLoading','startConversation','execute','clearCurrentContextItems','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','element','_createContextPanelView','setInputPlaceholder','locale','enableModelSelector','set','_createPromptCapabilitiesView','1504412BWKgpD','delegate','setReasoning','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','214070RqfuGU','setModel','setContextItemLoading','_createLoaderView','form','isLoading','bindTemplate','isDisabled','sendUserMessage','clearPendingContextUI','_createPromptInputView','toggleReasoning','focus','2274680geozUd','ck-ai-chat-controls__start-new-chat-button','resetMessageInput','addContextButtonView','ck-ai-chat-controls','abortPromptStream','populateSourceResourceBalloon','_createModelUnavailableMessageView','ck-hidden','bodyCollection','setWebSearch','isModelAvailable','_handlePromptInputFocus','setTemplate','setConversationContext','setAddContextOptions','addContextItem','11323456bZPTvI','_displayedModels','_promptInputView','focusPromptInput','2667175zHphVH','removeContextItem','updateResourceState','ck-ai-chat-controls-disabled','_modelUnavailableMessageView','div','_promptCapabilitiesView','disableModelSelector','startsWith','reset','find','2748558kHhTMZ','ck-ai-chat-controls-model-unavailable-message','setIsUploadInProgress','toggleWebSearch','closeSourceResourceBalloon','low','agent','contextResourcesSearchInputVisibleFrom','_loaderView','setModelList','selectModel','15egDOyJ','clearConversationContextItems','_contextPanelView','clearConversationContextUI','setPlaceholderText','361881SfXTtM','_shouldRestorePromptInputFocus'];_0x4071=function(){return _0x515b09;};return _0x4071();}import{ButtonView as _0x1458ac,clickOutsideHandler as _0x1d2825,View as _0x5ed3a6}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x1669d5}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x1d160c}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x454e8c,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x169b97}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x5e5394}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x4e8f19}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x5ed3a6{[_0x1f5caf(0x198)]=[];[_0x1f5caf(0x1b3)];[_0x1f5caf(0x199)];[_0x1f5caf(0x1a1)];[_0x1f5caf(0x1ae)];[_0x1f5caf(0x19f)];[_0x1f5caf(0x1b7)];constructor(_0xda5b27,_0x591bf2){const _0x3e52ae=_0x1f5caf;super(_0xda5b27),this[_0x3e52ae(0x1b3)]=this[_0x3e52ae(0x1be)](_0xda5b27,{'bodyCollection':_0x591bf2[_0x3e52ae(0x18f)],'searchInputVisibleFrom':_0x591bf2[_0x3e52ae(0x1ad)]}),this[_0x3e52ae(0x199)]=this[_0x3e52ae(0x183)](_0xda5b27),this[_0x3e52ae(0x1a1)]=this[_0x3e52ae(0x1c3)](_0xda5b27),this[_0x3e52ae(0x1ae)]=this[_0x3e52ae(0x1cb)](_0xda5b27),this[_0x3e52ae(0x19f)]=this[_0x3e52ae(0x18d)](_0xda5b27),this[_0x3e52ae(0x1b7)]=!0x1,this[_0x3e52ae(0x199)][_0x3e52ae(0x1c5)](_0x3e52ae(0x181))['to'](this),this[_0x3e52ae(0x1ae)][_0x3e52ae(0x1c5)](_0x3e52ae(0x18b))['to'](this),this[_0x3e52ae(0x1a1)][_0x3e52ae(0x1c5)](_0x3e52ae(0x1a9))['to'](this),this[_0x3e52ae(0x1a1)][_0x3e52ae(0x1c5)](_0x3e52ae(0x184))['to'](this),this[_0x3e52ae(0x1a1)][_0x3e52ae(0x1c5)](_0x3e52ae(0x1b0))['to'](this),this[_0x3e52ae(0x1b3)][_0x3e52ae(0x1c5)](..._0x169b97)['to'](this),this[_0x3e52ae(0x1c2)](_0x3e52ae(0x191),!0x0),this[_0x3e52ae(0x1c2)](_0x3e52ae(0x180),!0x1);const _0x50ea1f=this[_0x3e52ae(0x1ce)];this[_0x3e52ae(0x193)]({'tag':_0x3e52ae(0x1cc),'attributes':{'class':['ck',_0x3e52ae(0x18a),_0x50ea1f['if'](_0x3e52ae(0x180),_0x3e52ae(0x19e))]},'children':[{'tag':_0x3e52ae(0x1a0),'attributes':{'class':[_0x50ea1f['if'](_0x3e52ae(0x1cd),_0x3e52ae(0x18e),_0x509616=>_0x509616||!this[_0x3e52ae(0x191)]),_0x50ea1f['if'](_0x3e52ae(0x191),_0x3e52ae(0x18e),_0x24d8f6=>!_0x24d8f6||this[_0x3e52ae(0x1cd)])]},'children':[this[_0x3e52ae(0x1b3)],this[_0x3e52ae(0x199)],this[_0x3e52ae(0x1a1)]]},{'tag':_0x3e52ae(0x1a0),'attributes':{'class':[_0x50ea1f['if'](_0x3e52ae(0x1cd),_0x3e52ae(0x18e),_0x1d2c5a=>!_0x1d2c5a)]},'children':[this[_0x3e52ae(0x1ae)]]},{'tag':_0x3e52ae(0x1a0),'attributes':{'class':[_0x50ea1f['if'](_0x3e52ae(0x191),_0x3e52ae(0x18e),_0xc55e08=>_0xc55e08)]},'children':[this[_0x3e52ae(0x19f)]]}]}),_0x1d2825({'emitter':this[_0x3e52ae(0x199)],'activator':()=>this[_0x3e52ae(0x1cd)],'contextElements':()=>[this[_0x3e52ae(0x1bd)]],'callback':()=>{const _0x187ef8=_0x3e52ae;this[_0x187ef8(0x1b7)]=!0x1;}}),this['on'](_0x3e52ae(0x1b8),this[_0x3e52ae(0x192)],{'priority':_0x3e52ae(0x1ab)});}[_0x1f5caf(0x1be)](_0x5cbc27,_0x30c827){return new _0x454e8c(_0x5cbc27,_0x30c827);}[_0x1f5caf(0x183)](_0x318bfe){const _0x589f8a=_0x1f5caf;return new _0x1669d5(_0x318bfe,this[_0x589f8a(0x1b3)][_0x589f8a(0x189)]);}[_0x1f5caf(0x1c3)](_0x142607){return new _0x1d160c(_0x142607);}[_0x1f5caf(0x1cb)](_0x3e0122){return new _0x5e5394(_0x3e0122);}[_0x1f5caf(0x18d)](_0x63ce30){const _0x47cbbe=_0x1f5caf,_0x44f796=new ws(_0x63ce30);return _0x44f796[_0x47cbbe(0x1c5)](_0x47cbbe(0x1b9))['to'](this),_0x44f796;}[_0x1f5caf(0x192)](_0x261167,_0x2f959e,_0xa4d8ee){const _0x266891=_0x1f5caf;_0xa4d8ee?this[_0x266891(0x1b7)]=!0x0:this[_0x266891(0x1b7)]&&this[_0x266891(0x199)][_0x266891(0x185)]();}[_0x1f5caf(0x196)](_0x1eca9e,_0x5d6932){const _0x1525cf=_0x1f5caf;this[_0x1525cf(0x1b3)][_0x1525cf(0x196)](_0x1eca9e,_0x5d6932);}[_0x1f5caf(0x19c)](_0x16a130){const _0x5b6a29=_0x1f5caf;this[_0x5b6a29(0x1b3)][_0x5b6a29(0x19c)](_0x16a130);}[_0x1f5caf(0x1ca)](_0x5da8b2,_0xf18485){const _0x4cc645=_0x1f5caf;this[_0x4cc645(0x1b3)][_0x4cc645(0x1ca)](_0x5da8b2,_0xf18485);}[_0x1f5caf(0x1a8)](_0x23b995){const _0x39cc41=_0x1f5caf;this[_0x39cc41(0x199)][_0x39cc41(0x1a8)](_0x23b995);}[_0x1f5caf(0x194)](_0x1784ee){const _0x437274=_0x1f5caf;this[_0x437274(0x1b3)][_0x437274(0x194)](_0x1784ee);}[_0x1f5caf(0x182)](){const _0x2aa612=_0x1f5caf;this[_0x2aa612(0x1b3)][_0x2aa612(0x1bb)]();}[_0x1f5caf(0x1b4)](){const _0x1a2cb7=_0x1f5caf;this[_0x1a2cb7(0x1b3)][_0x1a2cb7(0x1b2)]();}[_0x1f5caf(0x19d)](_0x301733,_0x231681,_0x4d3b0f){const _0x54b13f=_0x1f5caf;this[_0x54b13f(0x1b3)][_0x54b13f(0x19d)](_0x301733,_0x231681,_0x4d3b0f);}[_0x1f5caf(0x190)](_0xc66e9){const _0x4ea6ea=_0x1f5caf;this[_0x4ea6ea(0x1a1)][_0x4ea6ea(0x190)](_0xc66e9);}[_0x1f5caf(0x1c6)](_0x950dc2){const _0x23f5bf=_0x1f5caf;this[_0x23f5bf(0x1a1)][_0x23f5bf(0x1c6)](_0x950dc2);}[_0x1f5caf(0x188)](){const _0xa9cd0b=_0x1f5caf;this[_0xa9cd0b(0x199)][_0xa9cd0b(0x1a4)]();}[_0x1f5caf(0x195)](_0x1882ed){const _0x51532c=_0x1f5caf;this[_0x51532c(0x1b3)][_0x51532c(0x195)](_0x1882ed);}[_0x1f5caf(0x1bf)](_0x41c48b){const _0x3666c8=_0x1f5caf;this[_0x3666c8(0x199)][_0x3666c8(0x1b5)](_0x41c48b);}[_0x1f5caf(0x1af)](_0x1eafff,_0x5af887){const _0x2448da=_0x1f5caf;this[_0x2448da(0x198)]=_0x1eafff,this[_0x2448da(0x1a1)][_0x2448da(0x1af)](_0x1eafff,_0x5af887);}[_0x1f5caf(0x1c9)](_0x450531){const _0x276405=_0x1f5caf;(_0x450531?this[_0x276405(0x198)][_0x276405(0x1a5)](_0x5b5bb7=>_0x5b5bb7['id']===_0x450531['id']):null)?(this[_0x276405(0x191)]=!0x0,this[_0x276405(0x1a1)][_0x276405(0x1c9)](_0x450531)):_0x450531?.['id'][_0x276405(0x1a3)](_0x276405(0x1ac))?(this[_0x276405(0x191)]=!0x0,this[_0x276405(0x1a1)][_0x276405(0x1c9)](this[_0x276405(0x198)][0x0])):this[_0x276405(0x191)]=!0x1;}[_0x1f5caf(0x1c1)](){const _0x41e27b=_0x1f5caf;this[_0x41e27b(0x1a1)][_0x41e27b(0x1c1)]();}[_0x1f5caf(0x1a2)](_0x2d131a){const _0x3e0412=_0x1f5caf;this[_0x3e0412(0x1a1)][_0x3e0412(0x1a2)](_0x2d131a);}[_0x1f5caf(0x18c)](_0x25f705,_0x55ae56,_0x3d97c6,_0x2a5c65){const _0x565826=_0x1f5caf;this[_0x565826(0x1b3)][_0x565826(0x18c)](_0x25f705,_0x55ae56,_0x3d97c6,_0x2a5c65);}[_0x1f5caf(0x1aa)](_0x890f2b){const _0x4ae559=_0x1f5caf;this[_0x4ae559(0x1b3)][_0x4ae559(0x1aa)](_0x890f2b);}[_0x1f5caf(0x19a)](){const _0x982952=_0x1f5caf;this[_0x982952(0x199)][_0x982952(0x185)]();}}class ws extends _0x5ed3a6{constructor(_0x4e725e){const _0x2cdc48=_0x1f5caf;super(_0x4e725e);const _0xbff7a6=new _0x1458ac(_0x4e725e);_0xbff7a6[_0x2cdc48(0x1c2)]({'label':_0x4e8f19(this[_0x2cdc48(0x1c0)],_0x2cdc48(0x1bc)),'withText':!0x0,'class':[_0x2cdc48(0x187)],'tooltip':''}),_0xbff7a6[_0x2cdc48(0x1c5)](_0x2cdc48(0x1ba))['to'](this,_0x2cdc48(0x1b9)),this[_0x2cdc48(0x193)]({'tag':_0x2cdc48(0x1a0),'attributes':{'class':['ck',_0x2cdc48(0x1a7)]},'children':[{'tag':'p','children':[{'text':_0x4e8f19(this[_0x2cdc48(0x1c0)],_0x2cdc48(0x1c7))+'\x20'},_0xbff7a6]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4dd6(){const _0x504eb2=['start','updateSuggestionPartState','createCollection','_createSkeletonLoader','445461OeZiLA','addItem','startAutoScroll','_setupTemplate','div','updateReplyItem','ck-ai-chat__feed__items','span','getItemIds','2198791nTCIWr','ai-chat-feed-view-item-not-a-reply-item','getItemById','includes','updateSources','scrollToSuggestion','ck-hidden','isTrackChangesOn','ai-suggestion-reply','_createTemplateChildren','updatePartState','bindTemplate','markAsDone','_bodyCollection','ai-reply','interaction-header','3656840KPakYl','_createLoaderChildren','aiFeed','stop','ck-ai-chat__feed','_createFeedItems','getPartView','children','ai-chat-feed-view-item-not-found','scrollManager','234744RdPxiU','set','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','updateContent','stopAutoScroll','isVisible','map','markItemAsDone','setTemplate','ai-chat-feed-view-item-not-a-suggestion-item','3665uOzLgi','updateSuggestionItem','setLoadingMessage','ck-ai-chat__loader-text','306fjxKBn','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','options','_createFeedLoader','user-message','find','ck-ai-chat__loader','render','isPending','loadingMessage','700790CgdVhK','updateWebSources','bind','remove','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','locale','isLoadingSkeletonVisible','extendTemplate','element','removeItem','delegate','add','toggleLoadingSkeleton','destroy','clear','534496zsoNgg'];_0x4dd6=function(){return _0x504eb2;};return _0x4dd6();}const _0x3a7f64=_0x31c4;(function(_0x380209,_0x14e60e){const _0x3343b5=_0x31c4,_0xd368d6=_0x380209();while(!![]){try{const _0x344f74=-parseInt(_0x3343b5(0xfd))/0x1+-parseInt(_0x3343b5(0xc6))/0x2+-parseInt(_0x3343b5(0xda))/0x3+parseInt(_0x3343b5(0xd5))/0x4+-parseInt(_0x3343b5(0x107))/0x5*(-parseInt(_0x3343b5(0x10b))/0x6)+parseInt(_0x3343b5(0xe3))/0x7+parseInt(_0x3343b5(0xf3))/0x8;if(_0x344f74===_0x14e60e)break;else _0xd368d6['push'](_0xd368d6['shift']());}catch(_0x34b3da){_0xd368d6['push'](_0xd368d6['shift']());}}}(_0x4dd6,0x32ed7));import{CKEditorError as _0x13d8f3,logWarning as _0xc6cfbc,scrollViewportToShowTarget as _0x42d3d8}from'ckeditor5/src/utils.js';import{View as _0x1b5f20}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x16eb8f}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x255af7}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x42530b}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x9fd0b9}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x3f8ae4}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x570efb}from'./feed/aichatfeedinteractionheaderview.js';function _0x31c4(_0x141894,_0x5ac2de){const _0x4dd600=_0x4dd6();return _0x31c4=function(_0x31c42c,_0x3c2f4c){_0x31c42c=_0x31c42c-0xc2;let _0x1b06a5=_0x4dd600[_0x31c42c];return _0x1b06a5;},_0x31c4(_0x141894,_0x5ac2de);}import{ScrollManager as _0x4d91a8}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x5a677f,SKELETON_DEFINITIONS as _0x19a3fb}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0xe6c98f}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x1b5f20{[_0x3a7f64(0xfa)];[_0x3a7f64(0xfc)];[_0x3a7f64(0xf0)];constructor(_0x5526ca,_0x2033e0){const _0x4ae642=_0x3a7f64;super(_0x5526ca),this[_0x4ae642(0xf0)]=_0x2033e0,this[_0x4ae642(0xfe)](_0x4ae642(0xc4),!0x1),this[_0x4ae642(0xfe)](_0x4ae642(0xc5),''),this[_0x4ae642(0xfe)](_0x4ae642(0xcc),!0x1),this[_0x4ae642(0xfe)](_0x4ae642(0xea),!0x1),this[_0x4ae642(0xfa)]=this[_0x4ae642(0xd8)](),this[_0x4ae642(0xfa)][_0x4ae642(0xd0)](..._0x16eb8f)['to'](this),this[_0x4ae642(0xdd)]();}[_0x3a7f64(0xc3)](){const _0xe93af=_0x3a7f64;super[_0xe93af(0xc3)](),this[_0xe93af(0xfc)]=new _0x4d91a8(this[_0xe93af(0xce)]);}[_0x3a7f64(0xd3)](){const _0x539c10=_0x3a7f64;super[_0x539c10(0xd3)](),this[_0x539c10(0xfc)][_0x539c10(0xd3)]();}[_0x3a7f64(0xd4)](){const _0x37b5a2=_0x3a7f64;this[_0x37b5a2(0xfa)][_0x37b5a2(0xd4)]();}[_0x3a7f64(0xdb)](_0x4d8804,_0x76e6bc){const _0x49b1a9=_0x3a7f64;let _0x1c7bd7;_0x49b1a9(0xf1)===_0x4d8804?_0x1c7bd7=new _0x42530b(this[_0x49b1a9(0xcb)],_0x76e6bc):_0x49b1a9(0xeb)===_0x4d8804?(_0x1c7bd7=new _0x255af7(this[_0x49b1a9(0xcb)],_0x76e6bc),_0x1c7bd7[_0x49b1a9(0xc8)](_0x49b1a9(0xea))['to'](this,_0x49b1a9(0xea))):_0x1c7bd7=_0x49b1a9(0x10f)===_0x4d8804?new _0x9fd0b9(this[_0x49b1a9(0xcb)],_0x76e6bc,this[_0x49b1a9(0xf0)]):_0x49b1a9(0xf2)===_0x4d8804?new _0x570efb(this[_0x49b1a9(0xcb)],_0x76e6bc):new _0x3f8ae4(_0x76e6bc),this[_0x49b1a9(0xfa)][_0x49b1a9(0xd1)](_0x1c7bd7);}async[_0x3a7f64(0xdf)]({id:_0x5edc71,parsedContent:_0x1a4ba3,renderingStrategy:_0x39355b,abortSignal:_0x138b3f}){const _0x1b5598=_0x3a7f64,_0x383a74=this[_0x1b5598(0xe5)](_0x5edc71);if(!(_0x383a74 instanceof _0x42530b))throw new _0x13d8f3(_0x1b5598(0xe4),null,{'itemView':_0x383a74,'id':_0x5edc71,'parsedContent':_0x1a4ba3});await _0x383a74[_0x1b5598(0x100)]({'parsedContent':_0x1a4ba3,'renderingStrategy':_0x39355b,'abortSignal':_0x138b3f});}async[_0x3a7f64(0xc7)](_0x2f1f69,_0x41693b){const _0x860733=_0x3a7f64,_0x13042f=this[_0x860733(0xe5)](_0x2f1f69);if(_0x13042f instanceof _0x255af7)_0x13042f[_0x860733(0xe7)](_0x41693b);else{if(!(_0x13042f instanceof _0x42530b))throw new _0x13d8f3(_0x860733(0xff),null,{'itemView':_0x13042f,'id':_0x2f1f69,'sources':_0x41693b});_0x13042f[_0x860733(0xe7)](_0x41693b);}}async[_0x3a7f64(0x108)]({id:_0x216e7a,parts:_0x20c553,renderingStrategy:_0x19a8cd,abortSignal:_0x36de43}){const _0xe43550=_0x3a7f64,_0x21958e=this[_0xe43550(0xe5)](_0x216e7a);if(!(_0x21958e instanceof _0x255af7))throw new _0x13d8f3(_0xe43550(0x106),null,{'itemView':_0x21958e,'id':_0x216e7a,'parts':_0x20c553});await _0x21958e[_0xe43550(0x100)]({'parts':_0x20c553,'renderingStrategy':_0x19a8cd,'abortSignal':_0x36de43});}[_0x3a7f64(0xd7)]({id:_0x3adf06,index:_0x47596f,state:_0x251626}){const _0x3d4640=_0x3a7f64,_0x114d3c=this[_0x3d4640(0xe5)](_0x3adf06);if(!(_0x114d3c instanceof _0x255af7))throw new _0x13d8f3(_0x3d4640(0x106),this,{'id':_0x3adf06});_0x114d3c[_0x3d4640(0xed)](_0x47596f,_0x251626);}[_0x3a7f64(0x104)](_0x3a341a){const _0x2fe03f=_0x3a7f64;this[_0x2fe03f(0xe5)](_0x3a341a)[_0x2fe03f(0xef)]();}[_0x3a7f64(0xe2)](){const _0x579587=_0x3a7f64;return this[_0x579587(0xfa)][_0x579587(0x103)](_0x81f8ec=>_0x81f8ec[_0x579587(0x10d)]['id']);}[_0x3a7f64(0xcf)](_0xaf8d0a){const _0x34507e=_0x3a7f64;this[_0x34507e(0xfa)][_0x34507e(0xc9)](this[_0x34507e(0xe5)](_0xaf8d0a));}[_0x3a7f64(0xe8)](_0x163b9f,_0x4d16d5){const _0x5e8ed5=_0x3a7f64,_0x592a36=this[_0x5e8ed5(0xe5)](_0x163b9f);if(!(_0x592a36 instanceof _0x255af7))return void _0xc6cfbc(_0x5e8ed5(0x10c),{'replyId':_0x163b9f,'partIndex':_0x4d16d5});const _0x370545=_0x592a36[_0x5e8ed5(0xf9)](_0x4d16d5);_0x370545?_0x42d3d8({'target':_0x370545[_0x5e8ed5(0xce)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0xc6cfbc(_0x5e8ed5(0xca),{'replyId':_0x163b9f,'partIndex':_0x4d16d5});}[_0x3a7f64(0xdd)](){const _0x44277a=_0x3a7f64;this[_0x44277a(0x105)]({'tag':_0x44277a(0xde),'attributes':{'class':['ck',_0x44277a(0xf7)]},'children':this[_0x44277a(0xec)]()});}[_0x3a7f64(0xec)](){const _0x55d780=_0x3a7f64,_0x13644e=this[_0x55d780(0xd9)]();return[this[_0x55d780(0xf8)](),_0x13644e,this[_0x55d780(0x10e)]()];}[_0x3a7f64(0xd9)](){const _0x37d8d0=_0x3a7f64,_0x4b1224=new _0x5a677f(this[_0x37d8d0(0xcb)],_0x19a3fb[_0x37d8d0(0xf5)]);return _0x4b1224[_0x37d8d0(0xcd)]({'attributes':{'class':[this[_0x37d8d0(0xee)]['if'](_0x37d8d0(0xcc),_0x37d8d0(0xe9),_0x5deaee=>!_0x5deaee)]}}),_0x4b1224;}[_0x3a7f64(0xf8)](){const _0x5ef9c8=_0x3a7f64,_0x740338=new _0x1b5f20(this[_0x5ef9c8(0xcb)]);return _0x740338[_0x5ef9c8(0x105)]({'tag':_0x5ef9c8(0xde),'attributes':{'class':['ck',_0x5ef9c8(0xe0),this[_0x5ef9c8(0xee)]['if'](_0x5ef9c8(0xcc),_0x5ef9c8(0xe9))]},'children':this[_0x5ef9c8(0xfa)]}),_0x740338;}[_0x3a7f64(0x10e)](){const _0x205ef9=_0x3a7f64,_0x2c837f=new _0x1b5f20(this[_0x205ef9(0xcb)]);return _0x2c837f[_0x205ef9(0x105)]({'tag':_0x205ef9(0xde),'attributes':{'class':['ck',_0x205ef9(0xc2),this[_0x205ef9(0xee)]['if'](_0x205ef9(0xc4),_0x205ef9(0xe9),_0xb95f05=>!_0xb95f05)]},'children':this[_0x205ef9(0xf4)]()}),_0x2c837f;}[_0x3a7f64(0xf4)](){const _0xc5b20=_0x3a7f64,_0x4019f3=new _0xe6c98f();return _0x4019f3[_0xc5b20(0x102)]=!0x0,[_0x4019f3,{'tag':_0xc5b20(0xe1),'attributes':{'class':['ck',_0xc5b20(0x10a)]},'children':[{'text':this[_0xc5b20(0xee)]['to'](_0xc5b20(0xc5))}]}];}[_0x3a7f64(0xe5)](_0x56d3e0){const _0xa8d8d0=_0x3a7f64,_0x4db689=this[_0xa8d8d0(0xfa)][_0xa8d8d0(0x110)](_0x1ab7cc=>_0x1ab7cc[_0xa8d8d0(0x10d)]['id'][_0xa8d8d0(0xe6)](_0x56d3e0));if(!_0x4db689)throw new _0x13d8f3(_0xa8d8d0(0xfb),this,{'id':_0x56d3e0});return _0x4db689;}[_0x3a7f64(0x109)](_0x50803f){const _0x65daa4=_0x3a7f64;this[_0x65daa4(0xfe)](_0x65daa4(0xc5),_0x50803f);}[_0x3a7f64(0xd2)](_0x51e5a2){const _0x52d716=_0x3a7f64;this[_0x52d716(0xfe)](_0x52d716(0xcc),_0x51e5a2);}[_0x3a7f64(0xdc)](){const _0xbcc81a=_0x3a7f64;this[_0xbcc81a(0xfc)][_0xbcc81a(0xd6)]();}[_0x3a7f64(0x101)](){const _0x9ca6e7=_0x3a7f64;this[_0x9ca6e7(0xfc)][_0x9ca6e7(0xf6)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x36188a=_0x59ec;(function(_0x506c7a,_0x143bf3){const _0x41d51d=_0x59ec,_0x5d7ca6=_0x506c7a();while(!![]){try{const _0x3b9633=-parseInt(_0x41d51d(0x123))/0x1+-parseInt(_0x41d51d(0x127))/0x2*(parseInt(_0x41d51d(0x110))/0x3)+parseInt(_0x41d51d(0x114))/0x4*(-parseInt(_0x41d51d(0x120))/0x5)+-parseInt(_0x41d51d(0x111))/0x6*(-parseInt(_0x41d51d(0x113))/0x7)+-parseInt(_0x41d51d(0x125))/0x8*(-parseInt(_0x41d51d(0x11e))/0x9)+-parseInt(_0x41d51d(0x119))/0xa+-parseInt(_0x41d51d(0x11c))/0xb;if(_0x3b9633===_0x143bf3)break;else _0x5d7ca6['push'](_0x5d7ca6['shift']());}catch(_0x1cb583){_0x5d7ca6['push'](_0x5d7ca6['shift']());}}}(_0x3a37,0xed2e4));import{ButtonView as _0x1e45ee,FormHeaderView as _0x2aac63}from'ckeditor5/src/ui.js';import{IconPlus as _0x33cace,IconAIChat as _0x3b8f59}from'ckeditor5/src/icons.js';import{getTranslation as _0x2cb585}from'../../aicore/utils/common-translations.js';function _0x59ec(_0x26c0c1,_0x54a969){const _0x3a3730=_0x3a37();return _0x59ec=function(_0x59ecc4,_0x2d9680){_0x59ecc4=_0x59ecc4-0x110;let _0x47c5c3=_0x3a3730[_0x59ecc4];return _0x47c5c3;},_0x59ec(_0x26c0c1,_0x54a969);}function _0x3a37(){const _0x409b3f=['AI_CHAT_HEADING','1062KbDKdV','AI_CHAT_LABEL_NEW_CHAT','25AsCgvJ','isMaximized','conversationStartButton','177716CdRElm','startConversation','91072kGGbLC','ck-ai-header\x20ck-ai-header_chat','14tpxoJC','add','execute','28839vJkkjp','2598JGjyCL','children','29071hIKzBM','387852IehYZg','resizeButton','fire','_createStartConversationButton','ck-ai-chat__start-conversation','2863690OXXaRB','locale','set','12692658QfwrVy'];_0x3a37=function(){return _0x409b3f;};return _0x3a37();}import{createResizeButton as _0x51d54a}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x2aac63{[_0x36188a(0x122)];[_0x36188a(0x115)];constructor(_0xc932da,_0x32ce1d){const _0x2deecd=_0x36188a;super(_0xc932da,{'label':_0x2cb585(_0xc932da,_0x2deecd(0x11d)),'class':_0x2deecd(0x126),'icon':_0x3b8f59}),this[_0x2deecd(0x11b)](_0x2deecd(0x121),!0x1),this[_0x2deecd(0x122)]=this[_0x2deecd(0x117)](_0xc932da),this[_0x2deecd(0x112)][_0x2deecd(0x128)](this[_0x2deecd(0x122)]),_0x32ce1d&&(this[_0x2deecd(0x115)]=_0x51d54a(_0xc932da,this),this[_0x2deecd(0x112)][_0x2deecd(0x128)](this[_0x2deecd(0x115)]));}[_0x36188a(0x117)](_0x46bab6){const _0x117c0c=_0x36188a,_0x2b561=new _0x1e45ee(_0x46bab6);return _0x2b561[_0x117c0c(0x11b)]({'label':_0x2cb585(this[_0x117c0c(0x11a)],_0x117c0c(0x11f)),'withText':!0x0,'icon':_0x33cace,'class':_0x117c0c(0x118)}),_0x2b561['on'](_0x117c0c(0x129),()=>{const _0x45f30d=_0x117c0c;this[_0x45f30d(0x116)](_0x45f30d(0x124));}),_0x2b561;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1834f0=_0x5bf3;(function(_0x5ccc8b,_0x52b2f5){var _0x409830=_0x5bf3,_0x1a4ae6=_0x5ccc8b();while(!![]){try{var _0x35ecfe=-parseInt(_0x409830(0x146))/0x1+parseInt(_0x409830(0x15c))/0x2+parseInt(_0x409830(0x155))/0x3*(parseInt(_0x409830(0x158))/0x4)+-parseInt(_0x409830(0x145))/0x5*(parseInt(_0x409830(0x15e))/0x6)+-parseInt(_0x409830(0x15a))/0x7+-parseInt(_0x409830(0x15d))/0x8+parseInt(_0x409830(0x154))/0x9;if(_0x35ecfe===_0x52b2f5)break;else _0x1a4ae6['push'](_0x1a4ae6['shift']());}catch(_0x327efd){_0x1a4ae6['push'](_0x1a4ae6['shift']());}}}(_0x4786,0x22a7a));import{View as _0x1aa37e,BodyCollection as _0x137712}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x17a9bf}from'../utils/eventnames.js';import{AIChatFeedView as _0x307138}from'./aichatfeedview.js';import{AIChatControlsView as _0x59c8c9}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x29fc37}from'./aichatheaderview.js';import{AIDisclaimerView as _0x2ff9bf}from'../../aicore/ui/aidisclaimerview.js';function _0x5bf3(_0x26ee59,_0x3c3cbe){var _0x478674=_0x4786();return _0x5bf3=function(_0x5bf396,_0xd511f3){_0x5bf396=_0x5bf396-0x145;var _0x3e2883=_0x478674[_0x5bf396];return _0x3e2883;},_0x5bf3(_0x26ee59,_0x3c3cbe);}function _0x4786(){var _0x5ac388=['1684eqLRGs','chatControls','441763GSJeds','contextResourcesSearchInputVisibleFrom','282214Ryrnln','1596808zRiUCn','6JtCEsw','ck-ai-chat','chatHeader','1363970lRhFJF','205680TNDTCs','chatFeed','destroy','closeSourceResourceBalloon','populateSourceResourceBalloon','_bodyCollection','setTemplate','showResizeButton','chatDisclaimer','ck-rounded-corners','div','ck-reset_all','detachFromDom','delegate','6409188DcBeBG','213uHZRhU','attachToDom','uiLanguageDirection'];_0x4786=function(){return _0x5ac388;};return _0x4786();}export class AIChatView extends _0x1aa37e{[_0x1834f0(0x160)];[_0x1834f0(0x147)];[_0x1834f0(0x159)];[_0x1834f0(0x14e)];[_0x1834f0(0x14b)];constructor(_0x20ba2b,_0x49e68a){var _0x311bba=_0x1834f0;super(_0x20ba2b),this[_0x311bba(0x14b)]=new _0x137712(_0x20ba2b),this[_0x311bba(0x14b)][_0x311bba(0x156)](),this[_0x311bba(0x160)]=new _0x29fc37(_0x20ba2b,_0x49e68a[_0x311bba(0x14d)]),this[_0x311bba(0x160)][_0x311bba(0x153)](..._0x17a9bf)['to'](this),this[_0x311bba(0x147)]=new _0x307138(_0x20ba2b,this[_0x311bba(0x14b)]),this[_0x311bba(0x147)][_0x311bba(0x153)](..._0x17a9bf)['to'](this),this[_0x311bba(0x159)]=new _0x59c8c9(_0x20ba2b,{'bodyCollection':this[_0x311bba(0x14b)],'contextResourcesSearchInputVisibleFrom':_0x49e68a[_0x311bba(0x15b)]}),this[_0x311bba(0x159)][_0x311bba(0x153)](..._0x17a9bf)['to'](this),this[_0x311bba(0x14e)]=new _0x2ff9bf(_0x20ba2b),this[_0x311bba(0x14c)]({'tag':_0x311bba(0x150),'attributes':{'class':['ck',_0x311bba(0x151),_0x311bba(0x15f),_0x311bba(0x14f)],'dir':_0x20ba2b[_0x311bba(0x157)]},'children':[this[_0x311bba(0x160)],this[_0x311bba(0x147)],this[_0x311bba(0x159)],this[_0x311bba(0x14e)]]});}[_0x1834f0(0x14a)](_0x5938e7,_0x1095c9,_0x1c94bb,_0xa171){var _0x25b5f8=_0x1834f0;this[_0x25b5f8(0x159)][_0x25b5f8(0x14a)](_0x5938e7,_0x1095c9,_0x1c94bb,_0xa171);}[_0x1834f0(0x149)](_0x5acc6){var _0x36ab87=_0x1834f0;this[_0x36ab87(0x159)][_0x36ab87(0x149)](_0x5acc6);}[_0x1834f0(0x148)](){var _0x298217=_0x1834f0;this[_0x298217(0x14b)][_0x298217(0x152)](),super[_0x298217(0x148)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x71d9(_0x12843a,_0x1e6cb2){const _0x45301e=_0x4530();return _0x71d9=function(_0x71d9cd,_0x4450fc){_0x71d9cd=_0x71d9cd-0x9e;let _0x539635=_0x45301e[_0x71d9cd];return _0x539635;},_0x71d9(_0x12843a,_0x1e6cb2);}const _0x3f9c0c=_0x71d9;(function(_0x4e555e,_0x5b5489){const _0x393410=_0x71d9,_0x47f58b=_0x4e555e();while(!![]){try{const _0x5c60c8=parseInt(_0x393410(0x100))/0x1*(-parseInt(_0x393410(0xb7))/0x2)+parseInt(_0x393410(0xdd))/0x3+parseInt(_0x393410(0x11f))/0x4+parseInt(_0x393410(0xa2))/0x5*(parseInt(_0x393410(0xd8))/0x6)+parseInt(_0x393410(0xef))/0x7+parseInt(_0x393410(0x125))/0x8*(parseInt(_0x393410(0x12c))/0x9)+parseInt(_0x393410(0x118))/0xa*(-parseInt(_0x393410(0x104))/0xb);if(_0x5c60c8===_0x5b5489)break;else _0x47f58b['push'](_0x47f58b['shift']());}catch(_0x52e184){_0x47f58b['push'](_0x47f58b['shift']());}}}(_0x4530,0x74027));import{View as _0x52d8ec,BalloonPanelView as _0x2eb749,ButtonView as _0x5f024c,clickOutsideHandler as _0x537eb6}from'ckeditor5/src/ui.js';import{Collection as _0x5444e0}from'ckeditor5/src/utils.js';function _0x4530(){const _0x647703=['top','_updateOverflowUI','clear','undefined','_showMoreBalloonPanelView','3662108omNkFc','_createShowMoreBalloonPanelView','some','includes','50px','div','8XdlKSN','tagName','_visibleChips','absolute','left','rowDetectionTolerance','_calculateOverflowInContainer','6625107FWzvlo','_config','pop','_renderChipsAndCountRows','auto','forEach','_distributeChips','.ck-ai-chat','width','clientHeight','createElement','243715nNrAMs','_testButtonFit','_updateShowMoreButtonVisibility','element','documentElement','+\x201','_targetContainer','maxVisibleRows','disconnect','_findTargetContainer','isOn','getBoundingClientRect','showMoreButton','_setupVisibilityObserver','calculationContainer','from','setTemplate','block\x20!important','filter','_createShowMoreButtonView','ck-calculation-container','284128TbTugx','content','appendChild','push','_locale','body','_checkAndHandleOverflow','showBalloonPanel','_containerElement','_isContainerVisible','textContent','clientWidth','_ancestorsToRestore','_pendingCalculation','zIndex','overflowContainer','pointerEvents','_parentView','_createShowMoreButton','innerHTML','children','showMoreButtonView','_createMockButton','observe','classList','boxSizing','block','slice','_intersectionObserver','visible\x20!important','bottom','label','showMoreLabelPrefix','60ncmpnC','cloneNode','_bodyCollection','pin','border-box','2498088GMvRlp','overflowChips','hideBalloonPanel','isVisible','className','innerWidth','position','abs','isIntersecting','_handleShowMoreButtonClick','_makeAncestorsVisible','_createContainerElements','0px','controlsButton','querySelector','set','hidden','getComputedStyle','6105827aRRKPU','remove','disableAnimationOnEnter','extendTemplate','button','display','destroy','_calculateContainerWidth','showMoreBalloon','visible','_restoreAncestorVisibility','_overflowChips','parentElement','-9999px','none','setContainerElement','toLowerCase','1VcGtnU','execute','_repinBalloonPanel','innerHeight','17747389TafPlW','_showMoreButtonView','_applyOverflowResults','hide','opacity','visibility','cssClasses','_updateBalloonContent','reorganizeChips','_applyCalculationStyles','_createCalculationContainer','height','isConnected','style','show','offsetWidth','render','add','length','right','20ENmBTm','300px'];_0x4530=function(){return _0x647703;};return _0x4530();}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x3f9c0c(0x119);export class AIChatChipsOverflowManager{[_0x3f9c0c(0xbb)];[_0x3f9c0c(0x12d)];[_0x3f9c0c(0x127)];[_0x3f9c0c(0xfa)];[_0x3f9c0c(0x105)]=null;[_0x3f9c0c(0x11e)]=null;[_0x3f9c0c(0xbf)]=null;[_0x3f9c0c(0xda)];[_0x3f9c0c(0xc8)]=null;[_0x3f9c0c(0xd3)]=null;[_0x3f9c0c(0xc4)]=!0x1;constructor(_0x5dcf3b,_0x4552f9,_0x2658d9,_0x53d145,_0x3945f8){const _0x47e0fb=_0x3f9c0c;this[_0x47e0fb(0xbb)]=_0x5dcf3b,this[_0x47e0fb(0x127)]=_0x4552f9,this[_0x47e0fb(0x12d)]={...hn,..._0x2658d9,'cssClasses':{'controlsButton':'','calculationContainer':_0x47e0fb(0xb6),..._0x2658d9[_0x47e0fb(0x10a)]}},this[_0x47e0fb(0xfa)]=new _0x5444e0(),this[_0x47e0fb(0xda)]=_0x53d145,this[_0x47e0fb(0xc8)]=_0x3945f8||null;}[_0x3f9c0c(0xfe)](_0x4c56b2){const _0x3625a3=_0x3f9c0c;this[_0x3625a3(0xd3)]&&(this[_0x3625a3(0xd3)][_0x3625a3(0xaa)](),this[_0x3625a3(0xd3)]=null),this[_0x3625a3(0xbf)]=_0x4c56b2,this[_0x3625a3(0xaf)]();}get[_0x3f9c0c(0xcc)](){const _0xcd744f=_0x3f9c0c;return this[_0xcd744f(0x105)];}get[_0x3f9c0c(0xde)](){const _0x48e0f4=_0x3f9c0c;return this[_0x48e0f4(0xfa)];}[_0x3f9c0c(0x10c)](){requestAnimationFrame(()=>{const _0x1ef958=_0x71d9;this[_0x1ef958(0xbd)]();});}[_0x3f9c0c(0xbe)](){const _0xadac8b=_0x3f9c0c;this[_0xadac8b(0x105)]&&this[_0xadac8b(0x11e)]&&(this[_0xadac8b(0x10b)](),this[_0xadac8b(0x105)][_0xadac8b(0xac)]=!0x0,this[_0xadac8b(0x11e)][_0xadac8b(0x112)](),this[_0xadac8b(0x11e)][_0xadac8b(0xdb)]({'target':this[_0xadac8b(0x105)][_0xadac8b(0xa5)],'limiter':document[_0xadac8b(0xeb)](_0xadac8b(0x9e))}));}[_0x3f9c0c(0xdf)](){const _0x594024=_0x3f9c0c;this[_0x594024(0x105)]&&this[_0x594024(0x11e)]&&(this[_0x594024(0x105)][_0x594024(0xac)]=!0x1,this[_0x594024(0x11e)][_0x594024(0x107)]());}[_0x3f9c0c(0x11c)](){const _0x3c0265=_0x3f9c0c;this[_0x3c0265(0xfa)][_0x3c0265(0x11c)](),this[_0x3c0265(0xdf)](),this[_0x3c0265(0xa4)](),this[_0x3c0265(0x105)]&&(this[_0x3c0265(0x105)][_0x3c0265(0xd6)]=''),this[_0x3c0265(0x11e)]&&this[_0x3c0265(0x11e)][_0x3c0265(0xb8)][_0x3c0265(0x11c)]();}[_0x3f9c0c(0xf5)](){const _0x50767f=_0x3f9c0c;this[_0x50767f(0xd3)]&&(this[_0x50767f(0xd3)][_0x50767f(0xaa)](),this[_0x50767f(0xd3)]=null),this[_0x50767f(0x105)]&&(this[_0x50767f(0x105)][_0x50767f(0xf5)](),this[_0x50767f(0x105)]=null),this[_0x50767f(0x11e)]&&(this[_0x50767f(0x11e)][_0x50767f(0xf5)](),this[_0x50767f(0x11e)]=null);}[_0x3f9c0c(0xbd)](){const _0x1acec4=_0x3f9c0c;if(!this[_0x1acec4(0xbf)])return;if(!this[_0x1acec4(0xc0)]())return void(this[_0x1acec4(0xc4)]=!0x0);this[_0x1acec4(0xc4)]=!0x1;const _0x4fef95=[...this[_0x1acec4(0x127)],...this[_0x1acec4(0xfa)]],_0x3f63f5=this[_0x1acec4(0x10e)](),_0x30b617=this[_0x1acec4(0x12b)](_0x3f63f5,_0x4fef95),_0x2b611a=_0x3f63f5[_0x1acec4(0xc3)];_0x2b611a&&this[_0x1acec4(0xf9)](_0x2b611a),_0x3f63f5[_0x1acec4(0xf0)](),this[_0x1acec4(0x106)](_0x4fef95,_0x30b617);}[_0x3f9c0c(0xc9)](){const _0x56d212=_0x3f9c0c;this[_0x56d212(0x105)]=this[_0x56d212(0xb5)](),this[_0x56d212(0x11e)]=this[_0x56d212(0x120)](),this[_0x56d212(0x105)][_0x56d212(0x114)](),this[_0x56d212(0xbf)][_0x56d212(0xb9)](this[_0x56d212(0x105)][_0x56d212(0xa5)]),this[_0x56d212(0x105)]['on'](_0x56d212(0x101),()=>{const _0x4033f1=_0x56d212;this[_0x4033f1(0xe6)]();}),_0x537eb6({'emitter':this[_0x56d212(0x11e)],'contextElements':[this[_0x56d212(0x11e)][_0x56d212(0xa5)],this[_0x56d212(0x105)][_0x56d212(0xa5)]],'callback':()=>this[_0x56d212(0xdf)](),'activator':()=>this[_0x56d212(0x105)][_0x56d212(0xac)]});}[_0x3f9c0c(0xb5)](){const _0x243f12=_0x3f9c0c,_0x5a32cd=new _0x5f024c(this[_0x243f12(0xbb)]);_0x5a32cd[_0x243f12(0xec)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1dcf63=[this[_0x243f12(0x12d)][_0x243f12(0x10a)][_0x243f12(0xae)]];return this[_0x243f12(0x12d)][_0x243f12(0x10a)][_0x243f12(0xea)]&&_0x1dcf63[_0x243f12(0xba)](this[_0x243f12(0x12d)][_0x243f12(0x10a)][_0x243f12(0xea)]),_0x5a32cd[_0x243f12(0xf2)]({'attributes':{'class':_0x1dcf63}}),_0x5a32cd;}[_0x3f9c0c(0x120)](){const _0x29fefc=_0x3f9c0c,_0x5279d7=new _0x2eb749(this[_0x29fefc(0xbb)]);return _0x5279d7[_0x29fefc(0xf2)]({'attributes':{'class':this[_0x29fefc(0x12d)][_0x29fefc(0x10a)][_0x29fefc(0xf7)]}}),this[_0x29fefc(0xda)][_0x29fefc(0x115)](_0x5279d7),_0x5279d7;}[_0x3f9c0c(0x10b)](){const _0x26f552=_0x3f9c0c;if(this[_0x26f552(0x11e)]&&(this[_0x26f552(0x11e)][_0x26f552(0xb8)][_0x26f552(0x11c)](),this[_0x26f552(0xfa)][_0x26f552(0x116)]>0x0)){this[_0x26f552(0xfa)][_0x26f552(0x131)](_0x54f463=>{const _0x43f74a=_0x26f552;_0x54f463[_0x43f74a(0xf1)]();});const _0x3dc671=new _0x52d8ec(this[_0x26f552(0xbb)]);_0x3dc671[_0x26f552(0xb2)]({'tag':_0x26f552(0x124),'attributes':{'class':this[_0x26f552(0x12d)][_0x26f552(0x10a)][_0x26f552(0xc6)]},'children':this[_0x26f552(0xfa)]}),this[_0x26f552(0x11e)][_0x26f552(0xb8)][_0x26f552(0x115)](_0x3dc671);}}[_0x3f9c0c(0xe6)](){const _0x3552f4=_0x3f9c0c;this[_0x3552f4(0x105)][_0x3552f4(0xac)]?this[_0x3552f4(0xdf)]():this[_0x3552f4(0xbe)]();}[_0x3f9c0c(0xa4)](){const _0x310d66=_0x3f9c0c,_0x2d81d0=this[_0x310d66(0xfa)][_0x310d66(0x116)]>0x0;this[_0x310d66(0x105)]?.[_0x310d66(0xa5)]&&(this[_0x310d66(0x105)][_0x310d66(0xa5)][_0x310d66(0x111)][_0x310d66(0xf4)]=_0x2d81d0?'':_0x310d66(0xfd));}[_0x3f9c0c(0x102)](){const _0x35453c=_0x3f9c0c;this[_0x35453c(0x105)]?.[_0x35453c(0xac)]&&this[_0x35453c(0x11e)]?.[_0x35453c(0xe0)]&&this[_0x35453c(0x105)][_0x35453c(0xa5)]&&this[_0x35453c(0x11e)][_0x35453c(0xdb)]({'target':this[_0x35453c(0x105)][_0x35453c(0xa5)],'limiter':document[_0x35453c(0xeb)](_0x35453c(0x9e))});}[_0x3f9c0c(0xab)](_0x2a9139){const _0x3847d9=_0x3f9c0c,_0x23eb41=this[_0x3847d9(0xbf)]?.[_0x3847d9(0x126)][_0x3847d9(0xff)]()||_0x3847d9(0x124),_0x395a91=this[_0x3847d9(0xbf)]?.[_0x3847d9(0xcf)];if(_0x395a91){const _0x328bed=_0x395a91[0x0]||'',_0x55ba40=_0x2a9139[_0x3847d9(0xeb)]('.'+_0x328bed),_0x56f775=_0x2a9139[_0x3847d9(0xeb)](_0x23eb41);return _0x55ba40||_0x56f775||_0x2a9139;}return _0x2a9139[_0x3847d9(0xeb)](_0x23eb41)||_0x2a9139;}[_0x3f9c0c(0xf6)](){const _0x2995b2=_0x3f9c0c,_0x70ebc5=this[_0x2995b2(0xc8)]?.[_0x2995b2(0xa5)]||this[_0x2995b2(0xbf)];if(!_0x70ebc5)return an;const _0x47c44b=window[_0x2995b2(0xee)](_0x70ebc5)[_0x2995b2(0x9f)];if(_0x2995b2(0x130)===_0x47c44b||_0x2995b2(0xe9)===_0x47c44b||!_0x47c44b){const _0x5224f0=_0x70ebc5[_0x2995b2(0xfb)];if(_0x5224f0){const _0x5ff7a3=window[_0x2995b2(0xee)](_0x5224f0);return _0x2995b2(0x130)!==_0x5ff7a3[_0x2995b2(0x9f)]?_0x5ff7a3[_0x2995b2(0x9f)]:an;}return an;}return _0x47c44b;}[_0x3f9c0c(0x10d)](_0x200ed4,_0x10db9d){const _0x38a12a=_0x3f9c0c;this[_0x38a12a(0x12d)][_0x38a12a(0x10a)][_0x38a12a(0xb0)]&&_0x200ed4[_0x38a12a(0xcf)][_0x38a12a(0x115)](this[_0x38a12a(0x12d)][_0x38a12a(0x10a)][_0x38a12a(0xb0)]),_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0x9f)]=_0x10db9d,_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0xe3)]=_0x38a12a(0x128),_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0x11a)]=_0x38a12a(0xfc),_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0x129)]=_0x38a12a(0xfc),_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0x108)]='0',_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0xc7)]=_0x38a12a(0xfd),_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0xc5)]='-1',_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0x109)]=_0x38a12a(0xd4),_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0xf4)]=_0x38a12a(0xb3),_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0xd0)]=_0x38a12a(0xdc);}[_0x3f9c0c(0xf9)](_0x4d9325){const _0x264c4c=_0x3f9c0c;_0x4d9325[_0x264c4c(0x131)](({element:_0x502724,originalDisplay:_0x32a718,originalVisibility:_0x4f0280})=>{const _0x5abb64=_0x264c4c;_0x502724[_0x5abb64(0x111)][_0x5abb64(0xf4)]=_0x32a718,_0x502724[_0x5abb64(0x111)][_0x5abb64(0x109)]=_0x4f0280;});}[_0x3f9c0c(0xe7)](_0x44e753){const _0x32468a=_0x3f9c0c,_0x497505=[];let _0x503253=_0x44e753;for(;_0x503253&&_0x503253!==document[_0x32468a(0xbc)];){const _0x31e54d=window[_0x32468a(0xee)](_0x503253);_0x32468a(0xfd)!==_0x31e54d[_0x32468a(0xf4)]&&_0x32468a(0xed)!==_0x31e54d[_0x32468a(0x109)]||(_0x497505[_0x32468a(0xba)]({'element':_0x503253,'originalDisplay':_0x503253[_0x32468a(0x111)][_0x32468a(0xf4)],'originalVisibility':_0x503253[_0x32468a(0x111)][_0x32468a(0x109)]}),_0x503253[_0x32468a(0x111)][_0x32468a(0xf4)]=_0x32468a(0xd1),_0x503253[_0x32468a(0x111)][_0x32468a(0x109)]=_0x32468a(0xf8)),_0x503253=_0x503253[_0x32468a(0xfb)];}return _0x497505;}[_0x3f9c0c(0xe8)](){const _0x14d57e=_0x3f9c0c;let _0x3ff5d2,_0x438534;return this[_0x14d57e(0xc8)]?.[_0x14d57e(0xa5)]?(_0x3ff5d2=this[_0x14d57e(0xc8)][_0x14d57e(0xa5)][_0x14d57e(0xd9)](!0x0),_0x438534=this[_0x14d57e(0xab)](_0x3ff5d2)):(_0x3ff5d2=document[_0x14d57e(0xa1)](_0x14d57e(0x124)),_0x438534=_0x3ff5d2),{'calculationContainer':_0x3ff5d2,'targetContainer':_0x438534};}[_0x3f9c0c(0x10e)](){const _0x45b1ba=_0x3f9c0c,{calculationContainer:_0x459690,targetContainer:_0xa327f7}=this[_0x45b1ba(0xe8)](),_0x1b3652=this[_0x45b1ba(0xf6)]();this[_0x45b1ba(0x10d)](_0x459690,_0x1b3652);const _0x2ef492=this[_0x45b1ba(0xc8)]?.[_0x45b1ba(0xa5)]||this[_0x45b1ba(0xbf)],_0x114bf1=_0x2ef492?.[_0x45b1ba(0xfb)];_0x114bf1?_0x114bf1[_0x45b1ba(0xb9)](_0x459690):document[_0x45b1ba(0xbc)][_0x45b1ba(0xb9)](_0x459690),_0x459690[_0x45b1ba(0xa8)]=_0xa327f7;const _0x42625f=this[_0x45b1ba(0xe7)](_0x114bf1||null);return _0x459690[_0x45b1ba(0x113)],_0x459690[_0x45b1ba(0xc3)]=_0x42625f,_0x459690;}[_0x3f9c0c(0x12b)](_0x4a32eb,_0x40da55){const _0x3ca058=_0x3f9c0c,_0x1332d2=_0x4a32eb[_0x3ca058(0xa8)]||_0x4a32eb,_0x40ff61=[],{rowCount:_0x288c7e}=this[_0x3ca058(0x12f)](_0x1332d2,_0x40da55);if(_0x288c7e<=this[_0x3ca058(0x12d)][_0x3ca058(0xa9)])return _0x40ff61;const _0x4fe8f0=_0x40da55[_0x3ca058(0xd2)]();for(;_0x4fe8f0[_0x3ca058(0x116)]>0x0;){if(this[_0x3ca058(0xa3)](_0x4a32eb,_0x1332d2,_0x4fe8f0)){const _0x297150=_0x40da55[_0x3ca058(0xb4)](_0x355d1e=>!_0x4fe8f0[_0x3ca058(0x122)](_0x355d1e));_0x40ff61[_0x3ca058(0xba)](..._0x297150);break;}if(!_0x4fe8f0[_0x3ca058(0x12e)]())break;}return _0x40ff61;}[_0x3f9c0c(0x12f)](_0x460159,_0x275ce4){const _0x5d85eb=_0x3f9c0c;_0x460159[_0x5d85eb(0xca)]='',_0x275ce4[_0x5d85eb(0x131)](_0x57de7e=>{const _0x337a57=_0x5d85eb;if(_0x57de7e[_0x337a57(0xa5)]){const _0x36f6a7=_0x57de7e[_0x337a57(0xa5)][_0x337a57(0xd9)](!0x0);_0x460159[_0x337a57(0xb9)](_0x36f6a7);}}),_0x460159[_0x5d85eb(0x113)];const _0xfc083a=_0x460159[_0x5d85eb(0xcb)],_0x1efb78=[];return Array[_0x5d85eb(0xb1)](_0xfc083a)[_0x5d85eb(0x131)](_0x5af42c=>{const _0x3dfa7b=_0x5d85eb,_0x31b543=_0x5af42c[_0x3dfa7b(0xad)]()[_0x3dfa7b(0x11a)];_0x1efb78[_0x3dfa7b(0x121)](_0x2c6e5f=>Math[_0x3dfa7b(0xe4)](_0x2c6e5f-_0x31b543)<this[_0x3dfa7b(0x12d)][_0x3dfa7b(0x12a)])||_0x1efb78[_0x3dfa7b(0xba)](_0x31b543);}),{'rowCount':_0x1efb78[_0x5d85eb(0x116)]};}[_0x3f9c0c(0xcd)](){const _0x4da4c5=_0x3f9c0c,_0x11109a=document[_0x4da4c5(0xa1)](_0x4da4c5(0xf3));return _0x11109a[_0x4da4c5(0xe1)]=this[_0x4da4c5(0x12d)][_0x4da4c5(0x10a)][_0x4da4c5(0xae)],this[_0x4da4c5(0x12d)][_0x4da4c5(0x10a)][_0x4da4c5(0xea)]&&_0x11109a[_0x4da4c5(0xcf)][_0x4da4c5(0x115)](this[_0x4da4c5(0x12d)][_0x4da4c5(0x10a)][_0x4da4c5(0xea)]),_0x11109a[_0x4da4c5(0xc1)]=_0x4da4c5(0xa7),_0x11109a;}[_0x3f9c0c(0xa3)](_0x37c16b,_0x1fd776,_0x204334){const _0x405457=_0x3f9c0c;this[_0x405457(0x12f)](_0x1fd776,_0x204334);const _0x3ca3ae=this[_0x405457(0xcd)]();_0x37c16b[_0x405457(0xb9)](_0x3ca3ae),_0x37c16b[_0x405457(0x113)];const _0x4b179b=[..._0x1fd776[_0x405457(0xcb)],_0x3ca3ae],_0x320155=[];_0x4b179b[_0x405457(0x131)](_0x11fb8c=>{const _0x5e92c0=_0x405457,_0x3bcbad=_0x11fb8c[_0x5e92c0(0xad)]()[_0x5e92c0(0x11a)];_0x320155[_0x5e92c0(0x121)](_0x5c3e5a=>Math[_0x5e92c0(0xe4)](_0x5c3e5a-_0x3bcbad)<this[_0x5e92c0(0x12d)][_0x5e92c0(0x12a)])||_0x320155[_0x5e92c0(0xba)](_0x3bcbad);});const _0x298935=_0x320155[_0x405457(0x116)];return _0x3ca3ae[_0x405457(0xf0)](),_0x298935<=this[_0x405457(0x12d)][_0x405457(0xa9)];}[_0x3f9c0c(0x132)](_0x58a782,_0x4808fa){const _0x1c3b5d=_0x3f9c0c;this[_0x1c3b5d(0x127)][_0x1c3b5d(0x11c)](),this[_0x1c3b5d(0xfa)][_0x1c3b5d(0x11c)](),_0x58a782[_0x1c3b5d(0x131)](_0x12a259=>{const _0x284682=_0x1c3b5d;_0x4808fa[_0x284682(0x122)](_0x12a259)?this[_0x284682(0xfa)][_0x284682(0x115)](_0x12a259):this[_0x284682(0x127)][_0x284682(0x115)](_0x12a259);});}[_0x3f9c0c(0x11b)](_0x2a0233){const _0x3700a0=_0x3f9c0c;if(_0x2a0233>0x0&&!this[_0x3700a0(0x105)]&&this[_0x3700a0(0xc9)](),_0x2a0233>0x0&&this[_0x3700a0(0x105)]){const _0x1f8fa4=''+this[_0x3700a0(0x12d)][_0x3700a0(0xd7)]+(_0x2a0233<0x63?_0x2a0233:'99');this[_0x3700a0(0x105)][_0x3700a0(0xd6)]=_0x1f8fa4;}this[_0x3700a0(0x10b)](),this[_0x3700a0(0xa4)](),this[_0x3700a0(0x102)]();}[_0x3f9c0c(0x106)](_0x4c7956,_0x96b8d4){const _0x268616=_0x3f9c0c;this[_0x268616(0x132)](_0x4c7956,_0x96b8d4),this[_0x268616(0x11b)](_0x96b8d4[_0x268616(0x116)]);}[_0x3f9c0c(0xaf)](){const _0x3a0c06=_0x3f9c0c;this[_0x3a0c06(0xbf)]&&_0x3a0c06(0x11d)!=typeof IntersectionObserver&&(this[_0x3a0c06(0xd3)]=new IntersectionObserver(_0x2eb9a9=>{const _0x34a1a5=_0x3a0c06;_0x2eb9a9[0x0][_0x34a1a5(0xe5)]&&this[_0x34a1a5(0xc4)]&&requestAnimationFrame(()=>{const _0x1248db=_0x34a1a5;this[_0x1248db(0xbd)]();});},{'threshold':0.01,'rootMargin':_0x3a0c06(0x123)}),this[_0x3a0c06(0xd3)][_0x3a0c06(0xce)](this[_0x3a0c06(0xbf)]));}[_0x3f9c0c(0xc0)](){const _0x118612=_0x3f9c0c;if(!this[_0x118612(0xbf)])return!0x1;if(!this[_0x118612(0xbf)][_0x118612(0x110)])return!0x1;const _0x3c70fc=this[_0x118612(0xbf)][_0x118612(0xad)]();if(0x0===_0x3c70fc[_0x118612(0x9f)]||0x0===_0x3c70fc[_0x118612(0x10f)])return!0x1;const _0x3b5741=window[_0x118612(0x103)]||document[_0x118612(0xa6)][_0x118612(0xa0)],_0x5f4bfd=window[_0x118612(0xe2)]||document[_0x118612(0xa6)][_0x118612(0xc2)],_0x2f4387=0xc8;return _0x3c70fc[_0x118612(0xd5)]>=-0xc8&&_0x3c70fc[_0x118612(0x11a)]<=_0x3b5741+_0x2f4387&&_0x3c70fc[_0x118612(0x117)]>=-0xc8&&_0x3c70fc[_0x118612(0x129)]<=_0x5f4bfd+_0x2f4387;}}
|
|
23
|
+
const _0x59dc3a=_0x1e95;(function(_0x51536b,_0x101a8d){const _0x1c5130=_0x1e95,_0x394af8=_0x51536b();while(!![]){try{const _0x15bf1d=-parseInt(_0x1c5130(0x199))/0x1+parseInt(_0x1c5130(0x149))/0x2*(parseInt(_0x1c5130(0x13a))/0x3)+parseInt(_0x1c5130(0x181))/0x4*(-parseInt(_0x1c5130(0x16d))/0x5)+-parseInt(_0x1c5130(0x1ab))/0x6*(-parseInt(_0x1c5130(0x132))/0x7)+parseInt(_0x1c5130(0x131))/0x8+parseInt(_0x1c5130(0x183))/0x9+parseInt(_0x1c5130(0x139))/0xa;if(_0x15bf1d===_0x101a8d)break;else _0x394af8['push'](_0x394af8['shift']());}catch(_0x34da12){_0x394af8['push'](_0x394af8['shift']());}}}(_0x39de,0xc6e6a));import{View as _0x198e47,BalloonPanelView as _0x128b57,ButtonView as _0x5f1056,clickOutsideHandler as _0xdb5c11}from'ckeditor5/src/ui.js';import{Collection as _0x19e7c6}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x59dc3a(0x12b);function _0x39de(){const _0x404c57=['.ck-ai-chat','auto','clear','300px','_pendingCalculation','showMoreBalloon','element','_restoreAncestorVisibility','_isContainerVisible','11947912AgpKwU','8309nxVXnL','observe','classList','_locale','block','toLowerCase','some','1901710PkkaPF','99rkSNwP','clientWidth','disableAnimationOnEnter','pop','destroy','body','_containerElement','visible\x20!important','display','_applyOverflowResults','innerHTML','push','add','from','height','24452kvCYYv','none','content','visible','block\x20!important','_distributeChips','innerWidth','controlsButton','border-box','_parentView','filter','getBoundingClientRect','length','ck-calculation-container','rowDetectionTolerance','querySelector','button','_showMoreBalloonPanelView','show','execute','_createShowMoreBalloonPanelView','setContainerElement','_setupVisibilityObserver','opacity','_findTargetContainer','showMoreLabelPrefix','left','_showMoreButtonView','_repinBalloonPanel','pointerEvents','calculationContainer','_updateOverflowUI','parentElement','reorganizeChips','remove','_createContainerElements','5ACYZat','_calculateContainerWidth','width','_config','hide','boxSizing','tagName','_checkAndHandleOverflow','documentElement','pin','hidden','_updateBalloonContent','_renderChipsAndCountRows','set','absolute','_targetContainer','disconnect','overflowChips','overflowContainer','setTemplate','1672072fBSMXS','cssClasses','424917rwgtry','isVisible','offsetWidth','_calculateOverflowInContainer','position','-9999px','0px','style','_applyCalculationStyles','_testButtonFit','top','includes','maxVisibleRows','showMoreButtonView','forEach','showMoreButton','innerHeight','showBalloonPanel','textContent','_overflowChips','isConnected','label','959778KvhFjD','className','_handleShowMoreButtonClick','appendChild','render','createElement','_createMockButton','children','isOn','_bodyCollection','isIntersecting','div','_updateShowMoreButtonVisibility','_visibleChips','_intersectionObserver','slice','50px','hideBalloonPanel','294IcWuFl','right','bottom','_createShowMoreButton','_ancestorsToRestore','getComputedStyle','zIndex','+\x201','abs','visibility','undefined','_createCalculationContainer','extendTemplate','clientHeight','cloneNode','_makeAncestorsVisible','_createShowMoreButtonView'];_0x39de=function(){return _0x404c57;};return _0x39de();}function _0x1e95(_0x123fb2,_0x4a78bb){const _0x39de82=_0x39de();return _0x1e95=function(_0x1e957d,_0x125631){_0x1e957d=_0x1e957d-0x124;let _0x2a2b10=_0x39de82[_0x1e957d];return _0x2a2b10;},_0x1e95(_0x123fb2,_0x4a78bb);}export class AIChatChipsOverflowManager{[_0x59dc3a(0x135)];[_0x59dc3a(0x170)];[_0x59dc3a(0x1a6)];[_0x59dc3a(0x196)];[_0x59dc3a(0x164)]=null;[_0x59dc3a(0x15a)]=null;[_0x59dc3a(0x140)]=null;[_0x59dc3a(0x1a2)];[_0x59dc3a(0x152)]=null;[_0x59dc3a(0x1a7)]=null;[_0x59dc3a(0x12c)]=!0x1;constructor(_0x2aed12,_0x1f10e4,_0x163c36,_0x122e61,_0x4b0da0){const _0x153e37=_0x59dc3a;this[_0x153e37(0x135)]=_0x2aed12,this[_0x153e37(0x1a6)]=_0x1f10e4,this[_0x153e37(0x170)]={...hn,..._0x163c36,'cssClasses':{'controlsButton':'','calculationContainer':_0x153e37(0x156),..._0x163c36[_0x153e37(0x182)]}},this[_0x153e37(0x196)]=new _0x19e7c6(),this[_0x153e37(0x1a2)]=_0x122e61,this[_0x153e37(0x152)]=_0x4b0da0||null;}[_0x59dc3a(0x15e)](_0x5002a6){const _0xbe2ae7=_0x59dc3a;this[_0xbe2ae7(0x1a7)]&&(this[_0xbe2ae7(0x1a7)][_0xbe2ae7(0x17d)](),this[_0xbe2ae7(0x1a7)]=null),this[_0xbe2ae7(0x140)]=_0x5002a6,this[_0xbe2ae7(0x15f)]();}get[_0x59dc3a(0x190)](){const _0x1ba172=_0x59dc3a;return this[_0x1ba172(0x164)];}get[_0x59dc3a(0x17e)](){const _0x1722e6=_0x59dc3a;return this[_0x1722e6(0x196)];}[_0x59dc3a(0x16a)](){requestAnimationFrame(()=>{const _0x1e0a5d=_0x1e95;this[_0x1e0a5d(0x174)]();});}[_0x59dc3a(0x194)](){const _0x3156f3=_0x59dc3a;this[_0x3156f3(0x164)]&&this[_0x3156f3(0x15a)]&&(this[_0x3156f3(0x178)](),this[_0x3156f3(0x164)][_0x3156f3(0x1a1)]=!0x0,this[_0x3156f3(0x15a)][_0x3156f3(0x15b)](),this[_0x3156f3(0x15a)][_0x3156f3(0x176)]({'target':this[_0x3156f3(0x164)][_0x3156f3(0x12e)],'limiter':document[_0x3156f3(0x158)](_0x3156f3(0x128))}));}[_0x59dc3a(0x1aa)](){const _0x7f55e1=_0x59dc3a;this[_0x7f55e1(0x164)]&&this[_0x7f55e1(0x15a)]&&(this[_0x7f55e1(0x164)][_0x7f55e1(0x1a1)]=!0x1,this[_0x7f55e1(0x15a)][_0x7f55e1(0x171)]());}[_0x59dc3a(0x12a)](){const _0x163e6d=_0x59dc3a;this[_0x163e6d(0x196)][_0x163e6d(0x12a)](),this[_0x163e6d(0x1aa)](),this[_0x163e6d(0x1a5)](),this[_0x163e6d(0x164)]&&(this[_0x163e6d(0x164)][_0x163e6d(0x198)]=''),this[_0x163e6d(0x15a)]&&this[_0x163e6d(0x15a)][_0x163e6d(0x14b)][_0x163e6d(0x12a)]();}[_0x59dc3a(0x13e)](){const _0x25ee79=_0x59dc3a;this[_0x25ee79(0x1a7)]&&(this[_0x25ee79(0x1a7)][_0x25ee79(0x17d)](),this[_0x25ee79(0x1a7)]=null),this[_0x25ee79(0x164)]&&(this[_0x25ee79(0x164)][_0x25ee79(0x13e)](),this[_0x25ee79(0x164)]=null),this[_0x25ee79(0x15a)]&&(this[_0x25ee79(0x15a)][_0x25ee79(0x13e)](),this[_0x25ee79(0x15a)]=null);}[_0x59dc3a(0x174)](){const _0x3bd7d8=_0x59dc3a;if(!this[_0x3bd7d8(0x140)])return;if(!this[_0x3bd7d8(0x130)]())return void(this[_0x3bd7d8(0x12c)]=!0x0);this[_0x3bd7d8(0x12c)]=!0x1;const _0x32f522=[...this[_0x3bd7d8(0x1a6)],...this[_0x3bd7d8(0x196)]],_0x170cfd=this[_0x3bd7d8(0x1b6)](),_0xb413d4=this[_0x3bd7d8(0x186)](_0x170cfd,_0x32f522),_0x1ce3fe=_0x170cfd[_0x3bd7d8(0x1af)];_0x1ce3fe&&this[_0x3bd7d8(0x12f)](_0x1ce3fe),_0x170cfd[_0x3bd7d8(0x16b)](),this[_0x3bd7d8(0x143)](_0x32f522,_0xb413d4);}[_0x59dc3a(0x1ae)](){const _0xa8d9cf=_0x59dc3a;this[_0xa8d9cf(0x164)]=this[_0xa8d9cf(0x127)](),this[_0xa8d9cf(0x15a)]=this[_0xa8d9cf(0x15d)](),this[_0xa8d9cf(0x164)][_0xa8d9cf(0x19d)](),this[_0xa8d9cf(0x140)][_0xa8d9cf(0x19c)](this[_0xa8d9cf(0x164)][_0xa8d9cf(0x12e)]),this[_0xa8d9cf(0x164)]['on'](_0xa8d9cf(0x15c),()=>{const _0x38a9ba=_0xa8d9cf;this[_0x38a9ba(0x19b)]();}),_0xdb5c11({'emitter':this[_0xa8d9cf(0x15a)],'contextElements':[this[_0xa8d9cf(0x15a)][_0xa8d9cf(0x12e)],this[_0xa8d9cf(0x164)][_0xa8d9cf(0x12e)]],'callback':()=>this[_0xa8d9cf(0x1aa)](),'activator':()=>this[_0xa8d9cf(0x164)][_0xa8d9cf(0x1a1)]});}[_0x59dc3a(0x127)](){const _0x2303e2=_0x59dc3a,_0x50b68a=new _0x5f1056(this[_0x2303e2(0x135)]);_0x50b68a[_0x2303e2(0x17a)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0xcf0c3b=[this[_0x2303e2(0x170)][_0x2303e2(0x182)][_0x2303e2(0x192)]];return this[_0x2303e2(0x170)][_0x2303e2(0x182)][_0x2303e2(0x150)]&&_0xcf0c3b[_0x2303e2(0x145)](this[_0x2303e2(0x170)][_0x2303e2(0x182)][_0x2303e2(0x150)]),_0x50b68a[_0x2303e2(0x1b7)]({'attributes':{'class':_0xcf0c3b}}),_0x50b68a;}[_0x59dc3a(0x15d)](){const _0x2c7bd0=_0x59dc3a,_0x457a93=new _0x128b57(this[_0x2c7bd0(0x135)]);return _0x457a93[_0x2c7bd0(0x1b7)]({'attributes':{'class':this[_0x2c7bd0(0x170)][_0x2c7bd0(0x182)][_0x2c7bd0(0x12d)]}}),this[_0x2c7bd0(0x1a2)][_0x2c7bd0(0x146)](_0x457a93),_0x457a93;}[_0x59dc3a(0x178)](){const _0x53ac2a=_0x59dc3a;if(this[_0x53ac2a(0x15a)]&&(this[_0x53ac2a(0x15a)][_0x53ac2a(0x14b)][_0x53ac2a(0x12a)](),this[_0x53ac2a(0x196)][_0x53ac2a(0x155)]>0x0)){this[_0x53ac2a(0x196)][_0x53ac2a(0x191)](_0x2d8979=>{const _0x5a329a=_0x53ac2a;_0x2d8979[_0x5a329a(0x13c)]();});const _0x2b119b=new _0x198e47(this[_0x53ac2a(0x135)]);_0x2b119b[_0x53ac2a(0x180)]({'tag':_0x53ac2a(0x1a4),'attributes':{'class':this[_0x53ac2a(0x170)][_0x53ac2a(0x182)][_0x53ac2a(0x17f)]},'children':this[_0x53ac2a(0x196)]}),this[_0x53ac2a(0x15a)][_0x53ac2a(0x14b)][_0x53ac2a(0x146)](_0x2b119b);}}[_0x59dc3a(0x19b)](){const _0x5279b8=_0x59dc3a;this[_0x5279b8(0x164)][_0x5279b8(0x1a1)]?this[_0x5279b8(0x1aa)]():this[_0x5279b8(0x194)]();}[_0x59dc3a(0x1a5)](){const _0x5388f2=_0x59dc3a,_0x57c102=this[_0x5388f2(0x196)][_0x5388f2(0x155)]>0x0;this[_0x5388f2(0x164)]?.[_0x5388f2(0x12e)]&&(this[_0x5388f2(0x164)][_0x5388f2(0x12e)][_0x5388f2(0x18a)][_0x5388f2(0x142)]=_0x57c102?'':_0x5388f2(0x14a));}[_0x59dc3a(0x165)](){const _0x7c442a=_0x59dc3a;this[_0x7c442a(0x164)]?.[_0x7c442a(0x1a1)]&&this[_0x7c442a(0x15a)]?.[_0x7c442a(0x184)]&&this[_0x7c442a(0x164)][_0x7c442a(0x12e)]&&this[_0x7c442a(0x15a)][_0x7c442a(0x176)]({'target':this[_0x7c442a(0x164)][_0x7c442a(0x12e)],'limiter':document[_0x7c442a(0x158)](_0x7c442a(0x128))});}[_0x59dc3a(0x161)](_0x56b789){const _0x1ef06d=_0x59dc3a,_0x28fac1=this[_0x1ef06d(0x140)]?.[_0x1ef06d(0x173)][_0x1ef06d(0x137)]()||_0x1ef06d(0x1a4),_0x3bd90c=this[_0x1ef06d(0x140)]?.[_0x1ef06d(0x134)];if(_0x3bd90c){const _0x1731e7=_0x3bd90c[0x0]||'',_0x2e78d1=_0x56b789[_0x1ef06d(0x158)]('.'+_0x1731e7),_0x31bc36=_0x56b789[_0x1ef06d(0x158)](_0x28fac1);return _0x2e78d1||_0x31bc36||_0x56b789;}return _0x56b789[_0x1ef06d(0x158)](_0x28fac1)||_0x56b789;}[_0x59dc3a(0x16e)](){const _0x118a00=_0x59dc3a,_0x40ba21=this[_0x118a00(0x152)]?.[_0x118a00(0x12e)]||this[_0x118a00(0x140)];if(!_0x40ba21)return an;const _0x7968b6=window[_0x118a00(0x1b0)](_0x40ba21)[_0x118a00(0x16f)];if(_0x118a00(0x129)===_0x7968b6||_0x118a00(0x189)===_0x7968b6||!_0x7968b6){const _0x3e59a6=_0x40ba21[_0x118a00(0x169)];if(_0x3e59a6){const _0x1acaa5=window[_0x118a00(0x1b0)](_0x3e59a6);return _0x118a00(0x129)!==_0x1acaa5[_0x118a00(0x16f)]?_0x1acaa5[_0x118a00(0x16f)]:an;}return an;}return _0x7968b6;}[_0x59dc3a(0x18b)](_0x1d29bd,_0x467b22){const _0x5b1688=_0x59dc3a;this[_0x5b1688(0x170)][_0x5b1688(0x182)][_0x5b1688(0x167)]&&_0x1d29bd[_0x5b1688(0x134)][_0x5b1688(0x146)](this[_0x5b1688(0x170)][_0x5b1688(0x182)][_0x5b1688(0x167)]),_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x16f)]=_0x467b22,_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x187)]=_0x5b1688(0x17b),_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x18d)]=_0x5b1688(0x188),_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x163)]=_0x5b1688(0x188),_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x160)]='0',_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x166)]=_0x5b1688(0x14a),_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x1b1)]='-1',_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x1b4)]=_0x5b1688(0x141),_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x142)]=_0x5b1688(0x14d),_0x1d29bd[_0x5b1688(0x18a)][_0x5b1688(0x172)]=_0x5b1688(0x151);}[_0x59dc3a(0x12f)](_0x47b0e1){const _0x5e3a77=_0x59dc3a;_0x47b0e1[_0x5e3a77(0x191)](({element:_0x145f70,originalDisplay:_0xe06b6e,originalVisibility:_0x22b052})=>{const _0x563392=_0x5e3a77;_0x145f70[_0x563392(0x18a)][_0x563392(0x142)]=_0xe06b6e,_0x145f70[_0x563392(0x18a)][_0x563392(0x1b4)]=_0x22b052;});}[_0x59dc3a(0x126)](_0x4364ca){const _0x253eb1=_0x59dc3a,_0x30911b=[];let _0x108cb9=_0x4364ca;for(;_0x108cb9&&_0x108cb9!==document[_0x253eb1(0x13f)];){const _0x4e6577=window[_0x253eb1(0x1b0)](_0x108cb9);_0x253eb1(0x14a)!==_0x4e6577[_0x253eb1(0x142)]&&_0x253eb1(0x177)!==_0x4e6577[_0x253eb1(0x1b4)]||(_0x30911b[_0x253eb1(0x145)]({'element':_0x108cb9,'originalDisplay':_0x108cb9[_0x253eb1(0x18a)][_0x253eb1(0x142)],'originalVisibility':_0x108cb9[_0x253eb1(0x18a)][_0x253eb1(0x1b4)]}),_0x108cb9[_0x253eb1(0x18a)][_0x253eb1(0x142)]=_0x253eb1(0x136),_0x108cb9[_0x253eb1(0x18a)][_0x253eb1(0x1b4)]=_0x253eb1(0x14c)),_0x108cb9=_0x108cb9[_0x253eb1(0x169)];}return _0x30911b;}[_0x59dc3a(0x16c)](){const _0x3a33e5=_0x59dc3a;let _0x150e96,_0xa1e2b6;return this[_0x3a33e5(0x152)]?.[_0x3a33e5(0x12e)]?(_0x150e96=this[_0x3a33e5(0x152)][_0x3a33e5(0x12e)][_0x3a33e5(0x125)](!0x0),_0xa1e2b6=this[_0x3a33e5(0x161)](_0x150e96)):(_0x150e96=document[_0x3a33e5(0x19e)](_0x3a33e5(0x1a4)),_0xa1e2b6=_0x150e96),{'calculationContainer':_0x150e96,'targetContainer':_0xa1e2b6};}[_0x59dc3a(0x1b6)](){const _0x1f1e92=_0x59dc3a,{calculationContainer:_0x2a1c01,targetContainer:_0x5cfac3}=this[_0x1f1e92(0x16c)](),_0x360c37=this[_0x1f1e92(0x16e)]();this[_0x1f1e92(0x18b)](_0x2a1c01,_0x360c37);const _0x58a259=this[_0x1f1e92(0x152)]?.[_0x1f1e92(0x12e)]||this[_0x1f1e92(0x140)],_0x274067=_0x58a259?.[_0x1f1e92(0x169)];_0x274067?_0x274067[_0x1f1e92(0x19c)](_0x2a1c01):document[_0x1f1e92(0x13f)][_0x1f1e92(0x19c)](_0x2a1c01),_0x2a1c01[_0x1f1e92(0x17c)]=_0x5cfac3;const _0x31f2e5=this[_0x1f1e92(0x126)](_0x274067||null);return _0x2a1c01[_0x1f1e92(0x185)],_0x2a1c01[_0x1f1e92(0x1af)]=_0x31f2e5,_0x2a1c01;}[_0x59dc3a(0x186)](_0x4a2372,_0x36d601){const _0x57f031=_0x59dc3a,_0x2eea4c=_0x4a2372[_0x57f031(0x17c)]||_0x4a2372,_0x1881a2=[],{rowCount:_0x3a9d67}=this[_0x57f031(0x179)](_0x2eea4c,_0x36d601);if(_0x3a9d67<=this[_0x57f031(0x170)][_0x57f031(0x18f)])return _0x1881a2;const _0x18b1ec=_0x36d601[_0x57f031(0x1a8)]();for(;_0x18b1ec[_0x57f031(0x155)]>0x0;){if(this[_0x57f031(0x18c)](_0x4a2372,_0x2eea4c,_0x18b1ec)){const _0x228c79=_0x36d601[_0x57f031(0x153)](_0x12d30c=>!_0x18b1ec[_0x57f031(0x18e)](_0x12d30c));_0x1881a2[_0x57f031(0x145)](..._0x228c79);break;}if(!_0x18b1ec[_0x57f031(0x13d)]())break;}return _0x1881a2;}[_0x59dc3a(0x179)](_0x3b4cb4,_0x2904a8){const _0x2f6a25=_0x59dc3a;_0x3b4cb4[_0x2f6a25(0x144)]='',_0x2904a8[_0x2f6a25(0x191)](_0x21da01=>{const _0x2a684e=_0x2f6a25;if(_0x21da01[_0x2a684e(0x12e)]){const _0x4d0631=_0x21da01[_0x2a684e(0x12e)][_0x2a684e(0x125)](!0x0);_0x3b4cb4[_0x2a684e(0x19c)](_0x4d0631);}}),_0x3b4cb4[_0x2f6a25(0x185)];const _0x1ca704=_0x3b4cb4[_0x2f6a25(0x1a0)],_0x47d3bb=[];return Array[_0x2f6a25(0x147)](_0x1ca704)[_0x2f6a25(0x191)](_0x330527=>{const _0x37b41c=_0x2f6a25,_0x38a95f=_0x330527[_0x37b41c(0x154)]()[_0x37b41c(0x18d)];_0x47d3bb[_0x37b41c(0x138)](_0x436440=>Math[_0x37b41c(0x1b3)](_0x436440-_0x38a95f)<this[_0x37b41c(0x170)][_0x37b41c(0x157)])||_0x47d3bb[_0x37b41c(0x145)](_0x38a95f);}),{'rowCount':_0x47d3bb[_0x2f6a25(0x155)]};}[_0x59dc3a(0x19f)](){const _0x3413be=_0x59dc3a,_0x1f2413=document[_0x3413be(0x19e)](_0x3413be(0x159));return _0x1f2413[_0x3413be(0x19a)]=this[_0x3413be(0x170)][_0x3413be(0x182)][_0x3413be(0x192)],this[_0x3413be(0x170)][_0x3413be(0x182)][_0x3413be(0x150)]&&_0x1f2413[_0x3413be(0x134)][_0x3413be(0x146)](this[_0x3413be(0x170)][_0x3413be(0x182)][_0x3413be(0x150)]),_0x1f2413[_0x3413be(0x195)]=_0x3413be(0x1b2),_0x1f2413;}[_0x59dc3a(0x18c)](_0xd8f4f3,_0x200ba9,_0x5c0eaa){const _0x41505d=_0x59dc3a;this[_0x41505d(0x179)](_0x200ba9,_0x5c0eaa);const _0x291f45=this[_0x41505d(0x19f)]();_0xd8f4f3[_0x41505d(0x19c)](_0x291f45),_0xd8f4f3[_0x41505d(0x185)];const _0xeb8c79=[..._0x200ba9[_0x41505d(0x1a0)],_0x291f45],_0x325ce9=[];_0xeb8c79[_0x41505d(0x191)](_0x3d7db0=>{const _0x449362=_0x41505d,_0x1c8efb=_0x3d7db0[_0x449362(0x154)]()[_0x449362(0x18d)];_0x325ce9[_0x449362(0x138)](_0xb7218=>Math[_0x449362(0x1b3)](_0xb7218-_0x1c8efb)<this[_0x449362(0x170)][_0x449362(0x157)])||_0x325ce9[_0x449362(0x145)](_0x1c8efb);});const _0x3cba7e=_0x325ce9[_0x41505d(0x155)];return _0x291f45[_0x41505d(0x16b)](),_0x3cba7e<=this[_0x41505d(0x170)][_0x41505d(0x18f)];}[_0x59dc3a(0x14e)](_0x1c458a,_0x4db0f6){const _0x481808=_0x59dc3a;this[_0x481808(0x1a6)][_0x481808(0x12a)](),this[_0x481808(0x196)][_0x481808(0x12a)](),_0x1c458a[_0x481808(0x191)](_0x2a54b2=>{const _0x97b1a7=_0x481808;_0x4db0f6[_0x97b1a7(0x18e)](_0x2a54b2)?this[_0x97b1a7(0x196)][_0x97b1a7(0x146)](_0x2a54b2):this[_0x97b1a7(0x1a6)][_0x97b1a7(0x146)](_0x2a54b2);});}[_0x59dc3a(0x168)](_0x152f56){const _0x1c63e4=_0x59dc3a;if(_0x152f56>0x0&&!this[_0x1c63e4(0x164)]&&this[_0x1c63e4(0x1ae)](),_0x152f56>0x0&&this[_0x1c63e4(0x164)]){const _0x597efc=''+this[_0x1c63e4(0x170)][_0x1c63e4(0x162)]+(_0x152f56<0x63?_0x152f56:'99');this[_0x1c63e4(0x164)][_0x1c63e4(0x198)]=_0x597efc;}this[_0x1c63e4(0x178)](),this[_0x1c63e4(0x1a5)](),this[_0x1c63e4(0x165)]();}[_0x59dc3a(0x143)](_0x3648a9,_0x5b1b24){const _0x84034c=_0x59dc3a;this[_0x84034c(0x14e)](_0x3648a9,_0x5b1b24),this[_0x84034c(0x168)](_0x5b1b24[_0x84034c(0x155)]);}[_0x59dc3a(0x15f)](){const _0x19e86c=_0x59dc3a;this[_0x19e86c(0x140)]&&_0x19e86c(0x1b5)!=typeof IntersectionObserver&&(this[_0x19e86c(0x1a7)]=new IntersectionObserver(_0x254bf9=>{const _0x12a095=_0x19e86c;_0x254bf9[0x0][_0x12a095(0x1a3)]&&this[_0x12a095(0x12c)]&&requestAnimationFrame(()=>{const _0x4c974f=_0x12a095;this[_0x4c974f(0x174)]();});},{'threshold':0.01,'rootMargin':_0x19e86c(0x1a9)}),this[_0x19e86c(0x1a7)][_0x19e86c(0x133)](this[_0x19e86c(0x140)]));}[_0x59dc3a(0x130)](){const _0x3a4755=_0x59dc3a;if(!this[_0x3a4755(0x140)])return!0x1;if(!this[_0x3a4755(0x140)][_0x3a4755(0x197)])return!0x1;const _0x135334=this[_0x3a4755(0x140)][_0x3a4755(0x154)]();if(0x0===_0x135334[_0x3a4755(0x16f)]||0x0===_0x135334[_0x3a4755(0x148)])return!0x1;const _0x3bd286=window[_0x3a4755(0x193)]||document[_0x3a4755(0x175)][_0x3a4755(0x124)],_0x24f9c0=window[_0x3a4755(0x14f)]||document[_0x3a4755(0x175)][_0x3a4755(0x13b)],_0x439d2f=0xc8;return _0x135334[_0x3a4755(0x1ad)]>=-0xc8&&_0x135334[_0x3a4755(0x18d)]<=_0x3bd286+_0x439d2f&&_0x135334[_0x3a4755(0x1ac)]>=-0xc8&&_0x135334[_0x3a4755(0x163)]<=_0x24f9c0+_0x439d2f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x15d8c5=_0x1e5a;(function(_0x31b177,_0x280514){const _0x56bac=_0x1e5a,_0x1fb9e3=_0x31b177();while(!![]){try{const _0x4e1e0d=parseInt(_0x56bac(0x13e))/0x1+-parseInt(_0x56bac(0x138))/0x2*(parseInt(_0x56bac(0x113))/0x3)+parseInt(_0x56bac(0x11e))/0x4*(-parseInt(_0x56bac(0x11a))/0x5)+parseInt(_0x56bac(0x12c))/0x6*(parseInt(_0x56bac(0x145))/0x7)+parseInt(_0x56bac(0x10e))/0x8+-parseInt(_0x56bac(0x13d))/0x9*(parseInt(_0x56bac(0x125))/0xa)+parseInt(_0x56bac(0x12f))/0xb*(parseInt(_0x56bac(0x119))/0xc);if(_0x4e1e0d===_0x280514)break;else _0x1fb9e3['push'](_0x1fb9e3['shift']());}catch(_0x4e260d){_0x1fb9e3['push'](_0x1fb9e3['shift']());}}}(_0x3bd7,0xa9908));import{ButtonView as _0x22ec28,IconView as _0x84d1dc}from'ckeditor5/src/ui.js';function _0x3bd7(){const _0x334a68=['uiId','644hioneg','remove','_createRemoveButton','_initializeProperties','ck-ai-chat-context-chip','fire','slice','_createTemplateAttributes','_createIconView','_isAnimationOnEnterEnabled','ck-ai-chat-context-chip_wide','span','_handleAnimationEndOnce','6427600lUIbRT','selection','removeEventListener','label','isLoading','3BfnnZl','_createLoaderIcon','ck-ai-chat-context-chip__type-icon','locale','length','ck-ai-chat-context-chip_document','435396YKMutJ','5MAzhiq','ck-ai-chat-context-controls__chip-tooltip','type','add','502772NQCTuU','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','div','_setupRemoveButtonEvent','disableAnimationOnEnter','classList','ck-ai-chat-context-chip__label','148950pSnYVf','_createLabelElement','render','setTemplate','lastIndexOf','content','bindTemplate','24132pmKaXu','document','animationend','253dVvtal','addEventListener','small','set','_createTemplateChildren','bind','ck-hidden','ck-ai-chat-context-chip_new-chip','tooltip','2229922CUARwQ','readonly','webkitAnimationEnd','element','_setupTemplate','189CTkgPW','240002ZMLdjW','execute','itemType','extendTemplate','removeContextItemChip','isVisible'];_0x3bd7=function(){return _0x334a68;};return _0x3bd7();}import{IconClose as _0x2ca854,IconDocument as _0x272fea,IconFileUpload as _0x250509,IconLink as _0x35d7b5,IconSelection as _0xc24de1}from'@ckeditor/ckeditor5-icons';function _0x1e5a(_0x119a34,_0x1d6ece){const _0x3bd785=_0x3bd7();return _0x1e5a=function(_0x1e5a0a,_0x158151){_0x1e5a0a=_0x1e5a0a-0x104;let _0x51a337=_0x3bd785[_0x1e5a0a];return _0x51a337;},_0x1e5a(_0x119a34,_0x1d6ece);}import{getTranslation as _0x19a700}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x34c176}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x250509,'document':_0x272fea,'web-resource':_0x35d7b5,'text':_0x250509,'selection':_0xc24de1},bn=_0x15d8c5(0x105),wn=_0x15d8c5(0x10b),Tn=_0x15d8c5(0x118),En=_0x15d8c5(0x124),fn=_0x15d8c5(0x115),An=_0x15d8c5(0x11b),Cn='n';export class AIChatContextItemButtonView extends _0x22ec28{constructor(_0x5e6023,_0x30401a,_0x1d0a2a,_0x4d134f,_0xa76df0=!0x1){const _0xa9ad8f=_0x15d8c5;super(_0x5e6023),this[_0xa9ad8f(0x10a)]=_0x4d134f,this[_0xa9ad8f(0x104)](_0x30401a,_0x1d0a2a,_0xa76df0),this[_0xa9ad8f(0x13c)]();}[_0x15d8c5(0x127)](){const _0x4b05cd=_0x15d8c5;super[_0x4b05cd(0x127)](),this[_0x4b05cd(0x10a)]&&this[_0x4b05cd(0x13b)]&&(this[_0x4b05cd(0x13b)][_0x4b05cd(0x123)][_0x4b05cd(0x11d)](_0x4b05cd(0x136)),this[_0x4b05cd(0x10d)](this[_0x4b05cd(0x13b)],()=>{const _0xbfe076=_0x4b05cd;this[_0xbfe076(0x13b)]&&this[_0xbfe076(0x13b)][_0xbfe076(0x123)][_0xbfe076(0x146)](_0xbfe076(0x136));}));}[_0x15d8c5(0x122)](){const _0x4d029f=_0x15d8c5;this[_0x4d029f(0x10a)]=!0x1,this[_0x4d029f(0x13b)]&&this[_0x4d029f(0x13b)][_0x4d029f(0x123)][_0x4d029f(0x146)](_0x4d029f(0x136));}[_0x15d8c5(0x104)](_0x4b0be2,_0x40a44a,_0x4cae74){const _0x2cf498=_0x15d8c5;this[_0x2cf498(0x132)](_0x2cf498(0x111),_0x4b0be2[_0x2cf498(0x111)]),this[_0x2cf498(0x132)](_0x2cf498(0x137),!0x0),this[_0x2cf498(0x132)](_0x2cf498(0x140),_0x4b0be2[_0x2cf498(0x11c)]),this[_0x2cf498(0x132)]('id',_0x4b0be2[_0x2cf498(0x144)]),this[_0x2cf498(0x132)](_0x2cf498(0x139),_0x40a44a),this[_0x2cf498(0x132)](_0x2cf498(0x112),_0x4cae74);}[_0x15d8c5(0x13c)](){const _0x23d559=_0x15d8c5,_0x46a72a=this[_0x23d559(0x109)](),_0x4838c2=this[_0x23d559(0x147)](),_0x2b371f=this[_0x23d559(0x12b)];this[_0x23d559(0x128)]({'tag':_0x23d559(0x120),'attributes':this[_0x23d559(0x108)](_0x2b371f),'children':this[_0x23d559(0x133)](_0x46a72a,_0x4838c2,_0x2b371f)});}[_0x15d8c5(0x108)](_0x56268d){const _0x4e757f=_0x15d8c5;return{'class':[bn,_0x56268d['if'](_0x4e757f(0x140),Tn,_0x83c042=>_0x4e757f(0x12d)==_0x83c042),_0x56268d['if'](_0x4e757f(0x140),wn,_0x3a5ecf=>_0x4e757f(0x10f)==_0x3a5ecf)],'data-cke-tooltip-text':_0x56268d['to'](_0x4e757f(0x111),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x15d8c5(0x133)](_0x1e93c8,_0x31c399,_0x236904){const _0x2abdaa=_0x15d8c5,_0x5e7a8c=this[_0x2abdaa(0x126)](_0x236904),_0x5afbe4=this[_0x2abdaa(0x114)]();return this[_0x2abdaa(0x139)]?[_0x1e93c8,_0x5e7a8c]:[_0x1e93c8,_0x5afbe4,_0x5e7a8c,_0x31c399];}[_0x15d8c5(0x126)](_0x100ba0){const _0x4c9ec3=_0x15d8c5;return{'tag':_0x4c9ec3(0x10c),'attributes':{'class':En},'children':[{'text':_0x100ba0['to'](_0x4c9ec3(0x111))}]};}[_0x15d8c5(0x147)](){const _0x5e96b2=_0x15d8c5,_0x3b0e5=new _0x22ec28(this[_0x5e96b2(0x116)]);return _0x3b0e5[_0x5e96b2(0x132)]({'label':_0x19a700(this[_0x5e96b2(0x116)],_0x5e96b2(0x11f)),'icon':_0x2ca854}),this[_0x5e96b2(0x121)](_0x3b0e5),_0x3b0e5;}[_0x15d8c5(0x121)](_0x590693){const _0x458d0c=_0x15d8c5;_0x590693['on'](_0x458d0c(0x13f),()=>{const _0x39438a=_0x458d0c;this[_0x39438a(0x106)](_0x39438a(0x142),this['id']);});}[_0x15d8c5(0x109)](){const _0x39f480=_0x15d8c5,_0x3c4f70=this[_0x39f480(0x12b)],_0x4dae93=new _0x84d1dc();return _0x4dae93[_0x39f480(0x12a)]=xn[this[_0x39f480(0x140)]],_0x4dae93[_0x39f480(0x141)]({'attributes':{'class':[fn,_0x3c4f70['if'](_0x39f480(0x112),_0x39f480(0x135),_0x4d70c0=>_0x4d70c0)]}}),_0x4dae93;}[_0x15d8c5(0x10d)](_0xfcf124,_0x103411){const _0x2f41e5=_0x15d8c5;if(!_0xfcf124)return;const _0x4cc879=()=>{const _0x33b18b=_0x1e5a;_0x103411(),_0xfcf124[_0x33b18b(0x110)](_0x33b18b(0x12e),_0x4cc879),_0xfcf124[_0x33b18b(0x110)](_0x33b18b(0x13a),_0x4cc879);};_0xfcf124[_0x2f41e5(0x130)](_0x2f41e5(0x12e),_0x4cc879),_0xfcf124[_0x2f41e5(0x130)](_0x2f41e5(0x13a),_0x4cc879);}[_0x15d8c5(0x114)](){const _0x3a90fa=_0x15d8c5,_0x244554=new _0x34c176(_0x3a90fa(0x131));return _0x244554[_0x3a90fa(0x134)](_0x3a90fa(0x143))['to'](this,_0x3a90fa(0x112),_0x17c6ee=>_0x17c6ee),_0x244554;}}function In(_0x41e80f){const _0x55ea5e=_0x15d8c5;if(!_0x41e80f)return _0x41e80f;if(_0x41e80f[_0x55ea5e(0x117)]<=0x78)return _0x41e80f;const _0x4c2a6d=_0x41e80f[_0x55ea5e(0x107)](0x0,0x78),_0x45dbde=_0x4c2a6d[_0x55ea5e(0x129)]('\x20');return(_0x45dbde>0x0?_0x4c2a6d[_0x55ea5e(0x107)](0x0,_0x45dbde):_0x4c2a6d)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1fea(){const _0x23b7a4=['focusCycler','forEach','5419225oZvEjz','submit','focusTracker','shift+tab','AI_CHAT_CONTEXT_URL_LABEL','backButton','destroy','AI_CHAT_CONTEXT_URL_ADD_URL','trim','children','render','_focusables','_setupKeystrokes','execute','length','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-ai-chat-context-controls__url-form','div','957938fMAKwO','_handleSubmit','value','urlInputField','_setupTemplate','1123420tYEqDL','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_INVALID_ERROR','4377aPoFtZ','add','refreshBalloon','form','esc','_createUrlInputField','ck-labeled-field-view_empty','fire','stop','submitUrl','fieldView','input','_updateConfirmButtonState','ck-button-icon\x20ck-button-back','setTemplate','createCollection','isEnabled','_createBackButton','errorText','8TMGSZC','1084308WcMLmb','getValue','set','setError','3628XuTusX','listenTo','confirmButton','focus','locale','cancel','clearError','_isValidUrl','ck-button-icon','_createConfirmButton','keystrokes','tab','24563709IyapHt','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_setupEventHandlers','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','element','5768540KBMnMr','clear'];_0x1fea=function(){return _0x23b7a4;};return _0x1fea();}const _0x2b220a=_0x4b34;function _0x4b34(_0x3b9f65,_0x5df554){const _0x1fea08=_0x1fea();return _0x4b34=function(_0x4b347a,_0x18dc85){_0x4b347a=_0x4b347a-0xbd;let _0xc14f25=_0x1fea08[_0x4b347a];return _0xc14f25;},_0x4b34(_0x3b9f65,_0x5df554);}(function(_0x1f5af7,_0x3411dc){const _0x323267=_0x4b34,_0x32ce98=_0x1f5af7();while(!![]){try{const _0x27e5f2=-parseInt(_0x323267(0xcf))/0x1+-parseInt(_0x323267(0xd4))/0x2+parseInt(_0x323267(0xd7))/0x3*(parseInt(_0x323267(0xef))/0x4)+-parseInt(_0x323267(0x100))/0x5+parseInt(_0x323267(0xeb))/0x6+-parseInt(_0x323267(0x104))/0x7+parseInt(_0x323267(0xea))/0x8*(parseInt(_0x323267(0xfb))/0x9);if(_0x27e5f2===_0x3411dc)break;else _0x32ce98['push'](_0x32ce98['shift']());}catch(_0x5646d8){_0x32ce98['push'](_0x32ce98['shift']());}}}(_0x1fea,0xbfd89));import{FocusTracker as _0x2ee9d9,KeystrokeHandler as _0x4e2af9}from'ckeditor5/src/utils.js';import{ButtonView as _0x1b586c,FocusCycler as _0x351c20,LabeledFieldView as _0x97023e,View as _0x37695e,FormHeaderView as _0x24491b,createLabeledInputText as _0x48a1c9,submitHandler as _0x5af816}from'ckeditor5/src/ui.js';import{IconCheck as _0x2a4ec4,IconPreviousArrow as _0x290678}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2c84f5}from'../../../aicore/utils/common-translations.js';const ch=_0x2b220a(0xcd),nh=_0x2b220a(0xd5);export class AIChatContextPanelUrlInputView extends _0x37695e{[_0x2b220a(0xbe)];[_0x2b220a(0xf9)];[_0x2b220a(0xc7)];[_0x2b220a(0x102)];[_0x2b220a(0xd2)];[_0x2b220a(0xc1)];[_0x2b220a(0xf1)];constructor(_0xca7302){const _0x6885a0=_0x2b220a;super(_0xca7302),this[_0x6885a0(0xbe)]=new _0x2ee9d9(),this[_0x6885a0(0xf9)]=new _0x4e2af9(),this[_0x6885a0(0xc1)]=this[_0x6885a0(0xe8)](),this[_0x6885a0(0xd2)]=this[_0x6885a0(0xdc)](),this[_0x6885a0(0xf1)]=this[_0x6885a0(0xf8)](),this[_0x6885a0(0xc7)]=this[_0x6885a0(0xe6)]([this[_0x6885a0(0xc1)],this[_0x6885a0(0xd2)],this[_0x6885a0(0xf1)]]),this[_0x6885a0(0x102)]=new _0x351c20({'focusables':this[_0x6885a0(0xc7)],'focusTracker':this[_0x6885a0(0xbe)],'keystrokeHandler':this[_0x6885a0(0xf9)],'actions':{'focusPrevious':_0x6885a0(0xbf),'focusNext':_0x6885a0(0xfa)}}),this[_0x6885a0(0xd3)](),this[_0x6885a0(0xfd)](),this[_0x6885a0(0xc8)]();}[_0x2b220a(0xc6)](){const _0x3b3e83=_0x2b220a;super[_0x3b3e83(0xc6)](),this[_0x3b3e83(0xc7)][_0x3b3e83(0x103)](_0x1be6e3=>{const _0x2eaf45=_0x3b3e83;this[_0x2eaf45(0xbe)][_0x2eaf45(0xd8)](_0x1be6e3[_0x2eaf45(0xff)]),this[_0x2eaf45(0xf9)][_0x2eaf45(0xf0)](_0x1be6e3[_0x2eaf45(0xff)]);}),_0x5af816({'view':this}),this[_0x3b3e83(0xf2)]();}[_0x2b220a(0xc2)](){const _0x239378=_0x2b220a;super[_0x239378(0xc2)](),this[_0x239378(0xbe)][_0x239378(0xc2)](),this[_0x239378(0xf9)][_0x239378(0xc2)]();}[_0x2b220a(0xf2)](){const _0x592629=_0x2b220a;this[_0x592629(0xd2)][_0x592629(0xf2)]();}[_0x2b220a(0xec)](){const _0x209552=_0x2b220a;return this[_0x209552(0xd2)][_0x209552(0xe1)][_0x209552(0xff)]?.[_0x209552(0xd1)]?.[_0x209552(0xc4)]()||'';}[_0x2b220a(0x101)](){const _0x57802d=_0x2b220a;this[_0x57802d(0xd2)][_0x57802d(0xe1)][_0x57802d(0xff)][_0x57802d(0xd1)]='',this[_0x57802d(0xd2)][_0x57802d(0xe9)]=null,this[_0x57802d(0xf1)][_0x57802d(0xe7)]=!0x1;}[_0x2b220a(0xee)](_0x3b296c){const _0x31fdc7=_0x2b220a;this[_0x31fdc7(0xd2)][_0x31fdc7(0xe9)]=_0x3b296c,this[_0x31fdc7(0xe3)](),this[_0x31fdc7(0xde)](_0x31fdc7(0xd9));}[_0x2b220a(0xf5)](){const _0x24564b=_0x2b220a;this[_0x24564b(0xd2)][_0x24564b(0xe9)]=null,this[_0x24564b(0xe3)]();}[_0x2b220a(0xe8)](){const _0x13a4d7=_0x2b220a,_0x84d94c=new _0x1b586c(this[_0x13a4d7(0xf3)]);return _0x84d94c[_0x13a4d7(0xed)]({'icon':_0x290678,'tooltip':_0x2c84f5(this[_0x13a4d7(0xf3)],_0x13a4d7(0xcb)),'tooltipPosition':'n','class':_0x13a4d7(0xe4)}),_0x84d94c;}[_0x2b220a(0xdc)](){const _0x566655=_0x2b220a,_0x23b381=new _0x97023e(this[_0x566655(0xf3)],_0x48a1c9);return _0x23b381[_0x566655(0xed)]({'label':_0x2c84f5(this[_0x566655(0xf3)],_0x566655(0xc0)),'class':_0x566655(0xdd)}),_0x23b381[_0x566655(0xe1)][_0x566655(0xed)]({'placeholder':_0x2c84f5(this[_0x566655(0xf3)],_0x566655(0xfc))}),_0x23b381;}[_0x2b220a(0xf8)](){const _0x2c4257=_0x2b220a,_0x3b84d8=new _0x1b586c(this[_0x2c4257(0xf3)]);return _0x3b84d8[_0x2c4257(0xed)]({'icon':_0x2a4ec4,'tooltip':_0x2c84f5(this[_0x2c4257(0xf3)],_0x2c4257(0xc3)),'tooltipPosition':'n','class':_0x2c4257(0xf7),'type':_0x2c4257(0xbd),'isEnabled':!0x1}),_0x3b84d8;}[_0x2b220a(0xd3)](){const _0x2bd08a=_0x2b220a,_0x2e67de=new _0x24491b(this[_0x2bd08a(0xf3)],{'label':_0x2c84f5(this[_0x2bd08a(0xf3)],_0x2bd08a(0xc3)),'class':_0x2bd08a(0xcc)});_0x2e67de[_0x2bd08a(0xc5)][_0x2bd08a(0xd8)](this[_0x2bd08a(0xc1)],0x0),this[_0x2bd08a(0xe5)]({'tag':_0x2bd08a(0xda),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x2e67de,{'tag':_0x2bd08a(0xce),'attributes':{'class':nh},'children':[this[_0x2bd08a(0xd2)],this[_0x2bd08a(0xf1)]]}]});}[_0x2b220a(0xfd)](){const _0x429b03=_0x2b220a;this[_0x429b03(0xc1)]['on'](_0x429b03(0xc9),()=>{const _0x222987=_0x429b03;this[_0x222987(0x101)](),this[_0x222987(0xde)](_0x222987(0xf4));}),this[_0x429b03(0xd2)][_0x429b03(0xe1)]['on'](_0x429b03(0xe2),()=>{const _0x365672=_0x429b03;this[_0x365672(0xf5)](),this[_0x365672(0xe3)](),this[_0x365672(0xde)](_0x365672(0xd9));}),this['on'](_0x429b03(0xbd),_0x347118=>{const _0x5ef999=_0x429b03;_0x347118[_0x5ef999(0xdf)](),this[_0x5ef999(0xd0)]();});}[_0x2b220a(0xc8)](){const _0x3ebb73=_0x2b220a;this[_0x3ebb73(0xf9)][_0x3ebb73(0xed)](_0x3ebb73(0xdb),(_0x3d198b,_0x1941a6)=>{const _0x1acb3a=_0x3ebb73;this[_0x1acb3a(0x101)](),this[_0x1acb3a(0xde)](_0x1acb3a(0xf4)),_0x1941a6();});}[_0x2b220a(0xd0)](){const _0x48439a=_0x2b220a,_0x4fbbff=this[_0x48439a(0xec)]()[_0x48439a(0xc4)]();_0x4fbbff?this[_0x48439a(0xf6)](_0x4fbbff)?(this[_0x48439a(0xf5)](),this[_0x48439a(0xde)](_0x48439a(0xe0),_0x4fbbff)):this[_0x48439a(0xee)](_0x2c84f5(this[_0x48439a(0xf3)],_0x48439a(0xd6))):this[_0x48439a(0xee)](_0x2c84f5(this[_0x48439a(0xf3)],_0x48439a(0xfe)));}[_0x2b220a(0xe3)](){const _0x274a1b=_0x2b220a,_0x39e494=this[_0x274a1b(0xec)]()[_0x274a1b(0xc4)](),_0x3ccc37=!!this[_0x274a1b(0xd2)][_0x274a1b(0xe9)];this[_0x274a1b(0xf1)][_0x274a1b(0xe7)]=_0x39e494[_0x274a1b(0xca)]>0x0&&!_0x3ccc37;}[_0x2b220a(0xf6)](_0x493615){try{return!!new URL(_0x493615);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x12ea40=_0x38d5;function _0x406b(){const _0x65688=['icon','clearCurrentContextItems','urls','_getLimiterElement','destroy','_urlBalloonPanelView','_createAddContextButtonView','setAddContextOptions','defaultPositions','_handleAddContextButtonClick','_setBalloonPanelContent','createCollection','ck-ai-chat','southArrowNorth','document','_setAddContextButtonEnabled','type','submitUrl','searchInputVisibleFrom','ck-ai-chat-context-controls__pending-contexts','find','remove','enabled','northArrowSouthWest','_createAddContextBalloonPanelView','isHidden','setConversationContext','refreshBalloon','extendTemplate','ck-ai-chat-context-controls','_bindEventHandlers','northArrowSouth','_urlInputView','ck-ai-chat-context-controls__show-more-balloon-panel','isReadOnly','48mtvwYZ','showUrlBalloonPanel','hide','61621rEqBaG','addContextItem','_createArrowView','southArrowNorthEast','closest','2673760mdSmfh','834MZGedC','southArrowNorthWest','clear','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_FILE_LABEL','done','showSourceResourcesBalloon','isLoading','current','AI_CHAT_CONTEXT_ADD_CONTEXT','pin','closeSourceResourceBalloon','isAnyResourceBalloonVisible','arrowView','hideUrlBalloonPanel','buttonView','_addContextBalloonConfig','AI_CHAT_CONTEXT_URL_LABEL','ck-ai-chat-context-controls__add-context-balloon-panel','_createBalloonButton','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','setContainerElement','tooltip','focus','_removeContextFromCollection','87093BjJMdE','isOn','_toggleAddContextBalloon','locale','populateSourceResourceBalloon','_setupUrlBalloonClickOutsideHandler','source','_currentContextsChips','addDocumentToContext','_addContextBalloonPanelView','setTemplate','div','184bqPEyP','_conversationContextsChips','balloonView','bind','setContextItemLoading','ck-ai-chat-context-controls__balloon-button-source','label','addContextButtonView','__arrow','addFileToContext','cancel','isEnabled','add','ck-ai-chat-context-controls__url-balloon-panel','_showSourceResourcesBalloon','show','menuitem','ck-ai-chat-context-controls__add-context-button','10FiBgUl','updateResourceState','element','loadSourceResources','hideAddContextBalloonPanel','_setupTemplate','set','_createContextButton','bodyCollection','sources','removeContextItem','_handleUrlSubmit','conversation','render','addUrlToContext','_overflowManager','isVisible','_addContextToCollection','1275308CvjGzD','reorganizeChips','13895442tdjLXk','children','addResourceToContext','removeContextItemChip','execute','_createResourcesBalloonView','_setupAddContextBalloonClickOutsideHandler','files','98372LpNpRy','clearConversationContextItems','46821EkLPJP','body','ck-ai-chat-context-chips-wrapper-balloon','fire','_addUrlContent','_createUrlBalloonPanelView','content','_createBaseBalloonPanel','_resourcesBalloonView','ck-ai-chat-controls-button','showAddContextBalloonPanel','ck-ai-chat-context-controls__balloon-button','northArrowSouthEast','ck-reset_all-excluded','_setupAllBalloonClickOutsideHandlers','overflowChips'];_0x406b=function(){return _0x65688;};return _0x406b();}(function(_0x33a2ae,_0x85bb7e){const _0x4793db=_0x38d5,_0x3016cf=_0x33a2ae();while(!![]){try{const _0x377dc1=parseInt(_0x4793db(0x20d))/0x1+-parseInt(_0x4793db(0x217))/0x2+parseInt(_0x4793db(0x219))/0x3*(-parseInt(_0x4793db(0x24c))/0x4)+-parseInt(_0x4793db(0x254))/0x5+-parseInt(_0x4793db(0x255))/0x6*(-parseInt(_0x4793db(0x24f))/0x7)+-parseInt(_0x4793db(0x1e9))/0x8*(-parseInt(_0x4793db(0x1dd))/0x9)+parseInt(_0x4793db(0x1fb))/0xa*(-parseInt(_0x4793db(0x20f))/0xb);if(_0x377dc1===_0x85bb7e)break;else _0x3016cf['push'](_0x3016cf['shift']());}catch(_0x255089){_0x3016cf['push'](_0x3016cf['shift']());}}}(_0x406b,0xa7bcc));function _0x38d5(_0x28dfb7,_0x5e469a){const _0x406bc3=_0x406b();return _0x38d5=function(_0x38d52f,_0x5ced74){_0x38d52f=_0x38d52f-0x1c6;let _0x5f1aef=_0x406bc3[_0x38d52f];return _0x5f1aef;},_0x38d5(_0x28dfb7,_0x5e469a);}import{BalloonPanelView as _0x53a978,ButtonView as _0x4dfc42,clickOutsideHandler as _0x45f768,FileDialogButtonView as _0x25840c,IconView as _0x27811a,View as _0x349933}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x33b1a1,IconDocument as _0x1112b0,IconDocumentOutline as _0x478743,IconDropdownArrow as _0x1b1652,IconLink as _0x28606e,IconPaperClip as _0xc85aac}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x23b9b8}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x465b79}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x585d4c}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x4fa115}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x38adca}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x12ea40(0x1e5),_0x12ea40(0x1f2),_0x12ea40(0x209),_0x12ea40(0x211),_0x12ea40(0x205),_0x12ea40(0x1fe)];const ko=_0x12ea40(0x246),Eo=_0x12ea40(0x23c),vo=_0x12ea40(0x1d6),Vo=_0x12ea40(0x1fa),Io=_0x12ea40(0x1f6),Po=_0x12ea40(0x224),Ro=_0x12ea40(0x1ee),Uo=_0x12ea40(0x222),Lo=_0x12ea40(0x21b),No=_0x12ea40(0x1c7),Oo=_0x12ea40(0x24a),Mo=_0x12ea40(0x235),Ho=[_0x53a978[_0x12ea40(0x231)][_0x12ea40(0x240)],_0x53a978[_0x12ea40(0x231)][_0x12ea40(0x248)],_0x53a978[_0x12ea40(0x231)][_0x12ea40(0x225)],_0x53a978[_0x12ea40(0x231)][_0x12ea40(0x256)],_0x53a978[_0x12ea40(0x231)][_0x12ea40(0x236)],_0x53a978[_0x12ea40(0x231)][_0x12ea40(0x252)]];export class AIChatContextPanelView extends _0x349933{[_0x12ea40(0x1f0)];[_0x12ea40(0x1e4)]=this[_0x12ea40(0x234)]();[_0x12ea40(0x1ea)]=this[_0x12ea40(0x234)]();[_0x12ea40(0x20a)];[_0x12ea40(0x1e6)];[_0x12ea40(0x22e)];[_0x12ea40(0x249)];[_0x12ea40(0x221)];[_0x12ea40(0x1d4)];[_0x12ea40(0x203)];constructor(_0x1ba292,_0x1ddb7e){const _0x5df4=_0x12ea40;super(_0x1ba292),this[_0x5df4(0x203)]=_0x1ddb7e[_0x5df4(0x203)],this[_0x5df4(0x1e4)]=this[_0x5df4(0x234)](),this[_0x5df4(0x1ea)]=this[_0x5df4(0x234)](),this[_0x5df4(0x1f0)]=this[_0x5df4(0x22f)](_0x1ba292),this[_0x5df4(0x1e6)]=this[_0x5df4(0x241)](_0x1ba292),this[_0x5df4(0x22e)]=this[_0x5df4(0x21e)](_0x1ba292),this[_0x5df4(0x221)]=this[_0x5df4(0x214)](_0x1ba292,_0x1ddb7e);const _0xc87af5={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x5df4(0x20a)]=new _0x585d4c(_0x1ba292,this[_0x5df4(0x1e4)],_0xc87af5,this[_0x5df4(0x203)],this),this[_0x5df4(0x1d4)]={'buttonView':this[_0x5df4(0x1f0)],'balloonView':this[_0x5df4(0x1e6)],'hideMethod':this[_0x5df4(0x1ff)][_0x5df4(0x1ec)](this),'showMethod':this[_0x5df4(0x223)][_0x5df4(0x1ec)](this)},this[_0x5df4(0x200)](),this[_0x5df4(0x247)]();}[_0x12ea40(0x208)](){const _0x5f585c=_0x12ea40;super[_0x5f585c(0x208)](),this[_0x5f585c(0x227)](),this[_0x5f585c(0x20a)][_0x5f585c(0x1d9)](this[_0x5f585c(0x1fd)]),this[_0x5f585c(0x20a)][_0x5f585c(0x20e)]();}[_0x12ea40(0x22d)](){const _0x1aaec2=_0x12ea40;super[_0x1aaec2(0x22d)](),this[_0x1aaec2(0x20a)][_0x1aaec2(0x22d)](),this[_0x1aaec2(0x221)][_0x1aaec2(0x22d)]();}[_0x12ea40(0x250)](_0x3efa69,_0x404b37){const _0x36717c=_0x12ea40,_0x44862c=this[_0x36717c(0x202)](_0x3efa69,_0x36717c(0x1cc),!0x0,_0x404b37);this[_0x36717c(0x20c)](_0x44862c,this[_0x36717c(0x1e4)]),this[_0x36717c(0x20a)][_0x36717c(0x20e)]();}[_0x12ea40(0x205)](_0xb8bac9){const _0x5aeab9=_0x12ea40;this[_0x5aeab9(0x1dc)](_0xb8bac9,this[_0x5aeab9(0x1e4)]),this[_0x5aeab9(0x1dc)](_0xb8bac9,this[_0x5aeab9(0x20a)][_0x5aeab9(0x228)]),this[_0x5aeab9(0x20a)][_0x5aeab9(0x20e)]();}[_0x12ea40(0x1ed)](_0x548ae9,_0x95b7b0){const _0x463a38=_0x12ea40;let _0x1a29bb=this[_0x463a38(0x1e4)][_0x463a38(0x23d)](_0x3da12e=>_0x3da12e['id']===_0x548ae9);_0x1a29bb||(_0x1a29bb=this[_0x463a38(0x20a)][_0x463a38(0x228)][_0x463a38(0x23d)](_0x40da93=>_0x40da93['id']===_0x548ae9)),_0x1a29bb&&(_0x1a29bb[_0x463a38(0x1cb)]=_0x95b7b0);}[_0x12ea40(0x243)](_0x3a73c2){const _0x5cf790=_0x12ea40;this[_0x5cf790(0x1ea)][_0x5cf790(0x1c6)]();for(const _0x569339 of _0x3a73c2){const _0x1cd566=this[_0x5cf790(0x202)](_0x569339,_0x5cf790(0x207),!0x1,!0x1);this[_0x5cf790(0x20c)](_0x1cd566,this[_0x5cf790(0x1ea)]);}}[_0x12ea40(0x22a)](){const _0x5d6043=_0x12ea40;this[_0x5d6043(0x1e4)][_0x5d6043(0x1c6)](),this[_0x5d6043(0x20a)][_0x5d6043(0x1c6)]();}[_0x12ea40(0x218)](){const _0x36103e=_0x12ea40;this[_0x36103e(0x1ea)][_0x36103e(0x1c6)]();}[_0x12ea40(0x1fc)](_0x3c07af,_0x51f27f,_0x1f20dc){const _0x493e91=_0x12ea40;this[_0x493e91(0x221)][_0x493e91(0x1fc)](_0x3c07af,_0x51f27f,_0x1f20dc);}[_0x12ea40(0x1ff)](){const _0x3edf30=_0x12ea40;this[_0x3edf30(0x1df)](!0x1);}[_0x12ea40(0x223)](){const _0x225a8b=_0x12ea40;this[_0x225a8b(0x1df)](!0x0);}[_0x12ea40(0x1d2)](){const _0x2b6594=_0x12ea40;this[_0x2b6594(0x22e)][_0x2b6594(0x24e)](),this[_0x2b6594(0x1f0)][_0x2b6594(0x1de)]=!0x1,this[_0x2b6594(0x249)]&&this[_0x2b6594(0x249)][_0x2b6594(0x1c6)]();}[_0x12ea40(0x24d)](){const _0x6595c0=_0x12ea40;this[_0x6595c0(0x22e)][_0x6595c0(0x1f8)](),this[_0x6595c0(0x1f0)][_0x6595c0(0x1de)]=!0x0;}[_0x12ea40(0x1f7)](_0x284efc){const _0x8ed0=_0x12ea40;this[_0x8ed0(0x221)][_0x8ed0(0x1ca)](_0x284efc),this[_0x8ed0(0x1f0)][_0x8ed0(0x1de)]=!0x0;}[_0x12ea40(0x1e1)](_0xcb8711,_0x14408c,_0x4f1be1,_0x3782c7){const _0x521501=_0x12ea40;this[_0x521501(0x221)][_0x521501(0x1e1)](_0xcb8711,_0x4f1be1,_0x3782c7);}[_0x12ea40(0x1cf)](_0x3b6359){const _0x3e7b46=_0x12ea40;this[_0x3e7b46(0x221)][_0x3e7b46(0x1cf)](_0x3b6359),this[_0x3e7b46(0x1f0)][_0x3e7b46(0x1de)]=!0x1;}[_0x12ea40(0x230)](_0x9115ee){const _0x49af85=_0x12ea40;this[_0x49af85(0x233)](this[_0x49af85(0x1e6)],this[_0x49af85(0x1e0)],_0x9115ee),this[_0x49af85(0x238)](_0x9115ee);}[_0x12ea40(0x238)](_0xa47d89){const _0x250458=_0x12ea40,_0x3d23d9=!_0xa47d89[_0x250458(0x237)][_0x250458(0x242)]&&_0xa47d89[_0x250458(0x237)][_0x250458(0x23f)],_0x582ea7=_0xa47d89[_0x250458(0x22b)][_0x250458(0x23f)],_0x4faa7d=_0xa47d89[_0x250458(0x216)][_0x250458(0x23f)];this[_0x250458(0x1f0)][_0x250458(0x1f4)]=_0x3d23d9||_0x582ea7||_0x4faa7d;}[_0x12ea40(0x200)](){const _0x23fe0e=_0x12ea40;this[_0x23fe0e(0x1e7)]({'tag':_0x23fe0e(0x1e8),'attributes':{'class':[ko,_0x23fe0e(0x226)]},'children':[{'tag':_0x23fe0e(0x1e8),'attributes':{'class':Eo},'children':this[_0x23fe0e(0x1e4)]}]});}[_0x12ea40(0x247)](){const _0x41a7bc=_0x12ea40;this[_0x41a7bc(0x1f0)]['on'](_0x41a7bc(0x213),()=>{const _0x360cc0=_0x41a7bc;this[_0x360cc0(0x232)]();});}[_0x12ea40(0x22f)](_0x510dad){const _0x5255d3=_0x12ea40,_0x12b2af=new _0x4dfc42(_0x510dad);return _0x12b2af[_0x5255d3(0x201)]({'label':_0x4fa115(_0x510dad,_0x5255d3(0x1cd)),'class':Uo+'\x20'+Vo,'icon':_0xc85aac,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x12b2af;}[_0x12ea40(0x241)](_0x1caa5f){const _0x11d8d6=_0x12ea40;return this[_0x11d8d6(0x220)](_0x1caa5f,vo);}[_0x12ea40(0x21e)](_0x29cc6f){const _0x5f1f4c=_0x12ea40,_0x48c889=this[_0x5f1f4c(0x220)](_0x29cc6f,Io);return this[_0x5f1f4c(0x21d)](_0x48c889,_0x29cc6f),_0x48c889;}[_0x12ea40(0x214)](_0x27b103,_0x27ea0b){const _0x41789b=_0x12ea40,_0x23214e={'searchInputVisibleFrom':_0x27ea0b[_0x41789b(0x23b)],'onBackToContext':()=>{const _0x33addd=_0x41789b;this[_0x33addd(0x223)](),this[_0x33addd(0x1e6)][_0x33addd(0x1ce)]({'target':this[_0x33addd(0x1f0)][_0x33addd(0x1fd)],'limiter':this[_0x33addd(0x22c)](),'positions':Ho});},'onResourceSelected':(_0x3458ab,_0x1a6040)=>{const _0x381745=_0x41789b;this[_0x381745(0x21c)](_0x381745(0x211),{'source':_0x3458ab,'resource':_0x1a6040});},'onLoadSourceResources':_0x4bb53c=>{const _0xf0cf33=_0x41789b;this[_0xf0cf33(0x21c)](_0xf0cf33(0x1fe),_0x4bb53c);},'onBalloonClosed':()=>{const _0x411be9=_0x41789b;this[_0x411be9(0x1f0)][_0x411be9(0x1de)]=!0x1;},'getLimiterElement':()=>this[_0x41789b(0x22c)](),'getTargetElement':()=>this[_0x41789b(0x1f0)][_0x41789b(0x1fd)]};return new _0x38adca(_0x27b103,_0x27ea0b[_0x41789b(0x203)],_0x23214e);}[_0x12ea40(0x22c)](){const _0x223b3e=_0x12ea40;return this[_0x223b3e(0x1fd)]?.[_0x223b3e(0x253)]('.'+Mo)||document[_0x223b3e(0x21a)];}[_0x12ea40(0x220)](_0x40fd43,_0xdc46da){const _0xc6ea5c=_0x12ea40,_0x54ede3=new _0x53a978(_0x40fd43);return _0x54ede3[_0xc6ea5c(0x245)]({'attributes':{'class':_0xdc46da}}),this[_0xc6ea5c(0x203)][_0xc6ea5c(0x1f5)](_0x54ede3),_0x54ede3;}[_0x12ea40(0x233)](_0x175ef3,_0x7e0abc,_0x1048b2){const _0x133947=_0x12ea40;if(_0x175ef3[_0x133947(0x21f)][_0x133947(0x1c6)](),!_0x1048b2[_0x133947(0x237)][_0x133947(0x242)]&&_0x1048b2[_0x133947(0x237)][_0x133947(0x23f)]){const _0x26f0a7=this[_0x133947(0x1d7)](_0x7e0abc,{'label':_0x4fa115(_0x7e0abc,_0x133947(0x1d8)),'icon':_0x1112b0});_0x26f0a7['on'](_0x133947(0x213),()=>{const _0x1c806b=_0x133947;this[_0x1c806b(0x21c)](_0x1c806b(0x1e5)),this[_0x1c806b(0x1ff)]();}),_0x175ef3[_0x133947(0x21f)][_0x133947(0x1f5)](_0x26f0a7);}if(_0x1048b2[_0x133947(0x22b)][_0x133947(0x23f)]){const _0x21e793=this[_0x133947(0x1d7)](_0x7e0abc,{'label':_0x4fa115(_0x7e0abc,_0x133947(0x1d5)),'icon':_0x28606e});_0x21e793['on'](_0x133947(0x213),()=>{const _0x3c7a42=_0x133947;this[_0x3c7a42(0x1ff)](),this[_0x3c7a42(0x24d)](),this[_0x3c7a42(0x22e)][_0x3c7a42(0x1ce)]({'target':this[_0x3c7a42(0x1f0)][_0x3c7a42(0x1fd)],'limiter':this[_0x3c7a42(0x22c)](),'positions':Ho}),this[_0x3c7a42(0x249)][_0x3c7a42(0x1db)]();}),_0x175ef3[_0x133947(0x21f)][_0x133947(0x1f5)](_0x21e793);}if(_0x1048b2[_0x133947(0x216)][_0x133947(0x23f)]){const _0x3f242c=new _0x25840c(_0x7e0abc);_0x3f242c[_0x133947(0x201)]({'label':_0x4fa115(_0x7e0abc,_0x133947(0x1c8)),'icon':_0x33b1a1,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x3f242c['on'](_0x133947(0x1c9),(_0x11bfb3,_0x311ab6)=>{const _0x33bf20=_0x133947;this[_0x33bf20(0x21c)](_0x33bf20(0x1f2),_0x311ab6),this[_0x33bf20(0x1ff)]();}),_0x3f242c[_0x133947(0x1da)]=!0x0,_0x175ef3[_0x133947(0x21f)][_0x133947(0x1f5)](_0x3f242c);}for(const _0x955ab7 of _0x1048b2[_0x133947(0x204)]){const _0x1498c7=this[_0x133947(0x1d7)](_0x7e0abc,{'label':_0x955ab7[_0x133947(0x1ef)],'icon':_0x955ab7[_0x133947(0x229)]||_0x478743,'type':_0x133947(0x1e3)});_0x175ef3[_0x133947(0x21f)][_0x133947(0x1f5)](_0x1498c7),_0x1498c7['on'](_0x133947(0x213),()=>{const _0x11c3dc=_0x133947;this[_0x11c3dc(0x1ff)](),this[_0x11c3dc(0x1f7)](_0x955ab7);});}}[_0x12ea40(0x21d)](_0x386b0b,_0x3992ff){const _0x3ca00f=_0x12ea40;this[_0x3ca00f(0x249)]=new _0x465b79(_0x3992ff),this[_0x3ca00f(0x249)]['on'](_0x3ca00f(0x23a),(_0x20967f,_0x5411ee)=>{const _0xbfe08=_0x3ca00f;this[_0xbfe08(0x206)](_0x5411ee);}),this[_0x3ca00f(0x249)]['on'](_0x3ca00f(0x1f3),()=>{const _0x5ae21b=_0x3ca00f;this[_0x5ae21b(0x1d2)](),this[_0x5ae21b(0x223)](),this[_0x5ae21b(0x1e6)][_0x5ae21b(0x1ce)]({'target':this[_0x5ae21b(0x1f0)][_0x5ae21b(0x1fd)],'limiter':this[_0x5ae21b(0x22c)](),'positions':Ho});}),this[_0x3ca00f(0x249)]['on'](_0x3ca00f(0x244),()=>{const _0x155d63=_0x3ca00f;this[_0x155d63(0x22e)][_0x155d63(0x20b)]&&this[_0x155d63(0x22e)][_0x155d63(0x1ce)]({'target':this[_0x155d63(0x1f0)][_0x155d63(0x1fd)],'limiter':this[_0x155d63(0x22c)](),'positions':Ho});}),_0x386b0b[_0x3ca00f(0x21f)][_0x3ca00f(0x1f5)](this[_0x3ca00f(0x249)]);}[_0x12ea40(0x1d7)](_0x547b87,_0x3cc67f){const _0x155efd=_0x12ea40,_0x4f286f=_0x155efd(0x1e3)===_0x3cc67f[_0x155efd(0x239)]?new SourcesBalloonButtonView(_0x547b87):new _0x4dfc42(_0x547b87);return _0x4f286f[_0x155efd(0x201)]({'label':_0x3cc67f[_0x155efd(0x1ef)],'icon':_0x3cc67f[_0x155efd(0x229)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x4f286f;}[_0x12ea40(0x227)](){const _0x5b3708=_0x12ea40;this[_0x5b3708(0x215)](),this[_0x5b3708(0x1e2)]();}[_0x12ea40(0x1e2)](){const _0x4a8ce9=_0x12ea40;_0x45f768({'emitter':this[_0x4a8ce9(0x22e)],'contextElements':[this[_0x4a8ce9(0x22e)][_0x4a8ce9(0x1fd)]],'callback':()=>{const _0x1ef4e0=_0x4a8ce9;this[_0x1ef4e0(0x1d2)]();},'activator':()=>this[_0x4a8ce9(0x22e)][_0x4a8ce9(0x20b)]});}[_0x12ea40(0x1df)](_0x266691){const _0x3499de=_0x12ea40,_0x121024=this[_0x3499de(0x1d4)];_0x121024[_0x3499de(0x1d3)][_0x3499de(0x1de)]=_0x266691,_0x266691?_0x121024[_0x3499de(0x1eb)][_0x3499de(0x1f8)]():_0x121024[_0x3499de(0x1eb)][_0x3499de(0x24e)]();}[_0x12ea40(0x215)](){const _0x1d3fcd=_0x12ea40,{balloonView:_0x101414,buttonView:_0x302bda,hideMethod:_0x53d135}=this[_0x1d3fcd(0x1d4)];_0x45f768({'emitter':_0x101414,'contextElements':[_0x101414[_0x1d3fcd(0x1fd)],_0x302bda[_0x1d3fcd(0x1fd)]],'callback':()=>{_0x53d135();},'activator':()=>_0x302bda[_0x1d3fcd(0x1de)]&&!this[_0x1d3fcd(0x22e)][_0x1d3fcd(0x20b)]&&!this[_0x1d3fcd(0x221)][_0x1d3fcd(0x1d0)]()});}[_0x12ea40(0x202)](_0x5eded6,_0x5c00f2,_0x401eb0=!0x1,_0x5a1590=!0x1){const _0x2e3584=_0x12ea40,_0x22a138=_0x2e3584(0x207)===_0x5c00f2||!0x0===_0x5eded6[_0x2e3584(0x24b)],_0x322f5e=new _0x23b9b8(this[_0x2e3584(0x1e0)],_0x5eded6,_0x22a138,_0x401eb0,_0x5a1590);return _0x22a138||_0x322f5e['on'](_0x2e3584(0x212),()=>{const _0x2e9bd5=_0x2e3584;this[_0x2e9bd5(0x21c)](_0x2e9bd5(0x205),_0x322f5e['id']);}),_0x322f5e;}[_0x12ea40(0x20c)](_0x2fc555,_0x21ef1e){const _0x315363=_0x12ea40;_0x21ef1e[_0x315363(0x1f5)](_0x2fc555,0x0);}[_0x12ea40(0x1dc)](_0x1b2177,_0x5f08ca){const _0x15f38b=_0x12ea40,_0x4e9d83=_0x5f08ca[_0x15f38b(0x23d)](_0x46a8d1=>_0x46a8d1['id']===_0x1b2177);_0x4e9d83&&_0x5f08ca[_0x15f38b(0x23e)](_0x4e9d83);}[_0x12ea40(0x232)](){const _0x3fb8d4=_0x12ea40;this[_0x3fb8d4(0x1f0)][_0x3fb8d4(0x1de)]?this[_0x3fb8d4(0x1ff)]():(this[_0x3fb8d4(0x223)](),this[_0x3fb8d4(0x1e6)][_0x3fb8d4(0x1ce)]({'target':this[_0x3fb8d4(0x1f0)][_0x3fb8d4(0x1fd)],'limiter':this[_0x3fb8d4(0x22c)](),'positions':Ho}));}[_0x12ea40(0x206)](_0x485983){const _0x4403ee=_0x12ea40;this[_0x4403ee(0x249)][_0x4403ee(0x1c6)](),this[_0x4403ee(0x1d2)](),this[_0x4403ee(0x21c)](_0x4403ee(0x209),_0x485983);}}export class SourcesBalloonButtonView extends _0x4dfc42{[_0x12ea40(0x1d1)];constructor(_0x7b365e){const _0x35c5f1=_0x12ea40;super(_0x7b365e),this[_0x35c5f1(0x201)]({'withText':!0x0,'role':_0x35c5f1(0x1f9)}),this[_0x35c5f1(0x1d1)]=this[_0x35c5f1(0x251)](),this[_0x35c5f1(0x245)]({'attributes':{'class':[Ro]}});}[_0x12ea40(0x208)](){const _0x3a7fd3=_0x12ea40;super[_0x3a7fd3(0x208)](),this[_0x3a7fd3(0x210)][_0x3a7fd3(0x1f5)](this[_0x3a7fd3(0x1d1)]);}[_0x12ea40(0x251)](){const _0x4bcb7b=_0x12ea40,_0x4e660a=new _0x27811a();return _0x4e660a[_0x4bcb7b(0x21f)]=_0x1b1652,_0x4e660a[_0x4bcb7b(0x245)]({'attributes':{'class':Ro+_0x4bcb7b(0x1f1)}}),_0x4e660a;}}
|
|
23
|
+
const _0x273e72=_0x705e;(function(_0x5154c9,_0x563a25){const _0xe2f8d5=_0x705e,_0x403886=_0x5154c9();while(!![]){try{const _0x319884=parseInt(_0xe2f8d5(0x215))/0x1*(-parseInt(_0xe2f8d5(0x1ec))/0x2)+parseInt(_0xe2f8d5(0x1c1))/0x3*(parseInt(_0xe2f8d5(0x1f2))/0x4)+parseInt(_0xe2f8d5(0x21d))/0x5+parseInt(_0xe2f8d5(0x1eb))/0x6+-parseInt(_0xe2f8d5(0x20c))/0x7*(-parseInt(_0xe2f8d5(0x1fd))/0x8)+parseInt(_0xe2f8d5(0x245))/0x9*(parseInt(_0xe2f8d5(0x24a))/0xa)+-parseInt(_0xe2f8d5(0x237))/0xb;if(_0x319884===_0x563a25)break;else _0x403886['push'](_0x403886['shift']());}catch(_0x153126){_0x403886['push'](_0x403886['shift']());}}}(_0x2700,0x3edc8));import{BalloonPanelView as _0x4fc202,ButtonView as _0x4b488f,clickOutsideHandler as _0x12d48e,FileDialogButtonView as _0x3a039d,IconView as _0x5a5be4,View as _0x4214d1}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x17cbad,IconDocument as _0x410603,IconDocumentOutline as _0x23da9c,IconDropdownArrow as _0x5dc599,IconLink as _0x31fc6e,IconPaperClip as _0x5cd4dd}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2ebcfd}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x2b68ab}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x4e50bf}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x25d026}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x166059}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x273e72(0x1db),_0x273e72(0x241),_0x273e72(0x1fa),_0x273e72(0x1ea),_0x273e72(0x1d6),_0x273e72(0x234)];const ko=_0x273e72(0x1f3),Eo=_0x273e72(0x205),vo=_0x273e72(0x22b),Vo=_0x273e72(0x1c3),Io=_0x273e72(0x1f4),Po=_0x273e72(0x219),Ro=_0x273e72(0x240),Uo=_0x273e72(0x1f5),Lo=_0x273e72(0x208),No=_0x273e72(0x209),Oo=_0x273e72(0x23f),Mo=_0x273e72(0x1d8),Ho=[_0x4fc202[_0x273e72(0x218)][_0x273e72(0x22d)],_0x4fc202[_0x273e72(0x218)][_0x273e72(0x249)],_0x4fc202[_0x273e72(0x218)][_0x273e72(0x1cd)],_0x4fc202[_0x273e72(0x218)][_0x273e72(0x23b)],_0x4fc202[_0x273e72(0x218)][_0x273e72(0x1ca)],_0x4fc202[_0x273e72(0x218)][_0x273e72(0x1c8)]];function _0x705e(_0x67bcee,_0x3822a1){const _0x2700aa=_0x2700();return _0x705e=function(_0x705ed1,_0x26226f){_0x705ed1=_0x705ed1-0x1ba;let _0x231ae5=_0x2700aa[_0x705ed1];return _0x231ae5;},_0x705e(_0x67bcee,_0x3822a1);}export class AIChatContextPanelView extends _0x4214d1{[_0x273e72(0x1d1)];[_0x273e72(0x1bf)]=this[_0x273e72(0x243)]();[_0x273e72(0x1ff)]=this[_0x273e72(0x243)]();[_0x273e72(0x235)];[_0x273e72(0x210)];[_0x273e72(0x1e6)];[_0x273e72(0x202)];[_0x273e72(0x206)];[_0x273e72(0x20b)];[_0x273e72(0x22a)];constructor(_0x70d5a,_0x5f0707){const _0x261fa7=_0x273e72;super(_0x70d5a),this[_0x261fa7(0x22a)]=_0x5f0707[_0x261fa7(0x22a)],this[_0x261fa7(0x1bf)]=this[_0x261fa7(0x243)](),this[_0x261fa7(0x1ff)]=this[_0x261fa7(0x243)](),this[_0x261fa7(0x1d1)]=this[_0x261fa7(0x1bc)](_0x70d5a),this[_0x261fa7(0x210)]=this[_0x261fa7(0x1e5)](_0x70d5a),this[_0x261fa7(0x1e6)]=this[_0x261fa7(0x23e)](_0x70d5a),this[_0x261fa7(0x206)]=this[_0x261fa7(0x1d3)](_0x70d5a,_0x5f0707);const _0x3f9c13={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x261fa7(0x235)]=new _0x4e50bf(_0x70d5a,this[_0x261fa7(0x1bf)],_0x3f9c13,this[_0x261fa7(0x22a)],this),this[_0x261fa7(0x20b)]={'buttonView':this[_0x261fa7(0x1d1)],'balloonView':this[_0x261fa7(0x210)],'hideMethod':this[_0x261fa7(0x1c9)][_0x261fa7(0x1d5)](this),'showMethod':this[_0x261fa7(0x1e1)][_0x261fa7(0x1d5)](this)},this[_0x261fa7(0x1f9)](),this[_0x261fa7(0x216)]();}[_0x273e72(0x1c0)](){const _0x112dd3=_0x273e72;super[_0x112dd3(0x1c0)](),this[_0x112dd3(0x225)](),this[_0x112dd3(0x235)][_0x112dd3(0x230)](this[_0x112dd3(0x1ef)]),this[_0x112dd3(0x235)][_0x112dd3(0x1f0)]();}[_0x273e72(0x222)](){const _0x59181c=_0x273e72;super[_0x59181c(0x222)](),this[_0x59181c(0x235)][_0x59181c(0x222)](),this[_0x59181c(0x206)][_0x59181c(0x222)]();}[_0x273e72(0x200)](_0xd2fac,_0x176471){const _0xaf8592=_0x273e72,_0x447450=this[_0xaf8592(0x232)](_0xd2fac,_0xaf8592(0x1e0),!0x0,_0x176471);this[_0xaf8592(0x22e)](_0x447450,this[_0xaf8592(0x1bf)]),this[_0xaf8592(0x235)][_0xaf8592(0x1f0)]();}[_0x273e72(0x1d6)](_0x2ce57b){const _0x3a2a7d=_0x273e72;this[_0x3a2a7d(0x211)](_0x2ce57b,this[_0x3a2a7d(0x1bf)]),this[_0x3a2a7d(0x211)](_0x2ce57b,this[_0x3a2a7d(0x235)][_0x3a2a7d(0x1e2)]),this[_0x3a2a7d(0x235)][_0x3a2a7d(0x1f0)]();}[_0x273e72(0x246)](_0x384832,_0x4e426b){const _0x3472b7=_0x273e72;let _0x249688=this[_0x3472b7(0x1bf)][_0x3472b7(0x214)](_0x4efc49=>_0x4efc49['id']===_0x384832);_0x249688||(_0x249688=this[_0x3472b7(0x235)][_0x3472b7(0x1e2)][_0x3472b7(0x214)](_0x4b72e7=>_0x4b72e7['id']===_0x384832)),_0x249688&&(_0x249688[_0x3472b7(0x1da)]=_0x4e426b);}[_0x273e72(0x1be)](_0x4343c0){const _0x4e36bd=_0x273e72;this[_0x4e36bd(0x1ff)][_0x4e36bd(0x1f7)]();for(const _0xb826f of _0x4343c0){const _0x389e4f=this[_0x4e36bd(0x232)](_0xb826f,_0x4e36bd(0x221),!0x1,!0x1);this[_0x4e36bd(0x22e)](_0x389e4f,this[_0x4e36bd(0x1ff)]);}}[_0x273e72(0x228)](){const _0x192152=_0x273e72;this[_0x192152(0x1bf)][_0x192152(0x1f7)](),this[_0x192152(0x235)][_0x192152(0x1f7)]();}[_0x273e72(0x1ba)](){const _0x5a5ab8=_0x273e72;this[_0x5a5ab8(0x1ff)][_0x5a5ab8(0x1f7)]();}[_0x273e72(0x1e9)](_0x43d58d,_0x1e1e03,_0x53b124){const _0x126c20=_0x273e72;this[_0x126c20(0x206)][_0x126c20(0x1e9)](_0x43d58d,_0x1e1e03,_0x53b124);}[_0x273e72(0x1c9)](){const _0x1b82ce=_0x273e72;this[_0x1b82ce(0x239)](!0x1);}[_0x273e72(0x1e1)](){const _0x4a13c1=_0x273e72;this[_0x4a13c1(0x239)](!0x0);}[_0x273e72(0x1d7)](){const _0x2e5a73=_0x273e72;this[_0x2e5a73(0x1e6)][_0x2e5a73(0x21a)](),this[_0x2e5a73(0x1d1)][_0x2e5a73(0x1fb)]=!0x1,this[_0x2e5a73(0x202)]&&this[_0x2e5a73(0x202)][_0x2e5a73(0x1f7)]();}[_0x273e72(0x23a)](){const _0x5dc8d7=_0x273e72;this[_0x5dc8d7(0x1e6)][_0x5dc8d7(0x1cb)](),this[_0x5dc8d7(0x1d1)][_0x5dc8d7(0x1fb)]=!0x0;}[_0x273e72(0x1bd)](_0x2e505b){const _0x375a9a=_0x273e72;this[_0x375a9a(0x206)][_0x375a9a(0x22f)](_0x2e505b),this[_0x375a9a(0x1d1)][_0x375a9a(0x1fb)]=!0x0;}[_0x273e72(0x248)](_0x20049e,_0x38208e,_0x242899,_0x551559){const _0x1499e3=_0x273e72;this[_0x1499e3(0x206)][_0x1499e3(0x248)](_0x20049e,_0x242899,_0x551559);}[_0x273e72(0x212)](_0x23435d){const _0x459ee9=_0x273e72;this[_0x459ee9(0x206)][_0x459ee9(0x212)](_0x23435d),this[_0x459ee9(0x1d1)][_0x459ee9(0x1fb)]=!0x1;}[_0x273e72(0x231)](_0x1cb114){const _0x40f11f=_0x273e72;this[_0x40f11f(0x1c7)](this[_0x40f11f(0x210)],this[_0x40f11f(0x1f6)],_0x1cb114),this[_0x40f11f(0x22c)](_0x1cb114);}[_0x273e72(0x22c)](_0x2db7b5){const _0x519019=_0x273e72,_0x115d30=!_0x2db7b5[_0x519019(0x204)][_0x519019(0x1c5)]&&_0x2db7b5[_0x519019(0x204)][_0x519019(0x201)],_0x59565d=_0x2db7b5[_0x519019(0x1df)][_0x519019(0x201)],_0x335a39=_0x2db7b5[_0x519019(0x1dc)][_0x519019(0x201)];this[_0x519019(0x1d1)][_0x519019(0x1c2)]=_0x115d30||_0x59565d||_0x335a39;}[_0x273e72(0x1f9)](){const _0xbdb68b=_0x273e72;this[_0xbdb68b(0x1dd)]({'tag':_0xbdb68b(0x1d2),'attributes':{'class':[ko,_0xbdb68b(0x203)]},'children':[{'tag':_0xbdb68b(0x1d2),'attributes':{'class':Eo},'children':this[_0xbdb68b(0x1bf)]}]});}[_0x273e72(0x216)](){const _0xda8b6=_0x273e72;this[_0xda8b6(0x1d1)]['on'](_0xda8b6(0x1d0),()=>{const _0x14ee79=_0xda8b6;this[_0x14ee79(0x20f)]();});}[_0x273e72(0x1bc)](_0x533abb){const _0x40b917=_0x273e72,_0x27b199=new _0x4b488f(_0x533abb);return _0x27b199[_0x40b917(0x1d4)]({'label':_0x25d026(_0x533abb,_0x40b917(0x1f1)),'class':Uo+'\x20'+Vo,'icon':_0x5cd4dd,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x27b199;}[_0x273e72(0x1e5)](_0x156ae2){const _0x2f04c0=_0x273e72;return this[_0x2f04c0(0x1ed)](_0x156ae2,vo);}[_0x273e72(0x23e)](_0x18f92c){const _0x291056=_0x273e72,_0x3157a1=this[_0x291056(0x1ed)](_0x18f92c,Io);return this[_0x291056(0x1e7)](_0x3157a1,_0x18f92c),_0x3157a1;}[_0x273e72(0x1d3)](_0x13f1b8,_0x2f4a09){const _0x47b56c=_0x273e72,_0x816d86={'searchInputVisibleFrom':_0x2f4a09[_0x47b56c(0x220)],'onBackToContext':()=>{const _0x2e1ec2=_0x47b56c;this[_0x2e1ec2(0x1e1)](),this[_0x2e1ec2(0x210)][_0x2e1ec2(0x1e4)]({'target':this[_0x2e1ec2(0x1d1)][_0x2e1ec2(0x1ef)],'limiter':this[_0x2e1ec2(0x1e8)](),'positions':Ho});},'onResourceSelected':(_0x18705b,_0x14d2d6)=>{const _0x53bf8d=_0x47b56c;this[_0x53bf8d(0x1ee)](_0x53bf8d(0x1ea),{'source':_0x18705b,'resource':_0x14d2d6});},'onLoadSourceResources':_0x404219=>{const _0x36edb7=_0x47b56c;this[_0x36edb7(0x1ee)](_0x36edb7(0x234),_0x404219);},'onBalloonClosed':()=>{const _0x46a5e9=_0x47b56c;this[_0x46a5e9(0x1d1)][_0x46a5e9(0x1fb)]=!0x1;},'getLimiterElement':()=>this[_0x47b56c(0x1e8)](),'getTargetElement':()=>this[_0x47b56c(0x1d1)][_0x47b56c(0x1ef)]};return new _0x166059(_0x13f1b8,_0x2f4a09[_0x47b56c(0x22a)],_0x816d86);}[_0x273e72(0x1e8)](){const _0x5d8d58=_0x273e72;return this[_0x5d8d58(0x1ef)]?.[_0x5d8d58(0x1cf)]('.'+Mo)||document[_0x5d8d58(0x213)];}[_0x273e72(0x1ed)](_0x41b53a,_0xf1c7cb){const _0x27531a=_0x273e72,_0x43d763=new _0x4fc202(_0x41b53a);return _0x43d763[_0x27531a(0x229)]({'attributes':{'class':_0xf1c7cb}}),this[_0x27531a(0x22a)][_0x27531a(0x236)](_0x43d763),_0x43d763;}[_0x273e72(0x1c7)](_0x5ec02d,_0x48b48a,_0x2888a4){const _0x3dc60a=_0x273e72;if(_0x5ec02d[_0x3dc60a(0x1d9)][_0x3dc60a(0x1f7)](),!_0x2888a4[_0x3dc60a(0x204)][_0x3dc60a(0x1c5)]&&_0x2888a4[_0x3dc60a(0x204)][_0x3dc60a(0x201)]){const _0x3f40ec=this[_0x3dc60a(0x1e3)](_0x48b48a,{'label':_0x25d026(_0x48b48a,_0x3dc60a(0x1ce)),'icon':_0x410603});_0x3f40ec['on'](_0x3dc60a(0x1d0),()=>{const _0x31c289=_0x3dc60a;this[_0x31c289(0x1ee)](_0x31c289(0x1db)),this[_0x31c289(0x1c9)]();}),_0x5ec02d[_0x3dc60a(0x1d9)][_0x3dc60a(0x236)](_0x3f40ec);}if(_0x2888a4[_0x3dc60a(0x1df)][_0x3dc60a(0x201)]){const _0x250756=this[_0x3dc60a(0x1e3)](_0x48b48a,{'label':_0x25d026(_0x48b48a,_0x3dc60a(0x238)),'icon':_0x31fc6e});_0x250756['on'](_0x3dc60a(0x1d0),()=>{const _0x5022ee=_0x3dc60a;this[_0x5022ee(0x1c9)](),this[_0x5022ee(0x23a)](),this[_0x5022ee(0x1e6)][_0x5022ee(0x1e4)]({'target':this[_0x5022ee(0x1d1)][_0x5022ee(0x1ef)],'limiter':this[_0x5022ee(0x1e8)](),'positions':Ho}),this[_0x5022ee(0x202)][_0x5022ee(0x1cc)]();}),_0x5ec02d[_0x3dc60a(0x1d9)][_0x3dc60a(0x236)](_0x250756);}if(_0x2888a4[_0x3dc60a(0x1dc)][_0x3dc60a(0x201)]){const _0x327f52=new _0x3a039d(_0x48b48a);_0x327f52[_0x3dc60a(0x1d4)]({'label':_0x25d026(_0x48b48a,_0x3dc60a(0x207)),'icon':_0x17cbad,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x327f52['on'](_0x3dc60a(0x21b),(_0x24a825,_0x4a7f7b)=>{const _0x17cb3a=_0x3dc60a;this[_0x17cb3a(0x1ee)](_0x17cb3a(0x241),_0x4a7f7b),this[_0x17cb3a(0x1c9)]();}),_0x327f52[_0x3dc60a(0x233)]=!0x0,_0x5ec02d[_0x3dc60a(0x1d9)][_0x3dc60a(0x236)](_0x327f52);}for(const _0x5d0225 of _0x2888a4[_0x3dc60a(0x1de)]){const _0x5a48db=this[_0x3dc60a(0x1e3)](_0x48b48a,{'label':_0x5d0225[_0x3dc60a(0x1bb)],'icon':_0x5d0225[_0x3dc60a(0x21c)]||_0x23da9c,'type':_0x3dc60a(0x226)});_0x5ec02d[_0x3dc60a(0x1d9)][_0x3dc60a(0x236)](_0x5a48db),_0x5a48db['on'](_0x3dc60a(0x1d0),()=>{const _0x276243=_0x3dc60a;this[_0x276243(0x1c9)](),this[_0x276243(0x1bd)](_0x5d0225);});}}[_0x273e72(0x1e7)](_0x6e7b1a,_0x4faf11){const _0x21331a=_0x273e72;this[_0x21331a(0x202)]=new _0x2b68ab(_0x4faf11),this[_0x21331a(0x202)]['on'](_0x21331a(0x217),(_0x23f53a,_0x444952)=>{const _0x192266=_0x21331a;this[_0x192266(0x1fc)](_0x444952);}),this[_0x21331a(0x202)]['on'](_0x21331a(0x23d),()=>{const _0x4d0ecf=_0x21331a;this[_0x4d0ecf(0x1d7)](),this[_0x4d0ecf(0x1e1)](),this[_0x4d0ecf(0x210)][_0x4d0ecf(0x1e4)]({'target':this[_0x4d0ecf(0x1d1)][_0x4d0ecf(0x1ef)],'limiter':this[_0x4d0ecf(0x1e8)](),'positions':Ho});}),this[_0x21331a(0x202)]['on'](_0x21331a(0x21f),()=>{const _0x26edae=_0x21331a;this[_0x26edae(0x1e6)][_0x26edae(0x1fe)]&&this[_0x26edae(0x1e6)][_0x26edae(0x1e4)]({'target':this[_0x26edae(0x1d1)][_0x26edae(0x1ef)],'limiter':this[_0x26edae(0x1e8)](),'positions':Ho});}),_0x6e7b1a[_0x21331a(0x1d9)][_0x21331a(0x236)](this[_0x21331a(0x202)]);}[_0x273e72(0x1e3)](_0x54f886,_0x4f9984){const _0x164523=_0x273e72,_0x470972=_0x164523(0x226)===_0x4f9984[_0x164523(0x23c)]?new SourcesBalloonButtonView(_0x54f886):new _0x4b488f(_0x54f886);return _0x470972[_0x164523(0x1d4)]({'label':_0x4f9984[_0x164523(0x1bb)],'icon':_0x4f9984[_0x164523(0x21c)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x470972;}[_0x273e72(0x225)](){const _0xb55f2e=_0x273e72;this[_0xb55f2e(0x20d)](),this[_0xb55f2e(0x21e)]();}[_0x273e72(0x21e)](){const _0x32de50=_0x273e72;_0x12d48e({'emitter':this[_0x32de50(0x1e6)],'contextElements':[this[_0x32de50(0x1e6)][_0x32de50(0x1ef)]],'callback':()=>{const _0x4392ac=_0x32de50;this[_0x4392ac(0x1d7)]();},'activator':()=>this[_0x32de50(0x1e6)][_0x32de50(0x1fe)]});}[_0x273e72(0x239)](_0x168ef2){const _0xd84906=_0x273e72,_0x1a138d=this[_0xd84906(0x20b)];_0x1a138d[_0xd84906(0x242)][_0xd84906(0x1fb)]=_0x168ef2,_0x168ef2?_0x1a138d[_0xd84906(0x224)][_0xd84906(0x1cb)]():_0x1a138d[_0xd84906(0x224)][_0xd84906(0x21a)]();}[_0x273e72(0x20d)](){const _0x2dd19d=_0x273e72,{balloonView:_0x2e4475,buttonView:_0x521cdd,hideMethod:_0x4b9af5}=this[_0x2dd19d(0x20b)];_0x12d48e({'emitter':_0x2e4475,'contextElements':[_0x2e4475[_0x2dd19d(0x1ef)],_0x521cdd[_0x2dd19d(0x1ef)]],'callback':()=>{_0x4b9af5();},'activator':()=>_0x521cdd[_0x2dd19d(0x1fb)]&&!this[_0x2dd19d(0x1e6)][_0x2dd19d(0x1fe)]&&!this[_0x2dd19d(0x206)][_0x2dd19d(0x227)]()});}[_0x273e72(0x232)](_0x53ef8d,_0x5aa4a9,_0x2108dd=!0x1,_0x358869=!0x1){const _0x3ec8bf=_0x273e72,_0x36b3a4=_0x3ec8bf(0x221)===_0x5aa4a9||!0x0===_0x53ef8d[_0x3ec8bf(0x20e)],_0x410dba=new _0x2ebcfd(this[_0x3ec8bf(0x1f6)],_0x53ef8d,_0x36b3a4,_0x2108dd,_0x358869);return _0x36b3a4||_0x410dba['on'](_0x3ec8bf(0x244),()=>{const _0x17b481=_0x3ec8bf;this[_0x17b481(0x1ee)](_0x17b481(0x1d6),_0x410dba['id']);}),_0x410dba;}[_0x273e72(0x22e)](_0x1fc407,_0x343137){const _0x214831=_0x273e72;_0x343137[_0x214831(0x236)](_0x1fc407,0x0);}[_0x273e72(0x211)](_0x538f2a,_0x63e223){const _0x49d35d=_0x273e72,_0x1fb985=_0x63e223[_0x49d35d(0x214)](_0x3cf9ec=>_0x3cf9ec['id']===_0x538f2a);_0x1fb985&&_0x63e223[_0x49d35d(0x20a)](_0x1fb985);}[_0x273e72(0x20f)](){const _0x49b780=_0x273e72;this[_0x49b780(0x1d1)][_0x49b780(0x1fb)]?this[_0x49b780(0x1c9)]():(this[_0x49b780(0x1e1)](),this[_0x49b780(0x210)][_0x49b780(0x1e4)]({'target':this[_0x49b780(0x1d1)][_0x49b780(0x1ef)],'limiter':this[_0x49b780(0x1e8)](),'positions':Ho}));}[_0x273e72(0x1fc)](_0x2c87e7){const _0xc0286a=_0x273e72;this[_0xc0286a(0x202)][_0xc0286a(0x1f7)](),this[_0xc0286a(0x1d7)](),this[_0xc0286a(0x1ee)](_0xc0286a(0x1fa),_0x2c87e7);}}export class SourcesBalloonButtonView extends _0x4b488f{[_0x273e72(0x1c4)];constructor(_0x5ea663){const _0x463847=_0x273e72;super(_0x5ea663),this[_0x463847(0x1d4)]({'withText':!0x0,'role':_0x463847(0x1c6)}),this[_0x463847(0x1c4)]=this[_0x463847(0x223)](),this[_0x463847(0x229)]({'attributes':{'class':[Ro]}});}[_0x273e72(0x1c0)](){const _0x370d6d=_0x273e72;super[_0x370d6d(0x1c0)](),this[_0x370d6d(0x1f8)][_0x370d6d(0x236)](this[_0x370d6d(0x1c4)]);}[_0x273e72(0x223)](){const _0x2f2650=_0x273e72,_0x18b51a=new _0x5a5be4();return _0x18b51a[_0x2f2650(0x1d9)]=_0x5dc599,_0x18b51a[_0x2f2650(0x229)]({'attributes':{'class':Ro+_0x2f2650(0x247)}}),_0x18b51a;}}function _0x2700(){const _0x54ef51=['_createAddContextBalloonPanelView','_urlBalloonPanelView','_addUrlContent','_getLimiterElement','updateResourceState','addResourceToContext','2551380YwcZmC','2QMzgQH','_createBaseBalloonPanel','fire','element','reorganizeChips','AI_CHAT_CONTEXT_ADD_CONTEXT','7148mDcEtA','ck-ai-chat-context-controls','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-controls-button','locale','clear','children','_setupTemplate','addUrlToContext','isOn','_handleUrlSubmit','234536mFmErm','isVisible','_conversationContextsChips','addContextItem','enabled','_urlInputView','ck-reset_all-excluded','document','ck-ai-chat-context-controls__pending-contexts','_resourcesBalloonView','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat-controls_context_show-more-button','remove','_addContextBalloonConfig','7vWQCNf','_setupAddContextBalloonClickOutsideHandler','isReadOnly','_handleAddContextButtonClick','_addContextBalloonPanelView','_removeContextFromCollection','closeSourceResourceBalloon','body','find','90273ngxVKu','_bindEventHandlers','submitUrl','defaultPositions','ck-ai-chat-context-controls__balloon-button','hide','done','icon','284705vdmyQa','_setupUrlBalloonClickOutsideHandler','refreshBalloon','searchInputVisibleFrom','conversation','destroy','_createArrowView','balloonView','_setupAllBalloonClickOutsideHandlers','source','isAnyResourceBalloonVisible','clearCurrentContextItems','extendTemplate','bodyCollection','ck-ai-chat-context-controls__add-context-balloon-panel','_setAddContextButtonEnabled','northArrowSouthWest','_addContextToCollection','showSourceResourcesBalloon','setContainerElement','setAddContextOptions','_createContextButton','tooltip','loadSourceResources','_overflowManager','add','3652935JMsMat','AI_CHAT_CONTEXT_URL_LABEL','_toggleAddContextBalloon','showUrlBalloonPanel','southArrowNorthWest','type','cancel','_createUrlBalloonPanelView','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-context-controls__balloon-button-source','addFileToContext','buttonView','createCollection','removeContextItemChip','9GkoMrM','setContextItemLoading','__arrow','populateSourceResourceBalloon','northArrowSouth','772130MLfLHc','clearConversationContextItems','label','_createAddContextButtonView','_showSourceResourcesBalloon','setConversationContext','_currentContextsChips','render','153eyDqeF','isEnabled','ck-ai-chat-context-controls__add-context-button','arrowView','isHidden','menuitem','_setBalloonPanelContent','southArrowNorthEast','hideAddContextBalloonPanel','southArrowNorth','show','focus','northArrowSouthEast','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','closest','execute','addContextButtonView','div','_createResourcesBalloonView','set','bind','removeContextItem','hideUrlBalloonPanel','ck-ai-chat','content','isLoading','addDocumentToContext','files','setTemplate','sources','urls','current','showAddContextBalloonPanel','overflowChips','_createBalloonButton','pin'];_0x2700=function(){return _0x54ef51;};return _0x2700();}
|