@ckeditor/ckeditor5-ai 47.7.1 → 47.7.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/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 _0x1c1a(){const _0x1c4108=['assistant','group','ai-chat-conversation-set-model-null','contextItems','hasOwn','getAvailableModels','14dWkIvX','find','addFilesToContext','removeFromContext','getPendingContextItems','_processMessagesToInteractions','getMessages','populateFromMessage','createReply','splice','loadSourceResources','setConversationTitle','setModel','49664186ynTnpF','type','connector','getDocumentContext','conversationStarted','mcp-tool-result','addToConversationContext','start','modelSelected','addUrlToContext','appendContent','9dardfG','sessionId','isStarted','isCurrentDocumentInConversation','modification','15122970LFtgWU','url','getCurrentDocumentContext','12wtEaeF','sources','isAvailable','chatContext','ai-chat-conversation-start-failed','lastInteraction','stack','removeSelectionFromContext','toolName','push','4564AYvbPA','set','selectedModel','conversationInitialized','ai-chat-handle-user-conversation-not-initialized','message','addResourceToContext','fetchConversation','getCapabilitiesConfig','capabilities','createInteraction','error','6025VDipvB','ai-chat-conversation-set-model-not-available','init','getConversation','fire','toggleReasoning','addSelectionToContext','setReasoning','ai-chat-handle-user-interaction-already-in-progress','getEditor','getAll','stop','addCurrentDocumentToContext','toggleWebSearch','delegate','options','_handleToolResultData','get','reset','setWebSearch','ai-chat-conversation-init-from-id-failed','parse','fetchConversationMessages','currentReply','destroy','conversationId','handleUserInteraction','3780321Awcqux','ai-chat-conversation-already-started','3798042aOxZaf','ai-chat-handle-user-interaction-start-failed','22404KMPhxE','getInteraction','6461264YvhYfV','updateCurrentDocumentInContext','isSelectionInContext','startConversation','user','model','ai-chat-conversation-start-no-model-selected','_extractContextItems','interactionCreated','content','chatCapabilities','updateCurrentDocument','ai-chat-conversation-init-failed','getModel','toLowerCase','length','title','addToolItemToContext','selectedModelId','indexOf','role','load','currentInteraction','removeInteraction','webSearch','chatModels','attributes','isFromHistory','isCurrentDocumentInContext','code','text','interactions','reasoning','11CBxxbK','prompt'];_0x1c1a=function(){return _0x1c4108;};return _0x1c1a();}const _0x30d668=_0x34ed;(function(_0x2f89f7,_0x2cfa64){const _0x54a78b=_0x34ed,_0x104621=_0x2f89f7();while(!![]){try{const _0x55f30f=parseInt(_0x54a78b(0x16d))/0x1*(parseInt(_0x54a78b(0x1ca))/0x2)+-parseInt(_0x54a78b(0x1c6))/0x3+-parseInt(_0x54a78b(0x19f))/0x4*(parseInt(_0x54a78b(0x1ab))/0x5)+parseInt(_0x54a78b(0x1c8))/0x6*(parseInt(_0x54a78b(0x175))/0x7)+-parseInt(_0x54a78b(0x1cc))/0x8+-parseInt(_0x54a78b(0x18d))/0x9*(parseInt(_0x54a78b(0x192))/0xa)+parseInt(_0x54a78b(0x182))/0xb*(parseInt(_0x54a78b(0x195))/0xc);if(_0x55f30f===_0x2cfa64)break;else _0x104621['push'](_0x104621['shift']());}catch(_0x14291c){_0x104621['push'](_0x104621['shift']());}}}(_0x1c1a,0xe7bcb));function _0x34ed(_0x87c1fd,_0x390cbb){const _0x1c1a9d=_0x1c1a();return _0x34ed=function(_0x34edd4,_0x3cd318){_0x34edd4=_0x34edd4-0x16c;let _0x2e7459=_0x1c1a9d[_0x34edd4];return _0x2e7459;},_0x34ed(_0x87c1fd,_0x390cbb);}import{CKEditorError as _0x3eee87,EmitterMixin as _0x513841,logWarning as _0x450e4d}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x1ca8e9}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x5e0a88,AI_CONTEXT_MODEL_EVENT_NAMES as _0x181a8f}from'./aichatcontext.js';import{AICapabilities as _0x1288fc,CAPABILITIES_MODEL_EVENT_NAMES as _0x447165}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x466f4a}from'./aichatinteraction.js';import{errorsMap as _0x4b8785}from'../../errorsmap.js';export class AIChatConversation extends _0x513841(){['id'];[_0x30d668(0x18f)]=!0x1;[_0x30d668(0x1e7)];[_0x30d668(0x1eb)]=[];[_0x30d668(0x1e2)];[_0x30d668(0x1a1)];[_0x30d668(0x184)];[_0x30d668(0x1ba)];constructor(_0xa0bd97){const _0x4f3eea=_0x30d668;super(),this[_0x4f3eea(0x1ba)]=_0xa0bd97,this[_0x4f3eea(0x184)]=_0xa0bd97[_0x4f3eea(0x184)],this[_0x4f3eea(0x1e5)]=_0xa0bd97[_0x4f3eea(0x1e5)],this['id']=_0xa0bd97[_0x4f3eea(0x1c4)],this[_0x4f3eea(0x1e7)]=_0xa0bd97[_0x4f3eea(0x1e7)];}async[_0x30d668(0x1ad)](_0x3804a9){const _0x1c8e8e=_0x30d668;try{this[_0x1c8e8e(0x198)]=new _0x5e0a88({'connector':this[_0x1c8e8e(0x184)],'config':_0x3804a9,'ownerId':this['id']}),this[_0x1c8e8e(0x198)][_0x1c8e8e(0x1b9)](..._0x181a8f)['to'](this),this[_0x1c8e8e(0x198)][_0x1c8e8e(0x1ad)](),this[_0x1c8e8e(0x1d6)]=new _0x1288fc(),this[_0x1c8e8e(0x1d6)][_0x1c8e8e(0x1b9)](..._0x447165)['to'](this),this[_0x1c8e8e(0x1d6)][_0x1c8e8e(0x1ad)]();const _0x3d56e1=await this[_0x1c8e8e(0x1e5)][_0x1c8e8e(0x174)]();this[_0x1c8e8e(0x1af)](_0x1c8e8e(0x1a2),{'availableModels':_0x3d56e1});const _0x309483=await this[_0x1c8e8e(0x1e5)][_0x1c8e8e(0x1d9)](this[_0x1c8e8e(0x1ba)][_0x1c8e8e(0x1de)]);_0x309483&&await this[_0x1c8e8e(0x181)](_0x309483);}catch(_0x3a6eb3){const _0x32e790=new _0x3eee87(_0x1c8e8e(0x1d8),null,{'message':_0x3a6eb3[_0x1c8e8e(0x1a4)]||_0x3a6eb3});_0x32e790[_0x1c8e8e(0x19b)]=_0x3a6eb3[_0x1c8e8e(0x19b)],this[_0x1c8e8e(0x1af)](_0x1c8e8e(0x1aa),{'error':_0x32e790});}}async[_0x30d668(0x189)](){const _0x467342=_0x30d668;if(this[_0x467342(0x18f)])throw new _0x3eee87(_0x467342(0x1c7),null,{'conversation':this});if(!this[_0x467342(0x1a1)])throw new _0x3eee87(_0x467342(0x1d2),null,{'conversation':this});try{const {id:_0x16a863}=await this[_0x467342(0x184)][_0x467342(0x1cf)](this['id'],this[_0x467342(0x1ba)][_0x467342(0x170)])[_0x467342(0x1ae)]();this['id']=_0x16a863,this[_0x467342(0x18f)]=!0x0,this[_0x467342(0x1af)](_0x467342(0x186),{'conversationId':this['id'],'selectedModel':this[_0x467342(0x1a1)]});}catch(_0xfe729e){const _0x1b3e06=new _0x3eee87(_0x467342(0x199),null,{'message':_0xfe729e[_0x467342(0x1a4)],'conversationId':this['id']});throw _0x1b3e06[_0x467342(0x19b)]=_0xfe729e[_0x467342(0x19b)],this[_0x467342(0x1af)](_0x467342(0x1aa),{'error':_0x1b3e06}),_0x1b3e06;}}async[_0x30d668(0x1e1)](_0x1d857c,_0x3dcdb6){const _0x46e92d=_0x30d668;try{const _0x45fdb9=await this[_0x46e92d(0x184)][_0x46e92d(0x1a6)](_0x1d857c)[_0x46e92d(0x1ae)](),_0x5a79ca=await this[_0x46e92d(0x184)][_0x46e92d(0x1c1)](_0x1d857c)[_0x46e92d(0x17b)](),_0x5191d3=_0x5a79ca[0x0][_0x46e92d(0x1d1)];this[_0x46e92d(0x18f)]=!0x0,this['id']=_0x45fdb9['id'],_0x46e92d(0x1dc)in _0x45fdb9?this[_0x46e92d(0x1af)](_0x46e92d(0x180),_0x45fdb9[_0x46e92d(0x1dc)],!0x0):this[_0x46e92d(0x1af)](_0x46e92d(0x180),'',!0x0);const _0x462595=(await this[_0x46e92d(0x1e5)][_0x46e92d(0x1b5)]())[_0x46e92d(0x176)](_0x46ca6f=>_0x46ca6f['id'][_0x46e92d(0x1da)]()===_0x5191d3[_0x46e92d(0x1da)]());return this[_0x46e92d(0x1a1)]=_0x462595,this[_0x46e92d(0x1af)](_0x46e92d(0x18a),{'selectedModel':_0x462595,'isDisabled':!0x0}),await this[_0x46e92d(0x17a)](_0x5a79ca,_0x3dcdb6,_0x5191d3),this[_0x46e92d(0x1e2)]=void 0x0,this;}catch(_0x37b177){const _0x116d8a=new _0x3eee87(_0x46e92d(0x1bf),null,{'message':_0x37b177[_0x46e92d(0x1a4)],'conversationId':_0x1d857c});throw _0x116d8a[_0x46e92d(0x19b)]=_0x37b177[_0x46e92d(0x19b)],this[_0x46e92d(0x1af)](_0x46e92d(0x1aa),{'error':_0x116d8a}),_0x116d8a;}}async[_0x30d668(0x17a)](_0x3a04f8,_0x115292,_0x525546){const _0x1abfb0=_0x30d668;let _0x17614f;for(const _0x3ebb6c of _0x3a04f8)if(_0x1abfb0(0x1d0)===_0x3ebb6c[_0x1abfb0(0x1e0)]){const _0xb30646=await this[_0x1abfb0(0x1d3)](_0x3ebb6c),_0x48079e={'isReasoningEnabled':Object[_0x1abfb0(0x173)](_0x3ebb6c[_0x1abfb0(0x1a8)],_0x1abfb0(0x16c)),'isWebSearchEnabled':Object[_0x1abfb0(0x173)](_0x3ebb6c[_0x1abfb0(0x1a8)],_0x1abfb0(0x1e4))};_0x17614f=this[_0x1abfb0(0x1a9)]({'userMessage':_0x3ebb6c[_0x1abfb0(0x16e)],'contextItems':_0xb30646,'capabilities':_0x48079e,'modelId':_0x525546,'attributes':_0x3ebb6c[_0x1abfb0(0x1e6)]}),this[_0x1abfb0(0x1e2)]=_0x17614f,this[_0x1abfb0(0x198)][_0x1abfb0(0x188)](this[_0x1abfb0(0x1e2)][_0x1abfb0(0x172)]);}else{if(_0x1abfb0(0x16f)===_0x3ebb6c[_0x1abfb0(0x1e0)]&&_0x17614f){const _0x575f75=[];for(const _0x2e5453 of _0x3ebb6c[_0x1abfb0(0x1d5)])switch(_0x2e5453[_0x1abfb0(0x183)]){case _0x1abfb0(0x1ea):case _0x1abfb0(0x191):{const _0xf925b5=_0x17614f[_0x1abfb0(0x185)]()?.[_0x1abfb0(0x18e)]!==_0x115292;_0x17614f[_0x1abfb0(0x1c2)]=_0x17614f[_0x1abfb0(0x17d)]({'type':_0x2e5453[_0x1abfb0(0x183)],'isDone':!0x0,'interactionId':_0x17614f['id'],'areActionsDisabled':_0xf925b5}),_0x17614f[_0x1abfb0(0x1c2)][_0x1abfb0(0x18c)](_0x2e5453[_0x1abfb0(0x1d5)]),_0x575f75[_0x1abfb0(0x1db)]>0x0&&(_0x17614f[_0x1abfb0(0x1c2)][_0x1abfb0(0x196)]=_0x575f75[_0x1abfb0(0x17e)](0x0));break;}case _0x1abfb0(0x193):_0x575f75[_0x1abfb0(0x19e)](_0x2e5453);break;case _0x1abfb0(0x187):{const {data:_0x44202a,attributes:_0x286cc3}=JSON[_0x1abfb0(0x1c0)](_0x2e5453[_0x1abfb0(0x1d5)]);_0x17614f[_0x1abfb0(0x1bb)]({'toolName':_0x2e5453[_0x1abfb0(0x19d)],'data':_0x44202a,'attributes':_0x286cc3});break;}}}}}async[_0x30d668(0x1d3)](_0x218f77){const _0x1db3da=_0x30d668,_0x3380fd=new Map();if(!_0x218f77[_0x1db3da(0x1d5)])return _0x3380fd;for(const _0x3ebc3f of _0x218f77[_0x1db3da(0x1d5)]){const _0x59fa13=await this[_0x1db3da(0x198)][_0x1db3da(0x17c)](_0x3ebc3f);_0x59fa13&&_0x3380fd[_0x1db3da(0x1a0)](_0x59fa13['id'],_0x59fa13);}return _0x3380fd;}async[_0x30d668(0x1c5)]({userMessage:_0x293606,attributes:_0xa1cbab}){const _0x1b14b8=_0x30d668;if(!this[_0x1b14b8(0x18f)])throw new _0x3eee87(_0x1b14b8(0x1a3),null,{'conversation':this});if(this[_0x1b14b8(0x1e2)])throw new _0x3eee87(_0x1b14b8(0x1b3),null,{'conversation':this});try{const _0x117bf0=this[_0x1b14b8(0x198)][_0x1b14b8(0x179)](),_0x4d594d=this[_0x1b14b8(0x1d6)][_0x1b14b8(0x1a7)](),_0x269905=this[_0x1b14b8(0x1a1)]['id'];this[_0x1b14b8(0x1e2)]=this[_0x1b14b8(0x1a9)]({'userMessage':_0x293606,'contextItems':_0x117bf0,'capabilities':_0x4d594d,'modelId':_0x269905,'attributes':_0xa1cbab}),await this[_0x1b14b8(0x1e2)][_0x1b14b8(0x189)](),this[_0x1b14b8(0x198)][_0x1b14b8(0x188)](this[_0x1b14b8(0x1e2)][_0x1b14b8(0x172)]);}catch(_0x4ebf14){if(_0x4ebf14 instanceof _0x3eee87)this[_0x1b14b8(0x1af)](_0x1b14b8(0x1aa),{'interactionId':this[_0x1b14b8(0x1e2)]?this[_0x1b14b8(0x1e2)]['id']:void 0x0,'error':_0x4ebf14});else{const _0x45ea51=_0x4b8785[_0x1b14b8(0x1bc)](_0x4ebf14[_0x1b14b8(0x1e9)])||_0x1b14b8(0x1c9);this[_0x1b14b8(0x1af)](_0x1b14b8(0x1aa),{'interactionId':this[_0x1b14b8(0x1e2)]?this[_0x1b14b8(0x1e2)]['id']:void 0x0,'error':new _0x3eee87(_0x45ea51,null,{'error':_0x4ebf14})});}}finally{this[_0x1b14b8(0x1e2)]?.[_0x1b14b8(0x1b6)](),this[_0x1b14b8(0x1e2)]=void 0x0;}}[_0x30d668(0x1a9)]({userMessage:_0x32d088,contextItems:_0x52e6fe,capabilities:_0x24265c,modelId:_0x2036d2,attributes:_0x246842}){const _0x2dc74d=_0x30d668,_0x115128=new _0x466f4a({'userMessage':_0x32d088,'contextItems':_0x52e6fe,'capabilities':_0x24265c,'conversationId':this['id'],'connector':this[_0x2dc74d(0x184)],'editor':this[_0x2dc74d(0x1ba)][_0x2dc74d(0x1b4)]&&this[_0x2dc74d(0x1ba)][_0x2dc74d(0x1b4)](),'model':_0x2036d2,'attributes':_0x246842});return _0x115128[_0x2dc74d(0x1b9)](..._0x1ca8e9)['to'](this),this[_0x2dc74d(0x1eb)][_0x2dc74d(0x19e)](_0x115128),this[_0x2dc74d(0x1af)](_0x2dc74d(0x1d4),_0x115128),_0x115128;}[_0x30d668(0x1cb)](_0x3d1519){const _0x32d830=_0x30d668;return this[_0x32d830(0x1eb)][_0x32d830(0x176)](_0x98da0e=>_0x98da0e['id']===_0x3d1519);}[_0x30d668(0x1e3)](_0x14d92f){const _0x3c58fc=_0x30d668,_0x46bf19=this[_0x3c58fc(0x1cb)](_0x14d92f);_0x46bf19&&(_0x46bf19[_0x3c58fc(0x1c3)](),this[_0x3c58fc(0x1eb)][_0x3c58fc(0x17e)](this[_0x3c58fc(0x1eb)][_0x3c58fc(0x1df)](_0x46bf19),0x1));}get[_0x30d668(0x19a)](){const _0x283a1c=_0x30d668;return this[_0x283a1c(0x1eb)][this[_0x283a1c(0x1eb)][_0x283a1c(0x1db)]-0x1];}[_0x30d668(0x1b7)](_0x4bc4a9){const _0x10a0f6=_0x30d668;this[_0x10a0f6(0x198)][_0x10a0f6(0x1b7)](_0x4bc4a9);}async[_0x30d668(0x1cd)]({content:_0x33394e,version:_0x5370fe,sessionId:_0x588094,selections:_0x3c8fca}){const _0x46f32b=_0x30d668;await this[_0x46f32b(0x198)][_0x46f32b(0x1d7)](_0x33394e,_0x5370fe,_0x588094,_0x3c8fca);}[_0x30d668(0x194)](){const _0x3f630=_0x30d668;return this[_0x3f630(0x1e2)]?.[_0x3f630(0x185)]()?.[_0x3f630(0x1d5)]||'';}[_0x30d668(0x1b1)](_0x13bfc0){const _0x5caca5=_0x30d668;this[_0x5caca5(0x198)][_0x5caca5(0x1b1)](_0x13bfc0);}[_0x30d668(0x19c)](){const _0x67899b=_0x30d668;this[_0x67899b(0x198)][_0x67899b(0x19c)]();}[_0x30d668(0x177)](_0x273919){const _0x4a03b2=_0x30d668;this[_0x4a03b2(0x198)][_0x4a03b2(0x177)](_0x273919);}[_0x30d668(0x18b)](_0x3a37b1){const _0x494ad1=_0x30d668;this[_0x494ad1(0x198)][_0x494ad1(0x18b)](_0x3a37b1);}[_0x30d668(0x1dd)](_0x20b170){const _0x3ebdf5=_0x30d668;this[_0x3ebdf5(0x198)][_0x3ebdf5(0x1dd)](_0x20b170);}[_0x30d668(0x1a5)](_0xaf3380,_0x22bc90){const _0x362ce7=_0x30d668;this[_0x362ce7(0x198)][_0x362ce7(0x1a5)](_0xaf3380,_0x22bc90);}[_0x30d668(0x17f)](_0x9ac4fc,_0x45167e,_0x3e2055){const _0xc1088e=_0x30d668;return this[_0xc1088e(0x198)][_0xc1088e(0x17f)](_0x9ac4fc,_0x45167e,_0x3e2055);}[_0x30d668(0x178)](_0x525580){const _0x15d85d=_0x30d668;this[_0x15d85d(0x198)][_0x15d85d(0x178)](_0x525580);}[_0x30d668(0x1be)](_0x52f6d2){const _0x4b318e=_0x30d668;this[_0x4b318e(0x1d6)][_0x4b318e(0x1be)](_0x52f6d2);}[_0x30d668(0x1b8)](){const _0x3571f4=_0x30d668;this[_0x3571f4(0x1d6)][_0x3571f4(0x1b8)]();}[_0x30d668(0x1b2)](_0x175b30){const _0x22604f=_0x30d668;this[_0x22604f(0x1d6)][_0x22604f(0x1b2)](_0x175b30);}[_0x30d668(0x1b0)](){const _0x34d45f=_0x30d668;this[_0x34d45f(0x1d6)][_0x34d45f(0x1b0)]();}[_0x30d668(0x1e8)](){const _0x28c47c=_0x30d668;return this[_0x28c47c(0x198)][_0x28c47c(0x1e8)]();}[_0x30d668(0x190)](){const _0xf8cd37=_0x30d668;return this[_0xf8cd37(0x198)][_0xf8cd37(0x190)]();}[_0x30d668(0x1ce)](){const _0x2c608f=_0x30d668;return this[_0x2c608f(0x198)][_0x2c608f(0x1ce)]();}async[_0x30d668(0x181)](_0xfef04b){const _0x170930=_0x30d668;_0xfef04b?!0x1===await this[_0x170930(0x1e5)][_0x170930(0x197)](_0xfef04b)&&(_0x450e4d(_0x170930(0x1ac),{'conversation':this,'model':_0xfef04b}),_0xfef04b=(await this[_0x170930(0x1e5)][_0x170930(0x174)]())[0x0]):(_0x450e4d(_0x170930(0x171),{'conversation':this}),_0xfef04b=(await this[_0x170930(0x1e5)][_0x170930(0x174)]())[0x0]),_0xfef04b['id']!==this[_0x170930(0x1a1)]?.['id']&&(this[_0x170930(0x1a1)]=_0xfef04b,this[_0x170930(0x1d6)][_0x170930(0x1bd)](),this[_0x170930(0x1af)](_0x170930(0x18a),{'selectedModel':_0xfef04b}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3886(_0x1a26f,_0x1f027e){var _0x1d0152=_0x1d01();return _0x3886=function(_0x388616,_0x544a4d){_0x388616=_0x388616-0x14a;var _0x5dac26=_0x1d0152[_0x388616];return _0x5dac26;},_0x3886(_0x1a26f,_0x1f027e);}var _0x2ec662=_0x3886;(function(_0xdc3219,_0x52b3ea){var _0x539663=_0x3886,_0x4ffd5a=_0xdc3219();while(!![]){try{var _0x21ed37=-parseInt(_0x539663(0x162))/0x1*(-parseInt(_0x539663(0x14a))/0x2)+-parseInt(_0x539663(0x152))/0x3+parseInt(_0x539663(0x15f))/0x4*(parseInt(_0x539663(0x159))/0x5)+-parseInt(_0x539663(0x153))/0x6*(parseInt(_0x539663(0x15a))/0x7)+parseInt(_0x539663(0x15e))/0x8*(-parseInt(_0x539663(0x15c))/0x9)+parseInt(_0x539663(0x14c))/0xa+-parseInt(_0x539663(0x160))/0xb*(-parseInt(_0x539663(0x157))/0xc);if(_0x21ed37===_0x52b3ea)break;else _0x4ffd5a['push'](_0x4ffd5a['shift']());}catch(_0x42dae8){_0x4ffd5a['push'](_0x4ffd5a['shift']());}}}(_0x1d01,0xc4f39));import{AICapabilities as _0xe7d83a}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x5a4919}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x3a2d0e}from'./aichatcontext.js';function _0x1d01(){var _0x14af98=['6395880ogSpgf','attributes','conversationId','getCapabilitiesRequestData','contextItems','queryAssistant','4466997DsXjkf','8130iQqXBg','connector','current-document','userMessage','36IRYgBA','model','65VtYSVa','3787PJHKuO','getDocumentContext','9oyMbEw','sendRequest','7717128ubqYTa','172504GLgFmr','5852363XKtgIq','capabilities','419iiWyhb','get','5714ZfKDin','mapContextItemsToRequestData'];_0x1d01=function(){return _0x14af98;};return _0x1d01();}export class AIChatInteraction extends _0x5a4919{[_0x2ec662(0x156)];[_0x2ec662(0x14e)];[_0x2ec662(0x150)]=new Map();[_0x2ec662(0x158)];[_0x2ec662(0x14d)];constructor(_0x97b1b6){var _0x5bc6df=_0x2ec662;super(_0x97b1b6),this[_0x5bc6df(0x14e)]=_0x97b1b6[_0x5bc6df(0x14e)],this[_0x5bc6df(0x150)]=_0x97b1b6[_0x5bc6df(0x150)],this[_0x5bc6df(0x161)]=_0x97b1b6[_0x5bc6df(0x161)],this[_0x5bc6df(0x156)]=_0x97b1b6[_0x5bc6df(0x156)],this[_0x5bc6df(0x158)]=_0x97b1b6[_0x5bc6df(0x158)],this[_0x5bc6df(0x14d)]=_0x97b1b6[_0x5bc6df(0x14d)];}async[_0x2ec662(0x15d)](){var _0x399692=_0x2ec662;return this[_0x399692(0x154)][_0x399692(0x151)]({'message':this[_0x399692(0x156)],'conversationId':this[_0x399692(0x14e)],'parts':_0x3a2d0e[_0x399692(0x14b)](this[_0x399692(0x150)]),'capabilities':_0xe7d83a[_0x399692(0x14f)](this[_0x399692(0x161)]),'model':this[_0x399692(0x158)],'attributes':this[_0x399692(0x14d)]});}[_0x2ec662(0x15b)](){var _0x20a99d=_0x2ec662;return this[_0x20a99d(0x150)][_0x20a99d(0x163)](_0x20a99d(0x155));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x478421=_0x1aa1;(function(_0x295f13,_0x3ad7e7){const _0x54043e=_0x1aa1,_0x331bfb=_0x295f13();while(!![]){try{const _0x591686=-parseInt(_0x54043e(0x221))/0x1*(parseInt(_0x54043e(0x1e9))/0x2)+parseInt(_0x54043e(0x1e1))/0x3+parseInt(_0x54043e(0x1fa))/0x4*(parseInt(_0x54043e(0x1ee))/0x5)+parseInt(_0x54043e(0x1f8))/0x6*(parseInt(_0x54043e(0x1e7))/0x7)+-parseInt(_0x54043e(0x223))/0x8+-parseInt(_0x54043e(0x219))/0x9*(parseInt(_0x54043e(0x1f7))/0xa)+parseInt(_0x54043e(0x226))/0xb;if(_0x591686===_0x3ad7e7)break;else _0x331bfb['push'](_0x331bfb['shift']());}catch(_0x1c5d6a){_0x331bfb['push'](_0x331bfb['shift']());}}}(_0x5c8f,0x5798a));import{FocusTracker as _0x3405fe,KeystrokeHandler as _0x1b5439}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x2b1862}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0x5c8f(){const _0x11e0e6=['execute','bind','10suvaOM','24iChToA','listenTo','1396OHWFTf','applySuggestion','_createNextButtonView','showPrevious','AI_BALLOON_NEXT_LABEL','ck-ai-chat-balloon-main','isShowChangesOn','element','div','children','isEnabled','delegate','_partToolbarView','focus','change:isTrackChangesOn','_focusables','AI_BALLOON_PREVIOUS_LABEL','destroy','setTemplate','keepErrors','toggleSuggestionDisplayMode','tab','ck-ai-chat-balloon-main_state_','locale','focusLast','includes','bindTemplate','ck-ai-chat-balloon__toolbar-container','add','has','_keystrokes','5104881cQuDeN','toggleRotatorButtonsVisibility','hideError','_stateView','showDiff','_focusTracker','focusFirst','showNext','7owIuFz','setButtonsVisibility','472840GlujNI','_streamableContentView','showBlockingError','6920573ztekpB','_state','focusCycler','_miniToolbarView','change:_state','render','_togglePartToolbarButtonsVisibility','togglePartToolbarEnabled','_isErrorVisible','addMany','set','shift\x20+\x20tab','nextButtonView','isTrackChangesOn','toggleShowChanges','updateContent','61974fbqGAo','update','insertSuggestion','_toolbarContainerView','fire','setState','76202FVTDGF','rejectSuggestion','97122qYbPjp','isVisible','_config','_createPreviousButtonView','_errorView','9050oUGKJP','previousButtonView','showError','pending','full','availableActions','createCollection'];_0x5c8f=function(){return _0x11e0e6;};return _0x5c8f();}import{AISuggestionContentPartToolbarView as _0x5ad5d4}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x8ecdaf}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';function _0x1aa1(_0x3b34d3,_0x445cb){const _0x5c8ff0=_0x5c8f();return _0x1aa1=function(_0x1aa171,_0x39ef2d){_0x1aa171=_0x1aa171-0x1d6;let _0x1c201e=_0x5c8ff0[_0x1aa171];return _0x1c201e;},_0x1aa1(_0x3b34d3,_0x445cb);}import{AIBalloonView as _0x1cc9b4}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x157bff,FocusCycler as _0x29fcc2,View as _0x464400}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x4cfc1b}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x340878,IconChevronUp as _0x3832c0}from'ckeditor5/src/icons.js';import{getTranslation as _0x426a56}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x1cc9b4{[_0x478421(0x203)];[_0x478421(0x1dd)];[_0x478421(0x1ef)];[_0x478421(0x228)];[_0x478421(0x209)];[_0x478421(0x21e)];[_0x478421(0x218)];[_0x478421(0x1eb)];[_0x478421(0x224)];[_0x478421(0x1e4)];[_0x478421(0x206)];[_0x478421(0x21c)];[_0x478421(0x229)];constructor(_0x3a6cbe,_0x453ee3){const _0x5a44c4=_0x478421;super(_0x3a6cbe);const _0x4bb2dc=this[_0x5a44c4(0x214)];this[_0x5a44c4(0x1db)](_0x5a44c4(0x21d),!0x1),this[_0x5a44c4(0x1db)](_0x5a44c4(0x227),_0x5a44c4(0x1f1)),this[_0x5a44c4(0x21e)]=new _0x3405fe(),this[_0x5a44c4(0x218)]=new _0x1b5439(),this[_0x5a44c4(0x209)]=this[_0x5a44c4(0x1f4)](),this[_0x5a44c4(0x228)]=new _0x29fcc2({'focusables':this[_0x5a44c4(0x209)],'focusTracker':this[_0x5a44c4(0x21e)],'keystrokeHandler':this[_0x5a44c4(0x218)],'actions':{'focusPrevious':_0x5a44c4(0x1dc),'focusNext':_0x5a44c4(0x20f)}}),this[_0x5a44c4(0x1eb)]=_0x453ee3,this[_0x5a44c4(0x1dd)]=this[_0x5a44c4(0x1fc)](),this[_0x5a44c4(0x1ef)]=this[_0x5a44c4(0x1ec)](),this[_0x5a44c4(0x224)]=new _0x2b1862(_0x3a6cbe),this[_0x5a44c4(0x206)]=new _0x5ad5d4(_0x3a6cbe,_0x453ee3[_0x5a44c4(0x1f3)]),this[_0x5a44c4(0x206)][_0x5a44c4(0x205)](_0x5a44c4(0x1fb),_0x5a44c4(0x1e3),_0x5a44c4(0x1e8))['to'](this),this[_0x5a44c4(0x1d7)](_0x453ee3),this[_0x5a44c4(0x21c)]=new _0x4cfc1b(_0x3a6cbe),this[_0x5a44c4(0x21c)][_0x5a44c4(0x1ea)]=!0x1,this[_0x5a44c4(0x229)]=new _0x8ecdaf(_0x3a6cbe,{'showChanges':_0x5a44c4(0x1f2)}),this[_0x5a44c4(0x229)][_0x5a44c4(0x1f6)](_0x5a44c4(0x200))['to'](this,_0x5a44c4(0x21d)),this[_0x5a44c4(0x229)]['on'](_0x5a44c4(0x1df),()=>{const _0x3c344a=_0x5a44c4;this[_0x3c344a(0x1e5)](_0x3c344a(0x20e));}),this[_0x5a44c4(0x1e4)]=new AIChatBalloonToolbarContainerView(_0x3a6cbe,[this[_0x5a44c4(0x206)],this[_0x5a44c4(0x21c)],this[_0x5a44c4(0x229)]]),this[_0x5a44c4(0x203)]=this[_0x5a44c4(0x1f4)]([this[_0x5a44c4(0x224)],this[_0x5a44c4(0x1e4)]]),this['on'](_0x5a44c4(0x22a),(_0x2cc9c0,_0x4c5e46,_0x15e747,_0x2dcc93)=>{const _0x38e4f4=_0x5a44c4;let _0x329e49,_0x16695c;_0x38e4f4(0x1f1)===_0x2dcc93?(_0x329e49=this[_0x38e4f4(0x206)],_0x16695c=this[_0x38e4f4(0x21c)]):(_0x329e49=this[_0x38e4f4(0x21c)],_0x16695c=this[_0x38e4f4(0x206)]),this[_0x38e4f4(0x21c)][_0x38e4f4(0x1e6)](_0x15e747),_0x329e49[_0x38e4f4(0x1ea)]=!0x1,_0x16695c[_0x38e4f4(0x1ea)]=!0x0;}),this[_0x5a44c4(0x20c)]({'tag':_0x5a44c4(0x202),'attributes':{'class':['ck',_0x5a44c4(0x1ff),_0x4bb2dc['to'](_0x5a44c4(0x227),_0x269186=>_0x5a44c4(0x210)+_0x269186)]},'children':this[_0x5a44c4(0x203)]}),this['on'](_0x5a44c4(0x208),()=>{const _0x2e15e8=_0x5a44c4;this[_0x2e15e8(0x1d7)](_0x453ee3);});}[_0x478421(0x1d6)](){const _0x3e52ab=_0x478421;super[_0x3e52ab(0x1d6)](),this[_0x3e52ab(0x1dd)][_0x3e52ab(0x1d6)](),this[_0x3e52ab(0x1ef)][_0x3e52ab(0x1d6)](),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x201)]),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x1dd)]),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x1ef)]),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x229)]),this[_0x3e52ab(0x21e)][_0x3e52ab(0x216)](this[_0x3e52ab(0x206)]),this[_0x3e52ab(0x218)][_0x3e52ab(0x1f9)](this[_0x3e52ab(0x201)]),this[_0x3e52ab(0x218)][_0x3e52ab(0x1f9)](this[_0x3e52ab(0x1dd)][_0x3e52ab(0x201)]),this[_0x3e52ab(0x218)][_0x3e52ab(0x1f9)](this[_0x3e52ab(0x1ef)][_0x3e52ab(0x201)]),this[_0x3e52ab(0x209)][_0x3e52ab(0x1da)]([this[_0x3e52ab(0x1dd)],this[_0x3e52ab(0x1ef)],this[_0x3e52ab(0x206)],this[_0x3e52ab(0x229)]]);}[_0x478421(0x20b)](){const _0x54c404=_0x478421;super[_0x54c404(0x20b)](),this[_0x54c404(0x1ef)][_0x54c404(0x20b)](),this[_0x54c404(0x1dd)][_0x54c404(0x20b)]();}[_0x478421(0x207)](){const _0x1b0e23=_0x478421;this[_0x1b0e23(0x228)][_0x1b0e23(0x21f)]();}[_0x478421(0x212)](){const _0x48ed60=_0x478421;this[_0x48ed60(0x228)][_0x48ed60(0x212)]();}async[_0x478421(0x1e0)](_0x35b744){const _0x9941d0=_0x478421;_0x35b744?.[_0x9941d0(0x20d)]||this[_0x9941d0(0x21b)](),await this[_0x9941d0(0x224)][_0x9941d0(0x1e2)](_0x35b744);}[_0x478421(0x1e6)](_0x41a7ca){const _0x43816d=_0x478421;this[_0x43816d(0x227)]=_0x41a7ca;}[_0x478421(0x1f0)](_0x43febb){const _0x2d88a3=_0x478421;super[_0x2d88a3(0x1f0)](_0x43febb),this[_0x2d88a3(0x203)][_0x2d88a3(0x217)](this[_0x2d88a3(0x1ed)])||this[_0x2d88a3(0x203)][_0x2d88a3(0x216)](this[_0x2d88a3(0x1ed)],0x0);}[_0x478421(0x21b)](){const _0x28d0ed=_0x478421;this[_0x28d0ed(0x1d9)]&&(super[_0x28d0ed(0x21b)](),this[_0x28d0ed(0x1d8)](!0x0));}[_0x478421(0x225)](_0x4637f2){const _0x2a84ab=_0x478421;super[_0x2a84ab(0x225)](_0x4637f2),this[_0x2a84ab(0x1d8)](!0x1);}[_0x478421(0x21a)](_0x469083){const _0x5edba5=_0x478421;this[_0x5edba5(0x1dd)][_0x5edba5(0x1ea)]=this[_0x5edba5(0x1ef)][_0x5edba5(0x1ea)]=_0x469083;}[_0x478421(0x1d8)](_0x272e4c){const _0x581513=_0x478421;this[_0x581513(0x206)][_0x581513(0x204)]=_0x272e4c;}[_0x478421(0x1d7)]({showApplyButton:_0x52a080,showSuggestButton:_0x1555d5}){const _0x228d70=_0x478421;_0x52a080=_0x52a080&&!this[_0x228d70(0x1de)]&&this[_0x228d70(0x1eb)][_0x228d70(0x1f3)][_0x228d70(0x213)](_0x228d70(0x1fb)),_0x1555d5=_0x1555d5&&this[_0x228d70(0x1eb)][_0x228d70(0x1f3)][_0x228d70(0x213)](_0x228d70(0x1e3)),this[_0x228d70(0x206)][_0x228d70(0x222)]({'showApplyButton':_0x52a080,'showSuggestButton':_0x1555d5});}[_0x478421(0x1fc)](){const _0x5f5c18=_0x478421,_0x3dcc70=new _0x157bff(this[_0x5f5c18(0x211)]);return _0x3dcc70[_0x5f5c18(0x1db)]({'icon':_0x340878,'label':_0x426a56(this[_0x5f5c18(0x211)],_0x5f5c18(0x1fe)),'isVisible':!0x0}),_0x3dcc70['on'](_0x5f5c18(0x1f5),()=>{const _0x1de86b=_0x5f5c18;this[_0x1de86b(0x1e5)](_0x1de86b(0x220));}),_0x3dcc70;}[_0x478421(0x1ec)](){const _0x47cf2c=_0x478421,_0x5839d7=new _0x157bff(this[_0x47cf2c(0x211)]);return _0x5839d7[_0x47cf2c(0x1db)]({'icon':_0x3832c0,'label':_0x426a56(this[_0x47cf2c(0x211)],_0x47cf2c(0x20a)),'isVisible':!0x0}),_0x5839d7['on'](_0x47cf2c(0x1f5),()=>{const _0x373f03=_0x47cf2c;this[_0x373f03(0x1e5)](_0x373f03(0x1fd));}),_0x5839d7;}}class AIChatBalloonToolbarContainerView extends _0x464400{constructor(_0x3b48b1,_0x47afc8){const _0x2ec5cd=_0x478421;super(_0x3b48b1),this[_0x2ec5cd(0x20c)]({'tag':_0x2ec5cd(0x202),'attributes':{'class':[_0x2ec5cd(0x215)]},'children':_0x47afc8});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b716f=_0x5379;function _0x4b4a(){const _0x1b2370=['setPromptInputValue','form','isLoading','18wfvFDv','_createPromptCapabilitiesView','_loaderView','setModelList','setContextItemLoading','_modelUnavailableMessageView','removeContextItem','12807dLUqkl','startConversation','div','delegate','value','bindTemplate','clearCurrentContextItems','350236VtCKAH','execute','3376SKWavz','reset','change:isLoading','isDisabled','toggleWebSearch','setReasoning','setWebSearch','ck-ai-chat-controls-disabled','low','clearConversationContextUI','sendUserMessage','toggleReasoning','343HxCslK','_createLoaderView','_createModelUnavailableMessageView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setInputPlaceholder','clearConversationContextItems','setIsUploadInProgress','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setConversationContext','locale','focusPromptInput','disableModelSelector','3jYySOu','_createContextPanelView','setModel','focus','218946nuAnAB','1022769ADdvuz','ck-hidden','selectModel','enableModelSelector','ck-ai-chat-controls','_shouldRestorePromptInputFocus','ck-ai-chat-controls__start-new-chat-button','queryView','isModelAvailable','ck-ai-chat-controls-model-unavailable-message','clearPendingContextUI','188305SadHha','element','fieldView','_promptCapabilitiesView','_contextPanelView','set','setAddContextOptions','238912gMDVWS','addContextItem','bodyCollection','setPlaceholderText','resetMessageInput','contextResourcesSearchInputVisibleFrom','updateResourceState','_createPromptInputView','populateSourceResourceBalloon','abortPromptStream','closeSourceResourceBalloon','_handlePromptInputFocus','590UrbTdg','setTemplate','addContextButtonView','_promptInputView'];_0x4b4a=function(){return _0x1b2370;};return _0x4b4a();}(function(_0x4d30f4,_0x3e15ba){const _0x34e58b=_0x5379,_0x24290d=_0x4d30f4();while(!![]){try{const _0x1590e6=parseInt(_0x34e58b(0x22b))/0x1+parseInt(_0x34e58b(0x218))/0x2+-parseInt(_0x34e58b(0x214))/0x3*(-parseInt(_0x34e58b(0x1fa))/0x4)+-parseInt(_0x34e58b(0x224))/0x5*(parseInt(_0x34e58b(0x1ec))/0x6)+parseInt(_0x34e58b(0x208))/0x7*(-parseInt(_0x34e58b(0x1fc))/0x8)+-parseInt(_0x34e58b(0x1f3))/0x9*(parseInt(_0x34e58b(0x237))/0xa)+-parseInt(_0x34e58b(0x219))/0xb;if(_0x1590e6===_0x3e15ba)break;else _0x24290d['push'](_0x24290d['shift']());}catch(_0x542a7){_0x24290d['push'](_0x24290d['shift']());}}}(_0x4b4a,0x1e9a3));import{ButtonView as _0x40da0b,clickOutsideHandler as _0xdedae8,View as _0x32eeda}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x331c8f}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x5b4703}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x1ae62d,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x12997a}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x34eab9}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x4455a5}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';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';function _0x5379(_0xb7d46b,_0x1208f3){const _0x4b4a92=_0x4b4a();return _0x5379=function(_0x5379b1,_0x20c9bb){_0x5379b1=_0x5379b1-0x1e6;let _0x25081c=_0x4b4a92[_0x5379b1];return _0x25081c;},_0x5379(_0xb7d46b,_0x1208f3);}import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x32eeda{[_0x3b716f(0x228)];[_0x3b716f(0x1e8)];[_0x3b716f(0x227)];[_0x3b716f(0x1ee)];[_0x3b716f(0x1f1)];[_0x3b716f(0x21e)];constructor(_0x19955b,_0xcede71){const _0x6cd6f7=_0x3b716f;super(_0x19955b),this[_0x6cd6f7(0x228)]=this[_0x6cd6f7(0x215)](_0x19955b,{'bodyCollection':_0xcede71[_0x6cd6f7(0x22d)],'searchInputVisibleFrom':_0xcede71[_0x6cd6f7(0x230)]}),this[_0x6cd6f7(0x1e8)]=this[_0x6cd6f7(0x232)](_0x19955b),this[_0x6cd6f7(0x227)]=this[_0x6cd6f7(0x1ed)](_0x19955b),this[_0x6cd6f7(0x1ee)]=this[_0x6cd6f7(0x209)](_0x19955b),this[_0x6cd6f7(0x1f1)]=this[_0x6cd6f7(0x20a)](_0x19955b),this[_0x6cd6f7(0x21e)]=!0x1,this[_0x6cd6f7(0x1e8)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x206))['to'](this),this[_0x6cd6f7(0x1ee)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x234))['to'](this),this[_0x6cd6f7(0x227)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x200))['to'](this),this[_0x6cd6f7(0x227)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x207))['to'](this),this[_0x6cd6f7(0x227)][_0x6cd6f7(0x1f6)](_0x6cd6f7(0x21b))['to'](this),this[_0x6cd6f7(0x228)][_0x6cd6f7(0x1f6)](..._0x12997a)['to'](this),this[_0x6cd6f7(0x229)](_0x6cd6f7(0x221),!0x0),this[_0x6cd6f7(0x229)](_0x6cd6f7(0x1ff),!0x1);const _0x51df27=this[_0x6cd6f7(0x1f8)];this[_0x6cd6f7(0x1e6)]({'tag':_0x6cd6f7(0x1ea),'attributes':{'class':['ck',_0x6cd6f7(0x21d),_0x51df27['if'](_0x6cd6f7(0x1ff),_0x6cd6f7(0x203))]},'children':[{'tag':_0x6cd6f7(0x1f5),'attributes':{'class':[_0x51df27['if'](_0x6cd6f7(0x1eb),_0x6cd6f7(0x21a),_0x3ac5bd=>_0x3ac5bd||!this[_0x6cd6f7(0x221)]),_0x51df27['if'](_0x6cd6f7(0x221),_0x6cd6f7(0x21a),_0x3bfd39=>!_0x3bfd39||this[_0x6cd6f7(0x1eb)])]},'children':[this[_0x6cd6f7(0x228)],this[_0x6cd6f7(0x1e8)],this[_0x6cd6f7(0x227)]]},{'tag':_0x6cd6f7(0x1f5),'attributes':{'class':[_0x51df27['if'](_0x6cd6f7(0x1eb),_0x6cd6f7(0x21a),_0x5c3678=>!_0x5c3678)]},'children':[this[_0x6cd6f7(0x1ee)]]},{'tag':_0x6cd6f7(0x1f5),'attributes':{'class':[_0x51df27['if'](_0x6cd6f7(0x221),_0x6cd6f7(0x21a),_0x22710=>_0x22710)]},'children':[this[_0x6cd6f7(0x1f1)]]}]}),_0xdedae8({'emitter':this[_0x6cd6f7(0x1e8)],'activator':()=>this[_0x6cd6f7(0x1eb)],'contextElements':()=>[this[_0x6cd6f7(0x225)]],'callback':()=>{const _0x3c73d6=_0x6cd6f7;this[_0x3c73d6(0x21e)]=!0x1;}}),this['on'](_0x6cd6f7(0x1fe),this[_0x6cd6f7(0x236)],{'priority':_0x6cd6f7(0x204)});}[_0x3b716f(0x215)](_0x49edab,_0x53362e){return new _0x1ae62d(_0x49edab,_0x53362e);}[_0x3b716f(0x232)](_0x55210a){const _0x2da83e=_0x3b716f;return new _0x331c8f(_0x55210a,this[_0x2da83e(0x228)][_0x2da83e(0x1e7)]);}[_0x3b716f(0x1ed)](_0x5d982f){return new _0x5b4703(_0x5d982f);}[_0x3b716f(0x209)](_0x2d76cc){return new _0x34eab9(_0x2d76cc);}[_0x3b716f(0x20a)](_0x32e092){const _0x136175=_0x3b716f,_0x2eee17=new AIChatModelUnavailableMessageView(_0x32e092);return _0x2eee17[_0x136175(0x1f6)](_0x136175(0x1f4))['to'](this),_0x2eee17;}[_0x3b716f(0x236)](_0x53680f,_0x87aaad,_0x2ef975){const _0x1a4c32=_0x3b716f;_0x2ef975?this[_0x1a4c32(0x21e)]=!0x0:this[_0x1a4c32(0x21e)]&&this[_0x1a4c32(0x1e8)][_0x1a4c32(0x217)]();}[_0x3b716f(0x22c)](_0x43378e,_0x4c60f9){const _0x4ef389=_0x3b716f;this[_0x4ef389(0x228)][_0x4ef389(0x22c)](_0x43378e,_0x4c60f9);}[_0x3b716f(0x1f2)](_0x1872f7){const _0x3ce250=_0x3b716f;this[_0x3ce250(0x228)][_0x3ce250(0x1f2)](_0x1872f7);}[_0x3b716f(0x1f0)](_0x39d9fc,_0xaa47ce){const _0x4c216c=_0x3b716f;this[_0x4c216c(0x228)][_0x4c216c(0x1f0)](_0x39d9fc,_0xaa47ce);}[_0x3b716f(0x20e)](_0x3e5a8e){const _0x20e37f=_0x3b716f;this[_0x20e37f(0x1e8)][_0x20e37f(0x20e)](_0x3e5a8e);}[_0x3b716f(0x210)](_0x19b044){const _0x113fcb=_0x3b716f;this[_0x113fcb(0x228)][_0x113fcb(0x210)](_0x19b044);}[_0x3b716f(0x223)](){const _0x5425fa=_0x3b716f;this[_0x5425fa(0x228)][_0x5425fa(0x1f9)]();}[_0x3b716f(0x205)](){const _0x2b2384=_0x3b716f;this[_0x2b2384(0x228)][_0x2b2384(0x20d)]();}[_0x3b716f(0x231)](_0x98dbf0,_0x18e42b,_0x5118c9){const _0x999d61=_0x3b716f;this[_0x999d61(0x228)][_0x999d61(0x231)](_0x98dbf0,_0x18e42b,_0x5118c9);}[_0x3b716f(0x202)](_0x4aee44){const _0x30c899=_0x3b716f;this[_0x30c899(0x227)][_0x30c899(0x202)](_0x4aee44);}[_0x3b716f(0x201)](_0x381c28){const _0x1bcf58=_0x3b716f;this[_0x1bcf58(0x227)][_0x1bcf58(0x201)](_0x381c28);}[_0x3b716f(0x22f)](){const _0x4d35c2=_0x3b716f;this[_0x4d35c2(0x1e8)][_0x4d35c2(0x1fd)]();}[_0x3b716f(0x22a)](_0x4abe1a){const _0x1f697f=_0x3b716f;this[_0x1f697f(0x228)][_0x1f697f(0x22a)](_0x4abe1a);}[_0x3b716f(0x20c)](_0xdee1f4){const _0x4767ed=_0x3b716f;this[_0x4767ed(0x1e8)][_0x4767ed(0x22e)](_0xdee1f4);}[_0x3b716f(0x1ef)](_0x226fee,_0x394fef){const _0x2d30b6=_0x3b716f;this[_0x2d30b6(0x227)][_0x2d30b6(0x1ef)](_0x226fee,_0x394fef);}[_0x3b716f(0x216)](_0x428c2b){const _0x41e76a=_0x3b716f;_0x428c2b?(this[_0x41e76a(0x221)]=!0x0,this[_0x41e76a(0x227)][_0x41e76a(0x216)](_0x428c2b)):this[_0x41e76a(0x221)]=!0x1;}[_0x3b716f(0x21c)](){const _0xec3eee=_0x3b716f;this[_0xec3eee(0x227)][_0xec3eee(0x21c)]();}[_0x3b716f(0x213)](_0x1e4be5){const _0x50cf34=_0x3b716f;this[_0x50cf34(0x227)][_0x50cf34(0x213)](_0x1e4be5);}[_0x3b716f(0x233)](_0x5dfa31,_0x110b9d,_0x3caaa3,_0x4dd8db){const _0xcc0da2=_0x3b716f;this[_0xcc0da2(0x228)][_0xcc0da2(0x233)](_0x5dfa31,_0x110b9d,_0x3caaa3,_0x4dd8db);}[_0x3b716f(0x235)](_0x142500){const _0x3ed1e9=_0x3b716f;this[_0x3ed1e9(0x228)][_0x3ed1e9(0x235)](_0x142500);}[_0x3b716f(0x212)](_0x4469e7=!0x1){const _0x39492c=_0x3b716f;this[_0x39492c(0x1e8)][_0x39492c(0x217)](_0x4469e7);}[_0x3b716f(0x1e9)](_0x40c6ce){const _0x44b93f=_0x3b716f;this[_0x44b93f(0x1e8)][_0x44b93f(0x220)][_0x44b93f(0x226)][_0x44b93f(0x1fd)](),this[_0x44b93f(0x1e8)][_0x44b93f(0x220)][_0x44b93f(0x226)][_0x44b93f(0x1f7)]=_0x40c6ce;}}class AIChatModelUnavailableMessageView extends _0x32eeda{constructor(_0x34102f){const _0x2a1c99=_0x3b716f;super(_0x34102f);const _0x5a6539=new _0x40da0b(_0x34102f);_0x5a6539[_0x2a1c99(0x229)]({'label':_0x4455a5(this[_0x2a1c99(0x211)],_0x2a1c99(0x20b)),'withText':!0x0,'class':[_0x2a1c99(0x21f)],'tooltip':''}),_0x5a6539[_0x2a1c99(0x1f6)](_0x2a1c99(0x1fb))['to'](this,_0x2a1c99(0x1f4)),this[_0x2a1c99(0x1e6)]({'tag':_0x2a1c99(0x1f5),'attributes':{'class':['ck',_0x2a1c99(0x222)]},'children':[{'tag':'p','children':[{'text':_0x4455a5(this[_0x2a1c99(0x211)],_0x2a1c99(0x20f))+'\x20'},_0x5a6539]}]});}}
|
|
@@ -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 _0x3a2681=_0x1c05;(function(_0x103e00,_0x12831e){const _0x273cc5=_0x1c05,_0x5f1077=_0x103e00();while(!![]){try{const _0x438075=parseInt(_0x273cc5(0x204))/0x1+parseInt(_0x273cc5(0x1e0))/0x2*(-parseInt(_0x273cc5(0x1f2))/0x3)+parseInt(_0x273cc5(0x1f6))/0x4+-parseInt(_0x273cc5(0x200))/0x5+-parseInt(_0x273cc5(0x225))/0x6+-parseInt(_0x273cc5(0x20b))/0x7*(parseInt(_0x273cc5(0x207))/0x8)+parseInt(_0x273cc5(0x202))/0x9*(parseInt(_0x273cc5(0x22d))/0xa);if(_0x438075===_0x12831e)break;else _0x5f1077['push'](_0x5f1077['shift']());}catch(_0x2c5f94){_0x5f1077['push'](_0x5f1077['shift']());}}}(_0x4048,0x7b449));import{CKEditorError as _0x13f48e,logWarning as _0x4bc04d,scrollAncestorsToShowTarget as _0x4cb20b}from'ckeditor5/src/utils.js';function _0x1c05(_0x2aba67,_0x36185c){const _0x4048e5=_0x4048();return _0x1c05=function(_0x1c0571,_0x73840f){_0x1c0571=_0x1c0571-0x1e0;let _0x1418c4=_0x4048e5[_0x1c0571];return _0x1418c4;},_0x1c05(_0x2aba67,_0x36185c);}import{View as _0x3cbc44}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5ab77b}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x887fc7}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x6583ce}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x37ca08}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5134b5}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x354246}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x59caaa}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x1be4f1,SKELETON_DEFINITIONS as _0x227905}from'../../aicore/ui/aiskeleton.js';function _0x4048(){const _0x43cd28=['ck-ai-chat__feed','bind','ai-chat-feed-view-item-not-found','isTrackChangesOn','includes','ai-chat-feed-view-item-not-a-reply-item','remove','_createTemplateChildren','aiFeed','div','updateWebSources','isLoadingSkeletonVisible','removeItem','scrollToSuggestion','ck-ai-chat__loader','delegate','markAsDone','3184974gQXbWZ','setPartActive','render','span','toggleLoadingSkeleton','setLoadingMessage','setSuggestionPartActive','user-message','17924770kLBMfw','find','clear','ck-ai-chat__feed__items','_createFeedLoader','destroy','addItem','isVisible','updatePartState','getPartView','children','4SSiasY','updateReplyItem','scrollManager','markItemAsDone','stop','forEach','custom-element','ck-hidden','_bodyCollection','hasItem','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','startAutoScroll','interaction-header','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','updateContent','bindTemplate','createCollection','getItemIds','199869OncdtB','options','_createLoaderChildren','_createSkeletonLoader','1219600VDgGUT','ck-ai-chat__loader-text','_createFeedItems','_setupTemplate','setTemplate','element','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','updateSuggestionItem','ai-chat-feed-view-item-not-a-suggestion-item','updateSuggestionPartState','1166255XUObXQ','getItemById','9IsohYS','parentElement','191298PRJEWP','loadingMessage','start','8ilwOEG','filter','stopAutoScroll','isPending','6205108AAoyhI','extendTemplate','ai-suggestion-reply','set','add','locale','updateSources','ai-reply','map'];_0x4048=function(){return _0x43cd28;};return _0x4048();}import{AISpinnerView as _0x4737a0}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x1d9f37}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x3cbc44{[_0x3a2681(0x237)];[_0x3a2681(0x1e2)];[_0x3a2681(0x1e8)];constructor(_0x3bc1d5,_0x41daf9){const _0x3690dd=_0x3a2681;super(_0x3bc1d5),this[_0x3690dd(0x1e8)]=_0x41daf9,this[_0x3690dd(0x20e)](_0x3690dd(0x20a),!0x1),this[_0x3690dd(0x20e)](_0x3690dd(0x205),''),this[_0x3690dd(0x20e)](_0x3690dd(0x21f),!0x1),this[_0x3690dd(0x20e)](_0x3690dd(0x217),!0x1),this[_0x3690dd(0x237)]=this[_0x3690dd(0x1f0)](),this[_0x3690dd(0x237)][_0x3690dd(0x223)](..._0x5ab77b)['to'](this),this[_0x3690dd(0x1f9)]();}[_0x3a2681(0x227)](){const _0x1a8b7f=_0x3a2681;super[_0x1a8b7f(0x227)](),this[_0x1a8b7f(0x1e2)]=new _0x59caaa(this[_0x1a8b7f(0x1fb)]);}[_0x3a2681(0x232)](){const _0x2f5c78=_0x3a2681;super[_0x2f5c78(0x232)](),this[_0x2f5c78(0x1e2)][_0x2f5c78(0x232)]();}[_0x3a2681(0x22f)](){const _0x4f1ffe=_0x3a2681;this[_0x4f1ffe(0x237)][_0x4f1ffe(0x22f)]();}[_0x3a2681(0x233)](_0xc32480,_0x167c60){const _0x249358=_0x3a2681;let _0x4443a3;return _0x249358(0x212)===_0xc32480?_0x4443a3=new _0x6583ce(this[_0x249358(0x210)],_0x167c60,this[_0x249358(0x1e8)]):_0x249358(0x20d)===_0xc32480?(_0x4443a3=new _0x887fc7(this[_0x249358(0x210)],_0x167c60,this[_0x249358(0x1e8)]),_0x4443a3[_0x249358(0x215)](_0x249358(0x217))['to'](this)):_0x4443a3=_0x249358(0x22c)===_0xc32480?new _0x37ca08(this[_0x249358(0x210)],_0x167c60,this[_0x249358(0x1e8)]):_0x249358(0x1ec)===_0xc32480?new _0x354246(this[_0x249358(0x210)],_0x167c60):_0x249358(0x1e6)===_0xc32480?new _0x1d9f37(_0x167c60):new _0x5134b5(_0x167c60),this[_0x249358(0x237)][_0x249358(0x20f)](_0x4443a3),_0x4443a3;}async[_0x3a2681(0x1e1)]({id:_0x80d43e,parsedContent:_0x3aa552,renderingStrategy:_0x2112b0,abortSignal:_0x423fb8}){const _0x5660cd=_0x3a2681,_0x505f93=this[_0x5660cd(0x201)](_0x80d43e);if(!(_0x505f93 instanceof _0x6583ce))throw new _0x13f48e(_0x5660cd(0x219),null,{'itemView':_0x505f93,'id':_0x80d43e,'parsedContent':_0x3aa552});await _0x505f93[_0x5660cd(0x1ee)]({'parsedContent':_0x3aa552,'renderingStrategy':_0x2112b0,'abortSignal':_0x423fb8});}async[_0x3a2681(0x21e)](_0x10a1c0,_0xf3b403){const _0xb9d022=_0x3a2681,_0x19dff4=this[_0xb9d022(0x201)](_0x10a1c0);if(_0x19dff4 instanceof _0x887fc7)_0x19dff4[_0xb9d022(0x211)](_0xf3b403);else{if(!(_0x19dff4 instanceof _0x6583ce))throw new _0x13f48e(_0xb9d022(0x1ea),null,{'itemView':_0x19dff4,'id':_0x10a1c0,'sources':_0xf3b403});_0x19dff4[_0xb9d022(0x211)](_0xf3b403);}}async[_0x3a2681(0x1fd)]({id:_0x494eb4,parts:_0x314e1e,renderingStrategy:_0x1f4623,abortSignal:_0x3f501b}){const _0x57709b=_0x3a2681,_0x51b08a=this[_0x57709b(0x201)](_0x494eb4);if(!(_0x51b08a instanceof _0x887fc7))throw new _0x13f48e(_0x57709b(0x1fe),null,{'itemView':_0x51b08a,'id':_0x494eb4,'parts':_0x314e1e});await _0x51b08a[_0x57709b(0x1ee)]({'parts':_0x314e1e,'renderingStrategy':_0x1f4623,'abortSignal':_0x3f501b});}[_0x3a2681(0x1ff)]({id:_0x4ba37d,index:_0x55ed65,state:_0x4ab232}){const _0x42fc5b=_0x3a2681,_0x352490=this[_0x42fc5b(0x201)](_0x4ba37d);if(!(_0x352490 instanceof _0x887fc7))throw new _0x13f48e(_0x42fc5b(0x1fe),this,{'id':_0x4ba37d});_0x352490[_0x42fc5b(0x235)](_0x55ed65,_0x4ab232);}[_0x3a2681(0x22b)]({id:_0x5343dd,index:_0x3891b3,isActive:_0xd786c0}){const _0x32999c=_0x3a2681,_0x4f68be=this[_0x32999c(0x201)](_0x5343dd);if(!(_0x4f68be instanceof _0x887fc7))throw new _0x13f48e(_0x32999c(0x1fe),this,{'id':_0x5343dd});this[_0x32999c(0x237)][_0x32999c(0x208)](_0x438934=>_0x438934 instanceof _0x887fc7)[_0x32999c(0x1e5)](_0x4c4de6=>{const _0x44d492=_0x32999c;_0x4c4de6[_0x44d492(0x226)](!0x1);}),_0x4f68be[_0x32999c(0x226)](_0x3891b3,_0xd786c0);}[_0x3a2681(0x1e3)](_0x4e7a6d){const _0x25bfe1=_0x3a2681;this[_0x25bfe1(0x201)](_0x4e7a6d)[_0x25bfe1(0x224)]();}[_0x3a2681(0x1f1)](){const _0x554f46=_0x3a2681;return this[_0x554f46(0x237)][_0x554f46(0x213)](_0x5e6b73=>_0x5e6b73[_0x554f46(0x1f3)]['id']);}[_0x3a2681(0x220)](_0x2e2bd9){const _0x4f4541=_0x3a2681;this[_0x4f4541(0x237)][_0x4f4541(0x21a)](this[_0x4f4541(0x201)](_0x2e2bd9));}[_0x3a2681(0x1e9)](_0x1675f3){const _0x1357e4=_0x3a2681;return!!this[_0x1357e4(0x237)][_0x1357e4(0x22e)](_0x5b2d4d=>_0x5b2d4d[_0x1357e4(0x1f3)]['id'][_0x1357e4(0x218)](_0x1675f3));}[_0x3a2681(0x221)](_0x42e5a5,_0x382e06){const _0x5de7a2=_0x3a2681,_0x552f54=this[_0x5de7a2(0x201)](_0x42e5a5);if(!(_0x552f54 instanceof _0x887fc7))return void _0x4bc04d(_0x5de7a2(0x1fc),{'replyId':_0x42e5a5,'partIndex':_0x382e06});const _0x519500=_0x552f54[_0x5de7a2(0x236)](_0x382e06);_0x519500?_0x4cb20b(_0x519500[_0x5de7a2(0x1fb)],0x14,this[_0x5de7a2(0x1fb)][_0x5de7a2(0x203)],!0x0,!0x0):_0x4bc04d(_0x5de7a2(0x1ed),{'replyId':_0x42e5a5,'partIndex':_0x382e06});}[_0x3a2681(0x1f9)](){const _0x1ae8e8=_0x3a2681;this[_0x1ae8e8(0x1fa)]({'tag':_0x1ae8e8(0x21d),'attributes':{'class':['ck',_0x1ae8e8(0x214)]},'children':this[_0x1ae8e8(0x21b)]()});}[_0x3a2681(0x21b)](){const _0x12b6a7=_0x3a2681,_0x5ee27b=this[_0x12b6a7(0x1f5)]();return[this[_0x12b6a7(0x1f8)](),_0x5ee27b,this[_0x12b6a7(0x231)]()];}[_0x3a2681(0x1f5)](){const _0x2aa0e8=_0x3a2681,_0x22fc4a=new _0x1be4f1(this[_0x2aa0e8(0x210)],_0x227905[_0x2aa0e8(0x21c)]);return _0x22fc4a[_0x2aa0e8(0x20c)]({'attributes':{'class':[this[_0x2aa0e8(0x1ef)]['if'](_0x2aa0e8(0x21f),_0x2aa0e8(0x1e7),_0x9f9c9a=>!_0x9f9c9a)]}}),_0x22fc4a;}[_0x3a2681(0x1f8)](){const _0x80b2b6=_0x3a2681,_0x1a630b=new _0x3cbc44(this[_0x80b2b6(0x210)]);return _0x1a630b[_0x80b2b6(0x1fa)]({'tag':_0x80b2b6(0x21d),'attributes':{'class':['ck',_0x80b2b6(0x230),this[_0x80b2b6(0x1ef)]['if'](_0x80b2b6(0x21f),_0x80b2b6(0x1e7))]},'children':this[_0x80b2b6(0x237)]}),_0x1a630b;}[_0x3a2681(0x231)](){const _0x47c726=_0x3a2681,_0xd95d66=new _0x3cbc44(this[_0x47c726(0x210)]);return _0xd95d66[_0x47c726(0x1fa)]({'tag':_0x47c726(0x21d),'attributes':{'class':['ck',_0x47c726(0x222),this[_0x47c726(0x1ef)]['if'](_0x47c726(0x20a),_0x47c726(0x1e7),_0x11c0c3=>!_0x11c0c3)]},'children':this[_0x47c726(0x1f4)]()}),_0xd95d66;}[_0x3a2681(0x1f4)](){const _0x101bdf=_0x3a2681,_0x356a3=new _0x4737a0();return _0x356a3[_0x101bdf(0x234)]=!0x0,[_0x356a3,{'tag':_0x101bdf(0x228),'attributes':{'class':['ck',_0x101bdf(0x1f7)]},'children':[{'text':this[_0x101bdf(0x1ef)]['to'](_0x101bdf(0x205))}]}];}[_0x3a2681(0x201)](_0x11a263){const _0x3ff145=_0x3a2681,_0xf1738e=this[_0x3ff145(0x237)][_0x3ff145(0x22e)](_0x456bc6=>_0x456bc6[_0x3ff145(0x1f3)]['id'][_0x3ff145(0x218)](_0x11a263));if(!_0xf1738e)throw new _0x13f48e(_0x3ff145(0x216),this,{'id':_0x11a263});return _0xf1738e;}[_0x3a2681(0x22a)](_0x5a078a){const _0xc5dbee=_0x3a2681;this[_0xc5dbee(0x20e)](_0xc5dbee(0x205),_0x5a078a);}[_0x3a2681(0x229)](_0x2db0f3){const _0x10e53a=_0x3a2681;this[_0x10e53a(0x20e)](_0x10e53a(0x21f),_0x2db0f3);}[_0x3a2681(0x1eb)](){const _0x3bf9cc=_0x3a2681;this[_0x3bf9cc(0x1e2)][_0x3bf9cc(0x206)]();}[_0x3a2681(0x209)](){const _0xa100cb=_0x3a2681;this[_0xa100cb(0x1e2)][_0xa100cb(0x1e4)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf023cd=_0x2e57;(function(_0x49846e,_0x845ec1){const _0x3e3ca1=_0x2e57,_0x4f6e6f=_0x49846e();while(!![]){try{const _0x447463=-parseInt(_0x3e3ca1(0xd3))/0x1+parseInt(_0x3e3ca1(0xd0))/0x2+parseInt(_0x3e3ca1(0xc6))/0x3*(-parseInt(_0x3e3ca1(0xbd))/0x4)+parseInt(_0x3e3ca1(0xc9))/0x5*(parseInt(_0x3e3ca1(0xc8))/0x6)+-parseInt(_0x3e3ca1(0xd1))/0x7+-parseInt(_0x3e3ca1(0xce))/0x8+parseInt(_0x3e3ca1(0xc1))/0x9;if(_0x447463===_0x845ec1)break;else _0x4f6e6f['push'](_0x4f6e6f['shift']());}catch(_0x448e45){_0x4f6e6f['push'](_0x4f6e6f['shift']());}}}(_0x14ec,0x57b1c));function _0x2e57(_0x44b399,_0x1ca01c){const _0x14ecf8=_0x14ec();return _0x2e57=function(_0x2e5712,_0x1eec03){_0x2e5712=_0x2e5712-0xbd;let _0x379168=_0x14ecf8[_0x2e5712];return _0x379168;},_0x2e57(_0x44b399,_0x1ca01c);}import{ButtonView as _0x2ce0e9,FormHeaderView as _0x321fff}from'ckeditor5/src/ui.js';import{IconPlus as _0x36ead6,IconAIChat as _0x59dc91}from'ckeditor5/src/icons.js';import{getTranslation as _0x5738d8}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x4d31aa}from'../../aicore/utils/createresizebutton.js';function _0x14ec(){const _0x530454=['4098960Lwvggx','ck-ai-chat__start-conversation','548808JyKRLc','4396721erTNiX','resizeButton','667741jqMgzb','isMaximized','212PPIKdu','add','startConversation','children','14023431FzLRer','execute','AI_CHAT_HEADING','fire','_createStartConversationButton','16098OFdjaD','AI_CHAT_LABEL_NEW_CHAT','45870PirmYp','405EjurzO','ck-ai-header\x20ck-ai-header_chat','conversationStartButton','set','locale'];_0x14ec=function(){return _0x530454;};return _0x14ec();}import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x321fff{[_0xf023cd(0xcb)];[_0xf023cd(0xd2)];constructor(_0x573dca,_0x148ada){const _0x4cb2a4=_0xf023cd;super(_0x573dca,{'label':_0x5738d8(_0x573dca,_0x4cb2a4(0xc3)),'class':_0x4cb2a4(0xca),'icon':_0x59dc91}),this[_0x4cb2a4(0xcc)](_0x4cb2a4(0xd4),!0x1),this[_0x4cb2a4(0xcb)]=this[_0x4cb2a4(0xc5)](_0x573dca),this[_0x4cb2a4(0xc0)][_0x4cb2a4(0xbe)](this[_0x4cb2a4(0xcb)]),_0x148ada&&(this[_0x4cb2a4(0xd2)]=_0x4d31aa(_0x573dca,this),this[_0x4cb2a4(0xc0)][_0x4cb2a4(0xbe)](this[_0x4cb2a4(0xd2)]));}[_0xf023cd(0xc5)](_0x53aaab){const _0x71dcea=_0xf023cd,_0x1ca974=new _0x2ce0e9(_0x53aaab);return _0x1ca974[_0x71dcea(0xcc)]({'label':_0x5738d8(this[_0x71dcea(0xcd)],_0x71dcea(0xc7)),'withText':!0x0,'icon':_0x36ead6,'class':_0x71dcea(0xcf)}),_0x1ca974['on'](_0x71dcea(0xc2),()=>{const _0x5c4895=_0x71dcea;this[_0x5c4895(0xc4)](_0x5c4895(0xbf));}),_0x1ca974;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0xc0b7(_0x5c5081,_0x1bbb32){var _0x3c059e=_0x3c05();return _0xc0b7=function(_0xc0b747,_0x13d12c){_0xc0b747=_0xc0b747-0xaf;var _0x5eb4ad=_0x3c059e[_0xc0b747];return _0x5eb4ad;},_0xc0b7(_0x5c5081,_0x1bbb32);}var _0x29316e=_0xc0b7;(function(_0x32c858,_0x26ff21){var _0x1861e4=_0xc0b7,_0x2df6cd=_0x32c858();while(!![]){try{var _0x2d762a=-parseInt(_0x1861e4(0xc2))/0x1+-parseInt(_0x1861e4(0xb4))/0x2+-parseInt(_0x1861e4(0xc3))/0x3*(-parseInt(_0x1861e4(0xbb))/0x4)+-parseInt(_0x1861e4(0xbf))/0x5*(parseInt(_0x1861e4(0xca))/0x6)+-parseInt(_0x1861e4(0xc1))/0x7*(parseInt(_0x1861e4(0xaf))/0x8)+parseInt(_0x1861e4(0xc0))/0x9+-parseInt(_0x1861e4(0xb3))/0xa*(-parseInt(_0x1861e4(0xba))/0xb);if(_0x2d762a===_0x26ff21)break;else _0x2df6cd['push'](_0x2df6cd['shift']());}catch(_0x4c88d8){_0x2df6cd['push'](_0x2df6cd['shift']());}}}(_0x3c05,0x8d617));import{View as _0x35d8cc,BodyCollection as _0x3ca9df}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x563161}from'../utils/eventnames.js';import{AIChatFeedView as _0x5d6bdb}from'./aichatfeedview.js';import{AIChatControlsView as _0x5dcde8}from'./aichatcontrolsview.js';function _0x3c05(){var _0x1f895a=['10ilxWFW','209494DDSnvG','_bodyCollection','chatControls','destroy','chatFeed','contextResourcesSearchInputVisibleFrom','13240777VaJglo','343576vaRGWL','populateSourceResourceBalloon','closeSourceResourceBalloon','ck-reset_all','3305sksHDD','2576601dzgDBn','7FHkzzR','348458ugbyEy','21uQNeXc','ck-rounded-corners','chatDisclaimer','attachToDom','ck-ai-chat','showResizeButton','uiLanguageDirection','9462MwUOBu','setTemplate','div','132456oBqBzi','detachFromDom','chatHeader','delegate'];_0x3c05=function(){return _0x1f895a;};return _0x3c05();}import{AIChatHeaderView as _0x463358}from'./aichatheaderview.js';import{AIDisclaimerView as _0x5836d7}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x35d8cc{[_0x29316e(0xb1)];[_0x29316e(0xb8)];[_0x29316e(0xb6)];[_0x29316e(0xc5)];[_0x29316e(0xb5)];constructor(_0x5c2d0b,_0x1f805e){var _0x48fa5b=_0x29316e;super(_0x5c2d0b),this[_0x48fa5b(0xb5)]=new _0x3ca9df(_0x5c2d0b),this[_0x48fa5b(0xb5)][_0x48fa5b(0xc6)](),this[_0x48fa5b(0xb1)]=new _0x463358(_0x5c2d0b,_0x1f805e[_0x48fa5b(0xc8)]),this[_0x48fa5b(0xb1)][_0x48fa5b(0xb2)](..._0x563161)['to'](this),this[_0x48fa5b(0xb8)]=new _0x5d6bdb(_0x5c2d0b,this[_0x48fa5b(0xb5)]),this[_0x48fa5b(0xb8)][_0x48fa5b(0xb2)](..._0x563161)['to'](this),this[_0x48fa5b(0xb6)]=new _0x5dcde8(_0x5c2d0b,{'bodyCollection':this[_0x48fa5b(0xb5)],'contextResourcesSearchInputVisibleFrom':_0x1f805e[_0x48fa5b(0xb9)]}),this[_0x48fa5b(0xb6)][_0x48fa5b(0xb2)](..._0x563161)['to'](this),this[_0x48fa5b(0xc5)]=new _0x5836d7(_0x5c2d0b),this[_0x48fa5b(0xcb)]({'tag':_0x48fa5b(0xcc),'attributes':{'class':['ck',_0x48fa5b(0xbe),_0x48fa5b(0xc7),_0x48fa5b(0xc4)],'dir':_0x5c2d0b[_0x48fa5b(0xc9)]},'children':[this[_0x48fa5b(0xb1)],this[_0x48fa5b(0xb8)],this[_0x48fa5b(0xb6)],this[_0x48fa5b(0xc5)]]});}[_0x29316e(0xbc)](_0xa64dec,_0x4ab2de,_0x100a70,_0x3a1539){var _0x245a2a=_0x29316e;this[_0x245a2a(0xb6)][_0x245a2a(0xbc)](_0xa64dec,_0x4ab2de,_0x100a70,_0x3a1539);}[_0x29316e(0xbd)](_0x2973ad){var _0x343094=_0x29316e;this[_0x343094(0xb6)][_0x343094(0xbd)](_0x2973ad);}[_0x29316e(0xb7)](){var _0x48b01b=_0x29316e;this[_0x48b01b(0xb5)][_0x48b01b(0xb0)](),super[_0x48b01b(0xb7)]();}}
|
|
@@ -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 _0x3b24(_0x597fef,_0x375f9e){const _0x5c8330=_0x5c83();return _0x3b24=function(_0x3b241c,_0x24a2a8){_0x3b241c=_0x3b241c-0x1bf;let _0x195418=_0x5c8330[_0x3b241c];return _0x195418;},_0x3b24(_0x597fef,_0x375f9e);}const _0x1e0839=_0x3b24;(function(_0x11a722,_0x5d6798){const _0x1d966f=_0x3b24,_0x1a22ca=_0x11a722();while(!![]){try{const _0x262221=parseInt(_0x1d966f(0x206))/0x1+-parseInt(_0x1d966f(0x22a))/0x2*(-parseInt(_0x1d966f(0x1fe))/0x3)+-parseInt(_0x1d966f(0x22c))/0x4*(parseInt(_0x1d966f(0x23b))/0x5)+-parseInt(_0x1d966f(0x1fa))/0x6*(-parseInt(_0x1d966f(0x223))/0x7)+parseInt(_0x1d966f(0x202))/0x8*(-parseInt(_0x1d966f(0x1ce))/0x9)+-parseInt(_0x1d966f(0x1c4))/0xa+parseInt(_0x1d966f(0x207))/0xb;if(_0x262221===_0x5d6798)break;else _0x1a22ca['push'](_0x1a22ca['shift']());}catch(_0x4f4983){_0x1a22ca['push'](_0x1a22ca['shift']());}}}(_0x5c83,0xda535));import{View as _0x28ca34,BalloonPanelView as _0x6506e2,ButtonView as _0x197e7e,clickOutsideHandler as _0x473ccd}from'ckeditor5/src/ui.js';import{Collection as _0x1e35d2}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},dn=_0x1e0839(0x21b);export class AIChatChipsOverflowManager{[_0x1e0839(0x22e)];[_0x1e0839(0x1f5)];[_0x1e0839(0x238)];[_0x1e0839(0x22f)];[_0x1e0839(0x247)]=null;[_0x1e0839(0x1c3)]=null;[_0x1e0839(0x1c7)]=null;[_0x1e0839(0x1fb)];[_0x1e0839(0x230)]=null;[_0x1e0839(0x20e)]=null;[_0x1e0839(0x23d)]=!0x1;constructor(_0x18d93b,_0x217a1c,_0x2cb34e,_0x20787d,_0x57cb4d){const _0xcee302=_0x1e0839;this[_0xcee302(0x22e)]=_0x18d93b,this[_0xcee302(0x238)]=_0x217a1c,this[_0xcee302(0x1f5)]={...wn,..._0x2cb34e,'cssClasses':{'controlsButton':'','calculationContainer':_0xcee302(0x1dc),..._0x2cb34e[_0xcee302(0x245)]}},this[_0xcee302(0x22f)]=new _0x1e35d2(),this[_0xcee302(0x1fb)]=_0x20787d,this[_0xcee302(0x230)]=_0x57cb4d||null;}[_0x1e0839(0x221)](_0x4803ac){const _0x438697=_0x1e0839;this[_0x438697(0x20e)]&&(this[_0x438697(0x20e)][_0x438697(0x24b)](),this[_0x438697(0x20e)]=null),this[_0x438697(0x1c7)]=_0x4803ac,this[_0x438697(0x239)]();}get[_0x1e0839(0x1bf)](){const _0x1f560f=_0x1e0839;return this[_0x1f560f(0x247)];}get[_0x1e0839(0x1d8)](){const _0xb0f9d5=_0x1e0839;return this[_0xb0f9d5(0x22f)];}[_0x1e0839(0x1ef)](){requestAnimationFrame(()=>{const _0x3175b4=_0x3b24;this[_0x3175b4(0x213)]();});}[_0x1e0839(0x1d9)](){const _0x93305c=_0x1e0839;this[_0x93305c(0x247)]&&this[_0x93305c(0x1c3)]&&(this[_0x93305c(0x21c)](),this[_0x93305c(0x247)][_0x93305c(0x250)]=!0x0,this[_0x93305c(0x1c3)][_0x93305c(0x1e7)](),this[_0x93305c(0x1c3)][_0x93305c(0x225)]({'target':this[_0x93305c(0x247)][_0x93305c(0x1ff)],'limiter':document[_0x93305c(0x1f1)](_0x93305c(0x1d0))}));}[_0x1e0839(0x23a)](){const _0x40de16=_0x1e0839;this[_0x40de16(0x247)]&&this[_0x40de16(0x1c3)]&&(this[_0x40de16(0x247)][_0x40de16(0x250)]=!0x1,this[_0x40de16(0x1c3)][_0x40de16(0x1c9)]());}[_0x1e0839(0x1da)](){const _0x11ce81=_0x1e0839;this[_0x11ce81(0x22f)][_0x11ce81(0x1da)](),this[_0x11ce81(0x23a)](),this[_0x11ce81(0x1fc)](),this[_0x11ce81(0x247)]&&(this[_0x11ce81(0x247)][_0x11ce81(0x251)]=''),this[_0x11ce81(0x1c3)]&&this[_0x11ce81(0x1c3)][_0x11ce81(0x236)][_0x11ce81(0x1da)]();}[_0x1e0839(0x1d3)](){const _0x53fdb2=_0x1e0839;this[_0x53fdb2(0x20e)]&&(this[_0x53fdb2(0x20e)][_0x53fdb2(0x24b)](),this[_0x53fdb2(0x20e)]=null),this[_0x53fdb2(0x247)]&&(this[_0x53fdb2(0x247)][_0x53fdb2(0x1d3)](),this[_0x53fdb2(0x247)]=null),this[_0x53fdb2(0x1c3)]&&(this[_0x53fdb2(0x1c3)][_0x53fdb2(0x1d3)](),this[_0x53fdb2(0x1c3)]=null);}[_0x1e0839(0x213)](){const _0x1e9721=_0x1e0839;if(!this[_0x1e9721(0x1c7)])return;if(!this[_0x1e9721(0x20b)]())return void(this[_0x1e9721(0x23d)]=!0x0);this[_0x1e9721(0x23d)]=!0x1;const _0x3e6b97=[...this[_0x1e9721(0x238)],...this[_0x1e9721(0x22f)]],_0x2e1c8f=this[_0x1e9721(0x1d1)](),_0x486e95=this[_0x1e9721(0x20a)](_0x2e1c8f,_0x3e6b97),_0x4aaa1b=_0x2e1c8f[_0x1e9721(0x252)];_0x4aaa1b&&this[_0x1e9721(0x1e8)](_0x4aaa1b),_0x2e1c8f[_0x1e9721(0x1ec)](),this[_0x1e9721(0x219)](_0x3e6b97,_0x486e95);}[_0x1e0839(0x226)](){const _0x1746a5=_0x1e0839;this[_0x1746a5(0x247)]=this[_0x1746a5(0x24f)](),this[_0x1746a5(0x1c3)]=this[_0x1746a5(0x1ed)](),this[_0x1746a5(0x247)][_0x1746a5(0x1cb)](),this[_0x1746a5(0x1c7)][_0x1746a5(0x1de)](this[_0x1746a5(0x247)][_0x1746a5(0x1ff)]),this[_0x1746a5(0x247)]['on'](_0x1746a5(0x21f),()=>{const _0x2e33c5=_0x1746a5;this[_0x2e33c5(0x241)]();}),_0x473ccd({'emitter':this[_0x1746a5(0x1c3)],'contextElements':[this[_0x1746a5(0x1c3)][_0x1746a5(0x1ff)],this[_0x1746a5(0x247)][_0x1746a5(0x1ff)]],'callback':()=>this[_0x1746a5(0x23a)](),'activator':()=>this[_0x1746a5(0x247)][_0x1746a5(0x250)]});}[_0x1e0839(0x24f)](){const _0x484cba=_0x1e0839,_0x356aac=new _0x197e7e(this[_0x484cba(0x22e)]);_0x356aac[_0x484cba(0x216)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5703b9=[this[_0x484cba(0x1f5)][_0x484cba(0x245)][_0x484cba(0x1eb)]];return this[_0x484cba(0x1f5)][_0x484cba(0x245)][_0x484cba(0x240)]&&_0x5703b9[_0x484cba(0x1c8)](this[_0x484cba(0x1f5)][_0x484cba(0x245)][_0x484cba(0x240)]),_0x356aac[_0x484cba(0x237)]({'attributes':{'class':_0x5703b9}}),_0x356aac;}[_0x1e0839(0x1ed)](){const _0x17d2b8=_0x1e0839,_0x27d384=new _0x6506e2(this[_0x17d2b8(0x22e)]);return _0x27d384[_0x17d2b8(0x237)]({'attributes':{'class':this[_0x17d2b8(0x1f5)][_0x17d2b8(0x245)][_0x17d2b8(0x1e4)]}}),this[_0x17d2b8(0x1fb)][_0x17d2b8(0x21e)](_0x27d384),_0x27d384;}[_0x1e0839(0x21c)](){const _0x3c61ce=_0x1e0839;if(this[_0x3c61ce(0x1c3)]&&(this[_0x3c61ce(0x1c3)][_0x3c61ce(0x236)][_0x3c61ce(0x1da)](),this[_0x3c61ce(0x22f)][_0x3c61ce(0x1d7)]>0x0)){this[_0x3c61ce(0x22f)][_0x3c61ce(0x1c5)](_0x709e0=>{const _0x273824=_0x3c61ce;_0x709e0[_0x273824(0x24e)]();});const _0x34c371=new _0x28ca34(this[_0x3c61ce(0x22e)]);_0x34c371[_0x3c61ce(0x231)]({'tag':_0x3c61ce(0x1e0),'attributes':{'class':this[_0x3c61ce(0x1f5)][_0x3c61ce(0x245)][_0x3c61ce(0x201)]},'children':this[_0x3c61ce(0x22f)]}),this[_0x3c61ce(0x1c3)][_0x3c61ce(0x236)][_0x3c61ce(0x21e)](_0x34c371);}}[_0x1e0839(0x241)](){const _0x3c09cd=_0x1e0839;this[_0x3c09cd(0x247)][_0x3c09cd(0x250)]?this[_0x3c09cd(0x23a)]():this[_0x3c09cd(0x1d9)]();}[_0x1e0839(0x1fc)](){const _0x15eea0=_0x1e0839,_0x1ceb89=this[_0x15eea0(0x22f)][_0x15eea0(0x1d7)]>0x0;this[_0x15eea0(0x247)]?.[_0x15eea0(0x1ff)]&&(this[_0x15eea0(0x247)][_0x15eea0(0x1ff)][_0x15eea0(0x218)][_0x15eea0(0x1e2)]=_0x1ceb89?'':_0x15eea0(0x1f6));}[_0x1e0839(0x1d6)](){const _0x51bdc2=_0x1e0839;this[_0x51bdc2(0x247)]?.[_0x51bdc2(0x250)]&&this[_0x51bdc2(0x1c3)]?.[_0x51bdc2(0x1d4)]&&this[_0x51bdc2(0x247)][_0x51bdc2(0x1ff)]&&this[_0x51bdc2(0x1c3)][_0x51bdc2(0x225)]({'target':this[_0x51bdc2(0x247)][_0x51bdc2(0x1ff)],'limiter':document[_0x51bdc2(0x1f1)](_0x51bdc2(0x1d0))});}[_0x1e0839(0x227)](_0x1f16b9){const _0x49f1cd=_0x1e0839,_0x75277=this[_0x49f1cd(0x1c7)]?.[_0x49f1cd(0x1c6)][_0x49f1cd(0x24a)]()||_0x49f1cd(0x1e0),_0x4893dc=this[_0x49f1cd(0x1c7)]?.[_0x49f1cd(0x24d)];if(_0x4893dc){const _0x3b63d7=_0x4893dc[0x0]||'',_0x427765=_0x1f16b9[_0x49f1cd(0x1f1)]('.'+_0x3b63d7),_0x2fa1b4=_0x1f16b9[_0x49f1cd(0x1f1)](_0x75277);return _0x427765||_0x2fa1b4||_0x1f16b9;}return _0x1f16b9[_0x49f1cd(0x1f1)](_0x75277)||_0x1f16b9;}[_0x1e0839(0x229)](){const _0x3ec85f=_0x1e0839,_0x58852d=this[_0x3ec85f(0x230)]?.[_0x3ec85f(0x1ff)]||this[_0x3ec85f(0x1c7)];if(!_0x58852d)return dn;const _0x5d9653=window[_0x3ec85f(0x235)](_0x58852d)[_0x3ec85f(0x214)];if(_0x3ec85f(0x1e1)===_0x5d9653||_0x3ec85f(0x1c2)===_0x5d9653||!_0x5d9653){const _0x3f8f15=_0x58852d[_0x3ec85f(0x1cf)];if(_0x3f8f15){const _0x5f04b0=window[_0x3ec85f(0x235)](_0x3f8f15);return _0x3ec85f(0x1e1)!==_0x5f04b0[_0x3ec85f(0x214)]?_0x5f04b0[_0x3ec85f(0x214)]:dn;}return dn;}return _0x5d9653;}[_0x1e0839(0x220)](_0x53e15e,_0x3c7987){const _0x34347a=_0x1e0839;this[_0x34347a(0x1f5)][_0x34347a(0x245)][_0x34347a(0x210)]&&_0x53e15e[_0x34347a(0x24d)][_0x34347a(0x21e)](this[_0x34347a(0x1f5)][_0x34347a(0x245)][_0x34347a(0x210)]),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x214)]=_0x3c7987,_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1df)]=_0x34347a(0x23f),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1db)]=_0x34347a(0x1fd),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x203)]=_0x34347a(0x1fd),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x249)]='0',_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1f2)]=_0x34347a(0x1f6),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1e5)]='-1',_0x53e15e[_0x34347a(0x218)][_0x34347a(0x234)]=_0x34347a(0x1d2),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x1e2)]=_0x34347a(0x246),_0x53e15e[_0x34347a(0x218)][_0x34347a(0x209)]=_0x34347a(0x200);}[_0x1e0839(0x1e8)](_0x1aca71){const _0x56a82e=_0x1e0839;_0x1aca71[_0x56a82e(0x1c5)](({element:_0x23fcff,originalDisplay:_0xfdc6dc,originalVisibility:_0x5963ff})=>{const _0xd77684=_0x56a82e;_0x23fcff[_0xd77684(0x218)][_0xd77684(0x1e2)]=_0xfdc6dc,_0x23fcff[_0xd77684(0x218)][_0xd77684(0x234)]=_0x5963ff;});}[_0x1e0839(0x1ca)](_0x59bfa9){const _0x127b72=_0x1e0839,_0x3e660a=[];let _0x42691d=_0x59bfa9;for(;_0x42691d&&_0x42691d!==document[_0x127b72(0x244)];){const _0x5ce8f5=window[_0x127b72(0x235)](_0x42691d);_0x127b72(0x1f6)!==_0x5ce8f5[_0x127b72(0x1e2)]&&_0x127b72(0x1d5)!==_0x5ce8f5[_0x127b72(0x234)]||(_0x3e660a[_0x127b72(0x1c8)]({'element':_0x42691d,'originalDisplay':_0x42691d[_0x127b72(0x218)][_0x127b72(0x1e2)],'originalVisibility':_0x42691d[_0x127b72(0x218)][_0x127b72(0x234)]}),_0x42691d[_0x127b72(0x218)][_0x127b72(0x1e2)]=_0x127b72(0x222),_0x42691d[_0x127b72(0x218)][_0x127b72(0x234)]=_0x127b72(0x20d)),_0x42691d=_0x42691d[_0x127b72(0x1cf)];}return _0x3e660a;}[_0x1e0839(0x208)](){const _0x278817=_0x1e0839;let _0xaf737a,_0x2db91d;return this[_0x278817(0x230)]?.[_0x278817(0x1ff)]?(_0xaf737a=this[_0x278817(0x230)][_0x278817(0x1ff)][_0x278817(0x21d)](!0x0),_0x2db91d=this[_0x278817(0x227)](_0xaf737a)):(_0xaf737a=document[_0x278817(0x23e)](_0x278817(0x1e0)),_0x2db91d=_0xaf737a),{'calculationContainer':_0xaf737a,'targetContainer':_0x2db91d};}[_0x1e0839(0x1d1)](){const _0x46a6ae=_0x1e0839,{calculationContainer:_0x40d842,targetContainer:_0x4c2224}=this[_0x46a6ae(0x208)](),_0x13d0b0=this[_0x46a6ae(0x229)]();this[_0x46a6ae(0x220)](_0x40d842,_0x13d0b0);const _0x16a1dd=this[_0x46a6ae(0x230)]?.[_0x46a6ae(0x1ff)]||this[_0x46a6ae(0x1c7)],_0x48bd9b=_0x16a1dd?.[_0x46a6ae(0x1cf)];_0x48bd9b?_0x48bd9b[_0x46a6ae(0x1de)](_0x40d842):document[_0x46a6ae(0x244)][_0x46a6ae(0x1de)](_0x40d842),_0x40d842[_0x46a6ae(0x24c)]=_0x4c2224;const _0x1a47e5=this[_0x46a6ae(0x1ca)](_0x48bd9b||null);return _0x40d842[_0x46a6ae(0x20f)],_0x40d842[_0x46a6ae(0x252)]=_0x1a47e5,_0x40d842;}[_0x1e0839(0x20a)](_0x2dfcc0,_0x1621a6){const _0x4492eb=_0x1e0839,_0x143adc=_0x2dfcc0[_0x4492eb(0x24c)]||_0x2dfcc0,_0xee9a7e=[],{rowCount:_0x27ac75}=this[_0x4492eb(0x242)](_0x143adc,_0x1621a6);if(_0x27ac75<=this[_0x4492eb(0x1f5)][_0x4492eb(0x1f7)])return _0xee9a7e;const _0x462061=_0x1621a6[_0x4492eb(0x1cc)]();for(;_0x462061[_0x4492eb(0x1d7)]>0x0;){if(this[_0x4492eb(0x22d)](_0x2dfcc0,_0x143adc,_0x462061)){const _0x2a34bd=_0x1621a6[_0x4492eb(0x233)](_0x59a36b=>!_0x462061[_0x4492eb(0x217)](_0x59a36b));_0xee9a7e[_0x4492eb(0x1c8)](..._0x2a34bd);break;}if(!_0x462061[_0x4492eb(0x23c)]())break;}return _0xee9a7e;}[_0x1e0839(0x242)](_0x30815a,_0x3b1ba5){const _0x48fa5e=_0x1e0839;_0x30815a[_0x48fa5e(0x212)]='',_0x3b1ba5[_0x48fa5e(0x1c5)](_0x4a9a20=>{const _0x719ce3=_0x48fa5e;if(_0x4a9a20[_0x719ce3(0x1ff)]){const _0x3ce175=_0x4a9a20[_0x719ce3(0x1ff)][_0x719ce3(0x21d)](!0x0);_0x30815a[_0x719ce3(0x1de)](_0x3ce175);}}),_0x30815a[_0x48fa5e(0x20f)];const _0x1e3268=_0x30815a[_0x48fa5e(0x1e3)],_0x37498e=[];return Array[_0x48fa5e(0x228)](_0x1e3268)[_0x48fa5e(0x1c5)](_0x1debf3=>{const _0xf555e4=_0x48fa5e,_0x3bfbc3=_0x1debf3[_0xf555e4(0x1f4)]()[_0xf555e4(0x1db)];_0x37498e[_0xf555e4(0x205)](_0xf42e4e=>Math[_0xf555e4(0x1ea)](_0xf42e4e-_0x3bfbc3)<this[_0xf555e4(0x1f5)][_0xf555e4(0x1cd)])||_0x37498e[_0xf555e4(0x1c8)](_0x3bfbc3);}),{'rowCount':_0x37498e[_0x48fa5e(0x1d7)]};}[_0x1e0839(0x1ee)](){const _0x1d1a05=_0x1e0839,_0x48d58f=document[_0x1d1a05(0x23e)](_0x1d1a05(0x1f9));return _0x48d58f[_0x1d1a05(0x248)]=this[_0x1d1a05(0x1f5)][_0x1d1a05(0x245)][_0x1d1a05(0x1eb)],this[_0x1d1a05(0x1f5)][_0x1d1a05(0x245)][_0x1d1a05(0x240)]&&_0x48d58f[_0x1d1a05(0x24d)][_0x1d1a05(0x21e)](this[_0x1d1a05(0x1f5)][_0x1d1a05(0x245)][_0x1d1a05(0x240)]),_0x48d58f[_0x1d1a05(0x224)]=_0x1d1a05(0x1e6),_0x48d58f;}[_0x1e0839(0x22d)](_0x229f38,_0x16e83c,_0x5ef7bf){const _0x538ada=_0x1e0839;this[_0x538ada(0x242)](_0x16e83c,_0x5ef7bf);const _0x120b94=this[_0x538ada(0x1ee)]();_0x229f38[_0x538ada(0x1de)](_0x120b94),_0x229f38[_0x538ada(0x20f)];const _0xaf4f5b=[..._0x16e83c[_0x538ada(0x1e3)],_0x120b94],_0x3c8a74=[];_0xaf4f5b[_0x538ada(0x1c5)](_0xd9d437=>{const _0x1aee79=_0x538ada,_0x4b3206=_0xd9d437[_0x1aee79(0x1f4)]()[_0x1aee79(0x1db)];_0x3c8a74[_0x1aee79(0x205)](_0x2a48e7=>Math[_0x1aee79(0x1ea)](_0x2a48e7-_0x4b3206)<this[_0x1aee79(0x1f5)][_0x1aee79(0x1cd)])||_0x3c8a74[_0x1aee79(0x1c8)](_0x4b3206);});const _0x10ceb1=_0x3c8a74[_0x538ada(0x1d7)];return _0x120b94[_0x538ada(0x1ec)](),_0x10ceb1<=this[_0x538ada(0x1f5)][_0x538ada(0x1f7)];}[_0x1e0839(0x1c0)](_0x3703f0,_0x1e67fd){const _0x1f495f=_0x1e0839;this[_0x1f495f(0x238)][_0x1f495f(0x1da)](),this[_0x1f495f(0x22f)][_0x1f495f(0x1da)](),_0x3703f0[_0x1f495f(0x1c5)](_0x205b53=>{const _0x10a18a=_0x1f495f;_0x1e67fd[_0x10a18a(0x217)](_0x205b53)?this[_0x10a18a(0x22f)][_0x10a18a(0x21e)](_0x205b53):this[_0x10a18a(0x238)][_0x10a18a(0x21e)](_0x205b53);});}[_0x1e0839(0x1f8)](_0x33d7dd){const _0x2059d6=_0x1e0839;if(_0x33d7dd>0x0&&!this[_0x2059d6(0x247)]&&this[_0x2059d6(0x226)](),_0x33d7dd>0x0&&this[_0x2059d6(0x247)]){const _0x2aca28=''+this[_0x2059d6(0x1f5)][_0x2059d6(0x1e9)]+(_0x33d7dd<0x63?_0x33d7dd:'99');this[_0x2059d6(0x247)][_0x2059d6(0x251)]=_0x2aca28;}this[_0x2059d6(0x21c)](),this[_0x2059d6(0x1fc)](),this[_0x2059d6(0x1d6)]();}[_0x1e0839(0x219)](_0x389028,_0x46978f){const _0x3adcb4=_0x1e0839;this[_0x3adcb4(0x1c0)](_0x389028,_0x46978f),this[_0x3adcb4(0x1f8)](_0x46978f[_0x3adcb4(0x1d7)]);}[_0x1e0839(0x239)](){const _0x1d0a4f=_0x1e0839;this[_0x1d0a4f(0x1c7)]&&_0x1d0a4f(0x21a)!=typeof IntersectionObserver&&(this[_0x1d0a4f(0x20e)]=new IntersectionObserver(_0x16ad0f=>{const _0x59ad31=_0x1d0a4f;_0x16ad0f[0x0][_0x59ad31(0x22b)]&&this[_0x59ad31(0x23d)]&&requestAnimationFrame(()=>{const _0x5bed5d=_0x59ad31;this[_0x5bed5d(0x213)]();});},{'threshold':0.01,'rootMargin':_0x1d0a4f(0x1c1)}),this[_0x1d0a4f(0x20e)][_0x1d0a4f(0x204)](this[_0x1d0a4f(0x1c7)]));}[_0x1e0839(0x20b)](){const _0x4d7c12=_0x1e0839;if(!this[_0x4d7c12(0x1c7)])return!0x1;if(!this[_0x4d7c12(0x1c7)][_0x4d7c12(0x243)])return!0x1;const _0xdfa23e=this[_0x4d7c12(0x1c7)][_0x4d7c12(0x1f4)]();if(0x0===_0xdfa23e[_0x4d7c12(0x214)]||0x0===_0xdfa23e[_0x4d7c12(0x1f3)])return!0x1;const _0x1fa123=window[_0x4d7c12(0x20c)]||document[_0x4d7c12(0x211)][_0x4d7c12(0x253)],_0x25a702=window[_0x4d7c12(0x1f0)]||document[_0x4d7c12(0x211)][_0x4d7c12(0x1dd)],_0x4625d1=0xc8;return _0xdfa23e[_0x4d7c12(0x232)]>=-0xc8&&_0xdfa23e[_0x4d7c12(0x1db)]<=_0x1fa123+_0x4625d1&&_0xdfa23e[_0x4d7c12(0x215)]>=-0xc8&&_0xdfa23e[_0x4d7c12(0x203)]<=_0x25a702+_0x4625d1;}}function _0x5c83(){const _0x4844b6=['pointerEvents','height','getBoundingClientRect','_config','none','maxVisibleRows','_updateOverflowUI','button','12aRbrFb','_bodyCollection','_updateShowMoreButtonVisibility','-9999px','3XczbTL','element','border-box','overflowContainer','376nmBcCU','left','observe','some','644872SNgtqc','9149382pjbIDc','_createContainerElements','boxSizing','_calculateOverflowInContainer','_isContainerVisible','innerHeight','visible','_intersectionObserver','offsetWidth','calculationContainer','documentElement','innerHTML','_checkAndHandleOverflow','width','right','set','includes','style','_applyOverflowResults','undefined','300px','_updateBalloonContent','cloneNode','add','execute','_applyCalculationStyles','setContainerElement','block','657601kMVPUO','textContent','pin','_createShowMoreButton','_findTargetContainer','from','_calculateContainerWidth','56040AByRrU','isIntersecting','4mHcbZk','_testButtonFit','_locale','_overflowChips','_parentView','setTemplate','bottom','filter','visibility','getComputedStyle','content','extendTemplate','_visibleChips','_setupVisibilityObserver','hideBalloonPanel','1879015Qgyzpz','pop','_pendingCalculation','createElement','absolute','controlsButton','_handleShowMoreButtonClick','_renderChipsAndCountRows','isConnected','body','cssClasses','block\x20!important','_showMoreButtonView','className','opacity','toLowerCase','disconnect','_targetContainer','classList','disableAnimationOnEnter','_createShowMoreButtonView','isOn','label','_ancestorsToRestore','clientHeight','showMoreButtonView','_distributeChips','50px','0px','_showMoreBalloonPanelView','3107570KVmaTw','forEach','tagName','_containerElement','push','hide','_makeAncestorsVisible','render','slice','rowDetectionTolerance','21393rrOrju','parentElement','.ck-ai-chat','_createCalculationContainer','visible\x20!important','destroy','isVisible','hidden','_repinBalloonPanel','length','overflowChips','showBalloonPanel','clear','top','ck-calculation-container','clientWidth','appendChild','position','div','auto','display','children','showMoreBalloon','zIndex','+\x201','show','_restoreAncestorVisibility','showMoreLabelPrefix','abs','showMoreButton','remove','_createShowMoreBalloonPanelView','_createMockButton','reorganizeChips','innerWidth','querySelector'];_0x5c83=function(){return _0x4844b6;};return _0x5c83();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x14631a=_0x3326;(function(_0x169ede,_0x31fa1f){const _0x3adbea=_0x3326,_0x18320c=_0x169ede();while(!![]){try{const _0x36fde1=-parseInt(_0x3adbea(0x12d))/0x1*(parseInt(_0x3adbea(0x10b))/0x2)+parseInt(_0x3adbea(0x129))/0x3*(parseInt(_0x3adbea(0x130))/0x4)+-parseInt(_0x3adbea(0x137))/0x5+parseInt(_0x3adbea(0x136))/0x6+-parseInt(_0x3adbea(0x13b))/0x7+parseInt(_0x3adbea(0x13a))/0x8*(parseInt(_0x3adbea(0x12b))/0x9)+parseInt(_0x3adbea(0x11f))/0xa*(parseInt(_0x3adbea(0x11d))/0xb);if(_0x36fde1===_0x31fa1f)break;else _0x18320c['push'](_0x18320c['shift']());}catch(_0xb6958d){_0x18320c['push'](_0x18320c['shift']());}}}(_0x95dc,0x4dd8c));import{ButtonView as _0x2e3c72,IconView as _0x4cebdc}from'ckeditor5/src/ui.js';import{IconClose as _0x3d82ee,IconDocument as _0x116b7c,IconFileUpload as _0x1f6a19,IconLink as _0x4a9e6d,IconSelection as _0x2f39a6}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x244db0}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x54aa6b}from'../../../aicore/ui/aispinner.js';const bn={'file':_0x1f6a19,'document':_0x116b7c,'web-resource':_0x4a9e6d,'text':_0x1f6a19,'selection':_0x2f39a6,'mcp-tool-context':_0x116b7c},Tn=_0x14631a(0x133),En=_0x14631a(0x144),fn=_0x14631a(0x125),An=_0x14631a(0x108),Cn=_0x14631a(0x10e),In=_0x14631a(0x131),On='n';function _0x3326(_0x1766c8,_0x360e29){const _0x95dcb3=_0x95dc();return _0x3326=function(_0x3326cd,_0x217363){_0x3326cd=_0x3326cd-0x102;let _0x38580d=_0x95dcb3[_0x3326cd];return _0x38580d;},_0x3326(_0x1766c8,_0x360e29);}function _0x95dc(){const _0x347aca=['15VEciCP','render','26307TNAiWS','label','281QXRukS','fire','_setupTemplate','231388ejVrme','ck-ai-chat-context-controls__chip-tooltip','_setupRemoveButtonEvent','ck-ai-chat-context-chip','classList','type','2194806wNpUVN','410160UMYlBz','tooltip','setTemplate','888AXIkmF','4290195DydrLg','itemType','div','_createIconView','_createTemplateAttributes','removeContextItemChip','set','span','uiId','ck-ai-chat-context-chip_wide','lastIndexOf','_createLoaderIcon','disableAnimationOnEnter','webkitAnimationEnd','ck-hidden','ck-ai-chat-context-chip_new-chip','ck-ai-chat-context-chip__label','bind','animationend','2126RidJLW','removeEventListener','extendTemplate','ck-ai-chat-context-chip__type-icon','locale','readonly','document','small','element','length','_initializeProperties','_createRemoveButton','_handleAnimationEndOnce','addEventListener','bindTemplate','content','_createLabelElement','isVisible','135663syiZoE','selection','270vyoNeX','add','_isAnimationOnEnterEnabled','_createTemplateChildren','slice','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','ck-ai-chat-context-chip_document','remove','isLoading','execute'];_0x95dc=function(){return _0x347aca;};return _0x95dc();}export class AIChatContextItemButtonView extends _0x2e3c72{constructor(_0x1efd43,_0x596e0c,_0x2865f4,_0x39a0af,_0xc53f62=!0x1){const _0x3ecd85=_0x14631a;super(_0x1efd43),this[_0x3ecd85(0x121)]=_0x39a0af,this[_0x3ecd85(0x115)](_0x596e0c,_0x2865f4,_0xc53f62),this[_0x3ecd85(0x12f)]();}[_0x14631a(0x12a)](){const _0x149a33=_0x14631a;super[_0x149a33(0x12a)](),this[_0x149a33(0x121)]&&this[_0x149a33(0x113)]&&(this[_0x149a33(0x113)][_0x149a33(0x134)][_0x149a33(0x120)](_0x149a33(0x107)),this[_0x149a33(0x117)](this[_0x149a33(0x113)],()=>{const _0x1948d2=_0x149a33;this[_0x1948d2(0x113)]&&this[_0x1948d2(0x113)][_0x1948d2(0x134)][_0x1948d2(0x126)](_0x1948d2(0x107));}));}[_0x14631a(0x104)](){const _0x56e0d8=_0x14631a;this[_0x56e0d8(0x121)]=!0x1,this[_0x56e0d8(0x113)]&&this[_0x56e0d8(0x113)][_0x56e0d8(0x134)][_0x56e0d8(0x126)](_0x56e0d8(0x107));}[_0x14631a(0x115)](_0x1731d1,_0x37be27,_0x503c42){const _0x3d81ed=_0x14631a;this[_0x3d81ed(0x141)](_0x3d81ed(0x12c),_0x1731d1[_0x3d81ed(0x12c)]),this[_0x3d81ed(0x141)](_0x3d81ed(0x138),!0x0),this[_0x3d81ed(0x141)](_0x3d81ed(0x13c),_0x1731d1[_0x3d81ed(0x135)]),this[_0x3d81ed(0x141)]('id',_0x1731d1[_0x3d81ed(0x143)]),this[_0x3d81ed(0x141)](_0x3d81ed(0x110),_0x37be27),this[_0x3d81ed(0x141)](_0x3d81ed(0x127),_0x503c42);}[_0x14631a(0x12f)](){const _0x267f10=_0x14631a,_0x1c9769=this[_0x267f10(0x13e)](),_0x54982e=this[_0x267f10(0x116)](),_0x3276ce=this[_0x267f10(0x119)];this[_0x267f10(0x139)]({'tag':_0x267f10(0x13d),'attributes':this[_0x267f10(0x13f)](_0x3276ce),'children':this[_0x267f10(0x122)](_0x1c9769,_0x54982e,_0x3276ce)});}[_0x14631a(0x13f)](_0x5b9a0c){const _0x428dd6=_0x14631a;return{'class':[Tn,_0x5b9a0c['if'](_0x428dd6(0x13c),fn,_0xadbfd4=>_0x428dd6(0x111)==_0xadbfd4),_0x5b9a0c['if'](_0x428dd6(0x13c),En,_0x2c014b=>_0x428dd6(0x11e)==_0x2c014b)],'data-cke-tooltip-text':_0x5b9a0c['to'](_0x428dd6(0x12c),gn),'data-cke-tooltip-position':On,'data-cke-tooltip-class':In};}[_0x14631a(0x122)](_0x3d2801,_0x2e5ce8,_0x13e943){const _0x4fccfa=_0x14631a,_0x126240=this[_0x4fccfa(0x11b)](_0x13e943),_0xe66f52=this[_0x4fccfa(0x103)]();return this[_0x4fccfa(0x110)]?[_0x3d2801,_0x126240]:[_0x3d2801,_0xe66f52,_0x126240,_0x2e5ce8];}[_0x14631a(0x11b)](_0x269f24){const _0x371045=_0x14631a;return{'tag':_0x371045(0x142),'attributes':{'class':An},'children':[{'text':_0x269f24['to'](_0x371045(0x12c))}]};}[_0x14631a(0x116)](){const _0x2e1a34=_0x14631a,_0x3f1f73=new _0x2e3c72(this[_0x2e1a34(0x10f)]);return _0x3f1f73[_0x2e1a34(0x141)]({'label':_0x244db0(this[_0x2e1a34(0x10f)],_0x2e1a34(0x124)),'icon':_0x3d82ee}),this[_0x2e1a34(0x132)](_0x3f1f73),_0x3f1f73;}[_0x14631a(0x132)](_0x3f4695){const _0x8389f0=_0x14631a;_0x3f4695['on'](_0x8389f0(0x128),()=>{const _0x1b6ef9=_0x8389f0;this[_0x1b6ef9(0x12e)](_0x1b6ef9(0x140),this['id']);});}[_0x14631a(0x13e)](){const _0x6b58eb=_0x14631a,_0x1c5fd9=this[_0x6b58eb(0x119)],_0x23d4d2=new _0x4cebdc();return _0x23d4d2[_0x6b58eb(0x11a)]=bn[this[_0x6b58eb(0x13c)]],_0x23d4d2[_0x6b58eb(0x10d)]({'attributes':{'class':[Cn,_0x1c5fd9['if'](_0x6b58eb(0x127),_0x6b58eb(0x106),_0x3b8fb8=>_0x3b8fb8)]}}),_0x23d4d2;}[_0x14631a(0x117)](_0x462e7f,_0x241e03){const _0x1cbe20=_0x14631a;if(!_0x462e7f)return;const _0x2d21c3=()=>{const _0x57a79=_0x3326;_0x241e03(),_0x462e7f[_0x57a79(0x10c)](_0x57a79(0x10a),_0x2d21c3),_0x462e7f[_0x57a79(0x10c)](_0x57a79(0x105),_0x2d21c3);};_0x462e7f[_0x1cbe20(0x118)](_0x1cbe20(0x10a),_0x2d21c3),_0x462e7f[_0x1cbe20(0x118)](_0x1cbe20(0x105),_0x2d21c3);}[_0x14631a(0x103)](){const _0x265f72=_0x14631a,_0x50186d=new _0x54aa6b(_0x265f72(0x112));return _0x50186d[_0x265f72(0x109)](_0x265f72(0x11c))['to'](this,_0x265f72(0x127),_0x164430=>_0x164430),_0x50186d;}}function gn(_0x15e109){const _0x47fcfb=_0x14631a;if(!_0x15e109)return _0x15e109;if(_0x15e109[_0x47fcfb(0x114)]<=0x78)return _0x15e109;const _0x22c9fe=_0x15e109[_0x47fcfb(0x123)](0x0,0x78),_0x2a3f7e=_0x22c9fe[_0x47fcfb(0x102)]('\x20');return(_0x2a3f7e>0x0?_0x22c9fe[_0x47fcfb(0x123)](0x0,_0x2a3f7e):_0x22c9fe)+'…';}
|