@ckeditor/ckeditor5-ai 47.3.0 → 47.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +1 -1
- package/build/ai.js +3 -3
- 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-content.css +1 -1
- package/dist/index-editor.css +67 -4
- package/dist/index.css +117 -54
- package/dist/index.js +6 -6
- package/dist/translations/af.d.ts +1 -1
- package/dist/translations/af.js +2 -2
- package/dist/translations/af.umd.js +2 -2
- package/dist/translations/ar.d.ts +1 -1
- package/dist/translations/ar.js +2 -2
- package/dist/translations/ar.umd.js +2 -2
- package/dist/translations/ast.d.ts +1 -1
- package/dist/translations/ast.js +2 -2
- package/dist/translations/ast.umd.js +2 -2
- package/dist/translations/az.d.ts +1 -1
- package/dist/translations/az.js +2 -2
- package/dist/translations/az.umd.js +2 -2
- package/dist/translations/be.d.ts +1 -1
- package/dist/translations/be.js +2 -2
- package/dist/translations/be.umd.js +2 -2
- package/dist/translations/bg.d.ts +1 -1
- package/dist/translations/bg.js +2 -2
- package/dist/translations/bg.umd.js +2 -2
- package/dist/translations/bn.d.ts +1 -1
- package/dist/translations/bn.js +2 -2
- package/dist/translations/bn.umd.js +2 -2
- package/dist/translations/bs.d.ts +1 -1
- package/dist/translations/bs.js +2 -2
- package/dist/translations/bs.umd.js +2 -2
- package/dist/translations/ca.d.ts +1 -1
- package/dist/translations/ca.js +2 -2
- package/dist/translations/ca.umd.js +2 -2
- package/dist/translations/cs.d.ts +1 -1
- package/dist/translations/cs.js +2 -2
- package/dist/translations/cs.umd.js +2 -2
- package/dist/translations/da.d.ts +1 -1
- package/dist/translations/da.js +2 -2
- package/dist/translations/da.umd.js +2 -2
- package/dist/translations/de-ch.d.ts +1 -1
- package/dist/translations/de-ch.js +2 -2
- package/dist/translations/de-ch.umd.js +2 -2
- package/dist/translations/de.d.ts +1 -1
- package/dist/translations/de.js +2 -2
- package/dist/translations/de.umd.js +2 -2
- package/dist/translations/el.d.ts +1 -1
- package/dist/translations/el.js +2 -2
- package/dist/translations/el.umd.js +2 -2
- package/dist/translations/en-au.d.ts +1 -1
- package/dist/translations/en-au.js +2 -2
- package/dist/translations/en-au.umd.js +2 -2
- package/dist/translations/en-gb.d.ts +1 -1
- package/dist/translations/en-gb.js +2 -2
- package/dist/translations/en-gb.umd.js +2 -2
- package/dist/translations/en.d.ts +1 -1
- package/dist/translations/en.js +2 -2
- package/dist/translations/en.umd.js +2 -2
- package/dist/translations/eo.d.ts +1 -1
- package/dist/translations/eo.js +2 -2
- package/dist/translations/eo.umd.js +2 -2
- package/dist/translations/es-co.d.ts +1 -1
- package/dist/translations/es-co.js +2 -2
- package/dist/translations/es-co.umd.js +2 -2
- package/dist/translations/es.d.ts +1 -1
- package/dist/translations/es.js +2 -2
- package/dist/translations/es.umd.js +2 -2
- package/dist/translations/et.d.ts +1 -1
- package/dist/translations/et.js +2 -2
- package/dist/translations/et.umd.js +2 -2
- package/dist/translations/eu.d.ts +1 -1
- package/dist/translations/eu.js +2 -2
- package/dist/translations/eu.umd.js +2 -2
- package/dist/translations/fa.d.ts +1 -1
- package/dist/translations/fa.js +2 -2
- package/dist/translations/fa.umd.js +2 -2
- package/dist/translations/fi.d.ts +1 -1
- package/dist/translations/fi.js +2 -2
- package/dist/translations/fi.umd.js +2 -2
- package/dist/translations/fr.d.ts +1 -1
- package/dist/translations/fr.js +2 -2
- package/dist/translations/fr.umd.js +2 -2
- package/dist/translations/gl.d.ts +1 -1
- package/dist/translations/gl.js +2 -2
- package/dist/translations/gl.umd.js +2 -2
- package/dist/translations/gu.d.ts +1 -1
- package/dist/translations/gu.js +2 -2
- package/dist/translations/gu.umd.js +2 -2
- package/dist/translations/he.d.ts +1 -1
- package/dist/translations/he.js +2 -2
- package/dist/translations/he.umd.js +2 -2
- package/dist/translations/hi.d.ts +1 -1
- package/dist/translations/hi.js +2 -2
- package/dist/translations/hi.umd.js +2 -2
- package/dist/translations/hr.d.ts +1 -1
- package/dist/translations/hr.js +2 -2
- package/dist/translations/hr.umd.js +2 -2
- package/dist/translations/hu.d.ts +1 -1
- package/dist/translations/hu.js +2 -2
- package/dist/translations/hu.umd.js +2 -2
- package/dist/translations/hy.d.ts +1 -1
- package/dist/translations/hy.js +2 -2
- package/dist/translations/hy.umd.js +2 -2
- package/dist/translations/id.d.ts +1 -1
- package/dist/translations/id.js +2 -2
- package/dist/translations/id.umd.js +2 -2
- package/dist/translations/it.d.ts +1 -1
- package/dist/translations/it.js +2 -2
- package/dist/translations/it.umd.js +2 -2
- package/dist/translations/ja.d.ts +1 -1
- package/dist/translations/ja.js +2 -2
- package/dist/translations/ja.umd.js +2 -2
- package/dist/translations/jv.d.ts +1 -1
- package/dist/translations/jv.js +2 -2
- package/dist/translations/jv.umd.js +2 -2
- package/dist/translations/kk.d.ts +1 -1
- package/dist/translations/kk.js +2 -2
- package/dist/translations/kk.umd.js +2 -2
- package/dist/translations/km.d.ts +1 -1
- package/dist/translations/km.js +2 -2
- package/dist/translations/km.umd.js +2 -2
- package/dist/translations/kn.d.ts +1 -1
- package/dist/translations/kn.js +2 -2
- package/dist/translations/kn.umd.js +2 -2
- package/dist/translations/ko.d.ts +1 -1
- package/dist/translations/ko.js +2 -2
- package/dist/translations/ko.umd.js +2 -2
- package/dist/translations/ku.d.ts +1 -1
- package/dist/translations/ku.js +2 -2
- package/dist/translations/ku.umd.js +2 -2
- package/dist/translations/lt.d.ts +1 -1
- package/dist/translations/lt.js +2 -2
- package/dist/translations/lt.umd.js +2 -2
- package/dist/translations/lv.d.ts +1 -1
- package/dist/translations/lv.js +2 -2
- package/dist/translations/lv.umd.js +2 -2
- package/dist/translations/ms.d.ts +1 -1
- package/dist/translations/ms.js +2 -2
- package/dist/translations/ms.umd.js +2 -2
- package/dist/translations/nb.d.ts +1 -1
- package/dist/translations/nb.js +2 -2
- package/dist/translations/nb.umd.js +2 -2
- package/dist/translations/ne.d.ts +1 -1
- package/dist/translations/ne.js +2 -2
- package/dist/translations/ne.umd.js +2 -2
- package/dist/translations/nl.d.ts +1 -1
- package/dist/translations/nl.js +2 -2
- package/dist/translations/nl.umd.js +2 -2
- package/dist/translations/no.d.ts +1 -1
- package/dist/translations/no.js +2 -2
- package/dist/translations/no.umd.js +2 -2
- package/dist/translations/oc.d.ts +1 -1
- package/dist/translations/oc.js +2 -2
- package/dist/translations/oc.umd.js +2 -2
- package/dist/translations/pl.d.ts +1 -1
- package/dist/translations/pl.js +2 -2
- package/dist/translations/pl.umd.js +2 -2
- package/dist/translations/pt-br.d.ts +1 -1
- package/dist/translations/pt-br.js +2 -2
- package/dist/translations/pt-br.umd.js +2 -2
- package/dist/translations/pt.d.ts +1 -1
- package/dist/translations/pt.js +2 -2
- package/dist/translations/pt.umd.js +2 -2
- package/dist/translations/ro.d.ts +1 -1
- package/dist/translations/ro.js +2 -2
- package/dist/translations/ro.umd.js +2 -2
- package/dist/translations/ru.d.ts +1 -1
- package/dist/translations/ru.js +2 -2
- package/dist/translations/ru.umd.js +2 -2
- package/dist/translations/si.d.ts +1 -1
- package/dist/translations/si.js +2 -2
- package/dist/translations/si.umd.js +2 -2
- package/dist/translations/sk.d.ts +1 -1
- package/dist/translations/sk.js +2 -2
- package/dist/translations/sk.umd.js +2 -2
- package/dist/translations/sl.d.ts +1 -1
- package/dist/translations/sl.js +2 -2
- package/dist/translations/sl.umd.js +2 -2
- package/dist/translations/sq.d.ts +1 -1
- package/dist/translations/sq.js +2 -2
- package/dist/translations/sq.umd.js +2 -2
- package/dist/translations/sr-latn.d.ts +1 -1
- package/dist/translations/sr-latn.js +2 -2
- package/dist/translations/sr-latn.umd.js +2 -2
- package/dist/translations/sr.d.ts +1 -1
- package/dist/translations/sr.js +2 -2
- package/dist/translations/sr.umd.js +2 -2
- package/dist/translations/sv.d.ts +1 -1
- package/dist/translations/sv.js +2 -2
- package/dist/translations/sv.umd.js +2 -2
- package/dist/translations/th.d.ts +1 -1
- package/dist/translations/th.js +2 -2
- package/dist/translations/th.umd.js +2 -2
- package/dist/translations/ti.d.ts +1 -1
- package/dist/translations/ti.js +2 -2
- package/dist/translations/ti.umd.js +2 -2
- package/dist/translations/tk.d.ts +1 -1
- package/dist/translations/tk.js +2 -2
- package/dist/translations/tk.umd.js +2 -2
- package/dist/translations/tr.d.ts +1 -1
- package/dist/translations/tr.js +2 -2
- package/dist/translations/tr.umd.js +2 -2
- package/dist/translations/tt.d.ts +1 -1
- package/dist/translations/tt.js +2 -2
- package/dist/translations/tt.umd.js +2 -2
- package/dist/translations/ug.d.ts +1 -1
- package/dist/translations/ug.js +2 -2
- package/dist/translations/ug.umd.js +2 -2
- package/dist/translations/uk.d.ts +1 -1
- package/dist/translations/uk.js +2 -2
- package/dist/translations/uk.umd.js +2 -2
- package/dist/translations/ur.d.ts +1 -1
- package/dist/translations/ur.js +2 -2
- package/dist/translations/ur.umd.js +2 -2
- package/dist/translations/uz.d.ts +1 -1
- package/dist/translations/uz.js +2 -2
- package/dist/translations/uz.umd.js +2 -2
- package/dist/translations/vi.d.ts +1 -1
- package/dist/translations/vi.js +2 -2
- package/dist/translations/vi.umd.js +2 -2
- package/dist/translations/zh-cn.d.ts +1 -1
- package/dist/translations/zh-cn.js +2 -2
- package/dist/translations/zh-cn.umd.js +2 -2
- package/dist/translations/zh.d.ts +1 -1
- package/dist/translations/zh.js +2 -2
- package/dist/translations/zh.umd.js +2 -2
- package/lang/contexts.json +0 -11
- package/lang/translations/af.po +1 -45
- package/lang/translations/ar.po +1 -45
- package/lang/translations/ast.po +1 -45
- package/lang/translations/az.po +1 -45
- package/lang/translations/be.po +1 -45
- package/lang/translations/bg.po +1 -45
- package/lang/translations/bn.po +1 -45
- package/lang/translations/bs.po +1 -45
- package/lang/translations/ca.po +1 -45
- package/lang/translations/cs.po +1 -45
- package/lang/translations/da.po +1 -45
- package/lang/translations/de-ch.po +1 -45
- package/lang/translations/de.po +1 -45
- package/lang/translations/el.po +1 -45
- package/lang/translations/en-au.po +1 -45
- package/lang/translations/en-gb.po +1 -45
- package/lang/translations/en.po +1 -45
- package/lang/translations/eo.po +1 -45
- package/lang/translations/es-co.po +1 -45
- package/lang/translations/es.po +1 -45
- package/lang/translations/et.po +1 -45
- package/lang/translations/eu.po +1 -45
- package/lang/translations/fa.po +1 -45
- package/lang/translations/fi.po +1 -45
- package/lang/translations/fr.po +1 -45
- package/lang/translations/gl.po +1 -45
- package/lang/translations/gu.po +1 -45
- package/lang/translations/he.po +1 -45
- package/lang/translations/hi.po +1 -45
- package/lang/translations/hr.po +1 -45
- package/lang/translations/hu.po +1 -45
- package/lang/translations/hy.po +1 -45
- package/lang/translations/id.po +1 -45
- package/lang/translations/it.po +1 -45
- package/lang/translations/ja.po +1 -45
- package/lang/translations/jv.po +1 -45
- package/lang/translations/kk.po +1 -45
- package/lang/translations/km.po +1 -45
- package/lang/translations/kn.po +1 -45
- package/lang/translations/ko.po +1 -45
- package/lang/translations/ku.po +1 -45
- package/lang/translations/lt.po +1 -45
- package/lang/translations/lv.po +1 -45
- package/lang/translations/ms.po +1 -45
- package/lang/translations/nb.po +1 -45
- package/lang/translations/ne.po +1 -45
- package/lang/translations/nl.po +1 -45
- package/lang/translations/no.po +1 -45
- package/lang/translations/oc.po +1 -45
- package/lang/translations/pl.po +1 -45
- package/lang/translations/pt-br.po +1 -45
- package/lang/translations/pt.po +1 -45
- package/lang/translations/ro.po +1 -45
- package/lang/translations/ru.po +1 -45
- package/lang/translations/si.po +1 -45
- package/lang/translations/sk.po +1 -45
- package/lang/translations/sl.po +1 -45
- package/lang/translations/sq.po +1 -45
- package/lang/translations/sr-latn.po +1 -45
- package/lang/translations/sr.po +1 -45
- package/lang/translations/sv.po +1 -45
- package/lang/translations/th.po +1 -45
- package/lang/translations/ti.po +1 -45
- package/lang/translations/tk.po +1 -45
- package/lang/translations/tr.po +1 -45
- package/lang/translations/tt.po +1 -45
- package/lang/translations/ug.po +1 -45
- package/lang/translations/uk.po +1 -45
- package/lang/translations/ur.po +1 -45
- package/lang/translations/uz.po +1 -45
- package/lang/translations/vi.po +1 -45
- package/lang/translations/zh-cn.po +1 -45
- package/lang/translations/zh.po +1 -45
- package/package.json +16 -16
- package/src/aiactions/aiactions.d.ts +5 -1
- package/src/aiactions/aiactions.js +2 -2
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +2 -2
- package/src/aiactions/model/aiactionsreply.d.ts +1 -1
- package/src/aiactions/model/aiactionsreply.js +2 -2
- package/src/aiassistant/adapters/aiadapter.d.ts +1 -1
- package/src/aiassistant/adapters/aiadapter.js +2 -2
- package/src/aiassistant/adapters/aitextadapter.d.ts +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +2 -2
- package/src/aiassistant/adapters/awstextadapter.d.ts +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +2 -2
- package/src/aiassistant/adapters/openaitextadapter.d.ts +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +2 -2
- package/src/aiassistant/aiassistant.d.ts +1 -1
- package/src/aiassistant/aiassistant.js +2 -2
- package/src/aiassistant/aiassistantediting.d.ts +1 -1
- package/src/aiassistant/aiassistantediting.js +2 -2
- package/src/aiassistant/aiassistantui.d.ts +1 -1
- package/src/aiassistant/aiassistantui.js +2 -2
- package/src/aiassistant/legacyerrors.d.ts +1 -1
- package/src/aiassistant/legacyerrors.js +2 -2
- package/src/aiassistant/ui/aiassistantcontroller.d.ts +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +3 -3
- package/src/aiassistant/ui/form/aiformcontentarea.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformcontentarea.js +2 -2
- package/src/aiassistant/ui/form/aiformerrorview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +2 -2
- package/src/aiassistant/ui/form/aiformpromptview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +2 -2
- package/src/aiassistant/ui/form/aiformtoolbarview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +2 -2
- package/src/aiassistant/ui/form/aiformview.d.ts +1 -1
- package/src/aiassistant/ui/form/aiformview.js +2 -2
- package/src/aiassistant/ui/form/aihistorylistitemview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +2 -2
- package/src/aiassistant/ui/form/aihistorylistview.d.ts +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +2 -2
- package/src/aiassistant/ui/form/prompthistory.d.ts +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +2 -2
- package/src/aiassistant/ui/showaiassistantcommand.d.ts +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +2 -2
- package/src/aiassistant/utils/common-translations.d.ts +1 -1
- package/src/aiassistant/utils/common-translations.js +2 -2
- package/src/aiassistant/utils/normalizecommandsconfig.d.ts +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +2 -2
- package/src/aiballoon/aiballoon.d.ts +1 -1
- package/src/aiballoon/aiballoon.js +2 -2
- package/src/aiballoon/ui/aiballoondisclaimerview.d.ts +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +2 -2
- package/src/aiballoon/ui/aiballoontoolbarview.d.ts +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +2 -2
- package/src/aiballoon/ui/aiballoonview.d.ts +1 -1
- package/src/aiballoon/ui/aiballoonview.js +2 -2
- package/src/aichat/aichat.d.ts +38 -4
- package/src/aichat/aichat.js +2 -2
- package/src/aichat/aichatcontroller.d.ts +5 -1
- package/src/aichat/aichatcontroller.js +2 -2
- package/src/aichat/aichatui.d.ts +3 -3
- package/src/aichat/aichatui.js +2 -2
- package/src/aichat/model/aichatcontext.d.ts +1 -1
- package/src/aichat/model/aichatcontext.js +2 -2
- package/src/aichat/model/aichatconversation.d.ts +10 -10
- package/src/aichat/model/aichatconversation.js +2 -2
- package/src/aichat/model/aichatinteraction.d.ts +1 -1
- package/src/aichat/model/aichatinteraction.js +2 -2
- package/src/aichat/ui/aichatcontrolsview.d.ts +4 -4
- package/src/aichat/ui/aichatcontrolsview.js +2 -2
- package/src/aichat/ui/aichatfeedview.d.ts +1 -1
- package/src/aichat/ui/aichatfeedview.js +2 -2
- package/src/aichat/ui/aichatheaderview.d.ts +1 -1
- package/src/aichat/ui/aichatheaderview.js +2 -2
- package/src/aichat/ui/aichatview.d.ts +1 -1
- package/src/aichat/ui/aichatview.js +2 -2
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.d.ts +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +2 -2
- package/src/aichat/ui/controls/aichatcontextitembuttonview.d.ts +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +2 -2
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.d.ts +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +2 -2
- package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +2 -2
- package/src/aichat/ui/controls/aichatcontrolsloaderview.d.ts +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +2 -2
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.d.ts +5 -5
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +2 -2
- package/src/aichat/ui/controls/aichatpromptinputview.d.ts +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +2 -2
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.d.ts +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +2 -2
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.d.ts +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +2 -2
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.d.ts +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +2 -2
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.d.ts +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +2 -2
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +2 -2
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.d.ts +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +2 -2
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.d.ts +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +2 -2
- package/src/aichat/ui/feed/aichatfeederroritemview.d.ts +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +2 -2
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +2 -2
- package/src/aichat/ui/feed/aichatfeeditemview.d.ts +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +2 -2
- package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +3 -2
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +2 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +2 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +2 -2
- package/src/aichat/ui/feed/aichatfeedusermessageitem.d.ts +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +2 -2
- package/src/aichat/utils/eventnames.d.ts +1 -1
- package/src/aichat/utils/eventnames.js +2 -2
- package/src/aichat/utils/promisequeue.d.ts +1 -1
- package/src/aichat/utils/promisequeue.js +2 -2
- package/src/aichathistory/aichathistory.d.ts +1 -1
- package/src/aichathistory/aichathistory.js +2 -2
- package/src/aichathistory/aichathistorycontroller.d.ts +1 -1
- package/src/aichathistory/aichathistorycontroller.js +2 -2
- package/src/aichathistory/aichathistoryui.d.ts +1 -1
- package/src/aichathistory/aichathistoryui.js +2 -2
- package/src/aichathistory/model/aichathistoryconversations.d.ts +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +2 -2
- package/src/aichathistory/model/aichathistoryitem.d.ts +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +2 -2
- package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +3 -3
- package/src/aichathistory/ui/aichathistorylistview.d.ts +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +2 -2
- package/src/aichathistory/ui/aichathistorysectionlistview.d.ts +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +2 -2
- package/src/aichathistory/ui/aichathistoryview.d.ts +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +2 -2
- package/src/aiconfig.d.ts +1 -1
- package/src/aiconfig.js +1 -1
- package/src/aicore/aiconnector.d.ts +4 -2
- package/src/aicore/aiconnector.js +2 -2
- package/src/aicore/aiediting.d.ts +1 -1
- package/src/aicore/aiediting.js +2 -2
- package/src/aicore/model/aicapabilities.d.ts +1 -1
- package/src/aicore/model/aicapabilities.js +2 -2
- package/src/aicore/model/aicontext.d.ts +1 -1
- package/src/aicore/model/aicontext.js +2 -2
- package/src/aicore/model/aiinteraction.d.ts +1 -1
- package/src/aicore/model/aiinteraction.js +2 -2
- package/src/aicore/model/aimodels.d.ts +3 -12
- package/src/aicore/model/aimodels.js +2 -2
- package/src/aicore/model/aireply.d.ts +1 -1
- package/src/aicore/model/aireply.js +2 -2
- package/src/aicore/pipeline/airesponseapplier.d.ts +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +3 -3
- package/src/aicore/pipeline/airesponseparser.d.ts +1 -1
- package/src/aicore/pipeline/airesponseparser.js +3 -3
- package/src/aicore/ui/aidisclaimerview.d.ts +1 -1
- package/src/aicore/ui/aidisclaimerview.js +2 -2
- package/src/aicore/ui/aiskeleton.d.ts +1 -1
- package/src/aicore/ui/aiskeleton.js +2 -2
- package/src/aicore/ui/aispinner.d.ts +1 -1
- package/src/aicore/ui/aispinner.js +2 -2
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.d.ts +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +2 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +2 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +5 -5
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +2 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +2 -2
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.d.ts +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +2 -2
- package/src/aicore/utils/common-translations.d.ts +1 -1
- package/src/aicore/utils/common-translations.js +2 -2
- package/src/aicore/utils/createresizebutton.d.ts +1 -1
- package/src/aicore/utils/createresizebutton.js +2 -2
- package/src/aicore/utils/documentposition.d.ts +1 -1
- package/src/aicore/utils/documentposition.js +2 -2
- package/src/aicore/utils/documentrange.d.ts +1 -1
- package/src/aicore/utils/documentrange.js +2 -2
- package/src/aicore/utils/eventnames.d.ts +1 -1
- package/src/aicore/utils/eventnames.js +2 -2
- package/src/aicore/utils/geteditorfromcontext.d.ts +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +2 -2
- package/src/aicore/utils/getoperationsfromreply.d.ts +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +2 -2
- package/src/aicore/utils/getsuggestionpartsfromreply.d.ts +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +2 -2
- package/src/aicore/utils/htmlparser.d.ts +1 -1
- package/src/aicore/utils/htmlparser.js +2 -2
- package/src/aicore/utils/htmlstreamer.d.ts +1 -1
- package/src/aicore/utils/htmlstreamer.js +2 -2
- package/src/aicore/utils/scrollmanager.d.ts +1 -1
- package/src/aicore/utils/scrollmanager.js +2 -2
- package/src/aieditorintegration/aieditorintegration.d.ts +1 -1
- package/src/aieditorintegration/aieditorintegration.js +2 -2
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +2 -2
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +2 -2
- package/src/aiquickactions/aiquickactions.d.ts +1 -1
- package/src/aiquickactions/aiquickactions.js +2 -2
- package/src/aiquickactions/aiquickactionscommand.d.ts +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +2 -2
- package/src/aiquickactions/aiquickactionsediting.d.ts +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +2 -2
- package/src/aiquickactions/aiquickactionsui.d.ts +1 -1
- package/src/aiquickactions/aiquickactionsui.js +2 -2
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +2 -2
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +2 -2
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +2 -2
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +2 -2
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +2 -2
- package/src/aireviewmode/aireviewcheckdefinitions.d.ts +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +2 -2
- package/src/aireviewmode/aireviewmode.d.ts +1 -1
- package/src/aireviewmode/aireviewmode.js +2 -2
- package/src/aireviewmode/aireviewmodecontroller.d.ts +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +2 -2
- package/src/aireviewmode/aireviewmodeediting.d.ts +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +2 -2
- package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
- package/src/aireviewmode/aireviewmodeui.js +2 -2
- package/src/aireviewmode/model/aireviewcheck.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +2 -2
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +2 -2
- package/src/aireviewmode/model/aireviewchecklist.d.ts +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +2 -2
- package/src/aireviewmode/model/aireviewcheckresult.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +2 -2
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +2 -2
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +2 -2
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +2 -2
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +2 -2
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +2 -2
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +2 -2
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +2 -2
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +2 -2
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +2 -2
- package/src/aitabs/aitabs.d.ts +1 -1
- package/src/aitabs/aitabs.js +2 -2
- package/src/aitabs/aitabsmainview.d.ts +1 -1
- package/src/aitabs/aitabsmainview.js +2 -2
- package/src/aitabs/tabs/aitabsview.d.ts +1 -1
- package/src/aitabs/tabs/aitabsview.js +2 -2
- package/src/aitabs/tabs/tabbuttonview.d.ts +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +2 -2
- package/src/aitabs/tabs/tabpanelview.d.ts +1 -1
- package/src/aitabs/tabs/tabpanelview.js +2 -2
- package/src/augmentation.d.ts +1 -1
- package/src/augmentation.js +1 -1
- package/src/errors.d.ts +1 -1
- package/src/errors.js +2 -2
- package/src/errorsmap.d.ts +1 -1
- package/src/errorsmap.js +2 -2
- package/src/index.d.ts +1 -2
- package/src/index.js +2 -2
- package/theme/aiassistant/ai-dropdown.css +1 -1
- package/theme/aiassistant/ai-form.css +1 -1
- package/theme/aiassistant/ai.css +1 -1
- package/theme/aiballoon/aiballoon.css +1 -1
- package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls.css +1 -1
- package/theme/aichat/aichat-controls/aichat-controls-button.css +1 -1
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +1 -1
- package/theme/aichat/aichat-controls/model-unavailable-message.css +1 -1
- package/theme/aichat/aichat-controls/prompt-capabilities.css +1 -1
- package/theme/aichat/aichat-controls/prompt-input.css +1 -1
- package/theme/aichat/aichat-controls.css +1 -1
- package/theme/aichat/aichat.css +1 -1
- package/theme/aichat/aichatfeed.css +55 -1
- package/theme/aichat/aichathistory.css +1 -1
- package/theme/aichat/aiminitoolbar.css +1 -1
- package/theme/aichat/aisuggestioncontainer.css +1 -1
- package/theme/aieditorintegration/aitogglebutton.css +1 -1
- package/theme/aiquickactions/aiquickactions.css +1 -1
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +1 -1
- package/theme/aireviewmode/aireviewmode-check-list.css +1 -1
- package/theme/aireviewmode/aireviewmode-check-run-result.css +1 -1
- package/theme/aireviewmode/aireviewmode-check-run.css +1 -1
- package/theme/aireviewmode/aireviewmode-review-completed.css +1 -1
- package/theme/aireviewmode/aireviewmode.css +9 -4
- package/theme/aitabs/aitabsview.css +1 -1
- package/theme/aitabs/tabs/tabbuttonview.css +1 -1
- package/theme/aitabs/tabs/tabsview.css +1 -1
- package/theme/common/aibutton.css +1 -1
- package/theme/common/aidisclaimer.css +1 -1
- package/theme/common/aiheader.css +1 -1
- package/theme/common/ainotification.css +1 -1
- package/theme/common/aiskeleton.css +1 -1
- package/theme/common/aispinner.css +1 -1
- package/theme/common/aitrackchanges.css +1 -1
- package/src/aichat/model/aichatmodels.d.ts +0 -63
- package/src/aichat/model/aichatmodels.js +0 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xd54c3d=_0x5ccc;(function(_0x3f5684,_0x6fdd06){const _0x3c38c4=_0x5ccc,_0x5bea67=_0x3f5684();while(!![]){try{const _0x3cfd57=parseInt(_0x3c38c4(0xb0))/0x1+parseInt(_0x3c38c4(0xd8))/0x2+parseInt(_0x3c38c4(0xe5))/0x3+parseInt(_0x3c38c4(0xad))/0x4+-parseInt(_0x3c38c4(0xb5))/0x5+parseInt(_0x3c38c4(0xc9))/0x6+-parseInt(_0x3c38c4(0xc6))/0x7;if(_0x3cfd57===_0x6fdd06)break;else _0x5bea67['push'](_0x5bea67['shift']());}catch(_0x45ca44){_0x5bea67['push'](_0x5bea67['shift']());}}}(_0x2354,0x40329));import{ContextPlugin as _0x50c1e7}from'ckeditor5/src/core.js';function _0x5ccc(_0x10c65a,_0x3f9dfd){const _0x23544b=_0x2354();return _0x5ccc=function(_0x5ccc12,_0x5b5da6){_0x5ccc12=_0x5ccc12-0xad;let _0x3b3191=_0x23544b[_0x5ccc12];return _0x3b3191;},_0x5ccc(_0x10c65a,_0x3f9dfd);}import{AIConnector as _0x113d92}from'../aicore/aiconnector.js';import{AIChatController as _0x209753}from'../aichat/aichatcontroller.js';import{AITabs as _0x2583dc}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x3239a7}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x4014f1}from'./model/aichathistoryconversations.js';import{getTranslation as _0x32edd9}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x50c1e7{[_0xd54c3d(0xef)];[_0xd54c3d(0xff)];[_0xd54c3d(0xe9)];static get[_0xd54c3d(0xd6)](){return[_0x113d92,_0x209753,_0x3239a7,_0x2583dc];}static get[_0xd54c3d(0xb6)](){const _0x2b9de0=_0xd54c3d;return _0x2b9de0(0xfb);}static get[_0xd54c3d(0x100)](){return!0x0;}static get[_0xd54c3d(0xfe)](){return!0x0;}[_0xd54c3d(0xbd)](){const _0x4c99d3=_0xd54c3d;this[_0x4c99d3(0xef)]=this[_0x4c99d3(0xc1)][_0x4c99d3(0xcd)][_0x4c99d3(0xd7)](_0x113d92),this[_0x4c99d3(0xff)]=this[_0x4c99d3(0xc1)][_0x4c99d3(0xcd)][_0x4c99d3(0xd7)](_0x3239a7),this[_0x4c99d3(0xe9)]=this[_0x4c99d3(0xc1)][_0x4c99d3(0xcd)][_0x4c99d3(0xd7)](_0x209753);const _0x5cdb96=this[_0x4c99d3(0xc1)][_0x4c99d3(0xcd)][_0x4c99d3(0xd7)](_0x2583dc);try{const _0x5eb5d4=this[_0x4c99d3(0xe9)][_0x4c99d3(0x104)]();this[_0x4c99d3(0xf4)]=new _0x4014f1({'connector':this[_0x4c99d3(0xef)],'group':_0x5eb5d4}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xff)],_0x4c99d3(0xba),(_0x4662f7,_0x3a23e9)=>{const _0x16e4c9=_0x4c99d3;this[_0x16e4c9(0xc5)](_0x3a23e9['id'],_0x16e4c9(0xb2)),this[_0x16e4c9(0xc4)](_0x3a23e9['id']);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xff)],_0x4c99d3(0xc0),(_0x272965,_0x364058)=>{const _0x3cc04a=_0x4c99d3;this[_0x3cc04a(0xc5)](_0x364058['id'],_0x3cc04a(0xbf)),this[_0x3cc04a(0xf7)](_0x364058['id'],_0x364058[_0x3cc04a(0xe2)]);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xf4)],_0x4c99d3(0xf2),(_0x22a87e,_0x3b2dfb)=>{const _0x23b383=_0x4c99d3;void 0x0!==_0x3b2dfb[_0x23b383(0xb8)][_0x23b383(0xe2)]&&this[_0x23b383(0xff)][_0x23b383(0xf0)](_0x3b2dfb[_0x23b383(0xc2)],_0x3b2dfb[_0x23b383(0xb8)][_0x23b383(0xe2)]),void 0x0!==_0x3b2dfb[_0x23b383(0xb8)][_0x23b383(0x10f)]&&this[_0x23b383(0xca)](),this[_0x23b383(0x10e)](_0x3b2dfb[_0x23b383(0xc2)]);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xf4)],_0x4c99d3(0xeb),(_0x195bd7,_0x4272cc)=>{const _0xd85bc3=_0x4c99d3;this[_0xd85bc3(0xe9)][_0xd85bc3(0xc7)](_0x4272cc[_0xd85bc3(0xc2)]),this[_0xd85bc3(0xff)][_0xd85bc3(0xe3)](_0x4272cc[_0xd85bc3(0xc2)]),this[_0xd85bc3(0x10e)](_0x4272cc[_0xd85bc3(0xc2)]);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xf4)],_0x4c99d3(0xed),()=>{const _0x2ea5b6=_0x4c99d3;this[_0x2ea5b6(0xca)]();}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xf4)],_0x4c99d3(0xe4),(_0x358896,_0x1303bb)=>{const _0x5bb0f2=_0x4c99d3;this[_0x5bb0f2(0x107)](_0x1303bb[_0x5bb0f2(0xe4)],_0x1303bb[_0x5bb0f2(0xb1)],_0x1303bb[_0x5bb0f2(0xc2)]);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xff)],_0x4c99d3(0x101),(_0x2b808e,_0x51fccf)=>{const _0x4a1d18=_0x4c99d3;this[_0x4a1d18(0xe6)](_0x51fccf['id']);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xff)],_0x4c99d3(0xbe),(_0xc29da8,_0x246351)=>{const _0x2079a8=_0x4c99d3,_0x40c08f=_0x246351[_0x2079a8(0x10f)]?_0x2079a8(0xf5):_0x2079a8(0xd0);this[_0x2079a8(0xc5)](_0x246351['id'],_0x40c08f),this[_0x2079a8(0xda)](_0x246351['id'],_0x246351[_0x2079a8(0x10f)]);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xff)],_0x4c99d3(0xb7),()=>{const _0x40a7d9=_0x4c99d3;_0x5cdb96[_0x40a7d9(0xaf)][_0x40a7d9(0xd9)](_0x40a7d9(0x10b));}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xe9)],_0x4c99d3(0xde),()=>{const _0x44a830=_0x4c99d3;this[_0x44a830(0xca)]();}),_0x5cdb96[_0x4c99d3(0xaf)]['on'](_0x4c99d3(0xcb),()=>{const _0x2c8b7b=_0x4c99d3;this[_0x2c8b7b(0xee)]();}),this[_0x4c99d3(0xbb)](_0x5cdb96,_0x4c99d3(0xd2),(_0x4f24cf,_0x1b7724)=>{const _0x572a4c=_0x4c99d3;this[_0x572a4c(0xe0)](_0x1b7724);}),this[_0x4c99d3(0xbb)](this[_0x4c99d3(0xff)],_0x4c99d3(0xb9),()=>{const _0x4146da=_0x4c99d3;_0x5cdb96[_0x4146da(0x108)]();});}catch(_0x2ce03d){this[_0x4c99d3(0x107)](_0x2ce03d,_0x4c99d3(0xbd));}}async[_0xd54c3d(0xf7)](_0x54f6c8,_0x2d8a06){const _0x28f87a=_0xd54c3d;await this[_0x28f87a(0xf4)][_0x28f87a(0xf0)](_0x54f6c8,_0x2d8a06);}async[_0xd54c3d(0xda)](_0x6c90c,_0x11d398){const _0x4b022a=_0xd54c3d;await this[_0x4b022a(0xf4)][_0x4b022a(0xd4)](_0x6c90c,_0x11d398);}async[_0xd54c3d(0xc4)](_0x30e790){const _0x17dbd3=_0xd54c3d;await this[_0x17dbd3(0xf4)][_0x17dbd3(0xe8)](_0x30e790);}async[_0xd54c3d(0xe6)](_0x569e02){const _0x58b864=_0xd54c3d;await this[_0x58b864(0xe9)][_0x58b864(0xe1)](_0x569e02);}async[_0xd54c3d(0xee)](){const _0x1f9e5e=_0xd54c3d;this[_0x1f9e5e(0xff)][_0x1f9e5e(0x103)](''),this[_0x1f9e5e(0xff)][_0x1f9e5e(0xf1)](!0x0),await this[_0x1f9e5e(0xf4)][_0x1f9e5e(0xbd)](),this[_0x1f9e5e(0xff)][_0x1f9e5e(0xf1)](!0x1);}[_0xd54c3d(0xca)](){const _0xf18e0a=_0xd54c3d,_0x474bb7=this[_0xf18e0a(0xe9)][_0xf18e0a(0xfc)]?.['id'],_0x45a0d3=this[_0xf18e0a(0xdc)]()[_0xf18e0a(0xdb)](_0x25a5ce=>({'title':_0x25a5ce[_0xf18e0a(0xe2)],'items':_0x25a5ce[_0xf18e0a(0xcf)][_0xf18e0a(0xdb)](_0x36b1ec=>({'id':_0x36b1ec['id'],'title':_0x36b1ec[_0xf18e0a(0xe2)]||_0x32edd9(this[_0xf18e0a(0xc1)][_0xf18e0a(0xcc)],_0xf18e0a(0xf3)),'createdAt':new Date(_0x36b1ec[_0xf18e0a(0xf8)])[_0xf18e0a(0xea)](),'active':_0x36b1ec['id']===_0x474bb7,'pinned':_0x36b1ec[_0xf18e0a(0x10f)]}))}));this[_0xf18e0a(0xff)][_0xf18e0a(0xe7)](_0x45a0d3);}[_0xd54c3d(0xc5)](_0x26d98c,_0xf046ef){const _0x6f4903=_0xd54c3d;this[_0x6f4903(0xff)][_0x6f4903(0xd3)](_0x26d98c,_0xf046ef,!0x0);}[_0xd54c3d(0x10e)](_0xafc03){const _0x6f15c0=_0xd54c3d;this[_0x6f15c0(0xff)][_0x6f15c0(0xd3)](_0xafc03,null,!0x1);}[_0xd54c3d(0x107)](_0x22ec6b,_0x4524ae,_0x43ba86){const _0x14e2d4=_0xd54c3d,_0x2b2568=this[_0x14e2d4(0xb4)](_0x4524ae,_0x43ba86);this[_0x14e2d4(0xff)][_0x14e2d4(0x103)](_0x2b2568),_0x43ba86&&this[_0x14e2d4(0x10e)](_0x43ba86),this[_0x14e2d4(0xff)][_0x14e2d4(0xf1)](!0x1);}[_0xd54c3d(0xb4)](_0x1e4fc1,_0x301a94){const _0x283b9c=_0xd54c3d,_0x1e3eb5=_0x301a94?this[_0x283b9c(0xf4)][_0x283b9c(0xae)](_0x301a94):null,_0x4e1a96=_0x1e3eb5?.[_0x283b9c(0xe2)]||_0x32edd9(this[_0x283b9c(0xc1)][_0x283b9c(0xcc)],_0x283b9c(0xf3));switch(_0x1e4fc1){case _0x283b9c(0xf0):return _0x32edd9(this[_0x283b9c(0xc1)][_0x283b9c(0xcc)],_0x283b9c(0xf6),_0x4e1a96);case _0x283b9c(0xd4):{const _0x31adeb=_0x32edd9(this[_0x283b9c(0xc1)][_0x283b9c(0xcc)],_0x1e3eb5?.[_0x283b9c(0x10f)]?_0x283b9c(0x10c):_0x283b9c(0x10a));return _0x32edd9(this[_0x283b9c(0xc1)][_0x283b9c(0xcc)],_0x283b9c(0xd1),[_0x31adeb,_0x4e1a96]);}case _0x283b9c(0xe8):return _0x32edd9(this[_0x283b9c(0xc1)][_0x283b9c(0xcc)],_0x283b9c(0xb3),_0x4e1a96);case _0x283b9c(0xbd):case _0x283b9c(0x109):return _0x32edd9(this[_0x283b9c(0xc1)][_0x283b9c(0xcc)],_0x283b9c(0x102));default:return _0x32edd9(this[_0x283b9c(0xc1)][_0x283b9c(0xcc)],_0x283b9c(0xec));}}[_0xd54c3d(0xdc)](){const _0x3fd500=_0xd54c3d,_0x2ac828=new Date(),_0x9050b3=new Date(_0x2ac828[_0x3fd500(0x105)](),_0x2ac828[_0x3fd500(0xbc)](),_0x2ac828[_0x3fd500(0xdd)]()),_0x5f3e36=new Date(_0x9050b3);_0x5f3e36[_0x3fd500(0x106)](_0x5f3e36[_0x3fd500(0xdd)]()-0x1);const _0x6f92d=new Date(_0x9050b3);_0x6f92d[_0x3fd500(0x106)](_0x6f92d[_0x3fd500(0xdd)]()-0xe);const _0x1f013d=this[_0x3fd500(0xf4)][_0x3fd500(0xc3)]({'pinned':!0x0}),_0x12b105=this[_0x3fd500(0xf4)][_0x3fd500(0xc3)]({'from':_0x9050b3,'to':_0x9050b3}),_0x1c8b86=this[_0x3fd500(0xf4)][_0x3fd500(0xc3)]({'from':_0x5f3e36,'to':_0x5f3e36}),_0x44ac59=this[_0x3fd500(0xf4)][_0x3fd500(0xc3)]({'from':_0x6f92d,'to':_0x5f3e36}),_0x358855=this[_0x3fd500(0xf4)][_0x3fd500(0xc3)]({'to':_0x6f92d}),_0x5f2893=[];return _0x1f013d[_0x3fd500(0xc8)]>0x0&&_0x5f2893[_0x3fd500(0xf9)]({'title':_0x32edd9(this[_0x3fd500(0xc1)][_0x3fd500(0xcc)],_0x3fd500(0xfa)),'items':_0x1f013d}),_0x12b105[_0x3fd500(0xc8)]>0x0&&_0x5f2893[_0x3fd500(0xf9)]({'title':_0x32edd9(this[_0x3fd500(0xc1)][_0x3fd500(0xcc)],_0x3fd500(0xce)),'items':_0x12b105}),_0x1c8b86[_0x3fd500(0xc8)]>0x0&&_0x5f2893[_0x3fd500(0xf9)]({'title':_0x32edd9(this[_0x3fd500(0xc1)][_0x3fd500(0xcc)],_0x3fd500(0xfd)),'items':_0x1c8b86}),_0x44ac59[_0x3fd500(0xc8)]>0x0&&_0x5f2893[_0x3fd500(0xf9)]({'title':_0x32edd9(this[_0x3fd500(0xc1)][_0x3fd500(0xcc)],_0x3fd500(0xd5)),'items':_0x44ac59}),_0x358855[_0x3fd500(0xc8)]>0x0&&_0x5f2893[_0x3fd500(0xf9)]({'title':_0x32edd9(this[_0x3fd500(0xc1)][_0x3fd500(0xcc)],_0x3fd500(0x10d)),'items':_0x358855}),_0x5f2893;}[_0xd54c3d(0xe0)](_0x29a743){const _0x4ab860=_0xd54c3d;this[_0x4ab860(0xff)][_0x4ab860(0xdf)](_0x29a743);}}function _0x2354(){const _0x33798b=['view','1493pIQQwI','operation','remove','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','_generateErrorMessage','2098595sqrZEx','pluginName','openChat','updates','resizeTabs','removeConversation','listenTo','getMonth','init','setConversationPinned','rename','editConversationTitle','context','itemId','getItems','_handleRemove','_setItemLoading','2564912UgzFLN','handleRemovedConversation','length','626652gjPdGS','_updateHistoryItemsUI','activateTab:history','locale','plugins','AI_CHAT_HISTORY_CATEGORY_TODAY','items','unpin','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','resizedTabs','updateItemLoadingState','updateItemPinned','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','requires','get','883236qHAUTX','activateTab','_handleTogglePin','map','_getCategorizedItems','getDate','change:activeConversation','setIsMaximized','_setIsMaximized','loadConversation','title','removeHistoryItem','error','1091760UgPkBK','_handleSelectConversation','updateItems','removeItem','_aiChatController','toLocaleDateString','itemRemoved','AI_CHAT_HISTORY_ERROR_GENERIC','itemsLoaded','_showConversationHistory','_aiConnector','updateItemTitle','setLoadingSkeleton','itemUpdated','AI_CHAT_UNTITLED_CONVERSATION','history','pin','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','_handleEditTitle','createdAt','push','AI_CHAT_HISTORY_CATEGORY_PINNED','AIChatHistoryController','activeConversation','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','isPremiumPlugin','_aiChatHistoryUi','isOfficialPlugin','selectConversation','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','showError','getGroupId','getFullYear','setDate','_handleHistoryErrorUI','resize','loadItems','AI_CHAT_HISTORY_PIN_ACTION','chat','AI_CHAT_HISTORY_UNPIN_ACTION','AI_CHAT_HISTORY_CATEGORY_LATER','_clearItemLoading','pinned','550460oZykHD','getItem'];_0x2354=function(){return _0x33798b;};return _0x2354();}
|
|
23
|
+
const _0x1e5ecd=_0xeeed;(function(_0x4138ed,_0x4ebfa0){const _0x48d02c=_0xeeed,_0x2eecc7=_0x4138ed();while(!![]){try{const _0x1d6458=-parseInt(_0x48d02c(0x1e0))/0x1*(-parseInt(_0x48d02c(0x1b6))/0x2)+-parseInt(_0x48d02c(0x185))/0x3*(-parseInt(_0x48d02c(0x1de))/0x4)+-parseInt(_0x48d02c(0x1c4))/0x5+-parseInt(_0x48d02c(0x18b))/0x6+-parseInt(_0x48d02c(0x1a9))/0x7+-parseInt(_0x48d02c(0x1c6))/0x8+parseInt(_0x48d02c(0x1a3))/0x9;if(_0x1d6458===_0x4ebfa0)break;else _0x2eecc7['push'](_0x2eecc7['shift']());}catch(_0x343b21){_0x2eecc7['push'](_0x2eecc7['shift']());}}}(_0x3c0b,0x365b1));import{ContextPlugin as _0x1237da}from'ckeditor5/src/core.js';import{AIConnector as _0x174dc8}from'../aicore/aiconnector.js';import{AIChatController as _0x4f64c8}from'../aichat/aichatcontroller.js';import{AITabs as _0x27cff4}from'../aitabs/aitabs.js';function _0xeeed(_0x274495,_0x33c4a8){const _0x3c0b43=_0x3c0b();return _0xeeed=function(_0xeeed65,_0xf5ca15){_0xeeed65=_0xeeed65-0x180;let _0x43dc5e=_0x3c0b43[_0xeeed65];return _0x43dc5e;},_0xeeed(_0x274495,_0x33c4a8);}function _0x3c0b(){const _0x3ebe86=['showError','history','operation','_handleRemove','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','updateItemTitle','11162tRUyAA','error','setIsMaximized','selectConversation','_aiConnector','rename','_aiChatHistoryUi','resize','editConversationTitle','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','toLocaleDateString','setDate','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','AIChatHistoryController','1510385JZPsoJ','get','378392KWOOMA','unpin','AI_CHAT_HISTORY_ERROR_GENERIC','setConversationPinned','_updateHistoryItemsUI','itemsLoaded','getItem','_setIsMaximized','activateTab','_generateErrorMessage','updateItemPinned','pinned','init','AI_CHAT_HISTORY_CATEGORY_PINNED','removeConversation','removeHistoryItem','removeItem','activeConversation','isPremiumPlugin','_setItemLoading','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_handleHistoryErrorUI','loadItems','items','8XvLzcQ','AI_CHAT_HISTORY_CATEGORY_LATER','16VkhsAA','listenTo','updateItemLoadingState','view','AI_CHAT_HISTORY_CATEGORY_TODAY','length','_handleSelectConversation','AI_CHAT_UNTITLED_CONVERSATION','_clearItemLoading','pin','127821EInmtw','context','updates','_aiChatController','resizeTabs','remove','1461138GxLntV','updateItems','getGroupId','handleRemovedConversation','_handleEditTitle','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','resizedTabs','requires','setLoadingSkeleton','_showConversationHistory','createdAt','AI_CHAT_HISTORY_UNPIN_ACTION','getFullYear','title','locale','activateTab:history','map','getMonth','_getCategorizedItems','chat','_handleTogglePin','itemRemoved','push','pluginName','6296310ZtcEwr','openChat','isOfficialPlugin','getDate','itemId','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','409920sTmHri','change:activeConversation','plugins','itemUpdated','getItems','loadConversation','AI_CHAT_HISTORY_PIN_ACTION'];_0x3c0b=function(){return _0x3ebe86;};return _0x3c0b();}import{AIChatHistoryUI as _0x67c2d3}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x278f54}from'./model/aichathistoryconversations.js';import{getTranslation as _0x31297c}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x1237da{[_0x1e5ecd(0x1ba)];[_0x1e5ecd(0x1bc)];[_0x1e5ecd(0x188)];static get[_0x1e5ecd(0x192)](){return[_0x174dc8,_0x4f64c8,_0x67c2d3,_0x27cff4];}static get[_0x1e5ecd(0x1a2)](){const _0x16d63c=_0x1e5ecd;return _0x16d63c(0x1c3);}static get[_0x1e5ecd(0x1a5)](){return!0x0;}static get[_0x1e5ecd(0x1d8)](){return!0x0;}[_0x1e5ecd(0x1d2)](){const _0x1553ef=_0x1e5ecd;this[_0x1553ef(0x1ba)]=this[_0x1553ef(0x186)][_0x1553ef(0x1ab)][_0x1553ef(0x1c5)](_0x174dc8),this[_0x1553ef(0x1bc)]=this[_0x1553ef(0x186)][_0x1553ef(0x1ab)][_0x1553ef(0x1c5)](_0x67c2d3),this[_0x1553ef(0x188)]=this[_0x1553ef(0x186)][_0x1553ef(0x1ab)][_0x1553ef(0x1c5)](_0x4f64c8);const _0x3f85c4=this[_0x1553ef(0x186)][_0x1553ef(0x1ab)][_0x1553ef(0x1c5)](_0x27cff4);try{const _0x3ed921=this[_0x1553ef(0x188)][_0x1553ef(0x18d)]();this[_0x1553ef(0x1b1)]=new _0x278f54({'connector':this[_0x1553ef(0x1ba)],'group':_0x3ed921}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1bc)],_0x1553ef(0x1d4),(_0x4def8f,_0x24c1b8)=>{const _0x129fb8=_0x1553ef;this[_0x129fb8(0x1d9)](_0x24c1b8['id'],_0x129fb8(0x18a)),this[_0x129fb8(0x1b3)](_0x24c1b8['id']);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1bc)],_0x1553ef(0x1be),(_0x1571c6,_0x3560cd)=>{const _0x172e5d=_0x1553ef;this[_0x172e5d(0x1d9)](_0x3560cd['id'],_0x172e5d(0x1bb)),this[_0x172e5d(0x18f)](_0x3560cd['id'],_0x3560cd[_0x172e5d(0x198)]);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1b1)],_0x1553ef(0x1ac),(_0x327b55,_0x57cb72)=>{const _0x41ec55=_0x1553ef;void 0x0!==_0x57cb72[_0x41ec55(0x187)][_0x41ec55(0x198)]&&this[_0x41ec55(0x1bc)][_0x41ec55(0x1b5)](_0x57cb72[_0x41ec55(0x1a7)],_0x57cb72[_0x41ec55(0x187)][_0x41ec55(0x198)]),void 0x0!==_0x57cb72[_0x41ec55(0x187)][_0x41ec55(0x1d1)]&&this[_0x41ec55(0x1ca)](),this[_0x41ec55(0x183)](_0x57cb72[_0x41ec55(0x1a7)]);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1b1)],_0x1553ef(0x1a0),(_0x216705,_0x33ab59)=>{const _0x524443=_0x1553ef;this[_0x524443(0x188)][_0x524443(0x18e)](_0x33ab59[_0x524443(0x1a7)]),this[_0x524443(0x1bc)][_0x524443(0x1d5)](_0x33ab59[_0x524443(0x1a7)]),this[_0x524443(0x183)](_0x33ab59[_0x524443(0x1a7)]);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1b1)],_0x1553ef(0x1cb),()=>{const _0x58b020=_0x1553ef;this[_0x58b020(0x1ca)]();}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1b1)],_0x1553ef(0x1b7),(_0x30fa5b,_0x567e03)=>{const _0xfd79e9=_0x1553ef;this[_0xfd79e9(0x1db)](_0x567e03[_0xfd79e9(0x1b7)],_0x567e03[_0xfd79e9(0x1b2)],_0x567e03[_0xfd79e9(0x1a7)]);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1bc)],_0x1553ef(0x1b9),(_0x159d2c,_0xdb6c3a)=>{const _0x598ae8=_0x1553ef;this[_0x598ae8(0x181)](_0xdb6c3a['id']);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1bc)],_0x1553ef(0x1c9),(_0x268faf,_0x4533df)=>{const _0x5974ac=_0x1553ef,_0x5ce262=_0x4533df[_0x5974ac(0x1d1)]?_0x5974ac(0x184):_0x5974ac(0x1c7);this[_0x5974ac(0x1d9)](_0x4533df['id'],_0x5ce262),this[_0x5974ac(0x19f)](_0x4533df['id'],_0x4533df[_0x5974ac(0x1d1)]);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1bc)],_0x1553ef(0x1a4),()=>{const _0x4cba9d=_0x1553ef;_0x3f85c4[_0x4cba9d(0x1e3)][_0x4cba9d(0x1ce)](_0x4cba9d(0x19e));}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x188)],_0x1553ef(0x1aa),()=>{const _0x5609a9=_0x1553ef;this[_0x5609a9(0x1ca)]();}),_0x3f85c4[_0x1553ef(0x1e3)]['on'](_0x1553ef(0x19a),()=>{const _0x1f3d36=_0x1553ef;this[_0x1f3d36(0x194)]();}),this[_0x1553ef(0x1e1)](_0x3f85c4,_0x1553ef(0x191),(_0x214adb,_0x578030)=>{const _0x259a4e=_0x1553ef;this[_0x259a4e(0x1cd)](_0x578030);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1bc)],_0x1553ef(0x189),()=>{const _0x6a735e=_0x1553ef;_0x3f85c4[_0x6a735e(0x1bd)]();});}catch(_0x43073a){this[_0x1553ef(0x1db)](_0x43073a,_0x1553ef(0x1d2));}}async[_0x1e5ecd(0x18f)](_0x5ccb67,_0x3f1cf1){const _0x1b2eb9=_0x1e5ecd;await this[_0x1b2eb9(0x1b1)][_0x1b2eb9(0x1b5)](_0x5ccb67,_0x3f1cf1);}async[_0x1e5ecd(0x19f)](_0xf4ae4e,_0x43135f){const _0x308d12=_0x1e5ecd;await this[_0x308d12(0x1b1)][_0x308d12(0x1d0)](_0xf4ae4e,_0x43135f);}async[_0x1e5ecd(0x1b3)](_0x3ebc96){const _0x49ce64=_0x1e5ecd;await this[_0x49ce64(0x1b1)][_0x49ce64(0x1d6)](_0x3ebc96);}async[_0x1e5ecd(0x181)](_0x43edb0){const _0x426fb3=_0x1e5ecd;await this[_0x426fb3(0x188)][_0x426fb3(0x1ae)](_0x43edb0);}async[_0x1e5ecd(0x194)](){const _0x56985e=_0x1e5ecd;this[_0x56985e(0x1bc)][_0x56985e(0x1b0)](''),this[_0x56985e(0x1bc)][_0x56985e(0x193)](!0x0),await this[_0x56985e(0x1b1)][_0x56985e(0x1d2)](),this[_0x56985e(0x1bc)][_0x56985e(0x193)](!0x1);}[_0x1e5ecd(0x1ca)](){const _0x571d68=_0x1e5ecd,_0x31009f=this[_0x571d68(0x188)][_0x571d68(0x1d7)]?.['id'],_0x197e94=this[_0x571d68(0x19d)]()[_0x571d68(0x19b)](_0x2fed4c=>({'title':_0x2fed4c[_0x571d68(0x198)],'items':_0x2fed4c[_0x571d68(0x1dd)][_0x571d68(0x19b)](_0x599cad=>({'id':_0x599cad['id'],'title':_0x599cad[_0x571d68(0x198)]||_0x31297c(this[_0x571d68(0x186)][_0x571d68(0x199)],_0x571d68(0x182)),'createdAt':new Date(_0x599cad[_0x571d68(0x195)])[_0x571d68(0x1c0)](),'active':_0x599cad['id']===_0x31009f,'pinned':_0x599cad[_0x571d68(0x1d1)]}))}));this[_0x571d68(0x1bc)][_0x571d68(0x18c)](_0x197e94);}[_0x1e5ecd(0x1d9)](_0x3f5109,_0x23fede){const _0x597dee=_0x1e5ecd;this[_0x597dee(0x1bc)][_0x597dee(0x1e2)](_0x3f5109,_0x23fede,!0x0);}[_0x1e5ecd(0x183)](_0x5516fc){const _0x50a26a=_0x1e5ecd;this[_0x50a26a(0x1bc)][_0x50a26a(0x1e2)](_0x5516fc,null,!0x1);}[_0x1e5ecd(0x1db)](_0x13c6e2,_0x388135,_0x18efea){const _0x46d6f1=_0x1e5ecd,_0x12b250=this[_0x46d6f1(0x1cf)](_0x388135,_0x18efea);this[_0x46d6f1(0x1bc)][_0x46d6f1(0x1b0)](_0x12b250),_0x18efea&&this[_0x46d6f1(0x183)](_0x18efea),this[_0x46d6f1(0x1bc)][_0x46d6f1(0x193)](!0x1);}[_0x1e5ecd(0x1cf)](_0x1abf21,_0x1544b0){const _0x29f367=_0x1e5ecd,_0xfb7453=_0x1544b0?this[_0x29f367(0x1b1)][_0x29f367(0x1cc)](_0x1544b0):null,_0x1ed256=_0xfb7453?.[_0x29f367(0x198)]||_0x31297c(this[_0x29f367(0x186)][_0x29f367(0x199)],_0x29f367(0x182));switch(_0x1abf21){case _0x29f367(0x1b5):return _0x31297c(this[_0x29f367(0x186)][_0x29f367(0x199)],_0x29f367(0x190),_0x1ed256);case _0x29f367(0x1d0):{const _0x1bee94=_0x31297c(this[_0x29f367(0x186)][_0x29f367(0x199)],_0xfb7453?.[_0x29f367(0x1d1)]?_0x29f367(0x196):_0x29f367(0x1af));return _0x31297c(this[_0x29f367(0x186)][_0x29f367(0x199)],_0x29f367(0x1da),[_0x1bee94,_0x1ed256]);}case _0x29f367(0x1d6):return _0x31297c(this[_0x29f367(0x186)][_0x29f367(0x199)],_0x29f367(0x1b4),_0x1ed256);case _0x29f367(0x1d2):case _0x29f367(0x1dc):return _0x31297c(this[_0x29f367(0x186)][_0x29f367(0x199)],_0x29f367(0x1a8));default:return _0x31297c(this[_0x29f367(0x186)][_0x29f367(0x199)],_0x29f367(0x1c8));}}[_0x1e5ecd(0x19d)](){const _0x5d9f17=_0x1e5ecd,_0x40f720=new Date(),_0x675dd6=new Date(_0x40f720[_0x5d9f17(0x197)](),_0x40f720[_0x5d9f17(0x19c)](),_0x40f720[_0x5d9f17(0x1a6)]()),_0x1c510b=new Date(_0x675dd6);_0x1c510b[_0x5d9f17(0x1c1)](_0x1c510b[_0x5d9f17(0x1a6)]()-0x1);const _0x5b7062=new Date(_0x675dd6);_0x5b7062[_0x5d9f17(0x1c1)](_0x5b7062[_0x5d9f17(0x1a6)]()-0xe);const _0xaf41f8=this[_0x5d9f17(0x1b1)][_0x5d9f17(0x1ad)]({'pinned':!0x0}),_0x231b01=this[_0x5d9f17(0x1b1)][_0x5d9f17(0x1ad)]({'from':_0x675dd6,'to':_0x675dd6}),_0x1209fa=this[_0x5d9f17(0x1b1)][_0x5d9f17(0x1ad)]({'from':_0x1c510b,'to':_0x1c510b}),_0x2c7f2c=this[_0x5d9f17(0x1b1)][_0x5d9f17(0x1ad)]({'from':_0x5b7062,'to':_0x1c510b}),_0x24acae=this[_0x5d9f17(0x1b1)][_0x5d9f17(0x1ad)]({'to':_0x5b7062}),_0x401276=[];return _0xaf41f8[_0x5d9f17(0x180)]>0x0&&_0x401276[_0x5d9f17(0x1a1)]({'title':_0x31297c(this[_0x5d9f17(0x186)][_0x5d9f17(0x199)],_0x5d9f17(0x1d3)),'items':_0xaf41f8}),_0x231b01[_0x5d9f17(0x180)]>0x0&&_0x401276[_0x5d9f17(0x1a1)]({'title':_0x31297c(this[_0x5d9f17(0x186)][_0x5d9f17(0x199)],_0x5d9f17(0x1e4)),'items':_0x231b01}),_0x1209fa[_0x5d9f17(0x180)]>0x0&&_0x401276[_0x5d9f17(0x1a1)]({'title':_0x31297c(this[_0x5d9f17(0x186)][_0x5d9f17(0x199)],_0x5d9f17(0x1c2)),'items':_0x1209fa}),_0x2c7f2c[_0x5d9f17(0x180)]>0x0&&_0x401276[_0x5d9f17(0x1a1)]({'title':_0x31297c(this[_0x5d9f17(0x186)][_0x5d9f17(0x199)],_0x5d9f17(0x1bf)),'items':_0x2c7f2c}),_0x24acae[_0x5d9f17(0x180)]>0x0&&_0x401276[_0x5d9f17(0x1a1)]({'title':_0x31297c(this[_0x5d9f17(0x186)][_0x5d9f17(0x199)],_0x5d9f17(0x1df)),'items':_0x24acae}),_0x401276;}[_0x1e5ecd(0x1cd)](_0x33903a){const _0x177e12=_0x1e5ecd;this[_0x177e12(0x1bc)][_0x177e12(0x1b8)](_0x33903a);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ec01e=_0x1b47;(function(_0x2d4e9b,_0x3c6460){const _0x4d8e52=_0x1b47,_0x5da0fb=_0x2d4e9b();while(!![]){try{const _0x108ff2=-parseInt(_0x4d8e52(0xbd))/0x1*(-parseInt(_0x4d8e52(0xac))/0x2)+-parseInt(_0x4d8e52(0xc6))/0x3*(-parseInt(_0x4d8e52(0xab))/0x4)+parseInt(_0x4d8e52(0xc2))/0x5*(-parseInt(_0x4d8e52(0xaf))/0x6)+parseInt(_0x4d8e52(0xa4))/0x7*(-parseInt(_0x4d8e52(0xad))/0x8)+parseInt(_0x4d8e52(0xa8))/0x9+-parseInt(_0x4d8e52(0xb4))/0xa+parseInt(_0x4d8e52(0xaa))/0xb;if(_0x108ff2===_0x3c6460)break;else _0x5da0fb['push'](_0x5da0fb['shift']());}catch(_0x3fa7d1){_0x5da0fb['push'](_0x5da0fb['shift']());}}}(_0x3fe3,0x648a5));import{ContextPlugin as _0x78e163}from'ckeditor5/src/core.js';import{AITabs as _0x40e406}from'../aitabs/aitabs.js';import{IconAIHistory as _0xd7c59a}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x2f2e8f}from'./ui/aichathistoryview.js';import{getTranslation as _0x542a5c}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x2ec01e(0xb5),_0x2ec01e(0xb3),_0x2ec01e(0xc8),_0x2ec01e(0xca),_0x2ec01e(0xb8),_0x2ec01e(0xc3),_0x2ec01e(0xb9)];function _0x3fe3(){const _0x4affdd=['AIChatHistoryUI','77214dEceHO','AI_CHAT_HISTORY_HEADING','updateItemTitle','history','removeConversation','4826190NowQBc','showConversationHistory','showError','updateHistoryItemsWithCategories','selectConversation','resizeTabs','delegate','showResizeButton','get','8273SzKBGL','AITabs','hideError','pluginName','setLoadingSkeleton','255fLlkZI','openChat','requires','updateItems','3xsxDkz','updateItemLoadingState','editConversationTitle','plugins','setConversationPinned','isOfficialPlugin','view','locale','setIsMaximized','errorMessage','isLoading','_historyView','addTab','124537zHDiQL','isPremiumPlugin','removeHistoryItem','context','6756588JBKOZB','isMaximized','2826758NpPCnV','1551932zoacAc','102iXDOcW','120tXzWCV'];_0x3fe3=function(){return _0x4affdd;};return _0x3fe3();}function _0x1b47(_0x2f8cef,_0x3fe698){const _0x3fe3e0=_0x3fe3();return _0x1b47=function(_0x1b4730,_0x31a5a4){_0x1b4730=_0x1b4730-0x9c;let _0x813839=_0x3fe3e0[_0x1b4730];return _0x813839;},_0x1b47(_0x2f8cef,_0x3fe698);}export class AIChatHistoryUI extends _0x78e163{static get[_0x2ec01e(0xc4)](){return[_0x40e406];}[_0x2ec01e(0xa2)];static get[_0x2ec01e(0xc0)](){const _0x57019b=_0x2ec01e;return _0x57019b(0xae);}static get[_0x2ec01e(0x9c)](){return!0x0;}static get[_0x2ec01e(0xa5)](){return!0x0;}constructor(_0x5a008c){const _0x18b1f1=_0x2ec01e;super(_0x5a008c);const _0x49e730=this[_0x18b1f1(0xa7)][_0x18b1f1(0xc9)][_0x18b1f1(0xbc)](_0x18b1f1(0xbe));this[_0x18b1f1(0xa2)]=new _0x2f2e8f(this[_0x18b1f1(0xa7)][_0x18b1f1(0x9e)],_0x49e730[_0x18b1f1(0xbb)]),this[_0x18b1f1(0xa2)][_0x18b1f1(0xba)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x49e730[_0x18b1f1(0x9d)][_0x18b1f1(0xa3)]({'id':_0x18b1f1(0xb2),'buttonLabel':_0x542a5c(this[_0x18b1f1(0xa7)][_0x18b1f1(0x9e)],_0x18b1f1(0xb0)),'buttonIcon':_0xd7c59a,'order':0x0,'content':this[_0x18b1f1(0xa2)]});}[_0x2ec01e(0xa6)](_0x4f2f0e){const _0x1f5f68=_0x2ec01e;this[_0x1f5f68(0xa2)][_0x1f5f68(0xa6)](_0x4f2f0e);}[_0x2ec01e(0xc5)](_0x3a9baa){const _0x4642e8=_0x2ec01e;this[_0x4642e8(0xa2)][_0x4642e8(0xb7)](_0x3a9baa);}[_0x2ec01e(0xb1)](_0xa3ff99,_0x4638f2){const _0x24da87=_0x2ec01e;this[_0x24da87(0xa2)][_0x24da87(0xb1)](_0xa3ff99,_0x4638f2);}[_0x2ec01e(0xc7)](_0x310d38,_0x4a159b,_0x1957e8){const _0x42244d=_0x2ec01e;this[_0x42244d(0xa2)][_0x42244d(0xc7)](_0x310d38,_0x4a159b,_0x1957e8);}[_0x2ec01e(0xc1)](_0x4c37b5){const _0x27941f=_0x2ec01e;this[_0x27941f(0xa2)][_0x27941f(0xa1)]=_0x4c37b5;}[_0x2ec01e(0xb6)](_0x1ee96b){const _0x24f933=_0x2ec01e;this[_0x24f933(0xa2)][_0x24f933(0xa0)]=_0x1ee96b;}[_0x2ec01e(0xbf)](){const _0x8b76af=_0x2ec01e;this[_0x8b76af(0xa2)][_0x8b76af(0xa0)]='';}[_0x2ec01e(0x9f)](_0x436611){const _0x214fc7=_0x2ec01e;this[_0x214fc7(0xa2)][_0x214fc7(0xa9)]=_0x436611;}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { AIChatHistoryItem } from './aichathistoryitem.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x40f3(_0x888762,_0x1fabd3){const _0x3c60a9=_0x3c60();return _0x40f3=function(_0x40f36a,_0x5c2d11){_0x40f36a=_0x40f36a-0x1f1;let _0x7140d6=_0x3c60a9[_0x40f36a];return _0x7140d6;},_0x40f3(_0x888762,_0x1fabd3);}const _0xcc3213=_0x40f3;(function(_0xb85d5,_0xa33b91){const _0x34859c=_0x40f3,_0x2ddcbf=_0xb85d5();while(!![]){try{const _0xe1a312=-parseInt(_0x34859c(0x20b))/0x1*(parseInt(_0x34859c(0x213))/0x2)+parseInt(_0x34859c(0x210))/0x3*(parseInt(_0x34859c(0x212))/0x4)+-parseInt(_0x34859c(0x214))/0x5*(-parseInt(_0x34859c(0x1ff))/0x6)+-parseInt(_0x34859c(0x203))/0x7*(parseInt(_0x34859c(0x201))/0x8)+-parseInt(_0x34859c(0x1f5))/0x9*(-parseInt(_0x34859c(0x20e))/0xa)+parseInt(_0x34859c(0x222))/0xb*(parseInt(_0x34859c(0x209))/0xc)+-parseInt(_0x34859c(0x20c))/0xd;if(_0xe1a312===_0xa33b91)break;else _0x2ddcbf['push'](_0x2ddcbf['shift']());}catch(_0x5231a7){_0x2ddcbf['push'](_0x2ddcbf['shift']());}}}(_0x3c60,0x29abc));import{EmitterMixin as _0x3f1131}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x40e843}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x3f1131(){[_0xcc3213(0x208)]=[];[_0xcc3213(0x215)];[_0xcc3213(0x20f)];constructor({connector:_0x5c2511,group:_0x955a3d}){const _0x797324=_0xcc3213;super(),this[_0x797324(0x215)]=_0x5c2511,this[_0x797324(0x20f)]=_0x955a3d;}async[_0xcc3213(0x21c)](){const _0x26ed85=_0xcc3213;try{const _0x5ce746=this[_0x26ed85(0x215)][_0x26ed85(0x1f1)](this[_0x26ed85(0x20f)]),_0x3a0726=await _0x5ce746[_0x26ed85(0x216)]();this[_0x26ed85(0x204)](_0x3a0726);}catch(_0x81aec2){this[_0x26ed85(0x1f3)](_0x26ed85(0x1fa),{'error':_0x81aec2,'operation':_0x26ed85(0x21c)});}}[_0xcc3213(0x21f)](_0x2e5b39){const _0x2932ac=_0xcc3213;this[_0x2932ac(0x208)][_0x2932ac(0x1f6)](_0x2e5b39);}async[_0xcc3213(0x21b)](_0x4083a1){const _0x313a18=_0xcc3213,_0x1bd5c0=this[_0x313a18(0x208)][_0x313a18(0x1fb)](_0x2c9014=>_0x2c9014['id']===_0x4083a1);if(-0x1===_0x1bd5c0)return!0x1;try{return await this[_0x313a18(0x215)][_0x313a18(0x21a)](_0x4083a1)[_0x313a18(0x1f4)](),this[_0x313a18(0x208)][_0x313a18(0x21e)](_0x1bd5c0,0x1),this[_0x313a18(0x1f3)](_0x313a18(0x1fd),{'itemId':_0x4083a1}),!0x0;}catch(_0x193f05){return this[_0x313a18(0x1f3)](_0x313a18(0x1fa),{'error':_0x193f05,'operation':_0x313a18(0x21b),'itemId':_0x4083a1}),!0x1;}}[_0xcc3213(0x1f2)](_0x345a42){const _0x1b406a=_0xcc3213;return this[_0x1b406a(0x208)][_0x1b406a(0x202)](_0xb86855=>_0xb86855['id']===_0x345a42);}async[_0xcc3213(0x221)](_0x535afd,_0x2bcc5e){const _0x3aa9d8=_0xcc3213,_0x446ea8=this[_0x3aa9d8(0x1f2)](_0x535afd);if(!_0x446ea8)return!0x1;try{return await this[_0x3aa9d8(0x215)][_0x3aa9d8(0x20d)](_0x535afd,{'title':_0x2bcc5e})[_0x3aa9d8(0x205)](),_0x446ea8[_0x3aa9d8(0x217)](_0x2bcc5e),this[_0x3aa9d8(0x1f3)](_0x3aa9d8(0x206),{'itemId':_0x535afd,'updates':{'title':_0x2bcc5e}}),!0x0;}catch(_0x16da5f){return this[_0x3aa9d8(0x1f3)](_0x3aa9d8(0x1fa),{'error':_0x16da5f,'operation':_0x3aa9d8(0x221),'itemId':_0x535afd}),!0x1;}}async[_0xcc3213(0x1f7)](_0x539f8d,_0x5c89db){const _0x71c432=_0xcc3213,_0x5bb542=this[_0x71c432(0x1f2)](_0x539f8d);if(!_0x5bb542)return!0x1;try{return await this[_0x71c432(0x215)][_0x71c432(0x20d)](_0x539f8d,{'pinned':_0x5c89db})[_0x71c432(0x205)](),_0x5bb542[_0x71c432(0x200)](_0x5c89db),this[_0x71c432(0x1f3)](_0x71c432(0x206),{'itemId':_0x539f8d,'updates':{'pinned':_0x5c89db}}),!0x0;}catch(_0x363f8f){return this[_0x71c432(0x1f3)](_0x71c432(0x1fa),{'error':_0x363f8f,'operation':_0x71c432(0x1f7),'itemId':_0x539f8d}),!0x1;}}[_0xcc3213(0x204)](_0xc689c5){const _0x5468e0=_0xcc3213;try{this[_0x5468e0(0x208)]=[],_0xc689c5[_0x5468e0(0x1f8)](_0x3760c9=>{const _0x30c897=_0x5468e0;this[_0x30c897(0x21f)](new _0x40e843(_0x3760c9));}),this[_0x5468e0(0x1f3)](_0x5468e0(0x220),{'items':[...this[_0x5468e0(0x208)]]});}catch(_0x48772c){this[_0x5468e0(0x1f3)](_0x5468e0(0x1fa),{'error':_0x48772c,'operation':_0x5468e0(0x204)});}}[_0xcc3213(0x1f9)](_0x5acb83={}){const _0x36d025=_0xcc3213,_0x55a07c=void 0x0!==_0x5acb83[_0x36d025(0x20a)]&&_0x5acb83[_0x36d025(0x20a)],_0x329f7d=_0x5acb83[_0x36d025(0x218)]?new Date(_0x5acb83[_0x36d025(0x218)][_0x36d025(0x211)](),_0x5acb83[_0x36d025(0x218)][_0x36d025(0x1fc)](),_0x5acb83[_0x36d025(0x218)][_0x36d025(0x1fe)]()):null,_0xd88d77=_0x5acb83['to']?new Date(_0x5acb83['to'][_0x36d025(0x211)](),_0x5acb83['to'][_0x36d025(0x1fc)](),_0x5acb83['to'][_0x36d025(0x1fe)]()):null;return this[_0x36d025(0x208)][_0x36d025(0x207)](_0x565455=>{const _0xa44b6d=_0x36d025;if(_0x565455[_0xa44b6d(0x20a)]!==_0x55a07c)return!0x1;if(_0xd88d77){const _0x190a30=new Date(_0x565455[_0xa44b6d(0x21d)][_0xa44b6d(0x211)](),_0x565455[_0xa44b6d(0x21d)][_0xa44b6d(0x1fc)](),_0x565455[_0xa44b6d(0x21d)][_0xa44b6d(0x1fe)]());return _0x329f7d?_0x329f7d[_0xa44b6d(0x219)]()===_0xd88d77[_0xa44b6d(0x219)]()?_0x190a30[_0xa44b6d(0x219)]()===_0x329f7d[_0xa44b6d(0x219)]():_0x190a30<_0xd88d77&&_0x190a30>=_0x329f7d:_0x190a30<_0xd88d77;}return!0x0;});}}function _0x3c60(){const _0x4d98e6=['228eunQrd','updatePinned','16Xyrtud','find','625541UeRUxH','loadItems','getResult','itemUpdated','filter','items','12mtfXRU','pinned','326563hDBEKu','916136WEtgxW','updateConversation','523490QHQjuJ','group','16170twypIP','getFullYear','176PkJMSm','2OcwCyS','3675kMuClE','connector','getConversations','updateTitle','from','getTime','deleteConversation','removeItem','init','createdAt','splice','addItem','itemsLoaded','updateItemTitle','1839871keZcub','fetchConversations','getItem','fire','execute','54NDVbkV','push','updateItemPinned','map','getItems','error','findIndex','getMonth','itemRemoved','getDate'];_0x3c60=function(){return _0x4d98e6;};return _0x3c60();}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { type AIConversationItem } from '../../aicore/aiconnector.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x34cef6=_0x230c;(function(_0x2c241c,_0x5c2863){var _0x2b89a3=_0x230c,_0x181e7a=_0x2c241c();while(!![]){try{var _0x2cd211=parseInt(_0x2b89a3(0xdc))/0x1*(-parseInt(_0x2b89a3(0xde))/0x2)+-parseInt(_0x2b89a3(0xe9))/0x3*(parseInt(_0x2b89a3(0xe2))/0x4)+-parseInt(_0x2b89a3(0xe3))/0x5*(parseInt(_0x2b89a3(0xe1))/0x6)+-parseInt(_0x2b89a3(0xdd))/0x7+parseInt(_0x2b89a3(0xed))/0x8*(parseInt(_0x2b89a3(0xe5))/0x9)+-parseInt(_0x2b89a3(0xe0))/0xa+parseInt(_0x2b89a3(0xeb))/0xb;if(_0x2cd211===_0x5c2863)break;else _0x181e7a['push'](_0x181e7a['shift']());}catch(_0x54048a){_0x181e7a['push'](_0x181e7a['shift']());}}}(_0x2afa,0x68749));function _0x2afa(){var _0x49db1e=['281488KJMjSS','141595AxqSVu','updatePinned','234QIAmjl','pinned','updatedAt','set','21ZaguLi','title','13069573goAdoz','updateTitle','205336wKhlsw','2dTiPBx','591794AiYtuD','241622rCvpmR','createdAt','5805490kBwkla','6YlSjXq'];_0x2afa=function(){return _0x49db1e;};return _0x2afa();}function _0x230c(_0x5a5ba4,_0x58c4d4){var _0x2afaef=_0x2afa();return _0x230c=function(_0x230c6f,_0x2bacdd){_0x230c6f=_0x230c6f-0xdc;var _0x200f1f=_0x2afaef[_0x230c6f];return _0x200f1f;},_0x230c(_0x5a5ba4,_0x58c4d4);}import{ObservableMixin as _0x2379a4}from'ckeditor5/src/utils.js';import{escape as _0x5ccbbc}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x2379a4(){['id'];[_0x34cef6(0xdf)];constructor({id:_0x5a47b2,title:_0x7e647b,createdAt:_0x16cd66,updatedAt:_0x51fa4b,pinned:_0x57c952}){var _0x6c9546=_0x34cef6;super(),this['id']=_0x5a47b2,this[_0x6c9546(0xdf)]=new Date(_0x16cd66),this[_0x6c9546(0xe8)](_0x6c9546(0xea),_0x7e647b),this[_0x6c9546(0xe8)](_0x6c9546(0xe7),_0x51fa4b?new Date(_0x51fa4b):null),this[_0x6c9546(0xe8)](_0x6c9546(0xe6),_0x57c952||!0x1);}[_0x34cef6(0xec)](_0x301f79){var _0x2a0dbe=_0x34cef6;this[_0x2a0dbe(0xe8)](_0x2a0dbe(0xea),_0x5ccbbc(_0x301f79)),this[_0x2a0dbe(0xe7)]=new Date();}[_0x34cef6(0xe4)](_0x4e52e8){var _0xefd1bd=_0x34cef6;this[_0xefd1bd(0xe8)](_0xefd1bd(0xe6),_0x4e52e8),this[_0xefd1bd(0xe7)]=new Date();}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { ListItemView } from 'ckeditor5/src/ui.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
_0x14d9d2(_0x4185b0){['id'];static [_0x336957(0x1fc)]={'remove':_0x336957(0x204),'rename':_0x336957(0x1f4),'pin':_0x336957(0x1b5),'unpin':_0x336957(0x212)};[_0x336957(0x208)];[_0x336957(0x1e2)];[_0x336957(0x20f)];constructor(_0x3c4e0a,_0x16d0bd){const _0x8ff64d=_0x336957;super(_0x3c4e0a);const _0x276c52=this[_0x8ff64d(0x1f6)];this[_0x8ff64d(0x20a)](_0x8ff64d(0x1fb),!0x1),this[_0x8ff64d(0x20a)](_0x8ff64d(0x1ca),!0x0),this[_0x8ff64d(0x20a)](_0x8ff64d(0x1da),!!_0x16d0bd[_0x8ff64d(0x1da)]),this[_0x8ff64d(0x20a)](_0x8ff64d(0x1f7),null),this['id']=_0x16d0bd['id'];const {title:_0x5dbc6d,createdAt:_0x53c4f7,active:_0x52ec3d=!0x1}=_0x16d0bd;this[_0x8ff64d(0x20f)]=new _0x250a26(),this[_0x8ff64d(0x20f)][_0x8ff64d(0x205)]=_0x5dbc6d,this[_0x8ff64d(0x20f)][_0x8ff64d(0x1ce)]({'attributes':{'class':[_0x8ff64d(0x1d6)]}});const _0x53c5e9=this[_0x8ff64d(0x1cb)](),_0x2b56cc=this[_0x8ff64d(0x1bc)](_0x3c4e0a),_0x2630d3=this[_0x8ff64d(0x1e0)](),_0x4a931c=this[_0x8ff64d(0x1e1)](_0x3c4e0a,_0x5dbc6d),_0x3ec5dd=this[_0x8ff64d(0x1d0)](_0x3c4e0a,_0x4a931c),_0x3dcd98=this[_0x8ff64d(0x20d)](_0x3c4e0a,_0x4a931c);this[_0x8ff64d(0x208)]=this[_0x8ff64d(0x1c3)](),this[_0x8ff64d(0x1e2)]=this[_0x8ff64d(0x1c3)](),this[_0x8ff64d(0x1e2)][_0x8ff64d(0x1cf)](this[_0x8ff64d(0x20f)]),this[_0x8ff64d(0x208)][_0x8ff64d(0x1cf)](_0x2b56cc),this[_0x8ff64d(0x208)][_0x8ff64d(0x1cf)](_0x2630d3),this['on'](_0x8ff64d(0x1c9),(_0x5c4160,_0xb684c9,_0x466895)=>{const _0x230661=_0x8ff64d;this[_0x230661(0x208)][_0x230661(0x214)](),this[_0x230661(0x1e2)][_0x230661(0x214)](),_0x466895?(this[_0x230661(0x208)][_0x230661(0x1cf)](_0x3ec5dd),this[_0x230661(0x208)][_0x230661(0x1cf)](_0x3dcd98),this[_0x230661(0x1e2)][_0x230661(0x1cf)](_0x4a931c),_0x4a931c[_0x230661(0x1cd)][_0x230661(0x1e9)]()):(this[_0x230661(0x208)][_0x230661(0x1cf)](_0x2b56cc),this[_0x230661(0x208)][_0x230661(0x1cf)](_0x2630d3),this[_0x230661(0x1e2)][_0x230661(0x1cf)](this[_0x230661(0x20f)]));}),this[_0x8ff64d(0x1c2)]({'tag':'li','attributes':{'class':[_0x8ff64d(0x1c0),_0x52ec3d?_0x8ff64d(0x1e4):'',_0x276c52['if'](_0x8ff64d(0x1ca),_0x8ff64d(0x207),_0x5e9458=>!_0x5e9458),_0x276c52['if'](_0x8ff64d(0x1fb),_0x8ff64d(0x1c5))],'role':_0x8ff64d(0x20c)},'children':[{'tag':_0x8ff64d(0x213),'attributes':{'class':[_0x8ff64d(0x1ba)]},'children':[{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1e7),_0x276c52['if'](_0x8ff64d(0x1f7),_0x8ff64d(0x207),_0x3f2224=>!!_0x3f2224)]},'children':_0x52ec3d?[_0x53c5e9]:[]},{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1fd),_0x276c52['if'](_0x8ff64d(0x1f7),_0x8ff64d(0x207),_0xcc26f0=>!_0xcc26f0)]},'children':[this[_0x8ff64d(0x1c4)]()]}]},{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1d5)]},'children':[{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x20e)]},'on':{'click':this[_0x8ff64d(0x1f6)]['to'](_0x8ff64d(0x1ed))},'children':[{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1c1)]},'children':[{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x1d6),_0x276c52['if'](_0x8ff64d(0x1f7),_0x8ff64d(0x207),_0x50aa2c=>!!_0x50aa2c)]},'children':this[_0x8ff64d(0x1e2)]},{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x209),_0x276c52['if'](_0x8ff64d(0x1f7),_0x8ff64d(0x207),_0x158f1e=>!_0x158f1e)]},'children':[{'text':_0x276c52['to'](_0x8ff64d(0x1f7),_0x129234=>_0x129234?_0x351914(this[_0x8ff64d(0x1bb)],AIChatHistoryListItemView[_0x8ff64d(0x1fc)][_0x129234]):'')}]}]},{'tag':_0x8ff64d(0x213),'attributes':{'class':[_0x8ff64d(0x200)]},'children':[_0x53c4f7]}]},{'tag':_0x8ff64d(0x1d3),'attributes':{'class':[_0x8ff64d(0x211)]},'children':this[_0x8ff64d(0x208)]}]}]}),this['on'](_0x8ff64d(0x1ed),()=>{const _0x210df5=_0x8ff64d;this[_0x210df5(0x1fb)]||this[_0x210df5(0x216)](_0x210df5(0x215),{'id':this['id']});});}[_0x336957(0x1b4)](_0x2be7d7){const _0x309178=_0x336957;this[_0x309178(0x20f)][_0x309178(0x205)]=_0x1fa06a(_0x2be7d7);}[_0x336957(0x203)](_0x7e8f15,_0x3ad67e){const _0x43a2be=_0x336957;this[_0x43a2be(0x20a)](_0x43a2be(0x1f7),_0x3ad67e?_0x7e8f15:null);}[_0x336957(0x1cb)](){const _0x38af5c=_0x336957,_0xe8f632=new _0x550ced();return _0xe8f632[_0x38af5c(0x20a)]({'content':_0x4d49f3}),_0xe8f632;}[_0x336957(0x1bc)](_0x54b7bf){const _0x3c50d0=_0x336957,_0x530f44=new _0x48ce43(_0x54b7bf);return _0x530f44[_0x3c50d0(0x20a)]({'label':_0x351914(_0x54b7bf,_0x3c50d0(0x1c8)),'icon':_0x5430c9,'withText':!0x1,'tooltip':!0x0}),_0x530f44[_0x3c50d0(0x1db)](_0x3c50d0(0x1f2))['to'](this,_0x3c50d0(0x1da)),_0x530f44['on'](_0x3c50d0(0x1be),()=>{const _0x258ed4=_0x3c50d0,_0x117b94=!this[_0x258ed4(0x1da)];this[_0x258ed4(0x216)](_0x258ed4(0x210),{'id':this['id'],'pinned':_0x117b94});}),_0x530f44;}[_0x336957(0x1e0)](){const _0x27f13b=_0x336957,_0x56e145=_0x12bb3e(this[_0x27f13b(0x1bb)],_0x597acc),_0x5f3293=_0x56e145[_0x27f13b(0x1ff)][_0x27f13b(0x1b8)];_0x56e145[_0x27f13b(0x1f9)][_0x27f13b(0x20a)]({'label':_0x351914(this[_0x27f13b(0x1bb)],_0x27f13b(0x1dc)),'icon':_0x5b1dac}),_0x56e145[_0x27f13b(0x1ea)]='sw';const _0x1e97af=new _0x48ce43(this[_0x27f13b(0x1bb)]);_0x1e97af[_0x27f13b(0x1bf)]=_0x351914(this[_0x27f13b(0x1bb)],_0x27f13b(0x20b)),_0x1e97af[_0x27f13b(0x1e3)]=!0x0,_0x1e97af['on'](_0x27f13b(0x1be),()=>{const _0x5a0ce2=_0x27f13b;this[_0x5a0ce2(0x1fb)]=!0x0;});const _0x591add=new _0x48ce43(this[_0x27f13b(0x1bb)]);_0x591add[_0x27f13b(0x1bf)]=_0x351914(this[_0x27f13b(0x1bb)],_0x27f13b(0x1f3)),_0x591add[_0x27f13b(0x1e3)]=!0x0,_0x591add['on'](_0x27f13b(0x1be),()=>{const _0x3791b5=_0x27f13b;this[_0x3791b5(0x1c6)](_0x351914(this[_0x3791b5(0x1bb)],_0x3791b5(0x1d4)),this[_0x3791b5(0x1cd)])[_0x3791b5(0x1f1)](()=>{const _0x329d19=_0x3791b5;this[_0x329d19(0x216)](_0x329d19(0x1d9),{'id':this['id']});});});const _0x2c464d=new _0x22c36f(this[_0x27f13b(0x1bb)]),_0x5c4245=new _0x4185b0(this[_0x27f13b(0x1bb)]);_0x5c4245[_0x27f13b(0x1b8)][_0x27f13b(0x1cf)](_0x1e97af);const _0x3968e4=new _0x4185b0(this[_0x27f13b(0x1bb)]);return _0x3968e4[_0x27f13b(0x1b8)][_0x27f13b(0x1cf)](_0x591add),_0x2c464d[_0x27f13b(0x1dd)][_0x27f13b(0x1d8)]([_0x5c4245,_0x3968e4]),_0x5f3293[_0x27f13b(0x1cf)](_0x2c464d),_0x56e145;}[_0x336957(0x1e1)](_0x232969,_0x10c2cf){const _0x1986b8=_0x336957,_0x3865b2=new _0x560db7(_0x232969),_0x145b38=_0x3865b2[_0x1986b8(0x1f6)];return _0x3865b2[_0x1986b8(0x1ee)]=_0x10c2cf,_0x3865b2[_0x1986b8(0x1ce)]({'on':{'keydown':_0x145b38['to'](_0x21b4c4=>{const _0x29a247=_0x1986b8;_0x29a247(0x1e6)==_0x21b4c4[_0x29a247(0x1b9)]&&this[_0x29a247(0x1bd)](_0x3865b2);})}}),_0x3865b2;}[_0x336957(0x1d0)](_0x156077,_0x2d9739){const _0xe3b2a7=_0x336957,_0xbe3cb=new _0x48ce43(_0x156077);return _0xbe3cb[_0xe3b2a7(0x20a)]({'icon':_0x4d49f3,'withText':!0x1,'tooltip':_0x351914(_0x156077,_0xe3b2a7(0x1f5))}),_0xbe3cb[_0xe3b2a7(0x1ce)]({'attributes':{'class':[_0xe3b2a7(0x1df)]}}),_0xbe3cb['on'](_0xe3b2a7(0x1be),()=>{const _0x43af47=_0xe3b2a7;this[_0x43af47(0x1bd)](_0x2d9739);}),_0xbe3cb;}[_0x336957(0x1bd)](_0x4586ec){const _0x2b3f1b=_0x336957,_0x22a4ba=_0x4586ec[_0x2b3f1b(0x1cd)][_0x2b3f1b(0x1ee)]||'';this[_0x2b3f1b(0x20f)][_0x2b3f1b(0x205)]=_0x22a4ba,this[_0x2b3f1b(0x1fb)]=!0x1,this[_0x2b3f1b(0x216)](_0x2b3f1b(0x1b6),{'id':this['id'],'title':_0x22a4ba});}[_0x336957(0x20d)](_0x2941f6,_0x236be8){const _0x3fc3f9=_0x336957,_0xdb1942=new _0x48ce43(_0x2941f6);return _0xdb1942[_0x3fc3f9(0x20a)]({'icon':_0x71bbc7,'withText':!0x1,'tooltip':_0x351914(_0x2941f6,_0x3fc3f9(0x1cc))}),_0xdb1942[_0x3fc3f9(0x1ce)]({'attributes':{'class':[_0x3fc3f9(0x1e8)]}}),_0xdb1942['on'](_0x3fc3f9(0x1be),()=>{const _0x5db4c4=_0x3fc3f9;this[_0x5db4c4(0x1fb)]=!0x1,_0x236be8[_0x5db4c4(0x1ee)]=this[_0x5db4c4(0x20f)][_0x5db4c4(0x205)]||'',this[_0x5db4c4(0x216)](_0x5db4c4(0x1d2));}),_0xdb1942;}[_0x336957(0x1c4)](){const _0x26afd4=_0x336957,_0x321533=new _0xaa70d1(_0x26afd4(0x202));return _0x321533[_0x26afd4(0x1ca)]=!0x0,_0x321533;}[_0x336957(0x1d7)](_0x1f2a1f){const _0x998d64=_0x336957;return this[_0x998d64(0x20f)]&&_0x998d64(0x217)==typeof this[_0x998d64(0x20f)][_0x998d64(0x205)]&&this[_0x998d64(0x20f)][_0x998d64(0x205)][_0x998d64(0x1ec)](_0x1f2a1f)?{'title':!0x0}:null;}[_0x336957(0x1e5)](_0x1bf875){const _0x8c89a2=_0x336957;this[_0x8c89a2(0x20f)][_0x8c89a2(0x1e5)](_0x1bf875);}}function _0x3556(_0x16e65d,_0x47ec06){const _0x178deb=_0x178d();return _0x3556=function(_0x3556de,_0x1bee75){_0x3556de=_0x3556de-0x1b4;let _0x2c2628=_0x178deb[_0x3556de];return _0x2c2628;},_0x3556(_0x16e65d,_0x47ec06);}function _0x178d(){const _0xde75e3=['1764452lqeedi','match','click','value','136nUxHOG','6373404ThzblP','then','isOn','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_LOADING_RENAMING','AI_CHAT_HISTORY_ACCEPT','bindTemplate','loadingState','5ZJrMem','buttonView','9qwDeLp','isEdit','LOADING_LABELS','ck-ai-loader','567217ekDjGd','panelView','ck-ai-chat-history__item-date','3218ybrJem','tiny','updateLoadingState','AI_CHAT_HISTORY_LOADING_REMOVING','text','3144564GPwOor','ck-hidden','actions','ck-ai-loader__text','set','AI_CHAT_HISTORY_EDIT_NAME','listitem','_createCancelEditButtonView','ck-ai-chat-history__item-content','_titleView','setConversationPinned','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_LOADING_UNPINNING','span','clear','selectConversation','fire','string','updateTitle','AI_CHAT_HISTORY_LOADING_PINNING','editConversationTitle','16027710VmabYD','children','key','ck-ai-chat-history__item-check-container','locale','_createPinButtonView','_commitEditInputValue','execute','label','ck-ai-chat-history__item','ck-ai-chat-history__item-main-content','setTemplate','createCollection','_createSpinnerView','ck-ai-chat-history__item--edit','showConfirm','10083681YidnwV','AI_CHAT_HISTORY_PIN_BUTTON','change:isEdit','isVisible','_createCheckView','AI_CHAT_HISTORY_CANCEL','element','extendTemplate','add','_createAcceptEditButtonView','165xLbFdf','edit:cancel','div','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item-row','ck-ai-chat-history__item-title','isMatching','addMany','removeConversation','pinned','bind','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','items','883hDgHMm','ck-confirm-view-submit','_createMenuDropdownView','_createEditInputView','mainContent','withText','ck-ai-chat-history__item--active','highlightText','Enter','ck-ai-chat-history__item-check','ck-confirm-view-cancel','focus','panelPosition'];_0x178d=function(){return _0xde75e3;};return _0x178d();}
|
|
23
|
+
const _0x5158fd=_0x576e;(function(_0x34bee7,_0x251c64){const _0x3e6b47=_0x576e,_0x17abcc=_0x34bee7();while(!![]){try{const _0x14820f=parseInt(_0x3e6b47(0xad))/0x1*(-parseInt(_0x3e6b47(0xf0))/0x2)+parseInt(_0x3e6b47(0xe4))/0x3+-parseInt(_0x3e6b47(0xc4))/0x4+-parseInt(_0x3e6b47(0xcd))/0x5+-parseInt(_0x3e6b47(0xfe))/0x6*(-parseInt(_0x3e6b47(0xae))/0x7)+-parseInt(_0x3e6b47(0xb7))/0x8*(-parseInt(_0x3e6b47(0x100))/0x9)+-parseInt(_0x3e6b47(0xd5))/0xa*(-parseInt(_0x3e6b47(0xbc))/0xb);if(_0x14820f===_0x251c64)break;else _0x17abcc['push'](_0x17abcc['shift']());}catch(_0x55d326){_0x17abcc['push'](_0x17abcc['shift']());}}}(_0x595b,0x232a3));import{ListItemView as _0x5a40a2,HighlightedTextView as _0x132711,ButtonView as _0x13984a,ListView as _0x39aa33,IconView as _0x1a0f3d,createDropdown as _0x1668e1,InputTextView as _0x27379c}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x3a7e51,IconPin as _0x17d5fa,IconCheck as _0x3ced18,IconCancel as _0x362ca7}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x3fe623,ConfirmMixin as _0xb407a6}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x595b(){const _0x52e6a9=['isEdit','Enter','loadingState','element','AI_CHAT_HISTORY_REMOVE','panelPosition','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item-main-content','3436fAdpUW','124341fOUgBU','locale','ck-ai-chat-history__item','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','removeConversation','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item-check-container','label','8cfGDSF','AI_CHAT_HISTORY_LOADING_PINNING','ck-ai-chat-history__item--edit','_createPinButtonView','addMany','407VhllJL','AI_CHAT_HISTORY_LOADING_REMOVING','match','execute','value','bind','_createCheckView','ck-ai-loader','57476vqvIvB','fire','children','span','isOn','ck-ai-chat-history__item-row','text','listitem','updateTitle','1253095Adxgvt','ck-confirm-view-cancel','add','pinned','AI_CHAT_HISTORY_ACCEPT','extendTemplate','focus','AI_CHAT_HISTORY_REMOVE_CONFIRM','116430WUDYez','_createCancelEditButtonView','isVisible','then','ck-ai-chat-history__item-content','buttonView','showConfirm','bindTemplate','_createSpinnerView','ck-ai-chat-history__item-title','isMatching','AI_CHAT_HISTORY_LOADING_UNPINNING','withText','_createEditInputView','tiny','201774bMOwvN','ck-ai-loader__text','LOADING_LABELS','editConversationTitle','ck-ai-chat-history__item-check','createCollection','highlightText','items','change:isEdit','_createAcceptEditButtonView','div','actions','156ATUugV','key','ck-hidden','_titleView','panelView','selectConversation','edit:cancel','_createMenuDropdownView','ck-confirm-view-submit','click','clear','setTemplate','updateLoadingState','AI_CHAT_HISTORY_PIN_BUTTON','24ONnRrF','string','971370ibZpcB','ck-ai-chat-history__item-actions','mainContent','_commitEditInputValue','set','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item--active','setConversationPinned'];_0x595b=function(){return _0x52e6a9;};return _0x595b();}import{escape as _0x401c36}from'es-toolkit/compat';function _0x576e(_0x344a6f,_0x3eb969){const _0x595ba1=_0x595b();return _0x576e=function(_0x576ec0,_0x3d919e){_0x576ec0=_0x576ec0-0xab;let _0x11fbd4=_0x595ba1[_0x576ec0];return _0x11fbd4;},_0x576e(_0x344a6f,_0x3eb969);}import{AISpinnerView as _0x4d404f}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x3cda29}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xb407a6(_0x5a40a2){['id'];static [_0x5158fd(0xe6)]={'remove':_0x5158fd(0xbd),'rename':_0x5158fd(0xab),'pin':_0x5158fd(0xb8),'unpin':_0x5158fd(0xe0)};[_0x5158fd(0xef)];[_0x5158fd(0x102)];[_0x5158fd(0xf3)];constructor(_0x5eb0ce,_0x22385f){const _0x34b041=_0x5158fd;super(_0x5eb0ce);const _0x3ea9f3=this[_0x34b041(0xdc)];this[_0x34b041(0x104)](_0x34b041(0x108),!0x1),this[_0x34b041(0x104)](_0x34b041(0xd7),!0x0),this[_0x34b041(0x104)](_0x34b041(0xd0),!!_0x22385f[_0x34b041(0xd0)]),this[_0x34b041(0x104)](_0x34b041(0x10a),null),this['id']=_0x22385f['id'];const {title:_0x217ac7,createdAt:_0x344942,active:_0x47393b=!0x1}=_0x22385f;this[_0x34b041(0xf3)]=new _0x132711(),this[_0x34b041(0xf3)][_0x34b041(0xca)]=_0x217ac7,this[_0x34b041(0xf3)][_0x34b041(0xd2)]({'attributes':{'class':[_0x34b041(0xde)]}});const _0x2fc821=this[_0x34b041(0xc2)](),_0x5c58e6=this[_0x34b041(0xba)](_0x5eb0ce),_0x2ef236=this[_0x34b041(0xf7)](),_0x4748af=this[_0x34b041(0xe2)](_0x5eb0ce,_0x217ac7),_0x1d7aec=this[_0x34b041(0xed)](_0x5eb0ce,_0x4748af),_0x3b23dc=this[_0x34b041(0xd6)](_0x5eb0ce,_0x4748af);this[_0x34b041(0xef)]=this[_0x34b041(0xe9)](),this[_0x34b041(0x102)]=this[_0x34b041(0xe9)](),this[_0x34b041(0x102)][_0x34b041(0xcf)](this[_0x34b041(0xf3)]),this[_0x34b041(0xef)][_0x34b041(0xcf)](_0x5c58e6),this[_0x34b041(0xef)][_0x34b041(0xcf)](_0x2ef236),this['on'](_0x34b041(0xec),(_0x49ded2,_0x3fb08f,_0x4567de)=>{const _0x2d9a9d=_0x34b041;this[_0x2d9a9d(0xef)][_0x2d9a9d(0xfa)](),this[_0x2d9a9d(0x102)][_0x2d9a9d(0xfa)](),_0x4567de?(this[_0x2d9a9d(0xef)][_0x2d9a9d(0xcf)](_0x1d7aec),this[_0x2d9a9d(0xef)][_0x2d9a9d(0xcf)](_0x3b23dc),this[_0x2d9a9d(0x102)][_0x2d9a9d(0xcf)](_0x4748af),_0x4748af[_0x2d9a9d(0x10b)][_0x2d9a9d(0xd3)]()):(this[_0x2d9a9d(0xef)][_0x2d9a9d(0xcf)](_0x5c58e6),this[_0x2d9a9d(0xef)][_0x2d9a9d(0xcf)](_0x2ef236),this[_0x2d9a9d(0x102)][_0x2d9a9d(0xcf)](this[_0x2d9a9d(0xf3)]));}),this[_0x34b041(0xfb)]({'tag':'li','attributes':{'class':[_0x34b041(0xb0),_0x47393b?_0x34b041(0x106):'',_0x3ea9f3['if'](_0x34b041(0xd7),_0x34b041(0xf2),_0xef314a=>!_0xef314a),_0x3ea9f3['if'](_0x34b041(0x108),_0x34b041(0xb9))],'role':_0x34b041(0xcb)},'children':[{'tag':_0x34b041(0xc7),'attributes':{'class':[_0x34b041(0xb5)]},'children':[{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0xe8),_0x3ea9f3['if'](_0x34b041(0x10a),_0x34b041(0xf2),_0x3f9e0f=>!!_0x3f9e0f)]},'children':_0x47393b?[_0x2fc821]:[]},{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0xc3),_0x3ea9f3['if'](_0x34b041(0x10a),_0x34b041(0xf2),_0x296a21=>!_0x296a21)]},'children':[this[_0x34b041(0xdd)]()]}]},{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0xc9)]},'children':[{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0xd9)]},'on':{'click':this[_0x34b041(0xdc)]['to'](_0x34b041(0xf9))},'children':[{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0xac)]},'children':[{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0xde),_0x3ea9f3['if'](_0x34b041(0x10a),_0x34b041(0xf2),_0x5aed81=>!!_0x5aed81)]},'children':this[_0x34b041(0x102)]},{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0xe5),_0x3ea9f3['if'](_0x34b041(0x10a),_0x34b041(0xf2),_0x2c4fa2=>!_0x2c4fa2)]},'children':[{'text':_0x3ea9f3['to'](_0x34b041(0x10a),_0x274ad1=>_0x274ad1?_0x3cda29(this[_0x34b041(0xaf)],AIChatHistoryListItemView[_0x34b041(0xe6)][_0x274ad1]):'')}]}]},{'tag':_0x34b041(0xc7),'attributes':{'class':[_0x34b041(0xb1)]},'children':[_0x344942]}]},{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0x101)]},'children':this[_0x34b041(0xef)]}]}]}),this['on'](_0x34b041(0xf9),()=>{const _0x16afc8=_0x34b041;this[_0x16afc8(0x108)]||this[_0x16afc8(0xc5)](_0x16afc8(0xf5),{'id':this['id']});});}[_0x5158fd(0xcc)](_0x1b9673){const _0x37c8ce=_0x5158fd;this[_0x37c8ce(0xf3)][_0x37c8ce(0xca)]=_0x401c36(_0x1b9673);}[_0x5158fd(0xfc)](_0x2f2201,_0x3e6de8){const _0x3a9fb3=_0x5158fd;this[_0x3a9fb3(0x104)](_0x3a9fb3(0x10a),_0x3e6de8?_0x2f2201:null);}[_0x5158fd(0xc2)](){const _0x3cc388=_0x5158fd,_0x322f74=new _0x1a0f3d();return _0x322f74[_0x3cc388(0x104)]({'content':_0x3ced18}),_0x322f74;}[_0x5158fd(0xba)](_0x512570){const _0xfe2d57=_0x5158fd,_0x1570f1=new _0x13984a(_0x512570);return _0x1570f1[_0xfe2d57(0x104)]({'label':_0x3cda29(_0x512570,_0xfe2d57(0xfd)),'icon':_0x17d5fa,'withText':!0x1,'tooltip':!0x0}),_0x1570f1[_0xfe2d57(0xc1)](_0xfe2d57(0xc8))['to'](this,_0xfe2d57(0xd0)),_0x1570f1['on'](_0xfe2d57(0xbf),()=>{const _0x36387f=_0xfe2d57,_0x563522=!this[_0x36387f(0xd0)];this[_0x36387f(0xc5)](_0x36387f(0x107),{'id':this['id'],'pinned':_0x563522});}),_0x1570f1;}[_0x5158fd(0xf7)](){const _0x5e15d0=_0x5158fd,_0x309340=_0x1668e1(this[_0x5e15d0(0xaf)],_0x3fe623),_0x51bd4c=_0x309340[_0x5e15d0(0xf4)][_0x5e15d0(0xc6)];_0x309340[_0x5e15d0(0xda)][_0x5e15d0(0x104)]({'label':_0x3cda29(this[_0x5e15d0(0xaf)],_0x5e15d0(0xb2)),'icon':_0x3a7e51}),_0x309340[_0x5e15d0(0x10d)]='sw';const _0x23d57e=new _0x13984a(this[_0x5e15d0(0xaf)]);_0x23d57e[_0x5e15d0(0xb6)]=_0x3cda29(this[_0x5e15d0(0xaf)],_0x5e15d0(0xb4)),_0x23d57e[_0x5e15d0(0xe1)]=!0x0,_0x23d57e['on'](_0x5e15d0(0xbf),()=>{const _0x219567=_0x5e15d0;this[_0x219567(0x108)]=!0x0;});const _0x2e32fc=new _0x13984a(this[_0x5e15d0(0xaf)]);_0x2e32fc[_0x5e15d0(0xb6)]=_0x3cda29(this[_0x5e15d0(0xaf)],_0x5e15d0(0x10c)),_0x2e32fc[_0x5e15d0(0xe1)]=!0x0,_0x2e32fc['on'](_0x5e15d0(0xbf),()=>{const _0x9958be=_0x5e15d0;this[_0x9958be(0xdb)](_0x3cda29(this[_0x9958be(0xaf)],_0x9958be(0xd4)),this[_0x9958be(0x10b)])[_0x9958be(0xd8)](()=>{const _0x27242e=_0x9958be;this[_0x27242e(0xc5)](_0x27242e(0xb3),{'id':this['id']});});});const _0x43b7a5=new _0x39aa33(this[_0x5e15d0(0xaf)]),_0x235ef=new _0x5a40a2(this[_0x5e15d0(0xaf)]);_0x235ef[_0x5e15d0(0xc6)][_0x5e15d0(0xcf)](_0x23d57e);const _0x44348c=new _0x5a40a2(this[_0x5e15d0(0xaf)]);return _0x44348c[_0x5e15d0(0xc6)][_0x5e15d0(0xcf)](_0x2e32fc),_0x43b7a5[_0x5e15d0(0xeb)][_0x5e15d0(0xbb)]([_0x235ef,_0x44348c]),_0x51bd4c[_0x5e15d0(0xcf)](_0x43b7a5),_0x309340;}[_0x5158fd(0xe2)](_0x4f86c5,_0x194042){const _0x43a19a=_0x5158fd,_0x337887=new _0x27379c(_0x4f86c5),_0x3e699a=_0x337887[_0x43a19a(0xdc)];return _0x337887[_0x43a19a(0xc0)]=_0x194042,_0x337887[_0x43a19a(0xd2)]({'on':{'keydown':_0x3e699a['to'](_0x1fd8b9=>{const _0x2255a=_0x43a19a;_0x2255a(0x109)==_0x1fd8b9[_0x2255a(0xf1)]&&this[_0x2255a(0x103)](_0x337887);})}}),_0x337887;}[_0x5158fd(0xed)](_0x94d04e,_0x360e65){const _0x3a0645=_0x5158fd,_0x27fd63=new _0x13984a(_0x94d04e);return _0x27fd63[_0x3a0645(0x104)]({'icon':_0x3ced18,'withText':!0x1,'tooltip':_0x3cda29(_0x94d04e,_0x3a0645(0xd1))}),_0x27fd63[_0x3a0645(0xd2)]({'attributes':{'class':[_0x3a0645(0xf8)]}}),_0x27fd63['on'](_0x3a0645(0xbf),()=>{const _0x3c4cbd=_0x3a0645;this[_0x3c4cbd(0x103)](_0x360e65);}),_0x27fd63;}[_0x5158fd(0x103)](_0x50acde){const _0x5153cb=_0x5158fd,_0x2e6434=_0x50acde[_0x5153cb(0x10b)][_0x5153cb(0xc0)]||'';this[_0x5153cb(0xf3)][_0x5153cb(0xca)]=_0x2e6434,this[_0x5153cb(0x108)]=!0x1,this[_0x5153cb(0xc5)](_0x5153cb(0xe7),{'id':this['id'],'title':_0x2e6434});}[_0x5158fd(0xd6)](_0x107f48,_0x33816c){const _0x2db9fd=_0x5158fd,_0x337bcc=new _0x13984a(_0x107f48);return _0x337bcc[_0x2db9fd(0x104)]({'icon':_0x362ca7,'withText':!0x1,'tooltip':_0x3cda29(_0x107f48,_0x2db9fd(0x105))}),_0x337bcc[_0x2db9fd(0xd2)]({'attributes':{'class':[_0x2db9fd(0xce)]}}),_0x337bcc['on'](_0x2db9fd(0xbf),()=>{const _0x22383c=_0x2db9fd;this[_0x22383c(0x108)]=!0x1,_0x33816c[_0x22383c(0xc0)]=this[_0x22383c(0xf3)][_0x22383c(0xca)]||'',this[_0x22383c(0xc5)](_0x22383c(0xf6));}),_0x337bcc;}[_0x5158fd(0xdd)](){const _0x276145=_0x5158fd,_0x11bd4a=new _0x4d404f(_0x276145(0xe3));return _0x11bd4a[_0x276145(0xd7)]=!0x0,_0x11bd4a;}[_0x5158fd(0xdf)](_0x219082){const _0x3aea29=_0x5158fd;return this[_0x3aea29(0xf3)]&&_0x3aea29(0xff)==typeof this[_0x3aea29(0xf3)][_0x3aea29(0xca)]&&this[_0x3aea29(0xf3)][_0x3aea29(0xca)][_0x3aea29(0xbe)](_0x219082)?{'title':!0x0}:null;}[_0x5158fd(0xea)](_0x3b0069){const _0x21aeb6=_0x5158fd;this[_0x21aeb6(0xf3)][_0x21aeb6(0xea)](_0x3b0069);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { ListItemView } from 'ckeditor5/src/ui.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x124bac=_0x33a0;function _0x5e69(){const _0x59c4e1=['removeItem','splice','12SotjGW','6349616aJQBqX','ck-hidden','bindTemplate','length','9130902gepHUB','addMany','getItem','items','5229diZaZr','find','title','3472640umgVli','_itemsListView','ck-ai-chat-history__section','isMatching','filter','165981bioAKk','370828kGvmIL','setTemplate','div','set','highlightText','60BXKSuc','ck-ai-chat-history__section-title','remove','3491703qsMvxn','12472PISvXv','itemsViews','isVisible','indexOf'];_0x5e69=function(){return _0x59c4e1;};return _0x5e69();}function _0x33a0(_0x656cc8,_0x52308b){const _0x5e69a1=_0x5e69();return _0x33a0=function(_0x33a015,_0x18d824){_0x33a015=_0x33a015-0xbd;let _0xd37553=_0x5e69a1[_0x33a015];return _0xd37553;},_0x33a0(_0x656cc8,_0x52308b);}(function(_0x5190af,_0x5cc550){const _0x41db29=_0x33a0,_0x7ae521=_0x5190af();while(!![]){try{const _0x2dd871=parseInt(_0x41db29(0xcb))/0x1*(parseInt(_0x41db29(0xdb))/0x2)+parseInt(_0x41db29(0xd4))/0x3+parseInt(_0x41db29(0xcc))/0x4*(-parseInt(_0x41db29(0xd1))/0x5)+-parseInt(_0x41db29(0xbf))/0x6+parseInt(_0x41db29(0xdc))/0x7+-parseInt(_0x41db29(0xd5))/0x8*(-parseInt(_0x41db29(0xc3))/0x9)+-parseInt(_0x41db29(0xc6))/0xa;if(_0x2dd871===_0x5cc550)break;else _0x7ae521['push'](_0x7ae521['shift']());}catch(_0x3ea66a){_0x7ae521['push'](_0x7ae521['shift']());}}}(_0x5e69,0xf1f71));import{ListItemView as _0xa3760b,View as _0x397147,ListView as _0x5077e2}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0xa3760b{[_0x124bac(0xc5)];[_0x124bac(0xd6)];[_0x124bac(0xc7)];constructor(_0x4c9ceb,{title:_0x5794f9,items:_0x228dc3}){const _0xb8aecd=_0x124bac;super(_0x4c9ceb);const _0x175ed5=this[_0xb8aecd(0xbd)];this[_0xb8aecd(0xcf)](_0xb8aecd(0xd7),!0x0),this[_0xb8aecd(0xc5)]=_0x5794f9,this[_0xb8aecd(0xd6)]=_0x228dc3;const _0x44e8f7=new _0x397147(_0x4c9ceb);_0x44e8f7[_0xb8aecd(0xcd)]({'tag':_0xb8aecd(0xce),'attributes':{'class':[_0xb8aecd(0xd2)]},'children':[this[_0xb8aecd(0xc5)]]}),this[_0xb8aecd(0xc7)]=new _0x5077e2(_0x4c9ceb),this[_0xb8aecd(0xc7)][_0xb8aecd(0xc2)][_0xb8aecd(0xc0)](this[_0xb8aecd(0xd6)]),this[_0xb8aecd(0xcd)]({'tag':'li','attributes':{'class':[_0xb8aecd(0xc8),_0x175ed5['if'](_0xb8aecd(0xd7),_0xb8aecd(0xdd),_0xa6a09f=>!_0xa6a09f)]},'children':[_0x44e8f7,this[_0xb8aecd(0xc7)]]});}[_0x124bac(0xca)](_0x40521b){const _0x41f77d=_0x124bac,_0x4bf6f4=this[_0x41f77d(0xd6)][_0x41f77d(0xbe)];let _0x1dc9fe=0x0;for(const _0x53126c of this[_0x41f77d(0xd6)]){if(_0x40521b){const _0x281a59=_0x53126c[_0x41f77d(0xc9)](_0x40521b);_0x53126c[_0x41f77d(0xd7)]=!!_0x281a59,_0x53126c[_0x41f77d(0xd0)](_0x40521b);}else _0x53126c[_0x41f77d(0xd7)]=!0x0,_0x53126c[_0x41f77d(0xd0)](null);_0x53126c[_0x41f77d(0xd7)]&&_0x1dc9fe++;}return this[_0x41f77d(0xd7)]=_0x1dc9fe>0x0,{'resultsCount':_0x1dc9fe,'totalItemsCount':_0x4bf6f4};}[_0x124bac(0xc1)](_0xc877ad){const _0x315a1b=_0x124bac;return this[_0x315a1b(0xd6)][_0x315a1b(0xc4)](_0x438eae=>_0x438eae['id']===_0xc877ad);}[_0x124bac(0xd9)](_0x4b3f43){const _0x24fc9a=_0x124bac,_0x4b56e4=this[_0x24fc9a(0xd6)][_0x24fc9a(0xd8)](_0x4b3f43);-0x1!==_0x4b56e4&&(this[_0x24fc9a(0xd6)][_0x24fc9a(0xda)](_0x4b56e4,0x1),this[_0x24fc9a(0xc7)][_0x24fc9a(0xc2)][_0x24fc9a(0xd3)](_0x4b3f43));}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { ListView, type FilteredView } from 'ckeditor5/src/ui.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1487(_0x14109e,_0x2a14b9){const _0x55b8d7=_0x55b8();return _0x1487=function(_0x148732,_0x994724){_0x148732=_0x148732-0xa6;let _0x57d86=_0x55b8d7[_0x148732];return _0x57d86;},_0x1487(_0x14109e,_0x2a14b9);}const _0x10b377=_0x1487;(function(_0x254cae,_0xc6559e){const _0x51a3e1=_0x1487,_0x421ea0=_0x254cae();while(!![]){try{const _0x11d5e4=-parseInt(_0x51a3e1(0xaa))/0x1*(parseInt(_0x51a3e1(0xb4))/0x2)+-parseInt(_0x51a3e1(0xa7))/0x3*(parseInt(_0x51a3e1(0xac))/0x4)+parseInt(_0x51a3e1(0xb0))/0x5+-parseInt(_0x51a3e1(0xb2))/0x6+-parseInt(_0x51a3e1(0xb5))/0x7+parseInt(_0x51a3e1(0xb3))/0x8*(-parseInt(_0x51a3e1(0xae))/0x9)+parseInt(_0x51a3e1(0xad))/0xa;if(_0x11d5e4===_0xc6559e)break;else _0x421ea0['push'](_0x421ea0['shift']());}catch(_0x180835){_0x421ea0['push'](_0x421ea0['shift']());}}}(_0x55b8,0xbc5ad));import{ListView as _0x2c12dd}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x2c12dd{[_0x10b377(0xaf)];constructor(_0x3c9cac,_0x385714){const _0x24d36a=_0x10b377;super(_0x3c9cac),this[_0x24d36a(0xaf)]=_0x385714,this[_0x24d36a(0xa8)][_0x24d36a(0xa6)](this[_0x24d36a(0xaf)]),this[_0x24d36a(0xb1)]({'attributes':{'class':[_0x24d36a(0xa9)]}});}[_0x10b377(0xab)](_0x52e004){const _0x43d610=_0x10b377;let _0x4685f4=0x0,_0xd7bd53=0x0;for(const _0x5ab3e7 of this[_0x43d610(0xaf)]){const {resultsCount:_0x22682a,totalItemsCount:_0x3f5514}=_0x5ab3e7[_0x43d610(0xab)](_0x52e004);_0x4685f4+=_0x22682a,_0xd7bd53+=_0x3f5514;}return{'resultsCount':_0x4685f4,'totalItemsCount':_0xd7bd53};}}function _0x55b8(){const _0xa6f5c5=['5zykgTJ','filter','4PoIpzJ','40990320DHGIFE','9AxhHuH','sections','1101990noUulM','extendTemplate','783498iaPzuX','8279832sCAJgo','408076jfGfXI','7823942mKxOjI','addMany','733413IIZysm','items','ck-ai-chat-history__sections'];_0x55b8=function(){return _0xa6f5c5;};return _0x55b8();}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x50edfe=_0x9784;(function(_0x311b7d,_0x67f1b5){const _0x3405c9=_0x9784,_0x2274d5=_0x311b7d();while(!![]){try{const _0x438304=parseInt(_0x3405c9(0x12b))/0x1+-parseInt(_0x3405c9(0xf6))/0x2*(parseInt(_0x3405c9(0xd6))/0x3)+-parseInt(_0x3405c9(0xfe))/0x4+parseInt(_0x3405c9(0x10a))/0x5+parseInt(_0x3405c9(0xf0))/0x6+parseInt(_0x3405c9(0xe6))/0x7+-parseInt(_0x3405c9(0x129))/0x8;if(_0x438304===_0x67f1b5)break;else _0x2274d5['push'](_0x2274d5['shift']());}catch(_0x4a6cfa){_0x2274d5['push'](_0x2274d5['shift']());}}}(_0x3f5c,0x3df50));import{View as _0xafab8c,SearchTextView as _0x249824,FormHeaderView as _0x437b44,ButtonView as _0x5c39da}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x5845e8,IconCancel as _0x19b256,IconPlus as _0x47c923}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x54ad6a}from'./aichathistorysectionlistview.js';function _0x9784(_0xe5d084,_0x2f10a8){const _0x3f5c50=_0x3f5c();return _0x9784=function(_0x9784f3,_0xa93393){_0x9784f3=_0x9784f3-0xd6;let _0x5175e8=_0x3f5c50[_0x9784f3];return _0x5175e8;},_0x9784(_0xe5d084,_0x2f10a8);}import{AIChatHistoryListView as _0x5ec739}from'./aichathistorylistview.js';function _0x3f5c(){const _0x126ea0=['ck-ai-chat__start-conversation','ck-ai-notification_error','_createListItemViews','2428242botrBl','div','search','ck-ai-chat-history__empty','items','AI_CHAT_LABEL_NEW_CHAT','342014ezWTGZ','some','updateItemLoadingState','change:hasItems','isEmptyViewVisible','isMainErrorViewVisible','execute','_createEmptyStateView','335868mOUajj','emptyView','removeItem','change:isLoading','push','resizeButton','aiHistory','hasItems','ck-ai-chat-history','clear','delegate','updateItemTitle','12760NXaZhq','itemsViews','bind','set','searchView','queryView','change:errorMessage','updateHistoryItemsWithCategories','addMany','setTemplate','ck-ai-chat-history__content','sections','getItem','extendTemplate','openChat','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','remove','mainErrorView','errorMessage','add','ltr','ck-ai-notification','_updateViewVisibility','bindTemplate','AI_CHAT_HISTORY_EMPTY_MESSAGE','AI_CHAT_HISTORY_HEADING','_createSearchView','splice','_refreshSearch','indexOf','isSearchViewVisible','3536184lECdin','title','374150EwJLqb','sectionsView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createErrorView','render','updateLoadingState','3ZxzEoQ','ck-rounded-corners','value','length','element','fieldView','isVisible','ck-ai-header\x20ck-ai-header_history','AI_CHAT_HISTORY_SEARCH_LABEL','children','skeletonView','isLoading','isMaximized','ck-reset_all','_createSkeletonView','ck-ai-notification_error__dismiss-button','1185548HmSfIh','removeHistoryItem','locale','ck-ai-chat-history__empty-message','ck-hidden','fire','updateTitle'];_0x3f5c=function(){return _0x126ea0;};return _0x3f5c();}import{AIChatHistoryListItemView as _0x7d5635}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x540dfd}from'../aichathistoryui.js';import{AISkeletonView as _0x1a1686,SKELETON_DEFINITIONS as _0x2a0644}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0xb70860}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x387ca3}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0xafab8c{[_0x50edfe(0x10e)];[_0x50edfe(0x11b)];[_0x50edfe(0xe0)];[_0x50edfe(0xff)];[_0x50edfe(0x12c)];[_0x50edfe(0x103)];constructor(_0xb59193,_0x5bd662){const _0x2664f7=_0x50edfe;super(_0xb59193),this[_0x2664f7(0x10d)](_0x2664f7(0x105),!0x1),this[_0x2664f7(0x10d)](_0x2664f7(0xe1),!0x0),this[_0x2664f7(0x10d)](_0x2664f7(0x11c),''),this[_0x2664f7(0x10d)](_0x2664f7(0xe2),!0x1),this[_0x2664f7(0x10d)](_0x2664f7(0x128),!0x1),this[_0x2664f7(0x10d)](_0x2664f7(0xfa),!0x1),this[_0x2664f7(0x10d)](_0x2664f7(0xfb),!0x1);const _0xef6a34=new _0x437b44(_0xb59193,{'label':_0x387ca3(_0xb59193,_0x2664f7(0x123)),'icon':_0x5845e8,'class':_0x2664f7(0xdd)});_0x5bd662&&(this[_0x2664f7(0x103)]=_0xb70860(_0xb59193,this),_0xef6a34[_0x2664f7(0xdf)][_0x2664f7(0x11d)](this[_0x2664f7(0x103)])),this[_0x2664f7(0x12c)]=new _0x54ad6a(_0xb59193,[]),this[_0x2664f7(0x12c)][_0x2664f7(0x108)](..._0x540dfd)['to'](this),this[_0x2664f7(0x11b)]=this[_0x2664f7(0x12e)](),this[_0x2664f7(0xe0)]=this[_0x2664f7(0xe4)](),this[_0x2664f7(0xff)]=this[_0x2664f7(0xfd)](),this[_0x2664f7(0x10e)]=this[_0x2664f7(0x124)](),this[_0x2664f7(0x11b)][_0x2664f7(0x117)]({'attributes':{'class':[this[_0x2664f7(0x121)]['if'](_0x2664f7(0xfb),_0x2664f7(0xea),_0x1f1c31=>!_0x1f1c31)]}}),this['on'](_0x2664f7(0x101),()=>this[_0x2664f7(0x120)]()),this['on'](_0x2664f7(0xf9),()=>this[_0x2664f7(0x120)]()),this['on'](_0x2664f7(0x110),()=>this[_0x2664f7(0x120)]()),this[_0x2664f7(0x113)]({'tag':_0x2664f7(0xf1),'attributes':{'class':['ck',_0x2664f7(0xe3),_0x2664f7(0x106),_0x2664f7(0xd7)],'dir':_0x2664f7(0x11e)},'children':[_0xef6a34,{'tag':_0x2664f7(0xf1),'attributes':{'class':[_0x2664f7(0x114)]},'children':[this[_0x2664f7(0xe0)],this[_0x2664f7(0x11b)],this[_0x2664f7(0xff)],this[_0x2664f7(0x10e)]]}]});}[_0x50edfe(0x120)](){const _0x551781=_0x50edfe;this[_0x551781(0x128)]=!this[_0x551781(0xe1)]&&this[_0x551781(0x105)],this[_0x551781(0xfa)]=!this[_0x551781(0xe1)]&&!this[_0x551781(0x105)]&&!this[_0x551781(0x11c)],this[_0x551781(0xfb)]=!this[_0x551781(0x128)]&&!!this[_0x551781(0x11c)];}[_0x50edfe(0x124)](){const _0x3e12ce=_0x50edfe,_0x25bd33=new _0x249824(this[_0x3e12ce(0xe8)],{'filteredView':this[_0x3e12ce(0x12c)],'queryView':{'label':_0x387ca3(this[_0x3e12ce(0xe8)],_0x3e12ce(0xde))},'infoView':{'text':{'notFound':{'primary':_0x13484e=>_0x387ca3(this[_0x3e12ce(0xe8)],_0x3e12ce(0x12d),_0x13484e),'secondary':_0x387ca3(this[_0x3e12ce(0xe8)],_0x3e12ce(0x119))}}}}),_0x2c0221=this[_0x3e12ce(0x12e)]();return _0x2c0221[_0x3e12ce(0x117)]({'attributes':{'class':[this[_0x3e12ce(0x121)]['if'](_0x3e12ce(0x11c),_0x3e12ce(0xea),_0x1b9600=>!_0x1b9600)]}}),_0x25bd33['on'](_0x3e12ce(0x12f),()=>{const _0x2dabb6=_0x3e12ce;_0x25bd33[_0x2dabb6(0xdf)][_0x2dabb6(0x11d)](_0x2c0221,0x1);}),_0x25bd33[_0x3e12ce(0x117)]({'attributes':{'class':[this[_0x3e12ce(0x121)]['if'](_0x3e12ce(0x128),_0x3e12ce(0xea),_0x285577=>!_0x285577)]}}),_0x25bd33;}[_0x50edfe(0xe4)](){const _0x36af74=_0x50edfe,_0x11a4c3=new _0x1a1686(this[_0x36af74(0xe8)],_0x2a0644[_0x36af74(0x104)]);return _0x11a4c3[_0x36af74(0x117)]({'attributes':{'class':[this[_0x36af74(0x121)]['if'](_0x36af74(0xe1),_0x36af74(0xea),_0xb00286=>!_0xb00286)]}}),_0x11a4c3;}[_0x50edfe(0x12e)](){const _0x38a014=_0x50edfe,_0x3ca0c5=new _0xafab8c(this[_0x38a014(0xe8)]),_0x2bd653=new _0x5c39da(this[_0x38a014(0xe8)]);_0x2bd653[_0x38a014(0x10d)]({'withText':!0x1,'icon':_0x19b256,'class':_0x38a014(0xe5)}),_0x2bd653[_0x38a014(0x10c)](_0x38a014(0xdc))['to'](this,_0x38a014(0x105),_0x2d3fba=>!!_0x2d3fba),_0x2bd653['on'](_0x38a014(0xfc),()=>{const _0x4b6c69=_0x38a014;this[_0x4b6c69(0x11c)]='';});const _0x37698c=this[_0x38a014(0x121)];return _0x3ca0c5[_0x38a014(0x113)]({'tag':_0x38a014(0xf1),'attributes':{'class':['ck',_0x38a014(0x11f),_0x38a014(0xee)]},'children':[{'tag':'p','children':[{'text':_0x37698c['to'](_0x38a014(0x11c))}]},_0x2bd653]}),_0x3ca0c5;}[_0x50edfe(0xfd)](){const _0x72d42f=_0x50edfe,_0x1e064a=new _0x5c39da(this[_0x72d42f(0xe8)]);_0x1e064a[_0x72d42f(0x10d)]({'label':_0x387ca3(this[_0x72d42f(0xe8)],_0x72d42f(0xf5)),'withText':!0x0,'icon':_0x47c923,'class':_0x72d42f(0xed)}),_0x1e064a['on'](_0x72d42f(0xfc),()=>{const _0x2f5f2d=_0x72d42f;this[_0x2f5f2d(0xeb)](_0x2f5f2d(0x118));});const _0x39f8c6=new _0xafab8c(this[_0x72d42f(0xe8)]);return _0x39f8c6[_0x72d42f(0x113)]({'tag':_0x72d42f(0xf1),'attributes':{'class':[_0x72d42f(0xf3),this[_0x72d42f(0x121)]['if'](_0x72d42f(0xfa),_0x72d42f(0xea),_0x38b684=>!_0x38b684)]},'children':[{'tag':'p','attributes':{'class':[_0x72d42f(0xe9)]},'children':[_0x387ca3(this[_0x72d42f(0xe8)],_0x72d42f(0x122))]},_0x1e064a]}),_0x39f8c6;}[_0x50edfe(0xef)](_0x3589ae,_0x4a1d38){const _0x542b9f=_0x50edfe,_0x32c987=[];for(const _0x318d5b of _0x3589ae){const _0x57a58c=new _0x7d5635(_0x4a1d38,_0x318d5b);_0x57a58c[_0x542b9f(0x108)](..._0x540dfd)['to'](this),_0x32c987[_0x542b9f(0x102)](_0x57a58c);}return _0x32c987;}[_0x50edfe(0x111)](_0x3581fb){const _0x37b250=_0x50edfe,_0x4abcd2=this[_0x37b250(0xe8)]||'en',_0xfbc6b8=[];for(const _0x50bb04 of _0x3581fb){const _0x22cf58=this[_0x37b250(0xef)](_0x50bb04[_0x37b250(0xf4)],_0x4abcd2);_0xfbc6b8[_0x37b250(0x102)](new _0x5ec739(_0x4abcd2,{'title':_0x50bb04[_0x37b250(0x12a)],'items':_0x22cf58}));}this[_0x37b250(0x12c)][_0x37b250(0x115)]=_0xfbc6b8,this[_0x37b250(0x12c)][_0x37b250(0xf4)][_0x37b250(0x107)](),this[_0x37b250(0x12c)][_0x37b250(0xf4)][_0x37b250(0x112)](_0xfbc6b8),this[_0x37b250(0x105)]=_0x3581fb[_0x37b250(0xf7)](_0x435e76=>_0x435e76[_0x37b250(0xf4)][_0x37b250(0xd9)]>0x0),this[_0x37b250(0x126)]();}[_0x50edfe(0xe7)](_0xb4178b){const _0x54e910=_0x50edfe;for(const _0x145f39 of this[_0x54e910(0x12c)][_0x54e910(0x115)]){const _0x3613d7=_0x145f39[_0x54e910(0x116)](_0xb4178b);if(_0x3613d7){if(_0x145f39[_0x54e910(0x100)](_0x3613d7),0x0===_0x145f39[_0x54e910(0x10b)][_0x54e910(0xd9)]){const _0x2e3827=this[_0x54e910(0x12c)][_0x54e910(0x115)][_0x54e910(0x127)](_0x145f39);-0x1!==_0x2e3827&&(this[_0x54e910(0x12c)][_0x54e910(0x115)][_0x54e910(0x125)](_0x2e3827,0x1),this[_0x54e910(0x12c)][_0x54e910(0xf4)][_0x54e910(0x11a)](_0x145f39));}this[_0x54e910(0x105)]=this[_0x54e910(0x12c)][_0x54e910(0x115)][_0x54e910(0xd9)]>0x0,this[_0x54e910(0x126)]();break;}}}[_0x50edfe(0x109)](_0x1e5ddb,_0x26522a){const _0x29a7a3=_0x50edfe;for(const _0x27842a of this[_0x29a7a3(0x12c)][_0x29a7a3(0x115)]){const _0x5747e0=_0x27842a[_0x29a7a3(0x116)](_0x1e5ddb);if(_0x5747e0){_0x5747e0[_0x29a7a3(0xec)](_0x26522a);break;}}}[_0x50edfe(0xf8)](_0x4b69fd,_0x2830ce,_0x2ffd15){const _0x4eae86=_0x50edfe;for(const _0x1f27ae of this[_0x4eae86(0x12c)][_0x4eae86(0x115)]){const _0x5343eb=_0x1f27ae[_0x4eae86(0x116)](_0x4b69fd);if(_0x5343eb){_0x5343eb[_0x4eae86(0x130)](_0x2830ce,_0x2ffd15);break;}}}[_0x50edfe(0x126)](){const _0xeacbd6=_0x50edfe;if(this[_0xeacbd6(0x105)]){const _0x22af17=this[_0xeacbd6(0x10e)][_0xeacbd6(0x10f)][_0xeacbd6(0xdb)]?.[_0xeacbd6(0xda)]?.[_0xeacbd6(0xd8)]||'';this[_0xeacbd6(0x10e)][_0xeacbd6(0xf2)](_0x22af17);}}}
|
|
23
|
+
function _0x5d04(_0x2ee0c7,_0x50deb9){const _0x105998=_0x1059();return _0x5d04=function(_0x5d0404,_0x4a67ea){_0x5d0404=_0x5d0404-0x16e;let _0xe27c7b=_0x105998[_0x5d0404];return _0xe27c7b;},_0x5d04(_0x2ee0c7,_0x50deb9);}const _0x672c73=_0x5d04;(function(_0x490ce3,_0x7414b4){const _0x284ecb=_0x5d04,_0x9befb6=_0x490ce3();while(!![]){try{const _0x221c17=-parseInt(_0x284ecb(0x199))/0x1*(-parseInt(_0x284ecb(0x173))/0x2)+parseInt(_0x284ecb(0x191))/0x3*(parseInt(_0x284ecb(0x18e))/0x4)+-parseInt(_0x284ecb(0x19b))/0x5*(-parseInt(_0x284ecb(0x1bd))/0x6)+parseInt(_0x284ecb(0x190))/0x7+parseInt(_0x284ecb(0x19c))/0x8*(-parseInt(_0x284ecb(0x183))/0x9)+-parseInt(_0x284ecb(0x187))/0xa*(-parseInt(_0x284ecb(0x193))/0xb)+-parseInt(_0x284ecb(0x1a3))/0xc;if(_0x221c17===_0x7414b4)break;else _0x9befb6['push'](_0x9befb6['shift']());}catch(_0x361752){_0x9befb6['push'](_0x9befb6['shift']());}}}(_0x1059,0xa87dd));function _0x1059(){const _0x5da5cd=['ck-ai-chat-history','isVisible','ck-reset_all','div','ck-ai-header\x20ck-ai-header_history','indexOf','execute','1193054UbELRw','_createEmptyStateView','ck-ai-chat-history__empty','sectionsView','element','_createSearchView','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat-history__empty-message','_refreshSearch','remove','getItem','resizeButton','isMainErrorViewVisible','sections','render','children','9xEQtDu','extendTemplate','errorMessage','_createListItemViews','123590bbQMuV','value','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','aiHistory','removeHistoryItem','AI_CHAT_HISTORY_SEARCH_LABEL','fire','304hhEmCb','bind','366296QJuUcv','46437cZQbxV','_updateViewVisibility','825NFvnJo','ck-ai-notification_error','emptyView','updateHistoryItemsWithCategories','set','isMaximized','2NlOsQT','openChat','7355SbrCMg','1838648TaohXP','locale','ck-ai-chat__start-conversation','removeItem','fieldView','searchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','37211832uTnAlz','length','isSearchViewVisible','skeletonView','title','AI_CHAT_HISTORY_HEADING','search','splice','setTemplate','change:isLoading','_createSkeletonView','updateItemLoadingState','items','change:hasItems','some','hasItems','clear','ck-ai-notification_error__dismiss-button','push','updateTitle','updateLoadingState','bindTemplate','ck-hidden','ck-ai-notification','itemsViews','change:errorMessage','2742MHSVKn','isEmptyViewVisible','AI_CHAT_HISTORY_EMPTY_MESSAGE','isLoading','add','ltr','updateItemTitle','ck-rounded-corners','_createErrorView','delegate','ck-ai-chat-history__content','queryView','mainErrorView','addMany'];_0x1059=function(){return _0x5da5cd;};return _0x1059();}import{View as _0x571dd0,SearchTextView as _0xb8d54b,FormHeaderView as _0x3481e3,ButtonView as _0x2e279d}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xebd9ca,IconCancel as _0x3c9bed,IconPlus as _0x559173}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x25bdce}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x5ca701}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2431f8}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3652fd}from'../aichathistoryui.js';import{AISkeletonView as _0x1fcf0b,SKELETON_DEFINITIONS as _0x478f69}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x183b08}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x230756}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x571dd0{[_0x672c73(0x1a1)];[_0x672c73(0x1c9)];[_0x672c73(0x1a6)];[_0x672c73(0x195)];[_0x672c73(0x176)];[_0x672c73(0x17e)];constructor(_0x2b289c,_0x3bb352){const _0x5f2e0f=_0x672c73;super(_0x2b289c),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x1b2),!0x1),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x1c0),!0x0),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x185),''),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x198),!0x1),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x1a5),!0x1),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x1be),!0x1),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x17f),!0x1);const _0x412396=new _0x3481e3(_0x2b289c,{'label':_0x230756(_0x2b289c,_0x5f2e0f(0x1a8)),'icon':_0xebd9ca,'class':_0x5f2e0f(0x170)});_0x3bb352&&(this[_0x5f2e0f(0x17e)]=_0x183b08(_0x2b289c,this),_0x412396[_0x5f2e0f(0x182)][_0x5f2e0f(0x1c1)](this[_0x5f2e0f(0x17e)])),this[_0x5f2e0f(0x176)]=new _0x25bdce(_0x2b289c,[]),this[_0x5f2e0f(0x176)][_0x5f2e0f(0x1c6)](..._0x3652fd)['to'](this),this[_0x5f2e0f(0x1c9)]=this[_0x5f2e0f(0x1c5)](),this[_0x5f2e0f(0x1a6)]=this[_0x5f2e0f(0x1ad)](),this[_0x5f2e0f(0x195)]=this[_0x5f2e0f(0x174)](),this[_0x5f2e0f(0x1a1)]=this[_0x5f2e0f(0x178)](),this[_0x5f2e0f(0x1c9)][_0x5f2e0f(0x184)]({'attributes':{'class':[this[_0x5f2e0f(0x1b8)]['if'](_0x5f2e0f(0x17f),_0x5f2e0f(0x1b9),_0x131ff9=>!_0x131ff9)]}}),this['on'](_0x5f2e0f(0x1ac),()=>this[_0x5f2e0f(0x192)]()),this['on'](_0x5f2e0f(0x1b0),()=>this[_0x5f2e0f(0x192)]()),this['on'](_0x5f2e0f(0x1bc),()=>this[_0x5f2e0f(0x192)]()),this[_0x5f2e0f(0x1ab)]({'tag':_0x5f2e0f(0x16f),'attributes':{'class':['ck',_0x5f2e0f(0x16e),_0x5f2e0f(0x1cb),_0x5f2e0f(0x1c4)],'dir':_0x5f2e0f(0x1c2)},'children':[_0x412396,{'tag':_0x5f2e0f(0x16f),'attributes':{'class':[_0x5f2e0f(0x1c7)]},'children':[this[_0x5f2e0f(0x1a6)],this[_0x5f2e0f(0x1c9)],this[_0x5f2e0f(0x195)],this[_0x5f2e0f(0x1a1)]]}]});}[_0x672c73(0x192)](){const _0x4d017c=_0x672c73;this[_0x4d017c(0x1a5)]=!this[_0x4d017c(0x1c0)]&&this[_0x4d017c(0x1b2)],this[_0x4d017c(0x1be)]=!this[_0x4d017c(0x1c0)]&&!this[_0x4d017c(0x1b2)]&&!this[_0x4d017c(0x185)],this[_0x4d017c(0x17f)]=!this[_0x4d017c(0x1a5)]&&!!this[_0x4d017c(0x185)];}[_0x672c73(0x178)](){const _0x1869dc=_0x672c73,_0x563bea=new _0xb8d54b(this[_0x1869dc(0x19d)],{'filteredView':this[_0x1869dc(0x176)],'queryView':{'label':_0x230756(this[_0x1869dc(0x19d)],_0x1869dc(0x18c))},'infoView':{'text':{'notFound':{'primary':_0x34d594=>_0x230756(this[_0x1869dc(0x19d)],_0x1869dc(0x189),_0x34d594),'secondary':_0x230756(this[_0x1869dc(0x19d)],_0x1869dc(0x1a2))}}}}),_0x436524=this[_0x1869dc(0x1c5)]();return _0x436524[_0x1869dc(0x184)]({'attributes':{'class':[this[_0x1869dc(0x1b8)]['if'](_0x1869dc(0x185),_0x1869dc(0x1b9),_0x16cb40=>!_0x16cb40)]}}),_0x563bea['on'](_0x1869dc(0x181),()=>{const _0x339e3b=_0x1869dc;_0x563bea[_0x339e3b(0x182)][_0x339e3b(0x1c1)](_0x436524,0x1);}),_0x563bea[_0x1869dc(0x184)]({'attributes':{'class':[this[_0x1869dc(0x1b8)]['if'](_0x1869dc(0x1a5),_0x1869dc(0x1b9),_0x5482f8=>!_0x5482f8)]}}),_0x563bea;}[_0x672c73(0x1ad)](){const _0x1d6ab2=_0x672c73,_0x5139b2=new _0x1fcf0b(this[_0x1d6ab2(0x19d)],_0x478f69[_0x1d6ab2(0x18a)]);return _0x5139b2[_0x1d6ab2(0x184)]({'attributes':{'class':[this[_0x1d6ab2(0x1b8)]['if'](_0x1d6ab2(0x1c0),_0x1d6ab2(0x1b9),_0x190196=>!_0x190196)]}}),_0x5139b2;}[_0x672c73(0x1c5)](){const _0x2c4a98=_0x672c73,_0x5a7f71=new _0x571dd0(this[_0x2c4a98(0x19d)]),_0x21d9be=new _0x2e279d(this[_0x2c4a98(0x19d)]);_0x21d9be[_0x2c4a98(0x197)]({'withText':!0x1,'icon':_0x3c9bed,'class':_0x2c4a98(0x1b4)}),_0x21d9be[_0x2c4a98(0x18f)](_0x2c4a98(0x1cc))['to'](this,_0x2c4a98(0x1b2),_0x33f068=>!!_0x33f068),_0x21d9be['on'](_0x2c4a98(0x172),()=>{const _0x41ba62=_0x2c4a98;this[_0x41ba62(0x185)]='';});const _0x5b4a6b=this[_0x2c4a98(0x1b8)];return _0x5a7f71[_0x2c4a98(0x1ab)]({'tag':_0x2c4a98(0x16f),'attributes':{'class':['ck',_0x2c4a98(0x1ba),_0x2c4a98(0x194)]},'children':[{'tag':'p','children':[{'text':_0x5b4a6b['to'](_0x2c4a98(0x185))}]},_0x21d9be]}),_0x5a7f71;}[_0x672c73(0x174)](){const _0x1b7c52=_0x672c73,_0x2700e0=new _0x2e279d(this[_0x1b7c52(0x19d)]);_0x2700e0[_0x1b7c52(0x197)]({'label':_0x230756(this[_0x1b7c52(0x19d)],_0x1b7c52(0x179)),'withText':!0x0,'icon':_0x559173,'class':_0x1b7c52(0x19e)}),_0x2700e0['on'](_0x1b7c52(0x172),()=>{const _0x5ed4be=_0x1b7c52;this[_0x5ed4be(0x18d)](_0x5ed4be(0x19a));});const _0x70d218=new _0x571dd0(this[_0x1b7c52(0x19d)]);return _0x70d218[_0x1b7c52(0x1ab)]({'tag':_0x1b7c52(0x16f),'attributes':{'class':[_0x1b7c52(0x175),this[_0x1b7c52(0x1b8)]['if'](_0x1b7c52(0x1be),_0x1b7c52(0x1b9),_0x61011e=>!_0x61011e)]},'children':[{'tag':'p','attributes':{'class':[_0x1b7c52(0x17a)]},'children':[_0x230756(this[_0x1b7c52(0x19d)],_0x1b7c52(0x1bf))]},_0x2700e0]}),_0x70d218;}[_0x672c73(0x186)](_0x4a40fa,_0x48c6fa){const _0x588a54=_0x672c73,_0x4cb9df=[];for(const _0x370474 of _0x4a40fa){const _0x503326=new _0x2431f8(_0x48c6fa,_0x370474);_0x503326[_0x588a54(0x1c6)](..._0x3652fd)['to'](this),_0x4cb9df[_0x588a54(0x1b5)](_0x503326);}return _0x4cb9df;}[_0x672c73(0x196)](_0x29909a){const _0x2d5cfd=_0x672c73,_0x3a41b4=this[_0x2d5cfd(0x19d)]||'en',_0x22a04f=[];for(const _0x310c47 of _0x29909a){const _0x226660=this[_0x2d5cfd(0x186)](_0x310c47[_0x2d5cfd(0x1af)],_0x3a41b4);_0x22a04f[_0x2d5cfd(0x1b5)](new _0x5ca701(_0x3a41b4,{'title':_0x310c47[_0x2d5cfd(0x1a7)],'items':_0x226660}));}this[_0x2d5cfd(0x176)][_0x2d5cfd(0x180)]=_0x22a04f,this[_0x2d5cfd(0x176)][_0x2d5cfd(0x1af)][_0x2d5cfd(0x1b3)](),this[_0x2d5cfd(0x176)][_0x2d5cfd(0x1af)][_0x2d5cfd(0x1ca)](_0x22a04f),this[_0x2d5cfd(0x1b2)]=_0x29909a[_0x2d5cfd(0x1b1)](_0x57f71f=>_0x57f71f[_0x2d5cfd(0x1af)][_0x2d5cfd(0x1a4)]>0x0),this[_0x2d5cfd(0x17b)]();}[_0x672c73(0x18b)](_0x2bf2e0){const _0x39d014=_0x672c73;for(const _0x1c4e93 of this[_0x39d014(0x176)][_0x39d014(0x180)]){const _0x41641f=_0x1c4e93[_0x39d014(0x17d)](_0x2bf2e0);if(_0x41641f){if(_0x1c4e93[_0x39d014(0x19f)](_0x41641f),0x0===_0x1c4e93[_0x39d014(0x1bb)][_0x39d014(0x1a4)]){const _0x55eb47=this[_0x39d014(0x176)][_0x39d014(0x180)][_0x39d014(0x171)](_0x1c4e93);-0x1!==_0x55eb47&&(this[_0x39d014(0x176)][_0x39d014(0x180)][_0x39d014(0x1aa)](_0x55eb47,0x1),this[_0x39d014(0x176)][_0x39d014(0x1af)][_0x39d014(0x17c)](_0x1c4e93));}this[_0x39d014(0x1b2)]=this[_0x39d014(0x176)][_0x39d014(0x180)][_0x39d014(0x1a4)]>0x0,this[_0x39d014(0x17b)]();break;}}}[_0x672c73(0x1c3)](_0x4e2dd4,_0x2fe0e5){const _0x51d6a0=_0x672c73;for(const _0x469a3a of this[_0x51d6a0(0x176)][_0x51d6a0(0x180)]){const _0x3dc04d=_0x469a3a[_0x51d6a0(0x17d)](_0x4e2dd4);if(_0x3dc04d){_0x3dc04d[_0x51d6a0(0x1b6)](_0x2fe0e5);break;}}}[_0x672c73(0x1ae)](_0x4020f7,_0x36fb8f,_0x515bd2){const _0xd213d2=_0x672c73;for(const _0x12692a of this[_0xd213d2(0x176)][_0xd213d2(0x180)]){const _0x55882d=_0x12692a[_0xd213d2(0x17d)](_0x4020f7);if(_0x55882d){_0x55882d[_0xd213d2(0x1b7)](_0x36fb8f,_0x515bd2);break;}}}[_0x672c73(0x17b)](){const _0x2e1780=_0x672c73;if(this[_0x2e1780(0x1b2)]){const _0x16e67e=this[_0x2e1780(0x1a1)][_0x2e1780(0x1c8)][_0x2e1780(0x1a0)]?.[_0x2e1780(0x177)]?.[_0x2e1780(0x188)]||'';this[_0x2e1780(0x1a1)][_0x2e1780(0x1a9)](_0x16e67e);}}}
|
package/src/aiconfig.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/aiconfig.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
@@ -108,8 +108,10 @@ export declare class AIConnector extends ContextPlugin {
|
|
|
108
108
|
}): AIUploadRequest;
|
|
109
109
|
/**
|
|
110
110
|
* Returns a list of available AI models.
|
|
111
|
+
*
|
|
112
|
+
* @param language Language code (e.g., 'en', 'pl') to request localized model descriptions. Defaults to 'en'.
|
|
111
113
|
*/
|
|
112
|
-
getModels(): AIModelRequest;
|
|
114
|
+
getModels(language?: string): AIModelRequest;
|
|
113
115
|
/**
|
|
114
116
|
* Deletes a file from a conversation.
|
|
115
117
|
*/
|