@ckeditor/ckeditor5-ai 47.6.0 → 47.6.1-alpha.1
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.d.ts +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 _0x6fe328=_0x440b;(function(_0x11d7af,_0x5b1e0c){const _0x50f9df=_0x440b,_0x3c44b4=_0x11d7af();while(!![]){try{const _0x4b008e=-parseInt(_0x50f9df(0x1bf))/0x1*(-parseInt(_0x50f9df(0x13b))/0x2)+parseInt(_0x50f9df(0x174))/0x3+parseInt(_0x50f9df(0x1b2))/0x4+parseInt(_0x50f9df(0x1a7))/0x5*(-parseInt(_0x50f9df(0x14f))/0x6)+parseInt(_0x50f9df(0x178))/0x7*(parseInt(_0x50f9df(0x15e))/0x8)+-parseInt(_0x50f9df(0x1a0))/0x9+-parseInt(_0x50f9df(0x1b6))/0xa;if(_0x4b008e===_0x5b1e0c)break;else _0x3c44b4['push'](_0x3c44b4['shift']());}catch(_0x369693){_0x3c44b4['push'](_0x3c44b4['shift']());}}}(_0x26ab,0x2b0c4));import{CKEditorError as _0x3a3170,ObservableMixin as _0xa0ab8c,uid as _0xd798f1}from'ckeditor5/src/utils.js';function _0x440b(_0x28c19c,_0x27c984){const _0x26ab66=_0x26ab();return _0x440b=function(_0x440b0b,_0x3d7502){_0x440b0b=_0x440b0b-0x136;let _0x56fe64=_0x26ab66[_0x440b0b];return _0x56fe64;},_0x440b(_0x28c19c,_0x27c984);}import{AIContextItemType as _0x5192a4,AIContextTextResourceType as _0x216793}from'../../aicore/model/aicontext.js';import{escape as _0x30294f}from'es-toolkit/compat';import{errorsMap as _0xf53635}from'../../errorsmap.js';function _0x26ab(){const _0x2503aa=['start','text/html','getResources','sources','mcpServerName','delete','substring','656UqkLsC','url-','addResourceToContext','mapContextItemsToRequestData','ai-request-aborted','text/plain','isSelectionInContext','_config','ai-chat-source-not-found','files','isReadOnly','ai-chat-resource-no-data','text/markdown','uiId','sessionId','abort','toolName','all','isHidden','_addToConversationContextItem','addCurrentDocumentToContext','addToolItemToContext','41565clCuFB','addFilesToContext','getPendingContextItems','getSentContextItems','14679xojofj','data','ai-chat-url-upload-failed','size','_mapContextItemToRequestData','uploadDocument','from','MARKDOWN','label','attributes','getId','uploadUrl','filter','file-','fetchDocument','files-','abortController','removeFromContext','ai-chat-document-upload-failed','resourceId','object\x20with\x20content\x20and\x20type\x20properties','name','_conversationContextItems','URL','addSelectionToContext','stack','ai-chat-context-invalid-data','DOCUMENT','HTML','values','removeSelectionFromContext','get','populateFromMessage','uploadProgressChanged','_startUploadOperation','forEach','_ownerId','_finishContextItemLoading','find','clearPendingContextItems','1134486CixSEA','_setAddContextOptionsDefaultState','length','has','_ongoingUploads','_finishUploadOperation','_pendingContextItems','4540yjMDiL','map','_removeContextItem','_convertTextResourceToFile','startsWith','addContextOptionsChanged','sourceResourcesLoaded','_isResourceInContext','object','_findSourceIdsByResourceId','TEXT','817912UsTwhq','current-document','ai-chat-source-resources-load-failed','resources','788600iprQqK','contextItemAdded','enabled','File','isCurrentDocumentInConversation','contextSent','_createContextItemFromContent','getData','addUrlToContext','1lALXOv','addToConversationContext','isCurrentDocumentInContext','updateCurrentDocument','_connector','document','FILE','set','hidden','TOOL','fire','content','end','selection','getDocument','string','uploadFile','348734yNUOtD','_toggleAddCurrentDocumentOptionVisibility','urls','push','isInContext','message','ai-chat-resource-load-failed','ai-chat-context-unsupported-type','contextItemLoadingEnded','Current\x20document','customItems','loadSourceResources','_getCustomSourcesInitialState','_addContextOptionsState','contextItemRemoved','url','type','ai-chat-file-upload-failed','init','resourceStateChanged','1212QuTRSd','_ongoingUploadOperations','error','SELECTION','code','version','_updateResourceInContextState','_addContextItem'];_0x26ab=function(){return _0x2503aa;};return _0x26ab();}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x6fe328(0x1b7),_0x6fe328(0x149),_0x6fe328(0x143),_0x6fe328(0x1bb),_0x6fe328(0x151),_0x6fe328(0x1ac),_0x6fe328(0x1ad),_0x6fe328(0x14e),_0x6fe328(0x199)];export class AIChatContext extends _0xa0ab8c(){[_0x6fe328(0x1c3)];[_0x6fe328(0x165)];[_0x6fe328(0x19c)];constructor({connector:_0x19e6c9,config:_0xc57ce,ownerId:_0x108f29}){const _0x1fba0a=_0x6fe328;super(),this[_0x1fba0a(0x1c3)]=_0x19e6c9,this[_0x1fba0a(0x165)]=_0xc57ce,this[_0x1fba0a(0x19c)]=_0x108f29;}[_0x6fe328(0x14d)](){const _0x4110c2=_0x6fe328;this[_0x4110c2(0x1a6)]=new Map(),this[_0x4110c2(0x18e)]=new Map(),this[_0x4110c2(0x1a4)]=new Map(),this[_0x4110c2(0x150)]=new Map(),this[_0x4110c2(0x1a1)]();}[_0x6fe328(0x176)](){const _0x26d6b9=_0x6fe328;return this[_0x26d6b9(0x1a6)];}async[_0x6fe328(0x198)](_0x515444){const _0x2717bf=_0x6fe328,_0x178047=await this[_0x2717bf(0x1bc)](_0x515444);return this[_0x2717bf(0x171)](_0x178047),_0x2717bf(0x1b3)===_0x178047[_0x2717bf(0x16b)]&&this[_0x2717bf(0x13c)](),_0x178047;}async[_0x6fe328(0x1bc)](_0x37d330){const _0x155c12=_0x6fe328;if(_0x37d330[_0x155c12(0x14b)]===_0x5192a4[_0x155c12(0x193)]){const _0x556a41=await this[_0x155c12(0x1c3)][_0x155c12(0x186)](this[_0x155c12(0x19c)],_0x37d330['id'])[_0x155c12(0x138)]();return{'id':_0x155c12(0x1b3),'uiId':_0x155c12(0x1b3),'label':_0x155c12(0x144),'type':_0x37d330[_0x155c12(0x14b)],'content':_0x556a41[_0x155c12(0x1ca)],'hidden':this[_0x155c12(0x18e)][_0x155c12(0x1a3)](_0x155c12(0x1b3)),'version':_0x556a41[_0x155c12(0x181)]?.[_0x155c12(0x154)],'sessionId':_0x556a41[_0x155c12(0x181)]?.[_0x155c12(0x16c)]};}if(_0x37d330[_0x155c12(0x14b)]===_0x5192a4[_0x155c12(0x1c8)])return{'id':_0x37d330['id'],'uiId':_0x37d330['id'],'label':_0x37d330[_0x155c12(0x179)]?.[_0x155c12(0x180)]||_0x37d330['id'],'type':_0x5192a4[_0x155c12(0x1c8)],'mcpServerName':_0x37d330[_0x155c12(0x15b)],'toolName':_0x37d330[_0x155c12(0x16e)],'data':_0x37d330[_0x155c12(0x179)]||{}};return{'id':_0x37d330['id'],'uiId':_0x37d330['id'],'label':_0x37d330[_0x155c12(0x181)]?.[_0x155c12(0x180)]||_0x37d330[_0x155c12(0x18d)]||_0x37d330[_0x155c12(0x14a)]||_0x37d330['id'],'type':_0x37d330[_0x155c12(0x14b)],..._0x37d330?.[_0x155c12(0x181)]?.[_0x155c12(0x18b)]?{'resourceId':_0x37d330[_0x155c12(0x181)]?.[_0x155c12(0x18b)]}:{}};}[_0x6fe328(0x177)](){const _0x2203a5=_0x6fe328;return new Map(this[_0x2203a5(0x18e)]);}[_0x6fe328(0x189)](_0x488103){const _0x4fc2a0=_0x6fe328,_0x4a3cb0=this[_0x4fc2a0(0x1a6)][_0x4fc2a0(0x197)](_0x488103);_0x4a3cb0?.[_0x4fc2a0(0x168)]||this[_0x4fc2a0(0x1a9)](_0x488103);}[_0x6fe328(0x19f)](){const _0x28a3c8=_0x6fe328;if(0x0===this[_0x28a3c8(0x1a6)][_0x28a3c8(0x17b)])return;for(const _0x3e1d38 of this[_0x28a3c8(0x1a6)][_0x28a3c8(0x195)]())this[_0x28a3c8(0x1a9)](_0x3e1d38[_0x28a3c8(0x16b)]);const _0x1548ae=this[_0x28a3c8(0x18e)][_0x28a3c8(0x197)](_0x28a3c8(0x1b3))||this[_0x28a3c8(0x1a6)][_0x28a3c8(0x197)](_0x28a3c8(0x1b3));_0x1548ae&&this[_0x28a3c8(0x156)]({..._0x1548ae,'isReadOnly':!0x0,'hidden':!0x0});}[_0x6fe328(0x1c0)](_0x3154fb){const _0x5809b0=_0x6fe328;for(const _0x23ae9f of _0x3154fb[_0x5809b0(0x195)]())this[_0x5809b0(0x171)](_0x23ae9f);this[_0x5809b0(0x19f)](),this[_0x5809b0(0x1c9)](_0x5809b0(0x1bb),{'contextItems':Array[_0x5809b0(0x17e)](this[_0x5809b0(0x177)]()[_0x5809b0(0x195)]())});}[_0x6fe328(0x1c1)](){const _0x1c3224=_0x6fe328;return this[_0x1c3224(0x1a6)][_0x1c3224(0x1a3)](_0x1c3224(0x1b3));}[_0x6fe328(0x164)](){const _0x3dbdd0=_0x6fe328;return this[_0x3dbdd0(0x1a6)][_0x3dbdd0(0x1a3)](_0x3dbdd0(0x137));}[_0x6fe328(0x1ba)](){const _0x26a798=_0x6fe328;return this[_0x26a798(0x18e)][_0x26a798(0x1a3)](_0x26a798(0x1b3));}static[_0x6fe328(0x161)](_0xa42802){const _0x55ced9=_0x6fe328;return Array[_0x55ced9(0x17e)](_0xa42802[_0x55ced9(0x195)]())[_0x55ced9(0x1a8)](_0x3f32d0=>this[_0x55ced9(0x17c)](_0x3f32d0))[_0x55ced9(0x184)](_0x328a32=>null!==_0x328a32);}async[_0x6fe328(0x175)](_0x4784c6,_0x5dc492,_0x5255f5=_0x5192a4[_0x6fe328(0x1c5)]){const _0x3450f6=_0x6fe328,_0x43908f=_0x3450f6(0x187)+_0xd798f1();this[_0x3450f6(0x19a)](_0x43908f);try{await Promise[_0x3450f6(0x16f)](_0x4784c6[_0x3450f6(0x1a8)](async _0x5069b0=>{const _0x2b576c=_0x3450f6,_0x6bf7ad=_0x2b576c(0x185)+_0xd798f1(),_0x9fce01=_0x30294f(_0x5069b0[_0x2b576c(0x18d)]);try{this[_0x2b576c(0x156)]({'type':_0x5255f5,'label':_0x5dc492?.[_0x2b576c(0x180)]||_0x9fce01,'uiId':_0x6bf7ad,'resourceId':_0x5dc492?.[_0x2b576c(0x18b)]},!0x0);const _0x4588fa=this[_0x2b576c(0x1c3)][_0x2b576c(0x13a)](this[_0x2b576c(0x19c)],_0x5069b0,_0x5dc492);this[_0x2b576c(0x1a4)][_0x2b576c(0x1c6)](_0x6bf7ad,_0x4588fa[_0x2b576c(0x188)]);const {id:_0x5ed1c9}=await _0x4588fa[_0x2b576c(0x182)]();this[_0x2b576c(0x1a4)][_0x2b576c(0x15c)](_0x6bf7ad),this[_0x2b576c(0x19d)]({'type':_0x5255f5,'id':_0x5ed1c9,'label':_0x5dc492?.[_0x2b576c(0x180)]||_0x9fce01,'uiId':_0x6bf7ad,'resourceId':_0x5dc492?.[_0x2b576c(0x18b)]},!0x1);}catch(_0x5ce031){this[_0x2b576c(0x1a4)][_0x2b576c(0x15c)](_0x6bf7ad);if(!(_0x5ce031 instanceof _0x3a3170&&_0x5ce031[_0x2b576c(0x140)][_0x2b576c(0x1ab)](_0x2b576c(0x162)))){const _0x3b5fed=_0xf53635[_0x2b576c(0x197)](_0x5ce031[_0x2b576c(0x153)])||_0x2b576c(0x14c),_0x201628=new _0x3a3170(_0x3b5fed,null,{'fileName':_0x9fce01,..._0x5ce031});_0x201628[_0x2b576c(0x191)]=_0x5ce031[_0x2b576c(0x191)],this[_0x2b576c(0x1c9)](_0x2b576c(0x151),{'error':_0x201628});}this[_0x2b576c(0x1a9)](_0x6bf7ad);}}));}finally{this[_0x3450f6(0x1a5)](_0x43908f);}}[_0x6fe328(0x172)](_0x2e8dd0){const _0x429fcf=_0x6fe328;if(this[_0x429fcf(0x1c1)]()||!this[_0x429fcf(0x148)][_0x429fcf(0x1c4)][_0x429fcf(0x1b8)])return;const _0x4401bf={'type':_0x5192a4[_0x429fcf(0x193)],'uiId':_0x429fcf(0x1b3),'label':_0x2e8dd0,'isReadOnly':this[_0x429fcf(0x18e)][_0x429fcf(0x1a3)](_0x429fcf(0x1b3)),'hidden':this[_0x429fcf(0x18e)][_0x429fcf(0x1a3)](_0x429fcf(0x1b3))};this[_0x429fcf(0x156)](_0x4401bf);}async[_0x6fe328(0x1c2)](_0x412c4b,_0x571358,_0x25e026,_0x2c9dd3){const _0x287e6f=_0x6fe328,_0x8de895=this[_0x287e6f(0x1a6)][_0x287e6f(0x197)](_0x287e6f(0x1b3));if(_0x8de895&&_0x412c4b){_0x8de895[_0x287e6f(0x137)]=_0x2c9dd3?_0x2c9dd3[_0x287e6f(0x1a8)](_0x537778=>({'start':_0x537778[_0x287e6f(0x157)],'end':_0x537778[_0x287e6f(0x136)]})):[];try{if(_0x8de895[_0x287e6f(0x154)]===_0x571358)return;const {id:_0x25610d}=await this[_0x287e6f(0x1c3)][_0x287e6f(0x17d)](this[_0x287e6f(0x19c)],_0x412c4b,{'version':_0x571358,'sessionId':_0x25e026})[_0x287e6f(0x182)]();_0x8de895['id']=_0x25610d,_0x8de895[_0x287e6f(0x1ca)]=_0x412c4b,_0x8de895[_0x287e6f(0x154)]=_0x571358,_0x8de895[_0x287e6f(0x16c)]=_0x25e026;}catch(_0x1a8f82){const _0x5b8735=new _0x3a3170(_0x287e6f(0x18a),null);_0x5b8735[_0x287e6f(0x191)]=_0x1a8f82[_0x287e6f(0x191)],this[_0x287e6f(0x1c9)](_0x287e6f(0x151),{'error':_0x5b8735});}}}[_0x6fe328(0x190)](_0x5a3b9d){const _0x233b0a=_0x6fe328;this[_0x233b0a(0x156)]({'type':_0x5192a4[_0x233b0a(0x152)],'label':_0x5a3b9d,'uiId':_0x233b0a(0x137),'content':_0x5a3b9d});}[_0x6fe328(0x196)](){const _0x736904=_0x6fe328;this[_0x736904(0x1a9)](_0x736904(0x137));}async[_0x6fe328(0x1be)](_0x565d19,_0x22bcf6){const _0x40d5b2=_0x6fe328,_0x59b494=_0x40d5b2(0x15f)+_0xd798f1();this[_0x40d5b2(0x19a)](_0x59b494);const _0x417b5b=_0x40d5b2(0x15f)+_0xd798f1();try{this[_0x40d5b2(0x156)]({'type':_0x5192a4[_0x40d5b2(0x18f)],'label':_0x22bcf6?.[_0x40d5b2(0x180)]||_0x565d19,'uiId':_0x417b5b,'resourceId':_0x22bcf6?.[_0x40d5b2(0x18b)]},!0x0);const _0x1268e8=this[_0x40d5b2(0x1c3)][_0x40d5b2(0x183)](this[_0x40d5b2(0x19c)],_0x565d19,_0x22bcf6);this[_0x40d5b2(0x1a4)][_0x40d5b2(0x1c6)](_0x417b5b,_0x1268e8[_0x40d5b2(0x188)]);const {id:_0x57c4cf}=await _0x1268e8[_0x40d5b2(0x182)]();this[_0x40d5b2(0x1a4)][_0x40d5b2(0x15c)](_0x417b5b),this[_0x40d5b2(0x19d)]({'type':_0x5192a4[_0x40d5b2(0x18f)],'id':_0x57c4cf,'label':_0x22bcf6?.[_0x40d5b2(0x180)]||_0x565d19,'uiId':_0x417b5b,'resourceId':_0x22bcf6?.[_0x40d5b2(0x18b)]},!0x1);}catch(_0x4aa745){this[_0x40d5b2(0x1a4)][_0x40d5b2(0x15c)](_0x417b5b),(_0x4aa745[_0x40d5b2(0x140)][_0x40d5b2(0x1ab)](_0x40d5b2(0x162))||this[_0x40d5b2(0x1c9)](_0x40d5b2(0x151),{'error':new _0x3a3170(_0x40d5b2(0x17a),this,{'url':_0x565d19,'originalError':_0x4aa745}),'url':_0x565d19}),this[_0x40d5b2(0x1a9)](_0x417b5b));}finally{this[_0x40d5b2(0x1a5)](_0x59b494);}}[_0x6fe328(0x173)](_0x240285){const _0x264427=_0x6fe328;_0x240285['id']=_0x240285['id']??_0xd798f1()[_0x264427(0x15d)](0x0,0x15),this[_0x264427(0x1a6)][_0x264427(0x1c6)](_0x240285[_0x264427(0x16b)],_0x240285),this[_0x264427(0x1c9)](_0x264427(0x1b7),{'contextItem':_0x240285,'isLoading':!0x1});}async[_0x6fe328(0x146)](_0x3fa7bb,_0x5a3123,_0xcaca5d){const _0xddfa6c=_0x6fe328,_0x416632=this[_0xddfa6c(0x148)][_0xddfa6c(0x15a)][_0xddfa6c(0x19e)](_0x43f485=>_0x43f485['id']===_0x3fa7bb);if(!_0x416632)return this[_0xddfa6c(0x1c9)](_0xddfa6c(0x151),{'error':new _0x3a3170(_0xddfa6c(0x166),this,{'sourceId':_0x3fa7bb}),'sourceId':_0x3fa7bb}),[];try{const _0x223d2c=(await _0x416632[_0xddfa6c(0x159)](_0x5a3123))[_0xddfa6c(0x1a8)](_0x7a640a=>{const _0x4dbef5=_0xddfa6c,_0x581156=this[_0x4dbef5(0x1ae)](_0x7a640a['id']);return{..._0x7a640a,'isInContext':_0x581156};});return _0x416632[_0xddfa6c(0x1b5)]=_0x223d2c,this[_0xddfa6c(0x1c9)](_0xddfa6c(0x1ad),{'sourceId':_0x3fa7bb,'source':_0x416632,'resources':_0x223d2c,'uid':_0xcaca5d}),_0x223d2c;}catch(_0x280160){return this[_0xddfa6c(0x1c9)](_0xddfa6c(0x151),{'error':new _0x3a3170(_0xddfa6c(0x1b4),this,{'sourceId':_0x3fa7bb,'originalError':_0x280160}),'sourceId':_0x3fa7bb,'sourceLabel':_0x416632[_0xddfa6c(0x180)]}),[];}}async[_0x6fe328(0x160)](_0xd0544f,_0x38e862){const _0x3d351e=_0x6fe328;if(this[_0x3d351e(0x1ae)](_0x38e862['id']))return;let _0x59486d=_0x38e862[_0x3d351e(0x179)];if(!_0x59486d&&_0xd0544f[_0x3d351e(0x1bd)])try{_0x59486d=await _0xd0544f[_0x3d351e(0x1bd)](_0x38e862['id']);}catch(_0x250d1a){return void this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x141),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'originalError':_0x250d1a}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});}if(_0x59486d)switch(_0x38e862[_0x3d351e(0x14b)]){case _0x5192a4[_0x3d351e(0x18f)]:if(_0x3d351e(0x139)!=typeof _0x59486d)return void this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x192),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'expectedType':_0x3d351e(0x139),'actualType':typeof _0x59486d}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});await this[_0x3d351e(0x1be)](_0x59486d,{'label':_0x38e862[_0x3d351e(0x180)],'resourceId':_0x38e862['id']});break;case _0x5192a4[_0x3d351e(0x1c5)]:if(!(_0x59486d instanceof File))return void this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x192),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'expectedType':_0x3d351e(0x1b9),'actualType':typeof _0x59486d}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});await this[_0x3d351e(0x175)]([_0x59486d],{'label':_0x38e862[_0x3d351e(0x180)],'resourceId':_0x38e862['id']});break;case _0x5192a4[_0x3d351e(0x1b1)]:if(_0x3d351e(0x1af)!=typeof _0x59486d||!(_0x3d351e(0x1ca)in _0x59486d)||!(_0x3d351e(0x14b)in _0x59486d))return void this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x192),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'expectedType':_0x3d351e(0x18c),'actualType':typeof _0x59486d}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});_0x59486d=AIChatContext[_0x3d351e(0x1aa)](_0x59486d,_0x38e862[_0x3d351e(0x180)]),await this[_0x3d351e(0x175)]([_0x59486d],{'label':_0x38e862[_0x3d351e(0x180)],'resourceId':_0x38e862['id']},_0x5192a4[_0x3d351e(0x1b1)]);break;case _0x5192a4[_0x3d351e(0x1c8)]:break;default:this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x142),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id'],'resourceType':_0x38e862[_0x3d351e(0x14b)]}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});}else this[_0x3d351e(0x1c9)](_0x3d351e(0x151),{'error':new _0x3a3170(_0x3d351e(0x169),this,{'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']}),'resourceId':_0x38e862['id'],'sourceId':_0xd0544f['id']});}static[_0x6fe328(0x1aa)](_0x232abf,_0x3dbac9){const _0x41043e=_0x6fe328;switch(_0x232abf[_0x41043e(0x14b)]){case _0x216793[_0x41043e(0x17f)]:return new File([_0x232abf[_0x41043e(0x1ca)]],_0x3dbac9,{'type':_0x41043e(0x16a)});case _0x216793[_0x41043e(0x194)]:return new File([_0x232abf[_0x41043e(0x1ca)]],_0x3dbac9,{'type':_0x41043e(0x158)});default:return new File([_0x232abf[_0x41043e(0x1ca)]],_0x3dbac9,{'type':_0x41043e(0x163)});}}static[_0x6fe328(0x17c)](_0xe31ca0){const _0x30ebb4=_0x6fe328;switch(_0xe31ca0[_0x30ebb4(0x14b)]){case _0x5192a4[_0x30ebb4(0x1c5)]:return{'type':_0x5192a4[_0x30ebb4(0x1c5)],'id':_0xe31ca0['id']};case _0x5192a4[_0x30ebb4(0x18f)]:return{'type':_0x5192a4[_0x30ebb4(0x18f)],'id':_0xe31ca0['id']};case _0x5192a4[_0x30ebb4(0x193)]:return{'type':_0x5192a4[_0x30ebb4(0x193)],'id':_0xe31ca0['id'],..._0xe31ca0[_0x30ebb4(0x137)]?.[_0x30ebb4(0x1a2)]&&{'selection':_0xe31ca0[_0x30ebb4(0x137)]}};case _0x5192a4[_0x30ebb4(0x1b1)]:return{'type':_0x5192a4[_0x30ebb4(0x1c5)],'id':_0xe31ca0['id']};case _0x5192a4[_0x30ebb4(0x1c8)]:{const _0x1f15aa=_0xe31ca0;return{'type':_0x5192a4[_0x30ebb4(0x1c8)],'mcpServerName':_0x1f15aa[_0x30ebb4(0x15b)],'toolName':_0x1f15aa[_0x30ebb4(0x16e)],'data':_0x1f15aa[_0x30ebb4(0x179)],'id':_0x1f15aa['id']};}default:return null;}}[_0x6fe328(0x156)](_0x1a5b53,_0x19f28d=!0x1){const _0x575019=_0x6fe328;if(this[_0x575019(0x1a6)][_0x575019(0x1c6)](_0x1a5b53[_0x575019(0x16b)],_0x1a5b53),_0x1a5b53[_0x575019(0x1c7)]||this[_0x575019(0x1c9)](_0x575019(0x1b7),{'contextItem':_0x1a5b53,'isLoading':_0x19f28d}),_0x575019(0x1b3)===_0x1a5b53[_0x575019(0x16b)]&&this[_0x575019(0x13c)](),_0x1a5b53[_0x575019(0x18b)]){const _0x21e45e=this[_0x575019(0x1b0)](_0x1a5b53[_0x575019(0x18b)]);_0x21e45e&&_0x21e45e[_0x575019(0x19b)](_0xa0b4a6=>{const _0x17c541=_0x575019;this[_0x17c541(0x155)](_0xa0b4a6,_0x1a5b53[_0x17c541(0x18b)],!0x0);});}}[_0x6fe328(0x1a9)](_0x3869aa){const _0x412e8e=_0x6fe328,_0x1e710e=this[_0x412e8e(0x1a6)][_0x412e8e(0x197)](_0x3869aa),_0x34b552=this[_0x412e8e(0x1a4)][_0x412e8e(0x197)](_0x3869aa);if(_0x34b552&&(_0x34b552[_0x412e8e(0x16d)](),this[_0x412e8e(0x1a4)][_0x412e8e(0x15c)](_0x3869aa)),_0x1e710e?.[_0x412e8e(0x18b)]){const _0x5af81e=this[_0x412e8e(0x1b0)](_0x1e710e[_0x412e8e(0x18b)]);_0x5af81e&&_0x5af81e[_0x412e8e(0x19b)](_0x36695c=>{const _0x12f286=_0x412e8e;this[_0x12f286(0x155)](_0x36695c,_0x1e710e[_0x12f286(0x18b)],!0x1);});}this[_0x412e8e(0x1a6)][_0x412e8e(0x15c)](_0x3869aa),this[_0x412e8e(0x1c9)](_0x412e8e(0x149),{'uiId':_0x3869aa,'type':_0x1e710e?.[_0x412e8e(0x14b)]}),_0x412e8e(0x1b3)===_0x3869aa&&this[_0x412e8e(0x13c)]();}[_0x6fe328(0x19d)](_0x505d8f,_0x5ab64c){const _0x55a404=_0x6fe328;if(this[_0x55a404(0x1a6)][_0x55a404(0x1a3)](_0x505d8f[_0x55a404(0x16b)])&&(this[_0x55a404(0x1a6)][_0x55a404(0x1c6)](_0x505d8f[_0x55a404(0x16b)],_0x505d8f),this[_0x55a404(0x1c9)](_0x55a404(0x143),{'contextItem':_0x505d8f,'isLoading':_0x5ab64c}),_0x505d8f[_0x55a404(0x18b)])){const _0x5940d8=this[_0x55a404(0x1b0)](_0x505d8f[_0x55a404(0x18b)]);_0x5940d8&&_0x5940d8[_0x55a404(0x19b)](_0x27e4d3=>{const _0xbcc89f=_0x55a404;this[_0xbcc89f(0x155)](_0x27e4d3,_0x505d8f[_0xbcc89f(0x18b)],!0x0);});}}[_0x6fe328(0x171)](_0x56e836){const _0x112e5b=_0x6fe328;this[_0x112e5b(0x18e)][_0x112e5b(0x1c6)](_0x56e836[_0x112e5b(0x16b)],_0x56e836);}[_0x6fe328(0x1a1)](){const _0x3d3a9b=_0x6fe328;this[_0x3d3a9b(0x148)]={'document':{'enabled':!0x1!==this[_0x3d3a9b(0x165)]?.[_0x3d3a9b(0x1c4)]?.[_0x3d3a9b(0x1b8)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3d3a9b(0x165)]?.[_0x3d3a9b(0x13d)]?.[_0x3d3a9b(0x1b8)]},'files':{'enabled':!0x1!==this[_0x3d3a9b(0x165)]?.[_0x3d3a9b(0x167)]?.[_0x3d3a9b(0x1b8)]},'sources':this[_0x3d3a9b(0x147)](),'customItems':this[_0x3d3a9b(0x165)]?.[_0x3d3a9b(0x145)]?.[_0x3d3a9b(0x1a8)](_0x5840d3=>({..._0x5840d3,'enabled':!0x0}))??[]},this[_0x3d3a9b(0x1c9)](_0x3d3a9b(0x1ac),{'options':this[_0x3d3a9b(0x148)]});}[_0x6fe328(0x147)](){const _0x2ac63e=_0x6fe328;return this[_0x2ac63e(0x165)]?.[_0x2ac63e(0x15a)]?.[_0x2ac63e(0x1a8)](_0x59696e=>({..._0x59696e,'resources':[]}))??[];}[_0x6fe328(0x13c)](){const _0x1bafc9=_0x6fe328,_0x5d7fd0=this[_0x1bafc9(0x1c1)]()||this[_0x1bafc9(0x1ba)]();this[_0x1bafc9(0x148)][_0x1bafc9(0x1c4)][_0x1bafc9(0x170)]=_0x5d7fd0,this[_0x1bafc9(0x1c9)](_0x1bafc9(0x1ac),{'options':this[_0x1bafc9(0x148)]});}[_0x6fe328(0x1ae)](_0x34967e){const _0x2c0e03=_0x6fe328;for(const _0x39eef7 of this[_0x2c0e03(0x1a6)][_0x2c0e03(0x195)]())if(_0x39eef7[_0x2c0e03(0x18b)]===_0x34967e)return!0x0;for(const _0x4c794b of this[_0x2c0e03(0x18e)][_0x2c0e03(0x195)]())if(_0x4c794b[_0x2c0e03(0x18b)]===_0x34967e)return!0x0;return!0x1;}[_0x6fe328(0x1b0)](_0x4f730a){const _0x45cb93=_0x6fe328,_0x59baa1=[];for(const _0x430690 of this[_0x45cb93(0x148)][_0x45cb93(0x15a)]){_0x430690[_0x45cb93(0x1b5)][_0x45cb93(0x19e)](_0x2f6d95=>_0x2f6d95['id']===_0x4f730a)&&_0x59baa1[_0x45cb93(0x13e)](_0x430690['id']);}return 0x0===_0x59baa1[_0x45cb93(0x1a2)]?null:_0x59baa1;}[_0x6fe328(0x155)](_0x134a11,_0x28f4eb,_0x26bf59){const _0x9aa427=_0x6fe328,_0x40954f=this[_0x9aa427(0x148)][_0x9aa427(0x15a)][_0x9aa427(0x19e)](_0xbb5eca=>_0xbb5eca['id']===_0x134a11);if(!_0x40954f)return;const _0x52f3f6=_0x40954f[_0x9aa427(0x1b5)][_0x9aa427(0x19e)](_0x248f48=>_0x248f48['id']===_0x28f4eb);_0x52f3f6&&(_0x52f3f6[_0x9aa427(0x13f)]=_0x26bf59,this[_0x9aa427(0x1c9)](_0x9aa427(0x14e),{'sourceId':_0x134a11,'resourceId':_0x28f4eb,'isInContext':_0x26bf59}));}[_0x6fe328(0x19a)](_0x24a15a){const _0x56678e=_0x6fe328;this[_0x56678e(0x150)][_0x56678e(0x1c6)](_0x24a15a,!0x0),this[_0x56678e(0x150)][_0x56678e(0x17b)]&&this[_0x56678e(0x1c9)](_0x56678e(0x199),{'isUploadInProgress':!0x0});}[_0x6fe328(0x1a5)](_0x248826){const _0x5bf2d0=_0x6fe328;this[_0x5bf2d0(0x150)][_0x5bf2d0(0x15c)](_0x248826),0x0===this[_0x5bf2d0(0x150)][_0x5bf2d0(0x17b)]&&this[_0x5bf2d0(0x1c9)](_0x5bf2d0(0x199),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0xaa15a6=_0x1e28;(function(_0x3f7ac9,_0x459f9f){const _0x58d36f=_0x1e28,_0x1c55e3=_0x3f7ac9();while(!![]){try{const _0x4aa53d=-parseInt(_0x58d36f(0x195))/0x1*(parseInt(_0x58d36f(0x207))/0x2)+parseInt(_0x58d36f(0x1f6))/0x3+parseInt(_0x58d36f(0x1e6))/0x4+-parseInt(_0x58d36f(0x1df))/0x5+parseInt(_0x58d36f(0x200))/0x6+parseInt(_0x58d36f(0x1c7))/0x7+-parseInt(_0x58d36f(0x1eb))/0x8;if(_0x4aa53d===_0x459f9f)break;else _0x1c55e3['push'](_0x1c55e3['shift']());}catch(_0x2abb42){_0x1c55e3['push'](_0x1c55e3['shift']());}}}(_0xab59,0x4de1a));import{CKEditorError as _0x376154,ObservableMixin as _0x12c65e,uid as _0x2c2382}from'ckeditor5/src/utils.js';function _0x1e28(_0x312586,_0x1472c3){const _0xab59f2=_0xab59();return _0x1e28=function(_0x1e285b,_0x391ae0){_0x1e285b=_0x1e285b-0x191;let _0x46bd3c=_0xab59f2[_0x1e285b];return _0x46bd3c;},_0x1e28(_0x312586,_0x1472c3);}function _0xab59(){const _0x390c1d=['label','loadSourceResources','sourceResourcesLoaded','ai-chat-resource-load-failed','_getCustomSourcesInitialState','addToConversationContext','push','ai-chat-url-upload-failed','_config','_convertTextResourceToFile','end','isSelectionInContext','current-document','removeFromContext','clearPendingContextItems','init','FILE','code','files','SELECTION','type','784406JrJXHj','getResources','isCurrentDocumentInContext','_ownerId','ai-chat-resource-no-data','find','uploadProgressChanged','addFilesToContext','version','_setAddContextOptionsDefaultState','ai-chat-context-unsupported-type','ai-request-aborted','toolName','text/plain','getData','attributes','_createContextItemFromContent','url-','abort','isCurrentDocumentInConversation','contextSent','_toggleAddCurrentDocumentOptionVisibility','_ongoingUploads','ai-chat-source-not-found','136125klQwiG','isReadOnly','_removeContextItem','customItems','populateFromMessage','object\x20with\x20content\x20and\x20type\x20properties','contextItemRemoved','1450428WfoXqI','removeSelectionFromContext','mapContextItemsToRequestData','isHidden','_finishContextItemLoading','4146376hprCMk','message','isInContext','files-','startsWith','text/markdown','fire','object','_isResourceInContext','start','addToolItemToContext','1163244jrdMbb','hidden','sessionId','ai-chat-file-upload-failed','addSelectionToContext','_connector','_finishUploadOperation','urls','url','addUrlToContext','3227490WlYXAx','map','file-','error','Current\x20document','abortController','resourceStateChanged','1071608qUMAky','addCurrentDocumentToContext','_mapContextItemToRequestData','get','ai-chat-source-resources-load-failed','substring','_startUploadOperation','fetchDocument','all','text/html','size','TEXT','filter','forEach','_findSourceIdsByResourceId','URL','ai-chat-context-invalid-data','getPendingContextItems','HTML','content','uploadUrl','length','string','name','uploadFile','contextItemAdded','addResourceToContext','_conversationContextItems','_addContextOptionsState','getId','values','document','contextItemLoadingEnded','1XKKOgj','set','ai-chat-document-upload-failed','getSentContextItems','selection','enabled','getDocument','DOCUMENT','addContextOptionsChanged','MARKDOWN','updateCurrentDocument','stack','_addContextItem','has','_pendingContextItems','mcpServerName','uiId','uploadDocument','_ongoingUploadOperations','_updateResourceInContextState','sources','TOOL','resources','data','from','delete','resourceId','_addToConversationContextItem','File'];_0xab59=function(){return _0x390c1d;};return _0xab59();}import{AIContextItemType as _0x1fb19b,AIContextTextResourceType as _0x14d817}from'../../aicore/model/aicontext.js';import{escape as _0x25df55}from'es-toolkit/compat';import{errorsMap as _0x28d69b}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0xaa15a6(0x220),_0xaa15a6(0x1e5),_0xaa15a6(0x194),_0xaa15a6(0x1db),_0xaa15a6(0x203),_0xaa15a6(0x19d),_0xaa15a6(0x1b4),_0xaa15a6(0x206),_0xaa15a6(0x1cd)];export class AIChatContext extends _0x12c65e(){[_0xaa15a6(0x1fb)];[_0xaa15a6(0x1ba)];[_0xaa15a6(0x1ca)];constructor({connector:_0x24178e,config:_0x5717dd,ownerId:_0x489a29}){const _0xb2a556=_0xaa15a6;super(),this[_0xb2a556(0x1fb)]=_0x24178e,this[_0xb2a556(0x1ba)]=_0x5717dd,this[_0xb2a556(0x1ca)]=_0x489a29;}[_0xaa15a6(0x1c1)](){const _0x2d1468=_0xaa15a6;this[_0x2d1468(0x1a3)]=new Map(),this[_0x2d1468(0x222)]=new Map(),this[_0x2d1468(0x1dd)]=new Map(),this[_0x2d1468(0x1a7)]=new Map(),this[_0x2d1468(0x1d0)]();}[_0xaa15a6(0x218)](){const _0x1102b9=_0xaa15a6;return this[_0x1102b9(0x1a3)];}async[_0xaa15a6(0x1e3)](_0x3c952e){const _0x36de12=_0xaa15a6,_0x23bfd7=await this[_0x36de12(0x1d7)](_0x3c952e);return this[_0x36de12(0x1b0)](_0x23bfd7),_0x36de12(0x1be)===_0x23bfd7[_0x36de12(0x1a5)]&&this[_0x36de12(0x1dc)](),_0x23bfd7;}async[_0xaa15a6(0x1d7)](_0x220b2b){const _0x54f7c7=_0xaa15a6;if(_0x220b2b[_0x54f7c7(0x1c6)]===_0x1fb19b[_0x54f7c7(0x19c)]){const _0x32267b=await this[_0x54f7c7(0x1fb)][_0x54f7c7(0x20e)](this[_0x54f7c7(0x1ca)],_0x220b2b['id'])[_0x54f7c7(0x19b)]();return{'id':_0x54f7c7(0x1be),'uiId':_0x54f7c7(0x1be),'label':_0x54f7c7(0x204),'type':_0x220b2b[_0x54f7c7(0x1c6)],'content':_0x32267b[_0x54f7c7(0x21a)],'hidden':this[_0x54f7c7(0x222)][_0x54f7c7(0x1a2)](_0x54f7c7(0x1be)),'version':_0x32267b[_0x54f7c7(0x1d6)]?.[_0x54f7c7(0x1cf)],'sessionId':_0x32267b[_0x54f7c7(0x1d6)]?.[_0x54f7c7(0x1f8)]};}if(_0x220b2b[_0x54f7c7(0x1c6)]===_0x1fb19b[_0x54f7c7(0x1aa)])return{'id':_0x220b2b['id'],'uiId':_0x220b2b['id'],'label':_0x220b2b[_0x54f7c7(0x1ac)]?.[_0x54f7c7(0x1b2)]||_0x220b2b['id'],'type':_0x1fb19b[_0x54f7c7(0x1aa)],'mcpServerName':_0x220b2b[_0x54f7c7(0x1a4)],'toolName':_0x220b2b[_0x54f7c7(0x1d3)],'data':_0x220b2b[_0x54f7c7(0x1ac)]||{}};return{'id':_0x220b2b['id'],'uiId':_0x220b2b['id'],'label':_0x220b2b[_0x54f7c7(0x1d6)]?.[_0x54f7c7(0x1b2)]||_0x220b2b[_0x54f7c7(0x21e)]||_0x220b2b[_0x54f7c7(0x1fe)]||_0x220b2b['id'],'type':_0x220b2b[_0x54f7c7(0x1c6)],..._0x220b2b?.[_0x54f7c7(0x1d6)]?.[_0x54f7c7(0x1af)]?{'resourceId':_0x220b2b[_0x54f7c7(0x1d6)]?.[_0x54f7c7(0x1af)]}:{}};}[_0xaa15a6(0x198)](){const _0x409be8=_0xaa15a6;return new Map(this[_0x409be8(0x222)]);}[_0xaa15a6(0x1bf)](_0x59ddb2){const _0x328871=_0xaa15a6,_0xc5f8ca=this[_0x328871(0x1a3)][_0x328871(0x20a)](_0x59ddb2);_0xc5f8ca?.[_0x328871(0x1e0)]||this[_0x328871(0x1e1)](_0x59ddb2);}[_0xaa15a6(0x1c0)](){const _0x2ccc17=_0xaa15a6;if(0x0===this[_0x2ccc17(0x1a3)][_0x2ccc17(0x211)])return;for(const _0x409ac8 of this[_0x2ccc17(0x1a3)][_0x2ccc17(0x192)]())this[_0x2ccc17(0x1e1)](_0x409ac8[_0x2ccc17(0x1a5)]);const _0xcc9099=this[_0x2ccc17(0x222)][_0x2ccc17(0x20a)](_0x2ccc17(0x1be))||this[_0x2ccc17(0x1a3)][_0x2ccc17(0x20a)](_0x2ccc17(0x1be));_0xcc9099&&this[_0x2ccc17(0x1a1)]({..._0xcc9099,'isReadOnly':!0x0,'hidden':!0x0});}[_0xaa15a6(0x1b7)](_0x300ff7){const _0x23945f=_0xaa15a6;for(const _0x4f3e1b of _0x300ff7[_0x23945f(0x192)]())this[_0x23945f(0x1b0)](_0x4f3e1b);this[_0x23945f(0x1c0)](),this[_0x23945f(0x1f1)](_0x23945f(0x1db),{'contextItems':Array[_0x23945f(0x1ad)](this[_0x23945f(0x198)]()[_0x23945f(0x192)]())});}[_0xaa15a6(0x1c9)](){const _0x1491b2=_0xaa15a6;return this[_0x1491b2(0x1a3)][_0x1491b2(0x1a2)](_0x1491b2(0x1be));}[_0xaa15a6(0x1bd)](){const _0x57a124=_0xaa15a6;return this[_0x57a124(0x1a3)][_0x57a124(0x1a2)](_0x57a124(0x199));}[_0xaa15a6(0x1da)](){const _0x499c22=_0xaa15a6;return this[_0x499c22(0x222)][_0x499c22(0x1a2)](_0x499c22(0x1be));}static[_0xaa15a6(0x1e8)](_0x228cf5){const _0x588757=_0xaa15a6;return Array[_0x588757(0x1ad)](_0x228cf5[_0x588757(0x192)]())[_0x588757(0x201)](_0x4db105=>this[_0x588757(0x209)](_0x4db105))[_0x588757(0x213)](_0x78c11e=>null!==_0x78c11e);}async[_0xaa15a6(0x1ce)](_0x286d6e,_0x181464,_0x359232=_0x1fb19b[_0xaa15a6(0x1c2)]){const _0x365bdf=_0xaa15a6,_0x4bdeb8=_0x365bdf(0x1ee)+_0x2c2382();this[_0x365bdf(0x20d)](_0x4bdeb8);try{await Promise[_0x365bdf(0x20f)](_0x286d6e[_0x365bdf(0x201)](async _0x4c0022=>{const _0x267d9a=_0x365bdf,_0x4da4bc=_0x267d9a(0x202)+_0x2c2382(),_0x2568dc=_0x25df55(_0x4c0022[_0x267d9a(0x21e)]);try{this[_0x267d9a(0x1a1)]({'type':_0x359232,'label':_0x181464?.[_0x267d9a(0x1b2)]||_0x2568dc,'uiId':_0x4da4bc,'resourceId':_0x181464?.[_0x267d9a(0x1af)]},!0x0);const _0x75932b=this[_0x267d9a(0x1fb)][_0x267d9a(0x21f)](this[_0x267d9a(0x1ca)],_0x4c0022,_0x181464);this[_0x267d9a(0x1dd)][_0x267d9a(0x196)](_0x4da4bc,_0x75932b[_0x267d9a(0x205)]);const {id:_0x3da961}=await _0x75932b[_0x267d9a(0x191)]();this[_0x267d9a(0x1dd)][_0x267d9a(0x1ae)](_0x4da4bc),this[_0x267d9a(0x1ea)]({'type':_0x359232,'id':_0x3da961,'label':_0x181464?.[_0x267d9a(0x1b2)]||_0x2568dc,'uiId':_0x4da4bc,'resourceId':_0x181464?.[_0x267d9a(0x1af)]},!0x1);}catch(_0x565343){this[_0x267d9a(0x1dd)][_0x267d9a(0x1ae)](_0x4da4bc);if(!(_0x565343 instanceof _0x376154&&_0x565343[_0x267d9a(0x1ec)][_0x267d9a(0x1ef)](_0x267d9a(0x1d2)))){const _0x323760=_0x28d69b[_0x267d9a(0x20a)](_0x565343[_0x267d9a(0x1c3)])||_0x267d9a(0x1f9),_0x393edd=new _0x376154(_0x323760,null,{'fileName':_0x2568dc,..._0x565343});_0x393edd[_0x267d9a(0x1a0)]=_0x565343[_0x267d9a(0x1a0)],this[_0x267d9a(0x1f1)](_0x267d9a(0x203),{'error':_0x393edd});}this[_0x267d9a(0x1e1)](_0x4da4bc);}}));}finally{this[_0x365bdf(0x1fc)](_0x4bdeb8);}}[_0xaa15a6(0x208)](_0x3bc379){const _0xb5aadb=_0xaa15a6;if(this[_0xb5aadb(0x1c9)]()||!this[_0xb5aadb(0x223)][_0xb5aadb(0x193)][_0xb5aadb(0x19a)])return;const _0x28487a={'type':_0x1fb19b[_0xb5aadb(0x19c)],'uiId':_0xb5aadb(0x1be),'label':_0x3bc379,'isReadOnly':this[_0xb5aadb(0x222)][_0xb5aadb(0x1a2)](_0xb5aadb(0x1be)),'hidden':this[_0xb5aadb(0x222)][_0xb5aadb(0x1a2)](_0xb5aadb(0x1be))};this[_0xb5aadb(0x1a1)](_0x28487a);}async[_0xaa15a6(0x19f)](_0x12ef1a,_0x1a04f8,_0x1d625d,_0x2529f6){const _0x55715a=_0xaa15a6,_0x349421=this[_0x55715a(0x1a3)][_0x55715a(0x20a)](_0x55715a(0x1be));if(_0x349421&&_0x12ef1a){_0x349421[_0x55715a(0x199)]=_0x2529f6?_0x2529f6[_0x55715a(0x201)](_0x20299d=>({'start':_0x20299d[_0x55715a(0x1f4)],'end':_0x20299d[_0x55715a(0x1bc)]})):[];try{if(_0x349421[_0x55715a(0x1cf)]===_0x1a04f8)return;const {id:_0x356528}=await this[_0x55715a(0x1fb)][_0x55715a(0x1a6)](this[_0x55715a(0x1ca)],_0x12ef1a,{'version':_0x1a04f8,'sessionId':_0x1d625d})[_0x55715a(0x191)]();_0x349421['id']=_0x356528,_0x349421[_0x55715a(0x21a)]=_0x12ef1a,_0x349421[_0x55715a(0x1cf)]=_0x1a04f8,_0x349421[_0x55715a(0x1f8)]=_0x1d625d;}catch(_0xa8b1b1){const _0x3534d1=new _0x376154(_0x55715a(0x197),null);_0x3534d1[_0x55715a(0x1a0)]=_0xa8b1b1[_0x55715a(0x1a0)],this[_0x55715a(0x1f1)](_0x55715a(0x203),{'error':_0x3534d1});}}}[_0xaa15a6(0x1fa)](_0x41e622){const _0x3cb6bd=_0xaa15a6;this[_0x3cb6bd(0x1a1)]({'type':_0x1fb19b[_0x3cb6bd(0x1c5)],'label':_0x41e622,'uiId':_0x3cb6bd(0x199),'content':_0x41e622});}[_0xaa15a6(0x1e7)](){const _0x3d17a6=_0xaa15a6;this[_0x3d17a6(0x1e1)](_0x3d17a6(0x199));}async[_0xaa15a6(0x1ff)](_0x3358bb,_0x53d5a6){const _0x8807a2=_0xaa15a6,_0xe75b89=_0x8807a2(0x1d8)+_0x2c2382();this[_0x8807a2(0x20d)](_0xe75b89);const _0x82b333=_0x8807a2(0x1d8)+_0x2c2382();try{this[_0x8807a2(0x1a1)]({'type':_0x1fb19b[_0x8807a2(0x216)],'label':_0x53d5a6?.[_0x8807a2(0x1b2)]||_0x3358bb,'uiId':_0x82b333,'resourceId':_0x53d5a6?.[_0x8807a2(0x1af)]},!0x0);const _0x2efc36=this[_0x8807a2(0x1fb)][_0x8807a2(0x21b)](this[_0x8807a2(0x1ca)],_0x3358bb,_0x53d5a6);this[_0x8807a2(0x1dd)][_0x8807a2(0x196)](_0x82b333,_0x2efc36[_0x8807a2(0x205)]);const {id:_0x3f7011}=await _0x2efc36[_0x8807a2(0x191)]();this[_0x8807a2(0x1dd)][_0x8807a2(0x1ae)](_0x82b333),this[_0x8807a2(0x1ea)]({'type':_0x1fb19b[_0x8807a2(0x216)],'id':_0x3f7011,'label':_0x53d5a6?.[_0x8807a2(0x1b2)]||_0x3358bb,'uiId':_0x82b333,'resourceId':_0x53d5a6?.[_0x8807a2(0x1af)]},!0x1);}catch(_0x129f92){this[_0x8807a2(0x1dd)][_0x8807a2(0x1ae)](_0x82b333),(_0x129f92[_0x8807a2(0x1ec)][_0x8807a2(0x1ef)](_0x8807a2(0x1d2))||this[_0x8807a2(0x1f1)](_0x8807a2(0x203),{'error':new _0x376154(_0x8807a2(0x1b9),this,{'url':_0x3358bb,'originalError':_0x129f92}),'url':_0x3358bb}),this[_0x8807a2(0x1e1)](_0x82b333));}finally{this[_0x8807a2(0x1fc)](_0xe75b89);}}[_0xaa15a6(0x1f5)](_0xb8bee3){const _0x45ddbf=_0xaa15a6;_0xb8bee3['id']=_0xb8bee3['id']??_0x2c2382()[_0x45ddbf(0x20c)](0x0,0x15),this[_0x45ddbf(0x1a3)][_0x45ddbf(0x196)](_0xb8bee3[_0x45ddbf(0x1a5)],_0xb8bee3),this[_0x45ddbf(0x1f1)](_0x45ddbf(0x220),{'contextItem':_0xb8bee3,'isLoading':!0x1});}async[_0xaa15a6(0x1b3)](_0x1e5d1e,_0x3e159f,_0x4fa18a){const _0x8d13c1=_0xaa15a6,_0x5ce4a0=this[_0x8d13c1(0x223)][_0x8d13c1(0x1a9)][_0x8d13c1(0x1cc)](_0xef6700=>_0xef6700['id']===_0x1e5d1e);if(!_0x5ce4a0)return this[_0x8d13c1(0x1f1)](_0x8d13c1(0x203),{'error':new _0x376154(_0x8d13c1(0x1de),this,{'sourceId':_0x1e5d1e}),'sourceId':_0x1e5d1e}),[];try{const _0x15e131=(await _0x5ce4a0[_0x8d13c1(0x1c8)](_0x3e159f))[_0x8d13c1(0x201)](_0x312226=>{const _0x3af8e0=_0x8d13c1,_0x3013c5=this[_0x3af8e0(0x1f3)](_0x312226['id']);return{..._0x312226,'isInContext':_0x3013c5};});return _0x5ce4a0[_0x8d13c1(0x1ab)]=_0x15e131,this[_0x8d13c1(0x1f1)](_0x8d13c1(0x1b4),{'sourceId':_0x1e5d1e,'source':_0x5ce4a0,'resources':_0x15e131,'uid':_0x4fa18a}),_0x15e131;}catch(_0x170826){return this[_0x8d13c1(0x1f1)](_0x8d13c1(0x203),{'error':new _0x376154(_0x8d13c1(0x20b),this,{'sourceId':_0x1e5d1e,'originalError':_0x170826}),'sourceId':_0x1e5d1e,'sourceLabel':_0x5ce4a0[_0x8d13c1(0x1b2)]}),[];}}async[_0xaa15a6(0x221)](_0x14ab49,_0x3d829d){const _0x42f5f4=_0xaa15a6;if(this[_0x42f5f4(0x1f3)](_0x3d829d['id']))return;let _0xff6a1e=_0x3d829d[_0x42f5f4(0x1ac)];if(!_0xff6a1e&&_0x14ab49[_0x42f5f4(0x1d5)])try{_0xff6a1e=await _0x14ab49[_0x42f5f4(0x1d5)](_0x3d829d['id']);}catch(_0x49f586){return void this[_0x42f5f4(0x1f1)](_0x42f5f4(0x203),{'error':new _0x376154(_0x42f5f4(0x1b5),this,{'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id'],'originalError':_0x49f586}),'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id']});}if(_0xff6a1e)switch(_0x3d829d[_0x42f5f4(0x1c6)]){case _0x1fb19b[_0x42f5f4(0x216)]:if(_0x42f5f4(0x21d)!=typeof _0xff6a1e)return void this[_0x42f5f4(0x1f1)](_0x42f5f4(0x203),{'error':new _0x376154(_0x42f5f4(0x217),this,{'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id'],'expectedType':_0x42f5f4(0x21d),'actualType':typeof _0xff6a1e}),'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id']});await this[_0x42f5f4(0x1ff)](_0xff6a1e,{'label':_0x3d829d[_0x42f5f4(0x1b2)],'resourceId':_0x3d829d['id']});break;case _0x1fb19b[_0x42f5f4(0x1c2)]:if(!(_0xff6a1e instanceof File))return void this[_0x42f5f4(0x1f1)](_0x42f5f4(0x203),{'error':new _0x376154(_0x42f5f4(0x217),this,{'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id'],'expectedType':_0x42f5f4(0x1b1),'actualType':typeof _0xff6a1e}),'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id']});await this[_0x42f5f4(0x1ce)]([_0xff6a1e],{'label':_0x3d829d[_0x42f5f4(0x1b2)],'resourceId':_0x3d829d['id']});break;case _0x1fb19b[_0x42f5f4(0x212)]:if(_0x42f5f4(0x1f2)!=typeof _0xff6a1e||!(_0x42f5f4(0x21a)in _0xff6a1e)||!(_0x42f5f4(0x1c6)in _0xff6a1e))return void this[_0x42f5f4(0x1f1)](_0x42f5f4(0x203),{'error':new _0x376154(_0x42f5f4(0x217),this,{'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id'],'expectedType':_0x42f5f4(0x1e4),'actualType':typeof _0xff6a1e}),'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id']});_0xff6a1e=AIChatContext[_0x42f5f4(0x1bb)](_0xff6a1e,_0x3d829d[_0x42f5f4(0x1b2)]),await this[_0x42f5f4(0x1ce)]([_0xff6a1e],{'label':_0x3d829d[_0x42f5f4(0x1b2)],'resourceId':_0x3d829d['id']},_0x1fb19b[_0x42f5f4(0x212)]);break;case _0x1fb19b[_0x42f5f4(0x1aa)]:break;default:this[_0x42f5f4(0x1f1)](_0x42f5f4(0x203),{'error':new _0x376154(_0x42f5f4(0x1d1),this,{'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id'],'resourceType':_0x3d829d[_0x42f5f4(0x1c6)]}),'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id']});}else this[_0x42f5f4(0x1f1)](_0x42f5f4(0x203),{'error':new _0x376154(_0x42f5f4(0x1cb),this,{'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id']}),'resourceId':_0x3d829d['id'],'sourceId':_0x14ab49['id']});}static[_0xaa15a6(0x1bb)](_0x3ba37d,_0x1384de){const _0xab6b0d=_0xaa15a6;switch(_0x3ba37d[_0xab6b0d(0x1c6)]){case _0x14d817[_0xab6b0d(0x19e)]:return new File([_0x3ba37d[_0xab6b0d(0x21a)]],_0x1384de,{'type':_0xab6b0d(0x1f0)});case _0x14d817[_0xab6b0d(0x219)]:return new File([_0x3ba37d[_0xab6b0d(0x21a)]],_0x1384de,{'type':_0xab6b0d(0x210)});default:return new File([_0x3ba37d[_0xab6b0d(0x21a)]],_0x1384de,{'type':_0xab6b0d(0x1d4)});}}static[_0xaa15a6(0x209)](_0x4e9d97){const _0x4aa3c7=_0xaa15a6;switch(_0x4e9d97[_0x4aa3c7(0x1c6)]){case _0x1fb19b[_0x4aa3c7(0x1c2)]:return{'type':_0x1fb19b[_0x4aa3c7(0x1c2)],'id':_0x4e9d97['id']};case _0x1fb19b[_0x4aa3c7(0x216)]:return{'type':_0x1fb19b[_0x4aa3c7(0x216)],'id':_0x4e9d97['id']};case _0x1fb19b[_0x4aa3c7(0x19c)]:return{'type':_0x1fb19b[_0x4aa3c7(0x19c)],'id':_0x4e9d97['id'],..._0x4e9d97[_0x4aa3c7(0x199)]?.[_0x4aa3c7(0x21c)]&&{'selection':_0x4e9d97[_0x4aa3c7(0x199)]}};case _0x1fb19b[_0x4aa3c7(0x212)]:return{'type':_0x1fb19b[_0x4aa3c7(0x1c2)],'id':_0x4e9d97['id']};case _0x1fb19b[_0x4aa3c7(0x1aa)]:{const _0x967d9e=_0x4e9d97;return{'type':_0x1fb19b[_0x4aa3c7(0x1aa)],'mcpServerName':_0x967d9e[_0x4aa3c7(0x1a4)],'toolName':_0x967d9e[_0x4aa3c7(0x1d3)],'data':_0x967d9e[_0x4aa3c7(0x1ac)],'id':_0x967d9e['id']};}default:return null;}}[_0xaa15a6(0x1a1)](_0x4574e2,_0x3ae057=!0x1){const _0x3b9658=_0xaa15a6;if(this[_0x3b9658(0x1a3)][_0x3b9658(0x196)](_0x4574e2[_0x3b9658(0x1a5)],_0x4574e2),_0x4574e2[_0x3b9658(0x1f7)]||this[_0x3b9658(0x1f1)](_0x3b9658(0x220),{'contextItem':_0x4574e2,'isLoading':_0x3ae057}),_0x3b9658(0x1be)===_0x4574e2[_0x3b9658(0x1a5)]&&this[_0x3b9658(0x1dc)](),_0x4574e2[_0x3b9658(0x1af)]){const _0x3b72cb=this[_0x3b9658(0x215)](_0x4574e2[_0x3b9658(0x1af)]);_0x3b72cb&&_0x3b72cb[_0x3b9658(0x214)](_0x354562=>{const _0xd661ce=_0x3b9658;this[_0xd661ce(0x1a8)](_0x354562,_0x4574e2[_0xd661ce(0x1af)],!0x0);});}}[_0xaa15a6(0x1e1)](_0x405a54){const _0x1f0129=_0xaa15a6,_0x3c65e8=this[_0x1f0129(0x1a3)][_0x1f0129(0x20a)](_0x405a54),_0x2257d7=this[_0x1f0129(0x1dd)][_0x1f0129(0x20a)](_0x405a54);if(_0x2257d7&&(_0x2257d7[_0x1f0129(0x1d9)](),this[_0x1f0129(0x1dd)][_0x1f0129(0x1ae)](_0x405a54)),_0x3c65e8?.[_0x1f0129(0x1af)]){const _0x5ecc23=this[_0x1f0129(0x215)](_0x3c65e8[_0x1f0129(0x1af)]);_0x5ecc23&&_0x5ecc23[_0x1f0129(0x214)](_0x9385b9=>{const _0x59037a=_0x1f0129;this[_0x59037a(0x1a8)](_0x9385b9,_0x3c65e8[_0x59037a(0x1af)],!0x1);});}this[_0x1f0129(0x1a3)][_0x1f0129(0x1ae)](_0x405a54),this[_0x1f0129(0x1f1)](_0x1f0129(0x1e5),{'uiId':_0x405a54,'type':_0x3c65e8?.[_0x1f0129(0x1c6)]}),_0x1f0129(0x1be)===_0x405a54&&this[_0x1f0129(0x1dc)]();}[_0xaa15a6(0x1ea)](_0x3eb499,_0x3160fb){const _0x35f71b=_0xaa15a6;if(this[_0x35f71b(0x1a3)][_0x35f71b(0x1a2)](_0x3eb499[_0x35f71b(0x1a5)])&&(this[_0x35f71b(0x1a3)][_0x35f71b(0x196)](_0x3eb499[_0x35f71b(0x1a5)],_0x3eb499),this[_0x35f71b(0x1f1)](_0x35f71b(0x194),{'contextItem':_0x3eb499,'isLoading':_0x3160fb}),_0x3eb499[_0x35f71b(0x1af)])){const _0xecc5c9=this[_0x35f71b(0x215)](_0x3eb499[_0x35f71b(0x1af)]);_0xecc5c9&&_0xecc5c9[_0x35f71b(0x214)](_0x12b0f8=>{const _0x2d9c3d=_0x35f71b;this[_0x2d9c3d(0x1a8)](_0x12b0f8,_0x3eb499[_0x2d9c3d(0x1af)],!0x0);});}}[_0xaa15a6(0x1b0)](_0x3c5404){const _0x2c1dc9=_0xaa15a6;this[_0x2c1dc9(0x222)][_0x2c1dc9(0x196)](_0x3c5404[_0x2c1dc9(0x1a5)],_0x3c5404);}[_0xaa15a6(0x1d0)](){const _0x18b52e=_0xaa15a6;this[_0x18b52e(0x223)]={'document':{'enabled':!0x1!==this[_0x18b52e(0x1ba)]?.[_0x18b52e(0x193)]?.[_0x18b52e(0x19a)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x18b52e(0x1ba)]?.[_0x18b52e(0x1fd)]?.[_0x18b52e(0x19a)]},'files':{'enabled':!0x1!==this[_0x18b52e(0x1ba)]?.[_0x18b52e(0x1c4)]?.[_0x18b52e(0x19a)]},'sources':this[_0x18b52e(0x1b6)](),'customItems':this[_0x18b52e(0x1ba)]?.[_0x18b52e(0x1e2)]?.[_0x18b52e(0x201)](_0xfd186=>({..._0xfd186,'enabled':!0x0}))??[]},this[_0x18b52e(0x1f1)](_0x18b52e(0x19d),{'options':this[_0x18b52e(0x223)]});}[_0xaa15a6(0x1b6)](){const _0x25f608=_0xaa15a6;return this[_0x25f608(0x1ba)]?.[_0x25f608(0x1a9)]?.[_0x25f608(0x201)](_0x70804e=>({..._0x70804e,'resources':[]}))??[];}[_0xaa15a6(0x1dc)](){const _0x5bbf55=_0xaa15a6,_0x1c5162=this[_0x5bbf55(0x1c9)]()||this[_0x5bbf55(0x1da)]();this[_0x5bbf55(0x223)][_0x5bbf55(0x193)][_0x5bbf55(0x1e9)]=_0x1c5162,this[_0x5bbf55(0x1f1)](_0x5bbf55(0x19d),{'options':this[_0x5bbf55(0x223)]});}[_0xaa15a6(0x1f3)](_0x2d6429){const _0x263e5c=_0xaa15a6;for(const _0x50cfc0 of this[_0x263e5c(0x1a3)][_0x263e5c(0x192)]())if(_0x50cfc0[_0x263e5c(0x1af)]===_0x2d6429)return!0x0;for(const _0x1d8a8a of this[_0x263e5c(0x222)][_0x263e5c(0x192)]())if(_0x1d8a8a[_0x263e5c(0x1af)]===_0x2d6429)return!0x0;return!0x1;}[_0xaa15a6(0x215)](_0x12b159){const _0x398b32=_0xaa15a6,_0xe94a1b=[];for(const _0x13a41e of this[_0x398b32(0x223)][_0x398b32(0x1a9)]){_0x13a41e[_0x398b32(0x1ab)][_0x398b32(0x1cc)](_0x5aa8b9=>_0x5aa8b9['id']===_0x12b159)&&_0xe94a1b[_0x398b32(0x1b8)](_0x13a41e['id']);}return 0x0===_0xe94a1b[_0x398b32(0x21c)]?null:_0xe94a1b;}[_0xaa15a6(0x1a8)](_0xfe922e,_0x2e5df4,_0x242500){const _0x4dc387=_0xaa15a6,_0x2e421b=this[_0x4dc387(0x223)][_0x4dc387(0x1a9)][_0x4dc387(0x1cc)](_0x1db450=>_0x1db450['id']===_0xfe922e);if(!_0x2e421b)return;const _0x26f687=_0x2e421b[_0x4dc387(0x1ab)][_0x4dc387(0x1cc)](_0x21c2dc=>_0x21c2dc['id']===_0x2e5df4);_0x26f687&&(_0x26f687[_0x4dc387(0x1ed)]=_0x242500,this[_0x4dc387(0x1f1)](_0x4dc387(0x206),{'sourceId':_0xfe922e,'resourceId':_0x2e5df4,'isInContext':_0x242500}));}[_0xaa15a6(0x20d)](_0x408fd6){const _0x59116d=_0xaa15a6;this[_0x59116d(0x1a7)][_0x59116d(0x196)](_0x408fd6,!0x0),this[_0x59116d(0x1a7)][_0x59116d(0x211)]&&this[_0x59116d(0x1f1)](_0x59116d(0x1cd),{'isUploadInProgress':!0x0});}[_0xaa15a6(0x1fc)](_0x13a38e){const _0x401e7f=_0xaa15a6;this[_0x401e7f(0x1a7)][_0x401e7f(0x1ae)](_0x13a38e),0x0===this[_0x401e7f(0x1a7)][_0x401e7f(0x211)]&&this[_0x401e7f(0x1f1)](_0x401e7f(0x1cd),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x57fc50=_0x4fb3;function _0x4fb3(_0x2c30c8,_0x3c02aa){const _0x299594=_0x2995();return _0x4fb3=function(_0x4fb3e8,_0x505c2e){_0x4fb3e8=_0x4fb3e8-0x1d5;let _0x3229fe=_0x299594[_0x4fb3e8];return _0x3229fe;},_0x4fb3(_0x2c30c8,_0x3c02aa);}(function(_0x2b3852,_0x26f7dc){const _0x203123=_0x4fb3,_0x188c11=_0x2b3852();while(!![]){try{const _0x56b484=-parseInt(_0x203123(0x20c))/0x1+parseInt(_0x203123(0x22f))/0x2*(-parseInt(_0x203123(0x229))/0x3)+parseInt(_0x203123(0x20e))/0x4+-parseInt(_0x203123(0x22c))/0x5*(-parseInt(_0x203123(0x250))/0x6)+-parseInt(_0x203123(0x249))/0x7+parseInt(_0x203123(0x235))/0x8+parseInt(_0x203123(0x1ee))/0x9*(parseInt(_0x203123(0x236))/0xa);if(_0x56b484===_0x26f7dc)break;else _0x188c11['push'](_0x188c11['shift']());}catch(_0x5411c0){_0x188c11['push'](_0x188c11['shift']());}}}(_0x2995,0xa6259));import{CKEditorError as _0x1646c6,EmitterMixin as _0x2b91b3,logWarning as _0x3ba850}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x1109ad}from'../../aicore/model/aiinteraction.js';function _0x2995(){const _0x3ffbdb=['code','load','contextItems','model','setReasoning','title','role','ai-chat-conversation-start-failed','getCapabilitiesConfig','interactions','ai-chat-handle-user-conversation-not-initialized','content','getDocumentContext','modelSelected','conversationStarted','getInteraction','selectedModelId','getConversation','handleUserInteraction','capabilities','ai-chat-handle-user-interaction-start-failed','addToConversationContext','webSearch','ai-chat-conversation-set-model-null','options','addResourceToContext','ai-chat-conversation-init-failed','702201ChmuEt','indexOf','2311668fBdiDq','toggleReasoning','updateCurrentDocumentInContext','getPendingContextItems','init','prompt','reasoning','set','splice','isSelectionInContext','fire','selectedModel','addCurrentDocumentToContext','getEditor','stop','getMessages','setConversationTitle','toLowerCase','removeInteraction','parse','ai-chat-conversation-set-model-not-available','isFromHistory','group','startConversation','chatModels','addToolItemToContext','appendContent','12IXlCPS','attributes','sessionId','25DxzSrE','type','isCurrentDocumentInContext','367658CWblFi','populateFromMessage','assistant','conversationInitialized','find','delegate','2947576jQuQUK','230gvBTkQ','chatCapabilities','addFilesToContext','fetchConversation','stack','isStarted','ai-chat-conversation-start-no-model-selected','currentReply','getCurrentDocumentContext','currentInteraction','createInteraction','getAll','ai-chat-handle-user-interaction-already-in-progress','_processMessagesToInteractions','toggleWebSearch','ai-chat-conversation-already-started','chatContext','addSelectionToContext','destroy','6849605daKMJG','addUrlToContext','removeSelectionFromContext','mcp-tool-result','sources','_handleToolResultData','getAvailableModels','1145874deOQMf','toolName','message','isCurrentDocumentInConversation','isAvailable','url','get','_extractContextItems','ai-chat-conversation-init-from-id-failed','setModel','interactionCreated','connector','updateCurrentDocument','modification','text','lastInteraction','loadSourceResources','start','push','setWebSearch','removeFromContext','hasOwn','error','fetchConversationMessages','conversationId','user','createReply','getModel','467730tSbALS','reset','length'];_0x2995=function(){return _0x3ffbdb;};return _0x2995();}import{AIChatContext as _0x2add99,AI_CONTEXT_MODEL_EVENT_NAMES as _0x11dfd7}from'./aichatcontext.js';import{AICapabilities as _0x153298,CAPABILITIES_MODEL_EVENT_NAMES as _0x1def27}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x3c9586}from'./aichatinteraction.js';import{errorsMap as _0x590475}from'../../errorsmap.js';export class AIChatConversation extends _0x2b91b3(){['id'];[_0x57fc50(0x23b)]=!0x1;[_0x57fc50(0x223)];[_0x57fc50(0x1fa)]=[];[_0x57fc50(0x23f)];[_0x57fc50(0x219)];[_0x57fc50(0x1dd)];[_0x57fc50(0x209)];constructor(_0x18135a){const _0x2c26f0=_0x57fc50;super(),this[_0x2c26f0(0x209)]=_0x18135a,this[_0x2c26f0(0x1dd)]=_0x18135a[_0x2c26f0(0x1dd)],this[_0x2c26f0(0x226)]=_0x18135a[_0x2c26f0(0x226)],this['id']=_0x18135a[_0x2c26f0(0x1ea)],this[_0x2c26f0(0x223)]=_0x18135a[_0x2c26f0(0x223)];}async[_0x57fc50(0x212)](_0x57e05a){const _0x151ce1=_0x57fc50;try{this[_0x151ce1(0x246)]=new _0x2add99({'connector':this[_0x151ce1(0x1dd)],'config':_0x57e05a,'ownerId':this['id']}),this[_0x151ce1(0x246)][_0x151ce1(0x234)](..._0x11dfd7)['to'](this),this[_0x151ce1(0x246)][_0x151ce1(0x212)](),this[_0x151ce1(0x237)]=new _0x153298(),this[_0x151ce1(0x237)][_0x151ce1(0x234)](..._0x1def27)['to'](this),this[_0x151ce1(0x237)][_0x151ce1(0x212)]();const _0x55d496=await this[_0x151ce1(0x226)][_0x151ce1(0x24f)]();this[_0x151ce1(0x218)](_0x151ce1(0x232),{'availableModels':_0x55d496});const _0x480725=await this[_0x151ce1(0x226)][_0x151ce1(0x1ed)](this[_0x151ce1(0x209)][_0x151ce1(0x201)]);_0x480725&&await this[_0x151ce1(0x1db)](_0x480725);}catch(_0x1c9ba2){const _0x14dc96=new _0x1646c6(_0x151ce1(0x20b),null,{'message':_0x1c9ba2[_0x151ce1(0x252)]||_0x1c9ba2});_0x14dc96[_0x151ce1(0x23a)]=_0x1c9ba2[_0x151ce1(0x23a)],this[_0x151ce1(0x218)](_0x151ce1(0x1e8),{'error':_0x14dc96});}}async[_0x57fc50(0x1e3)](){const _0xae69cc=_0x57fc50;if(this[_0xae69cc(0x23b)])throw new _0x1646c6(_0xae69cc(0x245),null,{'conversation':this});if(!this[_0xae69cc(0x219)])throw new _0x1646c6(_0xae69cc(0x23c),null,{'conversation':this});try{const {id:_0x57b4d4}=await this[_0xae69cc(0x1dd)][_0xae69cc(0x225)](this['id'],this[_0xae69cc(0x209)][_0xae69cc(0x224)])[_0xae69cc(0x202)]();this['id']=_0x57b4d4,this[_0xae69cc(0x23b)]=!0x0,this[_0xae69cc(0x218)](_0xae69cc(0x1ff),{'conversationId':this['id'],'selectedModel':this[_0xae69cc(0x219)]});}catch(_0x1386dc){const _0x4a53c2=new _0x1646c6(_0xae69cc(0x1f8),null,{'message':_0x1386dc[_0xae69cc(0x252)],'conversationId':this['id']});throw _0x4a53c2[_0xae69cc(0x23a)]=_0x1386dc[_0xae69cc(0x23a)],this[_0xae69cc(0x218)](_0xae69cc(0x1e8),{'error':_0x4a53c2}),_0x4a53c2;}}async[_0x57fc50(0x1f2)](_0x3e3602,_0x34a336){const _0x44b3cf=_0x57fc50;try{const _0x12e075=await this[_0x44b3cf(0x1dd)][_0x44b3cf(0x239)](_0x3e3602)[_0x44b3cf(0x202)](),_0x2b521e=await this[_0x44b3cf(0x1dd)][_0x44b3cf(0x1e9)](_0x3e3602)[_0x44b3cf(0x21d)](),_0x180f7c=_0x2b521e[0x0][_0x44b3cf(0x1f4)];this[_0x44b3cf(0x23b)]=!0x0,this['id']=_0x12e075['id'],_0x44b3cf(0x1f6)in _0x12e075?this[_0x44b3cf(0x218)](_0x44b3cf(0x21e),_0x12e075[_0x44b3cf(0x1f6)],!0x0):this[_0x44b3cf(0x218)](_0x44b3cf(0x21e),'',!0x0);const _0x3657e9=(await this[_0x44b3cf(0x226)][_0x44b3cf(0x241)]())[_0x44b3cf(0x233)](_0x299350=>_0x299350['id'][_0x44b3cf(0x21f)]()===_0x180f7c[_0x44b3cf(0x21f)]());return this[_0x44b3cf(0x219)]=_0x3657e9,this[_0x44b3cf(0x218)](_0x44b3cf(0x1fe),{'selectedModel':_0x3657e9,'isDisabled':!0x0}),await this[_0x44b3cf(0x243)](_0x2b521e,_0x34a336,_0x180f7c),this[_0x44b3cf(0x23f)]=void 0x0,this;}catch(_0x2c5104){const _0x12ca2f=new _0x1646c6(_0x44b3cf(0x1da),null,{'message':_0x2c5104[_0x44b3cf(0x252)],'conversationId':_0x3e3602});throw _0x12ca2f[_0x44b3cf(0x23a)]=_0x2c5104[_0x44b3cf(0x23a)],this[_0x44b3cf(0x218)](_0x44b3cf(0x1e8),{'error':_0x12ca2f}),_0x12ca2f;}}async[_0x57fc50(0x243)](_0x4474af,_0x429bb7,_0xadc54){const _0x1f39ed=_0x57fc50;let _0x293e69;for(const _0x581ef7 of _0x4474af)if(_0x1f39ed(0x1eb)===_0x581ef7[_0x1f39ed(0x1f7)]){const _0x3852bd=await this[_0x1f39ed(0x1d9)](_0x581ef7),_0x26bfd3={'isReasoningEnabled':Object[_0x1f39ed(0x1e7)](_0x581ef7[_0x1f39ed(0x204)],_0x1f39ed(0x214)),'isWebSearchEnabled':Object[_0x1f39ed(0x1e7)](_0x581ef7[_0x1f39ed(0x204)],_0x1f39ed(0x207))};_0x293e69=this[_0x1f39ed(0x240)]({'userMessage':_0x581ef7[_0x1f39ed(0x213)],'contextItems':_0x3852bd,'capabilities':_0x26bfd3,'modelId':_0xadc54,'attributes':_0x581ef7[_0x1f39ed(0x22a)]}),this[_0x1f39ed(0x23f)]=_0x293e69,this[_0x1f39ed(0x246)][_0x1f39ed(0x206)](this[_0x1f39ed(0x23f)][_0x1f39ed(0x1f3)]);}else{if(_0x1f39ed(0x231)===_0x581ef7[_0x1f39ed(0x1f7)]&&_0x293e69){const _0x1894dc=[];for(const _0x43db2b of _0x581ef7[_0x1f39ed(0x1fc)])switch(_0x43db2b[_0x1f39ed(0x22d)]){case _0x1f39ed(0x1e0):case _0x1f39ed(0x1df):{const _0x500b04=_0x293e69[_0x1f39ed(0x1fd)]()?.[_0x1f39ed(0x22b)]!==_0x429bb7;_0x293e69[_0x1f39ed(0x23d)]=_0x293e69[_0x1f39ed(0x1ec)]({'type':_0x43db2b[_0x1f39ed(0x22d)],'isDone':!0x0,'interactionId':_0x293e69['id'],'areActionsDisabled':_0x500b04}),_0x293e69[_0x1f39ed(0x23d)][_0x1f39ed(0x228)](_0x43db2b[_0x1f39ed(0x1fc)]),_0x1894dc[_0x1f39ed(0x1f0)]>0x0&&(_0x293e69[_0x1f39ed(0x23d)][_0x1f39ed(0x24d)]=_0x1894dc[_0x1f39ed(0x216)](0x0));break;}case _0x1f39ed(0x1d7):_0x1894dc[_0x1f39ed(0x1e4)](_0x43db2b);break;case _0x1f39ed(0x24c):{const {data:_0x36b5d2,attributes:_0x2f72f3}=JSON[_0x1f39ed(0x221)](_0x43db2b[_0x1f39ed(0x1fc)]);_0x293e69[_0x1f39ed(0x24e)]({'toolName':_0x43db2b[_0x1f39ed(0x251)],'data':_0x36b5d2,'attributes':_0x2f72f3});break;}}}}}async[_0x57fc50(0x1d9)](_0x5c94e6){const _0x16b2d9=_0x57fc50,_0x7e0b1a=new Map();if(!_0x5c94e6[_0x16b2d9(0x1fc)])return _0x7e0b1a;for(const _0x4a0421 of _0x5c94e6[_0x16b2d9(0x1fc)]){const _0x1fa056=await this[_0x16b2d9(0x246)][_0x16b2d9(0x230)](_0x4a0421);_0x1fa056&&_0x7e0b1a[_0x16b2d9(0x215)](_0x1fa056['id'],_0x1fa056);}return _0x7e0b1a;}async[_0x57fc50(0x203)]({userMessage:_0x58f69a,attributes:_0x58601c}){const _0x4ccc70=_0x57fc50;if(!this[_0x4ccc70(0x23b)])throw new _0x1646c6(_0x4ccc70(0x1fb),null,{'conversation':this});if(this[_0x4ccc70(0x23f)])throw new _0x1646c6(_0x4ccc70(0x242),null,{'conversation':this});try{const _0x48fc99=this[_0x4ccc70(0x246)][_0x4ccc70(0x211)](),_0x3a3717=this[_0x4ccc70(0x237)][_0x4ccc70(0x1f9)](),_0x9fc595=this[_0x4ccc70(0x219)]['id'];this[_0x4ccc70(0x23f)]=this[_0x4ccc70(0x240)]({'userMessage':_0x58f69a,'contextItems':_0x48fc99,'capabilities':_0x3a3717,'modelId':_0x9fc595,'attributes':_0x58601c}),await this[_0x4ccc70(0x23f)][_0x4ccc70(0x1e3)](),this[_0x4ccc70(0x246)][_0x4ccc70(0x206)](this[_0x4ccc70(0x23f)][_0x4ccc70(0x1f3)]);}catch(_0x1e5d1f){if(_0x1e5d1f instanceof _0x1646c6)this[_0x4ccc70(0x218)](_0x4ccc70(0x1e8),{'interactionId':this[_0x4ccc70(0x23f)]?this[_0x4ccc70(0x23f)]['id']:void 0x0,'error':_0x1e5d1f});else{const _0x412996=_0x590475[_0x4ccc70(0x1d8)](_0x1e5d1f[_0x4ccc70(0x1f1)])||_0x4ccc70(0x205);this[_0x4ccc70(0x218)](_0x4ccc70(0x1e8),{'interactionId':this[_0x4ccc70(0x23f)]?this[_0x4ccc70(0x23f)]['id']:void 0x0,'error':new _0x1646c6(_0x412996,null,{'error':_0x1e5d1f})});}}finally{this[_0x4ccc70(0x23f)]?.[_0x4ccc70(0x21c)](),this[_0x4ccc70(0x23f)]=void 0x0;}}[_0x57fc50(0x240)]({userMessage:_0x5f018e,contextItems:_0x5b8cf6,capabilities:_0x3334e5,modelId:_0x4ed16c,attributes:_0x14004f}){const _0x2f227f=_0x57fc50,_0x4e9676=new _0x3c9586({'userMessage':_0x5f018e,'contextItems':_0x5b8cf6,'capabilities':_0x3334e5,'conversationId':this['id'],'connector':this[_0x2f227f(0x1dd)],'editor':this[_0x2f227f(0x209)][_0x2f227f(0x21b)]&&this[_0x2f227f(0x209)][_0x2f227f(0x21b)](),'model':_0x4ed16c,'attributes':_0x14004f});return _0x4e9676[_0x2f227f(0x234)](..._0x1109ad)['to'](this),this[_0x2f227f(0x1fa)][_0x2f227f(0x1e4)](_0x4e9676),this[_0x2f227f(0x218)](_0x2f227f(0x1dc),_0x4e9676),_0x4e9676;}[_0x57fc50(0x200)](_0x1a9578){const _0x140d58=_0x57fc50;return this[_0x140d58(0x1fa)][_0x140d58(0x233)](_0x56da8c=>_0x56da8c['id']===_0x1a9578);}[_0x57fc50(0x220)](_0xdaad3e){const _0xb00d07=_0x57fc50,_0x4cc52b=this[_0xb00d07(0x200)](_0xdaad3e);_0x4cc52b&&(_0x4cc52b[_0xb00d07(0x248)](),this[_0xb00d07(0x1fa)][_0xb00d07(0x216)](this[_0xb00d07(0x1fa)][_0xb00d07(0x20d)](_0x4cc52b),0x1));}get[_0x57fc50(0x1e1)](){const _0x16e921=_0x57fc50;return this[_0x16e921(0x1fa)][this[_0x16e921(0x1fa)][_0x16e921(0x1f0)]-0x1];}[_0x57fc50(0x21a)](_0x53372d){const _0x7a2c57=_0x57fc50;this[_0x7a2c57(0x246)][_0x7a2c57(0x21a)](_0x53372d);}async[_0x57fc50(0x210)]({content:_0x1b8a2a,version:_0xc53110,sessionId:_0x3796bc,selections:_0x19bf05}){const _0x366b6f=_0x57fc50;await this[_0x366b6f(0x246)][_0x366b6f(0x1de)](_0x1b8a2a,_0xc53110,_0x3796bc,_0x19bf05);}[_0x57fc50(0x23e)](){const _0x1a51b9=_0x57fc50;return this[_0x1a51b9(0x23f)]?.[_0x1a51b9(0x1fd)]()?.[_0x1a51b9(0x1fc)]||'';}[_0x57fc50(0x247)](_0x51ca6a){const _0x49ed16=_0x57fc50;this[_0x49ed16(0x246)][_0x49ed16(0x247)](_0x51ca6a);}[_0x57fc50(0x24b)](){const _0x4cf4dc=_0x57fc50;this[_0x4cf4dc(0x246)][_0x4cf4dc(0x24b)]();}[_0x57fc50(0x238)](_0x44808a){const _0x561497=_0x57fc50;this[_0x561497(0x246)][_0x561497(0x238)](_0x44808a);}[_0x57fc50(0x24a)](_0x34579b){const _0x559a99=_0x57fc50;this[_0x559a99(0x246)][_0x559a99(0x24a)](_0x34579b);}[_0x57fc50(0x227)](_0x2de155){const _0x4cf5b6=_0x57fc50;this[_0x4cf5b6(0x246)][_0x4cf5b6(0x227)](_0x2de155);}[_0x57fc50(0x20a)](_0x388e40,_0x27931e){const _0x236d71=_0x57fc50;this[_0x236d71(0x246)][_0x236d71(0x20a)](_0x388e40,_0x27931e);}[_0x57fc50(0x1e2)](_0x42c7ed,_0xc8807e,_0x155126){const _0x3a928b=_0x57fc50;return this[_0x3a928b(0x246)][_0x3a928b(0x1e2)](_0x42c7ed,_0xc8807e,_0x155126);}[_0x57fc50(0x1e6)](_0x392440){const _0x32a2d7=_0x57fc50;this[_0x32a2d7(0x246)][_0x32a2d7(0x1e6)](_0x392440);}[_0x57fc50(0x1e5)](_0x5a6cf9){const _0x2d7588=_0x57fc50;this[_0x2d7588(0x237)][_0x2d7588(0x1e5)](_0x5a6cf9);}[_0x57fc50(0x244)](){const _0x6cd25f=_0x57fc50;this[_0x6cd25f(0x237)][_0x6cd25f(0x244)]();}[_0x57fc50(0x1f5)](_0x1d6e26){const _0x1fb57b=_0x57fc50;this[_0x1fb57b(0x237)][_0x1fb57b(0x1f5)](_0x1d6e26);}[_0x57fc50(0x20f)](){const _0x524157=_0x57fc50;this[_0x524157(0x237)][_0x524157(0x20f)]();}[_0x57fc50(0x22e)](){const _0x55a7e5=_0x57fc50;return this[_0x55a7e5(0x246)][_0x55a7e5(0x22e)]();}[_0x57fc50(0x1d5)](){const _0x734193=_0x57fc50;return this[_0x734193(0x246)][_0x734193(0x1d5)]();}[_0x57fc50(0x217)](){const _0x4a93a2=_0x57fc50;return this[_0x4a93a2(0x246)][_0x4a93a2(0x217)]();}async[_0x57fc50(0x1db)](_0x3076aa){const _0x5a8e39=_0x57fc50;_0x3076aa?!0x1===await this[_0x5a8e39(0x226)][_0x5a8e39(0x1d6)](_0x3076aa)&&(_0x3ba850(_0x5a8e39(0x222),{'conversation':this,'model':_0x3076aa}),_0x3076aa=(await this[_0x5a8e39(0x226)][_0x5a8e39(0x24f)]())[0x0]):(_0x3ba850(_0x5a8e39(0x208),{'conversation':this}),_0x3076aa=(await this[_0x5a8e39(0x226)][_0x5a8e39(0x24f)]())[0x0]),_0x3076aa['id']!==this[_0x5a8e39(0x219)]?.['id']&&(this[_0x5a8e39(0x219)]=_0x3076aa,this[_0x5a8e39(0x237)][_0x5a8e39(0x1ef)](),this[_0x5a8e39(0x218)](_0x5a8e39(0x1fe),{'selectedModel':_0x3076aa}));}}
|
|
23
|
+
const _0x4dc5c4=_0x3c7b;(function(_0x422e42,_0x3d2f2f){const _0x57145d=_0x3c7b,_0xe9712a=_0x422e42();while(!![]){try{const _0x14dd69=parseInt(_0x57145d(0x1f9))/0x1+parseInt(_0x57145d(0x21a))/0x2*(-parseInt(_0x57145d(0x20e))/0x3)+parseInt(_0x57145d(0x1fa))/0x4+-parseInt(_0x57145d(0x259))/0x5+-parseInt(_0x57145d(0x245))/0x6+-parseInt(_0x57145d(0x257))/0x7+parseInt(_0x57145d(0x21f))/0x8;if(_0x14dd69===_0x3d2f2f)break;else _0xe9712a['push'](_0xe9712a['shift']());}catch(_0x462fbf){_0xe9712a['push'](_0xe9712a['shift']());}}}(_0x3759,0xeef19));import{CKEditorError as _0x30fc02,EmitterMixin as _0x3115ec,logWarning as _0x52680a}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x582dcd}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x40ebe5,AI_CONTEXT_MODEL_EVENT_NAMES as _0x6f40a4}from'./aichatcontext.js';import{AICapabilities as _0x48ddd8,CAPABILITIES_MODEL_EVENT_NAMES as _0x286034}from'../../aicore/model/aicapabilities.js';function _0x3759(){const _0x65ea76=['1014781hfbvRJ','2784676jvqLsT','code','conversationStarted','conversationInitialized','currentReply','start','modification','error','lastInteraction','type','delegate','loadSourceResources','user','_extractContextItems','interactions','getConversation','ai-chat-conversation-already-started','ai-chat-handle-user-conversation-not-initialized','getPendingContextItems','modelSelected','222lGDDVi','push','chatContext','hasOwn','isStarted','addFilesToContext','getAvailableModels','getEditor','ai-chat-conversation-set-model-not-available','isCurrentDocumentInConversation','removeFromContext','webSearch','47462trjPzg','addToConversationContext','ai-chat-conversation-init-failed','updateCurrentDocument','indexOf','20670176pripyw','removeSelectionFromContext','updateCurrentDocumentInContext','ai-chat-conversation-init-from-id-failed','getMessages','options','isAvailable','handleUserInteraction','url','group','splice','getCapabilitiesConfig','parse','reset','removeInteraction','interactionCreated','fetchConversation','destroy','model','setWebSearch','get','content','find','ai-chat-handle-user-interaction-already-in-progress','stack','assistant','addUrlToContext','addToolItemToContext','init','addSelectionToContext','mcp-tool-result','_handleToolResultData','createReply','message','selectedModelId','isFromHistory','set','length','5451414sFvzFq','createInteraction','selectedModel','toggleReasoning','attributes','setReasoning','reasoning','toolName','fetchConversationMessages','getAll','ai-chat-conversation-set-model-null','ai-chat-conversation-start-failed','conversationId','toggleWebSearch','isSelectionInContext','load','setConversationTitle','isCurrentDocumentInContext','3053309GFncoh','capabilities','1075795HiHVcr','addCurrentDocumentToContext','getInteraction','role','sessionId','getModel','title','connector','appendContent','populateFromMessage','getCurrentDocumentContext','setModel','chatModels','contextItems','_processMessagesToInteractions','addResourceToContext','fire','toLowerCase','prompt','currentInteraction','ai-chat-conversation-start-no-model-selected','sources','text','chatCapabilities','ai-chat-handle-user-interaction-start-failed','startConversation','getDocumentContext','stop'];_0x3759=function(){return _0x65ea76;};return _0x3759();}import{AIChatInteraction as _0x57978a}from'./aichatinteraction.js';import{errorsMap as _0x212693}from'../../errorsmap.js';function _0x3c7b(_0x3ff803,_0x5bccf7){const _0x375998=_0x3759();return _0x3c7b=function(_0x3c7b76,_0x312bd4){_0x3c7b76=_0x3c7b76-0x1f0;let _0x55c860=_0x375998[_0x3c7b76];return _0x55c860;},_0x3c7b(_0x3ff803,_0x5bccf7);}export class AIChatConversation extends _0x3115ec(){['id'];[_0x4dc5c4(0x212)]=!0x1;[_0x4dc5c4(0x242)];[_0x4dc5c4(0x208)]=[];[_0x4dc5c4(0x1f0)];[_0x4dc5c4(0x247)];[_0x4dc5c4(0x260)];[_0x4dc5c4(0x224)];constructor(_0x53c80b){const _0x523b6c=_0x4dc5c4;super(),this[_0x523b6c(0x224)]=_0x53c80b,this[_0x523b6c(0x260)]=_0x53c80b[_0x523b6c(0x260)],this[_0x523b6c(0x265)]=_0x53c80b[_0x523b6c(0x265)],this['id']=_0x53c80b[_0x523b6c(0x251)],this[_0x523b6c(0x242)]=_0x53c80b[_0x523b6c(0x242)];}async[_0x4dc5c4(0x23b)](_0x4fd69b){const _0x3cf830=_0x4dc5c4;try{this[_0x3cf830(0x210)]=new _0x40ebe5({'connector':this[_0x3cf830(0x260)],'config':_0x4fd69b,'ownerId':this['id']}),this[_0x3cf830(0x210)][_0x3cf830(0x204)](..._0x6f40a4)['to'](this),this[_0x3cf830(0x210)][_0x3cf830(0x23b)](),this[_0x3cf830(0x1f4)]=new _0x48ddd8(),this[_0x3cf830(0x1f4)][_0x3cf830(0x204)](..._0x286034)['to'](this),this[_0x3cf830(0x1f4)][_0x3cf830(0x23b)]();const _0x107f59=await this[_0x3cf830(0x265)][_0x3cf830(0x214)]();this[_0x3cf830(0x269)](_0x3cf830(0x1fd),{'availableModels':_0x107f59});const _0x297eb8=await this[_0x3cf830(0x265)][_0x3cf830(0x25e)](this[_0x3cf830(0x224)][_0x3cf830(0x241)]);_0x297eb8&&await this[_0x3cf830(0x264)](_0x297eb8);}catch(_0x454b01){const _0x24e739=new _0x30fc02(_0x3cf830(0x21c),null,{'message':_0x454b01[_0x3cf830(0x240)]||_0x454b01});_0x24e739[_0x3cf830(0x237)]=_0x454b01[_0x3cf830(0x237)],this[_0x3cf830(0x269)](_0x3cf830(0x201),{'error':_0x24e739});}}async[_0x4dc5c4(0x1ff)](){const _0x3d86b5=_0x4dc5c4;if(this[_0x3d86b5(0x212)])throw new _0x30fc02(_0x3d86b5(0x20a),null,{'conversation':this});if(!this[_0x3d86b5(0x247)])throw new _0x30fc02(_0x3d86b5(0x1f1),null,{'conversation':this});try{const {id:_0x12f989}=await this[_0x3d86b5(0x260)][_0x3d86b5(0x1f6)](this['id'],this[_0x3d86b5(0x224)][_0x3d86b5(0x228)])[_0x3d86b5(0x209)]();this['id']=_0x12f989,this[_0x3d86b5(0x212)]=!0x0,this[_0x3d86b5(0x269)](_0x3d86b5(0x1fc),{'conversationId':this['id'],'selectedModel':this[_0x3d86b5(0x247)]});}catch(_0x5335cd){const _0x17e87d=new _0x30fc02(_0x3d86b5(0x250),null,{'message':_0x5335cd[_0x3d86b5(0x240)],'conversationId':this['id']});throw _0x17e87d[_0x3d86b5(0x237)]=_0x5335cd[_0x3d86b5(0x237)],this[_0x3d86b5(0x269)](_0x3d86b5(0x201),{'error':_0x17e87d}),_0x17e87d;}}async[_0x4dc5c4(0x254)](_0x1ecaac,_0x3d19a2){const _0x3b8a70=_0x4dc5c4;try{const _0x26c101=await this[_0x3b8a70(0x260)][_0x3b8a70(0x22f)](_0x1ecaac)[_0x3b8a70(0x209)](),_0x50bdb1=await this[_0x3b8a70(0x260)][_0x3b8a70(0x24d)](_0x1ecaac)[_0x3b8a70(0x223)](),_0x37876c=_0x50bdb1[0x0][_0x3b8a70(0x231)];this[_0x3b8a70(0x212)]=!0x0,this['id']=_0x26c101['id'],_0x3b8a70(0x25f)in _0x26c101?this[_0x3b8a70(0x269)](_0x3b8a70(0x255),_0x26c101[_0x3b8a70(0x25f)],!0x0):this[_0x3b8a70(0x269)](_0x3b8a70(0x255),'',!0x0);const _0xee36f1=(await this[_0x3b8a70(0x265)][_0x3b8a70(0x24e)]())[_0x3b8a70(0x235)](_0x491649=>_0x491649['id'][_0x3b8a70(0x26a)]()===_0x37876c[_0x3b8a70(0x26a)]());return this[_0x3b8a70(0x247)]=_0xee36f1,this[_0x3b8a70(0x269)](_0x3b8a70(0x20d),{'selectedModel':_0xee36f1,'isDisabled':!0x0}),await this[_0x3b8a70(0x267)](_0x50bdb1,_0x3d19a2,_0x37876c),this[_0x3b8a70(0x1f0)]=void 0x0,this;}catch(_0x23bf3d){const _0xb59be=new _0x30fc02(_0x3b8a70(0x222),null,{'message':_0x23bf3d[_0x3b8a70(0x240)],'conversationId':_0x1ecaac});throw _0xb59be[_0x3b8a70(0x237)]=_0x23bf3d[_0x3b8a70(0x237)],this[_0x3b8a70(0x269)](_0x3b8a70(0x201),{'error':_0xb59be}),_0xb59be;}}async[_0x4dc5c4(0x267)](_0x4fcd68,_0x248665,_0x18bfca){const _0x582ec3=_0x4dc5c4;let _0x55fcaf;for(const _0x181611 of _0x4fcd68)if(_0x582ec3(0x206)===_0x181611[_0x582ec3(0x25c)]){const _0x2bd3f4=await this[_0x582ec3(0x207)](_0x181611),_0x270931={'isReasoningEnabled':Object[_0x582ec3(0x211)](_0x181611[_0x582ec3(0x258)],_0x582ec3(0x24b)),'isWebSearchEnabled':Object[_0x582ec3(0x211)](_0x181611[_0x582ec3(0x258)],_0x582ec3(0x219))};_0x55fcaf=this[_0x582ec3(0x246)]({'userMessage':_0x181611[_0x582ec3(0x26b)],'contextItems':_0x2bd3f4,'capabilities':_0x270931,'modelId':_0x18bfca,'attributes':_0x181611[_0x582ec3(0x249)]}),this[_0x582ec3(0x1f0)]=_0x55fcaf,this[_0x582ec3(0x210)][_0x582ec3(0x21b)](this[_0x582ec3(0x1f0)][_0x582ec3(0x266)]);}else{if(_0x582ec3(0x238)===_0x181611[_0x582ec3(0x25c)]&&_0x55fcaf){const _0xb123d9=[];for(const _0x2ffd00 of _0x181611[_0x582ec3(0x234)])switch(_0x2ffd00[_0x582ec3(0x203)]){case _0x582ec3(0x1f3):case _0x582ec3(0x200):{const _0x3a1afa=_0x55fcaf[_0x582ec3(0x1f7)]()?.[_0x582ec3(0x25d)]!==_0x248665;_0x55fcaf[_0x582ec3(0x1fe)]=_0x55fcaf[_0x582ec3(0x23f)]({'type':_0x2ffd00[_0x582ec3(0x203)],'isDone':!0x0,'interactionId':_0x55fcaf['id'],'areActionsDisabled':_0x3a1afa}),_0x55fcaf[_0x582ec3(0x1fe)][_0x582ec3(0x261)](_0x2ffd00[_0x582ec3(0x234)]),_0xb123d9[_0x582ec3(0x244)]>0x0&&(_0x55fcaf[_0x582ec3(0x1fe)][_0x582ec3(0x1f2)]=_0xb123d9[_0x582ec3(0x229)](0x0));break;}case _0x582ec3(0x227):_0xb123d9[_0x582ec3(0x20f)](_0x2ffd00);break;case _0x582ec3(0x23d):{const {data:_0xe8dfe5,attributes:_0x53fd47}=JSON[_0x582ec3(0x22b)](_0x2ffd00[_0x582ec3(0x234)]);_0x55fcaf[_0x582ec3(0x23e)]({'toolName':_0x2ffd00[_0x582ec3(0x24c)],'data':_0xe8dfe5,'attributes':_0x53fd47});break;}}}}}async[_0x4dc5c4(0x207)](_0x2c373f){const _0x1f5c65=_0x4dc5c4,_0x58932e=new Map();if(!_0x2c373f[_0x1f5c65(0x234)])return _0x58932e;for(const _0x2dd44f of _0x2c373f[_0x1f5c65(0x234)]){const _0x4e97e4=await this[_0x1f5c65(0x210)][_0x1f5c65(0x262)](_0x2dd44f);_0x4e97e4&&_0x58932e[_0x1f5c65(0x243)](_0x4e97e4['id'],_0x4e97e4);}return _0x58932e;}async[_0x4dc5c4(0x226)]({userMessage:_0x32e24e,attributes:_0x507635}){const _0x51022a=_0x4dc5c4;if(!this[_0x51022a(0x212)])throw new _0x30fc02(_0x51022a(0x20b),null,{'conversation':this});if(this[_0x51022a(0x1f0)])throw new _0x30fc02(_0x51022a(0x236),null,{'conversation':this});try{const _0x4b71ba=this[_0x51022a(0x210)][_0x51022a(0x20c)](),_0x20cc93=this[_0x51022a(0x1f4)][_0x51022a(0x22a)](),_0x478d2c=this[_0x51022a(0x247)]['id'];this[_0x51022a(0x1f0)]=this[_0x51022a(0x246)]({'userMessage':_0x32e24e,'contextItems':_0x4b71ba,'capabilities':_0x20cc93,'modelId':_0x478d2c,'attributes':_0x507635}),await this[_0x51022a(0x1f0)][_0x51022a(0x1ff)](),this[_0x51022a(0x210)][_0x51022a(0x21b)](this[_0x51022a(0x1f0)][_0x51022a(0x266)]);}catch(_0x461196){if(_0x461196 instanceof _0x30fc02)this[_0x51022a(0x269)](_0x51022a(0x201),{'interactionId':this[_0x51022a(0x1f0)]?this[_0x51022a(0x1f0)]['id']:void 0x0,'error':_0x461196});else{const _0x5ae4b3=_0x212693[_0x51022a(0x233)](_0x461196[_0x51022a(0x1fb)])||_0x51022a(0x1f5);this[_0x51022a(0x269)](_0x51022a(0x201),{'interactionId':this[_0x51022a(0x1f0)]?this[_0x51022a(0x1f0)]['id']:void 0x0,'error':new _0x30fc02(_0x5ae4b3,null,{'error':_0x461196})});}}finally{this[_0x51022a(0x1f0)]?.[_0x51022a(0x1f8)](),this[_0x51022a(0x1f0)]=void 0x0;}}[_0x4dc5c4(0x246)]({userMessage:_0x29523d,contextItems:_0x2e1424,capabilities:_0xa6bb88,modelId:_0x50d5b1,attributes:_0x1f01ab}){const _0x20f8e0=_0x4dc5c4,_0x5a3d9d=new _0x57978a({'userMessage':_0x29523d,'contextItems':_0x2e1424,'capabilities':_0xa6bb88,'conversationId':this['id'],'connector':this[_0x20f8e0(0x260)],'editor':this[_0x20f8e0(0x224)][_0x20f8e0(0x215)]&&this[_0x20f8e0(0x224)][_0x20f8e0(0x215)](),'model':_0x50d5b1,'attributes':_0x1f01ab});return _0x5a3d9d[_0x20f8e0(0x204)](..._0x582dcd)['to'](this),this[_0x20f8e0(0x208)][_0x20f8e0(0x20f)](_0x5a3d9d),this[_0x20f8e0(0x269)](_0x20f8e0(0x22e),_0x5a3d9d),_0x5a3d9d;}[_0x4dc5c4(0x25b)](_0x2db809){const _0x117e89=_0x4dc5c4;return this[_0x117e89(0x208)][_0x117e89(0x235)](_0x5ddd6a=>_0x5ddd6a['id']===_0x2db809);}[_0x4dc5c4(0x22d)](_0x403758){const _0x456ee0=_0x4dc5c4,_0x140a38=this[_0x456ee0(0x25b)](_0x403758);_0x140a38&&(_0x140a38[_0x456ee0(0x230)](),this[_0x456ee0(0x208)][_0x456ee0(0x229)](this[_0x456ee0(0x208)][_0x456ee0(0x21e)](_0x140a38),0x1));}get[_0x4dc5c4(0x202)](){const _0x23eca1=_0x4dc5c4;return this[_0x23eca1(0x208)][this[_0x23eca1(0x208)][_0x23eca1(0x244)]-0x1];}[_0x4dc5c4(0x25a)](_0x1ed514){const _0x45ba9d=_0x4dc5c4;this[_0x45ba9d(0x210)][_0x45ba9d(0x25a)](_0x1ed514);}async[_0x4dc5c4(0x221)]({content:_0x39dc0e,version:_0x5ea340,sessionId:_0x3faf4f,selections:_0x3db1ac}){const _0x2de55f=_0x4dc5c4;await this[_0x2de55f(0x210)][_0x2de55f(0x21d)](_0x39dc0e,_0x5ea340,_0x3faf4f,_0x3db1ac);}[_0x4dc5c4(0x263)](){const _0x43b28e=_0x4dc5c4;return this[_0x43b28e(0x1f0)]?.[_0x43b28e(0x1f7)]()?.[_0x43b28e(0x234)]||'';}[_0x4dc5c4(0x23c)](_0x477ae4){const _0x2526d7=_0x4dc5c4;this[_0x2526d7(0x210)][_0x2526d7(0x23c)](_0x477ae4);}[_0x4dc5c4(0x220)](){const _0x334f49=_0x4dc5c4;this[_0x334f49(0x210)][_0x334f49(0x220)]();}[_0x4dc5c4(0x213)](_0x5d9627){const _0x3cb51b=_0x4dc5c4;this[_0x3cb51b(0x210)][_0x3cb51b(0x213)](_0x5d9627);}[_0x4dc5c4(0x239)](_0x1a40fd){const _0x41b03a=_0x4dc5c4;this[_0x41b03a(0x210)][_0x41b03a(0x239)](_0x1a40fd);}[_0x4dc5c4(0x23a)](_0x6478c){const _0x11c63a=_0x4dc5c4;this[_0x11c63a(0x210)][_0x11c63a(0x23a)](_0x6478c);}[_0x4dc5c4(0x268)](_0x8ad06b,_0x1048fc){const _0x9a1b5=_0x4dc5c4;this[_0x9a1b5(0x210)][_0x9a1b5(0x268)](_0x8ad06b,_0x1048fc);}[_0x4dc5c4(0x205)](_0x3a5380,_0x4e14a2,_0x48a4f2){const _0x5b62a4=_0x4dc5c4;return this[_0x5b62a4(0x210)][_0x5b62a4(0x205)](_0x3a5380,_0x4e14a2,_0x48a4f2);}[_0x4dc5c4(0x218)](_0x5e4bba){const _0x39b847=_0x4dc5c4;this[_0x39b847(0x210)][_0x39b847(0x218)](_0x5e4bba);}[_0x4dc5c4(0x232)](_0x5a5576){const _0x213777=_0x4dc5c4;this[_0x213777(0x1f4)][_0x213777(0x232)](_0x5a5576);}[_0x4dc5c4(0x252)](){const _0x53dfa8=_0x4dc5c4;this[_0x53dfa8(0x1f4)][_0x53dfa8(0x252)]();}[_0x4dc5c4(0x24a)](_0x164784){const _0x4b74e4=_0x4dc5c4;this[_0x4b74e4(0x1f4)][_0x4b74e4(0x24a)](_0x164784);}[_0x4dc5c4(0x248)](){const _0x4e33bf=_0x4dc5c4;this[_0x4e33bf(0x1f4)][_0x4e33bf(0x248)]();}[_0x4dc5c4(0x256)](){const _0x306fda=_0x4dc5c4;return this[_0x306fda(0x210)][_0x306fda(0x256)]();}[_0x4dc5c4(0x217)](){const _0x89ce49=_0x4dc5c4;return this[_0x89ce49(0x210)][_0x89ce49(0x217)]();}[_0x4dc5c4(0x253)](){const _0x335fc8=_0x4dc5c4;return this[_0x335fc8(0x210)][_0x335fc8(0x253)]();}async[_0x4dc5c4(0x264)](_0x4bbad1){const _0x49865d=_0x4dc5c4;_0x4bbad1?!0x1===await this[_0x49865d(0x265)][_0x49865d(0x225)](_0x4bbad1)&&(_0x52680a(_0x49865d(0x216),{'conversation':this,'model':_0x4bbad1}),_0x4bbad1=(await this[_0x49865d(0x265)][_0x49865d(0x214)]())[0x0]):(_0x52680a(_0x49865d(0x24f),{'conversation':this}),_0x4bbad1=(await this[_0x49865d(0x265)][_0x49865d(0x214)]())[0x0]),_0x4bbad1['id']!==this[_0x49865d(0x247)]?.['id']&&(this[_0x49865d(0x247)]=_0x4bbad1,this[_0x49865d(0x1f4)][_0x49865d(0x22c)](),this[_0x49865d(0x269)](_0x49865d(0x20d),{'selectedModel':_0x4bbad1}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2a81bf=_0x5047;(function(_0xe17c0e,_0x205861){var _0x39c405=_0x5047,_0x162c8a=_0xe17c0e();while(!![]){try{var _0x1aeae9=-parseInt(_0x39c405(0x1e6))/0x1*(parseInt(_0x39c405(0x1db))/0x2)+parseInt(_0x39c405(0x1d5))/0x3+parseInt(_0x39c405(0x1ec))/0x4+parseInt(_0x39c405(0x1e8))/0x5*(-parseInt(_0x39c405(0x1dc))/0x6)+parseInt(_0x39c405(0x1d4))/0x7*(-parseInt(_0x39c405(0x1df))/0x8)+-parseInt(_0x39c405(0x1d6))/0x9*(-parseInt(_0x39c405(0x1d9))/0xa)+parseInt(_0x39c405(0x1e7))/0xb;if(_0x1aeae9===_0x205861)break;else _0x162c8a['push'](_0x162c8a['shift']());}catch(_0x315ff8){_0x162c8a['push'](_0x162c8a['shift']());}}}(_0x5666,0xe3ed9));import{AICapabilities as _0x341862}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0xd68f20}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x39a530}from'./aichatcontext.js';function _0x5047(_0x322d88,_0x12d4eb){var _0x566676=_0x5666();return _0x5047=function(_0x5047fb,_0x4afa4b){_0x5047fb=_0x5047fb-0x1d4;var _0x16aec2=_0x566676[_0x5047fb];return _0x16aec2;},_0x5047(_0x322d88,_0x12d4eb);}export class AIChatInteraction extends _0xd68f20{[_0x2a81bf(0x1da)];[_0x2a81bf(0x1e2)];[_0x2a81bf(0x1d8)]=new Map();[_0x2a81bf(0x1e9)];[_0x2a81bf(0x1eb)];constructor(_0x56ef5c){var _0x42fb2=_0x2a81bf;super(_0x56ef5c),this[_0x42fb2(0x1e2)]=_0x56ef5c[_0x42fb2(0x1e2)],this[_0x42fb2(0x1d8)]=_0x56ef5c[_0x42fb2(0x1d8)],this[_0x42fb2(0x1dd)]=_0x56ef5c[_0x42fb2(0x1dd)],this[_0x42fb2(0x1da)]=_0x56ef5c[_0x42fb2(0x1da)],this[_0x42fb2(0x1e9)]=_0x56ef5c[_0x42fb2(0x1e9)],this[_0x42fb2(0x1eb)]=_0x56ef5c[_0x42fb2(0x1eb)];}async[_0x2a81bf(0x1e5)](){var _0x4fc9a9=_0x2a81bf;return this[_0x4fc9a9(0x1e4)][_0x4fc9a9(0x1d7)]({'message':this[_0x4fc9a9(0x1da)],'conversationId':this[_0x4fc9a9(0x1e2)],'parts':_0x39a530[_0x4fc9a9(0x1e3)](this[_0x4fc9a9(0x1d8)]),'capabilities':_0x341862[_0x4fc9a9(0x1e1)](this[_0x4fc9a9(0x1dd)]),'model':this[_0x4fc9a9(0x1e9)],'attributes':this[_0x4fc9a9(0x1eb)]});}[_0x2a81bf(0x1de)](){var _0x4374f7=_0x2a81bf;return this[_0x4374f7(0x1d8)][_0x4374f7(0x1ea)](_0x4374f7(0x1e0));}}function _0x5666(){var _0x5bddd7=['10XNfyNN','userMessage','26INsQqT','28554GwvkfI','capabilities','getDocumentContext','1224328WweHuV','current-document','getCapabilitiesRequestData','conversationId','mapContextItemsToRequestData','connector','sendRequest','13913yrZQQE','9533832ldIBPt','1245VxWIBx','model','get','attributes','5566976xvUvHa','84pRxTAa','2354004DWXUIP','9835389oYpeWo','queryAssistant','contextItems'];_0x5666=function(){return _0x5bddd7;};return _0x5666();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x338a98=_0x1b91;(function(_0xc9bb9e,_0x467446){const _0x46acdd=_0x1b91,_0x269a80=_0xc9bb9e();while(!![]){try{const _0x11a900=-parseInt(_0x46acdd(0x201))/0x1*(parseInt(_0x46acdd(0x1f4))/0x2)+-parseInt(_0x46acdd(0x1d9))/0x3+-parseInt(_0x46acdd(0x1ed))/0x4+parseInt(_0x46acdd(0x1e7))/0x5+parseInt(_0x46acdd(0x225))/0x6+parseInt(_0x46acdd(0x206))/0x7+-parseInt(_0x46acdd(0x1fa))/0x8;if(_0x11a900===_0x467446)break;else _0x269a80['push'](_0x269a80['shift']());}catch(_0x1dfd7d){_0x269a80['push'](_0x269a80['shift']());}}}(_0x563d,0x35128));import{FocusTracker as _0x39a415,KeystrokeHandler as _0x4e01a4}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x1b53ef}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x96b20c}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x7331dd}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x355c70}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x37da37,FocusCycler as _0x2644a8,View as _0x246778}from'ckeditor5/src/ui.js';function _0x1b91(_0x816142,_0x2ebee7){const _0x563d84=_0x563d();return _0x1b91=function(_0x1b918f,_0x32c193){_0x1b918f=_0x1b918f-0x1d5;let _0x4a3f6d=_0x563d84[_0x1b918f];return _0x4a3f6d;},_0x1b91(_0x816142,_0x2ebee7);}import{AISuggestionContentPartStateView as _0x420bc7}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';function _0x563d(){const _0x2b53b3=['fire','setTemplate','_focusables','availableActions','setButtonsVisibility','1972920ghxqKn','isShowChangesOn','focus','ck-ai-chat-balloon__toolbar-container','toggleShowChanges','ck-ai-chat-balloon-main_state_','element','2sqiCsL','_config','_stateView','change:isTrackChangesOn','children','2471021ScWese','previousButtonView','insertSuggestion','render','_togglePartToolbarButtonsVisibility','showNext','shift\x20+\x20tab','toggleRotatorButtonsVisibility','setState','_streamableContentView','add','delegate','_errorView','_partToolbarView','set','_miniToolbarView','keepErrors','bindTemplate','isEnabled','full','showDiff','isVisible','rejectSuggestion','updateContent','AI_BALLOON_NEXT_LABEL','applySuggestion','locale','_isErrorVisible','focusLast','div','_state','1527444DkICTC','AI_BALLOON_PREVIOUS_LABEL','bind','showError','change:_state','_toolbarContainerView','265434MqfFYx','focusFirst','destroy','ck-ai-chat-balloon-main','_focusTracker','execute','showPrevious','toggleSuggestionDisplayMode','isTrackChangesOn','nextButtonView','pending','listenTo','update','includes','1826245JuJpmZ','focusCycler','showBlockingError','addMany','togglePartToolbarEnabled','_createPreviousButtonView','1105980QzIhty','tab','_keystrokes','hideError','has','_createNextButtonView','createCollection','143854qWytKJ'];_0x563d=function(){return _0x2b53b3;};return _0x563d();}import{IconChevronDown as _0x1ed729,IconChevronUp as _0x27017d}from'ckeditor5/src/icons.js';import{getTranslation as _0xaa5b0e}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x355c70{[_0x338a98(0x205)];[_0x338a98(0x1e2)];[_0x338a98(0x207)];[_0x338a98(0x1e8)];[_0x338a98(0x1f7)];[_0x338a98(0x1dd)];[_0x338a98(0x1ef)];[_0x338a98(0x202)];[_0x338a98(0x20f)];[_0x338a98(0x1d8)];[_0x338a98(0x213)];[_0x338a98(0x203)];[_0x338a98(0x215)];constructor(_0x30bad0,_0x448b0d){const _0x4f0563=_0x338a98;super(_0x30bad0);const _0x3844aa=this[_0x4f0563(0x217)];this[_0x4f0563(0x214)](_0x4f0563(0x21a),!0x1),this[_0x4f0563(0x214)](_0x4f0563(0x224),_0x4f0563(0x1e3)),this[_0x4f0563(0x1dd)]=new _0x39a415(),this[_0x4f0563(0x1ef)]=new _0x4e01a4(),this[_0x4f0563(0x1f7)]=this[_0x4f0563(0x1f3)](),this[_0x4f0563(0x1e8)]=new _0x2644a8({'focusables':this[_0x4f0563(0x1f7)],'focusTracker':this[_0x4f0563(0x1dd)],'keystrokeHandler':this[_0x4f0563(0x1ef)],'actions':{'focusPrevious':_0x4f0563(0x20c),'focusNext':_0x4f0563(0x1ee)}}),this[_0x4f0563(0x202)]=_0x448b0d,this[_0x4f0563(0x1e2)]=this[_0x4f0563(0x1f2)](),this[_0x4f0563(0x207)]=this[_0x4f0563(0x1ec)](),this[_0x4f0563(0x20f)]=new _0x1b53ef(_0x30bad0),this[_0x4f0563(0x213)]=new _0x96b20c(_0x30bad0,_0x448b0d[_0x4f0563(0x1f8)]),this[_0x4f0563(0x213)][_0x4f0563(0x211)](_0x4f0563(0x21f),_0x4f0563(0x208),_0x4f0563(0x21c))['to'](this),this[_0x4f0563(0x20a)](_0x448b0d),this[_0x4f0563(0x203)]=new _0x420bc7(_0x30bad0),this[_0x4f0563(0x203)][_0x4f0563(0x21b)]=!0x1,this[_0x4f0563(0x215)]=new _0x7331dd(_0x30bad0,{'showChanges':_0x4f0563(0x219)}),this[_0x4f0563(0x215)][_0x4f0563(0x1d5)](_0x4f0563(0x1fb))['to'](this,_0x4f0563(0x21a)),this[_0x4f0563(0x215)]['on'](_0x4f0563(0x1fe),()=>{const _0x25e141=_0x4f0563;this[_0x25e141(0x1f5)](_0x25e141(0x1e0));}),this[_0x4f0563(0x1d8)]=new ms(_0x30bad0,[this[_0x4f0563(0x213)],this[_0x4f0563(0x203)],this[_0x4f0563(0x215)]]),this[_0x4f0563(0x205)]=this[_0x4f0563(0x1f3)]([this[_0x4f0563(0x20f)],this[_0x4f0563(0x1d8)]]),this['on'](_0x4f0563(0x1d7),(_0x43607e,_0x437ed2,_0x47afef,_0x293918)=>{const _0x225c18=_0x4f0563;let _0xb293a1,_0x15c2a0;_0x225c18(0x1e3)===_0x293918?(_0xb293a1=this[_0x225c18(0x213)],_0x15c2a0=this[_0x225c18(0x203)]):(_0xb293a1=this[_0x225c18(0x203)],_0x15c2a0=this[_0x225c18(0x213)]),this[_0x225c18(0x203)][_0x225c18(0x20e)](_0x47afef),_0xb293a1[_0x225c18(0x21b)]=!0x1,_0x15c2a0[_0x225c18(0x21b)]=!0x0;}),this[_0x4f0563(0x1f6)]({'tag':_0x4f0563(0x223),'attributes':{'class':['ck',_0x4f0563(0x1dc),_0x3844aa['to'](_0x4f0563(0x224),_0x296bb6=>_0x4f0563(0x1ff)+_0x296bb6)]},'children':this[_0x4f0563(0x205)]}),this['on'](_0x4f0563(0x204),()=>{const _0x3644c6=_0x4f0563;this[_0x3644c6(0x20a)](_0x448b0d);});}[_0x338a98(0x209)](){const _0x2bfa20=_0x338a98;super[_0x2bfa20(0x209)](),this[_0x2bfa20(0x1e2)][_0x2bfa20(0x209)](),this[_0x2bfa20(0x207)][_0x2bfa20(0x209)](),this[_0x2bfa20(0x1dd)][_0x2bfa20(0x210)](this[_0x2bfa20(0x200)]),this[_0x2bfa20(0x1dd)][_0x2bfa20(0x210)](this[_0x2bfa20(0x1e2)]),this[_0x2bfa20(0x1dd)][_0x2bfa20(0x210)](this[_0x2bfa20(0x207)]),this[_0x2bfa20(0x1dd)][_0x2bfa20(0x210)](this[_0x2bfa20(0x215)]),this[_0x2bfa20(0x1dd)][_0x2bfa20(0x210)](this[_0x2bfa20(0x213)]),this[_0x2bfa20(0x1ef)][_0x2bfa20(0x1e4)](this[_0x2bfa20(0x200)]),this[_0x2bfa20(0x1ef)][_0x2bfa20(0x1e4)](this[_0x2bfa20(0x1e2)][_0x2bfa20(0x200)]),this[_0x2bfa20(0x1ef)][_0x2bfa20(0x1e4)](this[_0x2bfa20(0x207)][_0x2bfa20(0x200)]),this[_0x2bfa20(0x1f7)][_0x2bfa20(0x1ea)]([this[_0x2bfa20(0x1e2)],this[_0x2bfa20(0x207)],this[_0x2bfa20(0x213)],this[_0x2bfa20(0x215)]]);}[_0x338a98(0x1db)](){const _0x323ee0=_0x338a98;super[_0x323ee0(0x1db)](),this[_0x323ee0(0x207)][_0x323ee0(0x1db)](),this[_0x323ee0(0x1e2)][_0x323ee0(0x1db)]();}[_0x338a98(0x1fc)](){const _0x1c8636=_0x338a98;this[_0x1c8636(0x1e8)][_0x1c8636(0x1da)]();}[_0x338a98(0x222)](){const _0x4c8200=_0x338a98;this[_0x4c8200(0x1e8)][_0x4c8200(0x222)]();}async[_0x338a98(0x21d)](_0x52426c){const _0x5bb681=_0x338a98;_0x52426c?.[_0x5bb681(0x216)]||this[_0x5bb681(0x1f0)](),await this[_0x5bb681(0x20f)][_0x5bb681(0x1e5)](_0x52426c);}[_0x338a98(0x20e)](_0x1bf21c){const _0x4e768a=_0x338a98;this[_0x4e768a(0x224)]=_0x1bf21c;}[_0x338a98(0x1d6)](_0x2cd823){const _0x526865=_0x338a98;super[_0x526865(0x1d6)](_0x2cd823),this[_0x526865(0x205)][_0x526865(0x1f1)](this[_0x526865(0x212)])||this[_0x526865(0x205)][_0x526865(0x210)](this[_0x526865(0x212)],0x0);}[_0x338a98(0x1f0)](){const _0x1dd3ea=_0x338a98;this[_0x1dd3ea(0x221)]&&(super[_0x1dd3ea(0x1f0)](),this[_0x1dd3ea(0x1eb)](!0x0));}[_0x338a98(0x1e9)](_0x5487de){const _0x12ec37=_0x338a98;super[_0x12ec37(0x1e9)](_0x5487de),this[_0x12ec37(0x1eb)](!0x1);}[_0x338a98(0x20d)](_0x5944e0){const _0x358d40=_0x338a98;this[_0x358d40(0x1e2)][_0x358d40(0x21b)]=this[_0x358d40(0x207)][_0x358d40(0x21b)]=_0x5944e0;}[_0x338a98(0x1eb)](_0x3ccf4c){const _0x131ea3=_0x338a98;this[_0x131ea3(0x213)][_0x131ea3(0x218)]=_0x3ccf4c;}[_0x338a98(0x20a)]({showApplyButton:_0x5b235b,showSuggestButton:_0x1bd477}){const _0x1fa3a0=_0x338a98;_0x5b235b=_0x5b235b&&!this[_0x1fa3a0(0x1e1)]&&this[_0x1fa3a0(0x202)][_0x1fa3a0(0x1f8)][_0x1fa3a0(0x1e6)](_0x1fa3a0(0x21f)),_0x1bd477=_0x1bd477&&this[_0x1fa3a0(0x202)][_0x1fa3a0(0x1f8)][_0x1fa3a0(0x1e6)](_0x1fa3a0(0x208)),this[_0x1fa3a0(0x213)][_0x1fa3a0(0x1f9)]({'showApplyButton':_0x5b235b,'showSuggestButton':_0x1bd477});}[_0x338a98(0x1f2)](){const _0x2360c9=_0x338a98,_0x58be7a=new _0x37da37(this[_0x2360c9(0x220)]);return _0x58be7a[_0x2360c9(0x214)]({'icon':_0x1ed729,'label':_0xaa5b0e(this[_0x2360c9(0x220)],_0x2360c9(0x21e)),'isVisible':!0x0}),_0x58be7a['on'](_0x2360c9(0x1de),()=>{const _0x43f343=_0x2360c9;this[_0x43f343(0x1f5)](_0x43f343(0x20b));}),_0x58be7a;}[_0x338a98(0x1ec)](){const _0x57e31a=_0x338a98,_0x4f90ac=new _0x37da37(this[_0x57e31a(0x220)]);return _0x4f90ac[_0x57e31a(0x214)]({'icon':_0x27017d,'label':_0xaa5b0e(this[_0x57e31a(0x220)],_0x57e31a(0x226)),'isVisible':!0x0}),_0x4f90ac['on'](_0x57e31a(0x1de),()=>{const _0x1f1239=_0x57e31a;this[_0x1f1239(0x1f5)](_0x1f1239(0x1df));}),_0x4f90ac;}}class ms extends _0x246778{constructor(_0x598794,_0x2190b0){const _0x5dbc6a=_0x338a98;super(_0x598794),this[_0x5dbc6a(0x1f6)]({'tag':_0x5dbc6a(0x223),'attributes':{'class':[_0x5dbc6a(0x1fd)]},'children':_0x2190b0});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x375378=_0x48d0;(function(_0x46ef80,_0x5f02e4){const _0xa5754e=_0x48d0,_0x1f6e0a=_0x46ef80();while(!![]){try{const _0x743fb8=parseInt(_0xa5754e(0x1f8))/0x1*(parseInt(_0xa5754e(0x220))/0x2)+parseInt(_0xa5754e(0x22a))/0x3+parseInt(_0xa5754e(0x209))/0x4*(-parseInt(_0xa5754e(0x22c))/0x5)+-parseInt(_0xa5754e(0x1f5))/0x6*(-parseInt(_0xa5754e(0x20c))/0x7)+-parseInt(_0xa5754e(0x1f3))/0x8*(-parseInt(_0xa5754e(0x21c))/0x9)+parseInt(_0xa5754e(0x203))/0xa+-parseInt(_0xa5754e(0x200))/0xb;if(_0x743fb8===_0x5f02e4)break;else _0x1f6e0a['push'](_0x1f6e0a['shift']());}catch(_0x5533b8){_0x1f6e0a['push'](_0x1f6e0a['shift']());}}}(_0x549b,0x3106b));import{ButtonView as _0x25a7bb,clickOutsideHandler as _0x43184a,View as _0x478b4f}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x43c876}from'./controls/aichatpromptinputview.js';function _0x549b(){const _0x3d4be8=['selectModel','locale','_createModelUnavailableMessageView','1196472GrPGzM','bodyCollection','100515apMNiI','value','resetMessageInput','_promptInputView','isDisabled','ck-ai-chat-controls-disabled','reset','removeContextItem','_createContextPanelView','setConversationContext','change:isLoading','fieldView','_handlePromptInputFocus','isLoading','enableModelSelector','setPlaceholderText','focusPromptInput','setModel','ck-hidden','setReasoning','disableModelSelector','_shouldRestorePromptInputFocus','closeSourceResourceBalloon','setIsUploadInProgress','set','8zkzRHA','startConversation','1709742aiGEfp','setModelList','bindTemplate','18273APJgki','_loaderView','_createLoaderView','isModelAvailable','setInputPlaceholder','abortPromptStream','queryView','clearConversationContextItems','10276376SJxCJb','contextResourcesSearchInputVisibleFrom','ck-ai-chat-controls-model-unavailable-message','3906390EaSAal','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setTemplate','clearCurrentContextItems','toggleWebSearch','_promptCapabilitiesView','40mcqOha','clearConversationContextUI','element','7rmUofn','setAddContextOptions','execute','_modelUnavailableMessageView','sendUserMessage','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setWebSearch','addContextItem','div','toggleReasoning','form','addContextButtonView','populateSourceResourceBalloon','_contextPanelView','ck-ai-chat-controls__start-new-chat-button','clearPendingContextUI','2190276OrVqHA','low','updateResourceState','_createPromptCapabilitiesView','2jcOaPE','focus','_createPromptInputView','ck-ai-chat-controls','delegate','setContextItemLoading','setPromptInputValue'];_0x549b=function(){return _0x3d4be8;};return _0x549b();}import{AIChatPromptCapabilitiesView as _0x2837f5}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0xf995aa,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x10f959}from'./controls/aichatcontextpanelview.js';function _0x48d0(_0x2e5bad,_0xf2c0a8){const _0x549b7b=_0x549b();return _0x48d0=function(_0x48d084,_0x861a2){_0x48d084=_0x48d084-0x1f1;let _0xd8493d=_0x549b7b[_0x48d084];return _0xd8493d;},_0x48d0(_0x2e5bad,_0xf2c0a8);}import{AIChatControlsLoaderView as _0x2af1b7}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x31b121}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x478b4f{[_0x375378(0x219)];[_0x375378(0x22f)];[_0x375378(0x208)];[_0x375378(0x1f9)];[_0x375378(0x20f)];[_0x375378(0x241)];constructor(_0xeb9442,_0x3a6bae){const _0x4c3ee3=_0x375378;super(_0xeb9442),this[_0x4c3ee3(0x219)]=this[_0x4c3ee3(0x234)](_0xeb9442,{'bodyCollection':_0x3a6bae[_0x4c3ee3(0x22b)],'searchInputVisibleFrom':_0x3a6bae[_0x4c3ee3(0x201)]}),this[_0x4c3ee3(0x22f)]=this[_0x4c3ee3(0x222)](_0xeb9442),this[_0x4c3ee3(0x208)]=this[_0x4c3ee3(0x21f)](_0xeb9442),this[_0x4c3ee3(0x1f9)]=this[_0x4c3ee3(0x1fa)](_0xeb9442),this[_0x4c3ee3(0x20f)]=this[_0x4c3ee3(0x229)](_0xeb9442),this[_0x4c3ee3(0x241)]=!0x1,this[_0x4c3ee3(0x22f)][_0x4c3ee3(0x224)](_0x4c3ee3(0x210))['to'](this),this[_0x4c3ee3(0x1f9)][_0x4c3ee3(0x224)](_0x4c3ee3(0x1fd))['to'](this),this[_0x4c3ee3(0x208)][_0x4c3ee3(0x224)](_0x4c3ee3(0x207))['to'](this),this[_0x4c3ee3(0x208)][_0x4c3ee3(0x224)](_0x4c3ee3(0x215))['to'](this),this[_0x4c3ee3(0x208)][_0x4c3ee3(0x224)](_0x4c3ee3(0x227))['to'](this),this[_0x4c3ee3(0x219)][_0x4c3ee3(0x224)](..._0x10f959)['to'](this),this[_0x4c3ee3(0x1f2)](_0x4c3ee3(0x1fb),!0x0),this[_0x4c3ee3(0x1f2)](_0x4c3ee3(0x230),!0x1);const _0x44a1a3=this[_0x4c3ee3(0x1f7)];this[_0x4c3ee3(0x205)]({'tag':_0x4c3ee3(0x216),'attributes':{'class':['ck',_0x4c3ee3(0x223),_0x44a1a3['if'](_0x4c3ee3(0x230),_0x4c3ee3(0x231))]},'children':[{'tag':_0x4c3ee3(0x214),'attributes':{'class':[_0x44a1a3['if'](_0x4c3ee3(0x239),_0x4c3ee3(0x23e),_0x32cf0d=>_0x32cf0d||!this[_0x4c3ee3(0x1fb)]),_0x44a1a3['if'](_0x4c3ee3(0x1fb),_0x4c3ee3(0x23e),_0x3288e3=>!_0x3288e3||this[_0x4c3ee3(0x239)])]},'children':[this[_0x4c3ee3(0x219)],this[_0x4c3ee3(0x22f)],this[_0x4c3ee3(0x208)]]},{'tag':_0x4c3ee3(0x214),'attributes':{'class':[_0x44a1a3['if'](_0x4c3ee3(0x239),_0x4c3ee3(0x23e),_0x3cdb12=>!_0x3cdb12)]},'children':[this[_0x4c3ee3(0x1f9)]]},{'tag':_0x4c3ee3(0x214),'attributes':{'class':[_0x44a1a3['if'](_0x4c3ee3(0x1fb),_0x4c3ee3(0x23e),_0x1d08e4=>_0x1d08e4)]},'children':[this[_0x4c3ee3(0x20f)]]}]}),_0x43184a({'emitter':this[_0x4c3ee3(0x22f)],'activator':()=>this[_0x4c3ee3(0x239)],'contextElements':()=>[this[_0x4c3ee3(0x20b)]],'callback':()=>{const _0x4366fd=_0x4c3ee3;this[_0x4366fd(0x241)]=!0x1;}}),this['on'](_0x4c3ee3(0x236),this[_0x4c3ee3(0x238)],{'priority':_0x4c3ee3(0x21d)});}[_0x375378(0x234)](_0x3483a8,_0x54b70e){return new _0xf995aa(_0x3483a8,_0x54b70e);}[_0x375378(0x222)](_0x1b80e9){const _0x1e4762=_0x375378;return new _0x43c876(_0x1b80e9,this[_0x1e4762(0x219)][_0x1e4762(0x217)]);}[_0x375378(0x21f)](_0x14cdce){return new _0x2837f5(_0x14cdce);}[_0x375378(0x1fa)](_0x1a3878){return new _0x2af1b7(_0x1a3878);}[_0x375378(0x229)](_0x119a1d){const _0x1b639f=_0x375378,_0x51e111=new As(_0x119a1d);return _0x51e111[_0x1b639f(0x224)](_0x1b639f(0x1f4))['to'](this),_0x51e111;}[_0x375378(0x238)](_0x583eb3,_0x549b62,_0x26814f){const _0x19efef=_0x375378;_0x26814f?this[_0x19efef(0x241)]=!0x0:this[_0x19efef(0x241)]&&this[_0x19efef(0x22f)][_0x19efef(0x221)]();}[_0x375378(0x213)](_0x12d2c4,_0x280cae){const _0x31c08a=_0x375378;this[_0x31c08a(0x219)][_0x31c08a(0x213)](_0x12d2c4,_0x280cae);}[_0x375378(0x233)](_0x326950){const _0x1ca6c2=_0x375378;this[_0x1ca6c2(0x219)][_0x1ca6c2(0x233)](_0x326950);}[_0x375378(0x225)](_0x5bf24d,_0x541e00){const _0x4b2a3f=_0x375378;this[_0x4b2a3f(0x219)][_0x4b2a3f(0x225)](_0x5bf24d,_0x541e00);}[_0x375378(0x1f1)](_0x29a04a){const _0x13b741=_0x375378;this[_0x13b741(0x22f)][_0x13b741(0x1f1)](_0x29a04a);}[_0x375378(0x235)](_0x2207da){const _0x5b852d=_0x375378;this[_0x5b852d(0x219)][_0x5b852d(0x235)](_0x2207da);}[_0x375378(0x21b)](){const _0x12125e=_0x375378;this[_0x12125e(0x219)][_0x12125e(0x206)]();}[_0x375378(0x20a)](){const _0x214f8b=_0x375378;this[_0x214f8b(0x219)][_0x214f8b(0x1ff)]();}[_0x375378(0x21e)](_0x5b7296,_0x41e504,_0x2fa6e6){const _0x5e2c20=_0x375378;this[_0x5e2c20(0x219)][_0x5e2c20(0x21e)](_0x5b7296,_0x41e504,_0x2fa6e6);}[_0x375378(0x212)](_0x1734d1){const _0xb413d4=_0x375378;this[_0xb413d4(0x208)][_0xb413d4(0x212)](_0x1734d1);}[_0x375378(0x23f)](_0x1fd5fb){const _0x130245=_0x375378;this[_0x130245(0x208)][_0x130245(0x23f)](_0x1fd5fb);}[_0x375378(0x22e)](){const _0x174376=_0x375378;this[_0x174376(0x22f)][_0x174376(0x232)]();}[_0x375378(0x20d)](_0x15f268){const _0x3be24a=_0x375378;this[_0x3be24a(0x219)][_0x3be24a(0x20d)](_0x15f268);}[_0x375378(0x1fc)](_0x54006b){const _0x1ec7cb=_0x375378;this[_0x1ec7cb(0x22f)][_0x1ec7cb(0x23b)](_0x54006b);}[_0x375378(0x1f6)](_0x536194,_0x116a85){const _0xd5c29b=_0x375378;this[_0xd5c29b(0x208)][_0xd5c29b(0x1f6)](_0x536194,_0x116a85);}[_0x375378(0x23d)](_0x3fc5d3){const _0x1ef55d=_0x375378;_0x3fc5d3?(this[_0x1ef55d(0x1fb)]=!0x0,this[_0x1ef55d(0x208)][_0x1ef55d(0x23d)](_0x3fc5d3)):this[_0x1ef55d(0x1fb)]=!0x1;}[_0x375378(0x23a)](){const _0x29c1a5=_0x375378;this[_0x29c1a5(0x208)][_0x29c1a5(0x23a)]();}[_0x375378(0x240)](_0x2c7068){const _0x84dd1e=_0x375378;this[_0x84dd1e(0x208)][_0x84dd1e(0x240)](_0x2c7068);}[_0x375378(0x218)](_0x19a6fe,_0x4270ad,_0x5c6f76,_0xa81363){const _0x5bcd69=_0x375378;this[_0x5bcd69(0x219)][_0x5bcd69(0x218)](_0x19a6fe,_0x4270ad,_0x5c6f76,_0xa81363);}[_0x375378(0x242)](_0x5ddeea){const _0x3140c7=_0x375378;this[_0x3140c7(0x219)][_0x3140c7(0x242)](_0x5ddeea);}[_0x375378(0x23c)](_0x256c55=!0x1){const _0x49bfe9=_0x375378;this[_0x49bfe9(0x22f)][_0x49bfe9(0x221)](_0x256c55);}[_0x375378(0x226)](_0x3f73ed){const _0x103812=_0x375378;this[_0x103812(0x22f)][_0x103812(0x1fe)][_0x103812(0x237)][_0x103812(0x232)](),this[_0x103812(0x22f)][_0x103812(0x1fe)][_0x103812(0x237)][_0x103812(0x22d)]=_0x3f73ed;}}class As extends _0x478b4f{constructor(_0x4e68e2){const _0x500200=_0x375378;super(_0x4e68e2);const _0xbb8dfe=new _0x25a7bb(_0x4e68e2);_0xbb8dfe[_0x500200(0x1f2)]({'label':_0x31b121(this[_0x500200(0x228)],_0x500200(0x204)),'withText':!0x0,'class':[_0x500200(0x21a)],'tooltip':''}),_0xbb8dfe[_0x500200(0x224)](_0x500200(0x20e))['to'](this,_0x500200(0x1f4)),this[_0x500200(0x205)]({'tag':_0x500200(0x214),'attributes':{'class':['ck',_0x500200(0x202)]},'children':[{'tag':'p','children':[{'text':_0x31b121(this[_0x500200(0x228)],_0x500200(0x211))+'\x20'},_0xbb8dfe]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x3bce(){const _0x35f93d=['add','aiFeed','isLoadingSkeletonVisible','render','ck-ai-chat__loader','updateReplyItem','start','updateSources','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','destroy','extendTemplate','ai-chat-feed-view-item-not-a-suggestion-item','_setupTemplate','ai-chat-feed-view-item-not-a-reply-item','updateWebSources','_createLoaderChildren','1950776iEBBPV','541742wcASDZ','ai-suggestion-reply','scrollToSuggestion','setPartActive','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','find','updateSuggestionPartState','hasItem','custom-element','ck-ai-chat__feed__items','_bodyCollection','6277794TPFYkG','setLoadingMessage','options','4113669dlHYxQ','filter','ai-chat-feed-view-item-not-found','updatePartState','getPartView','_createTemplateChildren','locale','toggleLoadingSkeleton','getItemById','removeItem','map','isPending','forEach','_createSkeletonLoader','element','markAsDone','parentElement','isTrackChangesOn','updateContent','763HNRaLB','setSuggestionPartActive','stop','interaction-header','setTemplate','ck-hidden','ck-ai-chat__feed','markItemAsDone','ck-ai-chat__loader-text','getItemIds','stopAutoScroll','div','delegate','children','updateSuggestionItem','addItem','startAutoScroll','loadingMessage','includes','bindTemplate','2418560tyusTl','61448cxJOtT','createCollection','ai-reply','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','remove','span','_createFeedLoader','bind','7215360CcqWfx','scrollManager','_createFeedItems','set','isVisible','clear','user-message'];_0x3bce=function(){return _0x35f93d;};return _0x3bce();}const _0x594d1c=_0x3162;(function(_0x4da540,_0x5a9c5c){const _0x3d9030=_0x3162,_0x3565d4=_0x4da540();while(!![]){try{const _0x19d942=parseInt(_0x3d9030(0x178))/0x1+-parseInt(_0x3d9030(0x157))/0x2+parseInt(_0x3d9030(0x186))/0x3+parseInt(_0x3d9030(0x177))/0x4+parseInt(_0x3d9030(0x160))/0x5+-parseInt(_0x3d9030(0x183))/0x6+parseInt(_0x3d9030(0x199))/0x7*(-parseInt(_0x3d9030(0x158))/0x8);if(_0x19d942===_0x5a9c5c)break;else _0x3565d4['push'](_0x3565d4['shift']());}catch(_0x4b9f59){_0x3565d4['push'](_0x3565d4['shift']());}}}(_0x3bce,0xb754b));import{CKEditorError as _0x31e8d8,logWarning as _0x16a954,scrollAncestorsToShowTarget as _0x505e2e}from'ckeditor5/src/utils.js';import{View as _0x4f8e7f}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5b1db5}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x1f5f2e}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x136308}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x231af3}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x2ec86d}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x5b0851}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x3cb916}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4a0ba6,SKELETON_DEFINITIONS as _0x145ea4}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x59298f}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x4a762a}from'./feed/aichatfeedcustomelementview.js';function _0x3162(_0x4cef0,_0xd085d){const _0x3bce0a=_0x3bce();return _0x3162=function(_0x3162b2,_0x3e908e){_0x3162b2=_0x3162b2-0x14d;let _0x531297=_0x3bce0a[_0x3162b2];return _0x531297;},_0x3162(_0x4cef0,_0xd085d);}import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x4f8e7f{[_0x594d1c(0x150)];[_0x594d1c(0x161)];[_0x594d1c(0x182)];constructor(_0x22aa99,_0x13e75c){const _0x4dfca1=_0x594d1c;super(_0x22aa99),this[_0x4dfca1(0x182)]=_0x13e75c,this[_0x4dfca1(0x163)](_0x4dfca1(0x191),!0x1),this[_0x4dfca1(0x163)](_0x4dfca1(0x154),''),this[_0x4dfca1(0x163)](_0x4dfca1(0x169),!0x1),this[_0x4dfca1(0x163)](_0x4dfca1(0x197),!0x1),this[_0x4dfca1(0x150)]=this[_0x4dfca1(0x159)](),this[_0x4dfca1(0x150)][_0x4dfca1(0x14f)](..._0x5b1db5)['to'](this),this[_0x4dfca1(0x173)]();}[_0x594d1c(0x16a)](){const _0x5a7bfe=_0x594d1c;super[_0x5a7bfe(0x16a)](),this[_0x5a7bfe(0x161)]=new _0x3cb916(this[_0x5a7bfe(0x194)]);}[_0x594d1c(0x170)](){const _0x12d896=_0x594d1c;super[_0x12d896(0x170)](),this[_0x12d896(0x161)][_0x12d896(0x170)]();}[_0x594d1c(0x165)](){const _0x409197=_0x594d1c;this[_0x409197(0x150)][_0x409197(0x165)]();}[_0x594d1c(0x152)](_0x3108a1,_0x336ef9){const _0x38bb12=_0x594d1c;let _0x4f42cc;return _0x38bb12(0x15a)===_0x3108a1?_0x4f42cc=new _0x136308(this[_0x38bb12(0x18c)],_0x336ef9,this[_0x38bb12(0x182)]):_0x38bb12(0x179)===_0x3108a1?(_0x4f42cc=new _0x1f5f2e(this[_0x38bb12(0x18c)],_0x336ef9,this[_0x38bb12(0x182)]),_0x4f42cc[_0x38bb12(0x15f)](_0x38bb12(0x197))['to'](this)):_0x4f42cc=_0x38bb12(0x166)===_0x3108a1?new _0x231af3(this[_0x38bb12(0x18c)],_0x336ef9,this[_0x38bb12(0x182)]):_0x38bb12(0x19c)===_0x3108a1?new _0x5b0851(this[_0x38bb12(0x18c)],_0x336ef9):_0x38bb12(0x180)===_0x3108a1?new _0x4a762a(_0x336ef9):new _0x2ec86d(_0x336ef9),this[_0x38bb12(0x150)][_0x38bb12(0x167)](_0x4f42cc),_0x4f42cc;}async[_0x594d1c(0x16c)]({id:_0xa6e866,parsedContent:_0x29d3e0,renderingStrategy:_0x1f1d16,abortSignal:_0x3917e4}){const _0x1dcb92=_0x594d1c,_0x871d8a=this[_0x1dcb92(0x18e)](_0xa6e866);if(!(_0x871d8a instanceof _0x136308))throw new _0x31e8d8(_0x1dcb92(0x174),null,{'itemView':_0x871d8a,'id':_0xa6e866,'parsedContent':_0x29d3e0});await _0x871d8a[_0x1dcb92(0x198)]({'parsedContent':_0x29d3e0,'renderingStrategy':_0x1f1d16,'abortSignal':_0x3917e4});}async[_0x594d1c(0x175)](_0x2ac341,_0x5621c9){const _0x3c906f=_0x594d1c,_0x5b6e72=this[_0x3c906f(0x18e)](_0x2ac341);if(_0x5b6e72 instanceof _0x1f5f2e)_0x5b6e72[_0x3c906f(0x16e)](_0x5621c9);else{if(!(_0x5b6e72 instanceof _0x136308))throw new _0x31e8d8(_0x3c906f(0x17c),null,{'itemView':_0x5b6e72,'id':_0x2ac341,'sources':_0x5621c9});_0x5b6e72[_0x3c906f(0x16e)](_0x5621c9);}}async[_0x594d1c(0x151)]({id:_0x2fb796,parts:_0x22afc9,renderingStrategy:_0x3ab288,abortSignal:_0x3759b1}){const _0x2c64ef=_0x594d1c,_0xf9aa9e=this[_0x2c64ef(0x18e)](_0x2fb796);if(!(_0xf9aa9e instanceof _0x1f5f2e))throw new _0x31e8d8(_0x2c64ef(0x172),null,{'itemView':_0xf9aa9e,'id':_0x2fb796,'parts':_0x22afc9});await _0xf9aa9e[_0x2c64ef(0x198)]({'parts':_0x22afc9,'renderingStrategy':_0x3ab288,'abortSignal':_0x3759b1});}[_0x594d1c(0x17e)]({id:_0x22e4da,index:_0x5d2def,state:_0x56c4c2}){const _0x46e3c1=_0x594d1c,_0x199605=this[_0x46e3c1(0x18e)](_0x22e4da);if(!(_0x199605 instanceof _0x1f5f2e))throw new _0x31e8d8(_0x46e3c1(0x172),this,{'id':_0x22e4da});_0x199605[_0x46e3c1(0x189)](_0x5d2def,_0x56c4c2);}[_0x594d1c(0x19a)]({id:_0x13e86c,index:_0x3cde79,isActive:_0x245638}){const _0x58301a=_0x594d1c,_0x50254f=this[_0x58301a(0x18e)](_0x13e86c);if(!(_0x50254f instanceof _0x1f5f2e))throw new _0x31e8d8(_0x58301a(0x172),this,{'id':_0x13e86c});this[_0x58301a(0x150)][_0x58301a(0x187)](_0x8e0235=>_0x8e0235 instanceof _0x1f5f2e)[_0x58301a(0x192)](_0x116a92=>{const _0x545fe2=_0x58301a;_0x116a92[_0x545fe2(0x17b)](!0x1);}),_0x50254f[_0x58301a(0x17b)](_0x3cde79,_0x245638);}[_0x594d1c(0x1a0)](_0x58b0e7){const _0x263e3c=_0x594d1c;this[_0x263e3c(0x18e)](_0x58b0e7)[_0x263e3c(0x195)]();}[_0x594d1c(0x1a2)](){const _0xaf33e9=_0x594d1c;return this[_0xaf33e9(0x150)][_0xaf33e9(0x190)](_0x4dd17b=>_0x4dd17b[_0xaf33e9(0x185)]['id']);}[_0x594d1c(0x18f)](_0x33265a){const _0xf13597=_0x594d1c;this[_0xf13597(0x150)][_0xf13597(0x15c)](this[_0xf13597(0x18e)](_0x33265a));}[_0x594d1c(0x17f)](_0xdc425b){const _0x271684=_0x594d1c;return!!this[_0x271684(0x150)][_0x271684(0x17d)](_0x48b259=>_0x48b259[_0x271684(0x185)]['id'][_0x271684(0x155)](_0xdc425b));}[_0x594d1c(0x17a)](_0x46f8a7,_0x17f995){const _0x1f842c=_0x594d1c,_0x195fc5=this[_0x1f842c(0x18e)](_0x46f8a7);if(!(_0x195fc5 instanceof _0x1f5f2e))return void _0x16a954(_0x1f842c(0x16f),{'replyId':_0x46f8a7,'partIndex':_0x17f995});const _0x4d0431=_0x195fc5[_0x1f842c(0x18a)](_0x17f995);_0x4d0431?_0x505e2e(_0x4d0431[_0x1f842c(0x194)],0x14,this[_0x1f842c(0x194)][_0x1f842c(0x196)],!0x0,!0x0):_0x16a954(_0x1f842c(0x15b),{'replyId':_0x46f8a7,'partIndex':_0x17f995});}[_0x594d1c(0x173)](){const _0x438432=_0x594d1c;this[_0x438432(0x19d)]({'tag':_0x438432(0x14e),'attributes':{'class':['ck',_0x438432(0x19f)]},'children':this[_0x438432(0x18b)]()});}[_0x594d1c(0x18b)](){const _0x46b2b3=_0x594d1c,_0x2aeb4b=this[_0x46b2b3(0x193)]();return[this[_0x46b2b3(0x162)](),_0x2aeb4b,this[_0x46b2b3(0x15e)]()];}[_0x594d1c(0x193)](){const _0x26d8fc=_0x594d1c,_0x33d944=new _0x4a0ba6(this[_0x26d8fc(0x18c)],_0x145ea4[_0x26d8fc(0x168)]);return _0x33d944[_0x26d8fc(0x171)]({'attributes':{'class':[this[_0x26d8fc(0x156)]['if'](_0x26d8fc(0x169),_0x26d8fc(0x19e),_0x1d80cd=>!_0x1d80cd)]}}),_0x33d944;}[_0x594d1c(0x162)](){const _0x22f36e=_0x594d1c,_0xde2285=new _0x4f8e7f(this[_0x22f36e(0x18c)]);return _0xde2285[_0x22f36e(0x19d)]({'tag':_0x22f36e(0x14e),'attributes':{'class':['ck',_0x22f36e(0x181),this[_0x22f36e(0x156)]['if'](_0x22f36e(0x169),_0x22f36e(0x19e))]},'children':this[_0x22f36e(0x150)]}),_0xde2285;}[_0x594d1c(0x15e)](){const _0x532bf1=_0x594d1c,_0x2955ed=new _0x4f8e7f(this[_0x532bf1(0x18c)]);return _0x2955ed[_0x532bf1(0x19d)]({'tag':_0x532bf1(0x14e),'attributes':{'class':['ck',_0x532bf1(0x16b),this[_0x532bf1(0x156)]['if'](_0x532bf1(0x191),_0x532bf1(0x19e),_0x141a89=>!_0x141a89)]},'children':this[_0x532bf1(0x176)]()}),_0x2955ed;}[_0x594d1c(0x176)](){const _0x463bd5=_0x594d1c,_0x4441a1=new _0x59298f();return _0x4441a1[_0x463bd5(0x164)]=!0x0,[_0x4441a1,{'tag':_0x463bd5(0x15d),'attributes':{'class':['ck',_0x463bd5(0x1a1)]},'children':[{'text':this[_0x463bd5(0x156)]['to'](_0x463bd5(0x154))}]}];}[_0x594d1c(0x18e)](_0x35c216){const _0x1409df=_0x594d1c,_0xa43e79=this[_0x1409df(0x150)][_0x1409df(0x17d)](_0x42550e=>_0x42550e[_0x1409df(0x185)]['id'][_0x1409df(0x155)](_0x35c216));if(!_0xa43e79)throw new _0x31e8d8(_0x1409df(0x188),this,{'id':_0x35c216});return _0xa43e79;}[_0x594d1c(0x184)](_0x5ebdec){const _0x55eaa6=_0x594d1c;this[_0x55eaa6(0x163)](_0x55eaa6(0x154),_0x5ebdec);}[_0x594d1c(0x18d)](_0x13e6e2){const _0x3e4922=_0x594d1c;this[_0x3e4922(0x163)](_0x3e4922(0x169),_0x13e6e2);}[_0x594d1c(0x153)](){const _0x297cc1=_0x594d1c;this[_0x297cc1(0x161)][_0x297cc1(0x16d)]();}[_0x594d1c(0x14d)](){const _0x5a3a5b=_0x594d1c;this[_0x5a3a5b(0x161)][_0x5a3a5b(0x19b)]();}}
|
|
23
|
+
const _0x1ec9d6=_0x21ba;(function(_0x155ae4,_0x4e8838){const _0x2a4363=_0x21ba,_0x262668=_0x155ae4();while(!![]){try{const _0x53e1c0=parseInt(_0x2a4363(0xfb))/0x1+-parseInt(_0x2a4363(0xf5))/0x2*(parseInt(_0x2a4363(0xe3))/0x3)+-parseInt(_0x2a4363(0xcf))/0x4+parseInt(_0x2a4363(0xe5))/0x5*(parseInt(_0x2a4363(0xee))/0x6)+-parseInt(_0x2a4363(0xe2))/0x7*(parseInt(_0x2a4363(0xf1))/0x8)+parseInt(_0x2a4363(0xfe))/0x9+parseInt(_0x2a4363(0x10a))/0xa;if(_0x53e1c0===_0x4e8838)break;else _0x262668['push'](_0x262668['shift']());}catch(_0x3727cb){_0x262668['push'](_0x262668['shift']());}}}(_0x3686,0xec18a));function _0x21ba(_0x4fd999,_0x421a59){const _0x3686ac=_0x3686();return _0x21ba=function(_0x21ba47,_0x27e458){_0x21ba47=_0x21ba47-0xbc;let _0x59a09c=_0x3686ac[_0x21ba47];return _0x59a09c;},_0x21ba(_0x4fd999,_0x421a59);}import{CKEditorError as _0x16a1f3,logWarning as _0x1f546b,scrollAncestorsToShowTarget as _0x4eaacc}from'ckeditor5/src/utils.js';import{View as _0x2e2776}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2d3c6e}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x2c50c5}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x370201}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x16a3d7}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4ea8ef}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x20f0da}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x421741}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4b6116,SKELETON_DEFINITIONS as _0x570daa}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x39749d}from'../../aicore/ui/aispinner.js';function _0x3686(){const _0x3c0d18=['set','17342100ayKeKm','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','options','setLoadingMessage','_createFeedLoader','children','isVisible','scrollManager','_setupTemplate','markItemAsDone','ck-ai-chat__loader','forEach','_createSkeletonLoader','clear','updateSuggestionPartState','destroy','bindTemplate','hasItem','includes','map','updateContent','updateSuggestionItem','setSuggestionPartActive','isPending','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','user-message','ai-chat-feed-view-item-not-a-suggestion-item','custom-element','4876868ehWzPy','setPartActive','ck-ai-chat__feed__items','isLoadingSkeletonVisible','addItem','ck-hidden','_createLoaderChildren','createCollection','interaction-header','ai-reply','ck-ai-chat__loader-text','ck-ai-chat__feed','aiFeed','getItemIds','add','ai-chat-feed-view-item-not-a-reply-item','ai-suggestion-reply','stopAutoScroll','find','1617gygQep','1062069nMHVhj','updateWebSources','6675555CGZpBB','_createTemplateChildren','updatePartState','parentElement','start','remove','_createFeedItems','ai-chat-feed-view-item-not-found','updateReplyItem','6EgTJsC','markAsDone','loadingMessage','9752jxpxJV','div','startAutoScroll','bind','8aJsOmj','removeItem','filter','delegate','toggleLoadingSkeleton','scrollToSuggestion','373724ktzluT','getPartView','getItemById','3968127UZSAsT','isTrackChangesOn','render','setTemplate','extendTemplate','_bodyCollection','element','stop','updateSources','span','locale'];_0x3686=function(){return _0x3c0d18;};return _0x3686();}import{AIChatFeedCustomElementView as _0x142ab5}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x2e2776{[_0x1ec9d6(0x10f)];[_0x1ec9d6(0x111)];[_0x1ec9d6(0x103)];constructor(_0x27318e,_0x4c9036){const _0x219f0d=_0x1ec9d6;super(_0x27318e),this[_0x219f0d(0x103)]=_0x4c9036,this[_0x219f0d(0x109)](_0x219f0d(0xc9),!0x1),this[_0x219f0d(0x109)](_0x219f0d(0xf0),''),this[_0x219f0d(0x109)](_0x219f0d(0xd2),!0x1),this[_0x219f0d(0x109)](_0x219f0d(0xff),!0x1),this[_0x219f0d(0x10f)]=this[_0x219f0d(0xd6)](),this[_0x219f0d(0x10f)][_0x219f0d(0xf8)](..._0x2d3c6e)['to'](this),this[_0x219f0d(0x112)]();}[_0x1ec9d6(0x100)](){const _0x207820=_0x1ec9d6;super[_0x207820(0x100)](),this[_0x207820(0x111)]=new _0x421741(this[_0x207820(0x104)]);}[_0x1ec9d6(0xc1)](){const _0x14ff36=_0x1ec9d6;super[_0x14ff36(0xc1)](),this[_0x14ff36(0x111)][_0x14ff36(0xc1)]();}[_0x1ec9d6(0xbf)](){const _0x35aad7=_0x1ec9d6;this[_0x35aad7(0x10f)][_0x35aad7(0xbf)]();}[_0x1ec9d6(0xd3)](_0x34e2cf,_0x432f8){const _0x4d3452=_0x1ec9d6;let _0x21e6ff;return _0x4d3452(0xd8)===_0x34e2cf?_0x21e6ff=new _0x370201(this[_0x4d3452(0x108)],_0x432f8,this[_0x4d3452(0x103)]):_0x4d3452(0xdf)===_0x34e2cf?(_0x21e6ff=new _0x2c50c5(this[_0x4d3452(0x108)],_0x432f8,this[_0x4d3452(0x103)]),_0x21e6ff[_0x4d3452(0xf4)](_0x4d3452(0xff))['to'](this)):_0x21e6ff=_0x4d3452(0xcc)===_0x34e2cf?new _0x16a3d7(this[_0x4d3452(0x108)],_0x432f8,this[_0x4d3452(0x103)]):_0x4d3452(0xd7)===_0x34e2cf?new _0x20f0da(this[_0x4d3452(0x108)],_0x432f8):_0x4d3452(0xce)===_0x34e2cf?new _0x142ab5(_0x432f8):new _0x4ea8ef(_0x432f8),this[_0x4d3452(0x10f)][_0x4d3452(0xdd)](_0x21e6ff),_0x21e6ff;}async[_0x1ec9d6(0xed)]({id:_0x3f5edc,parsedContent:_0x439c25,renderingStrategy:_0x4a8b9f,abortSignal:_0x3b03d2}){const _0x44104e=_0x1ec9d6,_0x1f6065=this[_0x44104e(0xfd)](_0x3f5edc);if(!(_0x1f6065 instanceof _0x370201))throw new _0x16a1f3(_0x44104e(0xde),null,{'itemView':_0x1f6065,'id':_0x3f5edc,'parsedContent':_0x439c25});await _0x1f6065[_0x44104e(0xc6)]({'parsedContent':_0x439c25,'renderingStrategy':_0x4a8b9f,'abortSignal':_0x3b03d2});}async[_0x1ec9d6(0xe4)](_0x839e98,_0x66c2d7){const _0x47ddf3=_0x1ec9d6,_0x421667=this[_0x47ddf3(0xfd)](_0x839e98);if(_0x421667 instanceof _0x2c50c5)_0x421667[_0x47ddf3(0x106)](_0x66c2d7);else{if(!(_0x421667 instanceof _0x370201))throw new _0x16a1f3(_0x47ddf3(0xcb),null,{'itemView':_0x421667,'id':_0x839e98,'sources':_0x66c2d7});_0x421667[_0x47ddf3(0x106)](_0x66c2d7);}}async[_0x1ec9d6(0xc7)]({id:_0x245be2,parts:_0xd1a9b8,renderingStrategy:_0x189a27,abortSignal:_0x25a77b}){const _0x23e547=_0x1ec9d6,_0x38126a=this[_0x23e547(0xfd)](_0x245be2);if(!(_0x38126a instanceof _0x2c50c5))throw new _0x16a1f3(_0x23e547(0xcd),null,{'itemView':_0x38126a,'id':_0x245be2,'parts':_0xd1a9b8});await _0x38126a[_0x23e547(0xc6)]({'parts':_0xd1a9b8,'renderingStrategy':_0x189a27,'abortSignal':_0x25a77b});}[_0x1ec9d6(0xc0)]({id:_0x5dd999,index:_0x1af5b7,state:_0x112c69}){const _0x17aaa4=_0x1ec9d6,_0x46a9b5=this[_0x17aaa4(0xfd)](_0x5dd999);if(!(_0x46a9b5 instanceof _0x2c50c5))throw new _0x16a1f3(_0x17aaa4(0xcd),this,{'id':_0x5dd999});_0x46a9b5[_0x17aaa4(0xe7)](_0x1af5b7,_0x112c69);}[_0x1ec9d6(0xc8)]({id:_0x44edad,index:_0x4133ad,isActive:_0xa9c95d}){const _0x3b33a3=_0x1ec9d6,_0x2c8794=this[_0x3b33a3(0xfd)](_0x44edad);if(!(_0x2c8794 instanceof _0x2c50c5))throw new _0x16a1f3(_0x3b33a3(0xcd),this,{'id':_0x44edad});this[_0x3b33a3(0x10f)][_0x3b33a3(0xf7)](_0xf6a3e=>_0xf6a3e instanceof _0x2c50c5)[_0x3b33a3(0xbd)](_0xa2c27=>{const _0x27581d=_0x3b33a3;_0xa2c27[_0x27581d(0xd0)](!0x1);}),_0x2c8794[_0x3b33a3(0xd0)](_0x4133ad,_0xa9c95d);}[_0x1ec9d6(0x113)](_0x3d3ce7){const _0x39c236=_0x1ec9d6;this[_0x39c236(0xfd)](_0x3d3ce7)[_0x39c236(0xef)]();}[_0x1ec9d6(0xdc)](){const _0x4a6fdd=_0x1ec9d6;return this[_0x4a6fdd(0x10f)][_0x4a6fdd(0xc5)](_0x1d135a=>_0x1d135a[_0x4a6fdd(0x10c)]['id']);}[_0x1ec9d6(0xf6)](_0x507033){const _0x330d50=_0x1ec9d6;this[_0x330d50(0x10f)][_0x330d50(0xea)](this[_0x330d50(0xfd)](_0x507033));}[_0x1ec9d6(0xc3)](_0x1f398a){const _0x554854=_0x1ec9d6;return!!this[_0x554854(0x10f)][_0x554854(0xe1)](_0x3c9255=>_0x3c9255[_0x554854(0x10c)]['id'][_0x554854(0xc4)](_0x1f398a));}[_0x1ec9d6(0xfa)](_0x52270d,_0x5d3227){const _0x17b551=_0x1ec9d6,_0x5d1734=this[_0x17b551(0xfd)](_0x52270d);if(!(_0x5d1734 instanceof _0x2c50c5))return void _0x1f546b(_0x17b551(0x10b),{'replyId':_0x52270d,'partIndex':_0x5d3227});const _0x25c2b4=_0x5d1734[_0x17b551(0xfc)](_0x5d3227);_0x25c2b4?_0x4eaacc(_0x25c2b4[_0x17b551(0x104)],0x14,this[_0x17b551(0x104)][_0x17b551(0xe8)],!0x0,!0x0):_0x1f546b(_0x17b551(0xca),{'replyId':_0x52270d,'partIndex':_0x5d3227});}[_0x1ec9d6(0x112)](){const _0x5796c0=_0x1ec9d6;this[_0x5796c0(0x101)]({'tag':_0x5796c0(0xf2),'attributes':{'class':['ck',_0x5796c0(0xda)]},'children':this[_0x5796c0(0xe6)]()});}[_0x1ec9d6(0xe6)](){const _0x330cb1=_0x1ec9d6,_0x52a380=this[_0x330cb1(0xbe)]();return[this[_0x330cb1(0xeb)](),_0x52a380,this[_0x330cb1(0x10e)]()];}[_0x1ec9d6(0xbe)](){const _0x416e3f=_0x1ec9d6,_0x28baa2=new _0x4b6116(this[_0x416e3f(0x108)],_0x570daa[_0x416e3f(0xdb)]);return _0x28baa2[_0x416e3f(0x102)]({'attributes':{'class':[this[_0x416e3f(0xc2)]['if'](_0x416e3f(0xd2),_0x416e3f(0xd4),_0x483dcf=>!_0x483dcf)]}}),_0x28baa2;}[_0x1ec9d6(0xeb)](){const _0x70b1e0=_0x1ec9d6,_0x14226e=new _0x2e2776(this[_0x70b1e0(0x108)]);return _0x14226e[_0x70b1e0(0x101)]({'tag':_0x70b1e0(0xf2),'attributes':{'class':['ck',_0x70b1e0(0xd1),this[_0x70b1e0(0xc2)]['if'](_0x70b1e0(0xd2),_0x70b1e0(0xd4))]},'children':this[_0x70b1e0(0x10f)]}),_0x14226e;}[_0x1ec9d6(0x10e)](){const _0x5f1294=_0x1ec9d6,_0x5af40d=new _0x2e2776(this[_0x5f1294(0x108)]);return _0x5af40d[_0x5f1294(0x101)]({'tag':_0x5f1294(0xf2),'attributes':{'class':['ck',_0x5f1294(0xbc),this[_0x5f1294(0xc2)]['if'](_0x5f1294(0xc9),_0x5f1294(0xd4),_0x2d4bef=>!_0x2d4bef)]},'children':this[_0x5f1294(0xd5)]()}),_0x5af40d;}[_0x1ec9d6(0xd5)](){const _0x117742=_0x1ec9d6,_0x3b63dd=new _0x39749d();return _0x3b63dd[_0x117742(0x110)]=!0x0,[_0x3b63dd,{'tag':_0x117742(0x107),'attributes':{'class':['ck',_0x117742(0xd9)]},'children':[{'text':this[_0x117742(0xc2)]['to'](_0x117742(0xf0))}]}];}[_0x1ec9d6(0xfd)](_0x2b39c6){const _0x15f55b=_0x1ec9d6,_0x3f853e=this[_0x15f55b(0x10f)][_0x15f55b(0xe1)](_0x1b4cd4=>_0x1b4cd4[_0x15f55b(0x10c)]['id'][_0x15f55b(0xc4)](_0x2b39c6));if(!_0x3f853e)throw new _0x16a1f3(_0x15f55b(0xec),this,{'id':_0x2b39c6});return _0x3f853e;}[_0x1ec9d6(0x10d)](_0x560ec6){const _0x11862a=_0x1ec9d6;this[_0x11862a(0x109)](_0x11862a(0xf0),_0x560ec6);}[_0x1ec9d6(0xf9)](_0x29e5d3){const _0x5eb7d8=_0x1ec9d6;this[_0x5eb7d8(0x109)](_0x5eb7d8(0xd2),_0x29e5d3);}[_0x1ec9d6(0xf3)](){const _0x5a70c2=_0x1ec9d6;this[_0x5a70c2(0x111)][_0x5a70c2(0xe9)]();}[_0x1ec9d6(0xe0)](){const _0x6c033e=_0x1ec9d6;this[_0x6c033e(0x111)][_0x6c033e(0x105)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9b12fd=_0x580f;function _0x580f(_0x1cb4fb,_0x5d463e){const _0xec7ad7=_0xec7a();return _0x580f=function(_0x580f45,_0xe22e35){_0x580f45=_0x580f45-0x82;let _0x5368eb=_0xec7ad7[_0x580f45];return _0x5368eb;},_0x580f(_0x1cb4fb,_0x5d463e);}(function(_0x523869,_0x4629f9){const _0x46163f=_0x580f,_0x1bfa08=_0x523869();while(!![]){try{const _0x1dff1e=-parseInt(_0x46163f(0x93))/0x1+-parseInt(_0x46163f(0x86))/0x2+-parseInt(_0x46163f(0x99))/0x3+parseInt(_0x46163f(0x85))/0x4*(parseInt(_0x46163f(0x88))/0x5)+parseInt(_0x46163f(0x91))/0x6*(-parseInt(_0x46163f(0x9a))/0x7)+-parseInt(_0x46163f(0x84))/0x8*(parseInt(_0x46163f(0x8d))/0x9)+parseInt(_0x46163f(0x8c))/0xa;if(_0x1dff1e===_0x4629f9)break;else _0x1bfa08['push'](_0x1bfa08['shift']());}catch(_0x338208){_0x1bfa08['push'](_0x1bfa08['shift']());}}}(_0xec7a,0xe2c84));function _0xec7a(){const _0x1998d4=['set','387204OYEOni','startConversation','1732000QMzwsp','fire','conversationStartButton','isMaximized','ck-ai-chat__start-conversation','resizeButton','3577686JGyhuL','49FUJtjB','execute','_createStartConversationButton','14216hJPasV','8824aRaLmU','2764616wtkRTS','ck-ai-header\x20ck-ai-header_chat','855qEQVNl','children','add','AI_CHAT_HEADING','55857170pyHzPL','1395QXnJgz','AI_CHAT_LABEL_NEW_CHAT','locale'];_0xec7a=function(){return _0x1998d4;};return _0xec7a();}import{ButtonView as _0x560e98,FormHeaderView as _0x2068ca}from'ckeditor5/src/ui.js';import{IconPlus as _0x2d849a,IconAIChat as _0x29a76f}from'ckeditor5/src/icons.js';import{getTranslation as _0x174596}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x70c2c4}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x2068ca{[_0x9b12fd(0x95)];[_0x9b12fd(0x98)];constructor(_0x2d129a,_0x3a7f7d){const _0x5af9af=_0x9b12fd;super(_0x2d129a,{'label':_0x174596(_0x2d129a,_0x5af9af(0x8b)),'class':_0x5af9af(0x87),'icon':_0x29a76f}),this[_0x5af9af(0x90)](_0x5af9af(0x96),!0x1),this[_0x5af9af(0x95)]=this[_0x5af9af(0x83)](_0x2d129a),this[_0x5af9af(0x89)][_0x5af9af(0x8a)](this[_0x5af9af(0x95)]),_0x3a7f7d&&(this[_0x5af9af(0x98)]=_0x70c2c4(_0x2d129a,this),this[_0x5af9af(0x89)][_0x5af9af(0x8a)](this[_0x5af9af(0x98)]));}[_0x9b12fd(0x83)](_0x1dfb76){const _0x42e4b4=_0x9b12fd,_0x3ab29d=new _0x560e98(_0x1dfb76);return _0x3ab29d[_0x42e4b4(0x90)]({'label':_0x174596(this[_0x42e4b4(0x8f)],_0x42e4b4(0x8e)),'withText':!0x0,'icon':_0x2d849a,'class':_0x42e4b4(0x97)}),_0x3ab29d['on'](_0x42e4b4(0x82),()=>{const _0x474a66=_0x42e4b4;this[_0x474a66(0x94)](_0x474a66(0x92));}),_0x3ab29d;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x207ebd=_0x3c7f;(function(_0x43a940,_0x586b2d){var _0x24aa15=_0x3c7f,_0x141cc0=_0x43a940();while(!![]){try{var _0x2a6850=-parseInt(_0x24aa15(0x1d9))/0x1+parseInt(_0x24aa15(0x1d8))/0x2*(parseInt(_0x24aa15(0x1e9))/0x3)+-parseInt(_0x24aa15(0x1d6))/0x4*(parseInt(_0x24aa15(0x1ea))/0x5)+parseInt(_0x24aa15(0x1d7))/0x6+-parseInt(_0x24aa15(0x1df))/0x7*(-parseInt(_0x24aa15(0x1e1))/0x8)+-parseInt(_0x24aa15(0x1de))/0x9+-parseInt(_0x24aa15(0x1db))/0xa;if(_0x2a6850===_0x586b2d)break;else _0x141cc0['push'](_0x141cc0['shift']());}catch(_0x48f2e8){_0x141cc0['push'](_0x141cc0['shift']());}}}(_0x3762,0xa3ce3));import{View as _0x1e0b66,BodyCollection as _0x29764d}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x47700b}from'../utils/eventnames.js';import{AIChatFeedView as _0x3b1595}from'./aichatfeedview.js';import{AIChatControlsView as _0x167648}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x3ad910}from'./aichatheaderview.js';import{AIDisclaimerView as _0x1e9d09}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';function _0x3762(){var _0x46ad1a=['28BRibIF','3985110cxbzjJ','1635302BJkAtc','147522jZxBYo','ck-rounded-corners','3530730CuAbKG','chatHeader','div','981495clYzdZ','744814njdURq','chatDisclaimer','16YYlIsl','showResizeButton','populateSourceResourceBalloon','destroy','detachFromDom','chatFeed','closeSourceResourceBalloon','chatControls','3jnIRvi','295745kQyzij','ck-ai-chat','ck-reset_all','delegate','uiLanguageDirection','setTemplate','_bodyCollection','contextResourcesSearchInputVisibleFrom','attachToDom'];_0x3762=function(){return _0x46ad1a;};return _0x3762();}import'../../../theme/common/aibutton.css';function _0x3c7f(_0x87b38c,_0x33031c){var _0x376273=_0x3762();return _0x3c7f=function(_0x3c7fe3,_0x209fa7){_0x3c7fe3=_0x3c7fe3-0x1d0;var _0x2764d4=_0x376273[_0x3c7fe3];return _0x2764d4;},_0x3c7f(_0x87b38c,_0x33031c);}import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x1e0b66{[_0x207ebd(0x1dc)];[_0x207ebd(0x1e6)];[_0x207ebd(0x1e8)];[_0x207ebd(0x1e0)];[_0x207ebd(0x1d3)];constructor(_0x53fd17,_0x96697a){var _0x53e354=_0x207ebd;super(_0x53fd17),this[_0x53e354(0x1d3)]=new _0x29764d(_0x53fd17),this[_0x53e354(0x1d3)][_0x53e354(0x1d5)](),this[_0x53e354(0x1dc)]=new _0x3ad910(_0x53fd17,_0x96697a[_0x53e354(0x1e2)]),this[_0x53e354(0x1dc)][_0x53e354(0x1d0)](..._0x47700b)['to'](this),this[_0x53e354(0x1e6)]=new _0x3b1595(_0x53fd17,this[_0x53e354(0x1d3)]),this[_0x53e354(0x1e6)][_0x53e354(0x1d0)](..._0x47700b)['to'](this),this[_0x53e354(0x1e8)]=new _0x167648(_0x53fd17,{'bodyCollection':this[_0x53e354(0x1d3)],'contextResourcesSearchInputVisibleFrom':_0x96697a[_0x53e354(0x1d4)]}),this[_0x53e354(0x1e8)][_0x53e354(0x1d0)](..._0x47700b)['to'](this),this[_0x53e354(0x1e0)]=new _0x1e9d09(_0x53fd17),this[_0x53e354(0x1d2)]({'tag':_0x53e354(0x1dd),'attributes':{'class':['ck',_0x53e354(0x1ec),_0x53e354(0x1eb),_0x53e354(0x1da)],'dir':_0x53fd17[_0x53e354(0x1d1)]},'children':[this[_0x53e354(0x1dc)],this[_0x53e354(0x1e6)],this[_0x53e354(0x1e8)],this[_0x53e354(0x1e0)]]});}[_0x207ebd(0x1e3)](_0x161fbb,_0x43f50a,_0x1f7af9,_0xad019c){var _0x4f3eb0=_0x207ebd;this[_0x4f3eb0(0x1e8)][_0x4f3eb0(0x1e3)](_0x161fbb,_0x43f50a,_0x1f7af9,_0xad019c);}[_0x207ebd(0x1e7)](_0x18192b){var _0x5e0d41=_0x207ebd;this[_0x5e0d41(0x1e8)][_0x5e0d41(0x1e7)](_0x18192b);}[_0x207ebd(0x1e4)](){var _0x376388=_0x207ebd;this[_0x376388(0x1d3)][_0x376388(0x1e5)](),super[_0x376388(0x1e4)]();}}
|