@ckeditor/ckeditor5-ai 47.2.0-alpha.7 → 47.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +16 -20
- 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 +285 -65
- package/dist/index.css +286 -68
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +10 -1
- package/lang/translations/af.po +36 -0
- package/lang/translations/ar.po +36 -0
- package/lang/translations/ast.po +36 -0
- package/lang/translations/az.po +36 -0
- package/lang/translations/be.po +36 -0
- package/lang/translations/bg.po +36 -0
- package/lang/translations/bn.po +36 -0
- package/lang/translations/bs.po +36 -0
- package/lang/translations/ca.po +36 -0
- package/lang/translations/cs.po +36 -0
- package/lang/translations/da.po +36 -0
- package/lang/translations/de-ch.po +36 -0
- package/lang/translations/de.po +36 -0
- package/lang/translations/el.po +36 -0
- package/lang/translations/en-au.po +36 -0
- package/lang/translations/en-gb.po +36 -0
- package/lang/translations/en.po +36 -0
- package/lang/translations/eo.po +36 -0
- package/lang/translations/es-co.po +36 -0
- package/lang/translations/es.po +36 -0
- package/lang/translations/et.po +36 -0
- package/lang/translations/eu.po +36 -0
- package/lang/translations/fa.po +36 -0
- package/lang/translations/fi.po +36 -0
- package/lang/translations/fr.po +36 -0
- package/lang/translations/gl.po +36 -0
- package/lang/translations/gu.po +36 -0
- package/lang/translations/he.po +36 -0
- package/lang/translations/hi.po +36 -0
- package/lang/translations/hr.po +36 -0
- package/lang/translations/hu.po +36 -0
- package/lang/translations/hy.po +36 -0
- package/lang/translations/id.po +36 -0
- package/lang/translations/it.po +36 -0
- package/lang/translations/ja.po +36 -0
- package/lang/translations/jv.po +36 -0
- package/lang/translations/kk.po +36 -0
- package/lang/translations/km.po +36 -0
- package/lang/translations/kn.po +36 -0
- package/lang/translations/ko.po +36 -0
- package/lang/translations/ku.po +36 -0
- package/lang/translations/lt.po +36 -0
- package/lang/translations/lv.po +36 -0
- package/lang/translations/ms.po +36 -0
- package/lang/translations/nb.po +36 -0
- package/lang/translations/ne.po +36 -0
- package/lang/translations/nl.po +36 -0
- package/lang/translations/no.po +36 -0
- package/lang/translations/oc.po +36 -0
- package/lang/translations/pl.po +36 -0
- package/lang/translations/pt-br.po +36 -0
- package/lang/translations/pt.po +36 -0
- package/lang/translations/ro.po +36 -0
- package/lang/translations/ru.po +36 -0
- package/lang/translations/si.po +36 -0
- package/lang/translations/sk.po +36 -0
- package/lang/translations/sl.po +36 -0
- package/lang/translations/sq.po +36 -0
- package/lang/translations/sr-latn.po +36 -0
- package/lang/translations/sr.po +36 -0
- package/lang/translations/sv.po +36 -0
- package/lang/translations/th.po +36 -0
- package/lang/translations/ti.po +36 -0
- package/lang/translations/tk.po +36 -0
- package/lang/translations/tr.po +36 -0
- package/lang/translations/tt.po +36 -0
- package/lang/translations/ug.po +36 -0
- package/lang/translations/uk.po +36 -0
- package/lang/translations/ur.po +36 -0
- package/lang/translations/uz.po +36 -0
- package/lang/translations/vi.po +36 -0
- package/lang/translations/zh-cn.po +36 -0
- package/lang/translations/zh.po +36 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +8 -0
- 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 +12 -0
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- 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/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +23 -0
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +24 -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 +5 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +39 -6
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +6 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +30 -5
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +5 -0
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +23 -0
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +29 -0
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +23 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +16 -0
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +8 -2
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.d.ts +4 -0
- 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 +6 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +11 -2
- 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/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +24 -0
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +23 -0
- 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.d.ts +7 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.d.ts +8 -0
- package/src/errorsmap.js +23 -0
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +26 -0
- package/theme/aichat/aichat.css +1 -3
- package/theme/aichat/aichathistory.css +1 -1
- package/theme/aichat/aisuggestioncontainer.css +1 -1
- package/theme/aiquickactions/aiquickactions.css +139 -25
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +24 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +13 -0
- package/theme/aireviewmode/aireviewmode.css +33 -10
- package/theme/common/{aichaterror.css → ainotification.css} +17 -14
- package/theme/common/aitrackchanges.css +9 -0
- package/src/aichat/utils/scrollmanager.js +0 -23
- /package/src/{aichat → aicore}/utils/scrollmanager.d.ts +0 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4cba14=_0x9d8a;(function(_0x108a48,_0x33e4cc){const _0x22563c=_0x9d8a,_0x5be2ba=_0x108a48();while(!![]){try{const _0x45ae83=parseInt(_0x22563c(0x169))/0x1+parseInt(_0x22563c(0x15f))/0x2*(-parseInt(_0x22563c(0x15e))/0x3)+parseInt(_0x22563c(0x173))/0x4+-parseInt(_0x22563c(0x1a5))/0x5*(parseInt(_0x22563c(0x161))/0x6)+parseInt(_0x22563c(0x17b))/0x7*(parseInt(_0x22563c(0x177))/0x8)+-parseInt(_0x22563c(0x187))/0x9*(-parseInt(_0x22563c(0x198))/0xa)+-parseInt(_0x22563c(0x18e))/0xb;if(_0x45ae83===_0x33e4cc)break;else _0x5be2ba['push'](_0x5be2ba['shift']());}catch(_0x305ce8){_0x5be2ba['push'](_0x5be2ba['shift']());}}}(_0x5ec9,0xee75e));import{KeystrokeHandler as _0x3f1eeb}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x44ab73,BodyCollection as _0x4124df,ButtonView as _0x498832,clickOutsideHandler as _0x1ee7b0,ListItemButtonView as _0x48730f,ListItemView as _0x23a9fb,ListView as _0x3194d3,SplitButtonView as _0x2c97d5,UIModel as _0x573059,View as _0x42a2bd}from'ckeditor5/src/ui.js';import{IconCheck as _0x3400d5,IconAddComment as _0x1786b0,IconDocumentWithLoupe as _0x821131}from'ckeditor5/src/icons.js';import{getTranslation as _0x4fb31a}from'../../../aicore/utils/common-translations.js';function _0x9d8a(_0x4b4667,_0x400ed4){const _0x5ec9ce=_0x5ec9();return _0x9d8a=function(_0x9d8a32,_0x11529a){_0x9d8a32=_0x9d8a32-0x14f;let _0x3df25e=_0x5ec9ce[_0x9d8a32];return _0x3df25e;},_0x9d8a(_0x4b4667,_0x400ed4);}export const AI_REPLY_ACTIONS=[_0x4cba14(0x195),_0x4cba14(0x151),_0x4cba14(0x191)];export class AIChatFeedSuggestionItemActionsView extends _0x42a2bd{[_0x4cba14(0x167)];[_0x4cba14(0x15d)];[_0x4cba14(0x1a1)];[_0x4cba14(0x159)];[_0x4cba14(0x162)];[_0x4cba14(0x186)]=0x1;[_0x4cba14(0x193)];[_0x4cba14(0x18b)];[_0x4cba14(0x172)]=!0x0;constructor(_0x31411a,_0xcb9c36){const _0x397f2e=_0x4cba14;super(_0x31411a),this[_0x397f2e(0x193)]=_0xcb9c36||[...AI_REPLY_ACTIONS],this[_0x397f2e(0x18b)]=[...this[_0x397f2e(0x193)]];const _0x13fa72=this[_0x397f2e(0x163)];this[_0x397f2e(0x17f)](_0x397f2e(0x152),!0x0),this[_0x397f2e(0x17f)](_0x397f2e(0x1a4),!0x0),this[_0x397f2e(0x17f)](_0x397f2e(0x17a),!0x1),this[_0x397f2e(0x1a1)]=new _0x573059({'label':Hn(_0x397f2e(0x195),_0x31411a,this[_0x397f2e(0x186)]),'icon':_0x3400d5,'withText':!0x0,'type':_0x397f2e(0x182),'actionName':_0x397f2e(0x195)}),this[_0x397f2e(0x159)]=new _0x573059({'label':Hn(_0x397f2e(0x191),_0x31411a,this[_0x397f2e(0x186)]),'icon':_0x821131,'withText':!0x0,'type':_0x397f2e(0x182),'actionName':_0x397f2e(0x191)}),this[_0x397f2e(0x162)]=new _0x573059({'label':Hn(_0x397f2e(0x151),_0x31411a,this[_0x397f2e(0x186)]),'icon':_0x1786b0,'withText':!0x0,'type':_0x397f2e(0x182),'actionName':_0x397f2e(0x151)}),this[_0x397f2e(0x167)]=this[_0x397f2e(0x16d)](_0x31411a),this[_0x397f2e(0x15d)]=this[_0x397f2e(0x16c)](),this[_0x397f2e(0x167)]&&this[_0x397f2e(0x15d)][_0x397f2e(0x16e)](this[_0x397f2e(0x167)]),this[_0x397f2e(0x14f)]({'tag':_0x397f2e(0x153),'attributes':{'class':['ck',_0x397f2e(0x1a7),_0x13fa72['if'](_0x397f2e(0x1a4),_0x397f2e(0x194),_0x3e8fd5=>!_0x3e8fd5)]},'children':this[_0x397f2e(0x15d)]}),this['on'](_0x397f2e(0x189),()=>{const _0xa1282c=_0x397f2e;this[_0xa1282c(0x18b)]=this[_0xa1282c(0x17a)]?this[_0xa1282c(0x193)][_0xa1282c(0x168)](_0x13c3fd=>_0xa1282c(0x195)!==_0x13c3fd):[...this[_0xa1282c(0x193)]],this[_0xa1282c(0x1ae)](_0x31411a);});}[_0x4cba14(0x1ae)](_0x26dbee){const _0x3a3d5c=_0x4cba14;this[_0x3a3d5c(0x167)]&&this[_0x3a3d5c(0x15d)][_0x3a3d5c(0x166)](this[_0x3a3d5c(0x167)])&&(this[_0x3a3d5c(0x15d)][_0x3a3d5c(0x185)](this[_0x3a3d5c(0x167)]),this[_0x3a3d5c(0x167)][_0x3a3d5c(0x199)]()),this[_0x3a3d5c(0x167)]=this[_0x3a3d5c(0x16d)](_0x26dbee),this[_0x3a3d5c(0x167)]&&this[_0x3a3d5c(0x15d)][_0x3a3d5c(0x16e)](this[_0x3a3d5c(0x167)]);}[_0x4cba14(0x16d)](_0x44b4fa){const _0x167ba4=_0x4cba14;if(0x0==this[_0x167ba4(0x18b)][_0x167ba4(0x1a8)])return null;const _0x66c48b=0x1===this[_0x167ba4(0x18b)][_0x167ba4(0x1a8)]?this[_0x167ba4(0x183)](_0x44b4fa):this[_0x167ba4(0x184)](_0x44b4fa),_0x13fd69=this[_0x167ba4(0x172)]?'':_0x167ba4(0x18d);_0x66c48b[_0x167ba4(0x17f)]({'label':Hn(this[_0x167ba4(0x18b)][0x0],_0x44b4fa,this[_0x167ba4(0x186)]),'tooltip':Ln(this[_0x167ba4(0x18b)][0x0],_0x44b4fa,this[_0x167ba4(0x186)]),'withText':!0x0,'class':_0x167ba4(0x180)+_0x13fd69});for(const _0x556d70 of this[_0x167ba4(0x18b)])_0x66c48b['on'](_0x556d70,()=>{const _0x2e3020=_0x167ba4;this[_0x2e3020(0x1ac)](_0x556d70);});return this[_0x167ba4(0x172)]=!0x1,_0x66c48b;}[_0x4cba14(0x183)](_0x49f81a){const _0x3f2811=_0x4cba14,_0x541a8d=new _0x498832(_0x49f81a);return _0x541a8d[_0x3f2811(0x17f)]({'class':_0x3f2811(0x17d),'withText':!0x0}),_0x541a8d['on'](_0x3f2811(0x157),()=>{const _0xe5a99=_0x3f2811;_0x541a8d[_0xe5a99(0x1ac)](this[_0xe5a99(0x18b)][0x0]);}),_0x541a8d;}[_0x4cba14(0x184)](_0x28acb3){const _0x518c2c=_0x4cba14,_0x4cd450=new Gn(_0x28acb3,{'listItemModels':this[_0x518c2c(0x18b)][_0x518c2c(0x188)](_0x5a7b9e=>{const _0x30b449=_0x518c2c;switch(_0x5a7b9e){case _0x30b449(0x195):return this[_0x30b449(0x1a1)];case _0x30b449(0x191):return this[_0x30b449(0x159)];case _0x30b449(0x151):return this[_0x30b449(0x162)];}})});return _0x4cd450[_0x518c2c(0x17f)]({'label':Hn(this[_0x518c2c(0x18b)][0x0],_0x28acb3,this[_0x518c2c(0x186)]),'tooltip':Ln(this[_0x518c2c(0x18b)][0x0],_0x28acb3,this[_0x518c2c(0x186)]),'withText':!0x0,'class':_0x518c2c(0x1a7),'balloonPanelClass':_0x518c2c(0x175)}),_0x4cd450[_0x518c2c(0x171)](_0x518c2c(0x152))['to'](this),_0x4cd450;}[_0x4cba14(0x1a2)](_0x1c5f32){const _0x560fce=_0x4cba14,_0x4f0b4c=this[_0x560fce(0x18f)];this[_0x560fce(0x186)]=_0x1c5f32||this[_0x560fce(0x186)],this[_0x560fce(0x167)][_0x560fce(0x17f)]({'label':Hn(this[_0x560fce(0x18b)][0x0],_0x4f0b4c,this[_0x560fce(0x186)]),'tooltip':Ln(this[_0x560fce(0x18b)][0x0],_0x4f0b4c,this[_0x560fce(0x186)])}),this[_0x560fce(0x1a1)][_0x560fce(0x160)]=Hn(_0x560fce(0x195),_0x4f0b4c,this[_0x560fce(0x186)]),this[_0x560fce(0x159)][_0x560fce(0x160)]=Hn(_0x560fce(0x191),_0x4f0b4c,this[_0x560fce(0x186)]),this[_0x560fce(0x162)][_0x560fce(0x160)]=Hn(_0x560fce(0x151),_0x4f0b4c,this[_0x560fce(0x186)]);}}class Gn extends _0x2c97d5{[_0x4cba14(0x17c)];[_0x4cba14(0x196)];[_0x4cba14(0x16a)];[_0x4cba14(0x19f)];constructor(_0xd63d86,_0x4b1ff8){const _0x345dbd=_0x4cba14;super(_0xd63d86),this[_0x345dbd(0x196)]=new _0x44ab73(this[_0x345dbd(0x18f)]),this[_0x345dbd(0x17c)]=new _0x4124df(this[_0x345dbd(0x18f)]),this[_0x345dbd(0x17c)][_0x345dbd(0x174)](),this[_0x345dbd(0x17f)](_0x345dbd(0x1aa),''),this[_0x345dbd(0x196)][_0x345dbd(0x171)](_0x345dbd(0x1af))['to'](this,_0x345dbd(0x1aa)),this[_0x345dbd(0x16a)]=this[_0x345dbd(0x164)](_0x4b1ff8[_0x345dbd(0x1a3)][_0x345dbd(0x18a)](0x1)),this[_0x345dbd(0x17c)][_0x345dbd(0x16e)](this[_0x345dbd(0x196)]),this[_0x345dbd(0x196)][_0x345dbd(0x176)][_0x345dbd(0x16e)](this[_0x345dbd(0x16a)]),this[_0x345dbd(0x165)][_0x345dbd(0x170)](_0x345dbd(0x1ad)),this[_0x345dbd(0x165)][_0x345dbd(0x17f)](_0x345dbd(0x1ad),_0x4fb31a(this[_0x345dbd(0x18f)],_0x345dbd(0x19d))),this[_0x345dbd(0x190)](),this['on'](_0x345dbd(0x157),()=>{const _0x335b26=_0x345dbd,_0x4964d2=_0x4b1ff8[_0x335b26(0x1a3)][0x0][_0x335b26(0x19c)];this[_0x335b26(0x1ac)](_0x4964d2),this[_0x335b26(0x196)][_0x335b26(0x179)](),this[_0x335b26(0x165)][_0x335b26(0x1a0)]();}),this['on'](_0x345dbd(0x15b),()=>{const _0x25d13c=_0x345dbd;this[_0x25d13c(0x196)][_0x25d13c(0x1a4)]?(this[_0x25d13c(0x196)][_0x25d13c(0x179)](),this[_0x25d13c(0x165)][_0x25d13c(0x1a0)]()):(this[_0x25d13c(0x196)][_0x25d13c(0x19e)]({'target':this[_0x25d13c(0x178)],'positions':[_0x25d13c(0x1ab)===this[_0x25d13c(0x18f)][_0x25d13c(0x16b)]?yn:Pn]}),this[_0x25d13c(0x16a)][_0x25d13c(0x1a0)]());}),_0x1ee7b0({'emitter':this[_0x345dbd(0x196)],'callback':()=>{const _0x271a9e=_0x345dbd;this[_0x271a9e(0x196)][_0x271a9e(0x179)]();},'activator':()=>this[_0x345dbd(0x196)][_0x345dbd(0x1a4)],'contextElements':()=>[this[_0x345dbd(0x178)],this[_0x345dbd(0x196)][_0x345dbd(0x178)]]});}[_0x4cba14(0x164)](_0x18f01f){const _0x707161=_0x4cba14,_0x4b6665=this[_0x707161(0x18f)],_0x5efd9e=new _0x3194d3(_0x4b6665);for(const _0x16c5bb of _0x18f01f){const _0x40c62a=new _0x23a9fb(_0x4b6665),_0x2db613=new _0x48730f(_0x4b6665);_0x2db613[_0x707161(0x171)](...Object[_0x707161(0x15c)](_0x16c5bb))['to'](_0x16c5bb),_0x2db613[_0x707161(0x155)](_0x707161(0x157))['to'](_0x5efd9e),_0x40c62a[_0x707161(0x15d)][_0x707161(0x16e)](_0x2db613),_0x5efd9e[_0x707161(0x1a9)][_0x707161(0x16e)](_0x40c62a);}return _0x5efd9e[_0x707161(0x1a9)][_0x707161(0x155)](_0x707161(0x157))['to'](this),_0x5efd9e['on'](_0x707161(0x157),_0xcd362c=>{const _0x7b3d42=_0x707161,_0x474058=_0xcd362c[_0x7b3d42(0x19a)];this[_0x7b3d42(0x1ac)](_0x474058[_0x7b3d42(0x19c)]),this[_0x7b3d42(0x196)][_0x7b3d42(0x179)](),this[_0x7b3d42(0x165)][_0x7b3d42(0x1a0)]();}),_0x5efd9e;}[_0x4cba14(0x190)](){const _0x5f37cc=_0x4cba14;this[_0x5f37cc(0x19f)]=new _0x3f1eeb(),this[_0x5f37cc(0x19f)][_0x5f37cc(0x19b)](this[_0x5f37cc(0x196)][_0x5f37cc(0x178)]),this[_0x5f37cc(0x19f)][_0x5f37cc(0x17f)](_0x5f37cc(0x1a6),(_0x348bc1,_0x3889ea)=>{const _0x1f36f7=_0x5f37cc;this[_0x1f36f7(0x196)][_0x1f36f7(0x179)](),this[_0x1f36f7(0x165)][_0x1f36f7(0x1a0)](),_0x3889ea();});}[_0x4cba14(0x199)](){const _0x898e9a=_0x4cba14;super[_0x898e9a(0x199)](),this[_0x898e9a(0x19f)][_0x898e9a(0x199)](),this[_0x898e9a(0x196)][_0x898e9a(0x199)](),this[_0x898e9a(0x17c)][_0x898e9a(0x150)]();}}function yn(_0x52a27e){const _0x2bd19a=_0x4cba14;return{'top':_0x52a27e[_0x2bd19a(0x192)],'left':_0x52a27e[_0x2bd19a(0x16f)],'name':_0x2bd19a(0x17e),'config':{'withArrow':!0x1}};}function _0x5ec9(){const _0x3e7dc9=['arrowless','set','ck-ai-chat__feed__ai-suggestion__actions\x20','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','button','_createActionsButton','_createActionsDropdown','remove','_partsCount','9GXAWBg','map','change:isTrackChangesOn','slice','_dropdownCurrentConfig','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','ck-ai-chat__feed__ai-suggestion__actions--no-animation','21589337FhwFis','locale','_setUpKeystrokes','showChangeInText','bottom','_dropdownOriginalConfig','ck-hidden','applySuggestion','balloonPanelView','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','7266290RwkCgM','destroy','source','listenTo','actionName','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','pin','keystrokeHandler','focus','applySuggestionModel','updateLabels','listItemModels','isVisible','15330QXmWgp','esc','ck-ai-chat__feed__ai-suggestion__actions','length','items','balloonPanelClass','ltr','fire','tooltip','_updateDropdownActions','class','setTemplate','detachFromDom','insertSuggestion','isEnabled','div','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','delegate','width','execute','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','showChangeInTextModel','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','open','keys','children','3LMXOXo','2393738WIqgOA','label','366JidYtD','insertSuggestionModel','bindTemplate','_setUpList','arrowView','has','actionsButton','filter','1235351bZHmZv','listView','uiLanguageDirection','createCollection','_createActionsDropdownOrButton','add','left','unbind','bind','_firstRender','2564808KSwAIV','attachToDom','ck-ai-chat__feed__ai-suggestion__actions__balloon','content','335632ajNtyy','element','hide','isTrackChangesOn','287pEHmsp','bodyCollection','ck-ai-button-primary'];_0x5ec9=function(){return _0x3e7dc9;};return _0x5ec9();}function Pn(_0x392d00,_0x1b3398){const _0x26dd95=_0x4cba14;return{'top':_0x392d00[_0x26dd95(0x192)],'left':_0x392d00[_0x26dd95(0x16f)]-(_0x1b3398[_0x26dd95(0x156)]-_0x392d00[_0x26dd95(0x156)]),'name':_0x26dd95(0x17e),'config':{'withArrow':!0x1}};}function Hn(_0x2f2116,_0x5729c5,_0xe48d96){const _0x1db75d=_0x4cba14;switch(_0x2f2116){case _0x1db75d(0x195):return _0x4fb31a(_0x5729c5,_0x1db75d(0x158),_0xe48d96);case _0x1db75d(0x191):return _0x4fb31a(_0x5729c5,_0x1db75d(0x15a),_0xe48d96);case _0x1db75d(0x151):return _0x4fb31a(_0x5729c5,_0x1db75d(0x197),_0xe48d96);}}function Ln(_0x12ed00,_0x3469d4,_0x25d95c){const _0x481b00=_0x4cba14;switch(_0x12ed00){case _0x481b00(0x195):return _0x4fb31a(_0x3469d4,_0x481b00(0x154),_0x25d95c);case _0x481b00(0x191):return _0x4fb31a(_0x3469d4,_0x481b00(0x18c),_0x25d95c);case _0x481b00(0x151):return _0x4fb31a(_0x3469d4,_0x481b00(0x181),_0x25d95c);}}
|
|
23
|
+
const _0x151664=_0x247b;(function(_0x511614,_0x3773c9){const _0xf7ef28=_0x247b,_0x2c10d2=_0x511614();while(!![]){try{const _0x5b8afb=parseInt(_0xf7ef28(0xf5))/0x1+parseInt(_0xf7ef28(0x10a))/0x2+-parseInt(_0xf7ef28(0x109))/0x3+-parseInt(_0xf7ef28(0xf7))/0x4+parseInt(_0xf7ef28(0xf4))/0x5*(parseInt(_0xf7ef28(0x11b))/0x6)+parseInt(_0xf7ef28(0x103))/0x7+-parseInt(_0xf7ef28(0x13f))/0x8;if(_0x5b8afb===_0x3773c9)break;else _0x2c10d2['push'](_0x2c10d2['shift']());}catch(_0xc65703){_0x2c10d2['push'](_0x2c10d2['shift']());}}}(_0x2ce0,0x562af));import{KeystrokeHandler as _0x4b08b8}from'ckeditor5/src/utils.js';function _0x247b(_0xe4b335,_0x411e67){const _0x2ce072=_0x2ce0();return _0x247b=function(_0x247bad,_0x3d2cd1){_0x247bad=_0x247bad-0xe3;let _0x189e1c=_0x2ce072[_0x247bad];return _0x189e1c;},_0x247b(_0xe4b335,_0x411e67);}import{BalloonPanelView as _0x2cd030,BodyCollection as _0x59d2b0,ButtonView as _0x14a082,clickOutsideHandler as _0xcf0b9d,ListItemButtonView as _0x7d0ede,ListItemView as _0x3e4975,ListView as _0x1bb991,SplitButtonView as _0x5c45bd,UIModel as _0x1403df,View as _0x1ac9ff}from'ckeditor5/src/ui.js';import{IconCheck as _0x5a5be2,IconAddComment as _0x5dbff6,IconDocumentWithLoupe as _0x4ea1a0}from'ckeditor5/src/icons.js';import{getTranslation as _0x4c453e}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x151664(0x131),_0x151664(0x122),_0x151664(0x133)];export class AIChatFeedSuggestionItemActionsView extends _0x1ac9ff{[_0x151664(0xee)];[_0x151664(0x11c)];[_0x151664(0x123)];[_0x151664(0xfc)];[_0x151664(0x100)];[_0x151664(0x13b)]=0x1;[_0x151664(0x12f)];[_0x151664(0x102)];[_0x151664(0xe6)]=!0x0;constructor(_0x2d9cb5,_0x8aca80){const _0x5b191a=_0x151664;super(_0x2d9cb5),this[_0x5b191a(0x12f)]=_0x8aca80||[...AI_REPLY_ACTIONS],this[_0x5b191a(0x102)]=[...this[_0x5b191a(0x12f)]];const _0x3f3a85=this[_0x5b191a(0x136)];this[_0x5b191a(0xea)](_0x5b191a(0xe9),!0x0),this[_0x5b191a(0xea)](_0x5b191a(0x104),!0x0),this[_0x5b191a(0xea)](_0x5b191a(0xf0),!0x1),this[_0x5b191a(0x123)]=new _0x1403df({'label':Pn(_0x5b191a(0x131),_0x2d9cb5,this[_0x5b191a(0x13b)]),'icon':_0x5a5be2,'withText':!0x0,'type':_0x5b191a(0x112),'actionName':_0x5b191a(0x131)}),this[_0x5b191a(0xfc)]=new _0x1403df({'label':Pn(_0x5b191a(0x133),_0x2d9cb5,this[_0x5b191a(0x13b)]),'icon':_0x4ea1a0,'withText':!0x0,'type':_0x5b191a(0x112),'actionName':_0x5b191a(0x133)}),this[_0x5b191a(0x100)]=new _0x1403df({'label':Pn(_0x5b191a(0x122),_0x2d9cb5,this[_0x5b191a(0x13b)]),'icon':_0x5dbff6,'withText':!0x0,'type':_0x5b191a(0x112),'actionName':_0x5b191a(0x122)}),this[_0x5b191a(0xee)]=this[_0x5b191a(0x12b)](_0x2d9cb5),this[_0x5b191a(0x11c)]=this[_0x5b191a(0x126)](),this[_0x5b191a(0xee)]&&this[_0x5b191a(0x11c)][_0x5b191a(0x13c)](this[_0x5b191a(0xee)]),this[_0x5b191a(0x11f)]({'tag':_0x5b191a(0x11d),'attributes':{'class':['ck',_0x5b191a(0xf2),_0x3f3a85['if'](_0x5b191a(0x104),_0x5b191a(0x11a),_0x1e3abe=>!_0x1e3abe)]},'children':this[_0x5b191a(0x11c)]}),this['on'](_0x5b191a(0x119),()=>{const _0x1b8c33=_0x5b191a;this[_0x1b8c33(0x102)]=this[_0x1b8c33(0xf0)]?this[_0x1b8c33(0x12f)][_0x1b8c33(0x108)](_0x2e7aea=>_0x1b8c33(0x131)!==_0x2e7aea):[...this[_0x1b8c33(0x12f)]],this[_0x1b8c33(0xff)](_0x2d9cb5);});}[_0x151664(0xff)](_0x5ab651){const _0x5eb481=_0x151664;this[_0x5eb481(0xee)]&&this[_0x5eb481(0x11c)][_0x5eb481(0xe5)](this[_0x5eb481(0xee)])&&(this[_0x5eb481(0x11c)][_0x5eb481(0x116)](this[_0x5eb481(0xee)]),this[_0x5eb481(0xee)][_0x5eb481(0xfe)]()),this[_0x5eb481(0xee)]=this[_0x5eb481(0x12b)](_0x5ab651),this[_0x5eb481(0xee)]&&this[_0x5eb481(0x11c)][_0x5eb481(0x13c)](this[_0x5eb481(0xee)]);}[_0x151664(0x12b)](_0x3c4227){const _0x4fa7bf=_0x151664;if(0x0==this[_0x4fa7bf(0x102)][_0x4fa7bf(0xf1)])return null;const _0x384c82=0x1===this[_0x4fa7bf(0x102)][_0x4fa7bf(0xf1)]?this[_0x4fa7bf(0x10b)](_0x3c4227):this[_0x4fa7bf(0x106)](_0x3c4227),_0x50d6f7=this[_0x4fa7bf(0xe6)]?'':_0x4fa7bf(0x13d);_0x384c82[_0x4fa7bf(0xea)]({'label':Pn(this[_0x4fa7bf(0x102)][0x0],_0x3c4227,this[_0x4fa7bf(0x13b)]),'tooltip':Hn(this[_0x4fa7bf(0x102)][0x0],_0x3c4227,this[_0x4fa7bf(0x13b)]),'withText':!0x0,'class':_0x4fa7bf(0x134)+_0x50d6f7});for(const _0x2c0918 of this[_0x4fa7bf(0x102)])_0x384c82['on'](_0x2c0918,()=>{const _0x125eb7=_0x4fa7bf;this[_0x125eb7(0x11e)](_0x2c0918);});return this[_0x4fa7bf(0xe6)]=!0x1,_0x384c82;}[_0x151664(0x10b)](_0x27a243){const _0x13804a=_0x151664,_0xddaf37=new _0x14a082(_0x27a243);return _0xddaf37[_0x13804a(0xea)]({'class':_0x13804a(0x12d),'withText':!0x0}),_0xddaf37['on'](_0x13804a(0x130),()=>{const _0x100c00=_0x13804a;_0xddaf37[_0x100c00(0x11e)](this[_0x100c00(0x102)][0x0]);}),_0xddaf37;}[_0x151664(0x106)](_0x50c6bc){const _0xad950=_0x151664,_0xf603dd=new Nn(_0x50c6bc,{'listItemModels':this[_0xad950(0x102)][_0xad950(0x13e)](_0x38c513=>{const _0x25cb18=_0xad950;switch(_0x38c513){case _0x25cb18(0x131):return this[_0x25cb18(0x123)];case _0x25cb18(0x133):return this[_0x25cb18(0xfc)];case _0x25cb18(0x122):return this[_0x25cb18(0x100)];}})});return _0xf603dd[_0xad950(0xea)]({'label':Pn(this[_0xad950(0x102)][0x0],_0x50c6bc,this[_0xad950(0x13b)]),'tooltip':Hn(this[_0xad950(0x102)][0x0],_0x50c6bc,this[_0xad950(0x13b)]),'withText':!0x0,'class':_0xad950(0xf2),'balloonPanelClass':_0xad950(0x125)}),_0xf603dd[_0xad950(0xe8)](_0xad950(0xe9))['to'](this),_0xf603dd;}[_0x151664(0x127)](_0x3c6b49){const _0x32cfac=_0x151664,_0x27a60b=this[_0x32cfac(0x10f)];this[_0x32cfac(0x13b)]=_0x3c6b49||this[_0x32cfac(0x13b)],this[_0x32cfac(0xee)][_0x32cfac(0xea)]({'label':Pn(this[_0x32cfac(0x102)][0x0],_0x27a60b,this[_0x32cfac(0x13b)]),'tooltip':Hn(this[_0x32cfac(0x102)][0x0],_0x27a60b,this[_0x32cfac(0x13b)])}),this[_0x32cfac(0x123)][_0x32cfac(0x117)]=Pn(_0x32cfac(0x131),_0x27a60b,this[_0x32cfac(0x13b)]),this[_0x32cfac(0xfc)][_0x32cfac(0x117)]=Pn(_0x32cfac(0x133),_0x27a60b,this[_0x32cfac(0x13b)]),this[_0x32cfac(0x100)][_0x32cfac(0x117)]=Pn(_0x32cfac(0x122),_0x27a60b,this[_0x32cfac(0x13b)]);}}function _0x2ce0(){const _0x2ef891=['remove','label','source','change:isTrackChangesOn','ck-hidden','1866906wenHlE','children','div','fire','setTemplate','esc','pin','insertSuggestion','applySuggestionModel','arrowView','ck-ai-chat__feed__ai-suggestion__actions__balloon','createCollection','updateLabels','items','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','_createActionsDropdownOrButton','listenTo','ck-ai-button-primary','keystrokeHandler','_dropdownOriginalConfig','execute','applySuggestion','focus','showChangeInText','ck-ai-chat__feed__ai-suggestion__actions\x20','balloonPanelView','bindTemplate','ltr','bodyCollection','attachToDom','arrowless','_partsCount','add','ck-ai-chat__feed__ai-suggestion__actions--no-animation','map','10553056GwqAmV','detachFromDom','listItemModels','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','has','_firstRender','element','bind','isEnabled','set','slice','content','uiLanguageDirection','actionsButton','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','isTrackChangesOn','length','ck-ai-chat__feed__ai-suggestion__actions','width','10TnHlrA','427217wIuRyH','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','1479456OTLYCM','_setUpKeystrokes','actionName','unbind','delegate','showChangeInTextModel','listView','destroy','_updateDropdownActions','insertSuggestionModel','keys','_dropdownCurrentConfig','4734422BAyPyq','isVisible','balloonPanelClass','_createActionsDropdown','left','filter','1009626Oiwjxa','1305232dIGONb','_createActionsButton','class','hide','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','locale','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','open','button','_setUpList','bottom','tooltip'];_0x2ce0=function(){return _0x2ef891;};return _0x2ce0();}class Nn extends _0x5c45bd{[_0x151664(0x138)];[_0x151664(0x135)];[_0x151664(0xfd)];[_0x151664(0x12e)];constructor(_0x50ebe1,_0x191ed3){const _0x1d901f=_0x151664;super(_0x50ebe1),this[_0x1d901f(0x135)]=new _0x2cd030(this[_0x1d901f(0x10f)]),this[_0x1d901f(0x138)]=new _0x59d2b0(this[_0x1d901f(0x10f)]),this[_0x1d901f(0x138)][_0x1d901f(0x139)](),this[_0x1d901f(0xea)](_0x1d901f(0x105),''),this[_0x1d901f(0x135)][_0x1d901f(0xe8)](_0x1d901f(0x10c))['to'](this,_0x1d901f(0x105)),this[_0x1d901f(0xfd)]=this[_0x1d901f(0x113)](_0x191ed3[_0x1d901f(0xe3)][_0x1d901f(0xeb)](0x1)),this[_0x1d901f(0x138)][_0x1d901f(0x13c)](this[_0x1d901f(0x135)]),this[_0x1d901f(0x135)][_0x1d901f(0xec)][_0x1d901f(0x13c)](this[_0x1d901f(0xfd)]),this[_0x1d901f(0x124)][_0x1d901f(0xfa)](_0x1d901f(0x115)),this[_0x1d901f(0x124)][_0x1d901f(0xea)](_0x1d901f(0x115),_0x4c453e(this[_0x1d901f(0x10f)],_0x1d901f(0xef))),this[_0x1d901f(0xf8)](),this['on'](_0x1d901f(0x130),()=>{const _0x2dddae=_0x1d901f,_0x79355e=_0x191ed3[_0x2dddae(0xe3)][0x0][_0x2dddae(0xf9)];this[_0x2dddae(0x11e)](_0x79355e),this[_0x2dddae(0x135)][_0x2dddae(0x10d)](),this[_0x2dddae(0x124)][_0x2dddae(0x132)]();}),this['on'](_0x1d901f(0x111),()=>{const _0x36f1b2=_0x1d901f;this[_0x36f1b2(0x135)][_0x36f1b2(0x104)]?(this[_0x36f1b2(0x135)][_0x36f1b2(0x10d)](),this[_0x36f1b2(0x124)][_0x36f1b2(0x132)]()):(this[_0x36f1b2(0x135)][_0x36f1b2(0x121)]({'target':this[_0x36f1b2(0xe7)],'positions':[_0x36f1b2(0x137)===this[_0x36f1b2(0x10f)][_0x36f1b2(0xed)]?Gn:yn]}),this[_0x36f1b2(0xfd)][_0x36f1b2(0x132)]());}),_0xcf0b9d({'emitter':this[_0x1d901f(0x135)],'callback':()=>{const _0x31d3d4=_0x1d901f;this[_0x31d3d4(0x135)][_0x31d3d4(0x10d)]();},'activator':()=>this[_0x1d901f(0x135)][_0x1d901f(0x104)],'contextElements':()=>[this[_0x1d901f(0xe7)],this[_0x1d901f(0x135)][_0x1d901f(0xe7)]]});}[_0x151664(0x113)](_0x3b0179){const _0x5b6c76=_0x151664,_0x162a98=this[_0x5b6c76(0x10f)],_0x3722a7=new _0x1bb991(_0x162a98);for(const _0x52a2ee of _0x3b0179){const _0x158eec=new _0x3e4975(_0x162a98),_0x2ee81e=new _0x7d0ede(_0x162a98);_0x2ee81e[_0x5b6c76(0xe8)](...Object[_0x5b6c76(0x101)](_0x52a2ee))['to'](_0x52a2ee),_0x2ee81e[_0x5b6c76(0xfb)](_0x5b6c76(0x130))['to'](_0x3722a7),_0x158eec[_0x5b6c76(0x11c)][_0x5b6c76(0x13c)](_0x2ee81e),_0x3722a7[_0x5b6c76(0x128)][_0x5b6c76(0x13c)](_0x158eec);}return _0x3722a7[_0x5b6c76(0x128)][_0x5b6c76(0xfb)](_0x5b6c76(0x130))['to'](this),_0x3722a7['on'](_0x5b6c76(0x130),_0x1940df=>{const _0xe65462=_0x5b6c76,_0x1c179d=_0x1940df[_0xe65462(0x118)];this[_0xe65462(0x11e)](_0x1c179d[_0xe65462(0xf9)]),this[_0xe65462(0x135)][_0xe65462(0x10d)](),this[_0xe65462(0x124)][_0xe65462(0x132)]();}),_0x3722a7;}[_0x151664(0xf8)](){const _0x51a792=_0x151664;this[_0x51a792(0x12e)]=new _0x4b08b8(),this[_0x51a792(0x12e)][_0x51a792(0x12c)](this[_0x51a792(0x135)][_0x51a792(0xe7)]),this[_0x51a792(0x12e)][_0x51a792(0xea)](_0x51a792(0x120),(_0x4ecfa3,_0x5e1159)=>{const _0x41140b=_0x51a792;this[_0x41140b(0x135)][_0x41140b(0x10d)](),this[_0x41140b(0x124)][_0x41140b(0x132)](),_0x5e1159();});}[_0x151664(0xfe)](){const _0x4c51c8=_0x151664;super[_0x4c51c8(0xfe)](),this[_0x4c51c8(0x12e)][_0x4c51c8(0xfe)](),this[_0x4c51c8(0x135)][_0x4c51c8(0xfe)](),this[_0x4c51c8(0x138)][_0x4c51c8(0x140)]();}}function Gn(_0x5a02fa){const _0x1b1c87=_0x151664;return{'top':_0x5a02fa[_0x1b1c87(0x114)],'left':_0x5a02fa[_0x1b1c87(0x107)],'name':_0x1b1c87(0x13a),'config':{'withArrow':!0x1}};}function yn(_0x55360b,_0x11f974){const _0x257fdd=_0x151664;return{'top':_0x55360b[_0x257fdd(0x114)],'left':_0x55360b[_0x257fdd(0x107)]-(_0x11f974[_0x257fdd(0xf3)]-_0x55360b[_0x257fdd(0xf3)]),'name':_0x257fdd(0x13a),'config':{'withArrow':!0x1}};}function Pn(_0x42f691,_0x6b9081,_0xda7f99){const _0x53dba7=_0x151664;switch(_0x42f691){case _0x53dba7(0x131):return _0x4c453e(_0x6b9081,_0x53dba7(0x110),_0xda7f99);case _0x53dba7(0x133):return _0x4c453e(_0x6b9081,_0x53dba7(0x12a),_0xda7f99);case _0x53dba7(0x122):return _0x4c453e(_0x6b9081,_0x53dba7(0x129),_0xda7f99);}}function Hn(_0xd6b71f,_0x54812f,_0x2ded5f){const _0x36445b=_0x151664;switch(_0xd6b71f){case _0x36445b(0x131):return _0x4c453e(_0x54812f,_0x36445b(0x10e),_0x2ded5f);case _0x36445b(0x133):return _0x4c453e(_0x54812f,_0x36445b(0xe4),_0x2ded5f);case _0x36445b(0x122):return _0x4c453e(_0x54812f,_0x36445b(0xf6),_0x2ded5f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x49b400=_0x5728;(function(_0x42f713,_0x1e0c12){var _0x1f7b11=_0x5728,_0x54ec04=_0x42f713();while(!![]){try{var _0x5078f4=parseInt(_0x1f7b11(0x85))/0x1*(parseInt(_0x1f7b11(0x92))/0x2)+-parseInt(_0x1f7b11(0x87))/0x3*(parseInt(_0x1f7b11(0x9c))/0x4)+parseInt(_0x1f7b11(0xa3))/0x5*(parseInt(_0x1f7b11(0x9d))/0x6)+-parseInt(_0x1f7b11(0xa8))/0x7+parseInt(_0x1f7b11(0xad))/0x8*(-parseInt(_0x1f7b11(0xa7))/0x9)+parseInt(_0x1f7b11(0x8f))/0xa+-parseInt(_0x1f7b11(0xac))/0xb*(-parseInt(_0x1f7b11(0x83))/0xc);if(_0x5078f4===_0x1e0c12)break;else _0x54ec04['push'](_0x54ec04['shift']());}catch(_0x1ad311){_0x54ec04['push'](_0x54ec04['shift']());}}}(_0x188d,0xcd93a));import{AIChatFeedItemView as _0x124b77}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x182759}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x5728(_0x5c0771,_0x3942a2){var _0x188d2e=_0x188d();return _0x5728=function(_0x572815,_0x4e3e4e){_0x572815=_0x572815-0x81;var _0x311d3f=_0x188d2e[_0x572815];return _0x311d3f;},_0x5728(_0x5c0771,_0x3942a2);}function _0x188d(){var _0x565476=['insertSuggestion','options','children','containerView','rejectSuggestion','updateContent','175204PXCYgP','8582712PayZeu','extendTemplate','showDiff','isVisible','availableActions','applySuggestion','5PLXhPx','dislike','isTrackChangesOn','mouseOverSuggestion','54xhikWO','5611935mVUQYc','bind','ck-ai-chat__feed__ai-suggestion','actionsView','11oQMJxB','1561792qiTBkl','getPartView','fire','areActionsDisabled','updateLabels','32188620VmAoIi','mouseLeaveSuggestion','30ZtRAGb','set','105qgiUdy','toggleSuggestionDisplayMode','updatePartState','hasNonEmptyParts','showChangeInText','updateSources','isEnabled','partsCount','1482890CjTNcL','markAsDone','addMany','5800dWZjLP','hasPendingParts','bodyView','like'];_0x188d=function(){return _0x565476;};return _0x188d();}import{AIChatFeedSuggestionItemActionsView as _0x369644}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x124b77{[_0x49b400(0x99)];[_0x49b400(0xab)];constructor(_0x23eff7,_0x28a33c){var _0x469b3b=_0x49b400;super(_0x28a33c),this[_0x469b3b(0x86)](_0x469b3b(0xa5),!0x1),this[_0x469b3b(0x99)]=new _0x182759(_0x23eff7,{'showDiff':_0x28a33c[_0x469b3b(0x9f)],'areActionsDisabled':_0x28a33c[_0x469b3b(0x81)],'availableActions':_0x28a33c[_0x469b3b(0xa1)]}),this[_0x469b3b(0x99)]['on'](_0x469b3b(0x88),(_0x49a12f,_0x4a3b2a)=>{var _0x1afb33=_0x469b3b;this[_0x1afb33(0xaf)](_0x1afb33(0x88),{'replyId':this[_0x1afb33(0x97)]['id'],'showDiff':_0x4a3b2a[_0x1afb33(0x9f)]});}),this[_0x469b3b(0x99)]['on'](_0x469b3b(0x95),()=>{var _0x5a63bf=_0x469b3b;this[_0x5a63bf(0xaf)](_0x5a63bf(0x95),{'replyId':this[_0x5a63bf(0x97)]['id']});}),this[_0x469b3b(0x99)]['on'](_0x469b3b(0xa4),()=>{var _0x252299=_0x469b3b;this[_0x252299(0xaf)](_0x252299(0xa4),{'replyId':this[_0x252299(0x97)]['id']});}),this[_0x469b3b(0x99)]['on'](_0x469b3b(0x8b),(_0x1b6f7e,{index:_0x434408})=>{var _0x14ac7e=_0x469b3b;this[_0x14ac7e(0xaf)](_0x14ac7e(0x8b),{'replyId':this[_0x14ac7e(0x97)]['id'],'partIndex':_0x434408});}),this[_0x469b3b(0x99)]['on'](_0x469b3b(0x96),(_0x3951c4,{index:_0x2025d1})=>{var _0x10dd88=_0x469b3b;this[_0x10dd88(0xaf)](_0x10dd88(0x96),{'replyId':this[_0x10dd88(0x97)]['id'],'partIndex':_0x2025d1});}),this[_0x469b3b(0x99)]['on'](_0x469b3b(0x9a),(_0x1ffaa4,{index:_0x48ef82})=>{var _0x608c2e=_0x469b3b;this[_0x608c2e(0xaf)](_0x608c2e(0x9a),{'replyId':this[_0x608c2e(0x97)]['id'],'partIndex':_0x48ef82});}),this[_0x469b3b(0x99)]['on'](_0x469b3b(0xa6),(_0x304316,{index:_0x47b9ae})=>{var _0x3fee9a=_0x469b3b;this[_0x3fee9a(0xaf)](_0x3fee9a(0xa6),{'replyId':this[_0x3fee9a(0x97)]['id'],'partIndex':_0x47b9ae});}),this[_0x469b3b(0x99)]['on'](_0x469b3b(0x84),(_0x3571be,{index:_0x5edf90})=>{var _0x4dcdfe=_0x469b3b;this[_0x4dcdfe(0xaf)](_0x4dcdfe(0x84),{'replyId':this[_0x4dcdfe(0x97)]['id'],'partIndex':_0x5edf90});}),this[_0x469b3b(0xab)]=new _0x369644(_0x23eff7,this[_0x469b3b(0x97)][_0x469b3b(0xa1)]),this[_0x469b3b(0xab)][_0x469b3b(0xa9)](_0x469b3b(0xa5))['to'](this,_0x469b3b(0xa5)),this[_0x469b3b(0xab)]['on'](_0x469b3b(0x8b),()=>{var _0x212f3a=_0x469b3b;this[_0x212f3a(0xaf)](_0x212f3a(0x8b),{'replyId':this[_0x212f3a(0x97)]['id']});}),this[_0x469b3b(0xab)]['on'](_0x469b3b(0x96),()=>{var _0x20a973=_0x469b3b;this[_0x20a973(0xaf)](_0x20a973(0x96),{'replyId':this[_0x20a973(0x97)]['id']});}),this[_0x469b3b(0xab)]['on'](_0x469b3b(0xa2),()=>{var _0x566f31=_0x469b3b;this[_0x566f31(0xaf)](_0x566f31(0xa2),{'replyId':this[_0x566f31(0x97)]['id']});}),_0x28a33c[_0x469b3b(0x81)]?this[_0x469b3b(0xab)][_0x469b3b(0x8d)]=!0x1:this[_0x469b3b(0xab)][_0x469b3b(0xa9)](_0x469b3b(0x8d))['to'](this[_0x469b3b(0x99)][_0x469b3b(0x94)],_0x469b3b(0x93)),this[_0x469b3b(0x98)][_0x469b3b(0x91)]([this[_0x469b3b(0x99)],this[_0x469b3b(0xab)]]),this[_0x469b3b(0x9e)]({'attributes':{'class':[_0x469b3b(0xaa)]}});}async[_0x49b400(0x9b)](_0x26bcdb){var _0x272a80=_0x49b400;await this[_0x272a80(0x99)][_0x272a80(0x9b)](_0x26bcdb),this[_0x272a80(0xab)][_0x272a80(0x82)](this[_0x272a80(0x99)][_0x272a80(0x94)][_0x272a80(0x8e)]);}[_0x49b400(0x89)](_0x2064e7,_0x38dbd3){var _0x1c774a=_0x49b400;this[_0x1c774a(0x99)][_0x1c774a(0x94)][_0x1c774a(0x89)](_0x2064e7,_0x38dbd3);}[_0x49b400(0x8c)](_0x49cdc8){var _0x2e124d=_0x49b400;this[_0x2e124d(0x99)][_0x2e124d(0x8c)](_0x49cdc8);}[_0x49b400(0xae)](_0x5e6f10){var _0x23c180=_0x49b400;return this[_0x23c180(0x99)][_0x23c180(0x94)][_0x23c180(0xae)](_0x5e6f10);}[_0x49b400(0x90)](){var _0x502620=_0x49b400;super[_0x502620(0x90)](),this[_0x502620(0x99)][_0x502620(0x90)](),this[_0x502620(0xab)][_0x502620(0xa0)]=this[_0x502620(0x99)][_0x502620(0x94)][_0x502620(0x8a)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x52ed97=_0x7106;(function(_0x391a01,_0x16d22e){var _0x311fe8=_0x7106,_0x5d2c14=_0x391a01();while(!![]){try{var _0x1a4e44=parseInt(_0x311fe8(0x96))/0x1*(-parseInt(_0x311fe8(0x82))/0x2)+-parseInt(_0x311fe8(0x90))/0x3+-parseInt(_0x311fe8(0x95))/0x4+-parseInt(_0x311fe8(0x81))/0x5+-parseInt(_0x311fe8(0x7e))/0x6*(parseInt(_0x311fe8(0x7f))/0x7)+-parseInt(_0x311fe8(0x98))/0x8*(parseInt(_0x311fe8(0x8e))/0x9)+-parseInt(_0x311fe8(0x9a))/0xa*(-parseInt(_0x311fe8(0x91))/0xb);if(_0x1a4e44===_0x16d22e)break;else _0x5d2c14['push'](_0x5d2c14['shift']());}catch(_0x59e4c0){_0x5d2c14['push'](_0x5d2c14['shift']());}}}(_0x545e,0x422d8));function _0x7106(_0x23a5ef,_0x977fd7){var _0x545ead=_0x545e();return _0x7106=function(_0x71067e,_0x527627){_0x71067e=_0x71067e-0x7b;var _0x43a37d=_0x545ead[_0x71067e];return _0x43a37d;},_0x7106(_0x23a5ef,_0x977fd7);}import{AIChatFeedItemView as _0x5d629a}from'./aichatfeeditemview.js';function _0x545e(){var _0x3b4e7e=['contextItems','markAsDone','ck-ai-chat__feed__user-message','element','ck-ai-chat__feed__message-content','render','innerHTML','filter','_locale','97731sejKWX','_contextChipsView','1192758qjmZtS','8976539LASDhc','_bodyCollection','_createMessageContentView','initialContent','2065980BanETe','23lRoqRQ','hidden','304cpkjYm','options','30mhRkDg','setTemplate','_createContextChipsView','ck-ai-chat__feed__context-chips','extendTemplate','length','children','10518ePVype','2023DhUwuX','div','316060vUiysc','24394cmkFVD','_messageContentView','add'];_0x545e=function(){return _0x3b4e7e;};return _0x545e();}import{AIChatFeedContextChipsView as _0x19300b}from'./aichatfeedcontextchipsview.js';import{View as _0x2a7a99}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x5d629a{[_0x52ed97(0x8f)]=null;[_0x52ed97(0x8d)];[_0x52ed97(0x92)];[_0x52ed97(0x83)];constructor(_0x521e7a,_0x850d8c,_0x49e3e2){var _0x462b86=_0x52ed97;super(_0x850d8c),this[_0x462b86(0x8d)]=_0x521e7a,this[_0x462b86(0x92)]=_0x49e3e2,this[_0x462b86(0x9c)](),this[_0x462b86(0x93)](),this[_0x462b86(0x7b)]({'attributes':{'class':[_0x462b86(0x87)]}});}[_0x52ed97(0x9c)](){var _0x41f87c=_0x52ed97;this[_0x41f87c(0x99)][_0x41f87c(0x85)]&&this[_0x41f87c(0x99)][_0x41f87c(0x85)][_0x41f87c(0x7c)]>0x0&&(this[_0x41f87c(0x8f)]=new _0x19300b(this[_0x41f87c(0x8d)],this[_0x41f87c(0x99)][_0x41f87c(0x85)][_0x41f87c(0x8c)](_0x526b7f=>!_0x526b7f[_0x41f87c(0x97)]),this[_0x41f87c(0x92)]),this[_0x41f87c(0x8f)][_0x41f87c(0x7b)]({'attributes':{'class':_0x41f87c(0x9d)}}),this[_0x41f87c(0x7d)][_0x41f87c(0x84)](this[_0x41f87c(0x8f)]));}[_0x52ed97(0x93)](){var _0x5d6a0b=_0x52ed97;this[_0x5d6a0b(0x83)]=new _0x2a7a99(this[_0x5d6a0b(0x8d)]),this[_0x5d6a0b(0x83)][_0x5d6a0b(0x9b)]({'tag':_0x5d6a0b(0x80),'attributes':{'class':_0x5d6a0b(0x89)}}),this[_0x5d6a0b(0x7d)][_0x5d6a0b(0x84)](this[_0x5d6a0b(0x83)]);}[_0x52ed97(0x8a)](){var _0xaf509c=_0x52ed97;super[_0xaf509c(0x8a)](),this[_0xaf509c(0x83)][_0xaf509c(0x88)][_0xaf509c(0x8b)]=this[_0xaf509c(0x99)][_0xaf509c(0x94)],this[_0xaf509c(0x86)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1279(){const _0x24293c=['startConversation','6218172gmHCls','6aQdIWd','63778gtarSP','loadSourceResources','7170296VfEams','2912468ZgSmHw','4718992mXkirb','toggleReasoning','removeContextItem','resizeTabs','addFileToContext','toggleWebSearch','addUrlToContext','sendUserMessage','992330WJGdbe','selectModel','11813910VonHDY','addResourceToContext','addDocumentToContext','3Vcfnds','11NWKGRn','abortPromptStream'];_0x1279=function(){return _0x24293c;};return _0x1279();}const _0x366673=_0x45ec;(function(_0x975f6,_0x49109b){const _0xb1a85a=_0x45ec,_0x50e7a3=_0x975f6();while(!![]){try{const _0x241408=parseInt(_0xb1a85a(0x137))/0x1*(-parseInt(_0xb1a85a(0x13c))/0x2)+-parseInt(_0xb1a85a(0x136))/0x3*(-parseInt(_0xb1a85a(0x13f))/0x4)+parseInt(_0xb1a85a(0x131))/0x5*(parseInt(_0xb1a85a(0x13b))/0x6)+-parseInt(_0xb1a85a(0x13e))/0x7+-parseInt(_0xb1a85a(0x140))/0x8+parseInt(_0xb1a85a(0x13a))/0x9+parseInt(_0xb1a85a(0x133))/0xa;if(_0x241408===_0x49109b)break;else _0x50e7a3['push'](_0x50e7a3['shift']());}catch(_0x138964){_0x50e7a3['push'](_0x50e7a3['shift']());}}}(_0x1279,0xcb96d));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x5dde3d}from'../../aicore/utils/eventnames.js';function _0x45ec(_0x3f93b2,_0x395720){const _0x12792c=_0x1279();return _0x45ec=function(_0x45ec07,_0x5ff135){_0x45ec07=_0x45ec07-0x12a;let _0x532130=_0x12792c[_0x45ec07];return _0x532130;},_0x45ec(_0x3f93b2,_0x395720);}export const AI_CHAT_UI_EVENT_NAMES=[..._0x5dde3d,_0x366673(0x139),_0x366673(0x12c),_0x366673(0x130),_0x366673(0x138),_0x366673(0x135),_0x366673(0x12d),_0x366673(0x12f),_0x366673(0x134),_0x366673(0x12b),_0x366673(0x13d),_0x366673(0x12e),_0x366673(0x12a),_0x366673(0x132)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x12e4(){const _0x2b0a8d=['queueEmptyPromise','1577095VIIPMS','shift','callback','isProcessing','resolve','17114WRckuP','reject','1196484mSxICU','completePromise','_processQueue','abort','createTask','enqueue','once','queue','signal','fire','length','205373lVgWbX','_abortController','460616rtOCTc','_queueEmpty','249729DdgYkO','36GopeEA','push','3330112PWAzZy'];_0x12e4=function(){return _0x2b0a8d;};return _0x12e4();}function _0x238a(_0x17c87a,_0x19ae93){const _0x12e42b=_0x12e4();return _0x238a=function(_0x238abc,_0x39b356){_0x238abc=_0x238abc-0x73;let _0x26a003=_0x12e42b[_0x238abc];return _0x26a003;},_0x238a(_0x17c87a,_0x19ae93);}const _0x551ee2=_0x238a;(function(_0x704957,_0x3d237a){const _0x286053=_0x238a,_0x4fd5d6=_0x704957();while(!![]){try{const _0x527eac=parseInt(_0x286053(0x78))/0x1*(parseInt(_0x286053(0x8a))/0x2)+parseInt(_0x286053(0x89))/0x3+parseInt(_0x286053(0x87))/0x4+parseInt(_0x286053(0x73))/0x5+-parseInt(_0x286053(0x7a))/0x6+parseInt(_0x286053(0x85))/0x7+-parseInt(_0x286053(0x8c))/0x8;if(_0x527eac===_0x3d237a)break;else _0x4fd5d6['push'](_0x4fd5d6['shift']());}catch(_0xb8355d){_0x4fd5d6['push'](_0x4fd5d6['shift']());}}}(_0x12e4,0x39809));import{EmitterMixin as _0x1e60e9}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x1e60e9(){[_0x551ee2(0x81)]=[];[_0x551ee2(0x76)]=!0x1;[_0x551ee2(0x86)];async[_0x551ee2(0x7f)](_0x330fba){const _0x30e197=_0x551ee2,_0x23f73e=this[_0x30e197(0x7e)](_0x330fba);return this[_0x30e197(0x81)][_0x30e197(0x8b)](_0x23f73e),this[_0x30e197(0x7c)](),_0x23f73e[_0x30e197(0x7b)];}[_0x551ee2(0x7d)](){const _0x1d946a=_0x551ee2;this[_0x1d946a(0x76)]&&(this[_0x1d946a(0x86)][_0x1d946a(0x7d)](),this[_0x1d946a(0x86)]=void 0x0,this[_0x1d946a(0x81)]=[],this[_0x1d946a(0x83)](_0x1d946a(0x88)),this[_0x1d946a(0x76)]=!0x1);}get[_0x551ee2(0x8d)](){const _0x5c6baf=_0x551ee2;return this[_0x5c6baf(0x81)][_0x5c6baf(0x84)]||this[_0x5c6baf(0x76)]?new Promise(_0x4eac4d=>{const _0x125499=_0x5c6baf;this[_0x125499(0x80)](_0x125499(0x88),()=>{_0x4eac4d();});}):Promise[_0x5c6baf(0x77)]();}async[_0x551ee2(0x7c)](){const _0x45a201=_0x551ee2;if(!this[_0x45a201(0x76)]){this[_0x45a201(0x86)]=new AbortController(),this[_0x45a201(0x76)]=!0x0;try{for(;this[_0x45a201(0x81)][_0x45a201(0x84)]&&this[_0x45a201(0x76)];){const _0x2078f7=this[_0x45a201(0x81)][_0x45a201(0x74)]();try{await _0x2078f7[_0x45a201(0x75)](this[_0x45a201(0x86)][_0x45a201(0x82)]),_0x2078f7[_0x45a201(0x77)]();}catch(_0x6e13e){_0x2078f7[_0x45a201(0x79)](_0x6e13e);}}}finally{this[_0x45a201(0x76)]=!0x1,this[_0x45a201(0x86)]=void 0x0;}this[_0x45a201(0x83)](_0x45a201(0x88));}}[_0x551ee2(0x7e)](_0x581b82){let _0x532e1c,_0x365807;const _0x5215c7=new Promise((_0x1fc4f8,_0x1868a3)=>{_0x532e1c=_0x1fc4f8,_0x365807=_0x1868a3;});return{'callback':_0x581b82,'resolve':_0x532e1c,'reject':_0x365807,'completePromise':_0x5215c7};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x311a(){var _0x5189e9=['requires','isPremiumPlugin','10nTqrko','1191265zjvQiS','1521zxlZOx','55646TpvIrV','AIChatHistory','376663giCqMU','4287327qJlQVs','isOfficialPlugin','24BGisjj','87lqLLqo','3523vzQsHI','99112VorZCf','24vUvdTR','28284hzrznW','pluginName','10904kLTQan'];_0x311a=function(){return _0x5189e9;};return _0x311a();}var _0x385b1f=_0x3f77;(function(_0x345a59,_0x1b0f10){var _0x147048=_0x3f77,_0x3ecb86=_0x345a59();while(!![]){try{var _0x5c6b28=parseInt(_0x147048(0x1c1))/0x1*(parseInt(_0x147048(0x1ca))/0x2)+-parseInt(_0x147048(0x1be))/0x3*(parseInt(_0x147048(0x1c0))/0x4)+parseInt(_0x147048(0x1c8))/0x5+-parseInt(_0x147048(0x1cf))/0x6*(-parseInt(_0x147048(0x1cc))/0x7)+parseInt(_0x147048(0x1c4))/0x8*(parseInt(_0x147048(0x1c9))/0x9)+parseInt(_0x147048(0x1c7))/0xa*(parseInt(_0x147048(0x1cd))/0xb)+parseInt(_0x147048(0x1c2))/0xc*(-parseInt(_0x147048(0x1bf))/0xd);if(_0x5c6b28===_0x1b0f10)break;else _0x3ecb86['push'](_0x3ecb86['shift']());}catch(_0x27b9aa){_0x3ecb86['push'](_0x3ecb86['shift']());}}}(_0x311a,0x5dc24));function _0x3f77(_0x305806,_0x5b1228){var _0x311aa7=_0x311a();return _0x3f77=function(_0x3f77d8,_0x3b5980){_0x3f77d8=_0x3f77d8-0x1be;var _0x3a8a7c=_0x311aa7[_0x3f77d8];return _0x3a8a7c;},_0x3f77(_0x305806,_0x5b1228);}import{ContextPlugin as _0x52074e}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x1743ff}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0x4620b3}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x52074e{static get[_0x385b1f(0x1c5)](){return[_0x1743ff,_0x4620b3];}static get[_0x385b1f(0x1c3)](){var _0x3957a6=_0x385b1f;return _0x3957a6(0x1cb);}static get[_0x385b1f(0x1ce)](){return!0x0;}static get[_0x385b1f(0x1c6)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4d54d5=_0x19d5;(function(_0x28e03e,_0x4246ca){const _0x3962ad=_0x19d5,_0x2534a2=_0x28e03e();while(!![]){try{const _0x4b67be=-parseInt(_0x3962ad(0x1c7))/0x1*(parseInt(_0x3962ad(0x1dd))/0x2)+parseInt(_0x3962ad(0x1f1))/0x3*(parseInt(_0x3962ad(0x1a8))/0x4)+-parseInt(_0x3962ad(0x1c6))/0x5+parseInt(_0x3962ad(0x1ae))/0x6+-parseInt(_0x3962ad(0x1ea))/0x7+parseInt(_0x3962ad(0x1e7))/0x8+parseInt(_0x3962ad(0x1b3))/0x9;if(_0x4b67be===_0x4246ca)break;else _0x2534a2['push'](_0x2534a2['shift']());}catch(_0xb92552){_0x2534a2['push'](_0x2534a2['shift']());}}}(_0x3974,0xb4739));import{ContextPlugin as _0x73b58e}from'ckeditor5/src/core.js';import{AIConnector as _0x38761b}from'../aicore/aiconnector.js';import{AIChatController as _0x2f3f67}from'../aichat/aichatcontroller.js';import{AITabs as _0x53bb06}from'../aitabs/aitabs.js';function _0x3974(){const _0x10c30a=['AI_CHAT_HISTORY_CATEGORY_YESTERDAY','itemsLoaded','_clearItemLoading','rename','_handleTogglePin','context','removeHistoryItem','getItems','_getCategorizedItems','AI_CHAT_HISTORY_ERROR_GENERIC','setLoadingSkeleton','showError','AI_CHAT_HISTORY_CATEGORY_PINNED','loadItems','activateTab','itemId','AIChatHistoryController','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','getFullYear','requires','handleRemovedConversation','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','_generateErrorMessage','activateTab:history','AI_CHAT_HISTORY_CATEGORY_TODAY','get','length','896004PQwpJO','title','removeConversation','openChat','pluginName','createdAt','1781118rSOpNF','loadConversation','pinned','setIsMaximized','toLocaleDateString','12494916XtQphl','activeConversation','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','init','listenTo','remove','unpin','editConversationTitle','chat','setConversationPinned','_handleSelectConversation','history','operation','isOfficialPlugin','getDate','_setItemLoading','updateItems','_handleHistoryErrorUI','selectConversation','3039955OfKbkJ','1VcAFRS','_handleRemove','_updateHistoryItemsUI','_showConversationHistory','_setIsMaximized','updateItemPinned','view','AI_CHAT_HISTORY_UNPIN_ACTION','getGroupId','getItem','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','setDate','AI_CHAT_UNTITLED_CONVERSATION','resize','locale','_handleEditTitle','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_CATEGORY_LATER','push','_aiChatHistoryUi','updates','isPremiumPlugin','2077422FICnya','_aiConnector','getMonth','updateItemLoadingState','itemUpdated','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','error','updateItemTitle','change:activeConversation','items','4446712XluViO','resizedTabs','_aiChatController','2122309weLIDL','itemRemoved','plugins','resizeTabs','pin','removeItem','map','6BUVbwa'];_0x3974=function(){return _0x10c30a;};return _0x3974();}import{AIChatHistoryUI as _0x41d81e}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x2acad4}from'./model/aichathistoryconversations.js';function _0x19d5(_0x8d92b4,_0x2766e6){const _0x39748d=_0x3974();return _0x19d5=function(_0x19d5dc,_0x39f7d2){_0x19d5dc=_0x19d5dc-0x193;let _0x9cbeda=_0x39748d[_0x19d5dc];return _0x9cbeda;},_0x19d5(_0x8d92b4,_0x2766e6);}import{getTranslation as _0x2e3ade}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x73b58e{[_0x4d54d5(0x1de)];[_0x4d54d5(0x1da)];[_0x4d54d5(0x1e9)];static get[_0x4d54d5(0x1a0)](){return[_0x38761b,_0x2f3f67,_0x41d81e,_0x53bb06];}static get[_0x4d54d5(0x1ac)](){const _0x40ed01=_0x4d54d5;return _0x40ed01(0x19d);}static get[_0x4d54d5(0x1c0)](){return!0x0;}static get[_0x4d54d5(0x1dc)](){return!0x0;}[_0x4d54d5(0x1b6)](){const _0x5a6403=_0x4d54d5;this[_0x5a6403(0x1de)]=this[_0x5a6403(0x1f7)][_0x5a6403(0x1ec)][_0x5a6403(0x1a6)](_0x38761b),this[_0x5a6403(0x1da)]=this[_0x5a6403(0x1f7)][_0x5a6403(0x1ec)][_0x5a6403(0x1a6)](_0x41d81e),this[_0x5a6403(0x1e9)]=this[_0x5a6403(0x1f7)][_0x5a6403(0x1ec)][_0x5a6403(0x1a6)](_0x2f3f67);const _0x5231de=this[_0x5a6403(0x1f7)][_0x5a6403(0x1ec)][_0x5a6403(0x1a6)](_0x53bb06),_0x15a921=this[_0x5a6403(0x1e9)][_0x5a6403(0x1cf)]();this[_0x5a6403(0x1be)]=new _0x2acad4({'connector':this[_0x5a6403(0x1de)],'group':_0x15a921}),this[_0x5a6403(0x1b7)](this[_0x5a6403(0x1da)],_0x5a6403(0x1aa),(_0x39c66e,_0x182235)=>{const _0x21bb6c=_0x5a6403;this[_0x21bb6c(0x1c2)](_0x182235['id'],_0x21bb6c(0x1b8)),this[_0x21bb6c(0x1c8)](_0x182235['id']);}),this[_0x5a6403(0x1b7)](this[_0x5a6403(0x1da)],_0x5a6403(0x1ba),(_0x11a627,_0x43121e)=>{const _0x4842e2=_0x5a6403;this[_0x4842e2(0x1c2)](_0x43121e['id'],_0x4842e2(0x1f5)),this[_0x4842e2(0x1d6)](_0x43121e['id'],_0x43121e[_0x4842e2(0x1a9)]);}),this[_0x5a6403(0x1b7)](this[_0x5a6403(0x1be)],_0x5a6403(0x1e1),(_0x2d3988,_0x5bcaf1)=>{const _0x1e3759=_0x5a6403;void 0x0!==_0x5bcaf1[_0x1e3759(0x1db)][_0x1e3759(0x1a9)]&&this[_0x1e3759(0x1da)][_0x1e3759(0x1e4)](_0x5bcaf1[_0x1e3759(0x19c)],_0x5bcaf1[_0x1e3759(0x1db)][_0x1e3759(0x1a9)]),void 0x0!==_0x5bcaf1[_0x1e3759(0x1db)][_0x1e3759(0x1b0)]&&this[_0x1e3759(0x1c9)](),this[_0x1e3759(0x1f4)](_0x5bcaf1[_0x1e3759(0x19c)]);}),this[_0x5a6403(0x1b7)](this[_0x5a6403(0x1be)],_0x5a6403(0x1eb),(_0x14fa8a,_0x13275a)=>{const _0x58bdb6=_0x5a6403;this[_0x58bdb6(0x1e9)][_0x58bdb6(0x1a1)](_0x13275a[_0x58bdb6(0x19c)]),this[_0x58bdb6(0x1da)][_0x58bdb6(0x193)](_0x13275a[_0x58bdb6(0x19c)]),this[_0x58bdb6(0x1f4)](_0x13275a[_0x58bdb6(0x19c)]);}),this[_0x5a6403(0x1b7)](this[_0x5a6403(0x1be)],_0x5a6403(0x1f3),()=>{const _0xa4b968=_0x5a6403;this[_0xa4b968(0x1c9)]();}),this[_0x5a6403(0x1b7)](this[_0x5a6403(0x1be)],_0x5a6403(0x1e3),(_0x524b30,_0x54ded5)=>{const _0x4ea1b4=_0x5a6403;this[_0x4ea1b4(0x1c4)](_0x54ded5[_0x4ea1b4(0x1e3)],_0x54ded5[_0x4ea1b4(0x1bf)],_0x54ded5[_0x4ea1b4(0x19c)]);}),this[_0x5a6403(0x1b7)](this[_0x5a6403(0x1da)],_0x5a6403(0x1c5),(_0x201b9b,_0xcf5e61)=>{const _0x7d76cb=_0x5a6403;this[_0x7d76cb(0x1bd)](_0xcf5e61['id']);}),this[_0x5a6403(0x1b7)](this[_0x5a6403(0x1da)],_0x5a6403(0x1bc),(_0x3dd71d,_0x548c59)=>{const _0x565719=_0x5a6403,_0x55ddad=_0x548c59[_0x565719(0x1b0)]?_0x565719(0x1ee):_0x565719(0x1b9);this[_0x565719(0x1c2)](_0x548c59['id'],_0x55ddad),this[_0x565719(0x1f6)](_0x548c59['id'],_0x548c59[_0x565719(0x1b0)]);}),this[_0x5a6403(0x1b7)](this[_0x5a6403(0x1da)],_0x5a6403(0x1ab),()=>{const _0x30d791=_0x5a6403;_0x5231de[_0x30d791(0x1cd)][_0x30d791(0x19b)](_0x30d791(0x1bb));}),this[_0x5a6403(0x1b7)](this[_0x5a6403(0x1e9)],_0x5a6403(0x1e5),()=>{const _0x8ec9f7=_0x5a6403;this[_0x8ec9f7(0x1c9)]();}),_0x5231de[_0x5a6403(0x1cd)]['on'](_0x5a6403(0x1a4),()=>{const _0x46832a=_0x5a6403;this[_0x46832a(0x1ca)]();}),this[_0x5a6403(0x1b7)](_0x5231de,_0x5a6403(0x1e8),(_0xbcab38,_0x59a8fe)=>{const _0x4550cc=_0x5a6403;this[_0x4550cc(0x1cb)](_0x59a8fe);}),this[_0x5a6403(0x1b7)](this[_0x5a6403(0x1da)],_0x5a6403(0x1ed),()=>{const _0x2164db=_0x5a6403;_0x5231de[_0x2164db(0x1d4)]();});}async[_0x4d54d5(0x1d6)](_0x3762ff,_0x39c7b2){const _0xdc5ad=_0x4d54d5;await this[_0xdc5ad(0x1be)][_0xdc5ad(0x1e4)](_0x3762ff,_0x39c7b2);}async[_0x4d54d5(0x1f6)](_0x341c7d,_0x5d52f0){const _0x3bb2e4=_0x4d54d5;await this[_0x3bb2e4(0x1be)][_0x3bb2e4(0x1cc)](_0x341c7d,_0x5d52f0);}async[_0x4d54d5(0x1c8)](_0x3f3bda){const _0x556fd5=_0x4d54d5;await this[_0x556fd5(0x1be)][_0x556fd5(0x1ef)](_0x3f3bda);}async[_0x4d54d5(0x1bd)](_0x1e3040){const _0x3cb552=_0x4d54d5;await this[_0x3cb552(0x1e9)][_0x3cb552(0x1af)](_0x1e3040);}async[_0x4d54d5(0x1ca)](){const _0x46abde=_0x4d54d5;this[_0x46abde(0x1da)][_0x46abde(0x198)](''),this[_0x46abde(0x1da)][_0x46abde(0x197)](!0x0),await this[_0x46abde(0x1be)][_0x46abde(0x1b6)](),this[_0x46abde(0x1da)][_0x46abde(0x197)](!0x1);}[_0x4d54d5(0x1c9)](){const _0x245bce=_0x4d54d5,_0x4f156e=this[_0x245bce(0x1e9)][_0x245bce(0x1b4)]?.['id'],_0x5c3112=this[_0x245bce(0x195)]()[_0x245bce(0x1f0)](_0x56b52a=>({'title':_0x56b52a[_0x245bce(0x1a9)],'items':_0x56b52a[_0x245bce(0x1e6)][_0x245bce(0x1f0)](_0x4da10e=>({'id':_0x4da10e['id'],'title':_0x4da10e[_0x245bce(0x1a9)]||_0x2e3ade(this[_0x245bce(0x1f7)][_0x245bce(0x1d5)],_0x245bce(0x1d3)),'createdAt':new Date(_0x4da10e[_0x245bce(0x1ad)])[_0x245bce(0x1b2)](),'active':_0x4da10e['id']===_0x4f156e,'pinned':_0x4da10e[_0x245bce(0x1b0)]}))}));this[_0x245bce(0x1da)][_0x245bce(0x1c3)](_0x5c3112);}[_0x4d54d5(0x1c2)](_0x5bd4bf,_0x381d32){const _0x5cddc9=_0x4d54d5;this[_0x5cddc9(0x1da)][_0x5cddc9(0x1e0)](_0x5bd4bf,_0x381d32,!0x0);}[_0x4d54d5(0x1f4)](_0x3365f1){const _0x385193=_0x4d54d5;this[_0x385193(0x1da)][_0x385193(0x1e0)](_0x3365f1,null,!0x1);}[_0x4d54d5(0x1c4)](_0x20972c,_0x2c10fb,_0x2b4992){const _0x2d682a=_0x4d54d5,_0x2d5888=this[_0x2d682a(0x1a3)](_0x2c10fb,_0x2b4992);this[_0x2d682a(0x1da)][_0x2d682a(0x198)](_0x2d5888),_0x2b4992&&this[_0x2d682a(0x1f4)](_0x2b4992),this[_0x2d682a(0x1da)][_0x2d682a(0x197)](!0x1);}[_0x4d54d5(0x1a3)](_0x40ed75,_0x2a2a8d){const _0xcdaf46=_0x4d54d5,_0x401d61=_0x2a2a8d?this[_0xcdaf46(0x1be)][_0xcdaf46(0x1d0)](_0x2a2a8d):null,_0x380e92=_0x401d61?.[_0xcdaf46(0x1a9)]||_0x2e3ade(this[_0xcdaf46(0x1f7)][_0xcdaf46(0x1d5)],_0xcdaf46(0x1d3));switch(_0x40ed75){case _0xcdaf46(0x1e4):return _0x2e3ade(this[_0xcdaf46(0x1f7)][_0xcdaf46(0x1d5)],_0xcdaf46(0x1a2),_0x380e92);case _0xcdaf46(0x1cc):{const _0x16a5a5=_0x2e3ade(this[_0xcdaf46(0x1f7)][_0xcdaf46(0x1d5)],_0x401d61?.[_0xcdaf46(0x1b0)]?_0xcdaf46(0x1ce):_0xcdaf46(0x1d7));return _0x2e3ade(this[_0xcdaf46(0x1f7)][_0xcdaf46(0x1d5)],_0xcdaf46(0x1b5),[_0x16a5a5,_0x380e92]);}case _0xcdaf46(0x1ef):return _0x2e3ade(this[_0xcdaf46(0x1f7)][_0xcdaf46(0x1d5)],_0xcdaf46(0x19e),_0x380e92);case _0xcdaf46(0x1b6):case _0xcdaf46(0x19a):return _0x2e3ade(this[_0xcdaf46(0x1f7)][_0xcdaf46(0x1d5)],_0xcdaf46(0x1e2));default:return _0x2e3ade(this[_0xcdaf46(0x1f7)][_0xcdaf46(0x1d5)],_0xcdaf46(0x196));}}[_0x4d54d5(0x195)](){const _0x59677f=_0x4d54d5,_0x4e9177=new Date(),_0x2d379b=new Date(_0x4e9177[_0x59677f(0x19f)](),_0x4e9177[_0x59677f(0x1df)](),_0x4e9177[_0x59677f(0x1c1)]()),_0x242bcd=new Date(_0x2d379b);_0x242bcd[_0x59677f(0x1d2)](_0x242bcd[_0x59677f(0x1c1)]()-0x1);const _0x2f01ee=new Date(_0x2d379b);_0x2f01ee[_0x59677f(0x1d2)](_0x2f01ee[_0x59677f(0x1c1)]()-0xe);const _0x37377f=this[_0x59677f(0x1be)][_0x59677f(0x194)]({'pinned':!0x0}),_0x38ca3c=this[_0x59677f(0x1be)][_0x59677f(0x194)]({'from':_0x2d379b,'to':_0x2d379b}),_0x4f195f=this[_0x59677f(0x1be)][_0x59677f(0x194)]({'from':_0x242bcd,'to':_0x242bcd}),_0x3b9cbe=this[_0x59677f(0x1be)][_0x59677f(0x194)]({'from':_0x2f01ee,'to':_0x242bcd}),_0x53e073=this[_0x59677f(0x1be)][_0x59677f(0x194)]({'to':_0x2f01ee}),_0x3b9242=[];return _0x37377f[_0x59677f(0x1a7)]>0x0&&_0x3b9242[_0x59677f(0x1d9)]({'title':_0x2e3ade(this[_0x59677f(0x1f7)][_0x59677f(0x1d5)],_0x59677f(0x199)),'items':_0x37377f}),_0x38ca3c[_0x59677f(0x1a7)]>0x0&&_0x3b9242[_0x59677f(0x1d9)]({'title':_0x2e3ade(this[_0x59677f(0x1f7)][_0x59677f(0x1d5)],_0x59677f(0x1a5)),'items':_0x38ca3c}),_0x4f195f[_0x59677f(0x1a7)]>0x0&&_0x3b9242[_0x59677f(0x1d9)]({'title':_0x2e3ade(this[_0x59677f(0x1f7)][_0x59677f(0x1d5)],_0x59677f(0x1f2)),'items':_0x4f195f}),_0x3b9cbe[_0x59677f(0x1a7)]>0x0&&_0x3b9242[_0x59677f(0x1d9)]({'title':_0x2e3ade(this[_0x59677f(0x1f7)][_0x59677f(0x1d5)],_0x59677f(0x1d1)),'items':_0x3b9cbe}),_0x53e073[_0x59677f(0x1a7)]>0x0&&_0x3b9242[_0x59677f(0x1d9)]({'title':_0x2e3ade(this[_0x59677f(0x1f7)][_0x59677f(0x1d5)],_0x59677f(0x1d8)),'items':_0x53e073}),_0x3b9242;}[_0x4d54d5(0x1cb)](_0x52a6e0){const _0x17347b=_0x4d54d5;this[_0x17347b(0x1da)][_0x17347b(0x1b1)](_0x52a6e0);}}
|
|
23
|
+
const _0x17356d=_0x2be7;(function(_0x2a6990,_0x540326){const _0x2b53a=_0x2be7,_0x3bb11a=_0x2a6990();while(!![]){try{const _0x3199cd=-parseInt(_0x2b53a(0xf8))/0x1+-parseInt(_0x2b53a(0x12b))/0x2*(parseInt(_0x2b53a(0xd0))/0x3)+parseInt(_0x2b53a(0xd9))/0x4*(parseInt(_0x2b53a(0xd7))/0x5)+-parseInt(_0x2b53a(0x12d))/0x6*(parseInt(_0x2b53a(0x118))/0x7)+parseInt(_0x2b53a(0x10d))/0x8+-parseInt(_0x2b53a(0x10c))/0x9*(parseInt(_0x2b53a(0xe1))/0xa)+parseInt(_0x2b53a(0x106))/0xb;if(_0x3199cd===_0x540326)break;else _0x3bb11a['push'](_0x3bb11a['shift']());}catch(_0x5c95f1){_0x3bb11a['push'](_0x3bb11a['shift']());}}}(_0x3da6,0x68965));function _0x2be7(_0x1364ae,_0x179034){const _0x3da6cd=_0x3da6();return _0x2be7=function(_0x2be720,_0x10add1){_0x2be720=_0x2be720-0xc8;let _0x424d72=_0x3da6cd[_0x2be720];return _0x424d72;},_0x2be7(_0x1364ae,_0x179034);}import{ContextPlugin as _0x5b20b8}from'ckeditor5/src/core.js';import{AIConnector as _0x2c275c}from'../aicore/aiconnector.js';import{AIChatController as _0x454241}from'../aichat/aichatcontroller.js';function _0x3da6(){const _0x5eb7d7=['AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','updates','getMonth','itemRemoved','title','length','_setIsMaximized','unpin','_updateHistoryItemsUI','history','setDate','openChat','handleRemovedConversation','view','itemUpdated','getItems','_handleSelectConversation','252426VYuzxg','pin','175974GusqeV','updateItems','resizeTabs','_getCategorizedItems','_handleRemove','map','items','requires','activeConversation','_handleHistoryErrorUI','3ruXZbY','operation','resizedTabs','remove','_setItemLoading','isOfficialPlugin','getFullYear','795110qQjrOE','AIChatHistoryController','16CAHTBj','plugins','removeItem','_aiConnector','itemId','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','getDate','get','1520MKozQj','chat','error','isPremiumPlugin','getGroupId','AI_CHAT_UNTITLED_CONVERSATION','_showConversationHistory','toLocaleDateString','createdAt','_generateErrorMessage','activateTab','_aiChatController','rename','listenTo','getItem','removeConversation','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','editConversationTitle','pluginName','setIsMaximized','_handleTogglePin','init','showError','373718vSGnMa','itemsLoaded','setLoadingSkeleton','_clearItemLoading','updateItemTitle','updateItemPinned','change:activeConversation','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','activateTab:history','resize','AI_CHAT_HISTORY_PIN_ACTION','AI_CHAT_HISTORY_UNPIN_ACTION','selectConversation','AI_CHAT_HISTORY_CATEGORY_PINNED','2568104okPPez','_aiChatHistoryUi','locale','context','push','loadItems','27333gLbHsN','4397768PMBvmq','AI_CHAT_HISTORY_CATEGORY_TODAY','pinned','AI_CHAT_HISTORY_ERROR_GENERIC','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','setConversationPinned','AI_CHAT_HISTORY_CATEGORY_LATER','removeHistoryItem','updateItemLoadingState','_handleEditTitle','7JSJbTw','loadConversation'];_0x3da6=function(){return _0x5eb7d7;};return _0x3da6();}import{AITabs as _0x3b78bd}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x1a27b2}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x8560f8}from'./model/aichathistoryconversations.js';import{getTranslation as _0x3179f4}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x5b20b8{[_0x17356d(0xdc)];[_0x17356d(0x107)];[_0x17356d(0xec)];static get[_0x17356d(0xcd)](){return[_0x2c275c,_0x454241,_0x1a27b2,_0x3b78bd];}static get[_0x17356d(0xf3)](){const _0x40cdd6=_0x17356d;return _0x40cdd6(0xd8);}static get[_0x17356d(0xd5)](){return!0x0;}static get[_0x17356d(0xe4)](){return!0x0;}[_0x17356d(0xf6)](){const _0x2b3cf1=_0x17356d;this[_0x2b3cf1(0xdc)]=this[_0x2b3cf1(0x109)][_0x2b3cf1(0xda)][_0x2b3cf1(0xe0)](_0x2c275c),this[_0x2b3cf1(0x107)]=this[_0x2b3cf1(0x109)][_0x2b3cf1(0xda)][_0x2b3cf1(0xe0)](_0x1a27b2),this[_0x2b3cf1(0xec)]=this[_0x2b3cf1(0x109)][_0x2b3cf1(0xda)][_0x2b3cf1(0xe0)](_0x454241);const _0x3ef8b5=this[_0x2b3cf1(0x109)][_0x2b3cf1(0xda)][_0x2b3cf1(0xe0)](_0x3b78bd),_0x169a09=this[_0x2b3cf1(0xec)][_0x2b3cf1(0xe5)]();this[_0x2b3cf1(0x123)]=new _0x8560f8({'connector':this[_0x2b3cf1(0xdc)],'group':_0x169a09}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x107)],_0x2b3cf1(0xf0),(_0x45194b,_0x34489c)=>{const _0x4e1cdd=_0x2b3cf1;this[_0x4e1cdd(0xd4)](_0x34489c['id'],_0x4e1cdd(0xd3)),this[_0x4e1cdd(0xca)](_0x34489c['id']);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x107)],_0x2b3cf1(0xf2),(_0x3c856b,_0x4eb491)=>{const _0x4d99ab=_0x2b3cf1;this[_0x4d99ab(0xd4)](_0x4eb491['id'],_0x4d99ab(0xed)),this[_0x4d99ab(0x117)](_0x4eb491['id'],_0x4eb491[_0x4d99ab(0x11e)]);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x123)],_0x2b3cf1(0x128),(_0x2c8187,_0x413a4e)=>{const _0x98b7c7=_0x2b3cf1;void 0x0!==_0x413a4e[_0x98b7c7(0x11b)][_0x98b7c7(0x11e)]&&this[_0x98b7c7(0x107)][_0x98b7c7(0xfc)](_0x413a4e[_0x98b7c7(0xdd)],_0x413a4e[_0x98b7c7(0x11b)][_0x98b7c7(0x11e)]),void 0x0!==_0x413a4e[_0x98b7c7(0x11b)][_0x98b7c7(0x10f)]&&this[_0x98b7c7(0x122)](),this[_0x98b7c7(0xfb)](_0x413a4e[_0x98b7c7(0xdd)]);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x123)],_0x2b3cf1(0x11d),(_0x3b92fe,_0x3ea051)=>{const _0x21503d=_0x2b3cf1;this[_0x21503d(0xec)][_0x21503d(0x126)](_0x3ea051[_0x21503d(0xdd)]),this[_0x21503d(0x107)][_0x21503d(0x115)](_0x3ea051[_0x21503d(0xdd)]),this[_0x21503d(0xfb)](_0x3ea051[_0x21503d(0xdd)]);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x123)],_0x2b3cf1(0xf9),()=>{const _0x4e2b82=_0x2b3cf1;this[_0x4e2b82(0x122)]();}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x123)],_0x2b3cf1(0xe3),(_0x35d087,_0x179d9a)=>{const _0x121299=_0x2b3cf1;this[_0x121299(0xcf)](_0x179d9a[_0x121299(0xe3)],_0x179d9a[_0x121299(0xd1)],_0x179d9a[_0x121299(0xdd)]);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x107)],_0x2b3cf1(0x104),(_0x363769,_0x1c1a86)=>{const _0x224472=_0x2b3cf1;this[_0x224472(0x12a)](_0x1c1a86['id']);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x107)],_0x2b3cf1(0x113),(_0x10571b,_0x17cfa0)=>{const _0x12fbdc=_0x2b3cf1,_0x358a09=_0x17cfa0[_0x12fbdc(0x10f)]?_0x12fbdc(0x12c):_0x12fbdc(0x121);this[_0x12fbdc(0xd4)](_0x17cfa0['id'],_0x358a09),this[_0x12fbdc(0xf5)](_0x17cfa0['id'],_0x17cfa0[_0x12fbdc(0x10f)]);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x107)],_0x2b3cf1(0x125),()=>{const _0x5889da=_0x2b3cf1;_0x3ef8b5[_0x5889da(0x127)][_0x5889da(0xeb)](_0x5889da(0xe2));}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0xec)],_0x2b3cf1(0xfe),()=>{const _0x3f4301=_0x2b3cf1;this[_0x3f4301(0x122)]();}),_0x3ef8b5[_0x2b3cf1(0x127)]['on'](_0x2b3cf1(0x100),()=>{const _0x457fb7=_0x2b3cf1;this[_0x457fb7(0xe7)]();}),this[_0x2b3cf1(0xee)](_0x3ef8b5,_0x2b3cf1(0xd2),(_0x25e590,_0x47bdb6)=>{const _0x1d36a0=_0x2b3cf1;this[_0x1d36a0(0x120)](_0x47bdb6);}),this[_0x2b3cf1(0xee)](this[_0x2b3cf1(0x107)],_0x2b3cf1(0xc8),()=>{const _0x56bc2f=_0x2b3cf1;_0x3ef8b5[_0x56bc2f(0x101)]();});}async[_0x17356d(0x117)](_0x396608,_0x15d40b){const _0x44f7f2=_0x17356d;await this[_0x44f7f2(0x123)][_0x44f7f2(0xfc)](_0x396608,_0x15d40b);}async[_0x17356d(0xf5)](_0x2b3a75,_0x591f4e){const _0x2cbd7f=_0x17356d;await this[_0x2cbd7f(0x123)][_0x2cbd7f(0xfd)](_0x2b3a75,_0x591f4e);}async[_0x17356d(0xca)](_0x501f67){const _0x5db8d5=_0x17356d;await this[_0x5db8d5(0x123)][_0x5db8d5(0xdb)](_0x501f67);}async[_0x17356d(0x12a)](_0x5d6338){const _0x23fc06=_0x17356d;await this[_0x23fc06(0xec)][_0x23fc06(0x119)](_0x5d6338);}async[_0x17356d(0xe7)](){const _0x389f8c=_0x17356d;this[_0x389f8c(0x107)][_0x389f8c(0xf7)](''),this[_0x389f8c(0x107)][_0x389f8c(0xfa)](!0x0),await this[_0x389f8c(0x123)][_0x389f8c(0xf6)](),this[_0x389f8c(0x107)][_0x389f8c(0xfa)](!0x1);}[_0x17356d(0x122)](){const _0x14748d=_0x17356d,_0x331453=this[_0x14748d(0xec)][_0x14748d(0xce)]?.['id'],_0x2c3813=this[_0x14748d(0xc9)]()[_0x14748d(0xcb)](_0x5c0de0=>({'title':_0x5c0de0[_0x14748d(0x11e)],'items':_0x5c0de0[_0x14748d(0xcc)][_0x14748d(0xcb)](_0x5ae0ab=>({'id':_0x5ae0ab['id'],'title':_0x5ae0ab[_0x14748d(0x11e)]||_0x3179f4(this[_0x14748d(0x109)][_0x14748d(0x108)],_0x14748d(0xe6)),'createdAt':new Date(_0x5ae0ab[_0x14748d(0xe9)])[_0x14748d(0xe8)](),'active':_0x5ae0ab['id']===_0x331453,'pinned':_0x5ae0ab[_0x14748d(0x10f)]}))}));this[_0x14748d(0x107)][_0x14748d(0x12e)](_0x2c3813);}[_0x17356d(0xd4)](_0x2579cf,_0x4d08ab){const _0x2c4b39=_0x17356d;this[_0x2c4b39(0x107)][_0x2c4b39(0x116)](_0x2579cf,_0x4d08ab,!0x0);}[_0x17356d(0xfb)](_0x534abf){const _0x17b055=_0x17356d;this[_0x17b055(0x107)][_0x17b055(0x116)](_0x534abf,null,!0x1);}[_0x17356d(0xcf)](_0x28b8d6,_0x5bfd7d,_0x5968cf){const _0x1f527c=_0x17356d,_0x11088b=this[_0x1f527c(0xea)](_0x5bfd7d,_0x5968cf);this[_0x1f527c(0x107)][_0x1f527c(0xf7)](_0x11088b),_0x5968cf&&this[_0x1f527c(0xfb)](_0x5968cf),this[_0x1f527c(0x107)][_0x1f527c(0xfa)](!0x1);}[_0x17356d(0xea)](_0x970120,_0x5a57c4){const _0x3d5080=_0x17356d,_0x3f455b=_0x5a57c4?this[_0x3d5080(0x123)][_0x3d5080(0xef)](_0x5a57c4):null,_0x4e6db0=_0x3f455b?.[_0x3d5080(0x11e)]||_0x3179f4(this[_0x3d5080(0x109)][_0x3d5080(0x108)],_0x3d5080(0xe6));switch(_0x970120){case _0x3d5080(0xfc):return _0x3179f4(this[_0x3d5080(0x109)][_0x3d5080(0x108)],_0x3d5080(0x111),_0x4e6db0);case _0x3d5080(0xfd):{const _0x5f3989=_0x3179f4(this[_0x3d5080(0x109)][_0x3d5080(0x108)],_0x3f455b?.[_0x3d5080(0x10f)]?_0x3d5080(0x103):_0x3d5080(0x102));return _0x3179f4(this[_0x3d5080(0x109)][_0x3d5080(0x108)],_0x3d5080(0xf1),[_0x5f3989,_0x4e6db0]);}case _0x3d5080(0xdb):return _0x3179f4(this[_0x3d5080(0x109)][_0x3d5080(0x108)],_0x3d5080(0xff),_0x4e6db0);case _0x3d5080(0xf6):case _0x3d5080(0x10b):return _0x3179f4(this[_0x3d5080(0x109)][_0x3d5080(0x108)],_0x3d5080(0x112));default:return _0x3179f4(this[_0x3d5080(0x109)][_0x3d5080(0x108)],_0x3d5080(0x110));}}[_0x17356d(0xc9)](){const _0x53397f=_0x17356d,_0x2172c7=new Date(),_0x12fb68=new Date(_0x2172c7[_0x53397f(0xd6)](),_0x2172c7[_0x53397f(0x11c)](),_0x2172c7[_0x53397f(0xdf)]()),_0x10bd0d=new Date(_0x12fb68);_0x10bd0d[_0x53397f(0x124)](_0x10bd0d[_0x53397f(0xdf)]()-0x1);const _0x1581ff=new Date(_0x12fb68);_0x1581ff[_0x53397f(0x124)](_0x1581ff[_0x53397f(0xdf)]()-0xe);const _0x3e5506=this[_0x53397f(0x123)][_0x53397f(0x129)]({'pinned':!0x0}),_0x1ed39b=this[_0x53397f(0x123)][_0x53397f(0x129)]({'from':_0x12fb68,'to':_0x12fb68}),_0x4d7288=this[_0x53397f(0x123)][_0x53397f(0x129)]({'from':_0x10bd0d,'to':_0x10bd0d}),_0x426183=this[_0x53397f(0x123)][_0x53397f(0x129)]({'from':_0x1581ff,'to':_0x10bd0d}),_0x213c0a=this[_0x53397f(0x123)][_0x53397f(0x129)]({'to':_0x1581ff}),_0x382d60=[];return _0x3e5506[_0x53397f(0x11f)]>0x0&&_0x382d60[_0x53397f(0x10a)]({'title':_0x3179f4(this[_0x53397f(0x109)][_0x53397f(0x108)],_0x53397f(0x105)),'items':_0x3e5506}),_0x1ed39b[_0x53397f(0x11f)]>0x0&&_0x382d60[_0x53397f(0x10a)]({'title':_0x3179f4(this[_0x53397f(0x109)][_0x53397f(0x108)],_0x53397f(0x10e)),'items':_0x1ed39b}),_0x4d7288[_0x53397f(0x11f)]>0x0&&_0x382d60[_0x53397f(0x10a)]({'title':_0x3179f4(this[_0x53397f(0x109)][_0x53397f(0x108)],_0x53397f(0xde)),'items':_0x4d7288}),_0x426183[_0x53397f(0x11f)]>0x0&&_0x382d60[_0x53397f(0x10a)]({'title':_0x3179f4(this[_0x53397f(0x109)][_0x53397f(0x108)],_0x53397f(0x11a)),'items':_0x426183}),_0x213c0a[_0x53397f(0x11f)]>0x0&&_0x382d60[_0x53397f(0x10a)]({'title':_0x3179f4(this[_0x53397f(0x109)][_0x53397f(0x108)],_0x53397f(0x114)),'items':_0x213c0a}),_0x382d60;}[_0x17356d(0x120)](_0x51853c){const _0x4d3224=_0x17356d;this[_0x4d3224(0x107)][_0x4d3224(0xf4)](_0x51853c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13980d=_0x4dfd;(function(_0xcf679e,_0x2dbc6b){const _0x94365f=_0x4dfd,_0x4160d9=_0xcf679e();while(!![]){try{const _0x444dfa=parseInt(_0x94365f(0xf0))/0x1+parseInt(_0x94365f(0xf9))/0x2+parseInt(_0x94365f(0xfd))/0x3+parseInt(_0x94365f(0xeb))/0x4*(parseInt(_0x94365f(0x107))/0x5)+-parseInt(_0x94365f(0xe9))/0x6+-parseInt(_0x94365f(0xf1))/0x7*(-parseInt(_0x94365f(0xed))/0x8)+-parseInt(_0x94365f(0xe5))/0x9;if(_0x444dfa===_0x2dbc6b)break;else _0x4160d9['push'](_0x4160d9['shift']());}catch(_0x214c59){_0x4160d9['push'](_0x4160d9['shift']());}}}(_0x39b6,0x7fed1));import{ContextPlugin as _0x5f4138}from'ckeditor5/src/core.js';import{AITabs as _0x45fa35}from'../aitabs/aitabs.js';function _0x39b6(){const _0x5e6213=['updateItemTitle','selectConversation','setIsMaximized','13761900NCvfYo','isMaximized','removeConversation','locale','2103582vWMHeF','context','674404BZYceq','setLoadingSkeleton','16TGPDRv','history','showResizeButton','558235YgmgQd','1800582YRgIVi','errorMessage','removeHistoryItem','AITabs','_historyView','setConversationPinned','editConversationTitle','pluginName','544038ujsykN','isPremiumPlugin','addTab','resizeTabs','2671125FuGvea','plugins','showError','isOfficialPlugin','updateItemLoadingState','hideError','get','AI_CHAT_HISTORY_HEADING','view','showConversationHistory','5OjuUUM','updateHistoryItemsWithCategories','AIChatHistoryUI','isLoading','updateItems','requires','openChat','delegate'];_0x39b6=function(){return _0x5e6213;};return _0x39b6();}import{IconAIHistory as _0x409846}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0xf6f742}from'./ui/aichathistoryview.js';import{getTranslation as _0x3b44e6}from'../aicore/utils/common-translations.js';function _0x4dfd(_0x4d2c02,_0x57368f){const _0x39b63f=_0x39b6();return _0x4dfd=function(_0x4dfdfe,_0x1a235b){_0x4dfdfe=_0x4dfdfe-0xdd;let _0x2b39e0=_0x39b63f[_0x4dfdfe];return _0x2b39e0;},_0x4dfd(_0x4d2c02,_0x57368f);}import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x13980d(0x106),_0x13980d(0xe7),_0x13980d(0xf7),_0x13980d(0xf6),_0x13980d(0xe3),_0x13980d(0xe0),_0x13980d(0xfc)];export class AIChatHistoryUI extends _0x5f4138{static get[_0x13980d(0xdf)](){return[_0x45fa35];}[_0x13980d(0xf5)];static get[_0x13980d(0xf8)](){const _0x3eca9c=_0x13980d;return _0x3eca9c(0x109);}static get[_0x13980d(0x100)](){return!0x0;}static get[_0x13980d(0xfa)](){return!0x0;}constructor(_0x39020d){const _0x48dfb9=_0x13980d;super(_0x39020d);const _0x3756d4=this[_0x48dfb9(0xea)][_0x48dfb9(0xfe)][_0x48dfb9(0x103)](_0x48dfb9(0xf4));this[_0x48dfb9(0xf5)]=new _0xf6f742(this[_0x48dfb9(0xea)][_0x48dfb9(0xe8)],_0x3756d4[_0x48dfb9(0xef)]),this[_0x48dfb9(0xf5)][_0x48dfb9(0xe1)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x3756d4[_0x48dfb9(0x105)][_0x48dfb9(0xfb)]({'id':_0x48dfb9(0xee),'buttonLabel':_0x3b44e6(this[_0x48dfb9(0xea)][_0x48dfb9(0xe8)],_0x48dfb9(0x104)),'buttonIcon':_0x409846,'order':0x0,'content':this[_0x48dfb9(0xf5)]});}[_0x13980d(0xf3)](_0x5b7f8){const _0x5accef=_0x13980d;this[_0x5accef(0xf5)][_0x5accef(0xf3)](_0x5b7f8);}[_0x13980d(0xde)](_0x4f8f3c){const _0x32690a=_0x13980d;this[_0x32690a(0xf5)][_0x32690a(0x108)](_0x4f8f3c);}[_0x13980d(0xe2)](_0x39e3c7,_0x364a55){const _0x551457=_0x13980d;this[_0x551457(0xf5)][_0x551457(0xe2)](_0x39e3c7,_0x364a55);}[_0x13980d(0x101)](_0x50cc48,_0x12eaf3,_0x1aa083){const _0x3b4cc9=_0x13980d;this[_0x3b4cc9(0xf5)][_0x3b4cc9(0x101)](_0x50cc48,_0x12eaf3,_0x1aa083);}[_0x13980d(0xec)](_0x25dc26){const _0x142cc2=_0x13980d;this[_0x142cc2(0xf5)][_0x142cc2(0xdd)]=_0x25dc26;}[_0x13980d(0xff)](_0x2cca27){const _0x56a08d=_0x13980d;this[_0x56a08d(0xf5)][_0x56a08d(0xf2)]=_0x2cca27;}[_0x13980d(0x102)](){const _0x5b2240=_0x13980d;this[_0x5b2240(0xf5)][_0x5b2240(0xf2)]='';}[_0x13980d(0xe4)](_0x399f6b){const _0x3d95b6=_0x13980d;this[_0x3d95b6(0xf5)][_0x3d95b6(0xe6)]=_0x399f6b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x5b3d91=_0x21d7;function _0x21d7(_0x1abe4d,_0x308bf9){const _0x157bf8=_0x157b();return _0x21d7=function(_0x21d76b,_0x5f38ee){_0x21d76b=_0x21d76b-0x135;let _0xbcb940=_0x157bf8[_0x21d76b];return _0xbcb940;},_0x21d7(_0x1abe4d,_0x308bf9);}(function(_0x256f34,_0x4481bc){const _0x39867c=_0x21d7,_0x64d53a=_0x256f34();while(!![]){try{const _0x550c82=parseInt(_0x39867c(0x150))/0x1*(parseInt(_0x39867c(0x160))/0x2)+-parseInt(_0x39867c(0x149))/0x3+-parseInt(_0x39867c(0x146))/0x4*(parseInt(_0x39867c(0x163))/0x5)+parseInt(_0x39867c(0x13c))/0x6+parseInt(_0x39867c(0x152))/0x7*(-parseInt(_0x39867c(0x151))/0x8)+-parseInt(_0x39867c(0x13a))/0x9+parseInt(_0x39867c(0x13f))/0xa;if(_0x550c82===_0x4481bc)break;else _0x64d53a['push'](_0x64d53a['shift']());}catch(_0xa1da90){_0x64d53a['push'](_0x64d53a['shift']());}}}(_0x157b,0x8dba1));import{EmitterMixin as _0x4cd09d}from'ckeditor5/src/utils.js';function _0x157b(){const _0x4c8bfa=['find','1018308PgBpeO','removeItem','createdAt','2405364MdKzQE','updateConversation','updatePinned','itemUpdated','pinned','getResult','execute','127IXHFLz','48JxAySP','125678GJQvjt','addItem','filter','splice','updateTitle','itemsLoaded','connector','fire','from','map','itemRemoved','getFullYear','fetchConversations','getConversations','4820lGTddo','updateItemTitle','error','15BAoPlD','items','getItems','group','getTime','init','6851808aHQuvu','findIndex','2566134yRyjag','getDate','updateItemPinned','22813090sAfJUn','getItem','loadItems','push','getMonth','deleteConversation'];_0x157b=function(){return _0x4c8bfa;};return _0x157b();}import{AIChatHistoryItem as _0xc6446e}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x4cd09d(){[_0x5b3d91(0x135)]=[];[_0x5b3d91(0x158)];[_0x5b3d91(0x137)];constructor({connector:_0x38125e,group:_0xf6946e}){const _0x5e786c=_0x5b3d91;super(),this[_0x5e786c(0x158)]=_0x38125e,this[_0x5e786c(0x137)]=_0xf6946e;}async[_0x5b3d91(0x139)](){const _0x15a059=_0x5b3d91;try{const _0xb8cbef=this[_0x15a059(0x158)][_0x15a059(0x15e)](this[_0x15a059(0x137)]),_0x552172=await _0xb8cbef[_0x15a059(0x15f)]();this[_0x15a059(0x141)](_0x552172);}catch(_0x447bd8){this[_0x15a059(0x159)](_0x15a059(0x162),{'error':_0x447bd8,'operation':_0x15a059(0x139)});}}[_0x5b3d91(0x153)](_0x519f71){const _0x36166d=_0x5b3d91;this[_0x36166d(0x135)][_0x36166d(0x142)](_0x519f71);}async[_0x5b3d91(0x147)](_0x59955b){const _0x51c1bc=_0x5b3d91,_0x4ca93b=this[_0x51c1bc(0x135)][_0x51c1bc(0x13b)](_0x2c3a9f=>_0x2c3a9f['id']===_0x59955b);if(-0x1===_0x4ca93b)return!0x1;try{return await this[_0x51c1bc(0x158)][_0x51c1bc(0x144)](_0x59955b)[_0x51c1bc(0x14f)](),this[_0x51c1bc(0x135)][_0x51c1bc(0x155)](_0x4ca93b,0x1),this[_0x51c1bc(0x159)](_0x51c1bc(0x15c),{'itemId':_0x59955b}),!0x0;}catch(_0x7f405f){return this[_0x51c1bc(0x159)](_0x51c1bc(0x162),{'error':_0x7f405f,'operation':_0x51c1bc(0x147),'itemId':_0x59955b}),!0x1;}}[_0x5b3d91(0x140)](_0x52e1cd){const _0x5f0b48=_0x5b3d91;return this[_0x5f0b48(0x135)][_0x5f0b48(0x145)](_0x4a1313=>_0x4a1313['id']===_0x52e1cd);}async[_0x5b3d91(0x161)](_0x33f0d0,_0x3e1166){const _0xd5a78f=_0x5b3d91,_0x3b5a23=this[_0xd5a78f(0x140)](_0x33f0d0);if(!_0x3b5a23)return!0x1;try{return await this[_0xd5a78f(0x158)][_0xd5a78f(0x14a)](_0x33f0d0,{'title':_0x3e1166})[_0xd5a78f(0x14e)](),_0x3b5a23[_0xd5a78f(0x156)](_0x3e1166),this[_0xd5a78f(0x159)](_0xd5a78f(0x14c),{'itemId':_0x33f0d0,'updates':{'title':_0x3e1166}}),!0x0;}catch(_0x12bde8){return this[_0xd5a78f(0x159)](_0xd5a78f(0x162),{'error':_0x12bde8,'operation':_0xd5a78f(0x161),'itemId':_0x33f0d0}),!0x1;}}async[_0x5b3d91(0x13e)](_0x10867e,_0x324cdd){const _0x5e84b9=_0x5b3d91,_0x932a99=this[_0x5e84b9(0x140)](_0x10867e);if(!_0x932a99)return!0x1;try{return await this[_0x5e84b9(0x158)][_0x5e84b9(0x14a)](_0x10867e,{'pinned':_0x324cdd})[_0x5e84b9(0x14e)](),_0x932a99[_0x5e84b9(0x14b)](_0x324cdd),this[_0x5e84b9(0x159)](_0x5e84b9(0x14c),{'itemId':_0x10867e,'updates':{'pinned':_0x324cdd}}),!0x0;}catch(_0x482ad5){return this[_0x5e84b9(0x159)](_0x5e84b9(0x162),{'error':_0x482ad5,'operation':_0x5e84b9(0x13e),'itemId':_0x10867e}),!0x1;}}[_0x5b3d91(0x141)](_0x168ed4){const _0x303643=_0x5b3d91;try{this[_0x303643(0x135)]=[],_0x168ed4[_0x303643(0x15b)](_0x52ba49=>{const _0x3b87d1=_0x303643;this[_0x3b87d1(0x153)](new _0xc6446e(_0x52ba49));}),this[_0x303643(0x159)](_0x303643(0x157),{'items':[...this[_0x303643(0x135)]]});}catch(_0x32f3cf){this[_0x303643(0x159)](_0x303643(0x162),{'error':_0x32f3cf,'operation':_0x303643(0x141)});}}[_0x5b3d91(0x136)](_0x3d5c62={}){const _0x2cbdf7=_0x5b3d91,_0x235541=void 0x0!==_0x3d5c62[_0x2cbdf7(0x14d)]&&_0x3d5c62[_0x2cbdf7(0x14d)],_0x500aa3=_0x3d5c62[_0x2cbdf7(0x15a)]?new Date(_0x3d5c62[_0x2cbdf7(0x15a)][_0x2cbdf7(0x15d)](),_0x3d5c62[_0x2cbdf7(0x15a)][_0x2cbdf7(0x143)](),_0x3d5c62[_0x2cbdf7(0x15a)][_0x2cbdf7(0x13d)]()):null,_0xbed5d9=_0x3d5c62['to']?new Date(_0x3d5c62['to'][_0x2cbdf7(0x15d)](),_0x3d5c62['to'][_0x2cbdf7(0x143)](),_0x3d5c62['to'][_0x2cbdf7(0x13d)]()):null;return this[_0x2cbdf7(0x135)][_0x2cbdf7(0x154)](_0xe20c08=>{const _0x1694ff=_0x2cbdf7;if(_0xe20c08[_0x1694ff(0x14d)]!==_0x235541)return!0x1;if(_0xbed5d9){const _0x55b862=new Date(_0xe20c08[_0x1694ff(0x148)][_0x1694ff(0x15d)](),_0xe20c08[_0x1694ff(0x148)][_0x1694ff(0x143)](),_0xe20c08[_0x1694ff(0x148)][_0x1694ff(0x13d)]());return _0x500aa3?_0x500aa3[_0x1694ff(0x138)]()===_0xbed5d9[_0x1694ff(0x138)]()?_0x55b862[_0x1694ff(0x138)]()===_0x500aa3[_0x1694ff(0x138)]():_0x55b862<_0xbed5d9&&_0x55b862>=_0x500aa3:_0x55b862<_0xbed5d9;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x11e3a8=_0x147d;function _0x5871(){var _0x52ca16=['30RmpzMD','1005552WLUDvN','updatedAt','4264BVDqaU','pinned','1949712WTdMyc','4941LMiWfL','908BSDvys','set','updatePinned','updateTitle','2314411ohemcx','2847305JYcDrY','title','262KxTbeJ','createdAt','3265010tbesUh','3JZbxMH'];_0x5871=function(){return _0x52ca16;};return _0x5871();}function _0x147d(_0x554b2c,_0x9a021c){var _0x5871e6=_0x5871();return _0x147d=function(_0x147df8,_0x168549){_0x147df8=_0x147df8-0xcb;var _0x426330=_0x5871e6[_0x147df8];return _0x426330;},_0x147d(_0x554b2c,_0x9a021c);}(function(_0x3d897e,_0xa41959){var _0x370048=_0x147d,_0x185dd0=_0x3d897e();while(!![]){try{var _0x5825c1=parseInt(_0x370048(0xce))/0x1*(parseInt(_0x370048(0xd5))/0x2)+parseInt(_0x370048(0xd8))/0x3*(-parseInt(_0x370048(0xda))/0x4)+parseInt(_0x370048(0xd3))/0x5+parseInt(_0x370048(0xcc))/0x6+parseInt(_0x370048(0xd7))/0x7+parseInt(_0x370048(0xdc))/0x8*(-parseInt(_0x370048(0xcd))/0x9)+parseInt(_0x370048(0xd9))/0xa*(-parseInt(_0x370048(0xd2))/0xb);if(_0x5825c1===_0xa41959)break;else _0x185dd0['push'](_0x185dd0['shift']());}catch(_0x249eec){_0x185dd0['push'](_0x185dd0['shift']());}}}(_0x5871,0x4a5c7));import{ObservableMixin as _0x5e3f8f}from'ckeditor5/src/utils.js';import{escape as _0x215386}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x5e3f8f(){['id'];[_0x11e3a8(0xd6)];constructor({id:_0x1eeb0d,title:_0x5a2bf9,createdAt:_0x4d4caa,updatedAt:_0x4a93e9,pinned:_0x215550}){var _0x41ce67=_0x11e3a8;super(),this['id']=_0x1eeb0d,this[_0x41ce67(0xd6)]=new Date(_0x4d4caa),this[_0x41ce67(0xcf)](_0x41ce67(0xd4),_0x5a2bf9),this[_0x41ce67(0xcf)](_0x41ce67(0xdb),_0x4a93e9?new Date(_0x4a93e9):null),this[_0x41ce67(0xcf)](_0x41ce67(0xcb),_0x215550||!0x1);}[_0x11e3a8(0xd1)](_0x589571){var _0x55ef5e=_0x11e3a8;this[_0x55ef5e(0xcf)](_0x55ef5e(0xd4),_0x215386(_0x589571)),this[_0x55ef5e(0xdb)]=new Date();}[_0x11e3a8(0xd0)](_0x549fef){var _0x7e0145=_0x11e3a8;this[_0x7e0145(0xcf)](_0x7e0145(0xcb),_0x549fef),this[_0x7e0145(0xdb)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x457136=_0x3ab4;function _0x3ab4(_0x2b3a92,_0x127dd2){const _0x39727f=_0x3972();return _0x3ab4=function(_0x3ab4ea,_0x153565){_0x3ab4ea=_0x3ab4ea-0x1eb;let _0x4575bf=_0x39727f[_0x3ab4ea];return _0x4575bf;},_0x3ab4(_0x2b3a92,_0x127dd2);}(function(_0x282c1a,_0x506f6b){const _0x1a70d3=_0x3ab4,_0x49c0c3=_0x282c1a();while(!![]){try{const _0x361a55=parseInt(_0x1a70d3(0x22f))/0x1+-parseInt(_0x1a70d3(0x24d))/0x2+parseInt(_0x1a70d3(0x230))/0x3*(parseInt(_0x1a70d3(0x245))/0x4)+-parseInt(_0x1a70d3(0x1ef))/0x5*(-parseInt(_0x1a70d3(0x220))/0x6)+parseInt(_0x1a70d3(0x219))/0x7+-parseInt(_0x1a70d3(0x204))/0x8*(parseInt(_0x1a70d3(0x1f8))/0x9)+-parseInt(_0x1a70d3(0x212))/0xa*(parseInt(_0x1a70d3(0x227))/0xb);if(_0x361a55===_0x506f6b)break;else _0x49c0c3['push'](_0x49c0c3['shift']());}catch(_0x3353bb){_0x49c0c3['push'](_0x49c0c3['shift']());}}}(_0x3972,0x527c0));import{ListItemView as _0x1b89fb,HighlightedTextView as _0x6c90ad,ButtonView as _0x36159f,ListView as _0x2633fe,IconView as _0x2dfd38,createDropdown as _0x57ba33,InputTextView as _0x33ec34}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x3e7f45,IconPin as _0x17ad3c,IconCheck as _0x38aa38,IconCancel as _0x38bbcb}from'ckeditor5/src/icons.js';function _0x3972(){const _0x14c9b2=['AI_CHAT_HISTORY_ACCEPT','withText','ck-ai-chat-history__item-row','2813sIRIwQ','3kzbSHP','ck-ai-loader__text','panelPosition','children','AI_CHAT_HISTORY_CANCEL','_createMenuDropdownView','click','locale','actions','removeConversation','Enter','set','div','then','ck-hidden','setConversationPinned','change:isEdit','ck-ai-chat-history__item--active','addMany','add','selectConversation','1606500ARLXfR','highlightText','updateTitle','focus','editConversationTitle','ck-ai-chat-history__item-content','ck-ai-chat-history__item--edit','isEdit','901258RFYPUd','ck-ai-chat-history__item-date','element','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','mainContent','5vOyNXm','_titleView','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-loader','tiny','extendTemplate','loadingState','isOn','label','333HTQUoH','items','AI_CHAT_HISTORY_LOADING_REMOVING','createCollection','AI_CHAT_HISTORY_EDIT_NAME','buttonView','bind','fire','ck-confirm-view-cancel','listitem','AI_CHAT_HISTORY_PIN_BUTTON','AI_CHAT_HISTORY_LOADING_RENAMING','12032MzDTix','LOADING_LABELS','bindTemplate','_commitEditInputValue','clear','ck-ai-chat-history__item-actions','isVisible','ck-ai-chat-history__item-check','showConfirm','match','AI_CHAT_HISTORY_LOADING_UNPINNING','ck-ai-chat-history__item-title','_createEditInputView','_createCheckView','412010IOfWoq','string','span','ck-ai-chat-history__item-check-container','edit:cancel','_createCancelEditButtonView','AI_CHAT_HISTORY_REMOVE','4488365VjmlWq','panelView','key','_createSpinnerView','ck-ai-chat-history__item','_createPinButtonView','ck-ai-chat-history__item-main-content','3982326QbUPIc','updateLoadingState','pinned','execute','AI_CHAT_HISTORY_LOADING_PINNING','_createAcceptEditButtonView','ck-confirm-view-submit','231gtzFeL','text','setTemplate','value','isMatching'];_0x3972=function(){return _0x14c9b2;};return _0x3972();}import{LateFocusDropdownButtonView as _0x581a14,ConfirmMixin as _0x1448b5}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x150eaf}from'es-toolkit/compat';import{AISpinnerView as _0x3a584e}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x335e4f}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1448b5(_0x1b89fb){['id'];static [_0x457136(0x205)]={'remove':_0x457136(0x1fa),'rename':_0x457136(0x203),'pin':_0x457136(0x224),'unpin':_0x457136(0x20e)};[_0x457136(0x238)];[_0x457136(0x1ee)];[_0x457136(0x1f0)];constructor(_0x4d7846,_0x599e42){const _0x2f4346=_0x457136;super(_0x4d7846);const _0x124998=this[_0x2f4346(0x206)];this[_0x2f4346(0x23b)](_0x2f4346(0x24c),!0x1),this[_0x2f4346(0x23b)](_0x2f4346(0x20a),!0x0),this[_0x2f4346(0x23b)](_0x2f4346(0x222),!!_0x599e42[_0x2f4346(0x222)]),this[_0x2f4346(0x23b)](_0x2f4346(0x1f5),null),this['id']=_0x599e42['id'];const {title:_0x4dbda,createdAt:_0x5bffef,active:_0x5b9728=!0x1}=_0x599e42;this[_0x2f4346(0x1f0)]=new _0x6c90ad(),this[_0x2f4346(0x1f0)][_0x2f4346(0x228)]=_0x4dbda,this[_0x2f4346(0x1f0)][_0x2f4346(0x1f4)]({'attributes':{'class':[_0x2f4346(0x20f)]}});const _0x3c42a2=this[_0x2f4346(0x211)](),_0x503bab=this[_0x2f4346(0x21e)](_0x4d7846),_0x26efaf=this[_0x2f4346(0x235)](),_0x286c13=this[_0x2f4346(0x210)](_0x4d7846,_0x4dbda),_0x2033b0=this[_0x2f4346(0x225)](_0x4d7846,_0x286c13),_0xe40350=this[_0x2f4346(0x217)](_0x4d7846,_0x286c13);this[_0x2f4346(0x238)]=this[_0x2f4346(0x1fb)](),this[_0x2f4346(0x1ee)]=this[_0x2f4346(0x1fb)](),this[_0x2f4346(0x1ee)][_0x2f4346(0x243)](this[_0x2f4346(0x1f0)]),this[_0x2f4346(0x238)][_0x2f4346(0x243)](_0x503bab),this[_0x2f4346(0x238)][_0x2f4346(0x243)](_0x26efaf),this['on'](_0x2f4346(0x240),(_0x541f36,_0x2c7705,_0x5cf0e9)=>{const _0x38ecf2=_0x2f4346;this[_0x38ecf2(0x238)][_0x38ecf2(0x208)](),this[_0x38ecf2(0x1ee)][_0x38ecf2(0x208)](),_0x5cf0e9?(this[_0x38ecf2(0x238)][_0x38ecf2(0x243)](_0x2033b0),this[_0x38ecf2(0x238)][_0x38ecf2(0x243)](_0xe40350),this[_0x38ecf2(0x1ee)][_0x38ecf2(0x243)](_0x286c13),_0x286c13[_0x38ecf2(0x1ec)][_0x38ecf2(0x248)]()):(this[_0x38ecf2(0x238)][_0x38ecf2(0x243)](_0x503bab),this[_0x38ecf2(0x238)][_0x38ecf2(0x243)](_0x26efaf),this[_0x38ecf2(0x1ee)][_0x38ecf2(0x243)](this[_0x38ecf2(0x1f0)]));}),this[_0x2f4346(0x229)]({'tag':'li','attributes':{'class':[_0x2f4346(0x21d),_0x5b9728?_0x2f4346(0x241):'',_0x124998['if'](_0x2f4346(0x20a),_0x2f4346(0x23e),_0x2a8fc9=>!_0x2a8fc9),_0x124998['if'](_0x2f4346(0x24c),_0x2f4346(0x24b))],'role':_0x2f4346(0x201)},'children':[{'tag':_0x2f4346(0x214),'attributes':{'class':[_0x2f4346(0x215)]},'children':[{'tag':_0x2f4346(0x23c),'attributes':{'class':[_0x2f4346(0x20b),_0x124998['if'](_0x2f4346(0x1f5),_0x2f4346(0x23e),_0x59d552=>!!_0x59d552)]},'children':_0x5b9728?[_0x3c42a2]:[]},{'tag':_0x2f4346(0x23c),'attributes':{'class':[_0x2f4346(0x1f2),_0x124998['if'](_0x2f4346(0x1f5),_0x2f4346(0x23e),_0x50b656=>!_0x50b656)]},'children':[this[_0x2f4346(0x21c)]()]}]},{'tag':_0x2f4346(0x23c),'attributes':{'class':[_0x2f4346(0x22e)]},'children':[{'tag':_0x2f4346(0x23c),'attributes':{'class':[_0x2f4346(0x24a)]},'on':{'click':this[_0x2f4346(0x206)]['to'](_0x2f4346(0x236))},'children':[{'tag':_0x2f4346(0x23c),'attributes':{'class':[_0x2f4346(0x21f)]},'children':[{'tag':_0x2f4346(0x23c),'attributes':{'class':[_0x2f4346(0x20f),_0x124998['if'](_0x2f4346(0x1f5),_0x2f4346(0x23e),_0x1aee20=>!!_0x1aee20)]},'children':this[_0x2f4346(0x1ee)]},{'tag':_0x2f4346(0x23c),'attributes':{'class':[_0x2f4346(0x231),_0x124998['if'](_0x2f4346(0x1f5),_0x2f4346(0x23e),_0x44e46c=>!_0x44e46c)]},'children':[{'text':_0x124998['to'](_0x2f4346(0x1f5),_0x1931a0=>_0x1931a0?_0x335e4f(this[_0x2f4346(0x237)],AIChatHistoryListItemView[_0x2f4346(0x205)][_0x1931a0]):'')}]}]},{'tag':_0x2f4346(0x214),'attributes':{'class':[_0x2f4346(0x1eb)]},'children':[_0x5bffef]}]},{'tag':_0x2f4346(0x23c),'attributes':{'class':[_0x2f4346(0x209)]},'children':this[_0x2f4346(0x238)]}]}]}),this['on'](_0x2f4346(0x236),()=>{const _0x7c5df0=_0x2f4346;this[_0x7c5df0(0x24c)]||this[_0x7c5df0(0x1ff)](_0x7c5df0(0x244),{'id':this['id']});});}[_0x457136(0x247)](_0x13660b){const _0x51466c=_0x457136;this[_0x51466c(0x1f0)][_0x51466c(0x228)]=_0x150eaf(_0x13660b);}[_0x457136(0x221)](_0x16c52c,_0x4515f6){const _0x39cab2=_0x457136;this[_0x39cab2(0x23b)](_0x39cab2(0x1f5),_0x4515f6?_0x16c52c:null);}[_0x457136(0x211)](){const _0x1c0ec5=_0x457136,_0xc50189=new _0x2dfd38();return _0xc50189[_0x1c0ec5(0x23b)]({'content':_0x38aa38}),_0xc50189;}[_0x457136(0x21e)](_0x47522b){const _0xab3543=_0x457136,_0x5f3a4d=new _0x36159f(_0x47522b);return _0x5f3a4d[_0xab3543(0x23b)]({'label':_0x335e4f(_0x47522b,_0xab3543(0x202)),'icon':_0x17ad3c,'withText':!0x1,'tooltip':!0x0}),_0x5f3a4d[_0xab3543(0x1fe)](_0xab3543(0x1f6))['to'](this,_0xab3543(0x222)),_0x5f3a4d['on'](_0xab3543(0x223),()=>{const _0x49fe02=_0xab3543,_0x19d1c1=!this[_0x49fe02(0x222)];this[_0x49fe02(0x1ff)](_0x49fe02(0x23f),{'id':this['id'],'pinned':_0x19d1c1});}),_0x5f3a4d;}[_0x457136(0x235)](){const _0x35c38d=_0x457136,_0x55f9d6=_0x57ba33(this[_0x35c38d(0x237)],_0x581a14),_0x547a90=_0x55f9d6[_0x35c38d(0x21a)][_0x35c38d(0x233)];_0x55f9d6[_0x35c38d(0x1fd)][_0x35c38d(0x23b)]({'label':_0x335e4f(this[_0x35c38d(0x237)],_0x35c38d(0x1ed)),'icon':_0x3e7f45}),_0x55f9d6[_0x35c38d(0x232)]='sw';const _0x5bb007=new _0x36159f(this[_0x35c38d(0x237)]);_0x5bb007[_0x35c38d(0x1f7)]=_0x335e4f(this[_0x35c38d(0x237)],_0x35c38d(0x1fc)),_0x5bb007[_0x35c38d(0x22d)]=!0x0,_0x5bb007['on'](_0x35c38d(0x223),()=>{const _0x2c648d=_0x35c38d;this[_0x2c648d(0x24c)]=!0x0;});const _0x5d927b=new _0x36159f(this[_0x35c38d(0x237)]);_0x5d927b[_0x35c38d(0x1f7)]=_0x335e4f(this[_0x35c38d(0x237)],_0x35c38d(0x218)),_0x5d927b[_0x35c38d(0x22d)]=!0x0,_0x5d927b['on'](_0x35c38d(0x223),()=>{const _0x27ca4f=_0x35c38d;this[_0x27ca4f(0x20c)](_0x335e4f(this[_0x27ca4f(0x237)],_0x27ca4f(0x1f1)),this[_0x27ca4f(0x1ec)])[_0x27ca4f(0x23d)](()=>{const _0x5b3607=_0x27ca4f;this[_0x5b3607(0x1ff)](_0x5b3607(0x239),{'id':this['id']});});});const _0x5a22b2=new _0x2633fe(this[_0x35c38d(0x237)]),_0x457081=new _0x1b89fb(this[_0x35c38d(0x237)]);_0x457081[_0x35c38d(0x233)][_0x35c38d(0x243)](_0x5bb007);const _0x3d75c6=new _0x1b89fb(this[_0x35c38d(0x237)]);return _0x3d75c6[_0x35c38d(0x233)][_0x35c38d(0x243)](_0x5d927b),_0x5a22b2[_0x35c38d(0x1f9)][_0x35c38d(0x242)]([_0x457081,_0x3d75c6]),_0x547a90[_0x35c38d(0x243)](_0x5a22b2),_0x55f9d6;}[_0x457136(0x210)](_0x4d76e9,_0x20f03f){const _0x4793b9=_0x457136,_0x532d5d=new _0x33ec34(_0x4d76e9),_0x273114=_0x532d5d[_0x4793b9(0x206)];return _0x532d5d[_0x4793b9(0x22a)]=_0x20f03f,_0x532d5d[_0x4793b9(0x1f4)]({'on':{'keydown':_0x273114['to'](_0xadd180=>{const _0x19f74b=_0x4793b9;_0x19f74b(0x23a)==_0xadd180[_0x19f74b(0x21b)]&&this[_0x19f74b(0x207)](_0x532d5d);})}}),_0x532d5d;}[_0x457136(0x225)](_0x4806fb,_0x511e6d){const _0x375bdf=_0x457136,_0x757290=new _0x36159f(_0x4806fb);return _0x757290[_0x375bdf(0x23b)]({'icon':_0x38aa38,'withText':!0x1,'tooltip':_0x335e4f(_0x4806fb,_0x375bdf(0x22c))}),_0x757290[_0x375bdf(0x1f4)]({'attributes':{'class':[_0x375bdf(0x226)]}}),_0x757290['on'](_0x375bdf(0x223),()=>{const _0x4c9030=_0x375bdf;this[_0x4c9030(0x207)](_0x511e6d);}),_0x757290;}[_0x457136(0x207)](_0x530958){const _0x23511f=_0x457136,_0x4cd2a2=_0x530958[_0x23511f(0x1ec)][_0x23511f(0x22a)]||'';this[_0x23511f(0x1f0)][_0x23511f(0x228)]=_0x4cd2a2,this[_0x23511f(0x24c)]=!0x1,this[_0x23511f(0x1ff)](_0x23511f(0x249),{'id':this['id'],'title':_0x4cd2a2});}[_0x457136(0x217)](_0x484a2b,_0x208c55){const _0x11fb22=_0x457136,_0x3d42f4=new _0x36159f(_0x484a2b);return _0x3d42f4[_0x11fb22(0x23b)]({'icon':_0x38bbcb,'withText':!0x1,'tooltip':_0x335e4f(_0x484a2b,_0x11fb22(0x234))}),_0x3d42f4[_0x11fb22(0x1f4)]({'attributes':{'class':[_0x11fb22(0x200)]}}),_0x3d42f4['on'](_0x11fb22(0x223),()=>{const _0x8a6219=_0x11fb22;this[_0x8a6219(0x24c)]=!0x1,_0x208c55[_0x8a6219(0x22a)]=this[_0x8a6219(0x1f0)][_0x8a6219(0x228)]||'',this[_0x8a6219(0x1ff)](_0x8a6219(0x216));}),_0x3d42f4;}[_0x457136(0x21c)](){const _0x509ce7=_0x457136,_0xd50b48=new _0x3a584e(_0x509ce7(0x1f3));return _0xd50b48[_0x509ce7(0x20a)]=!0x0,_0xd50b48;}[_0x457136(0x22b)](_0x3bad6c){const _0x5b123f=_0x457136;return this[_0x5b123f(0x1f0)]&&_0x5b123f(0x213)==typeof this[_0x5b123f(0x1f0)][_0x5b123f(0x228)]&&this[_0x5b123f(0x1f0)][_0x5b123f(0x228)][_0x5b123f(0x20d)](_0x3bad6c)?{'title':!0x0}:null;}[_0x457136(0x246)](_0x36db8f){const _0x47b3bc=_0x457136;this[_0x47b3bc(0x1f0)][_0x47b3bc(0x246)](_0x36db8f);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x3d03dd=_0x3537;(function(_0x21f7de,_0x398bc0){const _0x530f2f=_0x3537,_0x2968d2=_0x21f7de();while(!![]){try{const _0x34d485=parseInt(_0x530f2f(0x1a3))/0x1+parseInt(_0x530f2f(0x1a2))/0x2*(-parseInt(_0x530f2f(0x190))/0x3)+parseInt(_0x530f2f(0x197))/0x4*(parseInt(_0x530f2f(0x19a))/0x5)+parseInt(_0x530f2f(0x19c))/0x6*(-parseInt(_0x530f2f(0x1a5))/0x7)+parseInt(_0x530f2f(0x195))/0x8+parseInt(_0x530f2f(0x19b))/0x9+parseInt(_0x530f2f(0x1a8))/0xa*(-parseInt(_0x530f2f(0x198))/0xb);if(_0x34d485===_0x398bc0)break;else _0x2968d2['push'](_0x2968d2['shift']());}catch(_0x2c1137){_0x2968d2['push'](_0x2968d2['shift']());}}}(_0x3f3f,0xd513c));import{ListItemView as _0x228c73,View as _0x21f2b0,ListView as _0x16f79b}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x228c73{[_0x3d03dd(0x19f)];[_0x3d03dd(0x1a4)];[_0x3d03dd(0x1ad)];constructor(_0x11b3c2,{title:_0x1126c9,items:_0x50f455}){const _0x37fe75=_0x3d03dd;super(_0x11b3c2);const _0x44109b=this[_0x37fe75(0x1aa)];this[_0x37fe75(0x1ae)](_0x37fe75(0x193),!0x0),this[_0x37fe75(0x19f)]=_0x1126c9,this[_0x37fe75(0x1a4)]=_0x50f455;const _0x47512b=new _0x21f2b0(_0x11b3c2);_0x47512b[_0x37fe75(0x1a6)]({'tag':_0x37fe75(0x192),'attributes':{'class':[_0x37fe75(0x1a0)]},'children':[this[_0x37fe75(0x19f)]]}),this[_0x37fe75(0x1ad)]=new _0x16f79b(_0x11b3c2),this[_0x37fe75(0x1ad)][_0x37fe75(0x1a1)][_0x37fe75(0x199)](this[_0x37fe75(0x1a4)]),this[_0x37fe75(0x1a6)]({'tag':'li','attributes':{'class':[_0x37fe75(0x1ac),_0x44109b['if'](_0x37fe75(0x193),_0x37fe75(0x194),_0x585018=>!_0x585018)]},'children':[_0x47512b,this[_0x37fe75(0x1ad)]]});}[_0x3d03dd(0x1a7)](_0x32adbc){const _0x40db6c=_0x3d03dd,_0xc6e6b3=this[_0x40db6c(0x1a4)][_0x40db6c(0x1b0)];let _0x57f5f8=0x0;for(const _0x421e42 of this[_0x40db6c(0x1a4)]){if(_0x32adbc){const _0x7f887d=_0x421e42[_0x40db6c(0x1af)](_0x32adbc);_0x421e42[_0x40db6c(0x193)]=!!_0x7f887d,_0x421e42[_0x40db6c(0x1b1)](_0x32adbc);}else _0x421e42[_0x40db6c(0x193)]=!0x0,_0x421e42[_0x40db6c(0x1b1)](null);_0x421e42[_0x40db6c(0x193)]&&_0x57f5f8++;}return this[_0x40db6c(0x193)]=_0x57f5f8>0x0,{'resultsCount':_0x57f5f8,'totalItemsCount':_0xc6e6b3};}[_0x3d03dd(0x19d)](_0x371559){const _0x1a7f02=_0x3d03dd;return this[_0x1a7f02(0x1a4)][_0x1a7f02(0x196)](_0x1955cf=>_0x1955cf['id']===_0x371559);}[_0x3d03dd(0x191)](_0x5f3402){const _0x289020=_0x3d03dd,_0x5aaf88=this[_0x289020(0x1a4)][_0x289020(0x1ab)](_0x5f3402);-0x1!==_0x5aaf88&&(this[_0x289020(0x1a4)][_0x289020(0x19e)](_0x5aaf88,0x1),this[_0x289020(0x1ad)][_0x289020(0x1a1)][_0x289020(0x1a9)](_0x5f3402));}}function _0x3537(_0x5d8bd3,_0x104f35){const _0x3f3f3e=_0x3f3f();return _0x3537=function(_0x3537dd,_0x1c7358){_0x3537dd=_0x3537dd-0x190;let _0x10020d=_0x3f3f3e[_0x3537dd];return _0x10020d;},_0x3537(_0x5d8bd3,_0x104f35);}function _0x3f3f(){const _0x422078=['isVisible','ck-hidden','8011456nxdEFi','find','72cFhKxT','10035322eDeoYv','addMany','51820VrZTCl','9222912sXJNZq','6IhEjtY','getItem','splice','title','ck-ai-chat-history__section-title','items','6242LGEZxd','918703lKgPKG','itemsViews','2929374KHmhuM','setTemplate','filter','20WDsPqW','remove','bindTemplate','indexOf','ck-ai-chat-history__section','_itemsListView','set','isMatching','length','highlightText','15CtqaEl','removeItem','div'];_0x3f3f=function(){return _0x422078;};return _0x3f3f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41c420=_0x501e;(function(_0x48911a,_0x157130){const _0x7d3fe6=_0x501e,_0x2b430e=_0x48911a();while(!![]){try{const _0x53403a=-parseInt(_0x7d3fe6(0xab))/0x1+parseInt(_0x7d3fe6(0xa3))/0x2*(parseInt(_0x7d3fe6(0xac))/0x3)+-parseInt(_0x7d3fe6(0xa9))/0x4+-parseInt(_0x7d3fe6(0xb1))/0x5*(-parseInt(_0x7d3fe6(0xa5))/0x6)+parseInt(_0x7d3fe6(0xad))/0x7*(parseInt(_0x7d3fe6(0xb0))/0x8)+parseInt(_0x7d3fe6(0xa8))/0x9+-parseInt(_0x7d3fe6(0xb2))/0xa*(parseInt(_0x7d3fe6(0xaa))/0xb);if(_0x53403a===_0x157130)break;else _0x2b430e['push'](_0x2b430e['shift']());}catch(_0x3b30f8){_0x2b430e['push'](_0x2b430e['shift']());}}}(_0x19c4,0xc4c28));function _0x19c4(){const _0x59ad57=['414525WcJTiu','6710570UCdjAZ','sections','2ADDIre','ck-ai-chat-history__sections','12uuJhOw','extendTemplate','filter','12677067kiXaOl','1631456OeyyQS','33WJfKnT','10562xvyRvF','1460049CtyLVF','7RkzElR','items','addMany','9411752hYNWRx'];_0x19c4=function(){return _0x59ad57;};return _0x19c4();}import{ListView as _0x160d27}from'ckeditor5/src/ui.js';function _0x501e(_0x2b90f4,_0x293558){const _0x19c444=_0x19c4();return _0x501e=function(_0x501ec7,_0x3d6b24){_0x501ec7=_0x501ec7-0xa3;let _0x343175=_0x19c444[_0x501ec7];return _0x343175;},_0x501e(_0x2b90f4,_0x293558);}export class AIChatHistorySectionListView extends _0x160d27{[_0x41c420(0xb3)];constructor(_0x45e3b4,_0x2a0307){const _0x4bf600=_0x41c420;super(_0x45e3b4),this[_0x4bf600(0xb3)]=_0x2a0307,this[_0x4bf600(0xae)][_0x4bf600(0xaf)](this[_0x4bf600(0xb3)]),this[_0x4bf600(0xa6)]({'attributes':{'class':[_0x4bf600(0xa4)]}});}[_0x41c420(0xa7)](_0x43b39a){const _0x81e1a7=_0x41c420;let _0xc9a302=0x0,_0x71e566=0x0;for(const _0x400803 of this[_0x81e1a7(0xb3)]){const {resultsCount:_0x57d2af,totalItemsCount:_0x2f6f50}=_0x400803[_0x81e1a7(0xa7)](_0x43b39a);_0xc9a302+=_0x57d2af,_0x71e566+=_0x2f6f50;}return{'resultsCount':_0xc9a302,'totalItemsCount':_0x71e566};}}
|