@ckeditor/ckeditor5-ai 47.7.0 → 47.7.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatballoonview.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2c5f9a=_0x1173;(function(_0x44d938,_0x460805){const _0x4b16e0=_0x1173,_0x33da34=_0x44d938();while(!![]){try{const _0x4349b5=parseInt(_0x4b16e0(0x85))/0x1+parseInt(_0x4b16e0(0xf1))/0x2+-parseInt(_0x4b16e0(0x8b))/0x3+parseInt(_0x4b16e0(0xe0))/0x4*(-parseInt(_0x4b16e0(0xb3))/0x5)+-parseInt(_0x4b16e0(0x91))/0x6*(-parseInt(_0x4b16e0(0xb8))/0x7)+-parseInt(_0x4b16e0(0xbd))/0x8+-parseInt(_0x4b16e0(0xcf))/0x9*(-parseInt(_0x4b16e0(0xcd))/0xa);if(_0x4349b5===_0x460805)break;else _0x33da34['push'](_0x33da34['shift']());}catch(_0x4346c2){_0x33da34['push'](_0x33da34['shift']());}}}(_0x3157,0xc4f91));import{CKEditorError as _0x3c3e8f,EmitterMixin as _0x569678,logWarning as _0x239af2}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x3ef124}from'../../aicore/model/aiinteraction.js';function _0x1173(_0x48e103,_0x173132){const _0x3157d6=_0x3157();return _0x1173=function(_0x1173e1,_0x8229ca){_0x1173e1=_0x1173e1-0x80;let _0xf6ea23=_0x3157d6[_0x1173e1];return _0xf6ea23;},_0x1173(_0x48e103,_0x173132);}import{AIChatContext as _0x4fcde2,AI_CONTEXT_MODEL_EVENT_NAMES as _0x12e4a2}from'./aichatcontext.js';import{AICapabilities as _0x45c450,CAPABILITIES_MODEL_EVENT_NAMES as _0x1573fd}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x172ed3}from'./aichatinteraction.js';import{errorsMap as _0x49dc51}from'../../errorsmap.js';export class AIChatConversation extends _0x569678(){['id'];[_0x2c5f9a(0x80)]=!0x1;[_0x2c5f9a(0xf2)];[_0x2c5f9a(0xda)]=[];[_0x2c5f9a(0xb2)];[_0x2c5f9a(0xdf)];[_0x2c5f9a(0x8f)];[_0x2c5f9a(0xa9)];constructor(_0x84d526){const _0x40e6bb=_0x2c5f9a;super(),this[_0x40e6bb(0xa9)]=_0x84d526,this[_0x40e6bb(0x8f)]=_0x84d526[_0x40e6bb(0x8f)],this[_0x40e6bb(0xbc)]=_0x84d526[_0x40e6bb(0xbc)],this['id']=_0x84d526[_0x40e6bb(0xf6)],this[_0x40e6bb(0xf2)]=_0x84d526[_0x40e6bb(0xf2)];}async[_0x2c5f9a(0xe4)](_0x3c4132){const _0x1496b0=_0x2c5f9a;try{this[_0x1496b0(0xe3)]=new _0x4fcde2({'connector':this[_0x1496b0(0x8f)],'config':_0x3c4132,'ownerId':this['id']}),this[_0x1496b0(0xe3)][_0x1496b0(0x90)](..._0x12e4a2)['to'](this),this[_0x1496b0(0xe3)][_0x1496b0(0xe4)](),this[_0x1496b0(0xfb)]=new _0x45c450(),this[_0x1496b0(0xfb)][_0x1496b0(0x90)](..._0x1573fd)['to'](this),this[_0x1496b0(0xfb)][_0x1496b0(0xe4)]();const _0x144d7f=await this[_0x1496b0(0xbc)][_0x1496b0(0xf3)]();this[_0x1496b0(0xc3)](_0x1496b0(0x9e),{'availableModels':_0x144d7f});const _0x4a7f04=await this[_0x1496b0(0xbc)][_0x1496b0(0x92)](this[_0x1496b0(0xa9)][_0x1496b0(0xdc)]);_0x4a7f04&&await this[_0x1496b0(0xd5)](_0x4a7f04);}catch(_0x1c6d4c){const _0x4a1cd1=new _0x3c3e8f(_0x1496b0(0x82),null,{'message':_0x1c6d4c[_0x1496b0(0xb1)]||_0x1c6d4c});_0x4a1cd1[_0x1496b0(0xd8)]=_0x1c6d4c[_0x1496b0(0xd8)],this[_0x1496b0(0xc3)](_0x1496b0(0xf7),{'error':_0x4a1cd1});}}async[_0x2c5f9a(0x9b)](){const _0x510592=_0x2c5f9a;if(this[_0x510592(0x80)])throw new _0x3c3e8f(_0x510592(0x99),null,{'conversation':this});if(!this[_0x510592(0xdf)])throw new _0x3c3e8f(_0x510592(0x8d),null,{'conversation':this});try{const {id:_0x91c7ab}=await this[_0x510592(0x8f)][_0x510592(0xa1)](this['id'],this[_0x510592(0xa9)][_0x510592(0xe1)])[_0x510592(0x83)]();this['id']=_0x91c7ab,this[_0x510592(0x80)]=!0x0,this[_0x510592(0xc3)](_0x510592(0xc9),{'conversationId':this['id'],'selectedModel':this[_0x510592(0xdf)]});}catch(_0xe72a5e){const _0x1cd468=new _0x3c3e8f(_0x510592(0xe9),null,{'message':_0xe72a5e[_0x510592(0xb1)],'conversationId':this['id']});throw _0x1cd468[_0x510592(0xd8)]=_0xe72a5e[_0x510592(0xd8)],this[_0x510592(0xc3)](_0x510592(0xf7),{'error':_0x1cd468}),_0x1cd468;}}async[_0x2c5f9a(0x81)](_0x4cea5f,_0x1a62dc){const _0x28b81d=_0x2c5f9a;try{const _0x5d6899=await this[_0x28b81d(0x8f)][_0x28b81d(0xc1)](_0x4cea5f)[_0x28b81d(0x83)](),_0x4dfbdf=await this[_0x28b81d(0x8f)][_0x28b81d(0xfd)](_0x4cea5f)[_0x28b81d(0xee)](),_0xb17d40=_0x4dfbdf[0x0][_0x28b81d(0xd3)];this[_0x28b81d(0x80)]=!0x0,this['id']=_0x5d6899['id'],_0x28b81d(0xde)in _0x5d6899?this[_0x28b81d(0xc3)](_0x28b81d(0xa7),_0x5d6899[_0x28b81d(0xde)],!0x0):this[_0x28b81d(0xc3)](_0x28b81d(0xa7),'',!0x0);const _0x30e097=(await this[_0x28b81d(0xbc)][_0x28b81d(0xc0)]())[_0x28b81d(0x8c)](_0x386da6=>_0x386da6['id'][_0x28b81d(0xe5)]()===_0xb17d40[_0x28b81d(0xe5)]());return this[_0x28b81d(0xdf)]=_0x30e097,this[_0x28b81d(0xc3)](_0x28b81d(0xeb),{'selectedModel':_0x30e097,'isDisabled':!0x0}),await this[_0x28b81d(0xb7)](_0x4dfbdf,_0x1a62dc,_0xb17d40),this[_0x28b81d(0xb2)]=void 0x0,this;}catch(_0x21c1aa){const _0xb119f1=new _0x3c3e8f(_0x28b81d(0xb9),null,{'message':_0x21c1aa[_0x28b81d(0xb1)],'conversationId':_0x4cea5f});throw _0xb119f1[_0x28b81d(0xd8)]=_0x21c1aa[_0x28b81d(0xd8)],this[_0x28b81d(0xc3)](_0x28b81d(0xf7),{'error':_0xb119f1}),_0xb119f1;}}async[_0x2c5f9a(0xb7)](_0x27c2bb,_0x1be3fc,_0x50d821){const _0x7bdea0=_0x2c5f9a;let _0x1b3f90;for(const _0x48e5ac of _0x27c2bb)if(_0x7bdea0(0xf5)===_0x48e5ac[_0x7bdea0(0xad)]){const _0x9af883=await this[_0x7bdea0(0xca)](_0x48e5ac),_0x293606={'isReasoningEnabled':Object[_0x7bdea0(0xab)](_0x48e5ac[_0x7bdea0(0x84)],_0x7bdea0(0xd6)),'isWebSearchEnabled':Object[_0x7bdea0(0xab)](_0x48e5ac[_0x7bdea0(0x84)],_0x7bdea0(0xdb))};_0x1b3f90=this[_0x7bdea0(0xef)]({'userMessage':_0x48e5ac[_0x7bdea0(0x87)],'contextItems':_0x9af883,'capabilities':_0x293606,'modelId':_0x50d821,'attributes':_0x48e5ac[_0x7bdea0(0xd4)]}),this[_0x7bdea0(0xb2)]=_0x1b3f90,this[_0x7bdea0(0xe3)][_0x7bdea0(0xa4)](this[_0x7bdea0(0xb2)][_0x7bdea0(0xd9)]);}else{if(_0x7bdea0(0xf8)===_0x48e5ac[_0x7bdea0(0xad)]&&_0x1b3f90){const _0x3f0997=[];for(const _0x3ca42c of _0x48e5ac[_0x7bdea0(0xa8)])switch(_0x3ca42c[_0x7bdea0(0xe2)]){case _0x7bdea0(0xbf):case _0x7bdea0(0x96):{const _0x140c23=_0x1b3f90[_0x7bdea0(0xae)]()?.[_0x7bdea0(0xe8)]!==_0x1be3fc;_0x1b3f90[_0x7bdea0(0x9d)]=_0x1b3f90[_0x7bdea0(0xfa)]({'type':_0x3ca42c[_0x7bdea0(0xe2)],'isDone':!0x0,'interactionId':_0x1b3f90['id'],'areActionsDisabled':_0x140c23}),_0x1b3f90[_0x7bdea0(0x9d)][_0x7bdea0(0xe7)](_0x3ca42c[_0x7bdea0(0xa8)]),_0x3f0997[_0x7bdea0(0xbb)]>0x0&&(_0x1b3f90[_0x7bdea0(0x9d)][_0x7bdea0(0xb6)]=_0x3f0997[_0x7bdea0(0xdd)](0x0));break;}case _0x7bdea0(0xd0):_0x3f0997[_0x7bdea0(0xc4)](_0x3ca42c);break;case _0x7bdea0(0x94):{const {data:_0x5f0165,attributes:_0x1eae1f}=JSON[_0x7bdea0(0xf9)](_0x3ca42c[_0x7bdea0(0xa8)]);_0x1b3f90[_0x7bdea0(0xa0)]({'toolName':_0x3ca42c[_0x7bdea0(0xc8)],'data':_0x5f0165,'attributes':_0x1eae1f});break;}}}}}async[_0x2c5f9a(0xca)](_0x4f328d){const _0x2098fd=_0x2c5f9a,_0x289314=new Map();if(!_0x4f328d[_0x2098fd(0xa8)])return _0x289314;for(const _0x43ba5a of _0x4f328d[_0x2098fd(0xa8)]){const _0x337b42=await this[_0x2098fd(0xe3)][_0x2098fd(0xbe)](_0x43ba5a);_0x337b42&&_0x289314[_0x2098fd(0xfc)](_0x337b42['id'],_0x337b42);}return _0x289314;}async[_0x2c5f9a(0xc6)]({userMessage:_0x1e46e3,attributes:_0x536786}){const _0x4782ba=_0x2c5f9a;if(!this[_0x4782ba(0x80)])throw new _0x3c3e8f(_0x4782ba(0xf0),null,{'conversation':this});if(this[_0x4782ba(0xb2)])throw new _0x3c3e8f(_0x4782ba(0xb0),null,{'conversation':this});try{const _0x354aa6=this[_0x4782ba(0xe3)][_0x4782ba(0xd1)](),_0x6b3f36=this[_0x4782ba(0xfb)][_0x4782ba(0x8a)](),_0x5040ef=this[_0x4782ba(0xdf)]['id'];this[_0x4782ba(0xb2)]=this[_0x4782ba(0xef)]({'userMessage':_0x1e46e3,'contextItems':_0x354aa6,'capabilities':_0x6b3f36,'modelId':_0x5040ef,'attributes':_0x536786}),await this[_0x4782ba(0xb2)][_0x4782ba(0x9b)](),this[_0x4782ba(0xe3)][_0x4782ba(0xa4)](this[_0x4782ba(0xb2)][_0x4782ba(0xd9)]);}catch(_0xf467fd){if(_0xf467fd instanceof _0x3c3e8f)this[_0x4782ba(0xc3)](_0x4782ba(0xf7),{'interactionId':this[_0x4782ba(0xb2)]?this[_0x4782ba(0xb2)]['id']:void 0x0,'error':_0xf467fd});else{const _0x5ed04e=_0x49dc51[_0x4782ba(0xc2)](_0xf467fd[_0x4782ba(0x8e)])||_0x4782ba(0xea);this[_0x4782ba(0xc3)](_0x4782ba(0xf7),{'interactionId':this[_0x4782ba(0xb2)]?this[_0x4782ba(0xb2)]['id']:void 0x0,'error':new _0x3c3e8f(_0x5ed04e,null,{'error':_0xf467fd})});}}finally{this[_0x4782ba(0xb2)]?.[_0x4782ba(0xcb)](),this[_0x4782ba(0xb2)]=void 0x0;}}[_0x2c5f9a(0xef)]({userMessage:_0x234e42,contextItems:_0x43e280,capabilities:_0x3d3a93,modelId:_0x26873e,attributes:_0x2edc42}){const _0x86559d=_0x2c5f9a,_0x42c720=new _0x172ed3({'userMessage':_0x234e42,'contextItems':_0x43e280,'capabilities':_0x3d3a93,'conversationId':this['id'],'connector':this[_0x86559d(0x8f)],'editor':this[_0x86559d(0xa9)][_0x86559d(0x88)]&&this[_0x86559d(0xa9)][_0x86559d(0x88)](),'model':_0x26873e,'attributes':_0x2edc42});return _0x42c720[_0x86559d(0x90)](..._0x3ef124)['to'](this),this[_0x86559d(0xda)][_0x86559d(0xc4)](_0x42c720),this[_0x86559d(0xc3)](_0x86559d(0xc7),_0x42c720),_0x42c720;}[_0x2c5f9a(0xb4)](_0x1f503e){const _0x598527=_0x2c5f9a;return this[_0x598527(0xda)][_0x598527(0x8c)](_0x318c8c=>_0x318c8c['id']===_0x1f503e);}[_0x2c5f9a(0xa5)](_0x1e452f){const _0x5c3800=_0x2c5f9a,_0x96870d=this[_0x5c3800(0xb4)](_0x1e452f);_0x96870d&&(_0x96870d[_0x5c3800(0x89)](),this[_0x5c3800(0xda)][_0x5c3800(0xdd)](this[_0x5c3800(0xda)][_0x5c3800(0xed)](_0x96870d),0x1));}get[_0x2c5f9a(0x86)](){const _0x5b4239=_0x2c5f9a;return this[_0x5b4239(0xda)][this[_0x5b4239(0xda)][_0x5b4239(0xbb)]-0x1];}[_0x2c5f9a(0xd2)](_0x5dd053){const _0x4a3714=_0x2c5f9a;this[_0x4a3714(0xe3)][_0x4a3714(0xd2)](_0x5dd053);}async[_0x2c5f9a(0x9f)]({content:_0x1d9786,version:_0x4c7f74,sessionId:_0x2ce9cf,selections:_0x5e2596}){const _0x483436=_0x2c5f9a;await this[_0x483436(0xe3)][_0x483436(0x9c)](_0x1d9786,_0x4c7f74,_0x2ce9cf,_0x5e2596);}[_0x2c5f9a(0xaf)](){const _0x1fd69d=_0x2c5f9a;return this[_0x1fd69d(0xb2)]?.[_0x1fd69d(0xae)]()?.[_0x1fd69d(0xa8)]||'';}[_0x2c5f9a(0xe6)](_0x302e25){const _0x350f66=_0x2c5f9a;this[_0x350f66(0xe3)][_0x350f66(0xe6)](_0x302e25);}[_0x2c5f9a(0xba)](){const _0x2b69c8=_0x2c5f9a;this[_0x2b69c8(0xe3)][_0x2b69c8(0xba)]();}[_0x2c5f9a(0xb5)](_0xaa6097){const _0x4737ab=_0x2c5f9a;this[_0x4737ab(0xe3)][_0x4737ab(0xb5)](_0xaa6097);}[_0x2c5f9a(0xd7)](_0x488a2b){const _0x4bc47c=_0x2c5f9a;this[_0x4bc47c(0xe3)][_0x4bc47c(0xd7)](_0x488a2b);}[_0x2c5f9a(0xec)](_0x3b1e9b){const _0x446fe0=_0x2c5f9a;this[_0x446fe0(0xe3)][_0x446fe0(0xec)](_0x3b1e9b);}[_0x2c5f9a(0xf4)](_0x352db7,_0x5bd0e6){const _0x1c7029=_0x2c5f9a;this[_0x1c7029(0xe3)][_0x1c7029(0xf4)](_0x352db7,_0x5bd0e6);}[_0x2c5f9a(0xa6)](_0x582af4,_0x330350,_0x374966){const _0x7f5b9=_0x2c5f9a;return this[_0x7f5b9(0xe3)][_0x7f5b9(0xa6)](_0x582af4,_0x330350,_0x374966);}[_0x2c5f9a(0x97)](_0x34506b){const _0x3735df=_0x2c5f9a;this[_0x3735df(0xe3)][_0x3735df(0x97)](_0x34506b);}[_0x2c5f9a(0xce)](_0x5f1ee7){const _0x400f98=_0x2c5f9a;this[_0x400f98(0xfb)][_0x400f98(0xce)](_0x5f1ee7);}[_0x2c5f9a(0xa2)](){const _0x3204f0=_0x2c5f9a;this[_0x3204f0(0xfb)][_0x3204f0(0xa2)]();}[_0x2c5f9a(0xa3)](_0x369e84){const _0x1468e6=_0x2c5f9a;this[_0x1468e6(0xfb)][_0x1468e6(0xa3)](_0x369e84);}[_0x2c5f9a(0xaa)](){const _0x5c1b47=_0x2c5f9a;this[_0x5c1b47(0xfb)][_0x5c1b47(0xaa)]();}[_0x2c5f9a(0xc5)](){const _0x4b7896=_0x2c5f9a;return this[_0x4b7896(0xe3)][_0x4b7896(0xc5)]();}[_0x2c5f9a(0x95)](){const _0x2a4251=_0x2c5f9a;return this[_0x2a4251(0xe3)][_0x2a4251(0x95)]();}[_0x2c5f9a(0xcc)](){const _0xe69bcc=_0x2c5f9a;return this[_0xe69bcc(0xe3)][_0xe69bcc(0xcc)]();}async[_0x2c5f9a(0xd5)](_0x454445){const _0x567bd2=_0x2c5f9a;_0x454445?!0x1===await this[_0x567bd2(0xbc)][_0x567bd2(0x93)](_0x454445)&&(_0x239af2(_0x567bd2(0xac),{'conversation':this,'model':_0x454445}),_0x454445=(await this[_0x567bd2(0xbc)][_0x567bd2(0xf3)]())[0x0]):(_0x239af2(_0x567bd2(0x98),{'conversation':this}),_0x454445=(await this[_0x567bd2(0xbc)][_0x567bd2(0xf3)]())[0x0]),_0x454445['id']!==this[_0x567bd2(0xdf)]?.['id']&&(this[_0x567bd2(0xdf)]=_0x454445,this[_0x567bd2(0xfb)][_0x567bd2(0x9a)](),this[_0x567bd2(0xc3)](_0x567bd2(0xeb),{'selectedModel':_0x454445}));}}function _0x3157(){const _0x48e9d0=['addToolItemToContext','indexOf','getMessages','createInteraction','ai-chat-handle-user-conversation-not-initialized','3155900TaeWOU','isFromHistory','getAvailableModels','addResourceToContext','user','conversationId','error','assistant','parse','createReply','chatCapabilities','set','fetchConversationMessages','isStarted','load','ai-chat-conversation-init-failed','getConversation','capabilities','765691QpFZOw','lastInteraction','prompt','getEditor','destroy','getCapabilitiesConfig','2225271qakrRE','find','ai-chat-conversation-start-no-model-selected','code','connector','delegate','6EPGXyB','getModel','isAvailable','mcp-tool-result','isCurrentDocumentInConversation','modification','removeFromContext','ai-chat-conversation-set-model-null','ai-chat-conversation-already-started','reset','start','updateCurrentDocument','currentReply','conversationInitialized','updateCurrentDocumentInContext','_handleToolResultData','startConversation','toggleWebSearch','setReasoning','addToConversationContext','removeInteraction','loadSourceResources','setConversationTitle','content','options','toggleReasoning','hasOwn','ai-chat-conversation-set-model-not-available','role','getDocumentContext','getCurrentDocumentContext','ai-chat-handle-user-interaction-already-in-progress','message','currentInteraction','5bXlTtq','getInteraction','addFilesToContext','sources','_processMessagesToInteractions','2395106fLUQMa','ai-chat-conversation-init-from-id-failed','removeSelectionFromContext','length','chatModels','12549136QHwMdL','populateFromMessage','text','getAll','fetchConversation','get','fire','push','isCurrentDocumentInContext','handleUserInteraction','interactionCreated','toolName','conversationStarted','_extractContextItems','stop','isSelectionInContext','10chSmtQ','setWebSearch','12738213FoOhkd','url','getPendingContextItems','addCurrentDocumentToContext','model','attributes','setModel','reasoning','addUrlToContext','stack','contextItems','interactions','webSearch','selectedModelId','splice','title','selectedModel','3935824qlQhPB','group','type','chatContext','init','toLowerCase','addSelectionToContext','appendContent','sessionId','ai-chat-conversation-start-failed','ai-chat-handle-user-interaction-start-failed','modelSelected'];_0x3157=function(){return _0x48e9d0;};return _0x3157();}
|
|
23
|
+
const _0x29c944=_0x6196;function _0x6196(_0x511e96,_0x167183){const _0x5b1910=_0x5b19();return _0x6196=function(_0x6196f,_0x2b79da){_0x6196f=_0x6196f-0xae;let _0x30ef69=_0x5b1910[_0x6196f];return _0x30ef69;},_0x6196(_0x511e96,_0x167183);}(function(_0x5635e9,_0x5d7939){const _0x26c3f3=_0x6196,_0x4d9bee=_0x5635e9();while(!![]){try{const _0x221076=-parseInt(_0x26c3f3(0xca))/0x1+parseInt(_0x26c3f3(0xdf))/0x2+parseInt(_0x26c3f3(0xd9))/0x3*(-parseInt(_0x26c3f3(0xde))/0x4)+-parseInt(_0x26c3f3(0xe4))/0x5+parseInt(_0x26c3f3(0xd5))/0x6*(parseInt(_0x26c3f3(0x10a))/0x7)+parseInt(_0x26c3f3(0xf5))/0x8+parseInt(_0x26c3f3(0xe7))/0x9*(parseInt(_0x26c3f3(0xc5))/0xa);if(_0x221076===_0x5d7939)break;else _0x4d9bee['push'](_0x4d9bee['shift']());}catch(_0x295224){_0x4d9bee['push'](_0x4d9bee['shift']());}}}(_0x5b19,0x68d1c));import{CKEditorError as _0xc44658,EmitterMixin as _0x33588d,logWarning as _0xc1c3e7}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x4c09b0}from'../../aicore/model/aiinteraction.js';function _0x5b19(){const _0x52e03d=['indexOf','stop','conversationInitialized','populateFromMessage','lastInteraction','isSelectionInContext','getModel','modelSelected','toggleWebSearch','hasOwn','currentInteraction','addResourceToContext','parse','set','addFilesToContext','getEditor','ai-chat-conversation-start-failed','chatCapabilities','splice','removeFromContext','startConversation','fetchConversationMessages','prompt','modification','interactions','capabilities','ai-chat-conversation-start-no-model-selected','content','conversationId','addUrlToContext','_extractContextItems','text','attributes','setWebSearch','find','ai-chat-conversation-set-model-not-available','type','url','destroy','push','30aNXmbU','interactionCreated','selectedModelId','setReasoning','loadSourceResources','593920IxsGyL','ai-chat-conversation-init-from-id-failed','group','stack','_processMessagesToInteractions','toggleReasoning','length','sessionId','fire','mcp-tool-result','getMessages','6RasQcZ','getDocumentContext','updateCurrentDocumentInContext','ai-chat-handle-user-interaction-start-failed','69297gAhTlg','getAvailableModels','user','init','role','108rLKXTO','1174562CXWYLf','ai-chat-handle-user-conversation-not-initialized','handleUserInteraction','assistant','removeSelectionFromContext','760915jPsEkP','ai-chat-conversation-already-started','selectedModel','3022470psPVFw','getCurrentDocumentContext','isAvailable','model','isCurrentDocumentInContext','isCurrentDocumentInConversation','get','currentReply','contextItems','delegate','load','isFromHistory','addToConversationContext','title','609208daXssL','ai-chat-conversation-init-failed','updateCurrentDocument','getConversation','conversationStarted','getPendingContextItems','error','reasoning','addSelectionToContext','ai-chat-handle-user-interaction-already-in-progress','code','webSearch','connector','_handleToolResultData','getCapabilitiesConfig','chatContext','start','ai-chat-conversation-set-model-null','sources','removeInteraction','createReply','897358GiAjGo','setConversationTitle','chatModels','addToolItemToContext','toolName','setModel','message','toLowerCase','getInteraction','isStarted','appendContent','reset','createInteraction','getAll','addCurrentDocumentToContext','fetchConversation','options'];_0x5b19=function(){return _0x52e03d;};return _0x5b19();}import{AIChatContext as _0x13091f,AI_CONTEXT_MODEL_EVENT_NAMES as _0xdccf30}from'./aichatcontext.js';import{AICapabilities as _0x268377,CAPABILITIES_MODEL_EVENT_NAMES as _0xe87694}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x3f78ca}from'./aichatinteraction.js';import{errorsMap as _0x3872fb}from'../../errorsmap.js';export class AIChatConversation extends _0x33588d(){['id'];[_0x29c944(0x113)]=!0x1;[_0x29c944(0xf2)];[_0x29c944(0xb5)]=[];[_0x29c944(0x125)];[_0x29c944(0xe6)];[_0x29c944(0x101)];[_0x29c944(0x11a)];constructor(_0x3fcebe){const _0x4566cc=_0x29c944;super(),this[_0x4566cc(0x11a)]=_0x3fcebe,this[_0x4566cc(0x101)]=_0x3fcebe[_0x4566cc(0x101)],this[_0x4566cc(0x10c)]=_0x3fcebe[_0x4566cc(0x10c)],this['id']=_0x3fcebe[_0x4566cc(0xb9)],this[_0x4566cc(0xf2)]=_0x3fcebe[_0x4566cc(0xf2)];}async[_0x29c944(0xdc)](_0x408977){const _0x5a9d91=_0x29c944;try{this[_0x5a9d91(0x104)]=new _0x13091f({'connector':this[_0x5a9d91(0x101)],'config':_0x408977,'ownerId':this['id']}),this[_0x5a9d91(0x104)][_0x5a9d91(0xf0)](..._0xdccf30)['to'](this),this[_0x5a9d91(0x104)][_0x5a9d91(0xdc)](),this[_0x5a9d91(0xae)]=new _0x268377(),this[_0x5a9d91(0xae)][_0x5a9d91(0xf0)](..._0xe87694)['to'](this),this[_0x5a9d91(0xae)][_0x5a9d91(0xdc)]();const _0x1879be=await this[_0x5a9d91(0x10c)][_0x5a9d91(0xda)]();this[_0x5a9d91(0xd2)](_0x5a9d91(0x11d),{'availableModels':_0x1879be});const _0x2d8b9a=await this[_0x5a9d91(0x10c)][_0x5a9d91(0x121)](this[_0x5a9d91(0x11a)][_0x5a9d91(0xc7)]);_0x2d8b9a&&await this[_0x5a9d91(0x10f)](_0x2d8b9a);}catch(_0x156dc2){const _0x5f92c8=new _0xc44658(_0x5a9d91(0xf6),null,{'message':_0x156dc2[_0x5a9d91(0x110)]||_0x156dc2});_0x5f92c8[_0x5a9d91(0xcd)]=_0x156dc2[_0x5a9d91(0xcd)],this[_0x5a9d91(0xd2)](_0x5a9d91(0xfb),{'error':_0x5f92c8});}}async[_0x29c944(0x105)](){const _0x1a6c43=_0x29c944;if(this[_0x1a6c43(0x113)])throw new _0xc44658(_0x1a6c43(0xe5),null,{'conversation':this});if(!this[_0x1a6c43(0xe6)])throw new _0xc44658(_0x1a6c43(0xb7),null,{'conversation':this});try{const {id:_0x16fefc}=await this[_0x1a6c43(0x101)][_0x1a6c43(0xb1)](this['id'],this[_0x1a6c43(0x11a)][_0x1a6c43(0xcc)])[_0x1a6c43(0xf8)]();this['id']=_0x16fefc,this[_0x1a6c43(0x113)]=!0x0,this[_0x1a6c43(0xd2)](_0x1a6c43(0xf9),{'conversationId':this['id'],'selectedModel':this[_0x1a6c43(0xe6)]});}catch(_0x49952d){const _0x1d6f2c=new _0xc44658(_0x1a6c43(0x12b),null,{'message':_0x49952d[_0x1a6c43(0x110)],'conversationId':this['id']});throw _0x1d6f2c[_0x1a6c43(0xcd)]=_0x49952d[_0x1a6c43(0xcd)],this[_0x1a6c43(0xd2)](_0x1a6c43(0xfb),{'error':_0x1d6f2c}),_0x1d6f2c;}}async[_0x29c944(0xf1)](_0x56a8e6,_0x54dad9){const _0x11768d=_0x29c944;try{const _0x470ff8=await this[_0x11768d(0x101)][_0x11768d(0x119)](_0x56a8e6)[_0x11768d(0xf8)](),_0x1e41cd=await this[_0x11768d(0x101)][_0x11768d(0xb2)](_0x56a8e6)[_0x11768d(0xd4)](),_0x56f026=_0x1e41cd[0x0][_0x11768d(0xea)];this[_0x11768d(0x113)]=!0x0,this['id']=_0x470ff8['id'],_0x11768d(0xf4)in _0x470ff8?this[_0x11768d(0xd2)](_0x11768d(0x10b),_0x470ff8[_0x11768d(0xf4)],!0x0):this[_0x11768d(0xd2)](_0x11768d(0x10b),'',!0x0);const _0x1f2463=(await this[_0x11768d(0x10c)][_0x11768d(0x117)]())[_0x11768d(0xbf)](_0x5358a8=>_0x5358a8['id'][_0x11768d(0x111)]()===_0x56f026[_0x11768d(0x111)]());return this[_0x11768d(0xe6)]=_0x1f2463,this[_0x11768d(0xd2)](_0x11768d(0x122),{'selectedModel':_0x1f2463,'isDisabled':!0x0}),await this[_0x11768d(0xce)](_0x1e41cd,_0x54dad9,_0x56f026),this[_0x11768d(0x125)]=void 0x0,this;}catch(_0x354fe7){const _0x50f869=new _0xc44658(_0x11768d(0xcb),null,{'message':_0x354fe7[_0x11768d(0x110)],'conversationId':_0x56a8e6});throw _0x50f869[_0x11768d(0xcd)]=_0x354fe7[_0x11768d(0xcd)],this[_0x11768d(0xd2)](_0x11768d(0xfb),{'error':_0x50f869}),_0x50f869;}}async[_0x29c944(0xce)](_0x38ad25,_0x3214c3,_0x4711ed){const _0x29f76c=_0x29c944;let _0x207ef7;for(const _0x1f4740 of _0x38ad25)if(_0x29f76c(0xdb)===_0x1f4740[_0x29f76c(0xdd)]){const _0x179d19=await this[_0x29f76c(0xbb)](_0x1f4740),_0x459bce={'isReasoningEnabled':Object[_0x29f76c(0x124)](_0x1f4740[_0x29f76c(0xb6)],_0x29f76c(0xfc)),'isWebSearchEnabled':Object[_0x29f76c(0x124)](_0x1f4740[_0x29f76c(0xb6)],_0x29f76c(0x100))};_0x207ef7=this[_0x29f76c(0x116)]({'userMessage':_0x1f4740[_0x29f76c(0xb3)],'contextItems':_0x179d19,'capabilities':_0x459bce,'modelId':_0x4711ed,'attributes':_0x1f4740[_0x29f76c(0xbd)]}),this[_0x29f76c(0x125)]=_0x207ef7,this[_0x29f76c(0x104)][_0x29f76c(0xf3)](this[_0x29f76c(0x125)][_0x29f76c(0xef)]);}else{if(_0x29f76c(0xe2)===_0x1f4740[_0x29f76c(0xdd)]&&_0x207ef7){const _0x132dfb=[];for(const _0x2fc861 of _0x1f4740[_0x29f76c(0xb8)])switch(_0x2fc861[_0x29f76c(0xc1)]){case _0x29f76c(0xbc):case _0x29f76c(0xb4):{const _0x43fb91=_0x207ef7[_0x29f76c(0xd6)]()?.[_0x29f76c(0xd1)]!==_0x3214c3;_0x207ef7[_0x29f76c(0xee)]=_0x207ef7[_0x29f76c(0x109)]({'type':_0x2fc861[_0x29f76c(0xc1)],'isDone':!0x0,'interactionId':_0x207ef7['id'],'areActionsDisabled':_0x43fb91}),_0x207ef7[_0x29f76c(0xee)][_0x29f76c(0x114)](_0x2fc861[_0x29f76c(0xb8)]),_0x132dfb[_0x29f76c(0xd0)]>0x0&&(_0x207ef7[_0x29f76c(0xee)][_0x29f76c(0x107)]=_0x132dfb[_0x29f76c(0xaf)](0x0));break;}case _0x29f76c(0xc2):_0x132dfb[_0x29f76c(0xc4)](_0x2fc861);break;case _0x29f76c(0xd3):{const {data:_0x57c421,attributes:_0xa175aa}=JSON[_0x29f76c(0x127)](_0x2fc861[_0x29f76c(0xb8)]);_0x207ef7[_0x29f76c(0x102)]({'toolName':_0x2fc861[_0x29f76c(0x10e)],'data':_0x57c421,'attributes':_0xa175aa});break;}}}}}async[_0x29c944(0xbb)](_0x2fa12e){const _0x3a6899=_0x29c944,_0xc76ad9=new Map();if(!_0x2fa12e[_0x3a6899(0xb8)])return _0xc76ad9;for(const _0x4c2e57 of _0x2fa12e[_0x3a6899(0xb8)]){const _0xb25bfa=await this[_0x3a6899(0x104)][_0x3a6899(0x11e)](_0x4c2e57);_0xb25bfa&&_0xc76ad9[_0x3a6899(0x128)](_0xb25bfa['id'],_0xb25bfa);}return _0xc76ad9;}async[_0x29c944(0xe1)]({userMessage:_0x29ff3e,attributes:_0x507364}){const _0x2bd811=_0x29c944;if(!this[_0x2bd811(0x113)])throw new _0xc44658(_0x2bd811(0xe0),null,{'conversation':this});if(this[_0x2bd811(0x125)])throw new _0xc44658(_0x2bd811(0xfe),null,{'conversation':this});try{const _0x2f1cb6=this[_0x2bd811(0x104)][_0x2bd811(0xfa)](),_0x27e640=this[_0x2bd811(0xae)][_0x2bd811(0x103)](),_0x2dc7ff=this[_0x2bd811(0xe6)]['id'];this[_0x2bd811(0x125)]=this[_0x2bd811(0x116)]({'userMessage':_0x29ff3e,'contextItems':_0x2f1cb6,'capabilities':_0x27e640,'modelId':_0x2dc7ff,'attributes':_0x507364}),await this[_0x2bd811(0x125)][_0x2bd811(0x105)](),this[_0x2bd811(0x104)][_0x2bd811(0xf3)](this[_0x2bd811(0x125)][_0x2bd811(0xef)]);}catch(_0x17d67b){if(_0x17d67b instanceof _0xc44658)this[_0x2bd811(0xd2)](_0x2bd811(0xfb),{'interactionId':this[_0x2bd811(0x125)]?this[_0x2bd811(0x125)]['id']:void 0x0,'error':_0x17d67b});else{const _0x515098=_0x3872fb[_0x2bd811(0xed)](_0x17d67b[_0x2bd811(0xff)])||_0x2bd811(0xd8);this[_0x2bd811(0xd2)](_0x2bd811(0xfb),{'interactionId':this[_0x2bd811(0x125)]?this[_0x2bd811(0x125)]['id']:void 0x0,'error':new _0xc44658(_0x515098,null,{'error':_0x17d67b})});}}finally{this[_0x2bd811(0x125)]?.[_0x2bd811(0x11c)](),this[_0x2bd811(0x125)]=void 0x0;}}[_0x29c944(0x116)]({userMessage:_0x131542,contextItems:_0x4259d7,capabilities:_0xd1d12f,modelId:_0x3507d8,attributes:_0x37c76}){const _0x5a148f=_0x29c944,_0x5e6c8b=new _0x3f78ca({'userMessage':_0x131542,'contextItems':_0x4259d7,'capabilities':_0xd1d12f,'conversationId':this['id'],'connector':this[_0x5a148f(0x101)],'editor':this[_0x5a148f(0x11a)][_0x5a148f(0x12a)]&&this[_0x5a148f(0x11a)][_0x5a148f(0x12a)](),'model':_0x3507d8,'attributes':_0x37c76});return _0x5e6c8b[_0x5a148f(0xf0)](..._0x4c09b0)['to'](this),this[_0x5a148f(0xb5)][_0x5a148f(0xc4)](_0x5e6c8b),this[_0x5a148f(0xd2)](_0x5a148f(0xc6),_0x5e6c8b),_0x5e6c8b;}[_0x29c944(0x112)](_0x19ce91){const _0xfdca83=_0x29c944;return this[_0xfdca83(0xb5)][_0xfdca83(0xbf)](_0xe1bdc1=>_0xe1bdc1['id']===_0x19ce91);}[_0x29c944(0x108)](_0x5810a2){const _0x5836ba=_0x29c944,_0x386896=this[_0x5836ba(0x112)](_0x5810a2);_0x386896&&(_0x386896[_0x5836ba(0xc3)](),this[_0x5836ba(0xb5)][_0x5836ba(0xaf)](this[_0x5836ba(0xb5)][_0x5836ba(0x11b)](_0x386896),0x1));}get[_0x29c944(0x11f)](){const _0x5e5c57=_0x29c944;return this[_0x5e5c57(0xb5)][this[_0x5e5c57(0xb5)][_0x5e5c57(0xd0)]-0x1];}[_0x29c944(0x118)](_0x299306){const _0x2e8a2b=_0x29c944;this[_0x2e8a2b(0x104)][_0x2e8a2b(0x118)](_0x299306);}async[_0x29c944(0xd7)]({content:_0x57be18,version:_0x4dd76f,sessionId:_0x5839ca,selections:_0x38c8e7}){const _0x2812e8=_0x29c944;await this[_0x2812e8(0x104)][_0x2812e8(0xf7)](_0x57be18,_0x4dd76f,_0x5839ca,_0x38c8e7);}[_0x29c944(0xe8)](){const _0x5b92cd=_0x29c944;return this[_0x5b92cd(0x125)]?.[_0x5b92cd(0xd6)]()?.[_0x5b92cd(0xb8)]||'';}[_0x29c944(0xfd)](_0x4310a5){const _0x41dc9a=_0x29c944;this[_0x41dc9a(0x104)][_0x41dc9a(0xfd)](_0x4310a5);}[_0x29c944(0xe3)](){const _0x5c5334=_0x29c944;this[_0x5c5334(0x104)][_0x5c5334(0xe3)]();}[_0x29c944(0x129)](_0xca1e35){const _0xfec85f=_0x29c944;this[_0xfec85f(0x104)][_0xfec85f(0x129)](_0xca1e35);}[_0x29c944(0xba)](_0x515225){const _0x255156=_0x29c944;this[_0x255156(0x104)][_0x255156(0xba)](_0x515225);}[_0x29c944(0x10d)](_0x28df54){const _0x196a72=_0x29c944;this[_0x196a72(0x104)][_0x196a72(0x10d)](_0x28df54);}[_0x29c944(0x126)](_0x31c9b5,_0x1fcc2a){const _0x5d65ff=_0x29c944;this[_0x5d65ff(0x104)][_0x5d65ff(0x126)](_0x31c9b5,_0x1fcc2a);}[_0x29c944(0xc9)](_0x44e923,_0x1f50e9,_0x497b81){const _0x2b74a0=_0x29c944;return this[_0x2b74a0(0x104)][_0x2b74a0(0xc9)](_0x44e923,_0x1f50e9,_0x497b81);}[_0x29c944(0xb0)](_0xa4fef7){const _0xfc19f5=_0x29c944;this[_0xfc19f5(0x104)][_0xfc19f5(0xb0)](_0xa4fef7);}[_0x29c944(0xbe)](_0x524f90){const _0x77a96e=_0x29c944;this[_0x77a96e(0xae)][_0x77a96e(0xbe)](_0x524f90);}[_0x29c944(0x123)](){const _0x5a7cd1=_0x29c944;this[_0x5a7cd1(0xae)][_0x5a7cd1(0x123)]();}[_0x29c944(0xc8)](_0xedb170){const _0x25072e=_0x29c944;this[_0x25072e(0xae)][_0x25072e(0xc8)](_0xedb170);}[_0x29c944(0xcf)](){const _0x25cccd=_0x29c944;this[_0x25cccd(0xae)][_0x25cccd(0xcf)]();}[_0x29c944(0xeb)](){const _0x27ed7c=_0x29c944;return this[_0x27ed7c(0x104)][_0x27ed7c(0xeb)]();}[_0x29c944(0xec)](){const _0x5ed7b3=_0x29c944;return this[_0x5ed7b3(0x104)][_0x5ed7b3(0xec)]();}[_0x29c944(0x120)](){const _0x652adb=_0x29c944;return this[_0x652adb(0x104)][_0x652adb(0x120)]();}async[_0x29c944(0x10f)](_0x5559e5){const _0x1a39ed=_0x29c944;_0x5559e5?!0x1===await this[_0x1a39ed(0x10c)][_0x1a39ed(0xe9)](_0x5559e5)&&(_0xc1c3e7(_0x1a39ed(0xc0),{'conversation':this,'model':_0x5559e5}),_0x5559e5=(await this[_0x1a39ed(0x10c)][_0x1a39ed(0xda)]())[0x0]):(_0xc1c3e7(_0x1a39ed(0x106),{'conversation':this}),_0x5559e5=(await this[_0x1a39ed(0x10c)][_0x1a39ed(0xda)]())[0x0]),_0x5559e5['id']!==this[_0x1a39ed(0xe6)]?.['id']&&(this[_0x1a39ed(0xe6)]=_0x5559e5,this[_0x1a39ed(0xae)][_0x1a39ed(0x115)](),this[_0x1a39ed(0xd2)](_0x1a39ed(0x122),{'selectedModel':_0x5559e5}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2a7d3a=_0x35f9;function _0x35f9(_0x2aa574,_0x5e20f5){var _0x5ec89c=_0x5ec8();return _0x35f9=function(_0x35f916,_0x5d11de){_0x35f916=_0x35f916-0x13c;var _0x30ee61=_0x5ec89c[_0x35f916];return _0x30ee61;},_0x35f9(_0x2aa574,_0x5e20f5);}function _0x5ec8(){var _0x222eba=['connector','userMessage','conversationId','2934705mkKduf','queryAssistant','sendRequest','8SsIEXP','model','mapContextItemsToRequestData','get','current-document','getCapabilitiesRequestData','3585753FUrdbO','24UallGz','3376884abBAUI','contextItems','2643440UfZsqN','capabilities','177134TWoRDI','4378269KLnAyZ','409728hgXHDs','getDocumentContext','attributes'];_0x5ec8=function(){return _0x222eba;};return _0x5ec8();}(function(_0xff1e98,_0x47788f){var _0x47a87f=_0x35f9,_0x2417f1=_0xff1e98();while(!![]){try{var _0x1bb5ea=-parseInt(_0x47a87f(0x145))/0x1+-parseInt(_0x47a87f(0x150))/0x2*(-parseInt(_0x47a87f(0x147))/0x3)+parseInt(_0x47a87f(0x143))/0x4+-parseInt(_0x47a87f(0x14d))/0x5+-parseInt(_0x47a87f(0x141))/0x6+-parseInt(_0x47a87f(0x146))/0x7+parseInt(_0x47a87f(0x140))/0x8*(parseInt(_0x47a87f(0x13f))/0x9);if(_0x1bb5ea===_0x47788f)break;else _0x2417f1['push'](_0x2417f1['shift']());}catch(_0x153c28){_0x2417f1['push'](_0x2417f1['shift']());}}}(_0x5ec8,0x6de0b));import{AICapabilities as _0x3587cc}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x10ee2b}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x433f6b}from'./aichatcontext.js';export class AIChatInteraction extends _0x10ee2b{[_0x2a7d3a(0x14b)];[_0x2a7d3a(0x14c)];[_0x2a7d3a(0x142)]=new Map();[_0x2a7d3a(0x151)];[_0x2a7d3a(0x149)];constructor(_0x548f2b){var _0x90252e=_0x2a7d3a;super(_0x548f2b),this[_0x90252e(0x14c)]=_0x548f2b[_0x90252e(0x14c)],this[_0x90252e(0x142)]=_0x548f2b[_0x90252e(0x142)],this[_0x90252e(0x144)]=_0x548f2b[_0x90252e(0x144)],this[_0x90252e(0x14b)]=_0x548f2b[_0x90252e(0x14b)],this[_0x90252e(0x151)]=_0x548f2b[_0x90252e(0x151)],this[_0x90252e(0x149)]=_0x548f2b[_0x90252e(0x149)];}async[_0x2a7d3a(0x14f)](){var _0x37101a=_0x2a7d3a;return this[_0x37101a(0x14a)][_0x37101a(0x14e)]({'message':this[_0x37101a(0x14b)],'conversationId':this[_0x37101a(0x14c)],'parts':_0x433f6b[_0x37101a(0x152)](this[_0x37101a(0x142)]),'capabilities':_0x3587cc[_0x37101a(0x13e)](this[_0x37101a(0x144)]),'model':this[_0x37101a(0x151)],'attributes':this[_0x37101a(0x149)]});}[_0x2a7d3a(0x148)](){var _0xa40ea6=_0x2a7d3a;return this[_0xa40ea6(0x142)][_0xa40ea6(0x13c)](_0xa40ea6(0x13d));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47e56f=_0x21bf;(function(_0x4ad032,_0x5d1dd0){const _0x5b6b5a=_0x21bf,_0xcf1664=_0x4ad032();while(!![]){try{const _0x3e33c8=parseInt(_0x5b6b5a(0x14f))/0x1*(parseInt(_0x5b6b5a(0x163))/0x2)+parseInt(_0x5b6b5a(0x173))/0x3+-parseInt(_0x5b6b5a(0x16f))/0x4*(parseInt(_0x5b6b5a(0x18c))/0x5)+-parseInt(_0x5b6b5a(0x17d))/0x6*(parseInt(_0x5b6b5a(0x146))/0x7)+-parseInt(_0x5b6b5a(0x14b))/0x8*(-parseInt(_0x5b6b5a(0x153))/0x9)+parseInt(_0x5b6b5a(0x13b))/0xa+parseInt(_0x5b6b5a(0x138))/0xb*(-parseInt(_0x5b6b5a(0x145))/0xc);if(_0x3e33c8===_0x5d1dd0)break;else _0xcf1664['push'](_0xcf1664['shift']());}catch(_0x5ab2c6){_0xcf1664['push'](_0xcf1664['shift']());}}}(_0x1c81,0x6a0a7));import{FocusTracker as _0x30dd0d,KeystrokeHandler as _0x382819}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x366dfb}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x3ec9d0}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x1e5163}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x49c613}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x3edd7d,FocusCycler as _0x374a8d,View as _0x2538f5}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x12e2a2}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x5c1650,IconChevronUp as _0x5bb0d9}from'ckeditor5/src/icons.js';function _0x1c81(){const _0x162335=['addMany','full','_focusables','setState','_stateView','listenTo','div','showNext','change:isTrackChangesOn','applySuggestion','rejectSuggestion','AI_BALLOON_NEXT_LABEL','4162mNrQtq','ck-ai-chat-balloon-main_state_','bind','includes','updateContent','showError','_state','hideError','isTrackChangesOn','ck-ai-chat-balloon-main','_partToolbarView','execute','24YKssOM','delegate','isShowChangesOn','previousButtonView','2208681BElJUM','locale','focusCycler','fire','_createPreviousButtonView','focusFirst','_config','_isErrorVisible','update','showDiff','65922MnQdAf','focus','_errorView','_keystrokes','togglePartToolbarEnabled','_togglePartToolbarButtonsVisibility','render','isVisible','focusLast','_streamableContentView','element','tab','children','change:_state','availableActions','436675XbPtJi','pending','6039HDsJnl','toggleRotatorButtonsVisibility','_miniToolbarView','3722540zEjYls','_createNextButtonView','destroy','shift\x20+\x20tab','ck-ai-chat-balloon__toolbar-container','keepErrors','nextButtonView','set','toggleShowChanges','insertSuggestion','8628UwlcEZ','217IaPSFB','_focusTracker','_toolbarContainerView','bindTemplate','showBlockingError','56nObzpc','AI_BALLOON_PREVIOUS_LABEL','add','has','35faxsrw','isEnabled','toggleSuggestionDisplayMode','setButtonsVisibility','658755kFsInJ','showPrevious','createCollection','setTemplate'];_0x1c81=function(){return _0x162335;};return _0x1c81();}import{getTranslation as _0x5eca2f}from'../../aicore/utils/common-translations.js';function _0x21bf(_0x5ef6ee,_0x5da163){const _0x1c8149=_0x1c81();return _0x21bf=function(_0x21bf60,_0x350451){_0x21bf60=_0x21bf60-0x137;let _0x3f91e4=_0x1c8149[_0x21bf60];return _0x3f91e4;},_0x21bf(_0x5ef6ee,_0x5da163);}import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x49c613{[_0x47e56f(0x189)];[_0x47e56f(0x141)];[_0x47e56f(0x172)];[_0x47e56f(0x175)];[_0x47e56f(0x159)];[_0x47e56f(0x147)];[_0x47e56f(0x180)];[_0x47e56f(0x179)];[_0x47e56f(0x186)];[_0x47e56f(0x148)];[_0x47e56f(0x16d)];[_0x47e56f(0x15b)];[_0x47e56f(0x13a)];constructor(_0x574dfc,_0x2e37fb){const _0x1e3636=_0x47e56f;super(_0x574dfc);const _0x366546=this[_0x1e3636(0x149)];this[_0x1e3636(0x142)](_0x1e3636(0x17c),!0x1),this[_0x1e3636(0x142)](_0x1e3636(0x169),_0x1e3636(0x137)),this[_0x1e3636(0x147)]=new _0x30dd0d(),this[_0x1e3636(0x180)]=new _0x382819(),this[_0x1e3636(0x159)]=this[_0x1e3636(0x155)](),this[_0x1e3636(0x175)]=new _0x374a8d({'focusables':this[_0x1e3636(0x159)],'focusTracker':this[_0x1e3636(0x147)],'keystrokeHandler':this[_0x1e3636(0x180)],'actions':{'focusPrevious':_0x1e3636(0x13e),'focusNext':_0x1e3636(0x188)}}),this[_0x1e3636(0x179)]=_0x2e37fb,this[_0x1e3636(0x141)]=this[_0x1e3636(0x13c)](),this[_0x1e3636(0x172)]=this[_0x1e3636(0x177)](),this[_0x1e3636(0x186)]=new _0x366dfb(_0x574dfc),this[_0x1e3636(0x16d)]=new _0x3ec9d0(_0x574dfc,_0x2e37fb[_0x1e3636(0x18b)]),this[_0x1e3636(0x16d)][_0x1e3636(0x170)](_0x1e3636(0x160),_0x1e3636(0x144),_0x1e3636(0x161))['to'](this),this[_0x1e3636(0x182)](_0x2e37fb),this[_0x1e3636(0x15b)]=new _0x12e2a2(_0x574dfc),this[_0x1e3636(0x15b)][_0x1e3636(0x184)]=!0x1,this[_0x1e3636(0x13a)]=new _0x1e5163(_0x574dfc,{'showChanges':_0x1e3636(0x158)}),this[_0x1e3636(0x13a)][_0x1e3636(0x165)](_0x1e3636(0x171))['to'](this,_0x1e3636(0x17c)),this[_0x1e3636(0x13a)]['on'](_0x1e3636(0x143),()=>{const _0x215366=_0x1e3636;this[_0x215366(0x176)](_0x215366(0x151));}),this[_0x1e3636(0x148)]=new fs(_0x574dfc,[this[_0x1e3636(0x16d)],this[_0x1e3636(0x15b)],this[_0x1e3636(0x13a)]]),this[_0x1e3636(0x189)]=this[_0x1e3636(0x155)]([this[_0x1e3636(0x186)],this[_0x1e3636(0x148)]]),this['on'](_0x1e3636(0x18a),(_0xeaed20,_0x2a473c,_0x26e4a9,_0x5d5491)=>{const _0x24b12f=_0x1e3636;let _0x2548b8,_0x1dc631;_0x24b12f(0x137)===_0x5d5491?(_0x2548b8=this[_0x24b12f(0x16d)],_0x1dc631=this[_0x24b12f(0x15b)]):(_0x2548b8=this[_0x24b12f(0x15b)],_0x1dc631=this[_0x24b12f(0x16d)]),this[_0x24b12f(0x15b)][_0x24b12f(0x15a)](_0x26e4a9),_0x2548b8[_0x24b12f(0x184)]=!0x1,_0x1dc631[_0x24b12f(0x184)]=!0x0;}),this[_0x1e3636(0x156)]({'tag':_0x1e3636(0x15d),'attributes':{'class':['ck',_0x1e3636(0x16c),_0x366546['to'](_0x1e3636(0x169),_0x1e7594=>_0x1e3636(0x164)+_0x1e7594)]},'children':this[_0x1e3636(0x189)]}),this['on'](_0x1e3636(0x15f),()=>{const _0xf5765c=_0x1e3636;this[_0xf5765c(0x182)](_0x2e37fb);});}[_0x47e56f(0x183)](){const _0x4319ad=_0x47e56f;super[_0x4319ad(0x183)](),this[_0x4319ad(0x141)][_0x4319ad(0x183)](),this[_0x4319ad(0x172)][_0x4319ad(0x183)](),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x187)]),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x141)]),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x172)]),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x13a)]),this[_0x4319ad(0x147)][_0x4319ad(0x14d)](this[_0x4319ad(0x16d)]),this[_0x4319ad(0x180)][_0x4319ad(0x15c)](this[_0x4319ad(0x187)]),this[_0x4319ad(0x180)][_0x4319ad(0x15c)](this[_0x4319ad(0x141)][_0x4319ad(0x187)]),this[_0x4319ad(0x180)][_0x4319ad(0x15c)](this[_0x4319ad(0x172)][_0x4319ad(0x187)]),this[_0x4319ad(0x159)][_0x4319ad(0x157)]([this[_0x4319ad(0x141)],this[_0x4319ad(0x172)],this[_0x4319ad(0x16d)],this[_0x4319ad(0x13a)]]);}[_0x47e56f(0x13d)](){const _0x175f1b=_0x47e56f;super[_0x175f1b(0x13d)](),this[_0x175f1b(0x172)][_0x175f1b(0x13d)](),this[_0x175f1b(0x141)][_0x175f1b(0x13d)]();}[_0x47e56f(0x17e)](){const _0x27f4b5=_0x47e56f;this[_0x27f4b5(0x175)][_0x27f4b5(0x178)]();}[_0x47e56f(0x185)](){const _0x169ca9=_0x47e56f;this[_0x169ca9(0x175)][_0x169ca9(0x185)]();}async[_0x47e56f(0x167)](_0x5e93c4){const _0x2a3cac=_0x47e56f;_0x5e93c4?.[_0x2a3cac(0x140)]||this[_0x2a3cac(0x16a)](),await this[_0x2a3cac(0x186)][_0x2a3cac(0x17b)](_0x5e93c4);}[_0x47e56f(0x15a)](_0x4d209d){const _0x2796b1=_0x47e56f;this[_0x2796b1(0x169)]=_0x4d209d;}[_0x47e56f(0x168)](_0x5bf2bd){const _0x4afc7a=_0x47e56f;super[_0x4afc7a(0x168)](_0x5bf2bd),this[_0x4afc7a(0x189)][_0x4afc7a(0x14e)](this[_0x4afc7a(0x17f)])||this[_0x4afc7a(0x189)][_0x4afc7a(0x14d)](this[_0x4afc7a(0x17f)],0x0);}[_0x47e56f(0x16a)](){const _0x3920e5=_0x47e56f;this[_0x3920e5(0x17a)]&&(super[_0x3920e5(0x16a)](),this[_0x3920e5(0x181)](!0x0));}[_0x47e56f(0x14a)](_0x28fcef){const _0x3ec811=_0x47e56f;super[_0x3ec811(0x14a)](_0x28fcef),this[_0x3ec811(0x181)](!0x1);}[_0x47e56f(0x139)](_0x5cdd03){const _0xefc3e2=_0x47e56f;this[_0xefc3e2(0x141)][_0xefc3e2(0x184)]=this[_0xefc3e2(0x172)][_0xefc3e2(0x184)]=_0x5cdd03;}[_0x47e56f(0x181)](_0x33babe){const _0x9738bf=_0x47e56f;this[_0x9738bf(0x16d)][_0x9738bf(0x150)]=_0x33babe;}[_0x47e56f(0x182)]({showApplyButton:_0x284d05,showSuggestButton:_0x1e67e9}){const _0x30db55=_0x47e56f;_0x284d05=_0x284d05&&!this[_0x30db55(0x16b)]&&this[_0x30db55(0x179)][_0x30db55(0x18b)][_0x30db55(0x166)](_0x30db55(0x160)),_0x1e67e9=_0x1e67e9&&this[_0x30db55(0x179)][_0x30db55(0x18b)][_0x30db55(0x166)](_0x30db55(0x144)),this[_0x30db55(0x16d)][_0x30db55(0x152)]({'showApplyButton':_0x284d05,'showSuggestButton':_0x1e67e9});}[_0x47e56f(0x13c)](){const _0x4d3ff4=_0x47e56f,_0x415e77=new _0x3edd7d(this[_0x4d3ff4(0x174)]);return _0x415e77[_0x4d3ff4(0x142)]({'icon':_0x5c1650,'label':_0x5eca2f(this[_0x4d3ff4(0x174)],_0x4d3ff4(0x162)),'isVisible':!0x0}),_0x415e77['on'](_0x4d3ff4(0x16e),()=>{const _0x19fdbf=_0x4d3ff4;this[_0x19fdbf(0x176)](_0x19fdbf(0x15e));}),_0x415e77;}[_0x47e56f(0x177)](){const _0x4c1842=_0x47e56f,_0x352af2=new _0x3edd7d(this[_0x4c1842(0x174)]);return _0x352af2[_0x4c1842(0x142)]({'icon':_0x5bb0d9,'label':_0x5eca2f(this[_0x4c1842(0x174)],_0x4c1842(0x14c)),'isVisible':!0x0}),_0x352af2['on'](_0x4c1842(0x16e),()=>{const _0x3b739c=_0x4c1842;this[_0x3b739c(0x176)](_0x3b739c(0x154));}),_0x352af2;}}class fs extends _0x2538f5{constructor(_0x283eb4,_0x22524e){const _0x579a2c=_0x47e56f;super(_0x283eb4),this[_0x579a2c(0x156)]({'tag':_0x579a2c(0x15d),'attributes':{'class':[_0x579a2c(0x13f)]},'children':_0x22524e});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45d933=_0x3cc9;(function(_0x1ad8cc,_0x5fa766){const _0x30bf8a=_0x3cc9,_0x222958=_0x1ad8cc();while(!![]){try{const _0x108fd3=parseInt(_0x30bf8a(0x138))/0x1+-parseInt(_0x30bf8a(0x139))/0x2+parseInt(_0x30bf8a(0x12e))/0x3*(-parseInt(_0x30bf8a(0x154))/0x4)+-parseInt(_0x30bf8a(0x15d))/0x5+parseInt(_0x30bf8a(0x11c))/0x6*(parseInt(_0x30bf8a(0x13c))/0x7)+parseInt(_0x30bf8a(0x160))/0x8+parseInt(_0x30bf8a(0x120))/0x9*(parseInt(_0x30bf8a(0x134))/0xa);if(_0x108fd3===_0x5fa766)break;else _0x222958['push'](_0x222958['shift']());}catch(_0x3ed9fb){_0x222958['push'](_0x222958['shift']());}}}(_0x1f8a,0x7b1d7));import{ButtonView as _0x413717,clickOutsideHandler as _0x41a394,View as _0x2f6da8}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0xf485b9}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x3d660f}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x11e3f5,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x19a079}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x5b3b95}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x581715}from'../../aicore/utils/common-translations.js';function _0x1f8a(){const _0x3e96d5=['18298IedfvM','_createLoaderView','ck-ai-chat-controls-disabled','reset','setIsUploadInProgress','setModel','fieldView','_shouldRestorePromptInputFocus','_loaderView','locale','clearConversationContextItems','addContextButtonView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_createPromptCapabilitiesView','contextResourcesSearchInputVisibleFrom','set','focusPromptInput','ck-ai-chat-controls','resetMessageInput','value','form','enableModelSelector','removeContextItem','_createContextPanelView','8ZBChSK','setWebSearch','isDisabled','sendUserMessage','_promptInputView','ck-ai-chat-controls__start-new-chat-button','closeSourceResourceBalloon','setAddContextOptions','_contextPanelView','3930505qqURFm','_promptCapabilitiesView','_modelUnavailableMessageView','3059520jfnrdD','div','clearPendingContextUI','setInputPlaceholder','setContextItemLoading','ck-ai-chat-controls-model-unavailable-message','clearConversationContextUI','bodyCollection','populateSourceResourceBalloon','change:isLoading','element','setConversationContext','setPromptInputValue','2046HONGkW','toggleReasoning','isModelAvailable','_createPromptInputView','170514RdZups','queryView','bindTemplate','focus','ck-hidden','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setReasoning','execute','addContextItem','setPlaceholderText','selectModel','disableModelSelector','abortPromptStream','_handlePromptInputFocus','937293PJYRKi','low','delegate','startConversation','_createModelUnavailableMessageView','setModelList','90kCQGSv','toggleWebSearch','isLoading','clearCurrentContextItems','920116HectPI','898404qoMzwp','setTemplate','updateResourceState'];_0x1f8a=function(){return _0x3e96d5;};return _0x1f8a();}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';function _0x3cc9(_0x5608fc,_0xce4e00){const _0x1f8a24=_0x1f8a();return _0x3cc9=function(_0x3cc9d8,_0x36351b){_0x3cc9d8=_0x3cc9d8-0x11a;let _0x577e03=_0x1f8a24[_0x3cc9d8];return _0x577e03;},_0x3cc9(_0x5608fc,_0xce4e00);}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 _0x2f6da8{[_0x45d933(0x15c)];[_0x45d933(0x158)];[_0x45d933(0x15e)];[_0x45d933(0x144)];[_0x45d933(0x15f)];[_0x45d933(0x143)];constructor(_0x30ff03,_0x1ff96a){const _0x27f08d=_0x45d933;super(_0x30ff03),this[_0x27f08d(0x15c)]=this[_0x27f08d(0x153)](_0x30ff03,{'bodyCollection':_0x1ff96a[_0x27f08d(0x167)],'searchInputVisibleFrom':_0x1ff96a[_0x27f08d(0x14a)]}),this[_0x27f08d(0x158)]=this[_0x27f08d(0x11f)](_0x30ff03),this[_0x27f08d(0x15e)]=this[_0x27f08d(0x149)](_0x30ff03),this[_0x27f08d(0x144)]=this[_0x27f08d(0x13d)](_0x30ff03),this[_0x27f08d(0x15f)]=this[_0x27f08d(0x132)](_0x30ff03),this[_0x27f08d(0x143)]=!0x1,this[_0x27f08d(0x158)][_0x27f08d(0x130)](_0x27f08d(0x157))['to'](this),this[_0x27f08d(0x144)][_0x27f08d(0x130)](_0x27f08d(0x12c))['to'](this),this[_0x27f08d(0x15e)][_0x27f08d(0x130)](_0x27f08d(0x135))['to'](this),this[_0x27f08d(0x15e)][_0x27f08d(0x130)](_0x27f08d(0x11d))['to'](this),this[_0x27f08d(0x15e)][_0x27f08d(0x130)](_0x27f08d(0x12a))['to'](this),this[_0x27f08d(0x15c)][_0x27f08d(0x130)](..._0x19a079)['to'](this),this[_0x27f08d(0x14b)](_0x27f08d(0x11e),!0x0),this[_0x27f08d(0x14b)](_0x27f08d(0x156),!0x1);const _0x17ecbb=this[_0x27f08d(0x122)];this[_0x27f08d(0x13a)]({'tag':_0x27f08d(0x150),'attributes':{'class':['ck',_0x27f08d(0x14d),_0x17ecbb['if'](_0x27f08d(0x156),_0x27f08d(0x13e))]},'children':[{'tag':_0x27f08d(0x161),'attributes':{'class':[_0x17ecbb['if'](_0x27f08d(0x136),_0x27f08d(0x124),_0xb4a92c=>_0xb4a92c||!this[_0x27f08d(0x11e)]),_0x17ecbb['if'](_0x27f08d(0x11e),_0x27f08d(0x124),_0x46836c=>!_0x46836c||this[_0x27f08d(0x136)])]},'children':[this[_0x27f08d(0x15c)],this[_0x27f08d(0x158)],this[_0x27f08d(0x15e)]]},{'tag':_0x27f08d(0x161),'attributes':{'class':[_0x17ecbb['if'](_0x27f08d(0x136),_0x27f08d(0x124),_0x5659d0=>!_0x5659d0)]},'children':[this[_0x27f08d(0x144)]]},{'tag':_0x27f08d(0x161),'attributes':{'class':[_0x17ecbb['if'](_0x27f08d(0x11e),_0x27f08d(0x124),_0x499019=>_0x499019)]},'children':[this[_0x27f08d(0x15f)]]}]}),_0x41a394({'emitter':this[_0x27f08d(0x158)],'activator':()=>this[_0x27f08d(0x136)],'contextElements':()=>[this[_0x27f08d(0x16a)]],'callback':()=>{const _0x1655d0=_0x27f08d;this[_0x1655d0(0x143)]=!0x1;}}),this['on'](_0x27f08d(0x169),this[_0x27f08d(0x12d)],{'priority':_0x27f08d(0x12f)});}[_0x45d933(0x153)](_0x1ef48d,_0x447843){return new _0x11e3f5(_0x1ef48d,_0x447843);}[_0x45d933(0x11f)](_0x2c0b5c){const _0xf244d0=_0x45d933;return new _0xf485b9(_0x2c0b5c,this[_0xf244d0(0x15c)][_0xf244d0(0x147)]);}[_0x45d933(0x149)](_0x4c2e33){return new _0x3d660f(_0x4c2e33);}[_0x45d933(0x13d)](_0x5c5437){return new _0x5b3b95(_0x5c5437);}[_0x45d933(0x132)](_0x1bb862){const _0x5b0887=_0x45d933,_0x347c9a=new As(_0x1bb862);return _0x347c9a[_0x5b0887(0x130)](_0x5b0887(0x131))['to'](this),_0x347c9a;}[_0x45d933(0x12d)](_0xb5163,_0xd98d8,_0x194cb0){const _0x58ef2e=_0x45d933;_0x194cb0?this[_0x58ef2e(0x143)]=!0x0:this[_0x58ef2e(0x143)]&&this[_0x58ef2e(0x158)][_0x58ef2e(0x123)]();}[_0x45d933(0x128)](_0x1bfb54,_0x575a62){const _0x5c025e=_0x45d933;this[_0x5c025e(0x15c)][_0x5c025e(0x128)](_0x1bfb54,_0x575a62);}[_0x45d933(0x152)](_0x11f953){const _0x5f7747=_0x45d933;this[_0x5f7747(0x15c)][_0x5f7747(0x152)](_0x11f953);}[_0x45d933(0x164)](_0x172325,_0x41b46e){const _0x41c8ac=_0x45d933;this[_0x41c8ac(0x15c)][_0x41c8ac(0x164)](_0x172325,_0x41b46e);}[_0x45d933(0x140)](_0x5b87a6){const _0x5e2de6=_0x45d933;this[_0x5e2de6(0x158)][_0x5e2de6(0x140)](_0x5b87a6);}[_0x45d933(0x11a)](_0x1de1a8){const _0x1555c2=_0x45d933;this[_0x1555c2(0x15c)][_0x1555c2(0x11a)](_0x1de1a8);}[_0x45d933(0x162)](){const _0x1faf5e=_0x45d933;this[_0x1faf5e(0x15c)][_0x1faf5e(0x137)]();}[_0x45d933(0x166)](){const _0x407e51=_0x45d933;this[_0x407e51(0x15c)][_0x407e51(0x146)]();}[_0x45d933(0x13b)](_0x52584c,_0x9d8eb9,_0x1c2e50){const _0x456eff=_0x45d933;this[_0x456eff(0x15c)][_0x456eff(0x13b)](_0x52584c,_0x9d8eb9,_0x1c2e50);}[_0x45d933(0x155)](_0x4f9d01){const _0x528fd9=_0x45d933;this[_0x528fd9(0x15e)][_0x528fd9(0x155)](_0x4f9d01);}[_0x45d933(0x126)](_0xe6ea28){const _0x5f9fb=_0x45d933;this[_0x5f9fb(0x15e)][_0x5f9fb(0x126)](_0xe6ea28);}[_0x45d933(0x14e)](){const _0x298929=_0x45d933;this[_0x298929(0x158)][_0x298929(0x13f)]();}[_0x45d933(0x15b)](_0x31ed7b){const _0x12c829=_0x45d933;this[_0x12c829(0x15c)][_0x12c829(0x15b)](_0x31ed7b);}[_0x45d933(0x163)](_0x4c3312){const _0x51df8b=_0x45d933;this[_0x51df8b(0x158)][_0x51df8b(0x129)](_0x4c3312);}[_0x45d933(0x133)](_0x3eb998,_0x5835a0){const _0x43a507=_0x45d933;this[_0x43a507(0x15e)][_0x43a507(0x133)](_0x3eb998,_0x5835a0);}[_0x45d933(0x141)](_0x488800){const _0x1714ea=_0x45d933;_0x488800?(this[_0x1714ea(0x11e)]=!0x0,this[_0x1714ea(0x15e)][_0x1714ea(0x141)](_0x488800)):this[_0x1714ea(0x11e)]=!0x1;}[_0x45d933(0x151)](){const _0x1c0380=_0x45d933;this[_0x1c0380(0x15e)][_0x1c0380(0x151)]();}[_0x45d933(0x12b)](_0x42004d){const _0x1af91d=_0x45d933;this[_0x1af91d(0x15e)][_0x1af91d(0x12b)](_0x42004d);}[_0x45d933(0x168)](_0x3563c1,_0x139ca8,_0xeb062b,_0x2ac8bd){const _0x252c89=_0x45d933;this[_0x252c89(0x15c)][_0x252c89(0x168)](_0x3563c1,_0x139ca8,_0xeb062b,_0x2ac8bd);}[_0x45d933(0x15a)](_0x3fc320){const _0x530f1b=_0x45d933;this[_0x530f1b(0x15c)][_0x530f1b(0x15a)](_0x3fc320);}[_0x45d933(0x14c)](_0x3b9dfb=!0x1){const _0x43bad6=_0x45d933;this[_0x43bad6(0x158)][_0x43bad6(0x123)](_0x3b9dfb);}[_0x45d933(0x11b)](_0x4e587f){const _0x1cb91c=_0x45d933;this[_0x1cb91c(0x158)][_0x1cb91c(0x121)][_0x1cb91c(0x142)][_0x1cb91c(0x13f)](),this[_0x1cb91c(0x158)][_0x1cb91c(0x121)][_0x1cb91c(0x142)][_0x1cb91c(0x14f)]=_0x4e587f;}}class As extends _0x2f6da8{constructor(_0x9f34f){const _0x1f9e55=_0x45d933;super(_0x9f34f);const _0x1fa382=new _0x413717(_0x9f34f);_0x1fa382[_0x1f9e55(0x14b)]({'label':_0x581715(this[_0x1f9e55(0x145)],_0x1f9e55(0x148)),'withText':!0x0,'class':[_0x1f9e55(0x159)],'tooltip':''}),_0x1fa382[_0x1f9e55(0x130)](_0x1f9e55(0x127))['to'](this,_0x1f9e55(0x131)),this[_0x1f9e55(0x13a)]({'tag':_0x1f9e55(0x161),'attributes':{'class':['ck',_0x1f9e55(0x165)]},'children':[{'tag':'p','children':[{'text':_0x581715(this[_0x1f9e55(0x145)],_0x1f9e55(0x125))+'\x20'},_0x1fa382]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x42a8ba=_0x1320;(function(_0x1df4a8,_0x3a7edb){const _0x2851ae=_0x1320,_0x543ac9=_0x1df4a8();while(!![]){try{const _0xfa7a62=parseInt(_0x2851ae(0x17f))/0x1+parseInt(_0x2851ae(0x161))/0x2+-parseInt(_0x2851ae(0x18c))/0x3+parseInt(_0x2851ae(0x176))/0x4+parseInt(_0x2851ae(0x18d))/0x5+parseInt(_0x2851ae(0x160))/0x6*(parseInt(_0x2851ae(0x1ad))/0x7)+-parseInt(_0x2851ae(0x162))/0x8*(parseInt(_0x2851ae(0x1ab))/0x9);if(_0xfa7a62===_0x3a7edb)break;else _0x543ac9['push'](_0x543ac9['shift']());}catch(_0x532528){_0x543ac9['push'](_0x543ac9['shift']());}}}(_0x3584,0xa0f39));import{CKEditorError as _0x45b861,logWarning as _0x1cab98,scrollAncestorsToShowTarget as _0x20a5aa}from'ckeditor5/src/utils.js';import{View as _0x51356f}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3410b1}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x47be48}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x593d7e}from'./feed/aichatfeedreplyitemview.js';function _0x3584(){const _0x2c2e4a=['stopAutoScroll','ck-ai-chat__loader','isTrackChangesOn','_bodyCollection','ck-ai-chat__feed__items','updateWebSources','86247sHjVoT','_createSkeletonLoader','includes','remove','updateSuggestionItem','custom-element','delegate','aiFeed','updateReplyItem','getPartView','isVisible','_createFeedItems','stop','1734954Vdvwgl','6151730Zlknti','_createTemplateChildren','updatePartState','setLoadingMessage','ck-ai-chat__feed','span','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','setTemplate','div','bind','toggleLoadingSkeleton','createCollection','_createLoaderChildren','ai-chat-feed-view-item-not-a-suggestion-item','element','markAsDone','map','interaction-header','clear','addItem','add','setSuggestionPartActive','children','options','ai-suggestion-reply','loadingMessage','updateSources','ai-chat-feed-view-item-not-a-reply-item','updateContent','scrollManager','9tnCPoz','set','49jSAWIL','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','filter','parentElement','locale','ai-chat-feed-view-item-not-found','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','getItemById','updateSuggestionPartState','bindTemplate','244176qRxwHm','698146PeWCkD','11953672TOyDVL','find','isLoadingSkeletonVisible','ck-ai-chat__loader-text','ai-reply','render','scrollToSuggestion','user-message','_setupTemplate','setPartActive','getItemIds','ck-hidden','isPending','start','_createFeedLoader','destroy','hasItem','forEach','removeItem','markItemAsDone','3124984AktEbZ','startAutoScroll','extendTemplate'];_0x3584=function(){return _0x2c2e4a;};return _0x3584();}import{AIChatFeedUserMessageItemView as _0x4ba812}from'./feed/aichatfeedusermessageitem.js';function _0x1320(_0x1525ea,_0x5ee4e5){const _0x3584c6=_0x3584();return _0x1320=function(_0x1320e9,_0x56aa54){_0x1320e9=_0x1320e9-0x160;let _0x3b2442=_0x3584c6[_0x1320e9];return _0x3b2442;},_0x1320(_0x1525ea,_0x5ee4e5);}import{AIChatFeedErrorItemView as _0x3a2521}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x410016}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4da46b}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x3f1447,SKELETON_DEFINITIONS as _0x17deaa}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x3d9c5b}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x16c8f7}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x51356f{[_0x42a8ba(0x1a3)];[_0x42a8ba(0x1aa)];[_0x42a8ba(0x17c)];constructor(_0x27d109,_0x544a63){const _0x58f4d6=_0x42a8ba;super(_0x27d109),this[_0x58f4d6(0x17c)]=_0x544a63,this[_0x58f4d6(0x1ac)](_0x58f4d6(0x16e),!0x1),this[_0x58f4d6(0x1ac)](_0x58f4d6(0x1a6),''),this[_0x58f4d6(0x1ac)](_0x58f4d6(0x164),!0x1),this[_0x58f4d6(0x1ac)](_0x58f4d6(0x17b),!0x1),this[_0x58f4d6(0x1a3)]=this[_0x58f4d6(0x198)](),this[_0x58f4d6(0x1a3)][_0x58f4d6(0x185)](..._0x3410b1)['to'](this),this[_0x58f4d6(0x16a)]();}[_0x42a8ba(0x167)](){const _0x5a70b3=_0x42a8ba;super[_0x5a70b3(0x167)](),this[_0x5a70b3(0x1aa)]=new _0x4da46b(this[_0x5a70b3(0x19b)]);}[_0x42a8ba(0x171)](){const _0x5bd1f0=_0x42a8ba;super[_0x5bd1f0(0x171)](),this[_0x5bd1f0(0x1aa)][_0x5bd1f0(0x171)]();}[_0x42a8ba(0x19f)](){const _0x10f151=_0x42a8ba;this[_0x10f151(0x1a3)][_0x10f151(0x19f)]();}[_0x42a8ba(0x1a0)](_0xcc8de4,_0x3e08d1){const _0x1d4cc0=_0x42a8ba;let _0x95357e;return _0x1d4cc0(0x166)===_0xcc8de4?_0x95357e=new _0x593d7e(this[_0x1d4cc0(0x1b1)],_0x3e08d1,this[_0x1d4cc0(0x17c)]):_0x1d4cc0(0x1a5)===_0xcc8de4?(_0x95357e=new _0x47be48(this[_0x1d4cc0(0x1b1)],_0x3e08d1,this[_0x1d4cc0(0x17c)]),_0x95357e[_0x1d4cc0(0x196)](_0x1d4cc0(0x17b))['to'](this)):_0x95357e=_0x1d4cc0(0x169)===_0xcc8de4?new _0x4ba812(this[_0x1d4cc0(0x1b1)],_0x3e08d1,this[_0x1d4cc0(0x17c)]):_0x1d4cc0(0x19e)===_0xcc8de4?new _0x410016(this[_0x1d4cc0(0x1b1)],_0x3e08d1):_0x1d4cc0(0x184)===_0xcc8de4?new _0x16c8f7(_0x3e08d1):new _0x3a2521(_0x3e08d1),this[_0x1d4cc0(0x1a3)][_0x1d4cc0(0x1a1)](_0x95357e),_0x95357e;}async[_0x42a8ba(0x187)]({id:_0x1ea00f,parsedContent:_0x33cb91,renderingStrategy:_0x159e2e,abortSignal:_0x222dee}){const _0x4acec7=_0x42a8ba,_0x42a009=this[_0x4acec7(0x1b4)](_0x1ea00f);if(!(_0x42a009 instanceof _0x593d7e))throw new _0x45b861(_0x4acec7(0x1a8),null,{'itemView':_0x42a009,'id':_0x1ea00f,'parsedContent':_0x33cb91});await _0x42a009[_0x4acec7(0x1a9)]({'parsedContent':_0x33cb91,'renderingStrategy':_0x159e2e,'abortSignal':_0x222dee});}async[_0x42a8ba(0x17e)](_0x5d0b6e,_0x14a019){const _0x1218f2=_0x42a8ba,_0x33c802=this[_0x1218f2(0x1b4)](_0x5d0b6e);if(_0x33c802 instanceof _0x47be48)_0x33c802[_0x1218f2(0x1a7)](_0x14a019);else{if(!(_0x33c802 instanceof _0x593d7e))throw new _0x45b861(_0x1218f2(0x1b3),null,{'itemView':_0x33c802,'id':_0x5d0b6e,'sources':_0x14a019});_0x33c802[_0x1218f2(0x1a7)](_0x14a019);}}async[_0x42a8ba(0x183)]({id:_0x397ed3,parts:_0x237ce3,renderingStrategy:_0x242e15,abortSignal:_0x5b699a}){const _0x5379aa=_0x42a8ba,_0x4f00ff=this[_0x5379aa(0x1b4)](_0x397ed3);if(!(_0x4f00ff instanceof _0x47be48))throw new _0x45b861(_0x5379aa(0x19a),null,{'itemView':_0x4f00ff,'id':_0x397ed3,'parts':_0x237ce3});await _0x4f00ff[_0x5379aa(0x1a9)]({'parts':_0x237ce3,'renderingStrategy':_0x242e15,'abortSignal':_0x5b699a});}[_0x42a8ba(0x1b5)]({id:_0xfcc042,index:_0x494880,state:_0xa35082}){const _0x546eea=_0x42a8ba,_0x2a5973=this[_0x546eea(0x1b4)](_0xfcc042);if(!(_0x2a5973 instanceof _0x47be48))throw new _0x45b861(_0x546eea(0x19a),this,{'id':_0xfcc042});_0x2a5973[_0x546eea(0x18f)](_0x494880,_0xa35082);}[_0x42a8ba(0x1a2)]({id:_0x39d6d2,index:_0x55e1d6,isActive:_0x22be9b}){const _0x577b13=_0x42a8ba,_0x14a5a6=this[_0x577b13(0x1b4)](_0x39d6d2);if(!(_0x14a5a6 instanceof _0x47be48))throw new _0x45b861(_0x577b13(0x19a),this,{'id':_0x39d6d2});this[_0x577b13(0x1a3)][_0x577b13(0x1af)](_0x2b676c=>_0x2b676c instanceof _0x47be48)[_0x577b13(0x173)](_0x1ca5f1=>{const _0x3ae78b=_0x577b13;_0x1ca5f1[_0x3ae78b(0x16b)](!0x1);}),_0x14a5a6[_0x577b13(0x16b)](_0x55e1d6,_0x22be9b);}[_0x42a8ba(0x175)](_0x4b18eb){const _0x181d3a=_0x42a8ba;this[_0x181d3a(0x1b4)](_0x4b18eb)[_0x181d3a(0x19c)]();}[_0x42a8ba(0x16c)](){const _0x48be11=_0x42a8ba;return this[_0x48be11(0x1a3)][_0x48be11(0x19d)](_0x5631d4=>_0x5631d4[_0x48be11(0x1a4)]['id']);}[_0x42a8ba(0x174)](_0x175b6b){const _0x304fba=_0x42a8ba;this[_0x304fba(0x1a3)][_0x304fba(0x182)](this[_0x304fba(0x1b4)](_0x175b6b));}[_0x42a8ba(0x172)](_0x32f1e5){const _0x58ecd7=_0x42a8ba;return!!this[_0x58ecd7(0x1a3)][_0x58ecd7(0x163)](_0x3291ed=>_0x3291ed[_0x58ecd7(0x1a4)]['id'][_0x58ecd7(0x181)](_0x32f1e5));}[_0x42a8ba(0x168)](_0x397214,_0x2148d5){const _0x3a9c25=_0x42a8ba,_0x496eb6=this[_0x3a9c25(0x1b4)](_0x397214);if(!(_0x496eb6 instanceof _0x47be48))return void _0x1cab98(_0x3a9c25(0x193),{'replyId':_0x397214,'partIndex':_0x2148d5});const _0x3e548b=_0x496eb6[_0x3a9c25(0x188)](_0x2148d5);_0x3e548b?_0x20a5aa(_0x3e548b[_0x3a9c25(0x19b)],0x14,this[_0x3a9c25(0x19b)][_0x3a9c25(0x1b0)],!0x0,!0x0):_0x1cab98(_0x3a9c25(0x1ae),{'replyId':_0x397214,'partIndex':_0x2148d5});}[_0x42a8ba(0x16a)](){const _0x4f6028=_0x42a8ba;this[_0x4f6028(0x194)]({'tag':_0x4f6028(0x195),'attributes':{'class':['ck',_0x4f6028(0x191)]},'children':this[_0x4f6028(0x18e)]()});}[_0x42a8ba(0x18e)](){const _0x32f29e=_0x42a8ba,_0x20746a=this[_0x32f29e(0x180)]();return[this[_0x32f29e(0x18a)](),_0x20746a,this[_0x32f29e(0x170)]()];}[_0x42a8ba(0x180)](){const _0x401cae=_0x42a8ba,_0x1513de=new _0x3f1447(this[_0x401cae(0x1b1)],_0x17deaa[_0x401cae(0x186)]);return _0x1513de[_0x401cae(0x178)]({'attributes':{'class':[this[_0x401cae(0x1b6)]['if'](_0x401cae(0x164),_0x401cae(0x16d),_0x4beac1=>!_0x4beac1)]}}),_0x1513de;}[_0x42a8ba(0x18a)](){const _0x436c66=_0x42a8ba,_0x5653c3=new _0x51356f(this[_0x436c66(0x1b1)]);return _0x5653c3[_0x436c66(0x194)]({'tag':_0x436c66(0x195),'attributes':{'class':['ck',_0x436c66(0x17d),this[_0x436c66(0x1b6)]['if'](_0x436c66(0x164),_0x436c66(0x16d))]},'children':this[_0x436c66(0x1a3)]}),_0x5653c3;}[_0x42a8ba(0x170)](){const _0xff9dc0=_0x42a8ba,_0x37b43e=new _0x51356f(this[_0xff9dc0(0x1b1)]);return _0x37b43e[_0xff9dc0(0x194)]({'tag':_0xff9dc0(0x195),'attributes':{'class':['ck',_0xff9dc0(0x17a),this[_0xff9dc0(0x1b6)]['if'](_0xff9dc0(0x16e),_0xff9dc0(0x16d),_0x2aebea=>!_0x2aebea)]},'children':this[_0xff9dc0(0x199)]()}),_0x37b43e;}[_0x42a8ba(0x199)](){const _0x5f2f2d=_0x42a8ba,_0x22a5b4=new _0x3d9c5b();return _0x22a5b4[_0x5f2f2d(0x189)]=!0x0,[_0x22a5b4,{'tag':_0x5f2f2d(0x192),'attributes':{'class':['ck',_0x5f2f2d(0x165)]},'children':[{'text':this[_0x5f2f2d(0x1b6)]['to'](_0x5f2f2d(0x1a6))}]}];}[_0x42a8ba(0x1b4)](_0x5373cc){const _0x57f07b=_0x42a8ba,_0x4cc3a2=this[_0x57f07b(0x1a3)][_0x57f07b(0x163)](_0x4de9c3=>_0x4de9c3[_0x57f07b(0x1a4)]['id'][_0x57f07b(0x181)](_0x5373cc));if(!_0x4cc3a2)throw new _0x45b861(_0x57f07b(0x1b2),this,{'id':_0x5373cc});return _0x4cc3a2;}[_0x42a8ba(0x190)](_0x17498a){const _0x465fdd=_0x42a8ba;this[_0x465fdd(0x1ac)](_0x465fdd(0x1a6),_0x17498a);}[_0x42a8ba(0x197)](_0x58b3f9){const _0x53c14e=_0x42a8ba;this[_0x53c14e(0x1ac)](_0x53c14e(0x164),_0x58b3f9);}[_0x42a8ba(0x177)](){const _0x5c459d=_0x42a8ba;this[_0x5c459d(0x1aa)][_0x5c459d(0x16f)]();}[_0x42a8ba(0x179)](){const _0x37d6ba=_0x42a8ba;this[_0x37d6ba(0x1aa)][_0x37d6ba(0x18b)]();}}
|
|
23
|
+
const _0x293ee3=_0x57fe;(function(_0x3f5b90,_0x2e28b8){const _0xf2b1c4=_0x57fe,_0xcabff5=_0x3f5b90();while(!![]){try{const _0xd9ef58=-parseInt(_0xf2b1c4(0xf8))/0x1+parseInt(_0xf2b1c4(0x128))/0x2*(parseInt(_0xf2b1c4(0xf7))/0x3)+parseInt(_0xf2b1c4(0xfb))/0x4*(parseInt(_0xf2b1c4(0x133))/0x5)+-parseInt(_0xf2b1c4(0x136))/0x6*(-parseInt(_0xf2b1c4(0x10e))/0x7)+-parseInt(_0xf2b1c4(0x13d))/0x8*(parseInt(_0xf2b1c4(0xfc))/0x9)+-parseInt(_0xf2b1c4(0x131))/0xa*(parseInt(_0xf2b1c4(0x14d))/0xb)+parseInt(_0xf2b1c4(0x141))/0xc;if(_0xd9ef58===_0x2e28b8)break;else _0xcabff5['push'](_0xcabff5['shift']());}catch(_0x508d4a){_0xcabff5['push'](_0xcabff5['shift']());}}}(_0x2ef4,0x59f7d));import{CKEditorError as _0x2d6a28,logWarning as _0x2884e0,scrollAncestorsToShowTarget as _0xd0c89f}from'ckeditor5/src/utils.js';import{View as _0x2d48ed}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x13f727}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x456023}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x10f27a}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x332742}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x9b26e8}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x31dd66}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x7b023a}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4780c8,SKELETON_DEFINITIONS as _0x4a71cc}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0xe007e8}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0xf7269f}from'./feed/aichatfeedcustomelementview.js';function _0x2ef4(){const _0x4c07a9=['isTrackChangesOn','filter','ck-hidden','getItemById','stopAutoScroll','_createSkeletonLoader','find','4413031iRqEuo','custom-element','getItemIds','_bodyCollection','children','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','_setupTemplate','setSuggestionPartActive','stop','isVisible','set','remove','ck-ai-chat__feed__items','aiFeed','updateSources','_createFeedLoader','interaction-header','map','ck-ai-chat__feed','forEach','ai-chat-feed-view-item-not-a-suggestion-item','parentElement','isLoadingSkeletonVisible','ai-chat-feed-view-item-not-a-reply-item','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','updateSuggestionPartState','2710cFxYGq','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','bind','options','scrollToSuggestion','_createLoaderChildren','addItem','clear','element','2537580ttRLtt','hasItem','20UmVGrS','render','div','6oKLbgn','extendTemplate','add','startAutoScroll','setPartActive','destroy','setLoadingMessage','8aLqtXa','createCollection','updateContent','ck-ai-chat__loader','5984640rBeyIs','ai-suggestion-reply','updatePartState','start','locale','updateWebSources','getPartView','ai-chat-feed-view-item-not-found','includes','ck-ai-chat__loader-text','scrollManager','user-message','22AYDrEs','_createFeedItems','ai-reply','bindTemplate','321nEieeb','662040VtTapU','markItemAsDone','delegate','701788cmHgTC','3940749lLytzT','setTemplate','toggleLoadingSkeleton','updateReplyItem','isPending','_createTemplateChildren','loadingMessage','updateSuggestionItem','span','markAsDone','removeItem'];_0x2ef4=function(){return _0x4c07a9;};return _0x2ef4();}function _0x57fe(_0x1fe13a,_0x4c6b69){const _0x2ef403=_0x2ef4();return _0x57fe=function(_0x57fe38,_0x4b9dae){_0x57fe38=_0x57fe38-0xf6;let _0x35a418=_0x2ef403[_0x57fe38];return _0x35a418;},_0x57fe(_0x1fe13a,_0x4c6b69);}import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x2d48ed{[_0x293ee3(0x112)];[_0x293ee3(0x14b)];[_0x293ee3(0x111)];constructor(_0x5522fb,_0x5888ef){const _0x10d1f9=_0x293ee3;super(_0x5522fb),this[_0x10d1f9(0x111)]=_0x5888ef,this[_0x10d1f9(0x118)](_0x10d1f9(0x100),!0x1),this[_0x10d1f9(0x118)](_0x10d1f9(0x102),''),this[_0x10d1f9(0x118)](_0x10d1f9(0x124),!0x1),this[_0x10d1f9(0x118)](_0x10d1f9(0x107),!0x1),this[_0x10d1f9(0x112)]=this[_0x10d1f9(0x13e)](),this[_0x10d1f9(0x112)][_0x10d1f9(0xfa)](..._0x13f727)['to'](this),this[_0x10d1f9(0x114)]();}[_0x293ee3(0x134)](){const _0x5c5656=_0x293ee3;super[_0x5c5656(0x134)](),this[_0x5c5656(0x14b)]=new _0x7b023a(this[_0x5c5656(0x130)]);}[_0x293ee3(0x13b)](){const _0x29faaf=_0x293ee3;super[_0x29faaf(0x13b)](),this[_0x29faaf(0x14b)][_0x29faaf(0x13b)]();}[_0x293ee3(0x12f)](){const _0x2c60c9=_0x293ee3;this[_0x2c60c9(0x112)][_0x2c60c9(0x12f)]();}[_0x293ee3(0x12e)](_0xf8f13a,_0x3b9c6a){const _0x2e6a6f=_0x293ee3;let _0x2a72e6;return _0x2e6a6f(0x14f)===_0xf8f13a?_0x2a72e6=new _0x10f27a(this[_0x2e6a6f(0x145)],_0x3b9c6a,this[_0x2e6a6f(0x111)]):_0x2e6a6f(0x142)===_0xf8f13a?(_0x2a72e6=new _0x456023(this[_0x2e6a6f(0x145)],_0x3b9c6a,this[_0x2e6a6f(0x111)]),_0x2a72e6[_0x2e6a6f(0x12a)](_0x2e6a6f(0x107))['to'](this)):_0x2a72e6=_0x2e6a6f(0x14c)===_0xf8f13a?new _0x332742(this[_0x2e6a6f(0x145)],_0x3b9c6a,this[_0x2e6a6f(0x111)]):_0x2e6a6f(0x11e)===_0xf8f13a?new _0x31dd66(this[_0x2e6a6f(0x145)],_0x3b9c6a):_0x2e6a6f(0x10f)===_0xf8f13a?new _0xf7269f(_0x3b9c6a):new _0x9b26e8(_0x3b9c6a),this[_0x2e6a6f(0x112)][_0x2e6a6f(0x138)](_0x2a72e6),_0x2a72e6;}async[_0x293ee3(0xff)]({id:_0x505517,parsedContent:_0x3172d6,renderingStrategy:_0x36ccdb,abortSignal:_0x51943d}){const _0x438955=_0x293ee3,_0x1c48cb=this[_0x438955(0x10a)](_0x505517);if(!(_0x1c48cb instanceof _0x10f27a))throw new _0x2d6a28(_0x438955(0x125),null,{'itemView':_0x1c48cb,'id':_0x505517,'parsedContent':_0x3172d6});await _0x1c48cb[_0x438955(0x13f)]({'parsedContent':_0x3172d6,'renderingStrategy':_0x36ccdb,'abortSignal':_0x51943d});}async[_0x293ee3(0x146)](_0x2a7016,_0x50deed){const _0x241bd1=_0x293ee3,_0x4328af=this[_0x241bd1(0x10a)](_0x2a7016);if(_0x4328af instanceof _0x456023)_0x4328af[_0x241bd1(0x11c)](_0x50deed);else{if(!(_0x4328af instanceof _0x10f27a))throw new _0x2d6a28(_0x241bd1(0x129),null,{'itemView':_0x4328af,'id':_0x2a7016,'sources':_0x50deed});_0x4328af[_0x241bd1(0x11c)](_0x50deed);}}async[_0x293ee3(0x103)]({id:_0x2b4831,parts:_0x389ea0,renderingStrategy:_0x401dc5,abortSignal:_0x1b454c}){const _0x2321fc=_0x293ee3,_0x2eab2c=this[_0x2321fc(0x10a)](_0x2b4831);if(!(_0x2eab2c instanceof _0x456023))throw new _0x2d6a28(_0x2321fc(0x122),null,{'itemView':_0x2eab2c,'id':_0x2b4831,'parts':_0x389ea0});await _0x2eab2c[_0x2321fc(0x13f)]({'parts':_0x389ea0,'renderingStrategy':_0x401dc5,'abortSignal':_0x1b454c});}[_0x293ee3(0x127)]({id:_0x311bbe,index:_0x510ebd,state:_0x5f42a7}){const _0x3f7362=_0x293ee3,_0x224d06=this[_0x3f7362(0x10a)](_0x311bbe);if(!(_0x224d06 instanceof _0x456023))throw new _0x2d6a28(_0x3f7362(0x122),this,{'id':_0x311bbe});_0x224d06[_0x3f7362(0x143)](_0x510ebd,_0x5f42a7);}[_0x293ee3(0x115)]({id:_0x6c11b,index:_0x178dee,isActive:_0x46fd89}){const _0xa26c11=_0x293ee3,_0x5aad7b=this[_0xa26c11(0x10a)](_0x6c11b);if(!(_0x5aad7b instanceof _0x456023))throw new _0x2d6a28(_0xa26c11(0x122),this,{'id':_0x6c11b});this[_0xa26c11(0x112)][_0xa26c11(0x108)](_0xcf29aa=>_0xcf29aa instanceof _0x456023)[_0xa26c11(0x121)](_0x2a2044=>{const _0x47cd7b=_0xa26c11;_0x2a2044[_0x47cd7b(0x13a)](!0x1);}),_0x5aad7b[_0xa26c11(0x13a)](_0x178dee,_0x46fd89);}[_0x293ee3(0xf9)](_0x4bc5cd){const _0x428000=_0x293ee3;this[_0x428000(0x10a)](_0x4bc5cd)[_0x428000(0x105)]();}[_0x293ee3(0x110)](){const _0x4100f1=_0x293ee3;return this[_0x4100f1(0x112)][_0x4100f1(0x11f)](_0x4c78ec=>_0x4c78ec[_0x4100f1(0x12b)]['id']);}[_0x293ee3(0x106)](_0x2563fe){const _0x18869d=_0x293ee3;this[_0x18869d(0x112)][_0x18869d(0x119)](this[_0x18869d(0x10a)](_0x2563fe));}[_0x293ee3(0x132)](_0x120bb4){const _0x22b493=_0x293ee3;return!!this[_0x22b493(0x112)][_0x22b493(0x10d)](_0x59703c=>_0x59703c[_0x22b493(0x12b)]['id'][_0x22b493(0x149)](_0x120bb4));}[_0x293ee3(0x12c)](_0x499fe6,_0x4bd138){const _0x2c895b=_0x293ee3,_0x4c1ea4=this[_0x2c895b(0x10a)](_0x499fe6);if(!(_0x4c1ea4 instanceof _0x456023))return void _0x2884e0(_0x2c895b(0x113),{'replyId':_0x499fe6,'partIndex':_0x4bd138});const _0x24be84=_0x4c1ea4[_0x2c895b(0x147)](_0x4bd138);_0x24be84?_0xd0c89f(_0x24be84[_0x2c895b(0x130)],0x14,this[_0x2c895b(0x130)][_0x2c895b(0x123)],!0x0,!0x0):_0x2884e0(_0x2c895b(0x126),{'replyId':_0x499fe6,'partIndex':_0x4bd138});}[_0x293ee3(0x114)](){const _0x7dcdc2=_0x293ee3;this[_0x7dcdc2(0xfd)]({'tag':_0x7dcdc2(0x135),'attributes':{'class':['ck',_0x7dcdc2(0x120)]},'children':this[_0x7dcdc2(0x101)]()});}[_0x293ee3(0x101)](){const _0x30b8f0=_0x293ee3,_0x413a06=this[_0x30b8f0(0x10c)]();return[this[_0x30b8f0(0x14e)](),_0x413a06,this[_0x30b8f0(0x11d)]()];}[_0x293ee3(0x10c)](){const _0x33c4b1=_0x293ee3,_0x2cb2f8=new _0x4780c8(this[_0x33c4b1(0x145)],_0x4a71cc[_0x33c4b1(0x11b)]);return _0x2cb2f8[_0x33c4b1(0x137)]({'attributes':{'class':[this[_0x33c4b1(0xf6)]['if'](_0x33c4b1(0x124),_0x33c4b1(0x109),_0x5d7eb0=>!_0x5d7eb0)]}}),_0x2cb2f8;}[_0x293ee3(0x14e)](){const _0x8c145=_0x293ee3,_0x243448=new _0x2d48ed(this[_0x8c145(0x145)]);return _0x243448[_0x8c145(0xfd)]({'tag':_0x8c145(0x135),'attributes':{'class':['ck',_0x8c145(0x11a),this[_0x8c145(0xf6)]['if'](_0x8c145(0x124),_0x8c145(0x109))]},'children':this[_0x8c145(0x112)]}),_0x243448;}[_0x293ee3(0x11d)](){const _0x5ef008=_0x293ee3,_0x344ff3=new _0x2d48ed(this[_0x5ef008(0x145)]);return _0x344ff3[_0x5ef008(0xfd)]({'tag':_0x5ef008(0x135),'attributes':{'class':['ck',_0x5ef008(0x140),this[_0x5ef008(0xf6)]['if'](_0x5ef008(0x100),_0x5ef008(0x109),_0x80a95d=>!_0x80a95d)]},'children':this[_0x5ef008(0x12d)]()}),_0x344ff3;}[_0x293ee3(0x12d)](){const _0x4aaef3=_0x293ee3,_0x355e2f=new _0xe007e8();return _0x355e2f[_0x4aaef3(0x117)]=!0x0,[_0x355e2f,{'tag':_0x4aaef3(0x104),'attributes':{'class':['ck',_0x4aaef3(0x14a)]},'children':[{'text':this[_0x4aaef3(0xf6)]['to'](_0x4aaef3(0x102))}]}];}[_0x293ee3(0x10a)](_0x55945e){const _0x5d66be=_0x293ee3,_0x4214a8=this[_0x5d66be(0x112)][_0x5d66be(0x10d)](_0x3a1fa3=>_0x3a1fa3[_0x5d66be(0x12b)]['id'][_0x5d66be(0x149)](_0x55945e));if(!_0x4214a8)throw new _0x2d6a28(_0x5d66be(0x148),this,{'id':_0x55945e});return _0x4214a8;}[_0x293ee3(0x13c)](_0x55fc1c){const _0x21e3de=_0x293ee3;this[_0x21e3de(0x118)](_0x21e3de(0x102),_0x55fc1c);}[_0x293ee3(0xfe)](_0x3e1716){const _0x196fe4=_0x293ee3;this[_0x196fe4(0x118)](_0x196fe4(0x124),_0x3e1716);}[_0x293ee3(0x139)](){const _0x1d815b=_0x293ee3;this[_0x1d815b(0x14b)][_0x1d815b(0x144)]();}[_0x293ee3(0x10b)](){const _0x5349a6=_0x293ee3;this[_0x5349a6(0x14b)][_0x5349a6(0x116)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x163fa5=_0x30f3;function _0x4136(){const _0x342ab5=['73735REeBoi','27FHVvTG','ck-ai-chat__start-conversation','execute','ck-ai-header\x20ck-ai-header_chat','141346zqrzuR','AI_CHAT_LABEL_NEW_CHAT','conversationStartButton','children','fire','1103931vPoxmm','add','startConversation','AI_CHAT_HEADING','_createStartConversationButton','resizeButton','40094aVhGUm','102PgpLqf','215537HovrGK','394156gdGewr','32flZJzT','218130sJdxmm','set','locale','isMaximized'];_0x4136=function(){return _0x342ab5;};return _0x4136();}(function(_0x3cfbe4,_0x4e5d46){const _0x5036a5=_0x30f3,_0x5dd978=_0x3cfbe4();while(!![]){try{const _0x9a17d0=parseInt(_0x5036a5(0xb1))/0x1+parseInt(_0x5036a5(0xa3))/0x2*(-parseInt(_0x5036a5(0xad))/0x3)+-parseInt(_0x5036a5(0xa6))/0x4+-parseInt(_0x5036a5(0xac))/0x5*(-parseInt(_0x5036a5(0xa4))/0x6)+parseInt(_0x5036a5(0xa5))/0x7*(-parseInt(_0x5036a5(0xa7))/0x8)+parseInt(_0x5036a5(0xb6))/0x9+parseInt(_0x5036a5(0xa8))/0xa;if(_0x9a17d0===_0x4e5d46)break;else _0x5dd978['push'](_0x5dd978['shift']());}catch(_0x3ee5ce){_0x5dd978['push'](_0x5dd978['shift']());}}}(_0x4136,0x20cf7));import{ButtonView as _0xc34c58,FormHeaderView as _0x80e259}from'ckeditor5/src/ui.js';import{IconPlus as _0x46cba0,IconAIChat as _0x3a917c}from'ckeditor5/src/icons.js';import{getTranslation as _0x4c9548}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x1b0ee4}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';function _0x30f3(_0x2799d8,_0x52f258){const _0x4136b3=_0x4136();return _0x30f3=function(_0x30f345,_0x1afb59){_0x30f345=_0x30f345-0xa1;let _0x5ccd5e=_0x4136b3[_0x30f345];return _0x5ccd5e;},_0x30f3(_0x2799d8,_0x52f258);}export class AIChatHeaderView extends _0x80e259{[_0x163fa5(0xb3)];[_0x163fa5(0xa2)];constructor(_0x3de4f8,_0x4a23c){const _0x1972fb=_0x163fa5;super(_0x3de4f8,{'label':_0x4c9548(_0x3de4f8,_0x1972fb(0xb9)),'class':_0x1972fb(0xb0),'icon':_0x3a917c}),this[_0x1972fb(0xa9)](_0x1972fb(0xab),!0x1),this[_0x1972fb(0xb3)]=this[_0x1972fb(0xa1)](_0x3de4f8),this[_0x1972fb(0xb4)][_0x1972fb(0xb7)](this[_0x1972fb(0xb3)]),_0x4a23c&&(this[_0x1972fb(0xa2)]=_0x1b0ee4(_0x3de4f8,this),this[_0x1972fb(0xb4)][_0x1972fb(0xb7)](this[_0x1972fb(0xa2)]));}[_0x163fa5(0xa1)](_0xd4e16d){const _0x417af3=_0x163fa5,_0x58d8e6=new _0xc34c58(_0xd4e16d);return _0x58d8e6[_0x417af3(0xa9)]({'label':_0x4c9548(this[_0x417af3(0xaa)],_0x417af3(0xb2)),'withText':!0x0,'icon':_0x46cba0,'class':_0x417af3(0xae)}),_0x58d8e6['on'](_0x417af3(0xaf),()=>{const _0x30df72=_0x417af3;this[_0x30df72(0xb5)](_0x30df72(0xb8));}),_0x58d8e6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x27c277=_0x3c0f;(function(_0x5a0675,_0x2373c1){var _0x136112=_0x3c0f,_0x1cefe6=_0x5a0675();while(!![]){try{var _0x523a43=-parseInt(_0x136112(0x101))/0x1+-parseInt(_0x136112(0x102))/0x2+parseInt(_0x136112(0x105))/0x3+parseInt(_0x136112(0x107))/0x4+-parseInt(_0x136112(0xf6))/0x5+parseInt(_0x136112(0x100))/0x6*(parseInt(_0x136112(0xf8))/0x7)+-parseInt(_0x136112(0xf7))/0x8*(-parseInt(_0x136112(0xf9))/0x9);if(_0x523a43===_0x2373c1)break;else _0x1cefe6['push'](_0x1cefe6['shift']());}catch(_0x2a27c9){_0x1cefe6['push'](_0x1cefe6['shift']());}}}(_0x490b,0x2c6ae));import{View as _0x303157,BodyCollection as _0x2a7285}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3b154d}from'../utils/eventnames.js';function _0x490b(){var _0x39a722=['_bodyCollection','ck-reset_all','347829HMsotO','div','326000wnoXZH','populateSourceResourceBalloon','chatDisclaimer','setTemplate','delegate','ck-rounded-corners','chatFeed','showResizeButton','destroy','ck-ai-chat','chatControls','220335vanrMR','184xyDzXr','7ylIFEO','84447hJKagw','contextResourcesSearchInputVisibleFrom','chatHeader','attachToDom','closeSourceResourceBalloon','detachFromDom','uiLanguageDirection','1005846PNDBUB','182996hOZULc','343792HoQaRJ'];_0x490b=function(){return _0x39a722;};return _0x490b();}import{AIChatFeedView as _0x1fae71}from'./aichatfeedview.js';function _0x3c0f(_0x1ce941,_0x515a0c){var _0x490bf0=_0x490b();return _0x3c0f=function(_0x3c0f4d,_0x4d1f41){_0x3c0f4d=_0x3c0f4d-0xf6;var _0x3b00db=_0x490bf0[_0x3c0f4d];return _0x3b00db;},_0x3c0f(_0x1ce941,_0x515a0c);}import{AIChatControlsView as _0x5db48e}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2a61ac}from'./aichatheaderview.js';import{AIDisclaimerView as _0x40938d}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0x303157{[_0x27c277(0xfb)];[_0x27c277(0x10d)];[_0x27c277(0x111)];[_0x27c277(0x109)];[_0x27c277(0x103)];constructor(_0x3b95cd,_0x299089){var _0x1ac62b=_0x27c277;super(_0x3b95cd),this[_0x1ac62b(0x103)]=new _0x2a7285(_0x3b95cd),this[_0x1ac62b(0x103)][_0x1ac62b(0xfc)](),this[_0x1ac62b(0xfb)]=new _0x2a61ac(_0x3b95cd,_0x299089[_0x1ac62b(0x10e)]),this[_0x1ac62b(0xfb)][_0x1ac62b(0x10b)](..._0x3b154d)['to'](this),this[_0x1ac62b(0x10d)]=new _0x1fae71(_0x3b95cd,this[_0x1ac62b(0x103)]),this[_0x1ac62b(0x10d)][_0x1ac62b(0x10b)](..._0x3b154d)['to'](this),this[_0x1ac62b(0x111)]=new _0x5db48e(_0x3b95cd,{'bodyCollection':this[_0x1ac62b(0x103)],'contextResourcesSearchInputVisibleFrom':_0x299089[_0x1ac62b(0xfa)]}),this[_0x1ac62b(0x111)][_0x1ac62b(0x10b)](..._0x3b154d)['to'](this),this[_0x1ac62b(0x109)]=new _0x40938d(_0x3b95cd),this[_0x1ac62b(0x10a)]({'tag':_0x1ac62b(0x106),'attributes':{'class':['ck',_0x1ac62b(0x104),_0x1ac62b(0x110),_0x1ac62b(0x10c)],'dir':_0x3b95cd[_0x1ac62b(0xff)]},'children':[this[_0x1ac62b(0xfb)],this[_0x1ac62b(0x10d)],this[_0x1ac62b(0x111)],this[_0x1ac62b(0x109)]]});}[_0x27c277(0x108)](_0x492d47,_0x4cfe64,_0x5e94f4,_0x4b4400){var _0x537eae=_0x27c277;this[_0x537eae(0x111)][_0x537eae(0x108)](_0x492d47,_0x4cfe64,_0x5e94f4,_0x4b4400);}[_0x27c277(0xfd)](_0xb07dc3){var _0x3d78d5=_0x27c277;this[_0x3d78d5(0x111)][_0x3d78d5(0xfd)](_0xb07dc3);}[_0x27c277(0x10f)](){var _0x3b3cac=_0x27c277;this[_0x3b3cac(0x103)][_0x3b3cac(0xfe)](),super[_0x3b3cac(0x10f)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x4aed(_0x3e7c10,_0x13e3ed){const _0x1d1e3a=_0x1d1e();return _0x4aed=function(_0x4aedc4,_0x460b34){_0x4aedc4=_0x4aedc4-0x78;let _0x477fd5=_0x1d1e3a[_0x4aedc4];return _0x477fd5;},_0x4aed(_0x3e7c10,_0x13e3ed);}const _0x12ada0=_0x4aed;function _0x1d1e(){const _0x1f578c=['overflowChips','_config','show','getBoundingClientRect','_visibleChips','_ancestorsToRestore','isOn','_handleShowMoreButtonClick','innerHTML','overflowContainer','disableAnimationOnEnter','render','300px','slice','querySelector','createElement','toLowerCase','19708784JMMhFa','_showMoreBalloonPanelView','_distributeChips','offsetWidth','_checkAndHandleOverflow','_findTargetContainer','extendTemplate','button','length','5395665fQyuCr','_parentView','remove','textContent','destroy','showBalloonPanel','some','isConnected','right','setTemplate','auto','observe','position','style','element','_containerElement','none','boxSizing','bottom','_applyOverflowResults','+\x201','cloneNode','absolute','clear','controlsButton','body','_showMoreButtonView','1513240JYGpFB','_makeAncestorsVisible','isIntersecting','0px','-9999px','pointerEvents','classList','_createCalculationContainer','innerHeight','push','3115442CxbXTE','showMoreButton','execute','hidden','visibility','rowDetectionTolerance','display','_repinBalloonPanel','_calculateContainerWidth','disconnect','from','className','_testButtonFit','.ck-ai-chat','pin','filter','_locale','4391106jHyoVT','_createShowMoreBalloonPanelView','calculationContainer','cssClasses','_createContainerElements','pop','_renderChipsAndCountRows','50px','abs','set','width','visible\x20!important','forEach','content','undefined','hideBalloonPanel','_updateBalloonContent','_restoreAncestorVisibility','_createShowMoreButtonView','_intersectionObserver','_setupVisibilityObserver','children','includes','ck-calculation-container','_updateOverflowUI','visible','reorganizeChips','setContainerElement','add','_targetContainer','height','_overflowChips','7wtEoUX','block','getComputedStyle','_pendingCalculation','left','_createMockButton','_updateShowMoreButtonVisibility','showMoreButtonView','clientHeight','appendChild','_bodyCollection','top','tagName','594814LlZOJW','zIndex','parentElement','clientWidth','_isContainerVisible','showMoreLabelPrefix','_createShowMoreButton','showMoreBalloon','maxVisibleRows','isVisible','block\x20!important','3757083xQPQYF','documentElement','label','opacity','_calculateOverflowInContainer','innerWidth','div','hide','_applyCalculationStyles','border-box'];_0x1d1e=function(){return _0x1f578c;};return _0x1d1e();}(function(_0x5ac2ca,_0x52f3ce){const _0x49b857=_0x4aed,_0x3cdadf=_0x5ac2ca();while(!![]){try{const _0x56a5fb=-parseInt(_0x49b857(0x102))/0x1+-parseInt(_0x49b857(0xc4))/0x2+parseInt(_0x49b857(0x7b))/0x3+-parseInt(_0x49b857(0xba))/0x4+-parseInt(_0x49b857(0x9f))/0x5+-parseInt(_0x49b857(0xd5))/0x6*(-parseInt(_0x49b857(0xf5))/0x7)+parseInt(_0x49b857(0x96))/0x8;if(_0x56a5fb===_0x52f3ce)break;else _0x3cdadf['push'](_0x3cdadf['shift']());}catch(_0x3f4028){_0x3cdadf['push'](_0x3cdadf['shift']());}}}(_0x1d1e,0xcc8c8));import{View as _0x86860d,BalloonPanelView as _0x18847f,ButtonView as _0x5c3010,clickOutsideHandler as _0x354a6e}from'ckeditor5/src/ui.js';import{Collection as _0xe3f288}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x12ada0(0x91);export class AIChatChipsOverflowManager{[_0x12ada0(0xd4)];[_0x12ada0(0x86)];[_0x12ada0(0x89)];[_0x12ada0(0xf4)];[_0x12ada0(0xb9)]=null;[_0x12ada0(0x97)]=null;[_0x12ada0(0xae)]=null;[_0x12ada0(0xff)];[_0x12ada0(0xa0)]=null;[_0x12ada0(0xe8)]=null;[_0x12ada0(0xf8)]=!0x1;constructor(_0x52ea97,_0x5f1cde,_0x14bcc7,_0x302dc9,_0x2cebeb){const _0x478be3=_0x12ada0;this[_0x478be3(0xd4)]=_0x52ea97,this[_0x478be3(0x89)]=_0x5f1cde,this[_0x478be3(0x86)]={...hn,..._0x14bcc7,'cssClasses':{'controlsButton':'','calculationContainer':_0x478be3(0xec),..._0x14bcc7[_0x478be3(0xd8)]}},this[_0x478be3(0xf4)]=new _0xe3f288(),this[_0x478be3(0xff)]=_0x302dc9,this[_0x478be3(0xa0)]=_0x2cebeb||null;}[_0x12ada0(0xf0)](_0x28c8c2){const _0x14e6ba=_0x12ada0;this[_0x14e6ba(0xe8)]&&(this[_0x14e6ba(0xe8)][_0x14e6ba(0xcd)](),this[_0x14e6ba(0xe8)]=null),this[_0x14e6ba(0xae)]=_0x28c8c2,this[_0x14e6ba(0xe9)]();}get[_0x12ada0(0xfc)](){const _0x319a99=_0x12ada0;return this[_0x319a99(0xb9)];}get[_0x12ada0(0x85)](){const _0x2af4fc=_0x12ada0;return this[_0x2af4fc(0xf4)];}[_0x12ada0(0xef)](){requestAnimationFrame(()=>{const _0x21f74f=_0x4aed;this[_0x21f74f(0x9a)]();});}[_0x12ada0(0xa4)](){const _0x414231=_0x12ada0;this[_0x414231(0xb9)]&&this[_0x414231(0x97)]&&(this[_0x414231(0xe5)](),this[_0x414231(0xb9)][_0x414231(0x8b)]=!0x0,this[_0x414231(0x97)][_0x414231(0x87)](),this[_0x414231(0x97)][_0x414231(0xd2)]({'target':this[_0x414231(0xb9)][_0x414231(0xad)],'limiter':document[_0x414231(0x93)](_0x414231(0xd1))}));}[_0x12ada0(0xe4)](){const _0xdd419d=_0x12ada0;this[_0xdd419d(0xb9)]&&this[_0xdd419d(0x97)]&&(this[_0xdd419d(0xb9)][_0xdd419d(0x8b)]=!0x1,this[_0xdd419d(0x97)][_0xdd419d(0x82)]());}[_0x12ada0(0xb6)](){const _0x54846c=_0x12ada0;this[_0x54846c(0xf4)][_0x54846c(0xb6)](),this[_0x54846c(0xe4)](),this[_0x54846c(0xfb)](),this[_0x54846c(0xb9)]&&(this[_0x54846c(0xb9)][_0x54846c(0x7d)]=''),this[_0x54846c(0x97)]&&this[_0x54846c(0x97)][_0x54846c(0xe2)][_0x54846c(0xb6)]();}[_0x12ada0(0xa3)](){const _0xf06acf=_0x12ada0;this[_0xf06acf(0xe8)]&&(this[_0xf06acf(0xe8)][_0xf06acf(0xcd)](),this[_0xf06acf(0xe8)]=null),this[_0xf06acf(0xb9)]&&(this[_0xf06acf(0xb9)][_0xf06acf(0xa3)](),this[_0xf06acf(0xb9)]=null),this[_0xf06acf(0x97)]&&(this[_0xf06acf(0x97)][_0xf06acf(0xa3)](),this[_0xf06acf(0x97)]=null);}[_0x12ada0(0x9a)](){const _0x26ad95=_0x12ada0;if(!this[_0x26ad95(0xae)])return;if(!this[_0x26ad95(0x106)]())return void(this[_0x26ad95(0xf8)]=!0x0);this[_0x26ad95(0xf8)]=!0x1;const _0x4f9f10=[...this[_0x26ad95(0x89)],...this[_0x26ad95(0xf4)]],_0x37ddc1=this[_0x26ad95(0xc1)](),_0x5c9c0b=this[_0x26ad95(0x7f)](_0x37ddc1,_0x4f9f10),_0x5d08fc=_0x37ddc1[_0x26ad95(0x8a)];_0x5d08fc&&this[_0x26ad95(0xe6)](_0x5d08fc),_0x37ddc1[_0x26ad95(0xa1)](),this[_0x26ad95(0xb2)](_0x4f9f10,_0x5c9c0b);}[_0x12ada0(0x108)](){const _0xaff6bc=_0x12ada0;this[_0xaff6bc(0xb9)]=this[_0xaff6bc(0xe7)](),this[_0xaff6bc(0x97)]=this[_0xaff6bc(0xd6)](),this[_0xaff6bc(0xb9)][_0xaff6bc(0x90)](),this[_0xaff6bc(0xae)][_0xaff6bc(0xfe)](this[_0xaff6bc(0xb9)][_0xaff6bc(0xad)]),this[_0xaff6bc(0xb9)]['on'](_0xaff6bc(0xc6),()=>{const _0x1c9da5=_0xaff6bc;this[_0x1c9da5(0x8c)]();}),_0x354a6e({'emitter':this[_0xaff6bc(0x97)],'contextElements':[this[_0xaff6bc(0x97)][_0xaff6bc(0xad)],this[_0xaff6bc(0xb9)][_0xaff6bc(0xad)]],'callback':()=>this[_0xaff6bc(0xe4)](),'activator':()=>this[_0xaff6bc(0xb9)][_0xaff6bc(0x8b)]});}[_0x12ada0(0xe7)](){const _0x15c55a=_0x12ada0,_0x492741=new _0x5c3010(this[_0x15c55a(0xd4)]);_0x492741[_0x15c55a(0xde)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1206fe=[this[_0x15c55a(0x86)][_0x15c55a(0xd8)][_0x15c55a(0xc5)]];return this[_0x15c55a(0x86)][_0x15c55a(0xd8)][_0x15c55a(0xb7)]&&_0x1206fe[_0x15c55a(0xc3)](this[_0x15c55a(0x86)][_0x15c55a(0xd8)][_0x15c55a(0xb7)]),_0x492741[_0x15c55a(0x9c)]({'attributes':{'class':_0x1206fe}}),_0x492741;}[_0x12ada0(0xd6)](){const _0x342b36=_0x12ada0,_0x30408d=new _0x18847f(this[_0x342b36(0xd4)]);return _0x30408d[_0x342b36(0x9c)]({'attributes':{'class':this[_0x342b36(0x86)][_0x342b36(0xd8)][_0x342b36(0x109)]}}),this[_0x342b36(0xff)][_0x342b36(0xf1)](_0x30408d),_0x30408d;}[_0x12ada0(0xe5)](){const _0x494686=_0x12ada0;if(this[_0x494686(0x97)]&&(this[_0x494686(0x97)][_0x494686(0xe2)][_0x494686(0xb6)](),this[_0x494686(0xf4)][_0x494686(0x9e)]>0x0)){this[_0x494686(0xf4)][_0x494686(0xe1)](_0x228f86=>{const _0x344823=_0x494686;_0x228f86[_0x344823(0x8f)]();});const _0xf65a3f=new _0x86860d(this[_0x494686(0xd4)]);_0xf65a3f[_0x494686(0xa8)]({'tag':_0x494686(0x81),'attributes':{'class':this[_0x494686(0x86)][_0x494686(0xd8)][_0x494686(0x8e)]},'children':this[_0x494686(0xf4)]}),this[_0x494686(0x97)][_0x494686(0xe2)][_0x494686(0xf1)](_0xf65a3f);}}[_0x12ada0(0x8c)](){const _0x4b95e4=_0x12ada0;this[_0x4b95e4(0xb9)][_0x4b95e4(0x8b)]?this[_0x4b95e4(0xe4)]():this[_0x4b95e4(0xa4)]();}[_0x12ada0(0xfb)](){const _0x129237=_0x12ada0,_0x5af010=this[_0x129237(0xf4)][_0x129237(0x9e)]>0x0;this[_0x129237(0xb9)]?.[_0x129237(0xad)]&&(this[_0x129237(0xb9)][_0x129237(0xad)][_0x129237(0xac)][_0x129237(0xca)]=_0x5af010?'':_0x129237(0xaf));}[_0x12ada0(0xcb)](){const _0x4ce6cf=_0x12ada0;this[_0x4ce6cf(0xb9)]?.[_0x4ce6cf(0x8b)]&&this[_0x4ce6cf(0x97)]?.[_0x4ce6cf(0x79)]&&this[_0x4ce6cf(0xb9)][_0x4ce6cf(0xad)]&&this[_0x4ce6cf(0x97)][_0x4ce6cf(0xd2)]({'target':this[_0x4ce6cf(0xb9)][_0x4ce6cf(0xad)],'limiter':document[_0x4ce6cf(0x93)](_0x4ce6cf(0xd1))});}[_0x12ada0(0x9b)](_0x187e84){const _0x153492=_0x12ada0,_0x50e9fe=this[_0x153492(0xae)]?.[_0x153492(0x101)][_0x153492(0x95)]()||_0x153492(0x81),_0x4307e5=this[_0x153492(0xae)]?.[_0x153492(0xc0)];if(_0x4307e5){const _0x5d0fee=_0x4307e5[0x0]||'',_0xc39b5b=_0x187e84[_0x153492(0x93)]('.'+_0x5d0fee),_0x4b662a=_0x187e84[_0x153492(0x93)](_0x50e9fe);return _0xc39b5b||_0x4b662a||_0x187e84;}return _0x187e84[_0x153492(0x93)](_0x50e9fe)||_0x187e84;}[_0x12ada0(0xcc)](){const _0x361b21=_0x12ada0,_0x3375e6=this[_0x361b21(0xa0)]?.[_0x361b21(0xad)]||this[_0x361b21(0xae)];if(!_0x3375e6)return an;const _0x17d0c9=window[_0x361b21(0xf7)](_0x3375e6)[_0x361b21(0xdf)];if(_0x361b21(0xa9)===_0x17d0c9||_0x361b21(0xbd)===_0x17d0c9||!_0x17d0c9){const _0x778382=_0x3375e6[_0x361b21(0x104)];if(_0x778382){const _0x3df5df=window[_0x361b21(0xf7)](_0x778382);return _0x361b21(0xa9)!==_0x3df5df[_0x361b21(0xdf)]?_0x3df5df[_0x361b21(0xdf)]:an;}return an;}return _0x17d0c9;}[_0x12ada0(0x83)](_0x4a5bc7,_0x442c48){const _0x544890=_0x12ada0;this[_0x544890(0x86)][_0x544890(0xd8)][_0x544890(0xd7)]&&_0x4a5bc7[_0x544890(0xc0)][_0x544890(0xf1)](this[_0x544890(0x86)][_0x544890(0xd8)][_0x544890(0xd7)]),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xdf)]=_0x442c48,_0x4a5bc7[_0x544890(0xac)][_0x544890(0xab)]=_0x544890(0xb5),_0x4a5bc7[_0x544890(0xac)][_0x544890(0x100)]=_0x544890(0xbe),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xf9)]=_0x544890(0xbe),_0x4a5bc7[_0x544890(0xac)][_0x544890(0x7e)]='0',_0x4a5bc7[_0x544890(0xac)][_0x544890(0xbf)]=_0x544890(0xaf),_0x4a5bc7[_0x544890(0xac)][_0x544890(0x103)]='-1',_0x4a5bc7[_0x544890(0xac)][_0x544890(0xc8)]=_0x544890(0xe0),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xca)]=_0x544890(0x7a),_0x4a5bc7[_0x544890(0xac)][_0x544890(0xb0)]=_0x544890(0x84);}[_0x12ada0(0xe6)](_0x881179){const _0x4b6670=_0x12ada0;_0x881179[_0x4b6670(0xe1)](({element:_0x264ec6,originalDisplay:_0x2d0f9d,originalVisibility:_0x42186a})=>{const _0x3a1faa=_0x4b6670;_0x264ec6[_0x3a1faa(0xac)][_0x3a1faa(0xca)]=_0x2d0f9d,_0x264ec6[_0x3a1faa(0xac)][_0x3a1faa(0xc8)]=_0x42186a;});}[_0x12ada0(0xbb)](_0x36daf3){const _0xc7a6ad=_0x12ada0,_0x4021a1=[];let _0x17f624=_0x36daf3;for(;_0x17f624&&_0x17f624!==document[_0xc7a6ad(0xb8)];){const _0xfcf29d=window[_0xc7a6ad(0xf7)](_0x17f624);_0xc7a6ad(0xaf)!==_0xfcf29d[_0xc7a6ad(0xca)]&&_0xc7a6ad(0xc7)!==_0xfcf29d[_0xc7a6ad(0xc8)]||(_0x4021a1[_0xc7a6ad(0xc3)]({'element':_0x17f624,'originalDisplay':_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xca)],'originalVisibility':_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xc8)]}),_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xca)]=_0xc7a6ad(0xf6),_0x17f624[_0xc7a6ad(0xac)][_0xc7a6ad(0xc8)]=_0xc7a6ad(0xee)),_0x17f624=_0x17f624[_0xc7a6ad(0x104)];}return _0x4021a1;}[_0x12ada0(0xd9)](){const _0x718e5c=_0x12ada0;let _0x1d7393,_0x53ceb6;return this[_0x718e5c(0xa0)]?.[_0x718e5c(0xad)]?(_0x1d7393=this[_0x718e5c(0xa0)][_0x718e5c(0xad)][_0x718e5c(0xb4)](!0x0),_0x53ceb6=this[_0x718e5c(0x9b)](_0x1d7393)):(_0x1d7393=document[_0x718e5c(0x94)](_0x718e5c(0x81)),_0x53ceb6=_0x1d7393),{'calculationContainer':_0x1d7393,'targetContainer':_0x53ceb6};}[_0x12ada0(0xc1)](){const _0x3b315c=_0x12ada0,{calculationContainer:_0x3f54bc,targetContainer:_0x19e00f}=this[_0x3b315c(0xd9)](),_0x4284af=this[_0x3b315c(0xcc)]();this[_0x3b315c(0x83)](_0x3f54bc,_0x4284af);const _0x46d5f4=this[_0x3b315c(0xa0)]?.[_0x3b315c(0xad)]||this[_0x3b315c(0xae)],_0x49bbd2=_0x46d5f4?.[_0x3b315c(0x104)];_0x49bbd2?_0x49bbd2[_0x3b315c(0xfe)](_0x3f54bc):document[_0x3b315c(0xb8)][_0x3b315c(0xfe)](_0x3f54bc),_0x3f54bc[_0x3b315c(0xf2)]=_0x19e00f;const _0x462c04=this[_0x3b315c(0xbb)](_0x49bbd2||null);return _0x3f54bc[_0x3b315c(0x99)],_0x3f54bc[_0x3b315c(0x8a)]=_0x462c04,_0x3f54bc;}[_0x12ada0(0x7f)](_0x4021fa,_0x22836c){const _0x35df06=_0x12ada0,_0xd5fc4f=_0x4021fa[_0x35df06(0xf2)]||_0x4021fa,_0x161a62=[],{rowCount:_0xff3591}=this[_0x35df06(0xdb)](_0xd5fc4f,_0x22836c);if(_0xff3591<=this[_0x35df06(0x86)][_0x35df06(0x78)])return _0x161a62;const _0x5ad543=_0x22836c[_0x35df06(0x92)]();for(;_0x5ad543[_0x35df06(0x9e)]>0x0;){if(this[_0x35df06(0xd0)](_0x4021fa,_0xd5fc4f,_0x5ad543)){const _0x495d43=_0x22836c[_0x35df06(0xd3)](_0x49a89a=>!_0x5ad543[_0x35df06(0xeb)](_0x49a89a));_0x161a62[_0x35df06(0xc3)](..._0x495d43);break;}if(!_0x5ad543[_0x35df06(0xda)]())break;}return _0x161a62;}[_0x12ada0(0xdb)](_0x12fa24,_0x5819fe){const _0x354093=_0x12ada0;_0x12fa24[_0x354093(0x8d)]='',_0x5819fe[_0x354093(0xe1)](_0x29b712=>{const _0x432302=_0x354093;if(_0x29b712[_0x432302(0xad)]){const _0x40b7ac=_0x29b712[_0x432302(0xad)][_0x432302(0xb4)](!0x0);_0x12fa24[_0x432302(0xfe)](_0x40b7ac);}}),_0x12fa24[_0x354093(0x99)];const _0xb99e34=_0x12fa24[_0x354093(0xea)],_0x2aa3f2=[];return Array[_0x354093(0xce)](_0xb99e34)[_0x354093(0xe1)](_0xaa8421=>{const _0x41c2b3=_0x354093,_0x11e1b2=_0xaa8421[_0x41c2b3(0x88)]()[_0x41c2b3(0x100)];_0x2aa3f2[_0x41c2b3(0xa5)](_0x395440=>Math[_0x41c2b3(0xdd)](_0x395440-_0x11e1b2)<this[_0x41c2b3(0x86)][_0x41c2b3(0xc9)])||_0x2aa3f2[_0x41c2b3(0xc3)](_0x11e1b2);}),{'rowCount':_0x2aa3f2[_0x354093(0x9e)]};}[_0x12ada0(0xfa)](){const _0x3bb01c=_0x12ada0,_0x59fdb1=document[_0x3bb01c(0x94)](_0x3bb01c(0x9d));return _0x59fdb1[_0x3bb01c(0xcf)]=this[_0x3bb01c(0x86)][_0x3bb01c(0xd8)][_0x3bb01c(0xc5)],this[_0x3bb01c(0x86)][_0x3bb01c(0xd8)][_0x3bb01c(0xb7)]&&_0x59fdb1[_0x3bb01c(0xc0)][_0x3bb01c(0xf1)](this[_0x3bb01c(0x86)][_0x3bb01c(0xd8)][_0x3bb01c(0xb7)]),_0x59fdb1[_0x3bb01c(0xa2)]=_0x3bb01c(0xb3),_0x59fdb1;}[_0x12ada0(0xd0)](_0x31cca5,_0x22daa4,_0x350794){const _0x225235=_0x12ada0;this[_0x225235(0xdb)](_0x22daa4,_0x350794);const _0x9701c7=this[_0x225235(0xfa)]();_0x31cca5[_0x225235(0xfe)](_0x9701c7),_0x31cca5[_0x225235(0x99)];const _0x102d6e=[..._0x22daa4[_0x225235(0xea)],_0x9701c7],_0x48150d=[];_0x102d6e[_0x225235(0xe1)](_0x592d16=>{const _0x37004c=_0x225235,_0x37f180=_0x592d16[_0x37004c(0x88)]()[_0x37004c(0x100)];_0x48150d[_0x37004c(0xa5)](_0x3d317b=>Math[_0x37004c(0xdd)](_0x3d317b-_0x37f180)<this[_0x37004c(0x86)][_0x37004c(0xc9)])||_0x48150d[_0x37004c(0xc3)](_0x37f180);});const _0x2f7ea2=_0x48150d[_0x225235(0x9e)];return _0x9701c7[_0x225235(0xa1)](),_0x2f7ea2<=this[_0x225235(0x86)][_0x225235(0x78)];}[_0x12ada0(0x98)](_0x4be4d5,_0x425631){const _0x4730cd=_0x12ada0;this[_0x4730cd(0x89)][_0x4730cd(0xb6)](),this[_0x4730cd(0xf4)][_0x4730cd(0xb6)](),_0x4be4d5[_0x4730cd(0xe1)](_0x4a5903=>{const _0x352361=_0x4730cd;_0x425631[_0x352361(0xeb)](_0x4a5903)?this[_0x352361(0xf4)][_0x352361(0xf1)](_0x4a5903):this[_0x352361(0x89)][_0x352361(0xf1)](_0x4a5903);});}[_0x12ada0(0xed)](_0x247f4d){const _0x4f00f5=_0x12ada0;if(_0x247f4d>0x0&&!this[_0x4f00f5(0xb9)]&&this[_0x4f00f5(0x108)](),_0x247f4d>0x0&&this[_0x4f00f5(0xb9)]){const _0xace2c4=''+this[_0x4f00f5(0x86)][_0x4f00f5(0x107)]+(_0x247f4d<0x63?_0x247f4d:'99');this[_0x4f00f5(0xb9)][_0x4f00f5(0x7d)]=_0xace2c4;}this[_0x4f00f5(0xe5)](),this[_0x4f00f5(0xfb)](),this[_0x4f00f5(0xcb)]();}[_0x12ada0(0xb2)](_0x17a940,_0x12ae17){const _0xc4ff31=_0x12ada0;this[_0xc4ff31(0x98)](_0x17a940,_0x12ae17),this[_0xc4ff31(0xed)](_0x12ae17[_0xc4ff31(0x9e)]);}[_0x12ada0(0xe9)](){const _0x496ce4=_0x12ada0;this[_0x496ce4(0xae)]&&_0x496ce4(0xe3)!=typeof IntersectionObserver&&(this[_0x496ce4(0xe8)]=new IntersectionObserver(_0x245c17=>{const _0x1044c1=_0x496ce4;_0x245c17[0x0][_0x1044c1(0xbc)]&&this[_0x1044c1(0xf8)]&&requestAnimationFrame(()=>{const _0x1a165f=_0x1044c1;this[_0x1a165f(0x9a)]();});},{'threshold':0.01,'rootMargin':_0x496ce4(0xdc)}),this[_0x496ce4(0xe8)][_0x496ce4(0xaa)](this[_0x496ce4(0xae)]));}[_0x12ada0(0x106)](){const _0x180e8e=_0x12ada0;if(!this[_0x180e8e(0xae)])return!0x1;if(!this[_0x180e8e(0xae)][_0x180e8e(0xa6)])return!0x1;const _0x3712a1=this[_0x180e8e(0xae)][_0x180e8e(0x88)]();if(0x0===_0x3712a1[_0x180e8e(0xdf)]||0x0===_0x3712a1[_0x180e8e(0xf3)])return!0x1;const _0x22cbac=window[_0x180e8e(0xc2)]||document[_0x180e8e(0x7c)][_0x180e8e(0xfd)],_0x16700f=window[_0x180e8e(0x80)]||document[_0x180e8e(0x7c)][_0x180e8e(0x105)],_0x11a125=0xc8;return _0x3712a1[_0x180e8e(0xb1)]>=-0xc8&&_0x3712a1[_0x180e8e(0x100)]<=_0x22cbac+_0x11a125&&_0x3712a1[_0x180e8e(0xa7)]>=-0xc8&&_0x3712a1[_0x180e8e(0xf9)]<=_0x16700f+_0x11a125;}}
|
|
23
|
+
const _0x42d560=_0x21c6;(function(_0x2358f8,_0xe7d416){const _0x132f68=_0x21c6,_0x406603=_0x2358f8();while(!![]){try{const _0x4b6b53=parseInt(_0x132f68(0x1cd))/0x1*(-parseInt(_0x132f68(0x1ce))/0x2)+-parseInt(_0x132f68(0x1f1))/0x3+parseInt(_0x132f68(0x1b0))/0x4+-parseInt(_0x132f68(0x1ae))/0x5*(-parseInt(_0x132f68(0x1f8))/0x6)+-parseInt(_0x132f68(0x1d4))/0x7*(-parseInt(_0x132f68(0x1e7))/0x8)+-parseInt(_0x132f68(0x1d6))/0x9*(-parseInt(_0x132f68(0x1ec))/0xa)+parseInt(_0x132f68(0x1f3))/0xb*(-parseInt(_0x132f68(0x1eb))/0xc);if(_0x4b6b53===_0xe7d416)break;else _0x406603['push'](_0x406603['shift']());}catch(_0x9fcb2c){_0x406603['push'](_0x406603['shift']());}}}(_0x203c,0x7d134));function _0x203c(){const _0x2382ab=['className','_calculateContainerWidth','_intersectionObserver','button','cssClasses','createElement','_createContainerElements','+\x201','some','includes','_config','_visibleChips','innerWidth','from','documentElement','77267AZDbRL','2FjEfKj','parentElement','body','_isContainerVisible','hideBalloonPanel','_createCalculationContainer','375277lGmThE','_parentView','794628NqjwzD','appendChild','undefined','hidden','tagName','_createShowMoreButton','remove','overflowContainer','pin','right','textContent','reorganizeChips','display','getBoundingClientRect','0px','toLowerCase','isConnected','24fPWvgl','element','clear','pointerEvents','8124KZOrfF','20IiSZWs','_createShowMoreBalloonPanelView','_createMockButton','_restoreAncestorVisibility','block','83142WrpGGf','destroy','5973imnReP','visible\x20!important','slice','isOn','execute','78AIYkeb','_updateBalloonContent','showBalloonPanel','overflowChips','classList','push','-9999px','_updateOverflowUI','_distributeChips','pop','isVisible','setContainerElement','_calculateOverflowInContainer','_handleShowMoreButtonClick','opacity','absolute','render','rowDetectionTolerance','_showMoreButtonView','none','forEach','_setupVisibilityObserver','visible','_targetContainer','_repinBalloonPanel','width','_testButtonFit','getComputedStyle','extendTemplate','controlsButton','disconnect','height','length','innerHeight','children','showMoreLabelPrefix','hide','innerHTML','cloneNode','_locale','300px','_applyCalculationStyles','position','ck-calculation-container','top','50px','_applyOverflowResults','div','boxSizing','visibility','show','_overflowChips','_containerElement','_showMoreBalloonPanelView','abs','clientHeight','label','calculationContainer','_checkAndHandleOverflow','set','_ancestorsToRestore','showMoreButtonView','_bodyCollection','isIntersecting','block\x20!important','add','_pendingCalculation','querySelector','left','auto','clientWidth','offsetWidth','bottom','_makeAncestorsVisible','border-box','maxVisibleRows','140515HWxEpw','disableAnimationOnEnter','1128576IHXPlK','observe','showMoreButton','showMoreBalloon','style','.ck-ai-chat','_renderChipsAndCountRows','filter','content','_findTargetContainer','_updateShowMoreButtonVisibility','setTemplate','zIndex','_createShowMoreButtonView'];_0x203c=function(){return _0x2382ab;};return _0x203c();}function _0x21c6(_0x328dd3,_0x57c022){const _0x203c01=_0x203c();return _0x21c6=function(_0x21c63d,_0x21e186){_0x21c63d=_0x21c63d-0x199;let _0x4a090b=_0x203c01[_0x21c63d];return _0x4a090b;},_0x21c6(_0x328dd3,_0x57c022);}import{View as _0x53f370,BalloonPanelView as _0x7c1411,ButtonView as _0x183d49,clickOutsideHandler as _0x3351fc}from'ckeditor5/src/ui.js';import{Collection as _0x4ad47c}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x42d560(0x220);export class AIChatChipsOverflowManager{[_0x42d560(0x21f)];[_0x42d560(0x1c8)];[_0x42d560(0x1c9)];[_0x42d560(0x22b)];[_0x42d560(0x20a)]=null;[_0x42d560(0x22d)]=null;[_0x42d560(0x22c)]=null;[_0x42d560(0x1a0)];[_0x42d560(0x1d5)]=null;[_0x42d560(0x1c0)]=null;[_0x42d560(0x1a4)]=!0x1;constructor(_0x193bdc,_0x2a70c1,_0x5d0681,_0x16d8cf,_0x3f4261){const _0x1bcc5f=_0x42d560;this[_0x1bcc5f(0x21f)]=_0x193bdc,this[_0x1bcc5f(0x1c9)]=_0x2a70c1,this[_0x1bcc5f(0x1c8)]={...hn,..._0x5d0681,'cssClasses':{'controlsButton':'','calculationContainer':_0x1bcc5f(0x223),..._0x5d0681[_0x1bcc5f(0x1c2)]}},this[_0x1bcc5f(0x22b)]=new _0x4ad47c(),this[_0x1bcc5f(0x1a0)]=_0x16d8cf,this[_0x1bcc5f(0x1d5)]=_0x3f4261||null;}[_0x42d560(0x203)](_0x12927f){const _0x24c972=_0x42d560;this[_0x24c972(0x1c0)]&&(this[_0x24c972(0x1c0)][_0x24c972(0x216)](),this[_0x24c972(0x1c0)]=null),this[_0x24c972(0x22c)]=_0x12927f,this[_0x24c972(0x20d)]();}get[_0x42d560(0x19f)](){const _0x5d4c29=_0x42d560;return this[_0x5d4c29(0x20a)];}get[_0x42d560(0x1fb)](){const _0x37d70d=_0x42d560;return this[_0x37d70d(0x22b)];}[_0x42d560(0x1e1)](){requestAnimationFrame(()=>{const _0x22ecea=_0x21c6;this[_0x22ecea(0x19c)]();});}[_0x42d560(0x1fa)](){const _0x2a0d87=_0x42d560;this[_0x2a0d87(0x20a)]&&this[_0x2a0d87(0x22d)]&&(this[_0x2a0d87(0x1f9)](),this[_0x2a0d87(0x20a)][_0x2a0d87(0x1f6)]=!0x0,this[_0x2a0d87(0x22d)][_0x2a0d87(0x22a)](),this[_0x2a0d87(0x22d)][_0x2a0d87(0x1de)]({'target':this[_0x2a0d87(0x20a)][_0x2a0d87(0x1e8)],'limiter':document[_0x2a0d87(0x1a5)](_0x2a0d87(0x1b5))}));}[_0x42d560(0x1d2)](){const _0xd39e1a=_0x42d560;this[_0xd39e1a(0x20a)]&&this[_0xd39e1a(0x22d)]&&(this[_0xd39e1a(0x20a)][_0xd39e1a(0x1f6)]=!0x1,this[_0xd39e1a(0x22d)][_0xd39e1a(0x21c)]());}[_0x42d560(0x1e9)](){const _0x76cc2a=_0x42d560;this[_0x76cc2a(0x22b)][_0x76cc2a(0x1e9)](),this[_0x76cc2a(0x1d2)](),this[_0x76cc2a(0x1ba)](),this[_0x76cc2a(0x20a)]&&(this[_0x76cc2a(0x20a)][_0x76cc2a(0x19a)]=''),this[_0x76cc2a(0x22d)]&&this[_0x76cc2a(0x22d)][_0x76cc2a(0x1b8)][_0x76cc2a(0x1e9)]();}[_0x42d560(0x1f2)](){const _0x3adfaa=_0x42d560;this[_0x3adfaa(0x1c0)]&&(this[_0x3adfaa(0x1c0)][_0x3adfaa(0x216)](),this[_0x3adfaa(0x1c0)]=null),this[_0x3adfaa(0x20a)]&&(this[_0x3adfaa(0x20a)][_0x3adfaa(0x1f2)](),this[_0x3adfaa(0x20a)]=null),this[_0x3adfaa(0x22d)]&&(this[_0x3adfaa(0x22d)][_0x3adfaa(0x1f2)](),this[_0x3adfaa(0x22d)]=null);}[_0x42d560(0x19c)](){const _0x38b244=_0x42d560;if(!this[_0x38b244(0x22c)])return;if(!this[_0x38b244(0x1d1)]())return void(this[_0x38b244(0x1a4)]=!0x0);this[_0x38b244(0x1a4)]=!0x1;const _0x55aff2=[...this[_0x38b244(0x1c9)],...this[_0x38b244(0x22b)]],_0x3fe7af=this[_0x38b244(0x1d3)](),_0x3f500e=this[_0x38b244(0x204)](_0x3fe7af,_0x55aff2),_0x3b2e86=_0x3fe7af[_0x38b244(0x19e)];_0x3b2e86&&this[_0x38b244(0x1ef)](_0x3b2e86),_0x3fe7af[_0x38b244(0x1dc)](),this[_0x38b244(0x226)](_0x55aff2,_0x3f500e);}[_0x42d560(0x1db)](){const _0x17c724=_0x42d560;this[_0x17c724(0x20a)]=this[_0x17c724(0x1bd)](),this[_0x17c724(0x22d)]=this[_0x17c724(0x1ed)](),this[_0x17c724(0x20a)][_0x17c724(0x208)](),this[_0x17c724(0x22c)][_0x17c724(0x1d7)](this[_0x17c724(0x20a)][_0x17c724(0x1e8)]),this[_0x17c724(0x20a)]['on'](_0x17c724(0x1f7),()=>{const _0x49fd14=_0x17c724;this[_0x49fd14(0x205)]();}),_0x3351fc({'emitter':this[_0x17c724(0x22d)],'contextElements':[this[_0x17c724(0x22d)][_0x17c724(0x1e8)],this[_0x17c724(0x20a)][_0x17c724(0x1e8)]],'callback':()=>this[_0x17c724(0x1d2)](),'activator':()=>this[_0x17c724(0x20a)][_0x17c724(0x1f6)]});}[_0x42d560(0x1bd)](){const _0x368ac8=_0x42d560,_0x314a6c=new _0x183d49(this[_0x368ac8(0x21f)]);_0x314a6c[_0x368ac8(0x19d)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x418d58=[this[_0x368ac8(0x1c8)][_0x368ac8(0x1c2)][_0x368ac8(0x1b2)]];return this[_0x368ac8(0x1c8)][_0x368ac8(0x1c2)][_0x368ac8(0x215)]&&_0x418d58[_0x368ac8(0x1fd)](this[_0x368ac8(0x1c8)][_0x368ac8(0x1c2)][_0x368ac8(0x215)]),_0x314a6c[_0x368ac8(0x214)]({'attributes':{'class':_0x418d58}}),_0x314a6c;}[_0x42d560(0x1ed)](){const _0x45e2e7=_0x42d560,_0x4e65e1=new _0x7c1411(this[_0x45e2e7(0x21f)]);return _0x4e65e1[_0x45e2e7(0x214)]({'attributes':{'class':this[_0x45e2e7(0x1c8)][_0x45e2e7(0x1c2)][_0x45e2e7(0x1b3)]}}),this[_0x45e2e7(0x1a0)][_0x45e2e7(0x1a3)](_0x4e65e1),_0x4e65e1;}[_0x42d560(0x1f9)](){const _0x3b0f51=_0x42d560;if(this[_0x3b0f51(0x22d)]&&(this[_0x3b0f51(0x22d)][_0x3b0f51(0x1b8)][_0x3b0f51(0x1e9)](),this[_0x3b0f51(0x22b)][_0x3b0f51(0x218)]>0x0)){this[_0x3b0f51(0x22b)][_0x3b0f51(0x20c)](_0x2530b8=>{const _0x4b2bba=_0x3b0f51;_0x2530b8[_0x4b2bba(0x1af)]();});const _0x22b968=new _0x53f370(this[_0x3b0f51(0x21f)]);_0x22b968[_0x3b0f51(0x1bb)]({'tag':_0x3b0f51(0x227),'attributes':{'class':this[_0x3b0f51(0x1c8)][_0x3b0f51(0x1c2)][_0x3b0f51(0x1dd)]},'children':this[_0x3b0f51(0x22b)]}),this[_0x3b0f51(0x22d)][_0x3b0f51(0x1b8)][_0x3b0f51(0x1a3)](_0x22b968);}}[_0x42d560(0x205)](){const _0x2bd791=_0x42d560;this[_0x2bd791(0x20a)][_0x2bd791(0x1f6)]?this[_0x2bd791(0x1d2)]():this[_0x2bd791(0x1fa)]();}[_0x42d560(0x1ba)](){const _0x2accb9=_0x42d560,_0xace7b5=this[_0x2accb9(0x22b)][_0x2accb9(0x218)]>0x0;this[_0x2accb9(0x20a)]?.[_0x2accb9(0x1e8)]&&(this[_0x2accb9(0x20a)][_0x2accb9(0x1e8)][_0x2accb9(0x1b4)][_0x2accb9(0x1e2)]=_0xace7b5?'':_0x2accb9(0x20b));}[_0x42d560(0x210)](){const _0xa50baf=_0x42d560;this[_0xa50baf(0x20a)]?.[_0xa50baf(0x1f6)]&&this[_0xa50baf(0x22d)]?.[_0xa50baf(0x202)]&&this[_0xa50baf(0x20a)][_0xa50baf(0x1e8)]&&this[_0xa50baf(0x22d)][_0xa50baf(0x1de)]({'target':this[_0xa50baf(0x20a)][_0xa50baf(0x1e8)],'limiter':document[_0xa50baf(0x1a5)](_0xa50baf(0x1b5))});}[_0x42d560(0x1b9)](_0x2a0fdc){const _0x139544=_0x42d560,_0x303bcd=this[_0x139544(0x22c)]?.[_0x139544(0x1da)][_0x139544(0x1e5)]()||_0x139544(0x227),_0x463fd5=this[_0x139544(0x22c)]?.[_0x139544(0x1fc)];if(_0x463fd5){const _0x19347b=_0x463fd5[0x0]||'',_0x3096f3=_0x2a0fdc[_0x139544(0x1a5)]('.'+_0x19347b),_0x2a2ed7=_0x2a0fdc[_0x139544(0x1a5)](_0x303bcd);return _0x3096f3||_0x2a2ed7||_0x2a0fdc;}return _0x2a0fdc[_0x139544(0x1a5)](_0x303bcd)||_0x2a0fdc;}[_0x42d560(0x1bf)](){const _0x5535fc=_0x42d560,_0x4c1a3a=this[_0x5535fc(0x1d5)]?.[_0x5535fc(0x1e8)]||this[_0x5535fc(0x22c)];if(!_0x4c1a3a)return an;const _0x3d3596=window[_0x5535fc(0x213)](_0x4c1a3a)[_0x5535fc(0x211)];if(_0x5535fc(0x1a7)===_0x3d3596||_0x5535fc(0x1e4)===_0x3d3596||!_0x3d3596){const _0x4e4a95=_0x4c1a3a[_0x5535fc(0x1cf)];if(_0x4e4a95){const _0x47e472=window[_0x5535fc(0x213)](_0x4e4a95);return _0x5535fc(0x1a7)!==_0x47e472[_0x5535fc(0x211)]?_0x47e472[_0x5535fc(0x211)]:an;}return an;}return _0x3d3596;}[_0x42d560(0x221)](_0x1af5bd,_0xadff38){const _0x191159=_0x42d560;this[_0x191159(0x1c8)][_0x191159(0x1c2)][_0x191159(0x19b)]&&_0x1af5bd[_0x191159(0x1fc)][_0x191159(0x1a3)](this[_0x191159(0x1c8)][_0x191159(0x1c2)][_0x191159(0x19b)]),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x211)]=_0xadff38,_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x222)]=_0x191159(0x207),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x224)]=_0x191159(0x1fe),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x1a6)]=_0x191159(0x1fe),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x206)]='0',_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x1ea)]=_0x191159(0x20b),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x1bc)]='-1',_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x229)]=_0x191159(0x1f4),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x1e2)]=_0x191159(0x1a2),_0x1af5bd[_0x191159(0x1b4)][_0x191159(0x228)]=_0x191159(0x1ac);}[_0x42d560(0x1ef)](_0x1ff2ad){const _0x2cd56f=_0x42d560;_0x1ff2ad[_0x2cd56f(0x20c)](({element:_0x7367c0,originalDisplay:_0x458d83,originalVisibility:_0x1b2eba})=>{const _0x1edeed=_0x2cd56f;_0x7367c0[_0x1edeed(0x1b4)][_0x1edeed(0x1e2)]=_0x458d83,_0x7367c0[_0x1edeed(0x1b4)][_0x1edeed(0x229)]=_0x1b2eba;});}[_0x42d560(0x1ab)](_0x2640e7){const _0x370d0c=_0x42d560,_0x23b719=[];let _0x3d21a7=_0x2640e7;for(;_0x3d21a7&&_0x3d21a7!==document[_0x370d0c(0x1d0)];){const _0x339f19=window[_0x370d0c(0x213)](_0x3d21a7);_0x370d0c(0x20b)!==_0x339f19[_0x370d0c(0x1e2)]&&_0x370d0c(0x1d9)!==_0x339f19[_0x370d0c(0x229)]||(_0x23b719[_0x370d0c(0x1fd)]({'element':_0x3d21a7,'originalDisplay':_0x3d21a7[_0x370d0c(0x1b4)][_0x370d0c(0x1e2)],'originalVisibility':_0x3d21a7[_0x370d0c(0x1b4)][_0x370d0c(0x229)]}),_0x3d21a7[_0x370d0c(0x1b4)][_0x370d0c(0x1e2)]=_0x370d0c(0x1f0),_0x3d21a7[_0x370d0c(0x1b4)][_0x370d0c(0x229)]=_0x370d0c(0x20e)),_0x3d21a7=_0x3d21a7[_0x370d0c(0x1cf)];}return _0x23b719;}[_0x42d560(0x1c4)](){const _0x9176cb=_0x42d560;let _0x20940f,_0x10d934;return this[_0x9176cb(0x1d5)]?.[_0x9176cb(0x1e8)]?(_0x20940f=this[_0x9176cb(0x1d5)][_0x9176cb(0x1e8)][_0x9176cb(0x21e)](!0x0),_0x10d934=this[_0x9176cb(0x1b9)](_0x20940f)):(_0x20940f=document[_0x9176cb(0x1c3)](_0x9176cb(0x227)),_0x10d934=_0x20940f),{'calculationContainer':_0x20940f,'targetContainer':_0x10d934};}[_0x42d560(0x1d3)](){const _0x2d25e4=_0x42d560,{calculationContainer:_0x4bc6c3,targetContainer:_0x4a864c}=this[_0x2d25e4(0x1c4)](),_0x537341=this[_0x2d25e4(0x1bf)]();this[_0x2d25e4(0x221)](_0x4bc6c3,_0x537341);const _0x44427d=this[_0x2d25e4(0x1d5)]?.[_0x2d25e4(0x1e8)]||this[_0x2d25e4(0x22c)],_0x13c7b3=_0x44427d?.[_0x2d25e4(0x1cf)];_0x13c7b3?_0x13c7b3[_0x2d25e4(0x1d7)](_0x4bc6c3):document[_0x2d25e4(0x1d0)][_0x2d25e4(0x1d7)](_0x4bc6c3),_0x4bc6c3[_0x2d25e4(0x20f)]=_0x4a864c;const _0x571242=this[_0x2d25e4(0x1ab)](_0x13c7b3||null);return _0x4bc6c3[_0x2d25e4(0x1a9)],_0x4bc6c3[_0x2d25e4(0x19e)]=_0x571242,_0x4bc6c3;}[_0x42d560(0x204)](_0x184692,_0x5addde){const _0x3385dc=_0x42d560,_0x2d702b=_0x184692[_0x3385dc(0x20f)]||_0x184692,_0x4fbd44=[],{rowCount:_0x254980}=this[_0x3385dc(0x1b6)](_0x2d702b,_0x5addde);if(_0x254980<=this[_0x3385dc(0x1c8)][_0x3385dc(0x1ad)])return _0x4fbd44;const _0x2de62e=_0x5addde[_0x3385dc(0x1f5)]();for(;_0x2de62e[_0x3385dc(0x218)]>0x0;){if(this[_0x3385dc(0x212)](_0x184692,_0x2d702b,_0x2de62e)){const _0xf91938=_0x5addde[_0x3385dc(0x1b7)](_0xb7fb4f=>!_0x2de62e[_0x3385dc(0x1c7)](_0xb7fb4f));_0x4fbd44[_0x3385dc(0x1fd)](..._0xf91938);break;}if(!_0x2de62e[_0x3385dc(0x201)]())break;}return _0x4fbd44;}[_0x42d560(0x1b6)](_0x3dcd00,_0x38d01c){const _0x522669=_0x42d560;_0x3dcd00[_0x522669(0x21d)]='',_0x38d01c[_0x522669(0x20c)](_0x6fafa3=>{const _0x4c442c=_0x522669;if(_0x6fafa3[_0x4c442c(0x1e8)]){const _0x444dee=_0x6fafa3[_0x4c442c(0x1e8)][_0x4c442c(0x21e)](!0x0);_0x3dcd00[_0x4c442c(0x1d7)](_0x444dee);}}),_0x3dcd00[_0x522669(0x1a9)];const _0x369573=_0x3dcd00[_0x522669(0x21a)],_0xac025d=[];return Array[_0x522669(0x1cb)](_0x369573)[_0x522669(0x20c)](_0x11da22=>{const _0x554a20=_0x522669,_0x549cc=_0x11da22[_0x554a20(0x1e3)]()[_0x554a20(0x224)];_0xac025d[_0x554a20(0x1c6)](_0x24cb87=>Math[_0x554a20(0x22e)](_0x24cb87-_0x549cc)<this[_0x554a20(0x1c8)][_0x554a20(0x209)])||_0xac025d[_0x554a20(0x1fd)](_0x549cc);}),{'rowCount':_0xac025d[_0x522669(0x218)]};}[_0x42d560(0x1ee)](){const _0x1ceceb=_0x42d560,_0x846bc6=document[_0x1ceceb(0x1c3)](_0x1ceceb(0x1c1));return _0x846bc6[_0x1ceceb(0x1be)]=this[_0x1ceceb(0x1c8)][_0x1ceceb(0x1c2)][_0x1ceceb(0x1b2)],this[_0x1ceceb(0x1c8)][_0x1ceceb(0x1c2)][_0x1ceceb(0x215)]&&_0x846bc6[_0x1ceceb(0x1fc)][_0x1ceceb(0x1a3)](this[_0x1ceceb(0x1c8)][_0x1ceceb(0x1c2)][_0x1ceceb(0x215)]),_0x846bc6[_0x1ceceb(0x1e0)]=_0x1ceceb(0x1c5),_0x846bc6;}[_0x42d560(0x212)](_0x31e441,_0x529fe4,_0x2ea0c0){const _0x38b71c=_0x42d560;this[_0x38b71c(0x1b6)](_0x529fe4,_0x2ea0c0);const _0x22c275=this[_0x38b71c(0x1ee)]();_0x31e441[_0x38b71c(0x1d7)](_0x22c275),_0x31e441[_0x38b71c(0x1a9)];const _0x29c469=[..._0x529fe4[_0x38b71c(0x21a)],_0x22c275],_0x4f71a7=[];_0x29c469[_0x38b71c(0x20c)](_0x28effd=>{const _0x245006=_0x38b71c,_0x3d2a2e=_0x28effd[_0x245006(0x1e3)]()[_0x245006(0x224)];_0x4f71a7[_0x245006(0x1c6)](_0x4ad0c2=>Math[_0x245006(0x22e)](_0x4ad0c2-_0x3d2a2e)<this[_0x245006(0x1c8)][_0x245006(0x209)])||_0x4f71a7[_0x245006(0x1fd)](_0x3d2a2e);});const _0x157070=_0x4f71a7[_0x38b71c(0x218)];return _0x22c275[_0x38b71c(0x1dc)](),_0x157070<=this[_0x38b71c(0x1c8)][_0x38b71c(0x1ad)];}[_0x42d560(0x200)](_0x167050,_0x3117e0){const _0x24dda0=_0x42d560;this[_0x24dda0(0x1c9)][_0x24dda0(0x1e9)](),this[_0x24dda0(0x22b)][_0x24dda0(0x1e9)](),_0x167050[_0x24dda0(0x20c)](_0x6e1ec7=>{const _0x141bcc=_0x24dda0;_0x3117e0[_0x141bcc(0x1c7)](_0x6e1ec7)?this[_0x141bcc(0x22b)][_0x141bcc(0x1a3)](_0x6e1ec7):this[_0x141bcc(0x1c9)][_0x141bcc(0x1a3)](_0x6e1ec7);});}[_0x42d560(0x1ff)](_0x1f0cd6){const _0x223688=_0x42d560;if(_0x1f0cd6>0x0&&!this[_0x223688(0x20a)]&&this[_0x223688(0x1db)](),_0x1f0cd6>0x0&&this[_0x223688(0x20a)]){const _0x1bedce=''+this[_0x223688(0x1c8)][_0x223688(0x21b)]+(_0x1f0cd6<0x63?_0x1f0cd6:'99');this[_0x223688(0x20a)][_0x223688(0x19a)]=_0x1bedce;}this[_0x223688(0x1f9)](),this[_0x223688(0x1ba)](),this[_0x223688(0x210)]();}[_0x42d560(0x226)](_0x275015,_0x2b772d){const _0x166aab=_0x42d560;this[_0x166aab(0x200)](_0x275015,_0x2b772d),this[_0x166aab(0x1ff)](_0x2b772d[_0x166aab(0x218)]);}[_0x42d560(0x20d)](){const _0x59391e=_0x42d560;this[_0x59391e(0x22c)]&&_0x59391e(0x1d8)!=typeof IntersectionObserver&&(this[_0x59391e(0x1c0)]=new IntersectionObserver(_0x115b28=>{const _0x265075=_0x59391e;_0x115b28[0x0][_0x265075(0x1a1)]&&this[_0x265075(0x1a4)]&&requestAnimationFrame(()=>{const _0x45ea6d=_0x265075;this[_0x45ea6d(0x19c)]();});},{'threshold':0.01,'rootMargin':_0x59391e(0x225)}),this[_0x59391e(0x1c0)][_0x59391e(0x1b1)](this[_0x59391e(0x22c)]));}[_0x42d560(0x1d1)](){const _0x31b7ef=_0x42d560;if(!this[_0x31b7ef(0x22c)])return!0x1;if(!this[_0x31b7ef(0x22c)][_0x31b7ef(0x1e6)])return!0x1;const _0x37e4a8=this[_0x31b7ef(0x22c)][_0x31b7ef(0x1e3)]();if(0x0===_0x37e4a8[_0x31b7ef(0x211)]||0x0===_0x37e4a8[_0x31b7ef(0x217)])return!0x1;const _0x6cf4f8=window[_0x31b7ef(0x219)]||document[_0x31b7ef(0x1cc)][_0x31b7ef(0x199)],_0x430406=window[_0x31b7ef(0x1ca)]||document[_0x31b7ef(0x1cc)][_0x31b7ef(0x1a8)],_0x21d21f=0xc8;return _0x37e4a8[_0x31b7ef(0x1aa)]>=-0xc8&&_0x37e4a8[_0x31b7ef(0x224)]<=_0x6cf4f8+_0x21d21f&&_0x37e4a8[_0x31b7ef(0x1df)]>=-0xc8&&_0x37e4a8[_0x31b7ef(0x1a6)]<=_0x430406+_0x21d21f;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5328(){const _0xd7fbe5=['lastIndexOf','ck-ai-chat-context-chip__type-icon','ck-ai-chat-context-chip__label','classList','bindTemplate','readonly','4907010aqMSlk','_handleAnimationEndOnce','type','16368770QwyhzB','execute','132VEGldp','19687icoESO','document','small','slice','animationend','addEventListener','_createTemplateAttributes','element','length','_createLoaderIcon','uiId','div','locale','ck-hidden','set','ck-ai-chat-context-chip','_isAnimationOnEnterEnabled','5aFJVjV','setTemplate','_createRemoveButton','_initializeProperties','_createTemplateChildren','webkitAnimationEnd','removeContextItemChip','itemType','bind','removeEventListener','_createIconView','fire','892384vsggXy','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','render','_setupTemplate','4trlidK','5336961IvUihQ','2320329CFFeLC','22HMDwpz','ck-ai-chat-context-chip_new-chip','disableAnimationOnEnter','isVisible','_setupRemoveButtonEvent','label','content','ck-ai-chat-context-chip_document','span','selection','tooltip','isLoading','ck-ai-chat-context-chip_wide','_createLabelElement','5619111jrAwvM','99HDTyJw','extendTemplate','remove','add','ck-ai-chat-context-controls__chip-tooltip'];_0x5328=function(){return _0xd7fbe5;};return _0x5328();}const _0x3e968b=_0x1b20;(function(_0x1f19b6,_0x8d9e0){const _0x35346f=_0x1b20,_0x49912d=_0x1f19b6();while(!![]){try{const _0x58af24=-parseInt(_0x35346f(0x137))/0x1*(-parseInt(_0x35346f(0x117))/0x2)+parseInt(_0x35346f(0x125))/0x3*(parseInt(_0x35346f(0x114))/0x4)+parseInt(_0x35346f(0x104))/0x5*(parseInt(_0x35346f(0x131))/0x6)+parseInt(_0x35346f(0x115))/0x7+parseInt(_0x35346f(0x110))/0x8*(parseInt(_0x35346f(0x126))/0x9)+-parseInt(_0x35346f(0x134))/0xa+-parseInt(_0x35346f(0x116))/0xb*(parseInt(_0x35346f(0x136))/0xc);if(_0x58af24===_0x8d9e0)break;else _0x49912d['push'](_0x49912d['shift']());}catch(_0x408e78){_0x49912d['push'](_0x49912d['shift']());}}}(_0x5328,0xe569a));function _0x1b20(_0x5ee692,_0x13ebf4){const _0x5328be=_0x5328();return _0x1b20=function(_0x1b20ef,_0x5c7e81){_0x1b20ef=_0x1b20ef-0x100;let _0x17e4cb=_0x5328be[_0x1b20ef];return _0x17e4cb;},_0x1b20(_0x5ee692,_0x13ebf4);}import{ButtonView as _0x6e205c,IconView as _0x240e98}from'ckeditor5/src/ui.js';import{IconClose as _0x1999b5,IconDocument as _0x148973,IconFileUpload as _0x5e47fe,IconLink as _0x3b20fc,IconSelection as _0x390745}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x187be4}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5f294b}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x5e47fe,'document':_0x148973,'web-resource':_0x3b20fc,'text':_0x5e47fe,'selection':_0x390745,'mcp-tool-context':_0x148973},bn=_0x3e968b(0x102),wn=_0x3e968b(0x123),Tn=_0x3e968b(0x11e),En=_0x3e968b(0x12d),fn=_0x3e968b(0x12c),An=_0x3e968b(0x12a),Cn='n';export class AIChatContextItemButtonView extends _0x6e205c{constructor(_0x7bb2c4,_0x1a1397,_0x3dcc77,_0xce9ee5,_0x39ecc7=!0x1){const _0x527030=_0x3e968b;super(_0x7bb2c4),this[_0x527030(0x103)]=_0xce9ee5,this[_0x527030(0x107)](_0x1a1397,_0x3dcc77,_0x39ecc7),this[_0x527030(0x113)]();}[_0x3e968b(0x112)](){const _0x11b2ed=_0x3e968b;super[_0x11b2ed(0x112)](),this[_0x11b2ed(0x103)]&&this[_0x11b2ed(0x13e)]&&(this[_0x11b2ed(0x13e)][_0x11b2ed(0x12e)][_0x11b2ed(0x129)](_0x11b2ed(0x118)),this[_0x11b2ed(0x132)](this[_0x11b2ed(0x13e)],()=>{const _0x4660a6=_0x11b2ed;this[_0x4660a6(0x13e)]&&this[_0x4660a6(0x13e)][_0x4660a6(0x12e)][_0x4660a6(0x128)](_0x4660a6(0x118));}));}[_0x3e968b(0x119)](){const _0x22a033=_0x3e968b;this[_0x22a033(0x103)]=!0x1,this[_0x22a033(0x13e)]&&this[_0x22a033(0x13e)][_0x22a033(0x12e)][_0x22a033(0x128)](_0x22a033(0x118));}[_0x3e968b(0x107)](_0x39d1d4,_0x439f38,_0x5c3ff4){const _0x1a0007=_0x3e968b;this[_0x1a0007(0x101)](_0x1a0007(0x11c),_0x39d1d4[_0x1a0007(0x11c)]),this[_0x1a0007(0x101)](_0x1a0007(0x121),!0x0),this[_0x1a0007(0x101)](_0x1a0007(0x10b),_0x39d1d4[_0x1a0007(0x133)]),this[_0x1a0007(0x101)]('id',_0x39d1d4[_0x1a0007(0x141)]),this[_0x1a0007(0x101)](_0x1a0007(0x130),_0x439f38),this[_0x1a0007(0x101)](_0x1a0007(0x122),_0x5c3ff4);}[_0x3e968b(0x113)](){const _0x21d877=_0x3e968b,_0x569ad9=this[_0x21d877(0x10e)](),_0x166d1e=this[_0x21d877(0x106)](),_0x1c189e=this[_0x21d877(0x12f)];this[_0x21d877(0x105)]({'tag':_0x21d877(0x142),'attributes':this[_0x21d877(0x13d)](_0x1c189e),'children':this[_0x21d877(0x108)](_0x569ad9,_0x166d1e,_0x1c189e)});}[_0x3e968b(0x13d)](_0x310ca0){const _0x338081=_0x3e968b;return{'class':[bn,_0x310ca0['if'](_0x338081(0x10b),Tn,_0x70698d=>_0x338081(0x138)==_0x70698d),_0x310ca0['if'](_0x338081(0x10b),wn,_0x2d15f1=>_0x338081(0x120)==_0x2d15f1)],'data-cke-tooltip-text':_0x310ca0['to'](_0x338081(0x11c),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x3e968b(0x108)](_0x3fe04a,_0x2f2118,_0x321ee6){const _0x307bcb=_0x3e968b,_0x45c7b4=this[_0x307bcb(0x124)](_0x321ee6),_0x5737ec=this[_0x307bcb(0x140)]();return this[_0x307bcb(0x130)]?[_0x3fe04a,_0x45c7b4]:[_0x3fe04a,_0x5737ec,_0x45c7b4,_0x2f2118];}[_0x3e968b(0x124)](_0x210883){const _0x4ce5b1=_0x3e968b;return{'tag':_0x4ce5b1(0x11f),'attributes':{'class':En},'children':[{'text':_0x210883['to'](_0x4ce5b1(0x11c))}]};}[_0x3e968b(0x106)](){const _0x2a5b23=_0x3e968b,_0x2b0dd7=new _0x6e205c(this[_0x2a5b23(0x143)]);return _0x2b0dd7[_0x2a5b23(0x101)]({'label':_0x187be4(this[_0x2a5b23(0x143)],_0x2a5b23(0x111)),'icon':_0x1999b5}),this[_0x2a5b23(0x11b)](_0x2b0dd7),_0x2b0dd7;}[_0x3e968b(0x11b)](_0x4b3899){const _0x1ffe42=_0x3e968b;_0x4b3899['on'](_0x1ffe42(0x135),()=>{const _0x5f2623=_0x1ffe42;this[_0x5f2623(0x10f)](_0x5f2623(0x10a),this['id']);});}[_0x3e968b(0x10e)](){const _0x5e219c=_0x3e968b,_0x4556c5=this[_0x5e219c(0x12f)],_0x465a2a=new _0x240e98();return _0x465a2a[_0x5e219c(0x11d)]=xn[this[_0x5e219c(0x10b)]],_0x465a2a[_0x5e219c(0x127)]({'attributes':{'class':[fn,_0x4556c5['if'](_0x5e219c(0x122),_0x5e219c(0x100),_0x4170e=>_0x4170e)]}}),_0x465a2a;}[_0x3e968b(0x132)](_0x5053fd,_0x4e3667){const _0x362c37=_0x3e968b;if(!_0x5053fd)return;const _0x1430d3=()=>{const _0x30d247=_0x1b20;_0x4e3667(),_0x5053fd[_0x30d247(0x10d)](_0x30d247(0x13b),_0x1430d3),_0x5053fd[_0x30d247(0x10d)](_0x30d247(0x109),_0x1430d3);};_0x5053fd[_0x362c37(0x13c)](_0x362c37(0x13b),_0x1430d3),_0x5053fd[_0x362c37(0x13c)](_0x362c37(0x109),_0x1430d3);}[_0x3e968b(0x140)](){const _0x1c9764=_0x3e968b,_0x5e460e=new _0x5f294b(_0x1c9764(0x139));return _0x5e460e[_0x1c9764(0x10c)](_0x1c9764(0x11a))['to'](this,_0x1c9764(0x122),_0x40ab4b=>_0x40ab4b),_0x5e460e;}}function In(_0x55a828){const _0x16865b=_0x3e968b;if(!_0x55a828)return _0x55a828;if(_0x55a828[_0x16865b(0x13f)]<=0x78)return _0x55a828;const _0x2c7c8c=_0x55a828[_0x16865b(0x13a)](0x0,0x78),_0x215f9a=_0x2c7c8c[_0x16865b(0x12b)]('\x20');return(_0x215f9a>0x0?_0x2c7c8c[_0x16865b(0x13a)](0x0,_0x215f9a):_0x2c7c8c)+'…';}
|