@ckeditor/ckeditor5-ai 47.1.0 → 47.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +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
|
-
|
|
23
|
+
var _0x2ccb2a=_0x39a8;(function(_0x18fcc1,_0x42b25){var _0x59bcbd=_0x39a8,_0x492ccc=_0x18fcc1();while(!![]){try{var _0x22cef4=-parseInt(_0x59bcbd(0xc5))/0x1*(parseInt(_0x59bcbd(0xce))/0x2)+parseInt(_0x59bcbd(0xbf))/0x3+parseInt(_0x59bcbd(0xcc))/0x4+-parseInt(_0x59bcbd(0xc8))/0x5*(-parseInt(_0x59bcbd(0xc9))/0x6)+parseInt(_0x59bcbd(0xca))/0x7*(-parseInt(_0x59bcbd(0xc4))/0x8)+-parseInt(_0x59bcbd(0xd2))/0x9*(-parseInt(_0x59bcbd(0xcf))/0xa)+-parseInt(_0x59bcbd(0xbc))/0xb*(-parseInt(_0x59bcbd(0xc0))/0xc);if(_0x22cef4===_0x42b25)break;else _0x492ccc['push'](_0x492ccc['shift']());}catch(_0x1068a9){_0x492ccc['push'](_0x492ccc['shift']());}}}(_0x196c,0x2924a));function _0x39a8(_0x5b1232,_0xe5251e){var _0x196cb8=_0x196c();return _0x39a8=function(_0x39a826,_0x373e4c){_0x39a826=_0x39a826-0xbb;var _0x127e9d=_0x196cb8[_0x39a826];return _0x127e9d;},_0x39a8(_0x5b1232,_0xe5251e);}function _0x196c(){var _0x1c3449=['42bbZByH','render','835036ogCBes','extendTemplate','4dxVXxo','30qhFTEz','element','options','427311bJPFuF','warning','3006421jKCEvQ','setContent','level','40731EnUeKY','12xSKGGG','ck-ai-chat-error_warning','initialContent','innerHTML','442448mtFnqL','97586pjdRFm','ck-ai-chat-error','markAsDone','143615pZkXsc','12oBHOYX'];_0x196c=function(){return _0x1c3449;};return _0x196c();}import{AIChatFeedItemView as _0x244ef1}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x244ef1{constructor(_0x17271a){var _0x5b58fe=_0x39a8;super(_0x17271a),this[_0x5b58fe(0xcd)]({'attributes':{'class':[_0x5b58fe(0xc6),_0x5b58fe(0xbb)===_0x17271a[_0x5b58fe(0xbe)]?_0x5b58fe(0xc1):'']}});}[_0x2ccb2a(0xcb)](){var _0x1ac290=_0x2ccb2a;super[_0x1ac290(0xcb)](),this[_0x1ac290(0xbd)](this[_0x1ac290(0xd1)][_0x1ac290(0xc2)]),this[_0x1ac290(0xc7)]();}[_0x2ccb2a(0xbd)](_0x53638e){var _0x153f6e=_0x2ccb2a;this[_0x153f6e(0xd0)][_0x153f6e(0xc3)]=_0x53638e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31af5b=_0x1f24;(function(_0x23ed67,_0x287fa6){const _0x2bc5cd=_0x1f24,_0xb9ff7d=_0x23ed67();while(!![]){try{const _0x32ec38=parseInt(_0x2bc5cd(0x118))/0x1*(parseInt(_0x2bc5cd(0x11b))/0x2)+-parseInt(_0x2bc5cd(0x11a))/0x3+parseInt(_0x2bc5cd(0x124))/0x4+-parseInt(_0x2bc5cd(0x110))/0x5+-parseInt(_0x2bc5cd(0x123))/0x6*(parseInt(_0x2bc5cd(0x10e))/0x7)+-parseInt(_0x2bc5cd(0x115))/0x8+parseInt(_0x2bc5cd(0x113))/0x9;if(_0x32ec38===_0x287fa6)break;else _0xb9ff7d['push'](_0xb9ff7d['shift']());}catch(_0x575155){_0xb9ff7d['push'](_0xb9ff7d['shift']());}}}(_0x1f5f,0xe76ee));import{IconBulb as _0x51c97f,IconWeb as _0x4817c0}from'@ckeditor/ckeditor5-icons';import{IconView as _0x7a96ea,View as _0x1ed0ca}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x566937}from'./aichatfeeditemview.js';import{getTranslation as _0x4a87c4}from'../../../aicore/utils/common-translations.js';function _0x1f24(_0x3764dd,_0x43cb0b){const _0x1f5fc0=_0x1f5f();return _0x1f24=function(_0x1f241d,_0x4a5cf3){_0x1f241d=_0x1f241d-0x10d;let _0x205abd=_0x1f5fc0[_0x1f241d];return _0x205abd;},_0x1f24(_0x3764dd,_0x43cb0b);}export class AIChatFeedInteractionHeaderView extends _0x566937{[_0x31af5b(0x121)];constructor(_0x10bde3,_0x171042){const _0x586b46=_0x31af5b;super(_0x171042);const {isWebSearchEnabled:_0x3a4167,isReasoningEnabled:_0x59cbb6}=_0x171042[_0x586b46(0x121)],_0x26e67a=[];let _0x582489='';_0x3a4167&&_0x59cbb6?(_0x582489=_0x4a87c4(_0x10bde3,_0x586b46(0x122)),_0x26e67a[_0x586b46(0x10f)](aa(_0x4817c0)),_0x26e67a[_0x586b46(0x10f)](aa(_0x51c97f))):_0x3a4167?(_0x582489=_0x4a87c4(_0x10bde3,_0x586b46(0x116)),_0x26e67a[_0x586b46(0x10f)](aa(_0x4817c0))):_0x59cbb6&&(_0x582489=_0x4a87c4(_0x10bde3,_0x586b46(0x117)),_0x26e67a[_0x586b46(0x10f)](aa(_0x51c97f))),this[_0x586b46(0x10d)]({'attributes':{'class':[_0x586b46(0x111),_0x582489?'':_0x586b46(0x11d)]}});const _0x166ba9=new _0x1ed0ca();_0x166ba9[_0x586b46(0x11e)]({'tag':_0x586b46(0x119),'attributes':{'class':['ck',_0x586b46(0x11f)]},'children':[..._0x26e67a,{'tag':_0x586b46(0x11c),'attributes':{'class':[_0x586b46(0x114)]},'children':[_0x582489]}]}),this[_0x586b46(0x120)][_0x586b46(0x112)](_0x166ba9),this[_0x586b46(0x121)]=_0x171042[_0x586b46(0x121)];}}function aa(_0xac968d){const _0x51d2b6=_0x31af5b,_0x1f302e=new _0x7a96ea();return _0x1f302e[_0x51d2b6(0x125)]=_0xac968d,_0x1f302e;}function _0x1f5f(){const _0x4360f7=['497yygLzc','push','4408320IlsqXK','ck-ai-chat__feed__interaction-header','add','18057501WusVWF','ck-ai-chat__feed__interaction-header__capabilities__text','11340936puGwHK','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','245mhMAsS','div','3825807PkZUgu','9026DRzAan','span','ck-hidden','setTemplate','ck-ai-chat__feed__interaction-header__capabilities','children','capabilities','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','32982caphcn','7202852CEWCsC','content','extendTemplate'];_0x1f5f=function(){return _0x4360f7;};return _0x1f5f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x16d1(_0x3638d7,_0x5a12e7){const _0x9c7d95=_0x9c7d();return _0x16d1=function(_0x16d197,_0x252c33){_0x16d197=_0x16d197-0x160;let _0x738258=_0x9c7d95[_0x16d197];return _0x738258;},_0x16d1(_0x3638d7,_0x5a12e7);}const _0xbe7fc2=_0x16d1;function _0x9c7d(){const _0x86d2ad=['cleanUpAnimations','428076nSYUxs','createCollection','262zizRmu','isDone','element','24kcEPRu','12277850tdluXE','setTemplate','removeAttribute','data-id','14247PgbLvy','ck-ai-chat__feed__item_done','markAsDone','content','816835OaLsUU','8323799GdkUPi','5129lzWmnm','querySelectorAll','30xuKGok','83258VMrctV','isVisible','[data-id]','div','ck-ai-chat__feed__item','htmlStreamer','options','156vGUiGD','bindTemplate','ck-hidden','forEach','streamIntoElement','children','animation:\x20ck-html-streamer-fade-in\x20.5s','ck-ai-chat__feed__text-item','184FmFcFS','stream','set'];_0x9c7d=function(){return _0x86d2ad;};return _0x9c7d();}(function(_0x356c8e,_0x3c7fe8){const _0x31f93e=_0x16d1,_0x5aa31e=_0x356c8e();while(!![]){try{const _0x50cb12=parseInt(_0x31f93e(0x17c))/0x1*(-parseInt(_0x31f93e(0x16e))/0x2)+-parseInt(_0x31f93e(0x176))/0x3*(parseInt(_0x31f93e(0x160))/0x4)+parseInt(_0x31f93e(0x17a))/0x5+parseInt(_0x31f93e(0x17e))/0x6*(parseInt(_0x31f93e(0x17f))/0x7)+-parseInt(_0x31f93e(0x168))/0x8*(-parseInt(_0x31f93e(0x16c))/0x9)+-parseInt(_0x31f93e(0x172))/0xa+-parseInt(_0x31f93e(0x17b))/0xb*(-parseInt(_0x31f93e(0x171))/0xc);if(_0x50cb12===_0x3c7fe8)break;else _0x5aa31e['push'](_0x5aa31e['shift']());}catch(_0xa6cc47){_0x5aa31e['push'](_0x5aa31e['shift']());}}}(_0x9c7d,0xb5f74));import{View as _0x42c148}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0xd78c8}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x42c148{[_0xbe7fc2(0x185)];[_0xbe7fc2(0x179)]='';[_0xbe7fc2(0x184)];[_0xbe7fc2(0x165)];constructor(_0x4d7e67){const _0x1258d6=_0xbe7fc2;super();const _0x53772b=this[_0x1258d6(0x161)];this[_0x1258d6(0x16a)](_0x1258d6(0x16f),!0x1),this[_0x1258d6(0x16a)](_0x1258d6(0x180),!0x0),this[_0x1258d6(0x184)]=new _0xd78c8({'textNodeStyle':_0x1258d6(0x166),'delay':0x14}),this[_0x1258d6(0x185)]=_0x4d7e67,this[_0x1258d6(0x165)]=this[_0x1258d6(0x16d)](),this[_0x1258d6(0x173)]({'tag':_0x1258d6(0x182),'attributes':{'class':['ck',_0x1258d6(0x183),_0x53772b['if'](_0x1258d6(0x16f),_0x1258d6(0x177)),_0x53772b['if'](_0x1258d6(0x180),_0x1258d6(0x162),_0x34f458=>!_0x34f458),_0x1258d6(0x167)],'data-cke-ai-id':this[_0x1258d6(0x185)]['id']},'children':this[_0x1258d6(0x165)]});}[_0xbe7fc2(0x178)](){const _0x4be71b=_0xbe7fc2;this[_0x4be71b(0x184)][_0x4be71b(0x16b)]({'targetElement':this[_0x4be71b(0x170)]}),this[_0x4be71b(0x170)][_0x4be71b(0x17d)](_0x4be71b(0x181))[_0x4be71b(0x163)](_0x2a8ea0=>{const _0x4bcf5c=_0x4be71b;_0x2a8ea0[_0x4bcf5c(0x174)](_0x4bcf5c(0x175));}),this[_0x4be71b(0x16f)]=!0x0;}async[_0xbe7fc2(0x164)](_0x336210,_0x1a506d,_0x249123){const _0x2e15ea=_0xbe7fc2;await this[_0x2e15ea(0x184)][_0x2e15ea(0x169)]({'document':_0x336210,'targetElement':_0x1a506d,'abortSignal':_0x249123});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x359493=_0x45a4;function _0x45a4(_0x3db839,_0x538cb7){const _0x2e08b8=_0x2e08();return _0x45a4=function(_0x45a45a,_0x4a3290){_0x45a45a=_0x45a45a-0x1b7;let _0x10a8da=_0x2e08b8[_0x45a45a];return _0x10a8da;},_0x45a4(_0x3db839,_0x538cb7);}(function(_0x5ddd41,_0x1b8a57){const _0x10ab63=_0x45a4,_0x4c9a58=_0x5ddd41();while(!![]){try{const _0x451151=parseInt(_0x10ab63(0x1c0))/0x1+-parseInt(_0x10ab63(0x1cf))/0x2+parseInt(_0x10ab63(0x1d5))/0x3+-parseInt(_0x10ab63(0x1d0))/0x4*(parseInt(_0x10ab63(0x1b7))/0x5)+-parseInt(_0x10ab63(0x1c6))/0x6*(parseInt(_0x10ab63(0x1c1))/0x7)+-parseInt(_0x10ab63(0x1d8))/0x8*(parseInt(_0x10ab63(0x1c4))/0x9)+-parseInt(_0x10ab63(0x1ce))/0xa*(-parseInt(_0x10ab63(0x1be))/0xb);if(_0x451151===_0x1b8a57)break;else _0x4c9a58['push'](_0x4c9a58['shift']());}catch(_0x802a23){_0x4c9a58['push'](_0x4c9a58['shift']());}}}(_0x2e08,0x288a3));import{AIChatFeedItemView as _0x40c0ca}from'./aichatfeeditemview.js';function _0x2e08(){const _0x195687=['streamIntoElement','setTemplate','div','11YWwYSp','ck-ai-chat__feed__ai-reply-container','37112YzlcOE','11746PVUKid','updateSources','options','9nrGldW','initialContent','84EDtrLS','isVisible','children','element','map','extendTemplate','markAsDone','innerHTML','3280090haZoQH','371670eDXgwj','4KwAQCW','static','replyContainer','ck-reset_all-excluded','addMany','855966YJXSnu','updateContent','locale','1793808UhCpXh','add','254195VRlLtb','ck-ai-chat__feed__ai-reply','render','streaming'];_0x2e08=function(){return _0x195687;};return _0x2e08();}import{parse as _0x3b64ab,render as _0x5799c0}from'../../../aicore/utils/htmlparser.js';import{View as _0xd0d1e0}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x1a5ad5,AIWebSourceView as _0x204f15}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x40c0ca{[_0x359493(0x1d2)];constructor(_0x59bbbe,_0x531736){const _0x21ac47=_0x359493;super(_0x531736),this[_0x21ac47(0x1d7)]=_0x59bbbe,this[_0x21ac47(0x1cb)]({'attributes':{'class':[_0x21ac47(0x1b8)]}}),this[_0x21ac47(0x1d2)]=new _0xd0d1e0(),this[_0x21ac47(0x1d2)][_0x21ac47(0x1bc)]({'tag':_0x21ac47(0x1bd),'attributes':{'class':['ck',_0x21ac47(0x1d3),_0x21ac47(0x1bf)]}}),this[_0x21ac47(0x1c8)][_0x21ac47(0x1d9)](this[_0x21ac47(0x1d2)]);}async[_0x359493(0x1b9)](){const _0xf20b88=_0x359493;super[_0xf20b88(0x1b9)](),this[_0xf20b88(0x1c3)][_0xf20b88(0x1c5)]&&(await this[_0xf20b88(0x1d6)]({'parsedContent':_0x3b64ab(this[_0xf20b88(0x1c3)][_0xf20b88(0x1c5)]),'renderingStrategy':_0xf20b88(0x1d1)}),this[_0xf20b88(0x1cc)]());}async[_0x359493(0x1d6)]({parsedContent:_0x857935,renderingStrategy:_0x5e0c15,abortSignal:_0x3fc030}){const _0xb71beb=_0x359493;_0xb71beb(0x1ba)===_0x5e0c15?await this[_0xb71beb(0x1bb)](_0x857935,this[_0xb71beb(0x1d2)][_0xb71beb(0x1c9)],_0x3fc030):this[_0xb71beb(0x1d2)][_0xb71beb(0x1c9)][_0xb71beb(0x1cd)]=_0x5799c0(_0x857935);}[_0x359493(0x1c2)](_0x2fe1b4){const _0x2f969e=_0x359493,_0x3e4205=new _0x1a5ad5(this[_0x2f969e(0x1d7)]);_0x3e4205[_0x2f969e(0x1c8)][_0x2f969e(0x1d4)](_0x2fe1b4[_0x2f969e(0x1ca)](_0x2108e0=>new _0x204f15(this[_0x2f969e(0x1d7)],_0x2108e0))),_0x3e4205[_0x2f969e(0x1c7)]=!0x0,this[_0x2f969e(0x1c8)][_0x2f969e(0x1d9)](_0x3e4205);}}
|
|
@@ -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 _0x417d10=_0x326e;(function(_0xb5ca31,_0x636f4b){const _0x17ba94=_0x326e,_0x3a0318=_0xb5ca31();while(!![]){try{const _0x2ceca3=-parseInt(_0x17ba94(0x221))/0x1+parseInt(_0x17ba94(0x1d6))/0x2+parseInt(_0x17ba94(0x21a))/0x3+parseInt(_0x17ba94(0x1d8))/0x4+parseInt(_0x17ba94(0x1ce))/0x5*(-parseInt(_0x17ba94(0x20b))/0x6)+parseInt(_0x17ba94(0x1e6))/0x7+parseInt(_0x17ba94(0x1cc))/0x8*(-parseInt(_0x17ba94(0x1d5))/0x9);if(_0x2ceca3===_0x636f4b)break;else _0x3a0318['push'](_0x3a0318['shift']());}catch(_0x4dda6a){_0x3a0318['push'](_0x3a0318['shift']());}}}(_0x2fb4,0x544c8));import{KeystrokeHandler as _0x38b63e}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x22bd38,BodyCollection as _0x1c91d9,ButtonView as _0x4e1203,clickOutsideHandler as _0x573c8b,ListItemButtonView as _0x114659,ListItemView as _0x19302a,ListView as _0x10b117,SplitButtonView as _0x49bee1,UIModel as _0x1243ee,View as _0x34a2d2}from'ckeditor5/src/ui.js';import{IconCheck as _0x2648f9,IconAddComment as _0x18dff3,IconDocumentWithLoupe as _0x41959e}from'ckeditor5/src/icons.js';import{getTranslation as _0x1481d2}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x417d10(0x1db),_0x417d10(0x1c9),_0x417d10(0x1f3)];export class AIChatFeedSuggestionItemActionsView extends _0x34a2d2{[_0x417d10(0x1dc)];[_0x417d10(0x1d0)];[_0x417d10(0x20f)];[_0x417d10(0x210)];[_0x417d10(0x212)];[_0x417d10(0x225)]=0x1;[_0x417d10(0x202)];[_0x417d10(0x220)];[_0x417d10(0x1c8)]=!0x0;constructor(_0x125406,_0x5afc79){const _0x1c7a34=_0x417d10;super(_0x125406),this[_0x1c7a34(0x202)]=_0x5afc79||[...AI_REPLY_ACTIONS],this[_0x1c7a34(0x220)]=[...this[_0x1c7a34(0x202)]];const _0x40a33e=this[_0x1c7a34(0x204)];this[_0x1c7a34(0x1ed)](_0x1c7a34(0x1df),!0x0),this[_0x1c7a34(0x1ed)](_0x1c7a34(0x1cd),!0x0),this[_0x1c7a34(0x1ed)](_0x1c7a34(0x201),!0x1),this[_0x1c7a34(0x20f)]=new _0x1243ee({'label':Hn(_0x1c7a34(0x1db),_0x125406,this[_0x1c7a34(0x225)]),'icon':_0x2648f9,'withText':!0x0,'type':_0x1c7a34(0x21b),'actionName':_0x1c7a34(0x1db)}),this[_0x1c7a34(0x210)]=new _0x1243ee({'label':Hn(_0x1c7a34(0x1f3),_0x125406,this[_0x1c7a34(0x225)]),'icon':_0x41959e,'withText':!0x0,'type':_0x1c7a34(0x21b),'actionName':_0x1c7a34(0x1f3)}),this[_0x1c7a34(0x212)]=new _0x1243ee({'label':Hn(_0x1c7a34(0x1c9),_0x125406,this[_0x1c7a34(0x225)]),'icon':_0x18dff3,'withText':!0x0,'type':_0x1c7a34(0x21b),'actionName':_0x1c7a34(0x1c9)}),this[_0x1c7a34(0x1dc)]=this[_0x1c7a34(0x1ca)](_0x125406),this[_0x1c7a34(0x1d0)]=this[_0x1c7a34(0x1e8)](),this[_0x1c7a34(0x1dc)]&&this[_0x1c7a34(0x1d0)][_0x1c7a34(0x1eb)](this[_0x1c7a34(0x1dc)]),this[_0x1c7a34(0x1cb)]({'tag':_0x1c7a34(0x21c),'attributes':{'class':['ck',_0x1c7a34(0x1d3),_0x40a33e['if'](_0x1c7a34(0x1cd),_0x1c7a34(0x200),_0xa47817=>!_0xa47817)]},'children':this[_0x1c7a34(0x1d0)]}),this['on'](_0x1c7a34(0x1f2),()=>{const _0x435b10=_0x1c7a34;this[_0x435b10(0x220)]=this[_0x435b10(0x201)]?this[_0x435b10(0x202)][_0x435b10(0x1f5)](_0x2f984c=>_0x435b10(0x1db)!==_0x2f984c):[...this[_0x435b10(0x202)]],this[_0x435b10(0x206)](_0x125406);});}[_0x417d10(0x206)](_0x364539){const _0x41f7ef=_0x417d10;this[_0x41f7ef(0x1dc)]&&this[_0x41f7ef(0x1d0)][_0x41f7ef(0x209)](this[_0x41f7ef(0x1dc)])&&(this[_0x41f7ef(0x1d0)][_0x41f7ef(0x1de)](this[_0x41f7ef(0x1dc)]),this[_0x41f7ef(0x1dc)][_0x41f7ef(0x1f1)]()),this[_0x41f7ef(0x1dc)]=this[_0x41f7ef(0x1ca)](_0x364539),this[_0x41f7ef(0x1dc)]&&this[_0x41f7ef(0x1d0)][_0x41f7ef(0x1eb)](this[_0x41f7ef(0x1dc)]);}[_0x417d10(0x1ca)](_0x4b6bc4){const _0x35dd63=_0x417d10;if(0x0==this[_0x35dd63(0x220)][_0x35dd63(0x1e5)])return null;const _0x327437=0x1===this[_0x35dd63(0x220)][_0x35dd63(0x1e5)]?this[_0x35dd63(0x1f8)](_0x4b6bc4):this[_0x35dd63(0x20a)](_0x4b6bc4),_0x42e977=this[_0x35dd63(0x1c8)]?'':_0x35dd63(0x1fa);_0x327437[_0x35dd63(0x1ed)]({'label':Hn(this[_0x35dd63(0x220)][0x0],_0x4b6bc4,this[_0x35dd63(0x225)]),'tooltip':Ln(this[_0x35dd63(0x220)][0x0],_0x4b6bc4,this[_0x35dd63(0x225)]),'withText':!0x0,'class':_0x35dd63(0x207)+_0x42e977});for(const _0x528608 of this[_0x35dd63(0x220)])_0x327437['on'](_0x528608,()=>{const _0x462a50=_0x35dd63;this[_0x462a50(0x211)](_0x528608);});return this[_0x35dd63(0x1c8)]=!0x1,_0x327437;}[_0x417d10(0x1f8)](_0x30e35b){const _0x1483b5=_0x417d10,_0x33e88f=new _0x4e1203(_0x30e35b);return _0x33e88f[_0x1483b5(0x1ed)]({'class':_0x1483b5(0x1fe),'withText':!0x0}),_0x33e88f['on'](_0x1483b5(0x1f7),()=>{const _0x82ba2e=_0x1483b5;_0x33e88f[_0x82ba2e(0x211)](this[_0x82ba2e(0x220)][0x0]);}),_0x33e88f;}[_0x417d10(0x20a)](_0x227ffa){const _0x3744e8=_0x417d10,_0xa4bed1=new Gn(_0x227ffa,{'listItemModels':this[_0x3744e8(0x220)][_0x3744e8(0x1f6)](_0x3255b2=>{const _0x241a5b=_0x3744e8;switch(_0x3255b2){case _0x241a5b(0x1db):return this[_0x241a5b(0x20f)];case _0x241a5b(0x1f3):return this[_0x241a5b(0x210)];case _0x241a5b(0x1c9):return this[_0x241a5b(0x212)];}})});return _0xa4bed1[_0x3744e8(0x1ed)]({'label':Hn(this[_0x3744e8(0x220)][0x0],_0x227ffa,this[_0x3744e8(0x225)]),'tooltip':Ln(this[_0x3744e8(0x220)][0x0],_0x227ffa,this[_0x3744e8(0x225)]),'withText':!0x0,'class':_0x3744e8(0x1d3),'balloonPanelClass':_0x3744e8(0x1d9)}),_0xa4bed1[_0x3744e8(0x1d1)](_0x3744e8(0x1df))['to'](this),_0xa4bed1;}[_0x417d10(0x21e)](_0xaa6e3c){const _0x3a8ebd=_0x417d10,_0x2e3c8e=this[_0x3a8ebd(0x1ea)];this[_0x3a8ebd(0x225)]=_0xaa6e3c||this[_0x3a8ebd(0x225)],this[_0x3a8ebd(0x1dc)][_0x3a8ebd(0x1ed)]({'label':Hn(this[_0x3a8ebd(0x220)][0x0],_0x2e3c8e,this[_0x3a8ebd(0x225)]),'tooltip':Ln(this[_0x3a8ebd(0x220)][0x0],_0x2e3c8e,this[_0x3a8ebd(0x225)])}),this[_0x3a8ebd(0x20f)][_0x3a8ebd(0x1e4)]=Hn(_0x3a8ebd(0x1db),_0x2e3c8e,this[_0x3a8ebd(0x225)]),this[_0x3a8ebd(0x210)][_0x3a8ebd(0x1e4)]=Hn(_0x3a8ebd(0x1f3),_0x2e3c8e,this[_0x3a8ebd(0x225)]),this[_0x3a8ebd(0x212)][_0x3a8ebd(0x1e4)]=Hn(_0x3a8ebd(0x1c9),_0x2e3c8e,this[_0x3a8ebd(0x225)]);}}function _0x326e(_0x595826,_0x3e03ad){const _0x2fb4a6=_0x2fb4();return _0x326e=function(_0x326e1d,_0x81078){_0x326e1d=_0x326e1d-0x1c8;let _0xafa38=_0x2fb4a6[_0x326e1d];return _0xafa38;},_0x326e(_0x595826,_0x3e03ad);}function _0x2fb4(){const _0x959460=['pin','tooltip','source','label','length','4193238ONFhjr','arrowView','createCollection','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','locale','add','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','set','slice','listItemModels','bodyCollection','destroy','change:isTrackChangesOn','showChangeInText','hide','filter','map','execute','_createActionsButton','esc','ck-ai-chat__feed__ai-suggestion__actions--no-animation','arrowless','_setUpList','balloonPanelClass','ck-ai-button-primary','ltr','ck-hidden','isTrackChangesOn','_dropdownOriginalConfig','attachToDom','bindTemplate','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','_updateDropdownActions','ck-ai-chat__feed__ai-suggestion__actions\x20','uiLanguageDirection','has','_createActionsDropdown','66yXqKYU','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','content','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','applySuggestionModel','showChangeInTextModel','fire','insertSuggestionModel','actionName','element','width','unbind','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','open','_setUpKeystrokes','231024XaTyel','button','div','left','updateLabels','listView','_dropdownCurrentConfig','186610SyKgdc','listenTo','class','balloonPanelView','_partsCount','keystrokeHandler','_firstRender','insertSuggestion','_createActionsDropdownOrButton','setTemplate','578048NPJynq','isVisible','263230KOtQyE','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','children','bind','delegate','ck-ai-chat__feed__ai-suggestion__actions','focus','72WlHtnE','1292098IdrsjF','keys','1467844fwJHPC','ck-ai-chat__feed__ai-suggestion__actions__balloon','bottom','applySuggestion','actionsButton','detachFromDom','remove','isEnabled','items'];_0x2fb4=function(){return _0x959460;};return _0x2fb4();}class Gn extends _0x49bee1{[_0x417d10(0x1f0)];[_0x417d10(0x224)];[_0x417d10(0x21f)];[_0x417d10(0x226)];constructor(_0x21638e,_0x32f9d1){const _0x2b1320=_0x417d10;super(_0x21638e),this[_0x2b1320(0x224)]=new _0x22bd38(this[_0x2b1320(0x1ea)]),this[_0x2b1320(0x1f0)]=new _0x1c91d9(this[_0x2b1320(0x1ea)]),this[_0x2b1320(0x1f0)][_0x2b1320(0x203)](),this[_0x2b1320(0x1ed)](_0x2b1320(0x1fd),''),this[_0x2b1320(0x224)][_0x2b1320(0x1d1)](_0x2b1320(0x223))['to'](this,_0x2b1320(0x1fd)),this[_0x2b1320(0x21f)]=this[_0x2b1320(0x1fc)](_0x32f9d1[_0x2b1320(0x1ef)][_0x2b1320(0x1ee)](0x1)),this[_0x2b1320(0x1f0)][_0x2b1320(0x1eb)](this[_0x2b1320(0x224)]),this[_0x2b1320(0x224)][_0x2b1320(0x20d)][_0x2b1320(0x1eb)](this[_0x2b1320(0x21f)]),this[_0x2b1320(0x1e7)][_0x2b1320(0x216)](_0x2b1320(0x1e2)),this[_0x2b1320(0x1e7)][_0x2b1320(0x1ed)](_0x2b1320(0x1e2),_0x1481d2(this[_0x2b1320(0x1ea)],_0x2b1320(0x1cf))),this[_0x2b1320(0x219)](),this['on'](_0x2b1320(0x1f7),()=>{const _0x9d945a=_0x2b1320,_0x40ef00=_0x32f9d1[_0x9d945a(0x1ef)][0x0][_0x9d945a(0x213)];this[_0x9d945a(0x211)](_0x40ef00),this[_0x9d945a(0x224)][_0x9d945a(0x1f4)](),this[_0x9d945a(0x1e7)][_0x9d945a(0x1d4)]();}),this['on'](_0x2b1320(0x218),()=>{const _0x3b47c3=_0x2b1320;this[_0x3b47c3(0x224)][_0x3b47c3(0x1cd)]?(this[_0x3b47c3(0x224)][_0x3b47c3(0x1f4)](),this[_0x3b47c3(0x1e7)][_0x3b47c3(0x1d4)]()):(this[_0x3b47c3(0x224)][_0x3b47c3(0x1e1)]({'target':this[_0x3b47c3(0x214)],'positions':[_0x3b47c3(0x1ff)===this[_0x3b47c3(0x1ea)][_0x3b47c3(0x208)]?yn:Pn]}),this[_0x3b47c3(0x21f)][_0x3b47c3(0x1d4)]());}),_0x573c8b({'emitter':this[_0x2b1320(0x224)],'callback':()=>{const _0x4da2b0=_0x2b1320;this[_0x4da2b0(0x224)][_0x4da2b0(0x1f4)]();},'activator':()=>this[_0x2b1320(0x224)][_0x2b1320(0x1cd)],'contextElements':()=>[this[_0x2b1320(0x214)],this[_0x2b1320(0x224)][_0x2b1320(0x214)]]});}[_0x417d10(0x1fc)](_0x19844c){const _0x4cabdc=_0x417d10,_0x5a782f=this[_0x4cabdc(0x1ea)],_0x34e5dc=new _0x10b117(_0x5a782f);for(const _0x3d7d89 of _0x19844c){const _0x46d141=new _0x19302a(_0x5a782f),_0x4dabc0=new _0x114659(_0x5a782f);_0x4dabc0[_0x4cabdc(0x1d1)](...Object[_0x4cabdc(0x1d7)](_0x3d7d89))['to'](_0x3d7d89),_0x4dabc0[_0x4cabdc(0x1d2)](_0x4cabdc(0x1f7))['to'](_0x34e5dc),_0x46d141[_0x4cabdc(0x1d0)][_0x4cabdc(0x1eb)](_0x4dabc0),_0x34e5dc[_0x4cabdc(0x1e0)][_0x4cabdc(0x1eb)](_0x46d141);}return _0x34e5dc[_0x4cabdc(0x1e0)][_0x4cabdc(0x1d2)](_0x4cabdc(0x1f7))['to'](this),_0x34e5dc['on'](_0x4cabdc(0x1f7),_0x20e1e5=>{const _0x42ca51=_0x4cabdc,_0x4ddd04=_0x20e1e5[_0x42ca51(0x1e3)];this[_0x42ca51(0x211)](_0x4ddd04[_0x42ca51(0x213)]),this[_0x42ca51(0x224)][_0x42ca51(0x1f4)](),this[_0x42ca51(0x1e7)][_0x42ca51(0x1d4)]();}),_0x34e5dc;}[_0x417d10(0x219)](){const _0x5b65e1=_0x417d10;this[_0x5b65e1(0x226)]=new _0x38b63e(),this[_0x5b65e1(0x226)][_0x5b65e1(0x222)](this[_0x5b65e1(0x224)][_0x5b65e1(0x214)]),this[_0x5b65e1(0x226)][_0x5b65e1(0x1ed)](_0x5b65e1(0x1f9),(_0x5c3f2a,_0x4dd56b)=>{const _0xe4eced=_0x5b65e1;this[_0xe4eced(0x224)][_0xe4eced(0x1f4)](),this[_0xe4eced(0x1e7)][_0xe4eced(0x1d4)](),_0x4dd56b();});}[_0x417d10(0x1f1)](){const _0x3d7144=_0x417d10;super[_0x3d7144(0x1f1)](),this[_0x3d7144(0x226)][_0x3d7144(0x1f1)](),this[_0x3d7144(0x224)][_0x3d7144(0x1f1)](),this[_0x3d7144(0x1f0)][_0x3d7144(0x1dd)]();}}function yn(_0x41623a){const _0x53a82a=_0x417d10;return{'top':_0x41623a[_0x53a82a(0x1da)],'left':_0x41623a[_0x53a82a(0x21d)],'name':_0x53a82a(0x1fb),'config':{'withArrow':!0x1}};}function Pn(_0x5bb167,_0x2332af){const _0x56bbcd=_0x417d10;return{'top':_0x5bb167[_0x56bbcd(0x1da)],'left':_0x5bb167[_0x56bbcd(0x21d)]-(_0x2332af[_0x56bbcd(0x215)]-_0x5bb167[_0x56bbcd(0x215)]),'name':_0x56bbcd(0x1fb),'config':{'withArrow':!0x1}};}function Hn(_0x2f11dc,_0x33cd0e,_0x1ee8e0){const _0x1b28f2=_0x417d10;switch(_0x2f11dc){case _0x1b28f2(0x1db):return _0x1481d2(_0x33cd0e,_0x1b28f2(0x1e9),_0x1ee8e0);case _0x1b28f2(0x1f3):return _0x1481d2(_0x33cd0e,_0x1b28f2(0x20e),_0x1ee8e0);case _0x1b28f2(0x1c9):return _0x1481d2(_0x33cd0e,_0x1b28f2(0x217),_0x1ee8e0);}}function Ln(_0xb28f52,_0x5a86d3,_0x52b33c){const _0x39811e=_0x417d10;switch(_0xb28f52){case _0x39811e(0x1db):return _0x1481d2(_0x5a86d3,_0x39811e(0x1ec),_0x52b33c);case _0x39811e(0x1f3):return _0x1481d2(_0x5a86d3,_0x39811e(0x20c),_0x52b33c);case _0x39811e(0x1c9):return _0x1481d2(_0x5a86d3,_0x39811e(0x205),_0x52b33c);}}
|
|
@@ -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 _0x4f6e95=_0x1c99;function _0x1c99(_0x1a9818,_0x5194d7){var _0x13b5d4=_0x13b5();return _0x1c99=function(_0x1c992e,_0x53444a){_0x1c992e=_0x1c992e-0x181;var _0x25500c=_0x13b5d4[_0x1c992e];return _0x25500c;},_0x1c99(_0x1a9818,_0x5194d7);}(function(_0x23f502,_0x13aeac){var _0x47080d=_0x1c99,_0x1480cf=_0x23f502();while(!![]){try{var _0x3ebd50=-parseInt(_0x47080d(0x18d))/0x1+-parseInt(_0x47080d(0x1a7))/0x2*(parseInt(_0x47080d(0x186))/0x3)+-parseInt(_0x47080d(0x19d))/0x4*(-parseInt(_0x47080d(0x1ad))/0x5)+parseInt(_0x47080d(0x19a))/0x6*(parseInt(_0x47080d(0x188))/0x7)+parseInt(_0x47080d(0x1a1))/0x8+parseInt(_0x47080d(0x1aa))/0x9*(-parseInt(_0x47080d(0x185))/0xa)+-parseInt(_0x47080d(0x19e))/0xb;if(_0x3ebd50===_0x13aeac)break;else _0x1480cf['push'](_0x1480cf['shift']());}catch(_0x3bab92){_0x1480cf['push'](_0x1480cf['shift']());}}}(_0x13b5,0x78480));import{AIChatFeedItemView as _0xf4501b}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0xc270a0}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x13b5(){var _0x132ecb=['mouseLeaveSuggestion','7XUUgeD','toggleSuggestionDisplayMode','mouseOverSuggestion','applySuggestion','markAsDone','253593VdrTXM','children','rejectSuggestion','showChangeInText','showDiff','partsCount','bodyView','options','set','updateLabels','fire','hasNonEmptyParts','updateContent','1619742ibdGNg','availableActions','updatePartState','1780hgwHSv','3662021GOeVyF','areActionsDisabled','ck-ai-chat__feed__ai-suggestion','6057224ihqssu','dislike','addMany','isEnabled','actionsView','containerView','2HfNiAz','bind','insertSuggestion','18ZyytPm','getPartView','isVisible','4205GXzMlz','hasPendingParts','updateSources','isTrackChangesOn','extendTemplate','like','241690LyXCru','821523bcDdKc'];_0x13b5=function(){return _0x132ecb;};return _0x13b5();}import{AIChatFeedSuggestionItemActionsView as _0x1c58a6}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0xf4501b{[_0x4f6e95(0x1a6)];[_0x4f6e95(0x1a5)];constructor(_0x56181a,_0x3f5a99){var _0x1ca9d7=_0x4f6e95;super(_0x3f5a99),this[_0x1ca9d7(0x195)](_0x1ca9d7(0x182),!0x1),this[_0x1ca9d7(0x1a6)]=new _0xc270a0(_0x56181a,{'showDiff':_0x3f5a99[_0x1ca9d7(0x191)],'areActionsDisabled':_0x3f5a99[_0x1ca9d7(0x19f)],'availableActions':_0x3f5a99[_0x1ca9d7(0x19b)]}),this[_0x1ca9d7(0x1a6)]['on'](_0x1ca9d7(0x189),(_0x5c1a5e,_0x1a6955)=>{var _0x1683c8=_0x1ca9d7;this[_0x1683c8(0x197)](_0x1683c8(0x189),{'replyId':this[_0x1683c8(0x194)]['id'],'showDiff':_0x1a6955[_0x1683c8(0x191)]});}),this[_0x1ca9d7(0x1a6)]['on'](_0x1ca9d7(0x184),()=>{var _0x3cd7bf=_0x1ca9d7;this[_0x3cd7bf(0x197)](_0x3cd7bf(0x184),{'replyId':this[_0x3cd7bf(0x194)]['id']});}),this[_0x1ca9d7(0x1a6)]['on'](_0x1ca9d7(0x1a2),()=>{var _0x2f65dc=_0x1ca9d7;this[_0x2f65dc(0x197)](_0x2f65dc(0x1a2),{'replyId':this[_0x2f65dc(0x194)]['id']});}),this[_0x1ca9d7(0x1a6)]['on'](_0x1ca9d7(0x190),(_0x1036e7,{index:_0x59d9e4})=>{var _0x3dcb5d=_0x1ca9d7;this[_0x3dcb5d(0x197)](_0x3dcb5d(0x190),{'replyId':this[_0x3dcb5d(0x194)]['id'],'partIndex':_0x59d9e4});}),this[_0x1ca9d7(0x1a6)]['on'](_0x1ca9d7(0x1a9),(_0x3e94fd,{index:_0x6e3fd4})=>{var _0x2989dd=_0x1ca9d7;this[_0x2989dd(0x197)](_0x2989dd(0x1a9),{'replyId':this[_0x2989dd(0x194)]['id'],'partIndex':_0x6e3fd4});}),this[_0x1ca9d7(0x1a6)]['on'](_0x1ca9d7(0x18f),(_0x36a4a0,{index:_0x1f919a})=>{var _0x5c606a=_0x1ca9d7;this[_0x5c606a(0x197)](_0x5c606a(0x18f),{'replyId':this[_0x5c606a(0x194)]['id'],'partIndex':_0x1f919a});}),this[_0x1ca9d7(0x1a6)]['on'](_0x1ca9d7(0x18a),(_0x3f0170,{index:_0x5913fc})=>{var _0x4992bc=_0x1ca9d7;this[_0x4992bc(0x197)](_0x4992bc(0x18a),{'replyId':this[_0x4992bc(0x194)]['id'],'partIndex':_0x5913fc});}),this[_0x1ca9d7(0x1a6)]['on'](_0x1ca9d7(0x187),(_0x747018,{index:_0x51111a})=>{var _0x519539=_0x1ca9d7;this[_0x519539(0x197)](_0x519539(0x187),{'replyId':this[_0x519539(0x194)]['id'],'partIndex':_0x51111a});}),this[_0x1ca9d7(0x1a5)]=new _0x1c58a6(_0x56181a,this[_0x1ca9d7(0x194)][_0x1ca9d7(0x19b)]),this[_0x1ca9d7(0x1a5)][_0x1ca9d7(0x1a8)](_0x1ca9d7(0x182))['to'](this,_0x1ca9d7(0x182)),this[_0x1ca9d7(0x1a5)]['on'](_0x1ca9d7(0x190),()=>{var _0x4bd11e=_0x1ca9d7;this[_0x4bd11e(0x197)](_0x4bd11e(0x190),{'replyId':this[_0x4bd11e(0x194)]['id']});}),this[_0x1ca9d7(0x1a5)]['on'](_0x1ca9d7(0x1a9),()=>{var _0x51b1bb=_0x1ca9d7;this[_0x51b1bb(0x197)](_0x51b1bb(0x1a9),{'replyId':this[_0x51b1bb(0x194)]['id']});}),this[_0x1ca9d7(0x1a5)]['on'](_0x1ca9d7(0x18b),()=>{var _0x302328=_0x1ca9d7;this[_0x302328(0x197)](_0x302328(0x18b),{'replyId':this[_0x302328(0x194)]['id']});}),_0x3f5a99[_0x1ca9d7(0x19f)]?this[_0x1ca9d7(0x1a5)][_0x1ca9d7(0x1a4)]=!0x1:this[_0x1ca9d7(0x1a5)][_0x1ca9d7(0x1a8)](_0x1ca9d7(0x1a4))['to'](this[_0x1ca9d7(0x1a6)][_0x1ca9d7(0x193)],_0x1ca9d7(0x1ae)),this[_0x1ca9d7(0x18e)][_0x1ca9d7(0x1a3)]([this[_0x1ca9d7(0x1a6)],this[_0x1ca9d7(0x1a5)]]),this[_0x1ca9d7(0x183)]({'attributes':{'class':[_0x1ca9d7(0x1a0)]}});}async[_0x4f6e95(0x199)](_0x3c965f){var _0x5e9218=_0x4f6e95;await this[_0x5e9218(0x1a6)][_0x5e9218(0x199)](_0x3c965f),this[_0x5e9218(0x1a5)][_0x5e9218(0x196)](this[_0x5e9218(0x1a6)][_0x5e9218(0x193)][_0x5e9218(0x192)]);}[_0x4f6e95(0x19c)](_0x3d62cc,_0xb115b1){var _0x473cc6=_0x4f6e95;this[_0x473cc6(0x1a6)][_0x473cc6(0x193)][_0x473cc6(0x19c)](_0x3d62cc,_0xb115b1);}[_0x4f6e95(0x181)](_0x3e42cc){var _0x45b1c8=_0x4f6e95;this[_0x45b1c8(0x1a6)][_0x45b1c8(0x181)](_0x3e42cc);}[_0x4f6e95(0x1ab)](_0x327241){var _0x464780=_0x4f6e95;return this[_0x464780(0x1a6)][_0x464780(0x193)][_0x464780(0x1ab)](_0x327241);}[_0x4f6e95(0x18c)](){var _0x23543c=_0x4f6e95;super[_0x23543c(0x18c)](),this[_0x23543c(0x1a6)][_0x23543c(0x18c)](),this[_0x23543c(0x1a5)][_0x23543c(0x1ac)]=this[_0x23543c(0x1a6)][_0x23543c(0x193)][_0x23543c(0x198)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x422f37=_0x1add;(function(_0x20a76a,_0x41ccab){var _0x43db46=_0x1add,_0x14cfe6=_0x20a76a();while(!![]){try{var _0x37e493=parseInt(_0x43db46(0xd0))/0x1*(parseInt(_0x43db46(0xde))/0x2)+parseInt(_0x43db46(0xdc))/0x3+-parseInt(_0x43db46(0xda))/0x4+parseInt(_0x43db46(0xc7))/0x5+-parseInt(_0x43db46(0xd2))/0x6*(parseInt(_0x43db46(0xe7))/0x7)+parseInt(_0x43db46(0xd9))/0x8*(-parseInt(_0x43db46(0xd5))/0x9)+-parseInt(_0x43db46(0xe4))/0xa;if(_0x37e493===_0x41ccab)break;else _0x14cfe6['push'](_0x14cfe6['shift']());}catch(_0x3949bf){_0x14cfe6['push'](_0x14cfe6['shift']());}}}(_0x9103,0xbfe17));function _0x1add(_0x15f6ea,_0x3abba1){var _0x91037e=_0x9103();return _0x1add=function(_0x1add87,_0x4ffc24){_0x1add87=_0x1add87-0xc7;var _0x1e3754=_0x91037e[_0x1add87];return _0x1e3754;},_0x1add(_0x15f6ea,_0x3abba1);}import{AIChatFeedItemView as _0x515cb7}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x27ee81}from'./aichatfeedcontextchipsview.js';import{View as _0x142413}from'ckeditor5/src/ui.js';function _0x9103(){var _0x4c99e0=['contextItems','6354225QBZCZh','_createMessageContentView','ck-ai-chat__feed__message-content','extendTemplate','8zUHhap','1744824QOMQHE','filter','4553010tZAPYB','length','4HQQaZs','ck-ai-chat__feed__user-message','options','hidden','initialContent','div','7873480EXgrLY','_messageContentView','add','21IpiBXl','innerHTML','2720520TJmHfq','ck-ai-chat__feed__context-chips','_locale','_bodyCollection','setTemplate','markAsDone','_contextChipsView','children','render','391023MAlaHv','element','256596kLBkXx','_createContextChipsView'];_0x9103=function(){return _0x4c99e0;};return _0x9103();}export class AIChatFeedUserMessageItemView extends _0x515cb7{[_0x422f37(0xcd)]=null;[_0x422f37(0xc9)];[_0x422f37(0xca)];[_0x422f37(0xe5)];constructor(_0x1c0606,_0x5cc593,_0x387e59){var _0x494b23=_0x422f37;super(_0x5cc593),this[_0x494b23(0xc9)]=_0x1c0606,this[_0x494b23(0xca)]=_0x387e59,this[_0x494b23(0xd3)](),this[_0x494b23(0xd6)](),this[_0x494b23(0xd8)]({'attributes':{'class':[_0x494b23(0xdf)]}});}[_0x422f37(0xd3)](){var _0x266825=_0x422f37;this[_0x266825(0xe0)][_0x266825(0xd4)]&&this[_0x266825(0xe0)][_0x266825(0xd4)][_0x266825(0xdd)]>0x0&&(this[_0x266825(0xcd)]=new _0x27ee81(this[_0x266825(0xc9)],this[_0x266825(0xe0)][_0x266825(0xd4)][_0x266825(0xdb)](_0xb822e7=>!_0xb822e7[_0x266825(0xe1)]),this[_0x266825(0xca)]),this[_0x266825(0xcd)][_0x266825(0xd8)]({'attributes':{'class':_0x266825(0xc8)}}),this[_0x266825(0xce)][_0x266825(0xe6)](this[_0x266825(0xcd)]));}[_0x422f37(0xd6)](){var _0x2e79ca=_0x422f37;this[_0x2e79ca(0xe5)]=new _0x142413(this[_0x2e79ca(0xc9)]),this[_0x2e79ca(0xe5)][_0x2e79ca(0xcb)]({'tag':_0x2e79ca(0xe3),'attributes':{'class':_0x2e79ca(0xd7)}}),this[_0x2e79ca(0xce)][_0x2e79ca(0xe6)](this[_0x2e79ca(0xe5)]);}[_0x422f37(0xcf)](){var _0x1e05db=_0x422f37;super[_0x1e05db(0xcf)](),this[_0x1e05db(0xe5)][_0x1e05db(0xd1)][_0x1e05db(0xe8)]=this[_0x1e05db(0xe0)][_0x1e05db(0xe2)],this[_0x1e05db(0xcc)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x39df52=_0x1717;function _0x1717(_0x29fb60,_0x279b5f){const _0xe0b027=_0xe0b0();return _0x1717=function(_0x1717e0,_0x191273){_0x1717e0=_0x1717e0-0x15b;let _0xbf0cc3=_0xe0b027[_0x1717e0];return _0xbf0cc3;},_0x1717(_0x29fb60,_0x279b5f);}(function(_0x1bb37c,_0x241c89){const _0x5238cf=_0x1717,_0x2a55a1=_0x1bb37c();while(!![]){try{const _0x5e37fc=parseInt(_0x5238cf(0x15b))/0x1+-parseInt(_0x5238cf(0x16c))/0x2+parseInt(_0x5238cf(0x15c))/0x3+-parseInt(_0x5238cf(0x167))/0x4+parseInt(_0x5238cf(0x163))/0x5+parseInt(_0x5238cf(0x15d))/0x6+-parseInt(_0x5238cf(0x15f))/0x7;if(_0x5e37fc===_0x241c89)break;else _0x2a55a1['push'](_0x2a55a1['shift']());}catch(_0x2fd5de){_0x2a55a1['push'](_0x2a55a1['shift']());}}}(_0xe0b0,0xd5450));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2df59f}from'../../aicore/utils/eventnames.js';function _0xe0b0(){const _0x4d3873=['toggleReasoning','6218275gjaRkN','addFileToContext','loadSourceResources','resizeTabs','8488955SRjCZl','abortPromptStream','selectModel','toggleWebSearch','3254276nCmUak','addDocumentToContext','removeContextItem','addResourceToContext','startConversation','2970606IWGPSK','addUrlToContext','sendUserMessage','1039164ZQXLPQ','2365863YrPfds','3211038LldfRP'];_0xe0b0=function(){return _0x4d3873;};return _0xe0b0();}export const AI_CHAT_UI_EVENT_NAMES=[..._0x2df59f,_0x39df52(0x16b),_0x39df52(0x162),_0x39df52(0x16e),_0x39df52(0x164),_0x39df52(0x168),_0x39df52(0x160),_0x39df52(0x16d),_0x39df52(0x16a),_0x39df52(0x169),_0x39df52(0x161),_0x39df52(0x166),_0x39df52(0x15e),_0x39df52(0x165)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x19c40b=_0x326a;(function(_0x247c0b,_0xb3f14d){const _0x13ee89=_0x326a,_0x8b5c58=_0x247c0b();while(!![]){try{const _0x342926=-parseInt(_0x13ee89(0x102))/0x1+-parseInt(_0x13ee89(0xfe))/0x2*(parseInt(_0x13ee89(0x101))/0x3)+-parseInt(_0x13ee89(0xf0))/0x4*(parseInt(_0x13ee89(0xf7))/0x5)+parseInt(_0x13ee89(0xf9))/0x6*(parseInt(_0x13ee89(0x100))/0x7)+-parseInt(_0x13ee89(0x107))/0x8*(parseInt(_0x13ee89(0xf1))/0x9)+parseInt(_0x13ee89(0xeb))/0xa*(-parseInt(_0x13ee89(0xec))/0xb)+parseInt(_0x13ee89(0xf2))/0xc;if(_0x342926===_0xb3f14d)break;else _0x8b5c58['push'](_0x8b5c58['shift']());}catch(_0x166168){_0x8b5c58['push'](_0x8b5c58['shift']());}}}(_0x2d19,0x34103));import{EmitterMixin as _0x1e28d0}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x1e28d0(){[_0x19c40b(0xf6)]=[];[_0x19c40b(0xfa)]=!0x1;[_0x19c40b(0xf3)];async[_0x19c40b(0xfd)](_0xc95b4d){const _0x3b43af=_0x19c40b,_0x671c1f=this[_0x3b43af(0xef)](_0xc95b4d);return this[_0x3b43af(0xf6)][_0x3b43af(0xff)](_0x671c1f),this[_0x3b43af(0xf4)](),_0x671c1f[_0x3b43af(0x105)];}[_0x19c40b(0xee)](){const _0x2772c4=_0x19c40b;this[_0x2772c4(0xfa)]&&(this[_0x2772c4(0xf3)][_0x2772c4(0xee)](),this[_0x2772c4(0xf3)]=void 0x0,this[_0x2772c4(0xf6)]=[],this[_0x2772c4(0xf8)](_0x2772c4(0xed)),this[_0x2772c4(0xfa)]=!0x1);}get[_0x19c40b(0xf5)](){const _0x381f78=_0x19c40b;return this[_0x381f78(0xf6)][_0x381f78(0x109)]||this[_0x381f78(0xfa)]?new Promise(_0x1a91c6=>{const _0x137914=_0x381f78;this[_0x137914(0x108)](_0x137914(0xed),()=>{_0x1a91c6();});}):Promise[_0x381f78(0xfc)]();}async[_0x19c40b(0xf4)](){const _0xd8f6cd=_0x19c40b;if(!this[_0xd8f6cd(0xfa)]){this[_0xd8f6cd(0xf3)]=new AbortController(),this[_0xd8f6cd(0xfa)]=!0x0;try{for(;this[_0xd8f6cd(0xf6)][_0xd8f6cd(0x109)]&&this[_0xd8f6cd(0xfa)];){const _0xa5f183=this[_0xd8f6cd(0xf6)][_0xd8f6cd(0xfb)]();try{await _0xa5f183[_0xd8f6cd(0x104)](this[_0xd8f6cd(0xf3)][_0xd8f6cd(0x103)]),_0xa5f183[_0xd8f6cd(0xfc)]();}catch(_0x487c49){_0xa5f183[_0xd8f6cd(0x106)](_0x487c49);}}}finally{this[_0xd8f6cd(0xfa)]=!0x1,this[_0xd8f6cd(0xf3)]=void 0x0;}this[_0xd8f6cd(0xf8)](_0xd8f6cd(0xed));}}[_0x19c40b(0xef)](_0x1ca8a7){let _0x520fa3,_0x360a5c;const _0x4276d2=new Promise((_0x3e3052,_0x1487fd)=>{_0x520fa3=_0x3e3052,_0x360a5c=_0x1487fd;});return{'callback':_0x1ca8a7,'resolve':_0x520fa3,'reject':_0x360a5c,'completePromise':_0x4276d2};}}function _0x326a(_0x37ba39,_0x2a6568){const _0x2d195e=_0x2d19();return _0x326a=function(_0x326ad6,_0x2561b6){_0x326ad6=_0x326ad6-0xeb;let _0x5464bd=_0x2d195e[_0x326ad6];return _0x5464bd;},_0x326a(_0x37ba39,_0x2a6568);}function _0x2d19(){const _0x4688cd=['fire','2988uHKaWo','isProcessing','shift','resolve','enqueue','2DhLmHw','push','4585fShCMI','444201dbtTrT','195062bIrKWb','signal','callback','completePromise','reject','8nUePOt','once','length','440slwOIG','825OAYamW','_queueEmpty','abort','createTask','28DfryGp','82314qnPZem','6127236GiSsWb','_abortController','_processQueue','queueEmptyPromise','queue','191405sXZDgx'];_0x2d19=function(){return _0x4688cd;};return _0x2d19();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2bd33a=_0x3826;(function(_0x2774e0,_0x110dd6){const _0x4686b6=_0x3826,_0x44076c=_0x2774e0();while(!![]){try{const _0x4f4727=parseInt(_0x4686b6(0x1d9))/0x1*(parseInt(_0x4686b6(0x1d8))/0x2)+parseInt(_0x4686b6(0x1da))/0x3*(parseInt(_0x4686b6(0x1d5))/0x4)+-parseInt(_0x4686b6(0x1d7))/0x5*(parseInt(_0x4686b6(0x1de))/0x6)+parseInt(_0x4686b6(0x1d6))/0x7*(-parseInt(_0x4686b6(0x1d2))/0x8)+parseInt(_0x4686b6(0x1be))/0x9+-parseInt(_0x4686b6(0x1dc))/0xa+-parseInt(_0x4686b6(0x1e4))/0xb;if(_0x4f4727===_0x110dd6)break;else _0x44076c['push'](_0x44076c['shift']());}catch(_0x23b5ba){_0x44076c['push'](_0x44076c['shift']());}}}(_0x5a25,0x6c039));const ws=[_0x2bd33a(0x1bf),_0x2bd33a(0x1cb),_0x2bd33a(0x1e1),_0x2bd33a(0x1c5)],fs=[_0x2bd33a(0x1e0),_0x2bd33a(0x1bc),_0x2bd33a(0x1d4),_0x2bd33a(0x1c2),_0x2bd33a(0x1d0),_0x2bd33a(0x1c3),'\x20'];function _0x3826(_0x13c411,_0x14db3a){const _0x5a25e8=_0x5a25();return _0x3826=function(_0x3826a0,_0x4fb658){_0x3826a0=_0x3826a0-0x1ba;let _0x55d730=_0x5a25e8[_0x3826a0];return _0x55d730;},_0x3826(_0x13c411,_0x14db3a);}function _0x5a25(){const _0x4254e2=['Home','_onUserEvent','8rbEUzV','deltaY','PageUp','71260pkeGln','234409zfaIUp','5IfVYyf','76BuLfGM','15429sIDEos','141SxCQsm','includes','2423920CKOMeJ','scrollHeight','3474222nhIYVL','addEventListener','ArrowUp','pointerdown','destroy','auto','8895942SEkFkA','bind','isRunning','element','ArrowDown','abortController','6142104lMrPcm','wheel','type','_rafUpdate','PageDown','End','scrollTo','keydown','isUserPaused','_isAtBottom','key','signal','start','touchstart','stop','abort','animationFrameId','_stop'];_0x5a25=function(){return _0x4254e2;};return _0x5a25();}export class ScrollManager{[_0x2bd33a(0x1bb)];[_0x2bd33a(0x1ce)];[_0x2bd33a(0x1ba)];[_0x2bd33a(0x1bd)];[_0x2bd33a(0x1c6)];constructor(_0x562030){const _0x603b20=_0x2bd33a;this[_0x603b20(0x1bb)]=_0x562030,this[_0x603b20(0x1ce)]=null,this[_0x603b20(0x1ba)]=!0x1,this[_0x603b20(0x1bd)]=new AbortController(),this[_0x603b20(0x1c6)]=!0x1;for(const _0x581b5a of ws){const _0x19e9ec=_0x603b20(0x1c5)!==_0x581b5a;this[_0x603b20(0x1bb)][_0x603b20(0x1df)](_0x581b5a,this[_0x603b20(0x1d1)][_0x603b20(0x1e5)](this),{'passive':_0x19e9ec,'signal':this[_0x603b20(0x1bd)][_0x603b20(0x1c9)]});}}[_0x2bd33a(0x1ca)](){const _0xc0ab57=_0x2bd33a;this[_0xc0ab57(0x1ba)]||(this[_0xc0ab57(0x1ba)]=!0x0,this[_0xc0ab57(0x1c6)]=!0x1,this[_0xc0ab57(0x1ce)]=requestAnimationFrame(this[_0xc0ab57(0x1c1)][_0xc0ab57(0x1e5)](this)));}[_0x2bd33a(0x1cc)](){requestAnimationFrame(()=>{const _0x2b3ab3=_0x3826;this[_0x2b3ab3(0x1cf)]();});}[_0x2bd33a(0x1e2)](){const _0x5ee603=_0x2bd33a;this[_0x5ee603(0x1cf)](),this[_0x5ee603(0x1bd)][_0x5ee603(0x1cd)]();}[_0x2bd33a(0x1cf)](){const _0x1b0ac5=_0x2bd33a;null!==this[_0x1b0ac5(0x1ce)]&&(cancelAnimationFrame(this[_0x1b0ac5(0x1ce)]),this[_0x1b0ac5(0x1ce)]=null),this[_0x1b0ac5(0x1ba)]&&(this[_0x1b0ac5(0x1ba)]=!0x1),this[_0x1b0ac5(0x1c6)]=!0x1;}[_0x2bd33a(0x1d1)](_0x44c86a){const _0x47a4c6=_0x2bd33a;if(this[_0x47a4c6(0x1ba)]){if(_0x47a4c6(0x1c5)===_0x44c86a[_0x47a4c6(0x1c0)]){const _0x263185=_0x44c86a[_0x47a4c6(0x1c8)];if(!fs[_0x47a4c6(0x1db)](_0x263185))return;}_0x44c86a instanceof WheelEvent?_0x44c86a[_0x47a4c6(0x1d3)]<0x0?this[_0x47a4c6(0x1c6)]=!0x0:this[_0x47a4c6(0x1c6)]=!this[_0x47a4c6(0x1c7)]():this[_0x47a4c6(0x1c6)]=!0x0;}}[_0x2bd33a(0x1c7)](){const _0x457b07=_0x2bd33a,{scrollTop:_0x1946f8,scrollHeight:_0x244dda,clientHeight:_0x4178c0}=this[_0x457b07(0x1bb)];return _0x244dda-_0x1946f8-_0x4178c0<=0x5;}[_0x2bd33a(0x1c1)](){const _0x193d09=_0x2bd33a;this[_0x193d09(0x1ba)]&&(this[_0x193d09(0x1c6)]||this[_0x193d09(0x1bb)][_0x193d09(0x1c4)]({'top':this[_0x193d09(0x1bb)][_0x193d09(0x1dd)],'behavior':_0x193d09(0x1e3)}),this[_0x193d09(0x1ce)]=requestAnimationFrame(this[_0x193d09(0x1c1)][_0x193d09(0x1e5)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4f39(_0x58a8d4,_0x1a4dd6){var _0x452b94=_0x452b();return _0x4f39=function(_0x4f39fa,_0x446020){_0x4f39fa=_0x4f39fa-0x13d;var _0xb27963=_0x452b94[_0x4f39fa];return _0xb27963;},_0x4f39(_0x58a8d4,_0x1a4dd6);}var _0x8174b6=_0x4f39;(function(_0x568e0e,_0x5e5b0f){var _0x5da57b=_0x4f39,_0x40e503=_0x568e0e();while(!![]){try{var _0x5be781=parseInt(_0x5da57b(0x13f))/0x1*(-parseInt(_0x5da57b(0x140))/0x2)+-parseInt(_0x5da57b(0x146))/0x3*(-parseInt(_0x5da57b(0x14c))/0x4)+parseInt(_0x5da57b(0x149))/0x5+parseInt(_0x5da57b(0x147))/0x6*(-parseInt(_0x5da57b(0x14a))/0x7)+-parseInt(_0x5da57b(0x13d))/0x8+parseInt(_0x5da57b(0x13e))/0x9*(-parseInt(_0x5da57b(0x145))/0xa)+parseInt(_0x5da57b(0x143))/0xb;if(_0x5be781===_0x5e5b0f)break;else _0x40e503['push'](_0x40e503['shift']());}catch(_0x441e42){_0x40e503['push'](_0x40e503['shift']());}}}(_0x452b,0xdd512));import{ContextPlugin as _0x4015ba}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x170401}from'./aichathistorycontroller.js';function _0x452b(){var _0x4c44ef=['2924836ePwdJj','9379768ONReYk','99XgyioG','9641mharcr','346Rhmlao','requires','isOfficialPlugin','46337434AuvriY','AIChatHistory','1641850XxnuDL','6XJKRDS','612114vxDmug','pluginName','2450575QVicPV','42NMMkXG','isPremiumPlugin'];_0x452b=function(){return _0x4c44ef;};return _0x452b();}import{AIChatHistoryUI as _0x5f47a1}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x4015ba{static get[_0x8174b6(0x141)](){return[_0x170401,_0x5f47a1];}static get[_0x8174b6(0x148)](){var _0x47f9fd=_0x8174b6;return _0x47f9fd(0x144);}static get[_0x8174b6(0x142)](){return!0x0;}static get[_0x8174b6(0x14b)](){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 _0x541559=_0x1226;(function(_0x2e1d4e,_0x175e47){const _0x55f078=_0x1226,_0x1017eb=_0x2e1d4e();while(!![]){try{const _0x36765f=-parseInt(_0x55f078(0x167))/0x1+-parseInt(_0x55f078(0x139))/0x2*(parseInt(_0x55f078(0x125))/0x3)+parseInt(_0x55f078(0x151))/0x4*(parseInt(_0x55f078(0x118))/0x5)+parseInt(_0x55f078(0x157))/0x6*(parseInt(_0x55f078(0x15b))/0x7)+-parseInt(_0x55f078(0x170))/0x8*(parseInt(_0x55f078(0x12f))/0x9)+parseInt(_0x55f078(0x14f))/0xa+parseInt(_0x55f078(0x137))/0xb*(parseInt(_0x55f078(0x11a))/0xc);if(_0x36765f===_0x175e47)break;else _0x1017eb['push'](_0x1017eb['shift']());}catch(_0x3cb596){_0x1017eb['push'](_0x1017eb['shift']());}}}(_0x46be,0x76716));import{ContextPlugin as _0x20bc63}from'ckeditor5/src/core.js';import{AIConnector as _0x416c88}from'../aicore/aiconnector.js';function _0x1226(_0xd9b9c8,_0x2db914){const _0x46be9d=_0x46be();return _0x1226=function(_0x12264c,_0x5c2e5f){_0x12264c=_0x12264c-0x117;let _0x199596=_0x46be9d[_0x12264c];return _0x199596;},_0x1226(_0xd9b9c8,_0x2db914);}import{AIChatController as _0x58a767}from'../aichat/aichatcontroller.js';import{AITabs as _0x5e697a}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x80e152}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x733791}from'./model/aichathistoryconversations.js';import{getTranslation as _0x3b43be}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x20bc63{[_0x541559(0x154)];[_0x541559(0x16c)];[_0x541559(0x178)];static get[_0x541559(0x17a)](){return[_0x416c88,_0x58a767,_0x80e152,_0x5e697a];}static get[_0x541559(0x175)](){const _0x305e2b=_0x541559;return _0x305e2b(0x14a);}static get[_0x541559(0x14b)](){return!0x0;}static get[_0x541559(0x143)](){return!0x0;}[_0x541559(0x136)](){const _0xdf637e=_0x541559;this[_0xdf637e(0x154)]=this[_0xdf637e(0x134)][_0xdf637e(0x120)][_0xdf637e(0x11b)](_0x416c88),this[_0xdf637e(0x16c)]=this[_0xdf637e(0x134)][_0xdf637e(0x120)][_0xdf637e(0x11b)](_0x80e152),this[_0xdf637e(0x178)]=this[_0xdf637e(0x134)][_0xdf637e(0x120)][_0xdf637e(0x11b)](_0x58a767);const _0x102d59=this[_0xdf637e(0x134)][_0xdf637e(0x120)][_0xdf637e(0x11b)](_0x5e697a),_0x3f5ffc=this[_0xdf637e(0x178)][_0xdf637e(0x13d)]();this[_0xdf637e(0x12d)]=new _0x733791({'connector':this[_0xdf637e(0x154)],'group':_0x3f5ffc}),this[_0xdf637e(0x124)](this[_0xdf637e(0x16c)],_0xdf637e(0x176),(_0x26d17d,_0x380e5b)=>{const _0xc983a9=_0xdf637e;this[_0xc983a9(0x12a)](_0x380e5b['id'],_0xc983a9(0x169)),this[_0xc983a9(0x17b)](_0x380e5b['id']);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x16c)],_0xdf637e(0x133),(_0x48a4bc,_0x168456)=>{const _0x1dfc99=_0xdf637e;this[_0x1dfc99(0x12a)](_0x168456['id'],_0x1dfc99(0x166)),this[_0x1dfc99(0x17e)](_0x168456['id'],_0x168456[_0x1dfc99(0x117)]);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x12d)],_0xdf637e(0x132),(_0x5ed9a4,_0x23c6c6)=>{const _0x51ed02=_0xdf637e;void 0x0!==_0x23c6c6[_0x51ed02(0x12c)][_0x51ed02(0x117)]&&this[_0x51ed02(0x16c)][_0x51ed02(0x11d)](_0x23c6c6[_0x51ed02(0x135)],_0x23c6c6[_0x51ed02(0x12c)][_0x51ed02(0x117)]),void 0x0!==_0x23c6c6[_0x51ed02(0x12c)][_0x51ed02(0x146)]&&this[_0x51ed02(0x16f)](),this[_0x51ed02(0x162)](_0x23c6c6[_0x51ed02(0x135)]);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x12d)],_0xdf637e(0x155),(_0x59c9b0,_0x2acdf5)=>{const _0x4d87d2=_0xdf637e;this[_0x4d87d2(0x178)][_0x4d87d2(0x123)](_0x2acdf5[_0x4d87d2(0x135)]),this[_0x4d87d2(0x16c)][_0x4d87d2(0x17c)](_0x2acdf5[_0x4d87d2(0x135)]),this[_0x4d87d2(0x162)](_0x2acdf5[_0x4d87d2(0x135)]);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x12d)],_0xdf637e(0x15e),()=>{const _0x3e2b92=_0xdf637e;this[_0x3e2b92(0x16f)]();}),this[_0xdf637e(0x124)](this[_0xdf637e(0x12d)],_0xdf637e(0x149),(_0x515ca6,_0x6bab50)=>{const _0xa34ada=_0xdf637e;this[_0xa34ada(0x142)](_0x6bab50[_0xa34ada(0x149)],_0x6bab50[_0xa34ada(0x127)],_0x6bab50[_0xa34ada(0x135)]);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x16c)],_0xdf637e(0x16d),(_0x2ef146,_0x2582ef)=>{const _0x53931f=_0xdf637e;this[_0x53931f(0x159)](_0x2582ef['id']);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x16c)],_0xdf637e(0x13e),(_0x66311b,_0x296034)=>{const _0x310200=_0xdf637e,_0x47423b=_0x296034[_0x310200(0x146)]?_0x310200(0x163):_0x310200(0x12b);this[_0x310200(0x12a)](_0x296034['id'],_0x47423b),this[_0x310200(0x158)](_0x296034['id'],_0x296034[_0x310200(0x146)]);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x16c)],_0xdf637e(0x11e),()=>{const _0x32a61e=_0xdf637e;_0x102d59[_0x32a61e(0x16e)][_0x32a61e(0x15f)](_0x32a61e(0x177));}),this[_0xdf637e(0x124)](this[_0xdf637e(0x178)],_0xdf637e(0x11c),()=>{const _0x2a3f0a=_0xdf637e;this[_0x2a3f0a(0x16f)]();}),_0x102d59[_0xdf637e(0x16e)]['on'](_0xdf637e(0x15d),()=>{const _0x5c9a41=_0xdf637e;this[_0x5c9a41(0x138)]();}),this[_0xdf637e(0x124)](_0x102d59,_0xdf637e(0x121),(_0x5aa90d,_0x42b082)=>{const _0xdd54ee=_0xdf637e;this[_0xdd54ee(0x144)](_0x42b082);}),this[_0xdf637e(0x124)](this[_0xdf637e(0x16c)],_0xdf637e(0x160),()=>{const _0x54e35b=_0xdf637e;_0x102d59[_0x54e35b(0x11f)]();});}async[_0x541559(0x17e)](_0x4a27bc,_0x270fee){const _0x47cf52=_0x541559;await this[_0x47cf52(0x12d)][_0x47cf52(0x11d)](_0x4a27bc,_0x270fee);}async[_0x541559(0x158)](_0x144c84,_0x4fbaf7){const _0x5945cf=_0x541559;await this[_0x5945cf(0x12d)][_0x5945cf(0x122)](_0x144c84,_0x4fbaf7);}async[_0x541559(0x17b)](_0x2a8725){const _0x3cdfa2=_0x541559;await this[_0x3cdfa2(0x12d)][_0x3cdfa2(0x16a)](_0x2a8725);}async[_0x541559(0x159)](_0x57d8cb){const _0x5e6a79=_0x541559;await this[_0x5e6a79(0x178)][_0x5e6a79(0x119)](_0x57d8cb);}async[_0x541559(0x138)](){const _0x2e21ea=_0x541559;this[_0x2e21ea(0x16c)][_0x2e21ea(0x13b)](''),this[_0x2e21ea(0x16c)][_0x2e21ea(0x14c)](!0x0),await this[_0x2e21ea(0x12d)][_0x2e21ea(0x136)](),this[_0x2e21ea(0x16c)][_0x2e21ea(0x14c)](!0x1);}[_0x541559(0x16f)](){const _0xf15421=_0x541559,_0x350b57=this[_0xf15421(0x178)][_0xf15421(0x17d)]?.['id'],_0x273c4b=this[_0xf15421(0x173)]()[_0xf15421(0x165)](_0x2bceb1=>({'title':_0x2bceb1[_0xf15421(0x117)],'items':_0x2bceb1[_0xf15421(0x168)][_0xf15421(0x165)](_0x17066d=>({'id':_0x17066d['id'],'title':_0x17066d[_0xf15421(0x117)]||_0x3b43be(this[_0xf15421(0x134)][_0xf15421(0x150)],_0xf15421(0x156)),'createdAt':new Date(_0x17066d[_0xf15421(0x145)])[_0xf15421(0x14d)](),'active':_0x17066d['id']===_0x350b57,'pinned':_0x17066d[_0xf15421(0x146)]}))}));this[_0xf15421(0x16c)][_0xf15421(0x153)](_0x273c4b);}[_0x541559(0x12a)](_0x3432aa,_0x29ac3a){const _0x230830=_0x541559;this[_0x230830(0x16c)][_0x230830(0x130)](_0x3432aa,_0x29ac3a,!0x0);}[_0x541559(0x162)](_0x40fd3b){const _0x27c535=_0x541559;this[_0x27c535(0x16c)][_0x27c535(0x130)](_0x40fd3b,null,!0x1);}[_0x541559(0x142)](_0x32edcd,_0x59848c,_0x25909f){const _0x20abe0=_0x541559,_0x3fd494=this[_0x20abe0(0x148)](_0x59848c,_0x25909f);this[_0x20abe0(0x16c)][_0x20abe0(0x13b)](_0x3fd494),_0x25909f&&this[_0x20abe0(0x162)](_0x25909f),this[_0x20abe0(0x16c)][_0x20abe0(0x14c)](!0x1);}[_0x541559(0x148)](_0x38742b,_0x3c2f38){const _0x5f1362=_0x541559,_0x46c8c4=_0x3c2f38?this[_0x5f1362(0x12d)][_0x5f1362(0x128)](_0x3c2f38):null,_0xc2f2bd=_0x46c8c4?.[_0x5f1362(0x117)]||_0x3b43be(this[_0x5f1362(0x134)][_0x5f1362(0x150)],_0x5f1362(0x156));switch(_0x38742b){case _0x5f1362(0x11d):return _0x3b43be(this[_0x5f1362(0x134)][_0x5f1362(0x150)],_0x5f1362(0x13c),_0xc2f2bd);case _0x5f1362(0x122):{const _0x462d3a=_0x3b43be(this[_0x5f1362(0x134)][_0x5f1362(0x150)],_0x46c8c4?.[_0x5f1362(0x146)]?_0x5f1362(0x161):_0x5f1362(0x16b));return _0x3b43be(this[_0x5f1362(0x134)][_0x5f1362(0x150)],_0x5f1362(0x15c),[_0x462d3a,_0xc2f2bd]);}case _0x5f1362(0x16a):return _0x3b43be(this[_0x5f1362(0x134)][_0x5f1362(0x150)],_0x5f1362(0x12e),_0xc2f2bd);case _0x5f1362(0x136):case _0x5f1362(0x13f):return _0x3b43be(this[_0x5f1362(0x134)][_0x5f1362(0x150)],_0x5f1362(0x152));default:return _0x3b43be(this[_0x5f1362(0x134)][_0x5f1362(0x150)],_0x5f1362(0x174));}}[_0x541559(0x173)](){const _0x584a30=_0x541559,_0x15e73d=new Date(),_0x4a714a=new Date(_0x15e73d[_0x584a30(0x140)](),_0x15e73d[_0x584a30(0x141)](),_0x15e73d[_0x584a30(0x147)]()),_0x2a14c1=new Date(_0x4a714a);_0x2a14c1[_0x584a30(0x131)](_0x2a14c1[_0x584a30(0x147)]()-0x1);const _0xa2df9d=new Date(_0x4a714a);_0xa2df9d[_0x584a30(0x131)](_0xa2df9d[_0x584a30(0x147)]()-0xe);const _0x1944d8=this[_0x584a30(0x12d)][_0x584a30(0x179)]({'pinned':!0x0}),_0x2f7475=this[_0x584a30(0x12d)][_0x584a30(0x179)]({'from':_0x4a714a,'to':_0x4a714a}),_0x7023da=this[_0x584a30(0x12d)][_0x584a30(0x179)]({'from':_0x2a14c1,'to':_0x2a14c1}),_0x83759d=this[_0x584a30(0x12d)][_0x584a30(0x179)]({'from':_0xa2df9d,'to':_0x2a14c1}),_0x32fad2=this[_0x584a30(0x12d)][_0x584a30(0x179)]({'to':_0xa2df9d}),_0x33bd63=[];return _0x1944d8[_0x584a30(0x13a)]>0x0&&_0x33bd63[_0x584a30(0x15a)]({'title':_0x3b43be(this[_0x584a30(0x134)][_0x584a30(0x150)],_0x584a30(0x172)),'items':_0x1944d8}),_0x2f7475[_0x584a30(0x13a)]>0x0&&_0x33bd63[_0x584a30(0x15a)]({'title':_0x3b43be(this[_0x584a30(0x134)][_0x584a30(0x150)],_0x584a30(0x14e)),'items':_0x2f7475}),_0x7023da[_0x584a30(0x13a)]>0x0&&_0x33bd63[_0x584a30(0x15a)]({'title':_0x3b43be(this[_0x584a30(0x134)][_0x584a30(0x150)],_0x584a30(0x164)),'items':_0x7023da}),_0x83759d[_0x584a30(0x13a)]>0x0&&_0x33bd63[_0x584a30(0x15a)]({'title':_0x3b43be(this[_0x584a30(0x134)][_0x584a30(0x150)],_0x584a30(0x126)),'items':_0x83759d}),_0x32fad2[_0x584a30(0x13a)]>0x0&&_0x33bd63[_0x584a30(0x15a)]({'title':_0x3b43be(this[_0x584a30(0x134)][_0x584a30(0x150)],_0x584a30(0x129)),'items':_0x32fad2}),_0x33bd63;}[_0x541559(0x144)](_0x4d4b02){const _0x381f87=_0x541559;this[_0x381f87(0x16c)][_0x381f87(0x171)](_0x4d4b02);}}function _0x46be(){const _0x30024f=['AI_CHAT_HISTORY_ERROR_GENERIC','pluginName','removeConversation','chat','_aiChatController','getItems','requires','_handleRemove','removeHistoryItem','activeConversation','_handleEditTitle','title','420BMmcSp','loadConversation','229476WBugTW','get','change:activeConversation','updateItemTitle','openChat','resize','plugins','resizedTabs','updateItemPinned','handleRemovedConversation','listenTo','1532742ZDuUvl','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','operation','getItem','AI_CHAT_HISTORY_CATEGORY_LATER','_setItemLoading','unpin','updates','history','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','30969adPKZd','updateItemLoadingState','setDate','itemUpdated','editConversationTitle','context','itemId','init','682oDvwXK','_showConversationHistory','2fAkrOB','length','showError','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','getGroupId','setConversationPinned','loadItems','getFullYear','getMonth','_handleHistoryErrorUI','isPremiumPlugin','_setIsMaximized','createdAt','pinned','getDate','_generateErrorMessage','error','AIChatHistoryController','isOfficialPlugin','setLoadingSkeleton','toLocaleDateString','AI_CHAT_HISTORY_CATEGORY_TODAY','3518300RvEoIg','locale','5052mbGVTZ','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','updateItems','_aiConnector','itemRemoved','AI_CHAT_UNTITLED_CONVERSATION','6OcahNK','_handleTogglePin','_handleSelectConversation','push','5016298VOVTcf','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','activateTab:history','itemsLoaded','activateTab','resizeTabs','AI_CHAT_HISTORY_UNPIN_ACTION','_clearItemLoading','pin','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','map','rename','933981bKKgKw','items','remove','removeItem','AI_CHAT_HISTORY_PIN_ACTION','_aiChatHistoryUi','selectConversation','view','_updateHistoryItemsUI','1000CpzJgz','setIsMaximized','AI_CHAT_HISTORY_CATEGORY_PINNED','_getCategorizedItems'];_0x46be=function(){return _0x30024f;};return _0x46be();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d1c43=_0x2ed1;(function(_0x47c9cc,_0x4d8c0d){const _0x194346=_0x2ed1,_0x41e4fe=_0x47c9cc();while(!![]){try{const _0x53e8d2=-parseInt(_0x194346(0x155))/0x1+-parseInt(_0x194346(0x154))/0x2*(parseInt(_0x194346(0x150))/0x3)+parseInt(_0x194346(0x138))/0x4*(-parseInt(_0x194346(0x13c))/0x5)+parseInt(_0x194346(0x14a))/0x6+-parseInt(_0x194346(0x152))/0x7+-parseInt(_0x194346(0x15a))/0x8+parseInt(_0x194346(0x139))/0x9;if(_0x53e8d2===_0x4d8c0d)break;else _0x41e4fe['push'](_0x41e4fe['shift']());}catch(_0x3e690f){_0x41e4fe['push'](_0x41e4fe['shift']());}}}(_0x47b7,0x465a6));import{ContextPlugin as _0x4a51ee}from'ckeditor5/src/core.js';import{AITabs as _0x44a2a1}from'../aitabs/aitabs.js';import{IconAIHistory as _0x117fbc}from'ckeditor5/src/icons.js';function _0x47b7(){const _0x44b6b4=['plugins','isOfficialPlugin','showError','resizeTabs','updateItems','removeConversation','showConversationHistory','addTab','isMaximized','isPremiumPlugin','2098768cetqJo','16628652FNcvaY','setConversationPinned','pluginName','5cWdsTV','openChat','selectConversation','AI_CHAT_HISTORY_HEADING','editConversationTitle','isLoading','delegate','errorMessage','AITabs','hideError','updateItemTitle','setIsMaximized','history','AIChatHistoryUI','2173014uFfceZ','requires','removeHistoryItem','context','updateItemLoadingState','view','3165vqkesz','setLoadingSkeleton','3593730YBErZR','updateHistoryItemsWithCategories','578mQeQAW','506648CweWuc','_historyView','get','locale','showResizeButton','576048UtumDY'];_0x47b7=function(){return _0x44b6b4;};return _0x47b7();}import{AIChatHistoryView as _0x164cc9}from'./ui/aichathistoryview.js';import{getTranslation as _0x29d6b3}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x1d1c43(0x134),_0x1d1c43(0x133),_0x1d1c43(0x140),_0x1d1c43(0x13a),_0x1d1c43(0x13e),_0x1d1c43(0x13d),_0x1d1c43(0x131)];function _0x2ed1(_0x41614a,_0x2059c5){const _0x47b760=_0x47b7();return _0x2ed1=function(_0x2ed175,_0x3a6859){_0x2ed175=_0x2ed175-0x12f;let _0x2fb05d=_0x47b760[_0x2ed175];return _0x2fb05d;},_0x2ed1(_0x41614a,_0x2059c5);}export class AIChatHistoryUI extends _0x4a51ee{static get[_0x1d1c43(0x14b)](){return[_0x44a2a1];}[_0x1d1c43(0x156)];static get[_0x1d1c43(0x13b)](){const _0x3ef379=_0x1d1c43;return _0x3ef379(0x149);}static get[_0x1d1c43(0x12f)](){return!0x0;}static get[_0x1d1c43(0x137)](){return!0x0;}constructor(_0xe4236){const _0x58e28b=_0x1d1c43;super(_0xe4236);const _0x2df785=this[_0x58e28b(0x14d)][_0x58e28b(0x15b)][_0x58e28b(0x157)](_0x58e28b(0x144));this[_0x58e28b(0x156)]=new _0x164cc9(this[_0x58e28b(0x14d)][_0x58e28b(0x158)],_0x2df785[_0x58e28b(0x159)]),this[_0x58e28b(0x156)][_0x58e28b(0x142)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x2df785[_0x58e28b(0x14f)][_0x58e28b(0x135)]({'id':_0x58e28b(0x148),'buttonLabel':_0x29d6b3(this[_0x58e28b(0x14d)][_0x58e28b(0x158)],_0x58e28b(0x13f)),'buttonIcon':_0x117fbc,'order':0x0,'content':this[_0x58e28b(0x156)]});}[_0x1d1c43(0x14c)](_0x3b434b){const _0x3d6656=_0x1d1c43;this[_0x3d6656(0x156)][_0x3d6656(0x14c)](_0x3b434b);}[_0x1d1c43(0x132)](_0x273d5c){const _0x5369b7=_0x1d1c43;this[_0x5369b7(0x156)][_0x5369b7(0x153)](_0x273d5c);}[_0x1d1c43(0x146)](_0x59a7dc,_0x2d263c){const _0x130945=_0x1d1c43;this[_0x130945(0x156)][_0x130945(0x146)](_0x59a7dc,_0x2d263c);}[_0x1d1c43(0x14e)](_0x780111,_0x363fcc,_0x93e356){const _0xd7716a=_0x1d1c43;this[_0xd7716a(0x156)][_0xd7716a(0x14e)](_0x780111,_0x363fcc,_0x93e356);}[_0x1d1c43(0x151)](_0x5389ba){const _0x3c0fd7=_0x1d1c43;this[_0x3c0fd7(0x156)][_0x3c0fd7(0x141)]=_0x5389ba;}[_0x1d1c43(0x130)](_0x5d8a7c){const _0xc68c10=_0x1d1c43;this[_0xc68c10(0x156)][_0xc68c10(0x143)]=_0x5d8a7c;}[_0x1d1c43(0x145)](){const _0x2bf2b9=_0x1d1c43;this[_0x2bf2b9(0x156)][_0x2bf2b9(0x143)]='';}[_0x1d1c43(0x147)](_0x344cd5){const _0x155b00=_0x1d1c43;this[_0x155b00(0x156)][_0x155b00(0x136)]=_0x344cd5;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xce7c8d=_0x4066;function _0x24b3(){const _0x29dfcf=['itemsLoaded','splice','getConversations','4631733somWze','updateItemPinned','updateItemTitle','updateConversation','addItem','6979550rIbnrV','443008SJotym','error','itemRemoved','group','getItems','init','execute','updateTitle','map','itemUpdated','find','3704967uTezSz','createdAt','getMonth','fire','fetchConversations','1694040yDyZVJ','loadItems','8CNkIQW','pinned','removeItem','connector','getResult','from','push','getDate','getItem','findIndex','36FacJBI','5268240lgrOMo','getFullYear','deleteConversation','getTime','filter','updatePinned','1736616kzziSp','4WKeePK','items'];_0x24b3=function(){return _0x29dfcf;};return _0x24b3();}(function(_0x382ccf,_0x3b57bc){const _0x2a45be=_0x4066,_0x493344=_0x382ccf();while(!![]){try{const _0x4ed64c=parseInt(_0x2a45be(0x9d))/0x1+parseInt(_0x2a45be(0xc0))/0x2+parseInt(_0x2a45be(0x97))/0x3*(parseInt(_0x2a45be(0x92))/0x4)+parseInt(_0x2a45be(0xba))/0x5+parseInt(_0x2a45be(0xad))/0x6+parseInt(_0x2a45be(0xa8))/0x7*(-parseInt(_0x2a45be(0xaf))/0x8)+parseInt(_0x2a45be(0xb9))/0x9*(-parseInt(_0x2a45be(0x9c))/0xa);if(_0x4ed64c===_0x3b57bc)break;else _0x493344['push'](_0x493344['shift']());}catch(_0x19aaaf){_0x493344['push'](_0x493344['shift']());}}}(_0x24b3,0xd46e2));function _0x4066(_0x3e8c68,_0x1a0081){const _0x24b324=_0x24b3();return _0x4066=function(_0x4066f0,_0x78a20d){_0x4066f0=_0x4066f0-0x92;let _0x3cd65a=_0x24b324[_0x4066f0];return _0x3cd65a;},_0x4066(_0x3e8c68,_0x1a0081);}import{EmitterMixin as _0xa4c188}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x48a0dc}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0xa4c188(){[_0xce7c8d(0x93)]=[];[_0xce7c8d(0xb2)];[_0xce7c8d(0xa0)];constructor({connector:_0x15d42f,group:_0x283f80}){const _0x2dfddb=_0xce7c8d;super(),this[_0x2dfddb(0xb2)]=_0x15d42f,this[_0x2dfddb(0xa0)]=_0x283f80;}async[_0xce7c8d(0xa2)](){const _0x2beb01=_0xce7c8d;try{const _0x136bc3=this[_0x2beb01(0xb2)][_0x2beb01(0xac)](this[_0x2beb01(0xa0)]),_0x1426bd=await _0x136bc3[_0x2beb01(0x96)]();this[_0x2beb01(0xae)](_0x1426bd);}catch(_0x3ae2b7){this[_0x2beb01(0xab)](_0x2beb01(0x9e),{'error':_0x3ae2b7,'operation':_0x2beb01(0xa2)});}}[_0xce7c8d(0x9b)](_0x561486){const _0x203b36=_0xce7c8d;this[_0x203b36(0x93)][_0x203b36(0xb5)](_0x561486);}async[_0xce7c8d(0xb1)](_0xf4f7f4){const _0x4986ca=_0xce7c8d,_0x50ff3a=this[_0x4986ca(0x93)][_0x4986ca(0xb8)](_0x20f943=>_0x20f943['id']===_0xf4f7f4);if(-0x1===_0x50ff3a)return!0x1;try{return await this[_0x4986ca(0xb2)][_0x4986ca(0xbc)](_0xf4f7f4)[_0x4986ca(0xa3)](),this[_0x4986ca(0x93)][_0x4986ca(0x95)](_0x50ff3a,0x1),this[_0x4986ca(0xab)](_0x4986ca(0x9f),{'itemId':_0xf4f7f4}),!0x0;}catch(_0x56892d){return this[_0x4986ca(0xab)](_0x4986ca(0x9e),{'error':_0x56892d,'operation':_0x4986ca(0xb1),'itemId':_0xf4f7f4}),!0x1;}}[_0xce7c8d(0xb7)](_0x27d73c){const _0x334361=_0xce7c8d;return this[_0x334361(0x93)][_0x334361(0xa7)](_0x35e093=>_0x35e093['id']===_0x27d73c);}async[_0xce7c8d(0x99)](_0x570feb,_0x1aa6f7){const _0x2b29b1=_0xce7c8d,_0x24045a=this[_0x2b29b1(0xb7)](_0x570feb);if(!_0x24045a)return!0x1;try{return await this[_0x2b29b1(0xb2)][_0x2b29b1(0x9a)](_0x570feb,{'title':_0x1aa6f7})[_0x2b29b1(0xb3)](),_0x24045a[_0x2b29b1(0xa4)](_0x1aa6f7),this[_0x2b29b1(0xab)](_0x2b29b1(0xa6),{'itemId':_0x570feb,'updates':{'title':_0x1aa6f7}}),!0x0;}catch(_0x33c75e){return this[_0x2b29b1(0xab)](_0x2b29b1(0x9e),{'error':_0x33c75e,'operation':_0x2b29b1(0x99),'itemId':_0x570feb}),!0x1;}}async[_0xce7c8d(0x98)](_0x23f5d4,_0xc9895c){const _0x229c76=_0xce7c8d,_0x35cf96=this[_0x229c76(0xb7)](_0x23f5d4);if(!_0x35cf96)return!0x1;try{return await this[_0x229c76(0xb2)][_0x229c76(0x9a)](_0x23f5d4,{'pinned':_0xc9895c})[_0x229c76(0xb3)](),_0x35cf96[_0x229c76(0xbf)](_0xc9895c),this[_0x229c76(0xab)](_0x229c76(0xa6),{'itemId':_0x23f5d4,'updates':{'pinned':_0xc9895c}}),!0x0;}catch(_0x9be08b){return this[_0x229c76(0xab)](_0x229c76(0x9e),{'error':_0x9be08b,'operation':_0x229c76(0x98),'itemId':_0x23f5d4}),!0x1;}}[_0xce7c8d(0xae)](_0x31be52){const _0x3d5c9d=_0xce7c8d;try{this[_0x3d5c9d(0x93)]=[],_0x31be52[_0x3d5c9d(0xa5)](_0x230b75=>{const _0x5580e7=_0x3d5c9d;this[_0x5580e7(0x9b)](new _0x48a0dc(_0x230b75));}),this[_0x3d5c9d(0xab)](_0x3d5c9d(0x94),{'items':[...this[_0x3d5c9d(0x93)]]});}catch(_0x42604d){this[_0x3d5c9d(0xab)](_0x3d5c9d(0x9e),{'error':_0x42604d,'operation':_0x3d5c9d(0xae)});}}[_0xce7c8d(0xa1)](_0x2e55a6={}){const _0x5a36df=_0xce7c8d,_0x147cc4=void 0x0!==_0x2e55a6[_0x5a36df(0xb0)]&&_0x2e55a6[_0x5a36df(0xb0)],_0x18a5d8=_0x2e55a6[_0x5a36df(0xb4)]?new Date(_0x2e55a6[_0x5a36df(0xb4)][_0x5a36df(0xbb)](),_0x2e55a6[_0x5a36df(0xb4)][_0x5a36df(0xaa)](),_0x2e55a6[_0x5a36df(0xb4)][_0x5a36df(0xb6)]()):null,_0xd8c623=_0x2e55a6['to']?new Date(_0x2e55a6['to'][_0x5a36df(0xbb)](),_0x2e55a6['to'][_0x5a36df(0xaa)](),_0x2e55a6['to'][_0x5a36df(0xb6)]()):null;return this[_0x5a36df(0x93)][_0x5a36df(0xbe)](_0x5603d6=>{const _0x251e8c=_0x5a36df;if(_0x5603d6[_0x251e8c(0xb0)]!==_0x147cc4)return!0x1;if(_0xd8c623){const _0x4ad969=new Date(_0x5603d6[_0x251e8c(0xa9)][_0x251e8c(0xbb)](),_0x5603d6[_0x251e8c(0xa9)][_0x251e8c(0xaa)](),_0x5603d6[_0x251e8c(0xa9)][_0x251e8c(0xb6)]());return _0x18a5d8?_0x18a5d8[_0x251e8c(0xbd)]()===_0xd8c623[_0x251e8c(0xbd)]()?_0x4ad969[_0x251e8c(0xbd)]()===_0x18a5d8[_0x251e8c(0xbd)]():_0x4ad969<_0xd8c623&&_0x4ad969>=_0x18a5d8:_0x4ad969<_0xd8c623;}return!0x0;});}}
|