@ckeditor/ckeditor5-ai 47.5.0 → 47.6.0-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/966.ai.js +5 -0
- package/build/ai.js +1 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/en.js +1 -0
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +387 -403
- package/dist/index.css +441 -413
- 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/lang/contexts.json +1 -0
- package/lang/translations/af.po +8 -4
- package/lang/translations/ar.po +8 -4
- package/lang/translations/ast.po +8 -4
- package/lang/translations/az.po +8 -4
- package/lang/translations/be.po +8 -4
- package/lang/translations/bg.po +8 -4
- package/lang/translations/bn.po +8 -4
- package/lang/translations/bs.po +8 -4
- package/lang/translations/ca.po +8 -4
- package/lang/translations/cs.po +8 -4
- package/lang/translations/da.po +8 -4
- package/lang/translations/de-ch.po +8 -4
- package/lang/translations/de.po +8 -4
- package/lang/translations/el.po +8 -4
- package/lang/translations/en-au.po +8 -4
- package/lang/translations/en-gb.po +8 -4
- package/lang/translations/en.po +8 -4
- package/lang/translations/eo.po +8 -4
- package/lang/translations/es-co.po +8 -4
- package/lang/translations/es.po +8 -4
- package/lang/translations/et.po +8 -4
- package/lang/translations/eu.po +8 -4
- package/lang/translations/fa.po +8 -4
- package/lang/translations/fi.po +8 -4
- package/lang/translations/fr.po +8 -4
- package/lang/translations/gl.po +8 -4
- package/lang/translations/gu.po +8 -4
- package/lang/translations/he.po +8 -4
- package/lang/translations/hi.po +8 -4
- package/lang/translations/hr.po +8 -4
- package/lang/translations/hu.po +8 -4
- package/lang/translations/hy.po +8 -4
- package/lang/translations/id.po +8 -4
- package/lang/translations/it.po +8 -4
- package/lang/translations/ja.po +8 -4
- package/lang/translations/jv.po +8 -4
- package/lang/translations/kk.po +8 -4
- package/lang/translations/km.po +8 -4
- package/lang/translations/kn.po +8 -4
- package/lang/translations/ko.po +8 -4
- package/lang/translations/ku.po +8 -4
- package/lang/translations/lt.po +8 -4
- package/lang/translations/lv.po +8 -4
- package/lang/translations/ms.po +8 -4
- package/lang/translations/nb.po +8 -4
- package/lang/translations/ne.po +8 -4
- package/lang/translations/nl.po +8 -4
- package/lang/translations/no.po +8 -4
- package/lang/translations/oc.po +8 -4
- package/lang/translations/pl.po +8 -4
- package/lang/translations/pt-br.po +8 -4
- package/lang/translations/pt.po +8 -4
- package/lang/translations/ro.po +8 -4
- package/lang/translations/ru.po +8 -4
- package/lang/translations/si.po +8 -4
- package/lang/translations/sk.po +8 -4
- package/lang/translations/sl.po +8 -4
- package/lang/translations/sq.po +8 -4
- package/lang/translations/sr-latn.po +8 -4
- package/lang/translations/sr.po +8 -4
- package/lang/translations/sv.po +8 -4
- package/lang/translations/th.po +8 -4
- package/lang/translations/ti.po +8 -4
- package/lang/translations/tk.po +8 -4
- package/lang/translations/tr.po +8 -4
- package/lang/translations/tt.po +8 -4
- package/lang/translations/ug.po +8 -4
- package/lang/translations/uk.po +8 -4
- package/lang/translations/ur.po +8 -4
- package/lang/translations/uz.po +8 -4
- package/lang/translations/vi.po +8 -4
- package/lang/translations/zh-cn.po +8 -4
- package/lang/translations/zh.po +8 -4
- package/package.json +21 -21
- 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.d.ts +12 -8
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +4 -0
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +24 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.d.ts +13 -0
- 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.d.ts +5 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +4 -0
- 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.d.ts +5 -0
- 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.d.ts +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.d.ts +324 -0
- package/src/aichatshortcuts/aichatshortcuts.js +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutsview.d.ts +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutview.d.ts +23 -0
- package/src/aichatshortcuts/ui/aichatshortcutview.js +23 -0
- package/src/aiconfig.d.ts +7 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.d.ts +8 -0
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.d.ts +7 -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.d.ts +1 -0
- 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.d.ts +4 -0
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.d.ts +3 -3
- 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/types.d.ts +11 -2
- 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.d.ts +4 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.d.ts +95 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +5 -0
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +6 -3
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcheckextra.d.ts +35 -0
- package/src/aireviewmode/model/aireviewcheckextra.js +23 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +2 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewextracheckrun.d.ts +20 -0
- package/src/aireviewmode/model/aireviewextracheckrun.js +23 -0
- package/src/aireviewmode/model/aireviewmodechecklist.d.ts +10 -0
- 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.d.ts +5 -0
- 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/augmentation.d.ts +2 -0
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.d.ts +2 -1
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls.css +0 -1
- package/theme/aichat/aichat-controls/aichat-controls-button.css +22 -23
- package/theme/aichat/aichat-controls/prompt-input.css +23 -0
- package/theme/aichat/aichat-controls.css +0 -19
- package/theme/aichat/aichathistory.css +1 -1
- package/theme/aichat/aiminitoolbar.css +0 -16
- package/theme/aichatshortcuts/aichatshortcuts.css +84 -0
- package/theme/aieditorintegration/aitogglebutton.css +5 -11
- package/theme/aiquickactions/aiquickactions.css +6 -11
- package/theme/aiquickactions/aiquickactionsballoon.css +37 -29
- package/theme/aireviewcore/aireviewcore-check-run.css +4 -0
- package/theme/aireviewcore/aireviewcore.css +4 -4
- package/theme/aitabs/aitabsresizebutton.css +14 -0
- package/theme/aitranslate/aitranslate.css +4 -0
- package/theme/common/aibutton.css +56 -67
- package/theme/common/aiheader.css +1 -1
- package/theme/common/aisuggestioncontentparttoolbar.css +1 -1
- package/theme/common/aisuggestionstreamablecontent.css +4 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1c4890=_0x3485;(function(_0x325e8b,_0x21db2a){const _0x44a0e2=_0x3485,_0x5cd914=_0x325e8b();while(!![]){try{const _0x2b36a2=-parseInt(_0x44a0e2(0x1b6))/0x1*(parseInt(_0x44a0e2(0x1c7))/0x2)+parseInt(_0x44a0e2(0x22f))/0x3+parseInt(_0x44a0e2(0x241))/0x4*(parseInt(_0x44a0e2(0x205))/0x5)+parseInt(_0x44a0e2(0x1ea))/0x6+-parseInt(_0x44a0e2(0x1cc))/0x7*(parseInt(_0x44a0e2(0x231))/0x8)+-parseInt(_0x44a0e2(0x23b))/0x9*(parseInt(_0x44a0e2(0x1fa))/0xa)+parseInt(_0x44a0e2(0x1af))/0xb*(-parseInt(_0x44a0e2(0x1b0))/0xc);if(_0x2b36a2===_0x21db2a)break;else _0x5cd914['push'](_0x5cd914['shift']());}catch(_0x5ebc7e){_0x5cd914['push'](_0x5cd914['shift']());}}}(_0x1d35,0x760eb));import{CKEditorError as _0x4f2686,ObservableMixin as _0x3894ce,uid as _0x835860}from'ckeditor5/src/utils.js';function _0x3485(_0x81b5ae,_0x1a0a48){const _0x1d35f2=_0x1d35();return _0x3485=function(_0x348576,_0x1052dc){_0x348576=_0x348576-0x1ae;let _0x596a4a=_0x1d35f2[_0x348576];return _0x596a4a;},_0x3485(_0x81b5ae,_0x1a0a48);}import{AIContextItemType as _0x40c9a8,AIContextTextResourceType as _0x4c7875}from'../../aicore/model/aicontext.js';function _0x1d35(){const _0x49bbf0=['uiId','document','code','text/plain','_addContextItem','length','addCurrentDocumentToContext','uploadProgressChanged','ai-chat-context-unsupported-type','attributes','addUrlToContext','end','url','resourceStateChanged','hidden','addSelectionToContext','abort','_removeContextItem','abortController','forEach','_ownerId','ai-chat-document-upload-failed','_startUploadOperation','TOOL','get','updateCurrentDocument','isCurrentDocumentInContext','1199367UgWPdE','populateFromMessage','6648584dEZYjW','getId','push','all','addToConversationContext','removeFromContext','files-','urls','addFilesToContext','SELECTION','19368hNjkZt','fire','_pendingContextItems','enabled','filter','error','1184eExknb','_createContextItemFromContent','content','_mapContextItemToRequestData','187PzbTCa','472248JszhHv','_updateResourceInContextState','object\x20with\x20content\x20and\x20type\x20properties','values','current-document','addContextOptionsChanged','1QtLVea','_conversationContextItems','TEXT','map','text/markdown','FILE','clearPendingContextItems','ai-chat-resource-no-data','type','resourceId','_config','fetchDocument','ai-chat-source-not-found','from','File','HTML','uploadDocument','296046GFANiF','_finishContextItemLoading','files','_findSourceIdsByResourceId','startsWith','7rSftXL','DOCUMENT','stack','loadSourceResources','set','size','_ongoingUploadOperations','object','isHidden','start','_addContextOptionsState','data','getPendingContextItems','isReadOnly','_getCustomSourcesInitialState','ai-request-aborted','string','message','contextItemRemoved','_connector','contextSent','sessionId','selection','ai-chat-file-upload-failed','URL','sourceResourcesLoaded','version','isInContext','getSentContextItems','has','5442432QUPBlx','url-','uploadUrl','getData','sources','resources','_convertTextResourceToFile','ai-chat-resource-load-failed','toolName','_setAddContextOptionsDefaultState','MARKDOWN','_addToConversationContextItem','_ongoingUploads','_isResourceInContext','addToolItemToContext','label','350gJpQPE','isCurrentDocumentInConversation','_toggleAddCurrentDocumentOptionVisibility','mapContextItemsToRequestData','delete','text/html','addResourceToContext','removeSelectionFromContext','isSelectionInContext','getDocument','customItems','15205FQWsfE','init','uploadFile','Current\x20document','ai-chat-url-upload-failed','contextItemAdded','mcpServerName','ai-chat-context-invalid-data','find','getResources','file-','contextItemLoadingEnded','_finishUploadOperation','name','ai-chat-source-resources-load-failed'];_0x1d35=function(){return _0x49bbf0;};return _0x1d35();}import{escape as _0x2a2b36}from'es-toolkit/compat';import{errorsMap as _0x124a2b}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x1c4890(0x20a),_0x1c4890(0x1de),_0x1c4890(0x210),_0x1c4890(0x1e0),_0x1c4890(0x240),_0x1c4890(0x1b5),_0x1c4890(0x1e5),_0x1c4890(0x221),_0x1c4890(0x21b)];export class AIChatContext extends _0x3894ce(){[_0x1c4890(0x1df)];[_0x1c4890(0x1c0)];[_0x1c4890(0x228)];constructor({connector:_0x54eeaa,config:_0x156500,ownerId:_0x171177}){const _0x3e11df=_0x1c4890;super(),this[_0x3e11df(0x1df)]=_0x54eeaa,this[_0x3e11df(0x1c0)]=_0x156500,this[_0x3e11df(0x228)]=_0x171177;}[_0x1c4890(0x206)](){const _0x246d37=_0x1c4890;this[_0x246d37(0x23d)]=new Map(),this[_0x246d37(0x1b7)]=new Map(),this[_0x246d37(0x1f6)]=new Map(),this[_0x246d37(0x1d2)]=new Map(),this[_0x246d37(0x1f3)]();}[_0x1c4890(0x1d8)](){const _0x5ac61e=_0x1c4890;return this[_0x5ac61e(0x23d)];}async[_0x1c4890(0x230)](_0x5c7013){const _0x37340b=_0x1c4890,_0x271a1a=await this[_0x37340b(0x242)](_0x5c7013);return this[_0x37340b(0x1f5)](_0x271a1a),_0x37340b(0x1b4)===_0x271a1a[_0x37340b(0x214)]&&this[_0x37340b(0x1fc)](),_0x271a1a;}async[_0x1c4890(0x242)](_0x5032ab){const _0x597ffd=_0x1c4890;if(_0x5032ab[_0x597ffd(0x1be)]===_0x40c9a8[_0x597ffd(0x1cd)]){const _0x2cfb9a=await this[_0x597ffd(0x1df)][_0x597ffd(0x1c1)](this[_0x597ffd(0x228)],_0x5032ab['id'])[_0x597ffd(0x203)]();return{'id':_0x597ffd(0x1b4),'uiId':_0x597ffd(0x1b4),'label':_0x597ffd(0x208),'type':_0x5032ab[_0x597ffd(0x1be)],'content':_0x2cfb9a[_0x597ffd(0x243)],'hidden':this[_0x597ffd(0x1b7)][_0x597ffd(0x1e9)](_0x597ffd(0x1b4)),'version':_0x2cfb9a[_0x597ffd(0x21d)]?.[_0x597ffd(0x1e6)],'sessionId':_0x2cfb9a[_0x597ffd(0x21d)]?.[_0x597ffd(0x1e1)]};}if(_0x5032ab[_0x597ffd(0x1be)]===_0x40c9a8[_0x597ffd(0x22b)])return{'id':_0x5032ab['id'],'uiId':_0x5032ab['id'],'label':_0x5032ab[_0x597ffd(0x1d7)]?.[_0x597ffd(0x1f9)]||_0x5032ab['id'],'type':_0x40c9a8[_0x597ffd(0x22b)],'mcpServerName':_0x5032ab[_0x597ffd(0x20b)],'toolName':_0x5032ab[_0x597ffd(0x1f2)],'data':_0x5032ab[_0x597ffd(0x1d7)]||{}};return{'id':_0x5032ab['id'],'uiId':_0x5032ab['id'],'label':_0x5032ab[_0x597ffd(0x21d)]?.[_0x597ffd(0x1f9)]||_0x5032ab[_0x597ffd(0x212)]||_0x5032ab[_0x597ffd(0x220)]||_0x5032ab['id'],'type':_0x5032ab[_0x597ffd(0x1be)],..._0x5032ab?.[_0x597ffd(0x21d)]?.[_0x597ffd(0x1bf)]?{'resourceId':_0x5032ab[_0x597ffd(0x21d)]?.[_0x597ffd(0x1bf)]}:{}};}[_0x1c4890(0x1e8)](){const _0x59c6bb=_0x1c4890;return new Map(this[_0x59c6bb(0x1b7)]);}[_0x1c4890(0x236)](_0x228755){const _0x41403d=_0x1c4890,_0x35547b=this[_0x41403d(0x23d)][_0x41403d(0x22c)](_0x228755);_0x35547b?.[_0x41403d(0x1d9)]||this[_0x41403d(0x225)](_0x228755);}[_0x1c4890(0x1bc)](){const _0x3bc593=_0x1c4890;if(0x0===this[_0x3bc593(0x23d)][_0x3bc593(0x1d1)])return;for(const _0x10bc51 of this[_0x3bc593(0x23d)][_0x3bc593(0x1b3)]())this[_0x3bc593(0x225)](_0x10bc51[_0x3bc593(0x214)]);const _0x3218d3=this[_0x3bc593(0x1b7)][_0x3bc593(0x22c)](_0x3bc593(0x1b4))||this[_0x3bc593(0x23d)][_0x3bc593(0x22c)](_0x3bc593(0x1b4));_0x3218d3&&this[_0x3bc593(0x218)]({..._0x3218d3,'isReadOnly':!0x0,'hidden':!0x0});}[_0x1c4890(0x235)](_0x31b1eb){const _0x5a4f0d=_0x1c4890;for(const _0x228ada of _0x31b1eb[_0x5a4f0d(0x1b3)]())this[_0x5a4f0d(0x1f5)](_0x228ada);this[_0x5a4f0d(0x1bc)](),this[_0x5a4f0d(0x23c)](_0x5a4f0d(0x1e0),{'contextItems':Array[_0x5a4f0d(0x1c3)](this[_0x5a4f0d(0x1e8)]()[_0x5a4f0d(0x1b3)]())});}[_0x1c4890(0x22e)](){const _0x3fd57d=_0x1c4890;return this[_0x3fd57d(0x23d)][_0x3fd57d(0x1e9)](_0x3fd57d(0x1b4));}[_0x1c4890(0x202)](){const _0x27dd82=_0x1c4890;return this[_0x27dd82(0x23d)][_0x27dd82(0x1e9)](_0x27dd82(0x1e2));}[_0x1c4890(0x1fb)](){const _0x4a1a9c=_0x1c4890;return this[_0x4a1a9c(0x1b7)][_0x4a1a9c(0x1e9)](_0x4a1a9c(0x1b4));}static[_0x1c4890(0x1fd)](_0x7119a5){const _0x4c5bf5=_0x1c4890;return Array[_0x4c5bf5(0x1c3)](_0x7119a5[_0x4c5bf5(0x1b3)]())[_0x4c5bf5(0x1b9)](_0x3291f3=>this[_0x4c5bf5(0x1ae)](_0x3291f3))[_0x4c5bf5(0x23f)](_0x1cdbf8=>null!==_0x1cdbf8);}async[_0x1c4890(0x239)](_0x230455,_0x5c0f1e,_0x3f1e0b=_0x40c9a8[_0x1c4890(0x1bb)]){const _0x2aca6e=_0x1c4890,_0x19233e=_0x2aca6e(0x237)+_0x835860();this[_0x2aca6e(0x22a)](_0x19233e);try{await Promise[_0x2aca6e(0x234)](_0x230455[_0x2aca6e(0x1b9)](async _0x281840=>{const _0x358701=_0x2aca6e,_0x179ecc=_0x358701(0x20f)+_0x835860(),_0x2900d8=_0x2a2b36(_0x281840[_0x358701(0x212)]);try{this[_0x358701(0x218)]({'type':_0x3f1e0b,'label':_0x5c0f1e?.[_0x358701(0x1f9)]||_0x2900d8,'uiId':_0x179ecc,'resourceId':_0x5c0f1e?.[_0x358701(0x1bf)]},!0x0);const _0xa1b3d9=this[_0x358701(0x1df)][_0x358701(0x207)](this[_0x358701(0x228)],_0x281840,_0x5c0f1e);this[_0x358701(0x1f6)][_0x358701(0x1d0)](_0x179ecc,_0xa1b3d9[_0x358701(0x226)]);const {id:_0x337328}=await _0xa1b3d9[_0x358701(0x232)]();this[_0x358701(0x1f6)][_0x358701(0x1fe)](_0x179ecc),this[_0x358701(0x1c8)]({'type':_0x3f1e0b,'id':_0x337328,'label':_0x5c0f1e?.[_0x358701(0x1f9)]||_0x2900d8,'uiId':_0x179ecc,'resourceId':_0x5c0f1e?.[_0x358701(0x1bf)]},!0x1);}catch(_0x351416){this[_0x358701(0x1f6)][_0x358701(0x1fe)](_0x179ecc);if(!(_0x351416 instanceof _0x4f2686&&_0x351416[_0x358701(0x1dd)][_0x358701(0x1cb)](_0x358701(0x1db)))){const _0x5cc68c=_0x124a2b[_0x358701(0x22c)](_0x351416[_0x358701(0x216)])||_0x358701(0x1e3),_0x3b3622=new _0x4f2686(_0x5cc68c,null,{'fileName':_0x2900d8,..._0x351416});_0x3b3622[_0x358701(0x1ce)]=_0x351416[_0x358701(0x1ce)],this[_0x358701(0x23c)](_0x358701(0x240),{'error':_0x3b3622});}this[_0x358701(0x225)](_0x179ecc);}}));}finally{this[_0x2aca6e(0x211)](_0x19233e);}}[_0x1c4890(0x21a)](_0x4a7655){const _0x56f903=_0x1c4890;if(this[_0x56f903(0x22e)]()||!this[_0x56f903(0x1d6)][_0x56f903(0x215)][_0x56f903(0x23e)])return;const _0x1167ba={'type':_0x40c9a8[_0x56f903(0x1cd)],'uiId':_0x56f903(0x1b4),'label':_0x4a7655,'isReadOnly':this[_0x56f903(0x1b7)][_0x56f903(0x1e9)](_0x56f903(0x1b4)),'hidden':this[_0x56f903(0x1b7)][_0x56f903(0x1e9)](_0x56f903(0x1b4))};this[_0x56f903(0x218)](_0x1167ba);}async[_0x1c4890(0x22d)](_0x832da9,_0x558e84,_0x3c77f1,_0x4327a1){const _0x18078e=_0x1c4890,_0x2a6d79=this[_0x18078e(0x23d)][_0x18078e(0x22c)](_0x18078e(0x1b4));if(_0x2a6d79&&_0x832da9){_0x2a6d79[_0x18078e(0x1e2)]=_0x4327a1?_0x4327a1[_0x18078e(0x1b9)](_0x75f432=>({'start':_0x75f432[_0x18078e(0x1d5)],'end':_0x75f432[_0x18078e(0x21f)]})):[];try{if(_0x2a6d79[_0x18078e(0x1e6)]===_0x558e84)return;const {id:_0x4c3e8a}=await this[_0x18078e(0x1df)][_0x18078e(0x1c6)](this[_0x18078e(0x228)],_0x832da9,{'version':_0x558e84,'sessionId':_0x3c77f1})[_0x18078e(0x232)]();_0x2a6d79['id']=_0x4c3e8a,_0x2a6d79[_0x18078e(0x243)]=_0x832da9,_0x2a6d79[_0x18078e(0x1e6)]=_0x558e84,_0x2a6d79[_0x18078e(0x1e1)]=_0x3c77f1;}catch(_0x30c06e){const _0x369242=new _0x4f2686(_0x18078e(0x229),null);_0x369242[_0x18078e(0x1ce)]=_0x30c06e[_0x18078e(0x1ce)],this[_0x18078e(0x23c)](_0x18078e(0x240),{'error':_0x369242});}}}[_0x1c4890(0x223)](_0x1101db){const _0x58469d=_0x1c4890;this[_0x58469d(0x218)]({'type':_0x40c9a8[_0x58469d(0x23a)],'label':_0x1101db,'uiId':_0x58469d(0x1e2),'content':_0x1101db});}[_0x1c4890(0x201)](){const _0xd2f149=_0x1c4890;this[_0xd2f149(0x225)](_0xd2f149(0x1e2));}async[_0x1c4890(0x21e)](_0xacad3a,_0x2091fd){const _0x426da6=_0x1c4890,_0xa56e5a=_0x426da6(0x1eb)+_0x835860();this[_0x426da6(0x22a)](_0xa56e5a);const _0x49b1b8=_0x426da6(0x1eb)+_0x835860();try{this[_0x426da6(0x218)]({'type':_0x40c9a8[_0x426da6(0x1e4)],'label':_0x2091fd?.[_0x426da6(0x1f9)]||_0xacad3a,'uiId':_0x49b1b8,'resourceId':_0x2091fd?.[_0x426da6(0x1bf)]},!0x0);const _0x3c4497=this[_0x426da6(0x1df)][_0x426da6(0x1ec)](this[_0x426da6(0x228)],_0xacad3a,_0x2091fd);this[_0x426da6(0x1f6)][_0x426da6(0x1d0)](_0x49b1b8,_0x3c4497[_0x426da6(0x226)]);const {id:_0x367c18}=await _0x3c4497[_0x426da6(0x232)]();this[_0x426da6(0x1f6)][_0x426da6(0x1fe)](_0x49b1b8),this[_0x426da6(0x1c8)]({'type':_0x40c9a8[_0x426da6(0x1e4)],'id':_0x367c18,'label':_0x2091fd?.[_0x426da6(0x1f9)]||_0xacad3a,'uiId':_0x49b1b8,'resourceId':_0x2091fd?.[_0x426da6(0x1bf)]},!0x1);}catch(_0x12fb9b){this[_0x426da6(0x1f6)][_0x426da6(0x1fe)](_0x49b1b8),(_0x12fb9b[_0x426da6(0x1dd)][_0x426da6(0x1cb)](_0x426da6(0x1db))||this[_0x426da6(0x23c)](_0x426da6(0x240),{'error':new _0x4f2686(_0x426da6(0x209),this,{'url':_0xacad3a,'originalError':_0x12fb9b}),'url':_0xacad3a}),this[_0x426da6(0x225)](_0x49b1b8));}finally{this[_0x426da6(0x211)](_0xa56e5a);}}[_0x1c4890(0x1f8)](_0xe0731e){const _0x27c679=_0x1c4890;this[_0x27c679(0x23d)][_0x27c679(0x1d0)](_0xe0731e[_0x27c679(0x214)],_0xe0731e),this[_0x27c679(0x23c)](_0x27c679(0x20a),{'contextItem':_0xe0731e,'isLoading':!0x1});}async[_0x1c4890(0x1cf)](_0x463862,_0x1ae5a5,_0x3b657a){const _0xd0af95=_0x1c4890,_0x368257=this[_0xd0af95(0x1d6)][_0xd0af95(0x1ee)][_0xd0af95(0x20d)](_0x32fa49=>_0x32fa49['id']===_0x463862);if(!_0x368257)return this[_0xd0af95(0x23c)](_0xd0af95(0x240),{'error':new _0x4f2686(_0xd0af95(0x1c2),this,{'sourceId':_0x463862}),'sourceId':_0x463862}),[];try{const _0x17ce32=(await _0x368257[_0xd0af95(0x20e)](_0x1ae5a5))[_0xd0af95(0x1b9)](_0x528650=>{const _0x55be7f=_0xd0af95,_0x152982=this[_0x55be7f(0x1f7)](_0x528650['id']);return{..._0x528650,'isInContext':_0x152982};});return _0x368257[_0xd0af95(0x1ef)]=_0x17ce32,this[_0xd0af95(0x23c)](_0xd0af95(0x1e5),{'sourceId':_0x463862,'source':_0x368257,'resources':_0x17ce32,'uid':_0x3b657a}),_0x17ce32;}catch(_0x22992c){return this[_0xd0af95(0x23c)](_0xd0af95(0x240),{'error':new _0x4f2686(_0xd0af95(0x213),this,{'sourceId':_0x463862,'originalError':_0x22992c}),'sourceId':_0x463862,'sourceLabel':_0x368257[_0xd0af95(0x1f9)]}),[];}}async[_0x1c4890(0x200)](_0x3bd6d3,_0x19d763){const _0x8d246b=_0x1c4890;if(this[_0x8d246b(0x1f7)](_0x19d763['id']))return;let _0x53823e=_0x19d763[_0x8d246b(0x1d7)];if(!_0x53823e&&_0x3bd6d3[_0x8d246b(0x1ed)])try{_0x53823e=await _0x3bd6d3[_0x8d246b(0x1ed)](_0x19d763['id']);}catch(_0x2e6403){return void this[_0x8d246b(0x23c)](_0x8d246b(0x240),{'error':new _0x4f2686(_0x8d246b(0x1f1),this,{'resourceId':_0x19d763['id'],'sourceId':_0x3bd6d3['id'],'originalError':_0x2e6403}),'resourceId':_0x19d763['id'],'sourceId':_0x3bd6d3['id']});}if(_0x53823e)switch(_0x19d763[_0x8d246b(0x1be)]){case _0x40c9a8[_0x8d246b(0x1e4)]:if(_0x8d246b(0x1dc)!=typeof _0x53823e)return void this[_0x8d246b(0x23c)](_0x8d246b(0x240),{'error':new _0x4f2686(_0x8d246b(0x20c),this,{'resourceId':_0x19d763['id'],'sourceId':_0x3bd6d3['id'],'expectedType':_0x8d246b(0x1dc),'actualType':typeof _0x53823e}),'resourceId':_0x19d763['id'],'sourceId':_0x3bd6d3['id']});await this[_0x8d246b(0x21e)](_0x53823e,{'label':_0x19d763[_0x8d246b(0x1f9)],'resourceId':_0x19d763['id']});break;case _0x40c9a8[_0x8d246b(0x1bb)]:if(!(_0x53823e instanceof File))return void this[_0x8d246b(0x23c)](_0x8d246b(0x240),{'error':new _0x4f2686(_0x8d246b(0x20c),this,{'resourceId':_0x19d763['id'],'sourceId':_0x3bd6d3['id'],'expectedType':_0x8d246b(0x1c4),'actualType':typeof _0x53823e}),'resourceId':_0x19d763['id'],'sourceId':_0x3bd6d3['id']});await this[_0x8d246b(0x239)]([_0x53823e],{'label':_0x19d763[_0x8d246b(0x1f9)],'resourceId':_0x19d763['id']});break;case _0x40c9a8[_0x8d246b(0x1b8)]:if(_0x8d246b(0x1d3)!=typeof _0x53823e||!(_0x8d246b(0x243)in _0x53823e)||!(_0x8d246b(0x1be)in _0x53823e))return void this[_0x8d246b(0x23c)](_0x8d246b(0x240),{'error':new _0x4f2686(_0x8d246b(0x20c),this,{'resourceId':_0x19d763['id'],'sourceId':_0x3bd6d3['id'],'expectedType':_0x8d246b(0x1b2),'actualType':typeof _0x53823e}),'resourceId':_0x19d763['id'],'sourceId':_0x3bd6d3['id']});_0x53823e=AIChatContext[_0x8d246b(0x1f0)](_0x53823e,_0x19d763[_0x8d246b(0x1f9)]),await this[_0x8d246b(0x239)]([_0x53823e],{'label':_0x19d763[_0x8d246b(0x1f9)],'resourceId':_0x19d763['id']},_0x40c9a8[_0x8d246b(0x1b8)]);break;case _0x40c9a8[_0x8d246b(0x22b)]:break;default:this[_0x8d246b(0x23c)](_0x8d246b(0x240),{'error':new _0x4f2686(_0x8d246b(0x21c),this,{'resourceId':_0x19d763['id'],'sourceId':_0x3bd6d3['id'],'resourceType':_0x19d763[_0x8d246b(0x1be)]}),'resourceId':_0x19d763['id'],'sourceId':_0x3bd6d3['id']});}else this[_0x8d246b(0x23c)](_0x8d246b(0x240),{'error':new _0x4f2686(_0x8d246b(0x1bd),this,{'resourceId':_0x19d763['id'],'sourceId':_0x3bd6d3['id']}),'resourceId':_0x19d763['id'],'sourceId':_0x3bd6d3['id']});}static[_0x1c4890(0x1f0)](_0x7cf3d3,_0x3647b6){const _0x60b404=_0x1c4890;switch(_0x7cf3d3[_0x60b404(0x1be)]){case _0x4c7875[_0x60b404(0x1f4)]:return new File([_0x7cf3d3[_0x60b404(0x243)]],_0x3647b6,{'type':_0x60b404(0x1ba)});case _0x4c7875[_0x60b404(0x1c5)]:return new File([_0x7cf3d3[_0x60b404(0x243)]],_0x3647b6,{'type':_0x60b404(0x1ff)});default:return new File([_0x7cf3d3[_0x60b404(0x243)]],_0x3647b6,{'type':_0x60b404(0x217)});}}static[_0x1c4890(0x1ae)](_0x4913e0){const _0x5e2315=_0x1c4890;switch(_0x4913e0[_0x5e2315(0x1be)]){case _0x40c9a8[_0x5e2315(0x1bb)]:return{'type':_0x40c9a8[_0x5e2315(0x1bb)],'id':_0x4913e0['id']};case _0x40c9a8[_0x5e2315(0x1e4)]:return{'type':_0x40c9a8[_0x5e2315(0x1e4)],'id':_0x4913e0['id']};case _0x40c9a8[_0x5e2315(0x1cd)]:return{'type':_0x40c9a8[_0x5e2315(0x1cd)],'id':_0x4913e0['id'],..._0x4913e0[_0x5e2315(0x1e2)]?.[_0x5e2315(0x219)]&&{'selection':_0x4913e0[_0x5e2315(0x1e2)]}};case _0x40c9a8[_0x5e2315(0x1b8)]:return{'type':_0x40c9a8[_0x5e2315(0x1bb)],'id':_0x4913e0['id']};case _0x40c9a8[_0x5e2315(0x22b)]:{const _0x56e98f=_0x4913e0;return{'type':_0x40c9a8[_0x5e2315(0x22b)],'mcpServerName':_0x56e98f[_0x5e2315(0x20b)],'toolName':_0x56e98f[_0x5e2315(0x1f2)],'data':_0x56e98f[_0x5e2315(0x1d7)],'id':_0x56e98f['id']};}default:return null;}}[_0x1c4890(0x218)](_0x2f2323,_0x44fa22=!0x1){const _0xf7bd5=_0x1c4890;if(this[_0xf7bd5(0x23d)][_0xf7bd5(0x1d0)](_0x2f2323[_0xf7bd5(0x214)],_0x2f2323),_0x2f2323[_0xf7bd5(0x222)]||this[_0xf7bd5(0x23c)](_0xf7bd5(0x20a),{'contextItem':_0x2f2323,'isLoading':_0x44fa22}),_0xf7bd5(0x1b4)===_0x2f2323[_0xf7bd5(0x214)]&&this[_0xf7bd5(0x1fc)](),_0x2f2323[_0xf7bd5(0x1bf)]){const _0xa5417d=this[_0xf7bd5(0x1ca)](_0x2f2323[_0xf7bd5(0x1bf)]);_0xa5417d&&_0xa5417d[_0xf7bd5(0x227)](_0x1d83b6=>{const _0xfcb0c4=_0xf7bd5;this[_0xfcb0c4(0x1b1)](_0x1d83b6,_0x2f2323[_0xfcb0c4(0x1bf)],!0x0);});}}[_0x1c4890(0x225)](_0x36583e){const _0x475415=_0x1c4890,_0x5907a7=this[_0x475415(0x23d)][_0x475415(0x22c)](_0x36583e),_0x4503b1=this[_0x475415(0x1f6)][_0x475415(0x22c)](_0x36583e);if(_0x4503b1&&(_0x4503b1[_0x475415(0x224)](),this[_0x475415(0x1f6)][_0x475415(0x1fe)](_0x36583e)),_0x5907a7?.[_0x475415(0x1bf)]){const _0x3e3880=this[_0x475415(0x1ca)](_0x5907a7[_0x475415(0x1bf)]);_0x3e3880&&_0x3e3880[_0x475415(0x227)](_0x39c837=>{const _0x49242c=_0x475415;this[_0x49242c(0x1b1)](_0x39c837,_0x5907a7[_0x49242c(0x1bf)],!0x1);});}this[_0x475415(0x23d)][_0x475415(0x1fe)](_0x36583e),this[_0x475415(0x23c)](_0x475415(0x1de),{'uiId':_0x36583e,'type':_0x5907a7?.[_0x475415(0x1be)]}),_0x475415(0x1b4)===_0x36583e&&this[_0x475415(0x1fc)]();}[_0x1c4890(0x1c8)](_0x140a49,_0x37728e){const _0x20e58f=_0x1c4890;if(this[_0x20e58f(0x23d)][_0x20e58f(0x1e9)](_0x140a49[_0x20e58f(0x214)])&&(this[_0x20e58f(0x23d)][_0x20e58f(0x1d0)](_0x140a49[_0x20e58f(0x214)],_0x140a49),this[_0x20e58f(0x23c)](_0x20e58f(0x210),{'contextItem':_0x140a49,'isLoading':_0x37728e}),_0x140a49[_0x20e58f(0x1bf)])){const _0x47b4b8=this[_0x20e58f(0x1ca)](_0x140a49[_0x20e58f(0x1bf)]);_0x47b4b8&&_0x47b4b8[_0x20e58f(0x227)](_0x5177ae=>{const _0x85d91d=_0x20e58f;this[_0x85d91d(0x1b1)](_0x5177ae,_0x140a49[_0x85d91d(0x1bf)],!0x0);});}}[_0x1c4890(0x1f5)](_0xd78a8){const _0x47dbfe=_0x1c4890;this[_0x47dbfe(0x1b7)][_0x47dbfe(0x1d0)](_0xd78a8[_0x47dbfe(0x214)],_0xd78a8);}[_0x1c4890(0x1f3)](){const _0x4a3793=_0x1c4890;this[_0x4a3793(0x1d6)]={'document':{'enabled':!0x1!==this[_0x4a3793(0x1c0)]?.[_0x4a3793(0x215)]?.[_0x4a3793(0x23e)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x4a3793(0x1c0)]?.[_0x4a3793(0x238)]?.[_0x4a3793(0x23e)]},'files':{'enabled':!0x1!==this[_0x4a3793(0x1c0)]?.[_0x4a3793(0x1c9)]?.[_0x4a3793(0x23e)]},'sources':this[_0x4a3793(0x1da)](),'customItems':this[_0x4a3793(0x1c0)]?.[_0x4a3793(0x204)]?.[_0x4a3793(0x1b9)](_0x250687=>({..._0x250687,'enabled':!0x0}))??[]},this[_0x4a3793(0x23c)](_0x4a3793(0x1b5),{'options':this[_0x4a3793(0x1d6)]});}[_0x1c4890(0x1da)](){const _0x532ed0=_0x1c4890;return this[_0x532ed0(0x1c0)]?.[_0x532ed0(0x1ee)]?.[_0x532ed0(0x1b9)](_0x55a6d6=>({..._0x55a6d6,'resources':[]}))??[];}[_0x1c4890(0x1fc)](){const _0x9c25ea=_0x1c4890,_0x49539a=this[_0x9c25ea(0x22e)]()||this[_0x9c25ea(0x1fb)]();this[_0x9c25ea(0x1d6)][_0x9c25ea(0x215)][_0x9c25ea(0x1d4)]=_0x49539a,this[_0x9c25ea(0x23c)](_0x9c25ea(0x1b5),{'options':this[_0x9c25ea(0x1d6)]});}[_0x1c4890(0x1f7)](_0x36f388){const _0x2033c4=_0x1c4890;for(const _0x19caa2 of this[_0x2033c4(0x23d)][_0x2033c4(0x1b3)]())if(_0x19caa2[_0x2033c4(0x1bf)]===_0x36f388)return!0x0;for(const _0x2e0169 of this[_0x2033c4(0x1b7)][_0x2033c4(0x1b3)]())if(_0x2e0169[_0x2033c4(0x1bf)]===_0x36f388)return!0x0;return!0x1;}[_0x1c4890(0x1ca)](_0x2e9d0f){const _0x5e892a=_0x1c4890,_0x534b6f=[];for(const _0x4cd138 of this[_0x5e892a(0x1d6)][_0x5e892a(0x1ee)]){_0x4cd138[_0x5e892a(0x1ef)][_0x5e892a(0x20d)](_0x2772e8=>_0x2772e8['id']===_0x2e9d0f)&&_0x534b6f[_0x5e892a(0x233)](_0x4cd138['id']);}return 0x0===_0x534b6f[_0x5e892a(0x219)]?null:_0x534b6f;}[_0x1c4890(0x1b1)](_0x340a38,_0x18e9bd,_0x203a86){const _0x3ac282=_0x1c4890,_0x1b9d98=this[_0x3ac282(0x1d6)][_0x3ac282(0x1ee)][_0x3ac282(0x20d)](_0x3bbd63=>_0x3bbd63['id']===_0x340a38);if(!_0x1b9d98)return;const _0x530631=_0x1b9d98[_0x3ac282(0x1ef)][_0x3ac282(0x20d)](_0x37154d=>_0x37154d['id']===_0x18e9bd);_0x530631&&(_0x530631[_0x3ac282(0x1e7)]=_0x203a86,this[_0x3ac282(0x23c)](_0x3ac282(0x221),{'sourceId':_0x340a38,'resourceId':_0x18e9bd,'isInContext':_0x203a86}));}[_0x1c4890(0x22a)](_0x2adec5){const _0x2ed4e6=_0x1c4890;this[_0x2ed4e6(0x1d2)][_0x2ed4e6(0x1d0)](_0x2adec5,!0x0),this[_0x2ed4e6(0x1d2)][_0x2ed4e6(0x1d1)]&&this[_0x2ed4e6(0x23c)](_0x2ed4e6(0x21b),{'isUploadInProgress':!0x0});}[_0x1c4890(0x211)](_0x8a9d6d){const _0x13a4fe=_0x1c4890;this[_0x13a4fe(0x1d2)][_0x13a4fe(0x1fe)](_0x8a9d6d),0x0===this[_0x13a4fe(0x1d2)][_0x13a4fe(0x1d1)]&&this[_0x13a4fe(0x23c)](_0x13a4fe(0x21b),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x98a7e6=_0x47ce;(function(_0xcca3b6,_0x23dece){const _0x5ac9f7=_0x47ce,_0x239280=_0xcca3b6();while(!![]){try{const _0x32fcfa=parseInt(_0x5ac9f7(0x1ea))/0x1+parseInt(_0x5ac9f7(0x236))/0x2*(parseInt(_0x5ac9f7(0x207))/0x3)+-parseInt(_0x5ac9f7(0x200))/0x4+parseInt(_0x5ac9f7(0x1e2))/0x5+parseInt(_0x5ac9f7(0x1f7))/0x6*(parseInt(_0x5ac9f7(0x24c))/0x7)+-parseInt(_0x5ac9f7(0x24d))/0x8*(parseInt(_0x5ac9f7(0x20e))/0x9)+-parseInt(_0x5ac9f7(0x213))/0xa;if(_0x32fcfa===_0x23dece)break;else _0x239280['push'](_0x239280['shift']());}catch(_0x5bcb91){_0x239280['push'](_0x239280['shift']());}}}(_0x44ad,0xc19fd));function _0x44ad(){const _0x421a03=['resources','uploadDocument','filter','_convertTextResourceToFile','6305396Wbvlsq','delete','TEXT','TOOL','content','enabled','uploadFile','15TsYoDa','getSentContextItems','hidden','_startUploadOperation','updateCurrentDocument','File','get','4356477eqwSea','_updateResourceInContextState','url-','isInContext','_pendingContextItems','6922890UaCiDr','object\x20with\x20content\x20and\x20type\x20properties','uploadUrl','getDocument','isHidden','ai-chat-file-upload-failed','removeFromContext','loadSourceResources','clearPendingContextItems','addResourceToContext','getId','fire','DOCUMENT','code','label','start','addContextOptionsChanged','ai-chat-context-unsupported-type','ai-chat-resource-no-data','_ongoingUploadOperations','sources','has','end','type','abortController','addToolItemToContext','files','FILE','text/html','customItems','getResources','_toggleAddCurrentDocumentOptionVisibility','ai-chat-context-invalid-data','isCurrentDocumentInConversation','addSelectionToContext','491118aqzNwh','_config','_finishContextItemLoading','getPendingContextItems','URL','push','_addContextOptionsState','_mapContextItemToRequestData','_addContextItem','_findSourceIdsByResourceId','from','SELECTION','set','length','contextItemAdded','fetchDocument','isReadOnly','_removeContextItem','_conversationContextItems','mcpServerName','url','file-','387422vfImeU','8kjexSK','sessionId','mapContextItemsToRequestData','ai-chat-source-not-found','ai-chat-resource-load-failed','_finishUploadOperation','message','addUrlToContext','document','_createContextItemFromContent','attributes','ai-chat-source-resources-load-failed','populateFromMessage','_connector','selection','urls','error','current-document','substring','_getCustomSourcesInitialState','isCurrentDocumentInContext','ai-chat-url-upload-failed','startsWith','getData','init','removeSelectionFromContext','resourceStateChanged','size','all','contextItemRemoved','uploadProgressChanged','data','HTML','name','map','contextSent','resourceId','isSelectionInContext','uiId','addToConversationContext','find','ai-request-aborted','4524640KESHJL','ai-chat-document-upload-failed','Current\x20document','_ongoingUploads','_addToConversationContextItem','text/markdown','_isResourceInContext','contextItemLoadingEnded','1247015uAtjvu','sourceResourcesLoaded','string','version','addFilesToContext','toolName','addCurrentDocumentToContext','MARKDOWN','abort','_ownerId','forEach','stack','values','18FTkTFz','object','_setAddContextOptionsDefaultState','files-','text/plain'];_0x44ad=function(){return _0x421a03;};return _0x44ad();}function _0x47ce(_0x9b8a22,_0x7659f4){const _0x44ad21=_0x44ad();return _0x47ce=function(_0x47ce98,_0x2e581a){_0x47ce98=_0x47ce98-0x1d5;let _0x246341=_0x44ad21[_0x47ce98];return _0x246341;},_0x47ce(_0x9b8a22,_0x7659f4);}import{CKEditorError as _0x4b4a76,ObservableMixin as _0x525dd7,uid as _0x4b4c79}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x291d8,AIContextTextResourceType as _0x58ae0b}from'../../aicore/model/aicontext.js';import{escape as _0xde4ef6}from'es-toolkit/compat';import{errorsMap as _0x1c0155}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x98a7e6(0x244),_0x98a7e6(0x1d5),_0x98a7e6(0x1e9),_0x98a7e6(0x1db),_0x98a7e6(0x25d),_0x98a7e6(0x223),_0x98a7e6(0x1eb),_0x98a7e6(0x267),_0x98a7e6(0x1d6)];export class AIChatContext extends _0x525dd7(){[_0x98a7e6(0x25a)];[_0x98a7e6(0x237)];[_0x98a7e6(0x1f3)];constructor({connector:_0x449bd0,config:_0x5a8a60,ownerId:_0x430230}){const _0x5cd7ad=_0x98a7e6;super(),this[_0x5cd7ad(0x25a)]=_0x449bd0,this[_0x5cd7ad(0x237)]=_0x5a8a60,this[_0x5cd7ad(0x1f3)]=_0x430230;}[_0x98a7e6(0x265)](){const _0x5a27c4=_0x98a7e6;this[_0x5a27c4(0x212)]=new Map(),this[_0x5a27c4(0x248)]=new Map(),this[_0x5a27c4(0x1e5)]=new Map(),this[_0x5a27c4(0x226)]=new Map(),this[_0x5a27c4(0x1f9)]();}[_0x98a7e6(0x239)](){const _0x516c67=_0x98a7e6;return this[_0x516c67(0x212)];}async[_0x98a7e6(0x259)](_0x241fc7){const _0x18c9b4=_0x98a7e6,_0x4c8b87=await this[_0x18c9b4(0x256)](_0x241fc7);return this[_0x18c9b4(0x1e6)](_0x4c8b87),_0x18c9b4(0x25e)===_0x4c8b87[_0x18c9b4(0x1de)]&&this[_0x18c9b4(0x232)](),_0x4c8b87;}async[_0x98a7e6(0x256)](_0x106672){const _0x12b99b=_0x98a7e6;if(_0x106672[_0x12b99b(0x22a)]===_0x291d8[_0x12b99b(0x21f)]){const _0x2b8c61=await this[_0x12b99b(0x25a)][_0x12b99b(0x245)](this[_0x12b99b(0x1f3)],_0x106672['id'])[_0x12b99b(0x216)]();return{'id':_0x12b99b(0x25e),'uiId':_0x12b99b(0x25e),'label':_0x12b99b(0x1e4),'type':_0x106672[_0x12b99b(0x22a)],'content':_0x2b8c61[_0x12b99b(0x204)],'hidden':this[_0x12b99b(0x248)][_0x12b99b(0x228)](_0x12b99b(0x25e)),'version':_0x2b8c61[_0x12b99b(0x257)]?.[_0x12b99b(0x1ed)],'sessionId':_0x2b8c61[_0x12b99b(0x257)]?.[_0x12b99b(0x24e)]};}if(_0x106672[_0x12b99b(0x22a)]===_0x291d8[_0x12b99b(0x203)])return{'id':_0x106672['id'],'uiId':_0x106672['id'],'label':_0x106672[_0x12b99b(0x1d7)]?.[_0x12b99b(0x221)]||_0x106672['id'],'type':_0x291d8[_0x12b99b(0x203)],'mcpServerName':_0x106672[_0x12b99b(0x249)],'toolName':_0x106672[_0x12b99b(0x1ef)],'data':_0x106672[_0x12b99b(0x1d7)]||{}};return{'id':_0x106672['id'],'uiId':_0x106672['id'],'label':_0x106672[_0x12b99b(0x257)]?.[_0x12b99b(0x221)]||_0x106672[_0x12b99b(0x1d9)]||_0x106672[_0x12b99b(0x24a)]||_0x106672['id'],'type':_0x106672[_0x12b99b(0x22a)],..._0x106672?.[_0x12b99b(0x257)]?.[_0x12b99b(0x1dc)]?{'resourceId':_0x106672[_0x12b99b(0x257)]?.[_0x12b99b(0x1dc)]}:{}};}[_0x98a7e6(0x208)](){const _0x21b3c0=_0x98a7e6;return new Map(this[_0x21b3c0(0x248)]);}[_0x98a7e6(0x219)](_0x22c605){const _0xc6c1ce=_0x98a7e6,_0x37c335=this[_0xc6c1ce(0x212)][_0xc6c1ce(0x20d)](_0x22c605);_0x37c335?.[_0xc6c1ce(0x246)]||this[_0xc6c1ce(0x247)](_0x22c605);}[_0x98a7e6(0x21b)](){const _0x2722ed=_0x98a7e6;if(0x0===this[_0x2722ed(0x212)][_0x2722ed(0x268)])return;for(const _0x3da9e2 of this[_0x2722ed(0x212)][_0x2722ed(0x1f6)]())this[_0x2722ed(0x247)](_0x3da9e2[_0x2722ed(0x1de)]);const _0x4a3202=this[_0x2722ed(0x248)][_0x2722ed(0x20d)](_0x2722ed(0x25e))||this[_0x2722ed(0x212)][_0x2722ed(0x20d)](_0x2722ed(0x25e));_0x4a3202&&this[_0x2722ed(0x23e)]({..._0x4a3202,'isReadOnly':!0x0,'hidden':!0x0});}[_0x98a7e6(0x1df)](_0x45f007){const _0x565273=_0x98a7e6;for(const _0xe992a7 of _0x45f007[_0x565273(0x1f6)]())this[_0x565273(0x1e6)](_0xe992a7);this[_0x565273(0x21b)](),this[_0x565273(0x21e)](_0x565273(0x1db),{'contextItems':Array[_0x565273(0x240)](this[_0x565273(0x208)]()[_0x565273(0x1f6)]())});}[_0x98a7e6(0x261)](){const _0x2a3f83=_0x98a7e6;return this[_0x2a3f83(0x212)][_0x2a3f83(0x228)](_0x2a3f83(0x25e));}[_0x98a7e6(0x1dd)](){const _0x9f5b93=_0x98a7e6;return this[_0x9f5b93(0x212)][_0x9f5b93(0x228)](_0x9f5b93(0x25b));}[_0x98a7e6(0x234)](){const _0x8eb323=_0x98a7e6;return this[_0x8eb323(0x248)][_0x8eb323(0x228)](_0x8eb323(0x25e));}static[_0x98a7e6(0x24f)](_0x239ca3){const _0x22adc6=_0x98a7e6;return Array[_0x22adc6(0x240)](_0x239ca3[_0x22adc6(0x1f6)]())[_0x22adc6(0x1da)](_0x478949=>this[_0x22adc6(0x23d)](_0x478949))[_0x22adc6(0x1fe)](_0x1d0dd2=>null!==_0x1d0dd2);}async[_0x98a7e6(0x1ee)](_0x7c1115,_0x57dff9,_0x332094=_0x291d8[_0x98a7e6(0x22e)]){const _0x1b1621=_0x98a7e6,_0x8479c2=_0x1b1621(0x1fa)+_0x4b4c79();this[_0x1b1621(0x20a)](_0x8479c2);try{await Promise[_0x1b1621(0x269)](_0x7c1115[_0x1b1621(0x1da)](async _0x41f251=>{const _0x2b6ddc=_0x1b1621,_0x403c27=_0x2b6ddc(0x24b)+_0x4b4c79(),_0x3d7643=_0xde4ef6(_0x41f251[_0x2b6ddc(0x1d9)]);try{this[_0x2b6ddc(0x23e)]({'type':_0x332094,'label':_0x57dff9?.[_0x2b6ddc(0x221)]||_0x3d7643,'uiId':_0x403c27,'resourceId':_0x57dff9?.[_0x2b6ddc(0x1dc)]},!0x0);const _0x1ef4ae=this[_0x2b6ddc(0x25a)][_0x2b6ddc(0x206)](this[_0x2b6ddc(0x1f3)],_0x41f251,_0x57dff9);this[_0x2b6ddc(0x1e5)][_0x2b6ddc(0x242)](_0x403c27,_0x1ef4ae[_0x2b6ddc(0x22b)]);const {id:_0xc7605d}=await _0x1ef4ae[_0x2b6ddc(0x21d)]();this[_0x2b6ddc(0x1e5)][_0x2b6ddc(0x201)](_0x403c27),this[_0x2b6ddc(0x238)]({'type':_0x332094,'id':_0xc7605d,'label':_0x57dff9?.[_0x2b6ddc(0x221)]||_0x3d7643,'uiId':_0x403c27,'resourceId':_0x57dff9?.[_0x2b6ddc(0x1dc)]},!0x1);}catch(_0x4aa655){this[_0x2b6ddc(0x1e5)][_0x2b6ddc(0x201)](_0x403c27);if(!(_0x4aa655 instanceof _0x4b4a76&&_0x4aa655[_0x2b6ddc(0x253)][_0x2b6ddc(0x263)](_0x2b6ddc(0x1e1)))){const _0x40435d=_0x1c0155[_0x2b6ddc(0x20d)](_0x4aa655[_0x2b6ddc(0x220)])||_0x2b6ddc(0x218),_0x386d36=new _0x4b4a76(_0x40435d,null,{'fileName':_0x3d7643,..._0x4aa655});_0x386d36[_0x2b6ddc(0x1f5)]=_0x4aa655[_0x2b6ddc(0x1f5)],this[_0x2b6ddc(0x21e)](_0x2b6ddc(0x25d),{'error':_0x386d36});}this[_0x2b6ddc(0x247)](_0x403c27);}}));}finally{this[_0x1b1621(0x252)](_0x8479c2);}}[_0x98a7e6(0x1f0)](_0x3db2){const _0x306454=_0x98a7e6;if(this[_0x306454(0x261)]()||!this[_0x306454(0x23c)][_0x306454(0x255)][_0x306454(0x205)])return;const _0x38a71b={'type':_0x291d8[_0x306454(0x21f)],'uiId':_0x306454(0x25e),'label':_0x3db2,'isReadOnly':this[_0x306454(0x248)][_0x306454(0x228)](_0x306454(0x25e)),'hidden':this[_0x306454(0x248)][_0x306454(0x228)](_0x306454(0x25e))};this[_0x306454(0x23e)](_0x38a71b);}async[_0x98a7e6(0x20b)](_0x4e1315,_0x1446a2,_0xc6221c,_0x2addaa){const _0x3dd4f9=_0x98a7e6,_0x2c0624=this[_0x3dd4f9(0x212)][_0x3dd4f9(0x20d)](_0x3dd4f9(0x25e));if(_0x2c0624&&_0x4e1315){_0x2c0624[_0x3dd4f9(0x25b)]=_0x2addaa?_0x2addaa[_0x3dd4f9(0x1da)](_0x178b8c=>({'start':_0x178b8c[_0x3dd4f9(0x222)],'end':_0x178b8c[_0x3dd4f9(0x229)]})):[];try{if(_0x2c0624[_0x3dd4f9(0x1ed)]===_0x1446a2)return;const {id:_0x318aa6}=await this[_0x3dd4f9(0x25a)][_0x3dd4f9(0x1fd)](this[_0x3dd4f9(0x1f3)],_0x4e1315,{'version':_0x1446a2,'sessionId':_0xc6221c})[_0x3dd4f9(0x21d)]();_0x2c0624['id']=_0x318aa6,_0x2c0624[_0x3dd4f9(0x204)]=_0x4e1315,_0x2c0624[_0x3dd4f9(0x1ed)]=_0x1446a2,_0x2c0624[_0x3dd4f9(0x24e)]=_0xc6221c;}catch(_0x1c9216){const _0xf5c0d6=new _0x4b4a76(_0x3dd4f9(0x1e3),null);_0xf5c0d6[_0x3dd4f9(0x1f5)]=_0x1c9216[_0x3dd4f9(0x1f5)],this[_0x3dd4f9(0x21e)](_0x3dd4f9(0x25d),{'error':_0xf5c0d6});}}}[_0x98a7e6(0x235)](_0x51b6aa){const _0x120e1f=_0x98a7e6;this[_0x120e1f(0x23e)]({'type':_0x291d8[_0x120e1f(0x241)],'label':_0x51b6aa,'uiId':_0x120e1f(0x25b),'content':_0x51b6aa});}[_0x98a7e6(0x266)](){const _0x58021c=_0x98a7e6;this[_0x58021c(0x247)](_0x58021c(0x25b));}async[_0x98a7e6(0x254)](_0x5e51b8,_0x2186ee){const _0x22c66c=_0x98a7e6,_0x30807b=_0x22c66c(0x210)+_0x4b4c79();this[_0x22c66c(0x20a)](_0x30807b);const _0x38703a=_0x22c66c(0x210)+_0x4b4c79();try{this[_0x22c66c(0x23e)]({'type':_0x291d8[_0x22c66c(0x23a)],'label':_0x2186ee?.[_0x22c66c(0x221)]||_0x5e51b8,'uiId':_0x38703a,'resourceId':_0x2186ee?.[_0x22c66c(0x1dc)]},!0x0);const _0x1dddeb=this[_0x22c66c(0x25a)][_0x22c66c(0x215)](this[_0x22c66c(0x1f3)],_0x5e51b8,_0x2186ee);this[_0x22c66c(0x1e5)][_0x22c66c(0x242)](_0x38703a,_0x1dddeb[_0x22c66c(0x22b)]);const {id:_0x57c60e}=await _0x1dddeb[_0x22c66c(0x21d)]();this[_0x22c66c(0x1e5)][_0x22c66c(0x201)](_0x38703a),this[_0x22c66c(0x238)]({'type':_0x291d8[_0x22c66c(0x23a)],'id':_0x57c60e,'label':_0x2186ee?.[_0x22c66c(0x221)]||_0x5e51b8,'uiId':_0x38703a,'resourceId':_0x2186ee?.[_0x22c66c(0x1dc)]},!0x1);}catch(_0xd6b579){this[_0x22c66c(0x1e5)][_0x22c66c(0x201)](_0x38703a),(_0xd6b579[_0x22c66c(0x253)][_0x22c66c(0x263)](_0x22c66c(0x1e1))||this[_0x22c66c(0x21e)](_0x22c66c(0x25d),{'error':new _0x4b4a76(_0x22c66c(0x262),this,{'url':_0x5e51b8,'originalError':_0xd6b579}),'url':_0x5e51b8}),this[_0x22c66c(0x247)](_0x38703a));}finally{this[_0x22c66c(0x252)](_0x30807b);}}[_0x98a7e6(0x22c)](_0x155783){const _0x170fb0=_0x98a7e6;_0x155783['id']=_0x155783['id']??_0x4b4c79()[_0x170fb0(0x25f)](0x0,0x15),this[_0x170fb0(0x212)][_0x170fb0(0x242)](_0x155783[_0x170fb0(0x1de)],_0x155783),this[_0x170fb0(0x21e)](_0x170fb0(0x244),{'contextItem':_0x155783,'isLoading':!0x1});}async[_0x98a7e6(0x21a)](_0x419d54,_0x5ee689,_0x40526d){const _0x5e4a12=_0x98a7e6,_0x10a914=this[_0x5e4a12(0x23c)][_0x5e4a12(0x227)][_0x5e4a12(0x1e0)](_0x3f6b50=>_0x3f6b50['id']===_0x419d54);if(!_0x10a914)return this[_0x5e4a12(0x21e)](_0x5e4a12(0x25d),{'error':new _0x4b4a76(_0x5e4a12(0x250),this,{'sourceId':_0x419d54}),'sourceId':_0x419d54}),[];try{const _0x1f9556=(await _0x10a914[_0x5e4a12(0x231)](_0x5ee689))[_0x5e4a12(0x1da)](_0x34c7b=>{const _0x3ede59=_0x5e4a12,_0xf83785=this[_0x3ede59(0x1e8)](_0x34c7b['id']);return{..._0x34c7b,'isInContext':_0xf83785};});return _0x10a914[_0x5e4a12(0x1fc)]=_0x1f9556,this[_0x5e4a12(0x21e)](_0x5e4a12(0x1eb),{'sourceId':_0x419d54,'source':_0x10a914,'resources':_0x1f9556,'uid':_0x40526d}),_0x1f9556;}catch(_0x550679){return this[_0x5e4a12(0x21e)](_0x5e4a12(0x25d),{'error':new _0x4b4a76(_0x5e4a12(0x258),this,{'sourceId':_0x419d54,'originalError':_0x550679}),'sourceId':_0x419d54,'sourceLabel':_0x10a914[_0x5e4a12(0x221)]}),[];}}async[_0x98a7e6(0x21c)](_0x31eabd,_0x2130d9){const _0x40d84e=_0x98a7e6;if(this[_0x40d84e(0x1e8)](_0x2130d9['id']))return;let _0x34e88e=_0x2130d9[_0x40d84e(0x1d7)];if(!_0x34e88e&&_0x31eabd[_0x40d84e(0x264)])try{_0x34e88e=await _0x31eabd[_0x40d84e(0x264)](_0x2130d9['id']);}catch(_0x9018a1){return void this[_0x40d84e(0x21e)](_0x40d84e(0x25d),{'error':new _0x4b4a76(_0x40d84e(0x251),this,{'resourceId':_0x2130d9['id'],'sourceId':_0x31eabd['id'],'originalError':_0x9018a1}),'resourceId':_0x2130d9['id'],'sourceId':_0x31eabd['id']});}if(_0x34e88e)switch(_0x2130d9[_0x40d84e(0x22a)]){case _0x291d8[_0x40d84e(0x23a)]:if(_0x40d84e(0x1ec)!=typeof _0x34e88e)return void this[_0x40d84e(0x21e)](_0x40d84e(0x25d),{'error':new _0x4b4a76(_0x40d84e(0x233),this,{'resourceId':_0x2130d9['id'],'sourceId':_0x31eabd['id'],'expectedType':_0x40d84e(0x1ec),'actualType':typeof _0x34e88e}),'resourceId':_0x2130d9['id'],'sourceId':_0x31eabd['id']});await this[_0x40d84e(0x254)](_0x34e88e,{'label':_0x2130d9[_0x40d84e(0x221)],'resourceId':_0x2130d9['id']});break;case _0x291d8[_0x40d84e(0x22e)]:if(!(_0x34e88e instanceof File))return void this[_0x40d84e(0x21e)](_0x40d84e(0x25d),{'error':new _0x4b4a76(_0x40d84e(0x233),this,{'resourceId':_0x2130d9['id'],'sourceId':_0x31eabd['id'],'expectedType':_0x40d84e(0x20c),'actualType':typeof _0x34e88e}),'resourceId':_0x2130d9['id'],'sourceId':_0x31eabd['id']});await this[_0x40d84e(0x1ee)]([_0x34e88e],{'label':_0x2130d9[_0x40d84e(0x221)],'resourceId':_0x2130d9['id']});break;case _0x291d8[_0x40d84e(0x202)]:if(_0x40d84e(0x1f8)!=typeof _0x34e88e||!(_0x40d84e(0x204)in _0x34e88e)||!(_0x40d84e(0x22a)in _0x34e88e))return void this[_0x40d84e(0x21e)](_0x40d84e(0x25d),{'error':new _0x4b4a76(_0x40d84e(0x233),this,{'resourceId':_0x2130d9['id'],'sourceId':_0x31eabd['id'],'expectedType':_0x40d84e(0x214),'actualType':typeof _0x34e88e}),'resourceId':_0x2130d9['id'],'sourceId':_0x31eabd['id']});_0x34e88e=AIChatContext[_0x40d84e(0x1ff)](_0x34e88e,_0x2130d9[_0x40d84e(0x221)]),await this[_0x40d84e(0x1ee)]([_0x34e88e],{'label':_0x2130d9[_0x40d84e(0x221)],'resourceId':_0x2130d9['id']},_0x291d8[_0x40d84e(0x202)]);break;case _0x291d8[_0x40d84e(0x203)]:break;default:this[_0x40d84e(0x21e)](_0x40d84e(0x25d),{'error':new _0x4b4a76(_0x40d84e(0x224),this,{'resourceId':_0x2130d9['id'],'sourceId':_0x31eabd['id'],'resourceType':_0x2130d9[_0x40d84e(0x22a)]}),'resourceId':_0x2130d9['id'],'sourceId':_0x31eabd['id']});}else this[_0x40d84e(0x21e)](_0x40d84e(0x25d),{'error':new _0x4b4a76(_0x40d84e(0x225),this,{'resourceId':_0x2130d9['id'],'sourceId':_0x31eabd['id']}),'resourceId':_0x2130d9['id'],'sourceId':_0x31eabd['id']});}static[_0x98a7e6(0x1ff)](_0x3536b5,_0x2c7277){const _0x2a46cc=_0x98a7e6;switch(_0x3536b5[_0x2a46cc(0x22a)]){case _0x58ae0b[_0x2a46cc(0x1f1)]:return new File([_0x3536b5[_0x2a46cc(0x204)]],_0x2c7277,{'type':_0x2a46cc(0x1e7)});case _0x58ae0b[_0x2a46cc(0x1d8)]:return new File([_0x3536b5[_0x2a46cc(0x204)]],_0x2c7277,{'type':_0x2a46cc(0x22f)});default:return new File([_0x3536b5[_0x2a46cc(0x204)]],_0x2c7277,{'type':_0x2a46cc(0x1fb)});}}static[_0x98a7e6(0x23d)](_0x2a3aa9){const _0x327bdc=_0x98a7e6;switch(_0x2a3aa9[_0x327bdc(0x22a)]){case _0x291d8[_0x327bdc(0x22e)]:return{'type':_0x291d8[_0x327bdc(0x22e)],'id':_0x2a3aa9['id']};case _0x291d8[_0x327bdc(0x23a)]:return{'type':_0x291d8[_0x327bdc(0x23a)],'id':_0x2a3aa9['id']};case _0x291d8[_0x327bdc(0x21f)]:return{'type':_0x291d8[_0x327bdc(0x21f)],'id':_0x2a3aa9['id'],..._0x2a3aa9[_0x327bdc(0x25b)]?.[_0x327bdc(0x243)]&&{'selection':_0x2a3aa9[_0x327bdc(0x25b)]}};case _0x291d8[_0x327bdc(0x202)]:return{'type':_0x291d8[_0x327bdc(0x22e)],'id':_0x2a3aa9['id']};case _0x291d8[_0x327bdc(0x203)]:{const _0x14968d=_0x2a3aa9;return{'type':_0x291d8[_0x327bdc(0x203)],'mcpServerName':_0x14968d[_0x327bdc(0x249)],'toolName':_0x14968d[_0x327bdc(0x1ef)],'data':_0x14968d[_0x327bdc(0x1d7)],'id':_0x14968d['id']};}default:return null;}}[_0x98a7e6(0x23e)](_0x5ae229,_0x3bb4df=!0x1){const _0x3de6c5=_0x98a7e6;if(this[_0x3de6c5(0x212)][_0x3de6c5(0x242)](_0x5ae229[_0x3de6c5(0x1de)],_0x5ae229),_0x5ae229[_0x3de6c5(0x209)]||this[_0x3de6c5(0x21e)](_0x3de6c5(0x244),{'contextItem':_0x5ae229,'isLoading':_0x3bb4df}),_0x3de6c5(0x25e)===_0x5ae229[_0x3de6c5(0x1de)]&&this[_0x3de6c5(0x232)](),_0x5ae229[_0x3de6c5(0x1dc)]){const _0x43017a=this[_0x3de6c5(0x23f)](_0x5ae229[_0x3de6c5(0x1dc)]);_0x43017a&&_0x43017a[_0x3de6c5(0x1f4)](_0x41cd18=>{const _0x3ab4a4=_0x3de6c5;this[_0x3ab4a4(0x20f)](_0x41cd18,_0x5ae229[_0x3ab4a4(0x1dc)],!0x0);});}}[_0x98a7e6(0x247)](_0x3f5d4f){const _0x335883=_0x98a7e6,_0x96d935=this[_0x335883(0x212)][_0x335883(0x20d)](_0x3f5d4f),_0x32e1e5=this[_0x335883(0x1e5)][_0x335883(0x20d)](_0x3f5d4f);if(_0x32e1e5&&(_0x32e1e5[_0x335883(0x1f2)](),this[_0x335883(0x1e5)][_0x335883(0x201)](_0x3f5d4f)),_0x96d935?.[_0x335883(0x1dc)]){const _0x4b72ba=this[_0x335883(0x23f)](_0x96d935[_0x335883(0x1dc)]);_0x4b72ba&&_0x4b72ba[_0x335883(0x1f4)](_0x7763b5=>{const _0x535c9f=_0x335883;this[_0x535c9f(0x20f)](_0x7763b5,_0x96d935[_0x535c9f(0x1dc)],!0x1);});}this[_0x335883(0x212)][_0x335883(0x201)](_0x3f5d4f),this[_0x335883(0x21e)](_0x335883(0x1d5),{'uiId':_0x3f5d4f,'type':_0x96d935?.[_0x335883(0x22a)]}),_0x335883(0x25e)===_0x3f5d4f&&this[_0x335883(0x232)]();}[_0x98a7e6(0x238)](_0x352633,_0x27dcf3){const _0xe3f3a1=_0x98a7e6;if(this[_0xe3f3a1(0x212)][_0xe3f3a1(0x228)](_0x352633[_0xe3f3a1(0x1de)])&&(this[_0xe3f3a1(0x212)][_0xe3f3a1(0x242)](_0x352633[_0xe3f3a1(0x1de)],_0x352633),this[_0xe3f3a1(0x21e)](_0xe3f3a1(0x1e9),{'contextItem':_0x352633,'isLoading':_0x27dcf3}),_0x352633[_0xe3f3a1(0x1dc)])){const _0x2a8acc=this[_0xe3f3a1(0x23f)](_0x352633[_0xe3f3a1(0x1dc)]);_0x2a8acc&&_0x2a8acc[_0xe3f3a1(0x1f4)](_0x23de24=>{const _0x5818ed=_0xe3f3a1;this[_0x5818ed(0x20f)](_0x23de24,_0x352633[_0x5818ed(0x1dc)],!0x0);});}}[_0x98a7e6(0x1e6)](_0x2b5169){const _0x2410f8=_0x98a7e6;this[_0x2410f8(0x248)][_0x2410f8(0x242)](_0x2b5169[_0x2410f8(0x1de)],_0x2b5169);}[_0x98a7e6(0x1f9)](){const _0x2381d9=_0x98a7e6;this[_0x2381d9(0x23c)]={'document':{'enabled':!0x1!==this[_0x2381d9(0x237)]?.[_0x2381d9(0x255)]?.[_0x2381d9(0x205)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x2381d9(0x237)]?.[_0x2381d9(0x25c)]?.[_0x2381d9(0x205)]},'files':{'enabled':!0x1!==this[_0x2381d9(0x237)]?.[_0x2381d9(0x22d)]?.[_0x2381d9(0x205)]},'sources':this[_0x2381d9(0x260)](),'customItems':this[_0x2381d9(0x237)]?.[_0x2381d9(0x230)]?.[_0x2381d9(0x1da)](_0x1456b7=>({..._0x1456b7,'enabled':!0x0}))??[]},this[_0x2381d9(0x21e)](_0x2381d9(0x223),{'options':this[_0x2381d9(0x23c)]});}[_0x98a7e6(0x260)](){const _0x39761d=_0x98a7e6;return this[_0x39761d(0x237)]?.[_0x39761d(0x227)]?.[_0x39761d(0x1da)](_0x441a4f=>({..._0x441a4f,'resources':[]}))??[];}[_0x98a7e6(0x232)](){const _0x2ae627=_0x98a7e6,_0x27074c=this[_0x2ae627(0x261)]()||this[_0x2ae627(0x234)]();this[_0x2ae627(0x23c)][_0x2ae627(0x255)][_0x2ae627(0x217)]=_0x27074c,this[_0x2ae627(0x21e)](_0x2ae627(0x223),{'options':this[_0x2ae627(0x23c)]});}[_0x98a7e6(0x1e8)](_0x5d66e1){const _0x536891=_0x98a7e6;for(const _0x24e6d3 of this[_0x536891(0x212)][_0x536891(0x1f6)]())if(_0x24e6d3[_0x536891(0x1dc)]===_0x5d66e1)return!0x0;for(const _0x3d8624 of this[_0x536891(0x248)][_0x536891(0x1f6)]())if(_0x3d8624[_0x536891(0x1dc)]===_0x5d66e1)return!0x0;return!0x1;}[_0x98a7e6(0x23f)](_0x110c1b){const _0x14ef66=_0x98a7e6,_0x40ab71=[];for(const _0x11f38f of this[_0x14ef66(0x23c)][_0x14ef66(0x227)]){_0x11f38f[_0x14ef66(0x1fc)][_0x14ef66(0x1e0)](_0x2c5c2a=>_0x2c5c2a['id']===_0x110c1b)&&_0x40ab71[_0x14ef66(0x23b)](_0x11f38f['id']);}return 0x0===_0x40ab71[_0x14ef66(0x243)]?null:_0x40ab71;}[_0x98a7e6(0x20f)](_0x25bbb0,_0x327461,_0x58c460){const _0x5ca879=_0x98a7e6,_0x8e02e3=this[_0x5ca879(0x23c)][_0x5ca879(0x227)][_0x5ca879(0x1e0)](_0x15537f=>_0x15537f['id']===_0x25bbb0);if(!_0x8e02e3)return;const _0x32cb1a=_0x8e02e3[_0x5ca879(0x1fc)][_0x5ca879(0x1e0)](_0x5e37f7=>_0x5e37f7['id']===_0x327461);_0x32cb1a&&(_0x32cb1a[_0x5ca879(0x211)]=_0x58c460,this[_0x5ca879(0x21e)](_0x5ca879(0x267),{'sourceId':_0x25bbb0,'resourceId':_0x327461,'isInContext':_0x58c460}));}[_0x98a7e6(0x20a)](_0x2305a6){const _0x26dcca=_0x98a7e6;this[_0x26dcca(0x226)][_0x26dcca(0x242)](_0x2305a6,!0x0),this[_0x26dcca(0x226)][_0x26dcca(0x268)]&&this[_0x26dcca(0x21e)](_0x26dcca(0x1d6),{'isUploadInProgress':!0x0});}[_0x98a7e6(0x252)](_0x59840b){const _0x485fbb=_0x98a7e6;this[_0x485fbb(0x226)][_0x485fbb(0x201)](_0x59840b),0x0===this[_0x485fbb(0x226)][_0x485fbb(0x268)]&&this[_0x485fbb(0x21e)](_0x485fbb(0x1d6),{'isUploadInProgress':!0x1});}}
|
|
@@ -41,6 +41,10 @@ export declare class AIChatConversation extends /* #__PURE__ */ AIChatConversati
|
|
|
41
41
|
* This is set to `true` when {@link #start} is called and the conversation is successfully started.
|
|
42
42
|
*/
|
|
43
43
|
isStarted: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Indicates whether the conversation is from history.
|
|
46
|
+
*/
|
|
47
|
+
isFromHistory: boolean;
|
|
44
48
|
/**
|
|
45
49
|
* The interactions in the conversation.
|
|
46
50
|
*/
|
|
@@ -164,10 +168,18 @@ export declare class AIChatConversation extends /* #__PURE__ */ AIChatConversati
|
|
|
164
168
|
* Removes an item from the conversation context by its ID.
|
|
165
169
|
*/
|
|
166
170
|
removeFromContext(id: string): void;
|
|
171
|
+
/**
|
|
172
|
+
* Sets the web search search functionality state.
|
|
173
|
+
*/
|
|
174
|
+
setWebSearch(isWebSearchEnabled: boolean): void;
|
|
167
175
|
/**
|
|
168
176
|
* Toggles the web search functionality on or off.
|
|
169
177
|
*/
|
|
170
178
|
toggleWebSearch(): void;
|
|
179
|
+
/**
|
|
180
|
+
* Sets the reasoning functionality state.
|
|
181
|
+
*/
|
|
182
|
+
setReasoning(isReasoningEnabled: boolean): void;
|
|
171
183
|
/**
|
|
172
184
|
* Toggles the reasoning functionality on or off.
|
|
173
185
|
*/
|
|
@@ -267,5 +279,6 @@ export type AIChatConversationOptions = {
|
|
|
267
279
|
conversationId: string;
|
|
268
280
|
group: string;
|
|
269
281
|
selectedModelId?: string;
|
|
282
|
+
isFromHistory: boolean;
|
|
270
283
|
};
|
|
271
284
|
export {};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x293c8c=_0x3cb9;(function(_0x5245e5,_0x9eb990){const _0x5827d0=_0x3cb9,_0x526d1d=_0x5245e5();while(!![]){try{const _0x4bcae8=-parseInt(_0x5827d0(0x198))/0x1*(-parseInt(_0x5827d0(0x15f))/0x2)+-parseInt(_0x5827d0(0x186))/0x3+-parseInt(_0x5827d0(0x19a))/0x4+-parseInt(_0x5827d0(0x19f))/0x5+parseInt(_0x5827d0(0x157))/0x6+-parseInt(_0x5827d0(0x1b4))/0x7+parseInt(_0x5827d0(0x18f))/0x8;if(_0x4bcae8===_0x9eb990)break;else _0x526d1d['push'](_0x526d1d['shift']());}catch(_0x170f70){_0x526d1d['push'](_0x526d1d['shift']());}}}(_0x4a38,0x66352));import{CKEditorError as _0x17ceb3,EmitterMixin as _0x41be17,logWarning as _0x5c8a64}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0xd0f6a1}from'../../aicore/model/aiinteraction.js';function _0x3cb9(_0xae840b,_0x187ae8){const _0x4a3827=_0x4a38();return _0x3cb9=function(_0x3cb988,_0x561098){_0x3cb988=_0x3cb988-0x156;let _0x239584=_0x4a3827[_0x3cb988];return _0x239584;},_0x3cb9(_0xae840b,_0x187ae8);}import{AIChatContext as _0x28df4e,AI_CONTEXT_MODEL_EVENT_NAMES as _0x226736}from'./aichatcontext.js';import{AICapabilities as _0x416f97,CAPABILITIES_MODEL_EVENT_NAMES as _0x2785bb}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x243d2e}from'./aichatinteraction.js';import{errorsMap as _0x80f9aa}from'../../errorsmap.js';export class AIChatConversation extends _0x41be17(){['id'];[_0x293c8c(0x196)]=!0x1;[_0x293c8c(0x1b9)]=[];[_0x293c8c(0x1ce)];[_0x293c8c(0x1b0)];[_0x293c8c(0x1a3)];[_0x293c8c(0x15e)];constructor(_0x5dcb97){const _0x1779b5=_0x293c8c;super(),this[_0x1779b5(0x15e)]=_0x5dcb97,this[_0x1779b5(0x1a3)]=_0x5dcb97[_0x1779b5(0x1a3)],this[_0x1779b5(0x1cb)]=_0x5dcb97[_0x1779b5(0x1cb)],this['id']=_0x5dcb97[_0x1779b5(0x176)];}async[_0x293c8c(0x192)](_0x309ee5){const _0x2b116a=_0x293c8c;try{this[_0x2b116a(0x1a5)]=new _0x28df4e({'connector':this[_0x2b116a(0x1a3)],'config':_0x309ee5,'ownerId':this['id']}),this[_0x2b116a(0x1a5)][_0x2b116a(0x174)](..._0x226736)['to'](this),this[_0x2b116a(0x1a5)][_0x2b116a(0x192)](),this[_0x2b116a(0x182)]=new _0x416f97(),this[_0x2b116a(0x182)][_0x2b116a(0x174)](..._0x2785bb)['to'](this),this[_0x2b116a(0x182)][_0x2b116a(0x192)]();const _0x5c7b80=await this[_0x2b116a(0x1cb)][_0x2b116a(0x173)]();this[_0x2b116a(0x1b2)](_0x2b116a(0x158),{'availableModels':_0x5c7b80});const _0x3328a1=await this[_0x2b116a(0x1cb)][_0x2b116a(0x197)](this[_0x2b116a(0x15e)][_0x2b116a(0x15c)]);_0x3328a1&&await this[_0x2b116a(0x16f)](_0x3328a1);}catch(_0x4e3cc4){const _0x32d297=new _0x17ceb3(_0x2b116a(0x156),null,{'message':_0x4e3cc4[_0x2b116a(0x16b)]||_0x4e3cc4});_0x32d297[_0x2b116a(0x184)]=_0x4e3cc4[_0x2b116a(0x184)],this[_0x2b116a(0x1b2)](_0x2b116a(0x163),{'error':_0x32d297});}}async[_0x293c8c(0x1a7)](){const _0xfda4b2=_0x293c8c;if(this[_0xfda4b2(0x196)])throw new _0x17ceb3(_0xfda4b2(0x1ab),null,{'conversation':this});if(!this[_0xfda4b2(0x1b0)])throw new _0x17ceb3(_0xfda4b2(0x17c),null,{'conversation':this});try{const {id:_0x1239ba}=await this[_0xfda4b2(0x1a3)][_0xfda4b2(0x18e)](this['id'],this[_0xfda4b2(0x15e)][_0xfda4b2(0x15b)])[_0xfda4b2(0x1b5)]();this['id']=_0x1239ba,this[_0xfda4b2(0x196)]=!0x0,this[_0xfda4b2(0x1b2)](_0xfda4b2(0x161),{'conversationId':this['id'],'selectedModel':this[_0xfda4b2(0x1b0)]});}catch(_0x4b4c06){const _0x148fcc=new _0x17ceb3(_0xfda4b2(0x175),null,{'message':_0x4b4c06[_0xfda4b2(0x16b)],'conversationId':this['id']});throw _0x148fcc[_0xfda4b2(0x184)]=_0x4b4c06[_0xfda4b2(0x184)],this[_0xfda4b2(0x1b2)](_0xfda4b2(0x163),{'error':_0x148fcc}),_0x148fcc;}}async[_0x293c8c(0x1bc)](_0x1d0eb6,_0x1f7dd3){const _0x2abb25=_0x293c8c;try{const _0x363c5e=await this[_0x2abb25(0x1a3)][_0x2abb25(0x199)](_0x1d0eb6)[_0x2abb25(0x1b5)](),_0x416759=await this[_0x2abb25(0x1a3)][_0x2abb25(0x15d)](_0x1d0eb6)[_0x2abb25(0x18c)](),_0xee5c4e=_0x416759[0x0][_0x2abb25(0x172)];this[_0x2abb25(0x196)]=!0x0,this['id']=_0x363c5e['id'],_0x2abb25(0x19b)in _0x363c5e?this[_0x2abb25(0x1b2)](_0x2abb25(0x1c8),_0x363c5e[_0x2abb25(0x19b)],!0x0):this[_0x2abb25(0x1b2)](_0x2abb25(0x1c8),'',!0x0);const _0x30966f=(await this[_0x2abb25(0x1cb)][_0x2abb25(0x183)]())[_0x2abb25(0x15a)](_0x27ce62=>_0x27ce62['id'][_0x2abb25(0x18d)]()===_0xee5c4e[_0x2abb25(0x18d)]());return this[_0x2abb25(0x1b0)]=_0x30966f,this[_0x2abb25(0x1b2)](_0x2abb25(0x1be),{'selectedModel':_0x30966f,'isDisabled':!0x0}),await this[_0x2abb25(0x188)](_0x416759,_0x1f7dd3,_0xee5c4e),this[_0x2abb25(0x1ce)]=void 0x0,this;}catch(_0x344cc9){const _0x17db8d=new _0x17ceb3(_0x2abb25(0x1cd),null,{'message':_0x344cc9[_0x2abb25(0x16b)],'conversationId':_0x1d0eb6});throw _0x17db8d[_0x2abb25(0x184)]=_0x344cc9[_0x2abb25(0x184)],this[_0x2abb25(0x1b2)](_0x2abb25(0x163),{'error':_0x17db8d}),_0x17db8d;}}async[_0x293c8c(0x188)](_0x1c6c0b,_0x4d460e,_0x351698){const _0x2d234b=_0x293c8c;let _0x24d075;for(const _0x2020b4 of _0x1c6c0b)if(_0x2d234b(0x1a9)===_0x2020b4[_0x2d234b(0x1c6)]){const _0x26ef8d=await this[_0x2d234b(0x16c)](_0x2020b4),_0x1dca64={'isReasoningEnabled':Object[_0x2d234b(0x17d)](_0x2020b4[_0x2d234b(0x18a)],_0x2d234b(0x1aa)),'isWebSearchEnabled':Object[_0x2d234b(0x17d)](_0x2020b4[_0x2d234b(0x18a)],_0x2d234b(0x1c0))};_0x24d075=this[_0x2d234b(0x168)]({'userMessage':_0x2020b4[_0x2d234b(0x159)],'contextItems':_0x26ef8d,'capabilities':_0x1dca64,'modelId':_0x351698,'attributes':_0x2020b4[_0x2d234b(0x1c4)]}),this[_0x2d234b(0x1ce)]=_0x24d075,this[_0x2d234b(0x1a5)][_0x2d234b(0x177)](this[_0x2d234b(0x1ce)][_0x2d234b(0x179)]);}else{if(_0x2d234b(0x190)===_0x2020b4[_0x2d234b(0x1c6)]&&_0x24d075){const _0x218410=[];for(const _0x220087 of _0x2020b4[_0x2d234b(0x1bb)])switch(_0x220087[_0x2d234b(0x1a8)]){case _0x2d234b(0x17b):case _0x2d234b(0x1c2):{const _0x5d67ea=_0x24d075[_0x2d234b(0x164)]()?.[_0x2d234b(0x19d)]!==_0x4d460e;_0x24d075[_0x2d234b(0x178)]=_0x24d075[_0x2d234b(0x1a6)]({'type':_0x220087[_0x2d234b(0x1a8)],'isDone':!0x0,'interactionId':_0x24d075['id'],'areActionsDisabled':_0x5d67ea}),_0x24d075[_0x2d234b(0x178)][_0x2d234b(0x195)](_0x220087[_0x2d234b(0x1bb)]),_0x218410[_0x2d234b(0x1a0)]>0x0&&(_0x24d075[_0x2d234b(0x178)][_0x2d234b(0x1b6)]=_0x218410[_0x2d234b(0x1c3)](0x0));break;}case _0x2d234b(0x187):_0x218410[_0x2d234b(0x1b3)](_0x220087);break;case _0x2d234b(0x1c5):{const {data:_0x515c27,attributes:_0x2fd95e}=JSON[_0x2d234b(0x162)](_0x220087[_0x2d234b(0x1bb)]);_0x24d075[_0x2d234b(0x1cc)]({'toolName':_0x220087[_0x2d234b(0x1c7)],'data':_0x515c27,'attributes':_0x2fd95e});break;}}}}}async[_0x293c8c(0x16c)](_0x45a895){const _0x367f82=_0x293c8c,_0x106057=new Map();if(!_0x45a895[_0x367f82(0x1bb)])return _0x106057;for(const _0x4fc942 of _0x45a895[_0x367f82(0x1bb)]){const _0x219481=await this[_0x367f82(0x1a5)][_0x367f82(0x1ac)](_0x4fc942);_0x219481&&_0x106057[_0x367f82(0x16d)](_0x219481['id'],_0x219481);}return _0x106057;}async[_0x293c8c(0x1ba)]({userMessage:_0x7f5187,attributes:_0x55b4bc}){const _0x114a3c=_0x293c8c;if(!this[_0x114a3c(0x196)])throw new _0x17ceb3(_0x114a3c(0x194),null,{'conversation':this});if(this[_0x114a3c(0x1ce)])throw new _0x17ceb3(_0x114a3c(0x1a1),null,{'conversation':this});try{const _0x33980d=this[_0x114a3c(0x1a5)][_0x114a3c(0x16e)](),_0x50d6e7=this[_0x114a3c(0x182)][_0x114a3c(0x181)](),_0x159868=this[_0x114a3c(0x1b0)]['id'];this[_0x114a3c(0x1ce)]=this[_0x114a3c(0x168)]({'userMessage':_0x7f5187,'contextItems':_0x33980d,'capabilities':_0x50d6e7,'modelId':_0x159868,'attributes':_0x55b4bc}),await this[_0x114a3c(0x1ce)][_0x114a3c(0x1a7)](),this[_0x114a3c(0x1a5)][_0x114a3c(0x177)](this[_0x114a3c(0x1ce)][_0x114a3c(0x179)]);}catch(_0x4eb0b0){if(_0x4eb0b0 instanceof _0x17ceb3)this[_0x114a3c(0x1b2)](_0x114a3c(0x163),{'interactionId':this[_0x114a3c(0x1ce)]?this[_0x114a3c(0x1ce)]['id']:void 0x0,'error':_0x4eb0b0});else{const _0x5abe98=_0x80f9aa[_0x114a3c(0x191)](_0x4eb0b0[_0x114a3c(0x193)])||_0x114a3c(0x1b1);this[_0x114a3c(0x1b2)](_0x114a3c(0x163),{'interactionId':this[_0x114a3c(0x1ce)]?this[_0x114a3c(0x1ce)]['id']:void 0x0,'error':new _0x17ceb3(_0x5abe98,null,{'error':_0x4eb0b0})});}}finally{this[_0x114a3c(0x1ce)]?.[_0x114a3c(0x166)](),this[_0x114a3c(0x1ce)]=void 0x0;}}[_0x293c8c(0x168)]({userMessage:_0xdb1d7f,contextItems:_0x37eef8,capabilities:_0x25386b,modelId:_0x18abf4,attributes:_0x6d45d8}){const _0x29206f=_0x293c8c,_0x2d040b=new _0x243d2e({'userMessage':_0xdb1d7f,'contextItems':_0x37eef8,'capabilities':_0x25386b,'conversationId':this['id'],'connector':this[_0x29206f(0x1a3)],'editor':this[_0x29206f(0x15e)][_0x29206f(0x1c9)]&&this[_0x29206f(0x15e)][_0x29206f(0x1c9)](),'model':_0x18abf4,'attributes':_0x6d45d8});return _0x2d040b[_0x29206f(0x174)](..._0xd0f6a1)['to'](this),this[_0x29206f(0x1b9)][_0x29206f(0x1b3)](_0x2d040b),this[_0x29206f(0x1b2)](_0x29206f(0x170),_0x2d040b),_0x2d040b;}[_0x293c8c(0x1bd)](_0x44322e){const _0x215bf0=_0x293c8c;return this[_0x215bf0(0x1b9)][_0x215bf0(0x15a)](_0xee91d1=>_0xee91d1['id']===_0x44322e);}[_0x293c8c(0x171)](_0x19470a){const _0x3d67fd=_0x293c8c,_0x4dcb19=this[_0x3d67fd(0x1bd)](_0x19470a);_0x4dcb19&&(_0x4dcb19[_0x3d67fd(0x1b8)](),this[_0x3d67fd(0x1b9)][_0x3d67fd(0x1c3)](this[_0x3d67fd(0x1b9)][_0x3d67fd(0x18b)](_0x4dcb19),0x1));}get[_0x293c8c(0x1a4)](){const _0x34c882=_0x293c8c;return this[_0x34c882(0x1b9)][this[_0x34c882(0x1b9)][_0x34c882(0x1a0)]-0x1];}[_0x293c8c(0x1c1)](_0x44f52b){const _0x24ded7=_0x293c8c;this[_0x24ded7(0x1a5)][_0x24ded7(0x1c1)](_0x44f52b);}async[_0x293c8c(0x185)]({content:_0x5ca825,version:_0x10c018,sessionId:_0x505843,selections:_0x46de69}){const _0x37e850=_0x293c8c;await this[_0x37e850(0x1a5)][_0x37e850(0x1ca)](_0x5ca825,_0x10c018,_0x505843,_0x46de69);}[_0x293c8c(0x19c)](){const _0x156ecc=_0x293c8c;return this[_0x156ecc(0x1ce)]?.[_0x156ecc(0x164)]()?.[_0x156ecc(0x1bb)]||'';}[_0x293c8c(0x1bf)](_0x2e1de6){const _0xa98af6=_0x293c8c;this[_0xa98af6(0x1a5)][_0xa98af6(0x1bf)](_0x2e1de6);}[_0x293c8c(0x17e)](){const _0x1b73b1=_0x293c8c;this[_0x1b73b1(0x1a5)][_0x1b73b1(0x17e)]();}[_0x293c8c(0x19e)](_0x4bda98){const _0x2eecdf=_0x293c8c;this[_0x2eecdf(0x1a5)][_0x2eecdf(0x19e)](_0x4bda98);}[_0x293c8c(0x16a)](_0x197c37){const _0x13fd6c=_0x293c8c;this[_0x13fd6c(0x1a5)][_0x13fd6c(0x16a)](_0x197c37);}[_0x293c8c(0x17f)](_0x5c6a59){const _0xa1d0f9=_0x293c8c;this[_0xa1d0f9(0x1a5)][_0xa1d0f9(0x17f)](_0x5c6a59);}[_0x293c8c(0x169)](_0x29cc5a,_0x52de7a){const _0x557ac7=_0x293c8c;this[_0x557ac7(0x1a5)][_0x557ac7(0x169)](_0x29cc5a,_0x52de7a);}[_0x293c8c(0x167)](_0x10f6c4,_0x45f8a1,_0x400be5){const _0x1e0071=_0x293c8c;return this[_0x1e0071(0x1a5)][_0x1e0071(0x167)](_0x10f6c4,_0x45f8a1,_0x400be5);}[_0x293c8c(0x1af)](_0x206378){const _0x4f3fe1=_0x293c8c;this[_0x4f3fe1(0x1a5)][_0x4f3fe1(0x1af)](_0x206378);}[_0x293c8c(0x180)](){const _0x5d6e6=_0x293c8c;this[_0x5d6e6(0x182)][_0x5d6e6(0x180)]();}[_0x293c8c(0x165)](){const _0x10a5f7=_0x293c8c;this[_0x10a5f7(0x182)][_0x10a5f7(0x165)]();}[_0x293c8c(0x189)](){const _0x158894=_0x293c8c;return this[_0x158894(0x1a5)][_0x158894(0x189)]();}[_0x293c8c(0x17a)](){const _0xcc14f4=_0x293c8c;return this[_0xcc14f4(0x1a5)][_0xcc14f4(0x17a)]();}[_0x293c8c(0x1ae)](){const _0x3a8bbd=_0x293c8c;return this[_0x3a8bbd(0x1a5)][_0x3a8bbd(0x1ae)]();}async[_0x293c8c(0x16f)](_0x5ba27d){const _0x352263=_0x293c8c;_0x5ba27d?!0x1===await this[_0x352263(0x1cb)][_0x352263(0x160)](_0x5ba27d)&&(_0x5c8a64(_0x352263(0x1ad),{'conversation':this,'model':_0x5ba27d}),_0x5ba27d=(await this[_0x352263(0x1cb)][_0x352263(0x173)]())[0x0]):(_0x5c8a64(_0x352263(0x1b7),{'conversation':this}),_0x5ba27d=(await this[_0x352263(0x1cb)][_0x352263(0x173)]())[0x0]),_0x5ba27d['id']!==this[_0x352263(0x1b0)]?.['id']&&(this[_0x352263(0x1b0)]=_0x5ba27d,this[_0x352263(0x182)][_0x352263(0x1a2)](),this[_0x352263(0x1b2)](_0x352263(0x1be),{'selectedModel':_0x5ba27d}));}}function _0x4a38(){const _0x46b077=['removeFromContext','selectedModel','ai-chat-handle-user-interaction-start-failed','fire','push','101521OFbHNB','getConversation','sources','ai-chat-conversation-set-model-null','destroy','interactions','handleUserInteraction','content','load','getInteraction','modelSelected','addSelectionToContext','webSearch','addCurrentDocumentToContext','modification','splice','attributes','mcp-tool-result','role','toolName','setConversationTitle','getEditor','updateCurrentDocument','chatModels','_handleToolResultData','ai-chat-conversation-init-from-id-failed','currentInteraction','ai-chat-conversation-init-failed','2613570tVnTlJ','conversationInitialized','prompt','find','group','selectedModelId','fetchConversationMessages','options','137656PAusWJ','isAvailable','conversationStarted','parse','error','getDocumentContext','toggleReasoning','stop','loadSourceResources','createInteraction','addResourceToContext','addUrlToContext','message','_extractContextItems','set','getPendingContextItems','setModel','interactionCreated','removeInteraction','model','getAvailableModels','delegate','ai-chat-conversation-start-failed','conversationId','addToConversationContext','currentReply','contextItems','isCurrentDocumentInConversation','text','ai-chat-conversation-start-no-model-selected','hasOwn','removeSelectionFromContext','addToolItemToContext','toggleWebSearch','getCapabilitiesConfig','chatCapabilities','getAll','stack','updateCurrentDocumentInContext','888450bIOKiU','url','_processMessagesToInteractions','isCurrentDocumentInContext','capabilities','indexOf','getMessages','toLowerCase','startConversation','3430888nmVfEs','assistant','get','init','code','ai-chat-handle-user-conversation-not-initialized','appendContent','isStarted','getModel','5pduwjR','fetchConversation','790420AoDZmr','title','getCurrentDocumentContext','sessionId','addFilesToContext','1408480mzEVbF','length','ai-chat-handle-user-interaction-already-in-progress','reset','connector','lastInteraction','chatContext','createReply','start','type','user','reasoning','ai-chat-conversation-already-started','populateFromMessage','ai-chat-conversation-set-model-not-available','isSelectionInContext'];_0x4a38=function(){return _0x46b077;};return _0x4a38();}
|
|
23
|
+
const _0x103656=_0x297b;(function(_0x497164,_0x42f507){const _0x59f0d3=_0x297b,_0x401ef9=_0x497164();while(!![]){try{const _0x3bf1fd=parseInt(_0x59f0d3(0x1ea))/0x1+-parseInt(_0x59f0d3(0x1da))/0x2+parseInt(_0x59f0d3(0x229))/0x3*(-parseInt(_0x59f0d3(0x218))/0x4)+parseInt(_0x59f0d3(0x20c))/0x5+parseInt(_0x59f0d3(0x241))/0x6+parseInt(_0x59f0d3(0x1dd))/0x7*(parseInt(_0x59f0d3(0x240))/0x8)+parseInt(_0x59f0d3(0x205))/0x9*(-parseInt(_0x59f0d3(0x1cb))/0xa);if(_0x3bf1fd===_0x42f507)break;else _0x401ef9['push'](_0x401ef9['shift']());}catch(_0x35f628){_0x401ef9['push'](_0x401ef9['shift']());}}}(_0x53a8,0x91929));function _0x53a8(){const _0x67ab17=['getCurrentDocumentContext','code','_handleToolResultData','ai-chat-conversation-init-failed','setModel','ai-chat-conversation-already-started','push','model','prompt','appendContent','toggleReasoning','getPendingContextItems','334892bEroUq','loadSourceResources','attributes','7UVZHqS','assistant','getDocumentContext','fetchConversation','removeSelectionFromContext','lastInteraction','isAvailable','setReasoning','reset','indexOf','error','set','interactions','306126MuFNXA','ai-chat-conversation-set-model-null','isCurrentDocumentInContext','contextItems','parse','fire','webSearch','hasOwn','user','conversationId','addResourceToContext','chatCapabilities','ai-chat-conversation-start-no-model-selected','title','chatModels','load','removeFromContext','selectedModelId','mcp-tool-result','sessionId','startConversation','getEditor','ai-chat-conversation-init-from-id-failed','length','getInteraction','populateFromMessage','toolName','511209qIzWSQ','addToConversationContext','getConversation','createReply','updateCurrentDocumentInContext','reasoning','addToolItemToContext','2724430SqfLnk','options','stop','isCurrentDocumentInConversation','ai-chat-conversation-set-model-not-available','find','addFilesToContext','destroy','isSelectionInContext','content','addCurrentDocumentToContext','sources','4jqsBBh','getCapabilitiesConfig','role','start','getAll','conversationStarted','toLowerCase','isStarted','currentInteraction','setConversationTitle','getMessages','toggleWebSearch','getAvailableModels','splice','selectedModel','ai-chat-handle-user-conversation-not-initialized','chatContext','2788752YXepfJ','delegate','isFromHistory','url','group','fetchConversationMessages','stack','interactionCreated','currentReply','_extractContextItems','init','ai-chat-handle-user-interaction-start-failed','type','conversationInitialized','capabilities','getModel','handleUserInteraction','text','updateCurrentDocument','_processMessagesToInteractions','get','removeInteraction','modelSelected','9192456efrcQy','3953058WWjwBU','ai-chat-conversation-start-failed','message','addUrlToContext','ai-chat-handle-user-interaction-already-in-progress','connector','createInteraction','modification','170FeCkxu','addSelectionToContext','setWebSearch'];_0x53a8=function(){return _0x67ab17;};return _0x53a8();}import{CKEditorError as _0x530193,EmitterMixin as _0x316b1c,logWarning as _0x5203d6}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x15a769}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x5d633b,AI_CONTEXT_MODEL_EVENT_NAMES as _0x53dfdc}from'./aichatcontext.js';import{AICapabilities as _0x5ecff1,CAPABILITIES_MODEL_EVENT_NAMES as _0x528896}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x5aef86}from'./aichatinteraction.js';import{errorsMap as _0xf2c64e}from'../../errorsmap.js';function _0x297b(_0x3fcbdf,_0x1b8387){const _0x53a892=_0x53a8();return _0x297b=function(_0x297b1a,_0x237953){_0x297b1a=_0x297b1a-0x1ca;let _0x196582=_0x53a892[_0x297b1a];return _0x196582;},_0x297b(_0x3fcbdf,_0x1b8387);}export class AIChatConversation extends _0x316b1c(){['id'];[_0x103656(0x21f)]=!0x1;[_0x103656(0x22b)];[_0x103656(0x1e9)]=[];[_0x103656(0x220)];[_0x103656(0x226)];[_0x103656(0x246)];[_0x103656(0x20d)];constructor(_0x5b03a6){const _0xf57463=_0x103656;super(),this[_0xf57463(0x20d)]=_0x5b03a6,this[_0xf57463(0x246)]=_0x5b03a6[_0xf57463(0x246)],this[_0xf57463(0x1f8)]=_0x5b03a6[_0xf57463(0x1f8)],this['id']=_0x5b03a6[_0xf57463(0x1f3)],this[_0xf57463(0x22b)]=_0x5b03a6[_0xf57463(0x22b)];}async[_0x103656(0x233)](_0x5cfb91){const _0x201327=_0x103656;try{this[_0x201327(0x228)]=new _0x5d633b({'connector':this[_0x201327(0x246)],'config':_0x5cfb91,'ownerId':this['id']}),this[_0x201327(0x228)][_0x201327(0x22a)](..._0x53dfdc)['to'](this),this[_0x201327(0x228)][_0x201327(0x233)](),this[_0x201327(0x1f5)]=new _0x5ecff1(),this[_0x201327(0x1f5)][_0x201327(0x22a)](..._0x528896)['to'](this),this[_0x201327(0x1f5)][_0x201327(0x233)]();const _0x2a5e9b=await this[_0x201327(0x1f8)][_0x201327(0x224)]();this[_0x201327(0x1ef)](_0x201327(0x236),{'availableModels':_0x2a5e9b});const _0x2497c7=await this[_0x201327(0x1f8)][_0x201327(0x238)](this[_0x201327(0x20d)][_0x201327(0x1fb)]);_0x2497c7&&await this[_0x201327(0x1d2)](_0x2497c7);}catch(_0x43f498){const _0x2e6cf1=new _0x530193(_0x201327(0x1d1),null,{'message':_0x43f498[_0x201327(0x243)]||_0x43f498});_0x2e6cf1[_0x201327(0x22f)]=_0x43f498[_0x201327(0x22f)],this[_0x201327(0x1ef)](_0x201327(0x1e7),{'error':_0x2e6cf1});}}async[_0x103656(0x21b)](){const _0x539027=_0x103656;if(this[_0x539027(0x21f)])throw new _0x530193(_0x539027(0x1d3),null,{'conversation':this});if(!this[_0x539027(0x226)])throw new _0x530193(_0x539027(0x1f6),null,{'conversation':this});try{const {id:_0x40deb3}=await this[_0x539027(0x246)][_0x539027(0x1fe)](this['id'],this[_0x539027(0x20d)][_0x539027(0x22d)])[_0x539027(0x207)]();this['id']=_0x40deb3,this[_0x539027(0x21f)]=!0x0,this[_0x539027(0x1ef)](_0x539027(0x21d),{'conversationId':this['id'],'selectedModel':this[_0x539027(0x226)]});}catch(_0x5af6b0){const _0x213e9d=new _0x530193(_0x539027(0x242),null,{'message':_0x5af6b0[_0x539027(0x243)],'conversationId':this['id']});throw _0x213e9d[_0x539027(0x22f)]=_0x5af6b0[_0x539027(0x22f)],this[_0x539027(0x1ef)](_0x539027(0x1e7),{'error':_0x213e9d}),_0x213e9d;}}async[_0x103656(0x1f9)](_0x2f0bbd,_0x26b266){const _0x3a5b05=_0x103656;try{const _0x1737e9=await this[_0x3a5b05(0x246)][_0x3a5b05(0x1e0)](_0x2f0bbd)[_0x3a5b05(0x207)](),_0x16798b=await this[_0x3a5b05(0x246)][_0x3a5b05(0x22e)](_0x2f0bbd)[_0x3a5b05(0x222)](),_0x1c3462=_0x16798b[0x0][_0x3a5b05(0x1d5)];this[_0x3a5b05(0x21f)]=!0x0,this['id']=_0x1737e9['id'],_0x3a5b05(0x1f7)in _0x1737e9?this[_0x3a5b05(0x1ef)](_0x3a5b05(0x221),_0x1737e9[_0x3a5b05(0x1f7)],!0x0):this[_0x3a5b05(0x1ef)](_0x3a5b05(0x221),'',!0x0);const _0x2fe3d7=(await this[_0x3a5b05(0x1f8)][_0x3a5b05(0x21c)]())[_0x3a5b05(0x211)](_0x2105ba=>_0x2105ba['id'][_0x3a5b05(0x21e)]()===_0x1c3462[_0x3a5b05(0x21e)]());return this[_0x3a5b05(0x226)]=_0x2fe3d7,this[_0x3a5b05(0x1ef)](_0x3a5b05(0x23f),{'selectedModel':_0x2fe3d7,'isDisabled':!0x0}),await this[_0x3a5b05(0x23c)](_0x16798b,_0x26b266,_0x1c3462),this[_0x3a5b05(0x220)]=void 0x0,this;}catch(_0x289731){const _0x1f5399=new _0x530193(_0x3a5b05(0x200),null,{'message':_0x289731[_0x3a5b05(0x243)],'conversationId':_0x2f0bbd});throw _0x1f5399[_0x3a5b05(0x22f)]=_0x289731[_0x3a5b05(0x22f)],this[_0x3a5b05(0x1ef)](_0x3a5b05(0x1e7),{'error':_0x1f5399}),_0x1f5399;}}async[_0x103656(0x23c)](_0x3bd105,_0x10166e,_0x3c4279){const _0x4e2f9e=_0x103656;let _0x25583c;for(const _0x220d7b of _0x3bd105)if(_0x4e2f9e(0x1f2)===_0x220d7b[_0x4e2f9e(0x21a)]){const _0x2dc1ca=await this[_0x4e2f9e(0x232)](_0x220d7b),_0x3138ce={'isReasoningEnabled':Object[_0x4e2f9e(0x1f1)](_0x220d7b[_0x4e2f9e(0x237)],_0x4e2f9e(0x20a)),'isWebSearchEnabled':Object[_0x4e2f9e(0x1f1)](_0x220d7b[_0x4e2f9e(0x237)],_0x4e2f9e(0x1f0))};_0x25583c=this[_0x4e2f9e(0x247)]({'userMessage':_0x220d7b[_0x4e2f9e(0x1d6)],'contextItems':_0x2dc1ca,'capabilities':_0x3138ce,'modelId':_0x3c4279,'attributes':_0x220d7b[_0x4e2f9e(0x1dc)]}),this[_0x4e2f9e(0x220)]=_0x25583c,this[_0x4e2f9e(0x228)][_0x4e2f9e(0x206)](this[_0x4e2f9e(0x220)][_0x4e2f9e(0x1ed)]);}else{if(_0x4e2f9e(0x1de)===_0x220d7b[_0x4e2f9e(0x21a)]&&_0x25583c){const _0x266cf0=[];for(const _0x43fe93 of _0x220d7b[_0x4e2f9e(0x215)])switch(_0x43fe93[_0x4e2f9e(0x235)]){case _0x4e2f9e(0x23a):case _0x4e2f9e(0x1ca):{const _0x361171=_0x25583c[_0x4e2f9e(0x1df)]()?.[_0x4e2f9e(0x1fd)]!==_0x10166e;_0x25583c[_0x4e2f9e(0x231)]=_0x25583c[_0x4e2f9e(0x208)]({'type':_0x43fe93[_0x4e2f9e(0x235)],'isDone':!0x0,'interactionId':_0x25583c['id'],'areActionsDisabled':_0x361171}),_0x25583c[_0x4e2f9e(0x231)][_0x4e2f9e(0x1d7)](_0x43fe93[_0x4e2f9e(0x215)]),_0x266cf0[_0x4e2f9e(0x201)]>0x0&&(_0x25583c[_0x4e2f9e(0x231)][_0x4e2f9e(0x217)]=_0x266cf0[_0x4e2f9e(0x225)](0x0));break;}case _0x4e2f9e(0x22c):_0x266cf0[_0x4e2f9e(0x1d4)](_0x43fe93);break;case _0x4e2f9e(0x1fc):{const {data:_0x208b40,attributes:_0x343a52}=JSON[_0x4e2f9e(0x1ee)](_0x43fe93[_0x4e2f9e(0x215)]);_0x25583c[_0x4e2f9e(0x1d0)]({'toolName':_0x43fe93[_0x4e2f9e(0x204)],'data':_0x208b40,'attributes':_0x343a52});break;}}}}}async[_0x103656(0x232)](_0x4432c7){const _0x31326b=_0x103656,_0x224e60=new Map();if(!_0x4432c7[_0x31326b(0x215)])return _0x224e60;for(const _0x5cecea of _0x4432c7[_0x31326b(0x215)]){const _0x4f4494=await this[_0x31326b(0x228)][_0x31326b(0x203)](_0x5cecea);_0x4f4494&&_0x224e60[_0x31326b(0x1e8)](_0x4f4494['id'],_0x4f4494);}return _0x224e60;}async[_0x103656(0x239)]({userMessage:_0x5f2240,attributes:_0x3d78fe}){const _0x2ecafd=_0x103656;if(!this[_0x2ecafd(0x21f)])throw new _0x530193(_0x2ecafd(0x227),null,{'conversation':this});if(this[_0x2ecafd(0x220)])throw new _0x530193(_0x2ecafd(0x245),null,{'conversation':this});try{const _0x553f74=this[_0x2ecafd(0x228)][_0x2ecafd(0x1d9)](),_0x3a6a32=this[_0x2ecafd(0x1f5)][_0x2ecafd(0x219)](),_0x5e8164=this[_0x2ecafd(0x226)]['id'];this[_0x2ecafd(0x220)]=this[_0x2ecafd(0x247)]({'userMessage':_0x5f2240,'contextItems':_0x553f74,'capabilities':_0x3a6a32,'modelId':_0x5e8164,'attributes':_0x3d78fe}),await this[_0x2ecafd(0x220)][_0x2ecafd(0x21b)](),this[_0x2ecafd(0x228)][_0x2ecafd(0x206)](this[_0x2ecafd(0x220)][_0x2ecafd(0x1ed)]);}catch(_0x1f91d5){if(_0x1f91d5 instanceof _0x530193)this[_0x2ecafd(0x1ef)](_0x2ecafd(0x1e7),{'interactionId':this[_0x2ecafd(0x220)]?this[_0x2ecafd(0x220)]['id']:void 0x0,'error':_0x1f91d5});else{const _0x4ce2a1=_0xf2c64e[_0x2ecafd(0x23d)](_0x1f91d5[_0x2ecafd(0x1cf)])||_0x2ecafd(0x234);this[_0x2ecafd(0x1ef)](_0x2ecafd(0x1e7),{'interactionId':this[_0x2ecafd(0x220)]?this[_0x2ecafd(0x220)]['id']:void 0x0,'error':new _0x530193(_0x4ce2a1,null,{'error':_0x1f91d5})});}}finally{this[_0x2ecafd(0x220)]?.[_0x2ecafd(0x20e)](),this[_0x2ecafd(0x220)]=void 0x0;}}[_0x103656(0x247)]({userMessage:_0x21fbd6,contextItems:_0x43a672,capabilities:_0x367a4f,modelId:_0x4a4c32,attributes:_0x597d92}){const _0x7175d7=_0x103656,_0x39cce0=new _0x5aef86({'userMessage':_0x21fbd6,'contextItems':_0x43a672,'capabilities':_0x367a4f,'conversationId':this['id'],'connector':this[_0x7175d7(0x246)],'editor':this[_0x7175d7(0x20d)][_0x7175d7(0x1ff)]&&this[_0x7175d7(0x20d)][_0x7175d7(0x1ff)](),'model':_0x4a4c32,'attributes':_0x597d92});return _0x39cce0[_0x7175d7(0x22a)](..._0x15a769)['to'](this),this[_0x7175d7(0x1e9)][_0x7175d7(0x1d4)](_0x39cce0),this[_0x7175d7(0x1ef)](_0x7175d7(0x230),_0x39cce0),_0x39cce0;}[_0x103656(0x202)](_0x8e50fe){const _0x1906f6=_0x103656;return this[_0x1906f6(0x1e9)][_0x1906f6(0x211)](_0x161296=>_0x161296['id']===_0x8e50fe);}[_0x103656(0x23e)](_0x9222b9){const _0x4347bf=_0x103656,_0x3e1057=this[_0x4347bf(0x202)](_0x9222b9);_0x3e1057&&(_0x3e1057[_0x4347bf(0x213)](),this[_0x4347bf(0x1e9)][_0x4347bf(0x225)](this[_0x4347bf(0x1e9)][_0x4347bf(0x1e6)](_0x3e1057),0x1));}get[_0x103656(0x1e2)](){const _0x1a175c=_0x103656;return this[_0x1a175c(0x1e9)][this[_0x1a175c(0x1e9)][_0x1a175c(0x201)]-0x1];}[_0x103656(0x216)](_0x517574){const _0x42e67a=_0x103656;this[_0x42e67a(0x228)][_0x42e67a(0x216)](_0x517574);}async[_0x103656(0x209)]({content:_0x2f8bd1,version:_0x54202f,sessionId:_0x234fa8,selections:_0x49a80b}){const _0x4c6463=_0x103656;await this[_0x4c6463(0x228)][_0x4c6463(0x23b)](_0x2f8bd1,_0x54202f,_0x234fa8,_0x49a80b);}[_0x103656(0x1ce)](){const _0x257ffa=_0x103656;return this[_0x257ffa(0x220)]?.[_0x257ffa(0x1df)]()?.[_0x257ffa(0x215)]||'';}[_0x103656(0x1cc)](_0x6955f5){const _0x13b50a=_0x103656;this[_0x13b50a(0x228)][_0x13b50a(0x1cc)](_0x6955f5);}[_0x103656(0x1e1)](){const _0x4f4288=_0x103656;this[_0x4f4288(0x228)][_0x4f4288(0x1e1)]();}[_0x103656(0x212)](_0x16d0f0){const _0x19ed86=_0x103656;this[_0x19ed86(0x228)][_0x19ed86(0x212)](_0x16d0f0);}[_0x103656(0x244)](_0x194402){const _0x26312b=_0x103656;this[_0x26312b(0x228)][_0x26312b(0x244)](_0x194402);}[_0x103656(0x20b)](_0x22d400){const _0x40d395=_0x103656;this[_0x40d395(0x228)][_0x40d395(0x20b)](_0x22d400);}[_0x103656(0x1f4)](_0x327f44,_0x53d48d){const _0x445e97=_0x103656;this[_0x445e97(0x228)][_0x445e97(0x1f4)](_0x327f44,_0x53d48d);}[_0x103656(0x1db)](_0x299f28,_0x1d2af9,_0x1cdcd1){const _0xe147ec=_0x103656;return this[_0xe147ec(0x228)][_0xe147ec(0x1db)](_0x299f28,_0x1d2af9,_0x1cdcd1);}[_0x103656(0x1fa)](_0x189d92){const _0x43b31e=_0x103656;this[_0x43b31e(0x228)][_0x43b31e(0x1fa)](_0x189d92);}[_0x103656(0x1cd)](_0x4cc553){const _0x385b80=_0x103656;this[_0x385b80(0x1f5)][_0x385b80(0x1cd)](_0x4cc553);}[_0x103656(0x223)](){const _0x1d4862=_0x103656;this[_0x1d4862(0x1f5)][_0x1d4862(0x223)]();}[_0x103656(0x1e4)](_0x420034){const _0x34bb03=_0x103656;this[_0x34bb03(0x1f5)][_0x34bb03(0x1e4)](_0x420034);}[_0x103656(0x1d8)](){const _0x4e3af0=_0x103656;this[_0x4e3af0(0x1f5)][_0x4e3af0(0x1d8)]();}[_0x103656(0x1ec)](){const _0x2f2947=_0x103656;return this[_0x2f2947(0x228)][_0x2f2947(0x1ec)]();}[_0x103656(0x20f)](){const _0xdb0448=_0x103656;return this[_0xdb0448(0x228)][_0xdb0448(0x20f)]();}[_0x103656(0x214)](){const _0x270198=_0x103656;return this[_0x270198(0x228)][_0x270198(0x214)]();}async[_0x103656(0x1d2)](_0x4ed39d){const _0x29bfd4=_0x103656;_0x4ed39d?!0x1===await this[_0x29bfd4(0x1f8)][_0x29bfd4(0x1e3)](_0x4ed39d)&&(_0x5203d6(_0x29bfd4(0x210),{'conversation':this,'model':_0x4ed39d}),_0x4ed39d=(await this[_0x29bfd4(0x1f8)][_0x29bfd4(0x224)]())[0x0]):(_0x5203d6(_0x29bfd4(0x1eb),{'conversation':this}),_0x4ed39d=(await this[_0x29bfd4(0x1f8)][_0x29bfd4(0x224)]())[0x0]),_0x4ed39d['id']!==this[_0x29bfd4(0x226)]?.['id']&&(this[_0x29bfd4(0x226)]=_0x4ed39d,this[_0x29bfd4(0x1f5)][_0x29bfd4(0x1e5)](),this[_0x29bfd4(0x1ef)](_0x29bfd4(0x23f),{'selectedModel':_0x4ed39d}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1fe00e=_0x274e;(function(_0x175740,_0x40a470){var _0x43a0dc=_0x274e,_0x4a01b7=_0x175740();while(!![]){try{var _0x3464f9=parseInt(_0x43a0dc(0x1d6))/0x1*(-parseInt(_0x43a0dc(0x1e7))/0x2)+parseInt(_0x43a0dc(0x1d3))/0x3*(-parseInt(_0x43a0dc(0x1e4))/0x4)+-parseInt(_0x43a0dc(0x1e6))/0x5*(parseInt(_0x43a0dc(0x1cf))/0x6)+-parseInt(_0x43a0dc(0x1d2))/0x7+-parseInt(_0x43a0dc(0x1dc))/0x8*(-parseInt(_0x43a0dc(0x1d9))/0x9)+parseInt(_0x43a0dc(0x1e5))/0xa+parseInt(_0x43a0dc(0x1e2))/0xb*(parseInt(_0x43a0dc(0x1e1))/0xc);if(_0x3464f9===_0x40a470)break;else _0x4a01b7['push'](_0x4a01b7['shift']());}catch(_0x2decca){_0x4a01b7['push'](_0x4a01b7['shift']());}}}(_0x5cd1,0x34af1));function _0x274e(_0x4a1abf,_0x255c3e){var _0x5cd166=_0x5cd1();return _0x274e=function(_0x274ee2,_0x2999dc){_0x274ee2=_0x274ee2-0x1ce;var _0x4ae95f=_0x5cd166[_0x274ee2];return _0x4ae95f;},_0x274e(_0x4a1abf,_0x255c3e);}import{AICapabilities as _0x5d2cff}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x2f651d}from'../../aicore/model/aiinteraction.js';function _0x5cd1(){var _0x40e5e4=['connector','attributes','model','sendRequest','3226488afcbDy','44jffbQV','conversationId','4604XXhlKa','1584380psCsio','30UeUhhm','436RjufZU','contextItems','384438CzIzgc','get','queryAssistant','189644kjEEPq','513QbGtxv','current-document','getCapabilitiesRequestData','1942lJcPzA','userMessage','capabilities','918dNEGuK','getDocumentContext','mapContextItemsToRequestData','1064sGoKeh'];_0x5cd1=function(){return _0x40e5e4;};return _0x5cd1();}import{AIChatContext as _0xa2154}from'./aichatcontext.js';export class AIChatInteraction extends _0x2f651d{[_0x1fe00e(0x1d7)];[_0x1fe00e(0x1e3)];[_0x1fe00e(0x1ce)]=new Map();[_0x1fe00e(0x1df)];[_0x1fe00e(0x1de)];constructor(_0x5f3025){var _0x46159b=_0x1fe00e;super(_0x5f3025),this[_0x46159b(0x1e3)]=_0x5f3025[_0x46159b(0x1e3)],this[_0x46159b(0x1ce)]=_0x5f3025[_0x46159b(0x1ce)],this[_0x46159b(0x1d8)]=_0x5f3025[_0x46159b(0x1d8)],this[_0x46159b(0x1d7)]=_0x5f3025[_0x46159b(0x1d7)],this[_0x46159b(0x1df)]=_0x5f3025[_0x46159b(0x1df)],this[_0x46159b(0x1de)]=_0x5f3025[_0x46159b(0x1de)];}async[_0x1fe00e(0x1e0)](){var _0x5e476f=_0x1fe00e;return this[_0x5e476f(0x1dd)][_0x5e476f(0x1d1)]({'message':this[_0x5e476f(0x1d7)],'conversationId':this[_0x5e476f(0x1e3)],'parts':_0xa2154[_0x5e476f(0x1db)](this[_0x5e476f(0x1ce)]),'capabilities':_0x5d2cff[_0x5e476f(0x1d5)](this[_0x5e476f(0x1d8)]),'model':this[_0x5e476f(0x1df)],'attributes':this[_0x5e476f(0x1de)]});}[_0x1fe00e(0x1da)](){var _0x136757=_0x1fe00e;return this[_0x136757(0x1ce)][_0x136757(0x1d0)](_0x136757(0x1d4));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4681(_0x2ffe1e,_0x3fc73b){const _0x3928f3=_0x3928();return _0x4681=function(_0x4681fe,_0x4e3cdf){_0x4681fe=_0x4681fe-0xd4;let _0x201e14=_0x3928f3[_0x4681fe];return _0x201e14;},_0x4681(_0x2ffe1e,_0x3fc73b);}const _0xdba7d6=_0x4681;(function(_0x274897,_0x523ec5){const _0x3401da=_0x4681,_0x56f644=_0x274897();while(!![]){try{const _0x237a40=parseInt(_0x3401da(0xd4))/0x1+-parseInt(_0x3401da(0x128))/0x2*(parseInt(_0x3401da(0x108))/0x3)+-parseInt(_0x3401da(0x114))/0x4*(parseInt(_0x3401da(0xf0))/0x5)+parseInt(_0x3401da(0x120))/0x6*(-parseInt(_0x3401da(0xe7))/0x7)+parseInt(_0x3401da(0x11a))/0x8+parseInt(_0x3401da(0xea))/0x9*(parseInt(_0x3401da(0xe6))/0xa)+parseInt(_0x3401da(0x123))/0xb;if(_0x237a40===_0x523ec5)break;else _0x56f644['push'](_0x56f644['shift']());}catch(_0x59a30c){_0x56f644['push'](_0x56f644['shift']());}}}(_0x3928,0xbe967));import{FocusTracker as _0x143b1e,KeystrokeHandler as _0x4dcbce}from'ckeditor5/src/utils.js';function _0x3928(){const _0x4eb47b=['toggleSuggestionDisplayMode','_config','focusFirst','showPrevious','isEnabled','fire','isVisible','isShowChangesOn','full','keepErrors','shift\x20+\x20tab','updateContent','_errorView','change:_state','_focusTracker','AI_BALLOON_PREVIOUS_LABEL','render','_createNextButtonView','isTrackChangesOn','has','3DVfmDG','_miniToolbarView','_stateView','tab','delegate','setButtonsVisibility','_partToolbarView','togglePartToolbarEnabled','_isErrorVisible','focusLast','toggleRotatorButtonsVisibility','children','4ysCPfe','_createPreviousButtonView','createCollection','focus','applySuggestion','previousButtonView','12046416VHyUcw','div','toggleShowChanges','hideError','ck-ai-chat-balloon-main_state_','focusCycler','24eevynN','showNext','element','2699433hAkzYZ','setTemplate','destroy','locale','ck-ai-chat-balloon__toolbar-container','3020436JRammA','494360hnNWYe','pending','showError','_keystrokes','rejectSuggestion','ck-ai-chat-balloon-main','includes','addMany','bindTemplate','setState','_toolbarContainerView','_togglePartToolbarButtonsVisibility','showBlockingError','change:isTrackChangesOn','execute','bind','_focusables','nextButtonView','310lpigMu','407015pbgkxS','showDiff','insertSuggestion','250407gFEYZk','_streamableContentView','AI_BALLOON_NEXT_LABEL','_state','update','availableActions','2923165eopUiz','listenTo','set','add'];_0x3928=function(){return _0x4eb47b;};return _0x3928();}import{AISuggestionStreamableContentView as _0x37857a}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x3b5baa}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x27ae5f}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x266e50}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x46a1f1,FocusCycler as _0x4ecd85,View as _0x314798}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x4d7e9b}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x1284b1,IconChevronUp as _0x2907f0}from'ckeditor5/src/icons.js';import{getTranslation as _0x3ab411}from'../../aicore/utils/common-translations.js';export class AIChatBalloonView extends _0x266e50{[_0xdba7d6(0x113)];[_0xdba7d6(0xe5)];[_0xdba7d6(0x119)];[_0xdba7d6(0x11f)];[_0xdba7d6(0xe4)];[_0xdba7d6(0x102)];[_0xdba7d6(0xd7)];[_0xdba7d6(0xf5)];[_0xdba7d6(0xeb)];[_0xdba7d6(0xde)];[_0xdba7d6(0x10e)];[_0xdba7d6(0x10a)];[_0xdba7d6(0x109)];constructor(_0x15a0f2,_0x30dedb){const _0x489c0b=_0xdba7d6;super(_0x15a0f2);const _0x1c1e72=this[_0x489c0b(0xdc)];this[_0x489c0b(0xf2)](_0x489c0b(0xe8),!0x1),this[_0x489c0b(0xf2)](_0x489c0b(0xed),_0x489c0b(0xd5)),this[_0x489c0b(0x102)]=new _0x143b1e(),this[_0x489c0b(0xd7)]=new _0x4dcbce(),this[_0x489c0b(0xe4)]=this[_0x489c0b(0x116)](),this[_0x489c0b(0x11f)]=new _0x4ecd85({'focusables':this[_0x489c0b(0xe4)],'focusTracker':this[_0x489c0b(0x102)],'keystrokeHandler':this[_0x489c0b(0xd7)],'actions':{'focusPrevious':_0x489c0b(0xfe),'focusNext':_0x489c0b(0x10b)}}),this[_0x489c0b(0xf5)]=_0x30dedb,this[_0x489c0b(0xe5)]=this[_0x489c0b(0x105)](),this[_0x489c0b(0x119)]=this[_0x489c0b(0x115)](),this[_0x489c0b(0xeb)]=new _0x37857a(_0x15a0f2),this[_0x489c0b(0x10e)]=new _0x3b5baa(_0x15a0f2,_0x30dedb[_0x489c0b(0xef)]),this[_0x489c0b(0x10e)][_0x489c0b(0x10c)](_0x489c0b(0x118),_0x489c0b(0xe9),_0x489c0b(0xd8))['to'](this),this[_0x489c0b(0xdf)](_0x30dedb),this[_0x489c0b(0x10a)]=new _0x4d7e9b(_0x15a0f2),this[_0x489c0b(0x10a)][_0x489c0b(0xfa)]=!0x1,this[_0x489c0b(0x109)]=new _0x27ae5f(_0x15a0f2,{'showChanges':_0x489c0b(0xfc)}),this[_0x489c0b(0x109)][_0x489c0b(0xe3)](_0x489c0b(0xfb))['to'](this,_0x489c0b(0xe8)),this[_0x489c0b(0x109)]['on'](_0x489c0b(0x11c),()=>{const _0x43215a=_0x489c0b;this[_0x43215a(0xf9)](_0x43215a(0xf4));}),this[_0x489c0b(0xde)]=new ms(_0x15a0f2,[this[_0x489c0b(0x10e)],this[_0x489c0b(0x10a)],this[_0x489c0b(0x109)]]),this[_0x489c0b(0x113)]=this[_0x489c0b(0x116)]([this[_0x489c0b(0xeb)],this[_0x489c0b(0xde)]]),this['on'](_0x489c0b(0x101),(_0x2185d7,_0x3d3245,_0x420786,_0x58aa43)=>{const _0x4e0107=_0x489c0b;let _0x440e41,_0x40fc74;_0x4e0107(0xd5)===_0x58aa43?(_0x440e41=this[_0x4e0107(0x10e)],_0x40fc74=this[_0x4e0107(0x10a)]):(_0x440e41=this[_0x4e0107(0x10a)],_0x40fc74=this[_0x4e0107(0x10e)]),this[_0x4e0107(0x10a)][_0x4e0107(0xdd)](_0x420786),_0x440e41[_0x4e0107(0xfa)]=!0x1,_0x40fc74[_0x4e0107(0xfa)]=!0x0;}),this[_0x489c0b(0x124)]({'tag':_0x489c0b(0x11b),'attributes':{'class':['ck',_0x489c0b(0xd9),_0x1c1e72['to'](_0x489c0b(0xed),_0x1a0c70=>_0x489c0b(0x11e)+_0x1a0c70)]},'children':this[_0x489c0b(0x113)]}),this['on'](_0x489c0b(0xe1),()=>{const _0x4e6135=_0x489c0b;this[_0x4e6135(0xdf)](_0x30dedb);});}[_0xdba7d6(0x104)](){const _0x6a2336=_0xdba7d6;super[_0x6a2336(0x104)](),this[_0x6a2336(0xe5)][_0x6a2336(0x104)](),this[_0x6a2336(0x119)][_0x6a2336(0x104)](),this[_0x6a2336(0x102)][_0x6a2336(0xf3)](this[_0x6a2336(0x122)]),this[_0x6a2336(0x102)][_0x6a2336(0xf3)](this[_0x6a2336(0xe5)]),this[_0x6a2336(0x102)][_0x6a2336(0xf3)](this[_0x6a2336(0x119)]),this[_0x6a2336(0x102)][_0x6a2336(0xf3)](this[_0x6a2336(0x109)]),this[_0x6a2336(0x102)][_0x6a2336(0xf3)](this[_0x6a2336(0x10e)]),this[_0x6a2336(0xd7)][_0x6a2336(0xf1)](this[_0x6a2336(0x122)]),this[_0x6a2336(0xd7)][_0x6a2336(0xf1)](this[_0x6a2336(0xe5)][_0x6a2336(0x122)]),this[_0x6a2336(0xd7)][_0x6a2336(0xf1)](this[_0x6a2336(0x119)][_0x6a2336(0x122)]),this[_0x6a2336(0xe4)][_0x6a2336(0xdb)]([this[_0x6a2336(0xe5)],this[_0x6a2336(0x119)],this[_0x6a2336(0x10e)],this[_0x6a2336(0x109)]]);}[_0xdba7d6(0x125)](){const _0x2ad391=_0xdba7d6;super[_0x2ad391(0x125)](),this[_0x2ad391(0x119)][_0x2ad391(0x125)](),this[_0x2ad391(0xe5)][_0x2ad391(0x125)]();}[_0xdba7d6(0x117)](){const _0x1b15ef=_0xdba7d6;this[_0x1b15ef(0x11f)][_0x1b15ef(0xf6)]();}[_0xdba7d6(0x111)](){const _0xc15d94=_0xdba7d6;this[_0xc15d94(0x11f)][_0xc15d94(0x111)]();}async[_0xdba7d6(0xff)](_0x5cd60f){const _0x27c0bc=_0xdba7d6;_0x5cd60f?.[_0x27c0bc(0xfd)]||this[_0x27c0bc(0x11d)](),await this[_0x27c0bc(0xeb)][_0x27c0bc(0xee)](_0x5cd60f);}[_0xdba7d6(0xdd)](_0x3acad1){const _0x3e77ce=_0xdba7d6;this[_0x3e77ce(0xed)]=_0x3acad1;}[_0xdba7d6(0xd6)](_0x4aa489){const _0x4a729e=_0xdba7d6;super[_0x4a729e(0xd6)](_0x4aa489),this[_0x4a729e(0x113)][_0x4a729e(0x107)](this[_0x4a729e(0x100)])||this[_0x4a729e(0x113)][_0x4a729e(0xf3)](this[_0x4a729e(0x100)],0x0);}[_0xdba7d6(0x11d)](){const _0x2c35a4=_0xdba7d6;this[_0x2c35a4(0x110)]&&(super[_0x2c35a4(0x11d)](),this[_0x2c35a4(0x10f)](!0x0));}[_0xdba7d6(0xe0)](_0x2d80e0){const _0x43f292=_0xdba7d6;super[_0x43f292(0xe0)](_0x2d80e0),this[_0x43f292(0x10f)](!0x1);}[_0xdba7d6(0x112)](_0x41735a){const _0x2fe8c3=_0xdba7d6;this[_0x2fe8c3(0xe5)][_0x2fe8c3(0xfa)]=this[_0x2fe8c3(0x119)][_0x2fe8c3(0xfa)]=_0x41735a;}[_0xdba7d6(0x10f)](_0x3c58ca){const _0x3a9b0a=_0xdba7d6;this[_0x3a9b0a(0x10e)][_0x3a9b0a(0xf8)]=_0x3c58ca;}[_0xdba7d6(0xdf)]({showApplyButton:_0x365ac0,showSuggestButton:_0x4d5b5c}){const _0x4ff943=_0xdba7d6;_0x365ac0=_0x365ac0&&!this[_0x4ff943(0x106)]&&this[_0x4ff943(0xf5)][_0x4ff943(0xef)][_0x4ff943(0xda)](_0x4ff943(0x118)),_0x4d5b5c=_0x4d5b5c&&this[_0x4ff943(0xf5)][_0x4ff943(0xef)][_0x4ff943(0xda)](_0x4ff943(0xe9)),this[_0x4ff943(0x10e)][_0x4ff943(0x10d)]({'showApplyButton':_0x365ac0,'showSuggestButton':_0x4d5b5c});}[_0xdba7d6(0x105)](){const _0x38ace3=_0xdba7d6,_0x2072db=new _0x46a1f1(this[_0x38ace3(0x126)]);return _0x2072db[_0x38ace3(0xf2)]({'icon':_0x1284b1,'label':_0x3ab411(this[_0x38ace3(0x126)],_0x38ace3(0xec)),'isVisible':!0x0}),_0x2072db['on'](_0x38ace3(0xe2),()=>{const _0x21798b=_0x38ace3;this[_0x21798b(0xf9)](_0x21798b(0x121));}),_0x2072db;}[_0xdba7d6(0x115)](){const _0x57cbfc=_0xdba7d6,_0x43993c=new _0x46a1f1(this[_0x57cbfc(0x126)]);return _0x43993c[_0x57cbfc(0xf2)]({'icon':_0x2907f0,'label':_0x3ab411(this[_0x57cbfc(0x126)],_0x57cbfc(0x103)),'isVisible':!0x0}),_0x43993c['on'](_0x57cbfc(0xe2),()=>{const _0x38cdb5=_0x57cbfc;this[_0x38cdb5(0xf9)](_0x38cdb5(0xf7));}),_0x43993c;}}class ms extends _0x314798{constructor(_0x475f35,_0x21c405){const _0xf6b524=_0xdba7d6;super(_0x475f35),this[_0xf6b524(0x124)]({'tag':_0xf6b524(0x11b),'attributes':{'class':[_0xf6b524(0x127)]},'children':_0x21c405});}}
|
|
@@ -112,5 +112,9 @@ export declare class AIChatControlsView extends View {
|
|
|
112
112
|
/**
|
|
113
113
|
* Focuses the prompt input.
|
|
114
114
|
*/
|
|
115
|
-
focusPromptInput(): void;
|
|
115
|
+
focusPromptInput(useHighlight?: boolean): void;
|
|
116
|
+
/**
|
|
117
|
+
* Sets the value of the prompt input.
|
|
118
|
+
*/
|
|
119
|
+
setPromptInputValue(value: string): void;
|
|
116
120
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x8632de=_0x466d;(function(_0x209977,_0x19e245){const _0x29868c=_0x466d,_0x1e1777=_0x209977();while(!![]){try{const _0x397067=parseInt(_0x29868c(0x12c))/0x1+-parseInt(_0x29868c(0x129))/0x2+parseInt(_0x29868c(0x136))/0x3+parseInt(_0x29868c(0x106))/0x4+parseInt(_0x29868c(0x131))/0x5*(parseInt(_0x29868c(0x13b))/0x6)+parseInt(_0x29868c(0x145))/0x7*(-parseInt(_0x29868c(0x11c))/0x8)+parseInt(_0x29868c(0x105))/0x9;if(_0x397067===_0x19e245)break;else _0x1e1777['push'](_0x1e1777['shift']());}catch(_0x2b0b54){_0x1e1777['push'](_0x1e1777['shift']());}}}(_0x1936,0x2fd58));import{ButtonView as _0x5726bd,clickOutsideHandler as _0x49699a,View as _0x1299fa}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x4c15d3}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x5c6e7e}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x3cb8a3,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x1248ae}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x5713dd}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x361b52}from'../../aicore/utils/common-translations.js';function _0x466d(_0xe586f3,_0x49eba4){const _0x193660=_0x1936();return _0x466d=function(_0x466d0a,_0x506266){_0x466d0a=_0x466d0a-0x102;let _0x5774ac=_0x193660[_0x466d0a];return _0x5774ac;},_0x466d(_0xe586f3,_0x49eba4);}function _0x1936(){const _0x4b87c8=['queryView','setAddContextOptions','2489805kzueoT','9536wQKmPc','setWebSearch','toggleWebSearch','toggleReasoning','div','_createContextPanelView','setModel','_promptCapabilitiesView','isModelAvailable','ck-ai-chat-controls-disabled','setReasoning','startConversation','bindTemplate','change:isLoading','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','_createLoaderView','contextResourcesSearchInputVisibleFrom','setConversationContext','ck-hidden','addContextItem','abortPromptStream','_contextPanelView','24fSDWXn','populateSourceResourceBalloon','setInputPlaceholder','resetMessageInput','ck-ai-chat-controls__start-new-chat-button','_createPromptInputView','value','form','clearConversationContextItems','ck-ai-chat-controls-model-unavailable-message','fieldView','_modelUnavailableMessageView','_shouldRestorePromptInputFocus','313932VwEMSq','enableModelSelector','removeContextItem','26172ZqpEgv','ck-ai-chat-controls','reset','setIsUploadInProgress','delegate','142300aKCiRT','isDisabled','_createPromptCapabilitiesView','isLoading','execute','25122rnvsgX','updateResourceState','setModelList','_loaderView','element','30rkPrdM','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setPromptInputValue','sendUserMessage','setContextItemLoading','disableModelSelector','low','_handlePromptInputFocus','clearPendingContextUI','locale','240289xxUZjs','selectModel','addContextButtonView','closeSourceResourceBalloon','clearConversationContextUI','clearCurrentContextItems','focusPromptInput','_createModelUnavailableMessageView','setPlaceholderText','focus','setTemplate','bodyCollection','_promptInputView','set'];_0x1936=function(){return _0x4b87c8;};return _0x1936();}export class AIChatControlsView extends _0x1299fa{[_0x8632de(0x11b)];[_0x8632de(0x151)];[_0x8632de(0x10d)];[_0x8632de(0x139)];[_0x8632de(0x127)];[_0x8632de(0x128)];constructor(_0x4a5e4e,_0x8196d8){const _0x1b2791=_0x8632de;super(_0x4a5e4e),this[_0x1b2791(0x11b)]=this[_0x1b2791(0x10b)](_0x4a5e4e,{'bodyCollection':_0x8196d8[_0x1b2791(0x150)],'searchInputVisibleFrom':_0x8196d8[_0x1b2791(0x116)]}),this[_0x1b2791(0x151)]=this[_0x1b2791(0x121)](_0x4a5e4e),this[_0x1b2791(0x10d)]=this[_0x1b2791(0x133)](_0x4a5e4e),this[_0x1b2791(0x139)]=this[_0x1b2791(0x115)](_0x4a5e4e),this[_0x1b2791(0x127)]=this[_0x1b2791(0x14c)](_0x4a5e4e),this[_0x1b2791(0x128)]=!0x1,this[_0x1b2791(0x151)][_0x1b2791(0x130)](_0x1b2791(0x13e))['to'](this),this[_0x1b2791(0x139)][_0x1b2791(0x130)](_0x1b2791(0x11a))['to'](this),this[_0x1b2791(0x10d)][_0x1b2791(0x130)](_0x1b2791(0x108))['to'](this),this[_0x1b2791(0x10d)][_0x1b2791(0x130)](_0x1b2791(0x109))['to'](this),this[_0x1b2791(0x10d)][_0x1b2791(0x130)](_0x1b2791(0x146))['to'](this),this[_0x1b2791(0x11b)][_0x1b2791(0x130)](..._0x1248ae)['to'](this),this[_0x1b2791(0x102)](_0x1b2791(0x10e),!0x0),this[_0x1b2791(0x102)](_0x1b2791(0x132),!0x1);const _0x5d8c74=this[_0x1b2791(0x112)];this[_0x1b2791(0x14f)]({'tag':_0x1b2791(0x123),'attributes':{'class':['ck',_0x1b2791(0x12d),_0x5d8c74['if'](_0x1b2791(0x132),_0x1b2791(0x10f))]},'children':[{'tag':_0x1b2791(0x10a),'attributes':{'class':[_0x5d8c74['if'](_0x1b2791(0x134),_0x1b2791(0x118),_0x250a70=>_0x250a70||!this[_0x1b2791(0x10e)]),_0x5d8c74['if'](_0x1b2791(0x10e),_0x1b2791(0x118),_0x3f66f6=>!_0x3f66f6||this[_0x1b2791(0x134)])]},'children':[this[_0x1b2791(0x11b)],this[_0x1b2791(0x151)],this[_0x1b2791(0x10d)]]},{'tag':_0x1b2791(0x10a),'attributes':{'class':[_0x5d8c74['if'](_0x1b2791(0x134),_0x1b2791(0x118),_0xedb8bc=>!_0xedb8bc)]},'children':[this[_0x1b2791(0x139)]]},{'tag':_0x1b2791(0x10a),'attributes':{'class':[_0x5d8c74['if'](_0x1b2791(0x10e),_0x1b2791(0x118),_0x20d79d=>_0x20d79d)]},'children':[this[_0x1b2791(0x127)]]}]}),_0x49699a({'emitter':this[_0x1b2791(0x151)],'activator':()=>this[_0x1b2791(0x134)],'contextElements':()=>[this[_0x1b2791(0x13a)]],'callback':()=>{const _0xde4d0d=_0x1b2791;this[_0xde4d0d(0x128)]=!0x1;}}),this['on'](_0x1b2791(0x113),this[_0x1b2791(0x142)],{'priority':_0x1b2791(0x141)});}[_0x8632de(0x10b)](_0x51e08d,_0x2b4db9){return new _0x3cb8a3(_0x51e08d,_0x2b4db9);}[_0x8632de(0x121)](_0xe919c1){const _0x3dab18=_0x8632de;return new _0x4c15d3(_0xe919c1,this[_0x3dab18(0x11b)][_0x3dab18(0x147)]);}[_0x8632de(0x133)](_0x284d32){return new _0x5c6e7e(_0x284d32);}[_0x8632de(0x115)](_0x3742da){return new _0x5713dd(_0x3742da);}[_0x8632de(0x14c)](_0x4ba397){const _0x1892b2=_0x8632de,_0x101138=new As(_0x4ba397);return _0x101138[_0x1892b2(0x130)](_0x1892b2(0x111))['to'](this),_0x101138;}[_0x8632de(0x142)](_0x1f1aa8,_0x39a2f1,_0x1fcbac){const _0xbce0bd=_0x8632de;_0x1fcbac?this[_0xbce0bd(0x128)]=!0x0:this[_0xbce0bd(0x128)]&&this[_0xbce0bd(0x151)][_0xbce0bd(0x14e)]();}[_0x8632de(0x119)](_0x4ff424,_0x5a194a){const _0x571b29=_0x8632de;this[_0x571b29(0x11b)][_0x571b29(0x119)](_0x4ff424,_0x5a194a);}[_0x8632de(0x12b)](_0x44749a){const _0x173bfd=_0x8632de;this[_0x173bfd(0x11b)][_0x173bfd(0x12b)](_0x44749a);}[_0x8632de(0x13f)](_0x9f8efd,_0x131d48){const _0x581d81=_0x8632de;this[_0x581d81(0x11b)][_0x581d81(0x13f)](_0x9f8efd,_0x131d48);}[_0x8632de(0x12f)](_0x56115e){const _0x44397c=_0x8632de;this[_0x44397c(0x151)][_0x44397c(0x12f)](_0x56115e);}[_0x8632de(0x117)](_0x1db690){const _0x453256=_0x8632de;this[_0x453256(0x11b)][_0x453256(0x117)](_0x1db690);}[_0x8632de(0x143)](){const _0x1c0439=_0x8632de;this[_0x1c0439(0x11b)][_0x1c0439(0x14a)]();}[_0x8632de(0x149)](){const _0xbb26f9=_0x8632de;this[_0xbb26f9(0x11b)][_0xbb26f9(0x124)]();}[_0x8632de(0x137)](_0x321e74,_0x17f13b,_0x2f85c2){const _0x253e7e=_0x8632de;this[_0x253e7e(0x11b)][_0x253e7e(0x137)](_0x321e74,_0x17f13b,_0x2f85c2);}[_0x8632de(0x107)](_0x281a1e){const _0x387614=_0x8632de;this[_0x387614(0x10d)][_0x387614(0x107)](_0x281a1e);}[_0x8632de(0x110)](_0x344e36){const _0x4e54f6=_0x8632de;this[_0x4e54f6(0x10d)][_0x4e54f6(0x110)](_0x344e36);}[_0x8632de(0x11f)](){const _0x298bac=_0x8632de;this[_0x298bac(0x151)][_0x298bac(0x12e)]();}[_0x8632de(0x104)](_0x508d35){const _0x230b4d=_0x8632de;this[_0x230b4d(0x11b)][_0x230b4d(0x104)](_0x508d35);}[_0x8632de(0x11e)](_0x3f98a6){const _0x21bb4a=_0x8632de;this[_0x21bb4a(0x151)][_0x21bb4a(0x14d)](_0x3f98a6);}[_0x8632de(0x138)](_0x2102c2,_0x240b22){const _0x3d4653=_0x8632de;this[_0x3d4653(0x10d)][_0x3d4653(0x138)](_0x2102c2,_0x240b22);}[_0x8632de(0x10c)](_0x1dbd72){const _0x115407=_0x8632de;_0x1dbd72?(this[_0x115407(0x10e)]=!0x0,this[_0x115407(0x10d)][_0x115407(0x10c)](_0x1dbd72)):this[_0x115407(0x10e)]=!0x1;}[_0x8632de(0x12a)](){const _0x4b0a73=_0x8632de;this[_0x4b0a73(0x10d)][_0x4b0a73(0x12a)]();}[_0x8632de(0x140)](_0x186557){const _0x283426=_0x8632de;this[_0x283426(0x10d)][_0x283426(0x140)](_0x186557);}[_0x8632de(0x11d)](_0x2e8556,_0x5d41e5,_0x38d780,_0x2b8e52){const _0x16c3bd=_0x8632de;this[_0x16c3bd(0x11b)][_0x16c3bd(0x11d)](_0x2e8556,_0x5d41e5,_0x38d780,_0x2b8e52);}[_0x8632de(0x148)](_0x5db4b3){const _0x2281fd=_0x8632de;this[_0x2281fd(0x11b)][_0x2281fd(0x148)](_0x5db4b3);}[_0x8632de(0x14b)](_0x58e7a6=!0x1){const _0x20346d=_0x8632de;this[_0x20346d(0x151)][_0x20346d(0x14e)](_0x58e7a6);}[_0x8632de(0x13d)](_0x1b0238){const _0x18ec57=_0x8632de;this[_0x18ec57(0x151)][_0x18ec57(0x103)][_0x18ec57(0x126)][_0x18ec57(0x12e)](),this[_0x18ec57(0x151)][_0x18ec57(0x103)][_0x18ec57(0x126)][_0x18ec57(0x122)]=_0x1b0238;}}class As extends _0x1299fa{constructor(_0x164d5f){const _0x5037de=_0x8632de;super(_0x164d5f);const _0xed0c5e=new _0x5726bd(_0x164d5f);_0xed0c5e[_0x5037de(0x102)]({'label':_0x361b52(this[_0x5037de(0x144)],_0x5037de(0x13c)),'withText':!0x0,'class':[_0x5037de(0x120)],'tooltip':''}),_0xed0c5e[_0x5037de(0x130)](_0x5037de(0x135))['to'](this,_0x5037de(0x111)),this[_0x5037de(0x14f)]({'tag':_0x5037de(0x10a),'attributes':{'class':['ck',_0x5037de(0x125)]},'children':[{'tag':'p','children':[{'text':_0x361b52(this[_0x5037de(0x144)],_0x5037de(0x114))+'\x20'},_0xed0c5e]}]});}}
|
|
@@ -104,6 +104,10 @@ export declare class AIChatFeedView extends View {
|
|
|
104
104
|
* Removes an item from the feed.
|
|
105
105
|
*/
|
|
106
106
|
removeItem(id: string): void;
|
|
107
|
+
/**
|
|
108
|
+
* Checks if an item exists in the feed.
|
|
109
|
+
*/
|
|
110
|
+
hasItem(id: string): boolean;
|
|
107
111
|
scrollToSuggestion(replyId: string, partIndex: number): void;
|
|
108
112
|
setLoadingMessage(message: string): void;
|
|
109
113
|
/**
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x34f2cb=_0x37d7;(function(_0x290ee2,_0xf1af82){const _0xd90db7=_0x37d7,_0x16c876=_0x290ee2();while(!![]){try{const _0x232e12=parseInt(_0xd90db7(0x154))/0x1*(-parseInt(_0xd90db7(0x186))/0x2)+-parseInt(_0xd90db7(0x19a))/0x3*(parseInt(_0xd90db7(0x159))/0x4)+-parseInt(_0xd90db7(0x158))/0x5*(-parseInt(_0xd90db7(0x174))/0x6)+-parseInt(_0xd90db7(0x172))/0x7+-parseInt(_0xd90db7(0x197))/0x8+parseInt(_0xd90db7(0x191))/0x9+parseInt(_0xd90db7(0x188))/0xa;if(_0x232e12===_0xf1af82)break;else _0x16c876['push'](_0x16c876['shift']());}catch(_0x15ff23){_0x16c876['push'](_0x16c876['shift']());}}}(_0x3d37,0xce183));import{CKEditorError as _0x200892,logWarning as _0x30dbfb,scrollAncestorsToShowTarget as _0x4b192e}from'ckeditor5/src/utils.js';import{View as _0x4c3bcd}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5120dc}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x5600d4}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x290090}from'./feed/aichatfeedreplyitemview.js';function _0x3d37(){const _0x4ea1e0=['remove','span','1598896umIcDe','map','stopAutoScroll','9iVijXV','ai-chat-feed-view-item-not-a-suggestion-item','_bodyCollection','ai-chat-feed-view-item-not-a-reply-item','toggleLoadingSkeleton','scrollManager','startAutoScroll','_createSkeletonLoader','locale','ck-hidden','add','updateContent','aiFeed','interaction-header','extendTemplate','ck-ai-chat__feed','updateSources','12dXdnvQ','children','markAsDone','ai-reply','25blKIvd','267988DyChSA','forEach','removeItem','updateSuggestionItem','ck-ai-chat__loader-text','setSuggestionPartActive','ai-suggestion-reply','setTemplate','updatePartState','filter','ai-chat-feed-view-item-not-found','_createFeedItems','custom-element','options','scrollToSuggestion','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','delegate','isVisible','setLoadingMessage','updateWebSources','isPending','isLoadingSkeletonVisible','loadingMessage','_createFeedLoader','_createTemplateChildren','2927323YeTZKc','ck-ai-chat__feed__items','27444GscfOk','setPartActive','start','getItemById','getItemIds','updateSuggestionPartState','div','ck-ai-chat__loader','destroy','parentElement','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','find','render','markItemAsDone','createCollection','user-message','bindTemplate','includes','244884uyUYRQ','set','21283800YPuOZS','getPartView','bind','isTrackChangesOn','addItem','element','_setupTemplate','stop','_createLoaderChildren','8831331vvLYXa','clear','updateReplyItem','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found'];_0x3d37=function(){return _0x4ea1e0;};return _0x3d37();}import{AIChatFeedUserMessageItemView as _0x237dd5}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4399d9}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x5d6639}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4a4cb8}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4e9703,SKELETON_DEFINITIONS as _0x1fff22}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x58c02e}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x27e3c8}from'./feed/aichatfeedcustomelementview.js';function _0x37d7(_0x2b2528,_0x26d407){const _0x3d3790=_0x3d37();return _0x37d7=function(_0x37d728,_0x154ad2){_0x37d728=_0x37d728-0x14c;let _0x20846a=_0x3d3790[_0x37d728];return _0x20846a;},_0x37d7(_0x2b2528,_0x26d407);}export class AIChatFeedView extends _0x4c3bcd{[_0x34f2cb(0x155)];[_0x34f2cb(0x19f)];[_0x34f2cb(0x19c)];constructor(_0x1136ea,_0x1db11c){const _0x5f43c9=_0x34f2cb;super(_0x1136ea),this[_0x5f43c9(0x19c)]=_0x1db11c,this[_0x5f43c9(0x187)](_0x5f43c9(0x16d),!0x1),this[_0x5f43c9(0x187)](_0x5f43c9(0x16f),''),this[_0x5f43c9(0x187)](_0x5f43c9(0x16e),!0x1),this[_0x5f43c9(0x187)](_0x5f43c9(0x18b),!0x1),this[_0x5f43c9(0x155)]=this[_0x5f43c9(0x182)](),this[_0x5f43c9(0x155)][_0x5f43c9(0x169)](..._0x5120dc)['to'](this),this[_0x5f43c9(0x18e)]();}[_0x34f2cb(0x180)](){const _0xe00b4b=_0x34f2cb;super[_0xe00b4b(0x180)](),this[_0xe00b4b(0x19f)]=new _0x4a4cb8(this[_0xe00b4b(0x18d)]);}[_0x34f2cb(0x17c)](){const _0x415ba0=_0x34f2cb;super[_0x415ba0(0x17c)](),this[_0x415ba0(0x19f)][_0x415ba0(0x17c)]();}[_0x34f2cb(0x192)](){const _0x9bbd79=_0x34f2cb;this[_0x9bbd79(0x155)][_0x9bbd79(0x192)]();}[_0x34f2cb(0x18c)](_0x47c949,_0x29d094){const _0xf805c0=_0x34f2cb;let _0x45dff2;return _0xf805c0(0x157)===_0x47c949?_0x45dff2=new _0x290090(this[_0xf805c0(0x1a2)],_0x29d094,this[_0xf805c0(0x19c)]):_0xf805c0(0x15f)===_0x47c949?(_0x45dff2=new _0x5600d4(this[_0xf805c0(0x1a2)],_0x29d094,this[_0xf805c0(0x19c)]),_0x45dff2[_0xf805c0(0x18a)](_0xf805c0(0x18b))['to'](this)):_0x45dff2=_0xf805c0(0x183)===_0x47c949?new _0x237dd5(this[_0xf805c0(0x1a2)],_0x29d094,this[_0xf805c0(0x19c)]):_0xf805c0(0x150)===_0x47c949?new _0x5d6639(this[_0xf805c0(0x1a2)],_0x29d094):_0xf805c0(0x165)===_0x47c949?new _0x27e3c8(_0x29d094):new _0x4399d9(_0x29d094),this[_0xf805c0(0x155)][_0xf805c0(0x14d)](_0x45dff2),_0x45dff2;}async[_0x34f2cb(0x193)]({id:_0x2de315,parsedContent:_0x8495ca,renderingStrategy:_0xf7a8d6,abortSignal:_0x5625fa}){const _0x1e97e7=_0x34f2cb,_0x550e6c=this[_0x1e97e7(0x177)](_0x2de315);if(!(_0x550e6c instanceof _0x290090))throw new _0x200892(_0x1e97e7(0x19d),null,{'itemView':_0x550e6c,'id':_0x2de315,'parsedContent':_0x8495ca});await _0x550e6c[_0x1e97e7(0x14e)]({'parsedContent':_0x8495ca,'renderingStrategy':_0xf7a8d6,'abortSignal':_0x5625fa});}async[_0x34f2cb(0x16c)](_0x411b66,_0x6f7c47){const _0x238820=_0x34f2cb,_0x1039e7=this[_0x238820(0x177)](_0x411b66);if(_0x1039e7 instanceof _0x5600d4)_0x1039e7[_0x238820(0x153)](_0x6f7c47);else{if(!(_0x1039e7 instanceof _0x290090))throw new _0x200892(_0x238820(0x17e),null,{'itemView':_0x1039e7,'id':_0x411b66,'sources':_0x6f7c47});_0x1039e7[_0x238820(0x153)](_0x6f7c47);}}async[_0x34f2cb(0x15c)]({id:_0xdf52db,parts:_0x23fab5,renderingStrategy:_0x4892cb,abortSignal:_0xd18a00}){const _0xd1b9c2=_0x34f2cb,_0x4f0626=this[_0xd1b9c2(0x177)](_0xdf52db);if(!(_0x4f0626 instanceof _0x5600d4))throw new _0x200892(_0xd1b9c2(0x19b),null,{'itemView':_0x4f0626,'id':_0xdf52db,'parts':_0x23fab5});await _0x4f0626[_0xd1b9c2(0x14e)]({'parts':_0x23fab5,'renderingStrategy':_0x4892cb,'abortSignal':_0xd18a00});}[_0x34f2cb(0x179)]({id:_0x1b47b5,index:_0x495ffb,state:_0x2d8d58}){const _0x1e39ce=_0x34f2cb,_0x526d8f=this[_0x1e39ce(0x177)](_0x1b47b5);if(!(_0x526d8f instanceof _0x5600d4))throw new _0x200892(_0x1e39ce(0x19b),this,{'id':_0x1b47b5});_0x526d8f[_0x1e39ce(0x161)](_0x495ffb,_0x2d8d58);}[_0x34f2cb(0x15e)]({id:_0x394590,index:_0x291a57,isActive:_0x1582e3}){const _0x4909d1=_0x34f2cb,_0x5ab887=this[_0x4909d1(0x177)](_0x394590);if(!(_0x5ab887 instanceof _0x5600d4))throw new _0x200892(_0x4909d1(0x19b),this,{'id':_0x394590});this[_0x4909d1(0x155)][_0x4909d1(0x162)](_0x20fc9d=>_0x20fc9d instanceof _0x5600d4)[_0x4909d1(0x15a)](_0x1b666e=>{const _0x2e5a31=_0x4909d1;_0x1b666e[_0x2e5a31(0x175)](!0x1);}),_0x5ab887[_0x4909d1(0x175)](_0x291a57,_0x1582e3);}[_0x34f2cb(0x181)](_0x2373bd){const _0x3dc28c=_0x34f2cb;this[_0x3dc28c(0x177)](_0x2373bd)[_0x3dc28c(0x156)]();}[_0x34f2cb(0x178)](){const _0x449d63=_0x34f2cb;return this[_0x449d63(0x155)][_0x449d63(0x198)](_0x278d59=>_0x278d59[_0x449d63(0x166)]['id']);}[_0x34f2cb(0x15b)](_0xb655ea){const _0x3ced64=_0x34f2cb;this[_0x3ced64(0x155)][_0x3ced64(0x195)](this[_0x3ced64(0x177)](_0xb655ea));}[_0x34f2cb(0x167)](_0x2541e0,_0x13364c){const _0x226c01=_0x34f2cb,_0x4b29b2=this[_0x226c01(0x177)](_0x2541e0);if(!(_0x4b29b2 instanceof _0x5600d4))return void _0x30dbfb(_0x226c01(0x168),{'replyId':_0x2541e0,'partIndex':_0x13364c});const _0x23127c=_0x4b29b2[_0x226c01(0x189)](_0x13364c);_0x23127c?_0x4b192e(_0x23127c[_0x226c01(0x18d)],0x14,this[_0x226c01(0x18d)][_0x226c01(0x17d)],!0x0,!0x0):_0x30dbfb(_0x226c01(0x194),{'replyId':_0x2541e0,'partIndex':_0x13364c});}[_0x34f2cb(0x18e)](){const _0x350177=_0x34f2cb;this[_0x350177(0x160)]({'tag':_0x350177(0x17a),'attributes':{'class':['ck',_0x350177(0x152)]},'children':this[_0x350177(0x171)]()});}[_0x34f2cb(0x171)](){const _0x4f8c2f=_0x34f2cb,_0x10e21b=this[_0x4f8c2f(0x1a1)]();return[this[_0x4f8c2f(0x164)](),_0x10e21b,this[_0x4f8c2f(0x170)]()];}[_0x34f2cb(0x1a1)](){const _0x5b889d=_0x34f2cb,_0x4db098=new _0x4e9703(this[_0x5b889d(0x1a2)],_0x1fff22[_0x5b889d(0x14f)]);return _0x4db098[_0x5b889d(0x151)]({'attributes':{'class':[this[_0x5b889d(0x184)]['if'](_0x5b889d(0x16e),_0x5b889d(0x14c),_0xc0f1c6=>!_0xc0f1c6)]}}),_0x4db098;}[_0x34f2cb(0x164)](){const _0x29b04d=_0x34f2cb,_0x1eafbf=new _0x4c3bcd(this[_0x29b04d(0x1a2)]);return _0x1eafbf[_0x29b04d(0x160)]({'tag':_0x29b04d(0x17a),'attributes':{'class':['ck',_0x29b04d(0x173),this[_0x29b04d(0x184)]['if'](_0x29b04d(0x16e),_0x29b04d(0x14c))]},'children':this[_0x29b04d(0x155)]}),_0x1eafbf;}[_0x34f2cb(0x170)](){const _0x35d2f5=_0x34f2cb,_0x48c158=new _0x4c3bcd(this[_0x35d2f5(0x1a2)]);return _0x48c158[_0x35d2f5(0x160)]({'tag':_0x35d2f5(0x17a),'attributes':{'class':['ck',_0x35d2f5(0x17b),this[_0x35d2f5(0x184)]['if'](_0x35d2f5(0x16d),_0x35d2f5(0x14c),_0x438183=>!_0x438183)]},'children':this[_0x35d2f5(0x190)]()}),_0x48c158;}[_0x34f2cb(0x190)](){const _0x5e35a9=_0x34f2cb,_0x3c1e78=new _0x58c02e();return _0x3c1e78[_0x5e35a9(0x16a)]=!0x0,[_0x3c1e78,{'tag':_0x5e35a9(0x196),'attributes':{'class':['ck',_0x5e35a9(0x15d)]},'children':[{'text':this[_0x5e35a9(0x184)]['to'](_0x5e35a9(0x16f))}]}];}[_0x34f2cb(0x177)](_0x559877){const _0x3c65e3=_0x34f2cb,_0x3e5c5a=this[_0x3c65e3(0x155)][_0x3c65e3(0x17f)](_0x3c7b2f=>_0x3c7b2f[_0x3c65e3(0x166)]['id'][_0x3c65e3(0x185)](_0x559877));if(!_0x3e5c5a)throw new _0x200892(_0x3c65e3(0x163),this,{'id':_0x559877});return _0x3e5c5a;}[_0x34f2cb(0x16b)](_0x36ddb9){const _0x541915=_0x34f2cb;this[_0x541915(0x187)](_0x541915(0x16f),_0x36ddb9);}[_0x34f2cb(0x19e)](_0x59a451){const _0x4267c1=_0x34f2cb;this[_0x4267c1(0x187)](_0x4267c1(0x16e),_0x59a451);}[_0x34f2cb(0x1a0)](){const _0x3e8781=_0x34f2cb;this[_0x3e8781(0x19f)][_0x3e8781(0x176)]();}[_0x34f2cb(0x199)](){const _0x41ac96=_0x34f2cb;this[_0x41ac96(0x19f)][_0x41ac96(0x18f)]();}}
|
|
23
|
+
const _0x56d246=_0x2e65;(function(_0x1d1ab5,_0x1e28b6){const _0x780e0c=_0x2e65,_0x56d698=_0x1d1ab5();while(!![]){try{const _0x56d1b6=parseInt(_0x780e0c(0x11c))/0x1*(parseInt(_0x780e0c(0x12e))/0x2)+-parseInt(_0x780e0c(0x104))/0x3*(-parseInt(_0x780e0c(0xf2))/0x4)+parseInt(_0x780e0c(0x119))/0x5*(parseInt(_0x780e0c(0xf4))/0x6)+-parseInt(_0x780e0c(0x12d))/0x7+parseInt(_0x780e0c(0x101))/0x8*(parseInt(_0x780e0c(0x12a))/0x9)+-parseInt(_0x780e0c(0xf0))/0xa+-parseInt(_0x780e0c(0x10b))/0xb*(parseInt(_0x780e0c(0xe7))/0xc);if(_0x56d1b6===_0x1e28b6)break;else _0x56d698['push'](_0x56d698['shift']());}catch(_0x58a818){_0x56d698['push'](_0x56d698['shift']());}}}(_0x7045,0xef7fa));import{CKEditorError as _0x5be301,logWarning as _0x490672,scrollAncestorsToShowTarget as _0x2cfb00}from'ckeditor5/src/utils.js';import{View as _0x3263ad}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x466188}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x43cde1}from'./feed/aichatfeedsuggestionitemview.js';function _0x7045(){const _0x10a66e=['ck-ai-chat__feed__items','_setupTemplate','388883OcYIdf','ck-ai-chat__loader','forEach','loadingMessage','destroy','isPending','remove','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','updateSuggestionItem','createCollection','hasItem','isTrackChangesOn','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','children','16595kKWTOE','startAutoScroll','options','46855dNPTYt','getItemIds','filter','map','_createLoaderChildren','clear','markAsDone','div','ai-chat-feed-view-item-not-a-reply-item','stopAutoScroll','updatePartState','_createTemplateChildren','user-message','scrollToSuggestion','223020MLNVHc','updateSources','updateReplyItem','2871260budumL','62epJgqt','ai-chat-feed-view-item-not-a-suggestion-item','_createSkeletonLoader','find','_bodyCollection','markItemAsDone','toggleLoadingSkeleton','_createFeedLoader','element','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','isVisible','_createFeedItems','ai-chat-feed-view-item-not-found','locale','addItem','extendTemplate','isLoadingSkeletonVisible','ck-hidden','start','852DhnaTa','getItemById','add','getPartView','setTemplate','aiFeed','includes','updateContent','setLoadingMessage','5439120oXXgja','custom-element','3924IUxwJH','setPartActive','2994naNqci','stop','set','updateSuggestionPartState','bindTemplate','render','interaction-header','ai-reply','scrollManager','ck-ai-chat__loader-text','removeItem','ai-suggestion-reply','parentElement','72FpTxGP','setSuggestionPartActive','updateWebSources','3405QTuQWH','ck-ai-chat__feed','bind','span','delegate'];_0x7045=function(){return _0x10a66e;};return _0x7045();}import{AIChatFeedReplyItemView as _0x4ead9b}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x3150f5}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x527d9c}from'./feed/aichatfeederroritemview.js';function _0x2e65(_0x5a2841,_0x472611){const _0x704523=_0x7045();return _0x2e65=function(_0x2e650c,_0xb28dc2){_0x2e650c=_0x2e650c-0xd5;let _0x21bec1=_0x704523[_0x2e650c];return _0x21bec1;},_0x2e65(_0x5a2841,_0x472611);}import{AIChatFeedInteractionHeaderView as _0x52cc34}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4544bd}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4000c5,SKELETON_DEFINITIONS as _0x1b137e}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x58870a}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x528d39}from'./feed/aichatfeedcustomelementview.js';export class AIChatFeedView extends _0x3263ad{[_0x56d246(0x118)];[_0x56d246(0xfc)];[_0x56d246(0xd8)];constructor(_0x50bdde,_0x3a761f){const _0x3a439e=_0x56d246;super(_0x50bdde),this[_0x3a439e(0xd8)]=_0x3a761f,this[_0x3a439e(0xf6)](_0x3a439e(0x110),!0x1),this[_0x3a439e(0xf6)](_0x3a439e(0x10e),''),this[_0x3a439e(0xf6)](_0x3a439e(0xe4),!0x1),this[_0x3a439e(0xf6)](_0x3a439e(0x116),!0x1),this[_0x3a439e(0x118)]=this[_0x3a439e(0x114)](),this[_0x3a439e(0x118)][_0x3a439e(0x108)](..._0x466188)['to'](this),this[_0x3a439e(0x10a)]();}[_0x56d246(0xf9)](){const _0x4102cc=_0x56d246;super[_0x4102cc(0xf9)](),this[_0x4102cc(0xfc)]=new _0x4544bd(this[_0x4102cc(0xdc)]);}[_0x56d246(0x10f)](){const _0x44487a=_0x56d246;super[_0x44487a(0x10f)](),this[_0x44487a(0xfc)][_0x44487a(0x10f)]();}[_0x56d246(0x121)](){const _0x5b6d6f=_0x56d246;this[_0x5b6d6f(0x118)][_0x5b6d6f(0x121)]();}[_0x56d246(0xe2)](_0x3a22c2,_0x551d9b){const _0x595c0=_0x56d246;let _0x2befd2;return _0x595c0(0xfb)===_0x3a22c2?_0x2befd2=new _0x4ead9b(this[_0x595c0(0xe1)],_0x551d9b,this[_0x595c0(0xd8)]):_0x595c0(0xff)===_0x3a22c2?(_0x2befd2=new _0x43cde1(this[_0x595c0(0xe1)],_0x551d9b,this[_0x595c0(0xd8)]),_0x2befd2[_0x595c0(0x106)](_0x595c0(0x116))['to'](this)):_0x2befd2=_0x595c0(0x128)===_0x3a22c2?new _0x3150f5(this[_0x595c0(0xe1)],_0x551d9b,this[_0x595c0(0xd8)]):_0x595c0(0xfa)===_0x3a22c2?new _0x52cc34(this[_0x595c0(0xe1)],_0x551d9b):_0x595c0(0xf1)===_0x3a22c2?new _0x528d39(_0x551d9b):new _0x527d9c(_0x551d9b),this[_0x595c0(0x118)][_0x595c0(0xe9)](_0x2befd2),_0x2befd2;}async[_0x56d246(0x12c)]({id:_0x19685a,parsedContent:_0x5d3ec7,renderingStrategy:_0x645317,abortSignal:_0x17668c}){const _0x2ff827=_0x56d246,_0x5ebeda=this[_0x2ff827(0xe8)](_0x19685a);if(!(_0x5ebeda instanceof _0x4ead9b))throw new _0x5be301(_0x2ff827(0x124),null,{'itemView':_0x5ebeda,'id':_0x19685a,'parsedContent':_0x5d3ec7});await _0x5ebeda[_0x2ff827(0xee)]({'parsedContent':_0x5d3ec7,'renderingStrategy':_0x645317,'abortSignal':_0x17668c});}async[_0x56d246(0x103)](_0x3b5f4b,_0x42cefc){const _0x3dc4e7=_0x56d246,_0x44d4a9=this[_0x3dc4e7(0xe8)](_0x3b5f4b);if(_0x44d4a9 instanceof _0x43cde1)_0x44d4a9[_0x3dc4e7(0x12b)](_0x42cefc);else{if(!(_0x44d4a9 instanceof _0x4ead9b))throw new _0x5be301(_0x3dc4e7(0x112),null,{'itemView':_0x44d4a9,'id':_0x3b5f4b,'sources':_0x42cefc});_0x44d4a9[_0x3dc4e7(0x12b)](_0x42cefc);}}async[_0x56d246(0x113)]({id:_0x3596fa,parts:_0x1834fd,renderingStrategy:_0xfbe15,abortSignal:_0x2d6087}){const _0x4b75d6=_0x56d246,_0x55def3=this[_0x4b75d6(0xe8)](_0x3596fa);if(!(_0x55def3 instanceof _0x43cde1))throw new _0x5be301(_0x4b75d6(0xd5),null,{'itemView':_0x55def3,'id':_0x3596fa,'parts':_0x1834fd});await _0x55def3[_0x4b75d6(0xee)]({'parts':_0x1834fd,'renderingStrategy':_0xfbe15,'abortSignal':_0x2d6087});}[_0x56d246(0xf7)]({id:_0x27f7ad,index:_0xb3b57e,state:_0xb0dc64}){const _0x30cb8e=_0x56d246,_0x5a1e31=this[_0x30cb8e(0xe8)](_0x27f7ad);if(!(_0x5a1e31 instanceof _0x43cde1))throw new _0x5be301(_0x30cb8e(0xd5),this,{'id':_0x27f7ad});_0x5a1e31[_0x30cb8e(0x126)](_0xb3b57e,_0xb0dc64);}[_0x56d246(0x102)]({id:_0x4b87d1,index:_0x105c2a,isActive:_0x13e605}){const _0x46f47e=_0x56d246,_0xfb906a=this[_0x46f47e(0xe8)](_0x4b87d1);if(!(_0xfb906a instanceof _0x43cde1))throw new _0x5be301(_0x46f47e(0xd5),this,{'id':_0x4b87d1});this[_0x46f47e(0x118)][_0x46f47e(0x11e)](_0x16ffd1=>_0x16ffd1 instanceof _0x43cde1)[_0x46f47e(0x10d)](_0x51d8ee=>{const _0x28eacc=_0x46f47e;_0x51d8ee[_0x28eacc(0xf3)](!0x1);}),_0xfb906a[_0x46f47e(0xf3)](_0x105c2a,_0x13e605);}[_0x56d246(0xd9)](_0x4e1195){const _0x73edb5=_0x56d246;this[_0x73edb5(0xe8)](_0x4e1195)[_0x73edb5(0x122)]();}[_0x56d246(0x11d)](){const _0x160616=_0x56d246;return this[_0x160616(0x118)][_0x160616(0x11f)](_0x2b83c0=>_0x2b83c0[_0x160616(0x11b)]['id']);}[_0x56d246(0xfe)](_0x576842){const _0x3ef950=_0x56d246;this[_0x3ef950(0x118)][_0x3ef950(0x111)](this[_0x3ef950(0xe8)](_0x576842));}[_0x56d246(0x115)](_0x3f317e){const _0x3691c9=_0x56d246;return!!this[_0x3691c9(0x118)][_0x3691c9(0xd7)](_0x4480ce=>_0x4480ce[_0x3691c9(0x11b)]['id'][_0x3691c9(0xed)](_0x3f317e));}[_0x56d246(0x129)](_0xa93781,_0x57d15f){const _0x3e5562=_0x56d246,_0x4dfa7d=this[_0x3e5562(0xe8)](_0xa93781);if(!(_0x4dfa7d instanceof _0x43cde1))return void _0x490672(_0x3e5562(0xdd),{'replyId':_0xa93781,'partIndex':_0x57d15f});const _0x1a4db9=_0x4dfa7d[_0x3e5562(0xea)](_0x57d15f);_0x1a4db9?_0x2cfb00(_0x1a4db9[_0x3e5562(0xdc)],0x14,this[_0x3e5562(0xdc)][_0x3e5562(0x100)],!0x0,!0x0):_0x490672(_0x3e5562(0x117),{'replyId':_0xa93781,'partIndex':_0x57d15f});}[_0x56d246(0x10a)](){const _0x4f5ec4=_0x56d246;this[_0x4f5ec4(0xeb)]({'tag':_0x4f5ec4(0x123),'attributes':{'class':['ck',_0x4f5ec4(0x105)]},'children':this[_0x4f5ec4(0x127)]()});}[_0x56d246(0x127)](){const _0x572774=_0x56d246,_0x45f39a=this[_0x572774(0xd6)]();return[this[_0x572774(0xdf)](),_0x45f39a,this[_0x572774(0xdb)]()];}[_0x56d246(0xd6)](){const _0x15d6eb=_0x56d246,_0x5b4bb3=new _0x4000c5(this[_0x15d6eb(0xe1)],_0x1b137e[_0x15d6eb(0xec)]);return _0x5b4bb3[_0x15d6eb(0xe3)]({'attributes':{'class':[this[_0x15d6eb(0xf8)]['if'](_0x15d6eb(0xe4),_0x15d6eb(0xe5),_0x58c5d5=>!_0x58c5d5)]}}),_0x5b4bb3;}[_0x56d246(0xdf)](){const _0x587423=_0x56d246,_0x53516a=new _0x3263ad(this[_0x587423(0xe1)]);return _0x53516a[_0x587423(0xeb)]({'tag':_0x587423(0x123),'attributes':{'class':['ck',_0x587423(0x109),this[_0x587423(0xf8)]['if'](_0x587423(0xe4),_0x587423(0xe5))]},'children':this[_0x587423(0x118)]}),_0x53516a;}[_0x56d246(0xdb)](){const _0x343d80=_0x56d246,_0x308793=new _0x3263ad(this[_0x343d80(0xe1)]);return _0x308793[_0x343d80(0xeb)]({'tag':_0x343d80(0x123),'attributes':{'class':['ck',_0x343d80(0x10c),this[_0x343d80(0xf8)]['if'](_0x343d80(0x110),_0x343d80(0xe5),_0x587270=>!_0x587270)]},'children':this[_0x343d80(0x120)]()}),_0x308793;}[_0x56d246(0x120)](){const _0x4c40e2=_0x56d246,_0x48916d=new _0x58870a();return _0x48916d[_0x4c40e2(0xde)]=!0x0,[_0x48916d,{'tag':_0x4c40e2(0x107),'attributes':{'class':['ck',_0x4c40e2(0xfd)]},'children':[{'text':this[_0x4c40e2(0xf8)]['to'](_0x4c40e2(0x10e))}]}];}[_0x56d246(0xe8)](_0x342654){const _0x1b02a2=_0x56d246,_0x4c6c3a=this[_0x1b02a2(0x118)][_0x1b02a2(0xd7)](_0x29ce8d=>_0x29ce8d[_0x1b02a2(0x11b)]['id'][_0x1b02a2(0xed)](_0x342654));if(!_0x4c6c3a)throw new _0x5be301(_0x1b02a2(0xe0),this,{'id':_0x342654});return _0x4c6c3a;}[_0x56d246(0xef)](_0x4380d3){const _0x1655e7=_0x56d246;this[_0x1655e7(0xf6)](_0x1655e7(0x10e),_0x4380d3);}[_0x56d246(0xda)](_0x11d24c){const _0x267c94=_0x56d246;this[_0x267c94(0xf6)](_0x267c94(0xe4),_0x11d24c);}[_0x56d246(0x11a)](){const _0x1018e6=_0x56d246;this[_0x1018e6(0xfc)][_0x1018e6(0xe6)]();}[_0x56d246(0x125)](){const _0x361d5e=_0x56d246;this[_0x361d5e(0xfc)][_0x361d5e(0xf5)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x140626=_0x3eb9;function _0x3eb9(_0x1e2720,_0x3929b6){const _0x3b95c6=_0x3b95();return _0x3eb9=function(_0x3eb9ca,_0x3696e5){_0x3eb9ca=_0x3eb9ca-0x139;let _0x5da752=_0x3b95c6[_0x3eb9ca];return _0x5da752;},_0x3eb9(_0x1e2720,_0x3929b6);}(function(_0x274664,_0x5aff3d){const _0x5d2c50=_0x3eb9,_0x586d7f=_0x274664();while(!![]){try{const _0x2d7157=-parseInt(_0x5d2c50(0x13f))/0x1*(-parseInt(_0x5d2c50(0x14e))/0x2)+-parseInt(_0x5d2c50(0x13b))/0x3+-parseInt(_0x5d2c50(0x139))/0x4+parseInt(_0x5d2c50(0x14f))/0x5+-parseInt(_0x5d2c50(0x13d))/0x6*(parseInt(_0x5d2c50(0x14c))/0x7)+parseInt(_0x5d2c50(0x13c))/0x8+-parseInt(_0x5d2c50(0x145))/0x9*(parseInt(_0x5d2c50(0x142))/0xa);if(_0x2d7157===_0x5aff3d)break;else _0x586d7f['push'](_0x586d7f['shift']());}catch(_0x53fa35){_0x586d7f['push'](_0x586d7f['shift']());}}}(_0x3b95,0x93494));import{ButtonView as _0x1208e6,FormHeaderView as _0x29f637}from'ckeditor5/src/ui.js';import{IconPlus as _0x708ef2,IconAIChat as _0x5d7fc8}from'ckeditor5/src/icons.js';import{getTranslation as _0x5f36d6}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x57dc9f}from'../../aicore/utils/createresizebutton.js';function _0x3b95(){const _0x1539a2=['852005Ghdcqf','_createStartConversationButton','locale','274680dBWBZY','AI_CHAT_LABEL_NEW_CHAT','2074293RvcktJ','8442032EIadcV','1668pawLIB','execute','335782HdftGT','resizeButton','isMaximized','20HTBXib','startConversation','children','1527804Bifwjp','set','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_HEADING','add','fire','conversationStartButton','4893YbDOUF','ck-ai-chat__start-conversation','4PoByYa'];_0x3b95=function(){return _0x1539a2;};return _0x3b95();}export class AIChatHeaderView extends _0x29f637{[_0x140626(0x14b)];[_0x140626(0x140)];constructor(_0x12d55b,_0x239ca0){const _0xf3b4ba=_0x140626;super(_0x12d55b,{'label':_0x5f36d6(_0x12d55b,_0xf3b4ba(0x148)),'class':_0xf3b4ba(0x147),'icon':_0x5d7fc8}),this[_0xf3b4ba(0x146)](_0xf3b4ba(0x141),!0x1),this[_0xf3b4ba(0x14b)]=this[_0xf3b4ba(0x150)](_0x12d55b),this[_0xf3b4ba(0x144)][_0xf3b4ba(0x149)](this[_0xf3b4ba(0x14b)]),_0x239ca0&&(this[_0xf3b4ba(0x140)]=_0x57dc9f(_0x12d55b,this),this[_0xf3b4ba(0x144)][_0xf3b4ba(0x149)](this[_0xf3b4ba(0x140)]));}[_0x140626(0x150)](_0x1d5065){const _0x17c3f2=_0x140626,_0x58bc14=new _0x1208e6(_0x1d5065);return _0x58bc14[_0x17c3f2(0x146)]({'label':_0x5f36d6(this[_0x17c3f2(0x151)],_0x17c3f2(0x13a)),'withText':!0x0,'icon':_0x708ef2,'class':_0x17c3f2(0x14d)}),_0x58bc14['on'](_0x17c3f2(0x13e),()=>{const _0x3f17a2=_0x17c3f2;this[_0x3f17a2(0x14a)](_0x3f17a2(0x143));}),_0x58bc14;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x4eda08=_0x3693;(function(_0x419a43,_0x435570){var _0x1b7674=_0x3693,_0x21a197=_0x419a43();while(!![]){try{var _0xe7d8a9=parseInt(_0x1b7674(0x96))/0x1+parseInt(_0x1b7674(0x85))/0x2+-parseInt(_0x1b7674(0x8a))/0x3*(parseInt(_0x1b7674(0x97))/0x4)+-parseInt(_0x1b7674(0x95))/0x5+-parseInt(_0x1b7674(0x9e))/0x6+-parseInt(_0x1b7674(0x9f))/0x7+parseInt(_0x1b7674(0x8e))/0x8;if(_0xe7d8a9===_0x435570)break;else _0x21a197['push'](_0x21a197['shift']());}catch(_0x4a15c2){_0x21a197['push'](_0x21a197['shift']());}}}(_0x8b65,0x4a6e0));import{View as _0x32ac65,BodyCollection as _0xdc651}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x310305}from'../utils/eventnames.js';import{AIChatFeedView as _0x34918d}from'./aichatfeedview.js';function _0x8b65(){var _0x415403=['2270478uNQHbd','2239125lwyLdl','313808rUSZfI','closeSourceResourceBalloon','chatHeader','attachToDom','ck-reset_all','1423020wJcvAS','div','delegate','chatDisclaimer','10845760NhDRsO','ck-rounded-corners','showResizeButton','_bodyCollection','chatControls','chatFeed','setTemplate','254350YdIEga','15738lJawRd','4AOvaVR','detachFromDom','ck-ai-chat','populateSourceResourceBalloon','destroy','uiLanguageDirection','contextResourcesSearchInputVisibleFrom'];_0x8b65=function(){return _0x415403;};return _0x8b65();}import{AIChatControlsView as _0x1df1ed}from'./aichatcontrolsview.js';function _0x3693(_0x2712ee,_0x226eb2){var _0x8b65ae=_0x8b65();return _0x3693=function(_0x36939b,_0x2cec89){_0x36939b=_0x36939b-0x85;var _0x571545=_0x8b65ae[_0x36939b];return _0x571545;},_0x3693(_0x2712ee,_0x226eb2);}import{AIChatHeaderView as _0xddbeed}from'./aichatheaderview.js';import{AIDisclaimerView as _0x749c2a}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x32ac65{[_0x4eda08(0x87)];[_0x4eda08(0x93)];[_0x4eda08(0x92)];[_0x4eda08(0x8d)];[_0x4eda08(0x91)];constructor(_0x395db3,_0x3be1f6){var _0x50ff0a=_0x4eda08;super(_0x395db3),this[_0x50ff0a(0x91)]=new _0xdc651(_0x395db3),this[_0x50ff0a(0x91)][_0x50ff0a(0x88)](),this[_0x50ff0a(0x87)]=new _0xddbeed(_0x395db3,_0x3be1f6[_0x50ff0a(0x90)]),this[_0x50ff0a(0x87)][_0x50ff0a(0x8c)](..._0x310305)['to'](this),this[_0x50ff0a(0x93)]=new _0x34918d(_0x395db3,this[_0x50ff0a(0x91)]),this[_0x50ff0a(0x93)][_0x50ff0a(0x8c)](..._0x310305)['to'](this),this[_0x50ff0a(0x92)]=new _0x1df1ed(_0x395db3,{'bodyCollection':this[_0x50ff0a(0x91)],'contextResourcesSearchInputVisibleFrom':_0x3be1f6[_0x50ff0a(0x9d)]}),this[_0x50ff0a(0x92)][_0x50ff0a(0x8c)](..._0x310305)['to'](this),this[_0x50ff0a(0x8d)]=new _0x749c2a(_0x395db3),this[_0x50ff0a(0x94)]({'tag':_0x50ff0a(0x8b),'attributes':{'class':['ck',_0x50ff0a(0x89),_0x50ff0a(0x99),_0x50ff0a(0x8f)],'dir':_0x395db3[_0x50ff0a(0x9c)]},'children':[this[_0x50ff0a(0x87)],this[_0x50ff0a(0x93)],this[_0x50ff0a(0x92)],this[_0x50ff0a(0x8d)]]});}[_0x4eda08(0x9a)](_0x35f92e,_0x2c9006,_0x1c3cca,_0x1624ce){var _0x340df9=_0x4eda08;this[_0x340df9(0x92)][_0x340df9(0x9a)](_0x35f92e,_0x2c9006,_0x1c3cca,_0x1624ce);}[_0x4eda08(0x86)](_0x5312c0){var _0x4feca3=_0x4eda08;this[_0x4feca3(0x92)][_0x4feca3(0x86)](_0x5312c0);}[_0x4eda08(0x9b)](){var _0x588535=_0x4eda08;this[_0x588535(0x91)][_0x588535(0x98)](),super[_0x588535(0x9b)]();}}
|