@ckeditor/ckeditor5-ai 47.7.1 → 47.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/ui/aichatballoonview.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/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.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/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.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/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.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/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x227eb3=_0x54ec;(function(_0x14f0d5,_0x1ba811){const _0x279f3e=_0x54ec,_0x36ab5f=_0x14f0d5();while(!![]){try{const _0x507f0c=-parseInt(_0x279f3e(0x115))/0x1+-parseInt(_0x279f3e(0x152))/0x2+parseInt(_0x279f3e(0x113))/0x3*(parseInt(_0x279f3e(0x11f))/0x4)+parseInt(_0x279f3e(0x107))/0x5+parseInt(_0x279f3e(0x103))/0x6+-parseInt(_0x279f3e(0x14c))/0x7+-parseInt(_0x279f3e(0x148))/0x8*(-parseInt(_0x279f3e(0x165))/0x9);if(_0x507f0c===_0x1ba811)break;else _0x36ab5f['push'](_0x36ab5f['shift']());}catch(_0x2f2450){_0x36ab5f['push'](_0x36ab5f['shift']());}}}(_0x211b,0xef88e));import{CKEditorError as _0x11caed,EmitterMixin as _0xe556ce,logWarning as _0x24f1f1}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0xe864cf}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3048ee,AI_CONTEXT_MODEL_EVENT_NAMES as _0x407828}from'./aichatcontext.js';function _0x211b(){const _0x1007e8=['interactions','getModel','modification','splice','appendContent','indexOf','get','group','assistant','stack','addUrlToContext','content','reset','text','getEditor','setReasoning','user','addResourceToContext','_handleToolResultData','ai-chat-conversation-start-failed','error','stop','lastInteraction','modelSelected','isFromHistory','_extractContextItems','set','ai-chat-handle-user-interaction-start-failed','addToolItemToContext','title','connector','getAvailableModels','currentInteraction','hasOwn','loadSourceResources','56QvTFqd','options','setModel','ai-chat-conversation-init-failed','9206960mxDFsF','fetchConversationMessages','parse','push','createReply','chatModels','212522ZmkbFK','handleUserInteraction','conversationInitialized','isSelectionInContext','attributes','type','getPendingContextItems','toggleReasoning','conversationId','init','selectedModelId','isCurrentDocumentInConversation','isCurrentDocumentInContext','find','reasoning','ai-chat-conversation-already-started','getMessages','fetchConversation','role','1568619dqoduo','addToConversationContext','addFilesToContext','webSearch','addSelectionToContext','_processMessagesToInteractions','prompt','sessionId','capabilities','ai-chat-conversation-set-model-not-available','conversationStarted','ai-chat-conversation-start-no-model-selected','getAll','toLowerCase','currentReply','startConversation','interactionCreated','contextItems','selectedModel','removeFromContext','toggleWebSearch','setConversationTitle','getCapabilitiesConfig','chatCapabilities','getCurrentDocumentContext','getDocumentContext','removeInteraction','6333462givBID','mcp-tool-result','isStarted','fire','1189025PKfuMU','sources','createInteraction','destroy','getConversation','updateCurrentDocumentInContext','url','load','delegate','ai-chat-conversation-init-from-id-failed','setWebSearch','start','3wCsPFI','chatContext','1748713pOiFPZ','addCurrentDocumentToContext','populateFromMessage','ai-chat-conversation-set-model-null','ai-chat-handle-user-conversation-not-initialized','isAvailable','updateCurrentDocument','getInteraction','length','code','6551876ndMmhZ','message','toolName','model','ai-chat-handle-user-interaction-already-in-progress','removeSelectionFromContext'];_0x211b=function(){return _0x1007e8;};return _0x211b();}import{AICapabilities as _0x306931,CAPABILITIES_MODEL_EVENT_NAMES as _0x3d2f1f}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x5f14c6}from'./aichatinteraction.js';function _0x54ec(_0x5120e2,_0x1049f4){const _0x211b4d=_0x211b();return _0x54ec=function(_0x54ecf7,_0x1a20f9){_0x54ecf7=_0x54ecf7-0xf8;let _0x1db3ce=_0x211b4d[_0x54ecf7];return _0x1db3ce;},_0x54ec(_0x5120e2,_0x1049f4);}import{errorsMap as _0x193fa7}from'../../errorsmap.js';export class AIChatConversation extends _0xe556ce(){['id'];[_0x227eb3(0x105)]=!0x1;[_0x227eb3(0x13d)];[_0x227eb3(0x125)]=[];[_0x227eb3(0x145)];[_0x227eb3(0xfa)];[_0x227eb3(0x143)];[_0x227eb3(0x149)];constructor(_0x30cfd8){const _0x505e1d=_0x227eb3;super(),this[_0x505e1d(0x149)]=_0x30cfd8,this[_0x505e1d(0x143)]=_0x30cfd8[_0x505e1d(0x143)],this[_0x505e1d(0x151)]=_0x30cfd8[_0x505e1d(0x151)],this['id']=_0x30cfd8[_0x505e1d(0x15a)],this[_0x505e1d(0x13d)]=_0x30cfd8[_0x505e1d(0x13d)];}async[_0x227eb3(0x15b)](_0x33de94){const _0x5bea3c=_0x227eb3;try{this[_0x5bea3c(0x114)]=new _0x3048ee({'connector':this[_0x5bea3c(0x143)],'config':_0x33de94,'ownerId':this['id']}),this[_0x5bea3c(0x114)][_0x5bea3c(0x10f)](..._0x407828)['to'](this),this[_0x5bea3c(0x114)][_0x5bea3c(0x15b)](),this[_0x5bea3c(0xff)]=new _0x306931(),this[_0x5bea3c(0xff)][_0x5bea3c(0x10f)](..._0x3d2f1f)['to'](this),this[_0x5bea3c(0xff)][_0x5bea3c(0x15b)]();const _0x53ee68=await this[_0x5bea3c(0x151)][_0x5bea3c(0x144)]();this[_0x5bea3c(0x106)](_0x5bea3c(0x154),{'availableModels':_0x53ee68});const _0x4535dd=await this[_0x5bea3c(0x151)][_0x5bea3c(0x126)](this[_0x5bea3c(0x149)][_0x5bea3c(0x15c)]);_0x4535dd&&await this[_0x5bea3c(0x14a)](_0x4535dd);}catch(_0x3367ac){const _0x1359ce=new _0x11caed(_0x5bea3c(0x14b),null,{'message':_0x3367ac[_0x5bea3c(0x120)]||_0x3367ac});_0x1359ce[_0x5bea3c(0x12e)]=_0x3367ac[_0x5bea3c(0x12e)],this[_0x5bea3c(0x106)](_0x5bea3c(0x139),{'error':_0x1359ce});}}async[_0x227eb3(0x112)](){const _0x211054=_0x227eb3;if(this[_0x211054(0x105)])throw new _0x11caed(_0x211054(0x161),null,{'conversation':this});if(!this[_0x211054(0xfa)])throw new _0x11caed(_0x211054(0x170),null,{'conversation':this});try{const {id:_0x4f62e3}=await this[_0x211054(0x143)][_0x211054(0x174)](this['id'],this[_0x211054(0x149)][_0x211054(0x12c)])[_0x211054(0x10b)]();this['id']=_0x4f62e3,this[_0x211054(0x105)]=!0x0,this[_0x211054(0x106)](_0x211054(0x16f),{'conversationId':this['id'],'selectedModel':this[_0x211054(0xfa)]});}catch(_0x3659e5){const _0x50a5b1=new _0x11caed(_0x211054(0x138),null,{'message':_0x3659e5[_0x211054(0x120)],'conversationId':this['id']});throw _0x50a5b1[_0x211054(0x12e)]=_0x3659e5[_0x211054(0x12e)],this[_0x211054(0x106)](_0x211054(0x139),{'error':_0x50a5b1}),_0x50a5b1;}}async[_0x227eb3(0x10e)](_0x2254ff,_0x35dede){const _0x169d1c=_0x227eb3;try{const _0x20af88=await this[_0x169d1c(0x143)][_0x169d1c(0x163)](_0x2254ff)[_0x169d1c(0x10b)](),_0x251d96=await this[_0x169d1c(0x143)][_0x169d1c(0x14d)](_0x2254ff)[_0x169d1c(0x162)](),_0x5ae853=_0x251d96[0x0][_0x169d1c(0x122)];this[_0x169d1c(0x105)]=!0x0,this['id']=_0x20af88['id'],_0x169d1c(0x142)in _0x20af88?this[_0x169d1c(0x106)](_0x169d1c(0xfd),_0x20af88[_0x169d1c(0x142)],!0x0):this[_0x169d1c(0x106)](_0x169d1c(0xfd),'',!0x0);const _0xc0369b=(await this[_0x169d1c(0x151)][_0x169d1c(0x171)]())[_0x169d1c(0x15f)](_0x4098e5=>_0x4098e5['id'][_0x169d1c(0x172)]()===_0x5ae853[_0x169d1c(0x172)]());return this[_0x169d1c(0xfa)]=_0xc0369b,this[_0x169d1c(0x106)](_0x169d1c(0x13c),{'selectedModel':_0xc0369b,'isDisabled':!0x0}),await this[_0x169d1c(0x16a)](_0x251d96,_0x35dede,_0x5ae853),this[_0x169d1c(0x145)]=void 0x0,this;}catch(_0x17a699){const _0x533e6=new _0x11caed(_0x169d1c(0x110),null,{'message':_0x17a699[_0x169d1c(0x120)],'conversationId':_0x2254ff});throw _0x533e6[_0x169d1c(0x12e)]=_0x17a699[_0x169d1c(0x12e)],this[_0x169d1c(0x106)](_0x169d1c(0x139),{'error':_0x533e6}),_0x533e6;}}async[_0x227eb3(0x16a)](_0x4c6c86,_0x4f2c0b,_0x4ea6a0){const _0x355f4f=_0x227eb3;let _0xd0434b;for(const _0x18c8d2 of _0x4c6c86)if(_0x355f4f(0x135)===_0x18c8d2[_0x355f4f(0x164)]){const _0x4c85c1=await this[_0x355f4f(0x13e)](_0x18c8d2),_0xe4b1c6={'isReasoningEnabled':Object[_0x355f4f(0x146)](_0x18c8d2[_0x355f4f(0x16d)],_0x355f4f(0x160)),'isWebSearchEnabled':Object[_0x355f4f(0x146)](_0x18c8d2[_0x355f4f(0x16d)],_0x355f4f(0x168))};_0xd0434b=this[_0x355f4f(0x109)]({'userMessage':_0x18c8d2[_0x355f4f(0x16b)],'contextItems':_0x4c85c1,'capabilities':_0xe4b1c6,'modelId':_0x4ea6a0,'attributes':_0x18c8d2[_0x355f4f(0x156)]}),this[_0x355f4f(0x145)]=_0xd0434b,this[_0x355f4f(0x114)][_0x355f4f(0x166)](this[_0x355f4f(0x145)][_0x355f4f(0xf9)]);}else{if(_0x355f4f(0x12d)===_0x18c8d2[_0x355f4f(0x164)]&&_0xd0434b){const _0x490521=[];for(const _0x4ab66f of _0x18c8d2[_0x355f4f(0x130)])switch(_0x4ab66f[_0x355f4f(0x157)]){case _0x355f4f(0x132):case _0x355f4f(0x127):{const _0x4b62a0=_0xd0434b[_0x355f4f(0x101)]()?.[_0x355f4f(0x16c)]!==_0x4f2c0b;_0xd0434b[_0x355f4f(0x173)]=_0xd0434b[_0x355f4f(0x150)]({'type':_0x4ab66f[_0x355f4f(0x157)],'isDone':!0x0,'interactionId':_0xd0434b['id'],'areActionsDisabled':_0x4b62a0}),_0xd0434b[_0x355f4f(0x173)][_0x355f4f(0x129)](_0x4ab66f[_0x355f4f(0x130)]),_0x490521[_0x355f4f(0x11d)]>0x0&&(_0xd0434b[_0x355f4f(0x173)][_0x355f4f(0x108)]=_0x490521[_0x355f4f(0x128)](0x0));break;}case _0x355f4f(0x10d):_0x490521[_0x355f4f(0x14f)](_0x4ab66f);break;case _0x355f4f(0x104):{const {data:_0x45d3a0,attributes:_0x1ebaba}=JSON[_0x355f4f(0x14e)](_0x4ab66f[_0x355f4f(0x130)]);_0xd0434b[_0x355f4f(0x137)]({'toolName':_0x4ab66f[_0x355f4f(0x121)],'data':_0x45d3a0,'attributes':_0x1ebaba});break;}}}}}async[_0x227eb3(0x13e)](_0x5a43ae){const _0xfca846=_0x227eb3,_0x242410=new Map();if(!_0x5a43ae[_0xfca846(0x130)])return _0x242410;for(const _0x12fde3 of _0x5a43ae[_0xfca846(0x130)]){const _0x515314=await this[_0xfca846(0x114)][_0xfca846(0x117)](_0x12fde3);_0x515314&&_0x242410[_0xfca846(0x13f)](_0x515314['id'],_0x515314);}return _0x242410;}async[_0x227eb3(0x153)]({userMessage:_0x5574ea,attributes:_0x3e8215}){const _0x1a7050=_0x227eb3;if(!this[_0x1a7050(0x105)])throw new _0x11caed(_0x1a7050(0x119),null,{'conversation':this});if(this[_0x1a7050(0x145)])throw new _0x11caed(_0x1a7050(0x123),null,{'conversation':this});try{const _0x109924=this[_0x1a7050(0x114)][_0x1a7050(0x158)](),_0x46daf6=this[_0x1a7050(0xff)][_0x1a7050(0xfe)](),_0x476af2=this[_0x1a7050(0xfa)]['id'];this[_0x1a7050(0x145)]=this[_0x1a7050(0x109)]({'userMessage':_0x5574ea,'contextItems':_0x109924,'capabilities':_0x46daf6,'modelId':_0x476af2,'attributes':_0x3e8215}),await this[_0x1a7050(0x145)][_0x1a7050(0x112)](),this[_0x1a7050(0x114)][_0x1a7050(0x166)](this[_0x1a7050(0x145)][_0x1a7050(0xf9)]);}catch(_0x51a560){if(_0x51a560 instanceof _0x11caed)this[_0x1a7050(0x106)](_0x1a7050(0x139),{'interactionId':this[_0x1a7050(0x145)]?this[_0x1a7050(0x145)]['id']:void 0x0,'error':_0x51a560});else{const _0x1ae333=_0x193fa7[_0x1a7050(0x12b)](_0x51a560[_0x1a7050(0x11e)])||_0x1a7050(0x140);this[_0x1a7050(0x106)](_0x1a7050(0x139),{'interactionId':this[_0x1a7050(0x145)]?this[_0x1a7050(0x145)]['id']:void 0x0,'error':new _0x11caed(_0x1ae333,null,{'error':_0x51a560})});}}finally{this[_0x1a7050(0x145)]?.[_0x1a7050(0x13a)](),this[_0x1a7050(0x145)]=void 0x0;}}[_0x227eb3(0x109)]({userMessage:_0xbd40aa,contextItems:_0x4fc430,capabilities:_0xdb0733,modelId:_0x17e4ba,attributes:_0x2d1810}){const _0x3ac7ae=_0x227eb3,_0x4a5c76=new _0x5f14c6({'userMessage':_0xbd40aa,'contextItems':_0x4fc430,'capabilities':_0xdb0733,'conversationId':this['id'],'connector':this[_0x3ac7ae(0x143)],'editor':this[_0x3ac7ae(0x149)][_0x3ac7ae(0x133)]&&this[_0x3ac7ae(0x149)][_0x3ac7ae(0x133)](),'model':_0x17e4ba,'attributes':_0x2d1810});return _0x4a5c76[_0x3ac7ae(0x10f)](..._0xe864cf)['to'](this),this[_0x3ac7ae(0x125)][_0x3ac7ae(0x14f)](_0x4a5c76),this[_0x3ac7ae(0x106)](_0x3ac7ae(0xf8),_0x4a5c76),_0x4a5c76;}[_0x227eb3(0x11c)](_0x26b331){const _0x4b98bc=_0x227eb3;return this[_0x4b98bc(0x125)][_0x4b98bc(0x15f)](_0x18ee77=>_0x18ee77['id']===_0x26b331);}[_0x227eb3(0x102)](_0x238295){const _0x3a8a93=_0x227eb3,_0x38eb46=this[_0x3a8a93(0x11c)](_0x238295);_0x38eb46&&(_0x38eb46[_0x3a8a93(0x10a)](),this[_0x3a8a93(0x125)][_0x3a8a93(0x128)](this[_0x3a8a93(0x125)][_0x3a8a93(0x12a)](_0x38eb46),0x1));}get[_0x227eb3(0x13b)](){const _0x264577=_0x227eb3;return this[_0x264577(0x125)][this[_0x264577(0x125)][_0x264577(0x11d)]-0x1];}[_0x227eb3(0x116)](_0x28b0f6){const _0xc16a21=_0x227eb3;this[_0xc16a21(0x114)][_0xc16a21(0x116)](_0x28b0f6);}async[_0x227eb3(0x10c)]({content:_0x5a2404,version:_0x28bb1a,sessionId:_0xb8a592,selections:_0x28fa3e}){const _0x146fcb=_0x227eb3;await this[_0x146fcb(0x114)][_0x146fcb(0x11b)](_0x5a2404,_0x28bb1a,_0xb8a592,_0x28fa3e);}[_0x227eb3(0x100)](){const _0x367450=_0x227eb3;return this[_0x367450(0x145)]?.[_0x367450(0x101)]()?.[_0x367450(0x130)]||'';}[_0x227eb3(0x169)](_0x389889){const _0x1423dd=_0x227eb3;this[_0x1423dd(0x114)][_0x1423dd(0x169)](_0x389889);}[_0x227eb3(0x124)](){const _0x1fb2c0=_0x227eb3;this[_0x1fb2c0(0x114)][_0x1fb2c0(0x124)]();}[_0x227eb3(0x167)](_0x158abe){const _0x362991=_0x227eb3;this[_0x362991(0x114)][_0x362991(0x167)](_0x158abe);}[_0x227eb3(0x12f)](_0x2978b0){const _0x4637ed=_0x227eb3;this[_0x4637ed(0x114)][_0x4637ed(0x12f)](_0x2978b0);}[_0x227eb3(0x141)](_0x30684e){const _0x11afb9=_0x227eb3;this[_0x11afb9(0x114)][_0x11afb9(0x141)](_0x30684e);}[_0x227eb3(0x136)](_0x321428,_0x66c011){const _0x561b92=_0x227eb3;this[_0x561b92(0x114)][_0x561b92(0x136)](_0x321428,_0x66c011);}[_0x227eb3(0x147)](_0x403298,_0x29eb0c,_0x28fb45){const _0xb01973=_0x227eb3;return this[_0xb01973(0x114)][_0xb01973(0x147)](_0x403298,_0x29eb0c,_0x28fb45);}[_0x227eb3(0xfb)](_0x2cf6f3){const _0x2530e5=_0x227eb3;this[_0x2530e5(0x114)][_0x2530e5(0xfb)](_0x2cf6f3);}[_0x227eb3(0x111)](_0x158240){const _0x4e3eab=_0x227eb3;this[_0x4e3eab(0xff)][_0x4e3eab(0x111)](_0x158240);}[_0x227eb3(0xfc)](){const _0x3862aa=_0x227eb3;this[_0x3862aa(0xff)][_0x3862aa(0xfc)]();}[_0x227eb3(0x134)](_0x5bfedf){const _0x3df5b0=_0x227eb3;this[_0x3df5b0(0xff)][_0x3df5b0(0x134)](_0x5bfedf);}[_0x227eb3(0x159)](){const _0x10929d=_0x227eb3;this[_0x10929d(0xff)][_0x10929d(0x159)]();}[_0x227eb3(0x15e)](){const _0x2688a4=_0x227eb3;return this[_0x2688a4(0x114)][_0x2688a4(0x15e)]();}[_0x227eb3(0x15d)](){const _0x2fc778=_0x227eb3;return this[_0x2fc778(0x114)][_0x2fc778(0x15d)]();}[_0x227eb3(0x155)](){const _0xa9c3a8=_0x227eb3;return this[_0xa9c3a8(0x114)][_0xa9c3a8(0x155)]();}async[_0x227eb3(0x14a)](_0x7e6ebc){const _0xa469b2=_0x227eb3;_0x7e6ebc?!0x1===await this[_0xa469b2(0x151)][_0xa469b2(0x11a)](_0x7e6ebc)&&(_0x24f1f1(_0xa469b2(0x16e),{'conversation':this,'model':_0x7e6ebc}),_0x7e6ebc=(await this[_0xa469b2(0x151)][_0xa469b2(0x144)]())[0x0]):(_0x24f1f1(_0xa469b2(0x118),{'conversation':this}),_0x7e6ebc=(await this[_0xa469b2(0x151)][_0xa469b2(0x144)]())[0x0]),_0x7e6ebc['id']!==this[_0xa469b2(0xfa)]?.['id']&&(this[_0xa469b2(0xfa)]=_0x7e6ebc,this[_0xa469b2(0xff)][_0xa469b2(0x131)](),this[_0xa469b2(0x106)](_0xa469b2(0x13c),{'selectedModel':_0x7e6ebc}));}}
|
|
23
|
+
function _0x5a50(){const _0x5f337e=['load','_processMessagesToInteractions','addResourceToContext','createInteraction','assistant','get','ai-chat-conversation-init-from-id-failed','model','type','2980466gpVWsn','addUrlToContext','toolName','getMessages','toLowerCase','getConversation','getCurrentDocumentContext','hasOwn','sessionId','reset','url','capabilities','isSelectionInContext','3BVGRkV','conversationId','length','role','ai-chat-conversation-already-started','updateCurrentDocument','getModel','8741040iTqYGV','ai-chat-conversation-start-failed','interactionCreated','toggleReasoning','destroy','fetchConversation','ai-chat-conversation-start-no-model-selected','push','updateCurrentDocumentInContext','code','removeFromContext','chatContext','ai-chat-handle-user-interaction-already-in-progress','1074042KMHXfW','start','addToolItemToContext','getInteraction','fire','toggleWebSearch','webSearch','indexOf','chatCapabilities','conversationStarted','setConversationTitle','isStarted','loadSourceResources','getAvailableModels','stack','ai-chat-handle-user-conversation-not-initialized','connector','set','populateFromMessage','isFromHistory','getDocumentContext','_handleToolResultData','5778824WsGBAE','title','handleUserInteraction','getPendingContextItems','fetchConversationMessages','mcp-tool-result','selectedModel','setModel','find','addSelectionToContext','text','ai-chat-handle-user-interaction-start-failed','modelSelected','delegate','currentReply','appendContent','ai-chat-conversation-set-model-not-available','addFilesToContext','addToConversationContext','341716YXDLvR','splice','addCurrentDocumentToContext','content','_extractContextItems','ai-chat-conversation-init-failed','isCurrentDocumentInContext','isAvailable','conversationInitialized','isCurrentDocumentInConversation','removeSelectionFromContext','removeInteraction','1651614lZZbly','startConversation','sources','chatModels','getCapabilitiesConfig','group','init','interactions','message','getAll','2261005yURMUw','lastInteraction','ai-chat-conversation-set-model-null','options','reasoning','modification','createReply','setWebSearch','parse','getEditor','error','setReasoning','currentInteraction','1fghnNZ','stop','selectedModelId','user','attributes','prompt','contextItems','7yAfbdz'];_0x5a50=function(){return _0x5f337e;};return _0x5a50();}const _0x56fbd5=_0x10ed;(function(_0x5d70ad,_0x2b9231){const _0x5b4fb7=_0x10ed,_0x249f64=_0x5d70ad();while(!![]){try{const _0x4b864d=parseInt(_0x5b4fb7(0x1a7))/0x1*(parseInt(_0x5b4fb7(0x1b8))/0x2)+-parseInt(_0x5b4fb7(0x1c5))/0x3*(-parseInt(_0x5b4fb7(0x184))/0x4)+-parseInt(_0x5b4fb7(0x19a))/0x5+-parseInt(_0x5b4fb7(0x190))/0x6+parseInt(_0x5b4fb7(0x1ae))/0x7*(parseInt(_0x5b4fb7(0x1ef))/0x8)+parseInt(_0x5b4fb7(0x1d9))/0x9+-parseInt(_0x5b4fb7(0x1cc))/0xa;if(_0x4b864d===_0x2b9231)break;else _0x249f64['push'](_0x249f64['shift']());}catch(_0xde6d14){_0x249f64['push'](_0x249f64['shift']());}}}(_0x5a50,0xc72a3));import{CKEditorError as _0x2d9d07,EmitterMixin as _0x1c2472,logWarning as _0x57ebd4}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x2bc3ee}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0xcbfaf2,AI_CONTEXT_MODEL_EVENT_NAMES as _0xe3ed0}from'./aichatcontext.js';import{AICapabilities as _0x16a27d,CAPABILITIES_MODEL_EVENT_NAMES as _0x85c80e}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x3e0766}from'./aichatinteraction.js';import{errorsMap as _0x1bed94}from'../../errorsmap.js';function _0x10ed(_0x2e5722,_0x42ba0f){const _0x5a5091=_0x5a50();return _0x10ed=function(_0x10edc2,_0x4c943f){_0x10edc2=_0x10edc2-0x177;let _0x141773=_0x5a5091[_0x10edc2];return _0x141773;},_0x10ed(_0x2e5722,_0x42ba0f);}export class AIChatConversation extends _0x1c2472(){['id'];[_0x56fbd5(0x1e4)]=!0x1;[_0x56fbd5(0x1ec)];[_0x56fbd5(0x197)]=[];[_0x56fbd5(0x1a6)];[_0x56fbd5(0x177)];[_0x56fbd5(0x1e9)];[_0x56fbd5(0x19d)];constructor(_0x20e4eb){const _0x5a4fd3=_0x56fbd5;super(),this[_0x5a4fd3(0x19d)]=_0x20e4eb,this[_0x5a4fd3(0x1e9)]=_0x20e4eb[_0x5a4fd3(0x1e9)],this[_0x5a4fd3(0x193)]=_0x20e4eb[_0x5a4fd3(0x193)],this['id']=_0x20e4eb[_0x5a4fd3(0x1c6)],this[_0x5a4fd3(0x1ec)]=_0x20e4eb[_0x5a4fd3(0x1ec)];}async[_0x56fbd5(0x196)](_0x30ea5f){const _0x1b3e9b=_0x56fbd5;try{this[_0x1b3e9b(0x1d7)]=new _0xcbfaf2({'connector':this[_0x1b3e9b(0x1e9)],'config':_0x30ea5f,'ownerId':this['id']}),this[_0x1b3e9b(0x1d7)][_0x1b3e9b(0x17e)](..._0xe3ed0)['to'](this),this[_0x1b3e9b(0x1d7)][_0x1b3e9b(0x196)](),this[_0x1b3e9b(0x1e1)]=new _0x16a27d(),this[_0x1b3e9b(0x1e1)][_0x1b3e9b(0x17e)](..._0x85c80e)['to'](this),this[_0x1b3e9b(0x1e1)][_0x1b3e9b(0x196)]();const _0x56da28=await this[_0x1b3e9b(0x193)][_0x1b3e9b(0x1e6)]();this[_0x1b3e9b(0x1dd)](_0x1b3e9b(0x18c),{'availableModels':_0x56da28});const _0x2b4c8f=await this[_0x1b3e9b(0x193)][_0x1b3e9b(0x1cb)](this[_0x1b3e9b(0x19d)][_0x1b3e9b(0x1a9)]);_0x2b4c8f&&await this[_0x1b3e9b(0x178)](_0x2b4c8f);}catch(_0x442409){const _0x4ff159=new _0x2d9d07(_0x1b3e9b(0x189),null,{'message':_0x442409[_0x1b3e9b(0x198)]||_0x442409});_0x4ff159[_0x1b3e9b(0x1e7)]=_0x442409[_0x1b3e9b(0x1e7)],this[_0x1b3e9b(0x1dd)](_0x1b3e9b(0x1a4),{'error':_0x4ff159});}}async[_0x56fbd5(0x1da)](){const _0x452878=_0x56fbd5;if(this[_0x452878(0x1e4)])throw new _0x2d9d07(_0x452878(0x1c9),null,{'conversation':this});if(!this[_0x452878(0x177)])throw new _0x2d9d07(_0x452878(0x1d2),null,{'conversation':this});try{const {id:_0x2b601f}=await this[_0x452878(0x1e9)][_0x452878(0x191)](this['id'],this[_0x452878(0x19d)][_0x452878(0x195)])[_0x452878(0x1bd)]();this['id']=_0x2b601f,this[_0x452878(0x1e4)]=!0x0,this[_0x452878(0x1dd)](_0x452878(0x1e2),{'conversationId':this['id'],'selectedModel':this[_0x452878(0x177)]});}catch(_0x27aac0){const _0x191d3e=new _0x2d9d07(_0x452878(0x1cd),null,{'message':_0x27aac0[_0x452878(0x198)],'conversationId':this['id']});throw _0x191d3e[_0x452878(0x1e7)]=_0x27aac0[_0x452878(0x1e7)],this[_0x452878(0x1dd)](_0x452878(0x1a4),{'error':_0x191d3e}),_0x191d3e;}}async[_0x56fbd5(0x1af)](_0x536b0a,_0x4c33fb){const _0xb737d6=_0x56fbd5;try{const _0x500036=await this[_0xb737d6(0x1e9)][_0xb737d6(0x1d1)](_0x536b0a)[_0xb737d6(0x1bd)](),_0x196dda=await this[_0xb737d6(0x1e9)][_0xb737d6(0x1f3)](_0x536b0a)[_0xb737d6(0x1bb)](),_0x2a8988=_0x196dda[0x0][_0xb737d6(0x1b6)];this[_0xb737d6(0x1e4)]=!0x0,this['id']=_0x500036['id'],_0xb737d6(0x1f0)in _0x500036?this[_0xb737d6(0x1dd)](_0xb737d6(0x1e3),_0x500036[_0xb737d6(0x1f0)],!0x0):this[_0xb737d6(0x1dd)](_0xb737d6(0x1e3),'',!0x0);const _0x46526c=(await this[_0xb737d6(0x193)][_0xb737d6(0x199)]())[_0xb737d6(0x179)](_0x18a196=>_0x18a196['id'][_0xb737d6(0x1bc)]()===_0x2a8988[_0xb737d6(0x1bc)]());return this[_0xb737d6(0x177)]=_0x46526c,this[_0xb737d6(0x1dd)](_0xb737d6(0x17d),{'selectedModel':_0x46526c,'isDisabled':!0x0}),await this[_0xb737d6(0x1b0)](_0x196dda,_0x4c33fb,_0x2a8988),this[_0xb737d6(0x1a6)]=void 0x0,this;}catch(_0x14c794){const _0xfb4c1=new _0x2d9d07(_0xb737d6(0x1b5),null,{'message':_0x14c794[_0xb737d6(0x198)],'conversationId':_0x536b0a});throw _0xfb4c1[_0xb737d6(0x1e7)]=_0x14c794[_0xb737d6(0x1e7)],this[_0xb737d6(0x1dd)](_0xb737d6(0x1a4),{'error':_0xfb4c1}),_0xfb4c1;}}async[_0x56fbd5(0x1b0)](_0x55110a,_0x15c437,_0x2e6286){const _0x2ed0e2=_0x56fbd5;let _0x4a5816;for(const _0x4ef608 of _0x55110a)if(_0x2ed0e2(0x1aa)===_0x4ef608[_0x2ed0e2(0x1c8)]){const _0x3839ed=await this[_0x2ed0e2(0x188)](_0x4ef608),_0x59a569={'isReasoningEnabled':Object[_0x2ed0e2(0x1bf)](_0x4ef608[_0x2ed0e2(0x1c3)],_0x2ed0e2(0x19e)),'isWebSearchEnabled':Object[_0x2ed0e2(0x1bf)](_0x4ef608[_0x2ed0e2(0x1c3)],_0x2ed0e2(0x1df))};_0x4a5816=this[_0x2ed0e2(0x1b2)]({'userMessage':_0x4ef608[_0x2ed0e2(0x1ac)],'contextItems':_0x3839ed,'capabilities':_0x59a569,'modelId':_0x2e6286,'attributes':_0x4ef608[_0x2ed0e2(0x1ab)]}),this[_0x2ed0e2(0x1a6)]=_0x4a5816,this[_0x2ed0e2(0x1d7)][_0x2ed0e2(0x183)](this[_0x2ed0e2(0x1a6)][_0x2ed0e2(0x1ad)]);}else{if(_0x2ed0e2(0x1b3)===_0x4ef608[_0x2ed0e2(0x1c8)]&&_0x4a5816){const _0x5dd278=[];for(const _0xb5e4e8 of _0x4ef608[_0x2ed0e2(0x187)])switch(_0xb5e4e8[_0x2ed0e2(0x1b7)]){case _0x2ed0e2(0x17b):case _0x2ed0e2(0x19f):{const _0x40aaf6=_0x4a5816[_0x2ed0e2(0x1ed)]()?.[_0x2ed0e2(0x1c0)]!==_0x15c437;_0x4a5816[_0x2ed0e2(0x17f)]=_0x4a5816[_0x2ed0e2(0x1a0)]({'type':_0xb5e4e8[_0x2ed0e2(0x1b7)],'isDone':!0x0,'interactionId':_0x4a5816['id'],'areActionsDisabled':_0x40aaf6}),_0x4a5816[_0x2ed0e2(0x17f)][_0x2ed0e2(0x180)](_0xb5e4e8[_0x2ed0e2(0x187)]),_0x5dd278[_0x2ed0e2(0x1c7)]>0x0&&(_0x4a5816[_0x2ed0e2(0x17f)][_0x2ed0e2(0x192)]=_0x5dd278[_0x2ed0e2(0x185)](0x0));break;}case _0x2ed0e2(0x1c2):_0x5dd278[_0x2ed0e2(0x1d3)](_0xb5e4e8);break;case _0x2ed0e2(0x1f4):{const {data:_0x550a76,attributes:_0x1f4c2f}=JSON[_0x2ed0e2(0x1a2)](_0xb5e4e8[_0x2ed0e2(0x187)]);_0x4a5816[_0x2ed0e2(0x1ee)]({'toolName':_0xb5e4e8[_0x2ed0e2(0x1ba)],'data':_0x550a76,'attributes':_0x1f4c2f});break;}}}}}async[_0x56fbd5(0x188)](_0x3efb70){const _0xa64167=_0x56fbd5,_0xbeff3a=new Map();if(!_0x3efb70[_0xa64167(0x187)])return _0xbeff3a;for(const _0x364777 of _0x3efb70[_0xa64167(0x187)]){const _0x12a76e=await this[_0xa64167(0x1d7)][_0xa64167(0x1eb)](_0x364777);_0x12a76e&&_0xbeff3a[_0xa64167(0x1ea)](_0x12a76e['id'],_0x12a76e);}return _0xbeff3a;}async[_0x56fbd5(0x1f1)]({userMessage:_0x35f434,attributes:_0x1665e0}){const _0x153cf2=_0x56fbd5;if(!this[_0x153cf2(0x1e4)])throw new _0x2d9d07(_0x153cf2(0x1e8),null,{'conversation':this});if(this[_0x153cf2(0x1a6)])throw new _0x2d9d07(_0x153cf2(0x1d8),null,{'conversation':this});try{const _0xdb684a=this[_0x153cf2(0x1d7)][_0x153cf2(0x1f2)](),_0x17c5a4=this[_0x153cf2(0x1e1)][_0x153cf2(0x194)](),_0x8216c2=this[_0x153cf2(0x177)]['id'];this[_0x153cf2(0x1a6)]=this[_0x153cf2(0x1b2)]({'userMessage':_0x35f434,'contextItems':_0xdb684a,'capabilities':_0x17c5a4,'modelId':_0x8216c2,'attributes':_0x1665e0}),await this[_0x153cf2(0x1a6)][_0x153cf2(0x1da)](),this[_0x153cf2(0x1d7)][_0x153cf2(0x183)](this[_0x153cf2(0x1a6)][_0x153cf2(0x1ad)]);}catch(_0x2a3659){if(_0x2a3659 instanceof _0x2d9d07)this[_0x153cf2(0x1dd)](_0x153cf2(0x1a4),{'interactionId':this[_0x153cf2(0x1a6)]?this[_0x153cf2(0x1a6)]['id']:void 0x0,'error':_0x2a3659});else{const _0x18963f=_0x1bed94[_0x153cf2(0x1b4)](_0x2a3659[_0x153cf2(0x1d5)])||_0x153cf2(0x17c);this[_0x153cf2(0x1dd)](_0x153cf2(0x1a4),{'interactionId':this[_0x153cf2(0x1a6)]?this[_0x153cf2(0x1a6)]['id']:void 0x0,'error':new _0x2d9d07(_0x18963f,null,{'error':_0x2a3659})});}}finally{this[_0x153cf2(0x1a6)]?.[_0x153cf2(0x1a8)](),this[_0x153cf2(0x1a6)]=void 0x0;}}[_0x56fbd5(0x1b2)]({userMessage:_0xe5df84,contextItems:_0x3e7e92,capabilities:_0x4c517b,modelId:_0x524160,attributes:_0xa16b4b}){const _0x53f8c4=_0x56fbd5,_0x338e67=new _0x3e0766({'userMessage':_0xe5df84,'contextItems':_0x3e7e92,'capabilities':_0x4c517b,'conversationId':this['id'],'connector':this[_0x53f8c4(0x1e9)],'editor':this[_0x53f8c4(0x19d)][_0x53f8c4(0x1a3)]&&this[_0x53f8c4(0x19d)][_0x53f8c4(0x1a3)](),'model':_0x524160,'attributes':_0xa16b4b});return _0x338e67[_0x53f8c4(0x17e)](..._0x2bc3ee)['to'](this),this[_0x53f8c4(0x197)][_0x53f8c4(0x1d3)](_0x338e67),this[_0x53f8c4(0x1dd)](_0x53f8c4(0x1ce),_0x338e67),_0x338e67;}[_0x56fbd5(0x1dc)](_0x442d2b){const _0xf29f52=_0x56fbd5;return this[_0xf29f52(0x197)][_0xf29f52(0x179)](_0x70a0ef=>_0x70a0ef['id']===_0x442d2b);}[_0x56fbd5(0x18f)](_0x22dd95){const _0x5aea08=_0x56fbd5,_0x334c6c=this[_0x5aea08(0x1dc)](_0x22dd95);_0x334c6c&&(_0x334c6c[_0x5aea08(0x1d0)](),this[_0x5aea08(0x197)][_0x5aea08(0x185)](this[_0x5aea08(0x197)][_0x5aea08(0x1e0)](_0x334c6c),0x1));}get[_0x56fbd5(0x19b)](){const _0x122d7d=_0x56fbd5;return this[_0x122d7d(0x197)][this[_0x122d7d(0x197)][_0x122d7d(0x1c7)]-0x1];}[_0x56fbd5(0x186)](_0x3e6da5){const _0x31a2f9=_0x56fbd5;this[_0x31a2f9(0x1d7)][_0x31a2f9(0x186)](_0x3e6da5);}async[_0x56fbd5(0x1d4)]({content:_0x238bcf,version:_0x5d2119,sessionId:_0x5658f7,selections:_0x3753d8}){const _0x15ab45=_0x56fbd5;await this[_0x15ab45(0x1d7)][_0x15ab45(0x1ca)](_0x238bcf,_0x5d2119,_0x5658f7,_0x3753d8);}[_0x56fbd5(0x1be)](){const _0x1a7c51=_0x56fbd5;return this[_0x1a7c51(0x1a6)]?.[_0x1a7c51(0x1ed)]()?.[_0x1a7c51(0x187)]||'';}[_0x56fbd5(0x17a)](_0x44b507){const _0x14e53d=_0x56fbd5;this[_0x14e53d(0x1d7)][_0x14e53d(0x17a)](_0x44b507);}[_0x56fbd5(0x18e)](){const _0xd5e067=_0x56fbd5;this[_0xd5e067(0x1d7)][_0xd5e067(0x18e)]();}[_0x56fbd5(0x182)](_0x128438){const _0xd7598c=_0x56fbd5;this[_0xd7598c(0x1d7)][_0xd7598c(0x182)](_0x128438);}[_0x56fbd5(0x1b9)](_0x7addaa){const _0xd197f8=_0x56fbd5;this[_0xd197f8(0x1d7)][_0xd197f8(0x1b9)](_0x7addaa);}[_0x56fbd5(0x1db)](_0x12e5ef){const _0x2216bd=_0x56fbd5;this[_0x2216bd(0x1d7)][_0x2216bd(0x1db)](_0x12e5ef);}[_0x56fbd5(0x1b1)](_0x54776b,_0x2df0ed){const _0x3ad0ac=_0x56fbd5;this[_0x3ad0ac(0x1d7)][_0x3ad0ac(0x1b1)](_0x54776b,_0x2df0ed);}[_0x56fbd5(0x1e5)](_0x5e3825,_0x210013,_0x1539b6){const _0x53562e=_0x56fbd5;return this[_0x53562e(0x1d7)][_0x53562e(0x1e5)](_0x5e3825,_0x210013,_0x1539b6);}[_0x56fbd5(0x1d6)](_0x5bbc1b){const _0x3d8916=_0x56fbd5;this[_0x3d8916(0x1d7)][_0x3d8916(0x1d6)](_0x5bbc1b);}[_0x56fbd5(0x1a1)](_0x3779e7){const _0x304f45=_0x56fbd5;this[_0x304f45(0x1e1)][_0x304f45(0x1a1)](_0x3779e7);}[_0x56fbd5(0x1de)](){const _0x222939=_0x56fbd5;this[_0x222939(0x1e1)][_0x222939(0x1de)]();}[_0x56fbd5(0x1a5)](_0x295666){const _0x3f6bb7=_0x56fbd5;this[_0x3f6bb7(0x1e1)][_0x3f6bb7(0x1a5)](_0x295666);}[_0x56fbd5(0x1cf)](){const _0x44cc43=_0x56fbd5;this[_0x44cc43(0x1e1)][_0x44cc43(0x1cf)]();}[_0x56fbd5(0x18a)](){const _0x57090c=_0x56fbd5;return this[_0x57090c(0x1d7)][_0x57090c(0x18a)]();}[_0x56fbd5(0x18d)](){const _0x20c40b=_0x56fbd5;return this[_0x20c40b(0x1d7)][_0x20c40b(0x18d)]();}[_0x56fbd5(0x1c4)](){const _0x2799e4=_0x56fbd5;return this[_0x2799e4(0x1d7)][_0x2799e4(0x1c4)]();}async[_0x56fbd5(0x178)](_0x16972f){const _0x2c4658=_0x56fbd5;_0x16972f?!0x1===await this[_0x2c4658(0x193)][_0x2c4658(0x18b)](_0x16972f)&&(_0x57ebd4(_0x2c4658(0x181),{'conversation':this,'model':_0x16972f}),_0x16972f=(await this[_0x2c4658(0x193)][_0x2c4658(0x1e6)]())[0x0]):(_0x57ebd4(_0x2c4658(0x19c),{'conversation':this}),_0x16972f=(await this[_0x2c4658(0x193)][_0x2c4658(0x1e6)]())[0x0]),_0x16972f['id']!==this[_0x2c4658(0x177)]?.['id']&&(this[_0x2c4658(0x177)]=_0x16972f,this[_0x2c4658(0x1e1)][_0x2c4658(0x1c1)](),this[_0x2c4658(0x1dd)](_0x2c4658(0x17d),{'selectedModel':_0x16972f}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2c1c35=_0x5dc2;(function(_0x3944f9,_0x415f06){var _0x595270=_0x5dc2,_0x57bed0=_0x3944f9();while(!![]){try{var _0x5e5973=parseInt(_0x595270(0x181))/0x1*(parseInt(_0x595270(0x18a))/0x2)+parseInt(_0x595270(0x18f))/0x3+parseInt(_0x595270(0x191))/0x4*(-parseInt(_0x595270(0x18d))/0x5)+parseInt(_0x595270(0x184))/0x6*(parseInt(_0x595270(0x187))/0x7)+-parseInt(_0x595270(0x190))/0x8+parseInt(_0x595270(0x180))/0x9+parseInt(_0x595270(0x18c))/0xa;if(_0x5e5973===_0x415f06)break;else _0x57bed0['push'](_0x57bed0['shift']());}catch(_0x5f5549){_0x57bed0['push'](_0x57bed0['shift']());}}}(_0x39cd,0xb7447));import{AICapabilities as _0x23873a}from'../../aicore/model/aicapabilities.js';function _0x39cd(){var _0x56d167=['14646880AEFsga','15HWpfna','userMessage','737562sEhGoK','10500784YaHbMp','499192nHuYiI','model','connector','attributes','sendRequest','contextItems','current-document','1439550wluqVr','1839eglNrI','queryAssistant','getCapabilitiesRequestData','132vcTIfX','conversationId','get','47635GvCHRI','capabilities','getDocumentContext','454pcwwAI','mapContextItemsToRequestData'];_0x39cd=function(){return _0x56d167;};return _0x39cd();}import{AIInteraction as _0x38c980}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x14c200}from'./aichatcontext.js';function _0x5dc2(_0x4eb708,_0x273dd3){var _0x39cd1f=_0x39cd();return _0x5dc2=function(_0x5dc2b6,_0x164274){_0x5dc2b6=_0x5dc2b6-0x17b;var _0x522f7c=_0x39cd1f[_0x5dc2b6];return _0x522f7c;},_0x5dc2(_0x4eb708,_0x273dd3);}export class AIChatInteraction extends _0x38c980{[_0x2c1c35(0x18e)];[_0x2c1c35(0x185)];[_0x2c1c35(0x17e)]=new Map();[_0x2c1c35(0x192)];[_0x2c1c35(0x17c)];constructor(_0x54ab16){var _0x4c135f=_0x2c1c35;super(_0x54ab16),this[_0x4c135f(0x185)]=_0x54ab16[_0x4c135f(0x185)],this[_0x4c135f(0x17e)]=_0x54ab16[_0x4c135f(0x17e)],this[_0x4c135f(0x188)]=_0x54ab16[_0x4c135f(0x188)],this[_0x4c135f(0x18e)]=_0x54ab16[_0x4c135f(0x18e)],this[_0x4c135f(0x192)]=_0x54ab16[_0x4c135f(0x192)],this[_0x4c135f(0x17c)]=_0x54ab16[_0x4c135f(0x17c)];}async[_0x2c1c35(0x17d)](){var _0x27ff89=_0x2c1c35;return this[_0x27ff89(0x17b)][_0x27ff89(0x182)]({'message':this[_0x27ff89(0x18e)],'conversationId':this[_0x27ff89(0x185)],'parts':_0x14c200[_0x27ff89(0x18b)](this[_0x27ff89(0x17e)]),'capabilities':_0x23873a[_0x27ff89(0x183)](this[_0x27ff89(0x188)]),'model':this[_0x27ff89(0x192)],'attributes':this[_0x27ff89(0x17c)]});}[_0x2c1c35(0x189)](){var _0x4c0a4b=_0x2c1c35;return this[_0x4c0a4b(0x17e)][_0x4c0a4b(0x186)](_0x4c0a4b(0x17f));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xe8a479=_0x1b89;(function(_0x17539c,_0x1ee796){const _0x48d476=_0x1b89,_0x51193b=_0x17539c();while(!![]){try{const _0x35491a=parseInt(_0x48d476(0x159))/0x1+parseInt(_0x48d476(0x16e))/0x2*(parseInt(_0x48d476(0x169))/0x3)+parseInt(_0x48d476(0x156))/0x4*(-parseInt(_0x48d476(0x152))/0x5)+parseInt(_0x48d476(0x163))/0x6*(parseInt(_0x48d476(0x17c))/0x7)+-parseInt(_0x48d476(0x18c))/0x8+-parseInt(_0x48d476(0x155))/0x9*(parseInt(_0x48d476(0x1a0))/0xa)+-parseInt(_0x48d476(0x194))/0xb*(-parseInt(_0x48d476(0x193))/0xc);if(_0x35491a===_0x1ee796)break;else _0x51193b['push'](_0x51193b['shift']());}catch(_0x154845){_0x51193b['push'](_0x51193b['shift']());}}}(_0x442d,0x19db0));import{FocusTracker as _0x19d1ec,KeystrokeHandler as _0x3f809b}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x1afe16}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0xa47c17}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';function _0x442d(){const _0x185c3e=['keepErrors','setState','execute','focus','showBlockingError','_stateView','_keystrokes','destroy','rejectSuggestion','_state','insertSuggestion','1576670CelZLT','update','change:isTrackChangesOn','_toolbarContainerView','showError','nextButtonView','shift\x20+\x20tab','children','94555RtrpWM','updateContent','tab','9BJhLTy','12jCPRDx','AI_BALLOON_PREVIOUS_LABEL','listenTo','44140xMASKK','locale','_focusTracker','bind','isTrackChangesOn','ck-ai-chat-balloon-main_state_','toggleShowChanges','hideError','_config','isVisible','2454VMeZjI','pending','setTemplate','full','showDiff','applySuggestion','3rawqOD','showNext','_createNextButtonView','availableActions','createCollection','149878Svuqwx','isEnabled','includes','setButtonsVisibility','_miniToolbarView','element','focusCycler','delegate','_errorView','has','togglePartToolbarEnabled','change:_state','_streamableContentView','toggleSuggestionDisplayMode','1323kYGylq','previousButtonView','_isErrorVisible','set','ck-ai-chat-balloon-main','_createPreviousButtonView','showPrevious','add','focusFirst','bindTemplate','_togglePartToolbarButtonsVisibility','_focusables','addMany','focusLast','fire','div','1032672WdIXpm','AI_BALLOON_NEXT_LABEL','toggleRotatorButtonsVisibility','ck-ai-chat-balloon__toolbar-container','isShowChangesOn','render','_partToolbarView','336KiOBTo','99396iqjXdZ'];_0x442d=function(){return _0x185c3e;};return _0x442d();}import{AIMiniToolbarView as _0x568330}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x27edcf}from'../../aiballoon/ui/aiballoonview.js';function _0x1b89(_0xe443d8,_0x5ccc66){const _0x442d50=_0x442d();return _0x1b89=function(_0x1b89cf,_0x56342d){_0x1b89cf=_0x1b89cf-0x14e;let _0x2b947c=_0x442d50[_0x1b89cf];return _0x2b947c;},_0x1b89(_0xe443d8,_0x5ccc66);}import{ButtonView as _0x2cef6a,FocusCycler as _0xebb36f,View as _0x3d2785}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x411a71}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x533d33,IconChevronUp as _0x1468fc}from'ckeditor5/src/icons.js';import{getTranslation as _0x1c74bf}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x27edcf{[_0xe8a479(0x151)];[_0xe8a479(0x14f)];[_0xe8a479(0x17d)];[_0xe8a479(0x174)];[_0xe8a479(0x187)];[_0xe8a479(0x15b)];[_0xe8a479(0x19b)];[_0xe8a479(0x161)];[_0xe8a479(0x17a)];[_0xe8a479(0x1a3)];[_0xe8a479(0x192)];[_0xe8a479(0x19a)];[_0xe8a479(0x172)];constructor(_0xac1fd2,_0x62eb4c){const _0x51cc7a=_0xe8a479;super(_0xac1fd2);const _0x59fc4d=this[_0x51cc7a(0x185)];this[_0x51cc7a(0x17f)](_0x51cc7a(0x167),!0x1),this[_0x51cc7a(0x17f)](_0x51cc7a(0x19e),_0x51cc7a(0x164)),this[_0x51cc7a(0x15b)]=new _0x19d1ec(),this[_0x51cc7a(0x19b)]=new _0x3f809b(),this[_0x51cc7a(0x187)]=this[_0x51cc7a(0x16d)](),this[_0x51cc7a(0x174)]=new _0xebb36f({'focusables':this[_0x51cc7a(0x187)],'focusTracker':this[_0x51cc7a(0x15b)],'keystrokeHandler':this[_0x51cc7a(0x19b)],'actions':{'focusPrevious':_0x51cc7a(0x150),'focusNext':_0x51cc7a(0x154)}}),this[_0x51cc7a(0x161)]=_0x62eb4c,this[_0x51cc7a(0x14f)]=this[_0x51cc7a(0x16b)](),this[_0x51cc7a(0x17d)]=this[_0x51cc7a(0x181)](),this[_0x51cc7a(0x17a)]=new _0x1afe16(_0xac1fd2),this[_0x51cc7a(0x192)]=new _0xa47c17(_0xac1fd2,_0x62eb4c[_0x51cc7a(0x16c)]),this[_0x51cc7a(0x192)][_0x51cc7a(0x175)](_0x51cc7a(0x168),_0x51cc7a(0x19f),_0x51cc7a(0x19d))['to'](this),this[_0x51cc7a(0x186)](_0x62eb4c),this[_0x51cc7a(0x19a)]=new _0x411a71(_0xac1fd2),this[_0x51cc7a(0x19a)][_0x51cc7a(0x162)]=!0x1,this[_0x51cc7a(0x172)]=new _0x568330(_0xac1fd2,{'showChanges':_0x51cc7a(0x166)}),this[_0x51cc7a(0x172)][_0x51cc7a(0x15c)](_0x51cc7a(0x190))['to'](this,_0x51cc7a(0x167)),this[_0x51cc7a(0x172)]['on'](_0x51cc7a(0x15f),()=>{const _0x5f0ace=_0x51cc7a;this[_0x5f0ace(0x18a)](_0x5f0ace(0x17b));}),this[_0x51cc7a(0x1a3)]=new AIChatBalloonToolbarContainerView(_0xac1fd2,[this[_0x51cc7a(0x192)],this[_0x51cc7a(0x19a)],this[_0x51cc7a(0x172)]]),this[_0x51cc7a(0x151)]=this[_0x51cc7a(0x16d)]([this[_0x51cc7a(0x17a)],this[_0x51cc7a(0x1a3)]]),this['on'](_0x51cc7a(0x179),(_0x51802e,_0x5b4aa3,_0x2ecd2f,_0x3c58e5)=>{const _0xa7dcab=_0x51cc7a;let _0x5a3115,_0x22801e;_0xa7dcab(0x164)===_0x3c58e5?(_0x5a3115=this[_0xa7dcab(0x192)],_0x22801e=this[_0xa7dcab(0x19a)]):(_0x5a3115=this[_0xa7dcab(0x19a)],_0x22801e=this[_0xa7dcab(0x192)]),this[_0xa7dcab(0x19a)][_0xa7dcab(0x196)](_0x2ecd2f),_0x5a3115[_0xa7dcab(0x162)]=!0x1,_0x22801e[_0xa7dcab(0x162)]=!0x0;}),this[_0x51cc7a(0x165)]({'tag':_0x51cc7a(0x18b),'attributes':{'class':['ck',_0x51cc7a(0x180),_0x59fc4d['to'](_0x51cc7a(0x19e),_0x8abb40=>_0x51cc7a(0x15e)+_0x8abb40)]},'children':this[_0x51cc7a(0x151)]}),this['on'](_0x51cc7a(0x1a2),()=>{const _0x4d0a80=_0x51cc7a;this[_0x4d0a80(0x186)](_0x62eb4c);});}[_0xe8a479(0x191)](){const _0x391113=_0xe8a479;super[_0x391113(0x191)](),this[_0x391113(0x14f)][_0x391113(0x191)](),this[_0x391113(0x17d)][_0x391113(0x191)](),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x173)]),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x14f)]),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x17d)]),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x172)]),this[_0x391113(0x15b)][_0x391113(0x183)](this[_0x391113(0x192)]),this[_0x391113(0x19b)][_0x391113(0x158)](this[_0x391113(0x173)]),this[_0x391113(0x19b)][_0x391113(0x158)](this[_0x391113(0x14f)][_0x391113(0x173)]),this[_0x391113(0x19b)][_0x391113(0x158)](this[_0x391113(0x17d)][_0x391113(0x173)]),this[_0x391113(0x187)][_0x391113(0x188)]([this[_0x391113(0x14f)],this[_0x391113(0x17d)],this[_0x391113(0x192)],this[_0x391113(0x172)]]);}[_0xe8a479(0x19c)](){const _0x47dd49=_0xe8a479;super[_0x47dd49(0x19c)](),this[_0x47dd49(0x17d)][_0x47dd49(0x19c)](),this[_0x47dd49(0x14f)][_0x47dd49(0x19c)]();}[_0xe8a479(0x198)](){const _0x3b6d11=_0xe8a479;this[_0x3b6d11(0x174)][_0x3b6d11(0x184)]();}[_0xe8a479(0x189)](){const _0x125369=_0xe8a479;this[_0x125369(0x174)][_0x125369(0x189)]();}async[_0xe8a479(0x153)](_0x1cbb4f){const _0x54d405=_0xe8a479;_0x1cbb4f?.[_0x54d405(0x195)]||this[_0x54d405(0x160)](),await this[_0x54d405(0x17a)][_0x54d405(0x1a1)](_0x1cbb4f);}[_0xe8a479(0x196)](_0xf6ed55){const _0xf06863=_0xe8a479;this[_0xf06863(0x19e)]=_0xf6ed55;}[_0xe8a479(0x14e)](_0x15f674){const _0x5423ad=_0xe8a479;super[_0x5423ad(0x14e)](_0x15f674),this[_0x5423ad(0x151)][_0x5423ad(0x177)](this[_0x5423ad(0x176)])||this[_0x5423ad(0x151)][_0x5423ad(0x183)](this[_0x5423ad(0x176)],0x0);}[_0xe8a479(0x160)](){const _0x5b74a0=_0xe8a479;this[_0x5b74a0(0x17e)]&&(super[_0x5b74a0(0x160)](),this[_0x5b74a0(0x178)](!0x0));}[_0xe8a479(0x199)](_0x49f6ec){const _0x55d7b0=_0xe8a479;super[_0x55d7b0(0x199)](_0x49f6ec),this[_0x55d7b0(0x178)](!0x1);}[_0xe8a479(0x18e)](_0x39a698){const _0x1ccb96=_0xe8a479;this[_0x1ccb96(0x14f)][_0x1ccb96(0x162)]=this[_0x1ccb96(0x17d)][_0x1ccb96(0x162)]=_0x39a698;}[_0xe8a479(0x178)](_0x9c0a3c){const _0x1a4874=_0xe8a479;this[_0x1a4874(0x192)][_0x1a4874(0x16f)]=_0x9c0a3c;}[_0xe8a479(0x186)]({showApplyButton:_0x425bea,showSuggestButton:_0x3b908a}){const _0x35c308=_0xe8a479;_0x425bea=_0x425bea&&!this[_0x35c308(0x15d)]&&this[_0x35c308(0x161)][_0x35c308(0x16c)][_0x35c308(0x170)](_0x35c308(0x168)),_0x3b908a=_0x3b908a&&this[_0x35c308(0x161)][_0x35c308(0x16c)][_0x35c308(0x170)](_0x35c308(0x19f)),this[_0x35c308(0x192)][_0x35c308(0x171)]({'showApplyButton':_0x425bea,'showSuggestButton':_0x3b908a});}[_0xe8a479(0x16b)](){const _0x332d89=_0xe8a479,_0x3f1f7a=new _0x2cef6a(this[_0x332d89(0x15a)]);return _0x3f1f7a[_0x332d89(0x17f)]({'icon':_0x533d33,'label':_0x1c74bf(this[_0x332d89(0x15a)],_0x332d89(0x18d)),'isVisible':!0x0}),_0x3f1f7a['on'](_0x332d89(0x197),()=>{const _0x196063=_0x332d89;this[_0x196063(0x18a)](_0x196063(0x16a));}),_0x3f1f7a;}[_0xe8a479(0x181)](){const _0x411436=_0xe8a479,_0x8df984=new _0x2cef6a(this[_0x411436(0x15a)]);return _0x8df984[_0x411436(0x17f)]({'icon':_0x1468fc,'label':_0x1c74bf(this[_0x411436(0x15a)],_0x411436(0x157)),'isVisible':!0x0}),_0x8df984['on'](_0x411436(0x197),()=>{const _0x45c372=_0x411436;this[_0x45c372(0x18a)](_0x45c372(0x182));}),_0x8df984;}}class AIChatBalloonToolbarContainerView extends _0x3d2785{constructor(_0xb99dc0,_0x335455){const _0x4290cf=_0xe8a479;super(_0xb99dc0),this[_0x4290cf(0x165)]({'tag':_0x4290cf(0x18b),'attributes':{'class':[_0x4290cf(0x18f)]},'children':_0x335455});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3d9146=_0x2fa5;(function(_0x27a82a,_0x18a947){const _0x2268b3=_0x2fa5,_0x256d59=_0x27a82a();while(!![]){try{const _0x3d16d4=-parseInt(_0x2268b3(0xc2))/0x1+parseInt(_0x2268b3(0xb0))/0x2+parseInt(_0x2268b3(0xb8))/0x3+-parseInt(_0x2268b3(0x94))/0x4+parseInt(_0x2268b3(0xb9))/0x5+parseInt(_0x2268b3(0x81))/0x6*(-parseInt(_0x2268b3(0xbd))/0x7)+parseInt(_0x2268b3(0x9a))/0x8;if(_0x3d16d4===_0x18a947)break;else _0x256d59['push'](_0x256d59['shift']());}catch(_0x135138){_0x256d59['push'](_0x256d59['shift']());}}}(_0x5943,0x30b69));import{ButtonView as _0x3b4686,clickOutsideHandler as _0x5c2b3e,View as _0x379c5d}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x4b5809}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x90c356}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x9eafd5,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x50ec9a}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x55d830}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x373a31}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';function _0x2fa5(_0x1e09d5,_0x4de8e8){const _0x594309=_0x5943();return _0x2fa5=function(_0x2fa5c4,_0x9265e2){_0x2fa5c4=_0x2fa5c4-0x79;let _0x54a269=_0x594309[_0x2fa5c4];return _0x54a269;},_0x2fa5(_0x1e09d5,_0x4de8e8);}import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';function _0x5943(){const _0x4bc511=['removeContextItem','_createPromptInputView','fieldView','updateResourceState','set','254223IFuxDY','1041855ueQzqQ','setModel','_createPromptCapabilitiesView','setPromptInputValue','2263513RofyKT','setWebSearch','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','toggleWebSearch','isLoading','56604XrhMXY','ck-ai-chat-controls__start-new-chat-button','ck-ai-chat-controls-model-unavailable-message','_promptCapabilitiesView','setModelList','closeSourceResourceBalloon','setIsUploadInProgress','element','setTemplate','clearConversationContextItems','setAddContextOptions','focusPromptInput','locale','queryView','6YxXEsh','low','setInputPlaceholder','populateSourceResourceBalloon','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','enableModelSelector','bindTemplate','setPlaceholderText','startConversation','focus','execute','ck-ai-chat-controls','_createContextPanelView','sendUserMessage','_loaderView','contextResourcesSearchInputVisibleFrom','ck-ai-chat-controls-disabled','value','_createModelUnavailableMessageView','157264XHWxQs','isDisabled','isModelAvailable','change:isLoading','selectModel','bodyCollection','933912IKLdcl','_contextPanelView','clearPendingContextUI','_handlePromptInputFocus','addContextButtonView','toggleReasoning','ck-hidden','form','_modelUnavailableMessageView','resetMessageInput','delegate','abortPromptStream','setReasoning','div','_shouldRestorePromptInputFocus','addContextItem','disableModelSelector','_promptInputView','reset','setConversationContext','_createLoaderView','clearCurrentContextItems','417914ZTIYoY','clearConversationContextUI','setContextItemLoading'];_0x5943=function(){return _0x4bc511;};return _0x5943();}import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x379c5d{[_0x3d9146(0x9b)];[_0x3d9146(0xab)];[_0x3d9146(0xc5)];[_0x3d9146(0x8f)];[_0x3d9146(0xa2)];[_0x3d9146(0xa8)];constructor(_0x41646b,_0x3232fd){const _0x5a9c34=_0x3d9146;super(_0x41646b),this[_0x5a9c34(0x9b)]=this[_0x5a9c34(0x8d)](_0x41646b,{'bodyCollection':_0x3232fd[_0x5a9c34(0x99)],'searchInputVisibleFrom':_0x3232fd[_0x5a9c34(0x90)]}),this[_0x5a9c34(0xab)]=this[_0x5a9c34(0xb4)](_0x41646b),this[_0x5a9c34(0xc5)]=this[_0x5a9c34(0xbb)](_0x41646b),this[_0x5a9c34(0x8f)]=this[_0x5a9c34(0xae)](_0x41646b),this[_0x5a9c34(0xa2)]=this[_0x5a9c34(0x93)](_0x41646b),this[_0x5a9c34(0xa8)]=!0x1,this[_0x5a9c34(0xab)][_0x5a9c34(0xa4)](_0x5a9c34(0x8e))['to'](this),this[_0x5a9c34(0x8f)][_0x5a9c34(0xa4)](_0x5a9c34(0xa5))['to'](this),this[_0x5a9c34(0xc5)][_0x5a9c34(0xa4)](_0x5a9c34(0xc0))['to'](this),this[_0x5a9c34(0xc5)][_0x5a9c34(0xa4)](_0x5a9c34(0x9f))['to'](this),this[_0x5a9c34(0xc5)][_0x5a9c34(0xa4)](_0x5a9c34(0x98))['to'](this),this[_0x5a9c34(0x9b)][_0x5a9c34(0xa4)](..._0x50ec9a)['to'](this),this[_0x5a9c34(0xb7)](_0x5a9c34(0x96),!0x0),this[_0x5a9c34(0xb7)](_0x5a9c34(0x95),!0x1);const _0xdc1ddc=this[_0x5a9c34(0x87)];this[_0x5a9c34(0x7b)]({'tag':_0x5a9c34(0xa1),'attributes':{'class':['ck',_0x5a9c34(0x8c),_0xdc1ddc['if'](_0x5a9c34(0x95),_0x5a9c34(0x91))]},'children':[{'tag':_0x5a9c34(0xa7),'attributes':{'class':[_0xdc1ddc['if'](_0x5a9c34(0xc1),_0x5a9c34(0xa0),_0x51e913=>_0x51e913||!this[_0x5a9c34(0x96)]),_0xdc1ddc['if'](_0x5a9c34(0x96),_0x5a9c34(0xa0),_0x5f3c39=>!_0x5f3c39||this[_0x5a9c34(0xc1)])]},'children':[this[_0x5a9c34(0x9b)],this[_0x5a9c34(0xab)],this[_0x5a9c34(0xc5)]]},{'tag':_0x5a9c34(0xa7),'attributes':{'class':[_0xdc1ddc['if'](_0x5a9c34(0xc1),_0x5a9c34(0xa0),_0x3d84c8=>!_0x3d84c8)]},'children':[this[_0x5a9c34(0x8f)]]},{'tag':_0x5a9c34(0xa7),'attributes':{'class':[_0xdc1ddc['if'](_0x5a9c34(0x96),_0x5a9c34(0xa0),_0x27827a=>_0x27827a)]},'children':[this[_0x5a9c34(0xa2)]]}]}),_0x5c2b3e({'emitter':this[_0x5a9c34(0xab)],'activator':()=>this[_0x5a9c34(0xc1)],'contextElements':()=>[this[_0x5a9c34(0x7a)]],'callback':()=>{const _0x5363f3=_0x5a9c34;this[_0x5363f3(0xa8)]=!0x1;}}),this['on'](_0x5a9c34(0x97),this[_0x5a9c34(0x9d)],{'priority':_0x5a9c34(0x82)});}[_0x3d9146(0x8d)](_0x55853d,_0x44d4d6){return new _0x9eafd5(_0x55853d,_0x44d4d6);}[_0x3d9146(0xb4)](_0x530d92){const _0x4faecd=_0x3d9146;return new _0x4b5809(_0x530d92,this[_0x4faecd(0x9b)][_0x4faecd(0x9e)]);}[_0x3d9146(0xbb)](_0x49440c){return new _0x90c356(_0x49440c);}[_0x3d9146(0xae)](_0x3226e1){return new _0x55d830(_0x3226e1);}[_0x3d9146(0x93)](_0x31c472){const _0x17e48e=_0x3d9146,_0x1de041=new AIChatModelUnavailableMessageView(_0x31c472);return _0x1de041[_0x17e48e(0xa4)](_0x17e48e(0x89))['to'](this),_0x1de041;}[_0x3d9146(0x9d)](_0x5815e3,_0x159177,_0x4ce8e9){const _0x355308=_0x3d9146;_0x4ce8e9?this[_0x355308(0xa8)]=!0x0:this[_0x355308(0xa8)]&&this[_0x355308(0xab)][_0x355308(0x8a)]();}[_0x3d9146(0xa9)](_0x185cf1,_0x2958d4){const _0x41ad0e=_0x3d9146;this[_0x41ad0e(0x9b)][_0x41ad0e(0xa9)](_0x185cf1,_0x2958d4);}[_0x3d9146(0xb3)](_0x126495){const _0x32178a=_0x3d9146;this[_0x32178a(0x9b)][_0x32178a(0xb3)](_0x126495);}[_0x3d9146(0xb2)](_0x2b5df4,_0x5e8fe5){const _0x45db1e=_0x3d9146;this[_0x45db1e(0x9b)][_0x45db1e(0xb2)](_0x2b5df4,_0x5e8fe5);}[_0x3d9146(0x79)](_0x10b2ee){const _0x178cbd=_0x3d9146;this[_0x178cbd(0xab)][_0x178cbd(0x79)](_0x10b2ee);}[_0x3d9146(0xad)](_0x51f1e0){const _0x5287bc=_0x3d9146;this[_0x5287bc(0x9b)][_0x5287bc(0xad)](_0x51f1e0);}[_0x3d9146(0x9c)](){const _0x32a335=_0x3d9146;this[_0x32a335(0x9b)][_0x32a335(0xaf)]();}[_0x3d9146(0xb1)](){const _0x10b511=_0x3d9146;this[_0x10b511(0x9b)][_0x10b511(0x7c)]();}[_0x3d9146(0xb6)](_0x5840ed,_0xcbf0cf,_0x5b49ce){const _0x585926=_0x3d9146;this[_0x585926(0x9b)][_0x585926(0xb6)](_0x5840ed,_0xcbf0cf,_0x5b49ce);}[_0x3d9146(0xbe)](_0x210660){const _0x382e44=_0x3d9146;this[_0x382e44(0xc5)][_0x382e44(0xbe)](_0x210660);}[_0x3d9146(0xa6)](_0x459daa){const _0x159e33=_0x3d9146;this[_0x159e33(0xc5)][_0x159e33(0xa6)](_0x459daa);}[_0x3d9146(0xa3)](){const _0x4d193e=_0x3d9146;this[_0x4d193e(0xab)][_0x4d193e(0xac)]();}[_0x3d9146(0x7d)](_0x585b39){const _0x5da42e=_0x3d9146;this[_0x5da42e(0x9b)][_0x5da42e(0x7d)](_0x585b39);}[_0x3d9146(0x83)](_0x1031e0){const _0x2c3d67=_0x3d9146;this[_0x2c3d67(0xab)][_0x2c3d67(0x88)](_0x1031e0);}[_0x3d9146(0xc6)](_0x348720,_0x197546){const _0x22e0d2=_0x3d9146;this[_0x22e0d2(0xc5)][_0x22e0d2(0xc6)](_0x348720,_0x197546);}[_0x3d9146(0xba)](_0x53bc50){const _0x2cbe7b=_0x3d9146;_0x53bc50?(this[_0x2cbe7b(0x96)]=!0x0,this[_0x2cbe7b(0xc5)][_0x2cbe7b(0xba)](_0x53bc50)):this[_0x2cbe7b(0x96)]=!0x1;}[_0x3d9146(0x86)](){const _0x55035e=_0x3d9146;this[_0x55035e(0xc5)][_0x55035e(0x86)]();}[_0x3d9146(0xaa)](_0x1d23ca){const _0x49d83b=_0x3d9146;this[_0x49d83b(0xc5)][_0x49d83b(0xaa)](_0x1d23ca);}[_0x3d9146(0x84)](_0x53dc55,_0x2647a3,_0x81086f,_0x225aa0){const _0x23f025=_0x3d9146;this[_0x23f025(0x9b)][_0x23f025(0x84)](_0x53dc55,_0x2647a3,_0x81086f,_0x225aa0);}[_0x3d9146(0xc7)](_0x7971ae){const _0x52abda=_0x3d9146;this[_0x52abda(0x9b)][_0x52abda(0xc7)](_0x7971ae);}[_0x3d9146(0x7e)](_0x5ecec2=!0x1){const _0x3846e9=_0x3d9146;this[_0x3846e9(0xab)][_0x3846e9(0x8a)](_0x5ecec2);}[_0x3d9146(0xbc)](_0x2b3d85){const _0x2a1b19=_0x3d9146;this[_0x2a1b19(0xab)][_0x2a1b19(0x80)][_0x2a1b19(0xb5)][_0x2a1b19(0xac)](),this[_0x2a1b19(0xab)][_0x2a1b19(0x80)][_0x2a1b19(0xb5)][_0x2a1b19(0x92)]=_0x2b3d85;}}class AIChatModelUnavailableMessageView extends _0x379c5d{constructor(_0x1f8d45){const _0x2c26c5=_0x3d9146;super(_0x1f8d45);const _0x5384ee=new _0x3b4686(_0x1f8d45);_0x5384ee[_0x2c26c5(0xb7)]({'label':_0x373a31(this[_0x2c26c5(0x7f)],_0x2c26c5(0x85)),'withText':!0x0,'class':[_0x2c26c5(0xc3)],'tooltip':''}),_0x5384ee[_0x2c26c5(0xa4)](_0x2c26c5(0x8b))['to'](this,_0x2c26c5(0x89)),this[_0x2c26c5(0x7b)]({'tag':_0x2c26c5(0xa7),'attributes':{'class':['ck',_0x2c26c5(0xc4)]},'children':[{'tag':'p','children':[{'text':_0x373a31(this[_0x2c26c5(0x7f)],_0x2c26c5(0xbf))+'\x20'},_0x5384ee]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xeb7e9a=_0x9550;(function(_0x4e6d77,_0x558649){const _0xeaa08f=_0x9550,_0x3510a6=_0x4e6d77();while(!![]){try{const _0x5a13fc=parseInt(_0xeaa08f(0xf0))/0x1+parseInt(_0xeaa08f(0xf4))/0x2*(-parseInt(_0xeaa08f(0x100))/0x3)+-parseInt(_0xeaa08f(0x135))/0x4+parseInt(_0xeaa08f(0xef))/0x5*(-parseInt(_0xeaa08f(0x111))/0x6)+-parseInt(_0xeaa08f(0x113))/0x7*(-parseInt(_0xeaa08f(0xf1))/0x8)+-parseInt(_0xeaa08f(0x102))/0x9*(-parseInt(_0xeaa08f(0xf8))/0xa)+-parseInt(_0xeaa08f(0x12d))/0xb;if(_0x5a13fc===_0x558649)break;else _0x3510a6['push'](_0x3510a6['shift']());}catch(_0x4072d0){_0x3510a6['push'](_0x3510a6['shift']());}}}(_0x5333,0x753ab));import{CKEditorError as _0x5a5487,logWarning as _0x3d4c8c,scrollAncestorsToShowTarget as _0x4f2585}from'ckeditor5/src/utils.js';import{View as _0x2e96e0}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5d7451}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x11a9ca}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x1e4ec3}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x3cf0a4}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x157382}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0xadd285}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4197f9}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x527628,SKELETON_DEFINITIONS as _0x3340d5}from'../../aicore/ui/aiskeleton.js';function _0x5333(){const _0x4cd24d=['ck-ai-chat__feed','updateSuggestionItem','children','removeItem','loadingMessage','forEach','updateReplyItem','updatePartState','ai-chat-feed-view-item-not-found','extendTemplate','toggleLoadingSkeleton','_createFeedLoader','createCollection','options','startAutoScroll','remove','markAsDone','ck-hidden','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','811690xFyXXm','updateSources','stopAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','stop','parentElement','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','isLoadingSkeletonVisible','242804CysKVR','_bodyCollection','user-message','custom-element','bind','isPending','markItemAsDone','setPartActive','updateWebSources','div','setTemplate','interaction-header','_createFeedItems','span','ck-ai-chat__loader','setSuggestionPartActive','start','destroy','updateSuggestionPartState','20WcJVHe','301818fnWHNc','80qmVBvJ','scrollManager','_createLoaderChildren','1034SCzSbw','scrollToSuggestion','setLoadingMessage','ai-chat-feed-view-item-not-a-reply-item','6576490EzhvOM','_setupTemplate','getPartView','ai-suggestion-reply','ai-chat-feed-view-item-not-a-suggestion-item','addItem','ck-ai-chat__feed__items','locale','2991luFmUo','getItemById','9znXgYo','delegate','updateContent','find','aiFeed','isTrackChangesOn','ck-ai-chat__loader-text','hasItem','render','_createTemplateChildren','set','isVisible','filter','includes','clear','725184GeiMKz','_createSkeletonLoader','457870tuPQgR','map','element','add','bindTemplate','getItemIds','ai-reply'];_0x5333=function(){return _0x4cd24d;};return _0x5333();}import{AISpinnerView as _0x1d9d82}from'../../aicore/ui/aispinner.js';function _0x9550(_0x1ca727,_0x5ee96c){const _0x53334a=_0x5333();return _0x9550=function(_0x955069,_0x14b251){_0x955069=_0x955069-0xeb;let _0x12a80f=_0x53334a[_0x955069];return _0x12a80f;},_0x9550(_0x1ca727,_0x5ee96c);}import{AIChatFeedCustomElementView as _0x193995}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x2e96e0{[_0xeb7e9a(0x11c)];[_0xeb7e9a(0xf2)];[_0xeb7e9a(0x136)];constructor(_0x3c0a8b,_0x3a25d6){const _0x2f196a=_0xeb7e9a;super(_0x3c0a8b),this[_0x2f196a(0x136)]=_0x3a25d6,this[_0x2f196a(0x10c)](_0x2f196a(0x13a),!0x1),this[_0x2f196a(0x10c)](_0x2f196a(0x11e),''),this[_0x2f196a(0x10c)](_0x2f196a(0x134),!0x1),this[_0x2f196a(0x10c)](_0x2f196a(0x107),!0x1),this[_0x2f196a(0x11c)]=this[_0x2f196a(0x126)](),this[_0x2f196a(0x11c)][_0x2f196a(0x103)](..._0x5d7451)['to'](this),this[_0x2f196a(0xf9)]();}[_0xeb7e9a(0x10a)](){const _0x5ec36d=_0xeb7e9a;super[_0x5ec36d(0x10a)](),this[_0x5ec36d(0xf2)]=new _0x4197f9(this[_0x5ec36d(0x115)]);}[_0xeb7e9a(0xed)](){const _0x5bb3ae=_0xeb7e9a;super[_0x5bb3ae(0xed)](),this[_0x5bb3ae(0xf2)][_0x5bb3ae(0xed)]();}[_0xeb7e9a(0x110)](){const _0x2f232f=_0xeb7e9a;this[_0x2f232f(0x11c)][_0x2f232f(0x110)]();}[_0xeb7e9a(0xfd)](_0x365c24,_0x535f3b){const _0x1695ed=_0xeb7e9a;let _0x3bcfaa;return _0x1695ed(0x119)===_0x365c24?_0x3bcfaa=new _0x1e4ec3(this[_0x1695ed(0xff)],_0x535f3b,this[_0x1695ed(0x136)]):_0x1695ed(0xfb)===_0x365c24?(_0x3bcfaa=new _0x11a9ca(this[_0x1695ed(0xff)],_0x535f3b,this[_0x1695ed(0x136)]),_0x3bcfaa[_0x1695ed(0x139)](_0x1695ed(0x107))['to'](this)):_0x3bcfaa=_0x1695ed(0x137)===_0x365c24?new _0x3cf0a4(this[_0x1695ed(0xff)],_0x535f3b,this[_0x1695ed(0x136)]):_0x1695ed(0x140)===_0x365c24?new _0xadd285(this[_0x1695ed(0xff)],_0x535f3b):_0x1695ed(0x138)===_0x365c24?new _0x193995(_0x535f3b):new _0x157382(_0x535f3b),this[_0x1695ed(0x11c)][_0x1695ed(0x116)](_0x3bcfaa),_0x3bcfaa;}async[_0xeb7e9a(0x120)]({id:_0x548313,parsedContent:_0x84967,renderingStrategy:_0x541269,abortSignal:_0x1a3725}){const _0x332444=_0xeb7e9a,_0x24379f=this[_0x332444(0x101)](_0x548313);if(!(_0x24379f instanceof _0x1e4ec3))throw new _0x5a5487(_0x332444(0xf7),null,{'itemView':_0x24379f,'id':_0x548313,'parsedContent':_0x84967});await _0x24379f[_0x332444(0x104)]({'parsedContent':_0x84967,'renderingStrategy':_0x541269,'abortSignal':_0x1a3725});}async[_0xeb7e9a(0x13d)](_0x3b0d0d,_0x21aec7){const _0x5cd623=_0xeb7e9a,_0x4737c0=this[_0x5cd623(0x101)](_0x3b0d0d);if(_0x4737c0 instanceof _0x11a9ca)_0x4737c0[_0x5cd623(0x12e)](_0x21aec7);else{if(!(_0x4737c0 instanceof _0x1e4ec3))throw new _0x5a5487(_0x5cd623(0x130),null,{'itemView':_0x4737c0,'id':_0x3b0d0d,'sources':_0x21aec7});_0x4737c0[_0x5cd623(0x12e)](_0x21aec7);}}async[_0xeb7e9a(0x11b)]({id:_0x337c53,parts:_0x3fa884,renderingStrategy:_0x22654d,abortSignal:_0x5d7931}){const _0x3cec04=_0xeb7e9a,_0xa37983=this[_0x3cec04(0x101)](_0x337c53);if(!(_0xa37983 instanceof _0x11a9ca))throw new _0x5a5487(_0x3cec04(0xfc),null,{'itemView':_0xa37983,'id':_0x337c53,'parts':_0x3fa884});await _0xa37983[_0x3cec04(0x104)]({'parts':_0x3fa884,'renderingStrategy':_0x22654d,'abortSignal':_0x5d7931});}[_0xeb7e9a(0xee)]({id:_0x1275c4,index:_0x5687ed,state:_0x3dcbf4}){const _0x3bb591=_0xeb7e9a,_0x1ea752=this[_0x3bb591(0x101)](_0x1275c4);if(!(_0x1ea752 instanceof _0x11a9ca))throw new _0x5a5487(_0x3bb591(0xfc),this,{'id':_0x1275c4});_0x1ea752[_0x3bb591(0x121)](_0x5687ed,_0x3dcbf4);}[_0xeb7e9a(0xeb)]({id:_0x5b8507,index:_0x140b5d,isActive:_0x341633}){const _0x585d19=_0xeb7e9a,_0x253c15=this[_0x585d19(0x101)](_0x5b8507);if(!(_0x253c15 instanceof _0x11a9ca))throw new _0x5a5487(_0x585d19(0xfc),this,{'id':_0x5b8507});this[_0x585d19(0x11c)][_0x585d19(0x10e)](_0x4ab29d=>_0x4ab29d instanceof _0x11a9ca)[_0x585d19(0x11f)](_0x43bc18=>{const _0x27d5f3=_0x585d19;_0x43bc18[_0x27d5f3(0x13c)](!0x1);}),_0x253c15[_0x585d19(0x13c)](_0x140b5d,_0x341633);}[_0xeb7e9a(0x13b)](_0x55b554){const _0xdc9c4e=_0xeb7e9a;this[_0xdc9c4e(0x101)](_0x55b554)[_0xdc9c4e(0x12a)]();}[_0xeb7e9a(0x118)](){const _0x2a602b=_0xeb7e9a;return this[_0x2a602b(0x11c)][_0x2a602b(0x114)](_0x4510aa=>_0x4510aa[_0x2a602b(0x127)]['id']);}[_0xeb7e9a(0x11d)](_0x37641b){const _0x295369=_0xeb7e9a;this[_0x295369(0x11c)][_0x295369(0x129)](this[_0x295369(0x101)](_0x37641b));}[_0xeb7e9a(0x109)](_0x73e74d){const _0x51b95f=_0xeb7e9a;return!!this[_0x51b95f(0x11c)][_0x51b95f(0x105)](_0x4e3a7e=>_0x4e3a7e[_0x51b95f(0x127)]['id'][_0x51b95f(0x10f)](_0x73e74d));}[_0xeb7e9a(0xf5)](_0x3354b4,_0x2fec23){const _0x2616be=_0xeb7e9a,_0x51bef3=this[_0x2616be(0x101)](_0x3354b4);if(!(_0x51bef3 instanceof _0x11a9ca))return void _0x3d4c8c(_0x2616be(0x133),{'replyId':_0x3354b4,'partIndex':_0x2fec23});const _0x10b6f2=_0x51bef3[_0x2616be(0xfa)](_0x2fec23);_0x10b6f2?_0x4f2585(_0x10b6f2[_0x2616be(0x115)],0x14,this[_0x2616be(0x115)][_0x2616be(0x132)],!0x0,!0x0):_0x3d4c8c(_0x2616be(0x12c),{'replyId':_0x3354b4,'partIndex':_0x2fec23});}[_0xeb7e9a(0xf9)](){const _0x268c82=_0xeb7e9a;this[_0x268c82(0x13f)]({'tag':_0x268c82(0x13e),'attributes':{'class':['ck',_0x268c82(0x11a)]},'children':this[_0x268c82(0x10b)]()});}[_0xeb7e9a(0x10b)](){const _0x36b9d8=_0xeb7e9a,_0x58e8d8=this[_0x36b9d8(0x112)]();return[this[_0x36b9d8(0x141)](),_0x58e8d8,this[_0x36b9d8(0x125)]()];}[_0xeb7e9a(0x112)](){const _0x5d5c58=_0xeb7e9a,_0x3f1277=new _0x527628(this[_0x5d5c58(0xff)],_0x3340d5[_0x5d5c58(0x106)]);return _0x3f1277[_0x5d5c58(0x123)]({'attributes':{'class':[this[_0x5d5c58(0x117)]['if'](_0x5d5c58(0x134),_0x5d5c58(0x12b),_0x2d4014=>!_0x2d4014)]}}),_0x3f1277;}[_0xeb7e9a(0x141)](){const _0x50193c=_0xeb7e9a,_0x578cd9=new _0x2e96e0(this[_0x50193c(0xff)]);return _0x578cd9[_0x50193c(0x13f)]({'tag':_0x50193c(0x13e),'attributes':{'class':['ck',_0x50193c(0xfe),this[_0x50193c(0x117)]['if'](_0x50193c(0x134),_0x50193c(0x12b))]},'children':this[_0x50193c(0x11c)]}),_0x578cd9;}[_0xeb7e9a(0x125)](){const _0x1bfec7=_0xeb7e9a,_0x16e29f=new _0x2e96e0(this[_0x1bfec7(0xff)]);return _0x16e29f[_0x1bfec7(0x13f)]({'tag':_0x1bfec7(0x13e),'attributes':{'class':['ck',_0x1bfec7(0x143),this[_0x1bfec7(0x117)]['if'](_0x1bfec7(0x13a),_0x1bfec7(0x12b),_0x2bbbcd=>!_0x2bbbcd)]},'children':this[_0x1bfec7(0xf3)]()}),_0x16e29f;}[_0xeb7e9a(0xf3)](){const _0x4c8ffb=_0xeb7e9a,_0x35b8a3=new _0x1d9d82();return _0x35b8a3[_0x4c8ffb(0x10d)]=!0x0,[_0x35b8a3,{'tag':_0x4c8ffb(0x142),'attributes':{'class':['ck',_0x4c8ffb(0x108)]},'children':[{'text':this[_0x4c8ffb(0x117)]['to'](_0x4c8ffb(0x11e))}]}];}[_0xeb7e9a(0x101)](_0x3e3054){const _0x1291f8=_0xeb7e9a,_0x27cd31=this[_0x1291f8(0x11c)][_0x1291f8(0x105)](_0x566b89=>_0x566b89[_0x1291f8(0x127)]['id'][_0x1291f8(0x10f)](_0x3e3054));if(!_0x27cd31)throw new _0x5a5487(_0x1291f8(0x122),this,{'id':_0x3e3054});return _0x27cd31;}[_0xeb7e9a(0xf6)](_0x8172ea){const _0x3e6134=_0xeb7e9a;this[_0x3e6134(0x10c)](_0x3e6134(0x11e),_0x8172ea);}[_0xeb7e9a(0x124)](_0x3819bf){const _0x26f100=_0xeb7e9a;this[_0x26f100(0x10c)](_0x26f100(0x134),_0x3819bf);}[_0xeb7e9a(0x128)](){const _0x3ae67f=_0xeb7e9a;this[_0x3ae67f(0xf2)][_0x3ae67f(0xec)]();}[_0xeb7e9a(0x12f)](){const _0x2e9b5c=_0xeb7e9a;this[_0x2e9b5c(0xf2)][_0x2e9b5c(0x131)]();}}
|
|
23
|
+
const _0x2d872a=_0x289f;(function(_0x3248dd,_0x4d28e9){const _0x32113b=_0x289f,_0xfef1c7=_0x3248dd();while(!![]){try{const _0x145d21=-parseInt(_0x32113b(0x11a))/0x1+-parseInt(_0x32113b(0xcf))/0x2+parseInt(_0x32113b(0xd9))/0x3*(-parseInt(_0x32113b(0xe0))/0x4)+-parseInt(_0x32113b(0xd4))/0x5+parseInt(_0x32113b(0xdc))/0x6+-parseInt(_0x32113b(0x111))/0x7+-parseInt(_0x32113b(0xcc))/0x8*(-parseInt(_0x32113b(0xd6))/0x9);if(_0x145d21===_0x4d28e9)break;else _0xfef1c7['push'](_0xfef1c7['shift']());}catch(_0x220cd9){_0xfef1c7['push'](_0xfef1c7['shift']());}}}(_0x5d4e,0x2fe68));function _0x289f(_0x3b55ef,_0x5b5633){const _0x5d4ee2=_0x5d4e();return _0x289f=function(_0x289fcc,_0x344c28){_0x289fcc=_0x289fcc-0xcc;let _0x2ee191=_0x5d4ee2[_0x289fcc];return _0x2ee191;},_0x289f(_0x3b55ef,_0x5b5633);}import{CKEditorError as _0x1dd03e,logWarning as _0x80664a,scrollAncestorsToShowTarget as _0x6592}from'ckeditor5/src/utils.js';import{View as _0x255245}from'ckeditor5/src/ui.js';function _0x5d4e(){const _0x2a4c2c=['locale','bindTemplate','markItemAsDone','212188fYwvQj','render','ck-ai-chat__loader','custom-element','_createTemplateChildren','ai-chat-feed-view-item-not-a-reply-item','setLoadingMessage','markAsDone','delegate','10037448NtPOdw','find','ai-suggestion-reply','564304svclGp','updateSuggestionPartState','isLoadingSkeletonVisible','startAutoScroll','_setupTemplate','528185DOCbGr','updatePartState','9wlKkBK','setPartActive','_createLoaderChildren','757419ZlQZgY','scrollToSuggestion','destroy','298044rxpWwg','updateWebSources','isTrackChangesOn','ai-chat-feed-view-item-not-a-suggestion-item','4BNxccb','_createFeedItems','aiFeed','updateSuggestionItem','hasItem','getItemIds','createCollection','updateReplyItem','element','setTemplate','stopAutoScroll','span','set','parentElement','ck-ai-chat__feed__items','_createFeedLoader','updateSources','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','map','removeItem','start','addItem','stop','getItemById','ck-hidden','ck-ai-chat__loader-text','_createSkeletonLoader','div','filter','loadingMessage','clear','ai-chat-feed-view-item-not-found','setSuggestionPartActive','scrollManager','isPending','toggleLoadingSkeleton','user-message','isVisible','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','children','add','ai-reply','_bodyCollection','remove','forEach','interaction-header','updateContent','ck-ai-chat__feed','1789935TxcoYd','bind','options','includes','getPartView','extendTemplate'];_0x5d4e=function(){return _0x2a4c2c;};return _0x5d4e();}import{AI_CHAT_UI_EVENT_NAMES as _0x2fd25c}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x56226a}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3edcb9}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x2c910c}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x551d20}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x236cb5}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x501dcf}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x503328,SKELETON_DEFINITIONS as _0x32310c}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x304045}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x51de38}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x255245{[_0x2d872a(0x108)];[_0x2d872a(0x102)];[_0x2d872a(0x10b)];constructor(_0x206f6d,_0x1f26f7){const _0x5907aa=_0x2d872a;super(_0x206f6d),this[_0x5907aa(0x10b)]=_0x1f26f7,this[_0x5907aa(0xec)](_0x5907aa(0x103),!0x1),this[_0x5907aa(0xec)](_0x5907aa(0xfe),''),this[_0x5907aa(0xec)](_0x5907aa(0xd1),!0x1),this[_0x5907aa(0xec)](_0x5907aa(0xde),!0x1),this[_0x5907aa(0x108)]=this[_0x5907aa(0xe6)](),this[_0x5907aa(0x108)][_0x5907aa(0x122)](..._0x2fd25c)['to'](this),this[_0x5907aa(0xd3)]();}[_0x2d872a(0x11b)](){const _0x42925c=_0x2d872a;super[_0x42925c(0x11b)](),this[_0x42925c(0x102)]=new _0x501dcf(this[_0x42925c(0xe8)]);}[_0x2d872a(0xdb)](){const _0x4b2849=_0x2d872a;super[_0x4b2849(0xdb)](),this[_0x4b2849(0x102)][_0x4b2849(0xdb)]();}[_0x2d872a(0xff)](){const _0x49795e=_0x2d872a;this[_0x49795e(0x108)][_0x49795e(0xff)]();}[_0x2d872a(0xf6)](_0x21409b,_0x592dc5){const _0xd8860=_0x2d872a;let _0x20a6d6;return _0xd8860(0x10a)===_0x21409b?_0x20a6d6=new _0x3edcb9(this[_0xd8860(0x117)],_0x592dc5,this[_0xd8860(0x10b)]):_0xd8860(0xce)===_0x21409b?(_0x20a6d6=new _0x56226a(this[_0xd8860(0x117)],_0x592dc5,this[_0xd8860(0x10b)]),_0x20a6d6[_0xd8860(0x112)](_0xd8860(0xde))['to'](this)):_0x20a6d6=_0xd8860(0x105)===_0x21409b?new _0x2c910c(this[_0xd8860(0x117)],_0x592dc5,this[_0xd8860(0x10b)]):_0xd8860(0x10e)===_0x21409b?new _0x236cb5(this[_0xd8860(0x117)],_0x592dc5):_0xd8860(0x11d)===_0x21409b?new _0x51de38(_0x592dc5):new _0x551d20(_0x592dc5),this[_0xd8860(0x108)][_0xd8860(0x109)](_0x20a6d6),_0x20a6d6;}async[_0x2d872a(0xe7)]({id:_0x553da4,parsedContent:_0x396d31,renderingStrategy:_0x5c6865,abortSignal:_0x3f4d99}){const _0x5df601=_0x2d872a,_0x167e68=this[_0x5df601(0xf8)](_0x553da4);if(!(_0x167e68 instanceof _0x3edcb9))throw new _0x1dd03e(_0x5df601(0x11f),null,{'itemView':_0x167e68,'id':_0x553da4,'parsedContent':_0x396d31});await _0x167e68[_0x5df601(0x10f)]({'parsedContent':_0x396d31,'renderingStrategy':_0x5c6865,'abortSignal':_0x3f4d99});}async[_0x2d872a(0xdd)](_0x2b1f6c,_0x5e021f){const _0x37e222=_0x2d872a,_0x4e05f6=this[_0x37e222(0xf8)](_0x2b1f6c);if(_0x4e05f6 instanceof _0x56226a)_0x4e05f6[_0x37e222(0xf0)](_0x5e021f);else{if(!(_0x4e05f6 instanceof _0x3edcb9))throw new _0x1dd03e(_0x37e222(0x107),null,{'itemView':_0x4e05f6,'id':_0x2b1f6c,'sources':_0x5e021f});_0x4e05f6[_0x37e222(0xf0)](_0x5e021f);}}async[_0x2d872a(0xe3)]({id:_0x33e33e,parts:_0x2c3d75,renderingStrategy:_0x28a00c,abortSignal:_0x16d7aa}){const _0x1573aa=_0x2d872a,_0x105433=this[_0x1573aa(0xf8)](_0x33e33e);if(!(_0x105433 instanceof _0x56226a))throw new _0x1dd03e(_0x1573aa(0xdf),null,{'itemView':_0x105433,'id':_0x33e33e,'parts':_0x2c3d75});await _0x105433[_0x1573aa(0x10f)]({'parts':_0x2c3d75,'renderingStrategy':_0x28a00c,'abortSignal':_0x16d7aa});}[_0x2d872a(0xd0)]({id:_0x55bb55,index:_0x377d9d,state:_0x456576}){const _0x378c32=_0x2d872a,_0xab4710=this[_0x378c32(0xf8)](_0x55bb55);if(!(_0xab4710 instanceof _0x56226a))throw new _0x1dd03e(_0x378c32(0xdf),this,{'id':_0x55bb55});_0xab4710[_0x378c32(0xd5)](_0x377d9d,_0x456576);}[_0x2d872a(0x101)]({id:_0x43ed14,index:_0x451cd4,isActive:_0x388402}){const _0x1dabdf=_0x2d872a,_0x41fa19=this[_0x1dabdf(0xf8)](_0x43ed14);if(!(_0x41fa19 instanceof _0x56226a))throw new _0x1dd03e(_0x1dabdf(0xdf),this,{'id':_0x43ed14});this[_0x1dabdf(0x108)][_0x1dabdf(0xfd)](_0x36df7d=>_0x36df7d instanceof _0x56226a)[_0x1dabdf(0x10d)](_0x2d0fd8=>{const _0x5cf91f=_0x1dabdf;_0x2d0fd8[_0x5cf91f(0xd7)](!0x1);}),_0x41fa19[_0x1dabdf(0xd7)](_0x451cd4,_0x388402);}[_0x2d872a(0x119)](_0x2b6b43){const _0x3cbf80=_0x2d872a;this[_0x3cbf80(0xf8)](_0x2b6b43)[_0x3cbf80(0x121)]();}[_0x2d872a(0xe5)](){const _0x9db0a6=_0x2d872a;return this[_0x9db0a6(0x108)][_0x9db0a6(0xf3)](_0x78fee6=>_0x78fee6[_0x9db0a6(0x113)]['id']);}[_0x2d872a(0xf4)](_0xe7a3f6){const _0x3e1ee3=_0x2d872a;this[_0x3e1ee3(0x108)][_0x3e1ee3(0x10c)](this[_0x3e1ee3(0xf8)](_0xe7a3f6));}[_0x2d872a(0xe4)](_0x2cefd4){const _0x575da5=_0x2d872a;return!!this[_0x575da5(0x108)][_0x575da5(0xcd)](_0x1862b1=>_0x1862b1[_0x575da5(0x113)]['id'][_0x575da5(0x114)](_0x2cefd4));}[_0x2d872a(0xda)](_0x17d483,_0x51d159){const _0x370438=_0x2d872a,_0x1802bf=this[_0x370438(0xf8)](_0x17d483);if(!(_0x1802bf instanceof _0x56226a))return void _0x80664a(_0x370438(0xf2),{'replyId':_0x17d483,'partIndex':_0x51d159});const _0x397ab6=_0x1802bf[_0x370438(0x115)](_0x51d159);_0x397ab6?_0x6592(_0x397ab6[_0x370438(0xe8)],0x14,this[_0x370438(0xe8)][_0x370438(0xed)],!0x0,!0x0):_0x80664a(_0x370438(0xf1),{'replyId':_0x17d483,'partIndex':_0x51d159});}[_0x2d872a(0xd3)](){const _0xdff0e9=_0x2d872a;this[_0xdff0e9(0xe9)]({'tag':_0xdff0e9(0xfc),'attributes':{'class':['ck',_0xdff0e9(0x110)]},'children':this[_0xdff0e9(0x11e)]()});}[_0x2d872a(0x11e)](){const _0x202bcf=_0x2d872a,_0x2709cb=this[_0x202bcf(0xfb)]();return[this[_0x202bcf(0xe1)](),_0x2709cb,this[_0x202bcf(0xef)]()];}[_0x2d872a(0xfb)](){const _0x586844=_0x2d872a,_0x46dd34=new _0x503328(this[_0x586844(0x117)],_0x32310c[_0x586844(0xe2)]);return _0x46dd34[_0x586844(0x116)]({'attributes':{'class':[this[_0x586844(0x118)]['if'](_0x586844(0xd1),_0x586844(0xf9),_0x294703=>!_0x294703)]}}),_0x46dd34;}[_0x2d872a(0xe1)](){const _0x377a21=_0x2d872a,_0x2947a6=new _0x255245(this[_0x377a21(0x117)]);return _0x2947a6[_0x377a21(0xe9)]({'tag':_0x377a21(0xfc),'attributes':{'class':['ck',_0x377a21(0xee),this[_0x377a21(0x118)]['if'](_0x377a21(0xd1),_0x377a21(0xf9))]},'children':this[_0x377a21(0x108)]}),_0x2947a6;}[_0x2d872a(0xef)](){const _0x593b2c=_0x2d872a,_0x2e5592=new _0x255245(this[_0x593b2c(0x117)]);return _0x2e5592[_0x593b2c(0xe9)]({'tag':_0x593b2c(0xfc),'attributes':{'class':['ck',_0x593b2c(0x11c),this[_0x593b2c(0x118)]['if'](_0x593b2c(0x103),_0x593b2c(0xf9),_0x170f72=>!_0x170f72)]},'children':this[_0x593b2c(0xd8)]()}),_0x2e5592;}[_0x2d872a(0xd8)](){const _0x41f4c5=_0x2d872a,_0x1ef890=new _0x304045();return _0x1ef890[_0x41f4c5(0x106)]=!0x0,[_0x1ef890,{'tag':_0x41f4c5(0xeb),'attributes':{'class':['ck',_0x41f4c5(0xfa)]},'children':[{'text':this[_0x41f4c5(0x118)]['to'](_0x41f4c5(0xfe))}]}];}[_0x2d872a(0xf8)](_0x57c5be){const _0x24daad=_0x2d872a,_0x4b290f=this[_0x24daad(0x108)][_0x24daad(0xcd)](_0x587e1b=>_0x587e1b[_0x24daad(0x113)]['id'][_0x24daad(0x114)](_0x57c5be));if(!_0x4b290f)throw new _0x1dd03e(_0x24daad(0x100),this,{'id':_0x57c5be});return _0x4b290f;}[_0x2d872a(0x120)](_0x2db144){const _0x4c8a78=_0x2d872a;this[_0x4c8a78(0xec)](_0x4c8a78(0xfe),_0x2db144);}[_0x2d872a(0x104)](_0x140596){const _0x2e842f=_0x2d872a;this[_0x2e842f(0xec)](_0x2e842f(0xd1),_0x140596);}[_0x2d872a(0xd2)](){const _0x4767c1=_0x2d872a;this[_0x4767c1(0x102)][_0x4767c1(0xf5)]();}[_0x2d872a(0xea)](){const _0x18d862=_0x2d872a;this[_0x18d862(0x102)][_0x18d862(0xf7)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x319909=_0x1cca;(function(_0x241dfa,_0x306a60){const _0x4e8b3a=_0x1cca,_0x21c8a3=_0x241dfa();while(!![]){try{const _0x48f019=-parseInt(_0x4e8b3a(0xc2))/0x1+-parseInt(_0x4e8b3a(0xb2))/0x2*(parseInt(_0x4e8b3a(0xc3))/0x3)+-parseInt(_0x4e8b3a(0xba))/0x4+parseInt(_0x4e8b3a(0xbb))/0x5*(parseInt(_0x4e8b3a(0xb7))/0x6)+parseInt(_0x4e8b3a(0xb5))/0x7+-parseInt(_0x4e8b3a(0xc1))/0x8+parseInt(_0x4e8b3a(0xb1))/0x9;if(_0x48f019===_0x306a60)break;else _0x21c8a3['push'](_0x21c8a3['shift']());}catch(_0x56fae4){_0x21c8a3['push'](_0x21c8a3['shift']());}}}(_0x5082,0x54c85));import{ButtonView as _0xcd830f,FormHeaderView as _0x4de799}from'ckeditor5/src/ui.js';function _0x1cca(_0x1a1629,_0x3ebfa3){const _0x508201=_0x5082();return _0x1cca=function(_0x1ccadf,_0x46ba3c){_0x1ccadf=_0x1ccadf-0xac;let _0x5ee1e0=_0x508201[_0x1ccadf];return _0x5ee1e0;},_0x1cca(_0x1a1629,_0x3ebfa3);}import{IconPlus as _0x88bc85,IconAIChat as _0x1baca2}from'ckeditor5/src/icons.js';import{getTranslation as _0x498329}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x5edc22}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';function _0x5082(){const _0x5ae2ce=['3895213GtWqCI','startConversation','261204eYRHDF','conversationStartButton','fire','1001544bfVpUM','25JEYaSg','locale','ck-ai-header\x20ck-ai-header_chat','isMaximized','set','AI_CHAT_LABEL_NEW_CHAT','244208wynfRc','151967nLRkJr','79320mAErza','ck-ai-chat__start-conversation','AI_CHAT_HEADING','children','add','_createStartConversationButton','3147651Lpkzbu','26nRGDUX','resizeButton','execute'];_0x5082=function(){return _0x5ae2ce;};return _0x5082();}export class AIChatHeaderView extends _0x4de799{[_0x319909(0xb8)];[_0x319909(0xb3)];constructor(_0x19836a,_0x128533){const _0x7be160=_0x319909;super(_0x19836a,{'label':_0x498329(_0x19836a,_0x7be160(0xad)),'class':_0x7be160(0xbd),'icon':_0x1baca2}),this[_0x7be160(0xbf)](_0x7be160(0xbe),!0x1),this[_0x7be160(0xb8)]=this[_0x7be160(0xb0)](_0x19836a),this[_0x7be160(0xae)][_0x7be160(0xaf)](this[_0x7be160(0xb8)]),_0x128533&&(this[_0x7be160(0xb3)]=_0x5edc22(_0x19836a,this),this[_0x7be160(0xae)][_0x7be160(0xaf)](this[_0x7be160(0xb3)]));}[_0x319909(0xb0)](_0x256e12){const _0x46b1a1=_0x319909,_0x471ac4=new _0xcd830f(_0x256e12);return _0x471ac4[_0x46b1a1(0xbf)]({'label':_0x498329(this[_0x46b1a1(0xbc)],_0x46b1a1(0xc0)),'withText':!0x0,'icon':_0x88bc85,'class':_0x46b1a1(0xac)}),_0x471ac4['on'](_0x46b1a1(0xb4),()=>{const _0x5930e2=_0x46b1a1;this[_0x5930e2(0xb9)](_0x5930e2(0xb6));}),_0x471ac4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3deab7=_0x1120;function _0x1120(_0x1be7f6,_0x5e582e){var _0x8ef35c=_0x8ef3();return _0x1120=function(_0x112051,_0x34a62a){_0x112051=_0x112051-0x136;var _0x32f30d=_0x8ef35c[_0x112051];return _0x32f30d;},_0x1120(_0x1be7f6,_0x5e582e);}(function(_0x463a47,_0x2f6c15){var _0x324880=_0x1120,_0x2da4dc=_0x463a47();while(!![]){try{var _0x2e9706=parseInt(_0x324880(0x136))/0x1*(-parseInt(_0x324880(0x151))/0x2)+-parseInt(_0x324880(0x13e))/0x3+parseInt(_0x324880(0x139))/0x4+-parseInt(_0x324880(0x14d))/0x5+-parseInt(_0x324880(0x13d))/0x6+parseInt(_0x324880(0x149))/0x7*(parseInt(_0x324880(0x146))/0x8)+parseInt(_0x324880(0x143))/0x9;if(_0x2e9706===_0x2f6c15)break;else _0x2da4dc['push'](_0x2da4dc['shift']());}catch(_0x182d36){_0x2da4dc['push'](_0x2da4dc['shift']());}}}(_0x8ef3,0x1aded));import{View as _0x2a221c,BodyCollection as _0x35a8a9}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x223b0b}from'../utils/eventnames.js';import{AIChatFeedView as _0x34ea02}from'./aichatfeedview.js';function _0x8ef3(){var _0x313141=['contextResourcesSearchInputVisibleFrom','_bodyCollection','ck-ai-chat','chatDisclaimer','5145435AYGUIe','chatHeader','closeSourceResourceBalloon','490520jhgrcg','destroy','ck-rounded-corners','7ocSUgH','chatControls','attachToDom','delegate','1070990Bqnsmz','detachFromDom','div','showResizeButton','71194ZFdcfK','4WMLLTO','setTemplate','ck-reset_all','302000QZnhFI','uiLanguageDirection','populateSourceResourceBalloon','chatFeed','1295550caYlUP','77874qvtQkp'];_0x8ef3=function(){return _0x313141;};return _0x8ef3();}import{AIChatControlsView as _0x18612d}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x38f961}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5c7645}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x2a221c{[_0x3deab7(0x144)];[_0x3deab7(0x13c)];[_0x3deab7(0x14a)];[_0x3deab7(0x142)];[_0x3deab7(0x140)];constructor(_0x4e68a8,_0x54aff9){var _0x239191=_0x3deab7;super(_0x4e68a8),this[_0x239191(0x140)]=new _0x35a8a9(_0x4e68a8),this[_0x239191(0x140)][_0x239191(0x14b)](),this[_0x239191(0x144)]=new _0x38f961(_0x4e68a8,_0x54aff9[_0x239191(0x150)]),this[_0x239191(0x144)][_0x239191(0x14c)](..._0x223b0b)['to'](this),this[_0x239191(0x13c)]=new _0x34ea02(_0x4e68a8,this[_0x239191(0x140)]),this[_0x239191(0x13c)][_0x239191(0x14c)](..._0x223b0b)['to'](this),this[_0x239191(0x14a)]=new _0x18612d(_0x4e68a8,{'bodyCollection':this[_0x239191(0x140)],'contextResourcesSearchInputVisibleFrom':_0x54aff9[_0x239191(0x13f)]}),this[_0x239191(0x14a)][_0x239191(0x14c)](..._0x223b0b)['to'](this),this[_0x239191(0x142)]=new _0x5c7645(_0x4e68a8),this[_0x239191(0x137)]({'tag':_0x239191(0x14f),'attributes':{'class':['ck',_0x239191(0x138),_0x239191(0x141),_0x239191(0x148)],'dir':_0x4e68a8[_0x239191(0x13a)]},'children':[this[_0x239191(0x144)],this[_0x239191(0x13c)],this[_0x239191(0x14a)],this[_0x239191(0x142)]]});}[_0x3deab7(0x13b)](_0xbde28f,_0x32ea4b,_0x5ed5ed,_0x1cb838){var _0x37a6b2=_0x3deab7;this[_0x37a6b2(0x14a)][_0x37a6b2(0x13b)](_0xbde28f,_0x32ea4b,_0x5ed5ed,_0x1cb838);}[_0x3deab7(0x145)](_0x2c78d2){var _0x54d8a6=_0x3deab7;this[_0x54d8a6(0x14a)][_0x54d8a6(0x145)](_0x2c78d2);}[_0x3deab7(0x147)](){var _0x4f2517=_0x3deab7;this[_0x4f2517(0x140)][_0x4f2517(0x14e)](),super[_0x4f2517(0x147)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x453c3a=_0x5291;(function(_0x49fd3f,_0x28fec9){const _0x31ac17=_0x5291,_0x52100b=_0x49fd3f();while(!![]){try{const _0x1edcdf=-parseInt(_0x31ac17(0x91))/0x1+parseInt(_0x31ac17(0xbf))/0x2*(-parseInt(_0x31ac17(0x11c))/0x3)+parseInt(_0x31ac17(0x92))/0x4+-parseInt(_0x31ac17(0xf4))/0x5+-parseInt(_0x31ac17(0x98))/0x6+parseInt(_0x31ac17(0xc2))/0x7*(-parseInt(_0x31ac17(0xdb))/0x8)+parseInt(_0x31ac17(0xc3))/0x9*(parseInt(_0x31ac17(0xf3))/0xa);if(_0x1edcdf===_0x28fec9)break;else _0x52100b['push'](_0x52100b['shift']());}catch(_0x4443e5){_0x52100b['push'](_0x52100b['shift']());}}}(_0x49d4,0xa73e3));import{View as _0x5baf8c,BalloonPanelView as _0x27f859,ButtonView as _0x5a93d3,clickOutsideHandler as _0x2457dc}from'ckeditor5/src/ui.js';function _0x5291(_0x8f7b53,_0x23260d){const _0x49d4c3=_0x49d4();return _0x5291=function(_0x529154,_0x50f386){_0x529154=_0x529154-0x91;let _0x237be3=_0x49d4c3[_0x529154];return _0x237be3;},_0x5291(_0x8f7b53,_0x23260d);}import{Collection as _0x1bdd6e}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x453c3a(0x10b);function _0x49d4(){const _0x4c2497=['visible\x20!important','_createContainerElements','205354KXZuiq','3088772dcgNrl','showMoreLabelPrefix','absolute','parentElement','controlsButton','clear','6625632IhViTw','_testButtonFit','_ancestorsToRestore','clientHeight','_checkAndHandleOverflow','isVisible','maxVisibleRows','from','cssClasses','disconnect','some','_renderChipsAndCountRows','_distributeChips','children','documentElement','showBalloonPanel','_restoreAncestorVisibility','_calculateOverflowInContainer','pin','execute','toLowerCase','cloneNode','_config','button','_createMockButton','_repinBalloonPanel','_findTargetContainer','block','_updateBalloonContent','_setupVisibilityObserver','reorganizeChips','_pendingCalculation','className','getComputedStyle','overflowChips','undefined','hideBalloonPanel','abs','_visibleChips','611410HgmfuR','innerWidth','_applyCalculationStyles','161eIuXzs','9SPDqrZ','render','push','overflowContainer','innerHeight','visibility','label','style','pop','show','_bodyCollection','clientWidth','position','showMoreButtonView','-9999px','pointerEvents','_parentView','observe','length','showMoreBalloon','set','_overflowChips','isIntersecting','_makeAncestorsVisible','391400wcWPUc','destroy','_targetContainer','height','_intersectionObserver','body','extendTemplate','includes','_showMoreButtonView','_updateShowMoreButtonVisibility','_createShowMoreButton','+\x201','boxSizing','calculationContainer','offsetWidth','_calculateContainerWidth','left','appendChild','setTemplate','display','rowDetectionTolerance','querySelector','border-box','_containerElement','38466970QBAive','5966285PtvLAk','tagName','visible','none','hidden','classList','auto','50px','isOn','createElement','opacity','_updateOverflowUI','right','innerHTML','add','_showMoreBalloonPanelView','forEach','_isContainerVisible','top','zIndex','isConnected','slice','_createShowMoreBalloonPanelView','300px','_createShowMoreButtonView','_applyOverflowResults','width','remove','0px','block\x20!important','.ck-ai-chat','showMoreButton','_locale','_createCalculationContainer','textContent','ck-calculation-container','element','setContainerElement','disableAnimationOnEnter','_handleShowMoreButtonClick','3KGmqRV','bottom','hide','getBoundingClientRect','content','filter','div'];_0x49d4=function(){return _0x4c2497;};return _0x49d4();}export class AIChatChipsOverflowManager{[_0x453c3a(0x114)];[_0x453c3a(0xae)];[_0x453c3a(0xbe)];[_0x453c3a(0xd8)];[_0x453c3a(0xe3)]=null;[_0x453c3a(0x103)]=null;[_0x453c3a(0xf2)]=null;[_0x453c3a(0xcd)];[_0x453c3a(0xd3)]=null;[_0x453c3a(0xdf)]=null;[_0x453c3a(0xb7)]=!0x1;constructor(_0x1b2ad7,_0x197388,_0x3d9bb9,_0x23c5f9,_0x4d8a3f){const _0x126690=_0x453c3a;this[_0x126690(0x114)]=_0x1b2ad7,this[_0x126690(0xbe)]=_0x197388,this[_0x126690(0xae)]={...hn,..._0x3d9bb9,'cssClasses':{'controlsButton':'','calculationContainer':_0x126690(0x117),..._0x3d9bb9[_0x126690(0xa0)]}},this[_0x126690(0xd8)]=new _0x1bdd6e(),this[_0x126690(0xcd)]=_0x23c5f9,this[_0x126690(0xd3)]=_0x4d8a3f||null;}[_0x453c3a(0x119)](_0x1d9b6e){const _0x4aac1e=_0x453c3a;this[_0x4aac1e(0xdf)]&&(this[_0x4aac1e(0xdf)][_0x4aac1e(0xa1)](),this[_0x4aac1e(0xdf)]=null),this[_0x4aac1e(0xf2)]=_0x1d9b6e,this[_0x4aac1e(0xb5)]();}get[_0x453c3a(0xd0)](){const _0x244b41=_0x453c3a;return this[_0x244b41(0xe3)];}get[_0x453c3a(0xba)](){const _0x7b3b93=_0x453c3a;return this[_0x7b3b93(0xd8)];}[_0x453c3a(0xb6)](){requestAnimationFrame(()=>{const _0x26047e=_0x5291;this[_0x26047e(0x9c)]();});}[_0x453c3a(0xa7)](){const _0x415b5e=_0x453c3a;this[_0x415b5e(0xe3)]&&this[_0x415b5e(0x103)]&&(this[_0x415b5e(0xb4)](),this[_0x415b5e(0xe3)][_0x415b5e(0xfc)]=!0x0,this[_0x415b5e(0x103)][_0x415b5e(0xcc)](),this[_0x415b5e(0x103)][_0x415b5e(0xaa)]({'target':this[_0x415b5e(0xe3)][_0x415b5e(0x118)],'limiter':document[_0x415b5e(0xf0)](_0x415b5e(0x112))}));}[_0x453c3a(0xbc)](){const _0x42b8e9=_0x453c3a;this[_0x42b8e9(0xe3)]&&this[_0x42b8e9(0x103)]&&(this[_0x42b8e9(0xe3)][_0x42b8e9(0xfc)]=!0x1,this[_0x42b8e9(0x103)][_0x42b8e9(0x11e)]());}[_0x453c3a(0x97)](){const _0x306611=_0x453c3a;this[_0x306611(0xd8)][_0x306611(0x97)](),this[_0x306611(0xbc)](),this[_0x306611(0xe4)](),this[_0x306611(0xe3)]&&(this[_0x306611(0xe3)][_0x306611(0xc9)]=''),this[_0x306611(0x103)]&&this[_0x306611(0x103)][_0x306611(0x120)][_0x306611(0x97)]();}[_0x453c3a(0xdc)](){const _0x56876b=_0x453c3a;this[_0x56876b(0xdf)]&&(this[_0x56876b(0xdf)][_0x56876b(0xa1)](),this[_0x56876b(0xdf)]=null),this[_0x56876b(0xe3)]&&(this[_0x56876b(0xe3)][_0x56876b(0xdc)](),this[_0x56876b(0xe3)]=null),this[_0x56876b(0x103)]&&(this[_0x56876b(0x103)][_0x56876b(0xdc)](),this[_0x56876b(0x103)]=null);}[_0x453c3a(0x9c)](){const _0x117b49=_0x453c3a;if(!this[_0x117b49(0xf2)])return;if(!this[_0x117b49(0x105)]())return void(this[_0x117b49(0xb7)]=!0x0);this[_0x117b49(0xb7)]=!0x1;const _0x282b21=[...this[_0x117b49(0xbe)],...this[_0x117b49(0xd8)]],_0x342eeb=this[_0x117b49(0x115)](),_0x204771=this[_0x117b49(0xa9)](_0x342eeb,_0x282b21),_0x5bb122=_0x342eeb[_0x117b49(0x9a)];_0x5bb122&&this[_0x117b49(0xa8)](_0x5bb122),_0x342eeb[_0x117b49(0x10f)](),this[_0x117b49(0x10d)](_0x282b21,_0x204771);}[_0x453c3a(0xe5)](){const _0x42dfde=_0x453c3a;this[_0x42dfde(0xe3)]=this[_0x42dfde(0x10c)](),this[_0x42dfde(0x103)]=this[_0x42dfde(0x10a)](),this[_0x42dfde(0xe3)][_0x42dfde(0xc4)](),this[_0x42dfde(0xf2)][_0x42dfde(0xec)](this[_0x42dfde(0xe3)][_0x42dfde(0x118)]),this[_0x42dfde(0xe3)]['on'](_0x42dfde(0xab),()=>{const _0x5d5836=_0x42dfde;this[_0x5d5836(0x11b)]();}),_0x2457dc({'emitter':this[_0x42dfde(0x103)],'contextElements':[this[_0x42dfde(0x103)][_0x42dfde(0x118)],this[_0x42dfde(0xe3)][_0x42dfde(0x118)]],'callback':()=>this[_0x42dfde(0xbc)](),'activator':()=>this[_0x42dfde(0xe3)][_0x42dfde(0xfc)]});}[_0x453c3a(0x10c)](){const _0x3731f2=_0x453c3a,_0x97f4f5=new _0x5a93d3(this[_0x3731f2(0x114)]);_0x97f4f5[_0x3731f2(0xd7)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x2020d2=[this[_0x3731f2(0xae)][_0x3731f2(0xa0)][_0x3731f2(0x113)]];return this[_0x3731f2(0xae)][_0x3731f2(0xa0)][_0x3731f2(0x96)]&&_0x2020d2[_0x3731f2(0xc5)](this[_0x3731f2(0xae)][_0x3731f2(0xa0)][_0x3731f2(0x96)]),_0x97f4f5[_0x3731f2(0xe1)]({'attributes':{'class':_0x2020d2}}),_0x97f4f5;}[_0x453c3a(0x10a)](){const _0x51036b=_0x453c3a,_0x1ed04a=new _0x27f859(this[_0x51036b(0x114)]);return _0x1ed04a[_0x51036b(0xe1)]({'attributes':{'class':this[_0x51036b(0xae)][_0x51036b(0xa0)][_0x51036b(0xd6)]}}),this[_0x51036b(0xcd)][_0x51036b(0x102)](_0x1ed04a),_0x1ed04a;}[_0x453c3a(0xb4)](){const _0x3f6d40=_0x453c3a;if(this[_0x3f6d40(0x103)]&&(this[_0x3f6d40(0x103)][_0x3f6d40(0x120)][_0x3f6d40(0x97)](),this[_0x3f6d40(0xd8)][_0x3f6d40(0xd5)]>0x0)){this[_0x3f6d40(0xd8)][_0x3f6d40(0x104)](_0x237349=>{const _0x2c9ab1=_0x3f6d40;_0x237349[_0x2c9ab1(0x11a)]();});const _0x162505=new _0x5baf8c(this[_0x3f6d40(0x114)]);_0x162505[_0x3f6d40(0xed)]({'tag':_0x3f6d40(0x122),'attributes':{'class':this[_0x3f6d40(0xae)][_0x3f6d40(0xa0)][_0x3f6d40(0xc6)]},'children':this[_0x3f6d40(0xd8)]}),this[_0x3f6d40(0x103)][_0x3f6d40(0x120)][_0x3f6d40(0x102)](_0x162505);}}[_0x453c3a(0x11b)](){const _0x2b7112=_0x453c3a;this[_0x2b7112(0xe3)][_0x2b7112(0xfc)]?this[_0x2b7112(0xbc)]():this[_0x2b7112(0xa7)]();}[_0x453c3a(0xe4)](){const _0x50d43d=_0x453c3a,_0xa34590=this[_0x50d43d(0xd8)][_0x50d43d(0xd5)]>0x0;this[_0x50d43d(0xe3)]?.[_0x50d43d(0x118)]&&(this[_0x50d43d(0xe3)][_0x50d43d(0x118)][_0x50d43d(0xca)][_0x50d43d(0xee)]=_0xa34590?'':_0x50d43d(0xf7));}[_0x453c3a(0xb1)](){const _0x58c405=_0x453c3a;this[_0x58c405(0xe3)]?.[_0x58c405(0xfc)]&&this[_0x58c405(0x103)]?.[_0x58c405(0x9d)]&&this[_0x58c405(0xe3)][_0x58c405(0x118)]&&this[_0x58c405(0x103)][_0x58c405(0xaa)]({'target':this[_0x58c405(0xe3)][_0x58c405(0x118)],'limiter':document[_0x58c405(0xf0)](_0x58c405(0x112))});}[_0x453c3a(0xb2)](_0x566487){const _0x58010c=_0x453c3a,_0x568861=this[_0x58010c(0xf2)]?.[_0x58010c(0xf5)][_0x58010c(0xac)]()||_0x58010c(0x122),_0x54f23b=this[_0x58010c(0xf2)]?.[_0x58010c(0xf9)];if(_0x54f23b){const _0x57f60c=_0x54f23b[0x0]||'',_0x55df58=_0x566487[_0x58010c(0xf0)]('.'+_0x57f60c),_0x5d5e10=_0x566487[_0x58010c(0xf0)](_0x568861);return _0x55df58||_0x5d5e10||_0x566487;}return _0x566487[_0x58010c(0xf0)](_0x568861)||_0x566487;}[_0x453c3a(0xea)](){const _0x4217d8=_0x453c3a,_0x3a622a=this[_0x4217d8(0xd3)]?.[_0x4217d8(0x118)]||this[_0x4217d8(0xf2)];if(!_0x3a622a)return an;const _0x50efb6=window[_0x4217d8(0xb9)](_0x3a622a)[_0x4217d8(0x10e)];if(_0x4217d8(0xfa)===_0x50efb6||_0x4217d8(0x110)===_0x50efb6||!_0x50efb6){const _0x27f0e1=_0x3a622a[_0x4217d8(0x95)];if(_0x27f0e1){const _0x3a6074=window[_0x4217d8(0xb9)](_0x27f0e1);return _0x4217d8(0xfa)!==_0x3a6074[_0x4217d8(0x10e)]?_0x3a6074[_0x4217d8(0x10e)]:an;}return an;}return _0x50efb6;}[_0x453c3a(0xc1)](_0x59ce5f,_0x4f73c5){const _0x302db5=_0x453c3a;this[_0x302db5(0xae)][_0x302db5(0xa0)][_0x302db5(0xe8)]&&_0x59ce5f[_0x302db5(0xf9)][_0x302db5(0x102)](this[_0x302db5(0xae)][_0x302db5(0xa0)][_0x302db5(0xe8)]),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0x10e)]=_0x4f73c5,_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xcf)]=_0x302db5(0x94),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0x106)]=_0x302db5(0xd1),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xeb)]=_0x302db5(0xd1),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xfe)]='0',_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xd2)]=_0x302db5(0xf7),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0x107)]='-1',_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xc8)]=_0x302db5(0x123),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xee)]=_0x302db5(0x111),_0x59ce5f[_0x302db5(0xca)][_0x302db5(0xe7)]=_0x302db5(0xf1);}[_0x453c3a(0xa8)](_0x475213){const _0x3b6b53=_0x453c3a;_0x475213[_0x3b6b53(0x104)](({element:_0x322cb7,originalDisplay:_0xc29813,originalVisibility:_0x5d8e12})=>{const _0x176f27=_0x3b6b53;_0x322cb7[_0x176f27(0xca)][_0x176f27(0xee)]=_0xc29813,_0x322cb7[_0x176f27(0xca)][_0x176f27(0xc8)]=_0x5d8e12;});}[_0x453c3a(0xda)](_0x1529f9){const _0x2a69cf=_0x453c3a,_0x5ba0e4=[];let _0x1dafee=_0x1529f9;for(;_0x1dafee&&_0x1dafee!==document[_0x2a69cf(0xe0)];){const _0x36efff=window[_0x2a69cf(0xb9)](_0x1dafee);_0x2a69cf(0xf7)!==_0x36efff[_0x2a69cf(0xee)]&&_0x2a69cf(0xf8)!==_0x36efff[_0x2a69cf(0xc8)]||(_0x5ba0e4[_0x2a69cf(0xc5)]({'element':_0x1dafee,'originalDisplay':_0x1dafee[_0x2a69cf(0xca)][_0x2a69cf(0xee)],'originalVisibility':_0x1dafee[_0x2a69cf(0xca)][_0x2a69cf(0xc8)]}),_0x1dafee[_0x2a69cf(0xca)][_0x2a69cf(0xee)]=_0x2a69cf(0xb3),_0x1dafee[_0x2a69cf(0xca)][_0x2a69cf(0xc8)]=_0x2a69cf(0xf6)),_0x1dafee=_0x1dafee[_0x2a69cf(0x95)];}return _0x5ba0e4;}[_0x453c3a(0x124)](){const _0x579cd5=_0x453c3a;let _0x1d304f,_0x356444;return this[_0x579cd5(0xd3)]?.[_0x579cd5(0x118)]?(_0x1d304f=this[_0x579cd5(0xd3)][_0x579cd5(0x118)][_0x579cd5(0xad)](!0x0),_0x356444=this[_0x579cd5(0xb2)](_0x1d304f)):(_0x1d304f=document[_0x579cd5(0xfd)](_0x579cd5(0x122)),_0x356444=_0x1d304f),{'calculationContainer':_0x1d304f,'targetContainer':_0x356444};}[_0x453c3a(0x115)](){const _0x5eafe4=_0x453c3a,{calculationContainer:_0x237c47,targetContainer:_0x595046}=this[_0x5eafe4(0x124)](),_0x3c42e4=this[_0x5eafe4(0xea)]();this[_0x5eafe4(0xc1)](_0x237c47,_0x3c42e4);const _0x384fc3=this[_0x5eafe4(0xd3)]?.[_0x5eafe4(0x118)]||this[_0x5eafe4(0xf2)],_0x2db055=_0x384fc3?.[_0x5eafe4(0x95)];_0x2db055?_0x2db055[_0x5eafe4(0xec)](_0x237c47):document[_0x5eafe4(0xe0)][_0x5eafe4(0xec)](_0x237c47),_0x237c47[_0x5eafe4(0xdd)]=_0x595046;const _0x33dfe2=this[_0x5eafe4(0xda)](_0x2db055||null);return _0x237c47[_0x5eafe4(0xe9)],_0x237c47[_0x5eafe4(0x9a)]=_0x33dfe2,_0x237c47;}[_0x453c3a(0xa9)](_0x47b533,_0xe26ac){const _0x2ad241=_0x453c3a,_0x4ecdcf=_0x47b533[_0x2ad241(0xdd)]||_0x47b533,_0x5d5875=[],{rowCount:_0x2925aa}=this[_0x2ad241(0xa3)](_0x4ecdcf,_0xe26ac);if(_0x2925aa<=this[_0x2ad241(0xae)][_0x2ad241(0x9e)])return _0x5d5875;const _0x5df2f4=_0xe26ac[_0x2ad241(0x109)]();for(;_0x5df2f4[_0x2ad241(0xd5)]>0x0;){if(this[_0x2ad241(0x99)](_0x47b533,_0x4ecdcf,_0x5df2f4)){const _0x582b35=_0xe26ac[_0x2ad241(0x121)](_0x1a1bfb=>!_0x5df2f4[_0x2ad241(0xe2)](_0x1a1bfb));_0x5d5875[_0x2ad241(0xc5)](..._0x582b35);break;}if(!_0x5df2f4[_0x2ad241(0xcb)]())break;}return _0x5d5875;}[_0x453c3a(0xa3)](_0x405c01,_0x32ef99){const _0x1e4ea2=_0x453c3a;_0x405c01[_0x1e4ea2(0x101)]='',_0x32ef99[_0x1e4ea2(0x104)](_0x1b833e=>{const _0xa5013=_0x1e4ea2;if(_0x1b833e[_0xa5013(0x118)]){const _0x27bf6f=_0x1b833e[_0xa5013(0x118)][_0xa5013(0xad)](!0x0);_0x405c01[_0xa5013(0xec)](_0x27bf6f);}}),_0x405c01[_0x1e4ea2(0xe9)];const _0x215eec=_0x405c01[_0x1e4ea2(0xa5)],_0x5ce0a7=[];return Array[_0x1e4ea2(0x9f)](_0x215eec)[_0x1e4ea2(0x104)](_0x926cfd=>{const _0x3cb87d=_0x1e4ea2,_0x52c87b=_0x926cfd[_0x3cb87d(0x11f)]()[_0x3cb87d(0x106)];_0x5ce0a7[_0x3cb87d(0xa2)](_0x3e1f1e=>Math[_0x3cb87d(0xbd)](_0x3e1f1e-_0x52c87b)<this[_0x3cb87d(0xae)][_0x3cb87d(0xef)])||_0x5ce0a7[_0x3cb87d(0xc5)](_0x52c87b);}),{'rowCount':_0x5ce0a7[_0x1e4ea2(0xd5)]};}[_0x453c3a(0xb0)](){const _0x431cec=_0x453c3a,_0x5afc96=document[_0x431cec(0xfd)](_0x431cec(0xaf));return _0x5afc96[_0x431cec(0xb8)]=this[_0x431cec(0xae)][_0x431cec(0xa0)][_0x431cec(0x113)],this[_0x431cec(0xae)][_0x431cec(0xa0)][_0x431cec(0x96)]&&_0x5afc96[_0x431cec(0xf9)][_0x431cec(0x102)](this[_0x431cec(0xae)][_0x431cec(0xa0)][_0x431cec(0x96)]),_0x5afc96[_0x431cec(0x116)]=_0x431cec(0xe6),_0x5afc96;}[_0x453c3a(0x99)](_0x407d33,_0x47a81a,_0x34fa36){const _0x2257fa=_0x453c3a;this[_0x2257fa(0xa3)](_0x47a81a,_0x34fa36);const _0x2d0b00=this[_0x2257fa(0xb0)]();_0x407d33[_0x2257fa(0xec)](_0x2d0b00),_0x407d33[_0x2257fa(0xe9)];const _0x495419=[..._0x47a81a[_0x2257fa(0xa5)],_0x2d0b00],_0x4f73c8=[];_0x495419[_0x2257fa(0x104)](_0x38e5aa=>{const _0x3340bb=_0x2257fa,_0x4d161d=_0x38e5aa[_0x3340bb(0x11f)]()[_0x3340bb(0x106)];_0x4f73c8[_0x3340bb(0xa2)](_0x5bf957=>Math[_0x3340bb(0xbd)](_0x5bf957-_0x4d161d)<this[_0x3340bb(0xae)][_0x3340bb(0xef)])||_0x4f73c8[_0x3340bb(0xc5)](_0x4d161d);});const _0x1f5434=_0x4f73c8[_0x2257fa(0xd5)];return _0x2d0b00[_0x2257fa(0x10f)](),_0x1f5434<=this[_0x2257fa(0xae)][_0x2257fa(0x9e)];}[_0x453c3a(0xa4)](_0xf2fbd4,_0x48c5f3){const _0x5749bd=_0x453c3a;this[_0x5749bd(0xbe)][_0x5749bd(0x97)](),this[_0x5749bd(0xd8)][_0x5749bd(0x97)](),_0xf2fbd4[_0x5749bd(0x104)](_0x2259e8=>{const _0x31d2d3=_0x5749bd;_0x48c5f3[_0x31d2d3(0xe2)](_0x2259e8)?this[_0x31d2d3(0xd8)][_0x31d2d3(0x102)](_0x2259e8):this[_0x31d2d3(0xbe)][_0x31d2d3(0x102)](_0x2259e8);});}[_0x453c3a(0xff)](_0x51c59e){const _0x1acdfc=_0x453c3a;if(_0x51c59e>0x0&&!this[_0x1acdfc(0xe3)]&&this[_0x1acdfc(0xe5)](),_0x51c59e>0x0&&this[_0x1acdfc(0xe3)]){const _0x3fe000=''+this[_0x1acdfc(0xae)][_0x1acdfc(0x93)]+(_0x51c59e<0x63?_0x51c59e:'99');this[_0x1acdfc(0xe3)][_0x1acdfc(0xc9)]=_0x3fe000;}this[_0x1acdfc(0xb4)](),this[_0x1acdfc(0xe4)](),this[_0x1acdfc(0xb1)]();}[_0x453c3a(0x10d)](_0x5c1bbe,_0x2e800b){const _0x3b974a=_0x453c3a;this[_0x3b974a(0xa4)](_0x5c1bbe,_0x2e800b),this[_0x3b974a(0xff)](_0x2e800b[_0x3b974a(0xd5)]);}[_0x453c3a(0xb5)](){const _0x3131da=_0x453c3a;this[_0x3131da(0xf2)]&&_0x3131da(0xbb)!=typeof IntersectionObserver&&(this[_0x3131da(0xdf)]=new IntersectionObserver(_0x36609a=>{const _0x49ae9f=_0x3131da;_0x36609a[0x0][_0x49ae9f(0xd9)]&&this[_0x49ae9f(0xb7)]&&requestAnimationFrame(()=>{const _0x960f8a=_0x49ae9f;this[_0x960f8a(0x9c)]();});},{'threshold':0.01,'rootMargin':_0x3131da(0xfb)}),this[_0x3131da(0xdf)][_0x3131da(0xd4)](this[_0x3131da(0xf2)]));}[_0x453c3a(0x105)](){const _0x102e0e=_0x453c3a;if(!this[_0x102e0e(0xf2)])return!0x1;if(!this[_0x102e0e(0xf2)][_0x102e0e(0x108)])return!0x1;const _0xe8884c=this[_0x102e0e(0xf2)][_0x102e0e(0x11f)]();if(0x0===_0xe8884c[_0x102e0e(0x10e)]||0x0===_0xe8884c[_0x102e0e(0xde)])return!0x1;const _0x120359=window[_0x102e0e(0xc7)]||document[_0x102e0e(0xa6)][_0x102e0e(0x9b)],_0x52fd64=window[_0x102e0e(0xc0)]||document[_0x102e0e(0xa6)][_0x102e0e(0xce)],_0x840ba8=0xc8;return _0xe8884c[_0x102e0e(0x11d)]>=-0xc8&&_0xe8884c[_0x102e0e(0x106)]<=_0x120359+_0x840ba8&&_0xe8884c[_0x102e0e(0x100)]>=-0xc8&&_0xe8884c[_0x102e0e(0xeb)]<=_0x52fd64+_0x840ba8;}}
|
|
23
|
+
function _0x4795(_0x29cb9f,_0x111cff){const _0x1f6894=_0x1f68();return _0x4795=function(_0x47955f,_0x49230e){_0x47955f=_0x47955f-0x6c;let _0x1b9b3a=_0x1f6894[_0x47955f];return _0x1b9b3a;},_0x4795(_0x29cb9f,_0x111cff);}const _0x36cb7f=_0x4795;(function(_0x5815b3,_0x4c9460){const _0x4f0ca8=_0x4795,_0x1de3c7=_0x5815b3();while(!![]){try{const _0x4f0216=-parseInt(_0x4f0ca8(0x91))/0x1+parseInt(_0x4f0ca8(0xbd))/0x2*(parseInt(_0x4f0ca8(0xfa))/0x3)+parseInt(_0x4f0ca8(0xe6))/0x4+-parseInt(_0x4f0ca8(0x82))/0x5+-parseInt(_0x4f0ca8(0x83))/0x6*(parseInt(_0x4f0ca8(0xb9))/0x7)+parseInt(_0x4f0ca8(0x85))/0x8+-parseInt(_0x4f0ca8(0xb7))/0x9*(-parseInt(_0x4f0ca8(0xc7))/0xa);if(_0x4f0216===_0x4c9460)break;else _0x1de3c7['push'](_0x1de3c7['shift']());}catch(_0x5505aa){_0x1de3c7['push'](_0x1de3c7['shift']());}}}(_0x1f68,0x3e2e1));import{View as _0x5f1800,BalloonPanelView as _0x2c140b,ButtonView as _0x2e2b90,clickOutsideHandler as _0x5c1e8d}from'ckeditor5/src/ui.js';import{Collection as _0x5720a8}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x36cb7f(0x70);function _0x1f68(){const _0x1ecbf0=['_testButtonFit','_checkAndHandleOverflow','clientWidth','setTemplate','offsetWidth','block\x20!important','_updateBalloonContent','_createMockButton','innerWidth','40391CqlIHN','_updateOverflowUI','isOn','destroy','showMoreLabelPrefix','height','_bodyCollection','auto','_createContainerElements','_overflowChips','_pendingCalculation','50px','isIntersecting','div','body','label','getBoundingClientRect','top','abs','_isContainerVisible','observe','visible','_createShowMoreButtonView','visible\x20!important','_updateShowMoreButtonVisibility','.ck-ai-chat','undefined','filter','_calculateOverflowInContainer','block','_findTargetContainer','includes','_applyOverflowResults','display','createElement','_visibleChips','innerHTML','execute','154278uKKuRJ','_renderChipsAndCountRows','35sZOaTz','show','disableAnimationOnEnter','showMoreBalloon','466dxhfDZ','_config','forEach','slice','extendTemplate','_intersectionObserver','_containerElement','bottom','_createShowMoreBalloonPanelView','button','90eoGYsI','hidden','_makeAncestorsVisible','_repinBalloonPanel','documentElement','classList','className','position','_applyCalculationStyles','zIndex','reorganizeChips','_showMoreButtonView','hide','overflowContainer','pin','tagName','some','overflowChips','toLowerCase','+\x201','clear','hideBalloonPanel','length','_parentView','showMoreButton','maxVisibleRows','showBalloonPanel','_restoreAncestorVisibility','from','_distributeChips','ck-calculation-container','1609692ogFCtL','isVisible','_createCalculationContainer','right','width','pointerEvents','children','controlsButton','none','border-box','showMoreButtonView','cssClasses','-9999px','clientHeight','innerHeight','visibility','appendChild','opacity','_locale','_calculateContainerWidth','465zIDMHs','isConnected','style','set','rowDetectionTolerance','left','setContainerElement','cloneNode','textContent','element','300px','render','_showMoreBalloonPanelView','_ancestorsToRestore','_targetContainer','_handleShowMoreButtonClick','disconnect','0px','querySelector','push','_setupVisibilityObserver','pop','add','getComputedStyle','boxSizing','calculationContainer','remove','absolute','403875nJYPyE','487626dAeNgz','_createShowMoreButton','1515152HWiGNp','content','parentElement'];_0x1f68=function(){return _0x1ecbf0;};return _0x1f68();}export class AIChatChipsOverflowManager{[_0x36cb7f(0xf8)];[_0x36cb7f(0xbe)];[_0x36cb7f(0xb4)];[_0x36cb7f(0x9a)];[_0x36cb7f(0xd2)]=null;[_0x36cb7f(0x72)]=null;[_0x36cb7f(0xc3)]=null;[_0x36cb7f(0x97)];[_0x36cb7f(0xde)]=null;[_0x36cb7f(0xc2)]=null;[_0x36cb7f(0x9b)]=!0x1;constructor(_0x1058eb,_0x5dccaf,_0x60e6f4,_0x18e8f6,_0x3cdb26){const _0x5465dd=_0x36cb7f;this[_0x5465dd(0xf8)]=_0x1058eb,this[_0x5465dd(0xb4)]=_0x5dccaf,this[_0x5465dd(0xbe)]={...hn,..._0x60e6f4,'cssClasses':{'controlsButton':'','calculationContainer':_0x5465dd(0xe5),..._0x60e6f4[_0x5465dd(0xf1)]}},this[_0x5465dd(0x9a)]=new _0x5720a8(),this[_0x5465dd(0x97)]=_0x18e8f6,this[_0x5465dd(0xde)]=_0x3cdb26||null;}[_0x36cb7f(0x6c)](_0x116c16){const _0x397326=_0x36cb7f;this[_0x397326(0xc2)]&&(this[_0x397326(0xc2)][_0x397326(0x76)](),this[_0x397326(0xc2)]=null),this[_0x397326(0xc3)]=_0x116c16,this[_0x397326(0x7a)]();}get[_0x36cb7f(0xf0)](){const _0x57a456=_0x36cb7f;return this[_0x57a456(0xd2)];}get[_0x36cb7f(0xd8)](){const _0x23b895=_0x36cb7f;return this[_0x23b895(0x9a)];}[_0x36cb7f(0xd1)](){requestAnimationFrame(()=>{const _0x2c3c2f=_0x4795;this[_0x2c3c2f(0x89)]();});}[_0x36cb7f(0xe1)](){const _0x4d5baa=_0x36cb7f;this[_0x4d5baa(0xd2)]&&this[_0x4d5baa(0x72)]&&(this[_0x4d5baa(0x8e)](),this[_0x4d5baa(0xd2)][_0x4d5baa(0x93)]=!0x0,this[_0x4d5baa(0x72)][_0x4d5baa(0xba)](),this[_0x4d5baa(0x72)][_0x4d5baa(0xd5)]({'target':this[_0x4d5baa(0xd2)][_0x4d5baa(0x6f)],'limiter':document[_0x4d5baa(0x78)](_0x4d5baa(0xaa))}));}[_0x36cb7f(0xdc)](){const _0x55c5d4=_0x36cb7f;this[_0x55c5d4(0xd2)]&&this[_0x55c5d4(0x72)]&&(this[_0x55c5d4(0xd2)][_0x55c5d4(0x93)]=!0x1,this[_0x55c5d4(0x72)][_0x55c5d4(0xd3)]());}[_0x36cb7f(0xdb)](){const _0x475d8d=_0x36cb7f;this[_0x475d8d(0x9a)][_0x475d8d(0xdb)](),this[_0x475d8d(0xdc)](),this[_0x475d8d(0xa9)](),this[_0x475d8d(0xd2)]&&(this[_0x475d8d(0xd2)][_0x475d8d(0xa0)]=''),this[_0x475d8d(0x72)]&&this[_0x475d8d(0x72)][_0x475d8d(0x86)][_0x475d8d(0xdb)]();}[_0x36cb7f(0x94)](){const _0x3fff1d=_0x36cb7f;this[_0x3fff1d(0xc2)]&&(this[_0x3fff1d(0xc2)][_0x3fff1d(0x76)](),this[_0x3fff1d(0xc2)]=null),this[_0x3fff1d(0xd2)]&&(this[_0x3fff1d(0xd2)][_0x3fff1d(0x94)](),this[_0x3fff1d(0xd2)]=null),this[_0x3fff1d(0x72)]&&(this[_0x3fff1d(0x72)][_0x3fff1d(0x94)](),this[_0x3fff1d(0x72)]=null);}[_0x36cb7f(0x89)](){const _0x120a3e=_0x36cb7f;if(!this[_0x120a3e(0xc3)])return;if(!this[_0x120a3e(0xa4)]())return void(this[_0x120a3e(0x9b)]=!0x0);this[_0x120a3e(0x9b)]=!0x1;const _0x26e409=[...this[_0x120a3e(0xb4)],...this[_0x120a3e(0x9a)]],_0x327aca=this[_0x120a3e(0xe8)](),_0x4cc559=this[_0x120a3e(0xad)](_0x327aca,_0x26e409),_0x16a2e4=_0x327aca[_0x120a3e(0x73)];_0x16a2e4&&this[_0x120a3e(0xe2)](_0x16a2e4),_0x327aca[_0x120a3e(0x80)](),this[_0x120a3e(0xb1)](_0x26e409,_0x4cc559);}[_0x36cb7f(0x84)](){const _0x208e1d=_0x36cb7f;this[_0x208e1d(0xd2)]=this[_0x208e1d(0xa7)](),this[_0x208e1d(0x72)]=this[_0x208e1d(0xc5)](),this[_0x208e1d(0xd2)][_0x208e1d(0x71)](),this[_0x208e1d(0xc3)][_0x208e1d(0xf6)](this[_0x208e1d(0xd2)][_0x208e1d(0x6f)]),this[_0x208e1d(0xd2)]['on'](_0x208e1d(0xb6),()=>{const _0x16c35e=_0x208e1d;this[_0x16c35e(0x75)]();}),_0x5c1e8d({'emitter':this[_0x208e1d(0x72)],'contextElements':[this[_0x208e1d(0x72)][_0x208e1d(0x6f)],this[_0x208e1d(0xd2)][_0x208e1d(0x6f)]],'callback':()=>this[_0x208e1d(0xdc)](),'activator':()=>this[_0x208e1d(0xd2)][_0x208e1d(0x93)]});}[_0x36cb7f(0xa7)](){const _0x37aa54=_0x36cb7f,_0x5122ca=new _0x2e2b90(this[_0x37aa54(0xf8)]);_0x5122ca[_0x37aa54(0xfd)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5a14dc=[this[_0x37aa54(0xbe)][_0x37aa54(0xf1)][_0x37aa54(0xdf)]];return this[_0x37aa54(0xbe)][_0x37aa54(0xf1)][_0x37aa54(0xed)]&&_0x5a14dc[_0x37aa54(0x79)](this[_0x37aa54(0xbe)][_0x37aa54(0xf1)][_0x37aa54(0xed)]),_0x5122ca[_0x37aa54(0xc1)]({'attributes':{'class':_0x5a14dc}}),_0x5122ca;}[_0x36cb7f(0xc5)](){const _0x2c290d=_0x36cb7f,_0x138ece=new _0x2c140b(this[_0x2c290d(0xf8)]);return _0x138ece[_0x2c290d(0xc1)]({'attributes':{'class':this[_0x2c290d(0xbe)][_0x2c290d(0xf1)][_0x2c290d(0xbc)]}}),this[_0x2c290d(0x97)][_0x2c290d(0x7c)](_0x138ece),_0x138ece;}[_0x36cb7f(0x8e)](){const _0x350874=_0x36cb7f;if(this[_0x350874(0x72)]&&(this[_0x350874(0x72)][_0x350874(0x86)][_0x350874(0xdb)](),this[_0x350874(0x9a)][_0x350874(0xdd)]>0x0)){this[_0x350874(0x9a)][_0x350874(0xbf)](_0x4a0422=>{const _0x45a43d=_0x350874;_0x4a0422[_0x45a43d(0xbb)]();});const _0x332982=new _0x5f1800(this[_0x350874(0xf8)]);_0x332982[_0x350874(0x8b)]({'tag':_0x350874(0x9e),'attributes':{'class':this[_0x350874(0xbe)][_0x350874(0xf1)][_0x350874(0xd4)]},'children':this[_0x350874(0x9a)]}),this[_0x350874(0x72)][_0x350874(0x86)][_0x350874(0x7c)](_0x332982);}}[_0x36cb7f(0x75)](){const _0x3e3a44=_0x36cb7f;this[_0x3e3a44(0xd2)][_0x3e3a44(0x93)]?this[_0x3e3a44(0xdc)]():this[_0x3e3a44(0xe1)]();}[_0x36cb7f(0xa9)](){const _0x1a89be=_0x36cb7f,_0x4c240b=this[_0x1a89be(0x9a)][_0x1a89be(0xdd)]>0x0;this[_0x1a89be(0xd2)]?.[_0x1a89be(0x6f)]&&(this[_0x1a89be(0xd2)][_0x1a89be(0x6f)][_0x1a89be(0xfc)][_0x1a89be(0xb2)]=_0x4c240b?'':_0x1a89be(0xee));}[_0x36cb7f(0xca)](){const _0x2f5104=_0x36cb7f;this[_0x2f5104(0xd2)]?.[_0x2f5104(0x93)]&&this[_0x2f5104(0x72)]?.[_0x2f5104(0xe7)]&&this[_0x2f5104(0xd2)][_0x2f5104(0x6f)]&&this[_0x2f5104(0x72)][_0x2f5104(0xd5)]({'target':this[_0x2f5104(0xd2)][_0x2f5104(0x6f)],'limiter':document[_0x2f5104(0x78)](_0x2f5104(0xaa))});}[_0x36cb7f(0xaf)](_0x4059b9){const _0x28f07b=_0x36cb7f,_0x2ff78d=this[_0x28f07b(0xc3)]?.[_0x28f07b(0xd6)][_0x28f07b(0xd9)]()||_0x28f07b(0x9e),_0x3bd43a=this[_0x28f07b(0xc3)]?.[_0x28f07b(0xcc)];if(_0x3bd43a){const _0x5f308f=_0x3bd43a[0x0]||'',_0x385612=_0x4059b9[_0x28f07b(0x78)]('.'+_0x5f308f),_0x2c5046=_0x4059b9[_0x28f07b(0x78)](_0x2ff78d);return _0x385612||_0x2c5046||_0x4059b9;}return _0x4059b9[_0x28f07b(0x78)](_0x2ff78d)||_0x4059b9;}[_0x36cb7f(0xf9)](){const _0x3bbcb2=_0x36cb7f,_0x2842bf=this[_0x3bbcb2(0xde)]?.[_0x3bbcb2(0x6f)]||this[_0x3bbcb2(0xc3)];if(!_0x2842bf)return an;const _0x2da5b0=window[_0x3bbcb2(0x7d)](_0x2842bf)[_0x3bbcb2(0xea)];if(_0x3bbcb2(0x98)===_0x2da5b0||_0x3bbcb2(0x77)===_0x2da5b0||!_0x2da5b0){const _0x5be9a3=_0x2842bf[_0x3bbcb2(0x87)];if(_0x5be9a3){const _0x1af4bb=window[_0x3bbcb2(0x7d)](_0x5be9a3);return _0x3bbcb2(0x98)!==_0x1af4bb[_0x3bbcb2(0xea)]?_0x1af4bb[_0x3bbcb2(0xea)]:an;}return an;}return _0x2da5b0;}[_0x36cb7f(0xcf)](_0x47de59,_0x2ce1bb){const _0x10f1cd=_0x36cb7f;this[_0x10f1cd(0xbe)][_0x10f1cd(0xf1)][_0x10f1cd(0x7f)]&&_0x47de59[_0x10f1cd(0xcc)][_0x10f1cd(0x7c)](this[_0x10f1cd(0xbe)][_0x10f1cd(0xf1)][_0x10f1cd(0x7f)]),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xea)]=_0x2ce1bb,_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xce)]=_0x10f1cd(0x81),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xa2)]=_0x10f1cd(0xf2),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xff)]=_0x10f1cd(0xf2),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xf7)]='0',_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xeb)]=_0x10f1cd(0xee),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xd0)]='-1',_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xf5)]=_0x10f1cd(0xa8),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0xb2)]=_0x10f1cd(0x8d),_0x47de59[_0x10f1cd(0xfc)][_0x10f1cd(0x7e)]=_0x10f1cd(0xef);}[_0x36cb7f(0xe2)](_0x43441a){const _0x2061fe=_0x36cb7f;_0x43441a[_0x2061fe(0xbf)](({element:_0x1a5d02,originalDisplay:_0x56e696,originalVisibility:_0x36f082})=>{const _0x5f18c9=_0x2061fe;_0x1a5d02[_0x5f18c9(0xfc)][_0x5f18c9(0xb2)]=_0x56e696,_0x1a5d02[_0x5f18c9(0xfc)][_0x5f18c9(0xf5)]=_0x36f082;});}[_0x36cb7f(0xc9)](_0x5cf3e0){const _0x5d8ef1=_0x36cb7f,_0x87b9e=[];let _0x1cac7b=_0x5cf3e0;for(;_0x1cac7b&&_0x1cac7b!==document[_0x5d8ef1(0x9f)];){const _0x1fad1a=window[_0x5d8ef1(0x7d)](_0x1cac7b);_0x5d8ef1(0xee)!==_0x1fad1a[_0x5d8ef1(0xb2)]&&_0x5d8ef1(0xc8)!==_0x1fad1a[_0x5d8ef1(0xf5)]||(_0x87b9e[_0x5d8ef1(0x79)]({'element':_0x1cac7b,'originalDisplay':_0x1cac7b[_0x5d8ef1(0xfc)][_0x5d8ef1(0xb2)],'originalVisibility':_0x1cac7b[_0x5d8ef1(0xfc)][_0x5d8ef1(0xf5)]}),_0x1cac7b[_0x5d8ef1(0xfc)][_0x5d8ef1(0xb2)]=_0x5d8ef1(0xae),_0x1cac7b[_0x5d8ef1(0xfc)][_0x5d8ef1(0xf5)]=_0x5d8ef1(0xa6)),_0x1cac7b=_0x1cac7b[_0x5d8ef1(0x87)];}return _0x87b9e;}[_0x36cb7f(0x99)](){const _0x131359=_0x36cb7f;let _0x237a42,_0x50733d;return this[_0x131359(0xde)]?.[_0x131359(0x6f)]?(_0x237a42=this[_0x131359(0xde)][_0x131359(0x6f)][_0x131359(0x6d)](!0x0),_0x50733d=this[_0x131359(0xaf)](_0x237a42)):(_0x237a42=document[_0x131359(0xb3)](_0x131359(0x9e)),_0x50733d=_0x237a42),{'calculationContainer':_0x237a42,'targetContainer':_0x50733d};}[_0x36cb7f(0xe8)](){const _0xc373a0=_0x36cb7f,{calculationContainer:_0x5ea9c7,targetContainer:_0x1ea3e4}=this[_0xc373a0(0x99)](),_0x5000ce=this[_0xc373a0(0xf9)]();this[_0xc373a0(0xcf)](_0x5ea9c7,_0x5000ce);const _0x195b86=this[_0xc373a0(0xde)]?.[_0xc373a0(0x6f)]||this[_0xc373a0(0xc3)],_0x264c95=_0x195b86?.[_0xc373a0(0x87)];_0x264c95?_0x264c95[_0xc373a0(0xf6)](_0x5ea9c7):document[_0xc373a0(0x9f)][_0xc373a0(0xf6)](_0x5ea9c7),_0x5ea9c7[_0xc373a0(0x74)]=_0x1ea3e4;const _0x4f11e2=this[_0xc373a0(0xc9)](_0x264c95||null);return _0x5ea9c7[_0xc373a0(0x8c)],_0x5ea9c7[_0xc373a0(0x73)]=_0x4f11e2,_0x5ea9c7;}[_0x36cb7f(0xad)](_0x3d42cc,_0x56895f){const _0x22f26b=_0x36cb7f,_0x50f038=_0x3d42cc[_0x22f26b(0x74)]||_0x3d42cc,_0x1a561e=[],{rowCount:_0x3f039f}=this[_0x22f26b(0xb8)](_0x50f038,_0x56895f);if(_0x3f039f<=this[_0x22f26b(0xbe)][_0x22f26b(0xe0)])return _0x1a561e;const _0x1dfbcc=_0x56895f[_0x22f26b(0xc0)]();for(;_0x1dfbcc[_0x22f26b(0xdd)]>0x0;){if(this[_0x22f26b(0x88)](_0x3d42cc,_0x50f038,_0x1dfbcc)){const _0x30f82b=_0x56895f[_0x22f26b(0xac)](_0x25abe1=>!_0x1dfbcc[_0x22f26b(0xb0)](_0x25abe1));_0x1a561e[_0x22f26b(0x79)](..._0x30f82b);break;}if(!_0x1dfbcc[_0x22f26b(0x7b)]())break;}return _0x1a561e;}[_0x36cb7f(0xb8)](_0xb1957f,_0x3aaf4b){const _0xe82ff1=_0x36cb7f;_0xb1957f[_0xe82ff1(0xb5)]='',_0x3aaf4b[_0xe82ff1(0xbf)](_0x4336a1=>{const _0x207fbd=_0xe82ff1;if(_0x4336a1[_0x207fbd(0x6f)]){const _0x28e94d=_0x4336a1[_0x207fbd(0x6f)][_0x207fbd(0x6d)](!0x0);_0xb1957f[_0x207fbd(0xf6)](_0x28e94d);}}),_0xb1957f[_0xe82ff1(0x8c)];const _0x15e919=_0xb1957f[_0xe82ff1(0xec)],_0x10085e=[];return Array[_0xe82ff1(0xe3)](_0x15e919)[_0xe82ff1(0xbf)](_0x16ac6c=>{const _0x187220=_0xe82ff1,_0x5a29b7=_0x16ac6c[_0x187220(0xa1)]()[_0x187220(0xa2)];_0x10085e[_0x187220(0xd7)](_0x403492=>Math[_0x187220(0xa3)](_0x403492-_0x5a29b7)<this[_0x187220(0xbe)][_0x187220(0xfe)])||_0x10085e[_0x187220(0x79)](_0x5a29b7);}),{'rowCount':_0x10085e[_0xe82ff1(0xdd)]};}[_0x36cb7f(0x8f)](){const _0x33527a=_0x36cb7f,_0x1bc35c=document[_0x33527a(0xb3)](_0x33527a(0xc6));return _0x1bc35c[_0x33527a(0xcd)]=this[_0x33527a(0xbe)][_0x33527a(0xf1)][_0x33527a(0xdf)],this[_0x33527a(0xbe)][_0x33527a(0xf1)][_0x33527a(0xed)]&&_0x1bc35c[_0x33527a(0xcc)][_0x33527a(0x7c)](this[_0x33527a(0xbe)][_0x33527a(0xf1)][_0x33527a(0xed)]),_0x1bc35c[_0x33527a(0x6e)]=_0x33527a(0xda),_0x1bc35c;}[_0x36cb7f(0x88)](_0x568ecb,_0x122a82,_0xf4dc5d){const _0x26ef12=_0x36cb7f;this[_0x26ef12(0xb8)](_0x122a82,_0xf4dc5d);const _0x49e1b1=this[_0x26ef12(0x8f)]();_0x568ecb[_0x26ef12(0xf6)](_0x49e1b1),_0x568ecb[_0x26ef12(0x8c)];const _0xc2eeb0=[..._0x122a82[_0x26ef12(0xec)],_0x49e1b1],_0x11f839=[];_0xc2eeb0[_0x26ef12(0xbf)](_0x3c3c90=>{const _0x13590f=_0x26ef12,_0x112481=_0x3c3c90[_0x13590f(0xa1)]()[_0x13590f(0xa2)];_0x11f839[_0x13590f(0xd7)](_0x37bd6a=>Math[_0x13590f(0xa3)](_0x37bd6a-_0x112481)<this[_0x13590f(0xbe)][_0x13590f(0xfe)])||_0x11f839[_0x13590f(0x79)](_0x112481);});const _0x1b1840=_0x11f839[_0x26ef12(0xdd)];return _0x49e1b1[_0x26ef12(0x80)](),_0x1b1840<=this[_0x26ef12(0xbe)][_0x26ef12(0xe0)];}[_0x36cb7f(0xe4)](_0x4cbfe3,_0x3021f2){const _0x26ebe4=_0x36cb7f;this[_0x26ebe4(0xb4)][_0x26ebe4(0xdb)](),this[_0x26ebe4(0x9a)][_0x26ebe4(0xdb)](),_0x4cbfe3[_0x26ebe4(0xbf)](_0x2efe18=>{const _0x1064cb=_0x26ebe4;_0x3021f2[_0x1064cb(0xb0)](_0x2efe18)?this[_0x1064cb(0x9a)][_0x1064cb(0x7c)](_0x2efe18):this[_0x1064cb(0xb4)][_0x1064cb(0x7c)](_0x2efe18);});}[_0x36cb7f(0x92)](_0xb57a98){const _0x2f46c4=_0x36cb7f;if(_0xb57a98>0x0&&!this[_0x2f46c4(0xd2)]&&this[_0x2f46c4(0x84)](),_0xb57a98>0x0&&this[_0x2f46c4(0xd2)]){const _0x4251a0=''+this[_0x2f46c4(0xbe)][_0x2f46c4(0x95)]+(_0xb57a98<0x63?_0xb57a98:'99');this[_0x2f46c4(0xd2)][_0x2f46c4(0xa0)]=_0x4251a0;}this[_0x2f46c4(0x8e)](),this[_0x2f46c4(0xa9)](),this[_0x2f46c4(0xca)]();}[_0x36cb7f(0xb1)](_0x379709,_0x49f14a){const _0x254ba1=_0x36cb7f;this[_0x254ba1(0xe4)](_0x379709,_0x49f14a),this[_0x254ba1(0x92)](_0x49f14a[_0x254ba1(0xdd)]);}[_0x36cb7f(0x7a)](){const _0x34f267=_0x36cb7f;this[_0x34f267(0xc3)]&&_0x34f267(0xab)!=typeof IntersectionObserver&&(this[_0x34f267(0xc2)]=new IntersectionObserver(_0x591782=>{const _0x63296c=_0x34f267;_0x591782[0x0][_0x63296c(0x9d)]&&this[_0x63296c(0x9b)]&&requestAnimationFrame(()=>{const _0x427a6d=_0x63296c;this[_0x427a6d(0x89)]();});},{'threshold':0.01,'rootMargin':_0x34f267(0x9c)}),this[_0x34f267(0xc2)][_0x34f267(0xa5)](this[_0x34f267(0xc3)]));}[_0x36cb7f(0xa4)](){const _0x209f80=_0x36cb7f;if(!this[_0x209f80(0xc3)])return!0x1;if(!this[_0x209f80(0xc3)][_0x209f80(0xfb)])return!0x1;const _0x21ecad=this[_0x209f80(0xc3)][_0x209f80(0xa1)]();if(0x0===_0x21ecad[_0x209f80(0xea)]||0x0===_0x21ecad[_0x209f80(0x96)])return!0x1;const _0x5941ff=window[_0x209f80(0xf4)]||document[_0x209f80(0xcb)][_0x209f80(0xf3)],_0xc73be9=window[_0x209f80(0x90)]||document[_0x209f80(0xcb)][_0x209f80(0x8a)],_0x4af16e=0xc8;return _0x21ecad[_0x209f80(0xc4)]>=-0xc8&&_0x21ecad[_0x209f80(0xa2)]<=_0x5941ff+_0x4af16e&&_0x21ecad[_0x209f80(0xe9)]>=-0xc8&&_0x21ecad[_0x209f80(0xff)]<=_0xc73be9+_0x4af16e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32827b=_0x3c67;(function(_0x556f23,_0x16d043){const _0x1b813a=_0x3c67,_0x1023da=_0x556f23();while(!![]){try{const _0x3eb335=-parseInt(_0x1b813a(0x81))/0x1*(-parseInt(_0x1b813a(0x90))/0x2)+parseInt(_0x1b813a(0x96))/0x3+parseInt(_0x1b813a(0x73))/0x4*(parseInt(_0x1b813a(0xa6))/0x5)+parseInt(_0x1b813a(0x99))/0x6+-parseInt(_0x1b813a(0x9a))/0x7+-parseInt(_0x1b813a(0xab))/0x8*(parseInt(_0x1b813a(0xaa))/0x9)+-parseInt(_0x1b813a(0x8b))/0xa*(parseInt(_0x1b813a(0xa5))/0xb);if(_0x3eb335===_0x16d043)break;else _0x1023da['push'](_0x1023da['shift']());}catch(_0xaaf6a2){_0x1023da['push'](_0x1023da['shift']());}}}(_0x31ba,0x344f0));import{ButtonView as _0x49bd97,IconView as _0x112c9e}from'ckeditor5/src/ui.js';import{IconClose as _0x1ee2fa,IconDocument as _0x2c8a5d,IconFileUpload as _0xa0eebb,IconLink as _0x305965,IconSelection as _0x3586eb}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x54e787}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x3dca62}from'../../../aicore/ui/aispinner.js';function _0x31ba(){const _0x62aca5=['15HTUFCP','_setupTemplate','itemType','_createRemoveButton','72pcZFuF','307128MypOKg','addEventListener','_createTemplateAttributes','animationend','_createIconView','removeEventListener','lastIndexOf','bindTemplate','execute','ck-ai-chat-context-controls__chip-tooltip','removeContextItemChip','423068polKoP','ck-ai-chat-context-chip_new-chip','length','ck-ai-chat-context-chip_wide','_createLoaderIcon','webkitAnimationEnd','selection','_createTemplateChildren','bind','small','slice','remove','setTemplate','ck-ai-chat-context-chip_document','178INMNbv','ck-ai-chat-context-chip__type-icon','locale','ck-ai-chat-context-chip__label','_createLabelElement','_isAnimationOnEnterEnabled','ck-hidden','extendTemplate','disableAnimationOnEnter','ck-ai-chat-context-chip','80090QRohEP','isLoading','set','_setupRemoveButtonEvent','tooltip','2066qkcWCU','isVisible','uiId','fire','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','content','463827DFBdih','render','readonly','975588cDljtJ','2022923cETXdk','span','classList','add','label','type','_initializeProperties','_handleAnimationEndOnce','div','element','document','11uwUbmm'];_0x31ba=function(){return _0x62aca5;};return _0x31ba();}const xn={'file':_0xa0eebb,'document':_0x2c8a5d,'web-resource':_0x305965,'text':_0xa0eebb,'selection':_0x3586eb,'mcp-tool-context':_0x2c8a5d},bn=_0x32827b(0x8a),wn=_0x32827b(0x76),Tn=_0x32827b(0x80),En=_0x32827b(0x84),fn=_0x32827b(0x82),An=_0x32827b(0x71),Cn='n';export class AIChatContextItemButtonView extends _0x49bd97{constructor(_0x4245f8,_0xfe184c,_0x1fc399,_0x547dd5,_0x331dc7=!0x1){const _0x2950d2=_0x32827b;super(_0x4245f8),this[_0x2950d2(0x86)]=_0x547dd5,this[_0x2950d2(0xa0)](_0xfe184c,_0x1fc399,_0x331dc7),this[_0x2950d2(0xa7)]();}[_0x32827b(0x97)](){const _0x49cc4a=_0x32827b;super[_0x49cc4a(0x97)](),this[_0x49cc4a(0x86)]&&this[_0x49cc4a(0xa3)]&&(this[_0x49cc4a(0xa3)][_0x49cc4a(0x9c)][_0x49cc4a(0x9d)](_0x49cc4a(0x74)),this[_0x49cc4a(0xa1)](this[_0x49cc4a(0xa3)],()=>{const _0x2ae48c=_0x49cc4a;this[_0x2ae48c(0xa3)]&&this[_0x2ae48c(0xa3)][_0x2ae48c(0x9c)][_0x2ae48c(0x7e)](_0x2ae48c(0x74));}));}[_0x32827b(0x89)](){const _0x2fc4b9=_0x32827b;this[_0x2fc4b9(0x86)]=!0x1,this[_0x2fc4b9(0xa3)]&&this[_0x2fc4b9(0xa3)][_0x2fc4b9(0x9c)][_0x2fc4b9(0x7e)](_0x2fc4b9(0x74));}[_0x32827b(0xa0)](_0x2d985c,_0x53cf04,_0x4e55e2){const _0x2adff5=_0x32827b;this[_0x2adff5(0x8d)](_0x2adff5(0x9e),_0x2d985c[_0x2adff5(0x9e)]),this[_0x2adff5(0x8d)](_0x2adff5(0x8f),!0x0),this[_0x2adff5(0x8d)](_0x2adff5(0xa8),_0x2d985c[_0x2adff5(0x9f)]),this[_0x2adff5(0x8d)]('id',_0x2d985c[_0x2adff5(0x92)]),this[_0x2adff5(0x8d)](_0x2adff5(0x98),_0x53cf04),this[_0x2adff5(0x8d)](_0x2adff5(0x8c),_0x4e55e2);}[_0x32827b(0xa7)](){const _0x12aa75=_0x32827b,_0x527a1d=this[_0x12aa75(0xaf)](),_0x3c2df9=this[_0x12aa75(0xa9)](),_0xf47981=this[_0x12aa75(0x6f)];this[_0x12aa75(0x7f)]({'tag':_0x12aa75(0xa2),'attributes':this[_0x12aa75(0xad)](_0xf47981),'children':this[_0x12aa75(0x7a)](_0x527a1d,_0x3c2df9,_0xf47981)});}[_0x32827b(0xad)](_0x27d220){const _0x27912d=_0x32827b;return{'class':[bn,_0x27d220['if'](_0x27912d(0xa8),Tn,_0x237b97=>_0x27912d(0xa4)==_0x237b97),_0x27d220['if'](_0x27912d(0xa8),wn,_0x8dbc0a=>_0x27912d(0x79)==_0x8dbc0a)],'data-cke-tooltip-text':_0x27d220['to'](_0x27912d(0x9e),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x32827b(0x7a)](_0x36e067,_0x4afd0c,_0x5769d6){const _0x32e623=_0x32827b,_0x18898f=this[_0x32e623(0x85)](_0x5769d6),_0x329edf=this[_0x32e623(0x77)]();return this[_0x32e623(0x98)]?[_0x36e067,_0x18898f]:[_0x36e067,_0x329edf,_0x18898f,_0x4afd0c];}[_0x32827b(0x85)](_0x4efe65){const _0x311bbc=_0x32827b;return{'tag':_0x311bbc(0x9b),'attributes':{'class':En},'children':[{'text':_0x4efe65['to'](_0x311bbc(0x9e))}]};}[_0x32827b(0xa9)](){const _0x40219d=_0x32827b,_0x59bfaf=new _0x49bd97(this[_0x40219d(0x83)]);return _0x59bfaf[_0x40219d(0x8d)]({'label':_0x54e787(this[_0x40219d(0x83)],_0x40219d(0x94)),'icon':_0x1ee2fa}),this[_0x40219d(0x8e)](_0x59bfaf),_0x59bfaf;}[_0x32827b(0x8e)](_0x14714f){const _0x1a6c78=_0x32827b;_0x14714f['on'](_0x1a6c78(0x70),()=>{const _0x417b5d=_0x1a6c78;this[_0x417b5d(0x93)](_0x417b5d(0x72),this['id']);});}[_0x32827b(0xaf)](){const _0x79245=_0x32827b,_0x80579a=this[_0x79245(0x6f)],_0x37d2d4=new _0x112c9e();return _0x37d2d4[_0x79245(0x95)]=xn[this[_0x79245(0xa8)]],_0x37d2d4[_0x79245(0x88)]({'attributes':{'class':[fn,_0x80579a['if'](_0x79245(0x8c),_0x79245(0x87),_0x43f6f9=>_0x43f6f9)]}}),_0x37d2d4;}[_0x32827b(0xa1)](_0x5ca764,_0x5c199d){const _0x3a147a=_0x32827b;if(!_0x5ca764)return;const _0x101a6a=()=>{const _0x4725a1=_0x3c67;_0x5c199d(),_0x5ca764[_0x4725a1(0x6d)](_0x4725a1(0xae),_0x101a6a),_0x5ca764[_0x4725a1(0x6d)](_0x4725a1(0x78),_0x101a6a);};_0x5ca764[_0x3a147a(0xac)](_0x3a147a(0xae),_0x101a6a),_0x5ca764[_0x3a147a(0xac)](_0x3a147a(0x78),_0x101a6a);}[_0x32827b(0x77)](){const _0x5b7f61=_0x32827b,_0x254b45=new _0x3dca62(_0x5b7f61(0x7c));return _0x254b45[_0x5b7f61(0x7b)](_0x5b7f61(0x91))['to'](this,_0x5b7f61(0x8c),_0x175910=>_0x175910),_0x254b45;}}function _0x3c67(_0xb3a4ad,_0x2a4a62){const _0x31ba90=_0x31ba();return _0x3c67=function(_0x3c678c,_0x2dda8e){_0x3c678c=_0x3c678c-0x6d;let _0xc73824=_0x31ba90[_0x3c678c];return _0xc73824;},_0x3c67(_0xb3a4ad,_0x2a4a62);}function In(_0x6fa06a){const _0x855c49=_0x32827b;if(!_0x6fa06a)return _0x6fa06a;if(_0x6fa06a[_0x855c49(0x75)]<=0x78)return _0x6fa06a;const _0x1c7107=_0x6fa06a[_0x855c49(0x7d)](0x0,0x78),_0x4114d5=_0x1c7107[_0x855c49(0x6e)]('\x20');return(_0x4114d5>0x0?_0x1c7107[_0x855c49(0x7d)](0x0,_0x4114d5):_0x1c7107)+'…';}
|