@ckeditor/ckeditor5-ai 47.1.0 → 47.2.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +573 -203
- package/dist/index.css +627 -204
- package/dist/index.js +5 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +8 -1
- package/lang/translations/af.po +52 -4
- package/lang/translations/ar.po +52 -4
- package/lang/translations/ast.po +52 -4
- package/lang/translations/az.po +52 -4
- package/lang/translations/be.po +52 -4
- package/lang/translations/bg.po +52 -4
- package/lang/translations/bn.po +52 -4
- package/lang/translations/bs.po +52 -4
- package/lang/translations/ca.po +52 -4
- package/lang/translations/cs.po +52 -4
- package/lang/translations/da.po +52 -4
- package/lang/translations/de-ch.po +52 -4
- package/lang/translations/de.po +52 -4
- package/lang/translations/el.po +52 -4
- package/lang/translations/en-au.po +52 -4
- package/lang/translations/en-gb.po +52 -4
- package/lang/translations/en.po +52 -4
- package/lang/translations/eo.po +52 -4
- package/lang/translations/es-co.po +52 -4
- package/lang/translations/es.po +52 -4
- package/lang/translations/et.po +52 -4
- package/lang/translations/eu.po +52 -4
- package/lang/translations/fa.po +52 -4
- package/lang/translations/fi.po +52 -4
- package/lang/translations/fr.po +52 -4
- package/lang/translations/gl.po +52 -4
- package/lang/translations/gu.po +52 -4
- package/lang/translations/he.po +52 -4
- package/lang/translations/hi.po +52 -4
- package/lang/translations/hr.po +52 -4
- package/lang/translations/hu.po +52 -4
- package/lang/translations/hy.po +52 -4
- package/lang/translations/id.po +52 -4
- package/lang/translations/it.po +52 -4
- package/lang/translations/ja.po +52 -4
- package/lang/translations/jv.po +52 -4
- package/lang/translations/kk.po +52 -4
- package/lang/translations/km.po +52 -4
- package/lang/translations/kn.po +52 -4
- package/lang/translations/ko.po +52 -4
- package/lang/translations/ku.po +52 -4
- package/lang/translations/lt.po +52 -4
- package/lang/translations/lv.po +52 -4
- package/lang/translations/ms.po +52 -4
- package/lang/translations/nb.po +52 -4
- package/lang/translations/ne.po +52 -4
- package/lang/translations/nl.po +52 -4
- package/lang/translations/no.po +52 -4
- package/lang/translations/oc.po +52 -4
- package/lang/translations/pl.po +52 -4
- package/lang/translations/pt-br.po +52 -4
- package/lang/translations/pt.po +52 -4
- package/lang/translations/ro.po +52 -4
- package/lang/translations/ru.po +52 -4
- package/lang/translations/si.po +52 -4
- package/lang/translations/sk.po +52 -4
- package/lang/translations/sl.po +52 -4
- package/lang/translations/sq.po +52 -4
- package/lang/translations/sr-latn.po +52 -4
- package/lang/translations/sr.po +52 -4
- package/lang/translations/sv.po +52 -4
- package/lang/translations/th.po +52 -4
- package/lang/translations/ti.po +52 -4
- package/lang/translations/tk.po +52 -4
- package/lang/translations/tr.po +52 -4
- package/lang/translations/tt.po +52 -4
- package/lang/translations/ug.po +52 -4
- package/lang/translations/uk.po +52 -4
- package/lang/translations/ur.po +52 -4
- package/lang/translations/uz.po +52 -4
- package/lang/translations/vi.po +52 -4
- package/lang/translations/zh-cn.po +52 -4
- package/lang/translations/zh.po +52 -4
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +1 -1
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +5 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +40 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +1 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +4 -0
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +8 -29
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +4 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +2 -2
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.d.ts +4 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +4 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/{aichatresourceslistview.d.ts → aichatcontextresourceslistview.d.ts} +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +23 -0
- package/src/aichat/ui/controls/resources/{aichatresourcesview.d.ts → aichatcontextresourcesview.d.ts} +5 -2
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +23 -0
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +4 -0
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +3 -3
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -3
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +28 -7
- package/src/aicore/aiconnector.d.ts +1 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.d.ts +66 -0
- package/src/aicore/model/aimodels.js +23 -0
- package/src/aicore/model/aireply.d.ts +9 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +5 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +3 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +6 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.d.ts +2 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.d.ts +2 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +18 -0
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +3 -3
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +9 -10
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +6 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +13 -0
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +9 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +0 -4
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +12 -0
- package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +52 -43
- package/theme/aichat/aichat-controls/aichat-controls-button.css +8 -6
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +36 -52
- package/theme/aichat/aichat-controls/prompt-capabilities.css +0 -1
- package/theme/aichat/aichat-controls.css +11 -27
- package/theme/aichat/aichat.css +2 -3
- package/theme/aichat/aichatfeed.css +1 -27
- package/theme/aichat/aichathistory.css +12 -0
- package/theme/aichat/aisuggestioncontainer.css +5 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +25 -23
- package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +28 -5
- package/theme/aireviewmode/aireviewmode.css +17 -7
- package/theme/aitabs/aitabsview.css +1 -1
- package/theme/aitabs/tabs/tabbuttonview.css +1 -0
- package/theme/aitabs/tabs/tabsview.css +1 -0
- package/theme/common/aibutton.css +27 -0
- package/theme/common/aiheader.css +14 -4
- package/theme/common/aitrackchanges.css +8 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +0 -23
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +0 -23
- package/src/aireviewmode/model/aireviewmodels.d.ts +0 -26
- package/src/aireviewmode/model/aireviewmodels.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x459f25=_0xff9f;function _0xff9f(_0x2ec146,_0x3b50e2){const _0x4ce11c=_0x4ce1();return _0xff9f=function(_0xff9f75,_0x362aa0){_0xff9f75=_0xff9f75-0x14f;let _0x266eea=_0x4ce11c[_0xff9f75];return _0x266eea;},_0xff9f(_0x2ec146,_0x3b50e2);}(function(_0x395806,_0x2f4494){const _0x4552b8=_0xff9f,_0x4e162e=_0x395806();while(!![]){try{const _0x3053d9=parseInt(_0x4552b8(0x17c))/0x1+parseInt(_0x4552b8(0x161))/0x2*(parseInt(_0x4552b8(0x151))/0x3)+-parseInt(_0x4552b8(0x15d))/0x4*(-parseInt(_0x4552b8(0x178))/0x5)+parseInt(_0x4552b8(0x16a))/0x6*(parseInt(_0x4552b8(0x173))/0x7)+-parseInt(_0x4552b8(0x157))/0x8*(-parseInt(_0x4552b8(0x15b))/0x9)+-parseInt(_0x4552b8(0x170))/0xa+parseInt(_0x4552b8(0x163))/0xb*(-parseInt(_0x4552b8(0x16e))/0xc);if(_0x3053d9===_0x2f4494)break;else _0x4e162e['push'](_0x4e162e['shift']());}catch(_0x392a8b){_0x4e162e['push'](_0x4e162e['shift']());}}}(_0x4ce1,0x294bd));import{EmitterMixin as _0x1ccdec}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x50af00}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x1ccdec(){[_0x459f25(0x15e)]=[];[_0x459f25(0x17f)];[_0x459f25(0x177)];constructor({connector:_0x336423,group:_0x57d1c5}){const _0x542c89=_0x459f25;super(),this[_0x542c89(0x17f)]=_0x336423,this[_0x542c89(0x177)]=_0x57d1c5;}async[_0x459f25(0x17b)](){const _0x54f307=_0x459f25;try{const _0x7a7831=this[_0x54f307(0x17f)][_0x54f307(0x165)](this[_0x54f307(0x177)]),_0x51f114=await _0x7a7831[_0x54f307(0x166)]();this[_0x54f307(0x159)](_0x51f114);}catch(_0x9d364b){this[_0x54f307(0x156)](_0x54f307(0x158),{'error':_0x9d364b,'operation':_0x54f307(0x17b)});}}[_0x459f25(0x175)](_0x1772aa){const _0x5e5824=_0x459f25;this[_0x5e5824(0x15e)][_0x5e5824(0x179)](_0x1772aa);}async[_0x459f25(0x16f)](_0x616efe){const _0x240636=_0x459f25,_0x553588=this[_0x240636(0x15e)][_0x240636(0x155)](_0x3d946b=>_0x3d946b['id']===_0x616efe);if(-0x1===_0x553588)return!0x1;try{return await this[_0x240636(0x17f)][_0x240636(0x162)](_0x616efe)[_0x240636(0x14f)](),this[_0x240636(0x15e)][_0x240636(0x16b)](_0x553588,0x1),this[_0x240636(0x156)](_0x240636(0x15c),{'itemId':_0x616efe}),!0x0;}catch(_0x50a990){return this[_0x240636(0x156)](_0x240636(0x158),{'error':_0x50a990,'operation':_0x240636(0x16f),'itemId':_0x616efe}),!0x1;}}[_0x459f25(0x169)](_0x38b426){const _0x35801a=_0x459f25;return this[_0x35801a(0x15e)][_0x35801a(0x167)](_0x4a26c4=>_0x4a26c4['id']===_0x38b426);}async[_0x459f25(0x160)](_0x4a641e,_0x34704e){const _0x1a058e=_0x459f25,_0x21ba4e=this[_0x1a058e(0x169)](_0x4a641e);if(!_0x21ba4e)return!0x1;try{return await this[_0x1a058e(0x17f)][_0x1a058e(0x17d)](_0x4a641e,{'title':_0x34704e})[_0x1a058e(0x164)](),_0x21ba4e[_0x1a058e(0x174)](_0x34704e),this[_0x1a058e(0x156)](_0x1a058e(0x154),{'itemId':_0x4a641e,'updates':{'title':_0x34704e}}),!0x0;}catch(_0x571f48){return this[_0x1a058e(0x156)](_0x1a058e(0x158),{'error':_0x571f48,'operation':_0x1a058e(0x160),'itemId':_0x4a641e}),!0x1;}}async[_0x459f25(0x150)](_0x1e3eda,_0x2365e8){const _0x17d34f=_0x459f25,_0xfa7b20=this[_0x17d34f(0x169)](_0x1e3eda);if(!_0xfa7b20)return!0x1;try{return await this[_0x17d34f(0x17f)][_0x17d34f(0x17d)](_0x1e3eda,{'pinned':_0x2365e8})[_0x17d34f(0x164)](),_0xfa7b20[_0x17d34f(0x172)](_0x2365e8),this[_0x17d34f(0x156)](_0x17d34f(0x154),{'itemId':_0x1e3eda,'updates':{'pinned':_0x2365e8}}),!0x0;}catch(_0x403425){return this[_0x17d34f(0x156)](_0x17d34f(0x158),{'error':_0x403425,'operation':_0x17d34f(0x150),'itemId':_0x1e3eda}),!0x1;}}[_0x459f25(0x159)](_0x2243fe){const _0x458d65=_0x459f25;try{this[_0x458d65(0x15e)]=[],_0x2243fe[_0x458d65(0x176)](_0x429e61=>{const _0x17d6cd=_0x458d65;this[_0x17d6cd(0x175)](new _0x50af00(_0x429e61));}),this[_0x458d65(0x156)](_0x458d65(0x17e),{'items':[...this[_0x458d65(0x15e)]]});}catch(_0x4e3e23){this[_0x458d65(0x156)](_0x458d65(0x158),{'error':_0x4e3e23,'operation':_0x458d65(0x159)});}}[_0x459f25(0x171)](_0x490ee3={}){const _0x2e93a3=_0x459f25,_0x55dd51=void 0x0!==_0x490ee3[_0x2e93a3(0x15a)]&&_0x490ee3[_0x2e93a3(0x15a)],_0x3d46a4=_0x490ee3[_0x2e93a3(0x168)]?new Date(_0x490ee3[_0x2e93a3(0x168)][_0x2e93a3(0x153)](),_0x490ee3[_0x2e93a3(0x168)][_0x2e93a3(0x16c)](),_0x490ee3[_0x2e93a3(0x168)][_0x2e93a3(0x152)]()):null,_0x43c6e8=_0x490ee3['to']?new Date(_0x490ee3['to'][_0x2e93a3(0x153)](),_0x490ee3['to'][_0x2e93a3(0x16c)](),_0x490ee3['to'][_0x2e93a3(0x152)]()):null;return this[_0x2e93a3(0x15e)][_0x2e93a3(0x15f)](_0x46f4c3=>{const _0xf59c86=_0x2e93a3;if(_0x46f4c3[_0xf59c86(0x15a)]!==_0x55dd51)return!0x1;if(_0x43c6e8){const _0xe10832=new Date(_0x46f4c3[_0xf59c86(0x16d)][_0xf59c86(0x153)](),_0x46f4c3[_0xf59c86(0x16d)][_0xf59c86(0x16c)](),_0x46f4c3[_0xf59c86(0x16d)][_0xf59c86(0x152)]());return _0x3d46a4?_0x3d46a4[_0xf59c86(0x17a)]()===_0x43c6e8[_0xf59c86(0x17a)]()?_0xe10832[_0xf59c86(0x17a)]()===_0x3d46a4[_0xf59c86(0x17a)]():_0xe10832<_0x43c6e8&&_0xe10832>=_0x3d46a4:_0xe10832<_0x43c6e8;}return!0x0;});}}function _0x4ce1(){const _0x39bb39=['updatePinned','7QhKcRO','updateTitle','addItem','map','group','5jxPysw','push','getTime','init','194314LQJgLt','updateConversation','itemsLoaded','connector','execute','updateItemPinned','9NfHaoq','getDate','getFullYear','itemUpdated','findIndex','fire','112wIndDs','error','loadItems','pinned','112932iiMMxQ','itemRemoved','1122788fEDruC','items','filter','updateItemTitle','108364bhXxTw','deleteConversation','4180EWaZQS','getResult','fetchConversations','getConversations','find','from','getItem','1597944gDZHRT','splice','getMonth','createdAt','19800GjnUvy','removeItem','2834040IxmoSC','getItems'];_0x4ce1=function(){return _0x39bb39;};return _0x4ce1();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x360b(){var _0x3e4784=['4411516flcajA','set','19201jkCSEJ','1760QGtxbN','updatePinned','2594934SxXBIS','112045xqBQvl','title','4572684FMtFgQ','7409UOYTQh','146uhbIgZ','30qbeQeu','6517742huyLUs','pinned','updatedAt','276eoLdbg','updateTitle','createdAt','3kLtiBX'];_0x360b=function(){return _0x3e4784;};return _0x360b();}var _0x2abb57=_0x2a2e;function _0x2a2e(_0x898479,_0x5a5cea){var _0x360bb7=_0x360b();return _0x2a2e=function(_0x2a2efd,_0x3cb977){_0x2a2efd=_0x2a2efd-0x1e8;var _0x4c636f=_0x360bb7[_0x2a2efd];return _0x4c636f;},_0x2a2e(_0x898479,_0x5a5cea);}(function(_0x49d7d3,_0x4026fa){var _0x2c399d=_0x2a2e,_0x5176ad=_0x49d7d3();while(!![]){try{var _0x53a34a=-parseInt(_0x2c399d(0x1ef))/0x1*(-parseInt(_0x2c399d(0x1f0))/0x2)+parseInt(_0x2c399d(0x1f8))/0x3*(parseInt(_0x2c399d(0x1f9))/0x4)+parseInt(_0x2c399d(0x1ec))/0x5*(-parseInt(_0x2c399d(0x1f5))/0x6)+parseInt(_0x2c399d(0x1e8))/0x7*(parseInt(_0x2c399d(0x1e9))/0x8)+-parseInt(_0x2c399d(0x1eb))/0x9*(parseInt(_0x2c399d(0x1f1))/0xa)+parseInt(_0x2c399d(0x1f2))/0xb+-parseInt(_0x2c399d(0x1ee))/0xc;if(_0x53a34a===_0x4026fa)break;else _0x5176ad['push'](_0x5176ad['shift']());}catch(_0x2c615a){_0x5176ad['push'](_0x5176ad['shift']());}}}(_0x360b,0x896b5));import{ObservableMixin as _0x1c4057}from'ckeditor5/src/utils.js';import{escape as _0x113113}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x1c4057(){['id'];[_0x2abb57(0x1f7)];constructor({id:_0x525f16,title:_0x4fbf76,createdAt:_0x5a8ae9,updatedAt:_0x4a27b3,pinned:_0x3227eb}){var _0x15d3bf=_0x2abb57;super(),this['id']=_0x525f16,this[_0x15d3bf(0x1f7)]=new Date(_0x5a8ae9),this[_0x15d3bf(0x1fa)](_0x15d3bf(0x1ed),_0x4fbf76),this[_0x15d3bf(0x1fa)](_0x15d3bf(0x1f4),_0x4a27b3?new Date(_0x4a27b3):null),this[_0x15d3bf(0x1fa)](_0x15d3bf(0x1f3),_0x3227eb||!0x1);}[_0x2abb57(0x1f6)](_0x32c0e8){var _0xa61643=_0x2abb57;this[_0xa61643(0x1fa)](_0xa61643(0x1ed),_0x113113(_0x32c0e8)),this[_0xa61643(0x1f4)]=new Date();}[_0x2abb57(0x1ea)](_0x474999){var _0x1f537d=_0x2abb57;this[_0x1f537d(0x1fa)](_0x1f537d(0x1f3),_0x474999),this[_0x1f537d(0x1f4)]=new Date();}}
|
|
@@ -11,7 +11,7 @@ interface AIChatHistoryListItemViewConfig {
|
|
|
11
11
|
id: string;
|
|
12
12
|
}
|
|
13
13
|
declare const AIChatHistoryListItemView_base: import("ckeditor5/src/utils.js").Mixed<typeof ListItemView, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
|
|
14
|
-
export declare class AIChatHistoryListItemView extends AIChatHistoryListItemView_base {
|
|
14
|
+
export declare class AIChatHistoryListItemView extends /* #__PURE__ -- @preserve */ AIChatHistoryListItemView_base {
|
|
15
15
|
id: string;
|
|
16
16
|
isVisible: boolean;
|
|
17
17
|
pinned: boolean;
|
|
@@ -20,4 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x41cbe1=_0x2a84;(function(_0x1db10f,_0xa56788){const _0xc3132b=_0x2a84,_0x53ecbe=_0x1db10f();while(!![]){try{const _0x4ae513=-parseInt(_0xc3132b(0x186))/0x1+parseInt(_0xc3132b(0x19f))/0x2+parseInt(_0xc3132b(0x18f))/0x3+parseInt(_0xc3132b(0x17c))/0x4+parseInt(_0xc3132b(0x1a3))/0x5+parseInt(_0xc3132b(0x160))/0x6+-parseInt(_0xc3132b(0x153))/0x7*(parseInt(_0xc3132b(0x185))/0x8);if(_0x4ae513===_0xa56788)break;else _0x53ecbe['push'](_0x53ecbe['shift']());}catch(_0x2c54e3){_0x53ecbe['push'](_0x53ecbe['shift']());}}}(_0x19ec,0xa1303));import{ListItemView as _0x5b7f1b,HighlightedTextView as _0x58caad,ButtonView as _0x305c6e,ListView as _0x18879c,IconView as _0x318517,createDropdown as _0x2aeb69,InputTextView as _0x1dd6b3}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0xb78682,IconPin as _0x18d578,IconCheck as _0x59f4a0,IconCancel as _0x1e9e73}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1d0c01,ConfirmMixin as _0xcbca61}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4158c4}from'es-toolkit/compat';function _0x2a84(_0x5377b8,_0x93b112){const _0x19ecd4=_0x19ec();return _0x2a84=function(_0x2a84de,_0xf1ca57){_0x2a84de=_0x2a84de-0x14b;let _0x33ac9e=_0x19ecd4[_0x2a84de];return _0x33ac9e;},_0x2a84(_0x5377b8,_0x93b112);}function _0x19ec(){const _0x4cc70c=['AI_CHAT_HISTORY_ACCEPT','5981580pUZiHL','_createMenuDropdownView','element','value','tiny','label','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item-title','string','ck-ai-loader__text','AI_CHAT_HISTORY_REMOVE_CONFIRM','match','loadingState','ck-hidden','_titleView','ck-ai-chat-history__item-content','7uwrBnC','edit:cancel','editConversationTitle','isMatching','selectConversation','ck-ai-chat-history__item--active','add','Enter','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','mainContent','ck-ai-chat-history__item-row','updateLoadingState','_createCheckView','5112576osOhDb','listitem','clear','ck-ai-chat-history__item-date','focus','updateTitle','ck-ai-loader','_createEditInputView','execute','highlightText','ck-ai-chat-history__item','AI_CHAT_HISTORY_LOADING_REMOVING','_createCancelEditButtonView','ck-ai-chat-history__item-check','buttonView','ck-confirm-view-submit','panelView','setTemplate','key','text','items','withText','extendTemplate','locale','span','div','then','_commitEditInputValue','5250812PIIclF','_createSpinnerView','isVisible','AI_CHAT_HISTORY_LOADING_UNPINNING','removeConversation','showConfirm','setConversationPinned','AI_CHAT_HISTORY_PIN_BUTTON','_createPinButtonView','18533064DkNoHz','1152319fmvedZ','actions','_createAcceptEditButtonView','ck-ai-chat-history__item-check-container','ck-ai-chat-history__item--edit','fire','AI_CHAT_HISTORY_EDIT_NAME','change:isEdit','bindTemplate','413898ptTMSB','createCollection','pinned','ck-ai-chat-history__item-actions','panelPosition','ck-ai-chat-history__item-main-content','bind','set','AI_CHAT_HISTORY_CANCEL','isOn','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_LOADING_PINNING','children','LOADING_LABELS','ck-confirm-view-cancel','addMany','1260196EXQxJG','isEdit','click'];_0x19ec=function(){return _0x4cc70c;};return _0x19ec();}import{AISpinnerView as _0x376cd1}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1c3e9a}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0xcbca61(_0x5b7f1b){['id'];static [_0x41cbe1(0x19c)]={'remove':_0x41cbe1(0x16b),'rename':_0x41cbe1(0x1a9),'pin':_0x41cbe1(0x19a),'unpin':_0x41cbe1(0x17f)};[_0x41cbe1(0x187)];[_0x41cbe1(0x15c)];[_0x41cbe1(0x151)];constructor(_0x566818,_0x567401){const _0x113fc8=_0x41cbe1;super(_0x566818);const _0x48308f=this[_0x113fc8(0x18e)];this[_0x113fc8(0x196)](_0x113fc8(0x1a0),!0x1),this[_0x113fc8(0x196)](_0x113fc8(0x17e),!0x0),this[_0x113fc8(0x196)](_0x113fc8(0x191),!!_0x567401[_0x113fc8(0x191)]),this[_0x113fc8(0x196)](_0x113fc8(0x14f),null),this['id']=_0x567401['id'];const {title:_0x2cf76d,createdAt:_0x33d605,active:_0x58c23c=!0x1}=_0x567401;this[_0x113fc8(0x151)]=new _0x58caad(),this[_0x113fc8(0x151)][_0x113fc8(0x173)]=_0x2cf76d,this[_0x113fc8(0x151)][_0x113fc8(0x176)]({'attributes':{'class':[_0x113fc8(0x1aa)]}});const _0x50c5c1=this[_0x113fc8(0x15f)](),_0x4cb537=this[_0x113fc8(0x184)](_0x566818),_0x9f1a5=this[_0x113fc8(0x1a4)](),_0x7827e8=this[_0x113fc8(0x167)](_0x566818,_0x2cf76d),_0x1d61f3=this[_0x113fc8(0x188)](_0x566818,_0x7827e8),_0x3a6ba8=this[_0x113fc8(0x16c)](_0x566818,_0x7827e8);this[_0x113fc8(0x187)]=this[_0x113fc8(0x190)](),this[_0x113fc8(0x15c)]=this[_0x113fc8(0x190)](),this[_0x113fc8(0x15c)][_0x113fc8(0x159)](this[_0x113fc8(0x151)]),this[_0x113fc8(0x187)][_0x113fc8(0x159)](_0x4cb537),this[_0x113fc8(0x187)][_0x113fc8(0x159)](_0x9f1a5),this['on'](_0x113fc8(0x18d),(_0x452e63,_0x19d594,_0x30b1d2)=>{const _0x1b3cb8=_0x113fc8;this[_0x1b3cb8(0x187)][_0x1b3cb8(0x162)](),this[_0x1b3cb8(0x15c)][_0x1b3cb8(0x162)](),_0x30b1d2?(this[_0x1b3cb8(0x187)][_0x1b3cb8(0x159)](_0x1d61f3),this[_0x1b3cb8(0x187)][_0x1b3cb8(0x159)](_0x3a6ba8),this[_0x1b3cb8(0x15c)][_0x1b3cb8(0x159)](_0x7827e8),_0x7827e8[_0x1b3cb8(0x1a5)][_0x1b3cb8(0x164)]()):(this[_0x1b3cb8(0x187)][_0x1b3cb8(0x159)](_0x4cb537),this[_0x1b3cb8(0x187)][_0x1b3cb8(0x159)](_0x9f1a5),this[_0x1b3cb8(0x15c)][_0x1b3cb8(0x159)](this[_0x1b3cb8(0x151)]));}),this[_0x113fc8(0x171)]({'tag':'li','attributes':{'class':[_0x113fc8(0x16a),_0x58c23c?_0x113fc8(0x158):'',_0x48308f['if'](_0x113fc8(0x17e),_0x113fc8(0x150),_0x4f0977=>!_0x4f0977),_0x48308f['if'](_0x113fc8(0x1a0),_0x113fc8(0x18a))],'role':_0x113fc8(0x161)},'children':[{'tag':_0x113fc8(0x178),'attributes':{'class':[_0x113fc8(0x189)]},'children':[{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x16d),_0x48308f['if'](_0x113fc8(0x14f),_0x113fc8(0x150),_0x49093c=>!!_0x49093c)]},'children':_0x58c23c?[_0x50c5c1]:[]},{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x166),_0x48308f['if'](_0x113fc8(0x14f),_0x113fc8(0x150),_0x3dc4b9=>!_0x3dc4b9)]},'children':[this[_0x113fc8(0x17d)]()]}]},{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x15d)]},'children':[{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x152)]},'on':{'click':this[_0x113fc8(0x18e)]['to'](_0x113fc8(0x1a1))},'children':[{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x194)]},'children':[{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x1aa),_0x48308f['if'](_0x113fc8(0x14f),_0x113fc8(0x150),_0xfc0932=>!!_0xfc0932)]},'children':this[_0x113fc8(0x15c)]},{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x14c),_0x48308f['if'](_0x113fc8(0x14f),_0x113fc8(0x150),_0x17a28e=>!_0x17a28e)]},'children':[{'text':_0x48308f['to'](_0x113fc8(0x14f),_0x578120=>_0x578120?_0x1c3e9a(this[_0x113fc8(0x177)],AIChatHistoryListItemView[_0x113fc8(0x19c)][_0x578120]):'')}]}]},{'tag':_0x113fc8(0x178),'attributes':{'class':[_0x113fc8(0x163)]},'children':[_0x33d605]}]},{'tag':_0x113fc8(0x179),'attributes':{'class':[_0x113fc8(0x192)]},'children':this[_0x113fc8(0x187)]}]}]}),this['on'](_0x113fc8(0x1a1),()=>{const _0x45f11e=_0x113fc8;this[_0x45f11e(0x1a0)]||this[_0x45f11e(0x18b)](_0x45f11e(0x157),{'id':this['id']});});}[_0x41cbe1(0x165)](_0x30ee74){const _0xe2e6dc=_0x41cbe1;this[_0xe2e6dc(0x151)][_0xe2e6dc(0x173)]=_0x4158c4(_0x30ee74);}[_0x41cbe1(0x15e)](_0xea1a44,_0x218062){const _0x5f5cff=_0x41cbe1;this[_0x5f5cff(0x196)](_0x5f5cff(0x14f),_0x218062?_0xea1a44:null);}[_0x41cbe1(0x15f)](){const _0x522087=_0x41cbe1,_0x4bd468=new _0x318517();return _0x4bd468[_0x522087(0x196)]({'content':_0x59f4a0}),_0x4bd468;}[_0x41cbe1(0x184)](_0x4fb2a6){const _0x392aeb=_0x41cbe1,_0x3bb15b=new _0x305c6e(_0x4fb2a6);return _0x3bb15b[_0x392aeb(0x196)]({'label':_0x1c3e9a(_0x4fb2a6,_0x392aeb(0x183)),'icon':_0x18d578,'withText':!0x1,'tooltip':!0x0}),_0x3bb15b[_0x392aeb(0x195)](_0x392aeb(0x198))['to'](this,_0x392aeb(0x191)),_0x3bb15b['on'](_0x392aeb(0x168),()=>{const _0x26a8dd=_0x392aeb,_0x67c3b1=!this[_0x26a8dd(0x191)];this[_0x26a8dd(0x18b)](_0x26a8dd(0x182),{'id':this['id'],'pinned':_0x67c3b1});}),_0x3bb15b;}[_0x41cbe1(0x1a4)](){const _0x51c5fa=_0x41cbe1,_0x5ad35e=_0x2aeb69(this[_0x51c5fa(0x177)],_0x1d0c01),_0x53b0d8=_0x5ad35e[_0x51c5fa(0x170)][_0x51c5fa(0x19b)];_0x5ad35e[_0x51c5fa(0x16e)][_0x51c5fa(0x196)]({'label':_0x1c3e9a(this[_0x51c5fa(0x177)],_0x51c5fa(0x15b)),'icon':_0xb78682}),_0x5ad35e[_0x51c5fa(0x193)]='sw';const _0x355d14=new _0x305c6e(this[_0x51c5fa(0x177)]);_0x355d14[_0x51c5fa(0x1a8)]=_0x1c3e9a(this[_0x51c5fa(0x177)],_0x51c5fa(0x18c)),_0x355d14[_0x51c5fa(0x175)]=!0x0,_0x355d14['on'](_0x51c5fa(0x168),()=>{const _0x39d2fe=_0x51c5fa;this[_0x39d2fe(0x1a0)]=!0x0;});const _0x4305ac=new _0x305c6e(this[_0x51c5fa(0x177)]);_0x4305ac[_0x51c5fa(0x1a8)]=_0x1c3e9a(this[_0x51c5fa(0x177)],_0x51c5fa(0x199)),_0x4305ac[_0x51c5fa(0x175)]=!0x0,_0x4305ac['on'](_0x51c5fa(0x168),()=>{const _0x53db28=_0x51c5fa;this[_0x53db28(0x181)](_0x1c3e9a(this[_0x53db28(0x177)],_0x53db28(0x14d)),this[_0x53db28(0x1a5)])[_0x53db28(0x17a)](()=>{const _0x43d76a=_0x53db28;this[_0x43d76a(0x18b)](_0x43d76a(0x180),{'id':this['id']});});});const _0x4225a2=new _0x18879c(this[_0x51c5fa(0x177)]),_0x52c559=new _0x5b7f1b(this[_0x51c5fa(0x177)]);_0x52c559[_0x51c5fa(0x19b)][_0x51c5fa(0x159)](_0x355d14);const _0x41b905=new _0x5b7f1b(this[_0x51c5fa(0x177)]);return _0x41b905[_0x51c5fa(0x19b)][_0x51c5fa(0x159)](_0x4305ac),_0x4225a2[_0x51c5fa(0x174)][_0x51c5fa(0x19e)]([_0x52c559,_0x41b905]),_0x53b0d8[_0x51c5fa(0x159)](_0x4225a2),_0x5ad35e;}[_0x41cbe1(0x167)](_0x3da04a,_0x1c6062){const _0x13c27e=_0x41cbe1,_0x221fff=new _0x1dd6b3(_0x3da04a),_0xd436bb=_0x221fff[_0x13c27e(0x18e)];return _0x221fff[_0x13c27e(0x1a6)]=_0x1c6062,_0x221fff[_0x13c27e(0x176)]({'on':{'keydown':_0xd436bb['to'](_0x5b15d0=>{const _0x5ff89b=_0x13c27e;_0x5ff89b(0x15a)==_0x5b15d0[_0x5ff89b(0x172)]&&this[_0x5ff89b(0x17b)](_0x221fff);})}}),_0x221fff;}[_0x41cbe1(0x188)](_0xadd280,_0x3ac215){const _0x512bdc=_0x41cbe1,_0x517858=new _0x305c6e(_0xadd280);return _0x517858[_0x512bdc(0x196)]({'icon':_0x59f4a0,'withText':!0x1,'tooltip':_0x1c3e9a(_0xadd280,_0x512bdc(0x1a2))}),_0x517858[_0x512bdc(0x176)]({'attributes':{'class':[_0x512bdc(0x16f)]}}),_0x517858['on'](_0x512bdc(0x168),()=>{const _0x4a8b6b=_0x512bdc;this[_0x4a8b6b(0x17b)](_0x3ac215);}),_0x517858;}[_0x41cbe1(0x17b)](_0x43bd57){const _0x4acc78=_0x41cbe1,_0x20403a=_0x43bd57[_0x4acc78(0x1a5)][_0x4acc78(0x1a6)]||'';this[_0x4acc78(0x151)][_0x4acc78(0x173)]=_0x20403a,this[_0x4acc78(0x1a0)]=!0x1,this[_0x4acc78(0x18b)](_0x4acc78(0x155),{'id':this['id'],'title':_0x20403a});}[_0x41cbe1(0x16c)](_0x16e577,_0x55dbd3){const _0x37b9b8=_0x41cbe1,_0x1cf99f=new _0x305c6e(_0x16e577);return _0x1cf99f[_0x37b9b8(0x196)]({'icon':_0x1e9e73,'withText':!0x1,'tooltip':_0x1c3e9a(_0x16e577,_0x37b9b8(0x197))}),_0x1cf99f[_0x37b9b8(0x176)]({'attributes':{'class':[_0x37b9b8(0x19d)]}}),_0x1cf99f['on'](_0x37b9b8(0x168),()=>{const _0x2bb4f6=_0x37b9b8;this[_0x2bb4f6(0x1a0)]=!0x1,_0x55dbd3[_0x2bb4f6(0x1a6)]=this[_0x2bb4f6(0x151)][_0x2bb4f6(0x173)]||'',this[_0x2bb4f6(0x18b)](_0x2bb4f6(0x154));}),_0x1cf99f;}[_0x41cbe1(0x17d)](){const _0x15bc91=_0x41cbe1,_0x6dbcea=new _0x376cd1(_0x15bc91(0x1a7));return _0x6dbcea[_0x15bc91(0x17e)]=!0x0,_0x6dbcea;}[_0x41cbe1(0x156)](_0x443358){const _0x3c3451=_0x41cbe1;return this[_0x3c3451(0x151)]&&_0x3c3451(0x14b)==typeof this[_0x3c3451(0x151)][_0x3c3451(0x173)]&&this[_0x3c3451(0x151)][_0x3c3451(0x173)][_0x3c3451(0x14e)](_0x443358)?{'title':!0x0}:null;}[_0x41cbe1(0x169)](_0xadff0){const _0x184d4e=_0x41cbe1;this[_0x184d4e(0x151)][_0x184d4e(0x169)](_0xadff0);}}
|
|
23
|
+
function _0x4fa0(){const _0x296168=['ck-ai-chat-history__item-check','ck-ai-chat-history__item-title','ck-ai-loader','updateLoadingState','withText','isOn','138TIjRZW','string','_createMenuDropdownView','highlightText','_createCheckView','listitem','_titleView','then','ck-ai-chat-history__item','16ycRBdJ','extendTemplate','AI_CHAT_HISTORY_LOADING_PINNING','ck-ai-chat-history__item-check-container','_createSpinnerView','pinned','mainContent','ck-ai-chat-history__item-actions','click','ck-confirm-view-cancel','_commitEditInputValue','3500420iDpvUw','AI_CHAT_HISTORY_LOADING_RENAMING','updateTitle','AI_CHAT_HISTORY_PIN_BUTTON','text','4150232wvLUgQ','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_REMOVE','execute','ck-ai-chat-history__item--edit','_createPinButtonView','span','AI_CHAT_HISTORY_REMOVE_CONFIRM','AI_CHAT_HISTORY_EDIT_NAME','div','key','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','panelView','LOADING_LABELS','value','ck-ai-chat-history__item--active','tiny','314105CTdsuc','2241kUuAOZ','AI_CHAT_HISTORY_LOADING_UNPINNING','1163463rBXTgw','ck-ai-loader__text','edit:cancel','ck-ai-chat-history__item-row','ck-confirm-view-submit','actions','20QHwynY','ck-ai-chat-history__item-main-content','2242PEqOoO','element','5465042djGinV','match','setTemplate','panelPosition','label','clear','add','ck-ai-chat-history__item-date','set','_createEditInputView','AI_CHAT_HISTORY_CANCEL','bindTemplate','_createCancelEditButtonView','fire','change:isEdit','Enter','AI_CHAT_HISTORY_LOADING_REMOVING','loadingState','selectConversation','focus','isMatching','createCollection','4260402foRcin','isVisible','addMany','isEdit','locale','items','editConversationTitle','buttonView','showConfirm','removeConversation','ck-ai-chat-history__item-content','setConversationPinned','children','ck-hidden','bind','_createAcceptEditButtonView'];_0x4fa0=function(){return _0x296168;};return _0x4fa0();}const _0x527be2=_0x3e7d;(function(_0x55adc2,_0x1daa3a){const _0x1e3cef=_0x3e7d,_0x46a88a=_0x55adc2();while(!![]){try{const _0x4c3134=parseInt(_0x1e3cef(0xf4))/0x1+-parseInt(_0x1e3cef(0xfc))/0x2*(-parseInt(_0x1e3cef(0xf2))/0x3)+-parseInt(_0x1e3cef(0xe0))/0x4+-parseInt(_0x1e3cef(0xf1))/0x5*(-parseInt(_0x1e3cef(0xc7))/0x6)+-parseInt(_0x1e3cef(0xdb))/0x7*(parseInt(_0x1e3cef(0xd0))/0x8)+parseInt(_0x1e3cef(0xb1))/0x9+parseInt(_0x1e3cef(0xfa))/0xa*(-parseInt(_0x1e3cef(0xfe))/0xb);if(_0x4c3134===_0x1daa3a)break;else _0x46a88a['push'](_0x46a88a['shift']());}catch(_0x252838){_0x46a88a['push'](_0x46a88a['shift']());}}}(_0x4fa0,0xd8bed));import{ListItemView as _0x3b8905,HighlightedTextView as _0x29fdad,ButtonView as _0x2c89f1,ListView as _0x4fd5b8,IconView as _0x5490db,createDropdown as _0x51d089,InputTextView as _0x1c329c}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x53f7cb,IconPin as _0x1a08d6,IconCheck as _0x85bc50,IconCancel as _0x5b679e}from'ckeditor5/src/icons.js';function _0x3e7d(_0x5c753f,_0x200002){const _0x4fa090=_0x4fa0();return _0x3e7d=function(_0x3e7d29,_0x449f82){_0x3e7d29=_0x3e7d29-0xa8;let _0x2272db=_0x4fa090[_0x3e7d29];return _0x2272db;},_0x3e7d(_0x5c753f,_0x200002);}import{LateFocusDropdownButtonView as _0x308659,ConfirmMixin as _0x50d753}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x766038}from'es-toolkit/compat';import{AISpinnerView as _0x2ef97d}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x2fcf22}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x50d753(_0x3b8905){['id'];static [_0x527be2(0xed)]={'remove':_0x527be2(0xab),'rename':_0x527be2(0xdc),'pin':_0x527be2(0xd2),'unpin':_0x527be2(0xf3)};[_0x527be2(0xf9)];[_0x527be2(0xd6)];[_0x527be2(0xcd)];constructor(_0x55185a,_0x3dfbe4){const _0x330868=_0x527be2;super(_0x55185a);const _0x5baf5e=this[_0x330868(0x109)];this[_0x330868(0x106)](_0x330868(0xb4),!0x1),this[_0x330868(0x106)](_0x330868(0xb2),!0x0),this[_0x330868(0x106)](_0x330868(0xd5),!!_0x3dfbe4[_0x330868(0xd5)]),this[_0x330868(0x106)](_0x330868(0xac),null),this['id']=_0x3dfbe4['id'];const {title:_0x50a28c,createdAt:_0x382e16,active:_0x55868f=!0x1}=_0x3dfbe4;this[_0x330868(0xcd)]=new _0x29fdad(),this[_0x330868(0xcd)][_0x330868(0xdf)]=_0x50a28c,this[_0x330868(0xcd)][_0x330868(0xd1)]({'attributes':{'class':[_0x330868(0xc2)]}});const _0x1c6df1=this[_0x330868(0xcb)](),_0x47f652=this[_0x330868(0xe5)](_0x55185a),_0x285b15=this[_0x330868(0xc9)](),_0xb11ee7=this[_0x330868(0x107)](_0x55185a,_0x50a28c),_0x270864=this[_0x330868(0xc0)](_0x55185a,_0xb11ee7),_0x13b8e7=this[_0x330868(0x10a)](_0x55185a,_0xb11ee7);this[_0x330868(0xf9)]=this[_0x330868(0xb0)](),this[_0x330868(0xd6)]=this[_0x330868(0xb0)](),this[_0x330868(0xd6)][_0x330868(0x104)](this[_0x330868(0xcd)]),this[_0x330868(0xf9)][_0x330868(0x104)](_0x47f652),this[_0x330868(0xf9)][_0x330868(0x104)](_0x285b15),this['on'](_0x330868(0xa9),(_0x541387,_0x47a29e,_0xe09e61)=>{const _0x413a3=_0x330868;this[_0x413a3(0xf9)][_0x413a3(0x103)](),this[_0x413a3(0xd6)][_0x413a3(0x103)](),_0xe09e61?(this[_0x413a3(0xf9)][_0x413a3(0x104)](_0x270864),this[_0x413a3(0xf9)][_0x413a3(0x104)](_0x13b8e7),this[_0x413a3(0xd6)][_0x413a3(0x104)](_0xb11ee7),_0xb11ee7[_0x413a3(0xfd)][_0x413a3(0xae)]()):(this[_0x413a3(0xf9)][_0x413a3(0x104)](_0x47f652),this[_0x413a3(0xf9)][_0x413a3(0x104)](_0x285b15),this[_0x413a3(0xd6)][_0x413a3(0x104)](this[_0x413a3(0xcd)]));}),this[_0x330868(0x100)]({'tag':'li','attributes':{'class':[_0x330868(0xcf),_0x55868f?_0x330868(0xef):'',_0x5baf5e['if'](_0x330868(0xb2),_0x330868(0xbe),_0x4fd624=>!_0x4fd624),_0x5baf5e['if'](_0x330868(0xb4),_0x330868(0xe4))],'role':_0x330868(0xcc)},'children':[{'tag':_0x330868(0xe6),'attributes':{'class':[_0x330868(0xd3)]},'children':[{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xc1),_0x5baf5e['if'](_0x330868(0xac),_0x330868(0xbe),_0xe970d4=>!!_0xe970d4)]},'children':_0x55868f?[_0x1c6df1]:[]},{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xc3),_0x5baf5e['if'](_0x330868(0xac),_0x330868(0xbe),_0x25031e=>!_0x25031e)]},'children':[this[_0x330868(0xd4)]()]}]},{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xf7)]},'children':[{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xbb)]},'on':{'click':this[_0x330868(0x109)]['to'](_0x330868(0xd8))},'children':[{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xfb)]},'children':[{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xc2),_0x5baf5e['if'](_0x330868(0xac),_0x330868(0xbe),_0x55ff10=>!!_0x55ff10)]},'children':this[_0x330868(0xd6)]},{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xf5),_0x5baf5e['if'](_0x330868(0xac),_0x330868(0xbe),_0x4cd9c2=>!_0x4cd9c2)]},'children':[{'text':_0x5baf5e['to'](_0x330868(0xac),_0x27555b=>_0x27555b?_0x2fcf22(this[_0x330868(0xb5)],AIChatHistoryListItemView[_0x330868(0xed)][_0x27555b]):'')}]}]},{'tag':_0x330868(0xe6),'attributes':{'class':[_0x330868(0x105)]},'children':[_0x382e16]}]},{'tag':_0x330868(0xe9),'attributes':{'class':[_0x330868(0xd7)]},'children':this[_0x330868(0xf9)]}]}]}),this['on'](_0x330868(0xd8),()=>{const _0x563f11=_0x330868;this[_0x563f11(0xb4)]||this[_0x563f11(0xa8)](_0x563f11(0xad),{'id':this['id']});});}[_0x527be2(0xdd)](_0x4d7775){const _0x3cd44a=_0x527be2;this[_0x3cd44a(0xcd)][_0x3cd44a(0xdf)]=_0x766038(_0x4d7775);}[_0x527be2(0xc4)](_0x468f4b,_0x209859){const _0x4d5452=_0x527be2;this[_0x4d5452(0x106)](_0x4d5452(0xac),_0x209859?_0x468f4b:null);}[_0x527be2(0xcb)](){const _0x3c59b6=_0x527be2,_0xc2d96e=new _0x5490db();return _0xc2d96e[_0x3c59b6(0x106)]({'content':_0x85bc50}),_0xc2d96e;}[_0x527be2(0xe5)](_0x458028){const _0x5341cc=_0x527be2,_0x26d62d=new _0x2c89f1(_0x458028);return _0x26d62d[_0x5341cc(0x106)]({'label':_0x2fcf22(_0x458028,_0x5341cc(0xde)),'icon':_0x1a08d6,'withText':!0x1,'tooltip':!0x0}),_0x26d62d[_0x5341cc(0xbf)](_0x5341cc(0xc6))['to'](this,_0x5341cc(0xd5)),_0x26d62d['on'](_0x5341cc(0xe3),()=>{const _0x552c8b=_0x5341cc,_0x1df3e6=!this[_0x552c8b(0xd5)];this[_0x552c8b(0xa8)](_0x552c8b(0xbc),{'id':this['id'],'pinned':_0x1df3e6});}),_0x26d62d;}[_0x527be2(0xc9)](){const _0x4a5b92=_0x527be2,_0x5d04af=_0x51d089(this[_0x4a5b92(0xb5)],_0x308659),_0x1d7589=_0x5d04af[_0x4a5b92(0xec)][_0x4a5b92(0xbd)];_0x5d04af[_0x4a5b92(0xb8)][_0x4a5b92(0x106)]({'label':_0x2fcf22(this[_0x4a5b92(0xb5)],_0x4a5b92(0xeb)),'icon':_0x53f7cb}),_0x5d04af[_0x4a5b92(0x101)]='sw';const _0x12f7dc=new _0x2c89f1(this[_0x4a5b92(0xb5)]);_0x12f7dc[_0x4a5b92(0x102)]=_0x2fcf22(this[_0x4a5b92(0xb5)],_0x4a5b92(0xe8)),_0x12f7dc[_0x4a5b92(0xc5)]=!0x0,_0x12f7dc['on'](_0x4a5b92(0xe3),()=>{const _0x6ec6cf=_0x4a5b92;this[_0x6ec6cf(0xb4)]=!0x0;});const _0x23b582=new _0x2c89f1(this[_0x4a5b92(0xb5)]);_0x23b582[_0x4a5b92(0x102)]=_0x2fcf22(this[_0x4a5b92(0xb5)],_0x4a5b92(0xe2)),_0x23b582[_0x4a5b92(0xc5)]=!0x0,_0x23b582['on'](_0x4a5b92(0xe3),()=>{const _0x4c3f1f=_0x4a5b92;this[_0x4c3f1f(0xb9)](_0x2fcf22(this[_0x4c3f1f(0xb5)],_0x4c3f1f(0xe7)),this[_0x4c3f1f(0xfd)])[_0x4c3f1f(0xce)](()=>{const _0x244522=_0x4c3f1f;this[_0x244522(0xa8)](_0x244522(0xba),{'id':this['id']});});});const _0x94b24b=new _0x4fd5b8(this[_0x4a5b92(0xb5)]),_0x56c047=new _0x3b8905(this[_0x4a5b92(0xb5)]);_0x56c047[_0x4a5b92(0xbd)][_0x4a5b92(0x104)](_0x12f7dc);const _0xeb4954=new _0x3b8905(this[_0x4a5b92(0xb5)]);return _0xeb4954[_0x4a5b92(0xbd)][_0x4a5b92(0x104)](_0x23b582),_0x94b24b[_0x4a5b92(0xb6)][_0x4a5b92(0xb3)]([_0x56c047,_0xeb4954]),_0x1d7589[_0x4a5b92(0x104)](_0x94b24b),_0x5d04af;}[_0x527be2(0x107)](_0x15212c,_0x31abe8){const _0x27f185=_0x527be2,_0x46b8f1=new _0x1c329c(_0x15212c),_0x1c60f0=_0x46b8f1[_0x27f185(0x109)];return _0x46b8f1[_0x27f185(0xee)]=_0x31abe8,_0x46b8f1[_0x27f185(0xd1)]({'on':{'keydown':_0x1c60f0['to'](_0x51a2a5=>{const _0x33a9c5=_0x27f185;_0x33a9c5(0xaa)==_0x51a2a5[_0x33a9c5(0xea)]&&this[_0x33a9c5(0xda)](_0x46b8f1);})}}),_0x46b8f1;}[_0x527be2(0xc0)](_0x56cc01,_0x56d43b){const _0x21cb96=_0x527be2,_0x533f8f=new _0x2c89f1(_0x56cc01);return _0x533f8f[_0x21cb96(0x106)]({'icon':_0x85bc50,'withText':!0x1,'tooltip':_0x2fcf22(_0x56cc01,_0x21cb96(0xe1))}),_0x533f8f[_0x21cb96(0xd1)]({'attributes':{'class':[_0x21cb96(0xf8)]}}),_0x533f8f['on'](_0x21cb96(0xe3),()=>{const _0x1122c7=_0x21cb96;this[_0x1122c7(0xda)](_0x56d43b);}),_0x533f8f;}[_0x527be2(0xda)](_0x263f24){const _0xa0c79c=_0x527be2,_0x29858f=_0x263f24[_0xa0c79c(0xfd)][_0xa0c79c(0xee)]||'';this[_0xa0c79c(0xcd)][_0xa0c79c(0xdf)]=_0x29858f,this[_0xa0c79c(0xb4)]=!0x1,this[_0xa0c79c(0xa8)](_0xa0c79c(0xb7),{'id':this['id'],'title':_0x29858f});}[_0x527be2(0x10a)](_0xfa093e,_0x57f812){const _0x4071ef=_0x527be2,_0x5a1b24=new _0x2c89f1(_0xfa093e);return _0x5a1b24[_0x4071ef(0x106)]({'icon':_0x5b679e,'withText':!0x1,'tooltip':_0x2fcf22(_0xfa093e,_0x4071ef(0x108))}),_0x5a1b24[_0x4071ef(0xd1)]({'attributes':{'class':[_0x4071ef(0xd9)]}}),_0x5a1b24['on'](_0x4071ef(0xe3),()=>{const _0x416472=_0x4071ef;this[_0x416472(0xb4)]=!0x1,_0x57f812[_0x416472(0xee)]=this[_0x416472(0xcd)][_0x416472(0xdf)]||'',this[_0x416472(0xa8)](_0x416472(0xf6));}),_0x5a1b24;}[_0x527be2(0xd4)](){const _0x31ba25=_0x527be2,_0x2e6627=new _0x2ef97d(_0x31ba25(0xf0));return _0x2e6627[_0x31ba25(0xb2)]=!0x0,_0x2e6627;}[_0x527be2(0xaf)](_0x10dc58){const _0x755c96=_0x527be2;return this[_0x755c96(0xcd)]&&_0x755c96(0xc8)==typeof this[_0x755c96(0xcd)][_0x755c96(0xdf)]&&this[_0x755c96(0xcd)][_0x755c96(0xdf)][_0x755c96(0xff)](_0x10dc58)?{'title':!0x0}:null;}[_0x527be2(0xca)](_0x51ffe7){const _0x10ac7f=_0x527be2;this[_0x10ac7f(0xcd)][_0x10ac7f(0xca)](_0x51ffe7);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x248a0e=_0x521c;(function(_0x4bc786,_0x5e7a67){const _0x566eaa=_0x521c,_0x41556e=_0x4bc786();while(!![]){try{const _0x309f05=-parseInt(_0x566eaa(0x192))/0x1+parseInt(_0x566eaa(0x193))/0x2*(-parseInt(_0x566eaa(0x1a2))/0x3)+-parseInt(_0x566eaa(0x197))/0x4*(-parseInt(_0x566eaa(0x18e))/0x5)+-parseInt(_0x566eaa(0x19a))/0x6*(parseInt(_0x566eaa(0x1a3))/0x7)+parseInt(_0x566eaa(0x1a9))/0x8*(-parseInt(_0x566eaa(0x1a6))/0x9)+-parseInt(_0x566eaa(0x196))/0xa*(-parseInt(_0x566eaa(0x1a7))/0xb)+parseInt(_0x566eaa(0x1ac))/0xc;if(_0x309f05===_0x5e7a67)break;else _0x41556e['push'](_0x41556e['shift']());}catch(_0x5e0ee7){_0x41556e['push'](_0x41556e['shift']());}}}(_0x97a4,0xa9d4b));function _0x521c(_0x3bc7a8,_0x3f7e56){const _0x97a49b=_0x97a4();return _0x521c=function(_0x521c07,_0x268dbb){_0x521c07=_0x521c07-0x18d;let _0x37daae=_0x97a49b[_0x521c07];return _0x37daae;},_0x521c(_0x3bc7a8,_0x3f7e56);}import{ListItemView as _0x4d48c0,View as _0x447a58,ListView as _0x17f99b}from'ckeditor5/src/ui.js';function _0x97a4(){const _0x15225b=['items','ck-ai-chat-history__section','set','12380VVUABP','8AiBJLg','ck-hidden','_itemsListView','602170NrAOlF','348DjSzSb','addMany','filter','1542OclQxu','ck-ai-chat-history__section-title','isVisible','remove','splice','bindTemplate','itemsViews','isMatching','207744QlGTVP','14882QmglVB','indexOf','highlightText','9yeVteW','165cqihqm','getItem','8141880fYDJiH','find','length','13357920KfLecM','removeItem','div','title','setTemplate','30615TuJtsW'];_0x97a4=function(){return _0x15225b;};return _0x97a4();}export class AIChatHistoryListView extends _0x4d48c0{[_0x248a0e(0x1af)];[_0x248a0e(0x1a0)];[_0x248a0e(0x195)];constructor(_0x527413,{title:_0x469560,items:_0x5b15ac}){const _0x4b41bb=_0x248a0e;super(_0x527413);const _0x486dce=this[_0x4b41bb(0x19f)];this[_0x4b41bb(0x191)](_0x4b41bb(0x19c),!0x0),this[_0x4b41bb(0x1af)]=_0x469560,this[_0x4b41bb(0x1a0)]=_0x5b15ac;const _0x4ca697=new _0x447a58(_0x527413);_0x4ca697[_0x4b41bb(0x18d)]({'tag':_0x4b41bb(0x1ae),'attributes':{'class':[_0x4b41bb(0x19b)]},'children':[this[_0x4b41bb(0x1af)]]}),this[_0x4b41bb(0x195)]=new _0x17f99b(_0x527413),this[_0x4b41bb(0x195)][_0x4b41bb(0x18f)][_0x4b41bb(0x198)](this[_0x4b41bb(0x1a0)]),this[_0x4b41bb(0x18d)]({'tag':'li','attributes':{'class':[_0x4b41bb(0x190),_0x486dce['if'](_0x4b41bb(0x19c),_0x4b41bb(0x194),_0x2b0375=>!_0x2b0375)]},'children':[_0x4ca697,this[_0x4b41bb(0x195)]]});}[_0x248a0e(0x199)](_0x5014fe){const _0x8080c9=_0x248a0e,_0x214e3b=this[_0x8080c9(0x1a0)][_0x8080c9(0x1ab)];let _0x3456da=0x0;for(const _0x26abdc of this[_0x8080c9(0x1a0)]){if(_0x5014fe){const _0x1db69c=_0x26abdc[_0x8080c9(0x1a1)](_0x5014fe);_0x26abdc[_0x8080c9(0x19c)]=!!_0x1db69c,_0x26abdc[_0x8080c9(0x1a5)](_0x5014fe);}else _0x26abdc[_0x8080c9(0x19c)]=!0x0,_0x26abdc[_0x8080c9(0x1a5)](null);_0x26abdc[_0x8080c9(0x19c)]&&_0x3456da++;}return this[_0x8080c9(0x19c)]=_0x3456da>0x0,{'resultsCount':_0x3456da,'totalItemsCount':_0x214e3b};}[_0x248a0e(0x1a8)](_0x1a91fa){const _0x286190=_0x248a0e;return this[_0x286190(0x1a0)][_0x286190(0x1aa)](_0x124ad9=>_0x124ad9['id']===_0x1a91fa);}[_0x248a0e(0x1ad)](_0xb6cf68){const _0x3a1019=_0x248a0e,_0x320881=this[_0x3a1019(0x1a0)][_0x3a1019(0x1a4)](_0xb6cf68);-0x1!==_0x320881&&(this[_0x3a1019(0x1a0)][_0x3a1019(0x19e)](_0x320881,0x1),this[_0x3a1019(0x195)][_0x3a1019(0x18f)][_0x3a1019(0x19d)](_0xb6cf68));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x36f506=_0x44bf;(function(_0x3ce3b2,_0x5168e1){const _0x15c573=_0x44bf,_0x4c8772=_0x3ce3b2();while(!![]){try{const _0x1c9a99=parseInt(_0x15c573(0x17e))/0x1*(parseInt(_0x15c573(0x18c))/0x2)+-parseInt(_0x15c573(0x17f))/0x3+-parseInt(_0x15c573(0x18e))/0x4*(parseInt(_0x15c573(0x180))/0x5)+parseInt(_0x15c573(0x18b))/0x6+-parseInt(_0x15c573(0x185))/0x7+parseInt(_0x15c573(0x18a))/0x8*(-parseInt(_0x15c573(0x183))/0x9)+-parseInt(_0x15c573(0x188))/0xa*(-parseInt(_0x15c573(0x18d))/0xb);if(_0x1c9a99===_0x5168e1)break;else _0x4c8772['push'](_0x4c8772['shift']());}catch(_0x4b9c67){_0x4c8772['push'](_0x4c8772['shift']());}}}(_0x40da,0x1eb29));import{ListView as _0x44c586}from'ckeditor5/src/ui.js';function _0x44bf(_0x4a9b46,_0x1a4ad5){const _0x40daec=_0x40da();return _0x44bf=function(_0x44bfd8,_0x24ae37){_0x44bfd8=_0x44bfd8-0x17e;let _0x196e9a=_0x40daec[_0x44bfd8];return _0x196e9a;},_0x44bf(_0x4a9b46,_0x1a4ad5);}export class AIChatHistorySectionListView extends _0x44c586{[_0x36f506(0x181)];constructor(_0xa61ffa,_0x2aa872){const _0x173d5c=_0x36f506;super(_0xa61ffa),this[_0x173d5c(0x181)]=_0x2aa872,this[_0x173d5c(0x187)][_0x173d5c(0x182)](this[_0x173d5c(0x181)]),this[_0x173d5c(0x189)]({'attributes':{'class':[_0x173d5c(0x186)]}});}[_0x36f506(0x184)](_0x48165d){const _0x5e5daa=_0x36f506;let _0xa608e=0x0,_0x4bac76=0x0;for(const _0x3dc5cc of this[_0x5e5daa(0x181)]){const {resultsCount:_0x17f5b1,totalItemsCount:_0x3f2991}=_0x3dc5cc[_0x5e5daa(0x184)](_0x48165d);_0xa608e+=_0x17f5b1,_0x4bac76+=_0x3f2991;}return{'resultsCount':_0xa608e,'totalItemsCount':_0x4bac76};}}function _0x40da(){const _0x4b3701=['463384oHoNfM','46650gaXBCM','6198eibLGX','11WzJeAX','5316DlmGtu','67SJQtvN','78813gBXJRf','35XOvORO','sections','addMany','27gJpJsU','filter','124082IIyDkT','ck-ai-chat-history__sections','items','1373980aKrGkr','extendTemplate'];_0x40da=function(){return _0x4b3701;};return _0x40da();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x9070(_0x3ee975,_0x330f96){const _0x29c7f9=_0x29c7();return _0x9070=function(_0x907045,_0x287954){_0x907045=_0x907045-0x10d;let _0x238fa8=_0x29c7f9[_0x907045];return _0x238fa8;},_0x9070(_0x3ee975,_0x330f96);}const _0x32357c=_0x9070;(function(_0x392a4b,_0x25eb92){const _0x2573b5=_0x9070,_0x444ea5=_0x392a4b();while(!![]){try{const _0x25ea2a=-parseInt(_0x2573b5(0x146))/0x1+-parseInt(_0x2573b5(0x154))/0x2+parseInt(_0x2573b5(0x10f))/0x3+parseInt(_0x2573b5(0x124))/0x4*(parseInt(_0x2573b5(0x11f))/0x5)+parseInt(_0x2573b5(0x13c))/0x6+parseInt(_0x2573b5(0x141))/0x7+-parseInt(_0x2573b5(0x12a))/0x8;if(_0x25ea2a===_0x25eb92)break;else _0x444ea5['push'](_0x444ea5['shift']());}catch(_0x34c47d){_0x444ea5['push'](_0x444ea5['shift']());}}}(_0x29c7,0x81375));import{View as _0x54a589,SearchTextView as _0x3222d4,FormHeaderView as _0x86cf60,ButtonView as _0x3ea19e}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x1491d7,IconCancel as _0x521d25,IconPlus as _0xa30ac2}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x13523e}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x571185}from'./aichathistorylistview.js';function _0x29c7(){const _0xbae310=['_createSkeletonView','ck-rounded-corners','execute','ck-ai-chat-error','openChat','addMany','indexOf','ltr','isMaximized','445238JVqLGH','ck-ai-chat-history','_createListItemViews','search','resizeButton','ck-hidden','_createErrorView','AI_CHAT_LABEL_NEW_CHAT','_updateViewVisibility','render','children','isSearchViewVisible','extendTemplate','splice','isVisible','ck-ai-chat-history__empty-message','errorMessage','ck-ai-chat__start-conversation','AI_CHAT_HISTORY_SEARCH_LABEL','updateHistoryItemsWithCategories','1757721WLaSkg','add','change:hasItems','fieldView','isLoading','_refreshSearch','ck-reset_all','updateTitle','_createEmptyStateView','element','change:errorMessage','ck-ai-chat-history__content','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:isLoading','ck-ai-header\x20ck-ai-header_history','length','15fdlblF','updateItemLoadingState','_createSearchView','remove','div','34564NXFGoj','setTemplate','items','fire','removeItem','queryView','168208DOHSAt','errorView','skeletonView','delegate','sections','updateItemTitle','aiHistory','getItem','sectionsView','locale','searchView','some','set','itemsViews','emptyView','value','removeHistoryItem','clear','2776188pQnBDJ','bind','ck-ai-chat-history__empty','isEmptyViewVisible','title','5071416FFaatH','AI_CHAT_HISTORY_EMPTY_MESSAGE','updateLoadingState','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_HEADING','1026102KWjkaR','hasItems','bindTemplate','ck-ai-chat-error__dismiss-button','push'];_0x29c7=function(){return _0xbae310;};return _0x29c7();}import{AIChatHistoryListItemView as _0x304c03}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2f820d}from'../aichathistoryui.js';import{AISkeletonView as _0x5818f2,SKELETON_DEFINITIONS as _0x1c3910}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4e51d4}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2c2f18}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x54a589{[_0x32357c(0x134)];[_0x32357c(0x12b)];[_0x32357c(0x12c)];[_0x32357c(0x138)];[_0x32357c(0x132)];[_0x32357c(0x158)];constructor(_0x437233,_0x467ecc){const _0x4ef331=_0x32357c;super(_0x437233),this[_0x4ef331(0x136)](_0x4ef331(0x147),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x113),!0x0),this[_0x4ef331(0x136)](_0x4ef331(0x164),''),this[_0x4ef331(0x136)](_0x4ef331(0x153),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x15f),!0x1),this[_0x4ef331(0x136)](_0x4ef331(0x13f),!0x1);const _0x520209=new _0x86cf60(_0x437233,{'label':_0x2c2f18(_0x437233,_0x4ef331(0x145)),'icon':_0x1491d7,'class':_0x4ef331(0x11d)});_0x467ecc&&(this[_0x4ef331(0x158)]=_0x4e51d4(_0x437233,this),_0x520209[_0x4ef331(0x15e)][_0x4ef331(0x110)](this[_0x4ef331(0x158)])),this[_0x4ef331(0x132)]=new _0x13523e(_0x437233,[]),this[_0x4ef331(0x132)][_0x4ef331(0x12d)](..._0x2f820d)['to'](this),this[_0x4ef331(0x12b)]=this[_0x4ef331(0x15a)](),this[_0x4ef331(0x12c)]=this[_0x4ef331(0x14b)](),this[_0x4ef331(0x138)]=this[_0x4ef331(0x117)](),this[_0x4ef331(0x134)]=this[_0x4ef331(0x121)](),this['on'](_0x4ef331(0x11c),()=>this[_0x4ef331(0x15c)]()),this['on'](_0x4ef331(0x111),()=>this[_0x4ef331(0x15c)]()),this['on'](_0x4ef331(0x119),()=>this[_0x4ef331(0x15c)]()),this[_0x4ef331(0x125)]({'tag':_0x4ef331(0x123),'attributes':{'class':['ck',_0x4ef331(0x115),_0x4ef331(0x155),_0x4ef331(0x14c)],'dir':_0x4ef331(0x152)},'children':[_0x520209,{'tag':_0x4ef331(0x123),'attributes':{'class':[_0x4ef331(0x11a)]},'children':[this[_0x4ef331(0x12c)],this[_0x4ef331(0x12b)],this[_0x4ef331(0x138)],this[_0x4ef331(0x134)]]}]});}[_0x32357c(0x15c)](){const _0x471638=_0x32357c;this[_0x471638(0x15f)]=!this[_0x471638(0x113)]&&this[_0x471638(0x147)]&&!this[_0x471638(0x164)],this[_0x471638(0x13f)]=!this[_0x471638(0x113)]&&!this[_0x471638(0x147)]&&!this[_0x471638(0x164)];}[_0x32357c(0x121)](){const _0x5792db=_0x32357c,_0x4effbd=new _0x3222d4(this[_0x5792db(0x133)],{'filteredView':this[_0x5792db(0x132)],'queryView':{'label':_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x10d))},'infoView':{'text':{'notFound':{'primary':_0x5b467c=>_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x11b),_0x5b467c),'secondary':_0x2c2f18(this[_0x5792db(0x133)],_0x5792db(0x144))}}}});return _0x4effbd['on'](_0x5792db(0x15d),()=>{const _0x29e76f=_0x5792db;this[_0x29e76f(0x134)][_0x29e76f(0x15e)][_0x29e76f(0x110)](this[_0x29e76f(0x12b)],0x1);}),_0x4effbd[_0x5792db(0x160)]({'attributes':{'class':[this[_0x5792db(0x148)]['if'](_0x5792db(0x15f),_0x5792db(0x159),_0x476a45=>!_0x476a45)]}}),_0x4effbd;}[_0x32357c(0x14b)](){const _0x124f24=_0x32357c,_0x27db4b=new _0x5818f2(this[_0x124f24(0x133)],_0x1c3910[_0x124f24(0x130)]);return _0x27db4b[_0x124f24(0x160)]({'attributes':{'class':[this[_0x124f24(0x148)]['if'](_0x124f24(0x113),_0x124f24(0x159),_0x25af8c=>!_0x25af8c)]}}),_0x27db4b;}[_0x32357c(0x15a)](){const _0x25bb01=_0x32357c,_0x4d0f00=new _0x54a589(this[_0x25bb01(0x133)]),_0x2a3762=new _0x3ea19e(this[_0x25bb01(0x133)]);return _0x2a3762[_0x25bb01(0x136)]({'withText':!0x1,'icon':_0x521d25,'class':_0x25bb01(0x149)}),_0x2a3762[_0x25bb01(0x13d)](_0x25bb01(0x162))['to'](this,_0x25bb01(0x147),_0x570d4f=>!!_0x570d4f),_0x2a3762['on'](_0x25bb01(0x14d),()=>{const _0x474213=_0x25bb01;this[_0x474213(0x164)]='';}),_0x4d0f00[_0x25bb01(0x125)]({'tag':_0x25bb01(0x123),'attributes':{'class':['ck',_0x25bb01(0x14e),this[_0x25bb01(0x148)]['if'](_0x25bb01(0x164),_0x25bb01(0x159),_0x55cf5d=>!_0x55cf5d)]},'children':[{'tag':'p','children':[{'text':this[_0x25bb01(0x148)]['to'](_0x25bb01(0x164))}]},_0x2a3762]}),_0x4d0f00;}[_0x32357c(0x117)](){const _0x4e0962=_0x32357c,_0x2d4b5a=new _0x3ea19e(this[_0x4e0962(0x133)]);_0x2d4b5a[_0x4e0962(0x136)]({'label':_0x2c2f18(this[_0x4e0962(0x133)],_0x4e0962(0x15b)),'withText':!0x0,'icon':_0xa30ac2,'class':_0x4e0962(0x165)}),_0x2d4b5a['on'](_0x4e0962(0x14d),()=>{const _0x5de924=_0x4e0962;this[_0x5de924(0x127)](_0x5de924(0x14f));});const _0x2d9cc7=new _0x54a589(this[_0x4e0962(0x133)]);return _0x2d9cc7[_0x4e0962(0x125)]({'tag':_0x4e0962(0x123),'attributes':{'class':[_0x4e0962(0x13e),this[_0x4e0962(0x148)]['if'](_0x4e0962(0x13f),_0x4e0962(0x159),_0x1aa492=>!_0x1aa492)]},'children':[{'tag':'p','attributes':{'class':[_0x4e0962(0x163)]},'children':[_0x2c2f18(this[_0x4e0962(0x133)],_0x4e0962(0x142))]},_0x2d4b5a]}),_0x2d9cc7;}[_0x32357c(0x156)](_0xea088b,_0x4049ce){const _0x7f5785=_0x32357c,_0x79c2f6=[];for(const _0x2279af of _0xea088b){const _0x3a918f=new _0x304c03(_0x4049ce,_0x2279af);_0x3a918f[_0x7f5785(0x12d)](..._0x2f820d)['to'](this),_0x79c2f6[_0x7f5785(0x14a)](_0x3a918f);}return _0x79c2f6;}[_0x32357c(0x10e)](_0x19dad9){const _0x16f455=_0x32357c,_0x14dd92=this[_0x16f455(0x133)]||'en',_0xce3e24=[];for(const _0x3404cc of _0x19dad9){const _0x4c71dc=this[_0x16f455(0x156)](_0x3404cc[_0x16f455(0x126)],_0x14dd92);_0xce3e24[_0x16f455(0x14a)](new _0x571185(_0x14dd92,{'title':_0x3404cc[_0x16f455(0x140)],'items':_0x4c71dc}));}this[_0x16f455(0x132)][_0x16f455(0x12e)]=_0xce3e24,this[_0x16f455(0x132)][_0x16f455(0x126)][_0x16f455(0x13b)](),this[_0x16f455(0x132)][_0x16f455(0x126)][_0x16f455(0x150)](_0xce3e24),this[_0x16f455(0x147)]=_0x19dad9[_0x16f455(0x135)](_0xcfe253=>_0xcfe253[_0x16f455(0x126)][_0x16f455(0x11e)]>0x0),this[_0x16f455(0x114)]();}[_0x32357c(0x13a)](_0xe8f0c1){const _0x3f6b70=_0x32357c;for(const _0x1ffee8 of this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)]){const _0x18a29c=_0x1ffee8[_0x3f6b70(0x131)](_0xe8f0c1);if(_0x18a29c){if(_0x1ffee8[_0x3f6b70(0x128)](_0x18a29c),0x0===_0x1ffee8[_0x3f6b70(0x137)][_0x3f6b70(0x11e)]){const _0x127efa=this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x151)](_0x1ffee8);-0x1!==_0x127efa&&(this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x161)](_0x127efa,0x1),this[_0x3f6b70(0x132)][_0x3f6b70(0x126)][_0x3f6b70(0x122)](_0x1ffee8));}this[_0x3f6b70(0x147)]=this[_0x3f6b70(0x132)][_0x3f6b70(0x12e)][_0x3f6b70(0x11e)]>0x0,this[_0x3f6b70(0x114)]();break;}}}[_0x32357c(0x12f)](_0x2e50f1,_0xc5220e){const _0x4dec15=_0x32357c;for(const _0x58bad2 of this[_0x4dec15(0x132)][_0x4dec15(0x12e)]){const _0x2712d4=_0x58bad2[_0x4dec15(0x131)](_0x2e50f1);if(_0x2712d4){_0x2712d4[_0x4dec15(0x116)](_0xc5220e);break;}}}[_0x32357c(0x120)](_0x4d8c75,_0x451c39,_0xf3ab49){const _0x3da2dd=_0x32357c;for(const _0x56c297 of this[_0x3da2dd(0x132)][_0x3da2dd(0x12e)]){const _0x8ffde3=_0x56c297[_0x3da2dd(0x131)](_0x4d8c75);if(_0x8ffde3){_0x8ffde3[_0x3da2dd(0x143)](_0x451c39,_0xf3ab49);break;}}}[_0x32357c(0x114)](){const _0x20843e=_0x32357c;if(this[_0x20843e(0x147)]){const _0x44cb52=this[_0x20843e(0x134)][_0x20843e(0x129)][_0x20843e(0x112)]?.[_0x20843e(0x118)]?.[_0x20843e(0x139)]||'';this[_0x20843e(0x134)][_0x20843e(0x157)](_0x44cb52);}}}
|
|
23
|
+
function _0x9f7b(_0x51d10b,_0x1a0281){const _0x4a3a25=_0x4a3a();return _0x9f7b=function(_0x9f7b27,_0x5a4e19){_0x9f7b27=_0x9f7b27-0x11a;let _0x36811c=_0x4a3a25[_0x9f7b27];return _0x36811c;},_0x9f7b(_0x51d10b,_0x1a0281);}const _0x345706=_0x9f7b;(function(_0x122514,_0x140c7c){const _0x30eb41=_0x9f7b,_0x7b9c1e=_0x122514();while(!![]){try{const _0x1eff68=parseInt(_0x30eb41(0x160))/0x1+parseInt(_0x30eb41(0x140))/0x2*(parseInt(_0x30eb41(0x13a))/0x3)+parseInt(_0x30eb41(0x11c))/0x4*(parseInt(_0x30eb41(0x135))/0x5)+parseInt(_0x30eb41(0x125))/0x6*(-parseInt(_0x30eb41(0x12f))/0x7)+-parseInt(_0x30eb41(0x139))/0x8*(parseInt(_0x30eb41(0x174))/0x9)+parseInt(_0x30eb41(0x153))/0xa*(parseInt(_0x30eb41(0x124))/0xb)+parseInt(_0x30eb41(0x15d))/0xc;if(_0x1eff68===_0x140c7c)break;else _0x7b9c1e['push'](_0x7b9c1e['shift']());}catch(_0x403478){_0x7b9c1e['push'](_0x7b9c1e['shift']());}}}(_0x4a3a,0x798f6));import{View as _0x400490,SearchTextView as _0x2819c8,FormHeaderView as _0x2bf012,ButtonView as _0x429f71}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x900533,IconCancel as _0x4b4329,IconPlus as _0x12927b}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x14f794}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x139da0}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4a2efb}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x10e9e8}from'../aichathistoryui.js';import{AISkeletonView as _0x10ed7d,SKELETON_DEFINITIONS as _0xa5156c}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x46f892}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x599956}from'../../aicore/utils/common-translations.js';function _0x4a3a(){const _0x2a1fd2=['ck-hidden','aiHistory','openChat','locale','bindTemplate','isEmptyViewVisible','ck-ai-chat-history','length','div','36GDwTDc','ck-reset_all','delegate','_createErrorView','_createSkeletonView','387628dRwYli','change:isLoading','change:errorMessage','change:hasItems','isMaximized','title','itemsViews','render','6193OPlRPt','6990uXOovP','ck-ai-chat-error','bind','fieldView','queryView','search','fire','updateItemLoadingState','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat-history__empty-message','2758Bibhvo','AI_CHAT_HISTORY_HEADING','emptyView','_createSearchView','extendTemplate','ck-ai-header\x20ck-ai-header_history','20JEvINg','sections','remove','ck-rounded-corners','1941752JSNzkM','948kjVbIZ','children','_createEmptyStateView','add','skeletonView','clear','4126uZcerF','ltr','some','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','errorMessage','updateHistoryItemsWithCategories','ck-ai-chat-history__content','removeHistoryItem','ck-ai-chat-history__empty','indexOf','value','updateItemTitle','searchView','isVisible','_refreshSearch','resizeButton','hasItems','items','getItem','8630yJXqzX','sectionsView','AI_CHAT_HISTORY_SEARCH_LABEL','updateTitle','push','removeItem','ck-ai-chat-error__dismiss-button','errorView','_updateViewVisibility','isSearchViewVisible','3405504BVsEfF','AI_CHAT_HISTORY_EMPTY_MESSAGE','setTemplate','118599CYJDud','execute','ck-ai-chat__start-conversation','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','updateLoadingState','splice','set','_createListItemViews','element','addMany','isLoading'];_0x4a3a=function(){return _0x2a1fd2;};return _0x4a3a();}export class AIChatHistoryView extends _0x400490{[_0x345706(0x14c)];[_0x345706(0x15a)];[_0x345706(0x13e)];[_0x345706(0x131)];[_0x345706(0x154)];[_0x345706(0x14f)];constructor(_0x371ac4,_0x54f48f){const _0x1fc80c=_0x345706;super(_0x371ac4),this[_0x1fc80c(0x166)](_0x1fc80c(0x150),!0x1),this[_0x1fc80c(0x166)](_0x1fc80c(0x16a),!0x0),this[_0x1fc80c(0x166)](_0x1fc80c(0x144),''),this[_0x1fc80c(0x166)](_0x1fc80c(0x120),!0x1),this[_0x1fc80c(0x166)](_0x1fc80c(0x15c),!0x1),this[_0x1fc80c(0x166)](_0x1fc80c(0x170),!0x1);const _0x577185=new _0x2bf012(_0x371ac4,{'label':_0x599956(_0x371ac4,_0x1fc80c(0x130)),'icon':_0x900533,'class':_0x1fc80c(0x134)});_0x54f48f&&(this[_0x1fc80c(0x14f)]=_0x46f892(_0x371ac4,this),_0x577185[_0x1fc80c(0x13b)][_0x1fc80c(0x13d)](this[_0x1fc80c(0x14f)])),this[_0x1fc80c(0x154)]=new _0x14f794(_0x371ac4,[]),this[_0x1fc80c(0x154)][_0x1fc80c(0x176)](..._0x10e9e8)['to'](this),this[_0x1fc80c(0x15a)]=this[_0x1fc80c(0x11a)](),this[_0x1fc80c(0x13e)]=this[_0x1fc80c(0x11b)](),this[_0x1fc80c(0x131)]=this[_0x1fc80c(0x13c)](),this[_0x1fc80c(0x14c)]=this[_0x1fc80c(0x132)](),this['on'](_0x1fc80c(0x11d),()=>this[_0x1fc80c(0x15b)]()),this['on'](_0x1fc80c(0x11f),()=>this[_0x1fc80c(0x15b)]()),this['on'](_0x1fc80c(0x11e),()=>this[_0x1fc80c(0x15b)]()),this[_0x1fc80c(0x15f)]({'tag':_0x1fc80c(0x173),'attributes':{'class':['ck',_0x1fc80c(0x175),_0x1fc80c(0x171),_0x1fc80c(0x138)],'dir':_0x1fc80c(0x141)},'children':[_0x577185,{'tag':_0x1fc80c(0x173),'attributes':{'class':[_0x1fc80c(0x146)]},'children':[this[_0x1fc80c(0x13e)],this[_0x1fc80c(0x15a)],this[_0x1fc80c(0x131)],this[_0x1fc80c(0x14c)]]}]});}[_0x345706(0x15b)](){const _0x50e747=_0x345706;this[_0x50e747(0x15c)]=!this[_0x50e747(0x16a)]&&this[_0x50e747(0x150)]&&!this[_0x50e747(0x144)],this[_0x50e747(0x170)]=!this[_0x50e747(0x16a)]&&!this[_0x50e747(0x150)]&&!this[_0x50e747(0x144)];}[_0x345706(0x132)](){const _0x49455c=_0x345706,_0x3be45c=new _0x2819c8(this[_0x49455c(0x16e)],{'filteredView':this[_0x49455c(0x154)],'queryView':{'label':_0x599956(this[_0x49455c(0x16e)],_0x49455c(0x155))},'infoView':{'text':{'notFound':{'primary':_0x32cda1=>_0x599956(this[_0x49455c(0x16e)],_0x49455c(0x163),_0x32cda1),'secondary':_0x599956(this[_0x49455c(0x16e)],_0x49455c(0x143))}}}});return _0x3be45c['on'](_0x49455c(0x123),()=>{const _0x1e78e8=_0x49455c;this[_0x1e78e8(0x14c)][_0x1e78e8(0x13b)][_0x1e78e8(0x13d)](this[_0x1e78e8(0x15a)],0x1);}),_0x3be45c[_0x49455c(0x133)]({'attributes':{'class':[this[_0x49455c(0x16f)]['if'](_0x49455c(0x15c),_0x49455c(0x16b),_0x2b6de7=>!_0x2b6de7)]}}),_0x3be45c;}[_0x345706(0x11b)](){const _0x4e19de=_0x345706,_0x1c9848=new _0x10ed7d(this[_0x4e19de(0x16e)],_0xa5156c[_0x4e19de(0x16c)]);return _0x1c9848[_0x4e19de(0x133)]({'attributes':{'class':[this[_0x4e19de(0x16f)]['if'](_0x4e19de(0x16a),_0x4e19de(0x16b),_0x51bd08=>!_0x51bd08)]}}),_0x1c9848;}[_0x345706(0x11a)](){const _0x5e403e=_0x345706,_0x1ca204=new _0x400490(this[_0x5e403e(0x16e)]),_0x4cc323=new _0x429f71(this[_0x5e403e(0x16e)]);return _0x4cc323[_0x5e403e(0x166)]({'withText':!0x1,'icon':_0x4b4329,'class':_0x5e403e(0x159)}),_0x4cc323[_0x5e403e(0x127)](_0x5e403e(0x14d))['to'](this,_0x5e403e(0x150),_0x5dea51=>!!_0x5dea51),_0x4cc323['on'](_0x5e403e(0x161),()=>{const _0x1d2ea3=_0x5e403e;this[_0x1d2ea3(0x144)]='';}),_0x1ca204[_0x5e403e(0x15f)]({'tag':_0x5e403e(0x173),'attributes':{'class':['ck',_0x5e403e(0x126),this[_0x5e403e(0x16f)]['if'](_0x5e403e(0x144),_0x5e403e(0x16b),_0x3b6bf7=>!_0x3b6bf7)]},'children':[{'tag':'p','children':[{'text':this[_0x5e403e(0x16f)]['to'](_0x5e403e(0x144))}]},_0x4cc323]}),_0x1ca204;}[_0x345706(0x13c)](){const _0x35bf25=_0x345706,_0x5abc99=new _0x429f71(this[_0x35bf25(0x16e)]);_0x5abc99[_0x35bf25(0x166)]({'label':_0x599956(this[_0x35bf25(0x16e)],_0x35bf25(0x12d)),'withText':!0x0,'icon':_0x12927b,'class':_0x35bf25(0x162)}),_0x5abc99['on'](_0x35bf25(0x161),()=>{const _0x2d6cc6=_0x35bf25;this[_0x2d6cc6(0x12b)](_0x2d6cc6(0x16d));});const _0x573249=new _0x400490(this[_0x35bf25(0x16e)]);return _0x573249[_0x35bf25(0x15f)]({'tag':_0x35bf25(0x173),'attributes':{'class':[_0x35bf25(0x148),this[_0x35bf25(0x16f)]['if'](_0x35bf25(0x170),_0x35bf25(0x16b),_0x315962=>!_0x315962)]},'children':[{'tag':'p','attributes':{'class':[_0x35bf25(0x12e)]},'children':[_0x599956(this[_0x35bf25(0x16e)],_0x35bf25(0x15e))]},_0x5abc99]}),_0x573249;}[_0x345706(0x167)](_0x570f14,_0x60da6a){const _0x599056=_0x345706,_0x19b636=[];for(const _0x4ad580 of _0x570f14){const _0x5527e8=new _0x4a2efb(_0x60da6a,_0x4ad580);_0x5527e8[_0x599056(0x176)](..._0x10e9e8)['to'](this),_0x19b636[_0x599056(0x157)](_0x5527e8);}return _0x19b636;}[_0x345706(0x145)](_0x5494b3){const _0x561da4=_0x345706,_0x46a80a=this[_0x561da4(0x16e)]||'en',_0x5829ae=[];for(const _0x24ccbd of _0x5494b3){const _0x4c80b9=this[_0x561da4(0x167)](_0x24ccbd[_0x561da4(0x151)],_0x46a80a);_0x5829ae[_0x561da4(0x157)](new _0x139da0(_0x46a80a,{'title':_0x24ccbd[_0x561da4(0x121)],'items':_0x4c80b9}));}this[_0x561da4(0x154)][_0x561da4(0x136)]=_0x5829ae,this[_0x561da4(0x154)][_0x561da4(0x151)][_0x561da4(0x13f)](),this[_0x561da4(0x154)][_0x561da4(0x151)][_0x561da4(0x169)](_0x5829ae),this[_0x561da4(0x150)]=_0x5494b3[_0x561da4(0x142)](_0x29f260=>_0x29f260[_0x561da4(0x151)][_0x561da4(0x172)]>0x0),this[_0x561da4(0x14e)]();}[_0x345706(0x147)](_0x348697){const _0xbe59f3=_0x345706;for(const _0x51ae07 of this[_0xbe59f3(0x154)][_0xbe59f3(0x136)]){const _0x42834e=_0x51ae07[_0xbe59f3(0x152)](_0x348697);if(_0x42834e){if(_0x51ae07[_0xbe59f3(0x158)](_0x42834e),0x0===_0x51ae07[_0xbe59f3(0x122)][_0xbe59f3(0x172)]){const _0x56bb61=this[_0xbe59f3(0x154)][_0xbe59f3(0x136)][_0xbe59f3(0x149)](_0x51ae07);-0x1!==_0x56bb61&&(this[_0xbe59f3(0x154)][_0xbe59f3(0x136)][_0xbe59f3(0x165)](_0x56bb61,0x1),this[_0xbe59f3(0x154)][_0xbe59f3(0x151)][_0xbe59f3(0x137)](_0x51ae07));}this[_0xbe59f3(0x150)]=this[_0xbe59f3(0x154)][_0xbe59f3(0x136)][_0xbe59f3(0x172)]>0x0,this[_0xbe59f3(0x14e)]();break;}}}[_0x345706(0x14b)](_0xa1df1b,_0x17eed3){const _0x410843=_0x345706;for(const _0x4de36f of this[_0x410843(0x154)][_0x410843(0x136)]){const _0x1e6108=_0x4de36f[_0x410843(0x152)](_0xa1df1b);if(_0x1e6108){_0x1e6108[_0x410843(0x156)](_0x17eed3);break;}}}[_0x345706(0x12c)](_0x4777bd,_0x385e0d,_0xa2d537){const _0x5d9c4f=_0x345706;for(const _0x5123eb of this[_0x5d9c4f(0x154)][_0x5d9c4f(0x136)]){const _0x3bd4eb=_0x5123eb[_0x5d9c4f(0x152)](_0x4777bd);if(_0x3bd4eb){_0x3bd4eb[_0x5d9c4f(0x164)](_0x385e0d,_0xa2d537);break;}}}[_0x345706(0x14e)](){const _0x5ea9cf=_0x345706;if(this[_0x5ea9cf(0x150)]){const _0x2ca9c2=this[_0x5ea9cf(0x14c)][_0x5ea9cf(0x129)][_0x5ea9cf(0x128)]?.[_0x5ea9cf(0x168)]?.[_0x5ea9cf(0x14a)]||'';this[_0x5ea9cf(0x14c)][_0x5ea9cf(0x12a)](_0x2ca9c2);}}}
|
package/src/aiconfig.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module ai/aiconfig
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import type
|
|
9
|
+
import { type AIAssistantConfig } from './aiassistant/aiassistant.js';
|
|
10
10
|
import { type AIChatConfig } from './aichat/aichat.js';
|
|
11
11
|
import { type AISuggestionActionName } from './aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';
|
|
12
12
|
import { type AIQuickActionsConfig } from './aiquickactions/aiquickactions.js';
|
|
@@ -68,19 +68,40 @@ export interface AIConfig {
|
|
|
68
68
|
*/
|
|
69
69
|
reviewMode?: AIReviewModeConfig;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Defines what actions are available for the user when interacting with AI responses in AI Chat and AI Quick Actions features.
|
|
72
72
|
*
|
|
73
|
-
*
|
|
74
|
-
* The first action is used as the default action for the dropdown button.
|
|
75
|
-
* By default, it contains the following actions:
|
|
73
|
+
* Users can perform following three actions:
|
|
76
74
|
*
|
|
77
|
-
*
|
|
75
|
+
* * `'applySuggestion'` - applies the presented change directly into the editor content.
|
|
76
|
+
* * `'insertSuggestion'` - applies the presented change as a suggestion, which can be later on accepted or rejected.
|
|
77
|
+
* * `'showChangeInText'` - locates the changed part of document in the editor and opens a balloon with the preview.
|
|
78
78
|
*
|
|
79
|
-
*
|
|
79
|
+
* By default, the editor configuration enables all available actions, in following order:
|
|
80
80
|
*
|
|
81
81
|
* ```ts
|
|
82
82
|
* [ 'applySuggestion', 'insertSuggestion', 'showChangeInText' ]
|
|
83
83
|
* ```
|
|
84
|
+
*
|
|
85
|
+
* This setting impacts:
|
|
86
|
+
*
|
|
87
|
+
* * The action dropdown located below an AI reply in the chat feed. The setting affects the main action for the button, as well as
|
|
88
|
+
* actions available in the dropdown and their order.
|
|
89
|
+
* * The buttons located in the header of each change preview in the chat feed. Note, that the header is visible only if the AI Chat
|
|
90
|
+
* proposed multiple changes.
|
|
91
|
+
* * The buttons located in the balloon which shows the change preview.
|
|
92
|
+
*
|
|
93
|
+
* Through this configuration option, you can change how users use the AI replies. For example, if you want to force users to always
|
|
94
|
+
* insert AI-proposed changes as suggestions, omit `'applySuggestion'` action.
|
|
95
|
+
*
|
|
96
|
+
* Please note other factors that impact the availability of these actions:
|
|
97
|
+
*
|
|
98
|
+
* * Buttons related to `'applySuggestion'` action are hidden if {@link module:track-changes/trackchanges~TrackChanges track changes}
|
|
99
|
+
* feature is turned on.
|
|
100
|
+
* * Buttons related to `'insertSuggestion'` action are hidden if {@link module:track-changes/trackchanges~TrackChanges track changes}
|
|
101
|
+
* feature is not loaded in the editor.
|
|
102
|
+
*
|
|
103
|
+
* Please note, that due to these factors, it is possible to accidentally configure the editor in a way, that no UI elements are
|
|
104
|
+
* presented to the user.
|
|
84
105
|
*/
|
|
85
106
|
availableReplyActions?: Array<AISuggestionActionName>;
|
|
86
107
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x193c25=_0x14cd;function _0x14cd(_0x12185f,_0x2ef1b0){const _0x51145d=_0x5114();return _0x14cd=function(_0x14cd2b,_0x109fb0){_0x14cd2b=_0x14cd2b-0x7f;let _0x4a3190=_0x51145d[_0x14cd2b];return _0x4a3190;},_0x14cd(_0x12185f,_0x2ef1b0);}(function(_0x7dcf12,_0x21d112){const _0x5b03fa=_0x14cd,_0x103ed7=_0x7dcf12();while(!![]){try{const _0x7269d=parseInt(_0x5b03fa(0xbb))/0x1*(parseInt(_0x5b03fa(0x106))/0x2)+-parseInt(_0x5b03fa(0x10e))/0x3+-parseInt(_0x5b03fa(0x84))/0x4+-parseInt(_0x5b03fa(0xca))/0x5*(parseInt(_0x5b03fa(0xc5))/0x6)+parseInt(_0x5b03fa(0x80))/0x7*(parseInt(_0x5b03fa(0xb3))/0x8)+parseInt(_0x5b03fa(0xa9))/0x9+parseInt(_0x5b03fa(0xf7))/0xa;if(_0x7269d===_0x21d112)break;else _0x103ed7['push'](_0x103ed7['shift']());}catch(_0x258c6d){_0x103ed7['push'](_0x103ed7['shift']());}}}(_0x5114,0xb7faf));import{createParser as _0x2079d3}from'eventsource-parser';import{ContextPlugin as _0x47e89f}from'ckeditor5/src/core.js';import{CKEditorError as _0x292ec4}from'ckeditor5/src/utils.js';import{getTranslation as _0x1a66a9}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x4777e4){const _0x1e8fe8=_0x14cd;_0x4777e4[_0x1e8fe8(0xc4)]=_0x1e8fe8(0xd1),_0x4777e4[_0x1e8fe8(0xb5)]=_0x1e8fe8(0xed),_0x4777e4[_0x1e8fe8(0xeb)]=_0x1e8fe8(0xd3),_0x4777e4[_0x1e8fe8(0xb4)]=_0x1e8fe8(0x88),_0x4777e4[_0x1e8fe8(0xe3)]=_0x1e8fe8(0x96),_0x4777e4[_0x1e8fe8(0xbe)]=_0x1e8fe8(0x9c),_0x4777e4[_0x1e8fe8(0x105)]=_0x1e8fe8(0xcb),_0x4777e4[_0x1e8fe8(0x7f)]=_0x1e8fe8(0xe2);}(AIActionsNames||(AIActionsNames={}));function _0x5114(){const _0x55efa7=['/conversations?','parse','upsertCustomAIReviewRating','translate','MAKE_SHORTER','callSystemReview','signal','getReader','/documents/','/reviews/system/','fetchConversationMessages','/web-resources/','IMPROVE_WRITING','keys','fix-grammar','ai.serviceUrl','positiveCount','queryAssistant','Content-Type','context','fetchConversation','upsertCustomAIActionRating','/reviews/custom/calls/','/actions/system/','10377210IHVXHg','_handleError','pluginName','_getStreamReader','catch','AI_MODEL_DESCRIPTION_','text','reset','/calls','file','updateConversation','/models/1','_sendApiRequest','then','MAKE_TONE_FORMAL','2MancGe','startConversation','json','PATCH','deleteWebResource','upsertAIActionRating','search','GET','3607854AmNCKI','items','TRANSLATE','7805IOyQZF','length','ai-request-aborted','isPremiumPlugin','2308444zmgpaX','upsertAIReviewRating','CloudServices','application/json','make-longer','/calls/','/messages/','deleteFile','fetchConversations','request','status','POST','feed','locale','/conversations','statusText','fetchDocument','init','make-shorter','read','/reviews/custom/calls','decode','/messages','uploadDocument','make-tone-casual','plugins','excludeEmpty','stringify','callCustomReview','map','token','100','executeAction','toUpperCase','append','isOfficialPlugin','/actions/custom/calls/','13147524KDSopQ','limit','define','/documents','config','/files','/web-resources','true','push','data','784xOOFuu','MAKE_LONGER','FIX_GRAMMAR','group','uploadUrl','getModels','/conversations/','ai-request-failed','328513UoBmUh','value','ai-missing-token','MAKE_TONE_CASUAL','/files/','_apiUrl','/ratings','get','upsertAIChatRating','CONTINUE','12WCYlxY','requires','https://ai.cke-cs.com/v1','AbortError','AIConnector','1007570TjIwMU','make-tone-formal','uploadFile','name','abortController','_decoder','_token','continue','body','improve-writing','attributes','toString','PUT','executeCustomAction','DELETE','deleteDocument','/actions/custom/calls','deleteConversation','releaseLock','Bearer\x20','totalCount'];_0x5114=function(){return _0x55efa7;};return _0x5114();}export class AIConnector extends _0x47e89f{[_0x193c25(0xc0)];[_0x193c25(0xd0)];[_0x193c25(0xcf)];static get[_0x193c25(0xc6)](){const _0x2ba6f2=_0x193c25;return[_0x2ba6f2(0x86)];}static get[_0x193c25(0xf9)](){const _0x47568a=_0x193c25;return _0x47568a(0xc9);}static get[_0x193c25(0xa7)](){return!0x0;}static get[_0x193c25(0x83)](){return!0x0;}constructor(_0x49a388){const _0x577fc2=_0x193c25;super(_0x49a388),this[_0x577fc2(0xf2)][_0x577fc2(0xad)][_0x577fc2(0xab)](_0x577fc2(0xee),_0x577fc2(0xc7)),this[_0x577fc2(0xc0)]=this[_0x577fc2(0xf2)][_0x577fc2(0xad)][_0x577fc2(0xc2)](_0x577fc2(0xee)),this[_0x577fc2(0xd0)]=null,this[_0x577fc2(0xcf)]=new TextDecoder();}[_0x193c25(0x95)](){const _0x41e5db=_0x193c25,_0x2e41af=this[_0x41e5db(0xf2)][_0x41e5db(0x9d)][_0x41e5db(0xc2)](_0x41e5db(0x86));if(!_0x2e41af[_0x41e5db(0xa2)])throw new _0x292ec4(_0x41e5db(0xbd),this);this[_0x41e5db(0xd0)]=_0x2e41af[_0x41e5db(0xa2)];}[_0x193c25(0x107)](_0x3339b9,_0x1993f9){const _0x3b6a86=_0x193c25,_0x2bbd1b=this[_0x3b6a86(0x103)](_0x3b6a86(0x92),_0x3b6a86(0x8f),{'id':_0x3339b9,'group':_0x1993f9});return{'getConversation':async()=>(await _0x2bbd1b[_0x3b6a86(0x8d)])[_0x3b6a86(0x108)](),'abortController':_0x2bbd1b[_0x3b6a86(0xce)]};}[_0x193c25(0xf0)]({message:_0x185843,conversationId:_0x329a18,parts:_0x501492,capabilities:_0x5cd838,model:_0x27c964,quickActionData:_0x15f25c}){const _0x106ccc=_0x193c25,_0x37ab3d={..._0x15f25c&&{'quickActionData':_0x15f25c}},_0x1de2e8={'prompt':_0x185843,'content':_0x501492,'model':_0x27c964,..._0x5cd838&&{'capabilities':_0x5cd838},...Object[_0x106ccc(0xec)](_0x37ab3d)[_0x106ccc(0x81)]>0x0&&{'attributes':_0x37ab3d}},_0x3b845b=this[_0x106ccc(0x103)](_0x106ccc(0xb9)+_0x329a18+_0x106ccc(0x9a),_0x106ccc(0x8f),_0x1de2e8);return{'getStream':async()=>{const _0x1fa4af=_0x106ccc,_0xdd1f56=(await _0x3b845b[_0x1fa4af(0x8d)])[_0x1fa4af(0xd2)];return this[_0x1fa4af(0xfa)](_0xdd1f56);},'abortController':_0x3b845b[_0x106ccc(0xce)]};}[_0x193c25(0xd7)]({content:_0x41810e,message:_0x2ee402,model:_0x51c71d,outputFormat:_0x47f842}){const _0x1638dd=_0x193c25,_0x554312={'content':[{'type':_0x1638dd(0xfd),'content':_0x41810e}],'prompt':_0x2ee402,'model':_0x51c71d,'outputFormat':_0x47f842},_0x6da509=this[_0x1638dd(0x103)](_0x1638dd(0xda),_0x1638dd(0x8f),_0x554312);return{'getStream':async()=>{const _0x4a1765=_0x1638dd,_0x4b6709=(await _0x6da509[_0x4a1765(0x8d)])[_0x4a1765(0xd2)];return this[_0x4a1765(0xfa)](_0x4b6709);},'abortController':_0x6da509[_0x1638dd(0xce)]};}[_0x193c25(0xa4)]({actionName:_0x4b76f5,content:_0x3ea0bf,args:_0x488135}){const _0x1a885d=_0x193c25,_0x5990c1={'content':[{'type':_0x1a885d(0xfd),'content':_0x3ea0bf}],'args':_0x488135},_0x16fe0d=this[_0x1a885d(0x103)](_0x1a885d(0xf6)+_0x4b76f5+_0x1a885d(0xff),_0x1a885d(0x8f),_0x5990c1);return{'getStream':async()=>{const _0x54b076=_0x1a885d,_0x3c70cd=(await _0x16fe0d[_0x54b076(0x8d)])[_0x54b076(0xd2)];return this[_0x54b076(0xfa)](_0x3c70cd);},'abortController':_0x16fe0d[_0x1a885d(0xce)]};}[_0x193c25(0xcc)](_0x1590bb,_0x53d980,_0xf3bac0){const _0x46d0de=_0x193c25,_0x3c1f5a=new FormData();_0x3c1f5a[_0x46d0de(0xa6)](_0x46d0de(0x100),_0x53d980,_0x53d980[_0x46d0de(0xcd)]),_0xf3bac0&&_0x3c1f5a[_0x46d0de(0xa6)](_0x46d0de(0xd4),JSON[_0x46d0de(0x9f)](_0xf3bac0));const _0x1758ff=this[_0x46d0de(0x103)](_0x46d0de(0xb9)+_0x1590bb+_0x46d0de(0xae),_0x46d0de(0x8f),_0x3c1f5a);return{'getId':async()=>(await _0x1758ff[_0x46d0de(0x8d)])[_0x46d0de(0x108)](),'abortController':_0x1758ff[_0x46d0de(0xce)]};}[_0x193c25(0x94)](_0x28a399,_0x22cbb2){const _0x7a4069=_0x193c25,_0x5e53e7=this[_0x7a4069(0x103)](_0x7a4069(0xb9)+_0x28a399+_0x7a4069(0xe7)+_0x22cbb2,_0x7a4069(0x10d));return{'getDocument':async()=>(await _0x5e53e7[_0x7a4069(0x8d)])[_0x7a4069(0x108)](),'abortController':_0x5e53e7[_0x7a4069(0xce)]};}[_0x193c25(0x9b)](_0x43c2ff,_0x325f44,_0x5ee7c3){const _0x3e8f46=_0x193c25,_0x366fcf={'content':_0x325f44};_0x5ee7c3&&(_0x366fcf[_0x3e8f46(0xd4)]=_0x5ee7c3);const _0x20dc04=this[_0x3e8f46(0x103)](_0x3e8f46(0xb9)+_0x43c2ff+_0x3e8f46(0xac),_0x3e8f46(0x8f),_0x366fcf);return{'getId':async()=>(await _0x20dc04[_0x3e8f46(0x8d)])[_0x3e8f46(0x108)](),'abortController':_0x20dc04[_0x3e8f46(0xce)]};}[_0x193c25(0x8c)](_0xc2fa20,_0x313ee2){const _0x419cd9=_0x193c25,_0x37a080=new URLSearchParams();_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0x9e),_0x419cd9(0xb0)),_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0xaa),_0x419cd9(0xa3)),_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0xb6),_0xc2fa20),_0x313ee2&&_0x37a080[_0x419cd9(0xa6)](_0x419cd9(0x10c),_0x313ee2);const _0x2f81ab=this[_0x419cd9(0x103)](_0x419cd9(0xdf)+_0x37a080[_0x419cd9(0xd5)](),_0x419cd9(0x10d));return{'getConversations':async()=>{const _0x1e474d=_0x419cd9,_0x4274e3=await _0x2f81ab[_0x1e474d(0x8d)];return(await _0x4274e3[_0x1e474d(0x108)]())[_0x1e474d(0x10f)];},'abortController':_0x2f81ab[_0x419cd9(0xce)]};}[_0x193c25(0xdb)](_0x56a789){const _0x58280a=_0x193c25,_0x51ca4d=this[_0x58280a(0x103)](_0x58280a(0xb9)+_0x56a789,_0x58280a(0xd8));return{'execute':async()=>{const _0x1f42a6=_0x58280a;await _0x51ca4d[_0x1f42a6(0x8d)];},'abortController':_0x51ca4d[_0x58280a(0xce)]};}[_0x193c25(0x101)](_0x30c1e3,_0x12625e){const _0x244049=_0x193c25,_0x27ea74=this[_0x244049(0x103)](_0x244049(0xb9)+_0x30c1e3,_0x244049(0x109),_0x12625e);return{'getResult':async()=>(await _0x27ea74[_0x244049(0x8d)],_0x12625e),'abortController':_0x27ea74[_0x244049(0xce)]};}[_0x193c25(0xf3)](_0x2b3d00){const _0x36348b=_0x193c25,_0x11c8d8=this[_0x36348b(0x103)](_0x36348b(0xb9)+_0x2b3d00,_0x36348b(0x10d));return{'getConversation':async()=>(await _0x11c8d8[_0x36348b(0x8d)])[_0x36348b(0x108)](),'abortController':_0x11c8d8[_0x36348b(0xce)]};}[_0x193c25(0xe9)](_0x5dd926){const _0x1d7f38=_0x193c25,_0x12791f=this[_0x1d7f38(0x103)](_0x1d7f38(0xb9)+_0x5dd926+_0x1d7f38(0x9a),_0x1d7f38(0x10d));return{'getMessages':async()=>{const _0x14475f=_0x1d7f38,_0x57f463=await _0x12791f[_0x14475f(0x8d)];return(await _0x57f463[_0x14475f(0x108)]())[_0x14475f(0x10f)];},'abortController':_0x12791f[_0x1d7f38(0xce)]};}[_0x193c25(0xb7)](_0x4a7721,_0xa6cb10,_0x43d9b6){const _0x418680=_0x193c25,_0x44c33b=this[_0x418680(0x103)](_0x418680(0xb9)+_0x4a7721+_0x418680(0xaf),_0x418680(0x8f),{'url':_0xa6cb10,'attributes':_0x43d9b6});return{'getId':async()=>(await _0x44c33b[_0x418680(0x8d)])[_0x418680(0x108)](),'abortController':_0x44c33b[_0x418680(0xce)]};}[_0x193c25(0xb8)](){const _0x12ce4d=_0x193c25,_0x180f5d=this[_0x12ce4d(0x103)](_0x12ce4d(0x102),_0x12ce4d(0x10d));return{'list':async()=>{const _0xddcbe2=_0x12ce4d,_0x3ce218=await(await _0x180f5d[_0xddcbe2(0x8d)])[_0xddcbe2(0x108)](),_0x330d65=_0x3ce218[_0xddcbe2(0x10f)][_0xddcbe2(0xa1)](_0x50e706=>({..._0x50e706,'description':_0x1a66a9(this[_0xddcbe2(0xf2)][_0xddcbe2(0x91)],_0xddcbe2(0xfc)+_0x50e706['id'][_0xddcbe2(0xa5)]())}));return{..._0x3ce218,'items':_0x330d65};},'abortController':_0x180f5d[_0x12ce4d(0xce)]};}[_0x193c25(0x8b)](_0x4d783e,_0x348a08){const _0x1df7b7=_0x193c25,_0x266eac=this[_0x1df7b7(0x103)](_0x1df7b7(0xb9)+_0x4d783e+_0x1df7b7(0xbf)+_0x348a08,_0x1df7b7(0xd8));return{'execute':async()=>{const _0x31caa6=_0x1df7b7;await _0x266eac[_0x31caa6(0x8d)];},'abortController':_0x266eac[_0x1df7b7(0xce)]};}[_0x193c25(0xd9)](_0x58f85c,_0x93e021){const _0x239115=_0x193c25,_0x58f2ee=this[_0x239115(0x103)](_0x239115(0xb9)+_0x58f85c+_0x239115(0xe7)+_0x93e021,_0x239115(0xd8));return{'execute':async()=>{const _0x4c938f=_0x239115;await _0x58f2ee[_0x4c938f(0x8d)];},'abortController':_0x58f2ee[_0x239115(0xce)]};}[_0x193c25(0x10a)](_0x1eea38,_0x3e0e06){const _0x2f2351=_0x193c25,_0x1f8038=this[_0x2f2351(0x103)](_0x2f2351(0xb9)+_0x1eea38+_0x2f2351(0xea)+_0x3e0e06,_0x2f2351(0xd8));return{'execute':async()=>{const _0x2ecd3b=_0x2f2351;await _0x1f8038[_0x2ecd3b(0x8d)];},'abortController':_0x1f8038[_0x2f2351(0xce)]};}[_0x193c25(0xe4)]({reviewName:_0x22fc59,content:_0x2e2e22,args:_0x20a996}){const _0x5cb27f=_0x193c25,_0x3ea5c2=this[_0x5cb27f(0x103)](_0x5cb27f(0xe8)+_0x22fc59+_0x5cb27f(0xff),_0x5cb27f(0x8f),{'content':[{'type':_0x5cb27f(0xfd),'content':_0x2e2e22}],'args':_0x20a996});return{'getStream':async()=>{const _0x60c8b3=_0x5cb27f,_0x56c35b=(await _0x3ea5c2[_0x60c8b3(0x8d)])[_0x60c8b3(0xd2)];return this[_0x60c8b3(0xfa)](_0x56c35b);},'abortController':_0x3ea5c2[_0x5cb27f(0xce)]};}[_0x193c25(0xa0)]({content:_0x45bae7,prompt:_0x14a8a3,model:_0x53c5ec}){const _0x5ecc94=_0x193c25,_0x3c53bb=this[_0x5ecc94(0x103)](_0x5ecc94(0x98),_0x5ecc94(0x8f),{'content':[{'type':_0x5ecc94(0xfd),'content':_0x45bae7}],'prompt':_0x14a8a3,'model':_0x53c5ec});return{'getStream':async()=>{const _0x17fcf0=_0x5ecc94,_0xe130ae=(await _0x3c53bb[_0x17fcf0(0x8d)])[_0x17fcf0(0xd2)];return this[_0x17fcf0(0xfa)](_0xe130ae);},'abortController':_0x3c53bb[_0x5ecc94(0xce)]};}[_0x193c25(0xc3)](_0x5f0e9a,_0x5822fc,_0x28af47){const _0x369d79=_0x193c25,_0x3798fc=this[_0x369d79(0x103)](_0x369d79(0xb9)+_0x5f0e9a+_0x369d79(0x8a)+_0x5822fc+_0x369d79(0xc1),_0x369d79(0xd6),{'positiveCount':_0x28af47[_0x369d79(0xef)],'totalCount':_0x28af47[_0x369d79(0xde)]});return{'execute':async()=>{const _0xef49fb=_0x369d79;await _0x3798fc[_0xef49fb(0x8d)];},'abortController':_0x3798fc[_0x369d79(0xce)]};}[_0x193c25(0x10b)](_0x2b3cea,_0x549fde,_0xd218a4){const _0xd9ba07=_0x193c25,_0x3c2ea1=this[_0xd9ba07(0x103)](_0xd9ba07(0xf6)+_0x2b3cea+_0xd9ba07(0x89)+_0x549fde+_0xd9ba07(0xc1),_0xd9ba07(0xd6),{'positiveCount':_0xd218a4[_0xd9ba07(0xef)],'totalCount':_0xd218a4[_0xd9ba07(0xde)]});return{'execute':async()=>{const _0x2d3644=_0xd9ba07;await _0x3c2ea1[_0x2d3644(0x8d)];},'abortController':_0x3c2ea1[_0xd9ba07(0xce)]};}[_0x193c25(0xf4)](_0x37b5af,_0x412bb8){const _0x3dd48b=_0x193c25,_0x35121c=this[_0x3dd48b(0x103)](_0x3dd48b(0xa8)+_0x37b5af+_0x3dd48b(0xc1),_0x3dd48b(0xd6),{'positiveCount':_0x412bb8[_0x3dd48b(0xef)],'totalCount':_0x412bb8[_0x3dd48b(0xde)]});return{'execute':async()=>{const _0x10e6fc=_0x3dd48b;await _0x35121c[_0x10e6fc(0x8d)];},'abortController':_0x35121c[_0x3dd48b(0xce)]};}[_0x193c25(0x85)](_0x5088a5,_0x2437dc,_0x650f4e,_0x45da92){const _0x24930f=_0x193c25,_0x27f00d=this[_0x24930f(0x103)](_0x24930f(0xe8)+_0x5088a5+_0x24930f(0x89)+_0x2437dc+_0x24930f(0xc1),_0x24930f(0xd6),{'positiveCount':_0x650f4e[_0x24930f(0xef)],'totalCount':_0x650f4e[_0x24930f(0xde)],'dataId':_0x45da92});return{'execute':async()=>{const _0x475408=_0x24930f;await _0x27f00d[_0x475408(0x8d)];},'abortController':_0x27f00d[_0x24930f(0xce)]};}[_0x193c25(0xe1)](_0x1d8571,_0xa42d47,_0x54994b){const _0x29d5de=_0x193c25,_0x92d000=this[_0x29d5de(0x103)](_0x29d5de(0xf5)+_0x1d8571+_0x29d5de(0xc1),_0x29d5de(0xd6),{'positiveCount':_0xa42d47[_0x29d5de(0xef)],'totalCount':_0xa42d47[_0x29d5de(0xde)],'dataId':_0x54994b});return{'execute':async()=>{const _0x134650=_0x29d5de;await _0x92d000[_0x134650(0x8d)];},'abortController':_0x92d000[_0x29d5de(0xce)]};}[_0x193c25(0x103)](_0x216527,_0x2bea80,_0x4dfc39){const _0x49e7bb=_0x193c25,_0x5ca384=new AbortController(),_0x552e51=_0x4dfc39 instanceof FormData,_0x408692={'Authorization':_0x49e7bb(0xdd)+this[_0x49e7bb(0xd0)]?.[_0x49e7bb(0xbc)]};_0x4dfc39&&!_0x552e51&&(_0x408692[_0x49e7bb(0xf1)]=_0x49e7bb(0x87));const _0x23007a={'method':_0x2bea80,'headers':_0x408692,'signal':_0x5ca384[_0x49e7bb(0xe5)]};return _0x4dfc39&&(_0x23007a[_0x49e7bb(0xd2)]=_0x552e51?_0x4dfc39:JSON[_0x49e7bb(0x9f)](_0x4dfc39)),{'request':fetch(''+this[_0x49e7bb(0xc0)]+_0x216527,_0x23007a)[_0x49e7bb(0xfb)](_0x1693d3=>{const _0x3b38f2=_0x49e7bb;this[_0x3b38f2(0xf8)](_0x1693d3);})[_0x49e7bb(0x104)](_0x9c99f1=>{const _0x22ea6d=_0x49e7bb;if(!_0x9c99f1['ok'])throw new _0x292ec4(_0x22ea6d(0xba),this,{'url':this[_0x22ea6d(0xc0)],'path':_0x216527,'method':_0x2bea80,'body':_0x4dfc39,'status':(_0x9c99f1||{})[_0x22ea6d(0x8e)],'statusText':(_0x9c99f1||{})[_0x22ea6d(0x93)]});return _0x9c99f1;}),'abortController':_0x5ca384};}async*[_0x193c25(0xfa)](_0x3fea12){const _0x1968b7=_0x193c25,_0x4bd7f9=[],_0x307bd=_0x3fea12[_0x1968b7(0xe6)](),_0xbabd1a=_0x2079d3({'onError':_0x1b772e=>{const _0x3e917d=_0x1968b7;this[_0x3e917d(0xf8)](_0x1b772e);},'onEvent':_0x1a0d19=>{const _0x3ab9e1=_0x1968b7;_0x1a0d19[_0x3ab9e1(0xb2)]=JSON[_0x3ab9e1(0xe0)](_0x1a0d19[_0x3ab9e1(0xb2)]),_0x4bd7f9[_0x3ab9e1(0xb1)](_0x1a0d19);}});try{let _0x5f2640=!0x1;for(;!_0x5f2640;){const {done:_0x294766,value:_0x19390b}=await _0x307bd[_0x1968b7(0x97)]();_0x294766&&(_0x5f2640=!0x0),_0xbabd1a[_0x1968b7(0x90)](this[_0x1968b7(0xcf)][_0x1968b7(0x99)](_0x19390b,{'stream':!0x0})),yield*_0x4bd7f9,_0x4bd7f9[_0x1968b7(0x81)]=0x0;}}catch(_0x18e762){this[_0x1968b7(0xf8)](_0x18e762);}finally{_0x307bd[_0x1968b7(0xdc)](),_0xbabd1a[_0x1968b7(0xfe)]();}}[_0x193c25(0xf8)](_0x484a9f){const _0x1acc24=_0x193c25;if(_0x484a9f instanceof _0x292ec4)throw _0x484a9f;if(_0x484a9f instanceof Error&&_0x1acc24(0xc8)===_0x484a9f[_0x1acc24(0xcd)])throw new _0x292ec4(_0x1acc24(0x82),this,{'originalError':_0x484a9f});throw new _0x292ec4(_0x1acc24(0xba),this,{'originalError':_0x484a9f});}}
|
|
23
|
+
const _0x16a027=_0x488c;(function(_0x38a86a,_0x5ad10d){const _0xb5a187=_0x488c,_0x56d6df=_0x38a86a();while(!![]){try{const _0x50c15d=-parseInt(_0xb5a187(0x21d))/0x1+parseInt(_0xb5a187(0x1da))/0x2+parseInt(_0xb5a187(0x1d9))/0x3+-parseInt(_0xb5a187(0x224))/0x4*(parseInt(_0xb5a187(0x1b3))/0x5)+parseInt(_0xb5a187(0x1ab))/0x6+parseInt(_0xb5a187(0x1c3))/0x7*(parseInt(_0xb5a187(0x1ad))/0x8)+-parseInt(_0xb5a187(0x1ce))/0x9;if(_0x50c15d===_0x5ad10d)break;else _0x56d6df['push'](_0x56d6df['shift']());}catch(_0x1ee1ff){_0x56d6df['push'](_0x56d6df['shift']());}}}(_0x4e02,0xb9149));import{createParser as _0xd5ea59}from'eventsource-parser';function _0x488c(_0x4030e2,_0xe3e595){const _0x4e0282=_0x4e02();return _0x488c=function(_0x488c0c,_0x2cb6f6){_0x488c0c=_0x488c0c-0x1a3;let _0x31914e=_0x4e0282[_0x488c0c];return _0x31914e;},_0x488c(_0x4030e2,_0xe3e595);}import{ContextPlugin as _0x35dccf}from'ckeditor5/src/core.js';import{CKEditorError as _0x253a4e}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x103614){const _0x3f14b1=_0x488c;_0x103614[_0x3f14b1(0x22e)]=_0x3f14b1(0x22a),_0x103614[_0x3f14b1(0x1bb)]=_0x3f14b1(0x200),_0x103614[_0x3f14b1(0x1d4)]=_0x3f14b1(0x1cc),_0x103614[_0x3f14b1(0x21c)]=_0x3f14b1(0x1f6),_0x103614[_0x3f14b1(0x1f0)]=_0x3f14b1(0x1bd),_0x103614[_0x3f14b1(0x22f)]=_0x3f14b1(0x1a7),_0x103614[_0x3f14b1(0x221)]=_0x3f14b1(0x1fe),_0x103614[_0x3f14b1(0x216)]=_0x3f14b1(0x1c7);}(AIActionsNames||(AIActionsNames={}));function _0x4e02(){const _0x756430=['stringify','append','statusText','uploadFile','deleteConversation','pluginName','AIConnector','getReader','get','AbortError','/conversations/','/conversations','fetchDocument','isPremiumPlugin','ai.serviceUrl','push','/actions/system/','decode','config','TRANSLATE','_decoder','_sendApiRequest','json','/actions/custom/calls','getModels','MAKE_LONGER','1126766mmnUCo','signal','request','items','MAKE_TONE_FORMAL','upsertAIChatRating','upsertCustomAIReviewRating','37132IiRBJa','name','queryAssistant','PUT','isOfficialPlugin','CloudServices','continue','/web-resources','ai-request-failed','positiveCount','CONTINUE','MAKE_TONE_CASUAL','/conversations?','fetchConversation','status','deleteDocument','make-tone-casual','init','Bearer\x20','/files/','3123402ISoNyG','search','11070152vAweKB','feed','releaseLock','uploadDocument','deleteWebResource','/reviews/system/','715maAOZV','/files','keys','callCustomReview','/ratings','/calls','/web-resources/','upsertCustomAIActionRating','FIX_GRAMMAR','https://ai.cke-cs.com/v1','make-shorter','totalCount','context','/reviews/custom/calls/','plugins','body','7COQTqI','true','requires','upsertAIReviewRating','translate','/messages/','POST','DELETE','fetchConversations','improve-writing','100','8055234iRulrB','executeCustomAction','/actions/custom/calls/','/documents','upsertAIActionRating','fetchConversationMessages','IMPROVE_WRITING','/documents/','text','_apiUrl','_getStreamReader','2195781EqSWnl','2942174zkfETc','ai-missing-token','define','modificationId','GET','value','toString','/messages','group','length','then','deleteFile','startConversation','data','file','Content-Type','read','/reviews/custom/calls','_handleError','catch','token','attributes','MAKE_SHORTER','/calls/','executeAction','abortController','callSystemReview','limit','make-longer','_token','/models/1','PATCH','ai-request-aborted','excludeEmpty','parse','updateConversation','make-tone-formal','uploadUrl','fix-grammar','application/json','reset'];_0x4e02=function(){return _0x756430;};return _0x4e02();}export class AIConnector extends _0x35dccf{[_0x16a027(0x1d7)];[_0x16a027(0x1f7)];[_0x16a027(0x217)];static get[_0x16a027(0x1c5)](){const _0x149c0f=_0x16a027;return[_0x149c0f(0x229)];}static get[_0x16a027(0x208)](){const _0x36fba5=_0x16a027;return _0x36fba5(0x209);}static get[_0x16a027(0x228)](){return!0x0;}static get[_0x16a027(0x210)](){return!0x0;}constructor(_0x54f303){const _0x57667c=_0x16a027;super(_0x54f303),this[_0x57667c(0x1bf)][_0x57667c(0x215)][_0x57667c(0x1dc)](_0x57667c(0x211),_0x57667c(0x1bc)),this[_0x57667c(0x1d7)]=this[_0x57667c(0x1bf)][_0x57667c(0x215)][_0x57667c(0x20b)](_0x57667c(0x211)),this[_0x57667c(0x1f7)]=null,this[_0x57667c(0x217)]=new TextDecoder();}[_0x16a027(0x1a8)](){const _0x4e914e=_0x16a027,_0x22937e=this[_0x4e914e(0x1bf)][_0x4e914e(0x1c1)][_0x4e914e(0x20b)](_0x4e914e(0x229));if(!_0x22937e[_0x4e914e(0x1ee)])throw new _0x253a4e(_0x4e914e(0x1db),this);this[_0x4e914e(0x1f7)]=_0x22937e[_0x4e914e(0x1ee)];}[_0x16a027(0x1e6)](_0x17ae54,_0x2ede02){const _0x525696=_0x16a027,_0x50cab3=this[_0x525696(0x218)](_0x525696(0x20e),_0x525696(0x1c9),{'id':_0x17ae54,'group':_0x2ede02});return{'getConversation':async()=>(await _0x50cab3[_0x525696(0x21f)])[_0x525696(0x219)](),'abortController':_0x50cab3[_0x525696(0x1f3)]};}[_0x16a027(0x226)]({message:_0x3474c7,conversationId:_0x258d40,parts:_0x236f20,capabilities:_0x576671,model:_0x1ba48a,quickActionData:_0x44debc}){const _0x57ce3e=_0x16a027,_0x14bef7={..._0x44debc&&{'quickActionData':_0x44debc}},_0x2f79c6={'prompt':_0x3474c7,'content':_0x236f20,'model':_0x1ba48a,..._0x576671&&{'capabilities':_0x576671},...Object[_0x57ce3e(0x1b5)](_0x14bef7)[_0x57ce3e(0x1e3)]>0x0&&{'attributes':_0x14bef7}},_0x42dcbc=this[_0x57ce3e(0x218)](_0x57ce3e(0x20d)+_0x258d40+_0x57ce3e(0x1e1),_0x57ce3e(0x1c9),_0x2f79c6);return{'getStream':async()=>{const _0x9b1235=_0x57ce3e,_0x4b2e96=(await _0x42dcbc[_0x9b1235(0x21f)])[_0x9b1235(0x1c2)];return this[_0x9b1235(0x1d8)](_0x4b2e96);},'abortController':_0x42dcbc[_0x57ce3e(0x1f3)]};}[_0x16a027(0x1cf)]({content:_0x15c2e9,message:_0x5b4691,model:_0x1bea67,outputFormat:_0x43dffe}){const _0x208f98=_0x16a027,_0x45f3a3={'content':[{'type':_0x208f98(0x1d6),'content':_0x15c2e9}],'prompt':_0x5b4691,'model':_0x1bea67,'outputFormat':_0x43dffe},_0x332973=this[_0x208f98(0x218)](_0x208f98(0x21a),_0x208f98(0x1c9),_0x45f3a3);return{'getStream':async()=>{const _0x22de8b=_0x208f98,_0x4530b3=(await _0x332973[_0x22de8b(0x21f)])[_0x22de8b(0x1c2)];return this[_0x22de8b(0x1d8)](_0x4530b3);},'abortController':_0x332973[_0x208f98(0x1f3)]};}[_0x16a027(0x1f2)]({actionName:_0x477fe7,content:_0xe9acb7,args:_0x1bf058}){const _0x58e90b=_0x16a027,_0x591867={'content':[{'type':_0x58e90b(0x1d6),'content':_0xe9acb7}],'args':_0x1bf058},_0x17034b=this[_0x58e90b(0x218)](_0x58e90b(0x213)+_0x477fe7+_0x58e90b(0x1b8),_0x58e90b(0x1c9),_0x591867);return{'getStream':async()=>{const _0x12799a=_0x58e90b,_0x5a9d8d=(await _0x17034b[_0x12799a(0x21f)])[_0x12799a(0x1c2)];return this[_0x12799a(0x1d8)](_0x5a9d8d);},'abortController':_0x17034b[_0x58e90b(0x1f3)]};}[_0x16a027(0x206)](_0xb1ab81,_0xe3b142,_0x31d8ac){const _0x39f14f=_0x16a027,_0x4ca005=new FormData();_0x4ca005[_0x39f14f(0x204)](_0x39f14f(0x1e8),_0xe3b142,_0xe3b142[_0x39f14f(0x225)]),_0x31d8ac&&_0x4ca005[_0x39f14f(0x204)](_0x39f14f(0x1ef),JSON[_0x39f14f(0x203)](_0x31d8ac));const _0x4ea75e=this[_0x39f14f(0x218)](_0x39f14f(0x20d)+_0xb1ab81+_0x39f14f(0x1b4),_0x39f14f(0x1c9),_0x4ca005);return{'getId':async()=>(await _0x4ea75e[_0x39f14f(0x21f)])[_0x39f14f(0x219)](),'abortController':_0x4ea75e[_0x39f14f(0x1f3)]};}[_0x16a027(0x20f)](_0x253314,_0x27c1fc){const _0x194674=_0x16a027,_0x53d410=this[_0x194674(0x218)](_0x194674(0x20d)+_0x253314+_0x194674(0x1d5)+_0x27c1fc,_0x194674(0x1de));return{'getDocument':async()=>(await _0x53d410[_0x194674(0x21f)])[_0x194674(0x219)](),'abortController':_0x53d410[_0x194674(0x1f3)]};}[_0x16a027(0x1b0)](_0x40251a,_0x418121,_0x5d5e8f){const _0x323c30=_0x16a027,_0x3d8a90={'content':_0x418121};_0x5d5e8f&&(_0x3d8a90[_0x323c30(0x1ef)]=_0x5d5e8f);const _0x162c53=this[_0x323c30(0x218)](_0x323c30(0x20d)+_0x40251a+_0x323c30(0x1d1),_0x323c30(0x1c9),_0x3d8a90);return{'getId':async()=>(await _0x162c53[_0x323c30(0x21f)])[_0x323c30(0x219)](),'abortController':_0x162c53[_0x323c30(0x1f3)]};}[_0x16a027(0x1cb)](_0x320800,_0xc71721){const _0x2a4267=_0x16a027,_0x5d7464=new URLSearchParams();_0x5d7464[_0x2a4267(0x204)](_0x2a4267(0x1fb),_0x2a4267(0x1c4)),_0x5d7464[_0x2a4267(0x204)](_0x2a4267(0x1f5),_0x2a4267(0x1cd)),_0x5d7464[_0x2a4267(0x204)](_0x2a4267(0x1e2),_0x320800),_0xc71721&&_0x5d7464[_0x2a4267(0x204)](_0x2a4267(0x1ac),_0xc71721);const _0x3105c9=this[_0x2a4267(0x218)](_0x2a4267(0x1a3)+_0x5d7464[_0x2a4267(0x1e0)](),_0x2a4267(0x1de));return{'getConversations':async()=>{const _0xe5cf11=_0x2a4267,_0x33d79b=await _0x3105c9[_0xe5cf11(0x21f)];return(await _0x33d79b[_0xe5cf11(0x219)]())[_0xe5cf11(0x220)];},'abortController':_0x3105c9[_0x2a4267(0x1f3)]};}[_0x16a027(0x207)](_0x287803){const _0x3ed658=_0x16a027,_0x2df359=this[_0x3ed658(0x218)](_0x3ed658(0x20d)+_0x287803,_0x3ed658(0x1ca));return{'execute':async()=>{const _0xacdb7a=_0x3ed658;await _0x2df359[_0xacdb7a(0x21f)];},'abortController':_0x2df359[_0x3ed658(0x1f3)]};}[_0x16a027(0x1fd)](_0x2fc299,_0x49ddc5){const _0x15bcd5=_0x16a027,_0x190293=this[_0x15bcd5(0x218)](_0x15bcd5(0x20d)+_0x2fc299,_0x15bcd5(0x1f9),_0x49ddc5);return{'getResult':async()=>(await _0x190293[_0x15bcd5(0x21f)],_0x49ddc5),'abortController':_0x190293[_0x15bcd5(0x1f3)]};}[_0x16a027(0x1a4)](_0x564a77){const _0x5eb91f=_0x16a027,_0x19dcc0=this[_0x5eb91f(0x218)](_0x5eb91f(0x20d)+_0x564a77,_0x5eb91f(0x1de));return{'getConversation':async()=>(await _0x19dcc0[_0x5eb91f(0x21f)])[_0x5eb91f(0x219)](),'abortController':_0x19dcc0[_0x5eb91f(0x1f3)]};}[_0x16a027(0x1d3)](_0x39e5ab){const _0x2ba718=_0x16a027,_0x100cdd=this[_0x2ba718(0x218)](_0x2ba718(0x20d)+_0x39e5ab+_0x2ba718(0x1e1),_0x2ba718(0x1de));return{'getMessages':async()=>{const _0x1302bc=_0x2ba718,_0x55d5cd=await _0x100cdd[_0x1302bc(0x21f)];return(await _0x55d5cd[_0x1302bc(0x219)]())[_0x1302bc(0x220)];},'abortController':_0x100cdd[_0x2ba718(0x1f3)]};}[_0x16a027(0x1ff)](_0xe20d87,_0x2ad99d,_0x565912){const _0x207efc=_0x16a027,_0x26dd84=this[_0x207efc(0x218)](_0x207efc(0x20d)+_0xe20d87+_0x207efc(0x22b),_0x207efc(0x1c9),{'url':_0x2ad99d,'attributes':_0x565912});return{'getId':async()=>(await _0x26dd84[_0x207efc(0x21f)])[_0x207efc(0x219)](),'abortController':_0x26dd84[_0x207efc(0x1f3)]};}[_0x16a027(0x21b)](){const _0x4a08a8=_0x16a027,_0x302d10=this[_0x4a08a8(0x218)](_0x4a08a8(0x1f8),_0x4a08a8(0x1de));return{'list':async()=>await(await _0x302d10[_0x4a08a8(0x21f)])[_0x4a08a8(0x219)](),'abortController':_0x302d10[_0x4a08a8(0x1f3)]};}[_0x16a027(0x1e5)](_0x9447ae,_0x4cc8b1){const _0x318c52=_0x16a027,_0x1802f1=this[_0x318c52(0x218)](_0x318c52(0x20d)+_0x9447ae+_0x318c52(0x1aa)+_0x4cc8b1,_0x318c52(0x1ca));return{'execute':async()=>{const _0x11f1f2=_0x318c52;await _0x1802f1[_0x11f1f2(0x21f)];},'abortController':_0x1802f1[_0x318c52(0x1f3)]};}[_0x16a027(0x1a6)](_0x47f71c,_0x14cfe7){const _0x123da0=_0x16a027,_0x2b894c=this[_0x123da0(0x218)](_0x123da0(0x20d)+_0x47f71c+_0x123da0(0x1d5)+_0x14cfe7,_0x123da0(0x1ca));return{'execute':async()=>{const _0xae3515=_0x123da0;await _0x2b894c[_0xae3515(0x21f)];},'abortController':_0x2b894c[_0x123da0(0x1f3)]};}[_0x16a027(0x1b1)](_0x24339d,_0x2c7934){const _0x22e7f8=_0x16a027,_0x192058=this[_0x22e7f8(0x218)](_0x22e7f8(0x20d)+_0x24339d+_0x22e7f8(0x1b9)+_0x2c7934,_0x22e7f8(0x1ca));return{'execute':async()=>{const _0xf93164=_0x22e7f8;await _0x192058[_0xf93164(0x21f)];},'abortController':_0x192058[_0x22e7f8(0x1f3)]};}[_0x16a027(0x1f4)]({reviewName:_0x2fae84,content:_0x5b8135,args:_0x11d58e}){const _0x2b92fe=_0x16a027,_0xa6b774=this[_0x2b92fe(0x218)](_0x2b92fe(0x1b2)+_0x2fae84+_0x2b92fe(0x1b8),_0x2b92fe(0x1c9),{'content':[{'type':_0x2b92fe(0x1d6),'content':_0x5b8135}],'args':_0x11d58e});return{'getStream':async()=>{const _0xe69c63=_0x2b92fe,_0x2ff99f=(await _0xa6b774[_0xe69c63(0x21f)])[_0xe69c63(0x1c2)];return this[_0xe69c63(0x1d8)](_0x2ff99f);},'abortController':_0xa6b774[_0x2b92fe(0x1f3)]};}[_0x16a027(0x1b6)]({content:_0x2d4f0e,prompt:_0x26dbf4,model:_0x55213a}){const _0x2deafa=_0x16a027,_0x1e4f51=this[_0x2deafa(0x218)](_0x2deafa(0x1eb),_0x2deafa(0x1c9),{'content':[{'type':_0x2deafa(0x1d6),'content':_0x2d4f0e}],'prompt':_0x26dbf4,'model':_0x55213a});return{'getStream':async()=>{const _0x1d6c72=_0x2deafa,_0x4d9b00=(await _0x1e4f51[_0x1d6c72(0x21f)])[_0x1d6c72(0x1c2)];return this[_0x1d6c72(0x1d8)](_0x4d9b00);},'abortController':_0x1e4f51[_0x2deafa(0x1f3)]};}[_0x16a027(0x222)](_0x24494f,_0x26b003,_0x2da5db){const _0x498137=_0x16a027,_0x57c38b=this[_0x498137(0x218)](_0x498137(0x20d)+_0x24494f+_0x498137(0x1c8)+_0x26b003+_0x498137(0x1b7),_0x498137(0x227),{'positiveCount':_0x2da5db[_0x498137(0x22d)],'totalCount':_0x2da5db[_0x498137(0x1be)],'modificationId':_0x2da5db[_0x498137(0x1dd)]});return{'execute':async()=>{const _0x365b76=_0x498137;await _0x57c38b[_0x365b76(0x21f)];},'abortController':_0x57c38b[_0x498137(0x1f3)]};}[_0x16a027(0x1d2)](_0x56a919,_0x61e0d9,_0xe8e1c){const _0x637dc0=_0x16a027,_0x40bacd=this[_0x637dc0(0x218)](_0x637dc0(0x213)+_0x56a919+_0x637dc0(0x1f1)+_0x61e0d9+_0x637dc0(0x1b7),_0x637dc0(0x227),{'positiveCount':_0xe8e1c[_0x637dc0(0x22d)],'totalCount':_0xe8e1c[_0x637dc0(0x1be)]});return{'execute':async()=>{const _0x554988=_0x637dc0;await _0x40bacd[_0x554988(0x21f)];},'abortController':_0x40bacd[_0x637dc0(0x1f3)]};}[_0x16a027(0x1ba)](_0x520488,_0x4ea4ae){const _0x2a2b90=_0x16a027,_0x4dae14=this[_0x2a2b90(0x218)](_0x2a2b90(0x1d0)+_0x520488+_0x2a2b90(0x1b7),_0x2a2b90(0x227),{'positiveCount':_0x4ea4ae[_0x2a2b90(0x22d)],'totalCount':_0x4ea4ae[_0x2a2b90(0x1be)]});return{'execute':async()=>{const _0x4dea26=_0x2a2b90;await _0x4dae14[_0x4dea26(0x21f)];},'abortController':_0x4dae14[_0x2a2b90(0x1f3)]};}[_0x16a027(0x1c6)](_0x589eb2,_0x385531,_0x2ff74d,_0x4a001c){const _0x252321=_0x16a027,_0x5d599b=this[_0x252321(0x218)](_0x252321(0x1b2)+_0x589eb2+_0x252321(0x1f1)+_0x385531+_0x252321(0x1b7),_0x252321(0x227),{'positiveCount':_0x2ff74d[_0x252321(0x22d)],'totalCount':_0x2ff74d[_0x252321(0x1be)],'dataId':_0x4a001c});return{'execute':async()=>{const _0x253e98=_0x252321;await _0x5d599b[_0x253e98(0x21f)];},'abortController':_0x5d599b[_0x252321(0x1f3)]};}[_0x16a027(0x223)](_0x3152a5,_0x4741ea,_0x36dad4){const _0x1bd408=_0x16a027,_0x2cffa2=this[_0x1bd408(0x218)](_0x1bd408(0x1c0)+_0x3152a5+_0x1bd408(0x1b7),_0x1bd408(0x227),{'positiveCount':_0x4741ea[_0x1bd408(0x22d)],'totalCount':_0x4741ea[_0x1bd408(0x1be)],'dataId':_0x36dad4});return{'execute':async()=>{const _0x38ba23=_0x1bd408;await _0x2cffa2[_0x38ba23(0x21f)];},'abortController':_0x2cffa2[_0x1bd408(0x1f3)]};}[_0x16a027(0x218)](_0x478978,_0x61d209,_0x47c81d){const _0x56cecc=_0x16a027,_0x19da50=new AbortController(),_0x14d592=_0x47c81d instanceof FormData,_0x42b81e={'Authorization':_0x56cecc(0x1a9)+this[_0x56cecc(0x1f7)]?.[_0x56cecc(0x1df)]};_0x47c81d&&!_0x14d592&&(_0x42b81e[_0x56cecc(0x1e9)]=_0x56cecc(0x201));const _0x149128={'method':_0x61d209,'headers':_0x42b81e,'signal':_0x19da50[_0x56cecc(0x21e)]};return _0x47c81d&&(_0x149128[_0x56cecc(0x1c2)]=_0x14d592?_0x47c81d:JSON[_0x56cecc(0x203)](_0x47c81d)),{'request':fetch(''+this[_0x56cecc(0x1d7)]+_0x478978,_0x149128)[_0x56cecc(0x1ed)](_0x5e376f=>{const _0x140b0c=_0x56cecc;this[_0x140b0c(0x1ec)](_0x5e376f);})[_0x56cecc(0x1e4)](_0x305706=>{const _0x1be1f4=_0x56cecc;if(!_0x305706['ok'])throw new _0x253a4e(_0x1be1f4(0x22c),this,{'url':this[_0x1be1f4(0x1d7)],'path':_0x478978,'method':_0x61d209,'body':_0x47c81d,'status':(_0x305706||{})[_0x1be1f4(0x1a5)],'statusText':(_0x305706||{})[_0x1be1f4(0x205)]});return _0x305706;}),'abortController':_0x19da50};}async*[_0x16a027(0x1d8)](_0x69b80e){const _0x3f49cd=_0x16a027,_0x17a333=[],_0x4e24a9=_0x69b80e[_0x3f49cd(0x20a)](),_0x172ed2=_0xd5ea59({'onError':_0x3b4c04=>{const _0x207dac=_0x3f49cd;this[_0x207dac(0x1ec)](_0x3b4c04);},'onEvent':_0x1a4bc4=>{const _0x2ada61=_0x3f49cd;_0x1a4bc4[_0x2ada61(0x1e7)]=JSON[_0x2ada61(0x1fc)](_0x1a4bc4[_0x2ada61(0x1e7)]),_0x17a333[_0x2ada61(0x212)](_0x1a4bc4);}});try{let _0xac4480=!0x1;for(;!_0xac4480;){const {done:_0x4af311,value:_0xfde38}=await _0x4e24a9[_0x3f49cd(0x1ea)]();_0x4af311&&(_0xac4480=!0x0),_0x172ed2[_0x3f49cd(0x1ae)](this[_0x3f49cd(0x217)][_0x3f49cd(0x214)](_0xfde38,{'stream':!0x0})),yield*_0x17a333,_0x17a333[_0x3f49cd(0x1e3)]=0x0;}}catch(_0xa64342){this[_0x3f49cd(0x1ec)](_0xa64342);}finally{_0x4e24a9[_0x3f49cd(0x1af)](),_0x172ed2[_0x3f49cd(0x202)]();}}[_0x16a027(0x1ec)](_0x148891){const _0x578ce3=_0x16a027;if(_0x148891 instanceof _0x253a4e)throw _0x148891;if(_0x148891 instanceof Error&&_0x578ce3(0x20c)===_0x148891[_0x578ce3(0x225)])throw new _0x253a4e(_0x578ce3(0x1fa),this,{'originalError':_0x148891});throw new _0x253a4e(_0x578ce3(0x22c),this,{'originalError':_0x148891});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c8dd2=_0x3a50;(function(_0x218664,_0xd4224d){const _0x310a8b=_0x3a50,_0x1de09a=_0x218664();while(!![]){try{const _0x499ff9=parseInt(_0x310a8b(0xa6))/0x1*(parseInt(_0x310a8b(0x91))/0x2)+parseInt(_0x310a8b(0x99))/0x3*(-parseInt(_0x310a8b(0xb8))/0x4)+parseInt(_0x310a8b(0xa7))/0x5*(-parseInt(_0x310a8b(0xc7))/0x6)+-parseInt(_0x310a8b(0x9f))/0x7*(parseInt(_0x310a8b(0x81))/0x8)+-parseInt(_0x310a8b(0xcf))/0x9+parseInt(_0x310a8b(0xb5))/0xa*(parseInt(_0x310a8b(0xbe))/0xb)+-parseInt(_0x310a8b(0xb1))/0xc*(-parseInt(_0x310a8b(0x94))/0xd);if(_0x499ff9===_0xd4224d)break;else _0x1de09a['push'](_0x1de09a['shift']());}catch(_0x36d703){_0x1de09a['push'](_0x1de09a['shift']());}}}(_0x1b30,0x7adf4));import{ViewDowncastWriter as _0x50047a}from'ckeditor5/src/engine.js';function _0x3a50(_0x4e9141,_0x1be1f6){const _0x1b30c1=_0x1b30();return _0x3a50=function(_0x3a50aa,_0x37f797){_0x3a50aa=_0x3a50aa-0x6b;let _0x47f768=_0x1b30c1[_0x3a50aa];return _0x47f768;},_0x3a50(_0x4e9141,_0x1be1f6);}function _0x1b30(){const _0x3887b8=['emptyElement','from','element','isAfter','isOpening','getWalker','_displayedFakeSelectionId','sessionId','_setDataIdsOnChildren','push','editingDowncast','substring','pluginName','ck-fake-ai-selection','createRange','plugins','processor','isContent','removeMarker','createUIElement','add','modelToViewWithIds','containerElement','length','2806424wNvShO','ready','context','has','isOfficialPlugin','getSelectionText','sort','_nextDataId','isPremiumPlugin','version','toData','hideFakeVisualSelection','random','_displayedFakeSelectionLocked','removeAllRanges','showFakeVisualSelection','2OBQukj','schema','setAttribute','3612518MuZhTR','ai-selection',':end></','getStart','isAtEnd','2901171TPaqPW','join','markerToHighlight','_sessionId','afterInit','$textProxy','7gUISYt','listenTo','getSelection','name','editors','_getMarkersInDocumentOrder',':start></','286057XZXqTK','2568365iCRHsm','document','getSelectedContent','conversion','data','markerName','data-id','_integrateEditor','getRoot','view','108sFcOLs','editing','getMarkersGroup','addMarker','968140pQTtYe','floor','fromCharCode','4jNbqwU','trim','getDocumentData','dataDowncast','createRangeIn',':end>','11fDuPfW','getLastMatchingPosition','end','markers','convertAiChatSelectionMarker','start','change','indexOf','markerToElement','6cotDxf',':start>','ck-ai-assistant-ui_theme','for','ai-selection:','isBefore','model','selection','4941252XJLTuS','toView','getChildren','get','RealTimeCollaborationClient','AIEditing'];_0x1b30=function(){return _0x3887b8;};return _0x1b30();}import{ContextPlugin as _0x3606d4,Editor as _0x3bc9b7}from'ckeditor5/src/core.js';import{uid as _0x1d73d6}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0xb4aad2}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4c8dd2(0x95);export class AIEditing extends _0x3606d4{[_0x4c8dd2(0x6f)]=null;[_0x4c8dd2(0x8e)]=!0x1;[_0x4c8dd2(0x9c)];static get[_0x4c8dd2(0x75)](){const _0x1484be=_0x4c8dd2;return _0x1484be(0xd4);}static get[_0x4c8dd2(0x85)](){return!0x0;}static get[_0x4c8dd2(0x89)](){return!0x0;}get[_0x4c8dd2(0x70)](){const _0x23d315=_0x4c8dd2;if(!this[_0x23d315(0x9c)]){const _0x40be84=_0xb4aad2(this[_0x23d315(0x83)]),_0x12ddd1=_0x40be84[_0x23d315(0x78)][_0x23d315(0x84)](_0x23d315(0xd3))&&_0x40be84[_0x23d315(0x78)][_0x23d315(0xd2)](_0x23d315(0xd3))[_0x23d315(0x70)];this[_0x23d315(0x9c)]=_0x12ddd1||_0x1d73d6();}return this[_0x23d315(0x9c)];}[_0x4c8dd2(0xba)](){const _0xfca2bc=_0x4c8dd2,_0x6a0f72=_0xb4aad2(this[_0xfca2bc(0x83)]),_0x3f7961=_0x6a0f72[_0xfca2bc(0xcd)],_0x4bf05e=_0x6a0f72[_0xfca2bc(0xab)][_0xfca2bc(0xd0)](_0x3f7961[_0xfca2bc(0xa8)][_0xfca2bc(0xaf)](),{'convertAiChatSelectionMarker':!0x0}),_0x5ba1a1=new _0x50047a(_0x6a0f72[_0xfca2bc(0xb2)][_0xfca2bc(0xb0)][_0xfca2bc(0xa8)]);this[_0xfca2bc(0x71)](_0x4bf05e,_0x5ba1a1);let _0x20a92f=_0x6a0f72[_0xfca2bc(0xab)][_0xfca2bc(0x79)][_0xfca2bc(0x8b)](_0x4bf05e);const _0x36883=this[_0xfca2bc(0xa4)](),_0x198b7f=[];for(const _0x685df1 of _0x36883){const _0x1208cb='<'+_0x685df1[_0xfca2bc(0xa2)]+_0xfca2bc(0xa5)+_0x685df1[_0xfca2bc(0xa2)]+_0xfca2bc(0xc8),_0x3cb133=_0x20a92f[_0xfca2bc(0xc5)](_0x1208cb);_0x20a92f=_0x20a92f[_0xfca2bc(0x74)](0x0,_0x3cb133)+_0x20a92f[_0xfca2bc(0x74)](_0x3cb133+_0x1208cb[_0xfca2bc(0x80)]);const _0x1aef74='<'+_0x685df1[_0xfca2bc(0xa2)]+_0xfca2bc(0x96)+_0x685df1[_0xfca2bc(0xa2)]+_0xfca2bc(0xbd),_0x4d3843=_0x20a92f[_0xfca2bc(0xc5)](_0x1aef74);_0x20a92f=_0x20a92f[_0xfca2bc(0x74)](0x0,_0x4d3843)+_0x20a92f[_0xfca2bc(0x74)](_0x4d3843+_0x1aef74[_0xfca2bc(0x80)]),_0x198b7f[_0xfca2bc(0x72)]({'markerName':_0x685df1[_0xfca2bc(0xa2)],'start':_0x3cb133,'end':_0x4d3843,'htmlFragment':_0x20a92f[_0xfca2bc(0x74)](_0x3cb133,_0x4d3843)});}return{'content':_0x20a92f,'version':_0x6a0f72[_0xfca2bc(0xcd)][_0xfca2bc(0xa8)][_0xfca2bc(0x8a)],'sessionId':this[_0xfca2bc(0x70)],'selections':_0x198b7f};}async[_0x4c8dd2(0x9d)](){const _0x50ec7a=_0x4c8dd2;this[_0x50ec7a(0x83)]instanceof _0x3bc9b7?this[_0x50ec7a(0xae)](this[_0x50ec7a(0x83)]):this[_0x50ec7a(0xa0)](this[_0x50ec7a(0x83)][_0x50ec7a(0xa3)],_0x50ec7a(0x7d),(_0x2f35e2,_0x2b14b4)=>{const _0x522417=_0x50ec7a;_0x2b14b4['on'](_0x522417(0x82),()=>{const _0x518a6c=_0x522417;this[_0x518a6c(0xae)](_0x2b14b4);});});}[_0x4c8dd2(0xae)](_0xbcb721){const _0x217984=_0x4c8dd2;_0xbcb721[_0x217984(0xaa)][_0x217984(0xca)](_0x217984(0x73))[_0x217984(0x9b)]({'model':_0x217984(0x95),'view':{'classes':[_0x217984(0x76),_0x217984(0xc9)],'priority':0xc}}),_0xbcb721[_0x217984(0xaa)][_0x217984(0xca)](_0x217984(0xbb))[_0x217984(0xc6)]({'model':_0x217984(0x95),'view':(_0x1fdaa4,{writer:_0x2ab841,options:_0x5103c0})=>_0x5103c0[_0x217984(0xc2)]?_0x2ab841[_0x217984(0x7c)](_0x1fdaa4[_0x217984(0xac)]+':'+(_0x1fdaa4[_0x217984(0x6d)]?_0x217984(0xc3):_0x217984(0xc0))):null});}[_0x4c8dd2(0x90)](_0x43934d,_0x4a104f,_0x421a54=!0x1,_0x4a090f=!0x1){const _0x2a9489=_0x4c8dd2;if(this[_0x2a9489(0x8e)]&&!_0x4a090f)return!0x1;const _0x4d7a07=_0xb4aad2(this[_0x2a9489(0x83)])[_0x2a9489(0xcd)];return _0x4d7a07[_0x2a9489(0xc4)](_0x32f822=>{const _0xe4911e=_0x2a9489;this[_0xe4911e(0x6f)]&&this[_0xe4911e(0x8c)](this[_0xe4911e(0x6f)]),this[_0xe4911e(0x6f)]=_0x4a104f,this[_0xe4911e(0x8e)]=_0x421a54;let _0x4dda08=0x0;for(let _0x456d34 of _0x43934d){const _0x3e8725=_0xe4911e(0xcb)+_0x4dda08;if(_0x456d34[_0xe4911e(0xc3)][_0xe4911e(0x98)]){const _0x2d1623=_0x456d34[_0xe4911e(0xc3)][_0xe4911e(0xbf)](({item:_0x41d2f6})=>!_0x4d7a07[_0xe4911e(0x92)][_0xe4911e(0x7a)](_0x41d2f6),{'boundaries':_0x456d34});_0x456d34=_0x32f822[_0xe4911e(0x77)](_0x2d1623,_0x456d34[_0xe4911e(0xc0)]);}_0x32f822[_0xe4911e(0xb4)](_0x3e8725,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x456d34}),_0x4dda08++;}}),window[_0x2a9489(0xa1)]()?.[_0x2a9489(0x8f)](),!0x0;}[_0x4c8dd2(0x8c)](_0x122093){const _0x4bbec0=_0x4c8dd2;if(this[_0x4bbec0(0x6f)]!=_0x122093)return!0x1;this[_0x4bbec0(0x6f)]=null,this[_0x4bbec0(0x8e)]=!0x1;const _0x30781c=_0xb4aad2(this[_0x4bbec0(0x83)]),_0x94309f=_0x30781c[_0x4bbec0(0xcd)][_0x4bbec0(0xc1)][_0x4bbec0(0xb3)](_0x4bbec0(0x95));return _0x30781c[_0x4bbec0(0xcd)][_0x4bbec0(0xc4)](_0x517b35=>{const _0x473aa0=_0x4bbec0;for(const _0xb8e47e of _0x94309f)_0x517b35[_0x473aa0(0x7b)](_0xb8e47e);}),!0x0;}[_0x4c8dd2(0x7e)](_0x18d823){const _0x79e636=_0x4c8dd2,_0x126a3c=_0xb4aad2(this[_0x79e636(0x83)]),_0x19599e=_0x126a3c[_0x79e636(0xab)][_0x79e636(0xd0)](_0x18d823),_0x1656e3=new _0x50047a(_0x126a3c[_0x79e636(0xb2)][_0x79e636(0xb0)][_0x79e636(0xa8)]);return this[_0x79e636(0x71)](_0x19599e,_0x1656e3),_0x19599e;}[_0x4c8dd2(0x71)](_0x4dca6a,_0x417dfb){const _0x42ad03=_0x4c8dd2;let _0x388420=!0x1;const _0x1928ac=new Set();for(const _0xe5601a of _0x4dca6a[_0x42ad03(0xd1)]()){const _0x5f3acb=_0xe5601a['is'](_0x42ad03(0xd5))||_0xe5601a['is'](_0x42ad03(0x7f));if(!_0xe5601a['is'](_0x42ad03(0x6b)))continue;(this[_0x42ad03(0x71)](_0xe5601a,_0x417dfb)||_0x5f3acb)&&(_0x417dfb[_0x42ad03(0x93)](_0x42ad03(0xad),this[_0x42ad03(0x88)](_0x1928ac),_0xe5601a),_0x388420=!0x0);}return _0x388420;}[_0x4c8dd2(0x88)](_0x4f0455){const _0x58d922=_0x4c8dd2;let _0x381ff4;do{_0x381ff4='';for(let _0x59b188=0x0;_0x59b188<0x4;_0x59b188++)_0x381ff4+=String[_0x58d922(0xb7)](0x61+Math[_0x58d922(0xb6)](0x1a*Math[_0x58d922(0x8d)]()));}while(_0x4f0455[_0x58d922(0x84)](_0x381ff4));return _0x4f0455[_0x58d922(0x7d)](_0x381ff4),_0x381ff4;}[_0x4c8dd2(0x86)](){const _0xea884=_0x4c8dd2,{model:_0x48138b}=_0xb4aad2(this[_0xea884(0x83)]),_0x4bca89=_0x48138b[_0xea884(0xa8)][_0xea884(0xce)],_0x52b787=_0x48138b[_0xea884(0xa9)](_0x4bca89),_0x107629=[],_0x254ae5=_0x48138b[_0xea884(0xbc)](_0x52b787)[_0xea884(0x6e)]();for(const {item:_0x592d80}of _0x254ae5)_0x592d80['is'](_0xea884(0x9e))?_0x107629[_0xea884(0x72)](_0x592d80[_0xea884(0xab)]):_0x592d80['is'](_0xea884(0x6b))&&_0x107629[_0xea884(0x80)]>0x0&&'\x20'!==_0x107629[_0x107629[_0xea884(0x80)]-0x1]&&_0x107629[_0xea884(0x72)]('\x20');return'\x22'+_0x107629[_0xea884(0x9a)]('')[_0xea884(0xb9)]()+'\x22';}[_0x4c8dd2(0xa4)](){const _0x4e1622=_0x4c8dd2,_0x1ceb97=_0xb4aad2(this[_0x4e1622(0x83)])[_0x4e1622(0xcd)];return Array[_0x4e1622(0xd6)](_0x1ceb97[_0x4e1622(0xc1)][_0x4e1622(0xb3)](_0x4e1622(0x95)))[_0x4e1622(0x87)]((_0x1749d6,_0x178a9e)=>_0x1749d6[_0x4e1622(0x97)]()[_0x4e1622(0xcc)](_0x178a9e[_0x4e1622(0x97)]())?-0x1:_0x1749d6[_0x4e1622(0x97)]()[_0x4e1622(0x6c)](_0x178a9e[_0x4e1622(0x97)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43b491=_0x308f;(function(_0x42f74a,_0x12169f){const _0x572b0f=_0x308f,_0x5a0db8=_0x42f74a();while(!![]){try{const _0x26596c=-parseInt(_0x572b0f(0x103))/0x1*(parseInt(_0x572b0f(0xf3))/0x2)+parseInt(_0x572b0f(0xfe))/0x3+parseInt(_0x572b0f(0xf9))/0x4*(parseInt(_0x572b0f(0xfd))/0x5)+parseInt(_0x572b0f(0xf6))/0x6+-parseInt(_0x572b0f(0x101))/0x7+-parseInt(_0x572b0f(0xf2))/0x8*(-parseInt(_0x572b0f(0xff))/0x9)+-parseInt(_0x572b0f(0x107))/0xa;if(_0x26596c===_0x12169f)break;else _0x5a0db8['push'](_0x5a0db8['shift']());}catch(_0x1b94a1){_0x5a0db8['push'](_0x5a0db8['shift']());}}}(_0x21b0,0xbc2b1));function _0x21b0(){const _0x433a72=['toggleWebSearch','webSearch','getCapabilitiesConfig','5FmZwXC','1418433NNMjCM','4761GhBJct','getCapabilitiesRequestData','2530031hWPDkA','setReasoning','1PHsQjX','_isWebSearchEnabled','init','toggleReasoning','20601070QAOoUd','reasoning','capabilitiesUpdated','_isReasoningEnabled','setWebSearch','13648WMxFGS','4412ZSmRGI','isWebSearchEnabled','fire','4350906YLmRQh','reset','isReasoningEnabled','4376188YypqFl'];_0x21b0=function(){return _0x433a72;};return _0x21b0();}import{EmitterMixin as _0x1a0314}from'ckeditor5/src/utils.js';function _0x308f(_0x5ac548,_0x2434ad){const _0x21b000=_0x21b0();return _0x308f=function(_0x308f99,_0xdfc25d){_0x308f99=_0x308f99-0xf2;let _0x4c5d64=_0x21b000[_0x308f99];return _0x4c5d64;},_0x308f(_0x5ac548,_0x2434ad);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x43b491(0x109)];export class AICapabilities extends _0x1a0314(){[_0x43b491(0x104)];[_0x43b491(0x10a)];constructor(){const _0x43a6ad=_0x43b491;super(),this[_0x43a6ad(0x104)]=!0x1,this[_0x43a6ad(0x10a)]=!0x1;}[_0x43b491(0x105)](){const _0x3e5c11=_0x43b491;this[_0x3e5c11(0xf7)]();}[_0x43b491(0xf7)](){const _0x12b9a5=_0x43b491;this[_0x12b9a5(0x10b)](!0x1),this[_0x12b9a5(0x102)](!0x1);}[_0x43b491(0xfc)](){const _0x2394d7=_0x43b491;return{'isWebSearchEnabled':this[_0x2394d7(0x104)],'isReasoningEnabled':this[_0x2394d7(0x10a)]};}static[_0x43b491(0x100)](_0x2bd2c3){const _0xee0b8b=_0x43b491,_0x113465={};return _0x2bd2c3&&_0x2bd2c3[_0xee0b8b(0xf4)]&&(_0x113465[_0xee0b8b(0xfb)]={}),_0x2bd2c3&&_0x2bd2c3[_0xee0b8b(0xf8)]&&(_0x113465[_0xee0b8b(0x108)]={}),_0x113465;}[_0x43b491(0xfa)](){const _0x29fa0d=_0x43b491;this[_0x29fa0d(0x10b)](!this[_0x29fa0d(0x104)]);}[_0x43b491(0x106)](){const _0x43b419=_0x43b491;this[_0x43b419(0x102)](!this[_0x43b419(0x10a)]);}[_0x43b491(0x10b)](_0x3c432b){const _0x259956=_0x43b491;_0x3c432b!==this[_0x259956(0x104)]&&(this[_0x259956(0x104)]=_0x3c432b,this[_0x259956(0xf5)](_0x259956(0x109),this[_0x259956(0xfc)]()));}[_0x43b491(0x102)](_0x3afbe4){const _0x24d6af=_0x43b491;_0x3afbe4!==this[_0x24d6af(0x10a)]&&(this[_0x24d6af(0x10a)]=_0x3afbe4,this[_0x24d6af(0xf5)](_0x24d6af(0x109),this[_0x24d6af(0xfc)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2780(){var _0xb170fc=['selection','DOCUMENT','markdown','document','TEXT','MARKDOWN','15gYDtDN','7617780mteMoP','FILE','web-resource','6493374eMnATm','text','139298QitrWr','7498464zqZNvj','html','1232204hkaUAD','99633VnfsWt','file','HTML','6875316JhJKDo','URL','14veyhaO','SELECTION'];_0x2780=function(){return _0xb170fc;};return _0x2780();}function _0x59f3(_0x435288,_0x9e3949){var _0x278081=_0x2780();return _0x59f3=function(_0x59f33f,_0x7dab2e){_0x59f33f=_0x59f33f-0x1a3;var _0x63fe18=_0x278081[_0x59f33f];return _0x63fe18;},_0x59f3(_0x435288,_0x9e3949);}(function(_0x25ce63,_0x43a5b7){var _0x1814d4=_0x59f3,_0x277ca8=_0x25ce63();while(!![]){try{var _0x3c4d56=-parseInt(_0x1814d4(0x1aa))/0x1+parseInt(_0x1814d4(0x1b3))/0x2*(-parseInt(_0x1814d4(0x1ae))/0x3)+parseInt(_0x1814d4(0x1ad))/0x4*(-parseInt(_0x1814d4(0x1a4))/0x5)+parseInt(_0x1814d4(0x1a5))/0x6+-parseInt(_0x1814d4(0x1b1))/0x7+parseInt(_0x1814d4(0x1ab))/0x8+parseInt(_0x1814d4(0x1a8))/0x9;if(_0x3c4d56===_0x43a5b7)break;else _0x277ca8['push'](_0x277ca8['shift']());}catch(_0x350e94){_0x277ca8['push'](_0x277ca8['shift']());}}}(_0x2780,0x9ec44));export var AIContextItemType;!function(_0x33bd6b){var _0x4b1d49=_0x59f3;_0x33bd6b[_0x4b1d49(0x1a6)]=_0x4b1d49(0x1af),_0x33bd6b[_0x4b1d49(0x1b6)]=_0x4b1d49(0x1b8),_0x33bd6b[_0x4b1d49(0x1b2)]=_0x4b1d49(0x1a7),_0x33bd6b[_0x4b1d49(0x1b9)]=_0x4b1d49(0x1a9),_0x33bd6b[_0x4b1d49(0x1b4)]=_0x4b1d49(0x1b5);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x2e76ab){var _0x1cc7d0=_0x59f3;_0x2e76ab[_0x1cc7d0(0x1b9)]=_0x1cc7d0(0x1a9),_0x2e76ab[_0x1cc7d0(0x1a3)]=_0x1cc7d0(0x1b7),_0x2e76ab[_0x1cc7d0(0x1b0)]=_0x1cc7d0(0x1ac);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|