@ckeditor/ckeditor5-ai 47.1.0-alpha.2 → 47.2.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +573 -203
- package/dist/index.css +627 -204
- package/dist/index.js +5 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +8 -1
- package/lang/translations/af.po +52 -4
- package/lang/translations/ar.po +52 -4
- package/lang/translations/ast.po +52 -4
- package/lang/translations/az.po +52 -4
- package/lang/translations/be.po +52 -4
- package/lang/translations/bg.po +52 -4
- package/lang/translations/bn.po +52 -4
- package/lang/translations/bs.po +52 -4
- package/lang/translations/ca.po +52 -4
- package/lang/translations/cs.po +52 -4
- package/lang/translations/da.po +52 -4
- package/lang/translations/de-ch.po +52 -4
- package/lang/translations/de.po +52 -4
- package/lang/translations/el.po +52 -4
- package/lang/translations/en-au.po +52 -4
- package/lang/translations/en-gb.po +52 -4
- package/lang/translations/en.po +52 -4
- package/lang/translations/eo.po +52 -4
- package/lang/translations/es-co.po +52 -4
- package/lang/translations/es.po +52 -4
- package/lang/translations/et.po +52 -4
- package/lang/translations/eu.po +52 -4
- package/lang/translations/fa.po +52 -4
- package/lang/translations/fi.po +52 -4
- package/lang/translations/fr.po +52 -4
- package/lang/translations/gl.po +52 -4
- package/lang/translations/gu.po +52 -4
- package/lang/translations/he.po +52 -4
- package/lang/translations/hi.po +52 -4
- package/lang/translations/hr.po +52 -4
- package/lang/translations/hu.po +52 -4
- package/lang/translations/hy.po +52 -4
- package/lang/translations/id.po +52 -4
- package/lang/translations/it.po +52 -4
- package/lang/translations/ja.po +52 -4
- package/lang/translations/jv.po +52 -4
- package/lang/translations/kk.po +52 -4
- package/lang/translations/km.po +52 -4
- package/lang/translations/kn.po +52 -4
- package/lang/translations/ko.po +52 -4
- package/lang/translations/ku.po +52 -4
- package/lang/translations/lt.po +52 -4
- package/lang/translations/lv.po +52 -4
- package/lang/translations/ms.po +52 -4
- package/lang/translations/nb.po +52 -4
- package/lang/translations/ne.po +52 -4
- package/lang/translations/nl.po +52 -4
- package/lang/translations/no.po +52 -4
- package/lang/translations/oc.po +52 -4
- package/lang/translations/pl.po +52 -4
- package/lang/translations/pt-br.po +52 -4
- package/lang/translations/pt.po +52 -4
- package/lang/translations/ro.po +52 -4
- package/lang/translations/ru.po +52 -4
- package/lang/translations/si.po +52 -4
- package/lang/translations/sk.po +52 -4
- package/lang/translations/sl.po +52 -4
- package/lang/translations/sq.po +52 -4
- package/lang/translations/sr-latn.po +52 -4
- package/lang/translations/sr.po +52 -4
- package/lang/translations/sv.po +52 -4
- package/lang/translations/th.po +52 -4
- package/lang/translations/ti.po +52 -4
- package/lang/translations/tk.po +52 -4
- package/lang/translations/tr.po +52 -4
- package/lang/translations/tt.po +52 -4
- package/lang/translations/ug.po +52 -4
- package/lang/translations/uk.po +52 -4
- package/lang/translations/ur.po +52 -4
- package/lang/translations/uz.po +52 -4
- package/lang/translations/vi.po +52 -4
- package/lang/translations/zh-cn.po +52 -4
- package/lang/translations/zh.po +52 -4
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +1 -1
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +5 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +40 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +1 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +4 -0
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +8 -29
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +4 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +2 -2
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.d.ts +4 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +4 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/{aichatresourceslistview.d.ts → aichatcontextresourceslistview.d.ts} +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/{aichatresourcesview.d.ts → aichatcontextresourcesview.d.ts} +5 -2
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +4 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +3 -3
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -3
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +28 -7
- package/src/aicore/aiconnector.d.ts +1 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.d.ts +66 -0
- package/src/aicore/model/aimodels.js +23 -0
- package/src/aicore/model/aireply.d.ts +9 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +5 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +3 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +6 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.d.ts +2 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.d.ts +2 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +18 -0
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +3 -3
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +9 -10
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +6 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +13 -0
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +9 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +0 -4
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +12 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +52 -43
- package/theme/aichat/aichat-controls/aichat-controls-button.css +8 -6
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +36 -52
- package/theme/aichat/aichat-controls/prompt-capabilities.css +0 -1
- package/theme/aichat/aichat-controls.css +11 -27
- package/theme/aichat/aichat.css +2 -3
- package/theme/aichat/aichatfeed.css +1 -27
- package/theme/aichat/aichathistory.css +12 -0
- package/theme/aichat/aisuggestioncontainer.css +5 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +25 -23
- package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +28 -5
- package/theme/aireviewmode/aireviewmode.css +17 -7
- package/theme/aitabs/aitabsview.css +1 -1
- package/theme/aitabs/tabs/tabbuttonview.css +1 -0
- package/theme/aitabs/tabs/tabsview.css +1 -0
- package/theme/common/aibutton.css +27 -0
- package/theme/common/aiheader.css +14 -4
- package/theme/common/aitrackchanges.css +8 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +0 -23
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +0 -23
- package/src/aireviewmode/model/aireviewmodels.d.ts +0 -26
- package/src/aireviewmode/model/aireviewmodels.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x4195dc=_0x5c7d;function _0x5efe(){var _0x3e36c6=['initialContent','373846DScbdy','ck-ai-chat-error_warning','1882979gOgVNv','4416wbIbBk','element','55qVJZkn','level','4718610fxVGub','warning','206868gEZauV','62vkPALE','markAsDone','ck-ai-chat-error','options','extendTemplate','render','3693252wCohZp','setContent','innerHTML','55412rfzixg','8YCpcKx','141PdhkBf','160uRcsZn'];_0x5efe=function(){return _0x3e36c6;};return _0x5efe();}(function(_0x526871,_0x4099b3){var _0x4a540e=_0x5c7d,_0xbdc76c=_0x526871();while(!![]){try{var _0x310780=parseInt(_0x4a540e(0x1dd))/0x1*(parseInt(_0x4a540e(0x1e4))/0x2)+parseInt(_0x4a540e(0x1ef))/0x3*(parseInt(_0x4a540e(0x1ed))/0x4)+parseInt(_0x4a540e(0x1df))/0x5*(-parseInt(_0x4a540e(0x1e3))/0x6)+parseInt(_0x4a540e(0x1dc))/0x7*(parseInt(_0x4a540e(0x1ee))/0x8)+parseInt(_0x4a540e(0x1e1))/0x9+-parseInt(_0x4a540e(0x1f0))/0xa*(parseInt(_0x4a540e(0x1da))/0xb)+-parseInt(_0x4a540e(0x1ea))/0xc;if(_0x310780===_0x4099b3)break;else _0xbdc76c['push'](_0xbdc76c['shift']());}catch(_0x3002f6){_0xbdc76c['push'](_0xbdc76c['shift']());}}}(_0x5efe,0x55905));function _0x5c7d(_0x1f78b7,_0x3acd3e){var _0x5efe5b=_0x5efe();return _0x5c7d=function(_0x5c7da4,_0xb64106){_0x5c7da4=_0x5c7da4-0x1da;var _0x207cc9=_0x5efe5b[_0x5c7da4];return _0x207cc9;},_0x5c7d(_0x1f78b7,_0x3acd3e);}import{AIChatFeedItemView as _0x10211d}from'./aichatfeeditemview.js';export class AIChatFeedErrorItemView extends _0x10211d{constructor(_0x40c4e1){var _0x2c5399=_0x5c7d;super(_0x40c4e1),this[_0x2c5399(0x1e8)]({'attributes':{'class':[_0x2c5399(0x1e6),_0x2c5399(0x1e2)===_0x40c4e1[_0x2c5399(0x1e0)]?_0x2c5399(0x1db):'']}});}[_0x4195dc(0x1e9)](){var _0x35a63e=_0x4195dc;super[_0x35a63e(0x1e9)](),this[_0x35a63e(0x1eb)](this[_0x35a63e(0x1e7)][_0x35a63e(0x1f1)]),this[_0x35a63e(0x1e5)]();}[_0x4195dc(0x1eb)](_0x1b3cf6){var _0x41e1b5=_0x4195dc;this[_0x41e1b5(0x1de)][_0x41e1b5(0x1ec)]=_0x1b3cf6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5c5d(){const _0x2418b3=['AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','extendTemplate','7652feEYoG','344jBYDFr','1121715VqfPmF','297TRhLht','content','83985WNcrbN','ck-ai-chat__feed__interaction-header__capabilities','436535aucwqW','span','ck-ai-chat__feed__interaction-header','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','push','capabilities','2242XwmSjc','add','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','57iRfUxg','1400OgcpHC','142146KHTCin','ck-ai-chat__feed__interaction-header__capabilities__text','div','1767414LwzZOI','setTemplate','ck-hidden','children'];_0x5c5d=function(){return _0x2418b3;};return _0x5c5d();}const _0x322451=_0xb179;(function(_0xa1a29d,_0x418282){const _0x3c58f6=_0xb179,_0x3de38b=_0xa1a29d();while(!![]){try{const _0x5ce661=parseInt(_0x3c58f6(0xf1))/0x1*(parseInt(_0x3c58f6(0xee))/0x2)+-parseInt(_0x3c58f6(0xe4))/0x3*(parseInt(_0x3c58f6(0xe1))/0x4)+parseInt(_0x3c58f6(0xe8))/0x5+parseInt(_0x3c58f6(0xf6))/0x6+-parseInt(_0x3c58f6(0xe3))/0x7+-parseInt(_0x3c58f6(0xe2))/0x8*(parseInt(_0x3c58f6(0xf3))/0x9)+parseInt(_0x3c58f6(0xf2))/0xa*(parseInt(_0x3c58f6(0xe6))/0xb);if(_0x5ce661===_0x418282)break;else _0x3de38b['push'](_0x3de38b['shift']());}catch(_0x265685){_0x3de38b['push'](_0x3de38b['shift']());}}}(_0x5c5d,0x76a0b));import{IconBulb as _0x4c355b,IconWeb as _0x375960}from'@ckeditor/ckeditor5-icons';import{IconView as _0x2a676e,View as _0x1df9f3}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x5d5b3f}from'./aichatfeeditemview.js';import{getTranslation as _0x18ae9f}from'../../../aicore/utils/common-translations.js';function _0xb179(_0x3fc0b1,_0x41f2e0){const _0x5c5d1a=_0x5c5d();return _0xb179=function(_0xb179c2,_0x342a56){_0xb179c2=_0xb179c2-0xe1;let _0x5e1721=_0x5c5d1a[_0xb179c2];return _0x5e1721;},_0xb179(_0x3fc0b1,_0x41f2e0);}export class AIChatFeedInteractionHeaderView extends _0x5d5b3f{[_0x322451(0xed)];constructor(_0x18460c,_0x3088b3){const _0x28d70e=_0x322451;super(_0x3088b3);const {isWebSearchEnabled:_0x138045,isReasoningEnabled:_0x504f4d}=_0x3088b3[_0x28d70e(0xed)],_0x2eb814=[];let _0x2d1769='';_0x138045&&_0x504f4d?(_0x2d1769=_0x18ae9f(_0x18460c,_0x28d70e(0xeb)),_0x2eb814[_0x28d70e(0xec)](aa(_0x375960)),_0x2eb814[_0x28d70e(0xec)](aa(_0x4c355b))):_0x138045?(_0x2d1769=_0x18ae9f(_0x18460c,_0x28d70e(0xf0)),_0x2eb814[_0x28d70e(0xec)](aa(_0x375960))):_0x504f4d&&(_0x2d1769=_0x18ae9f(_0x18460c,_0x28d70e(0xfa)),_0x2eb814[_0x28d70e(0xec)](aa(_0x4c355b))),this[_0x28d70e(0xfb)]({'attributes':{'class':[_0x28d70e(0xea),_0x2d1769?'':_0x28d70e(0xf8)]}});const _0x5464c8=new _0x1df9f3();_0x5464c8[_0x28d70e(0xf7)]({'tag':_0x28d70e(0xf5),'attributes':{'class':['ck',_0x28d70e(0xe7)]},'children':[..._0x2eb814,{'tag':_0x28d70e(0xe9),'attributes':{'class':[_0x28d70e(0xf4)]},'children':[_0x2d1769]}]}),this[_0x28d70e(0xf9)][_0x28d70e(0xef)](_0x5464c8),this[_0x28d70e(0xed)]=_0x3088b3[_0x28d70e(0xed)];}}function aa(_0x31df46){const _0xd0702b=_0x322451,_0x4eb2ac=new _0x2a676e();return _0x4eb2ac[_0xd0702b(0xe5)]=_0x31df46,_0x4eb2ac;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x450868=_0x167a;(function(_0x515c88,_0x381461){const _0x1cdf09=_0x167a,_0xee0a95=_0x515c88();while(!![]){try{const _0x2802e1=-parseInt(_0x1cdf09(0x10b))/0x1*(parseInt(_0x1cdf09(0xfb))/0x2)+parseInt(_0x1cdf09(0xf3))/0x3*(-parseInt(_0x1cdf09(0x117))/0x4)+parseInt(_0x1cdf09(0x101))/0x5*(-parseInt(_0x1cdf09(0xfa))/0x6)+parseInt(_0x1cdf09(0x10c))/0x7*(parseInt(_0x1cdf09(0x103))/0x8)+parseInt(_0x1cdf09(0xfd))/0x9+-parseInt(_0x1cdf09(0x109))/0xa+parseInt(_0x1cdf09(0xf8))/0xb*(parseInt(_0x1cdf09(0xfe))/0xc);if(_0x2802e1===_0x381461)break;else _0xee0a95['push'](_0xee0a95['shift']());}catch(_0x2e473d){_0xee0a95['push'](_0xee0a95['shift']());}}}(_0x3090,0xd71fa));function _0x3090(){const _0x23132c=['ck-ai-chat__feed__item','16ekpdTp','markAsDone','content','htmlStreamer','cleanUpAnimations','setTemplate','14828690KwQlqP','[data-id]','23IoXkEJ','1632841uPfVhS','div','streamIntoElement','set','element','options','isDone','removeAttribute','createCollection','animation:\x20ck-html-streamer-fade-in\x20.5s','forEach','2050788tJwhlQ','ck-ai-chat__feed__text-item','9tzGmrZ','bindTemplate','ck-hidden','children','data-id','7236119uMbGid','ck-ai-chat__feed__item_done','18zzJhVu','68452MUrPMP','isVisible','3157515QiPhjL','96rwUmhq','stream','querySelectorAll','2317815grAhks'];_0x3090=function(){return _0x23132c;};return _0x3090();}function _0x167a(_0x4d0fc8,_0xde52ba){const _0x309053=_0x3090();return _0x167a=function(_0x167af1,_0x32a264){_0x167af1=_0x167af1-0xf3;let _0x200de0=_0x309053[_0x167af1];return _0x200de0;},_0x167a(_0x4d0fc8,_0xde52ba);}import{View as _0x13a37a}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0xa8152e}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x13a37a{[_0x450868(0x111)];[_0x450868(0x105)]='';[_0x450868(0x106)];[_0x450868(0xf6)];constructor(_0x52c12b){const _0x2fbd36=_0x450868;super();const _0x1ccb33=this[_0x2fbd36(0xf4)];this[_0x2fbd36(0x10f)](_0x2fbd36(0x112),!0x1),this[_0x2fbd36(0x10f)](_0x2fbd36(0xfc),!0x0),this[_0x2fbd36(0x106)]=new _0xa8152e({'textNodeStyle':_0x2fbd36(0x115),'delay':0x14}),this[_0x2fbd36(0x111)]=_0x52c12b,this[_0x2fbd36(0xf6)]=this[_0x2fbd36(0x114)](),this[_0x2fbd36(0x108)]({'tag':_0x2fbd36(0x10d),'attributes':{'class':['ck',_0x2fbd36(0x102),_0x1ccb33['if'](_0x2fbd36(0x112),_0x2fbd36(0xf9)),_0x1ccb33['if'](_0x2fbd36(0xfc),_0x2fbd36(0xf5),_0x24fb2e=>!_0x24fb2e),_0x2fbd36(0x118)],'data-cke-ai-id':this[_0x2fbd36(0x111)]['id']},'children':this[_0x2fbd36(0xf6)]});}[_0x450868(0x104)](){const _0x52c0c1=_0x450868;this[_0x52c0c1(0x106)][_0x52c0c1(0x107)]({'targetElement':this[_0x52c0c1(0x110)]}),this[_0x52c0c1(0x110)][_0x52c0c1(0x100)](_0x52c0c1(0x10a))[_0x52c0c1(0x116)](_0x26ef48=>{const _0x2a6546=_0x52c0c1;_0x26ef48[_0x2a6546(0x113)](_0x2a6546(0xf7));}),this[_0x52c0c1(0x112)]=!0x0;}async[_0x450868(0x10e)](_0x462aee,_0x2b47b6,_0x4c0818){const _0x38c750=_0x450868;await this[_0x38c750(0x106)][_0x38c750(0xff)]({'document':_0x462aee,'targetElement':_0x2b47b6,'abortSignal':_0x4c0818});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xe3d51a=_0x4d38;(function(_0x4e242f,_0x316f8f){const _0x3708d3=_0x4d38,_0x406d74=_0x4e242f();while(!![]){try{const _0x25462a=-parseInt(_0x3708d3(0x1a5))/0x1*(parseInt(_0x3708d3(0x1aa))/0x2)+parseInt(_0x3708d3(0x19a))/0x3*(parseInt(_0x3708d3(0x190))/0x4)+parseInt(_0x3708d3(0x191))/0x5+-parseInt(_0x3708d3(0x1a7))/0x6+-parseInt(_0x3708d3(0x18f))/0x7+parseInt(_0x3708d3(0x198))/0x8+parseInt(_0x3708d3(0x1ad))/0x9;if(_0x25462a===_0x316f8f)break;else _0x406d74['push'](_0x406d74['shift']());}catch(_0x1dced9){_0x406d74['push'](_0x406d74['shift']());}}}(_0x4a9a,0xef2ac));import{AIChatFeedItemView as _0x3575a6}from'./aichatfeeditemview.js';import{parse as _0x57e5b8,render as _0x4c7a83}from'../../../aicore/utils/htmlparser.js';function _0x4d38(_0x567e11,_0xd73e5b){const _0x4a9a49=_0x4a9a();return _0x4d38=function(_0x4d3894,_0xb66a2d){_0x4d3894=_0x4d3894-0x18f;let _0x13b07f=_0x4a9a49[_0x4d3894];return _0x13b07f;},_0x4d38(_0x567e11,_0xd73e5b);}import{View as _0x4079af}from'ckeditor5/src/ui.js';function _0x4a9a(){const _0x40b09d=['updateContent','static','streaming','ck-reset_all-excluded','addMany','3155488ZuezmY','locale','120756mLAnjO','setTemplate','extendTemplate','ck-ai-chat__feed__ai-reply','render','options','replyContainer','element','innerHTML','isVisible','ck-ai-chat__feed__ai-reply-container','17837KqOhAR','markAsDone','9511752CHyvhO','div','initialContent','166oavSKI','map','streamIntoElement','25137333BvFpmF','add','updateSources','481831JsDyQd','12zDHsyQ','4029975BJEDzg','children'];_0x4a9a=function(){return _0x40b09d;};return _0x4a9a();}import{AIWebSourcesView as _0x33485e,AIWebSourceView as _0x5a1717}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x3575a6{[_0xe3d51a(0x1a0)];constructor(_0x425488,_0x1a073e){const _0x50cc4c=_0xe3d51a;super(_0x1a073e),this[_0x50cc4c(0x199)]=_0x425488,this[_0x50cc4c(0x19c)]({'attributes':{'class':[_0x50cc4c(0x19d)]}}),this[_0x50cc4c(0x1a0)]=new _0x4079af(),this[_0x50cc4c(0x1a0)][_0x50cc4c(0x19b)]({'tag':_0x50cc4c(0x1a8),'attributes':{'class':['ck',_0x50cc4c(0x196),_0x50cc4c(0x1a4)]}}),this[_0x50cc4c(0x192)][_0x50cc4c(0x1ae)](this[_0x50cc4c(0x1a0)]);}async[_0xe3d51a(0x19e)](){const _0x59804b=_0xe3d51a;super[_0x59804b(0x19e)](),this[_0x59804b(0x19f)][_0x59804b(0x1a9)]&&(await this[_0x59804b(0x193)]({'parsedContent':_0x57e5b8(this[_0x59804b(0x19f)][_0x59804b(0x1a9)]),'renderingStrategy':_0x59804b(0x194)}),this[_0x59804b(0x1a6)]());}async[_0xe3d51a(0x193)]({parsedContent:_0x507d8c,renderingStrategy:_0x27fdc2,abortSignal:_0x21edce}){const _0x57ae8c=_0xe3d51a;_0x57ae8c(0x195)===_0x27fdc2?await this[_0x57ae8c(0x1ac)](_0x507d8c,this[_0x57ae8c(0x1a0)][_0x57ae8c(0x1a1)],_0x21edce):this[_0x57ae8c(0x1a0)][_0x57ae8c(0x1a1)][_0x57ae8c(0x1a2)]=_0x4c7a83(_0x507d8c);}[_0xe3d51a(0x1af)](_0x31179a){const _0x4ecf4e=_0xe3d51a,_0x4c9ac6=new _0x33485e(this[_0x4ecf4e(0x199)]);_0x4c9ac6[_0x4ecf4e(0x192)][_0x4ecf4e(0x197)](_0x31179a[_0x4ecf4e(0x1ab)](_0x12bc74=>new _0x5a1717(this[_0x4ecf4e(0x199)],_0x12bc74))),_0x4c9ac6[_0x4ecf4e(0x1a3)]=!0x0,this[_0x4ecf4e(0x192)][_0x4ecf4e(0x1ae)](_0x4c9ac6);}}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const AI_REPLY_ACTIONS: readonly ["applySuggestion", "insertSuggestion", "showChangeInText"];
|
|
11
11
|
/**
|
|
12
12
|
* A view for the actions of an AI suggestion item in the AI chat feed.
|
|
13
13
|
*
|
|
@@ -29,7 +29,7 @@ export declare class AIChatFeedSuggestionItemActionsView extends View {
|
|
|
29
29
|
/**
|
|
30
30
|
* @inheritDoc
|
|
31
31
|
*/
|
|
32
|
-
constructor(locale: Locale,
|
|
32
|
+
constructor(locale: Locale, availableActions?: Array<AISuggestionActionName>);
|
|
33
33
|
/**
|
|
34
34
|
* Updates the labels of the actions based on the number of parts in the suggestion.
|
|
35
35
|
*/
|
|
@@ -77,4 +77,4 @@ export type AIMouseLeaveSuggestionEvent = {
|
|
|
77
77
|
partIndex: number;
|
|
78
78
|
}];
|
|
79
79
|
};
|
|
80
|
-
export type AISuggestionActionName = typeof
|
|
80
|
+
export type AISuggestionActionName = typeof AI_REPLY_ACTIONS[number];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x430bb0=_0xc3de;function _0xc3de(_0x53665d,_0x588f28){const _0x139103=_0x1391();return _0xc3de=function(_0xc3de4b,_0x27093d){_0xc3de4b=_0xc3de4b-0x1b5;let _0x11f251=_0x139103[_0xc3de4b];return _0x11f251;},_0xc3de(_0x53665d,_0x588f28);}(function(_0xe6fea,_0x592f18){const _0xd4800f=_0xc3de,_0x41a497=_0xe6fea();while(!![]){try{const _0x1166b5=parseInt(_0xd4800f(0x204))/0x1*(-parseInt(_0xd4800f(0x1d2))/0x2)+parseInt(_0xd4800f(0x202))/0x3+parseInt(_0xd4800f(0x1ec))/0x4*(-parseInt(_0xd4800f(0x1e2))/0x5)+-parseInt(_0xd4800f(0x20f))/0x6*(parseInt(_0xd4800f(0x1df))/0x7)+-parseInt(_0xd4800f(0x1cf))/0x8+-parseInt(_0xd4800f(0x1ce))/0x9+parseInt(_0xd4800f(0x1be))/0xa;if(_0x1166b5===_0x592f18)break;else _0x41a497['push'](_0x41a497['shift']());}catch(_0x24dbdd){_0x41a497['push'](_0x41a497['shift']());}}}(_0x1391,0xb9422));import{KeystrokeHandler as _0x15137e}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x2ba922,BodyCollection as _0x38bfc1,ButtonView as _0x275776,clickOutsideHandler as _0x2e79f8,ListItemButtonView as _0x115381,ListItemView as _0x4e8cf9,ListView as _0x29ba27,SplitButtonView as _0x3ba56b,UIModel as _0x6ce7ae,View as _0x1f6f17}from'ckeditor5/src/ui.js';function _0x1391(){const _0x592dac=['button','actionName','class','delegate','detachFromDom','createCollection','27713UCfZgq','balloonPanelView','ck-ai-button-primary','150930NhdsWo','length','hide','keystrokeHandler','div','items','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','width','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','element','36oSXAxL','_updateDropdownActions','pin','_dropdownOriginalConfig','bodyCollection','execute','map','tooltip','content','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','ck-ai-chat__feed__ai-suggestion__actions__balloon','set','isVisible','isEnabled','actionsButton','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','isTrackChangesOn','ltr','locale','add','_setUpList','bottom','1841898LXokyX','balloonPanelClass','97gpqxgX','has','ck-ai-chat__feed__ai-suggestion__actions--no-animation','change:isTrackChangesOn','arrowless','insertSuggestionModel','label','listItemModels','uiLanguageDirection','arrowView','bindTemplate','1278cEhmMn','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','listenTo','source','_setUpKeystrokes','_firstRender','children','attachToDom','remove','_createActionsDropdown','_partsCount','listView','ck-ai-chat__feed__ai-suggestion__actions\x20','slice','focus','36239780NUFkAB','_dropdownCurrentConfig','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','ck-hidden','fire','esc','filter','applySuggestionModel','open','destroy','showChangeInText','_createActionsDropdownOrButton','ck-ai-chat__feed__ai-suggestion__actions','showChangeInTextModel','applySuggestion','unbind','8944515jgrXwy','9621096nPtptn','insertSuggestion','setTemplate','3458jKGagQ','left','updateLabels','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','bind','keys','_createActionsButton'];_0x1391=function(){return _0x592dac;};return _0x1391();}import{IconCheck as _0x3bbc49,IconAddComment as _0x5e7c10,IconDocumentWithLoupe as _0x5203c0}from'ckeditor5/src/icons.js';import{getTranslation as _0xf11d16}from'../../../aicore/utils/common-translations.js';export const ACTIONS=[_0x430bb0(0x1cc),_0x430bb0(0x1d0),_0x430bb0(0x1c8)];export class AIChatFeedSuggestionItemActionsView extends _0x1f6f17{[_0x430bb0(0x1fa)];[_0x430bb0(0x1b5)];[_0x430bb0(0x1c5)];[_0x430bb0(0x1cb)];[_0x430bb0(0x209)];[_0x430bb0(0x1b9)]=0x1;[_0x430bb0(0x1ef)];[_0x430bb0(0x1bf)];[_0x430bb0(0x214)]=!0x0;constructor(_0x220698,_0x453a57){const _0x5dd9e2=_0x430bb0;super(_0x220698),this[_0x5dd9e2(0x1ef)]=_0x453a57||[...ACTIONS],this[_0x5dd9e2(0x1bf)]=[...this[_0x5dd9e2(0x1ef)]];const _0x380eab=this[_0x5dd9e2(0x20e)];this[_0x5dd9e2(0x1f7)](_0x5dd9e2(0x1f9),!0x0),this[_0x5dd9e2(0x1f7)](_0x5dd9e2(0x1f8),!0x0),this[_0x5dd9e2(0x1c5)]=new _0x6ce7ae({'label':Pn(_0x5dd9e2(0x1cc),_0x220698,this[_0x5dd9e2(0x1b9)]),'icon':_0x3bbc49,'withText':!0x0,'type':_0x5dd9e2(0x1d9),'actionName':_0x5dd9e2(0x1cc)}),this[_0x5dd9e2(0x1cb)]=new _0x6ce7ae({'label':Pn(_0x5dd9e2(0x1c8),_0x220698,this[_0x5dd9e2(0x1b9)]),'icon':_0x5203c0,'withText':!0x0,'type':_0x5dd9e2(0x1d9),'actionName':_0x5dd9e2(0x1c8)}),this[_0x5dd9e2(0x209)]=new _0x6ce7ae({'label':Pn(_0x5dd9e2(0x1d0),_0x220698,this[_0x5dd9e2(0x1b9)]),'icon':_0x5e7c10,'withText':!0x0,'type':_0x5dd9e2(0x1d9),'actionName':_0x5dd9e2(0x1d0)}),this[_0x5dd9e2(0x1fa)]=this[_0x5dd9e2(0x1c9)](_0x220698),this[_0x5dd9e2(0x1b5)]=this[_0x5dd9e2(0x1de)]([this[_0x5dd9e2(0x1fa)]]),this[_0x5dd9e2(0x1d1)]({'tag':_0x5dd9e2(0x1e6),'attributes':{'class':['ck',_0x5dd9e2(0x1ca),_0x380eab['if'](_0x5dd9e2(0x1f8),_0x5dd9e2(0x1c1),_0x34d0b5=>!_0x34d0b5)]},'children':this[_0x5dd9e2(0x1b5)]}),this[_0x5dd9e2(0x211)](this,_0x5dd9e2(0x207),()=>{const _0x5c83f9=_0x5dd9e2;this[_0x5c83f9(0x1bf)]=this[_0x5c83f9(0x1fc)]?this[_0x5c83f9(0x1ef)][_0x5c83f9(0x1c4)](_0x218f6f=>_0x5c83f9(0x1cc)!==_0x218f6f):[...this[_0x5c83f9(0x1ef)]],this[_0x5c83f9(0x1ed)](_0x220698);});}[_0x430bb0(0x1ed)](_0x150d85){const _0x235728=_0x430bb0;this[_0x235728(0x1b5)][_0x235728(0x205)](this[_0x235728(0x1fa)])&&(this[_0x235728(0x1b5)][_0x235728(0x1b7)](this[_0x235728(0x1fa)]),this[_0x235728(0x1fa)][_0x235728(0x1c7)]()),0x0!=this[_0x235728(0x1bf)][_0x235728(0x1e3)]&&(this[_0x235728(0x1fa)]=this[_0x235728(0x1c9)](_0x150d85),this[_0x235728(0x1b5)][_0x235728(0x1ff)](this[_0x235728(0x1fa)]));}[_0x430bb0(0x1c9)](_0x2b0ef2){const _0x26d89f=_0x430bb0,_0x38a5f1=0x1===this[_0x26d89f(0x1bf)][_0x26d89f(0x1e3)]?this[_0x26d89f(0x1d8)](_0x2b0ef2):this[_0x26d89f(0x1b8)](_0x2b0ef2),_0x4232b4=this[_0x26d89f(0x214)]?'':_0x26d89f(0x206);_0x38a5f1[_0x26d89f(0x1f7)]({'label':Pn(this[_0x26d89f(0x1bf)][0x0],_0x2b0ef2,this[_0x26d89f(0x1b9)]),'tooltip':Hn(this[_0x26d89f(0x1bf)][0x0],_0x2b0ef2,this[_0x26d89f(0x1b9)]),'withText':!0x0,'class':_0x26d89f(0x1bb)+_0x4232b4});for(const _0x23d8c0 of this[_0x26d89f(0x1bf)])_0x38a5f1['on'](_0x23d8c0,()=>{const _0x31d314=_0x26d89f;this[_0x31d314(0x1c2)](_0x23d8c0);});return this[_0x26d89f(0x214)]=!0x1,_0x38a5f1;}[_0x430bb0(0x1d8)](_0x18cfb3){const _0x409103=_0x430bb0,_0x4f547c=new _0x275776(_0x18cfb3);return _0x4f547c[_0x409103(0x1f7)]({'class':_0x409103(0x1e1),'withText':!0x0}),_0x4f547c['on'](_0x409103(0x1f1),()=>{const _0x1c107b=_0x409103;_0x4f547c[_0x1c107b(0x1c2)](this[_0x1c107b(0x1bf)][0x0]);}),_0x4f547c;}[_0x430bb0(0x1b8)](_0x53e8e1){const _0x34d45d=_0x430bb0,_0x573314=new Nn(_0x53e8e1,{'listItemModels':this[_0x34d45d(0x1bf)][_0x34d45d(0x1f2)](_0x29520c=>{const _0x18c274=_0x34d45d;switch(_0x29520c){case _0x18c274(0x1cc):return this[_0x18c274(0x1c5)];case _0x18c274(0x1c8):return this[_0x18c274(0x1cb)];case _0x18c274(0x1d0):return this[_0x18c274(0x209)];}})});return _0x573314[_0x34d45d(0x1f7)]({'label':Pn(this[_0x34d45d(0x1bf)][0x0],_0x53e8e1,this[_0x34d45d(0x1b9)]),'tooltip':Hn(this[_0x34d45d(0x1bf)][0x0],_0x53e8e1,this[_0x34d45d(0x1b9)]),'withText':!0x0,'class':_0x34d45d(0x1ca),'balloonPanelClass':_0x34d45d(0x1f6)}),_0x573314[_0x34d45d(0x1d6)](_0x34d45d(0x1f9))['to'](this),_0x573314;}[_0x430bb0(0x1d4)](_0x1ec419){const _0x501ef0=_0x430bb0,_0x3d0e2f=this[_0x501ef0(0x1fe)];this[_0x501ef0(0x1b9)]=_0x1ec419||this[_0x501ef0(0x1b9)],this[_0x501ef0(0x1fa)][_0x501ef0(0x1f7)]({'label':Pn(this[_0x501ef0(0x1bf)][0x0],_0x3d0e2f,this[_0x501ef0(0x1b9)]),'tooltip':Hn(this[_0x501ef0(0x1bf)][0x0],_0x3d0e2f,this[_0x501ef0(0x1b9)])}),this[_0x501ef0(0x1c5)][_0x501ef0(0x20a)]=Pn(_0x501ef0(0x1cc),_0x3d0e2f,this[_0x501ef0(0x1b9)]),this[_0x501ef0(0x1cb)][_0x501ef0(0x20a)]=Pn(_0x501ef0(0x1c8),_0x3d0e2f,this[_0x501ef0(0x1b9)]),this[_0x501ef0(0x209)][_0x501ef0(0x20a)]=Pn(_0x501ef0(0x1d0),_0x3d0e2f,this[_0x501ef0(0x1b9)]);}}class Nn extends _0x3ba56b{[_0x430bb0(0x1f0)];[_0x430bb0(0x1e0)];[_0x430bb0(0x1ba)];[_0x430bb0(0x1e5)];constructor(_0x2b319c,_0x727150){const _0x410bfb=_0x430bb0;super(_0x2b319c),this[_0x410bfb(0x1e0)]=new _0x2ba922(this[_0x410bfb(0x1fe)]),this[_0x410bfb(0x1f0)]=new _0x38bfc1(this[_0x410bfb(0x1fe)]),this[_0x410bfb(0x1f0)][_0x410bfb(0x1b6)](),this[_0x410bfb(0x1f7)](_0x410bfb(0x203),''),this[_0x410bfb(0x1e0)][_0x410bfb(0x1d6)](_0x410bfb(0x1db))['to'](this,_0x410bfb(0x203)),this[_0x410bfb(0x1ba)]=this[_0x410bfb(0x200)](_0x727150[_0x410bfb(0x20b)][_0x410bfb(0x1bc)](0x1)),this[_0x410bfb(0x1f0)][_0x410bfb(0x1ff)](this[_0x410bfb(0x1e0)]),this[_0x410bfb(0x1e0)][_0x410bfb(0x1f4)][_0x410bfb(0x1ff)](this[_0x410bfb(0x1ba)]),this[_0x410bfb(0x20d)][_0x410bfb(0x1cd)](_0x410bfb(0x1f3)),this[_0x410bfb(0x20d)][_0x410bfb(0x1f7)](_0x410bfb(0x1f3),_0xf11d16(this[_0x410bfb(0x1fe)],_0x410bfb(0x1e8))),this[_0x410bfb(0x213)](),this['on'](_0x410bfb(0x1f1),()=>{const _0x463bd1=_0x410bfb,_0xa6ba6c=_0x727150[_0x463bd1(0x20b)][0x0][_0x463bd1(0x1da)];this[_0x463bd1(0x1c2)](_0xa6ba6c),this[_0x463bd1(0x1e0)][_0x463bd1(0x1e4)](),this[_0x463bd1(0x20d)][_0x463bd1(0x1bd)]();}),this['on'](_0x410bfb(0x1c6),()=>{const _0x398331=_0x410bfb;this[_0x398331(0x1e0)][_0x398331(0x1f8)]?(this[_0x398331(0x1e0)][_0x398331(0x1e4)](),this[_0x398331(0x20d)][_0x398331(0x1bd)]()):(this[_0x398331(0x1e0)][_0x398331(0x1ee)]({'target':this[_0x398331(0x1eb)],'positions':[_0x398331(0x1fd)===this[_0x398331(0x1fe)][_0x398331(0x20c)]?Gn:yn]}),this[_0x398331(0x1ba)][_0x398331(0x1bd)]());}),_0x2e79f8({'emitter':this[_0x410bfb(0x1e0)],'callback':()=>{const _0x5e0fb1=_0x410bfb;this[_0x5e0fb1(0x1e0)][_0x5e0fb1(0x1e4)]();},'activator':()=>this[_0x410bfb(0x1e0)][_0x410bfb(0x1f8)],'contextElements':()=>[this[_0x410bfb(0x1eb)],this[_0x410bfb(0x1e0)][_0x410bfb(0x1eb)]]});}[_0x430bb0(0x200)](_0x3ab409){const _0x5d0a53=_0x430bb0,_0x399674=this[_0x5d0a53(0x1fe)],_0x24b1dd=new _0x29ba27(_0x399674);for(const _0x5a21e4 of _0x3ab409){const _0x2a385a=new _0x4e8cf9(_0x399674),_0x30fa8d=new _0x115381(_0x399674);_0x30fa8d[_0x5d0a53(0x1d6)](...Object[_0x5d0a53(0x1d7)](_0x5a21e4))['to'](_0x5a21e4),_0x30fa8d[_0x5d0a53(0x1dc)](_0x5d0a53(0x1f1))['to'](_0x24b1dd),_0x2a385a[_0x5d0a53(0x1b5)][_0x5d0a53(0x1ff)](_0x30fa8d),_0x24b1dd[_0x5d0a53(0x1e7)][_0x5d0a53(0x1ff)](_0x2a385a);}return _0x24b1dd[_0x5d0a53(0x1e7)][_0x5d0a53(0x1dc)](_0x5d0a53(0x1f1))['to'](this),_0x24b1dd['on'](_0x5d0a53(0x1f1),_0x31ad7b=>{const _0x3d2c79=_0x5d0a53,_0x3dc832=_0x31ad7b[_0x3d2c79(0x212)];this[_0x3d2c79(0x1c2)](_0x3dc832[_0x3d2c79(0x1da)]),this[_0x3d2c79(0x1e0)][_0x3d2c79(0x1e4)](),this[_0x3d2c79(0x20d)][_0x3d2c79(0x1bd)]();}),_0x24b1dd;}[_0x430bb0(0x213)](){const _0xa61874=_0x430bb0;this[_0xa61874(0x1e5)]=new _0x15137e(),this[_0xa61874(0x1e5)][_0xa61874(0x211)](this[_0xa61874(0x1e0)][_0xa61874(0x1eb)]),this[_0xa61874(0x1e5)][_0xa61874(0x1f7)](_0xa61874(0x1c3),(_0x2a8c3c,_0x134f1b)=>{const _0xdbc14a=_0xa61874;this[_0xdbc14a(0x1e0)][_0xdbc14a(0x1e4)](),this[_0xdbc14a(0x20d)][_0xdbc14a(0x1bd)](),_0x134f1b();});}[_0x430bb0(0x1c7)](){const _0x2b5efc=_0x430bb0;super[_0x2b5efc(0x1c7)](),this[_0x2b5efc(0x1e5)][_0x2b5efc(0x1c7)](),this[_0x2b5efc(0x1e0)][_0x2b5efc(0x1c7)](),this[_0x2b5efc(0x1f0)][_0x2b5efc(0x1dd)]();}}function Gn(_0x1891e7){const _0x586070=_0x430bb0;return{'top':_0x1891e7[_0x586070(0x201)],'left':_0x1891e7[_0x586070(0x1d3)],'name':_0x586070(0x208),'config':{'withArrow':!0x1}};}function yn(_0x5dcfd9,_0x2fed5c){const _0x452028=_0x430bb0;return{'top':_0x5dcfd9[_0x452028(0x201)],'left':_0x5dcfd9[_0x452028(0x1d3)]-(_0x2fed5c[_0x452028(0x1e9)]-_0x5dcfd9[_0x452028(0x1e9)]),'name':_0x452028(0x208),'config':{'withArrow':!0x1}};}function Pn(_0x6e0659,_0x3e777f,_0x22e125){const _0x1d291f=_0x430bb0;switch(_0x6e0659){case _0x1d291f(0x1cc):return _0xf11d16(_0x3e777f,_0x1d291f(0x1ea),_0x22e125);case _0x1d291f(0x1c8):return _0xf11d16(_0x3e777f,_0x1d291f(0x210),_0x22e125);case _0x1d291f(0x1d0):return _0xf11d16(_0x3e777f,_0x1d291f(0x1d5),_0x22e125);}}function Hn(_0x49bdfc,_0x2912a2,_0x762eea){const _0x44a05a=_0x430bb0;switch(_0x49bdfc){case _0x44a05a(0x1cc):return _0xf11d16(_0x2912a2,_0x44a05a(0x1c0),_0x762eea);case _0x44a05a(0x1c8):return _0xf11d16(_0x2912a2,_0x44a05a(0x1f5),_0x762eea);case _0x44a05a(0x1d0):return _0xf11d16(_0x2912a2,_0x44a05a(0x1fb),_0x762eea);}}
|
|
23
|
+
const _0x3cc200=_0x4838;(function(_0x512625,_0x1112a0){const _0x3680ad=_0x4838,_0x98367a=_0x512625();while(!![]){try{const _0x1bffa4=-parseInt(_0x3680ad(0x14f))/0x1+-parseInt(_0x3680ad(0x157))/0x2*(-parseInt(_0x3680ad(0x153))/0x3)+parseInt(_0x3680ad(0x133))/0x4*(parseInt(_0x3680ad(0x12c))/0x5)+-parseInt(_0x3680ad(0x15d))/0x6+parseInt(_0x3680ad(0x142))/0x7*(-parseInt(_0x3680ad(0x138))/0x8)+parseInt(_0x3680ad(0x165))/0x9*(-parseInt(_0x3680ad(0x172))/0xa)+-parseInt(_0x3680ad(0x167))/0xb*(-parseInt(_0x3680ad(0x16e))/0xc);if(_0x1bffa4===_0x1112a0)break;else _0x98367a['push'](_0x98367a['shift']());}catch(_0x4dfcf6){_0x98367a['push'](_0x98367a['shift']());}}}(_0x1762,0xcb7ac));import{KeystrokeHandler as _0x240517}from'ckeditor5/src/utils.js';function _0x4838(_0x519f72,_0x1318b9){const _0x176263=_0x1762();return _0x4838=function(_0x483854,_0x28f684){_0x483854=_0x483854-0x128;let _0xa14216=_0x176263[_0x483854];return _0xa14216;},_0x4838(_0x519f72,_0x1318b9);}import{BalloonPanelView as _0x5eabc4,BodyCollection as _0x4d0cc6,ButtonView as _0x50b4c9,clickOutsideHandler as _0x27952a,ListItemButtonView as _0x2fef2d,ListItemView as _0x5119e9,ListView as _0xabd391,SplitButtonView as _0x5b4d06,UIModel as _0x5a0cbd,View as _0x395bda}from'ckeditor5/src/ui.js';import{IconCheck as _0x43b88c,IconAddComment as _0x93b855,IconDocumentWithLoupe as _0x469ae3}from'ckeditor5/src/icons.js';import{getTranslation as _0x59bcd0}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x3cc200(0x144),_0x3cc200(0x137),_0x3cc200(0x169)];function _0x1762(){const _0x5b0f0f=['_partsCount','4JrzWFD','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','items','ltr','insertSuggestion','48hjIuwb','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','children','keystrokeHandler','has','button','actionName','updateLabels','actionsButton','bindTemplate','1007762dWWGia','balloonPanelClass','applySuggestion','createCollection','execute','ck-ai-chat__feed__ai-suggestion__actions--no-animation','change:isTrackChangesOn','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','ck-hidden','delegate','isEnabled','detachFromDom','listView','1125436jIdMqt','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','uiLanguageDirection','pin','63285QHGHiO','_firstRender','_setUpList','ck-ai-chat__feed__ai-suggestion__actions','52NuzQOt','listenTo','arrowless','source','showChangeInTextModel','listItemModels','2801928vmhTcS','_dropdownOriginalConfig','esc','class','filter','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','fire','unbind','3177VuWTdi','ck-ai-chat__feed__ai-suggestion__actions__balloon','11JWCCSe','bodyCollection','showChangeInText','arrowView','setTemplate','_createActionsButton','bottom','49488240MXJJaA','isTrackChangesOn','locale','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','44320YfuUsl','bind','label','applySuggestionModel','_updateDropdownActions','set','div','isVisible','focus','_dropdownCurrentConfig','hide','destroy','width','ck-ai-chat__feed__ai-suggestion__actions\x20','map','_createActionsDropdown','_createActionsDropdownOrButton','attachToDom','ck-ai-button-primary','element','balloonPanelView','insertSuggestionModel','content','open','keys','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','slice','remove','908390lmRyAq','_setUpKeystrokes','add','length','left','tooltip'];_0x1762=function(){return _0x5b0f0f;};return _0x1762();}export class AIChatFeedSuggestionItemActionsView extends _0x395bda{[_0x3cc200(0x140)];[_0x3cc200(0x13a)];[_0x3cc200(0x175)];[_0x3cc200(0x15b)];[_0x3cc200(0x187)];[_0x3cc200(0x132)]=0x1;[_0x3cc200(0x15e)];[_0x3cc200(0x17b)];[_0x3cc200(0x154)]=!0x0;constructor(_0x286a9f,_0x39fb5a){const _0x40dd51=_0x3cc200;super(_0x286a9f),this[_0x40dd51(0x15e)]=_0x39fb5a||[...AI_REPLY_ACTIONS],this[_0x40dd51(0x17b)]=[...this[_0x40dd51(0x15e)]];const _0x4f273e=this[_0x40dd51(0x141)];this[_0x40dd51(0x177)](_0x40dd51(0x14c),!0x0),this[_0x40dd51(0x177)](_0x40dd51(0x179),!0x0),this[_0x40dd51(0x177)](_0x40dd51(0x16f),!0x1),this[_0x40dd51(0x175)]=new _0x5a0cbd({'label':Hn(_0x40dd51(0x144),_0x286a9f,this[_0x40dd51(0x132)]),'icon':_0x43b88c,'withText':!0x0,'type':_0x40dd51(0x13d),'actionName':_0x40dd51(0x144)}),this[_0x40dd51(0x15b)]=new _0x5a0cbd({'label':Hn(_0x40dd51(0x169),_0x286a9f,this[_0x40dd51(0x132)]),'icon':_0x469ae3,'withText':!0x0,'type':_0x40dd51(0x13d),'actionName':_0x40dd51(0x169)}),this[_0x40dd51(0x187)]=new _0x5a0cbd({'label':Hn(_0x40dd51(0x137),_0x286a9f,this[_0x40dd51(0x132)]),'icon':_0x93b855,'withText':!0x0,'type':_0x40dd51(0x13d),'actionName':_0x40dd51(0x137)}),this[_0x40dd51(0x140)]=this[_0x40dd51(0x182)](_0x286a9f),this[_0x40dd51(0x13a)]=this[_0x40dd51(0x145)](),this[_0x40dd51(0x140)]&&this[_0x40dd51(0x13a)][_0x40dd51(0x12e)](this[_0x40dd51(0x140)]),this[_0x40dd51(0x16b)]({'tag':_0x40dd51(0x178),'attributes':{'class':['ck',_0x40dd51(0x156),_0x4f273e['if'](_0x40dd51(0x179),_0x40dd51(0x14a),_0x266dc9=>!_0x266dc9)]},'children':this[_0x40dd51(0x13a)]}),this['on'](_0x40dd51(0x148),()=>{const _0x19e855=_0x40dd51;this[_0x19e855(0x17b)]=this[_0x19e855(0x16f)]?this[_0x19e855(0x15e)][_0x19e855(0x161)](_0x14193d=>_0x19e855(0x144)!==_0x14193d):[...this[_0x19e855(0x15e)]],this[_0x19e855(0x176)](_0x286a9f);});}[_0x3cc200(0x176)](_0x3ce69d){const _0xfbd52b=_0x3cc200;this[_0xfbd52b(0x140)]&&this[_0xfbd52b(0x13a)][_0xfbd52b(0x13c)](this[_0xfbd52b(0x140)])&&(this[_0xfbd52b(0x13a)][_0xfbd52b(0x12b)](this[_0xfbd52b(0x140)]),this[_0xfbd52b(0x140)][_0xfbd52b(0x17d)]()),this[_0xfbd52b(0x140)]=this[_0xfbd52b(0x182)](_0x3ce69d),this[_0xfbd52b(0x140)]&&this[_0xfbd52b(0x13a)][_0xfbd52b(0x12e)](this[_0xfbd52b(0x140)]);}[_0x3cc200(0x182)](_0x3d6486){const _0x3eded8=_0x3cc200;if(0x0==this[_0x3eded8(0x17b)][_0x3eded8(0x12f)])return null;const _0x19d801=0x1===this[_0x3eded8(0x17b)][_0x3eded8(0x12f)]?this[_0x3eded8(0x16c)](_0x3d6486):this[_0x3eded8(0x181)](_0x3d6486),_0xbfa474=this[_0x3eded8(0x154)]?'':_0x3eded8(0x147);_0x19d801[_0x3eded8(0x177)]({'label':Hn(this[_0x3eded8(0x17b)][0x0],_0x3d6486,this[_0x3eded8(0x132)]),'tooltip':Ln(this[_0x3eded8(0x17b)][0x0],_0x3d6486,this[_0x3eded8(0x132)]),'withText':!0x0,'class':_0x3eded8(0x17f)+_0xbfa474});for(const _0x4c0e5f of this[_0x3eded8(0x17b)])_0x19d801['on'](_0x4c0e5f,()=>{const _0x414484=_0x3eded8;this[_0x414484(0x163)](_0x4c0e5f);});return this[_0x3eded8(0x154)]=!0x1,_0x19d801;}[_0x3cc200(0x16c)](_0x4f94ef){const _0xe2e08=_0x3cc200,_0x259bae=new _0x50b4c9(_0x4f94ef);return _0x259bae[_0xe2e08(0x177)]({'class':_0xe2e08(0x184),'withText':!0x0}),_0x259bae['on'](_0xe2e08(0x146),()=>{const _0x3f7dfb=_0xe2e08;_0x259bae[_0x3f7dfb(0x163)](this[_0x3f7dfb(0x17b)][0x0]);}),_0x259bae;}[_0x3cc200(0x181)](_0x12a62a){const _0x33cada=_0x3cc200,_0x3162d6=new Gn(_0x12a62a,{'listItemModels':this[_0x33cada(0x17b)][_0x33cada(0x180)](_0x57ce8a=>{const _0x54dc35=_0x33cada;switch(_0x57ce8a){case _0x54dc35(0x144):return this[_0x54dc35(0x175)];case _0x54dc35(0x169):return this[_0x54dc35(0x15b)];case _0x54dc35(0x137):return this[_0x54dc35(0x187)];}})});return _0x3162d6[_0x33cada(0x177)]({'label':Hn(this[_0x33cada(0x17b)][0x0],_0x12a62a,this[_0x33cada(0x132)]),'tooltip':Ln(this[_0x33cada(0x17b)][0x0],_0x12a62a,this[_0x33cada(0x132)]),'withText':!0x0,'class':_0x33cada(0x156),'balloonPanelClass':_0x33cada(0x166)}),_0x3162d6[_0x33cada(0x173)](_0x33cada(0x14c))['to'](this),_0x3162d6;}[_0x3cc200(0x13f)](_0x401763){const _0x1fdbef=_0x3cc200,_0x27028a=this[_0x1fdbef(0x170)];this[_0x1fdbef(0x132)]=_0x401763||this[_0x1fdbef(0x132)],this[_0x1fdbef(0x140)][_0x1fdbef(0x177)]({'label':Hn(this[_0x1fdbef(0x17b)][0x0],_0x27028a,this[_0x1fdbef(0x132)]),'tooltip':Ln(this[_0x1fdbef(0x17b)][0x0],_0x27028a,this[_0x1fdbef(0x132)])}),this[_0x1fdbef(0x175)][_0x1fdbef(0x174)]=Hn(_0x1fdbef(0x144),_0x27028a,this[_0x1fdbef(0x132)]),this[_0x1fdbef(0x15b)][_0x1fdbef(0x174)]=Hn(_0x1fdbef(0x169),_0x27028a,this[_0x1fdbef(0x132)]),this[_0x1fdbef(0x187)][_0x1fdbef(0x174)]=Hn(_0x1fdbef(0x137),_0x27028a,this[_0x1fdbef(0x132)]);}}class Gn extends _0x5b4d06{[_0x3cc200(0x168)];[_0x3cc200(0x186)];[_0x3cc200(0x14e)];[_0x3cc200(0x13b)];constructor(_0x46a46c,_0x551c81){const _0x271712=_0x3cc200;super(_0x46a46c),this[_0x271712(0x186)]=new _0x5eabc4(this[_0x271712(0x170)]),this[_0x271712(0x168)]=new _0x4d0cc6(this[_0x271712(0x170)]),this[_0x271712(0x168)][_0x271712(0x183)](),this[_0x271712(0x177)](_0x271712(0x143),''),this[_0x271712(0x186)][_0x271712(0x173)](_0x271712(0x160))['to'](this,_0x271712(0x143)),this[_0x271712(0x14e)]=this[_0x271712(0x155)](_0x551c81[_0x271712(0x15c)][_0x271712(0x12a)](0x1)),this[_0x271712(0x168)][_0x271712(0x12e)](this[_0x271712(0x186)]),this[_0x271712(0x186)][_0x271712(0x188)][_0x271712(0x12e)](this[_0x271712(0x14e)]),this[_0x271712(0x16a)][_0x271712(0x164)](_0x271712(0x131)),this[_0x271712(0x16a)][_0x271712(0x177)](_0x271712(0x131),_0x59bcd0(this[_0x271712(0x170)],_0x271712(0x139))),this[_0x271712(0x12d)](),this['on'](_0x271712(0x146),()=>{const _0x5e2d0c=_0x271712,_0xdd6b1d=_0x551c81[_0x5e2d0c(0x15c)][0x0][_0x5e2d0c(0x13e)];this[_0x5e2d0c(0x163)](_0xdd6b1d),this[_0x5e2d0c(0x186)][_0x5e2d0c(0x17c)](),this[_0x5e2d0c(0x16a)][_0x5e2d0c(0x17a)]();}),this['on'](_0x271712(0x189),()=>{const _0x1d0beb=_0x271712;this[_0x1d0beb(0x186)][_0x1d0beb(0x179)]?(this[_0x1d0beb(0x186)][_0x1d0beb(0x17c)](),this[_0x1d0beb(0x16a)][_0x1d0beb(0x17a)]()):(this[_0x1d0beb(0x186)][_0x1d0beb(0x152)]({'target':this[_0x1d0beb(0x185)],'positions':[_0x1d0beb(0x136)===this[_0x1d0beb(0x170)][_0x1d0beb(0x151)]?yn:Pn]}),this[_0x1d0beb(0x14e)][_0x1d0beb(0x17a)]());}),_0x27952a({'emitter':this[_0x271712(0x186)],'callback':()=>{const _0x342f99=_0x271712;this[_0x342f99(0x186)][_0x342f99(0x17c)]();},'activator':()=>this[_0x271712(0x186)][_0x271712(0x179)],'contextElements':()=>[this[_0x271712(0x185)],this[_0x271712(0x186)][_0x271712(0x185)]]});}[_0x3cc200(0x155)](_0x152061){const _0x2f1a51=_0x3cc200,_0x22724=this[_0x2f1a51(0x170)],_0x18a09a=new _0xabd391(_0x22724);for(const _0x585d31 of _0x152061){const _0x1f0227=new _0x5119e9(_0x22724),_0x1a725d=new _0x2fef2d(_0x22724);_0x1a725d[_0x2f1a51(0x173)](...Object[_0x2f1a51(0x128)](_0x585d31))['to'](_0x585d31),_0x1a725d[_0x2f1a51(0x14b)](_0x2f1a51(0x146))['to'](_0x18a09a),_0x1f0227[_0x2f1a51(0x13a)][_0x2f1a51(0x12e)](_0x1a725d),_0x18a09a[_0x2f1a51(0x135)][_0x2f1a51(0x12e)](_0x1f0227);}return _0x18a09a[_0x2f1a51(0x135)][_0x2f1a51(0x14b)](_0x2f1a51(0x146))['to'](this),_0x18a09a['on'](_0x2f1a51(0x146),_0x17ebf1=>{const _0x933911=_0x2f1a51,_0x34a436=_0x17ebf1[_0x933911(0x15a)];this[_0x933911(0x163)](_0x34a436[_0x933911(0x13e)]),this[_0x933911(0x186)][_0x933911(0x17c)](),this[_0x933911(0x16a)][_0x933911(0x17a)]();}),_0x18a09a;}[_0x3cc200(0x12d)](){const _0x503329=_0x3cc200;this[_0x503329(0x13b)]=new _0x240517(),this[_0x503329(0x13b)][_0x503329(0x158)](this[_0x503329(0x186)][_0x503329(0x185)]),this[_0x503329(0x13b)][_0x503329(0x177)](_0x503329(0x15f),(_0x2dd424,_0x473da5)=>{const _0x54f560=_0x503329;this[_0x54f560(0x186)][_0x54f560(0x17c)](),this[_0x54f560(0x16a)][_0x54f560(0x17a)](),_0x473da5();});}[_0x3cc200(0x17d)](){const _0x44758f=_0x3cc200;super[_0x44758f(0x17d)](),this[_0x44758f(0x13b)][_0x44758f(0x17d)](),this[_0x44758f(0x186)][_0x44758f(0x17d)](),this[_0x44758f(0x168)][_0x44758f(0x14d)]();}}function yn(_0x21dee5){const _0x3026d0=_0x3cc200;return{'top':_0x21dee5[_0x3026d0(0x16d)],'left':_0x21dee5[_0x3026d0(0x130)],'name':_0x3026d0(0x159),'config':{'withArrow':!0x1}};}function Pn(_0x407a34,_0x1b9b51){const _0x13a330=_0x3cc200;return{'top':_0x407a34[_0x13a330(0x16d)],'left':_0x407a34[_0x13a330(0x130)]-(_0x1b9b51[_0x13a330(0x17e)]-_0x407a34[_0x13a330(0x17e)]),'name':_0x13a330(0x159),'config':{'withArrow':!0x1}};}function Hn(_0x1c55f2,_0x722336,_0x41ae5f){const _0x477f22=_0x3cc200;switch(_0x1c55f2){case _0x477f22(0x144):return _0x59bcd0(_0x722336,_0x477f22(0x171),_0x41ae5f);case _0x477f22(0x169):return _0x59bcd0(_0x722336,_0x477f22(0x129),_0x41ae5f);case _0x477f22(0x137):return _0x59bcd0(_0x722336,_0x477f22(0x149),_0x41ae5f);}}function Ln(_0x304f4f,_0x38167d,_0x31fda0){const _0x427987=_0x3cc200;switch(_0x304f4f){case _0x427987(0x144):return _0x59bcd0(_0x38167d,_0x427987(0x134),_0x31fda0);case _0x427987(0x169):return _0x59bcd0(_0x38167d,_0x427987(0x150),_0x31fda0);case _0x427987(0x137):return _0x59bcd0(_0x38167d,_0x427987(0x162),_0x31fda0);}}
|
|
@@ -9,7 +9,7 @@ import { type Locale } from 'ckeditor5/src/utils.js';
|
|
|
9
9
|
import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js';
|
|
10
10
|
import { type AISuggestionContentPartDefinition } from '../../../aicore/utils/getsuggestionpartsfromreply.js';
|
|
11
11
|
import { type AISuggestionActionName } from './aichatfeedsuggestionitemactionsview.js';
|
|
12
|
-
import { type AIReplySource } from '../../../aicore/model/aireply.js';
|
|
12
|
+
import { type AIReplyChangeGroupState, type AIReplySource } from '../../../aicore/model/aireply.js';
|
|
13
13
|
import { type AISuggestionBodyViewContentPartView, type AIContentRenderingStrategy } from '../../../aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js';
|
|
14
14
|
/**
|
|
15
15
|
* A view for an AI suggestion item in the AI chat feed.
|
|
@@ -39,7 +39,7 @@ export declare class AIChatFeedSuggestionItemView extends AIChatFeedItemView {
|
|
|
39
39
|
renderingStrategy: AIContentRenderingStrategy;
|
|
40
40
|
abortSignal: AbortSignal;
|
|
41
41
|
}): Promise<void>;
|
|
42
|
-
updatePartState(index: number, state:
|
|
42
|
+
updatePartState(index: number, state: AIReplyChangeGroupState): void;
|
|
43
43
|
updateSources(sources: Array<AIReplySource>): void;
|
|
44
44
|
getPartView(index: number): AISuggestionBodyViewContentPartView | null;
|
|
45
45
|
/**
|
|
@@ -79,5 +79,5 @@ export interface AIChatFeedSuggestionItemViewOptions extends AIChatItemViewOptio
|
|
|
79
79
|
/**
|
|
80
80
|
* The configuration of the advanced reply dropdown in the AI chat feed.
|
|
81
81
|
*/
|
|
82
|
-
|
|
82
|
+
availableActions: Array<AISuggestionActionName>;
|
|
83
83
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x34db62=_0x1143;function _0x1143(_0x904cbe,_0x1469f6){var _0x2cb69c=_0x2cb6();return _0x1143=function(_0x1143f9,_0x51ce4f){_0x1143f9=_0x1143f9-0xe7;var _0x237a98=_0x2cb69c[_0x1143f9];return _0x237a98;},_0x1143(_0x904cbe,_0x1469f6);}function _0x2cb6(){var _0x5f182c=['showDiff','12693ZCEPnc','702hfVicO','172HCsZoz','applySuggestion','fire','updateSources','toggleSuggestionDisplayMode','isEnabled','containerView','extendTemplate','markAsDone','8118ssgFfk','12082UIIYrv','mouseLeaveSuggestion','4950130LKlntm','options','availableActions','dislike','isTrackChangesOn','hasPendingParts','isVisible','areActionsDisabled','showChangeInText','265031vXthqM','children','hasNonEmptyParts','bodyView','mouseOverSuggestion','ck-ai-chat__feed__ai-suggestion','updateContent','actionsView','updatePartState','addMany','bind','like','rejectSuggestion','3045632pHsICr','getPartView','set','updateLabels','insertSuggestion','3072VYbmFs','3037540zOwfrZ','partsCount'];_0x2cb6=function(){return _0x5f182c;};return _0x2cb6();}(function(_0x3e31fe,_0x1e3644){var _0x321b30=_0x1143,_0x10c9d6=_0x3e31fe();while(!![]){try{var _0x52978e=parseInt(_0x321b30(0xed))/0x1+-parseInt(_0x321b30(0x105))/0x2*(parseInt(_0x321b30(0x103))/0x3)+parseInt(_0x321b30(0xfa))/0x4+-parseInt(_0x321b30(0x100))/0x5+-parseInt(_0x321b30(0x104))/0x6*(-parseInt(_0x321b30(0x10f))/0x7)+parseInt(_0x321b30(0xff))/0x8*(-parseInt(_0x321b30(0x10e))/0x9)+parseInt(_0x321b30(0x111))/0xa;if(_0x52978e===_0x1e3644)break;else _0x10c9d6['push'](_0x10c9d6['shift']());}catch(_0x2c396d){_0x10c9d6['push'](_0x10c9d6['shift']());}}}(_0x2cb6,0x63094));import{AIChatFeedItemView as _0x8ede77}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x192c3d}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x12a49d}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x8ede77{[_0x34db62(0x10b)];[_0x34db62(0xf4)];constructor(_0x1755aa,_0x10e90b){var _0x8f7790=_0x34db62;super(_0x10e90b),this[_0x8f7790(0xfc)](_0x8f7790(0xe8),!0x1),this[_0x8f7790(0x10b)]=new _0x192c3d(_0x1755aa,{'showDiff':_0x10e90b[_0x8f7790(0x102)],'areActionsDisabled':_0x10e90b[_0x8f7790(0xeb)],'availableActions':_0x10e90b[_0x8f7790(0x113)]}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0x109),(_0x2a1547,_0x4feac9)=>{var _0x473ec1=_0x8f7790;this[_0x473ec1(0x107)](_0x473ec1(0x109),{'replyId':this[_0x473ec1(0x112)]['id'],'showDiff':_0x4feac9[_0x473ec1(0x102)]});}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0xf8),()=>{var _0x216a94=_0x8f7790;this[_0x216a94(0x107)](_0x216a94(0xf8),{'replyId':this[_0x216a94(0x112)]['id']});}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0xe7),()=>{var _0x531566=_0x8f7790;this[_0x531566(0x107)](_0x531566(0xe7),{'replyId':this[_0x531566(0x112)]['id']});}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0xec),(_0x30001b,{index:_0x5d247b})=>{var _0x3b4779=_0x8f7790;this[_0x3b4779(0x107)](_0x3b4779(0xec),{'replyId':this[_0x3b4779(0x112)]['id'],'partIndex':_0x5d247b});}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0xfe),(_0x4ba183,{index:_0x5cc193})=>{var _0x2e4324=_0x8f7790;this[_0x2e4324(0x107)](_0x2e4324(0xfe),{'replyId':this[_0x2e4324(0x112)]['id'],'partIndex':_0x5cc193});}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0xf9),(_0x122909,{index:_0x2956cd})=>{var _0x442af8=_0x8f7790;this[_0x442af8(0x107)](_0x442af8(0xf9),{'replyId':this[_0x442af8(0x112)]['id'],'partIndex':_0x2956cd});}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0xf1),(_0xc90b0e,{index:_0x3f7084})=>{var _0x2c1b42=_0x8f7790;this[_0x2c1b42(0x107)](_0x2c1b42(0xf1),{'replyId':this[_0x2c1b42(0x112)]['id'],'partIndex':_0x3f7084});}),this[_0x8f7790(0x10b)]['on'](_0x8f7790(0x110),(_0xb2bec4,{index:_0x28d0d1})=>{var _0x592729=_0x8f7790;this[_0x592729(0x107)](_0x592729(0x110),{'replyId':this[_0x592729(0x112)]['id'],'partIndex':_0x28d0d1});}),this[_0x8f7790(0xf4)]=new _0x12a49d(_0x1755aa,this[_0x8f7790(0x112)][_0x8f7790(0x113)]),this[_0x8f7790(0xf4)][_0x8f7790(0xf7)](_0x8f7790(0xe8))['to'](this,_0x8f7790(0xe8)),this[_0x8f7790(0xf4)]['on'](_0x8f7790(0xec),()=>{var _0x581c07=_0x8f7790;this[_0x581c07(0x107)](_0x581c07(0xec),{'replyId':this[_0x581c07(0x112)]['id']});}),this[_0x8f7790(0xf4)]['on'](_0x8f7790(0xfe),()=>{var _0x4ceab0=_0x8f7790;this[_0x4ceab0(0x107)](_0x4ceab0(0xfe),{'replyId':this[_0x4ceab0(0x112)]['id']});}),this[_0x8f7790(0xf4)]['on'](_0x8f7790(0x106),()=>{var _0x27660a=_0x8f7790;this[_0x27660a(0x107)](_0x27660a(0x106),{'replyId':this[_0x27660a(0x112)]['id']});}),_0x10e90b[_0x8f7790(0xeb)]?this[_0x8f7790(0xf4)][_0x8f7790(0x10a)]=!0x1:this[_0x8f7790(0xf4)][_0x8f7790(0xf7)](_0x8f7790(0x10a))['to'](this[_0x8f7790(0x10b)][_0x8f7790(0xf0)],_0x8f7790(0xe9)),this[_0x8f7790(0xee)][_0x8f7790(0xf6)]([this[_0x8f7790(0x10b)],this[_0x8f7790(0xf4)]]),this[_0x8f7790(0x10c)]({'attributes':{'class':[_0x8f7790(0xf2)]}});}async[_0x34db62(0xf3)](_0x1553b3){var _0x449d25=_0x34db62;await this[_0x449d25(0x10b)][_0x449d25(0xf3)](_0x1553b3),this[_0x449d25(0xf4)][_0x449d25(0xfd)](this[_0x449d25(0x10b)][_0x449d25(0xf0)][_0x449d25(0x101)]);}[_0x34db62(0xf5)](_0xbeaed7,_0x299550){var _0x106b26=_0x34db62;this[_0x106b26(0x10b)][_0x106b26(0xf0)][_0x106b26(0xf5)](_0xbeaed7,_0x299550);}[_0x34db62(0x108)](_0x5e7d89){var _0x46e7ff=_0x34db62;this[_0x46e7ff(0x10b)][_0x46e7ff(0x108)](_0x5e7d89);}[_0x34db62(0xfb)](_0x1e9253){var _0x405436=_0x34db62;return this[_0x405436(0x10b)][_0x405436(0xf0)][_0x405436(0xfb)](_0x1e9253);}[_0x34db62(0x10d)](){var _0x2308d9=_0x34db62;super[_0x2308d9(0x10d)](),this[_0x2308d9(0x10b)][_0x2308d9(0x10d)](),this[_0x2308d9(0xf4)][_0x2308d9(0xea)]=this[_0x2308d9(0x10b)][_0x2308d9(0xf0)][_0x2308d9(0xef)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x1398e6=_0x441d;(function(_0x5654c2,_0x4eaf73){var _0x46774f=_0x441d,_0x31798a=_0x5654c2();while(!![]){try{var _0x43bd8e=-parseInt(_0x46774f(0x150))/0x1+-parseInt(_0x46774f(0x143))/0x2+-parseInt(_0x46774f(0x15b))/0x3+-parseInt(_0x46774f(0x145))/0x4*(parseInt(_0x46774f(0x14c))/0x5)+parseInt(_0x46774f(0x152))/0x6+parseInt(_0x46774f(0x14a))/0x7*(parseInt(_0x46774f(0x151))/0x8)+parseInt(_0x46774f(0x153))/0x9*(parseInt(_0x46774f(0x149))/0xa);if(_0x43bd8e===_0x4eaf73)break;else _0x31798a['push'](_0x31798a['shift']());}catch(_0x429e84){_0x31798a['push'](_0x31798a['shift']());}}}(_0x28cd,0x1ff6a));import{AIChatFeedItemView as _0x39e82a}from'./aichatfeeditemview.js';function _0x28cd(){var _0x655bc8=['9645HhTRYz','ck-ai-chat__feed__user-message','ck-ai-chat__feed__context-chips','element','41502zMsruF','471272dksYwA','769188NtnzwP','558342tBtalD','_bodyCollection','children','render','markAsDone','length','add','contextItems','317367hIQfin','_contextChipsView','setTemplate','initialContent','ck-ai-chat__feed__message-content','hidden','_createMessageContentView','_createContextChipsView','_locale','options','152056xinInz','extendTemplate','168lJivjL','innerHTML','filter','_messageContentView','40ejVabf','7nkjcOr','div'];_0x28cd=function(){return _0x655bc8;};return _0x28cd();}function _0x441d(_0xca46d,_0x3391da){var _0x28cd1d=_0x28cd();return _0x441d=function(_0x441dd0,_0x36dab9){_0x441dd0=_0x441dd0-0x143;var _0x89459a=_0x28cd1d[_0x441dd0];return _0x89459a;},_0x441d(_0xca46d,_0x3391da);}import{AIChatFeedContextChipsView as _0x164db4}from'./aichatfeedcontextchipsview.js';import{View as _0x1d1a99}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x39e82a{[_0x1398e6(0x15c)]=null;[_0x1398e6(0x163)];[_0x1398e6(0x154)];[_0x1398e6(0x148)];constructor(_0x3822db,_0xf31c2,_0x1be89f){var _0x14d5ae=_0x1398e6;super(_0xf31c2),this[_0x14d5ae(0x163)]=_0x3822db,this[_0x14d5ae(0x154)]=_0x1be89f,this[_0x14d5ae(0x162)](),this[_0x14d5ae(0x161)](),this[_0x14d5ae(0x144)]({'attributes':{'class':[_0x14d5ae(0x14d)]}});}[_0x1398e6(0x162)](){var _0x175b3d=_0x1398e6;this[_0x175b3d(0x164)][_0x175b3d(0x15a)]&&this[_0x175b3d(0x164)][_0x175b3d(0x15a)][_0x175b3d(0x158)]>0x0&&(this[_0x175b3d(0x15c)]=new _0x164db4(this[_0x175b3d(0x163)],this[_0x175b3d(0x164)][_0x175b3d(0x15a)][_0x175b3d(0x147)](_0x2fa068=>!_0x2fa068[_0x175b3d(0x160)]),this[_0x175b3d(0x154)]),this[_0x175b3d(0x15c)][_0x175b3d(0x144)]({'attributes':{'class':_0x175b3d(0x14e)}}),this[_0x175b3d(0x155)][_0x175b3d(0x159)](this[_0x175b3d(0x15c)]));}[_0x1398e6(0x161)](){var _0x36bdd4=_0x1398e6;this[_0x36bdd4(0x148)]=new _0x1d1a99(this[_0x36bdd4(0x163)]),this[_0x36bdd4(0x148)][_0x36bdd4(0x15d)]({'tag':_0x36bdd4(0x14b),'attributes':{'class':_0x36bdd4(0x15f)}}),this[_0x36bdd4(0x155)][_0x36bdd4(0x159)](this[_0x36bdd4(0x148)]);}[_0x1398e6(0x156)](){var _0x165c42=_0x1398e6;super[_0x165c42(0x156)](),this[_0x165c42(0x148)][_0x165c42(0x14f)][_0x165c42(0x146)]=this[_0x165c42(0x164)][_0x165c42(0x15e)],this[_0x165c42(0x157)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2fb127=_0x2f20;function _0x58d4(){const _0x3fb03d=['addDocumentToContext','startConversation','toggleReasoning','addUrlToContext','resizeTabs','11967EBgmQA','abortPromptStream','4637910whuQXY','toggleWebSearch','addResourceToContext','368788SqRCJR','removeContextItem','7823915XealEw','92yPWCth','loadSourceResources','16bsHsLE','4479167KKGCGi','addFileToContext','selectModel','238988AaqGhP','20fKhimi','6HMiXgZ','3062655EzMiSB','sendUserMessage'];_0x58d4=function(){return _0x3fb03d;};return _0x58d4();}(function(_0x13407a,_0x3de6e3){const _0x36998e=_0x2f20,_0x30fb0c=_0x13407a();while(!![]){try{const _0x412f6d=-parseInt(_0x36998e(0x1af))/0x1+parseInt(_0x36998e(0x1b8))/0x2+-parseInt(_0x36998e(0x1c2))/0x3*(parseInt(_0x36998e(0x1b2))/0x4)+parseInt(_0x36998e(0x1c4))/0x5+-parseInt(_0x36998e(0x1ba))/0x6*(-parseInt(_0x36998e(0x1b5))/0x7)+parseInt(_0x36998e(0x1b4))/0x8*(parseInt(_0x36998e(0x1bb))/0x9)+-parseInt(_0x36998e(0x1b9))/0xa*(parseInt(_0x36998e(0x1b1))/0xb);if(_0x412f6d===_0x3de6e3)break;else _0x30fb0c['push'](_0x30fb0c['shift']());}catch(_0x384e12){_0x30fb0c['push'](_0x30fb0c['shift']());}}}(_0x58d4,0x76482));function _0x2f20(_0xc857d2,_0x544bdb){const _0x58d417=_0x58d4();return _0x2f20=function(_0x2f200a,_0x170531){_0x2f200a=_0x2f200a-0x1af;let _0x38da1f=_0x58d417[_0x2f200a];return _0x38da1f;},_0x2f20(_0xc857d2,_0x544bdb);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x1a0f3b}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x1a0f3b,_0x2fb127(0x1be),_0x2fb127(0x1c1),_0x2fb127(0x1bc),_0x2fb127(0x1c3),_0x2fb127(0x1bd),_0x2fb127(0x1b6),_0x2fb127(0x1c0),_0x2fb127(0x1c6),_0x2fb127(0x1b0),_0x2fb127(0x1b3),_0x2fb127(0x1c5),_0x2fb127(0x1bf),_0x2fb127(0x1b7)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x428c5b=_0x12b6;(function(_0x34d88e,_0x399e7c){const _0x188bba=_0x12b6,_0x2922f2=_0x34d88e();while(!![]){try{const _0x2b1cfc=-parseInt(_0x188bba(0xd7))/0x1+-parseInt(_0x188bba(0xd3))/0x2*(parseInt(_0x188bba(0xc7))/0x3)+-parseInt(_0x188bba(0xd1))/0x4+parseInt(_0x188bba(0xdc))/0x5+parseInt(_0x188bba(0xd8))/0x6*(-parseInt(_0x188bba(0xcc))/0x7)+-parseInt(_0x188bba(0xce))/0x8+parseInt(_0x188bba(0xc5))/0x9*(parseInt(_0x188bba(0xd0))/0xa);if(_0x2b1cfc===_0x399e7c)break;else _0x2922f2['push'](_0x2922f2['shift']());}catch(_0x45acb6){_0x2922f2['push'](_0x2922f2['shift']());}}}(_0x505a,0xc47fc));function _0x505a(){const _0x3e7a78=['reject','callback','resolve','17737zSzcrE','5040060ytfgHd','once','shift','signal','7011045UzBcae','enqueue','queueEmptyPromise','push','completePromise','abort','189uyjXiR','fire','1266555cMoLMi','createTask','_abortController','length','_processQueue','7wwObRO','isProcessing','3440928DeZJkK','_queueEmpty','1072730TIpaZb','4560136sOaNwK','queue','2dmqUyz'];_0x505a=function(){return _0x3e7a78;};return _0x505a();}function _0x12b6(_0x2413d4,_0x134d3c){const _0x505a5c=_0x505a();return _0x12b6=function(_0x12b627,_0x5064a7){_0x12b627=_0x12b627-0xc0;let _0xcfe7c0=_0x505a5c[_0x12b627];return _0xcfe7c0;},_0x12b6(_0x2413d4,_0x134d3c);}import{EmitterMixin as _0x5b9859}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x5b9859(){[_0x428c5b(0xd2)]=[];[_0x428c5b(0xcd)]=!0x1;[_0x428c5b(0xc9)];async[_0x428c5b(0xc0)](_0x5e3978){const _0x5ad55d=_0x428c5b,_0x587188=this[_0x5ad55d(0xc8)](_0x5e3978);return this[_0x5ad55d(0xd2)][_0x5ad55d(0xc2)](_0x587188),this[_0x5ad55d(0xcb)](),_0x587188[_0x5ad55d(0xc3)];}[_0x428c5b(0xc4)](){const _0x43ae27=_0x428c5b;this[_0x43ae27(0xcd)]&&(this[_0x43ae27(0xc9)][_0x43ae27(0xc4)](),this[_0x43ae27(0xc9)]=void 0x0,this[_0x43ae27(0xd2)]=[],this[_0x43ae27(0xc6)](_0x43ae27(0xcf)),this[_0x43ae27(0xcd)]=!0x1);}get[_0x428c5b(0xc1)](){const _0x2fdde2=_0x428c5b;return this[_0x2fdde2(0xd2)][_0x2fdde2(0xca)]||this[_0x2fdde2(0xcd)]?new Promise(_0x76fbd3=>{const _0x490e32=_0x2fdde2;this[_0x490e32(0xd9)](_0x490e32(0xcf),()=>{_0x76fbd3();});}):Promise[_0x2fdde2(0xd6)]();}async[_0x428c5b(0xcb)](){const _0x118d56=_0x428c5b;if(!this[_0x118d56(0xcd)]){this[_0x118d56(0xc9)]=new AbortController(),this[_0x118d56(0xcd)]=!0x0;try{for(;this[_0x118d56(0xd2)][_0x118d56(0xca)]&&this[_0x118d56(0xcd)];){const _0x3adc59=this[_0x118d56(0xd2)][_0x118d56(0xda)]();try{await _0x3adc59[_0x118d56(0xd5)](this[_0x118d56(0xc9)][_0x118d56(0xdb)]),_0x3adc59[_0x118d56(0xd6)]();}catch(_0x5ad2d3){_0x3adc59[_0x118d56(0xd4)](_0x5ad2d3);}}}finally{this[_0x118d56(0xcd)]=!0x1,this[_0x118d56(0xc9)]=void 0x0;}this[_0x118d56(0xc6)](_0x118d56(0xcf));}}[_0x428c5b(0xc8)](_0x264ed1){let _0x363ab8,_0x4ebda8;const _0x55b2cd=new Promise((_0x2bf117,_0x16e8b6)=>{_0x363ab8=_0x2bf117,_0x4ebda8=_0x16e8b6;});return{'callback':_0x264ed1,'resolve':_0x363ab8,'reject':_0x4ebda8,'completePromise':_0x55b2cd};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5be4(){const _0x3de792=['type','abortController','signal','156955fgdVud','stop','key','7196823BOdOnJ','148OfhbQX','abort','deltaY','_stop','scrollHeight','animationFrameId','element','destroy','ArrowDown','touchstart','End','start','22QazZla','isRunning','bind','553UeeHrf','_onUserEvent','includes','_rafUpdate','isUserPaused','scrollTo','PageDown','Home','keydown','4306302WHQFJp','_isAtBottom','addEventListener','80346SBBxjP','1302040UYUOYk','wheel','ArrowUp','1085290klfYbP','PageUp','pointerdown','auto','8PlmYKH','17415730aeeFsp'];_0x5be4=function(){return _0x3de792;};return _0x5be4();}const _0x215af6=_0x2c89;function _0x2c89(_0x36d0ce,_0x40287f){const _0x5be443=_0x5be4();return _0x2c89=function(_0x2c896d,_0x5c0d27){_0x2c896d=_0x2c896d-0x6d;let _0x3deb50=_0x5be443[_0x2c896d];return _0x3deb50;},_0x2c89(_0x36d0ce,_0x40287f);}(function(_0x12a479,_0x2ec5d0){const _0x4b3235=_0x2c89,_0x5cb4f3=_0x12a479();while(!![]){try{const _0x44714d=parseInt(_0x4b3235(0x8e))/0x1+parseInt(_0x4b3235(0x8b))/0x2+-parseInt(_0x4b3235(0x87))/0x3+-parseInt(_0x4b3235(0x6f))/0x4*(parseInt(_0x4b3235(0x97))/0x5)+-parseInt(_0x4b3235(0x8a))/0x6*(parseInt(_0x4b3235(0x7e))/0x7)+parseInt(_0x4b3235(0x92))/0x8*(-parseInt(_0x4b3235(0x6e))/0x9)+-parseInt(_0x4b3235(0x93))/0xa*(-parseInt(_0x4b3235(0x7b))/0xb);if(_0x44714d===_0x2ec5d0)break;else _0x5cb4f3['push'](_0x5cb4f3['shift']());}catch(_0x5d4dac){_0x5cb4f3['push'](_0x5cb4f3['shift']());}}}(_0x5be4,0xbac5b));const ws=[_0x215af6(0x8c),_0x215af6(0x78),_0x215af6(0x90),_0x215af6(0x86)],fs=[_0x215af6(0x8d),_0x215af6(0x77),_0x215af6(0x8f),_0x215af6(0x84),_0x215af6(0x85),_0x215af6(0x79),'\x20'];export class ScrollManager{[_0x215af6(0x75)];[_0x215af6(0x74)];[_0x215af6(0x7c)];[_0x215af6(0x95)];[_0x215af6(0x82)];constructor(_0x40cfb7){const _0x59d29f=_0x215af6;this[_0x59d29f(0x75)]=_0x40cfb7,this[_0x59d29f(0x74)]=null,this[_0x59d29f(0x7c)]=!0x1,this[_0x59d29f(0x95)]=new AbortController(),this[_0x59d29f(0x82)]=!0x1;for(const _0x35efa1 of ws){const _0x255a56=_0x59d29f(0x86)!==_0x35efa1;this[_0x59d29f(0x75)][_0x59d29f(0x89)](_0x35efa1,this[_0x59d29f(0x7f)][_0x59d29f(0x7d)](this),{'passive':_0x255a56,'signal':this[_0x59d29f(0x95)][_0x59d29f(0x96)]});}}[_0x215af6(0x7a)](){const _0x2608d7=_0x215af6;this[_0x2608d7(0x7c)]||(this[_0x2608d7(0x7c)]=!0x0,this[_0x2608d7(0x82)]=!0x1,this[_0x2608d7(0x74)]=requestAnimationFrame(this[_0x2608d7(0x81)][_0x2608d7(0x7d)](this)));}[_0x215af6(0x98)](){requestAnimationFrame(()=>{const _0x55daab=_0x2c89;this[_0x55daab(0x72)]();});}[_0x215af6(0x76)](){const _0x45a807=_0x215af6;this[_0x45a807(0x72)](),this[_0x45a807(0x95)][_0x45a807(0x70)]();}[_0x215af6(0x72)](){const _0x55144f=_0x215af6;null!==this[_0x55144f(0x74)]&&(cancelAnimationFrame(this[_0x55144f(0x74)]),this[_0x55144f(0x74)]=null),this[_0x55144f(0x7c)]&&(this[_0x55144f(0x7c)]=!0x1),this[_0x55144f(0x82)]=!0x1;}[_0x215af6(0x7f)](_0x57f417){const _0x536c74=_0x215af6;if(this[_0x536c74(0x7c)]){if(_0x536c74(0x86)===_0x57f417[_0x536c74(0x94)]){const _0xa59568=_0x57f417[_0x536c74(0x6d)];if(!fs[_0x536c74(0x80)](_0xa59568))return;}_0x57f417 instanceof WheelEvent?_0x57f417[_0x536c74(0x71)]<0x0?this[_0x536c74(0x82)]=!0x0:this[_0x536c74(0x82)]=!this[_0x536c74(0x88)]():this[_0x536c74(0x82)]=!0x0;}}[_0x215af6(0x88)](){const _0x35be99=_0x215af6,{scrollTop:_0x5eb4ea,scrollHeight:_0x3c1593,clientHeight:_0x18396c}=this[_0x35be99(0x75)];return _0x3c1593-_0x5eb4ea-_0x18396c<=0x5;}[_0x215af6(0x81)](){const _0x5957bd=_0x215af6;this[_0x5957bd(0x7c)]&&(this[_0x5957bd(0x82)]||this[_0x5957bd(0x75)][_0x5957bd(0x83)]({'top':this[_0x5957bd(0x75)][_0x5957bd(0x73)],'behavior':_0x5957bd(0x91)}),this[_0x5957bd(0x74)]=requestAnimationFrame(this[_0x5957bd(0x81)][_0x5957bd(0x7d)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3ecbe8=_0x30ca;(function(_0x18d4ab,_0x17543b){var _0x8b32b4=_0x30ca,_0x4b29fc=_0x18d4ab();while(!![]){try{var _0x1467e4=-parseInt(_0x8b32b4(0x66))/0x1+-parseInt(_0x8b32b4(0x6e))/0x2*(parseInt(_0x8b32b4(0x6f))/0x3)+-parseInt(_0x8b32b4(0x73))/0x4+-parseInt(_0x8b32b4(0x6a))/0x5+parseInt(_0x8b32b4(0x6c))/0x6*(-parseInt(_0x8b32b4(0x72))/0x7)+-parseInt(_0x8b32b4(0x6b))/0x8*(-parseInt(_0x8b32b4(0x74))/0x9)+-parseInt(_0x8b32b4(0x75))/0xa*(-parseInt(_0x8b32b4(0x71))/0xb);if(_0x1467e4===_0x17543b)break;else _0x4b29fc['push'](_0x4b29fc['shift']());}catch(_0x98606c){_0x4b29fc['push'](_0x4b29fc['shift']());}}}(_0x3ad8,0xeef98));import{ContextPlugin as _0x2f1bbd}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x147f56}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x2f6216}from'./aichathistoryui.js';function _0x3ad8(){var _0x180aee=['94749vZURQn','isPremiumPlugin','385CEwxiX','13605221esEyzh','3150120cCuMhU','9rULhcx','1326680zkrZeJ','299450eSkJWx','isOfficialPlugin','AIChatHistory','pluginName','1838235QFCWmP','1154152JLXToq','6fHEXDP','requires','26LpXFMx'];_0x3ad8=function(){return _0x180aee;};return _0x3ad8();}function _0x30ca(_0x5a7cd9,_0x5263e0){var _0x3ad872=_0x3ad8();return _0x30ca=function(_0x30ca2b,_0x18e1be){_0x30ca2b=_0x30ca2b-0x66;var _0x3adf69=_0x3ad872[_0x30ca2b];return _0x3adf69;},_0x30ca(_0x5a7cd9,_0x5263e0);}export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x2f1bbd{static get[_0x3ecbe8(0x6d)](){return[_0x147f56,_0x2f6216];}static get[_0x3ecbe8(0x69)](){var _0x337024=_0x3ecbe8;return _0x337024(0x68);}static get[_0x3ecbe8(0x67)](){return!0x0;}static get[_0x3ecbe8(0x70)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x45a116=_0x19ca;(function(_0x384687,_0x2a42bd){const _0x41bd8c=_0x19ca,_0x5e20e1=_0x384687();while(!![]){try{const _0x1c915d=-parseInt(_0x41bd8c(0x1e5))/0x1*(-parseInt(_0x41bd8c(0x226))/0x2)+-parseInt(_0x41bd8c(0x1de))/0x3+-parseInt(_0x41bd8c(0x1d2))/0x4*(parseInt(_0x41bd8c(0x1ea))/0x5)+parseInt(_0x41bd8c(0x1cf))/0x6*(parseInt(_0x41bd8c(0x20f))/0x7)+-parseInt(_0x41bd8c(0x1e1))/0x8*(-parseInt(_0x41bd8c(0x204))/0x9)+-parseInt(_0x41bd8c(0x1d3))/0xa*(parseInt(_0x41bd8c(0x1f7))/0xb)+parseInt(_0x41bd8c(0x219))/0xc;if(_0x1c915d===_0x2a42bd)break;else _0x5e20e1['push'](_0x5e20e1['shift']());}catch(_0xb3fc95){_0x5e20e1['push'](_0x5e20e1['shift']());}}}(_0x31a6,0x1edde));import{ContextPlugin as _0x2a24e0}from'ckeditor5/src/core.js';import{AIConnector as _0x3521ad}from'../aicore/aiconnector.js';import{AIChatController as _0x191fa9}from'../aichat/aichatcontroller.js';import{AITabs as _0x19bdd0}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0xa349a6}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x32ef09}from'./model/aichathistoryconversations.js';function _0x19ca(_0x25a533,_0x108256){const _0x31a67a=_0x31a6();return _0x19ca=function(_0x19ca3b,_0x44df29){_0x19ca3b=_0x19ca3b-0x1ca;let _0x5ff487=_0x31a67a[_0x19ca3b];return _0x5ff487;},_0x19ca(_0x25a533,_0x108256);}import{getTranslation as _0x27d84a}from'../aicore/utils/common-translations.js';function _0x31a6(){const _0x29f9b5=['items','pinned','setConversationPinned','remove','getItem','createdAt','updateItems','activateTab:history','change:activeConversation','title','activateTab','init','336PYOYDO','resizeTabs','chat','48068YBcGjM','196750kgXzAx','loadItems','editConversationTitle','itemRemoved','view','getFullYear','openChat','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','_updateHistoryItemsUI','_clearItemLoading','_aiChatController','670779igDPRz','isOfficialPlugin','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','40pyNNcH','AIChatHistoryController','AI_CHAT_HISTORY_ERROR_GENERIC','updateItemPinned','183907hsqIYh','updateItemLoadingState','get','history','AI_CHAT_HISTORY_CATEGORY_TODAY','100MfFMar','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','showError','AI_CHAT_HISTORY_UNPIN_ACTION','_setIsMaximized','_generateErrorMessage','itemUpdated','removeHistoryItem','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','itemsLoaded','activeConversation','44nBMzNR','_getCategorizedItems','AI_CHAT_HISTORY_CATEGORY_PINNED','_handleRemove','_aiChatHistoryUi','_handleEditTitle','resize','operation','requires','locale','length','context','plugins','114039IfkCCo','setLoadingSkeleton','_handleSelectConversation','isPremiumPlugin','removeItem','getItems','pluginName','updates','_setItemLoading','AI_CHAT_HISTORY_CATEGORY_LATER','error','28154PjpqZO','_handleTogglePin','map','removeConversation','setIsMaximized','unpin','AI_CHAT_UNTITLED_CONVERSATION','updateItemTitle','_aiConnector','resizedTabs','2358828kHWjuX','selectConversation','getGroupId','getDate','_showConversationHistory','_handleHistoryErrorUI','listenTo','handleRemovedConversation','setDate','pin','getMonth','loadConversation','AI_CHAT_HISTORY_PIN_ACTION','2mRgRtf','toLocaleDateString','push','rename','itemId'];_0x31a6=function(){return _0x29f9b5;};return _0x31a6();}export class AIChatHistoryController extends _0x2a24e0{[_0x45a116(0x217)];[_0x45a116(0x1fb)];[_0x45a116(0x1dd)];static get[_0x45a116(0x1ff)](){return[_0x3521ad,_0x191fa9,_0xa349a6,_0x19bdd0];}static get[_0x45a116(0x20a)](){const _0x3b2c6d=_0x45a116;return _0x3b2c6d(0x1e2);}static get[_0x45a116(0x1df)](){return!0x0;}static get[_0x45a116(0x207)](){return!0x0;}[_0x45a116(0x1ce)](){const _0x2b6896=_0x45a116;this[_0x2b6896(0x217)]=this[_0x2b6896(0x202)][_0x2b6896(0x203)][_0x2b6896(0x1e7)](_0x3521ad),this[_0x2b6896(0x1fb)]=this[_0x2b6896(0x202)][_0x2b6896(0x203)][_0x2b6896(0x1e7)](_0xa349a6),this[_0x2b6896(0x1dd)]=this[_0x2b6896(0x202)][_0x2b6896(0x203)][_0x2b6896(0x1e7)](_0x191fa9);const _0x31f93b=this[_0x2b6896(0x202)][_0x2b6896(0x203)][_0x2b6896(0x1e7)](_0x19bdd0),_0x269915=this[_0x2b6896(0x1dd)][_0x2b6896(0x21b)]();this[_0x2b6896(0x1e8)]=new _0x32ef09({'connector':this[_0x2b6896(0x217)],'group':_0x269915}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x212),(_0x199dc6,_0x7888c8)=>{const _0x18f681=_0x2b6896;this[_0x18f681(0x20c)](_0x7888c8['id'],_0x18f681(0x22e)),this[_0x18f681(0x1fa)](_0x7888c8['id']);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x1d5),(_0x5b0263,_0x234f66)=>{const _0x336e79=_0x2b6896;this[_0x336e79(0x20c)](_0x234f66['id'],_0x336e79(0x229)),this[_0x336e79(0x1fc)](_0x234f66['id'],_0x234f66[_0x336e79(0x1cc)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1e8)],_0x2b6896(0x1f2),(_0xf0b76e,_0x1c5c74)=>{const _0x50a33a=_0x2b6896;void 0x0!==_0x1c5c74[_0x50a33a(0x20b)][_0x50a33a(0x1cc)]&&this[_0x50a33a(0x1fb)][_0x50a33a(0x216)](_0x1c5c74[_0x50a33a(0x22a)],_0x1c5c74[_0x50a33a(0x20b)][_0x50a33a(0x1cc)]),void 0x0!==_0x1c5c74[_0x50a33a(0x20b)][_0x50a33a(0x22c)]&&this[_0x50a33a(0x1db)](),this[_0x50a33a(0x1dc)](_0x1c5c74[_0x50a33a(0x22a)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1e8)],_0x2b6896(0x1d6),(_0x12bb3c,_0x21e967)=>{const _0x5407d6=_0x2b6896;this[_0x5407d6(0x1dd)][_0x5407d6(0x220)](_0x21e967[_0x5407d6(0x22a)]),this[_0x5407d6(0x1fb)][_0x5407d6(0x1f3)](_0x21e967[_0x5407d6(0x22a)]),this[_0x5407d6(0x1dc)](_0x21e967[_0x5407d6(0x22a)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1e8)],_0x2b6896(0x1f5),()=>{const _0x4c047d=_0x2b6896;this[_0x4c047d(0x1db)]();}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1e8)],_0x2b6896(0x20e),(_0x2195e9,_0x21b43f)=>{const _0x4b01c6=_0x2b6896;this[_0x4b01c6(0x21e)](_0x21b43f[_0x4b01c6(0x20e)],_0x21b43f[_0x4b01c6(0x1fe)],_0x21b43f[_0x4b01c6(0x22a)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x21a),(_0x6be44d,_0x6f3a66)=>{const _0x996442=_0x2b6896;this[_0x996442(0x206)](_0x6f3a66['id']);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x22d),(_0x34eb66,_0xdc3511)=>{const _0x3819eb=_0x2b6896,_0x12481e=_0xdc3511[_0x3819eb(0x22c)]?_0x3819eb(0x222):_0x3819eb(0x214);this[_0x3819eb(0x20c)](_0xdc3511['id'],_0x12481e),this[_0x3819eb(0x210)](_0xdc3511['id'],_0xdc3511[_0x3819eb(0x22c)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x1d9),()=>{const _0x85050e=_0x2b6896;_0x31f93b[_0x85050e(0x1d7)][_0x85050e(0x1cd)](_0x85050e(0x1d1));}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1dd)],_0x2b6896(0x1cb),()=>{const _0x573806=_0x2b6896;this[_0x573806(0x1db)]();}),_0x31f93b[_0x2b6896(0x1d7)]['on'](_0x2b6896(0x1ca),()=>{const _0x572900=_0x2b6896;this[_0x572900(0x21d)]();}),this[_0x2b6896(0x21f)](_0x31f93b,_0x2b6896(0x218),(_0x4f037b,_0x42fe27)=>{const _0x101918=_0x2b6896;this[_0x101918(0x1f0)](_0x42fe27);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x1d0),()=>{const _0x25a91f=_0x2b6896;_0x31f93b[_0x25a91f(0x1fd)]();});}async[_0x45a116(0x1fc)](_0x283874,_0x4ab74d){const _0x14c607=_0x45a116;await this[_0x14c607(0x1e8)][_0x14c607(0x216)](_0x283874,_0x4ab74d);}async[_0x45a116(0x210)](_0x52ea5c,_0x4d7faa){const _0x58daa4=_0x45a116;await this[_0x58daa4(0x1e8)][_0x58daa4(0x1e4)](_0x52ea5c,_0x4d7faa);}async[_0x45a116(0x1fa)](_0x405180){const _0x4b01f8=_0x45a116;await this[_0x4b01f8(0x1e8)][_0x4b01f8(0x208)](_0x405180);}async[_0x45a116(0x206)](_0x53f671){const _0x247a56=_0x45a116;await this[_0x247a56(0x1dd)][_0x247a56(0x224)](_0x53f671);}async[_0x45a116(0x21d)](){const _0x508425=_0x45a116;this[_0x508425(0x1fb)][_0x508425(0x1ee)](''),this[_0x508425(0x1fb)][_0x508425(0x205)](!0x0),await this[_0x508425(0x1e8)][_0x508425(0x1ce)](),this[_0x508425(0x1fb)][_0x508425(0x205)](!0x1);}[_0x45a116(0x1db)](){const _0x28934c=_0x45a116,_0x1a79c4=this[_0x28934c(0x1dd)][_0x28934c(0x1f6)]?.['id'],_0x1f005a=this[_0x28934c(0x1f8)]()[_0x28934c(0x211)](_0x110675=>({'title':_0x110675[_0x28934c(0x1cc)],'items':_0x110675[_0x28934c(0x22b)][_0x28934c(0x211)](_0x5d89e0=>({'id':_0x5d89e0['id'],'title':_0x5d89e0[_0x28934c(0x1cc)]||_0x27d84a(this[_0x28934c(0x202)][_0x28934c(0x200)],_0x28934c(0x215)),'createdAt':new Date(_0x5d89e0[_0x28934c(0x230)])[_0x28934c(0x227)](),'active':_0x5d89e0['id']===_0x1a79c4,'pinned':_0x5d89e0[_0x28934c(0x22c)]}))}));this[_0x28934c(0x1fb)][_0x28934c(0x231)](_0x1f005a);}[_0x45a116(0x20c)](_0x1334ee,_0x118959){const _0xdb7e57=_0x45a116;this[_0xdb7e57(0x1fb)][_0xdb7e57(0x1e6)](_0x1334ee,_0x118959,!0x0);}[_0x45a116(0x1dc)](_0x19d68f){const _0x44cb67=_0x45a116;this[_0x44cb67(0x1fb)][_0x44cb67(0x1e6)](_0x19d68f,null,!0x1);}[_0x45a116(0x21e)](_0x49c25c,_0x3a96e5,_0x13949c){const _0xcacca0=_0x45a116,_0x1a0af9=this[_0xcacca0(0x1f1)](_0x3a96e5,_0x13949c);this[_0xcacca0(0x1fb)][_0xcacca0(0x1ee)](_0x1a0af9),_0x13949c&&this[_0xcacca0(0x1dc)](_0x13949c),this[_0xcacca0(0x1fb)][_0xcacca0(0x205)](!0x1);}[_0x45a116(0x1f1)](_0x4f6f4f,_0x51d947){const _0x5a3598=_0x45a116,_0x47dd32=_0x51d947?this[_0x5a3598(0x1e8)][_0x5a3598(0x22f)](_0x51d947):null,_0x2a27f5=_0x47dd32?.[_0x5a3598(0x1cc)]||_0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x215));switch(_0x4f6f4f){case _0x5a3598(0x216):return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1e0),_0x2a27f5);case _0x5a3598(0x1e4):{const _0x4a09bf=_0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x47dd32?.[_0x5a3598(0x22c)]?_0x5a3598(0x1ef):_0x5a3598(0x225));return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1ec),[_0x4a09bf,_0x2a27f5]);}case _0x5a3598(0x208):return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1da),_0x2a27f5);case _0x5a3598(0x1ce):case _0x5a3598(0x1d4):return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1f4));default:return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1e3));}}[_0x45a116(0x1f8)](){const _0x22ee0a=_0x45a116,_0x122705=new Date(),_0x4cfd7a=new Date(_0x122705[_0x22ee0a(0x1d8)](),_0x122705[_0x22ee0a(0x223)](),_0x122705[_0x22ee0a(0x21c)]()),_0x26dc60=new Date(_0x4cfd7a);_0x26dc60[_0x22ee0a(0x221)](_0x26dc60[_0x22ee0a(0x21c)]()-0x1);const _0x2e173e=new Date(_0x4cfd7a);_0x2e173e[_0x22ee0a(0x221)](_0x2e173e[_0x22ee0a(0x21c)]()-0xe);const _0x4b7b0f=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'pinned':!0x0}),_0x417876=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'from':_0x4cfd7a,'to':_0x4cfd7a}),_0x258436=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'from':_0x26dc60,'to':_0x26dc60}),_0x1bd15d=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'from':_0x2e173e,'to':_0x26dc60}),_0x350758=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'to':_0x2e173e}),_0x4b049c=[];return _0x4b7b0f[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x1f9)),'items':_0x4b7b0f}),_0x417876[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x1e9)),'items':_0x417876}),_0x258436[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x1ed)),'items':_0x258436}),_0x1bd15d[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x1eb)),'items':_0x1bd15d}),_0x350758[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x20d)),'items':_0x350758}),_0x4b049c;}[_0x45a116(0x1f0)](_0x5b94ee){const _0x542c38=_0x45a116;this[_0x542c38(0x1fb)][_0x542c38(0x213)](_0x5b94ee);}}
|
|
23
|
+
const _0x5b34ec=_0x5844;(function(_0xe63a16,_0x6de140){const _0x40fed9=_0x5844,_0x55b72c=_0xe63a16();while(!![]){try{const _0x16accd=parseInt(_0x40fed9(0x207))/0x1*(parseInt(_0x40fed9(0x20d))/0x2)+-parseInt(_0x40fed9(0x21c))/0x3*(parseInt(_0x40fed9(0x215))/0x4)+-parseInt(_0x40fed9(0x21a))/0x5*(-parseInt(_0x40fed9(0x21d))/0x6)+parseInt(_0x40fed9(0x1e7))/0x7*(parseInt(_0x40fed9(0x206))/0x8)+parseInt(_0x40fed9(0x1dd))/0x9+parseInt(_0x40fed9(0x208))/0xa+-parseInt(_0x40fed9(0x1e1))/0xb;if(_0x16accd===_0x6de140)break;else _0x55b72c['push'](_0x55b72c['shift']());}catch(_0x3a4156){_0x55b72c['push'](_0x55b72c['shift']());}}}(_0x2707,0x54411));import{ContextPlugin as _0xa1891e}from'ckeditor5/src/core.js';function _0x2707(){const _0x33e818=['getMonth','itemId','_handleHistoryErrorUI','resizedTabs','pin','requires','showError','_handleEditTitle','_handleSelectConversation','getItems','handleRemovedConversation','push','editConversationTitle','isOfficialPlugin','isPremiumPlugin','pinned','updateItemTitle','removeHistoryItem','_handleTogglePin','getGroupId','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','getItem','updateItemLoadingState','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','setDate','activateTab','612774XLliCp','length','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','rename','8755087msqTFK','itemUpdated','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','resizeTabs','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','setLoadingSkeleton','7uRDrGI','_clearItemLoading','_getCategorizedItems','operation','_setItemLoading','items','AIChatHistoryController','activateTab:history','_aiChatController','_setIsMaximized','_aiConnector','init','chat','AI_CHAT_HISTORY_UNPIN_ACTION','AI_CHAT_HISTORY_PIN_ACTION','loadItems','AI_CHAT_UNTITLED_CONVERSATION','_generateErrorMessage','plugins','pluginName','removeConversation','get','getFullYear','listenTo','history','openChat','title','updateItems','change:activeConversation','AI_CHAT_HISTORY_CATEGORY_TODAY','error','1944632NCSBBJ','17383TzlUXD','426000amEdZd','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','updates','setConversationPinned','itemsLoaded','34XNhkVA','selectConversation','setIsMaximized','unpin','_aiChatHistoryUi','updateItemPinned','AI_CHAT_HISTORY_CATEGORY_LATER','_updateHistoryItemsUI','144076AIUavo','createdAt','locale','getDate','_handleRemove','35gckTLN','itemRemoved','3TPLeVb','452370KoIKxP','AI_CHAT_HISTORY_ERROR_GENERIC','loadConversation','activeConversation','view','map','remove','_showConversationHistory','AI_CHAT_HISTORY_CATEGORY_PINNED','context','removeItem','toLocaleDateString','resize'];_0x2707=function(){return _0x33e818;};return _0x2707();}function _0x5844(_0x1da1f8,_0x4c2deb){const _0x2707e5=_0x2707();return _0x5844=function(_0x58444d,_0x3ad95d){_0x58444d=_0x58444d-0x1c5;let _0x1c4e1a=_0x2707e5[_0x58444d];return _0x1c4e1a;},_0x5844(_0x1da1f8,_0x4c2deb);}import{AIConnector as _0x514e7b}from'../aicore/aiconnector.js';import{AIChatController as _0x3bfa5d}from'../aichat/aichatcontroller.js';import{AITabs as _0x4cc83f}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x254082}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x5b1c68}from'./model/aichathistoryconversations.js';import{getTranslation as _0x24aef3}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0xa1891e{[_0x5b34ec(0x1f1)];[_0x5b34ec(0x211)];[_0x5b34ec(0x1ef)];static get[_0x5b34ec(0x1c8)](){return[_0x514e7b,_0x3bfa5d,_0x254082,_0x4cc83f];}static get[_0x5b34ec(0x1fa)](){const _0x426dfd=_0x5b34ec;return _0x426dfd(0x1ed);}static get[_0x5b34ec(0x1d0)](){return!0x0;}static get[_0x5b34ec(0x1d1)](){return!0x0;}[_0x5b34ec(0x1f2)](){const _0x19d348=_0x5b34ec;this[_0x19d348(0x1f1)]=this[_0x19d348(0x226)][_0x19d348(0x1f9)][_0x19d348(0x1fc)](_0x514e7b),this[_0x19d348(0x211)]=this[_0x19d348(0x226)][_0x19d348(0x1f9)][_0x19d348(0x1fc)](_0x254082),this[_0x19d348(0x1ef)]=this[_0x19d348(0x226)][_0x19d348(0x1f9)][_0x19d348(0x1fc)](_0x3bfa5d);const _0x498a79=this[_0x19d348(0x226)][_0x19d348(0x1f9)][_0x19d348(0x1fc)](_0x4cc83f),_0x48e3f5=this[_0x19d348(0x1ef)][_0x19d348(0x1d6)]();this[_0x19d348(0x1ff)]=new _0x5b1c68({'connector':this[_0x19d348(0x1f1)],'group':_0x48e3f5}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x1fb),(_0x3b1996,_0x1bbca8)=>{const _0x38227c=_0x19d348;this[_0x38227c(0x1eb)](_0x1bbca8['id'],_0x38227c(0x223)),this[_0x38227c(0x219)](_0x1bbca8['id']);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x1cf),(_0x1178d2,_0x4bcb18)=>{const _0x504fe7=_0x19d348;this[_0x504fe7(0x1eb)](_0x4bcb18['id'],_0x504fe7(0x1e0)),this[_0x504fe7(0x1ca)](_0x4bcb18['id'],_0x4bcb18[_0x504fe7(0x201)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ff)],_0x19d348(0x1e2),(_0x30e506,_0x538775)=>{const _0x224ab4=_0x19d348;void 0x0!==_0x538775[_0x224ab4(0x20a)][_0x224ab4(0x201)]&&this[_0x224ab4(0x211)][_0x224ab4(0x1d3)](_0x538775[_0x224ab4(0x22b)],_0x538775[_0x224ab4(0x20a)][_0x224ab4(0x201)]),void 0x0!==_0x538775[_0x224ab4(0x20a)][_0x224ab4(0x1d2)]&&this[_0x224ab4(0x214)](),this[_0x224ab4(0x1e8)](_0x538775[_0x224ab4(0x22b)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ff)],_0x19d348(0x21b),(_0x2fe4d7,_0x55f53f)=>{const _0x1ac1e4=_0x19d348;this[_0x1ac1e4(0x1ef)][_0x1ac1e4(0x1cd)](_0x55f53f[_0x1ac1e4(0x22b)]),this[_0x1ac1e4(0x211)][_0x1ac1e4(0x1d4)](_0x55f53f[_0x1ac1e4(0x22b)]),this[_0x1ac1e4(0x1e8)](_0x55f53f[_0x1ac1e4(0x22b)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ff)],_0x19d348(0x20c),()=>{const _0x7b95c3=_0x19d348;this[_0x7b95c3(0x214)]();}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ff)],_0x19d348(0x205),(_0x3d1b27,_0x3c8823)=>{const _0x4fcfc8=_0x19d348;this[_0x4fcfc8(0x1c5)](_0x3c8823[_0x4fcfc8(0x205)],_0x3c8823[_0x4fcfc8(0x1ea)],_0x3c8823[_0x4fcfc8(0x22b)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x20e),(_0x98d031,_0x4b5048)=>{const _0x29e9db=_0x19d348;this[_0x29e9db(0x1cb)](_0x4b5048['id']);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x20b),(_0x22b420,_0x3c7775)=>{const _0xc786eb=_0x19d348,_0x5214b4=_0x3c7775[_0xc786eb(0x1d2)]?_0xc786eb(0x1c7):_0xc786eb(0x210);this[_0xc786eb(0x1eb)](_0x3c7775['id'],_0x5214b4),this[_0xc786eb(0x1d5)](_0x3c7775['id'],_0x3c7775[_0xc786eb(0x1d2)]);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x200),()=>{const _0x58e9d2=_0x19d348;_0x498a79[_0x58e9d2(0x221)][_0x58e9d2(0x1dc)](_0x58e9d2(0x1f3));}),this[_0x19d348(0x1fe)](this[_0x19d348(0x1ef)],_0x19d348(0x203),()=>{const _0x1b5a36=_0x19d348;this[_0x1b5a36(0x214)]();}),_0x498a79[_0x19d348(0x221)]['on'](_0x19d348(0x1ee),()=>{const _0x4688e3=_0x19d348;this[_0x4688e3(0x224)]();}),this[_0x19d348(0x1fe)](_0x498a79,_0x19d348(0x1c6),(_0x45fd8f,_0x1f106c)=>{const _0x41df91=_0x19d348;this[_0x41df91(0x1f0)](_0x1f106c);}),this[_0x19d348(0x1fe)](this[_0x19d348(0x211)],_0x19d348(0x1e4),()=>{const _0x8bb7b2=_0x19d348;_0x498a79[_0x8bb7b2(0x229)]();});}async[_0x5b34ec(0x1ca)](_0x2f4c03,_0x29921f){const _0x31669d=_0x5b34ec;await this[_0x31669d(0x1ff)][_0x31669d(0x1d3)](_0x2f4c03,_0x29921f);}async[_0x5b34ec(0x1d5)](_0x121b2f,_0x13523d){const _0x2feae5=_0x5b34ec;await this[_0x2feae5(0x1ff)][_0x2feae5(0x212)](_0x121b2f,_0x13523d);}async[_0x5b34ec(0x219)](_0x25a4e4){const _0x28298f=_0x5b34ec;await this[_0x28298f(0x1ff)][_0x28298f(0x227)](_0x25a4e4);}async[_0x5b34ec(0x1cb)](_0xf9a209){const _0x2b7362=_0x5b34ec;await this[_0x2b7362(0x1ef)][_0x2b7362(0x21f)](_0xf9a209);}async[_0x5b34ec(0x224)](){const _0x217fea=_0x5b34ec;this[_0x217fea(0x211)][_0x217fea(0x1c9)](''),this[_0x217fea(0x211)][_0x217fea(0x1e6)](!0x0),await this[_0x217fea(0x1ff)][_0x217fea(0x1f2)](),this[_0x217fea(0x211)][_0x217fea(0x1e6)](!0x1);}[_0x5b34ec(0x214)](){const _0x1709c5=_0x5b34ec,_0x53a319=this[_0x1709c5(0x1ef)][_0x1709c5(0x220)]?.['id'],_0x2b7303=this[_0x1709c5(0x1e9)]()[_0x1709c5(0x222)](_0x4d1afb=>({'title':_0x4d1afb[_0x1709c5(0x201)],'items':_0x4d1afb[_0x1709c5(0x1ec)][_0x1709c5(0x222)](_0x1171aa=>({'id':_0x1171aa['id'],'title':_0x1171aa[_0x1709c5(0x201)]||_0x24aef3(this[_0x1709c5(0x226)][_0x1709c5(0x217)],_0x1709c5(0x1f7)),'createdAt':new Date(_0x1171aa[_0x1709c5(0x216)])[_0x1709c5(0x228)](),'active':_0x1171aa['id']===_0x53a319,'pinned':_0x1171aa[_0x1709c5(0x1d2)]}))}));this[_0x1709c5(0x211)][_0x1709c5(0x202)](_0x2b7303);}[_0x5b34ec(0x1eb)](_0x15aa2e,_0x128640){const _0x1797a3=_0x5b34ec;this[_0x1797a3(0x211)][_0x1797a3(0x1d9)](_0x15aa2e,_0x128640,!0x0);}[_0x5b34ec(0x1e8)](_0xd6f1d2){const _0x484857=_0x5b34ec;this[_0x484857(0x211)][_0x484857(0x1d9)](_0xd6f1d2,null,!0x1);}[_0x5b34ec(0x1c5)](_0x144dc5,_0x289693,_0xf4c661){const _0x446cc1=_0x5b34ec,_0x4e048a=this[_0x446cc1(0x1f8)](_0x289693,_0xf4c661);this[_0x446cc1(0x211)][_0x446cc1(0x1c9)](_0x4e048a),_0xf4c661&&this[_0x446cc1(0x1e8)](_0xf4c661),this[_0x446cc1(0x211)][_0x446cc1(0x1e6)](!0x1);}[_0x5b34ec(0x1f8)](_0x363cc0,_0x171654){const _0x107146=_0x5b34ec,_0x354a4f=_0x171654?this[_0x107146(0x1ff)][_0x107146(0x1d8)](_0x171654):null,_0x19fd8c=_0x354a4f?.[_0x107146(0x201)]||_0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x1f7));switch(_0x363cc0){case _0x107146(0x1d3):return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x1e3),_0x19fd8c);case _0x107146(0x212):{const _0x47d850=_0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x354a4f?.[_0x107146(0x1d2)]?_0x107146(0x1f4):_0x107146(0x1f5));return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x1df),[_0x47d850,_0x19fd8c]);}case _0x107146(0x227):return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x1e5),_0x19fd8c);case _0x107146(0x1f2):case _0x107146(0x1f6):return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x209));default:return _0x24aef3(this[_0x107146(0x226)][_0x107146(0x217)],_0x107146(0x21e));}}[_0x5b34ec(0x1e9)](){const _0x1f0b6b=_0x5b34ec,_0x3f6309=new Date(),_0x1580bd=new Date(_0x3f6309[_0x1f0b6b(0x1fd)](),_0x3f6309[_0x1f0b6b(0x22a)](),_0x3f6309[_0x1f0b6b(0x218)]()),_0x537336=new Date(_0x1580bd);_0x537336[_0x1f0b6b(0x1db)](_0x537336[_0x1f0b6b(0x218)]()-0x1);const _0x46bea9=new Date(_0x1580bd);_0x46bea9[_0x1f0b6b(0x1db)](_0x46bea9[_0x1f0b6b(0x218)]()-0xe);const _0x57fea7=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'pinned':!0x0}),_0x4b5d35=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'from':_0x1580bd,'to':_0x1580bd}),_0x5829f8=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'from':_0x537336,'to':_0x537336}),_0x455335=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'from':_0x46bea9,'to':_0x537336}),_0x1177fc=this[_0x1f0b6b(0x1ff)][_0x1f0b6b(0x1cc)]({'to':_0x46bea9}),_0x445141=[];return _0x57fea7[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x225)),'items':_0x57fea7}),_0x4b5d35[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x204)),'items':_0x4b5d35}),_0x5829f8[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x1da)),'items':_0x5829f8}),_0x455335[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x1d7)),'items':_0x455335}),_0x1177fc[_0x1f0b6b(0x1de)]>0x0&&_0x445141[_0x1f0b6b(0x1ce)]({'title':_0x24aef3(this[_0x1f0b6b(0x226)][_0x1f0b6b(0x217)],_0x1f0b6b(0x213)),'items':_0x1177fc}),_0x445141;}[_0x5b34ec(0x1f0)](_0x565082){const _0xb047bd=_0x5b34ec;this[_0xb047bd(0x211)][_0xb047bd(0x20f)](_0x565082);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x390c1d=_0x46c5;function _0x576e(){const _0x5e261e=['selectConversation','9667pqigpS','2538SJubtJ','AIChatHistoryUI','401962RvczOe','updateHistoryItemsWithCategories','pluginName','delegate','updateItems','setIsMaximized','updateItemTitle','updateItemLoadingState','resizeTabs','1335892MnLreH','editConversationTitle','plugins','isLoading','openChat','locale','AITabs','AI_CHAT_HISTORY_HEADING','context','get','history','isOfficialPlugin','7200592WDPZxT','2kcxrkc','removeConversation','hideError','showError','addTab','3QyyjZP','9JEzGgS','errorMessage','2972890uIUiZz','isMaximized','setLoadingSkeleton','requires','858740HfvZDh','showResizeButton','removeHistoryItem','view','showConversationHistory','setConversationPinned','isPremiumPlugin','_historyView','33204Edgsfc','869MAUKHy'];_0x576e=function(){return _0x5e261e;};return _0x576e();}(function(_0x3c8755,_0x594d65){const _0x4d526b=_0x46c5,_0xa48ecf=_0x3c8755();while(!![]){try{const _0x1c3560=-parseInt(_0x4d526b(0xd6))/0x1*(-parseInt(_0x4d526b(0xf0))/0x2)+parseInt(_0x4d526b(0xdb))/0x3*(-parseInt(_0x4d526b(0xc9))/0x4)+parseInt(_0x4d526b(0xe2))/0x5+parseInt(_0x4d526b(0xee))/0x6*(-parseInt(_0x4d526b(0xed))/0x7)+parseInt(_0x4d526b(0xd5))/0x8+-parseInt(_0x4d526b(0xdc))/0x9*(parseInt(_0x4d526b(0xde))/0xa)+parseInt(_0x4d526b(0xeb))/0xb*(parseInt(_0x4d526b(0xea))/0xc);if(_0x1c3560===_0x594d65)break;else _0xa48ecf['push'](_0xa48ecf['shift']());}catch(_0x5b2de3){_0xa48ecf['push'](_0xa48ecf['shift']());}}}(_0x576e,0x74718));import{ContextPlugin as _0x4396bb}from'ckeditor5/src/core.js';import{AITabs as _0x370fcc}from'../aitabs/aitabs.js';import{IconAIHistory as _0xe01951}from'ckeditor5/src/icons.js';function _0x46c5(_0x423cd2,_0x4bf38c){const _0x576ed3=_0x576e();return _0x46c5=function(_0x46c56a,_0x23609e){_0x46c56a=_0x46c56a-0xc8;let _0x42ea78=_0x576ed3[_0x46c56a];return _0x42ea78;},_0x46c5(_0x423cd2,_0x4bf38c);}import{AIChatHistoryView as _0x45e0ad}from'./ui/aichathistoryview.js';import{getTranslation as _0x188b93}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x390c1d(0xe6),_0x390c1d(0xd7),_0x390c1d(0xca),_0x390c1d(0xe7),_0x390c1d(0xec),_0x390c1d(0xcd),_0x390c1d(0xc8)];export class AIChatHistoryUI extends _0x4396bb{static get[_0x390c1d(0xe1)](){return[_0x370fcc];}[_0x390c1d(0xe9)];static get[_0x390c1d(0xf2)](){const _0x3cd6ee=_0x390c1d;return _0x3cd6ee(0xef);}static get[_0x390c1d(0xd4)](){return!0x0;}static get[_0x390c1d(0xe8)](){return!0x0;}constructor(_0x39d5e9){const _0x5904ca=_0x390c1d;super(_0x39d5e9);const _0x1c904f=this[_0x5904ca(0xd1)][_0x5904ca(0xcb)][_0x5904ca(0xd2)](_0x5904ca(0xcf));this[_0x5904ca(0xe9)]=new _0x45e0ad(this[_0x5904ca(0xd1)][_0x5904ca(0xce)],_0x1c904f[_0x5904ca(0xe3)]),this[_0x5904ca(0xe9)][_0x5904ca(0xf3)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x1c904f[_0x5904ca(0xe5)][_0x5904ca(0xda)]({'id':_0x5904ca(0xd3),'buttonLabel':_0x188b93(this[_0x5904ca(0xd1)][_0x5904ca(0xce)],_0x5904ca(0xd0)),'buttonIcon':_0xe01951,'order':0x0,'content':this[_0x5904ca(0xe9)]});}[_0x390c1d(0xe4)](_0x1944f6){const _0x215cff=_0x390c1d;this[_0x215cff(0xe9)][_0x215cff(0xe4)](_0x1944f6);}[_0x390c1d(0xf4)](_0x7dc937){const _0x3b6795=_0x390c1d;this[_0x3b6795(0xe9)][_0x3b6795(0xf1)](_0x7dc937);}[_0x390c1d(0xf6)](_0x1cdebc,_0x2226eb){const _0xf9b84a=_0x390c1d;this[_0xf9b84a(0xe9)][_0xf9b84a(0xf6)](_0x1cdebc,_0x2226eb);}[_0x390c1d(0xf7)](_0x21c8b5,_0x189706,_0x4fb97b){const _0x492373=_0x390c1d;this[_0x492373(0xe9)][_0x492373(0xf7)](_0x21c8b5,_0x189706,_0x4fb97b);}[_0x390c1d(0xe0)](_0x4d7f52){const _0x13b931=_0x390c1d;this[_0x13b931(0xe9)][_0x13b931(0xcc)]=_0x4d7f52;}[_0x390c1d(0xd9)](_0x11e59f){const _0xacbd17=_0x390c1d;this[_0xacbd17(0xe9)][_0xacbd17(0xdd)]=_0x11e59f;}[_0x390c1d(0xd8)](){const _0xaf5001=_0x390c1d;this[_0xaf5001(0xe9)][_0xaf5001(0xdd)]='';}[_0x390c1d(0xf5)](_0x4172b7){const _0x1e85c1=_0x390c1d;this[_0x1e85c1(0xe9)][_0x1e85c1(0xdf)]=_0x4172b7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x459f25=_0xff9f;function _0xff9f(_0x2ec146,_0x3b50e2){const _0x4ce11c=_0x4ce1();return _0xff9f=function(_0xff9f75,_0x362aa0){_0xff9f75=_0xff9f75-0x14f;let _0x266eea=_0x4ce11c[_0xff9f75];return _0x266eea;},_0xff9f(_0x2ec146,_0x3b50e2);}(function(_0x395806,_0x2f4494){const _0x4552b8=_0xff9f,_0x4e162e=_0x395806();while(!![]){try{const _0x3053d9=parseInt(_0x4552b8(0x17c))/0x1+parseInt(_0x4552b8(0x161))/0x2*(parseInt(_0x4552b8(0x151))/0x3)+-parseInt(_0x4552b8(0x15d))/0x4*(-parseInt(_0x4552b8(0x178))/0x5)+parseInt(_0x4552b8(0x16a))/0x6*(parseInt(_0x4552b8(0x173))/0x7)+-parseInt(_0x4552b8(0x157))/0x8*(-parseInt(_0x4552b8(0x15b))/0x9)+-parseInt(_0x4552b8(0x170))/0xa+parseInt(_0x4552b8(0x163))/0xb*(-parseInt(_0x4552b8(0x16e))/0xc);if(_0x3053d9===_0x2f4494)break;else _0x4e162e['push'](_0x4e162e['shift']());}catch(_0x392a8b){_0x4e162e['push'](_0x4e162e['shift']());}}}(_0x4ce1,0x294bd));import{EmitterMixin as _0x1ccdec}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x50af00}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x1ccdec(){[_0x459f25(0x15e)]=[];[_0x459f25(0x17f)];[_0x459f25(0x177)];constructor({connector:_0x336423,group:_0x57d1c5}){const _0x542c89=_0x459f25;super(),this[_0x542c89(0x17f)]=_0x336423,this[_0x542c89(0x177)]=_0x57d1c5;}async[_0x459f25(0x17b)](){const _0x54f307=_0x459f25;try{const _0x7a7831=this[_0x54f307(0x17f)][_0x54f307(0x165)](this[_0x54f307(0x177)]),_0x51f114=await _0x7a7831[_0x54f307(0x166)]();this[_0x54f307(0x159)](_0x51f114);}catch(_0x9d364b){this[_0x54f307(0x156)](_0x54f307(0x158),{'error':_0x9d364b,'operation':_0x54f307(0x17b)});}}[_0x459f25(0x175)](_0x1772aa){const _0x5e5824=_0x459f25;this[_0x5e5824(0x15e)][_0x5e5824(0x179)](_0x1772aa);}async[_0x459f25(0x16f)](_0x616efe){const _0x240636=_0x459f25,_0x553588=this[_0x240636(0x15e)][_0x240636(0x155)](_0x3d946b=>_0x3d946b['id']===_0x616efe);if(-0x1===_0x553588)return!0x1;try{return await this[_0x240636(0x17f)][_0x240636(0x162)](_0x616efe)[_0x240636(0x14f)](),this[_0x240636(0x15e)][_0x240636(0x16b)](_0x553588,0x1),this[_0x240636(0x156)](_0x240636(0x15c),{'itemId':_0x616efe}),!0x0;}catch(_0x50a990){return this[_0x240636(0x156)](_0x240636(0x158),{'error':_0x50a990,'operation':_0x240636(0x16f),'itemId':_0x616efe}),!0x1;}}[_0x459f25(0x169)](_0x38b426){const _0x35801a=_0x459f25;return this[_0x35801a(0x15e)][_0x35801a(0x167)](_0x4a26c4=>_0x4a26c4['id']===_0x38b426);}async[_0x459f25(0x160)](_0x4a641e,_0x34704e){const _0x1a058e=_0x459f25,_0x21ba4e=this[_0x1a058e(0x169)](_0x4a641e);if(!_0x21ba4e)return!0x1;try{return await this[_0x1a058e(0x17f)][_0x1a058e(0x17d)](_0x4a641e,{'title':_0x34704e})[_0x1a058e(0x164)](),_0x21ba4e[_0x1a058e(0x174)](_0x34704e),this[_0x1a058e(0x156)](_0x1a058e(0x154),{'itemId':_0x4a641e,'updates':{'title':_0x34704e}}),!0x0;}catch(_0x571f48){return this[_0x1a058e(0x156)](_0x1a058e(0x158),{'error':_0x571f48,'operation':_0x1a058e(0x160),'itemId':_0x4a641e}),!0x1;}}async[_0x459f25(0x150)](_0x1e3eda,_0x2365e8){const _0x17d34f=_0x459f25,_0xfa7b20=this[_0x17d34f(0x169)](_0x1e3eda);if(!_0xfa7b20)return!0x1;try{return await this[_0x17d34f(0x17f)][_0x17d34f(0x17d)](_0x1e3eda,{'pinned':_0x2365e8})[_0x17d34f(0x164)](),_0xfa7b20[_0x17d34f(0x172)](_0x2365e8),this[_0x17d34f(0x156)](_0x17d34f(0x154),{'itemId':_0x1e3eda,'updates':{'pinned':_0x2365e8}}),!0x0;}catch(_0x403425){return this[_0x17d34f(0x156)](_0x17d34f(0x158),{'error':_0x403425,'operation':_0x17d34f(0x150),'itemId':_0x1e3eda}),!0x1;}}[_0x459f25(0x159)](_0x2243fe){const _0x458d65=_0x459f25;try{this[_0x458d65(0x15e)]=[],_0x2243fe[_0x458d65(0x176)](_0x429e61=>{const _0x17d6cd=_0x458d65;this[_0x17d6cd(0x175)](new _0x50af00(_0x429e61));}),this[_0x458d65(0x156)](_0x458d65(0x17e),{'items':[...this[_0x458d65(0x15e)]]});}catch(_0x4e3e23){this[_0x458d65(0x156)](_0x458d65(0x158),{'error':_0x4e3e23,'operation':_0x458d65(0x159)});}}[_0x459f25(0x171)](_0x490ee3={}){const _0x2e93a3=_0x459f25,_0x55dd51=void 0x0!==_0x490ee3[_0x2e93a3(0x15a)]&&_0x490ee3[_0x2e93a3(0x15a)],_0x3d46a4=_0x490ee3[_0x2e93a3(0x168)]?new Date(_0x490ee3[_0x2e93a3(0x168)][_0x2e93a3(0x153)](),_0x490ee3[_0x2e93a3(0x168)][_0x2e93a3(0x16c)](),_0x490ee3[_0x2e93a3(0x168)][_0x2e93a3(0x152)]()):null,_0x43c6e8=_0x490ee3['to']?new Date(_0x490ee3['to'][_0x2e93a3(0x153)](),_0x490ee3['to'][_0x2e93a3(0x16c)](),_0x490ee3['to'][_0x2e93a3(0x152)]()):null;return this[_0x2e93a3(0x15e)][_0x2e93a3(0x15f)](_0x46f4c3=>{const _0xf59c86=_0x2e93a3;if(_0x46f4c3[_0xf59c86(0x15a)]!==_0x55dd51)return!0x1;if(_0x43c6e8){const _0xe10832=new Date(_0x46f4c3[_0xf59c86(0x16d)][_0xf59c86(0x153)](),_0x46f4c3[_0xf59c86(0x16d)][_0xf59c86(0x16c)](),_0x46f4c3[_0xf59c86(0x16d)][_0xf59c86(0x152)]());return _0x3d46a4?_0x3d46a4[_0xf59c86(0x17a)]()===_0x43c6e8[_0xf59c86(0x17a)]()?_0xe10832[_0xf59c86(0x17a)]()===_0x3d46a4[_0xf59c86(0x17a)]():_0xe10832<_0x43c6e8&&_0xe10832>=_0x3d46a4:_0xe10832<_0x43c6e8;}return!0x0;});}}function _0x4ce1(){const _0x39bb39=['updatePinned','7QhKcRO','updateTitle','addItem','map','group','5jxPysw','push','getTime','init','194314LQJgLt','updateConversation','itemsLoaded','connector','execute','updateItemPinned','9NfHaoq','getDate','getFullYear','itemUpdated','findIndex','fire','112wIndDs','error','loadItems','pinned','112932iiMMxQ','itemRemoved','1122788fEDruC','items','filter','updateItemTitle','108364bhXxTw','deleteConversation','4180EWaZQS','getResult','fetchConversations','getConversations','find','from','getItem','1597944gDZHRT','splice','getMonth','createdAt','19800GjnUvy','removeItem','2834040IxmoSC','getItems'];_0x4ce1=function(){return _0x39bb39;};return _0x4ce1();}
|