@ckeditor/ckeditor5-ai 47.0.0-alpha.6 → 47.0.0-alpha.8
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/LICENSE.md +4 -0
- 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 +147 -23
- package/dist/index.css +182 -24
- package/dist/index.js +4 -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 +5 -0
- package/lang/translations/af.po +224 -0
- package/lang/translations/ar.po +232 -0
- package/lang/translations/ast.po +224 -0
- package/lang/translations/az.po +224 -0
- package/lang/translations/be.po +226 -0
- package/lang/translations/bg.po +224 -0
- package/lang/translations/bn.po +224 -0
- package/lang/translations/bs.po +226 -0
- package/lang/translations/ca.po +224 -0
- package/lang/translations/cs.po +226 -0
- package/lang/translations/da.po +224 -0
- package/lang/translations/de-ch.po +224 -0
- package/lang/translations/de.po +224 -0
- package/lang/translations/el.po +224 -0
- package/lang/translations/en-au.po +224 -0
- package/lang/translations/en-gb.po +224 -0
- package/lang/translations/en.po +224 -0
- package/lang/translations/eo.po +224 -0
- package/lang/translations/es-co.po +224 -0
- package/lang/translations/es.po +224 -0
- package/lang/translations/et.po +224 -0
- package/lang/translations/eu.po +224 -0
- package/lang/translations/fa.po +222 -0
- package/lang/translations/fi.po +224 -0
- package/lang/translations/fr.po +224 -0
- package/lang/translations/gl.po +224 -0
- package/lang/translations/gu.po +224 -0
- package/lang/translations/he.po +224 -0
- package/lang/translations/hi.po +224 -0
- package/lang/translations/hr.po +226 -0
- package/lang/translations/hu.po +224 -0
- package/lang/translations/hy.po +224 -0
- package/lang/translations/id.po +222 -0
- package/lang/translations/it.po +224 -0
- package/lang/translations/ja.po +222 -0
- package/lang/translations/jv.po +224 -0
- package/lang/translations/kk.po +224 -0
- package/lang/translations/km.po +222 -0
- package/lang/translations/kn.po +224 -0
- package/lang/translations/ko.po +222 -0
- package/lang/translations/ku.po +224 -0
- package/lang/translations/lt.po +226 -0
- package/lang/translations/lv.po +226 -0
- package/lang/translations/ms.po +222 -0
- package/lang/translations/nb.po +224 -0
- package/lang/translations/ne.po +224 -0
- package/lang/translations/nl.po +224 -0
- package/lang/translations/no.po +224 -0
- package/lang/translations/oc.po +224 -0
- package/lang/translations/pl.po +226 -0
- package/lang/translations/pt-br.po +224 -0
- package/lang/translations/pt.po +224 -0
- package/lang/translations/ro.po +226 -0
- package/lang/translations/ru.po +226 -0
- package/lang/translations/si.po +224 -0
- package/lang/translations/sk.po +226 -0
- package/lang/translations/sl.po +228 -0
- package/lang/translations/sq.po +224 -0
- package/lang/translations/sr-latn.po +226 -0
- package/lang/translations/sr.po +226 -0
- package/lang/translations/sv.po +224 -0
- package/lang/translations/th.po +222 -0
- package/lang/translations/ti.po +224 -0
- package/lang/translations/tk.po +224 -0
- package/lang/translations/tr.po +224 -0
- package/lang/translations/tt.po +222 -0
- package/lang/translations/ug.po +222 -0
- package/lang/translations/uk.po +226 -0
- package/lang/translations/ur.po +224 -0
- package/lang/translations/uz.po +224 -0
- package/lang/translations/vi.po +222 -0
- package/lang/translations/zh-cn.po +222 -0
- package/lang/translations/zh.po +222 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +0 -2
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +3 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +12 -4
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +0 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +7 -3
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +1 -227
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.d.ts +3 -0
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +0 -30
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +4 -0
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.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.d.ts +1 -0
- 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 +8 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
- 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.d.ts +0 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.d.ts +0 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -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 +64 -9
- package/src/aicore/aiconnector.d.ts +13 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.d.ts +0 -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.d.ts +41 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +2 -2
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +16 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- 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.d.ts +0 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +164 -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.d.ts +0 -49
- 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.d.ts +0 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.d.ts +29 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +0 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +1 -2
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +0 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +0 -1
- 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.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +0 -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.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.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.d.ts +6 -16
- 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/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +17 -4
- package/theme/aichat/aichat.css +1 -0
- package/theme/aichat/aichatfeed.css +39 -0
- package/theme/aichat/aichathistory.css +26 -9
- package/theme/aichat/aiminitoolbar.css +8 -0
- package/theme/aichat/aisuggestioncontainer.css +6 -0
- package/theme/aieditorintegration/aitogglebutton.css +23 -0
- package/theme/aiquickactions/aiquickactions.css +23 -4
- package/theme/aireviewmode/aireviewmode-check-run-result.css +3 -2
- package/theme/aireviewmode/aireviewmode.css +23 -0
- package/theme/aitabs/aitabsview.css +6 -1
- package/theme/common/aibutton.css +1 -5
- package/theme/common/aiheader.css +1 -0
- package/theme/common/aitrackchanges.css +13 -0
- package/src/aiquickactions/utils/common-translations.d.ts +0 -9
- package/src/aiquickactions/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4aba14=_0x31e0;function _0x31e0(_0x5ed613,_0x3f2840){const _0x50ca23=_0x50ca();return _0x31e0=function(_0x31e0f6,_0x4b02d1){_0x31e0f6=_0x31e0f6-0x9f;let _0x480425=_0x50ca23[_0x31e0f6];return _0x480425;},_0x31e0(_0x5ed613,_0x3f2840);}(function(_0x511d7c,_0x5f392c){const _0x4185c3=_0x31e0,_0x2a7de0=_0x511d7c();while(!![]){try{const _0x3e39d0=parseInt(_0x4185c3(0xe8))/0x1+parseInt(_0x4185c3(0xbd))/0x2*(-parseInt(_0x4185c3(0xbb))/0x3)+parseInt(_0x4185c3(0xe1))/0x4+-parseInt(_0x4185c3(0xcf))/0x5+-parseInt(_0x4185c3(0xa3))/0x6*(parseInt(_0x4185c3(0xba))/0x7)+-parseInt(_0x4185c3(0x9f))/0x8+parseInt(_0x4185c3(0xe6))/0x9;if(_0x3e39d0===_0x5f392c)break;else _0x2a7de0['push'](_0x2a7de0['shift']());}catch(_0xbb945a){_0x2a7de0['push'](_0x2a7de0['shift']());}}}(_0x50ca,0x4218f));import{KeystrokeHandler as _0x53105e}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x302844,BodyCollection as _0x5247ec,clickOutsideHandler as _0x2808b9,ListItemButtonView as _0x5d8095,ListItemView as _0x47cd47,ListView as _0x15abbe,SplitButtonView as _0x2df27c,UIModel as _0x52d6a1,View as _0xc459cd}from'ckeditor5/src/ui.js';import{IconAddComment as _0x3dc0f4,IconDocumentWithLoupe as _0x4d28fb}from'ckeditor5/src/icons.js';import{getTranslation as _0x333328}from'../../../aicore/utils/common-translations.js';export class AIChatFeedSuggestionItemActionsView extends _0xc459cd{[_0x4aba14(0xd4)];[_0x4aba14(0xa5)];[_0x4aba14(0xc0)];[_0x4aba14(0xce)];constructor(_0x589dc5){const _0x1991cf=_0x4aba14;super(_0x589dc5);const _0x3e8893=this[_0x1991cf(0xb5)];this[_0x1991cf(0xaf)](_0x1991cf(0xb2),!0x0),this[_0x1991cf(0xaf)](_0x1991cf(0xdd),!0x0),this[_0x1991cf(0xc0)]=new _0x52d6a1({'label':_0x333328(_0x589dc5,_0x1991cf(0xac)),'icon':_0x4d28fb,'withText':!0x0,'type':_0x1991cf(0xb9),'actionName':_0x1991cf(0xc1)}),this[_0x1991cf(0xce)]=new _0x52d6a1({'label':_0x333328(_0x589dc5,_0x1991cf(0xd5)),'icon':_0x3dc0f4,'withText':!0x0,'type':_0x1991cf(0xb9),'actionName':_0x1991cf(0xa8)}),this[_0x1991cf(0xd4)]=new zo(_0x589dc5,{'listItemModels':[this[_0x1991cf(0xc0)],this[_0x1991cf(0xce)]]}),this[_0x1991cf(0xd4)]['on'](_0x1991cf(0xdc),()=>{const _0x32349e=_0x1991cf;this[_0x32349e(0xb0)](_0x32349e(0xa2));}),this[_0x1991cf(0xd4)]['on'](_0x1991cf(0xc1),()=>{const _0x49dfa3=_0x1991cf;this[_0x49dfa3(0xb0)](_0x49dfa3(0xc1));}),this[_0x1991cf(0xd4)]['on'](_0x1991cf(0xa8),()=>{const _0x2b5d18=_0x1991cf;this[_0x2b5d18(0xb0)](_0x2b5d18(0xa8));}),this[_0x1991cf(0xd4)][_0x1991cf(0xaf)]({'label':_0x1991cf(0xab),'tooltip':_0x333328(this[_0x1991cf(0xc6)],_0x1991cf(0xb8)),'withText':!0x0,'class':_0x1991cf(0xe2),'balloonPanelClass':_0x1991cf(0xae)}),this[_0x1991cf(0xd4)][_0x1991cf(0xb3)](_0x1991cf(0xb2))['to'](this),this[_0x1991cf(0xa5)]=this[_0x1991cf(0xbe)]([this[_0x1991cf(0xd4)]]),this[_0x1991cf(0xb6)]({'tag':_0x1991cf(0xc7),'attributes':{'class':['ck',_0x1991cf(0xe2),_0x3e8893['if'](_0x1991cf(0xdd),_0x1991cf(0xcb),_0x16c1bf=>!_0x16c1bf)]},'children':[this[_0x1991cf(0xd4)]]});}[_0x4aba14(0xa1)](_0x25ca8c){const _0x4f8b58=_0x4aba14,_0x2f33e7=this[_0x4f8b58(0xc6)];this[_0x4f8b58(0xd4)][_0x4f8b58(0xaf)]({'label':_0x333328(_0x2f33e7,_0x4f8b58(0xe3),_0x25ca8c),'tooltip':_0x333328(_0x2f33e7,_0x4f8b58(0xb8),_0x25ca8c)}),this[_0x4f8b58(0xc0)][_0x4f8b58(0xcd)]=_0x333328(_0x2f33e7,_0x4f8b58(0xac),_0x25ca8c),this[_0x4f8b58(0xce)][_0x4f8b58(0xcd)]=_0x333328(_0x2f33e7,_0x4f8b58(0xd5),_0x25ca8c);}}function _0x50ca(){const _0x1de6fd=['setTemplate','_setUpKeystrokes','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','button','343nUGVRa','29649KHeLqo','focus','42oeWSCr','createCollection','ltr','showChangeInTextModel','showChangeInText','width','keystrokeHandler','keys','class','locale','div','tooltip','pin','arrowless','ck-hidden','actionName','label','insertSuggestionModel','1934390hYUweY','_setUpList','attachToDom','balloonPanelView','destroy','actionsDropdown','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','element','listView','bottom','source','content','open','execute','isVisible','listenTo','unbind','uiLanguageDirection','61452hhgFqh','ck-ai-chat__feed__ai-suggestion__actions','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','esc','arrowView','13582611WRWgfr','listItemModels','19574OWQoVT','1636336hKmYII','delegate','updateLabels','applySuggestion','58092wTxAgj','detachFromDom','children','bodyCollection','hide','insertSuggestion','items','left','Apply','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','ck-ai-chat__feed__ai-suggestion__actions__balloon','set','fire','add','isEnabled','bind','balloonPanelClass','bindTemplate'];_0x50ca=function(){return _0x1de6fd;};return _0x50ca();}class zo extends _0x2df27c{[_0x4aba14(0xa6)];[_0x4aba14(0xd2)];[_0x4aba14(0xd7)];[_0x4aba14(0xc3)];constructor(_0x279b97,_0x264a57){const _0xb2ab04=_0x4aba14;super(_0x279b97),this[_0xb2ab04(0xd2)]=new _0x302844(this[_0xb2ab04(0xc6)]),this[_0xb2ab04(0xa6)]=new _0x5247ec(this[_0xb2ab04(0xc6)]),this[_0xb2ab04(0xa6)][_0xb2ab04(0xd1)](),this[_0xb2ab04(0xaf)](_0xb2ab04(0xb4),''),this[_0xb2ab04(0xd2)][_0xb2ab04(0xb3)](_0xb2ab04(0xc5))['to'](this,_0xb2ab04(0xb4)),this[_0xb2ab04(0xd7)]=this[_0xb2ab04(0xd0)](_0x264a57[_0xb2ab04(0xe7)]),this[_0xb2ab04(0xa6)][_0xb2ab04(0xb1)](this[_0xb2ab04(0xd2)]),this[_0xb2ab04(0xd2)][_0xb2ab04(0xda)][_0xb2ab04(0xb1)](this[_0xb2ab04(0xd7)]),this[_0xb2ab04(0xe5)][_0xb2ab04(0xdf)](_0xb2ab04(0xc8)),this[_0xb2ab04(0xe5)][_0xb2ab04(0xaf)](_0xb2ab04(0xc8),_0x333328(this[_0xb2ab04(0xc6)],_0xb2ab04(0xad))),this[_0xb2ab04(0xb7)](),this['on'](_0xb2ab04(0xdc),()=>{const _0x488189=_0xb2ab04;this[_0x488189(0xd2)][_0x488189(0xa7)](),this[_0x488189(0xe5)][_0x488189(0xbc)]();}),this['on'](_0xb2ab04(0xdb),()=>{const _0x3d4818=_0xb2ab04;this[_0x3d4818(0xd2)][_0x3d4818(0xdd)]?(this[_0x3d4818(0xd2)][_0x3d4818(0xa7)](),this[_0x3d4818(0xe5)][_0x3d4818(0xbc)]()):(this[_0x3d4818(0xd2)][_0x3d4818(0xc9)]({'target':this[_0x3d4818(0xd6)],'positions':[_0x3d4818(0xbf)===this[_0x3d4818(0xc6)][_0x3d4818(0xe0)]?Jo:Qo]}),this[_0x3d4818(0xd7)][_0x3d4818(0xbc)]());}),_0x2808b9({'emitter':this[_0xb2ab04(0xd2)],'callback':()=>{const _0x2f615f=_0xb2ab04;this[_0x2f615f(0xd2)][_0x2f615f(0xa7)]();},'activator':()=>this[_0xb2ab04(0xd2)][_0xb2ab04(0xdd)],'contextElements':()=>[this[_0xb2ab04(0xd6)],this[_0xb2ab04(0xd2)][_0xb2ab04(0xd6)]]});}[_0x4aba14(0xd0)](_0xde724f){const _0x4ea58f=_0x4aba14,_0x53706a=this[_0x4ea58f(0xc6)],_0x53bc16=new _0x15abbe(_0x53706a);for(const _0xfe4b7b of _0xde724f){const _0x4119c7=new _0x47cd47(_0x53706a),_0x465dce=new _0x5d8095(_0x53706a);_0x465dce[_0x4ea58f(0xb3)](...Object[_0x4ea58f(0xc4)](_0xfe4b7b))['to'](_0xfe4b7b),_0x465dce[_0x4ea58f(0xa0)](_0x4ea58f(0xdc))['to'](_0x53bc16),_0x4119c7[_0x4ea58f(0xa5)][_0x4ea58f(0xb1)](_0x465dce),_0x53bc16[_0x4ea58f(0xa9)][_0x4ea58f(0xb1)](_0x4119c7);}return _0x53bc16[_0x4ea58f(0xa9)][_0x4ea58f(0xa0)](_0x4ea58f(0xdc))['to'](this),_0x53bc16['on'](_0x4ea58f(0xdc),_0x56c1c8=>{const _0x210a4e=_0x4ea58f,_0x5d1b17=_0x56c1c8[_0x210a4e(0xd9)];this[_0x210a4e(0xb0)](_0x5d1b17[_0x210a4e(0xcc)]),this[_0x210a4e(0xd2)][_0x210a4e(0xa7)](),this[_0x210a4e(0xe5)][_0x210a4e(0xbc)]();}),_0x53bc16;}[_0x4aba14(0xb7)](){const _0x1d4a45=_0x4aba14;this[_0x1d4a45(0xc3)]=new _0x53105e(),this[_0x1d4a45(0xc3)][_0x1d4a45(0xde)](this[_0x1d4a45(0xd2)][_0x1d4a45(0xd6)]),this[_0x1d4a45(0xc3)][_0x1d4a45(0xaf)](_0x1d4a45(0xe4),(_0x2c907f,_0xffd94e)=>{const _0x2e9637=_0x1d4a45;this[_0x2e9637(0xd2)][_0x2e9637(0xa7)](),this[_0x2e9637(0xe5)][_0x2e9637(0xbc)](),_0xffd94e();});}[_0x4aba14(0xd3)](){const _0x3fb5ba=_0x4aba14;super[_0x3fb5ba(0xd3)](),this[_0x3fb5ba(0xc3)][_0x3fb5ba(0xd3)](),this[_0x3fb5ba(0xd2)][_0x3fb5ba(0xd3)](),this[_0x3fb5ba(0xa6)][_0x3fb5ba(0xa4)]();}}function Jo(_0x134653){const _0x5841f0=_0x4aba14;return{'top':_0x134653[_0x5841f0(0xd8)],'left':_0x134653[_0x5841f0(0xaa)],'name':_0x5841f0(0xca),'config':{'withArrow':!0x1}};}function Qo(_0x21548b,_0x594fe2){const _0x2e431e=_0x4aba14;return{'top':_0x21548b[_0x2e431e(0xd8)],'left':_0x21548b[_0x2e431e(0xaa)]-(_0x594fe2[_0x2e431e(0xc2)]-_0x21548b[_0x2e431e(0xc2)]),'name':_0x2e431e(0xca),'config':{'withArrow':!0x1}};}
|
|
23
|
+
const _0x4552da=_0x5480;(function(_0x42043f,_0x53ae4f){const _0x4dfeae=_0x5480,_0x2e69c3=_0x42043f();while(!![]){try{const _0x5e2871=parseInt(_0x4dfeae(0x12e))/0x1*(-parseInt(_0x4dfeae(0x174))/0x2)+-parseInt(_0x4dfeae(0x15d))/0x3+-parseInt(_0x4dfeae(0x137))/0x4*(-parseInt(_0x4dfeae(0x146))/0x5)+parseInt(_0x4dfeae(0x153))/0x6*(parseInt(_0x4dfeae(0x11f))/0x7)+parseInt(_0x4dfeae(0x12d))/0x8*(parseInt(_0x4dfeae(0x141))/0x9)+parseInt(_0x4dfeae(0x165))/0xa+-parseInt(_0x4dfeae(0x15e))/0xb*(parseInt(_0x4dfeae(0x13a))/0xc);if(_0x5e2871===_0x53ae4f)break;else _0x2e69c3['push'](_0x2e69c3['shift']());}catch(_0x567547){_0x2e69c3['push'](_0x2e69c3['shift']());}}}(_0x3273,0x37b77));import{KeystrokeHandler as _0x2cb67a}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x576f2f,BodyCollection as _0xcaaaed,ButtonView as _0x406537,clickOutsideHandler as _0x3bb795,ListItemButtonView as _0x5c715a,ListItemView as _0x1eaaa5,ListView as _0x156d8e,SplitButtonView as _0x19fb46,UIModel as _0xe38fa,View as _0x5e8548}from'ckeditor5/src/ui.js';import{IconCheck as _0x426a69,IconAddComment as _0x940f19,IconDocumentWithLoupe as _0x5e25c9}from'ckeditor5/src/icons.js';function _0x5480(_0x49dca6,_0x5ae5da){const _0x3273a4=_0x3273();return _0x5480=function(_0x54802a,_0x28f1df){_0x54802a=_0x54802a-0x11b;let _0x167482=_0x3273a4[_0x54802a];return _0x167482;},_0x5480(_0x49dca6,_0x5ae5da);}import{getTranslation as _0xf86a3a}from'../../../aicore/utils/common-translations.js';export const ACTIONS=[_0x4552da(0x154),_0x4552da(0x167),_0x4552da(0x12f)];export class AIChatFeedSuggestionItemActionsView extends _0x5e8548{[_0x4552da(0x11e)];[_0x4552da(0x172)];[_0x4552da(0x17a)];[_0x4552da(0x123)];[_0x4552da(0x11d)];[_0x4552da(0x14e)]=0x1;[_0x4552da(0x17c)];[_0x4552da(0x15f)];[_0x4552da(0x127)]=!0x0;constructor(_0x1e85d7,_0x42329b){const _0xfb50ac=_0x4552da;super(_0x1e85d7),this[_0xfb50ac(0x17c)]=_0x42329b||[...ACTIONS],this[_0xfb50ac(0x15f)]=[...this[_0xfb50ac(0x17c)]];const _0x63f4c0=this[_0xfb50ac(0x130)];this[_0xfb50ac(0x161)](_0xfb50ac(0x14f),!0x0),this[_0xfb50ac(0x161)](_0xfb50ac(0x13f),!0x0),this[_0xfb50ac(0x17a)]=new _0xe38fa({'label':Ln(_0xfb50ac(0x154),_0x1e85d7,this[_0xfb50ac(0x14e)]),'icon':_0x426a69,'withText':!0x0,'type':_0xfb50ac(0x162),'actionName':_0xfb50ac(0x154)}),this[_0xfb50ac(0x123)]=new _0xe38fa({'label':Ln(_0xfb50ac(0x12f),_0x1e85d7,this[_0xfb50ac(0x14e)]),'icon':_0x5e25c9,'withText':!0x0,'type':_0xfb50ac(0x162),'actionName':_0xfb50ac(0x12f)}),this[_0xfb50ac(0x11d)]=new _0xe38fa({'label':Ln(_0xfb50ac(0x167),_0x1e85d7,this[_0xfb50ac(0x14e)]),'icon':_0x940f19,'withText':!0x0,'type':_0xfb50ac(0x162),'actionName':_0xfb50ac(0x167)}),this[_0xfb50ac(0x11e)]=this[_0xfb50ac(0x142)](_0x1e85d7),this[_0xfb50ac(0x172)]=this[_0xfb50ac(0x131)]([this[_0xfb50ac(0x11e)]]),this[_0xfb50ac(0x148)]({'tag':_0xfb50ac(0x171),'attributes':{'class':['ck',_0xfb50ac(0x17b),_0x63f4c0['if'](_0xfb50ac(0x13f),_0xfb50ac(0x138),_0x20c69e=>!_0x20c69e)]},'children':this[_0xfb50ac(0x172)]}),this[_0xfb50ac(0x128)](this,_0xfb50ac(0x143),()=>{const _0x528e8a=_0xfb50ac;this[_0x528e8a(0x15f)]=this[_0x528e8a(0x122)]?this[_0x528e8a(0x17c)][_0x528e8a(0x175)](_0x19ee2d=>_0x528e8a(0x154)!==_0x19ee2d):[...this[_0x528e8a(0x17c)]],this[_0x528e8a(0x155)](_0x1e85d7);});}[_0x4552da(0x155)](_0x16aa1f){const _0x340d27=_0x4552da;this[_0x340d27(0x172)][_0x340d27(0x12a)](this[_0x340d27(0x11e)])&&(this[_0x340d27(0x172)][_0x340d27(0x11c)](this[_0x340d27(0x11e)]),this[_0x340d27(0x11e)][_0x340d27(0x12c)]()),0x0!=this[_0x340d27(0x15f)][_0x340d27(0x168)]&&(this[_0x340d27(0x11e)]=this[_0x340d27(0x142)](_0x16aa1f),this[_0x340d27(0x172)][_0x340d27(0x14a)](this[_0x340d27(0x11e)]));}[_0x4552da(0x142)](_0x68dfd8){const _0x362364=_0x4552da,_0x5e24f5=0x1===this[_0x362364(0x15f)][_0x362364(0x168)]?this[_0x362364(0x152)](_0x68dfd8):this[_0x362364(0x15a)](_0x68dfd8),_0x1a2c1f=this[_0x362364(0x127)]?'':_0x362364(0x170);_0x5e24f5[_0x362364(0x161)]({'label':Ln(this[_0x362364(0x15f)][0x0],_0x68dfd8,this[_0x362364(0x14e)]),'tooltip':jn(this[_0x362364(0x15f)][0x0],_0x68dfd8,this[_0x362364(0x14e)]),'withText':!0x0,'class':_0x362364(0x126)+_0x1a2c1f});for(const _0x5ddbdf of this[_0x362364(0x15f)])_0x5e24f5['on'](_0x5ddbdf,()=>{const _0xbaa8dc=_0x362364;this[_0xbaa8dc(0x121)](_0x5ddbdf);});return this[_0x362364(0x127)]=!0x1,_0x5e24f5;}[_0x4552da(0x152)](_0x50900f){const _0x3ce795=_0x4552da,_0x2c7f41=new _0x406537(_0x50900f);return _0x2c7f41[_0x3ce795(0x161)]({'class':_0x3ce795(0x140),'withText':!0x0}),_0x2c7f41['on'](_0x3ce795(0x16c),()=>{const _0x26106e=_0x3ce795;_0x2c7f41[_0x26106e(0x121)](this[_0x26106e(0x15f)][0x0]);}),_0x2c7f41;}[_0x4552da(0x15a)](_0x59bc55){const _0x1d028e=_0x4552da,_0x5485aa=new Pn(_0x59bc55,{'listItemModels':this[_0x1d028e(0x15f)][_0x1d028e(0x169)](_0x3744b7=>{const _0x5b2393=_0x1d028e;switch(_0x3744b7){case _0x5b2393(0x154):return this[_0x5b2393(0x17a)];case _0x5b2393(0x12f):return this[_0x5b2393(0x123)];case _0x5b2393(0x167):return this[_0x5b2393(0x11d)];}})});return _0x5485aa[_0x1d028e(0x161)]({'label':Ln(this[_0x1d028e(0x15f)][0x0],_0x59bc55,this[_0x1d028e(0x14e)]),'tooltip':jn(this[_0x1d028e(0x15f)][0x0],_0x59bc55,this[_0x1d028e(0x14e)]),'withText':!0x0,'class':_0x1d028e(0x17b),'balloonPanelClass':_0x1d028e(0x145)}),_0x5485aa[_0x1d028e(0x133)](_0x1d028e(0x14f))['to'](this),_0x5485aa;}[_0x4552da(0x13c)](_0x25d012){const _0x4fd57f=_0x4552da,_0x21e408=this[_0x4fd57f(0x178)];this[_0x4fd57f(0x14e)]=_0x25d012||this[_0x4fd57f(0x14e)],this[_0x4fd57f(0x11e)][_0x4fd57f(0x161)]({'label':Ln(this[_0x4fd57f(0x15f)][0x0],_0x21e408,this[_0x4fd57f(0x14e)]),'tooltip':jn(this[_0x4fd57f(0x15f)][0x0],_0x21e408,this[_0x4fd57f(0x14e)])}),this[_0x4fd57f(0x17a)][_0x4fd57f(0x124)]=Ln(_0x4fd57f(0x154),_0x21e408,this[_0x4fd57f(0x14e)]),this[_0x4fd57f(0x123)][_0x4fd57f(0x124)]=Ln(_0x4fd57f(0x12f),_0x21e408,this[_0x4fd57f(0x14e)]),this[_0x4fd57f(0x11d)][_0x4fd57f(0x124)]=Ln(_0x4fd57f(0x167),_0x21e408,this[_0x4fd57f(0x14e)]);}}function _0x3273(){const _0x17221a=['13098ZKQwhr','filter','listItemModels','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','locale','delegate','applySuggestionModel','ck-ai-chat__feed__ai-suggestion__actions','_dropdownOriginalConfig','items','remove','insertSuggestionModel','actionsButton','51163kuVyUJ','element','fire','isTrackChangesOn','showChangeInTextModel','label','left','ck-ai-chat__feed__ai-suggestion__actions\x20','_firstRender','listenTo','listView','has','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','destroy','3376728jwTEBB','1VWgTfy','showChangeInText','bindTemplate','createCollection','attachToDom','bind','keys','bodyCollection','open','524500gGPFip','ck-hidden','source','10644QAFlbz','hide','updateLabels','tooltip','_setUpKeystrokes','isVisible','ck-ai-button-primary','9eqGDLj','_createActionsDropdownOrButton','change:isTrackChangesOn','uiLanguageDirection','ck-ai-chat__feed__ai-suggestion__actions__balloon','10aRmycq','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','setTemplate','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','add','bottom','width','balloonPanelClass','_partsCount','isEnabled','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','unbind','_createActionsButton','180lpAEqv','applySuggestion','_updateDropdownActions','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','_setUpList','content','esc','_createActionsDropdown','focus','class','912015UzjrAF','5093lUplte','_dropdownCurrentConfig','arrowless','set','button','actionName','slice','458390sUvwDT','balloonPanelView','insertSuggestion','length','map','ltr','pin','execute','arrowView','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','detachFromDom','ck-ai-chat__feed__ai-suggestion__actions--no-animation','div','children','keystrokeHandler'];_0x3273=function(){return _0x17221a;};return _0x3273();}class Pn extends _0x19fb46{[_0x4552da(0x135)];[_0x4552da(0x166)];[_0x4552da(0x129)];[_0x4552da(0x173)];constructor(_0x4af474,_0x41313f){const _0x3fec97=_0x4552da;super(_0x4af474),this[_0x3fec97(0x166)]=new _0x576f2f(this[_0x3fec97(0x178)]),this[_0x3fec97(0x135)]=new _0xcaaaed(this[_0x3fec97(0x178)]),this[_0x3fec97(0x135)][_0x3fec97(0x132)](),this[_0x3fec97(0x161)](_0x3fec97(0x14d),''),this[_0x3fec97(0x166)][_0x3fec97(0x133)](_0x3fec97(0x15c))['to'](this,_0x3fec97(0x14d)),this[_0x3fec97(0x129)]=this[_0x3fec97(0x157)](_0x41313f[_0x3fec97(0x176)][_0x3fec97(0x164)](0x1)),this[_0x3fec97(0x135)][_0x3fec97(0x14a)](this[_0x3fec97(0x166)]),this[_0x3fec97(0x166)][_0x3fec97(0x158)][_0x3fec97(0x14a)](this[_0x3fec97(0x129)]),this[_0x3fec97(0x16d)][_0x3fec97(0x151)](_0x3fec97(0x13d)),this[_0x3fec97(0x16d)][_0x3fec97(0x161)](_0x3fec97(0x13d),_0xf86a3a(this[_0x3fec97(0x178)],_0x3fec97(0x156))),this[_0x3fec97(0x13e)](),this['on'](_0x3fec97(0x16c),()=>{const _0x47a639=_0x3fec97,_0x5b77fc=_0x41313f[_0x47a639(0x176)][0x0][_0x47a639(0x163)];this[_0x47a639(0x121)](_0x5b77fc),this[_0x47a639(0x166)][_0x47a639(0x13b)](),this[_0x47a639(0x16d)][_0x47a639(0x15b)]();}),this['on'](_0x3fec97(0x136),()=>{const _0x24c785=_0x3fec97;this[_0x24c785(0x166)][_0x24c785(0x13f)]?(this[_0x24c785(0x166)][_0x24c785(0x13b)](),this[_0x24c785(0x16d)][_0x24c785(0x15b)]()):(this[_0x24c785(0x166)][_0x24c785(0x16b)]({'target':this[_0x24c785(0x120)],'positions':[_0x24c785(0x16a)===this[_0x24c785(0x178)][_0x24c785(0x144)]?Hn:Un]}),this[_0x24c785(0x129)][_0x24c785(0x15b)]());}),_0x3bb795({'emitter':this[_0x3fec97(0x166)],'callback':()=>{const _0xcbeac6=_0x3fec97;this[_0xcbeac6(0x166)][_0xcbeac6(0x13b)]();},'activator':()=>this[_0x3fec97(0x166)][_0x3fec97(0x13f)],'contextElements':()=>[this[_0x3fec97(0x120)],this[_0x3fec97(0x166)][_0x3fec97(0x120)]]});}[_0x4552da(0x157)](_0x5b8ffa){const _0x2f662a=_0x4552da,_0x5aa9ca=this[_0x2f662a(0x178)],_0x332ec3=new _0x156d8e(_0x5aa9ca);for(const _0xb38426 of _0x5b8ffa){const _0x3fe1b1=new _0x1eaaa5(_0x5aa9ca),_0x77a1eb=new _0x5c715a(_0x5aa9ca);_0x77a1eb[_0x2f662a(0x133)](...Object[_0x2f662a(0x134)](_0xb38426))['to'](_0xb38426),_0x77a1eb[_0x2f662a(0x179)](_0x2f662a(0x16c))['to'](_0x332ec3),_0x3fe1b1[_0x2f662a(0x172)][_0x2f662a(0x14a)](_0x77a1eb),_0x332ec3[_0x2f662a(0x11b)][_0x2f662a(0x14a)](_0x3fe1b1);}return _0x332ec3[_0x2f662a(0x11b)][_0x2f662a(0x179)](_0x2f662a(0x16c))['to'](this),_0x332ec3['on'](_0x2f662a(0x16c),_0x21e425=>{const _0x15af92=_0x2f662a,_0x45d149=_0x21e425[_0x15af92(0x139)];this[_0x15af92(0x121)](_0x45d149[_0x15af92(0x163)]),this[_0x15af92(0x166)][_0x15af92(0x13b)](),this[_0x15af92(0x16d)][_0x15af92(0x15b)]();}),_0x332ec3;}[_0x4552da(0x13e)](){const _0x564b59=_0x4552da;this[_0x564b59(0x173)]=new _0x2cb67a(),this[_0x564b59(0x173)][_0x564b59(0x128)](this[_0x564b59(0x166)][_0x564b59(0x120)]),this[_0x564b59(0x173)][_0x564b59(0x161)](_0x564b59(0x159),(_0x509526,_0x254023)=>{const _0x5b3e39=_0x564b59;this[_0x5b3e39(0x166)][_0x5b3e39(0x13b)](),this[_0x5b3e39(0x16d)][_0x5b3e39(0x15b)](),_0x254023();});}[_0x4552da(0x12c)](){const _0x5d2c7b=_0x4552da;super[_0x5d2c7b(0x12c)](),this[_0x5d2c7b(0x173)][_0x5d2c7b(0x12c)](),this[_0x5d2c7b(0x166)][_0x5d2c7b(0x12c)](),this[_0x5d2c7b(0x135)][_0x5d2c7b(0x16f)]();}}function Hn(_0x193c9f){const _0x5dc9db=_0x4552da;return{'top':_0x193c9f[_0x5dc9db(0x14b)],'left':_0x193c9f[_0x5dc9db(0x125)],'name':_0x5dc9db(0x160),'config':{'withArrow':!0x1}};}function Un(_0xe5c302,_0x59d9e7){const _0x448d5d=_0x4552da;return{'top':_0xe5c302[_0x448d5d(0x14b)],'left':_0xe5c302[_0x448d5d(0x125)]-(_0x59d9e7[_0x448d5d(0x14c)]-_0xe5c302[_0x448d5d(0x14c)]),'name':_0x448d5d(0x160),'config':{'withArrow':!0x1}};}function Ln(_0x2f009a,_0x5174db,_0x1e5e88){const _0x34539e=_0x4552da;switch(_0x2f009a){case _0x34539e(0x154):return _0xf86a3a(_0x5174db,_0x34539e(0x177),_0x1e5e88);case _0x34539e(0x12f):return _0xf86a3a(_0x5174db,_0x34539e(0x147),_0x1e5e88);case _0x34539e(0x167):return _0xf86a3a(_0x5174db,_0x34539e(0x12b),_0x1e5e88);}}function jn(_0x40d5e3,_0x58de66,_0x80bf57){const _0x890040=_0x4552da;switch(_0x40d5e3){case _0x890040(0x154):return _0xf86a3a(_0x58de66,_0x890040(0x150),_0x80bf57);case _0x890040(0x12f):return _0xf86a3a(_0x58de66,_0x890040(0x149),_0x80bf57);case _0x890040(0x167):return _0xf86a3a(_0x58de66,_0x890040(0x16e),_0x80bf57);}}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
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
|
+
import { type AISuggestionActionName } from './aichatfeedsuggestionitemactionsview.js';
|
|
11
12
|
import { type AIReplySource } from '../../../aicore/model/aireply.js';
|
|
12
13
|
import { type AISuggestionBodyViewContentPartView, type AIContentRenderingStrategy } from '../../../aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js';
|
|
13
14
|
/**
|
|
@@ -22,6 +23,10 @@ export declare class AIChatFeedSuggestionItemView extends AIChatFeedItemView {
|
|
|
22
23
|
* @inheritDoc
|
|
23
24
|
*/
|
|
24
25
|
options: AIChatFeedSuggestionItemViewOptions;
|
|
26
|
+
/**
|
|
27
|
+
* @observable
|
|
28
|
+
*/
|
|
29
|
+
isTrackChangesOn: boolean;
|
|
25
30
|
/**
|
|
26
31
|
* @inheritDoc
|
|
27
32
|
*/
|
|
@@ -71,4 +76,8 @@ export interface AIChatFeedSuggestionItemViewOptions extends AIChatItemViewOptio
|
|
|
71
76
|
* A flag indicating whether the suggestion should show the diff or final suggestion.
|
|
72
77
|
*/
|
|
73
78
|
showDiff: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* The configuration of the advanced reply dropdown in the AI chat feed.
|
|
81
|
+
*/
|
|
82
|
+
dropdownConfig?: Array<AISuggestionActionName>;
|
|
74
83
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x11c781=_0x5e5b;(function(_0x3f64c3,_0x4b809c){var _0x3e4cf3=_0x5e5b,_0x31c999=_0x3f64c3();while(!![]){try{var _0x150dca=-parseInt(_0x3e4cf3(0x159))/0x1+-parseInt(_0x3e4cf3(0x156))/0x2+parseInt(_0x3e4cf3(0x15d))/0x3*(-parseInt(_0x3e4cf3(0x164))/0x4)+-parseInt(_0x3e4cf3(0x14f))/0x5+parseInt(_0x3e4cf3(0x154))/0x6*(-parseInt(_0x3e4cf3(0x176))/0x7)+-parseInt(_0x3e4cf3(0x15b))/0x8*(-parseInt(_0x3e4cf3(0x168))/0x9)+parseInt(_0x3e4cf3(0x16d))/0xa*(parseInt(_0x3e4cf3(0x165))/0xb);if(_0x150dca===_0x4b809c)break;else _0x31c999['push'](_0x31c999['shift']());}catch(_0x405ba8){_0x31c999['push'](_0x31c999['shift']());}}}(_0x507e,0xc34ec));import{AIChatFeedItemView as _0x3a14ec}from'./aichatfeeditemview.js';function _0x5e5b(_0x58e106,_0x3686ed){var _0x507ecd=_0x507e();return _0x5e5b=function(_0x5e5b11,_0x38716d){_0x5e5b11=_0x5e5b11-0x14c;var _0x5547fb=_0x507ecd[_0x5e5b11];return _0x5547fb;},_0x5e5b(_0x58e106,_0x3686ed);}function _0x507e(){var _0x555860=['8mGrWYJ','11jQHwQc','applySuggestion','extendTemplate','153LmfijE','isVisible','insertSuggestion','addMany','showChangeInText','18795930LDCHwv','mouseOverSuggestion','getPartView','children','updateContent','fire','showDiff','markAsDone','partsCount','32270tfjBto','like','mouseLeaveSuggestion','areActionsDisabled','bodyView','hasNonEmptyParts','698710FgeHvZ','updateLabels','isTrackChangesOn','dropdownConfig','dislike','822vKwlXE','hasPendingParts','282924vSXrgZ','toggleSuggestionDisplayMode','rejectSuggestion','403173jPjSlg','containerView','649936VegeFp','actionsView','1717170BiZtlu','ck-ai-chat__feed__ai-suggestion','options','isEnabled','updatePartState','bind','updateSources'];_0x507e=function(){return _0x555860;};return _0x507e();}import{AISuggestionContainerView as _0x3f329d}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x53bea2}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x3a14ec{[_0x11c781(0x15a)];[_0x11c781(0x15c)];constructor(_0x2125ba,_0x1620c4){var _0x3f15cc=_0x11c781;super(_0x1620c4),this[_0x3f15cc(0x15a)]=new _0x3f329d(_0x2125ba,{'showDiff':_0x1620c4[_0x3f15cc(0x173)],'areActionsDisabled':_0x1620c4[_0x3f15cc(0x14c)]}),this[_0x3f15cc(0x15a)]['on'](_0x3f15cc(0x157),(_0x222fbb,_0x22de7d)=>{var _0x4dc1c5=_0x3f15cc;this[_0x4dc1c5(0x172)](_0x4dc1c5(0x157),{'replyId':this[_0x4dc1c5(0x15f)]['id'],'showDiff':_0x22de7d[_0x4dc1c5(0x173)]});}),this[_0x3f15cc(0x15a)]['on'](_0x3f15cc(0x177),()=>{var _0x4e9c4b=_0x3f15cc;this[_0x4e9c4b(0x172)](_0x4e9c4b(0x177),{'replyId':this[_0x4e9c4b(0x15f)]['id']});}),this[_0x3f15cc(0x15a)]['on'](_0x3f15cc(0x153),()=>{var _0x2b8675=_0x3f15cc;this[_0x2b8675(0x172)](_0x2b8675(0x153),{'replyId':this[_0x2b8675(0x15f)]['id']});}),this[_0x3f15cc(0x15a)]['on'](_0x3f15cc(0x16c),(_0x41d662,{index:_0x4b6347})=>{var _0x3a4731=_0x3f15cc;this[_0x3a4731(0x172)](_0x3a4731(0x16c),{'replyId':this[_0x3a4731(0x15f)]['id'],'partIndex':_0x4b6347});}),this[_0x3f15cc(0x15a)]['on'](_0x3f15cc(0x16a),(_0x16fac1,{index:_0x132f50})=>{var _0x5e7b5f=_0x3f15cc;this[_0x5e7b5f(0x172)](_0x5e7b5f(0x16a),{'replyId':this[_0x5e7b5f(0x15f)]['id'],'partIndex':_0x132f50});}),this[_0x3f15cc(0x15a)]['on'](_0x3f15cc(0x158),(_0x18901b,{index:_0x505ed3})=>{var _0x3a650d=_0x3f15cc;this[_0x3a650d(0x172)](_0x3a650d(0x158),{'replyId':this[_0x3a650d(0x15f)]['id'],'partIndex':_0x505ed3});}),this[_0x3f15cc(0x15a)]['on'](_0x3f15cc(0x16e),(_0x1f5075,{index:_0x467d64})=>{var _0x413a9d=_0x3f15cc;this[_0x413a9d(0x172)](_0x413a9d(0x16e),{'replyId':this[_0x413a9d(0x15f)]['id'],'partIndex':_0x467d64});}),this[_0x3f15cc(0x15a)]['on'](_0x3f15cc(0x178),(_0x3ffe3d,{index:_0x25735f})=>{var _0xbba2c3=_0x3f15cc;this[_0xbba2c3(0x172)](_0xbba2c3(0x178),{'replyId':this[_0xbba2c3(0x15f)]['id'],'partIndex':_0x25735f});}),this[_0x3f15cc(0x15c)]=new _0x53bea2(_0x2125ba,this[_0x3f15cc(0x15f)][_0x3f15cc(0x152)]),this[_0x3f15cc(0x15c)][_0x3f15cc(0x162)](_0x3f15cc(0x151))['to'](this,_0x3f15cc(0x151)),this[_0x3f15cc(0x15c)]['on'](_0x3f15cc(0x16c),()=>{var _0x1c2345=_0x3f15cc;this[_0x1c2345(0x172)](_0x1c2345(0x16c),{'replyId':this[_0x1c2345(0x15f)]['id']});}),this[_0x3f15cc(0x15c)]['on'](_0x3f15cc(0x16a),()=>{var _0x5c5fae=_0x3f15cc;this[_0x5c5fae(0x172)](_0x5c5fae(0x16a),{'replyId':this[_0x5c5fae(0x15f)]['id']});}),this[_0x3f15cc(0x15c)]['on'](_0x3f15cc(0x166),()=>{var _0x3be2b5=_0x3f15cc;this[_0x3be2b5(0x172)](_0x3be2b5(0x166),{'replyId':this[_0x3be2b5(0x15f)]['id']});}),_0x1620c4[_0x3f15cc(0x14c)]?this[_0x3f15cc(0x15c)][_0x3f15cc(0x160)]=!0x1:this[_0x3f15cc(0x15c)][_0x3f15cc(0x162)](_0x3f15cc(0x160))['to'](this[_0x3f15cc(0x15a)][_0x3f15cc(0x14d)],_0x3f15cc(0x155)),this[_0x3f15cc(0x170)][_0x3f15cc(0x16b)]([this[_0x3f15cc(0x15a)],this[_0x3f15cc(0x15c)]]),this[_0x3f15cc(0x167)]({'attributes':{'class':[_0x3f15cc(0x15e)]}});}async[_0x11c781(0x171)](_0x4dd165){var _0x55d046=_0x11c781;await this[_0x55d046(0x15a)][_0x55d046(0x171)](_0x4dd165),this[_0x55d046(0x15c)][_0x55d046(0x150)](this[_0x55d046(0x15a)][_0x55d046(0x14d)][_0x55d046(0x175)]);}[_0x11c781(0x161)](_0x3d49b3,_0x561907){var _0x2a9368=_0x11c781;this[_0x2a9368(0x15a)][_0x2a9368(0x14d)][_0x2a9368(0x161)](_0x3d49b3,_0x561907);}[_0x11c781(0x163)](_0x27be5a){var _0x361294=_0x11c781;this[_0x361294(0x15a)][_0x361294(0x163)](_0x27be5a);}[_0x11c781(0x16f)](_0x3d99c4){var _0x2a8173=_0x11c781;return this[_0x2a8173(0x15a)][_0x2a8173(0x14d)][_0x2a8173(0x16f)](_0x3d99c4);}[_0x11c781(0x174)](){var _0xfa1a5e=_0x11c781;super[_0xfa1a5e(0x174)](),this[_0xfa1a5e(0x15a)][_0xfa1a5e(0x174)](),this[_0xfa1a5e(0x15c)][_0xfa1a5e(0x169)]=this[_0xfa1a5e(0x15a)][_0xfa1a5e(0x14d)][_0xfa1a5e(0x14e)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x3637(_0x52ffa2,_0x4d556c){var _0x4f0562=_0x4f05();return _0x3637=function(_0x36371,_0x2fe017){_0x36371=_0x36371-0x14d;var _0x3cb738=_0x4f0562[_0x36371];return _0x3cb738;},_0x3637(_0x52ffa2,_0x4d556c);}var _0x387581=_0x3637;(function(_0x202ee5,_0x25632a){var _0x4a86d7=_0x3637,_0x34f3fd=_0x202ee5();while(!![]){try{var _0x1f3d28=-parseInt(_0x4a86d7(0x150))/0x1*(parseInt(_0x4a86d7(0x14d))/0x2)+-parseInt(_0x4a86d7(0x15b))/0x3*(parseInt(_0x4a86d7(0x154))/0x4)+-parseInt(_0x4a86d7(0x16c))/0x5*(parseInt(_0x4a86d7(0x15a))/0x6)+-parseInt(_0x4a86d7(0x155))/0x7*(-parseInt(_0x4a86d7(0x157))/0x8)+parseInt(_0x4a86d7(0x171))/0x9*(-parseInt(_0x4a86d7(0x168))/0xa)+parseInt(_0x4a86d7(0x15c))/0xb*(parseInt(_0x4a86d7(0x16f))/0xc)+parseInt(_0x4a86d7(0x166))/0xd;if(_0x1f3d28===_0x25632a)break;else _0x34f3fd['push'](_0x34f3fd['shift']());}catch(_0x268384){_0x34f3fd['push'](_0x34f3fd['shift']());}}}(_0x4f05,0x9e14c));function _0x4f05(){var _0x2f25f2=['hidden','2062917QIKUQF','3562Grntpu','children','element','655rIaUHC','_createMessageContentView','ck-ai-chat__feed__message-content','length','76AYxeWQ','7EimgsY','markAsDone','3857048GznZGb','render','_bodyCollection','6642TRtYWA','130002slmlJq','93137igNsQn','add','_messageContentView','_contextChipsView','filter','div','ck-ai-chat__feed__context-chips','extendTemplate','innerHTML','setTemplate','31598099vEyqFl','ck-ai-chat__feed__user-message','10EWBQvl','options','_locale','_createContextChipsView','3765HmhTes','contextItems','initialContent','1116dYgqxw'];_0x4f05=function(){return _0x2f25f2;};return _0x4f05();}import{AIChatFeedItemView as _0xda6419}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x596b39}from'./aichatfeedcontextchipsview.js';import{View as _0x11db11}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0xda6419{[_0x387581(0x15f)]=null;[_0x387581(0x16a)];[_0x387581(0x159)];[_0x387581(0x15e)];constructor(_0x1932a2,_0x394635,_0x2c7f3e){var _0x2e29ef=_0x387581;super(_0x394635),this[_0x2e29ef(0x16a)]=_0x1932a2,this[_0x2e29ef(0x159)]=_0x2c7f3e,this[_0x2e29ef(0x16b)](),this[_0x2e29ef(0x151)](),this[_0x2e29ef(0x163)]({'attributes':{'class':[_0x2e29ef(0x167)]}});}[_0x387581(0x16b)](){var _0x5600ae=_0x387581;this[_0x5600ae(0x169)][_0x5600ae(0x16d)]&&this[_0x5600ae(0x169)][_0x5600ae(0x16d)][_0x5600ae(0x153)]>0x0&&(this[_0x5600ae(0x15f)]=new _0x596b39(this[_0x5600ae(0x16a)],this[_0x5600ae(0x169)][_0x5600ae(0x16d)][_0x5600ae(0x160)](_0x5f6e7e=>!_0x5f6e7e[_0x5600ae(0x170)]),this[_0x5600ae(0x159)]),this[_0x5600ae(0x15f)][_0x5600ae(0x163)]({'attributes':{'class':_0x5600ae(0x162)}}),this[_0x5600ae(0x14e)][_0x5600ae(0x15d)](this[_0x5600ae(0x15f)]));}[_0x387581(0x151)](){var _0x307427=_0x387581;this[_0x307427(0x15e)]=new _0x11db11(this[_0x307427(0x16a)]),this[_0x307427(0x15e)][_0x307427(0x165)]({'tag':_0x307427(0x161),'attributes':{'class':_0x307427(0x152)}}),this[_0x307427(0x14e)][_0x307427(0x15d)](this[_0x307427(0x15e)]);}[_0x387581(0x158)](){var _0x28bf8b=_0x387581;super[_0x28bf8b(0x158)](),this[_0x28bf8b(0x15e)][_0x28bf8b(0x14f)][_0x28bf8b(0x164)]=this[_0x28bf8b(0x169)][_0x28bf8b(0x16e)],this[_0x28bf8b(0x156)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3e2f(_0x568dcb,_0x338344){const _0x4989eb=_0x4989();return _0x3e2f=function(_0x3e2f7b,_0x13499b){_0x3e2f7b=_0x3e2f7b-0x141;let _0x47444b=_0x4989eb[_0x3e2f7b];return _0x47444b;},_0x3e2f(_0x568dcb,_0x338344);}function _0x4989(){const _0xb4e222=['removeContextItem','3600fpAwFX','588735cIIiYZ','9351iwmAVS','205yATDIK','toggleReasoning','abortPromptStream','addUrlToContext','174968qMUrIW','resizeTabs','sendUserMessage','201ZALkHw','2630mLRWXI','addFileToContext','addDocumentToContext','292PtTTvi','1351691izJQtH','1550298qqFBfo','loadSourceResources','toggleWebSearch','24giYikC','startConversation','selectModel','addResourceToContext'];_0x4989=function(){return _0xb4e222;};return _0x4989();}const _0x4438fc=_0x3e2f;(function(_0x1c1a59,_0x24733e){const _0x5523e5=_0x3e2f,_0x1219e3=_0x1c1a59();while(!![]){try{const _0x94cce8=parseInt(_0x5523e5(0x158))/0x1+-parseInt(_0x5523e5(0x151))/0x2*(-parseInt(_0x5523e5(0x143))/0x3)+-parseInt(_0x5523e5(0x147))/0x4*(parseInt(_0x5523e5(0x154))/0x5)+parseInt(_0x5523e5(0x149))/0x6+-parseInt(_0x5523e5(0x152))/0x7*(parseInt(_0x5523e5(0x14c))/0x8)+-parseInt(_0x5523e5(0x153))/0x9*(parseInt(_0x5523e5(0x144))/0xa)+parseInt(_0x5523e5(0x148))/0xb;if(_0x94cce8===_0x24733e)break;else _0x1219e3['push'](_0x1219e3['shift']());}catch(_0x1ebfc2){_0x1219e3['push'](_0x1219e3['shift']());}}}(_0x4989,0x2432b));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5aa4ac}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x5aa4ac,_0x4438fc(0x14d),_0x4438fc(0x141),_0x4438fc(0x142),_0x4438fc(0x156),_0x4438fc(0x146),_0x4438fc(0x145),_0x4438fc(0x157),_0x4438fc(0x14f),_0x4438fc(0x150),_0x4438fc(0x14a),_0x4438fc(0x14b),_0x4438fc(0x155),_0x4438fc(0x14e)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x2f14(_0x4904d1,_0x305bac){const _0xf9249d=_0xf924();return _0x2f14=function(_0x2f1489,_0x41a63f){_0x2f1489=_0x2f1489-0x19c;let _0xfe382f=_0xf9249d[_0x2f1489];return _0xfe382f;},_0x2f14(_0x4904d1,_0x305bac);}const _0x5d58cc=_0x2f14;(function(_0x1a8d99,_0x2e4cf7){const _0x224b53=_0x2f14,_0x2afd2c=_0x1a8d99();while(!![]){try{const _0x3a1561=-parseInt(_0x224b53(0x1a1))/0x1*(parseInt(_0x224b53(0x1a6))/0x2)+-parseInt(_0x224b53(0x1b1))/0x3+-parseInt(_0x224b53(0x1b5))/0x4+-parseInt(_0x224b53(0x1af))/0x5*(-parseInt(_0x224b53(0x1b8))/0x6)+parseInt(_0x224b53(0x1a9))/0x7*(parseInt(_0x224b53(0x19d))/0x8)+parseInt(_0x224b53(0x1a8))/0x9+-parseInt(_0x224b53(0x19e))/0xa;if(_0x3a1561===_0x2e4cf7)break;else _0x2afd2c['push'](_0x2afd2c['shift']());}catch(_0x9bd8e8){_0x2afd2c['push'](_0x2afd2c['shift']());}}}(_0xf924,0x80a25));import{EmitterMixin as _0x57c8a5}from'ckeditor5/src/utils.js';function _0xf924(){const _0x4cf4fa=['enqueue','8975934BHfEnE','484897cpksfJ','once','reject','_queueEmpty','length','shift','115XiXMlx','completePromise','1383009QnGvxt','_processQueue','signal','createTask','522772jkUxnr','callback','isProcessing','157614bixBHm','fire','40zRsZad','6948190jyAfuP','abort','resolve','33617cjpOyp','push','queueEmptyPromise','_abortController','queue','8aXbEgH'];_0xf924=function(){return _0x4cf4fa;};return _0xf924();}export class PromiseQueue extends _0x57c8a5(){[_0x5d58cc(0x1a5)]=[];[_0x5d58cc(0x1b7)]=!0x1;[_0x5d58cc(0x1a4)];async[_0x5d58cc(0x1a7)](_0x45fa4f){const _0x21980a=_0x5d58cc,_0x5ba939=this[_0x21980a(0x1b4)](_0x45fa4f);return this[_0x21980a(0x1a5)][_0x21980a(0x1a2)](_0x5ba939),this[_0x21980a(0x1b2)](),_0x5ba939[_0x21980a(0x1b0)];}[_0x5d58cc(0x19f)](){const _0x8acb1e=_0x5d58cc;this[_0x8acb1e(0x1b7)]&&(this[_0x8acb1e(0x1a4)][_0x8acb1e(0x19f)](),this[_0x8acb1e(0x1a4)]=void 0x0,this[_0x8acb1e(0x1a5)]=[],this[_0x8acb1e(0x19c)](_0x8acb1e(0x1ac)),this[_0x8acb1e(0x1b7)]=!0x1);}get[_0x5d58cc(0x1a3)](){const _0x534297=_0x5d58cc;return this[_0x534297(0x1a5)][_0x534297(0x1ad)]||this[_0x534297(0x1b7)]?new Promise(_0x32a53b=>{const _0xdcf113=_0x534297;this[_0xdcf113(0x1aa)](_0xdcf113(0x1ac),()=>{_0x32a53b();});}):Promise[_0x534297(0x1a0)]();}async[_0x5d58cc(0x1b2)](){const _0x515c51=_0x5d58cc;if(!this[_0x515c51(0x1b7)]){this[_0x515c51(0x1a4)]=new AbortController(),this[_0x515c51(0x1b7)]=!0x0;try{for(;this[_0x515c51(0x1a5)][_0x515c51(0x1ad)]&&this[_0x515c51(0x1b7)];){const _0x209210=this[_0x515c51(0x1a5)][_0x515c51(0x1ae)]();try{await _0x209210[_0x515c51(0x1b6)](this[_0x515c51(0x1a4)][_0x515c51(0x1b3)]),_0x209210[_0x515c51(0x1a0)]();}catch(_0x55273f){_0x209210[_0x515c51(0x1ab)](_0x55273f);}}}finally{this[_0x515c51(0x1b7)]=!0x1,this[_0x515c51(0x1a4)]=void 0x0;}this[_0x515c51(0x19c)](_0x515c51(0x1ac));}}[_0x5d58cc(0x1b4)](_0x79412e){let _0x81f1e8,_0x529af7;const _0x1c0306=new Promise((_0x47edb9,_0x3c9b93)=>{_0x81f1e8=_0x47edb9,_0x529af7=_0x3c9b93;});return{'callback':_0x79412e,'resolve':_0x81f1e8,'reject':_0x529af7,'completePromise':_0x1c0306};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x223a(){const _0x36b525=['ArrowUp','_onUserEvent','isRunning','abortController','95994EivdoZ','keydown','35736TflPEo','auto','208215ajarwV','119NmsrFK','_isAtBottom','Home','element','key','stop','3530hMqXMi','signal','_stop','touchstart','scrollHeight','pointerdown','deltaY','isUserPaused','712920MRpYSt','scrollTo','start','340JJtfej','PageDown','type','destroy','_rafUpdate','ArrowDown','2793430QztPhi','includes','bind','abort','animationFrameId','PageUp','2VHKNZr','End','wheel','addEventListener','89211kuksNs'];_0x223a=function(){return _0x36b525;};return _0x223a();}const _0x375462=_0x57cd;(function(_0xf0403,_0x28c1ce){const _0x38f92b=_0x57cd,_0x3959a8=_0xf0403();while(!![]){try{const _0x39ceaa=-parseInt(_0x38f92b(0x1a0))/0x1+parseInt(_0x38f92b(0x197))/0x2*(-parseInt(_0x38f92b(0x19b))/0x3)+parseInt(_0x38f92b(0x18b))/0x4*(-parseInt(_0x38f92b(0x1ab))/0x5)+parseInt(_0x38f92b(0x188))/0x6+parseInt(_0x38f92b(0x1a5))/0x7*(-parseInt(_0x38f92b(0x1a2))/0x8)+-parseInt(_0x38f92b(0x1a4))/0x9+parseInt(_0x38f92b(0x191))/0xa;if(_0x39ceaa===_0x28c1ce)break;else _0x3959a8['push'](_0x3959a8['shift']());}catch(_0x58c6e7){_0x3959a8['push'](_0x3959a8['shift']());}}}(_0x223a,0x1bac4));const ps=[_0x375462(0x199),_0x375462(0x1ae),_0x375462(0x1b0),_0x375462(0x1a1)],ws=[_0x375462(0x19c),_0x375462(0x190),_0x375462(0x196),_0x375462(0x18c),_0x375462(0x1a7),_0x375462(0x198),'\x20'];function _0x57cd(_0x10dc08,_0x1425ba){const _0x223a07=_0x223a();return _0x57cd=function(_0x57cd4b,_0x24f877){_0x57cd4b=_0x57cd4b-0x188;let _0x334b51=_0x223a07[_0x57cd4b];return _0x334b51;},_0x57cd(_0x10dc08,_0x1425ba);}export class ScrollManager{[_0x375462(0x1a8)];[_0x375462(0x195)];[_0x375462(0x19e)];[_0x375462(0x19f)];[_0x375462(0x1b2)];constructor(_0x593545){const _0x1e2819=_0x375462;this[_0x1e2819(0x1a8)]=_0x593545,this[_0x1e2819(0x195)]=null,this[_0x1e2819(0x19e)]=!0x1,this[_0x1e2819(0x19f)]=new AbortController(),this[_0x1e2819(0x1b2)]=!0x1;for(const _0x491769 of ps){const _0x12abc5=_0x1e2819(0x1a1)!==_0x491769;this[_0x1e2819(0x1a8)][_0x1e2819(0x19a)](_0x491769,this[_0x1e2819(0x19d)][_0x1e2819(0x193)](this),{'passive':_0x12abc5,'signal':this[_0x1e2819(0x19f)][_0x1e2819(0x1ac)]});}}[_0x375462(0x18a)](){const _0x1ce858=_0x375462;this[_0x1ce858(0x19e)]||(this[_0x1ce858(0x19e)]=!0x0,this[_0x1ce858(0x1b2)]=!0x1,this[_0x1ce858(0x195)]=requestAnimationFrame(this[_0x1ce858(0x18f)][_0x1ce858(0x193)](this)));}[_0x375462(0x1aa)](){requestAnimationFrame(()=>{const _0x2fef2e=_0x57cd;this[_0x2fef2e(0x1ad)]();});}[_0x375462(0x18e)](){const _0x419e86=_0x375462;this[_0x419e86(0x1ad)](),this[_0x419e86(0x19f)][_0x419e86(0x194)]();}[_0x375462(0x1ad)](){const _0xd9caf7=_0x375462;null!==this[_0xd9caf7(0x195)]&&(cancelAnimationFrame(this[_0xd9caf7(0x195)]),this[_0xd9caf7(0x195)]=null),this[_0xd9caf7(0x19e)]&&(this[_0xd9caf7(0x19e)]=!0x1),this[_0xd9caf7(0x1b2)]=!0x1;}[_0x375462(0x19d)](_0x4923a0){const _0xe746dd=_0x375462;if(this[_0xe746dd(0x19e)]){if(_0xe746dd(0x1a1)===_0x4923a0[_0xe746dd(0x18d)]){const _0x593f3e=_0x4923a0[_0xe746dd(0x1a9)];if(!ws[_0xe746dd(0x192)](_0x593f3e))return;}_0x4923a0 instanceof WheelEvent?_0x4923a0[_0xe746dd(0x1b1)]<0x0?this[_0xe746dd(0x1b2)]=!0x0:this[_0xe746dd(0x1b2)]=!this[_0xe746dd(0x1a6)]():this[_0xe746dd(0x1b2)]=!0x0;}}[_0x375462(0x1a6)](){const _0xd61a2a=_0x375462,{scrollTop:_0x360f06,scrollHeight:_0x53c408,clientHeight:_0x5d534f}=this[_0xd61a2a(0x1a8)];return _0x53c408-_0x360f06-_0x5d534f<=0x5;}[_0x375462(0x18f)](){const _0x15a503=_0x375462;this[_0x15a503(0x19e)]&&(this[_0x15a503(0x1b2)]||this[_0x15a503(0x1a8)][_0x15a503(0x189)]({'top':this[_0x15a503(0x1a8)][_0x15a503(0x1af)],'behavior':_0x15a503(0x1a3)}),this[_0x15a503(0x195)]=requestAnimationFrame(this[_0x15a503(0x18f)][_0x15a503(0x193)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x8b79b7=_0xb56a;(function(_0xbdbbaf,_0x281430){var _0x9be14e=_0xb56a,_0x2c33cb=_0xbdbbaf();while(!![]){try{var _0x2dc04c=parseInt(_0x9be14e(0xab))/0x1+parseInt(_0x9be14e(0xa5))/0x2*(-parseInt(_0x9be14e(0xa8))/0x3)+-parseInt(_0x9be14e(0xac))/0x4+parseInt(_0x9be14e(0xa1))/0x5+parseInt(_0x9be14e(0xad))/0x6+parseInt(_0x9be14e(0xa3))/0x7*(parseInt(_0x9be14e(0xa2))/0x8)+-parseInt(_0x9be14e(0xa9))/0x9*(parseInt(_0x9be14e(0xa6))/0xa);if(_0x2dc04c===_0x281430)break;else _0x2c33cb['push'](_0x2c33cb['shift']());}catch(_0x1e5839){_0x2c33cb['push'](_0x2c33cb['shift']());}}}(_0x7fcd,0xae352));function _0xb56a(_0x15aa81,_0x10b140){var _0x7fcd1c=_0x7fcd();return _0xb56a=function(_0xb56a29,_0x336416){_0xb56a29=_0xb56a29-0xa1;var _0x2cff0d=_0x7fcd1c[_0xb56a29];return _0x2cff0d;},_0xb56a(_0x15aa81,_0x10b140);}import{ContextPlugin as _0x178225}from'ckeditor5/src/core.js';function _0x7fcd(){var _0x5cbee3=['4105773DHgJrq','requires','2RVXQFR','430exlIkw','isPremiumPlugin','3595947aHiJzo','46773mmLMLv','pluginName','1114639IvOfkO','5534248SEnYMp','3625026DTvcet','isOfficialPlugin','AIChatHistory','6069435WEUbcN','8snZXjn'];_0x7fcd=function(){return _0x5cbee3;};return _0x7fcd();}import{AIChatHistoryController as _0x2a3c36}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x50d4d2}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x178225{static get[_0x8b79b7(0xa4)](){return[_0x2a3c36,_0x50d4d2];}static get[_0x8b79b7(0xaa)](){var _0x15a5a8=_0x8b79b7;return _0x15a5a8(0xaf);}static get[_0x8b79b7(0xae)](){return!0x0;}static get[_0x8b79b7(0xa7)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3bb777=_0x17a5;(function(_0x26edbf,_0x23429c){const _0x2285b3=_0x17a5,_0x2ef61f=_0x26edbf();while(!![]){try{const _0x4ab58a=parseInt(_0x2285b3(0x137))/0x1+parseInt(_0x2285b3(0x123))/0x2+parseInt(_0x2285b3(0xdd))/0x3+-parseInt(_0x2285b3(0x126))/0x4*(parseInt(_0x2285b3(0x11d))/0x5)+-parseInt(_0x2285b3(0xf5))/0x6+parseInt(_0x2285b3(0xd9))/0x7*(parseInt(_0x2285b3(0x106))/0x8)+-parseInt(_0x2285b3(0x11f))/0x9;if(_0x4ab58a===_0x23429c)break;else _0x2ef61f['push'](_0x2ef61f['shift']());}catch(_0x186f66){_0x2ef61f['push'](_0x2ef61f['shift']());}}}(_0x76e5,0x6a813));import{ContextPlugin as _0x2d3c76}from'ckeditor5/src/core.js';import{AIConnector as _0x5b6869}from'../aicore/aiconnector.js';function _0x76e5(){const _0x34eea6=['history','updateItemTitle','updates','getDate','view','309883VrVdUU','AIChatHistoryController','setIsMaximized','itemsLoaded','1863813sfPhDc','activeConversation','AI_CHAT_HISTORY_UNPIN_ACTION','editConversationTitle','itemUpdated','_updateHistoryItemsUI','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','_handleSelectConversation','setConversationPinned','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','length','_generateErrorMessage','selectConversation','removeConversation','showError','itemRemoved','removeHistoryItem','itemId','push','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','operation','updateItemLoadingState','loadConversation','_clearItemLoading','387924Fxznsi','resizedTabs','activateTab:history','createdAt','resize','AI_CHAT_HISTORY_CATEGORY_TODAY','pin','AI_CHAT_HISTORY_PIN_ACTION','isOfficialPlugin','getMonth','unpin','listenTo','_handleHistoryErrorUI','handleRemovedConversation','_aiConnector','getFullYear','_setItemLoading','24qRYVSE','getItems','context','requires','updateItemPinned','setLoadingSkeleton','updateItems','_showConversationHistory','remove','plugins','_aiChatHistoryUi','_aiChatController','AI_CHAT_HISTORY_CATEGORY_LATER','change:activeConversation','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','init','removeItem','_handleTogglePin','get','locale','AI_CHAT_UNTITLED_CONVERSATION','rename','chat','115DWASpH','map','9044028ABrDjd','AI_CHAT_HISTORY_CATEGORY_PINNED','loadItems','resizeTabs','700856NqIZkb','_getCategorizedItems','getItem','16892aYqCdG','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','openChat','_handleEditTitle','setDate','title','_handleRemove','error','pinned','activateTab','_setIsMaximized','isPremiumPlugin','items','getGroupId','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','pluginName','toLocaleDateString','498412dWPHxo','AI_CHAT_HISTORY_ERROR_GENERIC'];_0x76e5=function(){return _0x34eea6;};return _0x76e5();}function _0x17a5(_0x507f8e,_0x387393){const _0x76e581=_0x76e5();return _0x17a5=function(_0x17a513,_0x536410){_0x17a513=_0x17a513-0xd9;let _0x16525c=_0x76e581[_0x17a513];return _0x16525c;},_0x17a5(_0x507f8e,_0x387393);}import{AIChatController as _0x3ff63d}from'../aichat/aichatcontroller.js';import{AITabs as _0x2dc193}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x24a0d5}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x18290a}from'./model/aichathistoryconversations.js';import{getTranslation as _0x2c5fd4}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x2d3c76{[_0x3bb777(0x103)];[_0x3bb777(0x110)];[_0x3bb777(0x111)];static get[_0x3bb777(0x109)](){return[_0x5b6869,_0x3ff63d,_0x24a0d5,_0x2dc193];}static get[_0x3bb777(0x135)](){const _0x3e42cb=_0x3bb777;return _0x3e42cb(0xda);}static get[_0x3bb777(0xfd)](){return!0x0;}static get[_0x3bb777(0x131)](){return!0x0;}[_0x3bb777(0x115)](){const _0x50dd2a=_0x3bb777;this[_0x50dd2a(0x103)]=this[_0x50dd2a(0x108)][_0x50dd2a(0x10f)][_0x50dd2a(0x118)](_0x5b6869),this[_0x50dd2a(0x110)]=this[_0x50dd2a(0x108)][_0x50dd2a(0x10f)][_0x50dd2a(0x118)](_0x24a0d5),this[_0x50dd2a(0x111)]=this[_0x50dd2a(0x108)][_0x50dd2a(0x10f)][_0x50dd2a(0x118)](_0x3ff63d);const _0x204c93=this[_0x50dd2a(0x108)][_0x50dd2a(0x10f)][_0x50dd2a(0x118)](_0x2dc193),_0x443769=this[_0x50dd2a(0x111)][_0x50dd2a(0x133)]();this[_0x50dd2a(0x139)]=new _0x18290a({'connector':this[_0x50dd2a(0x103)],'group':_0x443769}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x110)],_0x50dd2a(0xea),(_0x3d2fcb,_0x4c120c)=>{const _0x56fa5b=_0x50dd2a;this[_0x56fa5b(0x105)](_0x4c120c['id'],_0x56fa5b(0x10e)),this[_0x56fa5b(0x12c)](_0x4c120c['id']);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x110)],_0x50dd2a(0xe0),(_0x5d3df1,_0x43ab6d)=>{const _0x2656f8=_0x50dd2a;this[_0x2656f8(0x105)](_0x43ab6d['id'],_0x2656f8(0x11b)),this[_0x2656f8(0x129)](_0x43ab6d['id'],_0x43ab6d[_0x2656f8(0x12b)]);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x139)],_0x50dd2a(0xe1),(_0x4a557c,_0x49cf2c)=>{const _0x2e2430=_0x50dd2a;void 0x0!==_0x49cf2c[_0x2e2430(0x13b)][_0x2e2430(0x12b)]&&this[_0x2e2430(0x110)][_0x2e2430(0x13a)](_0x49cf2c[_0x2e2430(0xee)],_0x49cf2c[_0x2e2430(0x13b)][_0x2e2430(0x12b)]),void 0x0!==_0x49cf2c[_0x2e2430(0x13b)][_0x2e2430(0x12e)]&&this[_0x2e2430(0xe2)](),this[_0x2e2430(0xf4)](_0x49cf2c[_0x2e2430(0xee)]);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x139)],_0x50dd2a(0xec),(_0x2e6b54,_0x2d2340)=>{const _0x192f1b=_0x50dd2a;this[_0x192f1b(0x111)][_0x192f1b(0x102)](_0x2d2340[_0x192f1b(0xee)]),this[_0x192f1b(0x110)][_0x192f1b(0xed)](_0x2d2340[_0x192f1b(0xee)]),this[_0x192f1b(0xf4)](_0x2d2340[_0x192f1b(0xee)]);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x139)],_0x50dd2a(0xdc),()=>{const _0x61dfb8=_0x50dd2a;this[_0x61dfb8(0xe2)]();}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x139)],_0x50dd2a(0x12d),(_0x1fb5e7,_0x2d2bcc)=>{const _0x1a728a=_0x50dd2a;this[_0x1a728a(0x101)](_0x2d2bcc[_0x1a728a(0x12d)],_0x2d2bcc[_0x1a728a(0xf1)],_0x2d2bcc[_0x1a728a(0xee)]);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x110)],_0x50dd2a(0xe9),(_0x48845d,_0x2d8fb5)=>{const _0x15c0d4=_0x50dd2a;this[_0x15c0d4(0xe4)](_0x2d8fb5['id']);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x110)],_0x50dd2a(0xe5),(_0x37c903,_0x5db82e)=>{const _0x39dd70=_0x50dd2a,_0x15b069=_0x5db82e[_0x39dd70(0x12e)]?_0x39dd70(0xfb):_0x39dd70(0xff);this[_0x39dd70(0x105)](_0x5db82e['id'],_0x15b069),this[_0x39dd70(0x117)](_0x5db82e['id'],_0x5db82e[_0x39dd70(0x12e)]);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x110)],_0x50dd2a(0x128),()=>{const _0x56d9ad=_0x50dd2a;_0x204c93[_0x56d9ad(0x13d)][_0x56d9ad(0x12f)](_0x56d9ad(0x11c));}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x111)],_0x50dd2a(0x113),()=>{const _0x3c7523=_0x50dd2a;this[_0x3c7523(0xe2)]();}),_0x204c93[_0x50dd2a(0x13d)]['on'](_0x50dd2a(0xf7),()=>{const _0x117e9c=_0x50dd2a;this[_0x117e9c(0x10d)]();}),this[_0x50dd2a(0x100)](_0x204c93,_0x50dd2a(0xf6),(_0x57b44c,_0x1850c9)=>{const _0x39d8ec=_0x50dd2a;this[_0x39d8ec(0x130)](_0x1850c9);}),this[_0x50dd2a(0x100)](this[_0x50dd2a(0x110)],_0x50dd2a(0x122),()=>{const _0x65b003=_0x50dd2a;_0x204c93[_0x65b003(0xf9)]();});}async[_0x3bb777(0x129)](_0xb841a4,_0x332975){const _0x58bab3=_0x3bb777;await this[_0x58bab3(0x139)][_0x58bab3(0x13a)](_0xb841a4,_0x332975);}async[_0x3bb777(0x117)](_0x2ff466,_0x166f17){const _0x1eb635=_0x3bb777;await this[_0x1eb635(0x139)][_0x1eb635(0x10a)](_0x2ff466,_0x166f17);}async[_0x3bb777(0x12c)](_0xafb7de){const _0xfe62e3=_0x3bb777;await this[_0xfe62e3(0x139)][_0xfe62e3(0x116)](_0xafb7de);}async[_0x3bb777(0xe4)](_0x53499b){const _0x13d44d=_0x3bb777;await this[_0x13d44d(0x111)][_0x13d44d(0xf3)](_0x53499b);}async[_0x3bb777(0x10d)](){const _0xb2f575=_0x3bb777;this[_0xb2f575(0x110)][_0xb2f575(0xeb)](''),this[_0xb2f575(0x110)][_0xb2f575(0x10b)](!0x0),await this[_0xb2f575(0x139)][_0xb2f575(0x115)](),this[_0xb2f575(0x110)][_0xb2f575(0x10b)](!0x1);}[_0x3bb777(0xe2)](){const _0x4d28a2=_0x3bb777,_0x45a70f=this[_0x4d28a2(0x111)][_0x4d28a2(0xde)]?.['id'],_0x283107=this[_0x4d28a2(0x124)]()[_0x4d28a2(0x11e)](_0x3d26f2=>({'title':_0x3d26f2[_0x4d28a2(0x12b)],'items':_0x3d26f2[_0x4d28a2(0x132)][_0x4d28a2(0x11e)](_0x26c02b=>({'id':_0x26c02b['id'],'title':_0x26c02b[_0x4d28a2(0x12b)]||_0x2c5fd4(this[_0x4d28a2(0x108)][_0x4d28a2(0x119)],_0x4d28a2(0x11a)),'createdAt':new Date(_0x26c02b[_0x4d28a2(0xf8)])[_0x4d28a2(0x136)](),'active':_0x26c02b['id']===_0x45a70f,'pinned':_0x26c02b[_0x4d28a2(0x12e)]}))}));this[_0x4d28a2(0x110)][_0x4d28a2(0x10c)](_0x283107);}[_0x3bb777(0x105)](_0x2c37cb,_0x59722f){const _0x1bf24b=_0x3bb777;this[_0x1bf24b(0x110)][_0x1bf24b(0xf2)](_0x2c37cb,_0x59722f,!0x0);}[_0x3bb777(0xf4)](_0x495a5e){const _0x5d2e99=_0x3bb777;this[_0x5d2e99(0x110)][_0x5d2e99(0xf2)](_0x495a5e,null,!0x1);}[_0x3bb777(0x101)](_0x531615,_0x2eb4c6,_0x54b265){const _0x2a64b3=_0x3bb777,_0x527459=this[_0x2a64b3(0xe8)](_0x2eb4c6,_0x54b265);this[_0x2a64b3(0x110)][_0x2a64b3(0xeb)](_0x527459),_0x54b265&&this[_0x2a64b3(0xf4)](_0x54b265),this[_0x2a64b3(0x110)][_0x2a64b3(0x10b)](!0x1);}[_0x3bb777(0xe8)](_0x16afb9,_0x6641ca){const _0x34fa2c=_0x3bb777,_0x3f8329=_0x6641ca?this[_0x34fa2c(0x139)][_0x34fa2c(0x125)](_0x6641ca):null,_0x408804=_0x3f8329?.[_0x34fa2c(0x12b)]||_0x2c5fd4(this[_0x34fa2c(0x108)][_0x34fa2c(0x119)],_0x34fa2c(0x11a));switch(_0x16afb9){case _0x34fa2c(0x13a):return _0x2c5fd4(this[_0x34fa2c(0x108)][_0x34fa2c(0x119)],_0x34fa2c(0x114),_0x408804);case _0x34fa2c(0x10a):{const _0x3fda50=_0x2c5fd4(this[_0x34fa2c(0x108)][_0x34fa2c(0x119)],_0x3f8329?.[_0x34fa2c(0x12e)]?_0x34fa2c(0xdf):_0x34fa2c(0xfc));return _0x2c5fd4(this[_0x34fa2c(0x108)][_0x34fa2c(0x119)],_0x34fa2c(0x127),[_0x3fda50,_0x408804]);}case _0x34fa2c(0x116):return _0x2c5fd4(this[_0x34fa2c(0x108)][_0x34fa2c(0x119)],_0x34fa2c(0xe6),_0x408804);case _0x34fa2c(0x115):case _0x34fa2c(0x121):return _0x2c5fd4(this[_0x34fa2c(0x108)][_0x34fa2c(0x119)],_0x34fa2c(0xf0));default:return _0x2c5fd4(this[_0x34fa2c(0x108)][_0x34fa2c(0x119)],_0x34fa2c(0x138));}}[_0x3bb777(0x124)](){const _0x2c8895=_0x3bb777,_0x2a0bcb=new Date(),_0x32cdf7=new Date(_0x2a0bcb[_0x2c8895(0x104)](),_0x2a0bcb[_0x2c8895(0xfe)](),_0x2a0bcb[_0x2c8895(0x13c)]()),_0x54a3a5=new Date(_0x32cdf7);_0x54a3a5[_0x2c8895(0x12a)](_0x54a3a5[_0x2c8895(0x13c)]()-0x1);const _0x47d2aa=new Date(_0x32cdf7);_0x47d2aa[_0x2c8895(0x12a)](_0x47d2aa[_0x2c8895(0x13c)]()-0xe);const _0x56009b=this[_0x2c8895(0x139)][_0x2c8895(0x107)]({'pinned':!0x0}),_0x186092=this[_0x2c8895(0x139)][_0x2c8895(0x107)]({'from':_0x32cdf7,'to':_0x32cdf7}),_0x1ffabd=this[_0x2c8895(0x139)][_0x2c8895(0x107)]({'from':_0x54a3a5,'to':_0x54a3a5}),_0x3ce56e=this[_0x2c8895(0x139)][_0x2c8895(0x107)]({'from':_0x47d2aa,'to':_0x54a3a5}),_0x477d06=this[_0x2c8895(0x139)][_0x2c8895(0x107)]({'to':_0x47d2aa}),_0x18e436=[];return _0x56009b[_0x2c8895(0xe7)]>0x0&&_0x18e436[_0x2c8895(0xef)]({'title':_0x2c5fd4(this[_0x2c8895(0x108)][_0x2c8895(0x119)],_0x2c8895(0x120)),'items':_0x56009b}),_0x186092[_0x2c8895(0xe7)]>0x0&&_0x18e436[_0x2c8895(0xef)]({'title':_0x2c5fd4(this[_0x2c8895(0x108)][_0x2c8895(0x119)],_0x2c8895(0xfa)),'items':_0x186092}),_0x1ffabd[_0x2c8895(0xe7)]>0x0&&_0x18e436[_0x2c8895(0xef)]({'title':_0x2c5fd4(this[_0x2c8895(0x108)][_0x2c8895(0x119)],_0x2c8895(0x134)),'items':_0x1ffabd}),_0x3ce56e[_0x2c8895(0xe7)]>0x0&&_0x18e436[_0x2c8895(0xef)]({'title':_0x2c5fd4(this[_0x2c8895(0x108)][_0x2c8895(0x119)],_0x2c8895(0xe3)),'items':_0x3ce56e}),_0x477d06[_0x2c8895(0xe7)]>0x0&&_0x18e436[_0x2c8895(0xef)]({'title':_0x2c5fd4(this[_0x2c8895(0x108)][_0x2c8895(0x119)],_0x2c8895(0x112)),'items':_0x477d06}),_0x18e436;}[_0x3bb777(0x130)](_0x5bd8b4){const _0x23189c=_0x3bb777;this[_0x23189c(0x110)][_0x23189c(0xdb)](_0x5bd8b4);}}
|
|
23
|
+
const _0x5931df=_0x27b6;function _0x9d61(){const _0x113a4d=['unpin','operation','selectConversation','itemId','updateItemLoadingState','activeConversation','updateItemTitle','624xflChC','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_CATEGORY_LATER','get','openChat','toLocaleDateString','getGroupId','context','4UrVLFX','1662930SVPWOY','setLoadingSkeleton','getItems','_handleHistoryErrorUI','10603934qfxKbH','_setIsMaximized','AI_CHAT_UNTITLED_CONVERSATION','itemRemoved','_clearItemLoading','itemsLoaded','_showConversationHistory','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','rename','_handleRemove','_aiChatController','resize','_generateErrorMessage','view','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_UNPIN_ACTION','isOfficialPlugin','_setItemLoading','updateItems','3689BYnvrz','length','showError','getItem','isPremiumPlugin','getFullYear','resizedTabs','activateTab','editConversationTitle','plugins','AI_CHAT_HISTORY_CATEGORY_TODAY','5704IxqEAk','push','816200aszbhE','remove','chat','_handleSelectConversation','items','getDate','setDate','resizeTabs','removeConversation','listenTo','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_getCategorizedItems','setIsMaximized','history','map','updates','_updateHistoryItemsUI','updateItemPinned','activateTab:history','loadConversation','pin','locale','createdAt','_handleTogglePin','pinned','532878IMHPCR','AI_CHAT_HISTORY_ERROR_GENERIC','AI_CHAT_HISTORY_PIN_ACTION','error','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','change:activeConversation','title','pluginName','16955vywHNE','AIChatHistoryController','getMonth','itemUpdated','init','AI_CHAT_HISTORY_CATEGORY_PINNED','_aiChatHistoryUi','removeHistoryItem','requires','4090404kPJJtw','handleRemovedConversation','30BKmjKG','setConversationPinned','_handleEditTitle','removeItem','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','loadItems','_aiConnector'];_0x9d61=function(){return _0x113a4d;};return _0x9d61();}(function(_0x36d52a,_0x3161ec){const _0x18960b=_0x27b6,_0x5bd68e=_0x36d52a();while(!![]){try{const _0x4e3f61=-parseInt(_0x18960b(0x113))/0x1+-parseInt(_0x18960b(0x155))/0x2*(parseInt(_0x18960b(0x12c))/0x3)+-parseInt(_0x18960b(0x13d))/0x4+parseInt(_0x18960b(0x134))/0x5*(-parseInt(_0x18960b(0x14d))/0x6)+parseInt(_0x18960b(0x106))/0x7*(parseInt(_0x18960b(0x111))/0x8)+-parseInt(_0x18960b(0x156))/0x9+-parseInt(_0x18960b(0x13f))/0xa*(-parseInt(_0x18960b(0x15a))/0xb);if(_0x4e3f61===_0x3161ec)break;else _0x5bd68e['push'](_0x5bd68e['shift']());}catch(_0x2004a0){_0x5bd68e['push'](_0x5bd68e['shift']());}}}(_0x9d61,0x82eb6));function _0x27b6(_0x1dbeaa,_0x5e617a){const _0x9d6190=_0x9d61();return _0x27b6=function(_0x27b695,_0x40c9c4){_0x27b695=_0x27b695-0xff;let _0x5490da=_0x9d6190[_0x27b695];return _0x5490da;},_0x27b6(_0x1dbeaa,_0x5e617a);}import{ContextPlugin as _0x3226e5}from'ckeditor5/src/core.js';import{AIConnector as _0x140f49}from'../aicore/aiconnector.js';import{AIChatController as _0x72ca44}from'../aichat/aichatcontroller.js';import{AITabs as _0x3c1c78}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x380b52}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x1752c3}from'./model/aichathistoryconversations.js';import{getTranslation as _0x48c4e6}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x3226e5{[_0x5931df(0x145)];[_0x5931df(0x13a)];[_0x5931df(0x164)];static get[_0x5931df(0x13c)](){return[_0x140f49,_0x72ca44,_0x380b52,_0x3c1c78];}static get[_0x5931df(0x133)](){const _0x457a63=_0x5931df;return _0x457a63(0x135);}static get[_0x5931df(0x103)](){return!0x0;}static get[_0x5931df(0x10a)](){return!0x0;}[_0x5931df(0x138)](){const _0x1c4ee6=_0x5931df;this[_0x1c4ee6(0x145)]=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x140f49),this[_0x1c4ee6(0x13a)]=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x380b52),this[_0x1c4ee6(0x164)]=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x72ca44);const _0x496ee3=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x3c1c78),_0x467acd=this[_0x1c4ee6(0x164)][_0x1c4ee6(0x153)]();this[_0x1c4ee6(0x120)]=new _0x1752c3({'connector':this[_0x1c4ee6(0x145)],'group':_0x467acd}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x11b),(_0x5e5156,_0x26d69a)=>{const _0x454ed2=_0x1c4ee6;this[_0x454ed2(0x104)](_0x26d69a['id'],_0x454ed2(0x114)),this[_0x454ed2(0x163)](_0x26d69a['id']);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x10e),(_0x51bed8,_0x49fd96)=>{const _0x4f3d12=_0x1c4ee6;this[_0x4f3d12(0x104)](_0x49fd96['id'],_0x4f3d12(0x162)),this[_0x4f3d12(0x141)](_0x49fd96['id'],_0x49fd96[_0x4f3d12(0x132)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x137),(_0x517c9e,_0x10f9c8)=>{const _0x133781=_0x1c4ee6;void 0x0!==_0x10f9c8[_0x133781(0x122)][_0x133781(0x132)]&&this[_0x133781(0x13a)][_0x133781(0x14c)](_0x10f9c8[_0x133781(0x149)],_0x10f9c8[_0x133781(0x122)][_0x133781(0x132)]),void 0x0!==_0x10f9c8[_0x133781(0x122)][_0x133781(0x12b)]&&this[_0x133781(0x123)](),this[_0x133781(0x15e)](_0x10f9c8[_0x133781(0x149)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x15d),(_0x27bc2a,_0x35a453)=>{const _0x5a24e9=_0x1c4ee6;this[_0x5a24e9(0x164)][_0x5a24e9(0x13e)](_0x35a453[_0x5a24e9(0x149)]),this[_0x5a24e9(0x13a)][_0x5a24e9(0x13b)](_0x35a453[_0x5a24e9(0x149)]),this[_0x5a24e9(0x15e)](_0x35a453[_0x5a24e9(0x149)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x15f),()=>{const _0x53ebe4=_0x1c4ee6;this[_0x53ebe4(0x123)]();}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x12f),(_0xa6a676,_0x2cb063)=>{const _0x4eab04=_0x1c4ee6;this[_0x4eab04(0x159)](_0x2cb063[_0x4eab04(0x12f)],_0x2cb063[_0x4eab04(0x147)],_0x2cb063[_0x4eab04(0x149)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x148),(_0x1c6146,_0x28ef29)=>{const _0x2b0ac7=_0x1c4ee6;this[_0x2b0ac7(0x116)](_0x28ef29['id']);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x140),(_0x4903bf,_0x2bed83)=>{const _0x25a27e=_0x1c4ee6,_0x45d851=_0x2bed83[_0x25a27e(0x12b)]?_0x25a27e(0x127):_0x25a27e(0x146);this[_0x25a27e(0x104)](_0x2bed83['id'],_0x45d851),this[_0x25a27e(0x12a)](_0x2bed83['id'],_0x2bed83[_0x25a27e(0x12b)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x151),()=>{const _0x4178bd=_0x1c4ee6;_0x496ee3[_0x4178bd(0x100)][_0x4178bd(0x10d)](_0x4178bd(0x115));}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x164)],_0x1c4ee6(0x131),()=>{const _0x7e8f16=_0x1c4ee6;this[_0x7e8f16(0x123)]();}),_0x496ee3[_0x1c4ee6(0x100)]['on'](_0x1c4ee6(0x125),()=>{const _0x17c012=_0x1c4ee6;this[_0x17c012(0x160)]();}),this[_0x1c4ee6(0x11c)](_0x496ee3,_0x1c4ee6(0x10c),(_0x3e8564,_0x34d5c1)=>{const _0x6d9e00=_0x1c4ee6;this[_0x6d9e00(0x15b)](_0x34d5c1);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x11a),()=>{const _0x5eafc2=_0x1c4ee6;_0x496ee3[_0x5eafc2(0x165)]();});}async[_0x5931df(0x141)](_0x29242a,_0x53ffd3){const _0x211e63=_0x5931df;await this[_0x211e63(0x120)][_0x211e63(0x14c)](_0x29242a,_0x53ffd3);}async[_0x5931df(0x12a)](_0x108421,_0x3ede99){const _0x26ad0e=_0x5931df;await this[_0x26ad0e(0x120)][_0x26ad0e(0x124)](_0x108421,_0x3ede99);}async[_0x5931df(0x163)](_0xa12917){const _0x2a7e84=_0x5931df;await this[_0x2a7e84(0x120)][_0x2a7e84(0x142)](_0xa12917);}async[_0x5931df(0x116)](_0x3b1a07){const _0xef1a45=_0x5931df;await this[_0xef1a45(0x164)][_0xef1a45(0x126)](_0x3b1a07);}async[_0x5931df(0x160)](){const _0x5c1d43=_0x5931df;this[_0x5c1d43(0x13a)][_0x5c1d43(0x108)](''),this[_0x5c1d43(0x13a)][_0x5c1d43(0x157)](!0x0),await this[_0x5c1d43(0x120)][_0x5c1d43(0x138)](),this[_0x5c1d43(0x13a)][_0x5c1d43(0x157)](!0x1);}[_0x5931df(0x123)](){const _0x36bdcf=_0x5931df,_0x3fbae3=this[_0x36bdcf(0x164)][_0x36bdcf(0x14b)]?.['id'],_0x3741bb=this[_0x36bdcf(0x11e)]()[_0x36bdcf(0x121)](_0x26b501=>({'title':_0x26b501[_0x36bdcf(0x132)],'items':_0x26b501[_0x36bdcf(0x117)][_0x36bdcf(0x121)](_0x5d5e9b=>({'id':_0x5d5e9b['id'],'title':_0x5d5e9b[_0x36bdcf(0x132)]||_0x48c4e6(this[_0x36bdcf(0x154)][_0x36bdcf(0x128)],_0x36bdcf(0x15c)),'createdAt':new Date(_0x5d5e9b[_0x36bdcf(0x129)])[_0x36bdcf(0x152)](),'active':_0x5d5e9b['id']===_0x3fbae3,'pinned':_0x5d5e9b[_0x36bdcf(0x12b)]}))}));this[_0x36bdcf(0x13a)][_0x36bdcf(0x105)](_0x3741bb);}[_0x5931df(0x104)](_0x3910fa,_0x4d9ad0){const _0x18954c=_0x5931df;this[_0x18954c(0x13a)][_0x18954c(0x14a)](_0x3910fa,_0x4d9ad0,!0x0);}[_0x5931df(0x15e)](_0x48233f){const _0x316793=_0x5931df;this[_0x316793(0x13a)][_0x316793(0x14a)](_0x48233f,null,!0x1);}[_0x5931df(0x159)](_0x561ee9,_0x499735,_0x53e72f){const _0x14f49c=_0x5931df,_0x4aadda=this[_0x14f49c(0xff)](_0x499735,_0x53e72f);this[_0x14f49c(0x13a)][_0x14f49c(0x108)](_0x4aadda),_0x53e72f&&this[_0x14f49c(0x15e)](_0x53e72f),this[_0x14f49c(0x13a)][_0x14f49c(0x157)](!0x1);}[_0x5931df(0xff)](_0x5ac482,_0x2767fe){const _0x160ff9=_0x5931df,_0x45539e=_0x2767fe?this[_0x160ff9(0x120)][_0x160ff9(0x109)](_0x2767fe):null,_0x79131c=_0x45539e?.[_0x160ff9(0x132)]||_0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x15c));switch(_0x5ac482){case _0x160ff9(0x14c):return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x101),_0x79131c);case _0x160ff9(0x124):{const _0x3b1a1e=_0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x45539e?.[_0x160ff9(0x12b)]?_0x160ff9(0x102):_0x160ff9(0x12e));return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x14e),[_0x3b1a1e,_0x79131c]);}case _0x160ff9(0x142):return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x161),_0x79131c);case _0x160ff9(0x138):case _0x160ff9(0x144):return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x11d));default:return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x12d));}}[_0x5931df(0x11e)](){const _0x427618=_0x5931df,_0x127d89=new Date(),_0x50321b=new Date(_0x127d89[_0x427618(0x10b)](),_0x127d89[_0x427618(0x136)](),_0x127d89[_0x427618(0x118)]()),_0x363070=new Date(_0x50321b);_0x363070[_0x427618(0x119)](_0x363070[_0x427618(0x118)]()-0x1);const _0xd992d=new Date(_0x50321b);_0xd992d[_0x427618(0x119)](_0xd992d[_0x427618(0x118)]()-0xe);const _0xc05930=this[_0x427618(0x120)][_0x427618(0x158)]({'pinned':!0x0}),_0x55991b=this[_0x427618(0x120)][_0x427618(0x158)]({'from':_0x50321b,'to':_0x50321b}),_0xb372a6=this[_0x427618(0x120)][_0x427618(0x158)]({'from':_0x363070,'to':_0x363070}),_0x384dec=this[_0x427618(0x120)][_0x427618(0x158)]({'from':_0xd992d,'to':_0x363070}),_0x544ed5=this[_0x427618(0x120)][_0x427618(0x158)]({'to':_0xd992d}),_0x45ffd4=[];return _0xc05930[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x139)),'items':_0xc05930}),_0x55991b[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x110)),'items':_0x55991b}),_0xb372a6[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x130)),'items':_0xb372a6}),_0x384dec[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x143)),'items':_0x384dec}),_0x544ed5[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x14f)),'items':_0x544ed5}),_0x45ffd4;}[_0x5931df(0x15b)](_0x465633){const _0x70959d=_0x5931df;this[_0x70959d(0x13a)][_0x70959d(0x11f)](_0x465633);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x492313=_0x3382;(function(_0xcca3f,_0x459252){const _0x51ea5b=_0x3382,_0x46c154=_0xcca3f();while(!![]){try{const _0x43919f=-parseInt(_0x51ea5b(0x1ef))/0x1*(-parseInt(_0x51ea5b(0x21a))/0x2)+parseInt(_0x51ea5b(0x208))/0x3+-parseInt(_0x51ea5b(0x212))/0x4+-parseInt(_0x51ea5b(0x20b))/0x5*(-parseInt(_0x51ea5b(0x205))/0x6)+parseInt(_0x51ea5b(0x210))/0x7+-parseInt(_0x51ea5b(0x206))/0x8*(parseInt(_0x51ea5b(0x201))/0x9)+parseInt(_0x51ea5b(0x1f0))/0xa*(-parseInt(_0x51ea5b(0x1f6))/0xb);if(_0x43919f===_0x459252)break;else _0x46c154['push'](_0x46c154['shift']());}catch(_0x5dff68){_0x46c154['push'](_0x46c154['shift']());}}}(_0x5149,0xbf627));import{ContextPlugin as _0x4c8a0c}from'ckeditor5/src/core.js';import{AITabs as _0x5771da}from'../aitabs/aitabs.js';import{IconAIHistory as _0x11ea2c}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0xfe36f2}from'./ui/aichathistoryview.js';function _0x3382(_0x1450b6,_0x4fee5d){const _0x514933=_0x5149();return _0x3382=function(_0x3382df,_0x17aa65){_0x3382df=_0x3382df-0x1ef;let _0x3857d1=_0x514933[_0x3382df];return _0x3857d1;},_0x3382(_0x1450b6,_0x4fee5d);}import{getTranslation as _0x286e9b}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x492313(0x219),_0x492313(0x1f2),_0x492313(0x21d),_0x492313(0x20f),_0x492313(0x1fd),_0x492313(0x1fb),_0x492313(0x1f1)];function _0x5149(){const _0x4cd263=['setConversationPinned','10650206ZOvTBf','showResizeButton','2161292BHbuSe','AI_CHAT_HISTORY_HEADING','updateItemTitle','requires','isPremiumPlugin','updateHistoryItemsWithCategories','locale','showConversationHistory','2YgWlsH','updateItems','_historyView','editConversationTitle','98030QVklui','10BMSRhO','resizeTabs','removeConversation','context','setLoadingSkeleton','isOfficialPlugin','12420496cwThDy','pluginName','errorMessage','get','showError','openChat','view','selectConversation','hideError','updateItemLoadingState','addTab','1917CKtVQv','isMaximized','delegate','plugins','6MwScsc','33896cCUaeF','setIsMaximized','3878094WSCcgI','isLoading','removeHistoryItem','2218325dEpBuW','AIChatHistoryUI','AITabs','history'];_0x5149=function(){return _0x4cd263;};return _0x5149();}export class AIChatHistoryUI extends _0x4c8a0c{static get[_0x492313(0x215)](){return[_0x5771da];}[_0x492313(0x21c)];static get[_0x492313(0x1f7)](){const _0x26febf=_0x492313;return _0x26febf(0x20c);}static get[_0x492313(0x1f5)](){return!0x0;}static get[_0x492313(0x216)](){return!0x0;}constructor(_0x22ef36){const _0x4f5ced=_0x492313;super(_0x22ef36);const _0x32281d=this[_0x4f5ced(0x1f3)][_0x4f5ced(0x204)][_0x4f5ced(0x1f9)](_0x4f5ced(0x20d));this[_0x4f5ced(0x21c)]=new _0xfe36f2(this[_0x4f5ced(0x1f3)][_0x4f5ced(0x218)],_0x32281d[_0x4f5ced(0x211)]),this[_0x4f5ced(0x21c)][_0x4f5ced(0x203)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x32281d[_0x4f5ced(0x1fc)][_0x4f5ced(0x200)]({'id':_0x4f5ced(0x20e),'buttonLabel':_0x286e9b(this[_0x4f5ced(0x1f3)][_0x4f5ced(0x218)],_0x4f5ced(0x213)),'buttonIcon':_0x11ea2c,'order':0x0,'content':this[_0x4f5ced(0x21c)]});}[_0x492313(0x20a)](_0x21c81b){const _0x4fab34=_0x492313;this[_0x4fab34(0x21c)][_0x4fab34(0x20a)](_0x21c81b);}[_0x492313(0x21b)](_0x2cbd6d){const _0x441a5f=_0x492313;this[_0x441a5f(0x21c)][_0x441a5f(0x217)](_0x2cbd6d);}[_0x492313(0x214)](_0x4611bf,_0x58d515){const _0x366eb2=_0x492313;this[_0x366eb2(0x21c)][_0x366eb2(0x214)](_0x4611bf,_0x58d515);}[_0x492313(0x1ff)](_0x1838cd,_0x22c846,_0x464987){const _0x95210a=_0x492313;this[_0x95210a(0x21c)][_0x95210a(0x1ff)](_0x1838cd,_0x22c846,_0x464987);}[_0x492313(0x1f4)](_0x2a20ed){const _0xdaed1b=_0x492313;this[_0xdaed1b(0x21c)][_0xdaed1b(0x209)]=_0x2a20ed;}[_0x492313(0x1fa)](_0x5233df){const _0x21355a=_0x492313;this[_0x21355a(0x21c)][_0x21355a(0x1f8)]=_0x5233df;}[_0x492313(0x1fe)](){const _0x248061=_0x492313;this[_0x248061(0x21c)][_0x248061(0x1f8)]='';}[_0x492313(0x207)](_0x2e1af6){const _0x15f60=_0x492313;this[_0x15f60(0x21c)][_0x15f60(0x202)]=_0x2e1af6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x7e3d(_0x325910,_0x2e8b46){const _0x453c99=_0x453c();return _0x7e3d=function(_0x7e3d43,_0x30e5b0){_0x7e3d43=_0x7e3d43-0x185;let _0x709724=_0x453c99[_0x7e3d43];return _0x709724;},_0x7e3d(_0x325910,_0x2e8b46);}function _0x453c(){const _0xcc5006=['getFullYear','getMonth','push','error','1962030KowbFY','connector','updatePinned','getTime','loadItems','removeItem','deleteConversation','createdAt','7366HatXHq','getDate','findIndex','updateItemPinned','updateItemTitle','2753502DSQsmS','pinned','execute','fetchConversations','group','getItems','215kHsKNa','itemRemoved','updateConversation','762592QfgYiG','17878230SzBtkb','4084328kBrQma','splice','updateTitle','init','from','addItem','map','itemUpdated','3592780PSgJZN','getResult','56PaYWiv','items','getItem','getConversations','itemsLoaded','filter','find','fire'];_0x453c=function(){return _0xcc5006;};return _0x453c();}const _0x763b8b=_0x7e3d;(function(_0x21cda4,_0x4d97d4){const _0x2c3a4b=_0x7e3d,_0x133eae=_0x21cda4();while(!![]){try{const _0x20e8f2=-parseInt(_0x2c3a4b(0x1ab))/0x1*(-parseInt(_0x2c3a4b(0x1a0))/0x2)+-parseInt(_0x2c3a4b(0x1a5))/0x3+-parseInt(_0x2c3a4b(0x1b0))/0x4+-parseInt(_0x2c3a4b(0x18a))/0x5+-parseInt(_0x2c3a4b(0x198))/0x6+-parseInt(_0x2c3a4b(0x18c))/0x7*(-parseInt(_0x2c3a4b(0x1ae))/0x8)+parseInt(_0x2c3a4b(0x1af))/0x9;if(_0x20e8f2===_0x4d97d4)break;else _0x133eae['push'](_0x133eae['shift']());}catch(_0x129b99){_0x133eae['push'](_0x133eae['shift']());}}}(_0x453c,0x87d8e));import{EmitterMixin as _0x513568}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x227e25}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x513568(){[_0x763b8b(0x18d)]=[];[_0x763b8b(0x199)];[_0x763b8b(0x1a9)];constructor({connector:_0x200935,group:_0x19df55}){const _0x1317db=_0x763b8b;super(),this[_0x1317db(0x199)]=_0x200935,this[_0x1317db(0x1a9)]=_0x19df55;}async[_0x763b8b(0x185)](){const _0x2843a2=_0x763b8b;try{const _0x26a9d3=this[_0x2843a2(0x199)][_0x2843a2(0x1a8)](this[_0x2843a2(0x1a9)]),_0x4bef37=await _0x26a9d3[_0x2843a2(0x18f)]();this[_0x2843a2(0x19c)](_0x4bef37);}catch(_0x3938ba){this[_0x2843a2(0x193)](_0x2843a2(0x197),{'error':_0x3938ba,'operation':_0x2843a2(0x185)});}}[_0x763b8b(0x187)](_0x2c86af){const _0x9933a3=_0x763b8b;this[_0x9933a3(0x18d)][_0x9933a3(0x196)](_0x2c86af);}async[_0x763b8b(0x19d)](_0x23565b){const _0x1fd9cb=_0x763b8b,_0x3ba845=this[_0x1fd9cb(0x18d)][_0x1fd9cb(0x1a2)](_0x4c7982=>_0x4c7982['id']===_0x23565b);if(-0x1===_0x3ba845)return!0x1;try{return await this[_0x1fd9cb(0x199)][_0x1fd9cb(0x19e)](_0x23565b)[_0x1fd9cb(0x1a7)](),this[_0x1fd9cb(0x18d)][_0x1fd9cb(0x1b1)](_0x3ba845,0x1),this[_0x1fd9cb(0x193)](_0x1fd9cb(0x1ac),{'itemId':_0x23565b}),!0x0;}catch(_0x47d92c){return this[_0x1fd9cb(0x193)](_0x1fd9cb(0x197),{'error':_0x47d92c,'operation':_0x1fd9cb(0x19d),'itemId':_0x23565b}),!0x1;}}[_0x763b8b(0x18e)](_0x37486f){const _0x347ec9=_0x763b8b;return this[_0x347ec9(0x18d)][_0x347ec9(0x192)](_0xe89a9=>_0xe89a9['id']===_0x37486f);}async[_0x763b8b(0x1a4)](_0x4c1f3b,_0x3fd05a){const _0x25506e=_0x763b8b,_0x376f79=this[_0x25506e(0x18e)](_0x4c1f3b);if(!_0x376f79)return!0x1;try{return await this[_0x25506e(0x199)][_0x25506e(0x1ad)](_0x4c1f3b,{'title':_0x3fd05a})[_0x25506e(0x18b)](),_0x376f79[_0x25506e(0x1b2)](_0x3fd05a),this[_0x25506e(0x193)](_0x25506e(0x189),{'itemId':_0x4c1f3b,'updates':{'title':_0x3fd05a}}),!0x0;}catch(_0x29527a){return this[_0x25506e(0x193)](_0x25506e(0x197),{'error':_0x29527a,'operation':_0x25506e(0x1a4),'itemId':_0x4c1f3b}),!0x1;}}async[_0x763b8b(0x1a3)](_0xc811be,_0x5f329b){const _0x2bf3e0=_0x763b8b,_0x1dcd97=this[_0x2bf3e0(0x18e)](_0xc811be);if(!_0x1dcd97)return!0x1;try{return await this[_0x2bf3e0(0x199)][_0x2bf3e0(0x1ad)](_0xc811be,{'pinned':_0x5f329b})[_0x2bf3e0(0x18b)](),_0x1dcd97[_0x2bf3e0(0x19a)](_0x5f329b),this[_0x2bf3e0(0x193)](_0x2bf3e0(0x189),{'itemId':_0xc811be,'updates':{'pinned':_0x5f329b}}),!0x0;}catch(_0x54b993){return this[_0x2bf3e0(0x193)](_0x2bf3e0(0x197),{'error':_0x54b993,'operation':_0x2bf3e0(0x1a3),'itemId':_0xc811be}),!0x1;}}[_0x763b8b(0x19c)](_0x41a115){const _0x3f05bf=_0x763b8b;try{this[_0x3f05bf(0x18d)]=[],_0x41a115[_0x3f05bf(0x188)](_0x44d73c=>{const _0x2d4a5b=_0x3f05bf;this[_0x2d4a5b(0x187)](new _0x227e25(_0x44d73c));}),this[_0x3f05bf(0x193)](_0x3f05bf(0x190),{'items':[...this[_0x3f05bf(0x18d)]]});}catch(_0x2f72ae){this[_0x3f05bf(0x193)](_0x3f05bf(0x197),{'error':_0x2f72ae,'operation':_0x3f05bf(0x19c)});}}[_0x763b8b(0x1aa)](_0x4669a4={}){const _0x355279=_0x763b8b,_0x19fcac=void 0x0!==_0x4669a4[_0x355279(0x1a6)]&&_0x4669a4[_0x355279(0x1a6)],_0x4c5ab0=_0x4669a4[_0x355279(0x186)]?new Date(_0x4669a4[_0x355279(0x186)][_0x355279(0x194)](),_0x4669a4[_0x355279(0x186)][_0x355279(0x195)](),_0x4669a4[_0x355279(0x186)][_0x355279(0x1a1)]()):null,_0x18323a=_0x4669a4['to']?new Date(_0x4669a4['to'][_0x355279(0x194)](),_0x4669a4['to'][_0x355279(0x195)](),_0x4669a4['to'][_0x355279(0x1a1)]()):null;return this[_0x355279(0x18d)][_0x355279(0x191)](_0x3999a0=>{const _0x366539=_0x355279;if(_0x3999a0[_0x366539(0x1a6)]!==_0x19fcac)return!0x1;if(_0x18323a){const _0x1df78d=new Date(_0x3999a0[_0x366539(0x19f)][_0x366539(0x194)](),_0x3999a0[_0x366539(0x19f)][_0x366539(0x195)](),_0x3999a0[_0x366539(0x19f)][_0x366539(0x1a1)]());return _0x4c5ab0?_0x4c5ab0[_0x366539(0x19b)]()===_0x18323a[_0x366539(0x19b)]()?_0x1df78d[_0x366539(0x19b)]()===_0x4c5ab0[_0x366539(0x19b)]():_0x1df78d<_0x18323a&&_0x1df78d>=_0x4c5ab0:_0x1df78d<_0x18323a;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x213b4a=_0x56ec;function _0x56ec(_0x1d825e,_0x2abad0){var _0x5294ad=_0x5294();return _0x56ec=function(_0x56ec2a,_0x10e767){_0x56ec2a=_0x56ec2a-0xdc;var _0x3272b9=_0x5294ad[_0x56ec2a];return _0x3272b9;},_0x56ec(_0x1d825e,_0x2abad0);}(function(_0x21e1bf,_0x2ecc49){var _0x210ccd=_0x56ec,_0x45fac0=_0x21e1bf();while(!![]){try{var _0x3d37ee=-parseInt(_0x210ccd(0xe7))/0x1+-parseInt(_0x210ccd(0xe3))/0x2+-parseInt(_0x210ccd(0xdf))/0x3*(parseInt(_0x210ccd(0xe4))/0x4)+parseInt(_0x210ccd(0xdc))/0x5*(-parseInt(_0x210ccd(0xe0))/0x6)+parseInt(_0x210ccd(0xe8))/0x7+-parseInt(_0x210ccd(0xe2))/0x8+parseInt(_0x210ccd(0xe6))/0x9;if(_0x3d37ee===_0x2ecc49)break;else _0x45fac0['push'](_0x45fac0['shift']());}catch(_0x434dd6){_0x45fac0['push'](_0x45fac0['shift']());}}}(_0x5294,0x48784));function _0x5294(){var _0x186bfd=['486Fgcvik','title','101992BURDIv','966476EpAPAE','36Ivqknm','set','6511023imlNzS','165575urtaHy','3792327oBqXWK','pinned','updateTitle','updatePinned','14585gcpPuB','createdAt','updatedAt','23511IKQdjh'];_0x5294=function(){return _0x186bfd;};return _0x5294();}import{ObservableMixin as _0x267f1a}from'ckeditor5/src/utils.js';import{escape as _0x16f5b4}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x267f1a(){['id'];[_0x213b4a(0xdd)];constructor({id:_0x2c9d93,title:_0x3bf094,createdAt:_0x284f09,updatedAt:_0x11e9f6,pinned:_0x3925c1}){var _0x3a612d=_0x213b4a;super(),this['id']=_0x2c9d93,this[_0x3a612d(0xdd)]=new Date(_0x284f09),this[_0x3a612d(0xe5)](_0x3a612d(0xe1),_0x3bf094),this[_0x3a612d(0xe5)](_0x3a612d(0xde),_0x11e9f6?new Date(_0x11e9f6):null),this[_0x3a612d(0xe5)](_0x3a612d(0xe9),_0x3925c1||!0x1);}[_0x213b4a(0xea)](_0x1d6338){var _0x12c962=_0x213b4a;this[_0x12c962(0xe5)](_0x12c962(0xe1),_0x16f5b4(_0x1d6338)),this[_0x12c962(0xde)]=new Date();}[_0x213b4a(0xeb)](_0x17ac8b){var _0x13623e=_0x213b4a;this[_0x13623e(0xe5)](_0x13623e(0xe9),_0x17ac8b),this[_0x13623e(0xde)]=new Date();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xaa24e0=_0x1cd7;(function(_0x359840,_0x4c6d43){const _0x58b009=_0x1cd7,_0x33a574=_0x359840();while(!![]){try{const _0x49fb2f=parseInt(_0x58b009(0xa1))/0x1*(-parseInt(_0x58b009(0x7b))/0x2)+parseInt(_0x58b009(0x7e))/0x3+-parseInt(_0x58b009(0x83))/0x4*(parseInt(_0x58b009(0xbf))/0x5)+-parseInt(_0x58b009(0xbb))/0x6*(-parseInt(_0x58b009(0x9d))/0x7)+parseInt(_0x58b009(0xa2))/0x8+parseInt(_0x58b009(0x9c))/0x9+-parseInt(_0x58b009(0xb5))/0xa;if(_0x49fb2f===_0x4c6d43)break;else _0x33a574['push'](_0x33a574['shift']());}catch(_0x29f5a4){_0x33a574['push'](_0x33a574['shift']());}}}(_0x3d0a,0xc06b0));import{ListItemView as _0x35c3e3,HighlightedTextView as _0x4f18db,ButtonView as _0x1fa10c,ListView as _0x319fca,IconView as _0x5b28bc,createDropdown as _0x509615,InputTextView as _0x360209}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x23b0e4,IconPin as _0x8d6dbb,IconCheck as _0x40eaaa,IconCancel as _0x305b6b}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x539aa6,ConfirmMixin as _0x1b77ff}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x3d0a(){const _0x32e372=['_commitEditInputValue','isVisible','isEdit','712cocODG','AI_CHAT_HISTORY_REMOVE','pinned','_createCancelEditButtonView','AI_CHAT_HISTORY_CANCEL','withText','ck-ai-chat-history__item-check-container','_createAcceptEditButtonView','AI_CHAT_HISTORY_LOADING_UNPINNING','createCollection','focus','ck-confirm-view-cancel','mainContent','_createCheckView','tiny','AI_CHAT_HISTORY_LOADING_PINNING','bindTemplate','ck-ai-chat-history__item-content','loadingState','LOADING_LABELS','bind','match','string','setConversationPinned','AI_CHAT_HISTORY_REMOVE_CONFIRM','8327511KuCOkc','1014559KKAWEA','showConfirm','value','editConversationTitle','2yPStTp','2372712HRrxGH','ck-ai-chat-history__item-row','ck-ai-chat-history__item--active','listitem','ck-ai-chat-history__item-check','text','panelView','click','items','_titleView','clear','then','highlightText','span','ck-confirm-view-submit','execute','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_PIN_BUTTON','key','14667110RdPJoH','div','buttonView','change:isEdit','_createSpinnerView','actions','42wQnZfr','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','label','selectConversation','5845DpqaqM','updateLoadingState','AI_CHAT_HISTORY_ACCEPT','isOn','locale','ck-ai-chat-history__item','_createMenuDropdownView','updateTitle','AI_CHAT_HISTORY_EDIT_NAME','AI_CHAT_HISTORY_LOADING_REMOVING','ck-ai-chat-history__item-main-content','ck-hidden','_createPinButtonView','_createEditInputView','addMany','set','extendTemplate','fire','children','setTemplate','add','ck-ai-chat-history__item-title','panelPosition','removeConversation','isMatching','AI_CHAT_HISTORY_LOADING_RENAMING','edit:cancel','ck-ai-loader__text','Enter','ck-ai-chat-history__item--edit','399198hpxWoo','ck-ai-loader','ck-ai-chat-history__item-date','1877124CwZKwe','element'];_0x3d0a=function(){return _0x32e372;};return _0x3d0a();}import{escape as _0x40e810}from'es-toolkit/compat';import{AISpinnerView as _0x3d4599}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x5b072e}from'../../aicore/utils/common-translations.js';function _0x1cd7(_0x52e8df,_0x57902f){const _0x3d0a17=_0x3d0a();return _0x1cd7=function(_0x1cd76b,_0x106d54){_0x1cd76b=_0x1cd76b-0x76;let _0x2c0139=_0x3d0a17[_0x1cd76b];return _0x2c0139;},_0x1cd7(_0x52e8df,_0x57902f);}export class AIChatHistoryListItemView extends _0x1b77ff(_0x35c3e3){['id'];static [_0xaa24e0(0x96)]={'remove':_0xaa24e0(0xc8),'rename':_0xaa24e0(0x76),'pin':_0xaa24e0(0x92),'unpin':_0xaa24e0(0x8b)};[_0xaa24e0(0xba)];[_0xaa24e0(0x8f)];[_0xaa24e0(0xab)];constructor(_0x51a803,_0x147b25){const _0x35c7ef=_0xaa24e0;super(_0x51a803);const _0x433e33=this[_0x35c7ef(0x93)];this[_0x35c7ef(0xce)](_0x35c7ef(0x82),!0x1),this[_0x35c7ef(0xce)](_0x35c7ef(0x81),!0x0),this[_0x35c7ef(0xce)](_0x35c7ef(0x85),!!_0x147b25[_0x35c7ef(0x85)]),this[_0x35c7ef(0xce)](_0x35c7ef(0x95),null),this['id']=_0x147b25['id'];const {title:_0x377c1e,createdAt:_0x25a9f7,active:_0x46aa8d=!0x1}=_0x147b25;this[_0x35c7ef(0xab)]=new _0x4f18db(),this[_0x35c7ef(0xab)][_0x35c7ef(0xa7)]=_0x377c1e,this[_0x35c7ef(0xab)][_0x35c7ef(0xcf)]({'attributes':{'class':[_0x35c7ef(0xd4)]}});const _0x2db5df=this[_0x35c7ef(0x90)](),_0x255f19=this[_0x35c7ef(0xcb)](_0x51a803),_0x2dd2bb=this[_0x35c7ef(0xc5)](),_0x59d36d=this[_0x35c7ef(0xcc)](_0x51a803,_0x377c1e),_0xdb8656=this[_0x35c7ef(0x8a)](_0x51a803,_0x59d36d),_0x13e44e=this[_0x35c7ef(0x86)](_0x51a803,_0x59d36d);this[_0x35c7ef(0xba)]=this[_0x35c7ef(0x8c)](),this[_0x35c7ef(0x8f)]=this[_0x35c7ef(0x8c)](),this[_0x35c7ef(0x8f)][_0x35c7ef(0xd3)](this[_0x35c7ef(0xab)]),this[_0x35c7ef(0xba)][_0x35c7ef(0xd3)](_0x255f19),this[_0x35c7ef(0xba)][_0x35c7ef(0xd3)](_0x2dd2bb),this['on'](_0x35c7ef(0xb8),(_0x5487bc,_0x5e470d,_0x50f7ee)=>{const _0xcbc3d9=_0x35c7ef;this[_0xcbc3d9(0xba)][_0xcbc3d9(0xac)](),this[_0xcbc3d9(0x8f)][_0xcbc3d9(0xac)](),_0x50f7ee?(this[_0xcbc3d9(0xba)][_0xcbc3d9(0xd3)](_0xdb8656),this[_0xcbc3d9(0xba)][_0xcbc3d9(0xd3)](_0x13e44e),this[_0xcbc3d9(0x8f)][_0xcbc3d9(0xd3)](_0x59d36d),_0x59d36d[_0xcbc3d9(0x7f)][_0xcbc3d9(0x8d)]()):(this[_0xcbc3d9(0xba)][_0xcbc3d9(0xd3)](_0x255f19),this[_0xcbc3d9(0xba)][_0xcbc3d9(0xd3)](_0x2dd2bb),this[_0xcbc3d9(0x8f)][_0xcbc3d9(0xd3)](this[_0xcbc3d9(0xab)]));}),this[_0x35c7ef(0xd2)]({'tag':'li','attributes':{'class':[_0x35c7ef(0xc4),_0x46aa8d?_0x35c7ef(0xa4):'',_0x433e33['if'](_0x35c7ef(0x81),_0x35c7ef(0xca),_0x3170dd=>!_0x3170dd),_0x433e33['if'](_0x35c7ef(0x82),_0x35c7ef(0x7a))],'role':_0x35c7ef(0xa5)},'children':[{'tag':_0x35c7ef(0xaf),'attributes':{'class':[_0x35c7ef(0x89)]},'children':[{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0xa6),_0x433e33['if'](_0x35c7ef(0x95),_0x35c7ef(0xca),_0x12108e=>!!_0x12108e)]},'children':_0x46aa8d?[_0x2db5df]:[]},{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0x7c),_0x433e33['if'](_0x35c7ef(0x95),_0x35c7ef(0xca),_0x3a52c0=>!_0x3a52c0)]},'children':[this[_0x35c7ef(0xb9)]()]}]},{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0xa3)]},'children':[{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0x94)]},'on':{'click':this[_0x35c7ef(0x93)]['to'](_0x35c7ef(0xa9))},'children':[{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0xc9)]},'children':[{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0xd4),_0x433e33['if'](_0x35c7ef(0x95),_0x35c7ef(0xca),_0x3d5ba1=>!!_0x3d5ba1)]},'children':this[_0x35c7ef(0x8f)]},{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0x78),_0x433e33['if'](_0x35c7ef(0x95),_0x35c7ef(0xca),_0x514838=>!_0x514838)]},'children':[{'text':_0x433e33['to'](_0x35c7ef(0x95),_0x6e3450=>_0x6e3450?_0x5b072e(this[_0x35c7ef(0xc3)],AIChatHistoryListItemView[_0x35c7ef(0x96)][_0x6e3450]):'')}]}]},{'tag':_0x35c7ef(0xaf),'attributes':{'class':[_0x35c7ef(0x7d)]},'children':[_0x25a9f7]}]},{'tag':_0x35c7ef(0xb6),'attributes':{'class':[_0x35c7ef(0xb2)]},'children':this[_0x35c7ef(0xba)]}]}]}),this['on'](_0x35c7ef(0xa9),()=>{const _0x19abd0=_0x35c7ef;this[_0x19abd0(0x82)]||this[_0x19abd0(0xd0)](_0x19abd0(0xbe),{'id':this['id']});});}[_0xaa24e0(0xc6)](_0x5381f7){const _0x48cc6c=_0xaa24e0;this[_0x48cc6c(0xab)][_0x48cc6c(0xa7)]=_0x40e810(_0x5381f7);}[_0xaa24e0(0xc0)](_0x111c98,_0x11231d){const _0x4b5ec3=_0xaa24e0;this[_0x4b5ec3(0xce)](_0x4b5ec3(0x95),_0x11231d?_0x111c98:null);}[_0xaa24e0(0x90)](){const _0x59fa43=_0xaa24e0,_0x4688ac=new _0x5b28bc();return _0x4688ac[_0x59fa43(0xce)]({'content':_0x40eaaa}),_0x4688ac;}[_0xaa24e0(0xcb)](_0x166cfd){const _0x5a1a3e=_0xaa24e0,_0x45e052=new _0x1fa10c(_0x166cfd);return _0x45e052[_0x5a1a3e(0xce)]({'label':_0x5b072e(_0x166cfd,_0x5a1a3e(0xb3)),'icon':_0x8d6dbb,'withText':!0x1,'tooltip':!0x0}),_0x45e052[_0x5a1a3e(0x97)](_0x5a1a3e(0xc2))['to'](this,_0x5a1a3e(0x85)),_0x45e052['on'](_0x5a1a3e(0xb1),()=>{const _0x17f0e2=_0x5a1a3e,_0x54bd8a=!this[_0x17f0e2(0x85)];this[_0x17f0e2(0xd0)](_0x17f0e2(0x9a),{'id':this['id'],'pinned':_0x54bd8a});}),_0x45e052;}[_0xaa24e0(0xc5)](){const _0x4a0aa6=_0xaa24e0,_0x2b234a=_0x509615(this[_0x4a0aa6(0xc3)],_0x539aa6),_0x11ba65=_0x2b234a[_0x4a0aa6(0xa8)][_0x4a0aa6(0xd1)];_0x2b234a[_0x4a0aa6(0xb7)][_0x4a0aa6(0xce)]({'label':_0x5b072e(this[_0x4a0aa6(0xc3)],_0x4a0aa6(0xbc)),'icon':_0x23b0e4}),_0x2b234a[_0x4a0aa6(0xd5)]='sw';const _0x15c9e7=new _0x1fa10c(this[_0x4a0aa6(0xc3)]);_0x15c9e7[_0x4a0aa6(0xbd)]=_0x5b072e(this[_0x4a0aa6(0xc3)],_0x4a0aa6(0xc7)),_0x15c9e7[_0x4a0aa6(0x88)]=!0x0,_0x15c9e7['on'](_0x4a0aa6(0xb1),()=>{const _0x38c2ff=_0x4a0aa6;this[_0x38c2ff(0x82)]=!0x0;});const _0x4fea59=new _0x1fa10c(this[_0x4a0aa6(0xc3)]);_0x4fea59[_0x4a0aa6(0xbd)]=_0x5b072e(this[_0x4a0aa6(0xc3)],_0x4a0aa6(0x84)),_0x4fea59[_0x4a0aa6(0x88)]=!0x0,_0x4fea59['on'](_0x4a0aa6(0xb1),()=>{const _0x18c1e4=_0x4a0aa6;this[_0x18c1e4(0x9e)](_0x5b072e(this[_0x18c1e4(0xc3)],_0x18c1e4(0x9b)),this[_0x18c1e4(0x7f)])[_0x18c1e4(0xad)](()=>{const _0x27c45c=_0x18c1e4;this[_0x27c45c(0xd0)](_0x27c45c(0xd6),{'id':this['id']});});});const _0x132f83=new _0x319fca(this[_0x4a0aa6(0xc3)]),_0xd6e2c8=new _0x35c3e3(this[_0x4a0aa6(0xc3)]);_0xd6e2c8[_0x4a0aa6(0xd1)][_0x4a0aa6(0xd3)](_0x15c9e7);const _0x11d4f6=new _0x35c3e3(this[_0x4a0aa6(0xc3)]);return _0x11d4f6[_0x4a0aa6(0xd1)][_0x4a0aa6(0xd3)](_0x4fea59),_0x132f83[_0x4a0aa6(0xaa)][_0x4a0aa6(0xcd)]([_0xd6e2c8,_0x11d4f6]),_0x11ba65[_0x4a0aa6(0xd3)](_0x132f83),_0x2b234a;}[_0xaa24e0(0xcc)](_0x39bab4,_0x12fa5f){const _0x883a3d=_0xaa24e0,_0x271a9a=new _0x360209(_0x39bab4),_0x4bea91=_0x271a9a[_0x883a3d(0x93)];return _0x271a9a[_0x883a3d(0x9f)]=_0x12fa5f,_0x271a9a[_0x883a3d(0xcf)]({'on':{'keydown':_0x4bea91['to'](_0x462dc5=>{const _0x4be6bc=_0x883a3d;_0x4be6bc(0x79)==_0x462dc5[_0x4be6bc(0xb4)]&&this[_0x4be6bc(0x80)](_0x271a9a);})}}),_0x271a9a;}[_0xaa24e0(0x8a)](_0x3f2521,_0x59a498){const _0x2aa809=_0xaa24e0,_0x4d696c=new _0x1fa10c(_0x3f2521);return _0x4d696c[_0x2aa809(0xce)]({'icon':_0x40eaaa,'withText':!0x1,'tooltip':_0x5b072e(_0x3f2521,_0x2aa809(0xc1))}),_0x4d696c[_0x2aa809(0xcf)]({'attributes':{'class':[_0x2aa809(0xb0)]}}),_0x4d696c['on'](_0x2aa809(0xb1),()=>{const _0x4dec74=_0x2aa809;this[_0x4dec74(0x80)](_0x59a498);}),_0x4d696c;}[_0xaa24e0(0x80)](_0xd09531){const _0x185a0f=_0xaa24e0,_0x41febb=_0xd09531[_0x185a0f(0x7f)][_0x185a0f(0x9f)]||'';this[_0x185a0f(0xab)][_0x185a0f(0xa7)]=_0x41febb,this[_0x185a0f(0x82)]=!0x1,this[_0x185a0f(0xd0)](_0x185a0f(0xa0),{'id':this['id'],'title':_0x41febb});}[_0xaa24e0(0x86)](_0x4f418d,_0x454b80){const _0x14dccc=_0xaa24e0,_0x50206f=new _0x1fa10c(_0x4f418d);return _0x50206f[_0x14dccc(0xce)]({'icon':_0x305b6b,'withText':!0x1,'tooltip':_0x5b072e(_0x4f418d,_0x14dccc(0x87))}),_0x50206f[_0x14dccc(0xcf)]({'attributes':{'class':[_0x14dccc(0x8e)]}}),_0x50206f['on'](_0x14dccc(0xb1),()=>{const _0x299eb0=_0x14dccc;this[_0x299eb0(0x82)]=!0x1,_0x454b80[_0x299eb0(0x9f)]=this[_0x299eb0(0xab)][_0x299eb0(0xa7)]||'',this[_0x299eb0(0xd0)](_0x299eb0(0x77));}),_0x50206f;}[_0xaa24e0(0xb9)](){const _0x5cf7f0=_0xaa24e0,_0x21ff64=new _0x3d4599(_0x5cf7f0(0x91));return _0x21ff64[_0x5cf7f0(0x81)]=!0x0,_0x21ff64;}[_0xaa24e0(0xd7)](_0x34c8a1){const _0x5e94cd=_0xaa24e0;return this[_0x5e94cd(0xab)]&&_0x5e94cd(0x99)==typeof this[_0x5e94cd(0xab)][_0x5e94cd(0xa7)]&&this[_0x5e94cd(0xab)][_0x5e94cd(0xa7)][_0x5e94cd(0x98)](_0x34c8a1)?{'title':!0x0}:null;}[_0xaa24e0(0xae)](_0x5d2c15){const _0x3618f3=_0xaa24e0;this[_0x3618f3(0xab)][_0x3618f3(0xae)](_0x5d2c15);}}
|
|
23
|
+
function _0x4189(_0x45f60f,_0x412faa){const _0x1a6065=_0x1a60();return _0x4189=function(_0x418936,_0x480330){_0x418936=_0x418936-0x1c3;let _0x348e5f=_0x1a6065[_0x418936];return _0x348e5f;},_0x4189(_0x45f60f,_0x412faa);}const _0x2fae02=_0x4189;(function(_0x14e67b,_0x332e69){const _0x5cf62e=_0x4189,_0x28a29d=_0x14e67b();while(!![]){try{const _0x7df415=parseInt(_0x5cf62e(0x1db))/0x1*(parseInt(_0x5cf62e(0x211))/0x2)+parseInt(_0x5cf62e(0x1c9))/0x3*(-parseInt(_0x5cf62e(0x1fc))/0x4)+parseInt(_0x5cf62e(0x1f2))/0x5*(-parseInt(_0x5cf62e(0x1fb))/0x6)+parseInt(_0x5cf62e(0x221))/0x7+-parseInt(_0x5cf62e(0x1ff))/0x8+-parseInt(_0x5cf62e(0x21f))/0x9+parseInt(_0x5cf62e(0x220))/0xa;if(_0x7df415===_0x332e69)break;else _0x28a29d['push'](_0x28a29d['shift']());}catch(_0x3091cc){_0x28a29d['push'](_0x28a29d['shift']());}}}(_0x1a60,0xadec8));function _0x1a60(){const _0x5ee34b=['28306iRINTt','set','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','then','ck-ai-chat-history__item-check','ck-ai-loader__text','ck-ai-chat-history__item-title','AI_CHAT_HISTORY_LOADING_UNPINNING','ck-ai-chat-history__item--active','panelView','bind','clear','_createEditInputView','addMany','ck-hidden','AI_CHAT_HISTORY_REMOVE_CONFIRM','div','listitem','span','match','isMatching','_createCancelEditButtonView','3114380trawHZ','showConfirm','isOn','loadingState','ck-ai-chat-history__item-row','locale','LOADING_LABELS','edit:cancel','change:isEdit','12zdixwu','28116yYerju','isVisible','ck-ai-loader','6059344zSFcuO','ck-ai-chat-history__item--edit','buttonView','ck-ai-chat-history__item-date','text','_createPinButtonView','ck-ai-chat-history__item-content','add','mainContent','Enter','_commitEditInputValue','label','panelPosition','bindTemplate','tiny','items','AI_CHAT_HISTORY_PIN_BUTTON','pinned','88TbBkhM','removeConversation','isEdit','highlightText','fire','extendTemplate','ck-confirm-view-submit','AI_CHAT_HISTORY_LOADING_PINNING','_createAcceptEditButtonView','withText','ck-ai-chat-history__item-main-content','key','AI_CHAT_HISTORY_EDIT_NAME','_createCheckView','9153153cAAgPL','20551030ZhATTt','7009527fuhrWp','updateTitle','ck-ai-chat-history__item','click','_createMenuDropdownView','children','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item-actions','actions','element','243oJNfee','AI_CHAT_HISTORY_REMOVE','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_CANCEL','string','createCollection','selectConversation','updateLoadingState','_titleView','ck-confirm-view-cancel','execute','setConversationPinned','AI_CHAT_HISTORY_LOADING_REMOVING','_createSpinnerView','setTemplate','focus','value','editConversationTitle'];_0x1a60=function(){return _0x5ee34b;};return _0x1a60();}import{ListItemView as _0x34eda4,HighlightedTextView as _0x4e2b00,ButtonView as _0x26eb2b,ListView as _0x199220,IconView as _0x313751,createDropdown as _0x5ba9b9,InputTextView as _0x50dc56}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x40cbb9,IconPin as _0x5471c7,IconCheck as _0x5a8465,IconCancel as _0xc312d8}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x200ef2,ConfirmMixin as _0x234898}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0xdc4994}from'es-toolkit/compat';import{AISpinnerView as _0x276c40}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x456c4e}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x234898(_0x34eda4){['id'];static [_0x2fae02(0x1f8)]={'remove':_0x2fae02(0x1d5),'rename':_0x2fae02(0x1c5),'pin':_0x2fae02(0x218),'unpin':_0x2fae02(0x1e3)};[_0x2fae02(0x1c7)];[_0x2fae02(0x207)];[_0x2fae02(0x1d1)];constructor(_0x37e899,_0x46c89e){const _0x49ff33=_0x2fae02;super(_0x37e899);const _0x711183=this[_0x49ff33(0x20c)];this[_0x49ff33(0x1dc)](_0x49ff33(0x213),!0x1),this[_0x49ff33(0x1dc)](_0x49ff33(0x1fd),!0x0),this[_0x49ff33(0x1dc)](_0x49ff33(0x210),!!_0x46c89e[_0x49ff33(0x210)]),this[_0x49ff33(0x1dc)](_0x49ff33(0x1f5),null),this['id']=_0x46c89e['id'];const {title:_0x5c6631,createdAt:_0x307c1b,active:_0x439571=!0x1}=_0x46c89e;this[_0x49ff33(0x1d1)]=new _0x4e2b00(),this[_0x49ff33(0x1d1)][_0x49ff33(0x203)]=_0x5c6631,this[_0x49ff33(0x1d1)][_0x49ff33(0x216)]({'attributes':{'class':[_0x49ff33(0x1e2)]}});const _0x44008e=this[_0x49ff33(0x21e)](),_0x19772d=this[_0x49ff33(0x204)](_0x37e899),_0x3c3e28=this[_0x49ff33(0x1c3)](),_0x11bdd5=this[_0x49ff33(0x1e8)](_0x37e899,_0x5c6631),_0x3a9beb=this[_0x49ff33(0x219)](_0x37e899,_0x11bdd5),_0x34d791=this[_0x49ff33(0x1f1)](_0x37e899,_0x11bdd5);this[_0x49ff33(0x1c7)]=this[_0x49ff33(0x1ce)](),this[_0x49ff33(0x207)]=this[_0x49ff33(0x1ce)](),this[_0x49ff33(0x207)][_0x49ff33(0x206)](this[_0x49ff33(0x1d1)]),this[_0x49ff33(0x1c7)][_0x49ff33(0x206)](_0x19772d),this[_0x49ff33(0x1c7)][_0x49ff33(0x206)](_0x3c3e28),this['on'](_0x49ff33(0x1fa),(_0x37d252,_0x4b623b,_0x3463b0)=>{const _0xff1eb8=_0x49ff33;this[_0xff1eb8(0x1c7)][_0xff1eb8(0x1e7)](),this[_0xff1eb8(0x207)][_0xff1eb8(0x1e7)](),_0x3463b0?(this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x3a9beb),this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x34d791),this[_0xff1eb8(0x207)][_0xff1eb8(0x206)](_0x11bdd5),_0x11bdd5[_0xff1eb8(0x1c8)][_0xff1eb8(0x1d8)]()):(this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x19772d),this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x3c3e28),this[_0xff1eb8(0x207)][_0xff1eb8(0x206)](this[_0xff1eb8(0x1d1)]));}),this[_0x49ff33(0x1d7)]({'tag':'li','attributes':{'class':[_0x49ff33(0x223),_0x439571?_0x49ff33(0x1e4):'',_0x711183['if'](_0x49ff33(0x1fd),_0x49ff33(0x1ea),_0x5b16c7=>!_0x5b16c7),_0x711183['if'](_0x49ff33(0x213),_0x49ff33(0x200))],'role':_0x49ff33(0x1ed)},'children':[{'tag':_0x49ff33(0x1ee),'attributes':{'class':[_0x49ff33(0x1cb)]},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1e0),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x1e984f=>!!_0x1e984f)]},'children':_0x439571?[_0x44008e]:[]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1fe),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x4a6281=>!_0x4a6281)]},'children':[this[_0x49ff33(0x1d6)]()]}]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1f6)]},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x205)]},'on':{'click':this[_0x49ff33(0x20c)]['to'](_0x49ff33(0x224))},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x21b)]},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1e2),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x3d57c3=>!!_0x3d57c3)]},'children':this[_0x49ff33(0x207)]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1e1),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x52cab2=>!_0x52cab2)]},'children':[{'text':_0x711183['to'](_0x49ff33(0x1f5),_0x3755bb=>_0x3755bb?_0x456c4e(this[_0x49ff33(0x1f7)],AIChatHistoryListItemView[_0x49ff33(0x1f8)][_0x3755bb]):'')}]}]},{'tag':_0x49ff33(0x1ee),'attributes':{'class':[_0x49ff33(0x202)]},'children':[_0x307c1b]}]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1c6)]},'children':this[_0x49ff33(0x1c7)]}]}]}),this['on'](_0x49ff33(0x224),()=>{const _0x5ee292=_0x49ff33;this[_0x5ee292(0x213)]||this[_0x5ee292(0x215)](_0x5ee292(0x1cf),{'id':this['id']});});}[_0x2fae02(0x222)](_0x3b4e10){const _0x5ce139=_0x2fae02;this[_0x5ce139(0x1d1)][_0x5ce139(0x203)]=_0xdc4994(_0x3b4e10);}[_0x2fae02(0x1d0)](_0x176c75,_0x5a2517){const _0x3f1945=_0x2fae02;this[_0x3f1945(0x1dc)](_0x3f1945(0x1f5),_0x5a2517?_0x176c75:null);}[_0x2fae02(0x21e)](){const _0x249b6d=_0x2fae02,_0x3bc3f1=new _0x313751();return _0x3bc3f1[_0x249b6d(0x1dc)]({'content':_0x5a8465}),_0x3bc3f1;}[_0x2fae02(0x204)](_0x45c90f){const _0x61bb72=_0x2fae02,_0x5acf84=new _0x26eb2b(_0x45c90f);return _0x5acf84[_0x61bb72(0x1dc)]({'label':_0x456c4e(_0x45c90f,_0x61bb72(0x20f)),'icon':_0x5471c7,'withText':!0x1,'tooltip':!0x0}),_0x5acf84[_0x61bb72(0x1e6)](_0x61bb72(0x1f4))['to'](this,_0x61bb72(0x210)),_0x5acf84['on'](_0x61bb72(0x1d3),()=>{const _0x155682=_0x61bb72,_0x5c76e3=!this[_0x155682(0x210)];this[_0x155682(0x215)](_0x155682(0x1d4),{'id':this['id'],'pinned':_0x5c76e3});}),_0x5acf84;}[_0x2fae02(0x1c3)](){const _0x4838bd=_0x2fae02,_0x35be4d=_0x5ba9b9(this[_0x4838bd(0x1f7)],_0x200ef2),_0x26ab8e=_0x35be4d[_0x4838bd(0x1e5)][_0x4838bd(0x1c4)];_0x35be4d[_0x4838bd(0x201)][_0x4838bd(0x1dc)]({'label':_0x456c4e(this[_0x4838bd(0x1f7)],_0x4838bd(0x1de)),'icon':_0x40cbb9}),_0x35be4d[_0x4838bd(0x20b)]='sw';const _0x57c025=new _0x26eb2b(this[_0x4838bd(0x1f7)]);_0x57c025[_0x4838bd(0x20a)]=_0x456c4e(this[_0x4838bd(0x1f7)],_0x4838bd(0x21d)),_0x57c025[_0x4838bd(0x21a)]=!0x0,_0x57c025['on'](_0x4838bd(0x1d3),()=>{const _0x29ddeb=_0x4838bd;this[_0x29ddeb(0x213)]=!0x0;});const _0x2cac9c=new _0x26eb2b(this[_0x4838bd(0x1f7)]);_0x2cac9c[_0x4838bd(0x20a)]=_0x456c4e(this[_0x4838bd(0x1f7)],_0x4838bd(0x1ca)),_0x2cac9c[_0x4838bd(0x21a)]=!0x0,_0x2cac9c['on'](_0x4838bd(0x1d3),()=>{const _0x20721d=_0x4838bd;this[_0x20721d(0x1f3)](_0x456c4e(this[_0x20721d(0x1f7)],_0x20721d(0x1eb)),this[_0x20721d(0x1c8)])[_0x20721d(0x1df)](()=>{const _0x27d1d0=_0x20721d;this[_0x27d1d0(0x215)](_0x27d1d0(0x212),{'id':this['id']});});});const _0x5c058a=new _0x199220(this[_0x4838bd(0x1f7)]),_0xccd153=new _0x34eda4(this[_0x4838bd(0x1f7)]);_0xccd153[_0x4838bd(0x1c4)][_0x4838bd(0x206)](_0x57c025);const _0x3f5798=new _0x34eda4(this[_0x4838bd(0x1f7)]);return _0x3f5798[_0x4838bd(0x1c4)][_0x4838bd(0x206)](_0x2cac9c),_0x5c058a[_0x4838bd(0x20e)][_0x4838bd(0x1e9)]([_0xccd153,_0x3f5798]),_0x26ab8e[_0x4838bd(0x206)](_0x5c058a),_0x35be4d;}[_0x2fae02(0x1e8)](_0x4ee196,_0x3e4605){const _0x19871b=_0x2fae02,_0x1eadec=new _0x50dc56(_0x4ee196),_0x354287=_0x1eadec[_0x19871b(0x20c)];return _0x1eadec[_0x19871b(0x1d9)]=_0x3e4605,_0x1eadec[_0x19871b(0x216)]({'on':{'keydown':_0x354287['to'](_0x23f0b9=>{const _0xe8edc2=_0x19871b;_0xe8edc2(0x208)==_0x23f0b9[_0xe8edc2(0x21c)]&&this[_0xe8edc2(0x209)](_0x1eadec);})}}),_0x1eadec;}[_0x2fae02(0x219)](_0x15d971,_0x258f7f){const _0x46128b=_0x2fae02,_0x58ef99=new _0x26eb2b(_0x15d971);return _0x58ef99[_0x46128b(0x1dc)]({'icon':_0x5a8465,'withText':!0x1,'tooltip':_0x456c4e(_0x15d971,_0x46128b(0x1dd))}),_0x58ef99[_0x46128b(0x216)]({'attributes':{'class':[_0x46128b(0x217)]}}),_0x58ef99['on'](_0x46128b(0x1d3),()=>{const _0x406c12=_0x46128b;this[_0x406c12(0x209)](_0x258f7f);}),_0x58ef99;}[_0x2fae02(0x209)](_0x284a4d){const _0x95621c=_0x2fae02,_0x4978eb=_0x284a4d[_0x95621c(0x1c8)][_0x95621c(0x1d9)]||'';this[_0x95621c(0x1d1)][_0x95621c(0x203)]=_0x4978eb,this[_0x95621c(0x213)]=!0x1,this[_0x95621c(0x215)](_0x95621c(0x1da),{'id':this['id'],'title':_0x4978eb});}[_0x2fae02(0x1f1)](_0x2788ac,_0x3a3d6d){const _0x1d9dee=_0x2fae02,_0x282c45=new _0x26eb2b(_0x2788ac);return _0x282c45[_0x1d9dee(0x1dc)]({'icon':_0xc312d8,'withText':!0x1,'tooltip':_0x456c4e(_0x2788ac,_0x1d9dee(0x1cc))}),_0x282c45[_0x1d9dee(0x216)]({'attributes':{'class':[_0x1d9dee(0x1d2)]}}),_0x282c45['on'](_0x1d9dee(0x1d3),()=>{const _0x1feb24=_0x1d9dee;this[_0x1feb24(0x213)]=!0x1,_0x3a3d6d[_0x1feb24(0x1d9)]=this[_0x1feb24(0x1d1)][_0x1feb24(0x203)]||'',this[_0x1feb24(0x215)](_0x1feb24(0x1f9));}),_0x282c45;}[_0x2fae02(0x1d6)](){const _0x5c7e4e=_0x2fae02,_0x4c28dc=new _0x276c40(_0x5c7e4e(0x20d));return _0x4c28dc[_0x5c7e4e(0x1fd)]=!0x0,_0x4c28dc;}[_0x2fae02(0x1f0)](_0x115655){const _0x53ffd5=_0x2fae02;return this[_0x53ffd5(0x1d1)]&&_0x53ffd5(0x1cd)==typeof this[_0x53ffd5(0x1d1)][_0x53ffd5(0x203)]&&this[_0x53ffd5(0x1d1)][_0x53ffd5(0x203)][_0x53ffd5(0x1ef)](_0x115655)?{'title':!0x0}:null;}[_0x2fae02(0x214)](_0xa80152){const _0x3b8fc2=_0x2fae02;this[_0x3b8fc2(0x1d1)][_0x3b8fc2(0x214)](_0xa80152);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3198db=_0x1485;function _0x2a11(){const _0x195ef3=['361613LGBDiH','splice','_itemsListView','itemsViews','set','392168ASaAOG','36QrApIw','1168314xEnlRQ','removeItem','setTemplate','title','find','ck-ai-chat-history__section','div','2EXSwvS','510418KoUQqe','66zTREiE','1347945ciKpiv','1385960cEIzop','ck-ai-chat-history__section-title','1692644BcFSqS','length','isVisible','ck-hidden','bindTemplate','isMatching','highlightText','indexOf','getItem','addMany','items','remove','filter'];_0x2a11=function(){return _0x195ef3;};return _0x2a11();}(function(_0x513f2d,_0x24f7e1){const _0x5ab6e5=_0x1485,_0x5f218b=_0x513f2d();while(!![]){try{const _0x2e8d62=-parseInt(_0x5ab6e5(0x124))/0x1*(parseInt(_0x5ab6e5(0x125))/0x2)+parseInt(_0x5ab6e5(0x11d))/0x3+-parseInt(_0x5ab6e5(0x12a))/0x4+parseInt(_0x5ab6e5(0x127))/0x5+-parseInt(_0x5ab6e5(0x126))/0x6*(-parseInt(_0x5ab6e5(0x116))/0x7)+-parseInt(_0x5ab6e5(0x11b))/0x8*(-parseInt(_0x5ab6e5(0x11c))/0x9)+-parseInt(_0x5ab6e5(0x128))/0xa;if(_0x2e8d62===_0x24f7e1)break;else _0x5f218b['push'](_0x5f218b['shift']());}catch(_0x1e2f58){_0x5f218b['push'](_0x5f218b['shift']());}}}(_0x2a11,0x55bd1));function _0x1485(_0x332d5d,_0x34697d){const _0x2a11fe=_0x2a11();return _0x1485=function(_0x14859b,_0x17ec87){_0x14859b=_0x14859b-0x114;let _0x19ea0d=_0x2a11fe[_0x14859b];return _0x19ea0d;},_0x1485(_0x332d5d,_0x34697d);}import{ListItemView as _0x55bdab,View as _0x5224bf,ListView as _0x4ea0ac}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x55bdab{[_0x3198db(0x120)];[_0x3198db(0x119)];[_0x3198db(0x118)];constructor(_0x443439,{title:_0xe1e3e3,items:_0x5e81d3}){const _0x426fe7=_0x3198db;super(_0x443439);const _0xcdaf9=this[_0x426fe7(0x12e)];this[_0x426fe7(0x11a)](_0x426fe7(0x12c),!0x0),this[_0x426fe7(0x120)]=_0xe1e3e3,this[_0x426fe7(0x119)]=_0x5e81d3;const _0x483906=new _0x5224bf(_0x443439);_0x483906[_0x426fe7(0x11f)]({'tag':_0x426fe7(0x123),'attributes':{'class':[_0x426fe7(0x129)]},'children':[this[_0x426fe7(0x120)]]}),this[_0x426fe7(0x118)]=new _0x4ea0ac(_0x443439),this[_0x426fe7(0x118)][_0x426fe7(0x134)][_0x426fe7(0x133)](this[_0x426fe7(0x119)]),this[_0x426fe7(0x11f)]({'tag':'li','attributes':{'class':[_0x426fe7(0x122),_0xcdaf9['if'](_0x426fe7(0x12c),_0x426fe7(0x12d),_0x261fb7=>!_0x261fb7)]},'children':[_0x483906,this[_0x426fe7(0x118)]]});}[_0x3198db(0x115)](_0x4ba667){const _0x1acc8f=_0x3198db,_0xa0111f=this[_0x1acc8f(0x119)][_0x1acc8f(0x12b)];let _0x849c43=0x0;for(const _0x4613f0 of this[_0x1acc8f(0x119)]){if(_0x4ba667){const _0x296520=_0x4613f0[_0x1acc8f(0x12f)](_0x4ba667);_0x4613f0[_0x1acc8f(0x12c)]=!!_0x296520,_0x4613f0[_0x1acc8f(0x130)](_0x4ba667);}else _0x4613f0[_0x1acc8f(0x12c)]=!0x0,_0x4613f0[_0x1acc8f(0x130)](null);_0x4613f0[_0x1acc8f(0x12c)]&&_0x849c43++;}return this[_0x1acc8f(0x12c)]=_0x849c43>0x0,{'resultsCount':_0x849c43,'totalItemsCount':_0xa0111f};}[_0x3198db(0x132)](_0x5740c5){const _0x509175=_0x3198db;return this[_0x509175(0x119)][_0x509175(0x121)](_0x1f06f5=>_0x1f06f5['id']===_0x5740c5);}[_0x3198db(0x11e)](_0x3961bd){const _0x2ab2f2=_0x3198db,_0x491830=this[_0x2ab2f2(0x119)][_0x2ab2f2(0x131)](_0x3961bd);-0x1!==_0x491830&&(this[_0x2ab2f2(0x119)][_0x2ab2f2(0x117)](_0x491830,0x1),this[_0x2ab2f2(0x118)][_0x2ab2f2(0x134)][_0x2ab2f2(0x114)](_0x3961bd));}}
|