@ckeditor/ckeditor5-ai 47.7.0-alpha.0 → 47.7.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x44b554=_0x35fa;(function(_0x58cd48,_0x21de4b){const _0x39274d=_0x35fa,_0x572fb4=_0x58cd48();while(!![]){try{const _0xadeb87=-parseInt(_0x39274d(0x149))/0x1+parseInt(_0x39274d(0x1a3))/0x2*(-parseInt(_0x39274d(0x144))/0x3)+parseInt(_0x39274d(0x19e))/0x4*(-parseInt(_0x39274d(0x1a5))/0x5)+-parseInt(_0x39274d(0x142))/0x6+-parseInt(_0x39274d(0x1b3))/0x7*(parseInt(_0x39274d(0x183))/0x8)+-parseInt(_0x39274d(0x16d))/0x9+parseInt(_0x39274d(0x19b))/0xa*(parseInt(_0x39274d(0x145))/0xb);if(_0xadeb87===_0x21de4b)break;else _0x572fb4['push'](_0x572fb4['shift']());}catch(_0x24c3a4){_0x572fb4['push'](_0x572fb4['shift']());}}}(_0x5197,0x6cd41));import{CKEditorError as _0x5502c9,EmitterMixin as _0x3e84c8,logWarning as _0x2a580e}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x218e1a}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x2713cd,AI_CONTEXT_MODEL_EVENT_NAMES as _0x515173}from'./aichatcontext.js';function _0x5197(){const _0x152383=['connector','getAvailableModels','setModel','_processMessagesToInteractions','addCurrentDocumentToContext','destroy','loadSourceResources','_handleToolResultData','6554736Pnqsit','delegate','options','getCapabilitiesConfig','chatModels','contextItems','hasOwn','removeSelectionFromContext','setReasoning','handleUserInteraction','chatContext','capabilities','getConversation','prompt','interactions','role','getInteraction','addToolItemToContext','code','updateCurrentDocument','isCurrentDocumentInContext','isAvailable','232LoIgqu','message','conversationInitialized','toggleWebSearch','splice','conversationStarted','ai-chat-conversation-init-failed','getAll','ai-chat-handle-user-conversation-not-initialized','group','chatCapabilities','url','ai-chat-handle-user-interaction-already-in-progress','getMessages','length','modification','createReply','stop','ai-chat-conversation-already-started','toolName','ai-chat-conversation-init-from-id-failed','getDocumentContext','conversationId','text','220QmzFvw','removeInteraction','assistant','548rqCJuq','setConversationTitle','currentInteraction','webSearch','user','278RGjTNL','getPendingContextItems','21055eUYzLP','addResourceToContext','addSelectionToContext','title','currentReply','_extractContextItems','createInteraction','push','fetchConversation','selectedModelId','toLowerCase','ai-chat-conversation-set-model-null','ai-chat-handle-user-interaction-start-failed','type','186529fmbZdw','isStarted','parse','stack','model','get','lastInteraction','ai-chat-conversation-start-failed','appendContent','setWebSearch','getEditor','attributes','fetchConversationMessages','sessionId','3665874DICroO','startConversation','10686ctNtlb','1904969SQZoyf','content','interactionCreated','isFromHistory','180106IuMiVS','indexOf','reasoning','ai-chat-conversation-start-no-model-selected','toggleReasoning','populateFromMessage','addToConversationContext','addFilesToContext','reset','error','sources','fire','getCurrentDocumentContext','load','addUrlToContext','getModel','isCurrentDocumentInConversation','init','start','ai-chat-conversation-set-model-not-available','modelSelected','mcp-tool-result','set','isSelectionInContext','find','selectedModel','updateCurrentDocumentInContext','removeFromContext'];_0x5197=function(){return _0x152383;};return _0x5197();}function _0x35fa(_0x51d3f0,_0xdab367){const _0x519723=_0x5197();return _0x35fa=function(_0x35fa3b,_0x192375){_0x35fa3b=_0x35fa3b-0x140;let _0x27d10b=_0x519723[_0x35fa3b];return _0x27d10b;},_0x35fa(_0x51d3f0,_0xdab367);}import{AICapabilities as _0x4c0306,CAPABILITIES_MODEL_EVENT_NAMES as _0x582516}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x389dc9}from'./aichatinteraction.js';import{errorsMap as _0x2db3b3}from'../../errorsmap.js';export class AIChatConversation extends _0x3e84c8(){['id'];[_0x44b554(0x1b4)]=!0x1;[_0x44b554(0x148)];[_0x44b554(0x17b)]=[];[_0x44b554(0x1a0)];[_0x44b554(0x162)];[_0x44b554(0x165)];[_0x44b554(0x16f)];constructor(_0x2006ec){const _0x39ffe7=_0x44b554;super(),this[_0x39ffe7(0x16f)]=_0x2006ec,this[_0x39ffe7(0x165)]=_0x2006ec[_0x39ffe7(0x165)],this[_0x39ffe7(0x171)]=_0x2006ec[_0x39ffe7(0x171)],this['id']=_0x2006ec[_0x39ffe7(0x199)],this[_0x39ffe7(0x148)]=_0x2006ec[_0x39ffe7(0x148)];}async[_0x44b554(0x15a)](_0x5c3567){const _0x10155f=_0x44b554;try{this[_0x10155f(0x177)]=new _0x2713cd({'connector':this[_0x10155f(0x165)],'config':_0x5c3567,'ownerId':this['id']}),this[_0x10155f(0x177)][_0x10155f(0x16e)](..._0x515173)['to'](this),this[_0x10155f(0x177)][_0x10155f(0x15a)](),this[_0x10155f(0x18d)]=new _0x4c0306(),this[_0x10155f(0x18d)][_0x10155f(0x16e)](..._0x582516)['to'](this),this[_0x10155f(0x18d)][_0x10155f(0x15a)]();const _0x430f36=await this[_0x10155f(0x171)][_0x10155f(0x166)]();this[_0x10155f(0x154)](_0x10155f(0x185),{'availableModels':_0x430f36});const _0x23131b=await this[_0x10155f(0x171)][_0x10155f(0x158)](this[_0x10155f(0x16f)][_0x10155f(0x1ae)]);_0x23131b&&await this[_0x10155f(0x167)](_0x23131b);}catch(_0x2048f4){const _0xc3f421=new _0x5502c9(_0x10155f(0x189),null,{'message':_0x2048f4[_0x10155f(0x184)]||_0x2048f4});_0xc3f421[_0x10155f(0x1b6)]=_0x2048f4[_0x10155f(0x1b6)],this[_0x10155f(0x154)](_0x10155f(0x152),{'error':_0xc3f421});}}async[_0x44b554(0x15b)](){const _0x12851e=_0x44b554;if(this[_0x12851e(0x1b4)])throw new _0x5502c9(_0x12851e(0x195),null,{'conversation':this});if(!this[_0x12851e(0x162)])throw new _0x5502c9(_0x12851e(0x14c),null,{'conversation':this});try{const {id:_0x36eb48}=await this[_0x12851e(0x165)][_0x12851e(0x143)](this['id'],this[_0x12851e(0x16f)][_0x12851e(0x18c)])[_0x12851e(0x179)]();this['id']=_0x36eb48,this[_0x12851e(0x1b4)]=!0x0,this[_0x12851e(0x154)](_0x12851e(0x188),{'conversationId':this['id'],'selectedModel':this[_0x12851e(0x162)]});}catch(_0x3fb5b4){const _0x54e8aa=new _0x5502c9(_0x12851e(0x1ba),null,{'message':_0x3fb5b4[_0x12851e(0x184)],'conversationId':this['id']});throw _0x54e8aa[_0x12851e(0x1b6)]=_0x3fb5b4[_0x12851e(0x1b6)],this[_0x12851e(0x154)](_0x12851e(0x152),{'error':_0x54e8aa}),_0x54e8aa;}}async[_0x44b554(0x156)](_0x2a1329,_0x3027b3){const _0x9c1556=_0x44b554;try{const _0x559bfc=await this[_0x9c1556(0x165)][_0x9c1556(0x1ad)](_0x2a1329)[_0x9c1556(0x179)](),_0x3581b6=await this[_0x9c1556(0x165)][_0x9c1556(0x140)](_0x2a1329)[_0x9c1556(0x190)](),_0xb2de9=_0x3581b6[0x0][_0x9c1556(0x1b7)];this[_0x9c1556(0x1b4)]=!0x0,this['id']=_0x559bfc['id'],_0x9c1556(0x1a8)in _0x559bfc?this[_0x9c1556(0x154)](_0x9c1556(0x19f),_0x559bfc[_0x9c1556(0x1a8)],!0x0):this[_0x9c1556(0x154)](_0x9c1556(0x19f),'',!0x0);const _0x3ef1d1=(await this[_0x9c1556(0x171)][_0x9c1556(0x18a)]())[_0x9c1556(0x161)](_0x50c240=>_0x50c240['id'][_0x9c1556(0x1af)]()===_0xb2de9[_0x9c1556(0x1af)]());return this[_0x9c1556(0x162)]=_0x3ef1d1,this[_0x9c1556(0x154)](_0x9c1556(0x15d),{'selectedModel':_0x3ef1d1,'isDisabled':!0x0}),await this[_0x9c1556(0x168)](_0x3581b6,_0x3027b3,_0xb2de9),this[_0x9c1556(0x1a0)]=void 0x0,this;}catch(_0x5ec5b4){const _0x57eb29=new _0x5502c9(_0x9c1556(0x197),null,{'message':_0x5ec5b4[_0x9c1556(0x184)],'conversationId':_0x2a1329});throw _0x57eb29[_0x9c1556(0x1b6)]=_0x5ec5b4[_0x9c1556(0x1b6)],this[_0x9c1556(0x154)](_0x9c1556(0x152),{'error':_0x57eb29}),_0x57eb29;}}async[_0x44b554(0x168)](_0x27b5f3,_0x540d14,_0x2dd73f){const _0x598279=_0x44b554;let _0x563e80;for(const _0x305554 of _0x27b5f3)if(_0x598279(0x1a2)===_0x305554[_0x598279(0x17c)]){const _0x57df94=await this[_0x598279(0x1aa)](_0x305554),_0x4d298f={'isReasoningEnabled':Object[_0x598279(0x173)](_0x305554[_0x598279(0x178)],_0x598279(0x14b)),'isWebSearchEnabled':Object[_0x598279(0x173)](_0x305554[_0x598279(0x178)],_0x598279(0x1a1))};_0x563e80=this[_0x598279(0x1ab)]({'userMessage':_0x305554[_0x598279(0x17a)],'contextItems':_0x57df94,'capabilities':_0x4d298f,'modelId':_0x2dd73f,'attributes':_0x305554[_0x598279(0x1be)]}),this[_0x598279(0x1a0)]=_0x563e80,this[_0x598279(0x177)][_0x598279(0x14f)](this[_0x598279(0x1a0)][_0x598279(0x172)]);}else{if(_0x598279(0x19d)===_0x305554[_0x598279(0x17c)]&&_0x563e80){const _0x547afd=[];for(const _0x382c03 of _0x305554[_0x598279(0x146)])switch(_0x382c03[_0x598279(0x1b2)]){case _0x598279(0x19a):case _0x598279(0x192):{const _0x4743ec=_0x563e80[_0x598279(0x198)]()?.[_0x598279(0x141)]!==_0x540d14;_0x563e80[_0x598279(0x1a9)]=_0x563e80[_0x598279(0x193)]({'type':_0x382c03[_0x598279(0x1b2)],'isDone':!0x0,'interactionId':_0x563e80['id'],'areActionsDisabled':_0x4743ec}),_0x563e80[_0x598279(0x1a9)][_0x598279(0x1bb)](_0x382c03[_0x598279(0x146)]),_0x547afd[_0x598279(0x191)]>0x0&&(_0x563e80[_0x598279(0x1a9)][_0x598279(0x153)]=_0x547afd[_0x598279(0x187)](0x0));break;}case _0x598279(0x18e):_0x547afd[_0x598279(0x1ac)](_0x382c03);break;case _0x598279(0x15e):{const {data:_0x1e7379,attributes:_0x38077e}=JSON[_0x598279(0x1b5)](_0x382c03[_0x598279(0x146)]);_0x563e80[_0x598279(0x16c)]({'toolName':_0x382c03[_0x598279(0x196)],'data':_0x1e7379,'attributes':_0x38077e});break;}}}}}async[_0x44b554(0x1aa)](_0x5155f4){const _0x40188b=_0x44b554,_0x148adf=new Map();if(!_0x5155f4[_0x40188b(0x146)])return _0x148adf;for(const _0x542cbd of _0x5155f4[_0x40188b(0x146)]){const _0x3355db=await this[_0x40188b(0x177)][_0x40188b(0x14e)](_0x542cbd);_0x3355db&&_0x148adf[_0x40188b(0x15f)](_0x3355db['id'],_0x3355db);}return _0x148adf;}async[_0x44b554(0x176)]({userMessage:_0x582b73,attributes:_0xff1352}){const _0x4e8776=_0x44b554;if(!this[_0x4e8776(0x1b4)])throw new _0x5502c9(_0x4e8776(0x18b),null,{'conversation':this});if(this[_0x4e8776(0x1a0)])throw new _0x5502c9(_0x4e8776(0x18f),null,{'conversation':this});try{const _0x5edc92=this[_0x4e8776(0x177)][_0x4e8776(0x1a4)](),_0x515d9f=this[_0x4e8776(0x18d)][_0x4e8776(0x170)](),_0x124914=this[_0x4e8776(0x162)]['id'];this[_0x4e8776(0x1a0)]=this[_0x4e8776(0x1ab)]({'userMessage':_0x582b73,'contextItems':_0x5edc92,'capabilities':_0x515d9f,'modelId':_0x124914,'attributes':_0xff1352}),await this[_0x4e8776(0x1a0)][_0x4e8776(0x15b)](),this[_0x4e8776(0x177)][_0x4e8776(0x14f)](this[_0x4e8776(0x1a0)][_0x4e8776(0x172)]);}catch(_0x1e0d15){if(_0x1e0d15 instanceof _0x5502c9)this[_0x4e8776(0x154)](_0x4e8776(0x152),{'interactionId':this[_0x4e8776(0x1a0)]?this[_0x4e8776(0x1a0)]['id']:void 0x0,'error':_0x1e0d15});else{const _0x4c6657=_0x2db3b3[_0x4e8776(0x1b8)](_0x1e0d15[_0x4e8776(0x17f)])||_0x4e8776(0x1b1);this[_0x4e8776(0x154)](_0x4e8776(0x152),{'interactionId':this[_0x4e8776(0x1a0)]?this[_0x4e8776(0x1a0)]['id']:void 0x0,'error':new _0x5502c9(_0x4c6657,null,{'error':_0x1e0d15})});}}finally{this[_0x4e8776(0x1a0)]?.[_0x4e8776(0x194)](),this[_0x4e8776(0x1a0)]=void 0x0;}}[_0x44b554(0x1ab)]({userMessage:_0x39eb47,contextItems:_0x588012,capabilities:_0x486170,modelId:_0x185118,attributes:_0x20f22f}){const _0x363de9=_0x44b554,_0x24563d=new _0x389dc9({'userMessage':_0x39eb47,'contextItems':_0x588012,'capabilities':_0x486170,'conversationId':this['id'],'connector':this[_0x363de9(0x165)],'editor':this[_0x363de9(0x16f)][_0x363de9(0x1bd)]&&this[_0x363de9(0x16f)][_0x363de9(0x1bd)](),'model':_0x185118,'attributes':_0x20f22f});return _0x24563d[_0x363de9(0x16e)](..._0x218e1a)['to'](this),this[_0x363de9(0x17b)][_0x363de9(0x1ac)](_0x24563d),this[_0x363de9(0x154)](_0x363de9(0x147),_0x24563d),_0x24563d;}[_0x44b554(0x17d)](_0x5116f7){const _0x4e2530=_0x44b554;return this[_0x4e2530(0x17b)][_0x4e2530(0x161)](_0x1e5e96=>_0x1e5e96['id']===_0x5116f7);}[_0x44b554(0x19c)](_0x3dc1e1){const _0x1d82bc=_0x44b554,_0x249934=this[_0x1d82bc(0x17d)](_0x3dc1e1);_0x249934&&(_0x249934[_0x1d82bc(0x16a)](),this[_0x1d82bc(0x17b)][_0x1d82bc(0x187)](this[_0x1d82bc(0x17b)][_0x1d82bc(0x14a)](_0x249934),0x1));}get[_0x44b554(0x1b9)](){const _0x1db9b9=_0x44b554;return this[_0x1db9b9(0x17b)][this[_0x1db9b9(0x17b)][_0x1db9b9(0x191)]-0x1];}[_0x44b554(0x169)](_0x3b97af){const _0x4cb1b5=_0x44b554;this[_0x4cb1b5(0x177)][_0x4cb1b5(0x169)](_0x3b97af);}async[_0x44b554(0x163)]({content:_0x31187d,version:_0x4c8a83,sessionId:_0x214d18,selections:_0x604b73}){const _0x20b192=_0x44b554;await this[_0x20b192(0x177)][_0x20b192(0x180)](_0x31187d,_0x4c8a83,_0x214d18,_0x604b73);}[_0x44b554(0x155)](){const _0x48478b=_0x44b554;return this[_0x48478b(0x1a0)]?.[_0x48478b(0x198)]()?.[_0x48478b(0x146)]||'';}[_0x44b554(0x1a7)](_0x3ccb74){const _0x44c19a=_0x44b554;this[_0x44c19a(0x177)][_0x44c19a(0x1a7)](_0x3ccb74);}[_0x44b554(0x174)](){const _0x1b1394=_0x44b554;this[_0x1b1394(0x177)][_0x1b1394(0x174)]();}[_0x44b554(0x150)](_0x2d5078){const _0x2f8a7a=_0x44b554;this[_0x2f8a7a(0x177)][_0x2f8a7a(0x150)](_0x2d5078);}[_0x44b554(0x157)](_0x5d7072){const _0x353a4d=_0x44b554;this[_0x353a4d(0x177)][_0x353a4d(0x157)](_0x5d7072);}[_0x44b554(0x17e)](_0x167f15){const _0x39a4c4=_0x44b554;this[_0x39a4c4(0x177)][_0x39a4c4(0x17e)](_0x167f15);}[_0x44b554(0x1a6)](_0x3b8e47,_0xf4484c){const _0x2dd9e5=_0x44b554;this[_0x2dd9e5(0x177)][_0x2dd9e5(0x1a6)](_0x3b8e47,_0xf4484c);}[_0x44b554(0x16b)](_0x5bc781,_0xd4f32e,_0x242985){const _0x4d48bf=_0x44b554;return this[_0x4d48bf(0x177)][_0x4d48bf(0x16b)](_0x5bc781,_0xd4f32e,_0x242985);}[_0x44b554(0x164)](_0x1ef51b){const _0x1097f5=_0x44b554;this[_0x1097f5(0x177)][_0x1097f5(0x164)](_0x1ef51b);}[_0x44b554(0x1bc)](_0x4a8468){const _0x45c0ef=_0x44b554;this[_0x45c0ef(0x18d)][_0x45c0ef(0x1bc)](_0x4a8468);}[_0x44b554(0x186)](){const _0xe15743=_0x44b554;this[_0xe15743(0x18d)][_0xe15743(0x186)]();}[_0x44b554(0x175)](_0x2c7c8e){const _0x426262=_0x44b554;this[_0x426262(0x18d)][_0x426262(0x175)](_0x2c7c8e);}[_0x44b554(0x14d)](){const _0xaf4dad=_0x44b554;this[_0xaf4dad(0x18d)][_0xaf4dad(0x14d)]();}[_0x44b554(0x181)](){const _0x15579a=_0x44b554;return this[_0x15579a(0x177)][_0x15579a(0x181)]();}[_0x44b554(0x159)](){const _0xcc4a6e=_0x44b554;return this[_0xcc4a6e(0x177)][_0xcc4a6e(0x159)]();}[_0x44b554(0x160)](){const _0xf261a1=_0x44b554;return this[_0xf261a1(0x177)][_0xf261a1(0x160)]();}async[_0x44b554(0x167)](_0x5076c2){const _0x348224=_0x44b554;_0x5076c2?!0x1===await this[_0x348224(0x171)][_0x348224(0x182)](_0x5076c2)&&(_0x2a580e(_0x348224(0x15c),{'conversation':this,'model':_0x5076c2}),_0x5076c2=(await this[_0x348224(0x171)][_0x348224(0x166)]())[0x0]):(_0x2a580e(_0x348224(0x1b0),{'conversation':this}),_0x5076c2=(await this[_0x348224(0x171)][_0x348224(0x166)]())[0x0]),_0x5076c2['id']!==this[_0x348224(0x162)]?.['id']&&(this[_0x348224(0x162)]=_0x5076c2,this[_0x348224(0x18d)][_0x348224(0x151)](),this[_0x348224(0x154)](_0x348224(0x15d),{'selectedModel':_0x5076c2}));}}
|
|
23
|
+
function _0x3a09(){const _0x2f24c9=['ai-chat-conversation-start-failed','conversationId','start','getCurrentDocumentContext','indexOf','getConversation','role','getPendingContextItems','addToConversationContext','push','_processMessagesToInteractions','9NYdRKX','fetchConversation','addSelectionToContext','ai-chat-conversation-set-model-not-available','setModel','setReasoning','ai-chat-handle-user-interaction-start-failed','length','ai-chat-handle-user-interaction-already-in-progress','modelSelected','addToolItemToContext','group','toggleWebSearch','setWebSearch','prompt','chatModels','message','options','text','contextItems','isFromHistory','ai-chat-handle-user-conversation-not-initialized','getCapabilitiesConfig','model','setConversationTitle','init','6HGQPEV','webSearch','hasOwn','addCurrentDocumentToContext','addUrlToContext','ai-chat-conversation-init-failed','isCurrentDocumentInContext','destroy','createInteraction','_handleToolResultData','find','addResourceToContext','getAll','4483905WRZxTg','reasoning','ai-chat-conversation-init-from-id-failed','code','addFilesToContext','attributes','modification','capabilities','stop','updateCurrentDocument','delegate','content','connector','isAvailable','_extractContextItems','selectedModel','loadSourceResources','getEditor','stack','handleUserInteraction','ai-chat-conversation-set-model-null','1028796ZuNLjY','interactionCreated','sessionId','startConversation','8YgIYTZ','conversationStarted','2410000eZheEZ','reset','lastInteraction','chatCapabilities','24NTsfRS','set','selectedModelId','toLowerCase','removeInteraction','parse','conversationInitialized','get','updateCurrentDocumentInContext','getDocumentContext','chatContext','assistant','interactions','splice','3199149bZDaxs','sources','removeSelectionFromContext','removeFromContext','8096924QxrCnJ','user','title','isSelectionInContext','fetchConversationMessages','appendContent','getAvailableModels','currentInteraction','createReply','currentReply','getModel','5537329YBFLTm','error','getMessages','load','populateFromMessage','6022idSNma','327WLBind','isCurrentDocumentInConversation','mcp-tool-result','getInteraction','toolName','ai-chat-conversation-already-started','isStarted','url','ai-chat-conversation-start-no-model-selected','fire','type','toggleReasoning'];_0x3a09=function(){return _0x2f24c9;};return _0x3a09();}function _0x21c6(_0x328ebf,_0x24b58f){const _0x3a094e=_0x3a09();return _0x21c6=function(_0x21c6bb,_0x3f4581){_0x21c6bb=_0x21c6bb-0x10c;let _0x3ff245=_0x3a094e[_0x21c6bb];return _0x3ff245;},_0x21c6(_0x328ebf,_0x24b58f);}const _0xf624fd=_0x21c6;(function(_0xc0c540,_0x414283){const _0x39763c=_0x21c6,_0x4051e2=_0xc0c540();while(!![]){try{const _0x13dd9f=-parseInt(_0x39763c(0x12c))/0x1*(parseInt(_0x39763c(0x12b))/0x2)+-parseInt(_0x39763c(0x143))/0x3*(-parseInt(_0x39763c(0x17f))/0x4)+-parseInt(_0x39763c(0x16a))/0x5*(parseInt(_0x39763c(0x15d))/0x6)+parseInt(_0x39763c(0x126))/0x7*(parseInt(_0x39763c(0x183))/0x8)+-parseInt(_0x39763c(0x117))/0x9+-parseInt(_0x39763c(0x185))/0xa+-parseInt(_0x39763c(0x11b))/0xb*(-parseInt(_0x39763c(0x189))/0xc);if(_0x13dd9f===_0x414283)break;else _0x4051e2['push'](_0x4051e2['shift']());}catch(_0x2fb810){_0x4051e2['push'](_0x4051e2['shift']());}}}(_0x3a09,0x87fad));import{CKEditorError as _0x5af740,EmitterMixin as _0x28ced1,logWarning as _0x13eb82}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x5ce25a}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x1fbda6,AI_CONTEXT_MODEL_EVENT_NAMES as _0x1e1980}from'./aichatcontext.js';import{AICapabilities as _0x36e433,CAPABILITIES_MODEL_EVENT_NAMES as _0x18bf33}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x29da5e}from'./aichatinteraction.js';import{errorsMap as _0x3b9821}from'../../errorsmap.js';export class AIChatConversation extends _0x28ced1(){['id'];[_0xf624fd(0x132)]=!0x1;[_0xf624fd(0x157)];[_0xf624fd(0x115)]=[];[_0xf624fd(0x122)];[_0xf624fd(0x179)];[_0xf624fd(0x176)];[_0xf624fd(0x154)];constructor(_0xad5c8f){const _0x358085=_0xf624fd;super(),this[_0x358085(0x154)]=_0xad5c8f,this[_0x358085(0x176)]=_0xad5c8f[_0x358085(0x176)],this[_0x358085(0x152)]=_0xad5c8f[_0x358085(0x152)],this['id']=_0xad5c8f[_0x358085(0x139)],this[_0x358085(0x157)]=_0xad5c8f[_0x358085(0x157)];}async[_0xf624fd(0x15c)](_0x1bda07){const _0x1b0ff6=_0xf624fd;try{this[_0x1b0ff6(0x113)]=new _0x1fbda6({'connector':this[_0x1b0ff6(0x176)],'config':_0x1bda07,'ownerId':this['id']}),this[_0x1b0ff6(0x113)][_0x1b0ff6(0x174)](..._0x1e1980)['to'](this),this[_0x1b0ff6(0x113)][_0x1b0ff6(0x15c)](),this[_0x1b0ff6(0x188)]=new _0x36e433(),this[_0x1b0ff6(0x188)][_0x1b0ff6(0x174)](..._0x18bf33)['to'](this),this[_0x1b0ff6(0x188)][_0x1b0ff6(0x15c)]();const _0x43f0a4=await this[_0x1b0ff6(0x152)][_0x1b0ff6(0x121)]();this[_0x1b0ff6(0x135)](_0x1b0ff6(0x10f),{'availableModels':_0x43f0a4});const _0x2a93c7=await this[_0x1b0ff6(0x152)][_0x1b0ff6(0x125)](this[_0x1b0ff6(0x154)][_0x1b0ff6(0x18b)]);_0x2a93c7&&await this[_0x1b0ff6(0x147)](_0x2a93c7);}catch(_0x265333){const _0x1e89be=new _0x5af740(_0x1b0ff6(0x162),null,{'message':_0x265333[_0x1b0ff6(0x153)]||_0x265333});_0x1e89be[_0x1b0ff6(0x17c)]=_0x265333[_0x1b0ff6(0x17c)],this[_0x1b0ff6(0x135)](_0x1b0ff6(0x127),{'error':_0x1e89be});}}async[_0xf624fd(0x13a)](){const _0x24e6d2=_0xf624fd;if(this[_0x24e6d2(0x132)])throw new _0x5af740(_0x24e6d2(0x131),null,{'conversation':this});if(!this[_0x24e6d2(0x179)])throw new _0x5af740(_0x24e6d2(0x134),null,{'conversation':this});try{const {id:_0x45a51b}=await this[_0x24e6d2(0x176)][_0x24e6d2(0x182)](this['id'],this[_0x24e6d2(0x154)][_0x24e6d2(0x14e)])[_0x24e6d2(0x13d)]();this['id']=_0x45a51b,this[_0x24e6d2(0x132)]=!0x0,this[_0x24e6d2(0x135)](_0x24e6d2(0x184),{'conversationId':this['id'],'selectedModel':this[_0x24e6d2(0x179)]});}catch(_0x2a7257){const _0x3d4db3=new _0x5af740(_0x24e6d2(0x138),null,{'message':_0x2a7257[_0x24e6d2(0x153)],'conversationId':this['id']});throw _0x3d4db3[_0x24e6d2(0x17c)]=_0x2a7257[_0x24e6d2(0x17c)],this[_0x24e6d2(0x135)](_0x24e6d2(0x127),{'error':_0x3d4db3}),_0x3d4db3;}}async[_0xf624fd(0x129)](_0x1b4380,_0x613fcc){const _0xb5f2a1=_0xf624fd;try{const _0x662ff=await this[_0xb5f2a1(0x176)][_0xb5f2a1(0x144)](_0x1b4380)[_0xb5f2a1(0x13d)](),_0x594d6e=await this[_0xb5f2a1(0x176)][_0xb5f2a1(0x11f)](_0x1b4380)[_0xb5f2a1(0x128)](),_0x3336e6=_0x594d6e[0x0][_0xb5f2a1(0x15a)];this[_0xb5f2a1(0x132)]=!0x0,this['id']=_0x662ff['id'],_0xb5f2a1(0x11d)in _0x662ff?this[_0xb5f2a1(0x135)](_0xb5f2a1(0x15b),_0x662ff[_0xb5f2a1(0x11d)],!0x0):this[_0xb5f2a1(0x135)](_0xb5f2a1(0x15b),'',!0x0);const _0x24c732=(await this[_0xb5f2a1(0x152)][_0xb5f2a1(0x169)]())[_0xb5f2a1(0x167)](_0x4d74c8=>_0x4d74c8['id'][_0xb5f2a1(0x10c)]()===_0x3336e6[_0xb5f2a1(0x10c)]());return this[_0xb5f2a1(0x179)]=_0x24c732,this[_0xb5f2a1(0x135)](_0xb5f2a1(0x14c),{'selectedModel':_0x24c732,'isDisabled':!0x0}),await this[_0xb5f2a1(0x142)](_0x594d6e,_0x613fcc,_0x3336e6),this[_0xb5f2a1(0x122)]=void 0x0,this;}catch(_0x4142e3){const _0x24746e=new _0x5af740(_0xb5f2a1(0x16c),null,{'message':_0x4142e3[_0xb5f2a1(0x153)],'conversationId':_0x1b4380});throw _0x24746e[_0xb5f2a1(0x17c)]=_0x4142e3[_0xb5f2a1(0x17c)],this[_0xb5f2a1(0x135)](_0xb5f2a1(0x127),{'error':_0x24746e}),_0x24746e;}}async[_0xf624fd(0x142)](_0x273eaa,_0x21ec08,_0x3b60fd){const _0x2c7550=_0xf624fd;let _0x23a1e2;for(const _0x213269 of _0x273eaa)if(_0x2c7550(0x11c)===_0x213269[_0x2c7550(0x13e)]){const _0x54358a=await this[_0x2c7550(0x178)](_0x213269),_0x28de6d={'isReasoningEnabled':Object[_0x2c7550(0x15f)](_0x213269[_0x2c7550(0x171)],_0x2c7550(0x16b)),'isWebSearchEnabled':Object[_0x2c7550(0x15f)](_0x213269[_0x2c7550(0x171)],_0x2c7550(0x15e))};_0x23a1e2=this[_0x2c7550(0x165)]({'userMessage':_0x213269[_0x2c7550(0x151)],'contextItems':_0x54358a,'capabilities':_0x28de6d,'modelId':_0x3b60fd,'attributes':_0x213269[_0x2c7550(0x16f)]}),this[_0x2c7550(0x122)]=_0x23a1e2,this[_0x2c7550(0x113)][_0x2c7550(0x140)](this[_0x2c7550(0x122)][_0x2c7550(0x156)]);}else{if(_0x2c7550(0x114)===_0x213269[_0x2c7550(0x13e)]&&_0x23a1e2){const _0xde25a6=[];for(const _0x301025 of _0x213269[_0x2c7550(0x175)])switch(_0x301025[_0x2c7550(0x136)]){case _0x2c7550(0x155):case _0x2c7550(0x170):{const _0x4d964e=_0x23a1e2[_0x2c7550(0x112)]()?.[_0x2c7550(0x181)]!==_0x21ec08;_0x23a1e2[_0x2c7550(0x124)]=_0x23a1e2[_0x2c7550(0x123)]({'type':_0x301025[_0x2c7550(0x136)],'isDone':!0x0,'interactionId':_0x23a1e2['id'],'areActionsDisabled':_0x4d964e}),_0x23a1e2[_0x2c7550(0x124)][_0x2c7550(0x120)](_0x301025[_0x2c7550(0x175)]),_0xde25a6[_0x2c7550(0x14a)]>0x0&&(_0x23a1e2[_0x2c7550(0x124)][_0x2c7550(0x118)]=_0xde25a6[_0x2c7550(0x116)](0x0));break;}case _0x2c7550(0x133):_0xde25a6[_0x2c7550(0x141)](_0x301025);break;case _0x2c7550(0x12e):{const {data:_0xfd882d,attributes:_0x1d190d}=JSON[_0x2c7550(0x10e)](_0x301025[_0x2c7550(0x175)]);_0x23a1e2[_0x2c7550(0x166)]({'toolName':_0x301025[_0x2c7550(0x130)],'data':_0xfd882d,'attributes':_0x1d190d});break;}}}}}async[_0xf624fd(0x178)](_0xc7bb67){const _0x5c0d0c=_0xf624fd,_0x35cb4f=new Map();if(!_0xc7bb67[_0x5c0d0c(0x175)])return _0x35cb4f;for(const _0x1060da of _0xc7bb67[_0x5c0d0c(0x175)]){const _0x79f866=await this[_0x5c0d0c(0x113)][_0x5c0d0c(0x12a)](_0x1060da);_0x79f866&&_0x35cb4f[_0x5c0d0c(0x18a)](_0x79f866['id'],_0x79f866);}return _0x35cb4f;}async[_0xf624fd(0x17d)]({userMessage:_0x573aff,attributes:_0x586d62}){const _0x38aad6=_0xf624fd;if(!this[_0x38aad6(0x132)])throw new _0x5af740(_0x38aad6(0x158),null,{'conversation':this});if(this[_0x38aad6(0x122)])throw new _0x5af740(_0x38aad6(0x14b),null,{'conversation':this});try{const _0x13ee14=this[_0x38aad6(0x113)][_0x38aad6(0x13f)](),_0x31f7ab=this[_0x38aad6(0x188)][_0x38aad6(0x159)](),_0x337143=this[_0x38aad6(0x179)]['id'];this[_0x38aad6(0x122)]=this[_0x38aad6(0x165)]({'userMessage':_0x573aff,'contextItems':_0x13ee14,'capabilities':_0x31f7ab,'modelId':_0x337143,'attributes':_0x586d62}),await this[_0x38aad6(0x122)][_0x38aad6(0x13a)](),this[_0x38aad6(0x113)][_0x38aad6(0x140)](this[_0x38aad6(0x122)][_0x38aad6(0x156)]);}catch(_0x5b9b81){if(_0x5b9b81 instanceof _0x5af740)this[_0x38aad6(0x135)](_0x38aad6(0x127),{'interactionId':this[_0x38aad6(0x122)]?this[_0x38aad6(0x122)]['id']:void 0x0,'error':_0x5b9b81});else{const _0x4815ab=_0x3b9821[_0x38aad6(0x110)](_0x5b9b81[_0x38aad6(0x16d)])||_0x38aad6(0x149);this[_0x38aad6(0x135)](_0x38aad6(0x127),{'interactionId':this[_0x38aad6(0x122)]?this[_0x38aad6(0x122)]['id']:void 0x0,'error':new _0x5af740(_0x4815ab,null,{'error':_0x5b9b81})});}}finally{this[_0x38aad6(0x122)]?.[_0x38aad6(0x172)](),this[_0x38aad6(0x122)]=void 0x0;}}[_0xf624fd(0x165)]({userMessage:_0x42200b,contextItems:_0x4ebf2b,capabilities:_0x221304,modelId:_0x53963d,attributes:_0x2233c1}){const _0x47d0ff=_0xf624fd,_0x26e746=new _0x29da5e({'userMessage':_0x42200b,'contextItems':_0x4ebf2b,'capabilities':_0x221304,'conversationId':this['id'],'connector':this[_0x47d0ff(0x176)],'editor':this[_0x47d0ff(0x154)][_0x47d0ff(0x17b)]&&this[_0x47d0ff(0x154)][_0x47d0ff(0x17b)](),'model':_0x53963d,'attributes':_0x2233c1});return _0x26e746[_0x47d0ff(0x174)](..._0x5ce25a)['to'](this),this[_0x47d0ff(0x115)][_0x47d0ff(0x141)](_0x26e746),this[_0x47d0ff(0x135)](_0x47d0ff(0x180),_0x26e746),_0x26e746;}[_0xf624fd(0x12f)](_0x3c8d2e){const _0x26ff2a=_0xf624fd;return this[_0x26ff2a(0x115)][_0x26ff2a(0x167)](_0xfd2770=>_0xfd2770['id']===_0x3c8d2e);}[_0xf624fd(0x10d)](_0x3dbae9){const _0x456ca5=_0xf624fd,_0x223e39=this[_0x456ca5(0x12f)](_0x3dbae9);_0x223e39&&(_0x223e39[_0x456ca5(0x164)](),this[_0x456ca5(0x115)][_0x456ca5(0x116)](this[_0x456ca5(0x115)][_0x456ca5(0x13c)](_0x223e39),0x1));}get[_0xf624fd(0x187)](){const _0x55b3a2=_0xf624fd;return this[_0x55b3a2(0x115)][this[_0x55b3a2(0x115)][_0x55b3a2(0x14a)]-0x1];}[_0xf624fd(0x160)](_0x3c345c){const _0xdf3b68=_0xf624fd;this[_0xdf3b68(0x113)][_0xdf3b68(0x160)](_0x3c345c);}async[_0xf624fd(0x111)]({content:_0x48f372,version:_0x668c7f,sessionId:_0x50708f,selections:_0x1a44ac}){const _0x54a57c=_0xf624fd;await this[_0x54a57c(0x113)][_0x54a57c(0x173)](_0x48f372,_0x668c7f,_0x50708f,_0x1a44ac);}[_0xf624fd(0x13b)](){const _0x4e772f=_0xf624fd;return this[_0x4e772f(0x122)]?.[_0x4e772f(0x112)]()?.[_0x4e772f(0x175)]||'';}[_0xf624fd(0x145)](_0x39450f){const _0x6ff881=_0xf624fd;this[_0x6ff881(0x113)][_0x6ff881(0x145)](_0x39450f);}[_0xf624fd(0x119)](){const _0x45ec9f=_0xf624fd;this[_0x45ec9f(0x113)][_0x45ec9f(0x119)]();}[_0xf624fd(0x16e)](_0x4346ca){const _0x101335=_0xf624fd;this[_0x101335(0x113)][_0x101335(0x16e)](_0x4346ca);}[_0xf624fd(0x161)](_0x4cd0f7){const _0x352e6a=_0xf624fd;this[_0x352e6a(0x113)][_0x352e6a(0x161)](_0x4cd0f7);}[_0xf624fd(0x14d)](_0x41b3d7){const _0x30254e=_0xf624fd;this[_0x30254e(0x113)][_0x30254e(0x14d)](_0x41b3d7);}[_0xf624fd(0x168)](_0x407563,_0x413467){const _0x2c1197=_0xf624fd;this[_0x2c1197(0x113)][_0x2c1197(0x168)](_0x407563,_0x413467);}[_0xf624fd(0x17a)](_0x50468d,_0x4426fc,_0x449f08){const _0xed5863=_0xf624fd;return this[_0xed5863(0x113)][_0xed5863(0x17a)](_0x50468d,_0x4426fc,_0x449f08);}[_0xf624fd(0x11a)](_0x1396ca){const _0x17f7cc=_0xf624fd;this[_0x17f7cc(0x113)][_0x17f7cc(0x11a)](_0x1396ca);}[_0xf624fd(0x150)](_0x356eff){const _0x372772=_0xf624fd;this[_0x372772(0x188)][_0x372772(0x150)](_0x356eff);}[_0xf624fd(0x14f)](){const _0x569c6a=_0xf624fd;this[_0x569c6a(0x188)][_0x569c6a(0x14f)]();}[_0xf624fd(0x148)](_0x4c18ff){const _0x523b34=_0xf624fd;this[_0x523b34(0x188)][_0x523b34(0x148)](_0x4c18ff);}[_0xf624fd(0x137)](){const _0x462768=_0xf624fd;this[_0x462768(0x188)][_0x462768(0x137)]();}[_0xf624fd(0x163)](){const _0x2f550f=_0xf624fd;return this[_0x2f550f(0x113)][_0x2f550f(0x163)]();}[_0xf624fd(0x12d)](){const _0x1c78e4=_0xf624fd;return this[_0x1c78e4(0x113)][_0x1c78e4(0x12d)]();}[_0xf624fd(0x11e)](){const _0x171214=_0xf624fd;return this[_0x171214(0x113)][_0x171214(0x11e)]();}async[_0xf624fd(0x147)](_0x30e983){const _0x54897d=_0xf624fd;_0x30e983?!0x1===await this[_0x54897d(0x152)][_0x54897d(0x177)](_0x30e983)&&(_0x13eb82(_0x54897d(0x146),{'conversation':this,'model':_0x30e983}),_0x30e983=(await this[_0x54897d(0x152)][_0x54897d(0x121)]())[0x0]):(_0x13eb82(_0x54897d(0x17e),{'conversation':this}),_0x30e983=(await this[_0x54897d(0x152)][_0x54897d(0x121)]())[0x0]),_0x30e983['id']!==this[_0x54897d(0x179)]?.['id']&&(this[_0x54897d(0x179)]=_0x30e983,this[_0x54897d(0x188)][_0x54897d(0x186)](),this[_0x54897d(0x135)](_0x54897d(0x14c),{'selectedModel':_0x30e983}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5776e6=_0x3bd0;function _0x2a7e(){var _0x40395f=['102phMIvt','attributes','230aEcYgn','mapContextItemsToRequestData','get','userMessage','4337qCvmEN','451932GFbphE','getDocumentContext','capabilities','12uhbpcd','conversationId','24048rxtqLa','contextItems','sendRequest','367242LmzsFd','2493fJULXa','791WXTmeN','getCapabilitiesRequestData','queryAssistant','current-document','35Slctod','connector','393910xwmlnK','model','3354sLiXLQ','39375271qrYiXr'];_0x2a7e=function(){return _0x40395f;};return _0x2a7e();}(function(_0x466184,_0x673a91){var _0x2cb9a8=_0x3bd0,_0x2efbc6=_0x466184();while(!![]){try{var _0x39be1f=-parseInt(_0x2cb9a8(0x176))/0x1*(-parseInt(_0x2cb9a8(0x170))/0x2)+-parseInt(_0x2cb9a8(0x164))/0x3+-parseInt(_0x2cb9a8(0x177))/0x4*(parseInt(_0x2cb9a8(0x16a))/0x5)+parseInt(_0x2cb9a8(0x16e))/0x6*(parseInt(_0x2cb9a8(0x166))/0x7)+parseInt(_0x2cb9a8(0x17c))/0x8*(-parseInt(_0x2cb9a8(0x165))/0x9)+-parseInt(_0x2cb9a8(0x172))/0xa*(parseInt(_0x2cb9a8(0x16c))/0xb)+parseInt(_0x2cb9a8(0x17a))/0xc*(parseInt(_0x2cb9a8(0x16f))/0xd);if(_0x39be1f===_0x673a91)break;else _0x2efbc6['push'](_0x2efbc6['shift']());}catch(_0x233717){_0x2efbc6['push'](_0x2efbc6['shift']());}}}(_0x2a7e,0xb58d2));import{AICapabilities as _0x3821f6}from'../../aicore/model/aicapabilities.js';function _0x3bd0(_0x32b580,_0x3f81ce){var _0x2a7e03=_0x2a7e();return _0x3bd0=function(_0x3bd022,_0x35bda0){_0x3bd022=_0x3bd022-0x162;var _0x5e6de1=_0x2a7e03[_0x3bd022];return _0x5e6de1;},_0x3bd0(_0x32b580,_0x3f81ce);}import{AIInteraction as _0xc7a007}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x5c698b}from'./aichatcontext.js';export class AIChatInteraction extends _0xc7a007{[_0x5776e6(0x175)];[_0x5776e6(0x17b)];[_0x5776e6(0x162)]=new Map();[_0x5776e6(0x16d)];[_0x5776e6(0x171)];constructor(_0x312769){var _0x4fe2dd=_0x5776e6;super(_0x312769),this[_0x4fe2dd(0x17b)]=_0x312769[_0x4fe2dd(0x17b)],this[_0x4fe2dd(0x162)]=_0x312769[_0x4fe2dd(0x162)],this[_0x4fe2dd(0x179)]=_0x312769[_0x4fe2dd(0x179)],this[_0x4fe2dd(0x175)]=_0x312769[_0x4fe2dd(0x175)],this[_0x4fe2dd(0x16d)]=_0x312769[_0x4fe2dd(0x16d)],this[_0x4fe2dd(0x171)]=_0x312769[_0x4fe2dd(0x171)];}async[_0x5776e6(0x163)](){var _0x439ace=_0x5776e6;return this[_0x439ace(0x16b)][_0x439ace(0x168)]({'message':this[_0x439ace(0x175)],'conversationId':this[_0x439ace(0x17b)],'parts':_0x5c698b[_0x439ace(0x173)](this[_0x439ace(0x162)]),'capabilities':_0x3821f6[_0x439ace(0x167)](this[_0x439ace(0x179)]),'model':this[_0x439ace(0x16d)],'attributes':this[_0x439ace(0x171)]});}[_0x5776e6(0x178)](){var _0x22f01d=_0x5776e6;return this[_0x22f01d(0x162)][_0x22f01d(0x174)](_0x22f01d(0x169));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x328176=_0x3b59;(function(_0x469a3d,_0x82e653){const _0xcf6b7c=_0x3b59,_0x2fc061=_0x469a3d();while(!![]){try{const _0x1e4a42=-parseInt(_0xcf6b7c(0x143))/0x1+-parseInt(_0xcf6b7c(0x14f))/0x2*(parseInt(_0xcf6b7c(0x18e))/0x3)+parseInt(_0xcf6b7c(0x177))/0x4*(-parseInt(_0xcf6b7c(0x16c))/0x5)+parseInt(_0xcf6b7c(0x140))/0x6+-parseInt(_0xcf6b7c(0x164))/0x7*(-parseInt(_0xcf6b7c(0x16f))/0x8)+-parseInt(_0xcf6b7c(0x17a))/0x9*(-parseInt(_0xcf6b7c(0x142))/0xa)+parseInt(_0xcf6b7c(0x13e))/0xb*(parseInt(_0xcf6b7c(0x146))/0xc);if(_0x1e4a42===_0x82e653)break;else _0x2fc061['push'](_0x2fc061['shift']());}catch(_0x496bd5){_0x2fc061['push'](_0x2fc061['shift']());}}}(_0x599f,0x858ea));function _0x3b59(_0xad2f5c,_0x1fcac6){const _0x599f69=_0x599f();return _0x3b59=function(_0x3b5986,_0x224374){_0x3b5986=_0x3b5986-0x13e;let _0x424ca9=_0x599f69[_0x3b5986];return _0x424ca9;},_0x3b59(_0xad2f5c,_0x1fcac6);}import{FocusTracker as _0x371f36,KeystrokeHandler as _0x237010}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0xb2912}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x2225c5}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x68a765}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x545c1d}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x4f3cf0,FocusCycler as _0x453eb4,View as _0x506227}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x2b606c}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x1c3f65,IconChevronUp as _0x4ca020}from'ckeditor5/src/icons.js';import{getTranslation as _0x693513}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x545c1d{[_0x328176(0x14b)];[_0x328176(0x171)];[_0x328176(0x15c)];[_0x328176(0x163)];[_0x328176(0x174)];[_0x328176(0x192)];[_0x328176(0x147)];[_0x328176(0x17f)];[_0x328176(0x165)];[_0x328176(0x191)];[_0x328176(0x145)];[_0x328176(0x157)];[_0x328176(0x17e)];constructor(_0x56cef7,_0x549303){const _0x2f1a09=_0x328176;super(_0x56cef7);const _0x475172=this[_0x2f1a09(0x185)];this[_0x2f1a09(0x189)](_0x2f1a09(0x148),!0x1),this[_0x2f1a09(0x189)](_0x2f1a09(0x176),_0x2f1a09(0x187)),this[_0x2f1a09(0x192)]=new _0x371f36(),this[_0x2f1a09(0x147)]=new _0x237010(),this[_0x2f1a09(0x174)]=this[_0x2f1a09(0x14d)](),this[_0x2f1a09(0x163)]=new _0x453eb4({'focusables':this[_0x2f1a09(0x174)],'focusTracker':this[_0x2f1a09(0x192)],'keystrokeHandler':this[_0x2f1a09(0x147)],'actions':{'focusPrevious':_0x2f1a09(0x14a),'focusNext':_0x2f1a09(0x17d)}}),this[_0x2f1a09(0x17f)]=_0x549303,this[_0x2f1a09(0x171)]=this[_0x2f1a09(0x184)](),this[_0x2f1a09(0x15c)]=this[_0x2f1a09(0x18c)](),this[_0x2f1a09(0x165)]=new _0xb2912(_0x56cef7),this[_0x2f1a09(0x145)]=new _0x2225c5(_0x56cef7,_0x549303[_0x2f1a09(0x16e)]),this[_0x2f1a09(0x145)][_0x2f1a09(0x188)](_0x2f1a09(0x154),_0x2f1a09(0x178),_0x2f1a09(0x172))['to'](this),this[_0x2f1a09(0x18f)](_0x549303),this[_0x2f1a09(0x157)]=new _0x2b606c(_0x56cef7),this[_0x2f1a09(0x157)][_0x2f1a09(0x13f)]=!0x1,this[_0x2f1a09(0x17e)]=new _0x68a765(_0x56cef7,{'showChanges':_0x2f1a09(0x170)}),this[_0x2f1a09(0x17e)][_0x2f1a09(0x167)](_0x2f1a09(0x169))['to'](this,_0x2f1a09(0x148)),this[_0x2f1a09(0x17e)]['on'](_0x2f1a09(0x173),()=>{const _0x827513=_0x2f1a09;this[_0x827513(0x190)](_0x827513(0x16a));}),this[_0x2f1a09(0x191)]=new ms(_0x56cef7,[this[_0x2f1a09(0x145)],this[_0x2f1a09(0x157)],this[_0x2f1a09(0x17e)]]),this[_0x2f1a09(0x14b)]=this[_0x2f1a09(0x14d)]([this[_0x2f1a09(0x165)],this[_0x2f1a09(0x191)]]),this['on'](_0x2f1a09(0x151),(_0x4f1b8c,_0x2e5b0c,_0x411171,_0x3a8a33)=>{const _0x3b62e0=_0x2f1a09;let _0x218e64,_0x5ba61b;_0x3b62e0(0x187)===_0x3a8a33?(_0x218e64=this[_0x3b62e0(0x145)],_0x5ba61b=this[_0x3b62e0(0x157)]):(_0x218e64=this[_0x3b62e0(0x157)],_0x5ba61b=this[_0x3b62e0(0x145)]),this[_0x3b62e0(0x157)][_0x3b62e0(0x156)](_0x411171),_0x218e64[_0x3b62e0(0x13f)]=!0x1,_0x5ba61b[_0x3b62e0(0x13f)]=!0x0;}),this[_0x2f1a09(0x15b)]({'tag':_0x2f1a09(0x150),'attributes':{'class':['ck',_0x2f1a09(0x144),_0x475172['to'](_0x2f1a09(0x176),_0x147901=>_0x2f1a09(0x141)+_0x147901)]},'children':this[_0x2f1a09(0x14b)]}),this['on'](_0x2f1a09(0x17c),()=>{const _0x523647=_0x2f1a09;this[_0x523647(0x18f)](_0x549303);});}[_0x328176(0x159)](){const _0x4c54b3=_0x328176;super[_0x4c54b3(0x159)](),this[_0x4c54b3(0x171)][_0x4c54b3(0x159)](),this[_0x4c54b3(0x15c)][_0x4c54b3(0x159)](),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x16b)]),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x171)]),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x15c)]),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x17e)]),this[_0x4c54b3(0x192)][_0x4c54b3(0x183)](this[_0x4c54b3(0x145)]),this[_0x4c54b3(0x147)][_0x4c54b3(0x181)](this[_0x4c54b3(0x16b)]),this[_0x4c54b3(0x147)][_0x4c54b3(0x181)](this[_0x4c54b3(0x171)][_0x4c54b3(0x16b)]),this[_0x4c54b3(0x147)][_0x4c54b3(0x181)](this[_0x4c54b3(0x15c)][_0x4c54b3(0x16b)]),this[_0x4c54b3(0x174)][_0x4c54b3(0x162)]([this[_0x4c54b3(0x171)],this[_0x4c54b3(0x15c)],this[_0x4c54b3(0x145)],this[_0x4c54b3(0x17e)]]);}[_0x328176(0x16d)](){const _0x40d430=_0x328176;super[_0x40d430(0x16d)](),this[_0x40d430(0x15c)][_0x40d430(0x16d)](),this[_0x40d430(0x171)][_0x40d430(0x16d)]();}[_0x328176(0x180)](){const _0x1b43ac=_0x328176;this[_0x1b43ac(0x163)][_0x1b43ac(0x166)]();}[_0x328176(0x152)](){const _0x1ec8fd=_0x328176;this[_0x1ec8fd(0x163)][_0x1ec8fd(0x152)]();}async[_0x328176(0x193)](_0x5b603d){const _0x317a9a=_0x328176;_0x5b603d?.[_0x317a9a(0x168)]||this[_0x317a9a(0x17b)](),await this[_0x317a9a(0x165)][_0x317a9a(0x14c)](_0x5b603d);}[_0x328176(0x156)](_0x45adf6){const _0x571c67=_0x328176;this[_0x571c67(0x176)]=_0x45adf6;}[_0x328176(0x161)](_0x548c68){const _0x2b2807=_0x328176;super[_0x2b2807(0x161)](_0x548c68),this[_0x2b2807(0x14b)][_0x2b2807(0x149)](this[_0x2b2807(0x15a)])||this[_0x2b2807(0x14b)][_0x2b2807(0x183)](this[_0x2b2807(0x15a)],0x0);}[_0x328176(0x17b)](){const _0x98ad93=_0x328176;this[_0x98ad93(0x15d)]&&(super[_0x98ad93(0x17b)](),this[_0x98ad93(0x179)](!0x0));}[_0x328176(0x153)](_0x527aa7){const _0x47871b=_0x328176;super[_0x47871b(0x153)](_0x527aa7),this[_0x47871b(0x179)](!0x1);}[_0x328176(0x18d)](_0x4a943c){const _0x29e482=_0x328176;this[_0x29e482(0x171)][_0x29e482(0x13f)]=this[_0x29e482(0x15c)][_0x29e482(0x13f)]=_0x4a943c;}[_0x328176(0x179)](_0x692eef){const _0x19b4ae=_0x328176;this[_0x19b4ae(0x145)][_0x19b4ae(0x158)]=_0x692eef;}[_0x328176(0x18f)]({showApplyButton:_0x5d55cc,showSuggestButton:_0x1aa60e}){const _0x3172c5=_0x328176;_0x5d55cc=_0x5d55cc&&!this[_0x3172c5(0x182)]&&this[_0x3172c5(0x17f)][_0x3172c5(0x16e)][_0x3172c5(0x155)](_0x3172c5(0x154)),_0x1aa60e=_0x1aa60e&&this[_0x3172c5(0x17f)][_0x3172c5(0x16e)][_0x3172c5(0x155)](_0x3172c5(0x178)),this[_0x3172c5(0x145)][_0x3172c5(0x186)]({'showApplyButton':_0x5d55cc,'showSuggestButton':_0x1aa60e});}[_0x328176(0x184)](){const _0x51464e=_0x328176,_0x1db80f=new _0x4f3cf0(this[_0x51464e(0x14e)]);return _0x1db80f[_0x51464e(0x189)]({'icon':_0x1c3f65,'label':_0x693513(this[_0x51464e(0x14e)],_0x51464e(0x15f)),'isVisible':!0x0}),_0x1db80f['on'](_0x51464e(0x175),()=>{const _0x380888=_0x51464e;this[_0x380888(0x190)](_0x380888(0x18b));}),_0x1db80f;}[_0x328176(0x18c)](){const _0x106488=_0x328176,_0x10aa5a=new _0x4f3cf0(this[_0x106488(0x14e)]);return _0x10aa5a[_0x106488(0x189)]({'icon':_0x4ca020,'label':_0x693513(this[_0x106488(0x14e)],_0x106488(0x15e)),'isVisible':!0x0}),_0x10aa5a['on'](_0x106488(0x175),()=>{const _0x2d2e9d=_0x106488;this[_0x2d2e9d(0x190)](_0x2d2e9d(0x18a));}),_0x10aa5a;}}function _0x599f(){const _0x534ce8=['isEnabled','render','_errorView','setTemplate','previousButtonView','_isErrorVisible','AI_BALLOON_PREVIOUS_LABEL','AI_BALLOON_NEXT_LABEL','ck-ai-chat-balloon__toolbar-container','showError','addMany','focusCycler','313922XIQuqo','_streamableContentView','focusFirst','bind','keepErrors','isShowChangesOn','toggleSuggestionDisplayMode','element','8015LTBwfx','destroy','availableActions','104YmJNQq','full','nextButtonView','rejectSuggestion','toggleShowChanges','_focusables','execute','_state','684AVDXTt','insertSuggestion','togglePartToolbarEnabled','144vWcxiI','hideError','change:isTrackChangesOn','tab','_miniToolbarView','_config','focus','listenTo','isTrackChangesOn','add','_createNextButtonView','bindTemplate','setButtonsVisibility','pending','delegate','set','showPrevious','showNext','_createPreviousButtonView','toggleRotatorButtonsVisibility','72003agfROe','_togglePartToolbarButtonsVisibility','fire','_toolbarContainerView','_focusTracker','updateContent','33HPGEXR','isVisible','1550772vUcHZD','ck-ai-chat-balloon-main_state_','287220KUhDUM','1042771GQiScz','ck-ai-chat-balloon-main','_partToolbarView','5803836KJPoBv','_keystrokes','showDiff','has','shift\x20+\x20tab','children','update','createCollection','locale','74fVrWnh','div','change:_state','focusLast','showBlockingError','applySuggestion','includes','setState','_stateView'];_0x599f=function(){return _0x534ce8;};return _0x599f();}class ms extends _0x506227{constructor(_0x40a2e3,_0x56916b){const _0x5cf2bd=_0x328176;super(_0x40a2e3),this[_0x5cf2bd(0x15b)]({'tag':_0x5cf2bd(0x150),'attributes':{'class':[_0x5cf2bd(0x160)]},'children':_0x56916b});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b0ff1=_0x1ee2;(function(_0x4d83f0,_0x40a4e8){const _0x5d2e64=_0x1ee2,_0x5624c2=_0x4d83f0();while(!![]){try{const _0x3fc90c=parseInt(_0x5d2e64(0x9d))/0x1*(-parseInt(_0x5d2e64(0x92))/0x2)+parseInt(_0x5d2e64(0x79))/0x3+parseInt(_0x5d2e64(0xa0))/0x4+parseInt(_0x5d2e64(0x9f))/0x5+-parseInt(_0x5d2e64(0x98))/0x6+-parseInt(_0x5d2e64(0x96))/0x7+parseInt(_0x5d2e64(0xa3))/0x8*(-parseInt(_0x5d2e64(0xae))/0x9);if(_0x3fc90c===_0x40a4e8)break;else _0x5624c2['push'](_0x5624c2['shift']());}catch(_0x267100){_0x5624c2['push'](_0x5624c2['shift']());}}}(_0x51c2,0x86fb3));import{ButtonView as _0x24dc57,clickOutsideHandler as _0xcc6d6,View as _0x3fb8c4}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x3e6de3}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x38cf39}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x46a47f,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x401610}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x393608}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x42be37}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';function _0x51c2(){const _0x55579e=['setPromptInputValue','setContextItemLoading','updateResourceState','_loaderView','_promptCapabilitiesView','removeContextItem','_contextPanelView','_promptInputView','setWebSearch','ck-ai-chat-controls__start-new-chat-button','delegate','setConversationContext','startConversation','low','addContextButtonView','60844bhnkVg','isDisabled','toggleReasoning','bindTemplate','3359986ucFVaw','set','1013856keokig','_shouldRestorePromptInputFocus','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','value','fieldView','10YqHmeQ','div','4358065NHWHqZ','3216168ltinBb','focusPromptInput','_createLoaderView','9605184KKauMJ','setTemplate','_createPromptCapabilitiesView','change:isLoading','_modelUnavailableMessageView','setAddContextOptions','sendUserMessage','ck-hidden','abortPromptStream','setPlaceholderText','contextResourcesSearchInputVisibleFrom','9axDRMV','_createContextPanelView','addContextItem','clearConversationContextItems','execute','queryView','setIsUploadInProgress','ck-ai-chat-controls','isLoading','resetMessageInput','clearConversationContextUI','locale','enableModelSelector','clearCurrentContextItems','setModel','element','isModelAvailable','focus','setReasoning','closeSourceResourceBalloon','form','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','disableModelSelector','ck-ai-chat-controls-model-unavailable-message','reset','toggleWebSearch','selectModel','3093210jAFilt','bodyCollection','ck-ai-chat-controls-disabled','setModelList','_handlePromptInputFocus','_createModelUnavailableMessageView','_createPromptInputView','populateSourceResourceBalloon','setInputPlaceholder','clearPendingContextUI'];_0x51c2=function(){return _0x55579e;};return _0x51c2();}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 _0x1ee2(_0x460d84,_0x233f50){const _0x51c24a=_0x51c2();return _0x1ee2=function(_0x1ee272,_0x29ebbc){_0x1ee272=_0x1ee272-0x65;let _0x38ac32=_0x51c24a[_0x1ee272];return _0x38ac32;},_0x1ee2(_0x460d84,_0x233f50);}import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x3fb8c4{[_0x3b0ff1(0x89)];[_0x3b0ff1(0x8a)];[_0x3b0ff1(0x87)];[_0x3b0ff1(0x86)];[_0x3b0ff1(0xa7)];[_0x3b0ff1(0x99)];constructor(_0x559f06,_0x16b422){const _0x5cab34=_0x3b0ff1;super(_0x559f06),this[_0x5cab34(0x89)]=this[_0x5cab34(0xaf)](_0x559f06,{'bodyCollection':_0x16b422[_0x5cab34(0x7a)],'searchInputVisibleFrom':_0x16b422[_0x5cab34(0xad)]}),this[_0x5cab34(0x8a)]=this[_0x5cab34(0x7f)](_0x559f06),this[_0x5cab34(0x87)]=this[_0x5cab34(0xa5)](_0x559f06),this[_0x5cab34(0x86)]=this[_0x5cab34(0xa2)](_0x559f06),this[_0x5cab34(0xa7)]=this[_0x5cab34(0x7e)](_0x559f06),this[_0x5cab34(0x99)]=!0x1,this[_0x5cab34(0x8a)][_0x5cab34(0x8d)](_0x5cab34(0xa9))['to'](this),this[_0x5cab34(0x86)][_0x5cab34(0x8d)](_0x5cab34(0xab))['to'](this),this[_0x5cab34(0x87)][_0x5cab34(0x8d)](_0x5cab34(0x77))['to'](this),this[_0x5cab34(0x87)][_0x5cab34(0x8d)](_0x5cab34(0x94))['to'](this),this[_0x5cab34(0x87)][_0x5cab34(0x8d)](_0x5cab34(0x78))['to'](this),this[_0x5cab34(0x89)][_0x5cab34(0x8d)](..._0x401610)['to'](this),this[_0x5cab34(0x97)](_0x5cab34(0x6e),!0x0),this[_0x5cab34(0x97)](_0x5cab34(0x93),!0x1);const _0x595573=this[_0x5cab34(0x95)];this[_0x5cab34(0xa4)]({'tag':_0x5cab34(0x72),'attributes':{'class':['ck',_0x5cab34(0x65),_0x595573['if'](_0x5cab34(0x93),_0x5cab34(0x7b))]},'children':[{'tag':_0x5cab34(0x9e),'attributes':{'class':[_0x595573['if'](_0x5cab34(0x66),_0x5cab34(0xaa),_0x27a56c=>_0x27a56c||!this[_0x5cab34(0x6e)]),_0x595573['if'](_0x5cab34(0x6e),_0x5cab34(0xaa),_0x210826=>!_0x210826||this[_0x5cab34(0x66)])]},'children':[this[_0x5cab34(0x89)],this[_0x5cab34(0x8a)],this[_0x5cab34(0x87)]]},{'tag':_0x5cab34(0x9e),'attributes':{'class':[_0x595573['if'](_0x5cab34(0x66),_0x5cab34(0xaa),_0x143147=>!_0x143147)]},'children':[this[_0x5cab34(0x86)]]},{'tag':_0x5cab34(0x9e),'attributes':{'class':[_0x595573['if'](_0x5cab34(0x6e),_0x5cab34(0xaa),_0x54c604=>_0x54c604)]},'children':[this[_0x5cab34(0xa7)]]}]}),_0xcc6d6({'emitter':this[_0x5cab34(0x8a)],'activator':()=>this[_0x5cab34(0x66)],'contextElements':()=>[this[_0x5cab34(0x6d)]],'callback':()=>{const _0x52fd29=_0x5cab34;this[_0x52fd29(0x99)]=!0x1;}}),this['on'](_0x5cab34(0xa6),this[_0x5cab34(0x7d)],{'priority':_0x5cab34(0x90)});}[_0x3b0ff1(0xaf)](_0x209cce,_0x4510d4){return new _0x46a47f(_0x209cce,_0x4510d4);}[_0x3b0ff1(0x7f)](_0xff3baa){const _0x332d9f=_0x3b0ff1;return new _0x3e6de3(_0xff3baa,this[_0x332d9f(0x89)][_0x332d9f(0x91)]);}[_0x3b0ff1(0xa5)](_0x44c06b){return new _0x38cf39(_0x44c06b);}[_0x3b0ff1(0xa2)](_0x20a532){return new _0x393608(_0x20a532);}[_0x3b0ff1(0x7e)](_0x3e6f76){const _0x407175=_0x3b0ff1,_0x2da5e7=new As(_0x3e6f76);return _0x2da5e7[_0x407175(0x8d)](_0x407175(0x8f))['to'](this),_0x2da5e7;}[_0x3b0ff1(0x7d)](_0x3166ca,_0x2f9029,_0x4b85f7){const _0x2a9ba2=_0x3b0ff1;_0x4b85f7?this[_0x2a9ba2(0x99)]=!0x0:this[_0x2a9ba2(0x99)]&&this[_0x2a9ba2(0x8a)][_0x2a9ba2(0x6f)]();}[_0x3b0ff1(0xb0)](_0x179d18,_0x48fd1c){const _0x14e462=_0x3b0ff1;this[_0x14e462(0x89)][_0x14e462(0xb0)](_0x179d18,_0x48fd1c);}[_0x3b0ff1(0x88)](_0xec147c){const _0x26c8b7=_0x3b0ff1;this[_0x26c8b7(0x89)][_0x26c8b7(0x88)](_0xec147c);}[_0x3b0ff1(0x84)](_0x40bb8e,_0x3916e0){const _0x522dda=_0x3b0ff1;this[_0x522dda(0x89)][_0x522dda(0x84)](_0x40bb8e,_0x3916e0);}[_0x3b0ff1(0xb4)](_0x32f0fb){const _0x15c32b=_0x3b0ff1;this[_0x15c32b(0x8a)][_0x15c32b(0xb4)](_0x32f0fb);}[_0x3b0ff1(0x8e)](_0x40a867){const _0x4cc7df=_0x3b0ff1;this[_0x4cc7df(0x89)][_0x4cc7df(0x8e)](_0x40a867);}[_0x3b0ff1(0x82)](){const _0x19321a=_0x3b0ff1;this[_0x19321a(0x89)][_0x19321a(0x6b)]();}[_0x3b0ff1(0x68)](){const _0x4f3f6d=_0x3b0ff1;this[_0x4f3f6d(0x89)][_0x4f3f6d(0xb1)]();}[_0x3b0ff1(0x85)](_0x1a4b43,_0x427420,_0x292190){const _0x44f44a=_0x3b0ff1;this[_0x44f44a(0x89)][_0x44f44a(0x85)](_0x1a4b43,_0x427420,_0x292190);}[_0x3b0ff1(0x8b)](_0x583a41){const _0x1ae95f=_0x3b0ff1;this[_0x1ae95f(0x87)][_0x1ae95f(0x8b)](_0x583a41);}[_0x3b0ff1(0x70)](_0x3d010f){const _0x28e65c=_0x3b0ff1;this[_0x28e65c(0x87)][_0x28e65c(0x70)](_0x3d010f);}[_0x3b0ff1(0x67)](){const _0x89f3bd=_0x3b0ff1;this[_0x89f3bd(0x8a)][_0x89f3bd(0x76)]();}[_0x3b0ff1(0xa8)](_0x3cf1fc){const _0x2a41df=_0x3b0ff1;this[_0x2a41df(0x89)][_0x2a41df(0xa8)](_0x3cf1fc);}[_0x3b0ff1(0x81)](_0x1a5d21){const _0x3afc49=_0x3b0ff1;this[_0x3afc49(0x8a)][_0x3afc49(0xac)](_0x1a5d21);}[_0x3b0ff1(0x7c)](_0x41def9,_0x4597cf){const _0x30d638=_0x3b0ff1;this[_0x30d638(0x87)][_0x30d638(0x7c)](_0x41def9,_0x4597cf);}[_0x3b0ff1(0x6c)](_0x46d9cc){const _0x31d91a=_0x3b0ff1;_0x46d9cc?(this[_0x31d91a(0x6e)]=!0x0,this[_0x31d91a(0x87)][_0x31d91a(0x6c)](_0x46d9cc)):this[_0x31d91a(0x6e)]=!0x1;}[_0x3b0ff1(0x6a)](){const _0x5ab637=_0x3b0ff1;this[_0x5ab637(0x87)][_0x5ab637(0x6a)]();}[_0x3b0ff1(0x74)](_0x5b250d){const _0x56b964=_0x3b0ff1;this[_0x56b964(0x87)][_0x56b964(0x74)](_0x5b250d);}[_0x3b0ff1(0x80)](_0x23ef3e,_0x254428,_0x38be2d,_0x38fc49){const _0x318534=_0x3b0ff1;this[_0x318534(0x89)][_0x318534(0x80)](_0x23ef3e,_0x254428,_0x38be2d,_0x38fc49);}[_0x3b0ff1(0x71)](_0x3a83cf){const _0x22bbc4=_0x3b0ff1;this[_0x22bbc4(0x89)][_0x22bbc4(0x71)](_0x3a83cf);}[_0x3b0ff1(0xa1)](_0x7e3766=!0x1){const _0xfb266=_0x3b0ff1;this[_0xfb266(0x8a)][_0xfb266(0x6f)](_0x7e3766);}[_0x3b0ff1(0x83)](_0x22b1e8){const _0xe28511=_0x3b0ff1;this[_0xe28511(0x8a)][_0xe28511(0xb3)][_0xe28511(0x9c)][_0xe28511(0x76)](),this[_0xe28511(0x8a)][_0xe28511(0xb3)][_0xe28511(0x9c)][_0xe28511(0x9b)]=_0x22b1e8;}}class As extends _0x3fb8c4{constructor(_0x3d842e){const _0x1202ee=_0x3b0ff1;super(_0x3d842e);const _0x258444=new _0x24dc57(_0x3d842e);_0x258444[_0x1202ee(0x97)]({'label':_0x42be37(this[_0x1202ee(0x69)],_0x1202ee(0x73)),'withText':!0x0,'class':[_0x1202ee(0x8c)],'tooltip':''}),_0x258444[_0x1202ee(0x8d)](_0x1202ee(0xb2))['to'](this,_0x1202ee(0x8f)),this[_0x1202ee(0xa4)]({'tag':_0x1202ee(0x9e),'attributes':{'class':['ck',_0x1202ee(0x75)]},'children':[{'tag':'p','children':[{'text':_0x42be37(this[_0x1202ee(0x69)],_0x1202ee(0x9a))+'\x20'},_0x258444]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5abc47=_0x5b9e;(function(_0x5439db,_0x378f2a){const _0xdb34ad=_0x5b9e,_0x231126=_0x5439db();while(!![]){try{const _0x4a9811=parseInt(_0xdb34ad(0x16d))/0x1*(-parseInt(_0xdb34ad(0x170))/0x2)+parseInt(_0xdb34ad(0x169))/0x3+parseInt(_0xdb34ad(0x197))/0x4+parseInt(_0xdb34ad(0x17b))/0x5*(parseInt(_0xdb34ad(0x196))/0x6)+parseInt(_0xdb34ad(0x1b9))/0x7*(parseInt(_0xdb34ad(0x1b5))/0x8)+parseInt(_0xdb34ad(0x1ae))/0x9*(parseInt(_0xdb34ad(0x1bb))/0xa)+-parseInt(_0xdb34ad(0x188))/0xb*(parseInt(_0xdb34ad(0x180))/0xc);if(_0x4a9811===_0x378f2a)break;else _0x231126['push'](_0x231126['shift']());}catch(_0x9298ad){_0x231126['push'](_0x231126['shift']());}}}(_0x4325,0x44860));import{CKEditorError as _0xa5c54d,logWarning as _0x4cb399,scrollAncestorsToShowTarget as _0x3a7d91}from'ckeditor5/src/utils.js';import{View as _0x73ac11}from'ckeditor5/src/ui.js';function _0x5b9e(_0x17fea9,_0x5d226e){const _0x4325fb=_0x4325();return _0x5b9e=function(_0x5b9ee3,_0x452d31){_0x5b9ee3=_0x5b9ee3-0x169;let _0x300e3b=_0x4325fb[_0x5b9ee3];return _0x300e3b;},_0x5b9e(_0x17fea9,_0x5d226e);}import{AI_CHAT_UI_EVENT_NAMES as _0x4a36c0}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x51471e}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x1e8454}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x431d95}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x11c935}from'./feed/aichatfeederroritemview.js';function _0x4325(){const _0x9066a4=['element','updatePartState','options','find','setSuggestionPartActive','updateSuggestionPartState','stop','ck-ai-chat__feed','getItemById','ai-chat-feed-view-item-not-a-reply-item','172629Glmewb','_createFeedItems','updateContent','stopAutoScroll','markAsDone','includes','startAutoScroll','7232eUkgCt','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','_setupTemplate','span','1631bFbTQi','ck-ai-chat__loader-text','110IxrCaa','forEach','updateReplyItem','set','add','_bodyCollection','bind','ai-suggestion-reply','478659mgsTzD','div','createCollection','interaction-header','214ExKyDm','start','toggleLoadingSkeleton','930KmtaQQ','_createLoaderChildren','delegate','loadingMessage','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','render','isLoadingSkeletonVisible','updateSources','ck-ai-chat__feed__items','getPartView','addItem','658770PPUqoM','scrollToSuggestion','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','user-message','parentElement','312Llespi','getItemIds','updateSuggestionItem','markItemAsDone','clear','filter','ai-chat-feed-view-item-not-a-suggestion-item','setLoadingMessage','475123NlygKM','setPartActive','isTrackChangesOn','hasItem','setTemplate','scrollManager','remove','_createTemplateChildren','ck-hidden','destroy','custom-element','updateWebSources','aiFeed','removeItem','18EwhoBL','2107048NyYnzt','isPending','bindTemplate','locale','children','ck-ai-chat__loader','isVisible','map','_createFeedLoader','_createSkeletonLoader','ai-reply','ai-chat-feed-view-item-not-found','extendTemplate'];_0x4325=function(){return _0x9066a4;};return _0x4325();}import{AIChatFeedInteractionHeaderView as _0x266e7a}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x3c95e7}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x394b2b,SKELETON_DEFINITIONS as _0x33ffb5}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x138dc8}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x5a7932}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x73ac11{[_0x5abc47(0x19b)];[_0x5abc47(0x18d)];[_0x5abc47(0x1c0)];constructor(_0x4c609c,_0x56ff27){const _0x402a03=_0x5abc47;super(_0x4c609c),this[_0x402a03(0x1c0)]=_0x56ff27,this[_0x402a03(0x1be)](_0x402a03(0x198),!0x1),this[_0x402a03(0x1be)](_0x402a03(0x173),''),this[_0x402a03(0x1be)](_0x402a03(0x176),!0x1),this[_0x402a03(0x1be)](_0x402a03(0x18a),!0x1),this[_0x402a03(0x19b)]=this[_0x402a03(0x16b)](),this[_0x402a03(0x19b)][_0x402a03(0x172)](..._0x4a36c0)['to'](this),this[_0x402a03(0x1b7)]();}[_0x5abc47(0x175)](){const _0x2e9c2d=_0x5abc47;super[_0x2e9c2d(0x175)](),this[_0x2e9c2d(0x18d)]=new _0x3c95e7(this[_0x2e9c2d(0x1a4)]);}[_0x5abc47(0x191)](){const _0x3e1474=_0x5abc47;super[_0x3e1474(0x191)](),this[_0x3e1474(0x18d)][_0x3e1474(0x191)]();}[_0x5abc47(0x184)](){const _0x43ddf4=_0x5abc47;this[_0x43ddf4(0x19b)][_0x43ddf4(0x184)]();}[_0x5abc47(0x17a)](_0x4e3630,_0x25c4f9){const _0x28ce5c=_0x5abc47;let _0x21517e;return _0x28ce5c(0x1a1)===_0x4e3630?_0x21517e=new _0x1e8454(this[_0x28ce5c(0x19a)],_0x25c4f9,this[_0x28ce5c(0x1c0)]):_0x28ce5c(0x1c2)===_0x4e3630?(_0x21517e=new _0x51471e(this[_0x28ce5c(0x19a)],_0x25c4f9,this[_0x28ce5c(0x1c0)]),_0x21517e[_0x28ce5c(0x1c1)](_0x28ce5c(0x18a))['to'](this)):_0x21517e=_0x28ce5c(0x17e)===_0x4e3630?new _0x431d95(this[_0x28ce5c(0x19a)],_0x25c4f9,this[_0x28ce5c(0x1c0)]):_0x28ce5c(0x16c)===_0x4e3630?new _0x266e7a(this[_0x28ce5c(0x19a)],_0x25c4f9):_0x28ce5c(0x192)===_0x4e3630?new _0x5a7932(_0x25c4f9):new _0x11c935(_0x25c4f9),this[_0x28ce5c(0x19b)][_0x28ce5c(0x1bf)](_0x21517e),_0x21517e;}async[_0x5abc47(0x1bd)]({id:_0xdb9a41,parsedContent:_0x3d600d,renderingStrategy:_0x101889,abortSignal:_0x2d83e3}){const _0x144143=_0x5abc47,_0x5c8d3d=this[_0x144143(0x1ac)](_0xdb9a41);if(!(_0x5c8d3d instanceof _0x1e8454))throw new _0xa5c54d(_0x144143(0x1ad),null,{'itemView':_0x5c8d3d,'id':_0xdb9a41,'parsedContent':_0x3d600d});await _0x5c8d3d[_0x144143(0x1b0)]({'parsedContent':_0x3d600d,'renderingStrategy':_0x101889,'abortSignal':_0x2d83e3});}async[_0x5abc47(0x193)](_0x437d5c,_0x2d888b){const _0x3302b0=_0x5abc47,_0x56a1b2=this[_0x3302b0(0x1ac)](_0x437d5c);if(_0x56a1b2 instanceof _0x51471e)_0x56a1b2[_0x3302b0(0x177)](_0x2d888b);else{if(!(_0x56a1b2 instanceof _0x1e8454))throw new _0xa5c54d(_0x3302b0(0x174),null,{'itemView':_0x56a1b2,'id':_0x437d5c,'sources':_0x2d888b});_0x56a1b2[_0x3302b0(0x177)](_0x2d888b);}}async[_0x5abc47(0x182)]({id:_0x4417fa,parts:_0x21cc01,renderingStrategy:_0x435dd4,abortSignal:_0x40ae13}){const _0x58bafb=_0x5abc47,_0x5960e8=this[_0x58bafb(0x1ac)](_0x4417fa);if(!(_0x5960e8 instanceof _0x51471e))throw new _0xa5c54d(_0x58bafb(0x186),null,{'itemView':_0x5960e8,'id':_0x4417fa,'parts':_0x21cc01});await _0x5960e8[_0x58bafb(0x1b0)]({'parts':_0x21cc01,'renderingStrategy':_0x435dd4,'abortSignal':_0x40ae13});}[_0x5abc47(0x1a9)]({id:_0xa4debd,index:_0x5898be,state:_0x323b17}){const _0x2decfd=_0x5abc47,_0x55d9e4=this[_0x2decfd(0x1ac)](_0xa4debd);if(!(_0x55d9e4 instanceof _0x51471e))throw new _0xa5c54d(_0x2decfd(0x186),this,{'id':_0xa4debd});_0x55d9e4[_0x2decfd(0x1a5)](_0x5898be,_0x323b17);}[_0x5abc47(0x1a8)]({id:_0x1bea78,index:_0x354617,isActive:_0x336eeb}){const _0x44191b=_0x5abc47,_0x57baae=this[_0x44191b(0x1ac)](_0x1bea78);if(!(_0x57baae instanceof _0x51471e))throw new _0xa5c54d(_0x44191b(0x186),this,{'id':_0x1bea78});this[_0x44191b(0x19b)][_0x44191b(0x185)](_0x30baa2=>_0x30baa2 instanceof _0x51471e)[_0x44191b(0x1bc)](_0x3e523d=>{const _0x5ef523=_0x44191b;_0x3e523d[_0x5ef523(0x189)](!0x1);}),_0x57baae[_0x44191b(0x189)](_0x354617,_0x336eeb);}[_0x5abc47(0x183)](_0x3bd400){const _0x4f1933=_0x5abc47;this[_0x4f1933(0x1ac)](_0x3bd400)[_0x4f1933(0x1b2)]();}[_0x5abc47(0x181)](){const _0x1eec6f=_0x5abc47;return this[_0x1eec6f(0x19b)][_0x1eec6f(0x19e)](_0x80152=>_0x80152[_0x1eec6f(0x1a6)]['id']);}[_0x5abc47(0x195)](_0x226af3){const _0x1b21c8=_0x5abc47;this[_0x1b21c8(0x19b)][_0x1b21c8(0x18e)](this[_0x1b21c8(0x1ac)](_0x226af3));}[_0x5abc47(0x18b)](_0x482ee4){const _0x1216cc=_0x5abc47;return!!this[_0x1216cc(0x19b)][_0x1216cc(0x1a7)](_0x1ff7e4=>_0x1ff7e4[_0x1216cc(0x1a6)]['id'][_0x1216cc(0x1b3)](_0x482ee4));}[_0x5abc47(0x17c)](_0x492f15,_0x306b1d){const _0x248302=_0x5abc47,_0xdce734=this[_0x248302(0x1ac)](_0x492f15);if(!(_0xdce734 instanceof _0x51471e))return void _0x4cb399(_0x248302(0x1b6),{'replyId':_0x492f15,'partIndex':_0x306b1d});const _0x138b37=_0xdce734[_0x248302(0x179)](_0x306b1d);_0x138b37?_0x3a7d91(_0x138b37[_0x248302(0x1a4)],0x14,this[_0x248302(0x1a4)][_0x248302(0x17f)],!0x0,!0x0):_0x4cb399(_0x248302(0x17d),{'replyId':_0x492f15,'partIndex':_0x306b1d});}[_0x5abc47(0x1b7)](){const _0x39afac=_0x5abc47;this[_0x39afac(0x18c)]({'tag':_0x39afac(0x16a),'attributes':{'class':['ck',_0x39afac(0x1ab)]},'children':this[_0x39afac(0x18f)]()});}[_0x5abc47(0x18f)](){const _0x5066ee=_0x5abc47,_0x44e364=this[_0x5066ee(0x1a0)]();return[this[_0x5066ee(0x1af)](),_0x44e364,this[_0x5066ee(0x19f)]()];}[_0x5abc47(0x1a0)](){const _0x5e61c0=_0x5abc47,_0x5ee79c=new _0x394b2b(this[_0x5e61c0(0x19a)],_0x33ffb5[_0x5e61c0(0x194)]);return _0x5ee79c[_0x5e61c0(0x1a3)]({'attributes':{'class':[this[_0x5e61c0(0x199)]['if'](_0x5e61c0(0x176),_0x5e61c0(0x190),_0x3e0840=>!_0x3e0840)]}}),_0x5ee79c;}[_0x5abc47(0x1af)](){const _0x4b3bc8=_0x5abc47,_0x4096d8=new _0x73ac11(this[_0x4b3bc8(0x19a)]);return _0x4096d8[_0x4b3bc8(0x18c)]({'tag':_0x4b3bc8(0x16a),'attributes':{'class':['ck',_0x4b3bc8(0x178),this[_0x4b3bc8(0x199)]['if'](_0x4b3bc8(0x176),_0x4b3bc8(0x190))]},'children':this[_0x4b3bc8(0x19b)]}),_0x4096d8;}[_0x5abc47(0x19f)](){const _0x1540ad=_0x5abc47,_0x2bc635=new _0x73ac11(this[_0x1540ad(0x19a)]);return _0x2bc635[_0x1540ad(0x18c)]({'tag':_0x1540ad(0x16a),'attributes':{'class':['ck',_0x1540ad(0x19c),this[_0x1540ad(0x199)]['if'](_0x1540ad(0x198),_0x1540ad(0x190),_0x4800c0=>!_0x4800c0)]},'children':this[_0x1540ad(0x171)]()}),_0x2bc635;}[_0x5abc47(0x171)](){const _0x4717d9=_0x5abc47,_0x10803e=new _0x138dc8();return _0x10803e[_0x4717d9(0x19d)]=!0x0,[_0x10803e,{'tag':_0x4717d9(0x1b8),'attributes':{'class':['ck',_0x4717d9(0x1ba)]},'children':[{'text':this[_0x4717d9(0x199)]['to'](_0x4717d9(0x173))}]}];}[_0x5abc47(0x1ac)](_0x592640){const _0x3a6c70=_0x5abc47,_0x4fe150=this[_0x3a6c70(0x19b)][_0x3a6c70(0x1a7)](_0x3f12ae=>_0x3f12ae[_0x3a6c70(0x1a6)]['id'][_0x3a6c70(0x1b3)](_0x592640));if(!_0x4fe150)throw new _0xa5c54d(_0x3a6c70(0x1a2),this,{'id':_0x592640});return _0x4fe150;}[_0x5abc47(0x187)](_0x4fa3b4){const _0xa6069=_0x5abc47;this[_0xa6069(0x1be)](_0xa6069(0x173),_0x4fa3b4);}[_0x5abc47(0x16f)](_0x157208){const _0x47cc8d=_0x5abc47;this[_0x47cc8d(0x1be)](_0x47cc8d(0x176),_0x157208);}[_0x5abc47(0x1b4)](){const _0x5f35ab=_0x5abc47;this[_0x5f35ab(0x18d)][_0x5f35ab(0x16e)]();}[_0x5abc47(0x1b1)](){const _0x1281e3=_0x5abc47;this[_0x1281e3(0x18d)][_0x1281e3(0x1aa)]();}}
|
|
23
|
+
const _0x153c02=_0x5706;(function(_0x14277a,_0x8e6b20){const _0x22e7b9=_0x5706,_0x11b208=_0x14277a();while(!![]){try{const _0x1936d3=-parseInt(_0x22e7b9(0x203))/0x1*(-parseInt(_0x22e7b9(0x1fa))/0x2)+parseInt(_0x22e7b9(0x1da))/0x3*(parseInt(_0x22e7b9(0x1f6))/0x4)+-parseInt(_0x22e7b9(0x1cd))/0x5*(parseInt(_0x22e7b9(0x1ed))/0x6)+parseInt(_0x22e7b9(0x205))/0x7*(-parseInt(_0x22e7b9(0x204))/0x8)+parseInt(_0x22e7b9(0x1cb))/0x9*(-parseInt(_0x22e7b9(0x213))/0xa)+parseInt(_0x22e7b9(0x1e8))/0xb+-parseInt(_0x22e7b9(0x1e0))/0xc;if(_0x1936d3===_0x8e6b20)break;else _0x11b208['push'](_0x11b208['shift']());}catch(_0x40bfbd){_0x11b208['push'](_0x11b208['shift']());}}}(_0x4868,0xe2020));function _0x5706(_0x13c05c,_0x4ea185){const _0x48687c=_0x4868();return _0x5706=function(_0x5706e3,_0x131e99){_0x5706e3=_0x5706e3-0x1c4;let _0x4cbcf0=_0x48687c[_0x5706e3];return _0x4cbcf0;},_0x5706(_0x13c05c,_0x4ea185);}import{CKEditorError as _0x324a99,logWarning as _0xb780da,scrollAncestorsToShowTarget as _0xd1d823}from'ckeditor5/src/utils.js';import{View as _0x354d30}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x901d20}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x33de81}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x24aec3}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x3af46c}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4a3934}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x517375}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0xdb090e}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x2f421d,SKELETON_DEFINITIONS as _0x353b56}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2b7594}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x1205c3}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x354d30{[_0x153c02(0x217)];[_0x153c02(0x1e7)];[_0x153c02(0x1ef)];constructor(_0x43e1fd,_0x5d0265){const _0x36ca7b=_0x153c02;super(_0x43e1fd),this[_0x36ca7b(0x1ef)]=_0x5d0265,this[_0x36ca7b(0x1d9)](_0x36ca7b(0x1db),!0x1),this[_0x36ca7b(0x1d9)](_0x36ca7b(0x214),''),this[_0x36ca7b(0x1d9)](_0x36ca7b(0x20a),!0x1),this[_0x36ca7b(0x1d9)](_0x36ca7b(0x1dd),!0x1),this[_0x36ca7b(0x217)]=this[_0x36ca7b(0x1fd)](),this[_0x36ca7b(0x217)][_0x36ca7b(0x1f8)](..._0x901d20)['to'](this),this[_0x36ca7b(0x20d)]();}[_0x153c02(0x20f)](){const _0x36f289=_0x153c02;super[_0x36f289(0x20f)](),this[_0x36f289(0x1e7)]=new _0xdb090e(this[_0x36f289(0x1e1)]);}[_0x153c02(0x1df)](){const _0x345b4=_0x153c02;super[_0x345b4(0x1df)](),this[_0x345b4(0x1e7)][_0x345b4(0x1df)]();}[_0x153c02(0x1e6)](){const _0x44f804=_0x153c02;this[_0x44f804(0x217)][_0x44f804(0x1e6)]();}[_0x153c02(0x1ce)](_0x399f1d,_0x415384){const _0x1316b0=_0x153c02;let _0x16cdea;return _0x1316b0(0x1cf)===_0x399f1d?_0x16cdea=new _0x24aec3(this[_0x1316b0(0x1f9)],_0x415384,this[_0x1316b0(0x1ef)]):_0x1316b0(0x201)===_0x399f1d?(_0x16cdea=new _0x33de81(this[_0x1316b0(0x1f9)],_0x415384,this[_0x1316b0(0x1ef)]),_0x16cdea[_0x1316b0(0x1f1)](_0x1316b0(0x1dd))['to'](this)):_0x16cdea=_0x1316b0(0x1f5)===_0x399f1d?new _0x3af46c(this[_0x1316b0(0x1f9)],_0x415384,this[_0x1316b0(0x1ef)]):_0x1316b0(0x1c9)===_0x399f1d?new _0x517375(this[_0x1316b0(0x1f9)],_0x415384):_0x1316b0(0x1f7)===_0x399f1d?new _0x1205c3(_0x415384):new _0x4a3934(_0x415384),this[_0x1316b0(0x217)][_0x1316b0(0x219)](_0x16cdea),_0x16cdea;}async[_0x153c02(0x1d1)]({id:_0x2b2f2c,parsedContent:_0x400152,renderingStrategy:_0x5dac26,abortSignal:_0x24f225}){const _0x41d40b=_0x153c02,_0x344061=this[_0x41d40b(0x1ee)](_0x2b2f2c);if(!(_0x344061 instanceof _0x24aec3))throw new _0x324a99(_0x41d40b(0x1d8),null,{'itemView':_0x344061,'id':_0x2b2f2c,'parsedContent':_0x400152});await _0x344061[_0x41d40b(0x20c)]({'parsedContent':_0x400152,'renderingStrategy':_0x5dac26,'abortSignal':_0x24f225});}async[_0x153c02(0x1e3)](_0x56b8a1,_0x47cbdc){const _0xd2e569=_0x153c02,_0x479550=this[_0xd2e569(0x1ee)](_0x56b8a1);if(_0x479550 instanceof _0x33de81)_0x479550[_0xd2e569(0x207)](_0x47cbdc);else{if(!(_0x479550 instanceof _0x24aec3))throw new _0x324a99(_0xd2e569(0x21d),null,{'itemView':_0x479550,'id':_0x56b8a1,'sources':_0x47cbdc});_0x479550[_0xd2e569(0x207)](_0x47cbdc);}}async[_0x153c02(0x1c5)]({id:_0x470093,parts:_0x19aaaa,renderingStrategy:_0x6bf908,abortSignal:_0x2e4eea}){const _0x6aa62f=_0x153c02,_0x1b9269=this[_0x6aa62f(0x1ee)](_0x470093);if(!(_0x1b9269 instanceof _0x33de81))throw new _0x324a99(_0x6aa62f(0x1c8),null,{'itemView':_0x1b9269,'id':_0x470093,'parts':_0x19aaaa});await _0x1b9269[_0x6aa62f(0x20c)]({'parts':_0x19aaaa,'renderingStrategy':_0x6bf908,'abortSignal':_0x2e4eea});}[_0x153c02(0x1f4)]({id:_0x1ba398,index:_0x5393c5,state:_0x51a01a}){const _0x15eae6=_0x153c02,_0x15553b=this[_0x15eae6(0x1ee)](_0x1ba398);if(!(_0x15553b instanceof _0x33de81))throw new _0x324a99(_0x15eae6(0x1c8),this,{'id':_0x1ba398});_0x15553b[_0x15eae6(0x1cc)](_0x5393c5,_0x51a01a);}[_0x153c02(0x20e)]({id:_0x5a2bf8,index:_0x1a4817,isActive:_0x128d84}){const _0x1f2b5c=_0x153c02,_0x53d24e=this[_0x1f2b5c(0x1ee)](_0x5a2bf8);if(!(_0x53d24e instanceof _0x33de81))throw new _0x324a99(_0x1f2b5c(0x1c8),this,{'id':_0x5a2bf8});this[_0x1f2b5c(0x217)][_0x1f2b5c(0x1d3)](_0x27f4d6=>_0x27f4d6 instanceof _0x33de81)[_0x1f2b5c(0x218)](_0x1d86cd=>{const _0x5a07a8=_0x1f2b5c;_0x1d86cd[_0x5a07a8(0x1ca)](!0x1);}),_0x53d24e[_0x1f2b5c(0x1ca)](_0x1a4817,_0x128d84);}[_0x153c02(0x206)](_0x39dc42){const _0x4f858a=_0x153c02;this[_0x4f858a(0x1ee)](_0x39dc42)[_0x4f858a(0x211)]();}[_0x153c02(0x1d6)](){const _0xb6d177=_0x153c02;return this[_0xb6d177(0x217)][_0xb6d177(0x212)](_0x3d3f0d=>_0x3d3f0d[_0xb6d177(0x20b)]['id']);}[_0x153c02(0x1f3)](_0x5bf633){const _0x103bad=_0x153c02;this[_0x103bad(0x217)][_0x103bad(0x1eb)](this[_0x103bad(0x1ee)](_0x5bf633));}[_0x153c02(0x202)](_0x5e3485){const _0x1f730d=_0x153c02;return!!this[_0x1f730d(0x217)][_0x1f730d(0x1fc)](_0x272cf7=>_0x272cf7[_0x1f730d(0x20b)]['id'][_0x1f730d(0x1dc)](_0x5e3485));}[_0x153c02(0x216)](_0x396ada,_0x5e0e22){const _0x59a258=_0x153c02,_0x1814b2=this[_0x59a258(0x1ee)](_0x396ada);if(!(_0x1814b2 instanceof _0x33de81))return void _0xb780da(_0x59a258(0x200),{'replyId':_0x396ada,'partIndex':_0x5e0e22});const _0x2a3340=_0x1814b2[_0x59a258(0x1d5)](_0x5e0e22);_0x2a3340?_0xd1d823(_0x2a3340[_0x59a258(0x1e1)],0x14,this[_0x59a258(0x1e1)][_0x59a258(0x1c4)],!0x0,!0x0):_0xb780da(_0x59a258(0x1c7),{'replyId':_0x396ada,'partIndex':_0x5e0e22});}[_0x153c02(0x20d)](){const _0x47a6a5=_0x153c02;this[_0x47a6a5(0x1d0)]({'tag':_0x47a6a5(0x215),'attributes':{'class':['ck',_0x47a6a5(0x1d7)]},'children':this[_0x47a6a5(0x21a)]()});}[_0x153c02(0x21a)](){const _0x54888c=_0x153c02,_0x35f2e3=this[_0x54888c(0x209)]();return[this[_0x54888c(0x1d2)](),_0x35f2e3,this[_0x54888c(0x1fb)]()];}[_0x153c02(0x209)](){const _0x3d589b=_0x153c02,_0x10f627=new _0x2f421d(this[_0x3d589b(0x1f9)],_0x353b56[_0x3d589b(0x1ff)]);return _0x10f627[_0x3d589b(0x1e4)]({'attributes':{'class':[this[_0x3d589b(0x210)]['if'](_0x3d589b(0x20a),_0x3d589b(0x1e2),_0xd9d48b=>!_0xd9d48b)]}}),_0x10f627;}[_0x153c02(0x1d2)](){const _0x3dba51=_0x153c02,_0x4bee6d=new _0x354d30(this[_0x3dba51(0x1f9)]);return _0x4bee6d[_0x3dba51(0x1d0)]({'tag':_0x3dba51(0x215),'attributes':{'class':['ck',_0x3dba51(0x1e5),this[_0x3dba51(0x210)]['if'](_0x3dba51(0x20a),_0x3dba51(0x1e2))]},'children':this[_0x3dba51(0x217)]}),_0x4bee6d;}[_0x153c02(0x1fb)](){const _0x5ba17f=_0x153c02,_0x1b416e=new _0x354d30(this[_0x5ba17f(0x1f9)]);return _0x1b416e[_0x5ba17f(0x1d0)]({'tag':_0x5ba17f(0x215),'attributes':{'class':['ck',_0x5ba17f(0x208),this[_0x5ba17f(0x210)]['if'](_0x5ba17f(0x1db),_0x5ba17f(0x1e2),_0x501879=>!_0x501879)]},'children':this[_0x5ba17f(0x1ec)]()}),_0x1b416e;}[_0x153c02(0x1ec)](){const _0x3bc976=_0x153c02,_0x4a68ee=new _0x2b7594();return _0x4a68ee[_0x3bc976(0x1c6)]=!0x0,[_0x4a68ee,{'tag':_0x3bc976(0x1d4),'attributes':{'class':['ck',_0x3bc976(0x1de)]},'children':[{'text':this[_0x3bc976(0x210)]['to'](_0x3bc976(0x214))}]}];}[_0x153c02(0x1ee)](_0x911438){const _0x13ff3b=_0x153c02,_0x3bbbda=this[_0x13ff3b(0x217)][_0x13ff3b(0x1fc)](_0x3f5b5a=>_0x3f5b5a[_0x13ff3b(0x20b)]['id'][_0x13ff3b(0x1dc)](_0x911438));if(!_0x3bbbda)throw new _0x324a99(_0x13ff3b(0x1fe),this,{'id':_0x911438});return _0x3bbbda;}[_0x153c02(0x1ea)](_0x3fad29){const _0x4c1e8a=_0x153c02;this[_0x4c1e8a(0x1d9)](_0x4c1e8a(0x214),_0x3fad29);}[_0x153c02(0x21b)](_0x2f2d90){const _0x482288=_0x153c02;this[_0x482288(0x1d9)](_0x482288(0x20a),_0x2f2d90);}[_0x153c02(0x1f0)](){const _0x2607f2=_0x153c02;this[_0x2607f2(0x1e7)][_0x2607f2(0x1e9)]();}[_0x153c02(0x21c)](){const _0x53f1bd=_0x153c02;this[_0x53f1bd(0x1e7)][_0x53f1bd(0x1f2)]();}}function _0x4868(){const _0x66d77d=['forEach','add','_createTemplateChildren','toggleLoadingSkeleton','stopAutoScroll','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','parentElement','updateSuggestionItem','isVisible','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-chat-feed-view-item-not-a-suggestion-item','interaction-header','setPartActive','9pKCFUu','updatePartState','10kvsGjk','addItem','ai-reply','setTemplate','updateReplyItem','_createFeedItems','filter','span','getPartView','getItemIds','ck-ai-chat__feed','ai-chat-feed-view-item-not-a-reply-item','set','433872ybtmXq','isPending','includes','isTrackChangesOn','ck-ai-chat__loader-text','destroy','20231784FbZMdY','element','ck-hidden','updateWebSources','extendTemplate','ck-ai-chat__feed__items','clear','scrollManager','4987378viIYuw','start','setLoadingMessage','remove','_createLoaderChildren','1593096jgLJtB','getItemById','_bodyCollection','startAutoScroll','bind','stop','removeItem','updateSuggestionPartState','user-message','48EZVqAe','custom-element','delegate','locale','4vYCWti','_createFeedLoader','find','createCollection','ai-chat-feed-view-item-not-found','aiFeed','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-suggestion-reply','hasItem','783013sDouxN','3875048mymlVj','7KKAhJJ','markItemAsDone','updateSources','ck-ai-chat__loader','_createSkeletonLoader','isLoadingSkeletonVisible','options','updateContent','_setupTemplate','setSuggestionPartActive','render','bindTemplate','markAsDone','map','1277890lmLTmC','loadingMessage','div','scrollToSuggestion','children'];_0x4868=function(){return _0x66d77d;};return _0x4868();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x5cd214=_0x3515;function _0x3515(_0x24914c,_0x1a92ee){const _0x576102=_0x5761();return _0x3515=function(_0x3515a9,_0x878f1e){_0x3515a9=_0x3515a9-0xe7;let _0x646045=_0x576102[_0x3515a9];return _0x646045;},_0x3515(_0x24914c,_0x1a92ee);}(function(_0x14b99a,_0x24f0a4){const _0x23801e=_0x3515,_0x5577b7=_0x14b99a();while(!![]){try{const _0x3e6aa7=-parseInt(_0x23801e(0xeb))/0x1+-parseInt(_0x23801e(0xfc))/0x2*(parseInt(_0x23801e(0xf7))/0x3)+parseInt(_0x23801e(0xf1))/0x4+parseInt(_0x23801e(0xe9))/0x5*(-parseInt(_0x23801e(0xfb))/0x6)+-parseInt(_0x23801e(0xef))/0x7+-parseInt(_0x23801e(0xf4))/0x8+-parseInt(_0x23801e(0xfe))/0x9*(-parseInt(_0x23801e(0xf3))/0xa);if(_0x3e6aa7===_0x24f0a4)break;else _0x5577b7['push'](_0x5577b7['shift']());}catch(_0x1a35d7){_0x5577b7['push'](_0x5577b7['shift']());}}}(_0x5761,0x31d80));import{ButtonView as _0x22e153,FormHeaderView as _0x3902f3}from'ckeditor5/src/ui.js';import{IconPlus as _0x7136bd,IconAIChat as _0x4a651e}from'ckeditor5/src/icons.js';import{getTranslation as _0xecd724}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x5672b9}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';function _0x5761(){const _0x429fb0=['AI_CHAT_HEADING','20hkRbZj','_createStartConversationButton','257776gLTCMW','children','set','ck-ai-header\x20ck-ai-header_chat','1313970zwAlsA','ck-ai-chat__start-conversation','409256xpcsDo','execute','1010zLrNdP','3090456lUXXuO','AI_CHAT_LABEL_NEW_CHAT','startConversation','283092fKjHoF','fire','conversationStartButton','add','192216tOupjv','2MuTOta','locale','103023yjraDv','resizeButton','isMaximized'];_0x5761=function(){return _0x429fb0;};return _0x5761();}export class AIChatHeaderView extends _0x3902f3{[_0x5cd214(0xf9)];[_0x5cd214(0xff)];constructor(_0x4648b1,_0x533456){const _0x83c690=_0x5cd214;super(_0x4648b1,{'label':_0xecd724(_0x4648b1,_0x83c690(0xe8)),'class':_0x83c690(0xee),'icon':_0x4a651e}),this[_0x83c690(0xed)](_0x83c690(0xe7),!0x1),this[_0x83c690(0xf9)]=this[_0x83c690(0xea)](_0x4648b1),this[_0x83c690(0xec)][_0x83c690(0xfa)](this[_0x83c690(0xf9)]),_0x533456&&(this[_0x83c690(0xff)]=_0x5672b9(_0x4648b1,this),this[_0x83c690(0xec)][_0x83c690(0xfa)](this[_0x83c690(0xff)]));}[_0x5cd214(0xea)](_0x36ae2b){const _0x25df43=_0x5cd214,_0x181784=new _0x22e153(_0x36ae2b);return _0x181784[_0x25df43(0xed)]({'label':_0xecd724(this[_0x25df43(0xfd)],_0x25df43(0xf5)),'withText':!0x0,'icon':_0x7136bd,'class':_0x25df43(0xf0)}),_0x181784['on'](_0x25df43(0xf2),()=>{const _0x47c5fa=_0x25df43;this[_0x47c5fa(0xf8)](_0x47c5fa(0xf6));}),_0x181784;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4cc2ea=_0x3f5a;(function(_0x5a8645,_0x10eda1){var _0x3bb74a=_0x3f5a,_0x56fb29=_0x5a8645();while(!![]){try{var _0x4e4f67=-parseInt(_0x3bb74a(0x103))/0x1*(parseInt(_0x3bb74a(0xea))/0x2)+-parseInt(_0x3bb74a(0xef))/0x3+-parseInt(_0x3bb74a(0xf8))/0x4+-parseInt(_0x3bb74a(0xf1))/0x5+-parseInt(_0x3bb74a(0xfd))/0x6*(parseInt(_0x3bb74a(0x101))/0x7)+parseInt(_0x3bb74a(0x100))/0x8+parseInt(_0x3bb74a(0xf3))/0x9*(parseInt(_0x3bb74a(0xf9))/0xa);if(_0x4e4f67===_0x10eda1)break;else _0x56fb29['push'](_0x56fb29['shift']());}catch(_0x31a8b6){_0x56fb29['push'](_0x56fb29['shift']());}}}(_0xb600,0x92f9c));import{View as _0x5c73f6,BodyCollection as _0x4cd400}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3bd7ce}from'../utils/eventnames.js';import{AIChatFeedView as _0x8d7385}from'./aichatfeedview.js';import{AIChatControlsView as _0x3296ce}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x5c585c}from'./aichatheaderview.js';import{AIDisclaimerView as _0x48a958}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0x3f5a(_0x29a3d6,_0xce8848){var _0xb60071=_0xb600();return _0x3f5a=function(_0x3f5abe,_0x4da650){_0x3f5abe=_0x3f5abe-0xe7;var _0x253d91=_0xb60071[_0x3f5abe];return _0x253d91;},_0x3f5a(_0x29a3d6,_0xce8848);}import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x5c73f6{[_0x4cc2ea(0xf7)];[_0x4cc2ea(0xfb)];[_0x4cc2ea(0xe8)];[_0x4cc2ea(0xe7)];[_0x4cc2ea(0xfe)];constructor(_0x220602,_0x149e22){var _0x38c9e0=_0x4cc2ea;super(_0x220602),this[_0x38c9e0(0xfe)]=new _0x4cd400(_0x220602),this[_0x38c9e0(0xfe)][_0x38c9e0(0xfa)](),this[_0x38c9e0(0xf7)]=new _0x5c585c(_0x220602,_0x149e22[_0x38c9e0(0xec)]),this[_0x38c9e0(0xf7)][_0x38c9e0(0xeb)](..._0x3bd7ce)['to'](this),this[_0x38c9e0(0xfb)]=new _0x8d7385(_0x220602,this[_0x38c9e0(0xfe)]),this[_0x38c9e0(0xfb)][_0x38c9e0(0xeb)](..._0x3bd7ce)['to'](this),this[_0x38c9e0(0xe8)]=new _0x3296ce(_0x220602,{'bodyCollection':this[_0x38c9e0(0xfe)],'contextResourcesSearchInputVisibleFrom':_0x149e22[_0x38c9e0(0xf6)]}),this[_0x38c9e0(0xe8)][_0x38c9e0(0xeb)](..._0x3bd7ce)['to'](this),this[_0x38c9e0(0xe7)]=new _0x48a958(_0x220602),this[_0x38c9e0(0xf5)]({'tag':_0x38c9e0(0xed),'attributes':{'class':['ck',_0x38c9e0(0xe9),_0x38c9e0(0xee),_0x38c9e0(0xf2)],'dir':_0x220602[_0x38c9e0(0xfc)]},'children':[this[_0x38c9e0(0xf7)],this[_0x38c9e0(0xfb)],this[_0x38c9e0(0xe8)],this[_0x38c9e0(0xe7)]]});}[_0x4cc2ea(0xff)](_0xb7057f,_0x46ef9f,_0x549357,_0x557ad0){var _0x1e555e=_0x4cc2ea;this[_0x1e555e(0xe8)][_0x1e555e(0xff)](_0xb7057f,_0x46ef9f,_0x549357,_0x557ad0);}[_0x4cc2ea(0xf0)](_0x1cc7ae){var _0x25487c=_0x4cc2ea;this[_0x25487c(0xe8)][_0x25487c(0xf0)](_0x1cc7ae);}[_0x4cc2ea(0xf4)](){var _0x2d2d23=_0x4cc2ea;this[_0x2d2d23(0xfe)][_0x2d2d23(0x102)](),super[_0x2d2d23(0xf4)]();}}function _0xb600(){var _0x1b7601=['639ukxIWm','destroy','setTemplate','contextResourcesSearchInputVisibleFrom','chatHeader','2185884QQahtv','488860hNbMNC','attachToDom','chatFeed','uiLanguageDirection','6676482TcitAo','_bodyCollection','populateSourceResourceBalloon','8353888CwWeMJ','7nOaRQg','detachFromDom','256PLfxfQ','chatDisclaimer','chatControls','ck-reset_all','5702gyDEGA','delegate','showResizeButton','div','ck-ai-chat','1974231yOmMbY','closeSourceResourceBalloon','4329895vCtrTu','ck-rounded-corners'];_0xb600=function(){return _0x1b7601;};return _0xb600();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x111ff9=_0xfecf;(function(_0x376731,_0x4126ef){const _0x51672d=_0xfecf,_0x1ab927=_0x376731();while(!![]){try{const _0x3b0c53=-parseInt(_0x51672d(0xdd))/0x1+-parseInt(_0x51672d(0x10c))/0x2*(parseInt(_0x51672d(0xe0))/0x3)+-parseInt(_0x51672d(0x121))/0x4+parseInt(_0x51672d(0xf7))/0x5*(-parseInt(_0x51672d(0x144))/0x6)+parseInt(_0x51672d(0xfc))/0x7+-parseInt(_0x51672d(0x109))/0x8*(-parseInt(_0x51672d(0x103))/0x9)+parseInt(_0x51672d(0xe3))/0xa*(parseInt(_0x51672d(0xd6))/0xb);if(_0x3b0c53===_0x4126ef)break;else _0x1ab927['push'](_0x1ab927['shift']());}catch(_0x1dc00a){_0x1ab927['push'](_0x1ab927['shift']());}}}(_0x7567,0x4d973));import{View as _0x5681e2,BalloonPanelView as _0x22b64f,ButtonView as _0x3b35e0,clickOutsideHandler as _0x1bbdb8}from'ckeditor5/src/ui.js';function _0xfecf(_0x5def26,_0x4a3602){const _0x756708=_0x7567();return _0xfecf=function(_0xfecffb,_0x38cbcb){_0xfecffb=_0xfecffb-0xcc;let _0x5d3f24=_0x756708[_0xfecffb];return _0x5d3f24;},_0xfecf(_0x5def26,_0x4a3602);}function _0x7567(){const _0x3e4b05=['right','16994846valjIF','getComputedStyle','_parentView','offsetWidth','element','_restoreAncestorVisibility','position','605865UyBzpN','children','-9999px','21wknedI','_intersectionObserver','zIndex','10raCLqb','.ck-ai-chat','slice','absolute','_checkAndHandleOverflow','0px','_bodyCollection','createElement','isConnected','_repinBalloonPanel','none','from','destroy','content','+\x201','_updateBalloonContent','_createShowMoreButtonView','top','_locale','isVisible','1470440QCEIMA','label','clear','getBoundingClientRect','reorganizeChips','948024rkcRSG','_pendingCalculation','_calculateContainerWidth','render','_applyOverflowResults','_targetContainer','add','18gwhXWJ','innerWidth','hidden','_findTargetContainer','showMoreButtonView','_showMoreBalloonPanelView','650696CFqKzF','visible','push','27358nrJpSY','300px','toLowerCase','_createShowMoreBalloonPanelView','rowDetectionTolerance','controlsButton','maxVisibleRows','style','pin','50px','setTemplate','_testButtonFit','disableAnimationOnEnter','showBalloonPanel','showMoreBalloon','querySelector','undefined','overflowContainer','setContainerElement','appendChild','className','941948iuCHpM','observe','div','filter','hide','forEach','remove','_isContainerVisible','isOn','_createShowMoreButton','_config','bottom','set','length','_distributeChips','_containerElement','_updateOverflowUI','clientWidth','boxSizing','documentElement','pop','parentElement','_createMockButton','pointerEvents','innerHTML','cloneNode','_makeAncestorsVisible','_handleShowMoreButtonClick','execute','button','visibility','innerHeight','showMoreLabelPrefix','auto','overflowChips','12pKdqSq','some','tagName','calculationContainer','left','_updateShowMoreButtonVisibility','cssClasses','display','_createContainerElements','height','includes','_visibleChips','_overflowChips','_renderChipsAndCountRows','isIntersecting','_calculateOverflowInContainer','opacity','extendTemplate','clientHeight','_showMoreButtonView','visible\x20!important','abs','block\x20!important','_setupVisibilityObserver','show','classList','disconnect','hideBalloonPanel','ck-calculation-container','border-box','textContent','_ancestorsToRestore','body','width','_applyCalculationStyles','showMoreButton','block','_createCalculationContainer'];_0x7567=function(){return _0x3e4b05;};return _0x7567();}import{Collection as _0x3553cf}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x111ff9(0x10d);export class AIChatChipsOverflowManager{[_0x111ff9(0xf5)];[_0x111ff9(0x12b)];[_0x111ff9(0x14f)];[_0x111ff9(0x150)];[_0x111ff9(0x157)]=null;[_0x111ff9(0x108)]=null;[_0x111ff9(0x130)]=null;[_0x111ff9(0xe9)];[_0x111ff9(0xd8)]=null;[_0x111ff9(0xe1)]=null;[_0x111ff9(0xfd)]=!0x1;constructor(_0x4bf859,_0x37e962,_0x1fb13a,_0x209a88,_0x236402){const _0x5da135=_0x111ff9;this[_0x5da135(0xf5)]=_0x4bf859,this[_0x5da135(0x14f)]=_0x37e962,this[_0x5da135(0x12b)]={...hn,..._0x1fb13a,'cssClasses':{'controlsButton':'','calculationContainer':_0x5da135(0x160),..._0x1fb13a[_0x5da135(0x14a)]}},this[_0x5da135(0x150)]=new _0x3553cf(),this[_0x5da135(0xe9)]=_0x209a88,this[_0x5da135(0xd8)]=_0x236402||null;}[_0x111ff9(0x11e)](_0x50a556){const _0x3841e0=_0x111ff9;this[_0x3841e0(0xe1)]&&(this[_0x3841e0(0xe1)][_0x3841e0(0x15e)](),this[_0x3841e0(0xe1)]=null),this[_0x3841e0(0x130)]=_0x50a556,this[_0x3841e0(0x15b)]();}get[_0x111ff9(0x107)](){const _0x4a43eb=_0x111ff9;return this[_0x4a43eb(0x157)];}get[_0x111ff9(0x143)](){const _0x16fc23=_0x111ff9;return this[_0x16fc23(0x150)];}[_0x111ff9(0xfb)](){requestAnimationFrame(()=>{const _0x5b2c05=_0xfecf;this[_0x5b2c05(0xe7)]();});}[_0x111ff9(0x119)](){const _0x46c3d2=_0x111ff9;this[_0x46c3d2(0x157)]&&this[_0x46c3d2(0x108)]&&(this[_0x46c3d2(0xf2)](),this[_0x46c3d2(0x157)][_0x46c3d2(0x129)]=!0x0,this[_0x46c3d2(0x108)][_0x46c3d2(0x15c)](),this[_0x46c3d2(0x108)][_0x46c3d2(0x114)]({'target':this[_0x46c3d2(0x157)][_0x46c3d2(0xda)],'limiter':document[_0x46c3d2(0x11b)](_0x46c3d2(0xe4))}));}[_0x111ff9(0x15f)](){const _0x14ef9a=_0x111ff9;this[_0x14ef9a(0x157)]&&this[_0x14ef9a(0x108)]&&(this[_0x14ef9a(0x157)][_0x14ef9a(0x129)]=!0x1,this[_0x14ef9a(0x108)][_0x14ef9a(0x125)]());}[_0x111ff9(0xf9)](){const _0x22e5b7=_0x111ff9;this[_0x22e5b7(0x150)][_0x22e5b7(0xf9)](),this[_0x22e5b7(0x15f)](),this[_0x22e5b7(0x149)](),this[_0x22e5b7(0x157)]&&(this[_0x22e5b7(0x157)][_0x22e5b7(0xf8)]=''),this[_0x22e5b7(0x108)]&&this[_0x22e5b7(0x108)][_0x22e5b7(0xf0)][_0x22e5b7(0xf9)]();}[_0x111ff9(0xef)](){const _0x3d1a15=_0x111ff9;this[_0x3d1a15(0xe1)]&&(this[_0x3d1a15(0xe1)][_0x3d1a15(0x15e)](),this[_0x3d1a15(0xe1)]=null),this[_0x3d1a15(0x157)]&&(this[_0x3d1a15(0x157)][_0x3d1a15(0xef)](),this[_0x3d1a15(0x157)]=null),this[_0x3d1a15(0x108)]&&(this[_0x3d1a15(0x108)][_0x3d1a15(0xef)](),this[_0x3d1a15(0x108)]=null);}[_0x111ff9(0xe7)](){const _0x54d496=_0x111ff9;if(!this[_0x54d496(0x130)])return;if(!this[_0x54d496(0x128)]())return void(this[_0x54d496(0xfd)]=!0x0);this[_0x54d496(0xfd)]=!0x1;const _0x384318=[...this[_0x54d496(0x14f)],...this[_0x54d496(0x150)]],_0x52492d=this[_0x54d496(0xd4)](),_0x425ee7=this[_0x54d496(0x153)](_0x52492d,_0x384318),_0x3998f5=_0x52492d[_0x54d496(0xce)];_0x3998f5&&this[_0x54d496(0xdb)](_0x3998f5),_0x52492d[_0x54d496(0x127)](),this[_0x54d496(0x100)](_0x384318,_0x425ee7);}[_0x111ff9(0x12a)](){const _0x319358=_0x111ff9;this[_0x319358(0x157)]=this[_0x319358(0xf3)](),this[_0x319358(0x108)]=this[_0x319358(0x10f)](),this[_0x319358(0x157)][_0x319358(0xff)](),this[_0x319358(0x130)][_0x319358(0x11f)](this[_0x319358(0x157)][_0x319358(0xda)]),this[_0x319358(0x157)]['on'](_0x319358(0x13d),()=>{const _0x1c9979=_0x319358;this[_0x1c9979(0x13c)]();}),_0x1bbdb8({'emitter':this[_0x319358(0x108)],'contextElements':[this[_0x319358(0x108)][_0x319358(0xda)],this[_0x319358(0x157)][_0x319358(0xda)]],'callback':()=>this[_0x319358(0x15f)](),'activator':()=>this[_0x319358(0x157)][_0x319358(0x129)]});}[_0x111ff9(0xf3)](){const _0x21e837=_0x111ff9,_0x37bbb6=new _0x3b35e0(this[_0x21e837(0xf5)]);_0x37bbb6[_0x21e837(0x12d)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4c926e=[this[_0x21e837(0x12b)][_0x21e837(0x14a)][_0x21e837(0xd2)]];return this[_0x21e837(0x12b)][_0x21e837(0x14a)][_0x21e837(0x111)]&&_0x4c926e[_0x21e837(0x10b)](this[_0x21e837(0x12b)][_0x21e837(0x14a)][_0x21e837(0x111)]),_0x37bbb6[_0x21e837(0x155)]({'attributes':{'class':_0x4c926e}}),_0x37bbb6;}[_0x111ff9(0x10f)](){const _0x19a327=_0x111ff9,_0x181c08=new _0x22b64f(this[_0x19a327(0xf5)]);return _0x181c08[_0x19a327(0x155)]({'attributes':{'class':this[_0x19a327(0x12b)][_0x19a327(0x14a)][_0x19a327(0x11a)]}}),this[_0x19a327(0xe9)][_0x19a327(0x102)](_0x181c08),_0x181c08;}[_0x111ff9(0xf2)](){const _0xe08d53=_0x111ff9;if(this[_0xe08d53(0x108)]&&(this[_0xe08d53(0x108)][_0xe08d53(0xf0)][_0xe08d53(0xf9)](),this[_0xe08d53(0x150)][_0xe08d53(0x12e)]>0x0)){this[_0xe08d53(0x150)][_0xe08d53(0x126)](_0x2a299a=>{const _0x52d119=_0xe08d53;_0x2a299a[_0x52d119(0x118)]();});const _0x439f4b=new _0x5681e2(this[_0xe08d53(0xf5)]);_0x439f4b[_0xe08d53(0x116)]({'tag':_0xe08d53(0x123),'attributes':{'class':this[_0xe08d53(0x12b)][_0xe08d53(0x14a)][_0xe08d53(0x11d)]},'children':this[_0xe08d53(0x150)]}),this[_0xe08d53(0x108)][_0xe08d53(0xf0)][_0xe08d53(0x102)](_0x439f4b);}}[_0x111ff9(0x13c)](){const _0x183851=_0x111ff9;this[_0x183851(0x157)][_0x183851(0x129)]?this[_0x183851(0x15f)]():this[_0x183851(0x119)]();}[_0x111ff9(0x149)](){const _0x42c01f=_0x111ff9,_0x3beac2=this[_0x42c01f(0x150)][_0x42c01f(0x12e)]>0x0;this[_0x42c01f(0x157)]?.[_0x42c01f(0xda)]&&(this[_0x42c01f(0x157)][_0x42c01f(0xda)][_0x42c01f(0x113)][_0x42c01f(0x14b)]=_0x3beac2?'':_0x42c01f(0xed));}[_0x111ff9(0xec)](){const _0xbe8ccc=_0x111ff9;this[_0xbe8ccc(0x157)]?.[_0xbe8ccc(0x129)]&&this[_0xbe8ccc(0x108)]?.[_0xbe8ccc(0xf6)]&&this[_0xbe8ccc(0x157)][_0xbe8ccc(0xda)]&&this[_0xbe8ccc(0x108)][_0xbe8ccc(0x114)]({'target':this[_0xbe8ccc(0x157)][_0xbe8ccc(0xda)],'limiter':document[_0xbe8ccc(0x11b)](_0xbe8ccc(0xe4))});}[_0x111ff9(0x106)](_0x570ac3){const _0x4feaf2=_0x111ff9,_0x2d5d5c=this[_0x4feaf2(0x130)]?.[_0x4feaf2(0x146)][_0x4feaf2(0x10e)]()||_0x4feaf2(0x123),_0x5221fd=this[_0x4feaf2(0x130)]?.[_0x4feaf2(0x15d)];if(_0x5221fd){const _0x4e7bfc=_0x5221fd[0x0]||'',_0x5e15a0=_0x570ac3[_0x4feaf2(0x11b)]('.'+_0x4e7bfc),_0xcd43ba=_0x570ac3[_0x4feaf2(0x11b)](_0x2d5d5c);return _0x5e15a0||_0xcd43ba||_0x570ac3;}return _0x570ac3[_0x4feaf2(0x11b)](_0x2d5d5c)||_0x570ac3;}[_0x111ff9(0xfe)](){const _0x34798a=_0x111ff9,_0x2ee952=this[_0x34798a(0xd8)]?.[_0x34798a(0xda)]||this[_0x34798a(0x130)];if(!_0x2ee952)return an;const _0x20b5a4=window[_0x34798a(0xd7)](_0x2ee952)[_0x34798a(0xd0)];if(_0x34798a(0x142)===_0x20b5a4||_0x34798a(0xe8)===_0x20b5a4||!_0x20b5a4){const _0x239768=_0x2ee952[_0x34798a(0x136)];if(_0x239768){const _0x1a1e3a=window[_0x34798a(0xd7)](_0x239768);return _0x34798a(0x142)!==_0x1a1e3a[_0x34798a(0xd0)]?_0x1a1e3a[_0x34798a(0xd0)]:an;}return an;}return _0x20b5a4;}[_0x111ff9(0xd1)](_0xb0d9d5,_0x5647a0){const _0x4143a4=_0x111ff9;this[_0x4143a4(0x12b)][_0x4143a4(0x14a)][_0x4143a4(0x147)]&&_0xb0d9d5[_0x4143a4(0x15d)][_0x4143a4(0x102)](this[_0x4143a4(0x12b)][_0x4143a4(0x14a)][_0x4143a4(0x147)]),_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0xd0)]=_0x5647a0,_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0xdc)]=_0x4143a4(0xe6),_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0xf4)]=_0x4143a4(0xdf),_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0x148)]=_0x4143a4(0xdf),_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0x154)]='0',_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0x138)]=_0x4143a4(0xed),_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0xe2)]='-1',_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0x13f)]=_0x4143a4(0x158),_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0x14b)]=_0x4143a4(0x15a),_0xb0d9d5[_0x4143a4(0x113)][_0x4143a4(0x133)]=_0x4143a4(0xcc);}[_0x111ff9(0xdb)](_0x171b62){const _0x45aa4d=_0x111ff9;_0x171b62[_0x45aa4d(0x126)](({element:_0x425bad,originalDisplay:_0x273c65,originalVisibility:_0x490769})=>{const _0x4a6fab=_0x45aa4d;_0x425bad[_0x4a6fab(0x113)][_0x4a6fab(0x14b)]=_0x273c65,_0x425bad[_0x4a6fab(0x113)][_0x4a6fab(0x13f)]=_0x490769;});}[_0x111ff9(0x13b)](_0x18f7b0){const _0x5bf2fb=_0x111ff9,_0x2d7a3a=[];let _0x54e4d9=_0x18f7b0;for(;_0x54e4d9&&_0x54e4d9!==document[_0x5bf2fb(0xcf)];){const _0x207086=window[_0x5bf2fb(0xd7)](_0x54e4d9);_0x5bf2fb(0xed)!==_0x207086[_0x5bf2fb(0x14b)]&&_0x5bf2fb(0x105)!==_0x207086[_0x5bf2fb(0x13f)]||(_0x2d7a3a[_0x5bf2fb(0x10b)]({'element':_0x54e4d9,'originalDisplay':_0x54e4d9[_0x5bf2fb(0x113)][_0x5bf2fb(0x14b)],'originalVisibility':_0x54e4d9[_0x5bf2fb(0x113)][_0x5bf2fb(0x13f)]}),_0x54e4d9[_0x5bf2fb(0x113)][_0x5bf2fb(0x14b)]=_0x5bf2fb(0xd3),_0x54e4d9[_0x5bf2fb(0x113)][_0x5bf2fb(0x13f)]=_0x5bf2fb(0x10a)),_0x54e4d9=_0x54e4d9[_0x5bf2fb(0x136)];}return _0x2d7a3a;}[_0x111ff9(0x14c)](){const _0x210b7b=_0x111ff9;let _0x372c7,_0x2a6a67;return this[_0x210b7b(0xd8)]?.[_0x210b7b(0xda)]?(_0x372c7=this[_0x210b7b(0xd8)][_0x210b7b(0xda)][_0x210b7b(0x13a)](!0x0),_0x2a6a67=this[_0x210b7b(0x106)](_0x372c7)):(_0x372c7=document[_0x210b7b(0xea)](_0x210b7b(0x123)),_0x2a6a67=_0x372c7),{'calculationContainer':_0x372c7,'targetContainer':_0x2a6a67};}[_0x111ff9(0xd4)](){const _0x8110c1=_0x111ff9,{calculationContainer:_0x3ee2aa,targetContainer:_0x236c0f}=this[_0x8110c1(0x14c)](),_0x29884b=this[_0x8110c1(0xfe)]();this[_0x8110c1(0xd1)](_0x3ee2aa,_0x29884b);const _0x324da8=this[_0x8110c1(0xd8)]?.[_0x8110c1(0xda)]||this[_0x8110c1(0x130)],_0x59aa7a=_0x324da8?.[_0x8110c1(0x136)];_0x59aa7a?_0x59aa7a[_0x8110c1(0x11f)](_0x3ee2aa):document[_0x8110c1(0xcf)][_0x8110c1(0x11f)](_0x3ee2aa),_0x3ee2aa[_0x8110c1(0x101)]=_0x236c0f;const _0x1da173=this[_0x8110c1(0x13b)](_0x59aa7a||null);return _0x3ee2aa[_0x8110c1(0xd9)],_0x3ee2aa[_0x8110c1(0xce)]=_0x1da173,_0x3ee2aa;}[_0x111ff9(0x153)](_0x5870b5,_0x1f570b){const _0x104e7d=_0x111ff9,_0x3798e7=_0x5870b5[_0x104e7d(0x101)]||_0x5870b5,_0x47ebb8=[],{rowCount:_0x1abcb4}=this[_0x104e7d(0x151)](_0x3798e7,_0x1f570b);if(_0x1abcb4<=this[_0x104e7d(0x12b)][_0x104e7d(0x112)])return _0x47ebb8;const _0x7f834a=_0x1f570b[_0x104e7d(0xe5)]();for(;_0x7f834a[_0x104e7d(0x12e)]>0x0;){if(this[_0x104e7d(0x117)](_0x5870b5,_0x3798e7,_0x7f834a)){const _0x3fdf44=_0x1f570b[_0x104e7d(0x124)](_0x40625=>!_0x7f834a[_0x104e7d(0x14e)](_0x40625));_0x47ebb8[_0x104e7d(0x10b)](..._0x3fdf44);break;}if(!_0x7f834a[_0x104e7d(0x135)]())break;}return _0x47ebb8;}[_0x111ff9(0x151)](_0x3c4349,_0x1cfb0c){const _0x3f2b18=_0x111ff9;_0x3c4349[_0x3f2b18(0x139)]='',_0x1cfb0c[_0x3f2b18(0x126)](_0x149f45=>{const _0x531dc5=_0x3f2b18;if(_0x149f45[_0x531dc5(0xda)]){const _0x185d31=_0x149f45[_0x531dc5(0xda)][_0x531dc5(0x13a)](!0x0);_0x3c4349[_0x531dc5(0x11f)](_0x185d31);}}),_0x3c4349[_0x3f2b18(0xd9)];const _0x315f67=_0x3c4349[_0x3f2b18(0xde)],_0x4beab8=[];return Array[_0x3f2b18(0xee)](_0x315f67)[_0x3f2b18(0x126)](_0x1d50cc=>{const _0x5ed2e5=_0x3f2b18,_0x25e62a=_0x1d50cc[_0x5ed2e5(0xfa)]()[_0x5ed2e5(0xf4)];_0x4beab8[_0x5ed2e5(0x145)](_0x24a314=>Math[_0x5ed2e5(0x159)](_0x24a314-_0x25e62a)<this[_0x5ed2e5(0x12b)][_0x5ed2e5(0x110)])||_0x4beab8[_0x5ed2e5(0x10b)](_0x25e62a);}),{'rowCount':_0x4beab8[_0x3f2b18(0x12e)]};}[_0x111ff9(0x137)](){const _0x1af1bb=_0x111ff9,_0x12d9d4=document[_0x1af1bb(0xea)](_0x1af1bb(0x13e));return _0x12d9d4[_0x1af1bb(0x120)]=this[_0x1af1bb(0x12b)][_0x1af1bb(0x14a)][_0x1af1bb(0xd2)],this[_0x1af1bb(0x12b)][_0x1af1bb(0x14a)][_0x1af1bb(0x111)]&&_0x12d9d4[_0x1af1bb(0x15d)][_0x1af1bb(0x102)](this[_0x1af1bb(0x12b)][_0x1af1bb(0x14a)][_0x1af1bb(0x111)]),_0x12d9d4[_0x1af1bb(0xcd)]=_0x1af1bb(0xf1),_0x12d9d4;}[_0x111ff9(0x117)](_0x8b99a4,_0x4d95f3,_0x158c75){const _0x287e76=_0x111ff9;this[_0x287e76(0x151)](_0x4d95f3,_0x158c75);const _0x436322=this[_0x287e76(0x137)]();_0x8b99a4[_0x287e76(0x11f)](_0x436322),_0x8b99a4[_0x287e76(0xd9)];const _0x57487a=[..._0x4d95f3[_0x287e76(0xde)],_0x436322],_0x19db44=[];_0x57487a[_0x287e76(0x126)](_0xd6f196=>{const _0x228745=_0x287e76,_0x16a9f3=_0xd6f196[_0x228745(0xfa)]()[_0x228745(0xf4)];_0x19db44[_0x228745(0x145)](_0x5b7e98=>Math[_0x228745(0x159)](_0x5b7e98-_0x16a9f3)<this[_0x228745(0x12b)][_0x228745(0x110)])||_0x19db44[_0x228745(0x10b)](_0x16a9f3);});const _0x46e364=_0x19db44[_0x287e76(0x12e)];return _0x436322[_0x287e76(0x127)](),_0x46e364<=this[_0x287e76(0x12b)][_0x287e76(0x112)];}[_0x111ff9(0x12f)](_0x36bc2e,_0x1a976b){const _0x2c556f=_0x111ff9;this[_0x2c556f(0x14f)][_0x2c556f(0xf9)](),this[_0x2c556f(0x150)][_0x2c556f(0xf9)](),_0x36bc2e[_0x2c556f(0x126)](_0x290305=>{const _0x49152a=_0x2c556f;_0x1a976b[_0x49152a(0x14e)](_0x290305)?this[_0x49152a(0x150)][_0x49152a(0x102)](_0x290305):this[_0x49152a(0x14f)][_0x49152a(0x102)](_0x290305);});}[_0x111ff9(0x131)](_0x28d18d){const _0x4bd572=_0x111ff9;if(_0x28d18d>0x0&&!this[_0x4bd572(0x157)]&&this[_0x4bd572(0x12a)](),_0x28d18d>0x0&&this[_0x4bd572(0x157)]){const _0x4c98c3=''+this[_0x4bd572(0x12b)][_0x4bd572(0x141)]+(_0x28d18d<0x63?_0x28d18d:'99');this[_0x4bd572(0x157)][_0x4bd572(0xf8)]=_0x4c98c3;}this[_0x4bd572(0xf2)](),this[_0x4bd572(0x149)](),this[_0x4bd572(0xec)]();}[_0x111ff9(0x100)](_0x4d0afc,_0x1d7906){const _0x1a2595=_0x111ff9;this[_0x1a2595(0x12f)](_0x4d0afc,_0x1d7906),this[_0x1a2595(0x131)](_0x1d7906[_0x1a2595(0x12e)]);}[_0x111ff9(0x15b)](){const _0x12bdde=_0x111ff9;this[_0x12bdde(0x130)]&&_0x12bdde(0x11c)!=typeof IntersectionObserver&&(this[_0x12bdde(0xe1)]=new IntersectionObserver(_0x3e5dee=>{const _0x503787=_0x12bdde;_0x3e5dee[0x0][_0x503787(0x152)]&&this[_0x503787(0xfd)]&&requestAnimationFrame(()=>{const _0x5be96d=_0x503787;this[_0x5be96d(0xe7)]();});},{'threshold':0.01,'rootMargin':_0x12bdde(0x115)}),this[_0x12bdde(0xe1)][_0x12bdde(0x122)](this[_0x12bdde(0x130)]));}[_0x111ff9(0x128)](){const _0x2a6bde=_0x111ff9;if(!this[_0x2a6bde(0x130)])return!0x1;if(!this[_0x2a6bde(0x130)][_0x2a6bde(0xeb)])return!0x1;const _0x320712=this[_0x2a6bde(0x130)][_0x2a6bde(0xfa)]();if(0x0===_0x320712[_0x2a6bde(0xd0)]||0x0===_0x320712[_0x2a6bde(0x14d)])return!0x1;const _0x59f70d=window[_0x2a6bde(0x140)]||document[_0x2a6bde(0x134)][_0x2a6bde(0x156)],_0x5180b9=window[_0x2a6bde(0x104)]||document[_0x2a6bde(0x134)][_0x2a6bde(0x132)],_0xa4a1f4=0xc8;return _0x320712[_0x2a6bde(0x12c)]>=-0xc8&&_0x320712[_0x2a6bde(0xf4)]<=_0x59f70d+_0xa4a1f4&&_0x320712[_0x2a6bde(0xd5)]>=-0xc8&&_0x320712[_0x2a6bde(0x148)]<=_0x5180b9+_0xa4a1f4;}}
|
|
23
|
+
const _0x29a56a=_0x191d;function _0x191d(_0x107100,_0x2fc649){const _0x2a0ac3=_0x2a0a();return _0x191d=function(_0x191d36,_0x37c14a){_0x191d36=_0x191d36-0x19b;let _0x5c60e0=_0x2a0ac3[_0x191d36];return _0x5c60e0;},_0x191d(_0x107100,_0x2fc649);}(function(_0x35af18,_0x4e4294){const _0x3bf37a=_0x191d,_0x492d54=_0x35af18();while(!![]){try{const _0xc2aee2=parseInt(_0x3bf37a(0x1ee))/0x1*(-parseInt(_0x3bf37a(0x1a3))/0x2)+parseInt(_0x3bf37a(0x21c))/0x3+-parseInt(_0x3bf37a(0x206))/0x4+parseInt(_0x3bf37a(0x1b3))/0x5*(parseInt(_0x3bf37a(0x1fe))/0x6)+parseInt(_0x3bf37a(0x1d7))/0x7+parseInt(_0x3bf37a(0x1bf))/0x8+-parseInt(_0x3bf37a(0x218))/0x9;if(_0xc2aee2===_0x4e4294)break;else _0x492d54['push'](_0x492d54['shift']());}catch(_0x43ee84){_0x492d54['push'](_0x492d54['shift']());}}}(_0x2a0a,0x7263d));function _0x2a0a(){const _0x595844=['block\x20!important','visible\x20!important','calculationContainer','isConnected','none','clientHeight','pointerEvents','reorganizeChips','includes','remove','_calculateContainerWidth','body','_setupVisibilityObserver','_createCalculationContainer','_intersectionObserver','5498801wKVGea','disableAnimationOnEnter','_pendingCalculation','toLowerCase','rowDetectionTolerance','add','classList','_calculateOverflowInContainer','children','hide','showMoreBalloon','_visibleChips','border-box','style','block','isOn','_createShowMoreButton','label','undefined','forEach','-9999px','300px','_ancestorsToRestore','7eHweid','div','showMoreButton','+\x201','bottom','_createMockButton','_createShowMoreButtonView','left','extendTemplate','_applyOverflowResults','position','hidden','controlsButton','push','parentElement','_makeAncestorsVisible','1684698WKHrZc','button','from','pin','ck-calculation-container','length','textContent','offsetWidth','1304356MAHFIQ','_containerElement','set','innerHeight','50px','_distributeChips','top','destroy','slice','_updateShowMoreButtonVisibility','_findTargetContainer','visible','overflowChips','tagName','visibility','.ck-ai-chat','_targetContainer','cloneNode','10068489rqzTFR','_parentView','isVisible','content','318468tnSKfZ','innerHTML','some','_renderChipsAndCountRows','showBalloonPanel','observe','_testButtonFit','_updateOverflowUI','height','setTemplate','getBoundingClientRect','createElement','abs','overflowContainer','_isContainerVisible','render','0px','_restoreAncestorVisibility','zIndex','clientWidth','setContainerElement','_showMoreButtonView','maxVisibleRows','_updateBalloonContent','cssClasses','_createContainerElements','98894SBnWZC','documentElement','_overflowChips','display','_showMoreBalloonPanelView','absolute','_repinBalloonPanel','filter','querySelector','innerWidth','execute','width','appendChild','_handleShowMoreButtonClick','show','clear','10uGBsKt','boxSizing','className','element','hideBalloonPanel','_config','right','auto','showMoreLabelPrefix','_checkAndHandleOverflow','_createShowMoreBalloonPanelView','showMoreButtonView','6449720WHShgH','_bodyCollection','pop','isIntersecting','opacity','getComputedStyle','disconnect','_locale','_applyCalculationStyles'];_0x2a0a=function(){return _0x595844;};return _0x2a0a();}import{View as _0x26e7b5,BalloonPanelView as _0x47264d,ButtonView as _0x12e5d6,clickOutsideHandler as _0x5b1cfc}from'ckeditor5/src/ui.js';import{Collection as _0xb51e32}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x29a56a(0x1ec);export class AIChatChipsOverflowManager{[_0x29a56a(0x1c6)];[_0x29a56a(0x1b8)];[_0x29a56a(0x1e2)];[_0x29a56a(0x1a5)];[_0x29a56a(0x19e)]=null;[_0x29a56a(0x1a7)]=null;[_0x29a56a(0x207)]=null;[_0x29a56a(0x1c0)];[_0x29a56a(0x219)]=null;[_0x29a56a(0x1d6)]=null;[_0x29a56a(0x1d9)]=!0x1;constructor(_0xe26175,_0x1a2424,_0x2b5da0,_0x4b1c57,_0x41d188){const _0x469538=_0x29a56a;this[_0x469538(0x1c6)]=_0xe26175,this[_0x469538(0x1e2)]=_0x1a2424,this[_0x469538(0x1b8)]={...hn,..._0x2b5da0,'cssClasses':{'controlsButton':'','calculationContainer':_0x469538(0x202),..._0x2b5da0[_0x469538(0x1a1)]}},this[_0x469538(0x1a5)]=new _0xb51e32(),this[_0x469538(0x1c0)]=_0x4b1c57,this[_0x469538(0x219)]=_0x41d188||null;}[_0x29a56a(0x19d)](_0x11ad60){const _0x51f292=_0x29a56a;this[_0x51f292(0x1d6)]&&(this[_0x51f292(0x1d6)][_0x51f292(0x1c5)](),this[_0x51f292(0x1d6)]=null),this[_0x51f292(0x207)]=_0x11ad60,this[_0x51f292(0x1d4)]();}get[_0x29a56a(0x1be)](){const _0x25befe=_0x29a56a;return this[_0x25befe(0x19e)];}get[_0x29a56a(0x212)](){const _0x571d5c=_0x29a56a;return this[_0x571d5c(0x1a5)];}[_0x29a56a(0x1cf)](){requestAnimationFrame(()=>{const _0x35f0c2=_0x191d;this[_0x35f0c2(0x1bc)]();});}[_0x29a56a(0x220)](){const _0x928209=_0x29a56a;this[_0x928209(0x19e)]&&this[_0x928209(0x1a7)]&&(this[_0x928209(0x1a0)](),this[_0x928209(0x19e)][_0x928209(0x1e6)]=!0x0,this[_0x928209(0x1a7)][_0x928209(0x1b1)](),this[_0x928209(0x1a7)][_0x928209(0x201)]({'target':this[_0x928209(0x19e)][_0x928209(0x1b6)],'limiter':document[_0x928209(0x1ab)](_0x928209(0x215))}));}[_0x29a56a(0x1b7)](){const _0x355215=_0x29a56a;this[_0x355215(0x19e)]&&this[_0x355215(0x1a7)]&&(this[_0x355215(0x19e)][_0x355215(0x1e6)]=!0x1,this[_0x355215(0x1a7)][_0x355215(0x1e0)]());}[_0x29a56a(0x1b2)](){const _0x4276d8=_0x29a56a;this[_0x4276d8(0x1a5)][_0x4276d8(0x1b2)](),this[_0x4276d8(0x1b7)](),this[_0x4276d8(0x20f)](),this[_0x4276d8(0x19e)]&&(this[_0x4276d8(0x19e)][_0x4276d8(0x1e8)]=''),this[_0x4276d8(0x1a7)]&&this[_0x4276d8(0x1a7)][_0x4276d8(0x21b)][_0x4276d8(0x1b2)]();}[_0x29a56a(0x20d)](){const _0x5d6a42=_0x29a56a;this[_0x5d6a42(0x1d6)]&&(this[_0x5d6a42(0x1d6)][_0x5d6a42(0x1c5)](),this[_0x5d6a42(0x1d6)]=null),this[_0x5d6a42(0x19e)]&&(this[_0x5d6a42(0x19e)][_0x5d6a42(0x20d)](),this[_0x5d6a42(0x19e)]=null),this[_0x5d6a42(0x1a7)]&&(this[_0x5d6a42(0x1a7)][_0x5d6a42(0x20d)](),this[_0x5d6a42(0x1a7)]=null);}[_0x29a56a(0x1bc)](){const _0x167634=_0x29a56a;if(!this[_0x167634(0x207)])return;if(!this[_0x167634(0x22a)]())return void(this[_0x167634(0x1d9)]=!0x0);this[_0x167634(0x1d9)]=!0x1;const _0x4e7824=[...this[_0x167634(0x1e2)],...this[_0x167634(0x1a5)]],_0x1c8166=this[_0x167634(0x1d5)](),_0x137bd5=this[_0x167634(0x1de)](_0x1c8166,_0x4e7824),_0x4f7b5d=_0x1c8166[_0x167634(0x1ed)];_0x4f7b5d&&this[_0x167634(0x22d)](_0x4f7b5d),_0x1c8166[_0x167634(0x1d1)](),this[_0x167634(0x1f7)](_0x4e7824,_0x137bd5);}[_0x29a56a(0x1e7)](){const _0x518415=_0x29a56a;this[_0x518415(0x19e)]=this[_0x518415(0x1f4)](),this[_0x518415(0x1a7)]=this[_0x518415(0x1bd)](),this[_0x518415(0x19e)][_0x518415(0x22b)](),this[_0x518415(0x207)][_0x518415(0x1af)](this[_0x518415(0x19e)][_0x518415(0x1b6)]),this[_0x518415(0x19e)]['on'](_0x518415(0x1ad),()=>{const _0x4dbbb6=_0x518415;this[_0x4dbbb6(0x1b0)]();}),_0x5b1cfc({'emitter':this[_0x518415(0x1a7)],'contextElements':[this[_0x518415(0x1a7)][_0x518415(0x1b6)],this[_0x518415(0x19e)][_0x518415(0x1b6)]],'callback':()=>this[_0x518415(0x1b7)](),'activator':()=>this[_0x518415(0x19e)][_0x518415(0x1e6)]});}[_0x29a56a(0x1f4)](){const _0x1196a5=_0x29a56a,_0x2629ee=new _0x12e5d6(this[_0x1196a5(0x1c6)]);_0x2629ee[_0x1196a5(0x208)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x81838e=[this[_0x1196a5(0x1b8)][_0x1196a5(0x1a1)][_0x1196a5(0x1f0)]];return this[_0x1196a5(0x1b8)][_0x1196a5(0x1a1)][_0x1196a5(0x1fa)]&&_0x81838e[_0x1196a5(0x1fb)](this[_0x1196a5(0x1b8)][_0x1196a5(0x1a1)][_0x1196a5(0x1fa)]),_0x2629ee[_0x1196a5(0x1f6)]({'attributes':{'class':_0x81838e}}),_0x2629ee;}[_0x29a56a(0x1bd)](){const _0x44fe97=_0x29a56a,_0x284871=new _0x47264d(this[_0x44fe97(0x1c6)]);return _0x284871[_0x44fe97(0x1f6)]({'attributes':{'class':this[_0x44fe97(0x1b8)][_0x44fe97(0x1a1)][_0x44fe97(0x1e1)]}}),this[_0x44fe97(0x1c0)][_0x44fe97(0x1dc)](_0x284871),_0x284871;}[_0x29a56a(0x1a0)](){const _0x836031=_0x29a56a;if(this[_0x836031(0x1a7)]&&(this[_0x836031(0x1a7)][_0x836031(0x21b)][_0x836031(0x1b2)](),this[_0x836031(0x1a5)][_0x836031(0x203)]>0x0)){this[_0x836031(0x1a5)][_0x836031(0x1ea)](_0x29d74a=>{const _0x3b3ec2=_0x836031;_0x29d74a[_0x3b3ec2(0x1d8)]();});const _0x304824=new _0x26e7b5(this[_0x836031(0x1c6)]);_0x304824[_0x836031(0x225)]({'tag':_0x836031(0x1ef),'attributes':{'class':this[_0x836031(0x1b8)][_0x836031(0x1a1)][_0x836031(0x229)]},'children':this[_0x836031(0x1a5)]}),this[_0x836031(0x1a7)][_0x836031(0x21b)][_0x836031(0x1dc)](_0x304824);}}[_0x29a56a(0x1b0)](){const _0x498e09=_0x29a56a;this[_0x498e09(0x19e)][_0x498e09(0x1e6)]?this[_0x498e09(0x1b7)]():this[_0x498e09(0x220)]();}[_0x29a56a(0x20f)](){const _0x1d6df7=_0x29a56a,_0x179c1f=this[_0x1d6df7(0x1a5)][_0x1d6df7(0x203)]>0x0;this[_0x1d6df7(0x19e)]?.[_0x1d6df7(0x1b6)]&&(this[_0x1d6df7(0x19e)][_0x1d6df7(0x1b6)][_0x1d6df7(0x1e4)][_0x1d6df7(0x1a6)]=_0x179c1f?'':_0x1d6df7(0x1cc));}[_0x29a56a(0x1a9)](){const _0x232f47=_0x29a56a;this[_0x232f47(0x19e)]?.[_0x232f47(0x1e6)]&&this[_0x232f47(0x1a7)]?.[_0x232f47(0x21a)]&&this[_0x232f47(0x19e)][_0x232f47(0x1b6)]&&this[_0x232f47(0x1a7)][_0x232f47(0x201)]({'target':this[_0x232f47(0x19e)][_0x232f47(0x1b6)],'limiter':document[_0x232f47(0x1ab)](_0x232f47(0x215))});}[_0x29a56a(0x210)](_0x4d7b6d){const _0x181abe=_0x29a56a,_0x400744=this[_0x181abe(0x207)]?.[_0x181abe(0x213)][_0x181abe(0x1da)]()||_0x181abe(0x1ef),_0x16a19f=this[_0x181abe(0x207)]?.[_0x181abe(0x1dd)];if(_0x16a19f){const _0x2e7bd7=_0x16a19f[0x0]||'',_0x2f2c86=_0x4d7b6d[_0x181abe(0x1ab)]('.'+_0x2e7bd7),_0x565b46=_0x4d7b6d[_0x181abe(0x1ab)](_0x400744);return _0x2f2c86||_0x565b46||_0x4d7b6d;}return _0x4d7b6d[_0x181abe(0x1ab)](_0x400744)||_0x4d7b6d;}[_0x29a56a(0x1d2)](){const _0x380487=_0x29a56a,_0x15f09f=this[_0x380487(0x219)]?.[_0x380487(0x1b6)]||this[_0x380487(0x207)];if(!_0x15f09f)return an;const _0x491983=window[_0x380487(0x1c4)](_0x15f09f)[_0x380487(0x1ae)];if(_0x380487(0x1ba)===_0x491983||_0x380487(0x22c)===_0x491983||!_0x491983){const _0x489304=_0x15f09f[_0x380487(0x1fc)];if(_0x489304){const _0xbf2707=window[_0x380487(0x1c4)](_0x489304);return _0x380487(0x1ba)!==_0xbf2707[_0x380487(0x1ae)]?_0xbf2707[_0x380487(0x1ae)]:an;}return an;}return _0x491983;}[_0x29a56a(0x1c7)](_0x33030a,_0x2b0388){const _0x5d12c1=_0x29a56a;this[_0x5d12c1(0x1b8)][_0x5d12c1(0x1a1)][_0x5d12c1(0x1ca)]&&_0x33030a[_0x5d12c1(0x1dd)][_0x5d12c1(0x1dc)](this[_0x5d12c1(0x1b8)][_0x5d12c1(0x1a1)][_0x5d12c1(0x1ca)]),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1ae)]=_0x2b0388,_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1f8)]=_0x5d12c1(0x1a8),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x20c)]=_0x5d12c1(0x1eb),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1f5)]=_0x5d12c1(0x1eb),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1c3)]='0',_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1ce)]=_0x5d12c1(0x1cc),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x19b)]='-1',_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x214)]=_0x5d12c1(0x1c9),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1a6)]=_0x5d12c1(0x1c8),_0x33030a[_0x5d12c1(0x1e4)][_0x5d12c1(0x1b4)]=_0x5d12c1(0x1e3);}[_0x29a56a(0x22d)](_0x1e6908){const _0x41f851=_0x29a56a;_0x1e6908[_0x41f851(0x1ea)](({element:_0x3f07de,originalDisplay:_0x9f0f88,originalVisibility:_0xbaa263})=>{const _0x57c3a8=_0x41f851;_0x3f07de[_0x57c3a8(0x1e4)][_0x57c3a8(0x1a6)]=_0x9f0f88,_0x3f07de[_0x57c3a8(0x1e4)][_0x57c3a8(0x214)]=_0xbaa263;});}[_0x29a56a(0x1fd)](_0x1df0a9){const _0x712aad=_0x29a56a,_0x1b12e5=[];let _0x402709=_0x1df0a9;for(;_0x402709&&_0x402709!==document[_0x712aad(0x1d3)];){const _0x407402=window[_0x712aad(0x1c4)](_0x402709);_0x712aad(0x1cc)!==_0x407402[_0x712aad(0x1a6)]&&_0x712aad(0x1f9)!==_0x407402[_0x712aad(0x214)]||(_0x1b12e5[_0x712aad(0x1fb)]({'element':_0x402709,'originalDisplay':_0x402709[_0x712aad(0x1e4)][_0x712aad(0x1a6)],'originalVisibility':_0x402709[_0x712aad(0x1e4)][_0x712aad(0x214)]}),_0x402709[_0x712aad(0x1e4)][_0x712aad(0x1a6)]=_0x712aad(0x1e5),_0x402709[_0x712aad(0x1e4)][_0x712aad(0x214)]=_0x712aad(0x211)),_0x402709=_0x402709[_0x712aad(0x1fc)];}return _0x1b12e5;}[_0x29a56a(0x1a2)](){const _0x128f06=_0x29a56a;let _0x1b24c9,_0x4e11ec;return this[_0x128f06(0x219)]?.[_0x128f06(0x1b6)]?(_0x1b24c9=this[_0x128f06(0x219)][_0x128f06(0x1b6)][_0x128f06(0x217)](!0x0),_0x4e11ec=this[_0x128f06(0x210)](_0x1b24c9)):(_0x1b24c9=document[_0x128f06(0x227)](_0x128f06(0x1ef)),_0x4e11ec=_0x1b24c9),{'calculationContainer':_0x1b24c9,'targetContainer':_0x4e11ec};}[_0x29a56a(0x1d5)](){const _0x130254=_0x29a56a,{calculationContainer:_0x338a12,targetContainer:_0x6670c6}=this[_0x130254(0x1a2)](),_0x338ec6=this[_0x130254(0x1d2)]();this[_0x130254(0x1c7)](_0x338a12,_0x338ec6);const _0x3df158=this[_0x130254(0x219)]?.[_0x130254(0x1b6)]||this[_0x130254(0x207)],_0x1a8650=_0x3df158?.[_0x130254(0x1fc)];_0x1a8650?_0x1a8650[_0x130254(0x1af)](_0x338a12):document[_0x130254(0x1d3)][_0x130254(0x1af)](_0x338a12),_0x338a12[_0x130254(0x216)]=_0x6670c6;const _0x55b5de=this[_0x130254(0x1fd)](_0x1a8650||null);return _0x338a12[_0x130254(0x205)],_0x338a12[_0x130254(0x1ed)]=_0x55b5de,_0x338a12;}[_0x29a56a(0x1de)](_0x297f75,_0x4f7602){const _0x273a2b=_0x29a56a,_0x46dd78=_0x297f75[_0x273a2b(0x216)]||_0x297f75,_0x5622f8=[],{rowCount:_0x54e93c}=this[_0x273a2b(0x21f)](_0x46dd78,_0x4f7602);if(_0x54e93c<=this[_0x273a2b(0x1b8)][_0x273a2b(0x19f)])return _0x5622f8;const _0x218727=_0x4f7602[_0x273a2b(0x20e)]();for(;_0x218727[_0x273a2b(0x203)]>0x0;){if(this[_0x273a2b(0x222)](_0x297f75,_0x46dd78,_0x218727)){const _0x37c6ca=_0x4f7602[_0x273a2b(0x1aa)](_0x3a87a8=>!_0x218727[_0x273a2b(0x1d0)](_0x3a87a8));_0x5622f8[_0x273a2b(0x1fb)](..._0x37c6ca);break;}if(!_0x218727[_0x273a2b(0x1c1)]())break;}return _0x5622f8;}[_0x29a56a(0x21f)](_0x277741,_0x3d3d34){const _0xbaf43e=_0x29a56a;_0x277741[_0xbaf43e(0x21d)]='',_0x3d3d34[_0xbaf43e(0x1ea)](_0x565c28=>{const _0x217c15=_0xbaf43e;if(_0x565c28[_0x217c15(0x1b6)]){const _0x337b4a=_0x565c28[_0x217c15(0x1b6)][_0x217c15(0x217)](!0x0);_0x277741[_0x217c15(0x1af)](_0x337b4a);}}),_0x277741[_0xbaf43e(0x205)];const _0x38e5f7=_0x277741[_0xbaf43e(0x1df)],_0x47a5a2=[];return Array[_0xbaf43e(0x200)](_0x38e5f7)[_0xbaf43e(0x1ea)](_0x56fca8=>{const _0x2824d4=_0xbaf43e,_0x4f8b19=_0x56fca8[_0x2824d4(0x226)]()[_0x2824d4(0x20c)];_0x47a5a2[_0x2824d4(0x21e)](_0x3c47d0=>Math[_0x2824d4(0x228)](_0x3c47d0-_0x4f8b19)<this[_0x2824d4(0x1b8)][_0x2824d4(0x1db)])||_0x47a5a2[_0x2824d4(0x1fb)](_0x4f8b19);}),{'rowCount':_0x47a5a2[_0xbaf43e(0x203)]};}[_0x29a56a(0x1f3)](){const _0x356b5a=_0x29a56a,_0x1d6564=document[_0x356b5a(0x227)](_0x356b5a(0x1ff));return _0x1d6564[_0x356b5a(0x1b5)]=this[_0x356b5a(0x1b8)][_0x356b5a(0x1a1)][_0x356b5a(0x1f0)],this[_0x356b5a(0x1b8)][_0x356b5a(0x1a1)][_0x356b5a(0x1fa)]&&_0x1d6564[_0x356b5a(0x1dd)][_0x356b5a(0x1dc)](this[_0x356b5a(0x1b8)][_0x356b5a(0x1a1)][_0x356b5a(0x1fa)]),_0x1d6564[_0x356b5a(0x204)]=_0x356b5a(0x1f1),_0x1d6564;}[_0x29a56a(0x222)](_0x1dd300,_0x30dd6f,_0x57121f){const _0x34c3ff=_0x29a56a;this[_0x34c3ff(0x21f)](_0x30dd6f,_0x57121f);const _0x4d1186=this[_0x34c3ff(0x1f3)]();_0x1dd300[_0x34c3ff(0x1af)](_0x4d1186),_0x1dd300[_0x34c3ff(0x205)];const _0x3adda7=[..._0x30dd6f[_0x34c3ff(0x1df)],_0x4d1186],_0x13f86b=[];_0x3adda7[_0x34c3ff(0x1ea)](_0x156763=>{const _0x54a437=_0x34c3ff,_0x1f0845=_0x156763[_0x54a437(0x226)]()[_0x54a437(0x20c)];_0x13f86b[_0x54a437(0x21e)](_0x269091=>Math[_0x54a437(0x228)](_0x269091-_0x1f0845)<this[_0x54a437(0x1b8)][_0x54a437(0x1db)])||_0x13f86b[_0x54a437(0x1fb)](_0x1f0845);});const _0x385d10=_0x13f86b[_0x34c3ff(0x203)];return _0x4d1186[_0x34c3ff(0x1d1)](),_0x385d10<=this[_0x34c3ff(0x1b8)][_0x34c3ff(0x19f)];}[_0x29a56a(0x20b)](_0x4585ab,_0xa77cb7){const _0x32954a=_0x29a56a;this[_0x32954a(0x1e2)][_0x32954a(0x1b2)](),this[_0x32954a(0x1a5)][_0x32954a(0x1b2)](),_0x4585ab[_0x32954a(0x1ea)](_0x502055=>{const _0x1e58ef=_0x32954a;_0xa77cb7[_0x1e58ef(0x1d0)](_0x502055)?this[_0x1e58ef(0x1a5)][_0x1e58ef(0x1dc)](_0x502055):this[_0x1e58ef(0x1e2)][_0x1e58ef(0x1dc)](_0x502055);});}[_0x29a56a(0x223)](_0x970f32){const _0x18cfa8=_0x29a56a;if(_0x970f32>0x0&&!this[_0x18cfa8(0x19e)]&&this[_0x18cfa8(0x1e7)](),_0x970f32>0x0&&this[_0x18cfa8(0x19e)]){const _0x2a9122=''+this[_0x18cfa8(0x1b8)][_0x18cfa8(0x1bb)]+(_0x970f32<0x63?_0x970f32:'99');this[_0x18cfa8(0x19e)][_0x18cfa8(0x1e8)]=_0x2a9122;}this[_0x18cfa8(0x1a0)](),this[_0x18cfa8(0x20f)](),this[_0x18cfa8(0x1a9)]();}[_0x29a56a(0x1f7)](_0x2907fc,_0x14c3ab){const _0x127f22=_0x29a56a;this[_0x127f22(0x20b)](_0x2907fc,_0x14c3ab),this[_0x127f22(0x223)](_0x14c3ab[_0x127f22(0x203)]);}[_0x29a56a(0x1d4)](){const _0x340d4a=_0x29a56a;this[_0x340d4a(0x207)]&&_0x340d4a(0x1e9)!=typeof IntersectionObserver&&(this[_0x340d4a(0x1d6)]=new IntersectionObserver(_0x2e1358=>{const _0x4226bf=_0x340d4a;_0x2e1358[0x0][_0x4226bf(0x1c2)]&&this[_0x4226bf(0x1d9)]&&requestAnimationFrame(()=>{const _0x586edf=_0x4226bf;this[_0x586edf(0x1bc)]();});},{'threshold':0.01,'rootMargin':_0x340d4a(0x20a)}),this[_0x340d4a(0x1d6)][_0x340d4a(0x221)](this[_0x340d4a(0x207)]));}[_0x29a56a(0x22a)](){const _0x1dc06b=_0x29a56a;if(!this[_0x1dc06b(0x207)])return!0x1;if(!this[_0x1dc06b(0x207)][_0x1dc06b(0x1cb)])return!0x1;const _0x2049ca=this[_0x1dc06b(0x207)][_0x1dc06b(0x226)]();if(0x0===_0x2049ca[_0x1dc06b(0x1ae)]||0x0===_0x2049ca[_0x1dc06b(0x224)])return!0x1;const _0x482432=window[_0x1dc06b(0x209)]||document[_0x1dc06b(0x1a4)][_0x1dc06b(0x1cd)],_0x2759ed=window[_0x1dc06b(0x1ac)]||document[_0x1dc06b(0x1a4)][_0x1dc06b(0x19c)],_0x15c4bb=0xc8;return _0x2049ca[_0x1dc06b(0x1f2)]>=-0xc8&&_0x2049ca[_0x1dc06b(0x20c)]<=_0x482432+_0x15c4bb&&_0x2049ca[_0x1dc06b(0x1b9)]>=-0xc8&&_0x2049ca[_0x1dc06b(0x1f5)]<=_0x2759ed+_0x15c4bb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2af966=_0x1eba;(function(_0x51f972,_0x3c19e){const _0x369f93=_0x1eba,_0x19da5c=_0x51f972();while(!![]){try{const _0x1115fd=-parseInt(_0x369f93(0x1cb))/0x1+-parseInt(_0x369f93(0x19b))/0x2+-parseInt(_0x369f93(0x1ab))/0x3+parseInt(_0x369f93(0x191))/0x4+parseInt(_0x369f93(0x1a8))/0x5+-parseInt(_0x369f93(0x197))/0x6+parseInt(_0x369f93(0x192))/0x7;if(_0x1115fd===_0x3c19e)break;else _0x19da5c['push'](_0x19da5c['shift']());}catch(_0x25bd1a){_0x19da5c['push'](_0x19da5c['shift']());}}}(_0x3d1b,0x66a47));import{ButtonView as _0x3aecc6,IconView as _0x2906e6}from'ckeditor5/src/ui.js';import{IconClose as _0x15dc09,IconDocument as _0x2036c0,IconFileUpload as _0xdbff74,IconLink as _0x4c2004,IconSelection as _0x10a5bd}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5cf491}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x3db21c}from'../../../aicore/ui/aispinner.js';const xn={'file':_0xdbff74,'document':_0x2036c0,'web-resource':_0x4c2004,'text':_0xdbff74,'selection':_0x10a5bd,'mcp-tool-context':_0x2036c0},bn=_0x2af966(0x1ce),wn=_0x2af966(0x1af),Tn=_0x2af966(0x198),En=_0x2af966(0x1c3),fn=_0x2af966(0x1b1),An=_0x2af966(0x1ad),Cn='n';export class AIChatContextItemButtonView extends _0x3aecc6{constructor(_0x180166,_0x52f049,_0x576fc4,_0x203e79,_0x3e8913=!0x1){const _0x5d91b5=_0x2af966;super(_0x180166),this[_0x5d91b5(0x1cf)]=_0x203e79,this[_0x5d91b5(0x19d)](_0x52f049,_0x576fc4,_0x3e8913),this[_0x5d91b5(0x1c2)]();}[_0x2af966(0x1b4)](){const _0x4bccb6=_0x2af966;super[_0x4bccb6(0x1b4)](),this[_0x4bccb6(0x1cf)]&&this[_0x4bccb6(0x19a)]&&(this[_0x4bccb6(0x19a)][_0x4bccb6(0x195)][_0x4bccb6(0x1b8)](_0x4bccb6(0x1a5)),this[_0x4bccb6(0x1bb)](this[_0x4bccb6(0x19a)],()=>{const _0x23603f=_0x4bccb6;this[_0x23603f(0x19a)]&&this[_0x23603f(0x19a)][_0x23603f(0x195)][_0x23603f(0x1c5)](_0x23603f(0x1a5));}));}[_0x2af966(0x199)](){const _0x5d8505=_0x2af966;this[_0x5d8505(0x1cf)]=!0x1,this[_0x5d8505(0x19a)]&&this[_0x5d8505(0x19a)][_0x5d8505(0x195)][_0x5d8505(0x1c5)](_0x5d8505(0x1a5));}[_0x2af966(0x19d)](_0x5ccc70,_0x34fc14,_0x19148b){const _0x4ac23b=_0x2af966;this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1b7),_0x5ccc70[_0x4ac23b(0x1b7)]),this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1bd),!0x0),this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1ae),_0x5ccc70[_0x4ac23b(0x1bc)]),this[_0x4ac23b(0x1c1)]('id',_0x5ccc70[_0x4ac23b(0x1c4)]),this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1a4),_0x34fc14),this[_0x4ac23b(0x1c1)](_0x4ac23b(0x1a6),_0x19148b);}[_0x2af966(0x1c2)](){const _0x4dc2a5=_0x2af966,_0x539ae9=this[_0x4dc2a5(0x1a1)](),_0x2e2de6=this[_0x4dc2a5(0x1a7)](),_0x4e0ce3=this[_0x4dc2a5(0x1ca)];this[_0x4dc2a5(0x196)]({'tag':_0x4dc2a5(0x194),'attributes':this[_0x4dc2a5(0x1b0)](_0x4e0ce3),'children':this[_0x4dc2a5(0x1b3)](_0x539ae9,_0x2e2de6,_0x4e0ce3)});}[_0x2af966(0x1b0)](_0x19d9a6){const _0x4d0237=_0x2af966;return{'class':[bn,_0x19d9a6['if'](_0x4d0237(0x1ae),Tn,_0x2ac33e=>_0x4d0237(0x1c6)==_0x2ac33e),_0x19d9a6['if'](_0x4d0237(0x1ae),wn,_0x18ee5d=>_0x4d0237(0x1c9)==_0x18ee5d)],'data-cke-tooltip-text':_0x19d9a6['to'](_0x4d0237(0x1b7),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2af966(0x1b3)](_0x527108,_0x20aaad,_0x54b42a){const _0x5201b1=_0x2af966,_0xf3d782=this[_0x5201b1(0x1a0)](_0x54b42a),_0x289841=this[_0x5201b1(0x1c7)]();return this[_0x5201b1(0x1a4)]?[_0x527108,_0xf3d782]:[_0x527108,_0x289841,_0xf3d782,_0x20aaad];}[_0x2af966(0x1a0)](_0x117838){const _0x4fe49c=_0x2af966;return{'tag':_0x4fe49c(0x1ba),'attributes':{'class':En},'children':[{'text':_0x117838['to'](_0x4fe49c(0x1b7))}]};}[_0x2af966(0x1a7)](){const _0x1278f8=_0x2af966,_0x273273=new _0x3aecc6(this[_0x1278f8(0x19e)]);return _0x273273[_0x1278f8(0x1c1)]({'label':_0x5cf491(this[_0x1278f8(0x19e)],_0x1278f8(0x1b5)),'icon':_0x15dc09}),this[_0x1278f8(0x1be)](_0x273273),_0x273273;}[_0x2af966(0x1be)](_0x30526c){const _0x4a8b6c=_0x2af966;_0x30526c['on'](_0x4a8b6c(0x1c8),()=>{const _0x147b2f=_0x4a8b6c;this[_0x147b2f(0x1b6)](_0x147b2f(0x1cd),this['id']);});}[_0x2af966(0x1a1)](){const _0x434dae=_0x2af966,_0x2c8a3b=this[_0x434dae(0x1ca)],_0x1e1195=new _0x2906e6();return _0x1e1195[_0x434dae(0x1ac)]=xn[this[_0x434dae(0x1ae)]],_0x1e1195[_0x434dae(0x19c)]({'attributes':{'class':[fn,_0x2c8a3b['if'](_0x434dae(0x1a6),_0x434dae(0x19f),_0x53756b=>_0x53756b)]}}),_0x1e1195;}[_0x2af966(0x1bb)](_0x5ba54a,_0x4c9281){const _0x36078b=_0x2af966;if(!_0x5ba54a)return;const _0x38f5da=()=>{const _0x1df30e=_0x1eba;_0x4c9281(),_0x5ba54a[_0x1df30e(0x193)](_0x1df30e(0x1a3),_0x38f5da),_0x5ba54a[_0x1df30e(0x193)](_0x1df30e(0x1b9),_0x38f5da);};_0x5ba54a[_0x36078b(0x1a2)](_0x36078b(0x1a3),_0x38f5da),_0x5ba54a[_0x36078b(0x1a2)](_0x36078b(0x1b9),_0x38f5da);}[_0x2af966(0x1c7)](){const _0x2d1532=_0x2af966,_0x31a5b4=new _0x3db21c(_0x2d1532(0x1b2));return _0x31a5b4[_0x2d1532(0x1a9)](_0x2d1532(0x1aa))['to'](this,_0x2d1532(0x1a6),_0x4a5f09=>_0x4a5f09),_0x31a5b4;}}function In(_0x39fae0){const _0x5ee511=_0x2af966;if(!_0x39fae0)return _0x39fae0;if(_0x39fae0[_0x5ee511(0x1bf)]<=0x78)return _0x39fae0;const _0x26e48a=_0x39fae0[_0x5ee511(0x1cc)](0x0,0x78),_0x39e739=_0x26e48a[_0x5ee511(0x1c0)]('\x20');return(_0x39e739>0x0?_0x26e48a[_0x5ee511(0x1cc)](0x0,_0x39e739):_0x26e48a)+'…';}function _0x1eba(_0x4043ed,_0x2004d6){const _0x3d1bd9=_0x3d1b();return _0x1eba=function(_0x1ebaab,_0x421158){_0x1ebaab=_0x1ebaab-0x191;let _0x58040e=_0x3d1bd9[_0x1ebaab];return _0x58040e;},_0x1eba(_0x4043ed,_0x2004d6);}function _0x3d1b(){const _0x386258=['readonly','ck-ai-chat-context-chip_new-chip','isLoading','_createRemoveButton','1403160AKCJIw','bind','isVisible','2179194NOZgYo','content','ck-ai-chat-context-controls__chip-tooltip','itemType','ck-ai-chat-context-chip_wide','_createTemplateAttributes','ck-ai-chat-context-chip__type-icon','small','_createTemplateChildren','render','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','fire','label','add','webkitAnimationEnd','span','_handleAnimationEndOnce','type','tooltip','_setupRemoveButtonEvent','length','lastIndexOf','set','_setupTemplate','ck-ai-chat-context-chip__label','uiId','remove','document','_createLoaderIcon','execute','selection','bindTemplate','570290jUySxW','slice','removeContextItemChip','ck-ai-chat-context-chip','_isAnimationOnEnterEnabled','1495576aRnwNG','14972468GoXheM','removeEventListener','div','classList','setTemplate','1823958rFfoYu','ck-ai-chat-context-chip_document','disableAnimationOnEnter','element','1544692JHlenp','extendTemplate','_initializeProperties','locale','ck-hidden','_createLabelElement','_createIconView','addEventListener','animationend'];_0x3d1b=function(){return _0x386258;};return _0x3d1b();}
|