@ckeditor/ckeditor5-ai 47.1.0 → 47.2.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/ai.js +2 -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/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 +573 -203
- package/dist/index.css +627 -204
- package/dist/index.js +5 -4
- 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 +8 -1
- package/lang/translations/af.po +52 -4
- package/lang/translations/ar.po +52 -4
- package/lang/translations/ast.po +52 -4
- package/lang/translations/az.po +52 -4
- package/lang/translations/be.po +52 -4
- package/lang/translations/bg.po +52 -4
- package/lang/translations/bn.po +52 -4
- package/lang/translations/bs.po +52 -4
- package/lang/translations/ca.po +52 -4
- package/lang/translations/cs.po +52 -4
- package/lang/translations/da.po +52 -4
- package/lang/translations/de-ch.po +52 -4
- package/lang/translations/de.po +52 -4
- package/lang/translations/el.po +52 -4
- package/lang/translations/en-au.po +52 -4
- package/lang/translations/en-gb.po +52 -4
- package/lang/translations/en.po +52 -4
- package/lang/translations/eo.po +52 -4
- package/lang/translations/es-co.po +52 -4
- package/lang/translations/es.po +52 -4
- package/lang/translations/et.po +52 -4
- package/lang/translations/eu.po +52 -4
- package/lang/translations/fa.po +52 -4
- package/lang/translations/fi.po +52 -4
- package/lang/translations/fr.po +52 -4
- package/lang/translations/gl.po +52 -4
- package/lang/translations/gu.po +52 -4
- package/lang/translations/he.po +52 -4
- package/lang/translations/hi.po +52 -4
- package/lang/translations/hr.po +52 -4
- package/lang/translations/hu.po +52 -4
- package/lang/translations/hy.po +52 -4
- package/lang/translations/id.po +52 -4
- package/lang/translations/it.po +52 -4
- package/lang/translations/ja.po +52 -4
- package/lang/translations/jv.po +52 -4
- package/lang/translations/kk.po +52 -4
- package/lang/translations/km.po +52 -4
- package/lang/translations/kn.po +52 -4
- package/lang/translations/ko.po +52 -4
- package/lang/translations/ku.po +52 -4
- package/lang/translations/lt.po +52 -4
- package/lang/translations/lv.po +52 -4
- package/lang/translations/ms.po +52 -4
- package/lang/translations/nb.po +52 -4
- package/lang/translations/ne.po +52 -4
- package/lang/translations/nl.po +52 -4
- package/lang/translations/no.po +52 -4
- package/lang/translations/oc.po +52 -4
- package/lang/translations/pl.po +52 -4
- package/lang/translations/pt-br.po +52 -4
- package/lang/translations/pt.po +52 -4
- package/lang/translations/ro.po +52 -4
- package/lang/translations/ru.po +52 -4
- package/lang/translations/si.po +52 -4
- package/lang/translations/sk.po +52 -4
- package/lang/translations/sl.po +52 -4
- package/lang/translations/sq.po +52 -4
- package/lang/translations/sr-latn.po +52 -4
- package/lang/translations/sr.po +52 -4
- package/lang/translations/sv.po +52 -4
- package/lang/translations/th.po +52 -4
- package/lang/translations/ti.po +52 -4
- package/lang/translations/tk.po +52 -4
- package/lang/translations/tr.po +52 -4
- package/lang/translations/tt.po +52 -4
- package/lang/translations/ug.po +52 -4
- package/lang/translations/uk.po +52 -4
- package/lang/translations/ur.po +52 -4
- package/lang/translations/uz.po +52 -4
- package/lang/translations/vi.po +52 -4
- package/lang/translations/zh-cn.po +52 -4
- package/lang/translations/zh.po +52 -4
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +1 -1
- 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.d.ts +5 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +40 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +1 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +4 -0
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +8 -29
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +4 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +2 -2
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.d.ts +4 -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.d.ts +4 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/{aichatresourceslistview.d.ts → aichatcontextresourceslistview.d.ts} +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/{aichatresourcesview.d.ts → aichatcontextresourcesview.d.ts} +5 -2
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +4 -0
- 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/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.d.ts +3 -3
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -3
- 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/aichat/utils/scrollmanager.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 -1
- 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/aiconfig.d.ts +28 -7
- package/src/aicore/aiconnector.d.ts +1 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.d.ts +66 -0
- package/src/aicore/model/aimodels.js +23 -0
- package/src/aicore/model/aireply.d.ts +9 -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.d.ts +5 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +3 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +6 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.d.ts +2 -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/aieditorintegration/aieditorintegration.d.ts +2 -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/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +18 -0
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +3 -3
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +9 -10
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +6 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +13 -0
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +9 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +0 -4
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.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/errors.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +12 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +52 -43
- package/theme/aichat/aichat-controls/aichat-controls-button.css +8 -6
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +36 -52
- package/theme/aichat/aichat-controls/prompt-capabilities.css +0 -1
- package/theme/aichat/aichat-controls.css +11 -27
- package/theme/aichat/aichat.css +2 -3
- package/theme/aichat/aichatfeed.css +1 -27
- package/theme/aichat/aichathistory.css +12 -0
- package/theme/aichat/aisuggestioncontainer.css +5 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +25 -23
- package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +28 -5
- package/theme/aireviewmode/aireviewmode.css +17 -7
- package/theme/aitabs/aitabsview.css +1 -1
- package/theme/aitabs/tabs/tabbuttonview.css +1 -0
- package/theme/aitabs/tabs/tabsview.css +1 -0
- package/theme/common/aibutton.css +27 -0
- package/theme/common/aiheader.css +14 -4
- package/theme/common/aitrackchanges.css +8 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +0 -23
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +0 -23
- package/src/aireviewmode/model/aireviewmodels.d.ts +0 -26
- package/src/aireviewmode/model/aireviewmodels.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x4195dc=_0x5c7d;function _0x5efe(){var _0x3e36c6=['initialContent','373846DScbdy','ck-ai-chat-error_warning','1882979gOgVNv','4416wbIbBk','element','55qVJZkn','level','4718610fxVGub','warning','206868gEZauV','62vkPALE','markAsDone','ck-ai-chat-error','options','extendTemplate','render','3693252wCohZp','setContent','innerHTML','55412rfzixg','8YCpcKx','141PdhkBf','160uRcsZn'];_0x5efe=function(){return _0x3e36c6;};return _0x5efe();}(function(_0x526871,_0x4099b3){var _0x4a540e=_0x5c7d,_0xbdc76c=_0x526871();while(!![]){try{var _0x310780=parseInt(_0x4a540e(0x1dd))/0x1*(parseInt(_0x4a540e(0x1e4))/0x2)+parseInt(_0x4a540e(0x1ef))/0x3*(parseInt(_0x4a540e(0x1ed))/0x4)+parseInt(_0x4a540e(0x1df))/0x5*(-parseInt(_0x4a540e(0x1e3))/0x6)+parseInt(_0x4a540e(0x1dc))/0x7*(parseInt(_0x4a540e(0x1ee))/0x8)+parseInt(_0x4a540e(0x1e1))/0x9+-parseInt(_0x4a540e(0x1f0))/0xa*(parseInt(_0x4a540e(0x1da))/0xb)+-parseInt(_0x4a540e(0x1ea))/0xc;if(_0x310780===_0x4099b3)break;else _0xbdc76c['push'](_0xbdc76c['shift']());}catch(_0x3002f6){_0xbdc76c['push'](_0xbdc76c['shift']());}}}(_0x5efe,0x55905));function _0x5c7d(_0x1f78b7,_0x3acd3e){var _0x5efe5b=_0x5efe();return _0x5c7d=function(_0x5c7da4,_0xb64106){_0x5c7da4=_0x5c7da4-0x1da;var _0x207cc9=_0x5efe5b[_0x5c7da4];return _0x207cc9;},_0x5c7d(_0x1f78b7,_0x3acd3e);}import{AIChatFeedItemView as _0x10211d}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x10211d{constructor(_0x40c4e1){var _0x2c5399=_0x5c7d;super(_0x40c4e1),this[_0x2c5399(0x1e8)]({'attributes':{'class':[_0x2c5399(0x1e6),_0x2c5399(0x1e2)===_0x40c4e1[_0x2c5399(0x1e0)]?_0x2c5399(0x1db):'']}});}[_0x4195dc(0x1e9)](){var _0x35a63e=_0x4195dc;super[_0x35a63e(0x1e9)](),this[_0x35a63e(0x1eb)](this[_0x35a63e(0x1e7)][_0x35a63e(0x1f1)]),this[_0x35a63e(0x1e5)]();}[_0x4195dc(0x1eb)](_0x1b3cf6){var _0x41e1b5=_0x4195dc;this[_0x41e1b5(0x1de)][_0x41e1b5(0x1ec)]=_0x1b3cf6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5c5d(){const _0x2418b3=['AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','extendTemplate','7652feEYoG','344jBYDFr','1121715VqfPmF','297TRhLht','content','83985WNcrbN','ck-ai-chat__feed__interaction-header__capabilities','436535aucwqW','span','ck-ai-chat__feed__interaction-header','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','push','capabilities','2242XwmSjc','add','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','57iRfUxg','1400OgcpHC','142146KHTCin','ck-ai-chat__feed__interaction-header__capabilities__text','div','1767414LwzZOI','setTemplate','ck-hidden','children'];_0x5c5d=function(){return _0x2418b3;};return _0x5c5d();}const _0x322451=_0xb179;(function(_0xa1a29d,_0x418282){const _0x3c58f6=_0xb179,_0x3de38b=_0xa1a29d();while(!![]){try{const _0x5ce661=parseInt(_0x3c58f6(0xf1))/0x1*(parseInt(_0x3c58f6(0xee))/0x2)+-parseInt(_0x3c58f6(0xe4))/0x3*(parseInt(_0x3c58f6(0xe1))/0x4)+parseInt(_0x3c58f6(0xe8))/0x5+parseInt(_0x3c58f6(0xf6))/0x6+-parseInt(_0x3c58f6(0xe3))/0x7+-parseInt(_0x3c58f6(0xe2))/0x8*(parseInt(_0x3c58f6(0xf3))/0x9)+parseInt(_0x3c58f6(0xf2))/0xa*(parseInt(_0x3c58f6(0xe6))/0xb);if(_0x5ce661===_0x418282)break;else _0x3de38b['push'](_0x3de38b['shift']());}catch(_0x265685){_0x3de38b['push'](_0x3de38b['shift']());}}}(_0x5c5d,0x76a0b));import{IconBulb as _0x4c355b,IconWeb as _0x375960}from'@ckeditor/ckeditor5-icons';import{IconView as _0x2a676e,View as _0x1df9f3}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x5d5b3f}from'./aichatfeeditemview.js';import{getTranslation as _0x18ae9f}from'../../../aicore/utils/common-translations.js';function _0xb179(_0x3fc0b1,_0x41f2e0){const _0x5c5d1a=_0x5c5d();return _0xb179=function(_0xb179c2,_0x342a56){_0xb179c2=_0xb179c2-0xe1;let _0x5e1721=_0x5c5d1a[_0xb179c2];return _0x5e1721;},_0xb179(_0x3fc0b1,_0x41f2e0);}export class AIChatFeedInteractionHeaderView extends _0x5d5b3f{[_0x322451(0xed)];constructor(_0x18460c,_0x3088b3){const _0x28d70e=_0x322451;super(_0x3088b3);const {isWebSearchEnabled:_0x138045,isReasoningEnabled:_0x504f4d}=_0x3088b3[_0x28d70e(0xed)],_0x2eb814=[];let _0x2d1769='';_0x138045&&_0x504f4d?(_0x2d1769=_0x18ae9f(_0x18460c,_0x28d70e(0xeb)),_0x2eb814[_0x28d70e(0xec)](aa(_0x375960)),_0x2eb814[_0x28d70e(0xec)](aa(_0x4c355b))):_0x138045?(_0x2d1769=_0x18ae9f(_0x18460c,_0x28d70e(0xf0)),_0x2eb814[_0x28d70e(0xec)](aa(_0x375960))):_0x504f4d&&(_0x2d1769=_0x18ae9f(_0x18460c,_0x28d70e(0xfa)),_0x2eb814[_0x28d70e(0xec)](aa(_0x4c355b))),this[_0x28d70e(0xfb)]({'attributes':{'class':[_0x28d70e(0xea),_0x2d1769?'':_0x28d70e(0xf8)]}});const _0x5464c8=new _0x1df9f3();_0x5464c8[_0x28d70e(0xf7)]({'tag':_0x28d70e(0xf5),'attributes':{'class':['ck',_0x28d70e(0xe7)]},'children':[..._0x2eb814,{'tag':_0x28d70e(0xe9),'attributes':{'class':[_0x28d70e(0xf4)]},'children':[_0x2d1769]}]}),this[_0x28d70e(0xf9)][_0x28d70e(0xef)](_0x5464c8),this[_0x28d70e(0xed)]=_0x3088b3[_0x28d70e(0xed)];}}function aa(_0x31df46){const _0xd0702b=_0x322451,_0x4eb2ac=new _0x2a676e();return _0x4eb2ac[_0xd0702b(0xe5)]=_0x31df46,_0x4eb2ac;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x450868=_0x167a;(function(_0x515c88,_0x381461){const _0x1cdf09=_0x167a,_0xee0a95=_0x515c88();while(!![]){try{const _0x2802e1=-parseInt(_0x1cdf09(0x10b))/0x1*(parseInt(_0x1cdf09(0xfb))/0x2)+parseInt(_0x1cdf09(0xf3))/0x3*(-parseInt(_0x1cdf09(0x117))/0x4)+parseInt(_0x1cdf09(0x101))/0x5*(-parseInt(_0x1cdf09(0xfa))/0x6)+parseInt(_0x1cdf09(0x10c))/0x7*(parseInt(_0x1cdf09(0x103))/0x8)+parseInt(_0x1cdf09(0xfd))/0x9+-parseInt(_0x1cdf09(0x109))/0xa+parseInt(_0x1cdf09(0xf8))/0xb*(parseInt(_0x1cdf09(0xfe))/0xc);if(_0x2802e1===_0x381461)break;else _0xee0a95['push'](_0xee0a95['shift']());}catch(_0x2e473d){_0xee0a95['push'](_0xee0a95['shift']());}}}(_0x3090,0xd71fa));function _0x3090(){const _0x23132c=['ck-ai-chat__feed__item','16ekpdTp','markAsDone','content','htmlStreamer','cleanUpAnimations','setTemplate','14828690KwQlqP','[data-id]','23IoXkEJ','1632841uPfVhS','div','streamIntoElement','set','element','options','isDone','removeAttribute','createCollection','animation:\x20ck-html-streamer-fade-in\x20.5s','forEach','2050788tJwhlQ','ck-ai-chat__feed__text-item','9tzGmrZ','bindTemplate','ck-hidden','children','data-id','7236119uMbGid','ck-ai-chat__feed__item_done','18zzJhVu','68452MUrPMP','isVisible','3157515QiPhjL','96rwUmhq','stream','querySelectorAll','2317815grAhks'];_0x3090=function(){return _0x23132c;};return _0x3090();}function _0x167a(_0x4d0fc8,_0xde52ba){const _0x309053=_0x3090();return _0x167a=function(_0x167af1,_0x32a264){_0x167af1=_0x167af1-0xf3;let _0x200de0=_0x309053[_0x167af1];return _0x200de0;},_0x167a(_0x4d0fc8,_0xde52ba);}import{View as _0x13a37a}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0xa8152e}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x13a37a{[_0x450868(0x111)];[_0x450868(0x105)]='';[_0x450868(0x106)];[_0x450868(0xf6)];constructor(_0x52c12b){const _0x2fbd36=_0x450868;super();const _0x1ccb33=this[_0x2fbd36(0xf4)];this[_0x2fbd36(0x10f)](_0x2fbd36(0x112),!0x1),this[_0x2fbd36(0x10f)](_0x2fbd36(0xfc),!0x0),this[_0x2fbd36(0x106)]=new _0xa8152e({'textNodeStyle':_0x2fbd36(0x115),'delay':0x14}),this[_0x2fbd36(0x111)]=_0x52c12b,this[_0x2fbd36(0xf6)]=this[_0x2fbd36(0x114)](),this[_0x2fbd36(0x108)]({'tag':_0x2fbd36(0x10d),'attributes':{'class':['ck',_0x2fbd36(0x102),_0x1ccb33['if'](_0x2fbd36(0x112),_0x2fbd36(0xf9)),_0x1ccb33['if'](_0x2fbd36(0xfc),_0x2fbd36(0xf5),_0x24fb2e=>!_0x24fb2e),_0x2fbd36(0x118)],'data-cke-ai-id':this[_0x2fbd36(0x111)]['id']},'children':this[_0x2fbd36(0xf6)]});}[_0x450868(0x104)](){const _0x52c0c1=_0x450868;this[_0x52c0c1(0x106)][_0x52c0c1(0x107)]({'targetElement':this[_0x52c0c1(0x110)]}),this[_0x52c0c1(0x110)][_0x52c0c1(0x100)](_0x52c0c1(0x10a))[_0x52c0c1(0x116)](_0x26ef48=>{const _0x2a6546=_0x52c0c1;_0x26ef48[_0x2a6546(0x113)](_0x2a6546(0xf7));}),this[_0x52c0c1(0x112)]=!0x0;}async[_0x450868(0x10e)](_0x462aee,_0x2b47b6,_0x4c0818){const _0x38c750=_0x450868;await this[_0x38c750(0x106)][_0x38c750(0xff)]({'document':_0x462aee,'targetElement':_0x2b47b6,'abortSignal':_0x4c0818});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe3d51a=_0x4d38;(function(_0x4e242f,_0x316f8f){const _0x3708d3=_0x4d38,_0x406d74=_0x4e242f();while(!![]){try{const _0x25462a=-parseInt(_0x3708d3(0x1a5))/0x1*(parseInt(_0x3708d3(0x1aa))/0x2)+parseInt(_0x3708d3(0x19a))/0x3*(parseInt(_0x3708d3(0x190))/0x4)+parseInt(_0x3708d3(0x191))/0x5+-parseInt(_0x3708d3(0x1a7))/0x6+-parseInt(_0x3708d3(0x18f))/0x7+parseInt(_0x3708d3(0x198))/0x8+parseInt(_0x3708d3(0x1ad))/0x9;if(_0x25462a===_0x316f8f)break;else _0x406d74['push'](_0x406d74['shift']());}catch(_0x1dced9){_0x406d74['push'](_0x406d74['shift']());}}}(_0x4a9a,0xef2ac));import{AIChatFeedItemView as _0x3575a6}from'./aichatfeeditemview.js';import{parse as _0x57e5b8,render as _0x4c7a83}from'../../../aicore/utils/htmlparser.js';function _0x4d38(_0x567e11,_0xd73e5b){const _0x4a9a49=_0x4a9a();return _0x4d38=function(_0x4d3894,_0xb66a2d){_0x4d3894=_0x4d3894-0x18f;let _0x13b07f=_0x4a9a49[_0x4d3894];return _0x13b07f;},_0x4d38(_0x567e11,_0xd73e5b);}import{View as _0x4079af}from'ckeditor5/src/ui.js';function _0x4a9a(){const _0x40b09d=['updateContent','static','streaming','ck-reset_all-excluded','addMany','3155488ZuezmY','locale','120756mLAnjO','setTemplate','extendTemplate','ck-ai-chat__feed__ai-reply','render','options','replyContainer','element','innerHTML','isVisible','ck-ai-chat__feed__ai-reply-container','17837KqOhAR','markAsDone','9511752CHyvhO','div','initialContent','166oavSKI','map','streamIntoElement','25137333BvFpmF','add','updateSources','481831JsDyQd','12zDHsyQ','4029975BJEDzg','children'];_0x4a9a=function(){return _0x40b09d;};return _0x4a9a();}import{AIWebSourcesView as _0x33485e,AIWebSourceView as _0x5a1717}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x3575a6{[_0xe3d51a(0x1a0)];constructor(_0x425488,_0x1a073e){const _0x50cc4c=_0xe3d51a;super(_0x1a073e),this[_0x50cc4c(0x199)]=_0x425488,this[_0x50cc4c(0x19c)]({'attributes':{'class':[_0x50cc4c(0x19d)]}}),this[_0x50cc4c(0x1a0)]=new _0x4079af(),this[_0x50cc4c(0x1a0)][_0x50cc4c(0x19b)]({'tag':_0x50cc4c(0x1a8),'attributes':{'class':['ck',_0x50cc4c(0x196),_0x50cc4c(0x1a4)]}}),this[_0x50cc4c(0x192)][_0x50cc4c(0x1ae)](this[_0x50cc4c(0x1a0)]);}async[_0xe3d51a(0x19e)](){const _0x59804b=_0xe3d51a;super[_0x59804b(0x19e)](),this[_0x59804b(0x19f)][_0x59804b(0x1a9)]&&(await this[_0x59804b(0x193)]({'parsedContent':_0x57e5b8(this[_0x59804b(0x19f)][_0x59804b(0x1a9)]),'renderingStrategy':_0x59804b(0x194)}),this[_0x59804b(0x1a6)]());}async[_0xe3d51a(0x193)]({parsedContent:_0x507d8c,renderingStrategy:_0x27fdc2,abortSignal:_0x21edce}){const _0x57ae8c=_0xe3d51a;_0x57ae8c(0x195)===_0x27fdc2?await this[_0x57ae8c(0x1ac)](_0x507d8c,this[_0x57ae8c(0x1a0)][_0x57ae8c(0x1a1)],_0x21edce):this[_0x57ae8c(0x1a0)][_0x57ae8c(0x1a1)][_0x57ae8c(0x1a2)]=_0x4c7a83(_0x507d8c);}[_0xe3d51a(0x1af)](_0x31179a){const _0x4ecf4e=_0xe3d51a,_0x4c9ac6=new _0x33485e(this[_0x4ecf4e(0x199)]);_0x4c9ac6[_0x4ecf4e(0x192)][_0x4ecf4e(0x197)](_0x31179a[_0x4ecf4e(0x1ab)](_0x12bc74=>new _0x5a1717(this[_0x4ecf4e(0x199)],_0x12bc74))),_0x4c9ac6[_0x4ecf4e(0x1a3)]=!0x0,this[_0x4ecf4e(0x192)][_0x4ecf4e(0x1ae)](_0x4c9ac6);}}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const AI_REPLY_ACTIONS: readonly ["applySuggestion", "insertSuggestion", "showChangeInText"];
|
|
11
11
|
/**
|
|
12
12
|
* A view for the actions of an AI suggestion item in the AI chat feed.
|
|
13
13
|
*
|
|
@@ -29,7 +29,7 @@ export declare class AIChatFeedSuggestionItemActionsView extends View {
|
|
|
29
29
|
/**
|
|
30
30
|
* @inheritDoc
|
|
31
31
|
*/
|
|
32
|
-
constructor(locale: Locale,
|
|
32
|
+
constructor(locale: Locale, availableActions?: Array<AISuggestionActionName>);
|
|
33
33
|
/**
|
|
34
34
|
* Updates the labels of the actions based on the number of parts in the suggestion.
|
|
35
35
|
*/
|
|
@@ -77,4 +77,4 @@ export type AIMouseLeaveSuggestionEvent = {
|
|
|
77
77
|
partIndex: number;
|
|
78
78
|
}];
|
|
79
79
|
};
|
|
80
|
-
export type AISuggestionActionName = typeof
|
|
80
|
+
export type AISuggestionActionName = typeof AI_REPLY_ACTIONS[number];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1d7b(){const _0x46ba14=['attachToDom','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','slice','remove','listenTo','_createActionsDropdown','add','isTrackChangesOn','_dropdownOriginalConfig','insertSuggestion','class','insertSuggestionModel','balloonPanelView','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','4729938WbrbtH','focus','balloonPanelClass','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','974602QoXRyT','left','createCollection','button','258384zHcpsK','360672hQgCsY','locale','3982769qXhbLM','keys','actionsButton','execute','ck-ai-button-primary','applySuggestionModel','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','_setUpList','div','3214045zkOSuH','label','source','esc','width','ck-ai-chat__feed__ai-suggestion__actions__balloon','map','showChangeInText','isEnabled','updateLabels','bindTemplate','content','detachFromDom','_firstRender','actionName','bodyCollection','element','delegate','ck-ai-chat__feed__ai-suggestion__actions\x20','_createActionsDropdownOrButton','ck-ai-chat__feed__ai-suggestion__actions--no-animation','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','listView','applySuggestion','length','isVisible','548602eNTRhD','hide','destroy','8zfPIjT','set','54dTftYp','listItemModels','ltr','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','children','setTemplate','open','_setUpKeystrokes','ck-hidden','_partsCount','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','_createActionsButton','uiLanguageDirection','unbind','tooltip','_updateDropdownActions','ck-ai-chat__feed__ai-suggestion__actions','items','has','change:isTrackChangesOn','bind','bottom','_dropdownCurrentConfig','showChangeInTextModel','arrowView','filter','pin','keystrokeHandler','fire','arrowless'];_0x1d7b=function(){return _0x46ba14;};return _0x1d7b();}const _0x349e65=_0x33d9;function _0x33d9(_0x3311ae,_0x500e3a){const _0x1d7bb4=_0x1d7b();return _0x33d9=function(_0x33d9fe,_0x3d7c2a){_0x33d9fe=_0x33d9fe-0x1c1;let _0x78b4ab=_0x1d7bb4[_0x33d9fe];return _0x78b4ab;},_0x33d9(_0x3311ae,_0x500e3a);}(function(_0xf7c3e6,_0x7f6853){const _0x175886=_0x33d9,_0xc095a5=_0xf7c3e6();while(!![]){try{const _0x132bc7=-parseInt(_0x175886(0x1c8))/0x1+parseInt(_0x175886(0x1fd))/0x2+parseInt(_0x175886(0x1f9))/0x3+parseInt(_0x175886(0x1cb))/0x4*(-parseInt(_0x175886(0x20d))/0x5)+-parseInt(_0x175886(0x202))/0x6+parseInt(_0x175886(0x204))/0x7+-parseInt(_0x175886(0x201))/0x8*(-parseInt(_0x175886(0x1cd))/0x9);if(_0x132bc7===_0x7f6853)break;else _0xc095a5['push'](_0xc095a5['shift']());}catch(_0x4b36ac){_0xc095a5['push'](_0xc095a5['shift']());}}}(_0x1d7b,0xe3a12));import{KeystrokeHandler as _0x29299b}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x5dbe10,BodyCollection as _0x47d9aa,ButtonView as _0x2f7801,clickOutsideHandler as _0x5f0666,ListItemButtonView as _0x5f4c3f,ListItemView as _0x12b265,ListView as _0x5a0d0c,SplitButtonView as _0x11ca8b,UIModel as _0x2f43b5,View as _0x1e4716}from'ckeditor5/src/ui.js';import{IconCheck as _0x3731dd,IconAddComment as _0x1a521a,IconDocumentWithLoupe as _0x3d39e8}from'ckeditor5/src/icons.js';import{getTranslation as _0x17f081}from'../../../aicore/utils/common-translations.js';export const ACTIONS=[_0x349e65(0x1c5),_0x349e65(0x1f4),_0x349e65(0x214)];export class AIChatFeedSuggestionItemActionsView extends _0x1e4716{[_0x349e65(0x206)];[_0x349e65(0x1d1)];[_0x349e65(0x209)];[_0x349e65(0x1e4)];[_0x349e65(0x1f6)];[_0x349e65(0x1d6)]=0x1;[_0x349e65(0x1f3)];[_0x349e65(0x1e3)];[_0x349e65(0x21a)]=!0x0;constructor(_0x4b69c9,_0x50509b){const _0x1cb177=_0x349e65;super(_0x4b69c9),this[_0x1cb177(0x1f3)]=_0x50509b||[...ACTIONS],this[_0x1cb177(0x1e3)]=[...this[_0x1cb177(0x1f3)]];const _0x3ecb4f=this[_0x1cb177(0x217)];this[_0x1cb177(0x1cc)](_0x1cb177(0x215),!0x0),this[_0x1cb177(0x1cc)](_0x1cb177(0x1c7),!0x0),this[_0x1cb177(0x209)]=new _0x2f43b5({'label':Hn(_0x1cb177(0x1c5),_0x4b69c9,this[_0x1cb177(0x1d6)]),'icon':_0x3731dd,'withText':!0x0,'type':_0x1cb177(0x200),'actionName':_0x1cb177(0x1c5)}),this[_0x1cb177(0x1e4)]=new _0x2f43b5({'label':Hn(_0x1cb177(0x214),_0x4b69c9,this[_0x1cb177(0x1d6)]),'icon':_0x3d39e8,'withText':!0x0,'type':_0x1cb177(0x200),'actionName':_0x1cb177(0x214)}),this[_0x1cb177(0x1f6)]=new _0x2f43b5({'label':Hn(_0x1cb177(0x1f4),_0x4b69c9,this[_0x1cb177(0x1d6)]),'icon':_0x1a521a,'withText':!0x0,'type':_0x1cb177(0x200),'actionName':_0x1cb177(0x1f4)}),this[_0x1cb177(0x206)]=this[_0x1cb177(0x1c1)](_0x4b69c9),this[_0x1cb177(0x1d1)]=this[_0x1cb177(0x1ff)]([this[_0x1cb177(0x206)]]),this[_0x1cb177(0x1d2)]({'tag':_0x1cb177(0x20c),'attributes':{'class':['ck',_0x1cb177(0x1dd),_0x3ecb4f['if'](_0x1cb177(0x1c7),_0x1cb177(0x1d5),_0x9e814b=>!_0x9e814b)]},'children':this[_0x1cb177(0x1d1)]}),this[_0x1cb177(0x1ef)](this,_0x1cb177(0x1e0),()=>{const _0x1a2a5c=_0x1cb177;this[_0x1a2a5c(0x1e3)]=this[_0x1a2a5c(0x1f2)]?this[_0x1a2a5c(0x1f3)][_0x1a2a5c(0x1e6)](_0x22493a=>_0x1a2a5c(0x1c5)!==_0x22493a):[...this[_0x1a2a5c(0x1f3)]],this[_0x1a2a5c(0x1dc)](_0x4b69c9);});}[_0x349e65(0x1dc)](_0x3fd195){const _0x1e33f0=_0x349e65;this[_0x1e33f0(0x1d1)][_0x1e33f0(0x1df)](this[_0x1e33f0(0x206)])&&(this[_0x1e33f0(0x1d1)][_0x1e33f0(0x1ee)](this[_0x1e33f0(0x206)]),this[_0x1e33f0(0x206)][_0x1e33f0(0x1ca)]()),0x0!=this[_0x1e33f0(0x1e3)][_0x1e33f0(0x1c6)]&&(this[_0x1e33f0(0x206)]=this[_0x1e33f0(0x1c1)](_0x3fd195),this[_0x1e33f0(0x1d1)][_0x1e33f0(0x1f1)](this[_0x1e33f0(0x206)]));}[_0x349e65(0x1c1)](_0x22435f){const _0x2bcbc2=_0x349e65,_0xe5c809=0x1===this[_0x2bcbc2(0x1e3)][_0x2bcbc2(0x1c6)]?this[_0x2bcbc2(0x1d8)](_0x22435f):this[_0x2bcbc2(0x1f0)](_0x22435f),_0x4a62ea=this[_0x2bcbc2(0x21a)]?'':_0x2bcbc2(0x1c2);_0xe5c809[_0x2bcbc2(0x1cc)]({'label':Hn(this[_0x2bcbc2(0x1e3)][0x0],_0x22435f,this[_0x2bcbc2(0x1d6)]),'tooltip':Un(this[_0x2bcbc2(0x1e3)][0x0],_0x22435f,this[_0x2bcbc2(0x1d6)]),'withText':!0x0,'class':_0x2bcbc2(0x21f)+_0x4a62ea});for(const _0x251fbb of this[_0x2bcbc2(0x1e3)])_0xe5c809['on'](_0x251fbb,()=>{const _0x223473=_0x2bcbc2;this[_0x223473(0x1e9)](_0x251fbb);});return this[_0x2bcbc2(0x21a)]=!0x1,_0xe5c809;}[_0x349e65(0x1d8)](_0x1a7634){const _0x1b4d32=_0x349e65,_0x359d3d=new _0x2f7801(_0x1a7634);return _0x359d3d[_0x1b4d32(0x1cc)]({'class':_0x1b4d32(0x208),'withText':!0x0}),_0x359d3d['on'](_0x1b4d32(0x207),()=>{const _0x5ce96e=_0x1b4d32;_0x359d3d[_0x5ce96e(0x1e9)](this[_0x5ce96e(0x1e3)][0x0]);}),_0x359d3d;}[_0x349e65(0x1f0)](_0x860f86){const _0x3b11eb=_0x349e65,_0x305d46=new Gn(_0x860f86,{'listItemModels':this[_0x3b11eb(0x1e3)][_0x3b11eb(0x213)](_0x459c1f=>{const _0x524a74=_0x3b11eb;switch(_0x459c1f){case _0x524a74(0x1c5):return this[_0x524a74(0x209)];case _0x524a74(0x214):return this[_0x524a74(0x1e4)];case _0x524a74(0x1f4):return this[_0x524a74(0x1f6)];}})});return _0x305d46[_0x3b11eb(0x1cc)]({'label':Hn(this[_0x3b11eb(0x1e3)][0x0],_0x860f86,this[_0x3b11eb(0x1d6)]),'tooltip':Un(this[_0x3b11eb(0x1e3)][0x0],_0x860f86,this[_0x3b11eb(0x1d6)]),'withText':!0x0,'class':_0x3b11eb(0x1dd),'balloonPanelClass':_0x3b11eb(0x212)}),_0x305d46[_0x3b11eb(0x1e1)](_0x3b11eb(0x215))['to'](this),_0x305d46;}[_0x349e65(0x216)](_0x1124c4){const _0x95c9c9=_0x349e65,_0x357250=this[_0x95c9c9(0x203)];this[_0x95c9c9(0x1d6)]=_0x1124c4||this[_0x95c9c9(0x1d6)],this[_0x95c9c9(0x206)][_0x95c9c9(0x1cc)]({'label':Hn(this[_0x95c9c9(0x1e3)][0x0],_0x357250,this[_0x95c9c9(0x1d6)]),'tooltip':Un(this[_0x95c9c9(0x1e3)][0x0],_0x357250,this[_0x95c9c9(0x1d6)])}),this[_0x95c9c9(0x209)][_0x95c9c9(0x20e)]=Hn(_0x95c9c9(0x1c5),_0x357250,this[_0x95c9c9(0x1d6)]),this[_0x95c9c9(0x1e4)][_0x95c9c9(0x20e)]=Hn(_0x95c9c9(0x214),_0x357250,this[_0x95c9c9(0x1d6)]),this[_0x95c9c9(0x1f6)][_0x95c9c9(0x20e)]=Hn(_0x95c9c9(0x1f4),_0x357250,this[_0x95c9c9(0x1d6)]);}}class Gn extends _0x11ca8b{[_0x349e65(0x21c)];[_0x349e65(0x1f7)];[_0x349e65(0x1c4)];[_0x349e65(0x1e8)];constructor(_0x249078,_0x5019f0){const _0x45a432=_0x349e65;super(_0x249078),this[_0x45a432(0x1f7)]=new _0x5dbe10(this[_0x45a432(0x203)]),this[_0x45a432(0x21c)]=new _0x47d9aa(this[_0x45a432(0x203)]),this[_0x45a432(0x21c)][_0x45a432(0x1eb)](),this[_0x45a432(0x1cc)](_0x45a432(0x1fb),''),this[_0x45a432(0x1f7)][_0x45a432(0x1e1)](_0x45a432(0x1f5))['to'](this,_0x45a432(0x1fb)),this[_0x45a432(0x1c4)]=this[_0x45a432(0x20b)](_0x5019f0[_0x45a432(0x1ce)][_0x45a432(0x1ed)](0x1)),this[_0x45a432(0x21c)][_0x45a432(0x1f1)](this[_0x45a432(0x1f7)]),this[_0x45a432(0x1f7)][_0x45a432(0x218)][_0x45a432(0x1f1)](this[_0x45a432(0x1c4)]),this[_0x45a432(0x1e5)][_0x45a432(0x1da)](_0x45a432(0x1db)),this[_0x45a432(0x1e5)][_0x45a432(0x1cc)](_0x45a432(0x1db),_0x17f081(this[_0x45a432(0x203)],_0x45a432(0x1c3))),this[_0x45a432(0x1d4)](),this['on'](_0x45a432(0x207),()=>{const _0x343bf3=_0x45a432,_0x8340a4=_0x5019f0[_0x343bf3(0x1ce)][0x0][_0x343bf3(0x21b)];this[_0x343bf3(0x1e9)](_0x8340a4),this[_0x343bf3(0x1f7)][_0x343bf3(0x1c9)](),this[_0x343bf3(0x1e5)][_0x343bf3(0x1fa)]();}),this['on'](_0x45a432(0x1d3),()=>{const _0x42df7a=_0x45a432;this[_0x42df7a(0x1f7)][_0x42df7a(0x1c7)]?(this[_0x42df7a(0x1f7)][_0x42df7a(0x1c9)](),this[_0x42df7a(0x1e5)][_0x42df7a(0x1fa)]()):(this[_0x42df7a(0x1f7)][_0x42df7a(0x1e7)]({'target':this[_0x42df7a(0x21d)],'positions':[_0x42df7a(0x1cf)===this[_0x42df7a(0x203)][_0x42df7a(0x1d9)]?yn:Pn]}),this[_0x42df7a(0x1c4)][_0x42df7a(0x1fa)]());}),_0x5f0666({'emitter':this[_0x45a432(0x1f7)],'callback':()=>{const _0x1b7684=_0x45a432;this[_0x1b7684(0x1f7)][_0x1b7684(0x1c9)]();},'activator':()=>this[_0x45a432(0x1f7)][_0x45a432(0x1c7)],'contextElements':()=>[this[_0x45a432(0x21d)],this[_0x45a432(0x1f7)][_0x45a432(0x21d)]]});}[_0x349e65(0x20b)](_0x15a493){const _0x598e11=_0x349e65,_0xa854ae=this[_0x598e11(0x203)],_0x4d132b=new _0x5a0d0c(_0xa854ae);for(const _0xdbb8c0 of _0x15a493){const _0x5ea32b=new _0x12b265(_0xa854ae),_0xa23064=new _0x5f4c3f(_0xa854ae);_0xa23064[_0x598e11(0x1e1)](...Object[_0x598e11(0x205)](_0xdbb8c0))['to'](_0xdbb8c0),_0xa23064[_0x598e11(0x21e)](_0x598e11(0x207))['to'](_0x4d132b),_0x5ea32b[_0x598e11(0x1d1)][_0x598e11(0x1f1)](_0xa23064),_0x4d132b[_0x598e11(0x1de)][_0x598e11(0x1f1)](_0x5ea32b);}return _0x4d132b[_0x598e11(0x1de)][_0x598e11(0x21e)](_0x598e11(0x207))['to'](this),_0x4d132b['on'](_0x598e11(0x207),_0x25a1f9=>{const _0x454943=_0x598e11,_0x3acb36=_0x25a1f9[_0x454943(0x20f)];this[_0x454943(0x1e9)](_0x3acb36[_0x454943(0x21b)]),this[_0x454943(0x1f7)][_0x454943(0x1c9)](),this[_0x454943(0x1e5)][_0x454943(0x1fa)]();}),_0x4d132b;}[_0x349e65(0x1d4)](){const _0x444956=_0x349e65;this[_0x444956(0x1e8)]=new _0x29299b(),this[_0x444956(0x1e8)][_0x444956(0x1ef)](this[_0x444956(0x1f7)][_0x444956(0x21d)]),this[_0x444956(0x1e8)][_0x444956(0x1cc)](_0x444956(0x210),(_0x351a61,_0x394bda)=>{const _0x51c7ab=_0x444956;this[_0x51c7ab(0x1f7)][_0x51c7ab(0x1c9)](),this[_0x51c7ab(0x1e5)][_0x51c7ab(0x1fa)](),_0x394bda();});}[_0x349e65(0x1ca)](){const _0x427689=_0x349e65;super[_0x427689(0x1ca)](),this[_0x427689(0x1e8)][_0x427689(0x1ca)](),this[_0x427689(0x1f7)][_0x427689(0x1ca)](),this[_0x427689(0x21c)][_0x427689(0x219)]();}}function yn(_0x140e00){const _0x2b55b0=_0x349e65;return{'top':_0x140e00[_0x2b55b0(0x1e2)],'left':_0x140e00[_0x2b55b0(0x1fe)],'name':_0x2b55b0(0x1ea),'config':{'withArrow':!0x1}};}function Pn(_0x58bd3b,_0x4202ce){const _0x2079dc=_0x349e65;return{'top':_0x58bd3b[_0x2079dc(0x1e2)],'left':_0x58bd3b[_0x2079dc(0x1fe)]-(_0x4202ce[_0x2079dc(0x211)]-_0x58bd3b[_0x2079dc(0x211)]),'name':_0x2079dc(0x1ea),'config':{'withArrow':!0x1}};}function Hn(_0x2b6d37,_0x694d04,_0x53eba6){const _0x350f31=_0x349e65;switch(_0x2b6d37){case _0x350f31(0x1c5):return _0x17f081(_0x694d04,_0x350f31(0x1d7),_0x53eba6);case _0x350f31(0x214):return _0x17f081(_0x694d04,_0x350f31(0x1d0),_0x53eba6);case _0x350f31(0x1f4):return _0x17f081(_0x694d04,_0x350f31(0x1fc),_0x53eba6);}}function Un(_0x3055c0,_0x509082,_0x38251f){const _0x492af5=_0x349e65;switch(_0x3055c0){case _0x492af5(0x1c5):return _0x17f081(_0x509082,_0x492af5(0x1ec),_0x38251f);case _0x492af5(0x214):return _0x17f081(_0x509082,_0x492af5(0x20a),_0x38251f);case _0x492af5(0x1f4):return _0x17f081(_0x509082,_0x492af5(0x1f8),_0x38251f);}}
|
|
23
|
+
const _0x3cc200=_0x4838;(function(_0x512625,_0x1112a0){const _0x3680ad=_0x4838,_0x98367a=_0x512625();while(!![]){try{const _0x1bffa4=-parseInt(_0x3680ad(0x14f))/0x1+-parseInt(_0x3680ad(0x157))/0x2*(-parseInt(_0x3680ad(0x153))/0x3)+parseInt(_0x3680ad(0x133))/0x4*(parseInt(_0x3680ad(0x12c))/0x5)+-parseInt(_0x3680ad(0x15d))/0x6+parseInt(_0x3680ad(0x142))/0x7*(-parseInt(_0x3680ad(0x138))/0x8)+parseInt(_0x3680ad(0x165))/0x9*(-parseInt(_0x3680ad(0x172))/0xa)+-parseInt(_0x3680ad(0x167))/0xb*(-parseInt(_0x3680ad(0x16e))/0xc);if(_0x1bffa4===_0x1112a0)break;else _0x98367a['push'](_0x98367a['shift']());}catch(_0x4dfcf6){_0x98367a['push'](_0x98367a['shift']());}}}(_0x1762,0xcb7ac));import{KeystrokeHandler as _0x240517}from'ckeditor5/src/utils.js';function _0x4838(_0x519f72,_0x1318b9){const _0x176263=_0x1762();return _0x4838=function(_0x483854,_0x28f684){_0x483854=_0x483854-0x128;let _0xa14216=_0x176263[_0x483854];return _0xa14216;},_0x4838(_0x519f72,_0x1318b9);}import{BalloonPanelView as _0x5eabc4,BodyCollection as _0x4d0cc6,ButtonView as _0x50b4c9,clickOutsideHandler as _0x27952a,ListItemButtonView as _0x2fef2d,ListItemView as _0x5119e9,ListView as _0xabd391,SplitButtonView as _0x5b4d06,UIModel as _0x5a0cbd,View as _0x395bda}from'ckeditor5/src/ui.js';import{IconCheck as _0x43b88c,IconAddComment as _0x93b855,IconDocumentWithLoupe as _0x469ae3}from'ckeditor5/src/icons.js';import{getTranslation as _0x59bcd0}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x3cc200(0x144),_0x3cc200(0x137),_0x3cc200(0x169)];function _0x1762(){const _0x5b0f0f=['_partsCount','4JrzWFD','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','items','ltr','insertSuggestion','48hjIuwb','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','children','keystrokeHandler','has','button','actionName','updateLabels','actionsButton','bindTemplate','1007762dWWGia','balloonPanelClass','applySuggestion','createCollection','execute','ck-ai-chat__feed__ai-suggestion__actions--no-animation','change:isTrackChangesOn','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','ck-hidden','delegate','isEnabled','detachFromDom','listView','1125436jIdMqt','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','uiLanguageDirection','pin','63285QHGHiO','_firstRender','_setUpList','ck-ai-chat__feed__ai-suggestion__actions','52NuzQOt','listenTo','arrowless','source','showChangeInTextModel','listItemModels','2801928vmhTcS','_dropdownOriginalConfig','esc','class','filter','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','fire','unbind','3177VuWTdi','ck-ai-chat__feed__ai-suggestion__actions__balloon','11JWCCSe','bodyCollection','showChangeInText','arrowView','setTemplate','_createActionsButton','bottom','49488240MXJJaA','isTrackChangesOn','locale','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','44320YfuUsl','bind','label','applySuggestionModel','_updateDropdownActions','set','div','isVisible','focus','_dropdownCurrentConfig','hide','destroy','width','ck-ai-chat__feed__ai-suggestion__actions\x20','map','_createActionsDropdown','_createActionsDropdownOrButton','attachToDom','ck-ai-button-primary','element','balloonPanelView','insertSuggestionModel','content','open','keys','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','slice','remove','908390lmRyAq','_setUpKeystrokes','add','length','left','tooltip'];_0x1762=function(){return _0x5b0f0f;};return _0x1762();}export class AIChatFeedSuggestionItemActionsView extends _0x395bda{[_0x3cc200(0x140)];[_0x3cc200(0x13a)];[_0x3cc200(0x175)];[_0x3cc200(0x15b)];[_0x3cc200(0x187)];[_0x3cc200(0x132)]=0x1;[_0x3cc200(0x15e)];[_0x3cc200(0x17b)];[_0x3cc200(0x154)]=!0x0;constructor(_0x286a9f,_0x39fb5a){const _0x40dd51=_0x3cc200;super(_0x286a9f),this[_0x40dd51(0x15e)]=_0x39fb5a||[...AI_REPLY_ACTIONS],this[_0x40dd51(0x17b)]=[...this[_0x40dd51(0x15e)]];const _0x4f273e=this[_0x40dd51(0x141)];this[_0x40dd51(0x177)](_0x40dd51(0x14c),!0x0),this[_0x40dd51(0x177)](_0x40dd51(0x179),!0x0),this[_0x40dd51(0x177)](_0x40dd51(0x16f),!0x1),this[_0x40dd51(0x175)]=new _0x5a0cbd({'label':Hn(_0x40dd51(0x144),_0x286a9f,this[_0x40dd51(0x132)]),'icon':_0x43b88c,'withText':!0x0,'type':_0x40dd51(0x13d),'actionName':_0x40dd51(0x144)}),this[_0x40dd51(0x15b)]=new _0x5a0cbd({'label':Hn(_0x40dd51(0x169),_0x286a9f,this[_0x40dd51(0x132)]),'icon':_0x469ae3,'withText':!0x0,'type':_0x40dd51(0x13d),'actionName':_0x40dd51(0x169)}),this[_0x40dd51(0x187)]=new _0x5a0cbd({'label':Hn(_0x40dd51(0x137),_0x286a9f,this[_0x40dd51(0x132)]),'icon':_0x93b855,'withText':!0x0,'type':_0x40dd51(0x13d),'actionName':_0x40dd51(0x137)}),this[_0x40dd51(0x140)]=this[_0x40dd51(0x182)](_0x286a9f),this[_0x40dd51(0x13a)]=this[_0x40dd51(0x145)](),this[_0x40dd51(0x140)]&&this[_0x40dd51(0x13a)][_0x40dd51(0x12e)](this[_0x40dd51(0x140)]),this[_0x40dd51(0x16b)]({'tag':_0x40dd51(0x178),'attributes':{'class':['ck',_0x40dd51(0x156),_0x4f273e['if'](_0x40dd51(0x179),_0x40dd51(0x14a),_0x266dc9=>!_0x266dc9)]},'children':this[_0x40dd51(0x13a)]}),this['on'](_0x40dd51(0x148),()=>{const _0x19e855=_0x40dd51;this[_0x19e855(0x17b)]=this[_0x19e855(0x16f)]?this[_0x19e855(0x15e)][_0x19e855(0x161)](_0x14193d=>_0x19e855(0x144)!==_0x14193d):[...this[_0x19e855(0x15e)]],this[_0x19e855(0x176)](_0x286a9f);});}[_0x3cc200(0x176)](_0x3ce69d){const _0xfbd52b=_0x3cc200;this[_0xfbd52b(0x140)]&&this[_0xfbd52b(0x13a)][_0xfbd52b(0x13c)](this[_0xfbd52b(0x140)])&&(this[_0xfbd52b(0x13a)][_0xfbd52b(0x12b)](this[_0xfbd52b(0x140)]),this[_0xfbd52b(0x140)][_0xfbd52b(0x17d)]()),this[_0xfbd52b(0x140)]=this[_0xfbd52b(0x182)](_0x3ce69d),this[_0xfbd52b(0x140)]&&this[_0xfbd52b(0x13a)][_0xfbd52b(0x12e)](this[_0xfbd52b(0x140)]);}[_0x3cc200(0x182)](_0x3d6486){const _0x3eded8=_0x3cc200;if(0x0==this[_0x3eded8(0x17b)][_0x3eded8(0x12f)])return null;const _0x19d801=0x1===this[_0x3eded8(0x17b)][_0x3eded8(0x12f)]?this[_0x3eded8(0x16c)](_0x3d6486):this[_0x3eded8(0x181)](_0x3d6486),_0xbfa474=this[_0x3eded8(0x154)]?'':_0x3eded8(0x147);_0x19d801[_0x3eded8(0x177)]({'label':Hn(this[_0x3eded8(0x17b)][0x0],_0x3d6486,this[_0x3eded8(0x132)]),'tooltip':Ln(this[_0x3eded8(0x17b)][0x0],_0x3d6486,this[_0x3eded8(0x132)]),'withText':!0x0,'class':_0x3eded8(0x17f)+_0xbfa474});for(const _0x4c0e5f of this[_0x3eded8(0x17b)])_0x19d801['on'](_0x4c0e5f,()=>{const _0x414484=_0x3eded8;this[_0x414484(0x163)](_0x4c0e5f);});return this[_0x3eded8(0x154)]=!0x1,_0x19d801;}[_0x3cc200(0x16c)](_0x4f94ef){const _0xe2e08=_0x3cc200,_0x259bae=new _0x50b4c9(_0x4f94ef);return _0x259bae[_0xe2e08(0x177)]({'class':_0xe2e08(0x184),'withText':!0x0}),_0x259bae['on'](_0xe2e08(0x146),()=>{const _0x3f7dfb=_0xe2e08;_0x259bae[_0x3f7dfb(0x163)](this[_0x3f7dfb(0x17b)][0x0]);}),_0x259bae;}[_0x3cc200(0x181)](_0x12a62a){const _0x33cada=_0x3cc200,_0x3162d6=new Gn(_0x12a62a,{'listItemModels':this[_0x33cada(0x17b)][_0x33cada(0x180)](_0x57ce8a=>{const _0x54dc35=_0x33cada;switch(_0x57ce8a){case _0x54dc35(0x144):return this[_0x54dc35(0x175)];case _0x54dc35(0x169):return this[_0x54dc35(0x15b)];case _0x54dc35(0x137):return this[_0x54dc35(0x187)];}})});return _0x3162d6[_0x33cada(0x177)]({'label':Hn(this[_0x33cada(0x17b)][0x0],_0x12a62a,this[_0x33cada(0x132)]),'tooltip':Ln(this[_0x33cada(0x17b)][0x0],_0x12a62a,this[_0x33cada(0x132)]),'withText':!0x0,'class':_0x33cada(0x156),'balloonPanelClass':_0x33cada(0x166)}),_0x3162d6[_0x33cada(0x173)](_0x33cada(0x14c))['to'](this),_0x3162d6;}[_0x3cc200(0x13f)](_0x401763){const _0x1fdbef=_0x3cc200,_0x27028a=this[_0x1fdbef(0x170)];this[_0x1fdbef(0x132)]=_0x401763||this[_0x1fdbef(0x132)],this[_0x1fdbef(0x140)][_0x1fdbef(0x177)]({'label':Hn(this[_0x1fdbef(0x17b)][0x0],_0x27028a,this[_0x1fdbef(0x132)]),'tooltip':Ln(this[_0x1fdbef(0x17b)][0x0],_0x27028a,this[_0x1fdbef(0x132)])}),this[_0x1fdbef(0x175)][_0x1fdbef(0x174)]=Hn(_0x1fdbef(0x144),_0x27028a,this[_0x1fdbef(0x132)]),this[_0x1fdbef(0x15b)][_0x1fdbef(0x174)]=Hn(_0x1fdbef(0x169),_0x27028a,this[_0x1fdbef(0x132)]),this[_0x1fdbef(0x187)][_0x1fdbef(0x174)]=Hn(_0x1fdbef(0x137),_0x27028a,this[_0x1fdbef(0x132)]);}}class Gn extends _0x5b4d06{[_0x3cc200(0x168)];[_0x3cc200(0x186)];[_0x3cc200(0x14e)];[_0x3cc200(0x13b)];constructor(_0x46a46c,_0x551c81){const _0x271712=_0x3cc200;super(_0x46a46c),this[_0x271712(0x186)]=new _0x5eabc4(this[_0x271712(0x170)]),this[_0x271712(0x168)]=new _0x4d0cc6(this[_0x271712(0x170)]),this[_0x271712(0x168)][_0x271712(0x183)](),this[_0x271712(0x177)](_0x271712(0x143),''),this[_0x271712(0x186)][_0x271712(0x173)](_0x271712(0x160))['to'](this,_0x271712(0x143)),this[_0x271712(0x14e)]=this[_0x271712(0x155)](_0x551c81[_0x271712(0x15c)][_0x271712(0x12a)](0x1)),this[_0x271712(0x168)][_0x271712(0x12e)](this[_0x271712(0x186)]),this[_0x271712(0x186)][_0x271712(0x188)][_0x271712(0x12e)](this[_0x271712(0x14e)]),this[_0x271712(0x16a)][_0x271712(0x164)](_0x271712(0x131)),this[_0x271712(0x16a)][_0x271712(0x177)](_0x271712(0x131),_0x59bcd0(this[_0x271712(0x170)],_0x271712(0x139))),this[_0x271712(0x12d)](),this['on'](_0x271712(0x146),()=>{const _0x5e2d0c=_0x271712,_0xdd6b1d=_0x551c81[_0x5e2d0c(0x15c)][0x0][_0x5e2d0c(0x13e)];this[_0x5e2d0c(0x163)](_0xdd6b1d),this[_0x5e2d0c(0x186)][_0x5e2d0c(0x17c)](),this[_0x5e2d0c(0x16a)][_0x5e2d0c(0x17a)]();}),this['on'](_0x271712(0x189),()=>{const _0x1d0beb=_0x271712;this[_0x1d0beb(0x186)][_0x1d0beb(0x179)]?(this[_0x1d0beb(0x186)][_0x1d0beb(0x17c)](),this[_0x1d0beb(0x16a)][_0x1d0beb(0x17a)]()):(this[_0x1d0beb(0x186)][_0x1d0beb(0x152)]({'target':this[_0x1d0beb(0x185)],'positions':[_0x1d0beb(0x136)===this[_0x1d0beb(0x170)][_0x1d0beb(0x151)]?yn:Pn]}),this[_0x1d0beb(0x14e)][_0x1d0beb(0x17a)]());}),_0x27952a({'emitter':this[_0x271712(0x186)],'callback':()=>{const _0x342f99=_0x271712;this[_0x342f99(0x186)][_0x342f99(0x17c)]();},'activator':()=>this[_0x271712(0x186)][_0x271712(0x179)],'contextElements':()=>[this[_0x271712(0x185)],this[_0x271712(0x186)][_0x271712(0x185)]]});}[_0x3cc200(0x155)](_0x152061){const _0x2f1a51=_0x3cc200,_0x22724=this[_0x2f1a51(0x170)],_0x18a09a=new _0xabd391(_0x22724);for(const _0x585d31 of _0x152061){const _0x1f0227=new _0x5119e9(_0x22724),_0x1a725d=new _0x2fef2d(_0x22724);_0x1a725d[_0x2f1a51(0x173)](...Object[_0x2f1a51(0x128)](_0x585d31))['to'](_0x585d31),_0x1a725d[_0x2f1a51(0x14b)](_0x2f1a51(0x146))['to'](_0x18a09a),_0x1f0227[_0x2f1a51(0x13a)][_0x2f1a51(0x12e)](_0x1a725d),_0x18a09a[_0x2f1a51(0x135)][_0x2f1a51(0x12e)](_0x1f0227);}return _0x18a09a[_0x2f1a51(0x135)][_0x2f1a51(0x14b)](_0x2f1a51(0x146))['to'](this),_0x18a09a['on'](_0x2f1a51(0x146),_0x17ebf1=>{const _0x933911=_0x2f1a51,_0x34a436=_0x17ebf1[_0x933911(0x15a)];this[_0x933911(0x163)](_0x34a436[_0x933911(0x13e)]),this[_0x933911(0x186)][_0x933911(0x17c)](),this[_0x933911(0x16a)][_0x933911(0x17a)]();}),_0x18a09a;}[_0x3cc200(0x12d)](){const _0x503329=_0x3cc200;this[_0x503329(0x13b)]=new _0x240517(),this[_0x503329(0x13b)][_0x503329(0x158)](this[_0x503329(0x186)][_0x503329(0x185)]),this[_0x503329(0x13b)][_0x503329(0x177)](_0x503329(0x15f),(_0x2dd424,_0x473da5)=>{const _0x54f560=_0x503329;this[_0x54f560(0x186)][_0x54f560(0x17c)](),this[_0x54f560(0x16a)][_0x54f560(0x17a)](),_0x473da5();});}[_0x3cc200(0x17d)](){const _0x44758f=_0x3cc200;super[_0x44758f(0x17d)](),this[_0x44758f(0x13b)][_0x44758f(0x17d)](),this[_0x44758f(0x186)][_0x44758f(0x17d)](),this[_0x44758f(0x168)][_0x44758f(0x14d)]();}}function yn(_0x21dee5){const _0x3026d0=_0x3cc200;return{'top':_0x21dee5[_0x3026d0(0x16d)],'left':_0x21dee5[_0x3026d0(0x130)],'name':_0x3026d0(0x159),'config':{'withArrow':!0x1}};}function Pn(_0x407a34,_0x1b9b51){const _0x13a330=_0x3cc200;return{'top':_0x407a34[_0x13a330(0x16d)],'left':_0x407a34[_0x13a330(0x130)]-(_0x1b9b51[_0x13a330(0x17e)]-_0x407a34[_0x13a330(0x17e)]),'name':_0x13a330(0x159),'config':{'withArrow':!0x1}};}function Hn(_0x1c55f2,_0x722336,_0x41ae5f){const _0x477f22=_0x3cc200;switch(_0x1c55f2){case _0x477f22(0x144):return _0x59bcd0(_0x722336,_0x477f22(0x171),_0x41ae5f);case _0x477f22(0x169):return _0x59bcd0(_0x722336,_0x477f22(0x129),_0x41ae5f);case _0x477f22(0x137):return _0x59bcd0(_0x722336,_0x477f22(0x149),_0x41ae5f);}}function Ln(_0x304f4f,_0x38167d,_0x31fda0){const _0x427987=_0x3cc200;switch(_0x304f4f){case _0x427987(0x144):return _0x59bcd0(_0x38167d,_0x427987(0x134),_0x31fda0);case _0x427987(0x169):return _0x59bcd0(_0x38167d,_0x427987(0x150),_0x31fda0);case _0x427987(0x137):return _0x59bcd0(_0x38167d,_0x427987(0x162),_0x31fda0);}}
|
|
@@ -9,7 +9,7 @@ import { type Locale } from 'ckeditor5/src/utils.js';
|
|
|
9
9
|
import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js';
|
|
10
10
|
import { type AISuggestionContentPartDefinition } from '../../../aicore/utils/getsuggestionpartsfromreply.js';
|
|
11
11
|
import { type AISuggestionActionName } from './aichatfeedsuggestionitemactionsview.js';
|
|
12
|
-
import { type AIReplySource } from '../../../aicore/model/aireply.js';
|
|
12
|
+
import { type AIReplyChangeGroupState, type AIReplySource } from '../../../aicore/model/aireply.js';
|
|
13
13
|
import { type AISuggestionBodyViewContentPartView, type AIContentRenderingStrategy } from '../../../aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js';
|
|
14
14
|
/**
|
|
15
15
|
* A view for an AI suggestion item in the AI chat feed.
|
|
@@ -39,7 +39,7 @@ export declare class AIChatFeedSuggestionItemView extends AIChatFeedItemView {
|
|
|
39
39
|
renderingStrategy: AIContentRenderingStrategy;
|
|
40
40
|
abortSignal: AbortSignal;
|
|
41
41
|
}): Promise<void>;
|
|
42
|
-
updatePartState(index: number, state:
|
|
42
|
+
updatePartState(index: number, state: AIReplyChangeGroupState): void;
|
|
43
43
|
updateSources(sources: Array<AIReplySource>): void;
|
|
44
44
|
getPartView(index: number): AISuggestionBodyViewContentPartView | null;
|
|
45
45
|
/**
|
|
@@ -79,5 +79,5 @@ export interface AIChatFeedSuggestionItemViewOptions extends AIChatItemViewOptio
|
|
|
79
79
|
/**
|
|
80
80
|
* The configuration of the advanced reply dropdown in the AI chat feed.
|
|
81
81
|
*/
|
|
82
|
-
|
|
82
|
+
availableActions: Array<AISuggestionActionName>;
|
|
83
83
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x34db62=_0x1143;function _0x1143(_0x904cbe,_0x1469f6){var _0x2cb69c=_0x2cb6();return _0x1143=function(_0x1143f9,_0x51ce4f){_0x1143f9=_0x1143f9-0xe7;var _0x237a98=_0x2cb69c[_0x1143f9];return _0x237a98;},_0x1143(_0x904cbe,_0x1469f6);}function _0x2cb6(){var _0x5f182c=['showDiff','12693ZCEPnc','702hfVicO','172HCsZoz','applySuggestion','fire','updateSources','toggleSuggestionDisplayMode','isEnabled','containerView','extendTemplate','markAsDone','8118ssgFfk','12082UIIYrv','mouseLeaveSuggestion','4950130LKlntm','options','availableActions','dislike','isTrackChangesOn','hasPendingParts','isVisible','areActionsDisabled','showChangeInText','265031vXthqM','children','hasNonEmptyParts','bodyView','mouseOverSuggestion','ck-ai-chat__feed__ai-suggestion','updateContent','actionsView','updatePartState','addMany','bind','like','rejectSuggestion','3045632pHsICr','getPartView','set','updateLabels','insertSuggestion','3072VYbmFs','3037540zOwfrZ','partsCount'];_0x2cb6=function(){return _0x5f182c;};return _0x2cb6();}(function(_0x3e31fe,_0x1e3644){var _0x321b30=_0x1143,_0x10c9d6=_0x3e31fe();while(!![]){try{var _0x52978e=parseInt(_0x321b30(0xed))/0x1+-parseInt(_0x321b30(0x105))/0x2*(parseInt(_0x321b30(0x103))/0x3)+parseInt(_0x321b30(0xfa))/0x4+-parseInt(_0x321b30(0x100))/0x5+-parseInt(_0x321b30(0x104))/0x6*(-parseInt(_0x321b30(0x10f))/0x7)+parseInt(_0x321b30(0xff))/0x8*(-parseInt(_0x321b30(0x10e))/0x9)+parseInt(_0x321b30(0x111))/0xa;if(_0x52978e===_0x1e3644)break;else _0x10c9d6['push'](_0x10c9d6['shift']());}catch(_0x2c396d){_0x10c9d6['push'](_0x10c9d6['shift']());}}}(_0x2cb6,0x63094));import{AIChatFeedItemView as _0x8ede77}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x192c3d}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x12a49d}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x8ede77{[_0x34db62(0x10b)];[_0x34db62(0xf4)];constructor(_0x1755aa,_0x10e90b){var _0x8f7790=_0x34db62;super(_0x10e90b),this[_0x8f7790(0xfc)](_0x8f7790(0xe8),!0x1),this[_0x8f7790(0x10b)]=new _0x192c3d(_0x1755aa,{'showDiff':_0x10e90b[_0x8f7790(0x102)],'areActionsDisabled':_0x10e90b[_0x8f7790(0xeb)],'availableActions':_0x10e90b[_0x8f7790(0x113)]}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0x109),(_0x2a1547,_0x4feac9)=>{var _0x473ec1=_0x8f7790;this[_0x473ec1(0x107)](_0x473ec1(0x109),{'replyId':this[_0x473ec1(0x112)]['id'],'showDiff':_0x4feac9[_0x473ec1(0x102)]});}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0xf8),()=>{var _0x216a94=_0x8f7790;this[_0x216a94(0x107)](_0x216a94(0xf8),{'replyId':this[_0x216a94(0x112)]['id']});}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0xe7),()=>{var _0x531566=_0x8f7790;this[_0x531566(0x107)](_0x531566(0xe7),{'replyId':this[_0x531566(0x112)]['id']});}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0xec),(_0x30001b,{index:_0x5d247b})=>{var _0x3b4779=_0x8f7790;this[_0x3b4779(0x107)](_0x3b4779(0xec),{'replyId':this[_0x3b4779(0x112)]['id'],'partIndex':_0x5d247b});}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0xfe),(_0x4ba183,{index:_0x5cc193})=>{var _0x2e4324=_0x8f7790;this[_0x2e4324(0x107)](_0x2e4324(0xfe),{'replyId':this[_0x2e4324(0x112)]['id'],'partIndex':_0x5cc193});}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0xf9),(_0x122909,{index:_0x2956cd})=>{var _0x442af8=_0x8f7790;this[_0x442af8(0x107)](_0x442af8(0xf9),{'replyId':this[_0x442af8(0x112)]['id'],'partIndex':_0x2956cd});}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0xf1),(_0xc90b0e,{index:_0x3f7084})=>{var _0x2c1b42=_0x8f7790;this[_0x2c1b42(0x107)](_0x2c1b42(0xf1),{'replyId':this[_0x2c1b42(0x112)]['id'],'partIndex':_0x3f7084});}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0x110),(_0xb2bec4,{index:_0x28d0d1})=>{var _0x592729=_0x8f7790;this[_0x592729(0x107)](_0x592729(0x110),{'replyId':this[_0x592729(0x112)]['id'],'partIndex':_0x28d0d1});}),this[_0x8f7790(0xf4)]=new _0x12a49d(_0x1755aa,this[_0x8f7790(0x112)][_0x8f7790(0x113)]),this[_0x8f7790(0xf4)][_0x8f7790(0xf7)](_0x8f7790(0xe8))['to'](this,_0x8f7790(0xe8)),this[_0x8f7790(0xf4)]['on'](_0x8f7790(0xec),()=>{var _0x581c07=_0x8f7790;this[_0x581c07(0x107)](_0x581c07(0xec),{'replyId':this[_0x581c07(0x112)]['id']});}),this[_0x8f7790(0xf4)]['on'](_0x8f7790(0xfe),()=>{var _0x4ceab0=_0x8f7790;this[_0x4ceab0(0x107)](_0x4ceab0(0xfe),{'replyId':this[_0x4ceab0(0x112)]['id']});}),this[_0x8f7790(0xf4)]['on'](_0x8f7790(0x106),()=>{var _0x27660a=_0x8f7790;this[_0x27660a(0x107)](_0x27660a(0x106),{'replyId':this[_0x27660a(0x112)]['id']});}),_0x10e90b[_0x8f7790(0xeb)]?this[_0x8f7790(0xf4)][_0x8f7790(0x10a)]=!0x1:this[_0x8f7790(0xf4)][_0x8f7790(0xf7)](_0x8f7790(0x10a))['to'](this[_0x8f7790(0x10b)][_0x8f7790(0xf0)],_0x8f7790(0xe9)),this[_0x8f7790(0xee)][_0x8f7790(0xf6)]([this[_0x8f7790(0x10b)],this[_0x8f7790(0xf4)]]),this[_0x8f7790(0x10c)]({'attributes':{'class':[_0x8f7790(0xf2)]}});}async[_0x34db62(0xf3)](_0x1553b3){var _0x449d25=_0x34db62;await this[_0x449d25(0x10b)][_0x449d25(0xf3)](_0x1553b3),this[_0x449d25(0xf4)][_0x449d25(0xfd)](this[_0x449d25(0x10b)][_0x449d25(0xf0)][_0x449d25(0x101)]);}[_0x34db62(0xf5)](_0xbeaed7,_0x299550){var _0x106b26=_0x34db62;this[_0x106b26(0x10b)][_0x106b26(0xf0)][_0x106b26(0xf5)](_0xbeaed7,_0x299550);}[_0x34db62(0x108)](_0x5e7d89){var _0x46e7ff=_0x34db62;this[_0x46e7ff(0x10b)][_0x46e7ff(0x108)](_0x5e7d89);}[_0x34db62(0xfb)](_0x1e9253){var _0x405436=_0x34db62;return this[_0x405436(0x10b)][_0x405436(0xf0)][_0x405436(0xfb)](_0x1e9253);}[_0x34db62(0x10d)](){var _0x2308d9=_0x34db62;super[_0x2308d9(0x10d)](),this[_0x2308d9(0x10b)][_0x2308d9(0x10d)](),this[_0x2308d9(0xf4)][_0x2308d9(0xea)]=this[_0x2308d9(0x10b)][_0x2308d9(0xf0)][_0x2308d9(0xef)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1398e6=_0x441d;(function(_0x5654c2,_0x4eaf73){var _0x46774f=_0x441d,_0x31798a=_0x5654c2();while(!![]){try{var _0x43bd8e=-parseInt(_0x46774f(0x150))/0x1+-parseInt(_0x46774f(0x143))/0x2+-parseInt(_0x46774f(0x15b))/0x3+-parseInt(_0x46774f(0x145))/0x4*(parseInt(_0x46774f(0x14c))/0x5)+parseInt(_0x46774f(0x152))/0x6+parseInt(_0x46774f(0x14a))/0x7*(parseInt(_0x46774f(0x151))/0x8)+parseInt(_0x46774f(0x153))/0x9*(parseInt(_0x46774f(0x149))/0xa);if(_0x43bd8e===_0x4eaf73)break;else _0x31798a['push'](_0x31798a['shift']());}catch(_0x429e84){_0x31798a['push'](_0x31798a['shift']());}}}(_0x28cd,0x1ff6a));import{AIChatFeedItemView as _0x39e82a}from'./aichatfeeditemview.js';function _0x28cd(){var _0x655bc8=['9645HhTRYz','ck-ai-chat__feed__user-message','ck-ai-chat__feed__context-chips','element','41502zMsruF','471272dksYwA','769188NtnzwP','558342tBtalD','_bodyCollection','children','render','markAsDone','length','add','contextItems','317367hIQfin','_contextChipsView','setTemplate','initialContent','ck-ai-chat__feed__message-content','hidden','_createMessageContentView','_createContextChipsView','_locale','options','152056xinInz','extendTemplate','168lJivjL','innerHTML','filter','_messageContentView','40ejVabf','7nkjcOr','div'];_0x28cd=function(){return _0x655bc8;};return _0x28cd();}function _0x441d(_0xca46d,_0x3391da){var _0x28cd1d=_0x28cd();return _0x441d=function(_0x441dd0,_0x36dab9){_0x441dd0=_0x441dd0-0x143;var _0x89459a=_0x28cd1d[_0x441dd0];return _0x89459a;},_0x441d(_0xca46d,_0x3391da);}import{AIChatFeedContextChipsView as _0x164db4}from'./aichatfeedcontextchipsview.js';import{View as _0x1d1a99}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x39e82a{[_0x1398e6(0x15c)]=null;[_0x1398e6(0x163)];[_0x1398e6(0x154)];[_0x1398e6(0x148)];constructor(_0x3822db,_0xf31c2,_0x1be89f){var _0x14d5ae=_0x1398e6;super(_0xf31c2),this[_0x14d5ae(0x163)]=_0x3822db,this[_0x14d5ae(0x154)]=_0x1be89f,this[_0x14d5ae(0x162)](),this[_0x14d5ae(0x161)](),this[_0x14d5ae(0x144)]({'attributes':{'class':[_0x14d5ae(0x14d)]}});}[_0x1398e6(0x162)](){var _0x175b3d=_0x1398e6;this[_0x175b3d(0x164)][_0x175b3d(0x15a)]&&this[_0x175b3d(0x164)][_0x175b3d(0x15a)][_0x175b3d(0x158)]>0x0&&(this[_0x175b3d(0x15c)]=new _0x164db4(this[_0x175b3d(0x163)],this[_0x175b3d(0x164)][_0x175b3d(0x15a)][_0x175b3d(0x147)](_0x2fa068=>!_0x2fa068[_0x175b3d(0x160)]),this[_0x175b3d(0x154)]),this[_0x175b3d(0x15c)][_0x175b3d(0x144)]({'attributes':{'class':_0x175b3d(0x14e)}}),this[_0x175b3d(0x155)][_0x175b3d(0x159)](this[_0x175b3d(0x15c)]));}[_0x1398e6(0x161)](){var _0x36bdd4=_0x1398e6;this[_0x36bdd4(0x148)]=new _0x1d1a99(this[_0x36bdd4(0x163)]),this[_0x36bdd4(0x148)][_0x36bdd4(0x15d)]({'tag':_0x36bdd4(0x14b),'attributes':{'class':_0x36bdd4(0x15f)}}),this[_0x36bdd4(0x155)][_0x36bdd4(0x159)](this[_0x36bdd4(0x148)]);}[_0x1398e6(0x156)](){var _0x165c42=_0x1398e6;super[_0x165c42(0x156)](),this[_0x165c42(0x148)][_0x165c42(0x14f)][_0x165c42(0x146)]=this[_0x165c42(0x164)][_0x165c42(0x15e)],this[_0x165c42(0x157)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2fb127=_0x2f20;function _0x58d4(){const _0x3fb03d=['addDocumentToContext','startConversation','toggleReasoning','addUrlToContext','resizeTabs','11967EBgmQA','abortPromptStream','4637910whuQXY','toggleWebSearch','addResourceToContext','368788SqRCJR','removeContextItem','7823915XealEw','92yPWCth','loadSourceResources','16bsHsLE','4479167KKGCGi','addFileToContext','selectModel','238988AaqGhP','20fKhimi','6HMiXgZ','3062655EzMiSB','sendUserMessage'];_0x58d4=function(){return _0x3fb03d;};return _0x58d4();}(function(_0x13407a,_0x3de6e3){const _0x36998e=_0x2f20,_0x30fb0c=_0x13407a();while(!![]){try{const _0x412f6d=-parseInt(_0x36998e(0x1af))/0x1+parseInt(_0x36998e(0x1b8))/0x2+-parseInt(_0x36998e(0x1c2))/0x3*(parseInt(_0x36998e(0x1b2))/0x4)+parseInt(_0x36998e(0x1c4))/0x5+-parseInt(_0x36998e(0x1ba))/0x6*(-parseInt(_0x36998e(0x1b5))/0x7)+parseInt(_0x36998e(0x1b4))/0x8*(parseInt(_0x36998e(0x1bb))/0x9)+-parseInt(_0x36998e(0x1b9))/0xa*(parseInt(_0x36998e(0x1b1))/0xb);if(_0x412f6d===_0x3de6e3)break;else _0x30fb0c['push'](_0x30fb0c['shift']());}catch(_0x384e12){_0x30fb0c['push'](_0x30fb0c['shift']());}}}(_0x58d4,0x76482));function _0x2f20(_0xc857d2,_0x544bdb){const _0x58d417=_0x58d4();return _0x2f20=function(_0x2f200a,_0x170531){_0x2f200a=_0x2f200a-0x1af;let _0x38da1f=_0x58d417[_0x2f200a];return _0x38da1f;},_0x2f20(_0xc857d2,_0x544bdb);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x1a0f3b}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x1a0f3b,_0x2fb127(0x1be),_0x2fb127(0x1c1),_0x2fb127(0x1bc),_0x2fb127(0x1c3),_0x2fb127(0x1bd),_0x2fb127(0x1b6),_0x2fb127(0x1c0),_0x2fb127(0x1c6),_0x2fb127(0x1b0),_0x2fb127(0x1b3),_0x2fb127(0x1c5),_0x2fb127(0x1bf),_0x2fb127(0x1b7)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x428c5b=_0x12b6;(function(_0x34d88e,_0x399e7c){const _0x188bba=_0x12b6,_0x2922f2=_0x34d88e();while(!![]){try{const _0x2b1cfc=-parseInt(_0x188bba(0xd7))/0x1+-parseInt(_0x188bba(0xd3))/0x2*(parseInt(_0x188bba(0xc7))/0x3)+-parseInt(_0x188bba(0xd1))/0x4+parseInt(_0x188bba(0xdc))/0x5+parseInt(_0x188bba(0xd8))/0x6*(-parseInt(_0x188bba(0xcc))/0x7)+-parseInt(_0x188bba(0xce))/0x8+parseInt(_0x188bba(0xc5))/0x9*(parseInt(_0x188bba(0xd0))/0xa);if(_0x2b1cfc===_0x399e7c)break;else _0x2922f2['push'](_0x2922f2['shift']());}catch(_0x45acb6){_0x2922f2['push'](_0x2922f2['shift']());}}}(_0x505a,0xc47fc));function _0x505a(){const _0x3e7a78=['reject','callback','resolve','17737zSzcrE','5040060ytfgHd','once','shift','signal','7011045UzBcae','enqueue','queueEmptyPromise','push','completePromise','abort','189uyjXiR','fire','1266555cMoLMi','createTask','_abortController','length','_processQueue','7wwObRO','isProcessing','3440928DeZJkK','_queueEmpty','1072730TIpaZb','4560136sOaNwK','queue','2dmqUyz'];_0x505a=function(){return _0x3e7a78;};return _0x505a();}function _0x12b6(_0x2413d4,_0x134d3c){const _0x505a5c=_0x505a();return _0x12b6=function(_0x12b627,_0x5064a7){_0x12b627=_0x12b627-0xc0;let _0xcfe7c0=_0x505a5c[_0x12b627];return _0xcfe7c0;},_0x12b6(_0x2413d4,_0x134d3c);}import{EmitterMixin as _0x5b9859}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x5b9859(){[_0x428c5b(0xd2)]=[];[_0x428c5b(0xcd)]=!0x1;[_0x428c5b(0xc9)];async[_0x428c5b(0xc0)](_0x5e3978){const _0x5ad55d=_0x428c5b,_0x587188=this[_0x5ad55d(0xc8)](_0x5e3978);return this[_0x5ad55d(0xd2)][_0x5ad55d(0xc2)](_0x587188),this[_0x5ad55d(0xcb)](),_0x587188[_0x5ad55d(0xc3)];}[_0x428c5b(0xc4)](){const _0x43ae27=_0x428c5b;this[_0x43ae27(0xcd)]&&(this[_0x43ae27(0xc9)][_0x43ae27(0xc4)](),this[_0x43ae27(0xc9)]=void 0x0,this[_0x43ae27(0xd2)]=[],this[_0x43ae27(0xc6)](_0x43ae27(0xcf)),this[_0x43ae27(0xcd)]=!0x1);}get[_0x428c5b(0xc1)](){const _0x2fdde2=_0x428c5b;return this[_0x2fdde2(0xd2)][_0x2fdde2(0xca)]||this[_0x2fdde2(0xcd)]?new Promise(_0x76fbd3=>{const _0x490e32=_0x2fdde2;this[_0x490e32(0xd9)](_0x490e32(0xcf),()=>{_0x76fbd3();});}):Promise[_0x2fdde2(0xd6)]();}async[_0x428c5b(0xcb)](){const _0x118d56=_0x428c5b;if(!this[_0x118d56(0xcd)]){this[_0x118d56(0xc9)]=new AbortController(),this[_0x118d56(0xcd)]=!0x0;try{for(;this[_0x118d56(0xd2)][_0x118d56(0xca)]&&this[_0x118d56(0xcd)];){const _0x3adc59=this[_0x118d56(0xd2)][_0x118d56(0xda)]();try{await _0x3adc59[_0x118d56(0xd5)](this[_0x118d56(0xc9)][_0x118d56(0xdb)]),_0x3adc59[_0x118d56(0xd6)]();}catch(_0x5ad2d3){_0x3adc59[_0x118d56(0xd4)](_0x5ad2d3);}}}finally{this[_0x118d56(0xcd)]=!0x1,this[_0x118d56(0xc9)]=void 0x0;}this[_0x118d56(0xc6)](_0x118d56(0xcf));}}[_0x428c5b(0xc8)](_0x264ed1){let _0x363ab8,_0x4ebda8;const _0x55b2cd=new Promise((_0x2bf117,_0x16e8b6)=>{_0x363ab8=_0x2bf117,_0x4ebda8=_0x16e8b6;});return{'callback':_0x264ed1,'resolve':_0x363ab8,'reject':_0x4ebda8,'completePromise':_0x55b2cd};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5be4(){const _0x3de792=['type','abortController','signal','156955fgdVud','stop','key','7196823BOdOnJ','148OfhbQX','abort','deltaY','_stop','scrollHeight','animationFrameId','element','destroy','ArrowDown','touchstart','End','start','22QazZla','isRunning','bind','553UeeHrf','_onUserEvent','includes','_rafUpdate','isUserPaused','scrollTo','PageDown','Home','keydown','4306302WHQFJp','_isAtBottom','addEventListener','80346SBBxjP','1302040UYUOYk','wheel','ArrowUp','1085290klfYbP','PageUp','pointerdown','auto','8PlmYKH','17415730aeeFsp'];_0x5be4=function(){return _0x3de792;};return _0x5be4();}const _0x215af6=_0x2c89;function _0x2c89(_0x36d0ce,_0x40287f){const _0x5be443=_0x5be4();return _0x2c89=function(_0x2c896d,_0x5c0d27){_0x2c896d=_0x2c896d-0x6d;let _0x3deb50=_0x5be443[_0x2c896d];return _0x3deb50;},_0x2c89(_0x36d0ce,_0x40287f);}(function(_0x12a479,_0x2ec5d0){const _0x4b3235=_0x2c89,_0x5cb4f3=_0x12a479();while(!![]){try{const _0x44714d=parseInt(_0x4b3235(0x8e))/0x1+parseInt(_0x4b3235(0x8b))/0x2+-parseInt(_0x4b3235(0x87))/0x3+-parseInt(_0x4b3235(0x6f))/0x4*(parseInt(_0x4b3235(0x97))/0x5)+-parseInt(_0x4b3235(0x8a))/0x6*(parseInt(_0x4b3235(0x7e))/0x7)+parseInt(_0x4b3235(0x92))/0x8*(-parseInt(_0x4b3235(0x6e))/0x9)+-parseInt(_0x4b3235(0x93))/0xa*(-parseInt(_0x4b3235(0x7b))/0xb);if(_0x44714d===_0x2ec5d0)break;else _0x5cb4f3['push'](_0x5cb4f3['shift']());}catch(_0x5d4dac){_0x5cb4f3['push'](_0x5cb4f3['shift']());}}}(_0x5be4,0xbac5b));const ws=[_0x215af6(0x8c),_0x215af6(0x78),_0x215af6(0x90),_0x215af6(0x86)],fs=[_0x215af6(0x8d),_0x215af6(0x77),_0x215af6(0x8f),_0x215af6(0x84),_0x215af6(0x85),_0x215af6(0x79),'\x20'];export class ScrollManager{[_0x215af6(0x75)];[_0x215af6(0x74)];[_0x215af6(0x7c)];[_0x215af6(0x95)];[_0x215af6(0x82)];constructor(_0x40cfb7){const _0x59d29f=_0x215af6;this[_0x59d29f(0x75)]=_0x40cfb7,this[_0x59d29f(0x74)]=null,this[_0x59d29f(0x7c)]=!0x1,this[_0x59d29f(0x95)]=new AbortController(),this[_0x59d29f(0x82)]=!0x1;for(const _0x35efa1 of ws){const _0x255a56=_0x59d29f(0x86)!==_0x35efa1;this[_0x59d29f(0x75)][_0x59d29f(0x89)](_0x35efa1,this[_0x59d29f(0x7f)][_0x59d29f(0x7d)](this),{'passive':_0x255a56,'signal':this[_0x59d29f(0x95)][_0x59d29f(0x96)]});}}[_0x215af6(0x7a)](){const _0x2608d7=_0x215af6;this[_0x2608d7(0x7c)]||(this[_0x2608d7(0x7c)]=!0x0,this[_0x2608d7(0x82)]=!0x1,this[_0x2608d7(0x74)]=requestAnimationFrame(this[_0x2608d7(0x81)][_0x2608d7(0x7d)](this)));}[_0x215af6(0x98)](){requestAnimationFrame(()=>{const _0x55daab=_0x2c89;this[_0x55daab(0x72)]();});}[_0x215af6(0x76)](){const _0x45a807=_0x215af6;this[_0x45a807(0x72)](),this[_0x45a807(0x95)][_0x45a807(0x70)]();}[_0x215af6(0x72)](){const _0x55144f=_0x215af6;null!==this[_0x55144f(0x74)]&&(cancelAnimationFrame(this[_0x55144f(0x74)]),this[_0x55144f(0x74)]=null),this[_0x55144f(0x7c)]&&(this[_0x55144f(0x7c)]=!0x1),this[_0x55144f(0x82)]=!0x1;}[_0x215af6(0x7f)](_0x57f417){const _0x536c74=_0x215af6;if(this[_0x536c74(0x7c)]){if(_0x536c74(0x86)===_0x57f417[_0x536c74(0x94)]){const _0xa59568=_0x57f417[_0x536c74(0x6d)];if(!fs[_0x536c74(0x80)](_0xa59568))return;}_0x57f417 instanceof WheelEvent?_0x57f417[_0x536c74(0x71)]<0x0?this[_0x536c74(0x82)]=!0x0:this[_0x536c74(0x82)]=!this[_0x536c74(0x88)]():this[_0x536c74(0x82)]=!0x0;}}[_0x215af6(0x88)](){const _0x35be99=_0x215af6,{scrollTop:_0x5eb4ea,scrollHeight:_0x3c1593,clientHeight:_0x18396c}=this[_0x35be99(0x75)];return _0x3c1593-_0x5eb4ea-_0x18396c<=0x5;}[_0x215af6(0x81)](){const _0x5957bd=_0x215af6;this[_0x5957bd(0x7c)]&&(this[_0x5957bd(0x82)]||this[_0x5957bd(0x75)][_0x5957bd(0x83)]({'top':this[_0x5957bd(0x75)][_0x5957bd(0x73)],'behavior':_0x5957bd(0x91)}),this[_0x5957bd(0x74)]=requestAnimationFrame(this[_0x5957bd(0x81)][_0x5957bd(0x7d)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x3ecbe8=_0x30ca;(function(_0x18d4ab,_0x17543b){var _0x8b32b4=_0x30ca,_0x4b29fc=_0x18d4ab();while(!![]){try{var _0x1467e4=-parseInt(_0x8b32b4(0x66))/0x1+-parseInt(_0x8b32b4(0x6e))/0x2*(parseInt(_0x8b32b4(0x6f))/0x3)+-parseInt(_0x8b32b4(0x73))/0x4+-parseInt(_0x8b32b4(0x6a))/0x5+parseInt(_0x8b32b4(0x6c))/0x6*(-parseInt(_0x8b32b4(0x72))/0x7)+-parseInt(_0x8b32b4(0x6b))/0x8*(-parseInt(_0x8b32b4(0x74))/0x9)+-parseInt(_0x8b32b4(0x75))/0xa*(-parseInt(_0x8b32b4(0x71))/0xb);if(_0x1467e4===_0x17543b)break;else _0x4b29fc['push'](_0x4b29fc['shift']());}catch(_0x98606c){_0x4b29fc['push'](_0x4b29fc['shift']());}}}(_0x3ad8,0xeef98));import{ContextPlugin as _0x2f1bbd}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x147f56}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x2f6216}from'./aichathistoryui.js';function _0x3ad8(){var _0x180aee=['94749vZURQn','isPremiumPlugin','385CEwxiX','13605221esEyzh','3150120cCuMhU','9rULhcx','1326680zkrZeJ','299450eSkJWx','isOfficialPlugin','AIChatHistory','pluginName','1838235QFCWmP','1154152JLXToq','6fHEXDP','requires','26LpXFMx'];_0x3ad8=function(){return _0x180aee;};return _0x3ad8();}function _0x30ca(_0x5a7cd9,_0x5263e0){var _0x3ad872=_0x3ad8();return _0x30ca=function(_0x30ca2b,_0x18e1be){_0x30ca2b=_0x30ca2b-0x66;var _0x3adf69=_0x3ad872[_0x30ca2b];return _0x3adf69;},_0x30ca(_0x5a7cd9,_0x5263e0);}export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x2f1bbd{static get[_0x3ecbe8(0x6d)](){return[_0x147f56,_0x2f6216];}static get[_0x3ecbe8(0x69)](){var _0x337024=_0x3ecbe8;return _0x337024(0x68);}static get[_0x3ecbe8(0x67)](){return!0x0;}static get[_0x3ecbe8(0x70)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x227c46=_0x2c46;(function(_0x1c6d79,_0x37a2ae){const _0x283965=_0x2c46,_0x33866f=_0x1c6d79();while(!![]){try{const _0x4f8144=-parseInt(_0x283965(0x18e))/0x1+-parseInt(_0x283965(0x1c4))/0x2+-parseInt(_0x283965(0x19c))/0x3*(-parseInt(_0x283965(0x1bf))/0x4)+-parseInt(_0x283965(0x194))/0x5+parseInt(_0x283965(0x1a8))/0x6*(parseInt(_0x283965(0x1a1))/0x7)+-parseInt(_0x283965(0x18f))/0x8*(-parseInt(_0x283965(0x1d2))/0x9)+parseInt(_0x283965(0x1b5))/0xa;if(_0x4f8144===_0x37a2ae)break;else _0x33866f['push'](_0x33866f['shift']());}catch(_0x13a416){_0x33866f['push'](_0x33866f['shift']());}}}(_0x11db,0x2f4da));import{ContextPlugin as _0x45b9aa}from'ckeditor5/src/core.js';import{AIConnector as _0x41da9e}from'../aicore/aiconnector.js';import{AIChatController as _0x21161e}from'../aichat/aichatcontroller.js';import{AITabs as _0x452297}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x59bc05}from'./aichathistoryui.js';function _0x11db(){const _0x1af9f2=['map','pluginName','chat','rename','updateItems','AI_CHAT_UNTITLED_CONVERSATION','get','activateTab','2680uAoevM','getItem','AI_CHAT_HISTORY_CATEGORY_PINNED','getFullYear','AI_CHAT_HISTORY_UNPIN_ACTION','332504MIkDBd','loadConversation','getDate','AIChatHistoryController','change:activeConversation','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','requires','context','_handleRemove','itemRemoved','listenTo','getMonth','_setIsMaximized','locale','883044tjESAZ','_getCategorizedItems','_updateHistoryItemsUI','resize','history','itemsLoaded','AI_CHAT_HISTORY_CATEGORY_TODAY','init','updates','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','unpin','updateItemTitle','plugins','_generateErrorMessage','createdAt','_showConversationHistory','error','_aiConnector','_clearItemLoading','remove','resizeTabs','toLocaleDateString','getGroupId','itemUpdated','updateItemLoadingState','_handleEditTitle','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','updateItemPinned','_handleSelectConversation','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_ERROR_GENERIC','operation','isPremiumPlugin','removeItem','364306QWmmPp','24feQymt','removeConversation','view','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_aiChatHistoryUi','240285dinhBp','pin','activateTab:history','handleRemovedConversation','openChat','selectConversation','length','isOfficialPlugin','855DHtyNo','setDate','AI_CHAT_HISTORY_CATEGORY_LATER','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','activeConversation','2436quyJuD','_setItemLoading','setIsMaximized','_handleTogglePin','editConversationTitle','_aiChatController','push','6eGRvkJ','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','items','setConversationPinned','removeHistoryItem','setLoadingSkeleton','pinned','itemId','_handleHistoryErrorUI','title','showError','resizedTabs','loadItems','2867230nVMAUu','getItems'];_0x11db=function(){return _0x1af9f2;};return _0x11db();}import{AIChatHistoryConversations as _0x2e8f22}from'./model/aichathistoryconversations.js';import{getTranslation as _0x235cd}from'../aicore/utils/common-translations.js';function _0x2c46(_0x4c7dbf,_0x36d5a9){const _0x11dbcb=_0x11db();return _0x2c46=function(_0x2c462a,_0x3875a8){_0x2c462a=_0x2c462a-0x18d;let _0x6af885=_0x11dbcb[_0x2c462a];return _0x6af885;},_0x2c46(_0x4c7dbf,_0x36d5a9);}export class AIChatHistoryController extends _0x45b9aa{[_0x227c46(0x1e3)];[_0x227c46(0x193)];[_0x227c46(0x1a6)];static get[_0x227c46(0x1ca)](){return[_0x41da9e,_0x21161e,_0x59bc05,_0x452297];}static get[_0x227c46(0x1b8)](){const _0x1e4fa6=_0x227c46;return _0x1e4fa6(0x1c7);}static get[_0x227c46(0x19b)](){return!0x0;}static get[_0x227c46(0x1f2)](){return!0x0;}[_0x227c46(0x1d9)](){const _0x588d9b=_0x227c46;this[_0x588d9b(0x1e3)]=this[_0x588d9b(0x1cb)][_0x588d9b(0x1de)][_0x588d9b(0x1bd)](_0x41da9e),this[_0x588d9b(0x193)]=this[_0x588d9b(0x1cb)][_0x588d9b(0x1de)][_0x588d9b(0x1bd)](_0x59bc05),this[_0x588d9b(0x1a6)]=this[_0x588d9b(0x1cb)][_0x588d9b(0x1de)][_0x588d9b(0x1bd)](_0x21161e);const _0x54e8c9=this[_0x588d9b(0x1cb)][_0x588d9b(0x1de)][_0x588d9b(0x1bd)](_0x452297),_0x30a29f=this[_0x588d9b(0x1a6)][_0x588d9b(0x1e8)]();this[_0x588d9b(0x1d6)]=new _0x2e8f22({'connector':this[_0x588d9b(0x1e3)],'group':_0x30a29f}),this[_0x588d9b(0x1ce)](this[_0x588d9b(0x193)],_0x588d9b(0x190),(_0x1b7b83,_0x104a37)=>{const _0x2d78b5=_0x588d9b;this[_0x2d78b5(0x1a2)](_0x104a37['id'],_0x2d78b5(0x1e5)),this[_0x2d78b5(0x1cc)](_0x104a37['id']);}),this[_0x588d9b(0x1ce)](this[_0x588d9b(0x193)],_0x588d9b(0x1a5),(_0x4d1444,_0x2e2de9)=>{const _0x28b357=_0x588d9b;this[_0x28b357(0x1a2)](_0x2e2de9['id'],_0x28b357(0x1ba)),this[_0x28b357(0x1eb)](_0x2e2de9['id'],_0x2e2de9[_0x28b357(0x1b1)]);}),this[_0x588d9b(0x1ce)](this[_0x588d9b(0x1d6)],_0x588d9b(0x1e9),(_0x54e6fc,_0x4efadf)=>{const _0x4e8568=_0x588d9b;void 0x0!==_0x4efadf[_0x4e8568(0x1da)][_0x4e8568(0x1b1)]&&this[_0x4e8568(0x193)][_0x4e8568(0x1dd)](_0x4efadf[_0x4e8568(0x1af)],_0x4efadf[_0x4e8568(0x1da)][_0x4e8568(0x1b1)]),void 0x0!==_0x4efadf[_0x4e8568(0x1da)][_0x4e8568(0x1ae)]&&this[_0x4e8568(0x1d4)](),this[_0x4e8568(0x1e4)](_0x4efadf[_0x4e8568(0x1af)]);}),this[_0x588d9b(0x1ce)](this[_0x588d9b(0x1d6)],_0x588d9b(0x1cd),(_0x5e095a,_0x40bad0)=>{const _0x3a3781=_0x588d9b;this[_0x3a3781(0x1a6)][_0x3a3781(0x197)](_0x40bad0[_0x3a3781(0x1af)]),this[_0x3a3781(0x193)][_0x3a3781(0x1ac)](_0x40bad0[_0x3a3781(0x1af)]),this[_0x3a3781(0x1e4)](_0x40bad0[_0x3a3781(0x1af)]);}),this[_0x588d9b(0x1ce)](this[_0x588d9b(0x1d6)],_0x588d9b(0x1d7),()=>{const _0x561d57=_0x588d9b;this[_0x561d57(0x1d4)]();}),this[_0x588d9b(0x1ce)](this[_0x588d9b(0x1d6)],_0x588d9b(0x1e2),(_0xbf7747,_0x1df584)=>{const _0x960dc8=_0x588d9b;this[_0x960dc8(0x1b0)](_0x1df584[_0x960dc8(0x1e2)],_0x1df584[_0x960dc8(0x1f1)],_0x1df584[_0x960dc8(0x1af)]);}),this[_0x588d9b(0x1ce)](this[_0x588d9b(0x193)],_0x588d9b(0x199),(_0x3d0d47,_0x2f2aa9)=>{const _0x162fb9=_0x588d9b;this[_0x162fb9(0x1ee)](_0x2f2aa9['id']);}),this[_0x588d9b(0x1ce)](this[_0x588d9b(0x193)],_0x588d9b(0x1ab),(_0x3d2ca3,_0x2b2931)=>{const _0x32bf03=_0x588d9b,_0x3afcf2=_0x2b2931[_0x32bf03(0x1ae)]?_0x32bf03(0x195):_0x32bf03(0x1dc);this[_0x32bf03(0x1a2)](_0x2b2931['id'],_0x3afcf2),this[_0x32bf03(0x1a4)](_0x2b2931['id'],_0x2b2931[_0x32bf03(0x1ae)]);}),this[_0x588d9b(0x1ce)](this[_0x588d9b(0x193)],_0x588d9b(0x198),()=>{const _0x30de67=_0x588d9b;_0x54e8c9[_0x30de67(0x191)][_0x30de67(0x1be)](_0x30de67(0x1b9));}),this[_0x588d9b(0x1ce)](this[_0x588d9b(0x1a6)],_0x588d9b(0x1c8),()=>{const _0x20dc7c=_0x588d9b;this[_0x20dc7c(0x1d4)]();}),_0x54e8c9[_0x588d9b(0x191)]['on'](_0x588d9b(0x196),()=>{const _0x49fe0d=_0x588d9b;this[_0x49fe0d(0x1e1)]();}),this[_0x588d9b(0x1ce)](_0x54e8c9,_0x588d9b(0x1b3),(_0x1d20c2,_0x187104)=>{const _0x975a36=_0x588d9b;this[_0x975a36(0x1d0)](_0x187104);}),this[_0x588d9b(0x1ce)](this[_0x588d9b(0x193)],_0x588d9b(0x1e6),()=>{const _0x5bad1a=_0x588d9b;_0x54e8c9[_0x5bad1a(0x1d5)]();});}async[_0x227c46(0x1eb)](_0x505104,_0x40109a){const _0x132ad2=_0x227c46;await this[_0x132ad2(0x1d6)][_0x132ad2(0x1dd)](_0x505104,_0x40109a);}async[_0x227c46(0x1a4)](_0x29784e,_0x28de2b){const _0x10f7d1=_0x227c46;await this[_0x10f7d1(0x1d6)][_0x10f7d1(0x1ed)](_0x29784e,_0x28de2b);}async[_0x227c46(0x1cc)](_0x2c98aa){const _0x31d2a0=_0x227c46;await this[_0x31d2a0(0x1d6)][_0x31d2a0(0x18d)](_0x2c98aa);}async[_0x227c46(0x1ee)](_0x3bd65e){const _0x344ad0=_0x227c46;await this[_0x344ad0(0x1a6)][_0x344ad0(0x1c5)](_0x3bd65e);}async[_0x227c46(0x1e1)](){const _0x23b54e=_0x227c46;this[_0x23b54e(0x193)][_0x23b54e(0x1b2)](''),this[_0x23b54e(0x193)][_0x23b54e(0x1ad)](!0x0),await this[_0x23b54e(0x1d6)][_0x23b54e(0x1d9)](),this[_0x23b54e(0x193)][_0x23b54e(0x1ad)](!0x1);}[_0x227c46(0x1d4)](){const _0x2a6d92=_0x227c46,_0x4cee5b=this[_0x2a6d92(0x1a6)][_0x2a6d92(0x1a0)]?.['id'],_0x221d89=this[_0x2a6d92(0x1d3)]()[_0x2a6d92(0x1b7)](_0x15c3db=>({'title':_0x15c3db[_0x2a6d92(0x1b1)],'items':_0x15c3db[_0x2a6d92(0x1aa)][_0x2a6d92(0x1b7)](_0x45faea=>({'id':_0x45faea['id'],'title':_0x45faea[_0x2a6d92(0x1b1)]||_0x235cd(this[_0x2a6d92(0x1cb)][_0x2a6d92(0x1d1)],_0x2a6d92(0x1bc)),'createdAt':new Date(_0x45faea[_0x2a6d92(0x1e0)])[_0x2a6d92(0x1e7)](),'active':_0x45faea['id']===_0x4cee5b,'pinned':_0x45faea[_0x2a6d92(0x1ae)]}))}));this[_0x2a6d92(0x193)][_0x2a6d92(0x1bb)](_0x221d89);}[_0x227c46(0x1a2)](_0x46e668,_0x103336){const _0x3c5742=_0x227c46;this[_0x3c5742(0x193)][_0x3c5742(0x1ea)](_0x46e668,_0x103336,!0x0);}[_0x227c46(0x1e4)](_0x37f041){const _0x472978=_0x227c46;this[_0x472978(0x193)][_0x472978(0x1ea)](_0x37f041,null,!0x1);}[_0x227c46(0x1b0)](_0x435b22,_0x17645e,_0x3cba56){const _0x4946ca=_0x227c46,_0x342ab1=this[_0x4946ca(0x1df)](_0x17645e,_0x3cba56);this[_0x4946ca(0x193)][_0x4946ca(0x1b2)](_0x342ab1),_0x3cba56&&this[_0x4946ca(0x1e4)](_0x3cba56),this[_0x4946ca(0x193)][_0x4946ca(0x1ad)](!0x1);}[_0x227c46(0x1df)](_0x2ee889,_0x4a01db){const _0x378248=_0x227c46,_0x198fc4=_0x4a01db?this[_0x378248(0x1d6)][_0x378248(0x1c0)](_0x4a01db):null,_0x2edb1b=_0x198fc4?.[_0x378248(0x1b1)]||_0x235cd(this[_0x378248(0x1cb)][_0x378248(0x1d1)],_0x378248(0x1bc));switch(_0x2ee889){case _0x378248(0x1dd):return _0x235cd(this[_0x378248(0x1cb)][_0x378248(0x1d1)],_0x378248(0x1db),_0x2edb1b);case _0x378248(0x1ed):{const _0x2a5c72=_0x235cd(this[_0x378248(0x1cb)][_0x378248(0x1d1)],_0x198fc4?.[_0x378248(0x1ae)]?_0x378248(0x1c3):_0x378248(0x1ef));return _0x235cd(this[_0x378248(0x1cb)][_0x378248(0x1d1)],_0x378248(0x192),[_0x2a5c72,_0x2edb1b]);}case _0x378248(0x18d):return _0x235cd(this[_0x378248(0x1cb)][_0x378248(0x1d1)],_0x378248(0x19f),_0x2edb1b);case _0x378248(0x1d9):case _0x378248(0x1b4):return _0x235cd(this[_0x378248(0x1cb)][_0x378248(0x1d1)],_0x378248(0x1c9));default:return _0x235cd(this[_0x378248(0x1cb)][_0x378248(0x1d1)],_0x378248(0x1f0));}}[_0x227c46(0x1d3)](){const _0x3c2a25=_0x227c46,_0x4f7bfd=new Date(),_0x58527a=new Date(_0x4f7bfd[_0x3c2a25(0x1c2)](),_0x4f7bfd[_0x3c2a25(0x1cf)](),_0x4f7bfd[_0x3c2a25(0x1c6)]()),_0x30a85a=new Date(_0x58527a);_0x30a85a[_0x3c2a25(0x19d)](_0x30a85a[_0x3c2a25(0x1c6)]()-0x1);const _0x2d05d7=new Date(_0x58527a);_0x2d05d7[_0x3c2a25(0x19d)](_0x2d05d7[_0x3c2a25(0x1c6)]()-0xe);const _0xcaaa96=this[_0x3c2a25(0x1d6)][_0x3c2a25(0x1b6)]({'pinned':!0x0}),_0x18ab7b=this[_0x3c2a25(0x1d6)][_0x3c2a25(0x1b6)]({'from':_0x58527a,'to':_0x58527a}),_0x3e1ff3=this[_0x3c2a25(0x1d6)][_0x3c2a25(0x1b6)]({'from':_0x30a85a,'to':_0x30a85a}),_0x1bd829=this[_0x3c2a25(0x1d6)][_0x3c2a25(0x1b6)]({'from':_0x2d05d7,'to':_0x30a85a}),_0x28bb77=this[_0x3c2a25(0x1d6)][_0x3c2a25(0x1b6)]({'to':_0x2d05d7}),_0x5db413=[];return _0xcaaa96[_0x3c2a25(0x19a)]>0x0&&_0x5db413[_0x3c2a25(0x1a7)]({'title':_0x235cd(this[_0x3c2a25(0x1cb)][_0x3c2a25(0x1d1)],_0x3c2a25(0x1c1)),'items':_0xcaaa96}),_0x18ab7b[_0x3c2a25(0x19a)]>0x0&&_0x5db413[_0x3c2a25(0x1a7)]({'title':_0x235cd(this[_0x3c2a25(0x1cb)][_0x3c2a25(0x1d1)],_0x3c2a25(0x1d8)),'items':_0x18ab7b}),_0x3e1ff3[_0x3c2a25(0x19a)]>0x0&&_0x5db413[_0x3c2a25(0x1a7)]({'title':_0x235cd(this[_0x3c2a25(0x1cb)][_0x3c2a25(0x1d1)],_0x3c2a25(0x1ec)),'items':_0x3e1ff3}),_0x1bd829[_0x3c2a25(0x19a)]>0x0&&_0x5db413[_0x3c2a25(0x1a7)]({'title':_0x235cd(this[_0x3c2a25(0x1cb)][_0x3c2a25(0x1d1)],_0x3c2a25(0x1a9)),'items':_0x1bd829}),_0x28bb77[_0x3c2a25(0x19a)]>0x0&&_0x5db413[_0x3c2a25(0x1a7)]({'title':_0x235cd(this[_0x3c2a25(0x1cb)][_0x3c2a25(0x1d1)],_0x3c2a25(0x19e)),'items':_0x28bb77}),_0x5db413;}[_0x227c46(0x1d0)](_0x47f143){const _0x37f4f6=_0x227c46;this[_0x37f4f6(0x193)][_0x37f4f6(0x1a3)](_0x47f143);}}
|
|
23
|
+
const _0x5b34ec=_0x5844;(function(_0xe63a16,_0x6de140){const _0x40fed9=_0x5844,_0x55b72c=_0xe63a16();while(!![]){try{const _0x16accd=parseInt(_0x40fed9(0x207))/0x1*(parseInt(_0x40fed9(0x20d))/0x2)+-parseInt(_0x40fed9(0x21c))/0x3*(parseInt(_0x40fed9(0x215))/0x4)+-parseInt(_0x40fed9(0x21a))/0x5*(-parseInt(_0x40fed9(0x21d))/0x6)+parseInt(_0x40fed9(0x1e7))/0x7*(parseInt(_0x40fed9(0x206))/0x8)+parseInt(_0x40fed9(0x1dd))/0x9+parseInt(_0x40fed9(0x208))/0xa+-parseInt(_0x40fed9(0x1e1))/0xb;if(_0x16accd===_0x6de140)break;else _0x55b72c['push'](_0x55b72c['shift']());}catch(_0x3a4156){_0x55b72c['push'](_0x55b72c['shift']());}}}(_0x2707,0x54411));import{ContextPlugin as _0xa1891e}from'ckeditor5/src/core.js';function _0x2707(){const _0x33e818=['getMonth','itemId','_handleHistoryErrorUI','resizedTabs','pin','requires','showError','_handleEditTitle','_handleSelectConversation','getItems','handleRemovedConversation','push','editConversationTitle','isOfficialPlugin','isPremiumPlugin','pinned','updateItemTitle','removeHistoryItem','_handleTogglePin','getGroupId','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','getItem','updateItemLoadingState','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','setDate','activateTab','612774XLliCp','length','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','rename','8755087msqTFK','itemUpdated','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','resizeTabs','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','setLoadingSkeleton','7uRDrGI','_clearItemLoading','_getCategorizedItems','operation','_setItemLoading','items','AIChatHistoryController','activateTab:history','_aiChatController','_setIsMaximized','_aiConnector','init','chat','AI_CHAT_HISTORY_UNPIN_ACTION','AI_CHAT_HISTORY_PIN_ACTION','loadItems','AI_CHAT_UNTITLED_CONVERSATION','_generateErrorMessage','plugins','pluginName','removeConversation','get','getFullYear','listenTo','history','openChat','title','updateItems','change:activeConversation','AI_CHAT_HISTORY_CATEGORY_TODAY','error','1944632NCSBBJ','17383TzlUXD','426000amEdZd','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','updates','setConversationPinned','itemsLoaded','34XNhkVA','selectConversation','setIsMaximized','unpin','_aiChatHistoryUi','updateItemPinned','AI_CHAT_HISTORY_CATEGORY_LATER','_updateHistoryItemsUI','144076AIUavo','createdAt','locale','getDate','_handleRemove','35gckTLN','itemRemoved','3TPLeVb','452370KoIKxP','AI_CHAT_HISTORY_ERROR_GENERIC','loadConversation','activeConversation','view','map','remove','_showConversationHistory','AI_CHAT_HISTORY_CATEGORY_PINNED','context','removeItem','toLocaleDateString','resize'];_0x2707=function(){return _0x33e818;};return _0x2707();}function _0x5844(_0x1da1f8,_0x4c2deb){const _0x2707e5=_0x2707();return _0x5844=function(_0x58444d,_0x3ad95d){_0x58444d=_0x58444d-0x1c5;let _0x1c4e1a=_0x2707e5[_0x58444d];return _0x1c4e1a;},_0x5844(_0x1da1f8,_0x4c2deb);}import{AIConnector as _0x514e7b}from'../aicore/aiconnector.js';import{AIChatController as _0x3bfa5d}from'../aichat/aichatcontroller.js';import{AITabs as _0x4cc83f}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x254082}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x5b1c68}from'./model/aichathistoryconversations.js';import{getTranslation as _0x24aef3}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0xa1891e{[_0x5b34ec(0x1f1)];[_0x5b34ec(0x211)];[_0x5b34ec(0x1ef)];static get[_0x5b34ec(0x1c8)](){return[_0x514e7b,_0x3bfa5d,_0x254082,_0x4cc83f];}static get[_0x5b34ec(0x1fa)](){const _0x426dfd=_0x5b34ec;return _0x426dfd(0x1ed);}static get[_0x5b34ec(0x1d0)](){return!0x0;}static get[_0x5b34ec(0x1d1)](){return!0x0;}[_0x5b34ec(0x1f2)](){const _0x19d348=_0x5b34ec;this[_0x19d348(0x1f1)]=this[_0x19d348(0x226)][_0x19d348(0x1f9)][_0x19d348(0x1fc)](_0x514e7b),this[_0x19d348(0x211)]=this[_0x19d348(0x226)][_0x19d348(0x1f9)][_0x19d348(0x1fc)](_0x254082),this[_0x19d348(0x1ef)]=this[_0x19d348(0x226)][_0x19d348(0x1f9)][_0x19d348(0x1fc)](_0x3bfa5d);const _0x498a79=this[_0x19d348(0x226)][_0x19d348(0x1f9)][_0x19d348(0x1fc)](_0x4cc83f),_0x48e3f5=this[_0x19d348(0x1ef)][_0x19d348(0x1d6)]();this[_0x19d348(0x1ff)]=new _0x5b1c68({'connector':this[_0x19d348(0x1f1)],'group':_0x48e3f5}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x1fb),(_0x3b1996,_0x1bbca8)=>{const _0x38227c=_0x19d348;this[_0x38227c(0x1eb)](_0x1bbca8['id'],_0x38227c(0x223)),this[_0x38227c(0x219)](_0x1bbca8['id']);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x1cf),(_0x1178d2,_0x4bcb18)=>{const _0x504fe7=_0x19d348;this[_0x504fe7(0x1eb)](_0x4bcb18['id'],_0x504fe7(0x1e0)),this[_0x504fe7(0x1ca)](_0x4bcb18['id'],_0x4bcb18[_0x504fe7(0x201)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ff)],_0x19d348(0x1e2),(_0x30e506,_0x538775)=>{const _0x224ab4=_0x19d348;void 0x0!==_0x538775[_0x224ab4(0x20a)][_0x224ab4(0x201)]&&this[_0x224ab4(0x211)][_0x224ab4(0x1d3)](_0x538775[_0x224ab4(0x22b)],_0x538775[_0x224ab4(0x20a)][_0x224ab4(0x201)]),void 0x0!==_0x538775[_0x224ab4(0x20a)][_0x224ab4(0x1d2)]&&this[_0x224ab4(0x214)](),this[_0x224ab4(0x1e8)](_0x538775[_0x224ab4(0x22b)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ff)],_0x19d348(0x21b),(_0x2fe4d7,_0x55f53f)=>{const _0x1ac1e4=_0x19d348;this[_0x1ac1e4(0x1ef)][_0x1ac1e4(0x1cd)](_0x55f53f[_0x1ac1e4(0x22b)]),this[_0x1ac1e4(0x211)][_0x1ac1e4(0x1d4)](_0x55f53f[_0x1ac1e4(0x22b)]),this[_0x1ac1e4(0x1e8)](_0x55f53f[_0x1ac1e4(0x22b)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ff)],_0x19d348(0x20c),()=>{const _0x7b95c3=_0x19d348;this[_0x7b95c3(0x214)]();}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ff)],_0x19d348(0x205),(_0x3d1b27,_0x3c8823)=>{const _0x4fcfc8=_0x19d348;this[_0x4fcfc8(0x1c5)](_0x3c8823[_0x4fcfc8(0x205)],_0x3c8823[_0x4fcfc8(0x1ea)],_0x3c8823[_0x4fcfc8(0x22b)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x20e),(_0x98d031,_0x4b5048)=>{const _0x29e9db=_0x19d348;this[_0x29e9db(0x1cb)](_0x4b5048['id']);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x20b),(_0x22b420,_0x3c7775)=>{const _0xc786eb=_0x19d348,_0x5214b4=_0x3c7775[_0xc786eb(0x1d2)]?_0xc786eb(0x1c7):_0xc786eb(0x210);this[_0xc786eb(0x1eb)](_0x3c7775['id'],_0x5214b4),this[_0xc786eb(0x1d5)](_0x3c7775['id'],_0x3c7775[_0xc786eb(0x1d2)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x200),()=>{const _0x58e9d2=_0x19d348;_0x498a79[_0x58e9d2(0x221)][_0x58e9d2(0x1dc)](_0x58e9d2(0x1f3));}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ef)],_0x19d348(0x203),()=>{const _0x1b5a36=_0x19d348;this[_0x1b5a36(0x214)]();}),_0x498a79[_0x19d348(0x221)]['on'](_0x19d348(0x1ee),()=>{const _0x4688e3=_0x19d348;this[_0x4688e3(0x224)]();}),this[_0x19d348(0x1fe)](_0x498a79,_0x19d348(0x1c6),(_0x45fd8f,_0x1f106c)=>{const _0x41df91=_0x19d348;this[_0x41df91(0x1f0)](_0x1f106c);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x1e4),()=>{const _0x8bb7b2=_0x19d348;_0x498a79[_0x8bb7b2(0x229)]();});}async[_0x5b34ec(0x1ca)](_0x2f4c03,_0x29921f){const _0x31669d=_0x5b34ec;await this[_0x31669d(0x1ff)][_0x31669d(0x1d3)](_0x2f4c03,_0x29921f);}async[_0x5b34ec(0x1d5)](_0x121b2f,_0x13523d){const _0x2feae5=_0x5b34ec;await this[_0x2feae5(0x1ff)][_0x2feae5(0x212)](_0x121b2f,_0x13523d);}async[_0x5b34ec(0x219)](_0x25a4e4){const _0x28298f=_0x5b34ec;await this[_0x28298f(0x1ff)][_0x28298f(0x227)](_0x25a4e4);}async[_0x5b34ec(0x1cb)](_0xf9a209){const _0x2b7362=_0x5b34ec;await this[_0x2b7362(0x1ef)][_0x2b7362(0x21f)](_0xf9a209);}async[_0x5b34ec(0x224)](){const _0x217fea=_0x5b34ec;this[_0x217fea(0x211)][_0x217fea(0x1c9)](''),this[_0x217fea(0x211)][_0x217fea(0x1e6)](!0x0),await this[_0x217fea(0x1ff)][_0x217fea(0x1f2)](),this[_0x217fea(0x211)][_0x217fea(0x1e6)](!0x1);}[_0x5b34ec(0x214)](){const _0x1709c5=_0x5b34ec,_0x53a319=this[_0x1709c5(0x1ef)][_0x1709c5(0x220)]?.['id'],_0x2b7303=this[_0x1709c5(0x1e9)]()[_0x1709c5(0x222)](_0x4d1afb=>({'title':_0x4d1afb[_0x1709c5(0x201)],'items':_0x4d1afb[_0x1709c5(0x1ec)][_0x1709c5(0x222)](_0x1171aa=>({'id':_0x1171aa['id'],'title':_0x1171aa[_0x1709c5(0x201)]||_0x24aef3(this[_0x1709c5(0x226)][_0x1709c5(0x217)],_0x1709c5(0x1f7)),'createdAt':new Date(_0x1171aa[_0x1709c5(0x216)])[_0x1709c5(0x228)](),'active':_0x1171aa['id']===_0x53a319,'pinned':_0x1171aa[_0x1709c5(0x1d2)]}))}));this[_0x1709c5(0x211)][_0x1709c5(0x202)](_0x2b7303);}[_0x5b34ec(0x1eb)](_0x15aa2e,_0x128640){const _0x1797a3=_0x5b34ec;this[_0x1797a3(0x211)][_0x1797a3(0x1d9)](_0x15aa2e,_0x128640,!0x0);}[_0x5b34ec(0x1e8)](_0xd6f1d2){const _0x484857=_0x5b34ec;this[_0x484857(0x211)][_0x484857(0x1d9)](_0xd6f1d2,null,!0x1);}[_0x5b34ec(0x1c5)](_0x144dc5,_0x289693,_0xf4c661){const _0x446cc1=_0x5b34ec,_0x4e048a=this[_0x446cc1(0x1f8)](_0x289693,_0xf4c661);this[_0x446cc1(0x211)][_0x446cc1(0x1c9)](_0x4e048a),_0xf4c661&&this[_0x446cc1(0x1e8)](_0xf4c661),this[_0x446cc1(0x211)][_0x446cc1(0x1e6)](!0x1);}[_0x5b34ec(0x1f8)](_0x363cc0,_0x171654){const _0x107146=_0x5b34ec,_0x354a4f=_0x171654?this[_0x107146(0x1ff)][_0x107146(0x1d8)](_0x171654):null,_0x19fd8c=_0x354a4f?.[_0x107146(0x201)]||_0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x1f7));switch(_0x363cc0){case _0x107146(0x1d3):return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x1e3),_0x19fd8c);case _0x107146(0x212):{const _0x47d850=_0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x354a4f?.[_0x107146(0x1d2)]?_0x107146(0x1f4):_0x107146(0x1f5));return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x1df),[_0x47d850,_0x19fd8c]);}case _0x107146(0x227):return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x1e5),_0x19fd8c);case _0x107146(0x1f2):case _0x107146(0x1f6):return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x209));default:return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x21e));}}[_0x5b34ec(0x1e9)](){const _0x1f0b6b=_0x5b34ec,_0x3f6309=new Date(),_0x1580bd=new Date(_0x3f6309[_0x1f0b6b(0x1fd)](),_0x3f6309[_0x1f0b6b(0x22a)](),_0x3f6309[_0x1f0b6b(0x218)]()),_0x537336=new Date(_0x1580bd);_0x537336[_0x1f0b6b(0x1db)](_0x537336[_0x1f0b6b(0x218)]()-0x1);const _0x46bea9=new Date(_0x1580bd);_0x46bea9[_0x1f0b6b(0x1db)](_0x46bea9[_0x1f0b6b(0x218)]()-0xe);const _0x57fea7=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'pinned':!0x0}),_0x4b5d35=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'from':_0x1580bd,'to':_0x1580bd}),_0x5829f8=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'from':_0x537336,'to':_0x537336}),_0x455335=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'from':_0x46bea9,'to':_0x537336}),_0x1177fc=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'to':_0x46bea9}),_0x445141=[];return _0x57fea7[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x225)),'items':_0x57fea7}),_0x4b5d35[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x204)),'items':_0x4b5d35}),_0x5829f8[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x1da)),'items':_0x5829f8}),_0x455335[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x1d7)),'items':_0x455335}),_0x1177fc[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x213)),'items':_0x1177fc}),_0x445141;}[_0x5b34ec(0x1f0)](_0x565082){const _0xb047bd=_0x5b34ec;this[_0xb047bd(0x211)][_0xb047bd(0x20f)](_0x565082);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x390c1d=_0x46c5;function _0x576e(){const _0x5e261e=['selectConversation','9667pqigpS','2538SJubtJ','AIChatHistoryUI','401962RvczOe','updateHistoryItemsWithCategories','pluginName','delegate','updateItems','setIsMaximized','updateItemTitle','updateItemLoadingState','resizeTabs','1335892MnLreH','editConversationTitle','plugins','isLoading','openChat','locale','AITabs','AI_CHAT_HISTORY_HEADING','context','get','history','isOfficialPlugin','7200592WDPZxT','2kcxrkc','removeConversation','hideError','showError','addTab','3QyyjZP','9JEzGgS','errorMessage','2972890uIUiZz','isMaximized','setLoadingSkeleton','requires','858740HfvZDh','showResizeButton','removeHistoryItem','view','showConversationHistory','setConversationPinned','isPremiumPlugin','_historyView','33204Edgsfc','869MAUKHy'];_0x576e=function(){return _0x5e261e;};return _0x576e();}(function(_0x3c8755,_0x594d65){const _0x4d526b=_0x46c5,_0xa48ecf=_0x3c8755();while(!![]){try{const _0x1c3560=-parseInt(_0x4d526b(0xd6))/0x1*(-parseInt(_0x4d526b(0xf0))/0x2)+parseInt(_0x4d526b(0xdb))/0x3*(-parseInt(_0x4d526b(0xc9))/0x4)+parseInt(_0x4d526b(0xe2))/0x5+parseInt(_0x4d526b(0xee))/0x6*(-parseInt(_0x4d526b(0xed))/0x7)+parseInt(_0x4d526b(0xd5))/0x8+-parseInt(_0x4d526b(0xdc))/0x9*(parseInt(_0x4d526b(0xde))/0xa)+parseInt(_0x4d526b(0xeb))/0xb*(parseInt(_0x4d526b(0xea))/0xc);if(_0x1c3560===_0x594d65)break;else _0xa48ecf['push'](_0xa48ecf['shift']());}catch(_0x5b2de3){_0xa48ecf['push'](_0xa48ecf['shift']());}}}(_0x576e,0x74718));import{ContextPlugin as _0x4396bb}from'ckeditor5/src/core.js';import{AITabs as _0x370fcc}from'../aitabs/aitabs.js';import{IconAIHistory as _0xe01951}from'ckeditor5/src/icons.js';function _0x46c5(_0x423cd2,_0x4bf38c){const _0x576ed3=_0x576e();return _0x46c5=function(_0x46c56a,_0x23609e){_0x46c56a=_0x46c56a-0xc8;let _0x42ea78=_0x576ed3[_0x46c56a];return _0x42ea78;},_0x46c5(_0x423cd2,_0x4bf38c);}import{AIChatHistoryView as _0x45e0ad}from'./ui/aichathistoryview.js';import{getTranslation as _0x188b93}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x390c1d(0xe6),_0x390c1d(0xd7),_0x390c1d(0xca),_0x390c1d(0xe7),_0x390c1d(0xec),_0x390c1d(0xcd),_0x390c1d(0xc8)];export class AIChatHistoryUI extends _0x4396bb{static get[_0x390c1d(0xe1)](){return[_0x370fcc];}[_0x390c1d(0xe9)];static get[_0x390c1d(0xf2)](){const _0x3cd6ee=_0x390c1d;return _0x3cd6ee(0xef);}static get[_0x390c1d(0xd4)](){return!0x0;}static get[_0x390c1d(0xe8)](){return!0x0;}constructor(_0x39d5e9){const _0x5904ca=_0x390c1d;super(_0x39d5e9);const _0x1c904f=this[_0x5904ca(0xd1)][_0x5904ca(0xcb)][_0x5904ca(0xd2)](_0x5904ca(0xcf));this[_0x5904ca(0xe9)]=new _0x45e0ad(this[_0x5904ca(0xd1)][_0x5904ca(0xce)],_0x1c904f[_0x5904ca(0xe3)]),this[_0x5904ca(0xe9)][_0x5904ca(0xf3)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x1c904f[_0x5904ca(0xe5)][_0x5904ca(0xda)]({'id':_0x5904ca(0xd3),'buttonLabel':_0x188b93(this[_0x5904ca(0xd1)][_0x5904ca(0xce)],_0x5904ca(0xd0)),'buttonIcon':_0xe01951,'order':0x0,'content':this[_0x5904ca(0xe9)]});}[_0x390c1d(0xe4)](_0x1944f6){const _0x215cff=_0x390c1d;this[_0x215cff(0xe9)][_0x215cff(0xe4)](_0x1944f6);}[_0x390c1d(0xf4)](_0x7dc937){const _0x3b6795=_0x390c1d;this[_0x3b6795(0xe9)][_0x3b6795(0xf1)](_0x7dc937);}[_0x390c1d(0xf6)](_0x1cdebc,_0x2226eb){const _0xf9b84a=_0x390c1d;this[_0xf9b84a(0xe9)][_0xf9b84a(0xf6)](_0x1cdebc,_0x2226eb);}[_0x390c1d(0xf7)](_0x21c8b5,_0x189706,_0x4fb97b){const _0x492373=_0x390c1d;this[_0x492373(0xe9)][_0x492373(0xf7)](_0x21c8b5,_0x189706,_0x4fb97b);}[_0x390c1d(0xe0)](_0x4d7f52){const _0x13b931=_0x390c1d;this[_0x13b931(0xe9)][_0x13b931(0xcc)]=_0x4d7f52;}[_0x390c1d(0xd9)](_0x11e59f){const _0xacbd17=_0x390c1d;this[_0xacbd17(0xe9)][_0xacbd17(0xdd)]=_0x11e59f;}[_0x390c1d(0xd8)](){const _0xaf5001=_0x390c1d;this[_0xaf5001(0xe9)][_0xaf5001(0xdd)]='';}[_0x390c1d(0xf5)](_0x4172b7){const _0x1e85c1=_0x390c1d;this[_0x1e85c1(0xe9)][_0x1e85c1(0xdf)]=_0x4172b7;}}
|