@ckeditor/ckeditor5-ai 47.0.0-alpha.7 → 47.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +93 -5
- package/dist/index.css +118 -5
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/translations/af.po +224 -0
- package/lang/translations/ar.po +232 -0
- package/lang/translations/ast.po +224 -0
- package/lang/translations/az.po +224 -0
- package/lang/translations/be.po +226 -0
- package/lang/translations/bg.po +224 -0
- package/lang/translations/bn.po +224 -0
- package/lang/translations/bs.po +226 -0
- package/lang/translations/ca.po +224 -0
- package/lang/translations/cs.po +226 -0
- package/lang/translations/da.po +224 -0
- package/lang/translations/de-ch.po +224 -0
- package/lang/translations/de.po +224 -0
- package/lang/translations/el.po +224 -0
- package/lang/translations/en-au.po +224 -0
- package/lang/translations/en-gb.po +224 -0
- package/lang/translations/en.po +224 -0
- package/lang/translations/eo.po +224 -0
- package/lang/translations/es-co.po +224 -0
- package/lang/translations/es.po +224 -0
- package/lang/translations/et.po +224 -0
- package/lang/translations/eu.po +224 -0
- package/lang/translations/fa.po +222 -0
- package/lang/translations/fi.po +224 -0
- package/lang/translations/fr.po +224 -0
- package/lang/translations/gl.po +224 -0
- package/lang/translations/gu.po +224 -0
- package/lang/translations/he.po +224 -0
- package/lang/translations/hi.po +224 -0
- package/lang/translations/hr.po +226 -0
- package/lang/translations/hu.po +224 -0
- package/lang/translations/hy.po +224 -0
- package/lang/translations/id.po +222 -0
- package/lang/translations/it.po +224 -0
- package/lang/translations/ja.po +222 -0
- package/lang/translations/jv.po +224 -0
- package/lang/translations/kk.po +224 -0
- package/lang/translations/km.po +222 -0
- package/lang/translations/kn.po +224 -0
- package/lang/translations/ko.po +222 -0
- package/lang/translations/ku.po +224 -0
- package/lang/translations/lt.po +226 -0
- package/lang/translations/lv.po +226 -0
- package/lang/translations/ms.po +222 -0
- package/lang/translations/nb.po +224 -0
- package/lang/translations/ne.po +224 -0
- package/lang/translations/nl.po +224 -0
- package/lang/translations/no.po +224 -0
- package/lang/translations/oc.po +224 -0
- package/lang/translations/pl.po +226 -0
- package/lang/translations/pt-br.po +224 -0
- package/lang/translations/pt.po +224 -0
- package/lang/translations/ro.po +226 -0
- package/lang/translations/ru.po +226 -0
- package/lang/translations/si.po +224 -0
- package/lang/translations/sk.po +226 -0
- package/lang/translations/sl.po +228 -0
- package/lang/translations/sq.po +224 -0
- package/lang/translations/sr-latn.po +226 -0
- package/lang/translations/sr.po +226 -0
- package/lang/translations/sv.po +224 -0
- package/lang/translations/th.po +222 -0
- package/lang/translations/ti.po +224 -0
- package/lang/translations/tk.po +224 -0
- package/lang/translations/tr.po +224 -0
- package/lang/translations/tt.po +222 -0
- package/lang/translations/ug.po +222 -0
- package/lang/translations/uk.po +226 -0
- package/lang/translations/ur.po +224 -0
- package/lang/translations/uz.po +224 -0
- package/lang/translations/vi.po +222 -0
- package/lang/translations/zh-cn.po +222 -0
- package/lang/translations/zh.po +222 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +12 -4
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +0 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +0 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +0 -30
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.d.ts +3 -0
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.d.ts +0 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.d.ts +0 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +47 -9
- package/src/aicore/aiconnector.d.ts +2 -3
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.d.ts +0 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.d.ts +0 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +164 -0
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.d.ts +0 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.d.ts +29 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +0 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +1 -2
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +0 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.d.ts +6 -2
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.js +1 -1
- package/theme/aichat/aichat.css +1 -0
- package/theme/aichat/aichatfeed.css +39 -0
- package/theme/aieditorintegration/aitogglebutton.css +23 -0
- package/theme/aiquickactions/aiquickactions.css +23 -4
- package/theme/aireviewmode/aireviewmode.css +23 -0
- package/theme/common/aibutton.css +1 -1
- package/theme/common/aitrackchanges.css +13 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x15f2a2=_0x148d;(function(_0x264ac4,_0x5eb158){const _0x4ae073=_0x148d,_0x3e049e=_0x264ac4();while(!![]){try{const _0x55e29f=parseInt(_0x4ae073(0x103))/0x1*(-parseInt(_0x4ae073(0x7e))/0x2)+-parseInt(_0x4ae073(0xc1))/0x3*(parseInt(_0x4ae073(0xbd))/0x4)+-parseInt(_0x4ae073(0x94))/0x5+-parseInt(_0x4ae073(0xb8))/0x6*(parseInt(_0x4ae073(0x91))/0x7)+-parseInt(_0x4ae073(0xf7))/0x8+-parseInt(_0x4ae073(0xa8))/0x9+-parseInt(_0x4ae073(0xdf))/0xa*(-parseInt(_0x4ae073(0x8c))/0xb);if(_0x55e29f===_0x5eb158)break;else _0x3e049e['push'](_0x3e049e['shift']());}catch(_0x1ac0ba){_0x3e049e['push'](_0x3e049e['shift']());}}}(_0x50ce,0xeff07));import{BalloonPanelView as _0x59c6a5,ButtonView as _0x5af781,clickOutsideHandler as _0x245e77,FileDialogButtonView as _0x342ac6,IconView as _0x17fc9a,View as _0x32674c}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x5a5878,IconDocument as _0x410a4e,IconDocumentOutline as _0x1c3ead,IconDropdownArrow as _0x297e58,IconLink as _0x317191,IconPaperClip as _0x2ebee7}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x23c1a8}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x33610c}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xb28182}from'./aichatchipsoverflowmanager.js';function _0x50ce(){const _0x4960eb=['AI_CHAT_CONTEXT_ADD_CONTEXT','urls','children','tooltip','content','10OyUQxG','ck-ai-chat-controls_context_show-more-button','_resourcesBalloonView','_removeContextFromCollection','clearConversationContextItems','ck-ai-chat-context-controls__balloon-button','execute','showUrlBalloonPanel','southArrowNorth','element','buttonView','overflowChips','_showSourceResourcesBalloon','find','9167246XttdZV','isReadOnly','showAddContextBalloonPanel','current','ck-ai-chat-context-controls__add-context-button','13986hiRRay','_urlInputView','arrowView','2054680VthCjK','northArrowSouthEast','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-chips-wrapper-balloon','_createArrowView','destroy','_setAddContextButtonEnabled','enabled','balloonView','removeContextItem','populateSourceResourceBalloon','northArrowSouth','label','_createAddContextBalloonPanelView','_handleAddContextButtonClick','document','removeContextItemChip','_createBalloonButton','_handleUrlSubmit','updateResourceState','4941396iCkBAr','createCollection','files','setContextItemLoading','closest','closeSourceResourceBalloon','ck-ai-chat-context-controls__url-balloon-panel','set','__arrow','_urlBalloonPanelView','defaultPositions','icon','show','ck-ai-chat','_overflowManager','refreshBalloon','4494RtIGGO','isHidden','sources','ck-ai-chat-context-controls','_setupTemplate','348KNUndr','loadSourceResources','northArrowSouthWest','isAnyResourceBalloonVisible','5571JLnduF','_conversationContextsChips','setAddContextOptions','render','type','isEnabled','body','_addUrlContent','addContextButtonView','ck-ai-chat-context-controls__add-context-balloon-panel','_bindEventHandlers','addDocumentToContext','_createContextButton','_setupUrlBalloonClickOutsideHandler','_createResourcesBalloonView','_addContextBalloonPanelView','pin','focus','fire','hide','addUrlToContext','_createUrlBalloonPanelView','submitUrl','_toggleAddContextBalloon','ck-reset_all-excluded','southArrowNorthWest','setTemplate','menuitem','reorganizeChips','hideAddContextBalloonPanel','70AHEzmF','locale','bind','extendTemplate','addFileToContext','div','_addContextToCollection','ck-ai-chat-controls-button','ck-ai-chat-context-controls__balloon-button-source','cancel','ck-ai-chat-context-controls__pending-contexts','setConversationContext','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_createBaseBalloonPanel','clearCurrentContextItems','done','ck-ai-chat-context-controls__show-more-balloon-panel','remove','AI_CHAT_CONTEXT_FILE_LABEL','source','isOn','add','_addContextBalloonConfig','addContextItem','10497720ZujhaU','_currentContextsChips','_setupAllBalloonClickOutsideHandlers','isLoading','conversation','_getLimiterElement','_createAddContextButtonView','hideUrlBalloonPanel','bodyCollection','isVisible','addResourceToContext','AI_CHAT_CONTEXT_URL_LABEL','184131FXlYcM','showSourceResourcesBalloon','setContainerElement','clear','_setBalloonPanelContent','southArrowNorthEast'];_0x50ce=function(){return _0x4960eb;};return _0x50ce();}import{getTranslation as _0x1ad7b8}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x28db72}from'./resources/aichatresourcesballoonview.js';function _0x148d(_0x4092be,_0x399563){const _0x50cec=_0x50ce();return _0x148d=function(_0x148d95,_0x2ca270){_0x148d95=_0x148d95-0x76;let _0x4c29bf=_0x50cec[_0x148d95];return _0x4c29bf;},_0x148d(_0x4092be,_0x399563);}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x15f2a2(0xcc),_0x15f2a2(0xe3),_0x15f2a2(0xd5),_0x15f2a2(0x101),_0x15f2a2(0x9d),_0x15f2a2(0xbe)];const vo=_0x15f2a2(0xbb),go=_0x15f2a2(0xe9),Vo=_0x15f2a2(0xca),fo=_0x15f2a2(0x90),Io=_0x15f2a2(0xae),Po=_0x15f2a2(0x83),Ro=_0x15f2a2(0xe7),uo=_0x15f2a2(0xe6),So=_0x15f2a2(0x97),xo=_0x15f2a2(0x7f),mo=_0x15f2a2(0xef),Uo=_0x15f2a2(0xb5),Lo=[_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0xbf)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x9f)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x95)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0xda)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x86)],_0x59c6a5[_0x15f2a2(0xb2)][_0x15f2a2(0x78)]];export class AIChatContextPanelView extends _0x32674c{[_0x15f2a2(0xc9)];[_0x15f2a2(0xf8)]=this[_0x15f2a2(0xa9)]();[_0x15f2a2(0xc2)]=this[_0x15f2a2(0xa9)]();[_0x15f2a2(0xb6)];[_0x15f2a2(0xd0)];[_0x15f2a2(0xb1)];[_0x15f2a2(0x92)];[_0x15f2a2(0x80)];[_0x15f2a2(0xf5)];[_0x15f2a2(0xff)];constructor(_0x4ad397,_0x42e16b){const _0x5518f2=_0x15f2a2;super(_0x4ad397),this[_0x5518f2(0xff)]=_0x42e16b,this[_0x5518f2(0xf8)]=this[_0x5518f2(0xa9)](),this[_0x5518f2(0xc2)]=this[_0x5518f2(0xa9)](),this[_0x5518f2(0xc9)]=this[_0x5518f2(0xfd)](_0x4ad397),this[_0x5518f2(0xd0)]=this[_0x5518f2(0xa1)](_0x4ad397),this[_0x5518f2(0xb1)]=this[_0x5518f2(0xd6)](_0x4ad397),this[_0x5518f2(0x80)]=this[_0x5518f2(0xcf)](_0x4ad397,_0x42e16b);const _0x32602d={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':mo,'overflowContainer':So,'controlsButton':uo}};this[_0x5518f2(0xb6)]=new _0xb28182(_0x4ad397,this[_0x5518f2(0xf8)],_0x32602d,this[_0x5518f2(0xff)],this),this[_0x5518f2(0xf5)]={'buttonView':this[_0x5518f2(0xc9)],'balloonView':this[_0x5518f2(0xd0)],'hideMethod':this[_0x5518f2(0xde)][_0x5518f2(0xe1)](this),'showMethod':this[_0x5518f2(0x8e)][_0x5518f2(0xe1)](this)},this[_0x5518f2(0xbc)](),this[_0x5518f2(0xcb)]();}[_0x15f2a2(0xc4)](){const _0x3c7191=_0x15f2a2;super[_0x3c7191(0xc4)](),this[_0x3c7191(0xf9)](),this[_0x3c7191(0xb6)][_0x3c7191(0x105)](this[_0x3c7191(0x87)]),this[_0x3c7191(0xb6)][_0x3c7191(0xdd)]();}[_0x15f2a2(0x99)](){const _0x32c9fa=_0x15f2a2;super[_0x32c9fa(0x99)](),this[_0x32c9fa(0xb6)][_0x32c9fa(0x99)](),this[_0x32c9fa(0x80)][_0x32c9fa(0x99)]();}[_0x15f2a2(0xf6)](_0x3ddb8c,_0x53054f){const _0x24a1d6=_0x15f2a2,_0x264e21=this[_0x24a1d6(0xcd)](_0x3ddb8c,_0x24a1d6(0x8f),!0x0,_0x53054f);this[_0x24a1d6(0xe5)](_0x264e21,this[_0x24a1d6(0xf8)]),this[_0x24a1d6(0xb6)][_0x24a1d6(0xdd)]();}[_0x15f2a2(0x9d)](_0x4e1d8){const _0x39e213=_0x15f2a2;this[_0x39e213(0x81)](_0x4e1d8,this[_0x39e213(0xf8)]),this[_0x39e213(0x81)](_0x4e1d8,this[_0x39e213(0xb6)][_0x39e213(0x89)]),this[_0x39e213(0xb6)][_0x39e213(0xdd)]();}[_0x15f2a2(0xab)](_0x2bb628,_0x29024d){const _0x186e06=_0x15f2a2;let _0x335ff5=this[_0x186e06(0xf8)][_0x186e06(0x8b)](_0x17d124=>_0x17d124['id']===_0x2bb628);_0x335ff5||(_0x335ff5=this[_0x186e06(0xb6)][_0x186e06(0x89)][_0x186e06(0x8b)](_0x64db18=>_0x64db18['id']===_0x2bb628)),_0x335ff5&&(_0x335ff5[_0x186e06(0xfa)]=_0x29024d);}[_0x15f2a2(0xea)](_0x2aadf5){const _0x3554f8=_0x15f2a2;this[_0x3554f8(0xc2)][_0x3554f8(0x76)]();for(const _0x33d24f of _0x2aadf5){const _0x32e79b=this[_0x3554f8(0xcd)](_0x33d24f,_0x3554f8(0xfb),!0x1,!0x1);this[_0x3554f8(0xe5)](_0x32e79b,this[_0x3554f8(0xc2)]);}}[_0x15f2a2(0xed)](){const _0x3d4649=_0x15f2a2;this[_0x3d4649(0xf8)][_0x3d4649(0x76)](),this[_0x3d4649(0xb6)][_0x3d4649(0x76)]();}[_0x15f2a2(0x82)](){const _0x2c299f=_0x15f2a2;this[_0x2c299f(0xc2)][_0x2c299f(0x76)]();}[_0x15f2a2(0xa7)](_0x5c8d5d,_0x3f5bdd,_0x40d52c){const _0x5ea233=_0x15f2a2;this[_0x5ea233(0x80)][_0x5ea233(0xa7)](_0x5c8d5d,_0x3f5bdd,_0x40d52c);}[_0x15f2a2(0xde)](){const _0x5644cc=_0x15f2a2;this[_0x5644cc(0xd8)](!0x1);}[_0x15f2a2(0x8e)](){const _0x4c1c6a=_0x15f2a2;this[_0x4c1c6a(0xd8)](!0x0);}[_0x15f2a2(0xfe)](){const _0x191970=_0x15f2a2;this[_0x191970(0xb1)][_0x191970(0xd4)](),this[_0x191970(0xc9)][_0x191970(0xf3)]=!0x1,this[_0x191970(0x92)]&&this[_0x191970(0x92)][_0x191970(0x76)]();}[_0x15f2a2(0x85)](){const _0x3289be=_0x15f2a2;this[_0x3289be(0xb1)][_0x3289be(0xb4)](),this[_0x3289be(0xc9)][_0x3289be(0xf3)]=!0x0;}[_0x15f2a2(0x8a)](_0x47e135){const _0x2a1ce3=_0x15f2a2;this[_0x2a1ce3(0x80)][_0x2a1ce3(0x104)](_0x47e135),this[_0x2a1ce3(0xc9)][_0x2a1ce3(0xf3)]=!0x0;}[_0x15f2a2(0x9e)](_0x596287,_0x13ad08,_0x1793aa,_0x4348db){const _0x393334=_0x15f2a2;this[_0x393334(0x80)][_0x393334(0x9e)](_0x596287,_0x1793aa,_0x4348db);}[_0x15f2a2(0xad)](_0x548664){const _0x538732=_0x15f2a2;this[_0x538732(0x80)][_0x538732(0xad)](_0x548664),this[_0x538732(0xc9)][_0x538732(0xf3)]=!0x1;}[_0x15f2a2(0xc3)](_0x3c9652){const _0x74aaca=_0x15f2a2;this[_0x74aaca(0x77)](this[_0x74aaca(0xd0)],this[_0x74aaca(0xe0)],_0x3c9652),this[_0x74aaca(0x9a)](_0x3c9652);}[_0x15f2a2(0x9a)](_0x2a87f3){const _0xd0ff46=_0x15f2a2,_0x413598=!_0x2a87f3[_0xd0ff46(0xa3)][_0xd0ff46(0xb9)]&&_0x2a87f3[_0xd0ff46(0xa3)][_0xd0ff46(0x9b)],_0x3ad2c3=_0x2a87f3[_0xd0ff46(0x7a)][_0xd0ff46(0x9b)],_0x3cc9f0=_0x2a87f3[_0xd0ff46(0xaa)][_0xd0ff46(0x9b)];this[_0xd0ff46(0xc9)][_0xd0ff46(0xc6)]=_0x413598||_0x3ad2c3||_0x3cc9f0;}[_0x15f2a2(0xbc)](){const _0x17a02e=_0x15f2a2;this[_0x17a02e(0xdb)]({'tag':_0x17a02e(0xe4),'attributes':{'class':[vo,_0x17a02e(0xd9)]},'children':[{'tag':_0x17a02e(0xe4),'attributes':{'class':go},'children':this[_0x17a02e(0xf8)]}]});}[_0x15f2a2(0xcb)](){const _0xcd7779=_0x15f2a2;this[_0xcd7779(0xc9)]['on'](_0xcd7779(0x84),()=>{const _0x16995a=_0xcd7779;this[_0x16995a(0xa2)]();});}[_0x15f2a2(0xfd)](_0x4348fc){const _0x4c066a=_0x15f2a2,_0x19e354=new _0x5af781(_0x4348fc);return _0x19e354[_0x4c066a(0xaf)]({'label':_0x1ad7b8(_0x4348fc,_0x4c066a(0x79)),'class':uo+'\x20'+fo,'icon':_0x2ebee7,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x19e354;}[_0x15f2a2(0xa1)](_0xcabd25){const _0x5161aa=_0x15f2a2;return this[_0x5161aa(0xec)](_0xcabd25,Vo);}[_0x15f2a2(0xd6)](_0x26f613){const _0x272e53=_0x15f2a2,_0x137279=this[_0x272e53(0xec)](_0x26f613,Io);return this[_0x272e53(0xc8)](_0x137279,_0x26f613),_0x137279;}[_0x15f2a2(0xcf)](_0x7bd77b,_0x151f35){const _0x5bba66=_0x15f2a2;return new _0x28db72(_0x7bd77b,_0x151f35,{'onBackToContext':()=>{const _0x278e74=_0x148d;this[_0x278e74(0x8e)](),this[_0x278e74(0xd0)][_0x278e74(0xd1)]({'target':this[_0x278e74(0xc9)][_0x278e74(0x87)],'limiter':this[_0x278e74(0xfc)](),'positions':Lo});},'onResourceSelected':(_0x41edc8,_0x53d61c)=>{const _0x36fe8d=_0x148d;this[_0x36fe8d(0xd3)](_0x36fe8d(0x101),{'source':_0x41edc8,'resource':_0x53d61c});},'onLoadSourceResources':_0x372a9a=>{const _0x48b876=_0x148d;this[_0x48b876(0xd3)](_0x48b876(0xbe),_0x372a9a);},'onBalloonClosed':()=>{const _0x39076a=_0x148d;this[_0x39076a(0xc9)][_0x39076a(0xf3)]=!0x1;},'getLimiterElement':()=>this[_0x5bba66(0xfc)](),'getTargetElement':()=>this[_0x5bba66(0xc9)][_0x5bba66(0x87)]});}[_0x15f2a2(0xfc)](){const _0x200f91=_0x15f2a2;return this[_0x200f91(0x87)]?.[_0x200f91(0xac)]('.'+Uo)||document[_0x200f91(0xc7)];}[_0x15f2a2(0xec)](_0x40aedb,_0x4413b3){const _0xa4d77=_0x15f2a2,_0xefce88=new _0x59c6a5(_0x40aedb);return _0xefce88[_0xa4d77(0xe2)]({'attributes':{'class':_0x4413b3}}),this[_0xa4d77(0xff)][_0xa4d77(0xf4)](_0xefce88),_0xefce88;}[_0x15f2a2(0x77)](_0x539e8b,_0x556f7a,_0x170938){const _0x9ea024=_0x15f2a2;if(_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0x76)](),!_0x170938[_0x9ea024(0xa3)][_0x9ea024(0xb9)]&&_0x170938[_0x9ea024(0xa3)][_0x9ea024(0x9b)]){const _0x2e23f8=this[_0x9ea024(0xa5)](_0x556f7a,{'label':_0x1ad7b8(_0x556f7a,_0x9ea024(0xeb)),'icon':_0x410a4e});_0x2e23f8['on'](_0x9ea024(0x84),()=>{const _0xc73a47=_0x9ea024;this[_0xc73a47(0xd3)](_0xc73a47(0xcc)),this[_0xc73a47(0xde)]();}),_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x2e23f8);}if(_0x170938[_0x9ea024(0x7a)][_0x9ea024(0x9b)]){const _0x2002b5=this[_0x9ea024(0xa5)](_0x556f7a,{'label':_0x1ad7b8(_0x556f7a,_0x9ea024(0x102)),'icon':_0x317191});_0x2002b5['on'](_0x9ea024(0x84),()=>{const _0x125413=_0x9ea024;this[_0x125413(0xde)](),this[_0x125413(0x85)](),this[_0x125413(0xb1)][_0x125413(0xd1)]({'target':this[_0x125413(0xc9)][_0x125413(0x87)],'limiter':this[_0x125413(0xfc)](),'positions':Lo}),this[_0x125413(0x92)][_0x125413(0xd2)]();}),_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x2002b5);}if(_0x170938[_0x9ea024(0xaa)][_0x9ea024(0x9b)]){const _0x46d366=new _0x342ac6(_0x556f7a);_0x46d366[_0x9ea024(0xaf)]({'label':_0x1ad7b8(_0x556f7a,_0x9ea024(0xf1)),'icon':_0x5a5878,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x46d366['on'](_0x9ea024(0xee),(_0x2146d6,_0x229038)=>{const _0x50659a=_0x9ea024;this[_0x50659a(0xd3)](_0x50659a(0xe3),_0x229038),this[_0x50659a(0xde)]();}),_0x46d366[_0x9ea024(0x7c)]=!0x0,_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x46d366);}for(const _0xe9ec1 of _0x170938[_0x9ea024(0xba)]){const _0x229793=this[_0x9ea024(0xa5)](_0x556f7a,{'label':_0xe9ec1[_0x9ea024(0xa0)],'icon':_0xe9ec1[_0x9ea024(0xb3)]||_0x1c3ead,'type':_0x9ea024(0xf2)});_0x539e8b[_0x9ea024(0x7d)][_0x9ea024(0xf4)](_0x229793),_0x229793['on'](_0x9ea024(0x84),()=>{const _0x5768d8=_0x9ea024;this[_0x5768d8(0xde)](),this[_0x5768d8(0x8a)](_0xe9ec1);});}}[_0x15f2a2(0xc8)](_0x3b169c,_0x34019e){const _0x9283b1=_0x15f2a2;this[_0x9283b1(0x92)]=new _0x33610c(_0x34019e),this[_0x9283b1(0x92)]['on'](_0x9283b1(0xd7),(_0x4e4be0,_0x38453c)=>{const _0x266ee1=_0x9283b1;this[_0x266ee1(0xa6)](_0x38453c);}),this[_0x9283b1(0x92)]['on'](_0x9283b1(0xe8),()=>{const _0x401706=_0x9283b1;this[_0x401706(0xfe)](),this[_0x401706(0x8e)](),this[_0x401706(0xd0)][_0x401706(0xd1)]({'target':this[_0x401706(0xc9)][_0x401706(0x87)],'limiter':this[_0x401706(0xfc)](),'positions':Lo});}),this[_0x9283b1(0x92)]['on'](_0x9283b1(0xb7),()=>{const _0x3e8773=_0x9283b1;this[_0x3e8773(0xb1)][_0x3e8773(0x100)]&&this[_0x3e8773(0xb1)][_0x3e8773(0xd1)]({'target':this[_0x3e8773(0xc9)][_0x3e8773(0x87)],'limiter':this[_0x3e8773(0xfc)](),'positions':Lo});}),_0x3b169c[_0x9283b1(0x7d)][_0x9283b1(0xf4)](this[_0x9283b1(0x92)]);}[_0x15f2a2(0xa5)](_0x229fa1,_0x5c1957){const _0x48d752=_0x15f2a2,_0x4511ca=_0x48d752(0xf2)===_0x5c1957[_0x48d752(0xc5)]?new SourcesBalloonButtonView(_0x229fa1):new _0x5af781(_0x229fa1);return _0x4511ca[_0x48d752(0xaf)]({'label':_0x5c1957[_0x48d752(0xa0)],'icon':_0x5c1957[_0x48d752(0xb3)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x4511ca;}[_0x15f2a2(0xf9)](){const _0x6eeaf=_0x15f2a2;this[_0x6eeaf(0x96)](),this[_0x6eeaf(0xce)]();}[_0x15f2a2(0xce)](){const _0x143289=_0x15f2a2;_0x245e77({'emitter':this[_0x143289(0xb1)],'contextElements':[this[_0x143289(0xb1)][_0x143289(0x87)]],'callback':()=>{const _0x33b1a3=_0x143289;this[_0x33b1a3(0xfe)]();},'activator':()=>this[_0x143289(0xb1)][_0x143289(0x100)]});}[_0x15f2a2(0xd8)](_0x224dc6){const _0x3fc971=_0x15f2a2,_0x5a1b12=this[_0x3fc971(0xf5)];_0x5a1b12[_0x3fc971(0x88)][_0x3fc971(0xf3)]=_0x224dc6,_0x224dc6?_0x5a1b12[_0x3fc971(0x9c)][_0x3fc971(0xb4)]():_0x5a1b12[_0x3fc971(0x9c)][_0x3fc971(0xd4)]();}[_0x15f2a2(0x96)](){const _0x441631=_0x15f2a2,{balloonView:_0x33825b,buttonView:_0x391658,hideMethod:_0x192882}=this[_0x441631(0xf5)];_0x245e77({'emitter':_0x33825b,'contextElements':[_0x33825b[_0x441631(0x87)],_0x391658[_0x441631(0x87)]],'callback':()=>{_0x192882();},'activator':()=>_0x391658[_0x441631(0xf3)]&&!this[_0x441631(0xb1)][_0x441631(0x100)]&&!this[_0x441631(0x80)][_0x441631(0xc0)]()});}[_0x15f2a2(0xcd)](_0x3cff13,_0x24b6ec,_0xea3699=!0x1,_0x2a42c4=!0x1){const _0x3975b1=_0x15f2a2,_0x3cc04d=_0x3975b1(0xfb)===_0x24b6ec||!0x0===_0x3cff13[_0x3975b1(0x8d)],_0x4848ba=new _0x23c1a8(this[_0x3975b1(0xe0)],_0x3cff13,_0x3cc04d,_0xea3699,_0x2a42c4);return _0x3cc04d||_0x4848ba['on'](_0x3975b1(0xa4),()=>{const _0x5a9555=_0x3975b1;this[_0x5a9555(0xd3)](_0x5a9555(0x9d),_0x4848ba['id']);}),_0x4848ba;}[_0x15f2a2(0xe5)](_0xe6b779,_0x3261c7){const _0x221c67=_0x15f2a2;_0x3261c7[_0x221c67(0xf4)](_0xe6b779,0x0);}[_0x15f2a2(0x81)](_0xc0b9a4,_0x299d8d){const _0xf2d37b=_0x15f2a2,_0x2561f3=_0x299d8d[_0xf2d37b(0x8b)](_0xb54317=>_0xb54317['id']===_0xc0b9a4);_0x2561f3&&_0x299d8d[_0xf2d37b(0xf0)](_0x2561f3);}[_0x15f2a2(0xa2)](){const _0x5b0f36=_0x15f2a2;this[_0x5b0f36(0xc9)][_0x5b0f36(0xf3)]?this[_0x5b0f36(0xde)]():(this[_0x5b0f36(0x8e)](),this[_0x5b0f36(0xd0)][_0x5b0f36(0xd1)]({'target':this[_0x5b0f36(0xc9)][_0x5b0f36(0x87)],'limiter':this[_0x5b0f36(0xfc)](),'positions':Lo}));}[_0x15f2a2(0xa6)](_0x1b2c4e){const _0x288d95=_0x15f2a2;this[_0x288d95(0x92)][_0x288d95(0x76)](),this[_0x288d95(0xfe)](),this[_0x288d95(0xd3)](_0x288d95(0xd5),_0x1b2c4e);}}export class SourcesBalloonButtonView extends _0x5af781{[_0x15f2a2(0x93)];constructor(_0x1482d3){const _0x302137=_0x15f2a2;super(_0x1482d3),this[_0x302137(0xaf)]({'withText':!0x0,'role':_0x302137(0xdc)}),this[_0x302137(0x93)]=this[_0x302137(0x98)](),this[_0x302137(0xe2)]({'attributes':{'class':[Ro]}});}[_0x15f2a2(0xc4)](){const _0x9e396f=_0x15f2a2;super[_0x9e396f(0xc4)](),this[_0x9e396f(0x7b)][_0x9e396f(0xf4)](this[_0x9e396f(0x93)]);}[_0x15f2a2(0x98)](){const _0x504e00=_0x15f2a2,_0x599528=new _0x17fc9a();return _0x599528[_0x504e00(0x7d)]=_0x297e58,_0x599528[_0x504e00(0xe2)]({'attributes':{'class':Ro+_0x504e00(0xb0)}}),_0x599528;}}
|
|
23
|
+
const _0x36c900=_0x1d44;(function(_0x468e21,_0x57f3af){const _0x56e174=_0x1d44,_0x467215=_0x468e21();while(!![]){try{const _0x2e1c58=-parseInt(_0x56e174(0x22c))/0x1*(-parseInt(_0x56e174(0x1ec))/0x2)+parseInt(_0x56e174(0x1d9))/0x3*(-parseInt(_0x56e174(0x216))/0x4)+-parseInt(_0x56e174(0x1dc))/0x5*(parseInt(_0x56e174(0x20e))/0x6)+-parseInt(_0x56e174(0x22e))/0x7+-parseInt(_0x56e174(0x1cb))/0x8+parseInt(_0x56e174(0x1d8))/0x9+parseInt(_0x56e174(0x239))/0xa*(parseInt(_0x56e174(0x1fc))/0xb);if(_0x2e1c58===_0x57f3af)break;else _0x467215['push'](_0x467215['shift']());}catch(_0x8c1909){_0x467215['push'](_0x467215['shift']());}}}(_0x353c,0x4b7ae));import{BalloonPanelView as _0x41d97f,ButtonView as _0x3d94e0,clickOutsideHandler as _0x45bcea,FileDialogButtonView as _0xeb0112,IconView as _0x20972b,View as _0x26500c}from'ckeditor5/src/ui.js';function _0x353c(){const _0x1af593=['ck-ai-chat-context-controls','extendTemplate','render','current','setConversationContext','ck-ai-chat-context-controls__add-context-button','_urlBalloonPanelView','northArrowSouthWest','hideAddContextBalloonPanel','4777344WScepG','7374YHlvpj','destroy','_overflowManager','4670SXsbPI','_createAddContextButtonView','setContainerElement','document','clear','closeSourceResourceBalloon','ck-ai-chat-context-controls__add-context-balloon-panel','div','createCollection','__arrow','southArrowNorthEast','setContextItemLoading','ck-ai-chat','arrowView','ck-reset_all-excluded','_setupTemplate','830658elXToB','balloonView','addFileToContext','body','children','enabled','buttonView','label','done','_setupAddContextBalloonClickOutsideHandler','type','hide','_setupAllBalloonClickOutsideHandlers','focus','addContextButtonView','showAddContextBalloonPanel','330803bvCjGf','ck-ai-chat-context-chips-wrapper-balloon','isAnyResourceBalloonVisible','ck-ai-chat-context-controls__balloon-button-source','isLoading','AI_CHAT_CONTEXT_FILE_LABEL','_handleAddContextButtonClick','clearConversationContextItems','_handleUrlSubmit','northArrowSouth','ck-ai-chat-context-controls__show-more-balloon-panel','_createResourcesBalloonView','_resourcesBalloonView','_urlInputView','_showSourceResourcesBalloon','set','refreshBalloon','northArrowSouthEast','258MYAuJy','southArrowNorthWest','menuitem','AI_CHAT_CONTEXT_URL_LABEL','urls','reorganizeChips','ck-ai-chat-context-controls__url-balloon-panel','showUrlBalloonPanel','232PVEXcY','bind','addResourceToContext','locale','populateSourceResourceBalloon','_addContextToCollection','_addContextBalloonConfig','ck-ai-chat-context-controls__pending-contexts','bodyCollection','_currentContextsChips','_addUrlContent','updateResourceState','conversation','addContextItem','show','ck-ai-chat-context-controls__balloon-button','find','addUrlToContext','defaultPositions','_createBalloonButton','removeContextItemChip','_createUrlBalloonPanelView','1YRMRsZ','execute','2605050zdhylq','_createBaseBalloonPanel','files','icon','sources','showSourceResourcesBalloon','pin','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_addContextBalloonPanelView','add','source','80AMkvQO','_toggleAddContextBalloon','isHidden','isReadOnly','overflowChips','remove','loadSourceResources','hideUrlBalloonPanel','_conversationContextsChips','_setupUrlBalloonClickOutsideHandler','_getLimiterElement','_removeContextFromCollection','isOn','ck-ai-chat-controls-button','AI_CHAT_CONTEXT_ADD_CONTEXT','removeContextItem','cancel','closest','_createArrowView','setAddContextOptions','tooltip','_createAddContextBalloonPanelView','fire','element','ck-ai-chat-controls_context_show-more-button','isVisible','_bindEventHandlers','clearCurrentContextItems','addDocumentToContext','southArrowNorth','content','isEnabled','setTemplate','submitUrl','2581496JfEkdf','_createContextButton','_setAddContextButtonEnabled','_setBalloonPanelContent'];_0x353c=function(){return _0x1af593;};return _0x353c();}import{IconBrowseFiles as _0x377068,IconDocument as _0x113d1e,IconDocumentOutline as _0x3f90d,IconDropdownArrow as _0x5d5851,IconLink as _0x566031,IconPaperClip as _0x36ff08}from'@ckeditor/ckeditor5-icons';function _0x1d44(_0x5f3978,_0x469145){const _0x353cf5=_0x353c();return _0x1d44=function(_0x1d4482,_0x1f2bc9){_0x1d4482=_0x1d4482-0x1b9;let _0x429807=_0x353cf5[_0x1d4482];return _0x429807;},_0x1d44(_0x5f3978,_0x469145);}import{AIChatContextItemButtonView as _0x592154}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x39d29c}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x1fe335}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1dabd2}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x33a431}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x36c900(0x1c5),_0x36c900(0x1ee),_0x36c900(0x227),_0x36c900(0x218),_0x36c900(0x248),_0x36c900(0x23f)];const vo=_0x36c900(0x1cf),go=_0x36c900(0x21d),Vo=_0x36c900(0x1e2),Io=_0x36c900(0x1d4),Po=_0x36c900(0x214),Ro=_0x36c900(0x225),So=_0x36c900(0x1ff),uo=_0x36c900(0x246),Uo=_0x36c900(0x1fd),xo=_0x36c900(0x1c1),fo=_0x36c900(0x206),Lo=_0x36c900(0x1e8),No=[_0x41d97f[_0x36c900(0x228)][_0x36c900(0x1d6)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x205)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x20d)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x20f)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x1c6)],_0x41d97f[_0x36c900(0x228)][_0x36c900(0x1e6)]];export class AIChatContextPanelView extends _0x26500c{[_0x36c900(0x1fa)];[_0x36c900(0x21f)]=this[_0x36c900(0x1e4)]();[_0x36c900(0x241)]=this[_0x36c900(0x1e4)]();[_0x36c900(0x1db)];[_0x36c900(0x236)];[_0x36c900(0x1d5)];[_0x36c900(0x209)];[_0x36c900(0x208)];[_0x36c900(0x21c)];[_0x36c900(0x21e)];constructor(_0x3bed45,_0x27d6f8){const _0x269bbe=_0x36c900;super(_0x3bed45),this[_0x269bbe(0x21e)]=_0x27d6f8,this[_0x269bbe(0x21f)]=this[_0x269bbe(0x1e4)](),this[_0x269bbe(0x241)]=this[_0x269bbe(0x1e4)](),this[_0x269bbe(0x1fa)]=this[_0x269bbe(0x1dd)](_0x3bed45),this[_0x269bbe(0x236)]=this[_0x269bbe(0x1be)](_0x3bed45),this[_0x269bbe(0x1d5)]=this[_0x269bbe(0x22b)](_0x3bed45),this[_0x269bbe(0x208)]=this[_0x269bbe(0x207)](_0x3bed45,_0x27d6f8);const _0x1f3d57={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':fo,'overflowContainer':Uo,'controlsButton':uo}};this[_0x269bbe(0x1db)]=new _0x1fe335(_0x3bed45,this[_0x269bbe(0x21f)],_0x1f3d57,this[_0x269bbe(0x21e)],this),this[_0x269bbe(0x21c)]={'buttonView':this[_0x269bbe(0x1fa)],'balloonView':this[_0x269bbe(0x236)],'hideMethod':this[_0x269bbe(0x1d7)][_0x269bbe(0x217)](this),'showMethod':this[_0x269bbe(0x1fb)][_0x269bbe(0x217)](this)},this[_0x269bbe(0x1eb)](),this[_0x269bbe(0x1c3)]();}[_0x36c900(0x1d1)](){const _0x11b36f=_0x36c900;super[_0x11b36f(0x1d1)](),this[_0x11b36f(0x1f8)](),this[_0x11b36f(0x1db)][_0x11b36f(0x1de)](this[_0x11b36f(0x1c0)]),this[_0x11b36f(0x1db)][_0x11b36f(0x213)]();}[_0x36c900(0x1da)](){const _0x1cfa83=_0x36c900;super[_0x1cfa83(0x1da)](),this[_0x1cfa83(0x1db)][_0x1cfa83(0x1da)](),this[_0x1cfa83(0x208)][_0x1cfa83(0x1da)]();}[_0x36c900(0x223)](_0x3835bf,_0x58697c){const _0x42f54f=_0x36c900,_0x208439=this[_0x42f54f(0x1cc)](_0x3835bf,_0x42f54f(0x1d2),!0x0,_0x58697c);this[_0x42f54f(0x21b)](_0x208439,this[_0x42f54f(0x21f)]),this[_0x42f54f(0x1db)][_0x42f54f(0x213)]();}[_0x36c900(0x248)](_0x4f3a48){const _0x21e542=_0x36c900;this[_0x21e542(0x244)](_0x4f3a48,this[_0x21e542(0x21f)]),this[_0x21e542(0x244)](_0x4f3a48,this[_0x21e542(0x1db)][_0x21e542(0x23d)]),this[_0x21e542(0x1db)][_0x21e542(0x213)]();}[_0x36c900(0x1e7)](_0xcb3710,_0x5b9b19){const _0x44455=_0x36c900;let _0x36de8c=this[_0x44455(0x21f)][_0x44455(0x226)](_0x8b06da=>_0x8b06da['id']===_0xcb3710);_0x36de8c||(_0x36de8c=this[_0x44455(0x1db)][_0x44455(0x23d)][_0x44455(0x226)](_0x21c1cc=>_0x21c1cc['id']===_0xcb3710)),_0x36de8c&&(_0x36de8c[_0x44455(0x200)]=_0x5b9b19);}[_0x36c900(0x1d3)](_0x3a5836){const _0x5648bb=_0x36c900;this[_0x5648bb(0x241)][_0x5648bb(0x1e0)]();for(const _0x1f87d1 of _0x3a5836){const _0x3e40e8=this[_0x5648bb(0x1cc)](_0x1f87d1,_0x5648bb(0x222),!0x1,!0x1);this[_0x5648bb(0x21b)](_0x3e40e8,this[_0x5648bb(0x241)]);}}[_0x36c900(0x1c4)](){const _0x353628=_0x36c900;this[_0x353628(0x21f)][_0x353628(0x1e0)](),this[_0x353628(0x1db)][_0x353628(0x1e0)]();}[_0x36c900(0x203)](){const _0x40e192=_0x36c900;this[_0x40e192(0x241)][_0x40e192(0x1e0)]();}[_0x36c900(0x221)](_0x2084cc,_0xf7380f,_0x41adbe){const _0x8e663b=_0x36c900;this[_0x8e663b(0x208)][_0x8e663b(0x221)](_0x2084cc,_0xf7380f,_0x41adbe);}[_0x36c900(0x1d7)](){const _0x141624=_0x36c900;this[_0x141624(0x23a)](!0x1);}[_0x36c900(0x1fb)](){const _0x7f4bfc=_0x36c900;this[_0x7f4bfc(0x23a)](!0x0);}[_0x36c900(0x240)](){const _0x17284d=_0x36c900;this[_0x17284d(0x1d5)][_0x17284d(0x1f7)](),this[_0x17284d(0x1fa)][_0x17284d(0x245)]=!0x1,this[_0x17284d(0x209)]&&this[_0x17284d(0x209)][_0x17284d(0x1e0)]();}[_0x36c900(0x215)](){const _0x4491b0=_0x36c900;this[_0x4491b0(0x1d5)][_0x4491b0(0x224)](),this[_0x4491b0(0x1fa)][_0x4491b0(0x245)]=!0x0;}[_0x36c900(0x20a)](_0x5c7b1f){const _0x53befb=_0x36c900;this[_0x53befb(0x208)][_0x53befb(0x233)](_0x5c7b1f),this[_0x53befb(0x1fa)][_0x53befb(0x245)]=!0x0;}[_0x36c900(0x21a)](_0x520e27,_0x57db92,_0x3df67a,_0x573a76){const _0x1c0075=_0x36c900;this[_0x1c0075(0x208)][_0x1c0075(0x21a)](_0x520e27,_0x3df67a,_0x573a76);}[_0x36c900(0x1e1)](_0x6cc4ba){const _0x5255ce=_0x36c900;this[_0x5255ce(0x208)][_0x5255ce(0x1e1)](_0x6cc4ba),this[_0x5255ce(0x1fa)][_0x5255ce(0x245)]=!0x1;}[_0x36c900(0x1bc)](_0x370938){const _0x4c0e4e=_0x36c900;this[_0x4c0e4e(0x1ce)](this[_0x4c0e4e(0x236)],this[_0x4c0e4e(0x219)],_0x370938),this[_0x4c0e4e(0x1cd)](_0x370938);}[_0x36c900(0x1cd)](_0x38503d){const _0x132847=_0x36c900,_0x2dc6f4=!_0x38503d[_0x132847(0x1df)][_0x132847(0x23b)]&&_0x38503d[_0x132847(0x1df)][_0x132847(0x1f1)],_0x532051=_0x38503d[_0x132847(0x212)][_0x132847(0x1f1)],_0x209d21=_0x38503d[_0x132847(0x230)][_0x132847(0x1f1)];this[_0x132847(0x1fa)][_0x132847(0x1c8)]=_0x2dc6f4||_0x532051||_0x209d21;}[_0x36c900(0x1eb)](){const _0x3e1057=_0x36c900;this[_0x3e1057(0x1c9)]({'tag':_0x3e1057(0x1e3),'attributes':{'class':[vo,_0x3e1057(0x1ea)]},'children':[{'tag':_0x3e1057(0x1e3),'attributes':{'class':go},'children':this[_0x3e1057(0x21f)]}]});}[_0x36c900(0x1c3)](){const _0x37704d=_0x36c900;this[_0x37704d(0x1fa)]['on'](_0x37704d(0x22d),()=>{const _0x5f24fd=_0x37704d;this[_0x5f24fd(0x202)]();});}[_0x36c900(0x1dd)](_0x155cbf){const _0x1896a1=_0x36c900,_0x33075a=new _0x3d94e0(_0x155cbf);return _0x33075a[_0x1896a1(0x20b)]({'label':_0x1dabd2(_0x155cbf,_0x1896a1(0x247)),'class':uo+'\x20'+Io,'icon':_0x36ff08,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x33075a;}[_0x36c900(0x1be)](_0x993491){const _0x5cbd55=_0x36c900;return this[_0x5cbd55(0x22f)](_0x993491,Vo);}[_0x36c900(0x22b)](_0x57e9b2){const _0x246b1a=_0x36c900,_0x7e5be3=this[_0x246b1a(0x22f)](_0x57e9b2,Po);return this[_0x246b1a(0x220)](_0x7e5be3,_0x57e9b2),_0x7e5be3;}[_0x36c900(0x207)](_0xe84e5a,_0x543cf9){const _0x5c94c0=_0x36c900;return new _0x33a431(_0xe84e5a,_0x543cf9,{'onBackToContext':()=>{const _0x1b2221=_0x1d44;this[_0x1b2221(0x1fb)](),this[_0x1b2221(0x236)][_0x1b2221(0x234)]({'target':this[_0x1b2221(0x1fa)][_0x1b2221(0x1c0)],'limiter':this[_0x1b2221(0x243)](),'positions':No});},'onResourceSelected':(_0x175f6d,_0x396e4a)=>{const _0x3c5b9c=_0x1d44;this[_0x3c5b9c(0x1bf)](_0x3c5b9c(0x218),{'source':_0x175f6d,'resource':_0x396e4a});},'onLoadSourceResources':_0x307491=>{const _0x580698=_0x1d44;this[_0x580698(0x1bf)](_0x580698(0x23f),_0x307491);},'onBalloonClosed':()=>{const _0x1893cf=_0x1d44;this[_0x1893cf(0x1fa)][_0x1893cf(0x245)]=!0x1;},'getLimiterElement':()=>this[_0x5c94c0(0x243)](),'getTargetElement':()=>this[_0x5c94c0(0x1fa)][_0x5c94c0(0x1c0)]});}[_0x36c900(0x243)](){const _0x129f1e=_0x36c900;return this[_0x129f1e(0x1c0)]?.[_0x129f1e(0x1ba)]('.'+Lo)||document[_0x129f1e(0x1ef)];}[_0x36c900(0x22f)](_0x202cc0,_0x5c8b31){const _0x5276f1=_0x36c900,_0x479ad3=new _0x41d97f(_0x202cc0);return _0x479ad3[_0x5276f1(0x1d0)]({'attributes':{'class':_0x5c8b31}}),this[_0x5276f1(0x21e)][_0x5276f1(0x237)](_0x479ad3),_0x479ad3;}[_0x36c900(0x1ce)](_0x2a5b32,_0x28bb9e,_0x4894be){const _0x3ce011=_0x36c900;if(_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x1e0)](),!_0x4894be[_0x3ce011(0x1df)][_0x3ce011(0x23b)]&&_0x4894be[_0x3ce011(0x1df)][_0x3ce011(0x1f1)]){const _0x5ad025=this[_0x3ce011(0x229)](_0x28bb9e,{'label':_0x1dabd2(_0x28bb9e,_0x3ce011(0x235)),'icon':_0x113d1e});_0x5ad025['on'](_0x3ce011(0x22d),()=>{const _0x22c55b=_0x3ce011;this[_0x22c55b(0x1bf)](_0x22c55b(0x1c5)),this[_0x22c55b(0x1d7)]();}),_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x5ad025);}if(_0x4894be[_0x3ce011(0x212)][_0x3ce011(0x1f1)]){const _0x1eeda6=this[_0x3ce011(0x229)](_0x28bb9e,{'label':_0x1dabd2(_0x28bb9e,_0x3ce011(0x211)),'icon':_0x566031});_0x1eeda6['on'](_0x3ce011(0x22d),()=>{const _0x5cee07=_0x3ce011;this[_0x5cee07(0x1d7)](),this[_0x5cee07(0x215)](),this[_0x5cee07(0x1d5)][_0x5cee07(0x234)]({'target':this[_0x5cee07(0x1fa)][_0x5cee07(0x1c0)],'limiter':this[_0x5cee07(0x243)](),'positions':No}),this[_0x5cee07(0x209)][_0x5cee07(0x1f9)]();}),_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x1eeda6);}if(_0x4894be[_0x3ce011(0x230)][_0x3ce011(0x1f1)]){const _0x2caf5b=new _0xeb0112(_0x28bb9e);_0x2caf5b[_0x3ce011(0x20b)]({'label':_0x1dabd2(_0x28bb9e,_0x3ce011(0x201)),'icon':_0x377068,'withText':!0x0,'tooltip':!0x0,'class':Ro,'allowMultipleFiles':!0x0}),_0x2caf5b['on'](_0x3ce011(0x1f4),(_0x17340b,_0x516c3e)=>{const _0x3646a1=_0x3ce011;this[_0x3646a1(0x1bf)](_0x3646a1(0x1ee),_0x516c3e),this[_0x3646a1(0x1d7)]();}),_0x2caf5b[_0x3ce011(0x1bd)]=!0x0,_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x2caf5b);}for(const _0x4bba22 of _0x4894be[_0x3ce011(0x232)]){const _0x2d9587=this[_0x3ce011(0x229)](_0x28bb9e,{'label':_0x4bba22[_0x3ce011(0x1f3)],'icon':_0x4bba22[_0x3ce011(0x231)]||_0x3f90d,'type':_0x3ce011(0x238)});_0x2a5b32[_0x3ce011(0x1c7)][_0x3ce011(0x237)](_0x2d9587),_0x2d9587['on'](_0x3ce011(0x22d),()=>{const _0x533835=_0x3ce011;this[_0x533835(0x1d7)](),this[_0x533835(0x20a)](_0x4bba22);});}}[_0x36c900(0x220)](_0x55106b,_0x145bfb){const _0x57f05e=_0x36c900;this[_0x57f05e(0x209)]=new _0x39d29c(_0x145bfb),this[_0x57f05e(0x209)]['on'](_0x57f05e(0x1ca),(_0x493041,_0x283d48)=>{const _0x983861=_0x57f05e;this[_0x983861(0x204)](_0x283d48);}),this[_0x57f05e(0x209)]['on'](_0x57f05e(0x1b9),()=>{const _0x35d98d=_0x57f05e;this[_0x35d98d(0x240)](),this[_0x35d98d(0x1fb)](),this[_0x35d98d(0x236)][_0x35d98d(0x234)]({'target':this[_0x35d98d(0x1fa)][_0x35d98d(0x1c0)],'limiter':this[_0x35d98d(0x243)](),'positions':No});}),this[_0x57f05e(0x209)]['on'](_0x57f05e(0x20c),()=>{const _0x4e0ba4=_0x57f05e;this[_0x4e0ba4(0x1d5)][_0x4e0ba4(0x1c2)]&&this[_0x4e0ba4(0x1d5)][_0x4e0ba4(0x234)]({'target':this[_0x4e0ba4(0x1fa)][_0x4e0ba4(0x1c0)],'limiter':this[_0x4e0ba4(0x243)](),'positions':No});}),_0x55106b[_0x57f05e(0x1c7)][_0x57f05e(0x237)](this[_0x57f05e(0x209)]);}[_0x36c900(0x229)](_0x2efc96,_0x2f56af){const _0x1cd004=_0x36c900,_0x2db6e5=_0x1cd004(0x238)===_0x2f56af[_0x1cd004(0x1f6)]?new SourcesBalloonButtonView(_0x2efc96):new _0x3d94e0(_0x2efc96);return _0x2db6e5[_0x1cd004(0x20b)]({'label':_0x2f56af[_0x1cd004(0x1f3)],'icon':_0x2f56af[_0x1cd004(0x231)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ro}),_0x2db6e5;}[_0x36c900(0x1f8)](){const _0x37218b=_0x36c900;this[_0x37218b(0x1f5)](),this[_0x37218b(0x242)]();}[_0x36c900(0x242)](){const _0x28a3fb=_0x36c900;_0x45bcea({'emitter':this[_0x28a3fb(0x1d5)],'contextElements':[this[_0x28a3fb(0x1d5)][_0x28a3fb(0x1c0)]],'callback':()=>{const _0x5c49fd=_0x28a3fb;this[_0x5c49fd(0x240)]();},'activator':()=>this[_0x28a3fb(0x1d5)][_0x28a3fb(0x1c2)]});}[_0x36c900(0x23a)](_0x4c15ca){const _0xf2e1fb=_0x36c900,_0x455e7d=this[_0xf2e1fb(0x21c)];_0x455e7d[_0xf2e1fb(0x1f2)][_0xf2e1fb(0x245)]=_0x4c15ca,_0x4c15ca?_0x455e7d[_0xf2e1fb(0x1ed)][_0xf2e1fb(0x224)]():_0x455e7d[_0xf2e1fb(0x1ed)][_0xf2e1fb(0x1f7)]();}[_0x36c900(0x1f5)](){const _0x13bd8d=_0x36c900,{balloonView:_0x438732,buttonView:_0xda3611,hideMethod:_0x15f614}=this[_0x13bd8d(0x21c)];_0x45bcea({'emitter':_0x438732,'contextElements':[_0x438732[_0x13bd8d(0x1c0)],_0xda3611[_0x13bd8d(0x1c0)]],'callback':()=>{_0x15f614();},'activator':()=>_0xda3611[_0x13bd8d(0x245)]&&!this[_0x13bd8d(0x1d5)][_0x13bd8d(0x1c2)]&&!this[_0x13bd8d(0x208)][_0x13bd8d(0x1fe)]()});}[_0x36c900(0x1cc)](_0x1481a3,_0x61e2b4,_0x59c4f3=!0x1,_0x42392b=!0x1){const _0x1c35ca=_0x36c900,_0x3cc34a=_0x1c35ca(0x222)===_0x61e2b4||!0x0===_0x1481a3[_0x1c35ca(0x23c)],_0x31e45e=new _0x592154(this[_0x1c35ca(0x219)],_0x1481a3,_0x3cc34a,_0x59c4f3,_0x42392b);return _0x3cc34a||_0x31e45e['on'](_0x1c35ca(0x22a),()=>{const _0x5b60f7=_0x1c35ca;this[_0x5b60f7(0x1bf)](_0x5b60f7(0x248),_0x31e45e['id']);}),_0x31e45e;}[_0x36c900(0x21b)](_0x2bad2b,_0x913b){const _0x34c24a=_0x36c900;_0x913b[_0x34c24a(0x237)](_0x2bad2b,0x0);}[_0x36c900(0x244)](_0x1c6984,_0x5c2004){const _0x5cb2ad=_0x36c900,_0x5ecb01=_0x5c2004[_0x5cb2ad(0x226)](_0xd7a104=>_0xd7a104['id']===_0x1c6984);_0x5ecb01&&_0x5c2004[_0x5cb2ad(0x23e)](_0x5ecb01);}[_0x36c900(0x202)](){const _0x1d16c8=_0x36c900;this[_0x1d16c8(0x1fa)][_0x1d16c8(0x245)]?this[_0x1d16c8(0x1d7)]():(this[_0x1d16c8(0x1fb)](),this[_0x1d16c8(0x236)][_0x1d16c8(0x234)]({'target':this[_0x1d16c8(0x1fa)][_0x1d16c8(0x1c0)],'limiter':this[_0x1d16c8(0x243)](),'positions':No}));}[_0x36c900(0x204)](_0x5d6956){const _0xbe5689=_0x36c900;this[_0xbe5689(0x209)][_0xbe5689(0x1e0)](),this[_0xbe5689(0x240)](),this[_0xbe5689(0x1bf)](_0xbe5689(0x227),_0x5d6956);}}export class SourcesBalloonButtonView extends _0x3d94e0{[_0x36c900(0x1e9)];constructor(_0x1fbdc0){const _0x3321fa=_0x36c900;super(_0x1fbdc0),this[_0x3321fa(0x20b)]({'withText':!0x0,'role':_0x3321fa(0x210)}),this[_0x3321fa(0x1e9)]=this[_0x3321fa(0x1bb)](),this[_0x3321fa(0x1d0)]({'attributes':{'class':[So]}});}[_0x36c900(0x1d1)](){const _0x39db46=_0x36c900;super[_0x39db46(0x1d1)](),this[_0x39db46(0x1f0)][_0x39db46(0x237)](this[_0x39db46(0x1e9)]);}[_0x36c900(0x1bb)](){const _0x4d0b64=_0x36c900,_0x2cbc3c=new _0x20972b();return _0x2cbc3c[_0x4d0b64(0x1c7)]=_0x5d5851,_0x2cbc3c[_0x4d0b64(0x1d0)]({'attributes':{'class':So+_0x4d0b64(0x1e5)}}),_0x2cbc3c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ec294=_0x2264;(function(_0x126773,_0x4e5669){const _0x44f30b=_0x2264,_0x1be251=_0x126773();while(!![]){try{const _0x397719=parseInt(_0x44f30b(0xdd))/0x1*(-parseInt(_0x44f30b(0xe0))/0x2)+parseInt(_0x44f30b(0xe5))/0x3+parseInt(_0x44f30b(0xd4))/0x4*(-parseInt(_0x44f30b(0xdc))/0x5)+-parseInt(_0x44f30b(0xeb))/0x6+parseInt(_0x44f30b(0xd8))/0x7*(parseInt(_0x44f30b(0xef))/0x8)+parseInt(_0x44f30b(0xe3))/0x9*(-parseInt(_0x44f30b(0xe2))/0xa)+parseInt(_0x44f30b(0xda))/0xb*(parseInt(_0x44f30b(0xed))/0xc);if(_0x397719===_0x4e5669)break;else _0x1be251['push'](_0x1be251['shift']());}catch(_0x257719){_0x1be251['push'](_0x1be251['shift']());}}}(_0x34cc,0xdc172));import{ButtonView as _0x3c93cf,View as _0x347fa4}from'ckeditor5/src/ui.js';import{IconStop as _0x43d6d5}from'ckeditor5/src/icons.js';function _0x2264(_0x418b28,_0x11b92a){const _0x34cca6=_0x34cc();return _0x2264=function(_0x2264f1,_0x39e0b2){_0x2264f1=_0x2264f1-0xd2;let _0x307c2b=_0x34cca6[_0x2264f1];return _0x307c2b;},_0x2264(_0x418b28,_0x11b92a);}import{getTranslation as _0xdfe5e}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x347fa4{[_0x2ec294(0xe6)];[_0x2ec294(0xe7)];constructor(_0x309f50){const _0x553612=_0x2ec294;super(_0x309f50),this[_0x553612(0xe6)]=this[_0x553612(0xd2)](),this[_0x553612(0xe7)]=this[_0x553612(0xe9)](),this[_0x553612(0xe4)]({'tag':_0x553612(0xdf),'attributes':{'class':['ck',_0x553612(0xea),_0x553612(0xd7)]},'children':[this[_0x553612(0xe7)],this[_0x553612(0xe6)]]});}[_0x2ec294(0xd2)](){const _0xa174aa=_0x2ec294,_0x5ab1bf=new _0x3c93cf(this[_0xa174aa(0xec)]);return _0x5ab1bf[_0xa174aa(0xd6)]({'label':_0xdfe5e(this[_0xa174aa(0xec)],_0xa174aa(0xd3)),'withText':!0x0,'class':_0xa174aa(0xde),'icon':_0x43d6d5}),_0x5ab1bf['on'](_0xa174aa(0xd9),()=>{const _0x1c7c85=_0xa174aa;this[_0x1c7c85(0xd5)](_0x1c7c85(0xe1));}),_0x5ab1bf;}[_0x2ec294(0xe9)](){const _0x4a1fa4=_0x2ec294,_0x3659bf=new _0x347fa4(this[_0x4a1fa4(0xec)]);return _0x3659bf[_0x4a1fa4(0xe4)]({'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xdb)]},'children':[{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xee)]},'children':[{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xf0)]}},{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xf0)]}},{'tag':_0x4a1fa4(0xdf),'attributes':{'class':[_0x4a1fa4(0xf0)]}}]},{'text':_0xdfe5e(this[_0x4a1fa4(0xec)],_0x4a1fa4(0xe8))}]}),_0x3659bf;}}function _0x34cc(){const _0x4a757b=['1415OSVWdP','67dKcXsq','ai-chat-controls-loader__cancel-button','div','40582gdkNHU','abortPromptStream','250aKoqwc','268119RdrzwP','setTemplate','4539894pCHITD','_cancelButtonView','_loaderView','AI_CHAT_IS_WRITING','_createLoaderView','ck-ai-chat-controls-loader-wrapper','1744782UxIeJV','locale','1644mUdWJC','ck-ai-chat-controls-loader-icon','1888dgkKoQ','ck-ai-chat-controls-loader-icon-dot','_createCancelButtonView','AI_CHAT_STOP_GENERATING','9572zQNIut','fire','set','ck-reset_all','10304TRQDQb','execute','169664HziPUl','ck-ai-chat-controls-loader'];_0x34cc=function(){return _0x4a757b;};return _0x34cc();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1fe7e6=_0x1b02;(function(_0x25fa7d,_0x297d6c){const _0x1df810=_0x1b02,_0x19eff4=_0x25fa7d();while(!![]){try{const _0xc9c0aa=-parseInt(_0x1df810(0x82))/0x1*(parseInt(_0x1df810(0xb8))/0x2)+parseInt(_0x1df810(0x7d))/0x3+-parseInt(_0x1df810(0x83))/0x4*(-parseInt(_0x1df810(0xd0))/0x5)+parseInt(_0x1df810(0x81))/0x6+-parseInt(_0x1df810(0x9a))/0x7+-parseInt(_0x1df810(0xbc))/0x8+parseInt(_0x1df810(0xd7))/0x9*(parseInt(_0x1df810(0xa3))/0xa);if(_0xc9c0aa===_0x297d6c)break;else _0x19eff4['push'](_0x19eff4['shift']());}catch(_0x34063c){_0x19eff4['push'](_0x19eff4['shift']());}}}(_0xa7b1,0x34521));import{Collection as _0x39200a}from'ckeditor5/src/utils.js';function _0x1b02(_0x55d376,_0x3eb874){const _0xa7b1e9=_0xa7b1();return _0x1b02=function(_0x1b02b6,_0x176528){_0x1b02b6=_0x1b02b6-0x7d;let _0xc8095=_0xa7b1e9[_0x1b02b6];return _0xc8095;},_0x1b02(_0x55d376,_0x3eb874);}import{IconAI as _0x414731,IconBulb as _0x377355,IconWeb as _0x10403c}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3828b8,ButtonLabelView as _0x2346e7,ButtonView as _0x545412,createDropdown as _0x49dc79,IconView as _0x2c5a69,UIModel as _0x5dbdd5,View as _0xc952b3}from'ckeditor5/src/ui.js';import{getTranslation as _0x43bdd8}from'../../../aicore/utils/common-translations.js';const Oo=_0x1fe7e6(0xcb),uo=_0x1fe7e6(0xa4),No=_0x1fe7e6(0xc4),Ho=_0x1fe7e6(0x7f),Mo=_0x1fe7e6(0xd2),Do=_0x1fe7e6(0x95),Wo=_0x1fe7e6(0xc0),yo='n';export class AIChatPromptCapabilitiesView extends _0xc952b3{[_0x1fe7e6(0xae)];[_0x1fe7e6(0x9b)];[_0x1fe7e6(0xc6)];[_0x1fe7e6(0x90)];[_0x1fe7e6(0xa8)];[_0x1fe7e6(0xb9)];constructor(_0x394ed3){const _0x8e9002=_0x1fe7e6;super(_0x394ed3),this[_0x8e9002(0x9d)](_0x8e9002(0xb0),!0x1),this[_0x8e9002(0x9d)](_0x8e9002(0x93),!0x1),this[_0x8e9002(0x9d)](_0x8e9002(0xcc),!0x0),this[_0x8e9002(0x9d)](_0x8e9002(0xa2),!0x0),this[_0x8e9002(0x9d)](_0x8e9002(0xb5),''),this[_0x8e9002(0x9d)](_0x8e9002(0x9c),''),this[_0x8e9002(0x90)]=this[_0x8e9002(0xc8)](),this[_0x8e9002(0xb9)]=this[_0x8e9002(0x89)](),this[_0x8e9002(0xae)]=this[_0x8e9002(0xac)](),this[_0x8e9002(0x9b)]=this[_0x8e9002(0xdb)](),this[_0x8e9002(0xc6)]=this[_0x8e9002(0x9f)](),this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0xb6)](_0x8e9002(0xb4))['to'](this,_0x8e9002(0xcc),_0x47724e=>_0x47724e),this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0xa2),_0x156e45=>_0x156e45?this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0x97)]:_0x43bdd8(this[_0x8e9002(0xaa)],_0x8e9002(0x87))),this[_0x8e9002(0x90)][_0x8e9002(0xb6)](_0x8e9002(0xc1))['to'](this,_0x8e9002(0xa2),_0x50d562=>_0x50d562),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xa7))['to'](this,_0x8e9002(0xb0),_0x3efccf=>_0x3efccf),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xc7))['to'](this,_0x8e9002(0xcc),_0x6e91d8=>!_0x6e91d8),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0xb0),_0x3a31d4=>_0x43bdd8(this[_0x8e9002(0xaa)],_0x3a31d4?_0x8e9002(0x8e):_0x8e9002(0xc5))),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xa7))['to'](this,_0x8e9002(0x93),_0x563e5f=>_0x563e5f),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xc7))['to'](this,_0x8e9002(0xcc),_0x487512=>!_0x487512),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0x93),_0x40948f=>_0x43bdd8(this[_0x8e9002(0xaa)],_0x40948f?_0x8e9002(0xab):_0x8e9002(0x84))),this[_0x8e9002(0xde)]({'tag':_0x8e9002(0x86),'attributes':{'class':[Oo]},'children':[this[_0x8e9002(0x90)],this[_0x8e9002(0xb9)],this[_0x8e9002(0xae)],this[_0x8e9002(0x9b)],this[_0x8e9002(0xc6)]]}),this[_0x8e9002(0xa8)]=new _0x39200a(),_0x3828b8(this[_0x8e9002(0x90)],this[_0x8e9002(0xa8)]);}[_0x1fe7e6(0x85)](_0x204187,_0x21cb47){const _0x402820=_0x1fe7e6;if(this[_0x402820(0x9d)](_0x402820(0xcc),!(_0x21cb47&&_0x204187[_0x402820(0x94)]<=0x1)),this[_0x402820(0xa8)][_0x402820(0xb3)](),_0x204187?.[_0x402820(0x94)])for(const _0x3cee85 of _0x204187){const _0x496a51=new _0x5dbdd5({'label':_0x3cee85[_0x402820(0x8b)],'withText':!0x0,'role':_0x402820(0xc2),'id':_0x3cee85['id'],'model':_0x3cee85});_0x496a51[_0x402820(0xb6)](_0x402820(0xa7))['to'](this,_0x402820(0xb5),_0x594423=>_0x594423===_0x3cee85['id']),this[_0x402820(0xa8)][_0x402820(0xd9)]({'type':_0x402820(0xda),'model':_0x496a51,'labelView':new Bs(this[_0x402820(0xaa)],_0x3cee85)});}}[_0x1fe7e6(0xa1)](_0xdb2ff1){const _0x2c2870=_0x1fe7e6;this[_0x2c2870(0x9d)](_0x2c2870(0xb0),_0xdb2ff1);}[_0x1fe7e6(0xcf)](_0x3d821b){const _0x1e2140=_0x1fe7e6;this[_0x1e2140(0x9d)](_0x1e2140(0x93),_0x3d821b);}[_0x1fe7e6(0x9e)](_0x36b4bf){const _0x30e938=_0x1fe7e6;if(!_0x36b4bf)return;this[_0x30e938(0xb5)]=_0x36b4bf['id'],this[_0x30e938(0x9c)]=_0x36b4bf[_0x30e938(0x8b)]||_0x36b4bf['id'],this[_0x30e938(0x90)][_0x30e938(0xdf)][_0x30e938(0x9d)](_0x30e938(0x97),_0x36b4bf[_0x30e938(0x8b)]),this[_0x30e938(0x90)][_0x30e938(0xdf)][_0x30e938(0x9d)](_0x30e938(0xc3),_0x36b4bf[_0x30e938(0x8b)]);const _0x41b165=_0x36b4bf[_0x30e938(0xad)][_0x30e938(0xd5)]?.[_0x30e938(0x91)]??!0x1;this[_0x30e938(0x9d)](_0x30e938(0xb0),!0x1),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xa7),!0x1),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xc1),_0x41b165),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xb4),_0x41b165);const _0x276daf=_0x36b4bf[_0x30e938(0xad)][_0x30e938(0x8a)]?.[_0x30e938(0x91)]??!0x1;this[_0x30e938(0x9d)](_0x30e938(0x93),!0x1),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xa7),!0x1),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xc1),_0x276daf),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xb4),_0x276daf);}[_0x1fe7e6(0xd1)](){const _0x5d3b6d=_0x1fe7e6;this[_0x5d3b6d(0x9d)](_0x5d3b6d(0xa2),!0x0),this[_0x5d3b6d(0x9d)](_0x5d3b6d(0xcc),!0x0);}[_0x1fe7e6(0xdd)](_0x58f6ae){const _0x534eaf=_0x1fe7e6;this[_0x534eaf(0x9d)](_0x534eaf(0xa2),!0x1),_0x58f6ae&&this[_0x534eaf(0x9d)](_0x534eaf(0xcc),!0x1);}[_0x1fe7e6(0xac)](){const _0x45ba1e=_0x1fe7e6,_0x70f5d7=new _0x545412();return _0x70f5d7[_0x45ba1e(0x9d)]({'label':_0x43bdd8(this[_0x45ba1e(0xaa)],_0x45ba1e(0x8c)),'icon':_0x10403c,'class':uo,'isToggleable':!0x0,'tooltipPosition':yo}),_0x70f5d7['on'](_0x45ba1e(0xd6),()=>{const _0x26bfb3=_0x45ba1e;this[_0x26bfb3(0xce)](_0x26bfb3(0x8f));}),_0x70f5d7;}[_0x1fe7e6(0xdb)](){const _0x2f3168=_0x1fe7e6,_0x49a830=new _0x545412();return _0x49a830[_0x2f3168(0x9d)]({'label':_0x43bdd8(this[_0x2f3168(0xaa)],_0x2f3168(0xb2)),'icon':_0x377355,'class':uo,'isToggleable':!0x0,'tooltipPosition':yo}),_0x49a830['on'](_0x2f3168(0xd6),()=>{const _0x5882b4=_0x2f3168;this[_0x5882b4(0xce)](_0x5882b4(0xd4));}),_0x49a830;}[_0x1fe7e6(0x9f)](){const _0x1ebb17=_0x1fe7e6,_0x5f48cb=new _0x545412();return _0x5f48cb[_0x1ebb17(0x9d)]({'label':_0x43bdd8(this[_0x1ebb17(0xaa)],_0x1ebb17(0x99)),'icon':_0x414731,'withText':!0x0,'class':uo,'isToggleable':!0x0,'tooltip':_0x43bdd8(this[_0x1ebb17(0xaa)],_0x1ebb17(0x99)),'tooltipPosition':yo}),_0x5f48cb[_0x1ebb17(0xdc)]({'attributes':{'class':[No]}}),_0x5f48cb['on'](_0x1ebb17(0xd6),()=>{const _0x3c6650=_0x1ebb17;console[_0x3c6650(0xbf)](_0x3c6650(0xa0)),alert(_0x3c6650(0xa0));}),_0x5f48cb;}[_0x1fe7e6(0xc8)](){const _0x3d6dba=_0x1fe7e6,_0xf81452=_0x49dc79(this[_0x3d6dba(0xaa)]);return _0xf81452[_0x3d6dba(0x9d)]({'panelPosition':'ne','class':[Ho]}),_0xf81452[_0x3d6dba(0xdf)][_0x3d6dba(0x9d)]({'label':_0x43bdd8(this[_0x3d6dba(0xaa)],_0x3d6dba(0xc9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':yo}),this[_0x3d6dba(0xbe)](_0xf81452,_0x3d6dba(0xd6),_0x5bd199=>{const _0x462369=_0x3d6dba;this[_0x462369(0xce)](_0x462369(0xbb),_0x5bd199[_0x462369(0xaf)][_0x462369(0xb1)]);}),_0xf81452;}[_0x1fe7e6(0x89)](){const _0x2ecb87=_0x1fe7e6,_0x10be36=new Go(this[_0x2ecb87(0xaa)]);return _0x10be36[_0x2ecb87(0xb6)](_0x2ecb87(0xbd))['to'](this,_0x2ecb87(0x9c),_0x4fb0d0=>_0x4fb0d0??''),_0x10be36[_0x2ecb87(0xb6)](_0x2ecb87(0xb4))['to'](this,_0x2ecb87(0xcc),this,_0x2ecb87(0x9c),(_0x1a2d53,_0x22727b)=>!_0x1a2d53&&!_0x22727b?.[_0x2ecb87(0x7e)]()[_0x2ecb87(0xcd)](_0x2ecb87(0x98))),_0x10be36;}}class Bs extends _0x2346e7{constructor(_0x301d97,_0x450aec){const _0x378839=_0x1fe7e6;super();const _0x54ffbc=this[_0x378839(0xca)],_0x15f396=this[_0x378839(0xd8)]();this[_0x378839(0xde)]({'tag':_0x378839(0x86),'attributes':{'class':['ck',_0x378839(0x80)],'style':_0x54ffbc['to'](_0x378839(0xba)),'id':_0x54ffbc['to']('id')},'children':[{'tag':_0x378839(0x86),'attributes':{'class':[Mo]},'children':[{'text':_0x54ffbc['to'](_0x378839(0xbd))}]},{'tag':_0x378839(0x86),'attributes':{'class':[Do]},'children':[{'tag':_0x378839(0x96),'children':[{'text':_0x450aec[_0x378839(0xa9)]}]}]},{'tag':_0x378839(0x86),'attributes':{'class':[Wo]},'children':_0x15f396}]}),_0x15f396[_0x378839(0xa5)](this[_0x378839(0x8d)](_0x301d97,_0x10403c,_0x378839(0x8c),_0x450aec[_0x378839(0xad)][_0x378839(0xd5)]?.[_0x378839(0x91)]??!0x1)),_0x15f396[_0x378839(0xa5)](this[_0x378839(0x8d)](_0x301d97,_0x377355,_0x378839(0xb2),_0x450aec[_0x378839(0xad)][_0x378839(0x8a)]?.[_0x378839(0x91)]??!0x1));}[_0x1fe7e6(0x8d)](_0x5aa2bb,_0x2c87b8,_0x490d09,_0x372f12){const _0x26607f=_0x1fe7e6,_0x427bd8=new _0x2c5a69();_0x427bd8[_0x26607f(0x88)]=_0x2c87b8;const _0x179372=new _0xc952b3(_0x5aa2bb);_0x179372[_0x26607f(0xde)]({'tag':_0x26607f(0x96),'children':[{'text':_0x43bdd8(_0x5aa2bb,_0x490d09)+':\x20'}]});const _0x56f622=new _0xc952b3(_0x5aa2bb);return _0x56f622[_0x26607f(0xde)]({'tag':_0x26607f(0x96),'children':[{'text':_0x43bdd8(_0x5aa2bb,_0x372f12?_0x26607f(0xb7):_0x26607f(0xa6))}]}),[_0x427bd8,_0x179372,_0x56f622];}}class Go extends _0xc952b3{constructor(_0x14454d){const _0x13d847=_0x1fe7e6;super(_0x14454d),this[_0x13d847(0x9d)](_0x13d847(0xbd),void 0x0),this[_0x13d847(0x9d)](_0x13d847(0xb4),!0x0);const _0xb70222=this[_0x13d847(0xca)];this[_0x13d847(0xde)]({'tag':_0x13d847(0x96),'attributes':{'class':['ck',_0x13d847(0xd3),_0xb70222['if'](_0x13d847(0xb4),_0x13d847(0x92),_0x1b27f8=>!_0x1b27f8)]},'children':[{'text':_0xb70222['to'](_0x13d847(0xbd))}]});}}function _0xa7b1(){const _0x42b66c=['18BXdGQT','createCollection','add','button','_createReasoningButton','extendTemplate','disableModelSelector','setTemplate','buttonView','661938ccdBhj','toLowerCase','ck-ai-chat-controls__model-selection','ck-button__label','703626OQXvkt','69NqyAvJ','4wwiDWN','AI_CHAT_ENABLE_REASONING','setModelList','div','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','content','_createModelNameView','reasoning','name','AI_CHAT_SEARCH_WEB','_getCapabilityParts','AI_CHAT_DISABLE_WEB_SEARCH','toggleWebSearch','_modelSelectionDropdown','enabled','ck-hidden','reasoningActive','length','ck-ai-chat-controls__model-selection__item-description','span','label','agent','AI_CHAT_COMMANDS','2466366bintkN','_reasoningButton','activeModelName','set','setModel','_createCommandsButton','Commands\x20are\x20not\x20implemented\x20yet.','setWebSearch','modelSelectorEnabled','3455770OVVyPj','ck-ai-chat-controls-button','addMany','AI_CHAT_CAPABILITIES_NO','isOn','_modelSelectionDropdownItems','description','locale','AI_CHAT_DISABLE_REASONING','_createWebSearchButton','capabilities','_webSearchButton','source','webSearchActive','model','AI_CHAT_REASONING','clear','isVisible','activeModelId','bind','AI_CHAT_CAPABILITIES_YES','12386EyNRIf','_modelNameView','style','selectModel','2496064SmlgXQ','text','listenTo','log','ck-ai-chat-controls__model-selection__item-capabilities','isEnabled','menuitemradio','tooltip','ck-ai-chat-controls-button--commands','AI_CHAT_ENABLE_WEB_SEARCH','_commandsButton','withText','_createModelSelectionDropdown','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','bindTemplate','ck-ai-chat__prompt-capabilities','modelSelectorVisible','startsWith','fire','setReasoning','1384485uAlmdy','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','ck-ai-chat-controls__model-name','toggleReasoning','webSearch','execute'];_0xa7b1=function(){return _0x42b66c;};return _0xa7b1();}
|
|
23
|
+
function _0x1df8(){const _0x5dfc3d=['bindTemplate','tooltip','setModel','ck-ai-chat-controls-button','addMany','reasoningActive','AI_CHAT_DISABLE_REASONING','_modelNameView','_reasoningButton','_modelSelectionDropdown','AI_CHAT_REASONING','modelSelectorVisible','7388300zlYIzR','setTemplate','source','1225084DtAtfP','_createModelNameView','9150768vyFInD','model','text','enabled','execute','_modelSelectionDropdownItems','enableModelSelector','ck-ai-chat-controls__model-selection__item-capabilities','setWebSearch','10856867iiroGl','content','_createCommandsButton','clear','setReasoning','disableModelSelector','3NFsOWX','isOn','2995AVGeaW','button','13naqSEd','ck-ai-chat-controls__model-name','ck-ai-chat-controls__model-selection__item-description','ck-hidden','AI_CHAT_COMMANDS','description','span','_createWebSearchButton','_getCapabilityParts','AI_CHAT_SEARCH_WEB','style','locale','AI_CHAT_ENABLE_REASONING','activeModelId','160602mzDDwz','setModelList','11cCxKio','ck-ai-chat-controls__model-selection__item-name','ck-ai-chat-controls__model-selection','set','modelSelectorEnabled','activeModelName','toggleWebSearch','isEnabled','menuitemradio','Commands\x20are\x20not\x20implemented\x20yet.','div','capabilities','webSearchActive','toggleReasoning','ck-ai-chat__prompt-capabilities','ck-ai-chat-controls-button--commands','withText','12766728NevGpz','_commandsButton','createCollection','webSearch','extendTemplate','label','length','buttonView','bind','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','agent','AI_CHAT_CAPABILITIES_NO','_createModelSelectionDropdown','add','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','fire','listenTo','AI_CHAT_ENABLE_WEB_SEARCH','name','selectModel','AI_CHAT_DISABLE_WEB_SEARCH','_webSearchButton','1518OKxFNT','log','isVisible','toLowerCase','startsWith','reasoning','AI_CHAT_CAPABILITIES_YES','_createReasoningButton','ck-button__label'];_0x1df8=function(){return _0x5dfc3d;};return _0x1df8();}const _0x49fc10=_0x2b0c;(function(_0x5388e0,_0x1d9aa5){const _0x311277=_0x2b0c,_0x925af2=_0x5388e0();while(!![]){try{const _0x87ffb1=-parseInt(_0x311277(0x127))/0x1*(-parseInt(_0x311277(0x135))/0x2)+parseInt(_0x311277(0x123))/0x3*(parseInt(_0x311277(0x112))/0x4)+-parseInt(_0x311277(0x125))/0x5*(parseInt(_0x311277(0xfa))/0x6)+parseInt(_0x311277(0x11d))/0x7+-parseInt(_0x311277(0xe4))/0x8+-parseInt(_0x311277(0x114))/0x9+-parseInt(_0x311277(0x10f))/0xa*(-parseInt(_0x311277(0x137))/0xb);if(_0x87ffb1===_0x1d9aa5)break;else _0x925af2['push'](_0x925af2['shift']());}catch(_0x5420bc){_0x925af2['push'](_0x925af2['shift']());}}}(_0x1df8,0xd5d4f));import{Collection as _0x5246c9}from'ckeditor5/src/utils.js';import{IconAI as _0xf357d7,IconBulb as _0x2b61f7,IconWeb as _0x32b44d}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x199c62,ButtonLabelView as _0x8e4a32,ButtonView as _0x5cde7b,createDropdown as _0x4fc89d,IconView as _0x54b3f1,UIModel as _0x13118f,View as _0x36154d}from'ckeditor5/src/ui.js';function _0x2b0c(_0x383b90,_0x2a23db){const _0x1df8f8=_0x1df8();return _0x2b0c=function(_0x2b0c70,_0x121772){_0x2b0c70=_0x2b0c70-0xd4;let _0x41d0e7=_0x1df8f8[_0x2b0c70];return _0x41d0e7;},_0x2b0c(_0x383b90,_0x2a23db);}import{getTranslation as _0x339bf8}from'../../../aicore/utils/common-translations.js';const Oo=_0x49fc10(0xe1),uo=_0x49fc10(0x106),Ho=_0x49fc10(0xe2),Mo=_0x49fc10(0xd5),Do=_0x49fc10(0xd4),Wo=_0x49fc10(0x129),yo=_0x49fc10(0x11b),Go='n';export class AIChatPromptCapabilitiesView extends _0x36154d{[_0x49fc10(0xf9)];[_0x49fc10(0x10b)];[_0x49fc10(0xe5)];[_0x49fc10(0x10c)];[_0x49fc10(0x119)];[_0x49fc10(0x10a)];constructor(_0x136788){const _0x6586ba=_0x49fc10;super(_0x136788),this[_0x6586ba(0xd6)](_0x6586ba(0xdf),!0x1),this[_0x6586ba(0xd6)](_0x6586ba(0x108),!0x1),this[_0x6586ba(0xd6)](_0x6586ba(0x10e),!0x0),this[_0x6586ba(0xd6)](_0x6586ba(0xd7),!0x0),this[_0x6586ba(0xd6)](_0x6586ba(0x134),''),this[_0x6586ba(0xd6)](_0x6586ba(0xd8),''),this[_0x6586ba(0x10c)]=this[_0x6586ba(0xf0)](),this[_0x6586ba(0x10a)]=this[_0x6586ba(0x113)](),this[_0x6586ba(0xf9)]=this[_0x6586ba(0x12e)](),this[_0x6586ba(0x10b)]=this[_0x6586ba(0x101)](),this[_0x6586ba(0xe5)]=this[_0x6586ba(0x11f)](),this[_0x6586ba(0x10c)][_0x6586ba(0xeb)][_0x6586ba(0xec)](_0x6586ba(0xfc))['to'](this,_0x6586ba(0x10e),_0x1adc79=>_0x1adc79),this[_0x6586ba(0x10c)][_0x6586ba(0xeb)][_0x6586ba(0xec)](_0x6586ba(0x104))['to'](this,_0x6586ba(0xd7),_0x2b6dac=>_0x2b6dac?this[_0x6586ba(0x10c)][_0x6586ba(0xeb)][_0x6586ba(0xe9)]:_0x339bf8(this[_0x6586ba(0x132)],_0x6586ba(0xed))),this[_0x6586ba(0x10c)][_0x6586ba(0xec)](_0x6586ba(0xda))['to'](this,_0x6586ba(0xd7),_0x1e50fc=>_0x1e50fc),this[_0x6586ba(0xf9)][_0x6586ba(0xec)](_0x6586ba(0x124))['to'](this,_0x6586ba(0xdf),_0x5ac9a6=>_0x5ac9a6),this[_0x6586ba(0xf9)][_0x6586ba(0xec)](_0x6586ba(0xe3))['to'](this,_0x6586ba(0x10e),_0x1f289a=>!_0x1f289a),this[_0x6586ba(0xf9)][_0x6586ba(0xec)](_0x6586ba(0x104))['to'](this,_0x6586ba(0xdf),_0x174307=>_0x339bf8(this[_0x6586ba(0x132)],_0x174307?_0x6586ba(0xf8):_0x6586ba(0xf5))),this[_0x6586ba(0x10b)][_0x6586ba(0xec)](_0x6586ba(0x124))['to'](this,_0x6586ba(0x108),_0x32b551=>_0x32b551),this[_0x6586ba(0x10b)][_0x6586ba(0xec)](_0x6586ba(0xe3))['to'](this,_0x6586ba(0x10e),_0x135cd9=>!_0x135cd9),this[_0x6586ba(0x10b)][_0x6586ba(0xec)](_0x6586ba(0x104))['to'](this,_0x6586ba(0x108),_0x54d563=>_0x339bf8(this[_0x6586ba(0x132)],_0x54d563?_0x6586ba(0x109):_0x6586ba(0x133))),this[_0x6586ba(0x110)]({'tag':_0x6586ba(0xdd),'attributes':{'class':[Oo]},'children':[this[_0x6586ba(0x10c)],this[_0x6586ba(0x10a)],this[_0x6586ba(0xf9)],this[_0x6586ba(0x10b)],this[_0x6586ba(0xe5)]]}),this[_0x6586ba(0x119)]=new _0x5246c9(),_0x199c62(this[_0x6586ba(0x10c)],this[_0x6586ba(0x119)]);}[_0x49fc10(0x136)](_0x11e2dd,_0x55c2dd){const _0xafa205=_0x49fc10;if(this[_0xafa205(0xd6)](_0xafa205(0x10e),!(_0x55c2dd&&_0x11e2dd[_0xafa205(0xea)]<=0x1)),this[_0xafa205(0x119)][_0xafa205(0x120)](),_0x11e2dd?.[_0xafa205(0xea)])for(const _0x5e6a03 of _0x11e2dd){const _0x2cee65=new _0x13118f({'label':_0x5e6a03[_0xafa205(0xf6)],'withText':!0x0,'role':_0xafa205(0xdb),'id':_0x5e6a03['id'],'model':_0x5e6a03});_0x2cee65[_0xafa205(0xec)](_0xafa205(0x124))['to'](this,_0xafa205(0x134),_0x515b96=>_0x515b96===_0x5e6a03['id']),this[_0xafa205(0x119)][_0xafa205(0xf1)]({'type':_0xafa205(0x126),'model':_0x2cee65,'labelView':new js(this[_0xafa205(0x132)],_0x5e6a03)});}}[_0x49fc10(0x11c)](_0x29ebf6){const _0x475baf=_0x49fc10;this[_0x475baf(0xd6)](_0x475baf(0xdf),_0x29ebf6);}[_0x49fc10(0x121)](_0x596146){const _0x561006=_0x49fc10;this[_0x561006(0xd6)](_0x561006(0x108),_0x596146);}[_0x49fc10(0x105)](_0x57f18c){const _0x2ffd79=_0x49fc10;if(!_0x57f18c)return;this[_0x2ffd79(0x134)]=_0x57f18c['id'],this[_0x2ffd79(0xd8)]=_0x57f18c[_0x2ffd79(0xf6)]||_0x57f18c['id'],this[_0x2ffd79(0x10c)][_0x2ffd79(0xeb)][_0x2ffd79(0xd6)](_0x2ffd79(0xe9),_0x57f18c[_0x2ffd79(0xf6)]),this[_0x2ffd79(0x10c)][_0x2ffd79(0xeb)][_0x2ffd79(0xd6)](_0x2ffd79(0x104),_0x57f18c[_0x2ffd79(0xf6)]);const _0x3f880d=_0x57f18c[_0x2ffd79(0xde)][_0x2ffd79(0xe7)]?.[_0x2ffd79(0x117)]??!0x1;this[_0x2ffd79(0xd6)](_0x2ffd79(0xdf),!0x1),this[_0x2ffd79(0xf9)][_0x2ffd79(0xd6)](_0x2ffd79(0x124),!0x1),this[_0x2ffd79(0xf9)][_0x2ffd79(0xd6)](_0x2ffd79(0xda),_0x3f880d),this[_0x2ffd79(0xf9)][_0x2ffd79(0xd6)](_0x2ffd79(0xfc),_0x3f880d);const _0x3b9173=_0x57f18c[_0x2ffd79(0xde)][_0x2ffd79(0xff)]?.[_0x2ffd79(0x117)]??!0x1;this[_0x2ffd79(0xd6)](_0x2ffd79(0x108),!0x1),this[_0x2ffd79(0x10b)][_0x2ffd79(0xd6)](_0x2ffd79(0x124),!0x1),this[_0x2ffd79(0x10b)][_0x2ffd79(0xd6)](_0x2ffd79(0xda),_0x3b9173),this[_0x2ffd79(0x10b)][_0x2ffd79(0xd6)](_0x2ffd79(0xfc),_0x3b9173);}[_0x49fc10(0x11a)](){const _0x2cd16f=_0x49fc10;this[_0x2cd16f(0xd6)](_0x2cd16f(0xd7),!0x0),this[_0x2cd16f(0xd6)](_0x2cd16f(0x10e),!0x0);}[_0x49fc10(0x122)](_0x1ae7c8){const _0x5d37df=_0x49fc10;this[_0x5d37df(0xd6)](_0x5d37df(0xd7),!0x1),_0x1ae7c8&&this[_0x5d37df(0xd6)](_0x5d37df(0x10e),!0x1);}[_0x49fc10(0x12e)](){const _0x3bc4fe=_0x49fc10,_0xceaeb1=new _0x5cde7b();return _0xceaeb1[_0x3bc4fe(0xd6)]({'label':_0x339bf8(this[_0x3bc4fe(0x132)],_0x3bc4fe(0x130)),'icon':_0x32b44d,'class':uo,'isToggleable':!0x0,'tooltipPosition':Go}),_0xceaeb1['on'](_0x3bc4fe(0x118),()=>{const _0x1079b8=_0x3bc4fe;this[_0x1079b8(0xf3)](_0x1079b8(0xd9));}),_0xceaeb1;}[_0x49fc10(0x101)](){const _0x51f2f8=_0x49fc10,_0x541259=new _0x5cde7b();return _0x541259[_0x51f2f8(0xd6)]({'label':_0x339bf8(this[_0x51f2f8(0x132)],_0x51f2f8(0x10d)),'icon':_0x2b61f7,'class':uo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x541259['on'](_0x51f2f8(0x118),()=>{const _0xf498f=_0x51f2f8;this[_0xf498f(0xf3)](_0xf498f(0xe0));}),_0x541259;}[_0x49fc10(0x11f)](){const _0x426459=_0x49fc10,_0x4466b6=new _0x5cde7b();return _0x4466b6[_0x426459(0xd6)]({'label':_0x339bf8(this[_0x426459(0x132)],_0x426459(0x12b)),'icon':_0xf357d7,'withText':!0x0,'class':uo,'isToggleable':!0x0,'tooltip':_0x339bf8(this[_0x426459(0x132)],_0x426459(0x12b)),'tooltipPosition':Go}),_0x4466b6[_0x426459(0xe8)]({'attributes':{'class':[Ho]}}),_0x4466b6['on'](_0x426459(0x118),()=>{const _0xac2550=_0x426459;console[_0xac2550(0xfb)](_0xac2550(0xdc)),alert(_0xac2550(0xdc));}),_0x4466b6;}[_0x49fc10(0xf0)](){const _0x4cb4dc=_0x49fc10,_0x16638b=_0x4fc89d(this[_0x4cb4dc(0x132)]);return _0x16638b[_0x4cb4dc(0xd6)]({'panelPosition':'ne','class':[Mo]}),_0x16638b[_0x4cb4dc(0xeb)][_0x4cb4dc(0xd6)]({'label':_0x339bf8(this[_0x4cb4dc(0x132)],_0x4cb4dc(0xf2)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Go}),this[_0x4cb4dc(0xf4)](_0x16638b,_0x4cb4dc(0x118),_0x595e5b=>{const _0x548c32=_0x4cb4dc;this[_0x548c32(0xf3)](_0x548c32(0xf7),_0x595e5b[_0x548c32(0x111)][_0x548c32(0x115)]);}),_0x16638b;}[_0x49fc10(0x113)](){const _0x185dd2=_0x49fc10,_0x156dc3=new jo(this[_0x185dd2(0x132)]);return _0x156dc3[_0x185dd2(0xec)](_0x185dd2(0x116))['to'](this,_0x185dd2(0xd8),_0x440616=>_0x440616??''),_0x156dc3[_0x185dd2(0xec)](_0x185dd2(0xfc))['to'](this,_0x185dd2(0x10e),this,_0x185dd2(0xd8),(_0x4c8f38,_0x3c9eeb)=>!_0x4c8f38&&!_0x3c9eeb?.[_0x185dd2(0xfd)]()[_0x185dd2(0xfe)](_0x185dd2(0xee))),_0x156dc3;}}class js extends _0x8e4a32{constructor(_0x133d73,_0x37e591){const _0x2e0fc3=_0x49fc10;super();const _0x4fb544=this[_0x2e0fc3(0x103)],_0x4346f7=this[_0x2e0fc3(0xe6)]();this[_0x2e0fc3(0x110)]({'tag':_0x2e0fc3(0xdd),'attributes':{'class':['ck',_0x2e0fc3(0x102)],'style':_0x4fb544['to'](_0x2e0fc3(0x131)),'id':_0x4fb544['to']('id')},'children':[{'tag':_0x2e0fc3(0xdd),'attributes':{'class':[Do]},'children':[{'text':_0x4fb544['to'](_0x2e0fc3(0x116))}]},{'tag':_0x2e0fc3(0xdd),'attributes':{'class':[Wo]},'children':[{'tag':_0x2e0fc3(0x12d),'children':[{'text':_0x37e591[_0x2e0fc3(0x12c)]}]}]},{'tag':_0x2e0fc3(0xdd),'attributes':{'class':[yo]},'children':_0x4346f7}]}),_0x4346f7[_0x2e0fc3(0x107)](this[_0x2e0fc3(0x12f)](_0x133d73,_0x32b44d,_0x2e0fc3(0x130),_0x37e591[_0x2e0fc3(0xde)][_0x2e0fc3(0xe7)]?.[_0x2e0fc3(0x117)]??!0x1)),_0x4346f7[_0x2e0fc3(0x107)](this[_0x2e0fc3(0x12f)](_0x133d73,_0x2b61f7,_0x2e0fc3(0x10d),_0x37e591[_0x2e0fc3(0xde)][_0x2e0fc3(0xff)]?.[_0x2e0fc3(0x117)]??!0x1));}[_0x49fc10(0x12f)](_0xec32,_0x16247b,_0x4d7c5c,_0x17bce6){const _0x1cf3eb=_0x49fc10,_0x587528=new _0x54b3f1();_0x587528[_0x1cf3eb(0x11e)]=_0x16247b;const _0x530b61=new _0x36154d(_0xec32);_0x530b61[_0x1cf3eb(0x110)]({'tag':_0x1cf3eb(0x12d),'children':[{'text':_0x339bf8(_0xec32,_0x4d7c5c)+':\x20'}]});const _0x574b34=new _0x36154d(_0xec32);return _0x574b34[_0x1cf3eb(0x110)]({'tag':_0x1cf3eb(0x12d),'children':[{'text':_0x339bf8(_0xec32,_0x17bce6?_0x1cf3eb(0x100):_0x1cf3eb(0xef))}]}),[_0x587528,_0x530b61,_0x574b34];}}class jo extends _0x36154d{constructor(_0xcd9885){const _0x26efb3=_0x49fc10;super(_0xcd9885),this[_0x26efb3(0xd6)](_0x26efb3(0x116),void 0x0),this[_0x26efb3(0xd6)](_0x26efb3(0xfc),!0x0);const _0x40e2fd=this[_0x26efb3(0x103)];this[_0x26efb3(0x110)]({'tag':_0x26efb3(0x12d),'attributes':{'class':['ck',_0x26efb3(0x128),_0x40e2fd['if'](_0x26efb3(0xfc),_0x26efb3(0x12a),_0x5da055=>!_0x5da055)]},'children':[{'text':_0x40e2fd['to'](_0x26efb3(0x116))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x300748=_0x5d50;function _0x32ab(){const _0x1e6f28=['fieldView','focusableChildren','window','enter','maxRows','locale','isEnabled','element','16027398Kajnvx','MIN_ROWS','submit','ck-ai-chat__prompt-input','width','target','_setUpAddContextButtonPositioning','errorText','MAX_ROWS','41547oERVRU','set','11441442PEqEyM','extendTemplate','keystrokes','update','8NTAlTG','rtl','reset','fieldWrapperChildren','render','1097659lgFhkD','setPlaceholderText','169887ammfKb','calc(','right','5EOxBof','isEmpty','10714732mxIJAj','submitButtonView','isUploadInProgress','style','_createSubmitButton','setIsUploadInProgress','minRows','_addContextButtonView','uiLanguageDirection','placeholder','bind','left','_queryViewResizeObserver','fire','excludeScrollbarsAndBorders','queryView','hasError','1179682GueOPO','value','6270tmfJoN','trim','sendUserMessage','add','execute','56ZpZrvv','destroy','AI_CHAT_LABEL_SUBMIT','AI_CHAT_PROMPT_EMPTY_ERROR','px\x20-\x20var(--ck-spacing-tiny))','ck-ai-chat__prompt-submit-button','requestAnimationFrame'];_0x32ab=function(){return _0x1e6f28;};return _0x32ab();}(function(_0x1392ee,_0xc13190){const _0x4ee4f0=_0x5d50,_0x245840=_0x1392ee();while(!![]){try{const _0x451872=-parseInt(_0x4ee4f0(0x1e7))/0x1+parseInt(_0x4ee4f0(0x1bd))/0x2+-parseInt(_0x4ee4f0(0x1a7))/0x3*(-parseInt(_0x4ee4f0(0x1c4))/0x4)+parseInt(_0x4ee4f0(0x1aa))/0x5*(-parseInt(_0x4ee4f0(0x1de))/0x6)+-parseInt(_0x4ee4f0(0x1ac))/0x7+parseInt(_0x4ee4f0(0x1e2))/0x8*(parseInt(_0x4ee4f0(0x1d3))/0x9)+-parseInt(_0x4ee4f0(0x1bf))/0xa*(-parseInt(_0x4ee4f0(0x1dc))/0xb);if(_0x451872===_0xc13190)break;else _0x245840['push'](_0x245840['shift']());}catch(_0x1fcf79){_0x245840['push'](_0x245840['shift']());}}}(_0x32ab,0xf3436));import{IconSubmit as _0x5cdbfa}from'ckeditor5/src/icons.js';import{ButtonView as _0x28f613,AutocompleteView as _0x8565b3,createLabeledTextarea as _0x44da5c}from'ckeditor5/src/ui.js';import{global as _0x13fc72,isVisible as _0x490267,Rect as _0x1ceee0,ResizeObserver as _0x13862a}from'ckeditor5/src/utils.js';import{getTranslation as _0x11bb82}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x2d5c17}from'./aichatpromptsuggestionslistview.js';function _0x5d50(_0x48e8fa,_0x3fb852){const _0x32ab16=_0x32ab();return _0x5d50=function(_0x5d507d,_0x54bdf5){_0x5d507d=_0x5d507d-0x1a6;let _0x35a17f=_0x32ab16[_0x5d507d];return _0x35a17f;},_0x5d50(_0x48e8fa,_0x3fb852);}import{escape as _0x29b212}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x8565b3{[_0x300748(0x1ad)];static [_0x300748(0x1d4)]=0x1;static [_0x300748(0x1db)]=0xc;[_0x300748(0x1b3)];[_0x300748(0x1b8)];constructor(_0x2a7c10,_0x5f33ef){const _0x6ba08d=_0x300748;super(_0x2a7c10,{'queryView':{'label':'','creator':_0x44da5c,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x2d5c17(_0x2a7c10),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x6ba08d(0x1dd)](_0x6ba08d(0x1ab),!0x0),this[_0x6ba08d(0x1dd)](_0x6ba08d(0x1ae),!0x1),this[_0x6ba08d(0x1b3)]=_0x5f33ef,this[_0x6ba08d(0x1b8)]=null,this[_0x6ba08d(0x1bb)][_0x6ba08d(0x1cb)][_0x6ba08d(0x1b2)]=AIChatPromptInputView[_0x6ba08d(0x1d4)],this[_0x6ba08d(0x1bb)][_0x6ba08d(0x1cb)][_0x6ba08d(0x1cf)]=AIChatPromptInputView[_0x6ba08d(0x1db)],this[_0x6ba08d(0x1bb)][_0x6ba08d(0x1e5)][_0x6ba08d(0x1c2)](this[_0x6ba08d(0x1b3)]),this[_0x6ba08d(0x1d9)](),this[_0x6ba08d(0x1df)]({'attributes':{'class':['ck',_0x6ba08d(0x1d6)]}}),this[_0x6ba08d(0x1ad)]=this[_0x6ba08d(0x1b0)](),this[_0x6ba08d(0x1ad)][_0x6ba08d(0x1b6)](_0x6ba08d(0x1d1))['to'](this,_0x6ba08d(0x1ab),this,_0x6ba08d(0x1ae),(_0x329a1d,_0x20550a)=>!_0x329a1d&&!_0x20550a),this[_0x6ba08d(0x1cc)][_0x6ba08d(0x1c2)](this[_0x6ba08d(0x1ad)]);}[_0x300748(0x1e6)](){const _0xd57a16=_0x300748;super[_0xd57a16(0x1e6)](),this[_0xd57a16(0x1bb)][_0xd57a16(0x1e5)][_0xd57a16(0x1c2)](this[_0xd57a16(0x1ad)]),this[_0xd57a16(0x1e0)][_0xd57a16(0x1dd)](_0xd57a16(0x1ce),(_0x9ef584,_0x1fbdd9)=>{const _0x2081b9=_0xd57a16;this[_0x2081b9(0x1ae)]||this[_0x2081b9(0x1ab)]||_0x9ef584[_0x2081b9(0x1d8)]==this[_0x2081b9(0x1bb)][_0x2081b9(0x1cb)][_0x2081b9(0x1d2)]&&(this[_0x2081b9(0x1d5)](),_0x1fbdd9());}),this[_0xd57a16(0x1bb)][_0xd57a16(0x1cb)]['on'](_0xd57a16(0x1e1),()=>{const _0x31b7d7=_0xd57a16;this[_0x31b7d7(0x1ab)]=''===this[_0x31b7d7(0x1bb)][_0x31b7d7(0x1cb)][_0x31b7d7(0x1d2)][_0x31b7d7(0x1be)]?.[_0x31b7d7(0x1c0)]();});}[_0x300748(0x1c5)](){const _0x3e19f1=_0x300748;super[_0x3e19f1(0x1c5)](),this[_0x3e19f1(0x1b8)]&&this[_0x3e19f1(0x1b8)][_0x3e19f1(0x1c5)]();}[_0x300748(0x1d5)](){const _0x1d686b=_0x300748,_0x18a6c5=this[_0x1d686b(0x1bb)][_0x1d686b(0x1cb)][_0x1d686b(0x1d2)][_0x1d686b(0x1be)]?.[_0x1d686b(0x1c0)]();if(!_0x18a6c5)return this[_0x1d686b(0x1bb)][_0x1d686b(0x1da)]=_0x11bb82(this[_0x1d686b(0x1d0)],_0x1d686b(0x1c7)),void(this[_0x1d686b(0x1bb)][_0x1d686b(0x1cb)][_0x1d686b(0x1bc)]=!0x0);this[_0x1d686b(0x1bb)][_0x1d686b(0x1cb)][_0x1d686b(0x1bc)]=!0x1;const _0x3564b1=_0x29b212(_0x18a6c5);this[_0x1d686b(0x1b9)](_0x1d686b(0x1c1),_0x3564b1),this[_0x1d686b(0x1bb)][_0x1d686b(0x1cb)][_0x1d686b(0x1e4)]();}[_0x300748(0x1a6)](_0x28c07b){const _0xa6980a=_0x300748;this[_0xa6980a(0x1bb)][_0xa6980a(0x1cb)][_0xa6980a(0x1dd)](_0xa6980a(0x1b5),_0x28c07b);}[_0x300748(0x1b0)](){const _0x35089d=_0x300748,_0xfa363c=new _0x28f613(this[_0x35089d(0x1d0)]);return _0xfa363c[_0x35089d(0x1dd)]({'icon':_0x5cdbfa,'label':_0x11bb82(this[_0x35089d(0x1d0)],_0x35089d(0x1c6)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x35089d(0x1c9),'isEnabled':!0x1}),_0xfa363c['on'](_0x35089d(0x1c3),()=>{const _0x4d3590=_0x35089d;this[_0x4d3590(0x1d5)]();}),_0xfa363c;}[_0x300748(0x1b1)](_0x28a147){const _0xb2c7c9=_0x300748;this[_0xb2c7c9(0x1ae)]=_0x28a147;}[_0x300748(0x1d9)](){const _0x33622b=_0x300748,_0x2f36dd=this[_0x33622b(0x1d0)],_0x258b6=()=>{const _0x37481c=_0x33622b;_0x13fc72[_0x37481c(0x1cd)][_0x37481c(0x1ca)](()=>{const _0x2f7db8=_0x37481c;if(_0x490267(this[_0x2f7db8(0x1d2)])){const _0x2817fe=new _0x1ceee0(this[_0x2f7db8(0x1bb)][_0x2f7db8(0x1cb)][_0x2f7db8(0x1d2)]),_0x1ff1b6=new _0x1ceee0(this[_0x2f7db8(0x1b3)][_0x2f7db8(0x1d2)]),_0x3b5877=_0x2817fe[_0x2f7db8(0x1d7)],_0x3349ae=_0x2f7db8(0x1e3)===_0x2f36dd[_0x2f7db8(0x1b4)]?_0x2f7db8(0x1a9):_0x2f7db8(0x1b7);_0x2817fe[_0x2f7db8(0x1ba)]();const _0x347c0c=_0x3b5877-_0x2817fe[_0x2f7db8(0x1d7)]+0x1;this[_0x2f7db8(0x1b3)][_0x2f7db8(0x1d2)][_0x2f7db8(0x1af)][_0x3349ae]=_0x2f7db8(0x1a8)+(_0x3b5877-_0x1ff1b6[_0x2f7db8(0x1d7)]-_0x347c0c)+_0x2f7db8(0x1c8);}});};this[_0x33622b(0x1bb)][_0x33622b(0x1cb)]['on'](_0x33622b(0x1e1),_0x258b6),this['on'](_0x33622b(0x1e6),()=>{const _0x58ca19=_0x33622b;_0x258b6(),this[_0x58ca19(0x1b8)]=new _0x13862a(this[_0x58ca19(0x1bb)][_0x58ca19(0x1cb)][_0x58ca19(0x1d2)],()=>{_0x258b6();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x386779=_0x5457;(function(_0x2fb1e2,_0x41dc5e){const _0x511f3b=_0x5457,_0x18a251=_0x2fb1e2();while(!![]){try{const _0x3319e1=parseInt(_0x511f3b(0x1b7))/0x1*(-parseInt(_0x511f3b(0x1ba))/0x2)+-parseInt(_0x511f3b(0x1bb))/0x3+-parseInt(_0x511f3b(0x1b9))/0x4+parseInt(_0x511f3b(0x1bc))/0x5+parseInt(_0x511f3b(0x1b3))/0x6*(parseInt(_0x511f3b(0x1b6))/0x7)+parseInt(_0x511f3b(0x1b1))/0x8*(-parseInt(_0x511f3b(0x1b8))/0x9)+parseInt(_0x511f3b(0x1bd))/0xa;if(_0x3319e1===_0x41dc5e)break;else _0x18a251['push'](_0x18a251['shift']());}catch(_0x5a596a){_0x18a251['push'](_0x18a251['shift']());}}}(_0x1f28,0x4d4ca));import{ListView as _0x9baaa7}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x9baaa7{[_0x386779(0x1b4)](){const _0x44da44=_0x386779;let _0x34667b=0x0;for(const _0x2fc1eb of this[_0x44da44(0x1b2)])_0x34667b+=_0x2fc1eb[_0x44da44(0x1b2)][_0x44da44(0x1b5)];return{'resultsCount':_0x34667b,'totalItemsCount':_0x34667b};}}function _0x5457(_0x564d01,_0xc4cbb){const _0x1f28c7=_0x1f28();return _0x5457=function(_0x5457a8,_0x5dbab2){_0x5457a8=_0x5457a8-0x1b1;let _0x486188=_0x1f28c7[_0x5457a8];return _0x486188;},_0x5457(_0x564d01,_0xc4cbb);}function _0x1f28(){const _0xbf0a69=['31136uDUPJD','531SMlwKl','99081Jcqeub','2416700mrhWqR','258MGlnjU','204906CgeQts','1333195oZJTnk','6399530VRYsAL','304lezgek','items','768bMqSlA','filter','length'];_0x1f28=function(){return _0xbf0a69;};return _0x1f28();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x33b4(){const _0x3f5d2b=['14019445KdDzUI','ck-ai-chat-resources__item--in-context','getResourceIcon','ck-ai-chat-resources__item-title','setTemplate','set','128346QSExep','ck-ai-chat-resources__item','ck-ai-chat-resources__item__icon','4455130syYrKB','isVisible','text','_iconView','33OiSDgp','2667933xgWqDR','2275670eYRAwx','TEXT','span','URL','label','trim','172684SOLSMX','type','resource','175PGSzUw','bindTemplate','FILE','updateResourceState','_createTitleView','render','38121zhATdp','ck-hidden','isInContext','content','_updateIcon','24ZiyypH','_setupTemplate','_createIconView','execute','_titleView','highlightText','DOCUMENT','div','10sapIfc','extendTemplate'];_0x33b4=function(){return _0x3f5d2b;};return _0x33b4();}const _0x5d4fec=_0x9fc5;(function(_0x5b37f2,_0x2e00da){const _0x495155=_0x9fc5,_0x43e2da=_0x5b37f2();while(!![]){try{const _0x4d6c73=parseInt(_0x495155(0xd2))/0x1*(parseInt(_0x495155(0xdf))/0x2)+-parseInt(_0x495155(0xee))/0x3*(parseInt(_0x495155(0xc9))/0x4)+parseInt(_0x495155(0xf0))/0x5+parseInt(_0x495155(0xe7))/0x6*(-parseInt(_0x495155(0xcc))/0x7)+-parseInt(_0x495155(0xd7))/0x8*(parseInt(_0x495155(0xef))/0x9)+parseInt(_0x495155(0xea))/0xa+parseInt(_0x495155(0xe1))/0xb;if(_0x4d6c73===_0x2e00da)break;else _0x43e2da['push'](_0x43e2da['shift']());}catch(_0x5d7171){_0x43e2da['push'](_0x43e2da['shift']());}}}(_0x33b4,0x71f5c));import{HighlightedTextView as _0x5f0fcd,IconView as _0xfa0d90,ListItemView as _0x58edda}from'ckeditor5/src/ui.js';function _0x9fc5(_0x35a5b6,_0x21018b){const _0x33b421=_0x33b4();return _0x9fc5=function(_0x9fc54b,_0x107e26){_0x9fc54b=_0x9fc54b-0xc5;let _0x116cfe=_0x33b421[_0x9fc54b];return _0x116cfe;},_0x9fc5(_0x35a5b6,_0x21018b);}import{escapeRegExp as _0x33fd79}from'es-toolkit/compat';import{AIContextItemType as _0x1362bd}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0xbce51a,IconCheck as _0x457300,IconDocument as _0x12004e,IconDocumentOutline as _0x512785,IconLink as _0x91ba4e}from'@ckeditor/ckeditor5-icons';const qr=_0x5d4fec(0xe8),zr=_0x5d4fec(0xe2),Br=_0x5d4fec(0xe4),Fr=_0x5d4fec(0xe9);export class AIChatResourceListItemView extends _0x58edda{[_0x5d4fec(0xcb)];[_0x5d4fec(0xdb)];[_0x5d4fec(0xed)];constructor(_0x58a243,_0x349ee2){const _0x4cbfb4=_0x5d4fec;super(_0x58a243),this[_0x4cbfb4(0xcb)]=_0x349ee2,this[_0x4cbfb4(0xe6)](_0x4cbfb4(0xd4),!!_0x349ee2[_0x4cbfb4(0xd4)]),this[_0x4cbfb4(0xdb)]=this[_0x4cbfb4(0xd0)](),this[_0x4cbfb4(0xed)]=this[_0x4cbfb4(0xd9)](),this[_0x4cbfb4(0xd8)]();}[_0x5d4fec(0xd1)](){const _0x57fbf3=_0x5d4fec;super[_0x57fbf3(0xd1)]();}[_0x5d4fec(0xe3)](_0x4eab68){const _0x417434=_0x5d4fec;if(_0x4eab68[_0x417434(0xd4)])return _0x457300;switch(_0x4eab68[_0x417434(0xca)]){case _0x1362bd[_0x417434(0xdd)]:return _0x12004e;case _0x1362bd[_0x417434(0xc6)]:return _0x91ba4e;case _0x1362bd[_0x417434(0xce)]:case _0x1362bd[_0x417434(0xf1)]:return _0xbce51a;default:return _0x512785;}}[_0x5d4fec(0xdc)](_0x382f24){const _0x2fc496=_0x5d4fec;if(!_0x382f24||''===_0x382f24[_0x2fc496(0xc8)]())return void this[_0x2fc496(0xdb)][_0x2fc496(0xdc)](null);const _0x3219ee=new RegExp(_0x33fd79(_0x382f24),'gi');this[_0x2fc496(0xdb)][_0x2fc496(0xdc)](_0x3219ee);}[_0x5d4fec(0xcf)](_0x24e4c6){const _0x51251b=_0x5d4fec;this[_0x51251b(0xcb)][_0x51251b(0xd4)]=_0x24e4c6,this[_0x51251b(0xd4)]=_0x24e4c6,this[_0x51251b(0xd6)]();}[_0x5d4fec(0xd0)](){const _0x1fd386=_0x5d4fec,_0x3320e6=new _0x5f0fcd();return _0x3320e6[_0x1fd386(0xec)]=this[_0x1fd386(0xcb)][_0x1fd386(0xc7)],_0x3320e6[_0x1fd386(0xe0)]({'tag':_0x1fd386(0xc5),'attributes':{'class':[Br]}}),_0x3320e6;}[_0x5d4fec(0xd9)](){const _0x149419=_0x5d4fec,_0x55b38d=new _0xfa0d90();return _0x55b38d[_0x149419(0xd5)]=this[_0x149419(0xe3)](this[_0x149419(0xcb)]),_0x55b38d;}[_0x5d4fec(0xd8)](){const _0x42cce0=_0x5d4fec,_0x403b61=this[_0x42cce0(0xcd)];this[_0x42cce0(0xe5)]({'tag':_0x42cce0(0xde),'attributes':{'class':[qr,_0x403b61['if'](_0x42cce0(0xeb),_0x42cce0(0xd3),_0x216a37=>!_0x216a37),_0x403b61['if'](_0x42cce0(0xd4),zr)]},'children':[{'tag':_0x42cce0(0xde),'attributes':{'class':[Fr]},'children':[this[_0x42cce0(0xed)]]},this[_0x42cce0(0xdb)]],'on':{'click':_0x403b61['to'](_0x42cce0(0xda))}});}[_0x5d4fec(0xd6)](){const _0x5994f4=_0x5d4fec;this[_0x5994f4(0xed)][_0x5994f4(0xd5)]=this[_0x5994f4(0xe3)](this[_0x5994f4(0xcb)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x78ea10=_0x4b58;function _0x4b58(_0x50baf8,_0x1e6e7e){const _0x4f61fa=_0x4f61();return _0x4b58=function(_0x4b58c8,_0x77d3dc){_0x4b58c8=_0x4b58c8-0x86;let _0x5408ce=_0x4f61fa[_0x4b58c8];return _0x5408ce;},_0x4b58(_0x50baf8,_0x1e6e7e);}(function(_0x59690c,_0x349a06){const _0xc971ed=_0x4b58,_0x5d9298=_0x59690c();while(!![]){try{const _0x1ba6dd=parseInt(_0xc971ed(0xa0))/0x1+parseInt(_0xc971ed(0xa3))/0x2+parseInt(_0xc971ed(0x95))/0x3+parseInt(_0xc971ed(0xb7))/0x4+-parseInt(_0xc971ed(0x92))/0x5+-parseInt(_0xc971ed(0xa8))/0x6+-parseInt(_0xc971ed(0x9d))/0x7;if(_0x1ba6dd===_0x349a06)break;else _0x5d9298['push'](_0x5d9298['shift']());}catch(_0x81f5ac){_0x5d9298['push'](_0x5d9298['shift']());}}}(_0x4f61,0xcab3a));import{BalloonPanelView as _0x18b586,ButtonView as _0x108d06,clickOutsideHandler as _0x678aaa,FormHeaderView as _0x15b859}from'ckeditor5/src/ui.js';function _0x4f61(){const _0x188523=['getTargetElement','set','show','_getResourcesViewFromBalloon','label','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','updateResourceState','2931308jHIMfU','_setupSingleResourceBalloonClickOutsideHandler','resource','_bodyCollection','pin','children','_createBalloonResourcesView','isAnyResourceBalloonVisible','_addSourceResourceContent','values','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon\x20ck-button-back','onBalloonClosed','onResourceSelected','_config','extendTemplate','addResourceToContext','element','1212960QMfLUM','content','showSourceResourcesBalloon','111912ZMveHC','add','closeSourceResourceBalloon','destroy','_createSourceResourceBalloonPanel','isVisible','setResources','source','6524448GwbApZ','ck-ai-chat-context-controls__source-balloon-panel','clear','725254MbxoOH','_createBackButton','getLimiterElement','2671954EJFLWx','_locale','execute','populateSourceResourceBalloon','_createBalloonHeader','4958640djqKsb','onLoadSourceResources','loadSourceResources','hide','get','onBackToContext','delete','_sourceResourceBalloons'];_0x4f61=function(){return _0x188523;};return _0x4f61();}import{IconPreviousArrow as _0x4da272}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x26788a}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x28c08d}from'./aichatresourcesview.js';const Xo=_0x78ea10(0x9e),zo=_0x78ea10(0x8b),Jo=_0x78ea10(0xb5);export class AIChatResourcesBalloonView{[_0x78ea10(0xaf)]=new Map();[_0x78ea10(0xba)];[_0x78ea10(0xa4)];[_0x78ea10(0x8e)];constructor(_0x56645b,_0x15ddbc,_0x5dfc9b){const _0x583461=_0x78ea10;this[_0x583461(0xa4)]=_0x56645b,this[_0x583461(0xba)]=_0x15ddbc,this[_0x583461(0x8e)]=_0x5dfc9b;}[_0x78ea10(0x94)](_0x6d2cb1){const _0x2c0c71=_0x78ea10;let _0x43e32a=this[_0x2c0c71(0xaf)][_0x2c0c71(0xac)](_0x6d2cb1['id']);_0x43e32a||(_0x43e32a=this[_0x2c0c71(0x99)](),this[_0x2c0c71(0xaf)][_0x2c0c71(0xb1)](_0x6d2cb1['id'],_0x43e32a),this[_0x2c0c71(0xb8)](_0x43e32a)),this[_0x2c0c71(0x88)](_0x43e32a,_0x6d2cb1),_0x43e32a[_0x2c0c71(0xb2)]();const _0x40c122=this[_0x2c0c71(0x8e)][_0x2c0c71(0xb0)]();_0x40c122&&_0x43e32a[_0x2c0c71(0xbb)]({'target':_0x40c122,'limiter':this[_0x2c0c71(0x8e)][_0x2c0c71(0xa2)]()});}[_0x78ea10(0xa6)](_0x3cb49e,_0x222b58,_0x18640f){const _0x4cbd58=_0x78ea10,_0x18de1d=this[_0x4cbd58(0xaf)][_0x4cbd58(0xac)](_0x3cb49e);if(!_0x18de1d)return;const _0x31df2c=this[_0x4cbd58(0xb3)](_0x18de1d);_0x31df2c&&_0x31df2c[_0x4cbd58(0x9b)](_0x222b58,_0x18640f);}[_0x78ea10(0x97)](_0x39b3a8){const _0x4fd02c=_0x78ea10,_0x18940d=this[_0x4fd02c(0xaf)][_0x4fd02c(0xac)](_0x39b3a8);_0x18940d&&requestAnimationFrame(()=>{const _0x309b0b=_0x4fd02c;_0x18940d[_0x309b0b(0xab)](),this[_0x309b0b(0xaf)][_0x309b0b(0xae)](_0x39b3a8),this[_0x309b0b(0x8e)][_0x309b0b(0x8c)]();});}[_0x78ea10(0x87)](){const _0x4d1a03=_0x78ea10;for(const _0x20481e of this[_0x4d1a03(0xaf)][_0x4d1a03(0x89)]())if(_0x20481e[_0x4d1a03(0x9a)])return!0x0;return!0x1;}[_0x78ea10(0xb6)](_0x1806ae,_0x366f37,_0x46257f){const _0x5708df=_0x78ea10,_0x4db11e=this[_0x5708df(0xaf)][_0x5708df(0xac)](_0x1806ae);if(!_0x4db11e||!_0x4db11e[_0x5708df(0x9a)])return;const _0x236b36=this[_0x5708df(0x8e)][_0x5708df(0xb0)]();if(!_0x236b36)return;_0x4db11e[_0x5708df(0xbb)]({'target':_0x236b36,'limiter':this[_0x5708df(0x8e)][_0x5708df(0xa2)]()});const _0x5e4427=this[_0x5708df(0xb3)](_0x4db11e);_0x5e4427&&_0x5e4427[_0x5708df(0xb6)](_0x366f37,_0x46257f);}[_0x78ea10(0x98)](){const _0x9e322e=_0x78ea10;for(const _0xa18b7 of this[_0x9e322e(0xaf)][_0x9e322e(0x89)]())_0xa18b7[_0x9e322e(0x98)]();this[_0x9e322e(0xaf)][_0x9e322e(0x9f)]();}[_0x78ea10(0x99)](){const _0x328213=_0x78ea10,_0x4e73db=new _0x18b586(this[_0x328213(0xa4)]);return _0x4e73db[_0x328213(0x8f)]({'attributes':{'class':Xo}}),this[_0x328213(0xba)][_0x328213(0x96)](_0x4e73db),_0x4e73db;}[_0x78ea10(0x88)](_0x849824,_0x3310cc){const _0x32c444=_0x78ea10;_0x849824[_0x32c444(0x93)][_0x32c444(0x9f)]();const _0x17ac84=this[_0x32c444(0xa7)](_0x849824,_0x3310cc);_0x849824[_0x32c444(0x93)][_0x32c444(0x96)](_0x17ac84);const _0x1fb97d=this[_0x32c444(0x86)](_0x3310cc);_0x849824[_0x32c444(0x93)][_0x32c444(0x96)](_0x1fb97d);}[_0x78ea10(0xa7)](_0x36b9fc,_0xdaae04){const _0x22eb53=_0x78ea10,_0x480c6c=this[_0x22eb53(0xa1)](_0x36b9fc),_0x5d4b3b=new _0x15b859(this[_0x22eb53(0xa4)],{'label':_0xdaae04[_0x22eb53(0xb4)],'class':Jo});return _0x5d4b3b[_0x22eb53(0xbc)][_0x22eb53(0x96)](_0x480c6c,0x0),_0x5d4b3b;}[_0x78ea10(0xa1)](_0x130b2d){const _0x47fcaf=_0x78ea10,_0x3de552=new _0x108d06(this[_0x47fcaf(0xa4)]);return _0x3de552[_0x47fcaf(0xb1)]({'icon':_0x4da272,'tooltip':_0x26788a(this[_0x47fcaf(0xa4)],_0x47fcaf(0x8a)),'tooltipPosition':'n','class':zo}),_0x3de552['on'](_0x47fcaf(0xa5),()=>{const _0x85095d=_0x47fcaf;_0x130b2d[_0x85095d(0xab)](),this[_0x85095d(0x8e)][_0x85095d(0xad)]();}),_0x3de552;}[_0x78ea10(0x86)](_0xed3a39){const _0x4428e4=_0x78ea10,_0x7419a2=new _0x28c08d(this[_0x4428e4(0xa4)],_0xed3a39);return _0x7419a2['on'](_0x4428e4(0xaa),(_0x23a515,_0x5a2100)=>{const _0x4bc2d9=_0x4428e4;this[_0x4bc2d9(0x8e)][_0x4bc2d9(0xa9)](_0x5a2100);}),_0x7419a2['on'](_0x4428e4(0x90),(_0x35afb7,_0x32b031)=>{const _0x467e74=_0x4428e4;this[_0x467e74(0x8e)][_0x467e74(0x8d)](_0x32b031[_0x467e74(0x9c)],_0x32b031[_0x467e74(0xb9)]),this[_0x467e74(0x97)](_0xed3a39['id']);}),_0x7419a2;}[_0x78ea10(0xb3)](_0x162cb3){const _0xd6a935=_0x78ea10,_0x48fbda=_0x162cb3[_0xd6a935(0x93)][_0xd6a935(0xac)](0x1);return _0x48fbda instanceof _0x28c08d?_0x48fbda:null;}[_0x78ea10(0xb8)](_0x3b6948){const _0x115718=_0x78ea10;_0x678aaa({'emitter':_0x3b6948,'contextElements':[_0x3b6948[_0x115718(0x91)]],'callback':()=>{const _0x3fd738=_0x115718;_0x3b6948[_0x3fd738(0xab)](),this[_0x3fd738(0x8e)][_0x3fd738(0x8c)]();},'activator':()=>_0x3b6948[_0x115718(0x9a)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x568d55=_0xc55a;(function(_0x5e6913,_0x115cd8){const _0x3e40d4=_0xc55a,_0x4c2c79=_0x5e6913();while(!![]){try{const _0xe45f58=-parseInt(_0x3e40d4(0x1fd))/0x1+parseInt(_0x3e40d4(0x1fe))/0x2+parseInt(_0x3e40d4(0x1ef))/0x3+-parseInt(_0x3e40d4(0x205))/0x4*(-parseInt(_0x3e40d4(0x1f0))/0x5)+parseInt(_0x3e40d4(0x1f8))/0x6+-parseInt(_0x3e40d4(0x204))/0x7+-parseInt(_0x3e40d4(0x201))/0x8*(parseInt(_0x3e40d4(0x1ed))/0x9);if(_0xe45f58===_0x115cd8)break;else _0x4c2c79['push'](_0x4c2c79['shift']());}catch(_0x13a68d){_0x4c2c79['push'](_0x4c2c79['shift']());}}}(_0x5540,0xede0f));function _0x5540(){const _0x38083d=['_source','locale','filter','add','setResources','test','highlightText','382437PbikUy','extendTemplate','3758172DqVJEj','10GqcLSk','_handleResourceSelection','clear','replace','trim','resource','fire','label','5801712ogtAGP','items','\x5c$&','execute','addResourceToContext','554130hlmOWj','3705818evKjhJ','ck-ai-chat-resources__list','updateResourceState','368jRpWbK','useDefaultFiltering','forEach','8292032UizwVV','1190300xtIxtT'];_0x5540=function(){return _0x38083d;};return _0x5540();}import{ListView as _0x5c607b}from'ckeditor5/src/ui.js';function _0xc55a(_0x1213dc,_0x26604e){const _0x554043=_0x5540();return _0xc55a=function(_0xc55ac0,_0x347576){_0xc55ac0=_0xc55ac0-0x1ea;let _0x10418a=_0x554043[_0xc55ac0];return _0x10418a;},_0xc55a(_0x1213dc,_0x26604e);}import{AIChatResourceListItemView as _0x592192}from'./aichatresourcelistitemview.js';const Qo=_0x568d55(0x1ff);export class AIChatContextResourcesListView extends _0x5c607b{[_0x568d55(0x206)];constructor(_0x4dbdf8,_0x3bbd46){const _0x63991e=_0x568d55;super(_0x4dbdf8),this[_0x63991e(0x206)]=_0x3bbd46,this[_0x63991e(0x1ee)]({'attributes':{'class':[Qo]}});}[_0x568d55(0x1ea)](_0x107e27,_0x5d8928){const _0x2fc499=_0x568d55;this[_0x2fc499(0x1f9)][_0x2fc499(0x1f2)]();let _0x3547bc=_0x107e27;if(this[_0x2fc499(0x206)][_0x2fc499(0x202)]&&_0x5d8928&&''!==_0x5d8928[_0x2fc499(0x1f4)]()){const _0x1cdb1a=new RegExp(_0x5d8928[_0x2fc499(0x1f3)](/[.*+?^${}()|[\]\\]/g,_0x2fc499(0x1fa)),'gi');_0x3547bc=_0x107e27[_0x2fc499(0x208)](_0x4f31ef=>_0x1cdb1a[_0x2fc499(0x1eb)](_0x4f31ef[_0x2fc499(0x1f7)]));}for(const _0x409032 of _0x3547bc){const _0x360c27=new _0x592192(this[_0x2fc499(0x207)],_0x409032);_0x360c27['on'](_0x2fc499(0x1fb),()=>{const _0x3010ae=_0x2fc499;this[_0x3010ae(0x1f1)](this[_0x3010ae(0x206)],_0x409032);}),this[_0x2fc499(0x1f9)][_0x2fc499(0x209)](_0x360c27);}this[_0x2fc499(0x206)][_0x2fc499(0x202)]&&this[_0x2fc499(0x1ec)](_0x5d8928);}[_0x568d55(0x1ec)](_0x21848d){const _0x2345da=_0x568d55;this[_0x2345da(0x206)][_0x2345da(0x202)]&&this[_0x2345da(0x1f9)][_0x2345da(0x203)](_0x2c9586=>{const _0x1536b1=_0x2345da;_0x2c9586[_0x1536b1(0x1ec)](_0x21848d);});}[_0x568d55(0x200)](_0x317c58,_0x2ca89b){const _0x3a4067=_0x568d55;for(const _0x41c0ee of this[_0x3a4067(0x1f9)]){const _0x5af1f9=_0x41c0ee;_0x5af1f9[_0x3a4067(0x1f5)]['id']===_0x317c58&&_0x5af1f9[_0x3a4067(0x200)](_0x2ca89b);}}[_0x568d55(0x1f1)](_0x5545f3,_0x4c942a){const _0x91bac5=_0x568d55;this[_0x91bac5(0x1f6)](_0x91bac5(0x1fc),{'source':_0x5545f3,'resource':_0x4c942a});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x29aa4b,IconView as _0x3b0732,LabeledFieldView as _0xb87814,createLabeledInputText as _0x21a793}from'ckeditor5/src/ui.js';import{IconLoupe as _0x4b025e,IconCancel as _0x4fb583}from'ckeditor5/src/icons.js';import{getTranslation as _0x1babad}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0xb87814{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x529cad){const t=_0x529cad['t'],_0x1e7ff9={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x21a793,'label':_0x1babad(_0x529cad,'AI_CHAT_SEARCH_RESOURCES')};super(_0x529cad,_0x1e7ff9['creator']),this['label']=_0x1e7ff9['label'],this['_viewConfig']=_0x1e7ff9,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x529cad,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x49d50e){this['fire']('search',_0x49d50e);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x3b0732(),this['iconView']['content']=_0x4b025e,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x3b6aef,t){this['resetButtonView']=new _0x29aa4b(_0x3b6aef),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x4fb583,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x4be7ad=>!_0x4be7ad),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x346500=_0x35f9;function _0x2034(){const _0x1e63e8=['_resourcesListView','fire','_createResourcesListView','23524rWNeFu','useDefaultFiltering','updateResourceState','extendTemplate','_skeletonLoader','set','_searchView','1071193NvKyNS','div','1524616vNnvcr','3419675sYjsrX','_createSearchView','bindTemplate','loadSourceResources','429zGmUgm','_createSearchSection','79597SzUixH','render','search','ck-ai-chat-resources','_source','2908040AvcjCr','31136058fDRpIR','198qUGWFn','locale','delegate','loadResources','isLoading','children','getQuery','addResourceToContext','aiChatResources','_createSkeletonView','setTemplate','ck\x20ck-search','_latestLoadResourcesUid','highlightText','setResources','ck-hidden'];_0x2034=function(){return _0x1e63e8;};return _0x2034();}(function(_0x4cd3f0,_0x52b9d1){const _0x15cada=_0x35f9,_0x46d46b=_0x4cd3f0();while(!![]){try{const _0x4f6068=parseInt(_0x15cada(0x1b0))/0x1+parseInt(_0x15cada(0x1b2))/0x2+-parseInt(_0x15cada(0x1b7))/0x3*(-parseInt(_0x15cada(0x1a9))/0x4)+parseInt(_0x15cada(0x1b3))/0x5+parseInt(_0x15cada(0x196))/0x6*(parseInt(_0x15cada(0x1b9))/0x7)+parseInt(_0x15cada(0x1be))/0x8+-parseInt(_0x15cada(0x195))/0x9;if(_0x4f6068===_0x52b9d1)break;else _0x46d46b['push'](_0x46d46b['shift']());}catch(_0x8c1eb8){_0x46d46b['push'](_0x46d46b['shift']());}}}(_0x2034,0x9baa5));import{View as _0x545e45,ViewCollection as _0x68f4dd}from'ckeditor5/src/ui.js';function _0x35f9(_0x36bee9,_0x2ec4b7){const _0x203471=_0x2034();return _0x35f9=function(_0x35f9a7,_0x81122e){_0x35f9a7=_0x35f9a7-0x195;let _0x55147f=_0x203471[_0x35f9a7];return _0x55147f;},_0x35f9(_0x36bee9,_0x2ec4b7);}import{uid as _0x5dd13e}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x272610}from'./aichatresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0xeefa22}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x39c801,SKELETON_DEFINITIONS as _0x2feadf}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x545e45{[_0x346500(0x1af)];[_0x346500(0x1a6)];[_0x346500(0x1ad)];[_0x346500(0x1bd)];[_0x346500(0x19b)];[_0x346500(0x1a2)]=null;constructor(_0x281756,_0x515aaf){const _0x16b425=_0x346500;super(_0x281756),this[_0x16b425(0x1bd)]=_0x515aaf,this[_0x16b425(0x1ae)](_0x16b425(0x19a),!0x0),this[_0x16b425(0x1af)]=this[_0x16b425(0x1b4)]();const _0x23c2aa=this[_0x16b425(0x1b8)]();this[_0x16b425(0x1a6)]=this[_0x16b425(0x1a8)](),this[_0x16b425(0x1ad)]=this[_0x16b425(0x19f)](),this[_0x16b425(0x19b)]=new _0x68f4dd([_0x23c2aa,this[_0x16b425(0x1ad)],this[_0x16b425(0x1a6)]]),this[_0x16b425(0x1a0)]({'tag':_0x16b425(0x1b1),'attributes':{'class':_0x16b425(0x1bc)},'children':this[_0x16b425(0x19b)]});}[_0x346500(0x1b4)](){const _0x3aa2c0=_0x346500;return new _0xeefa22(this[_0x3aa2c0(0x197)]);}[_0x346500(0x1b8)](){const _0x316851=_0x346500,_0x53aa11=new _0x545e45(this[_0x316851(0x197)]);return _0x53aa11[_0x316851(0x1a0)]({'tag':_0x316851(0x1b1),'attributes':{'class':_0x316851(0x1a1)},'children':[this[_0x316851(0x1af)]]}),this[_0x316851(0x1af)]['on'](_0x316851(0x1bb),(_0x1add6c,_0x2dab25)=>{const _0x3070e7=_0x316851;this[_0x3070e7(0x199)](_0x2dab25),this[_0x3070e7(0x1bd)][_0x3070e7(0x1aa)]&&this[_0x3070e7(0x1a6)][_0x3070e7(0x1a3)](_0x2dab25);}),_0x53aa11;}[_0x346500(0x1a8)](){const _0x2a3e99=_0x346500,_0x2a8f98=new _0x272610(this[_0x2a3e99(0x197)],this[_0x2a3e99(0x1bd)]);return _0x2a8f98[_0x2a3e99(0x198)](_0x2a3e99(0x19d))['to'](this),_0x2a8f98[_0x2a3e99(0x1ac)]({'attributes':{'class':this[_0x2a3e99(0x1b5)]['if'](_0x2a3e99(0x19a),_0x2a3e99(0x1a5))}}),_0x2a8f98;}[_0x346500(0x19f)](){const _0x3221d8=_0x346500,_0x5c89f9=new _0x39c801(this[_0x3221d8(0x197)],_0x2feadf[_0x3221d8(0x19e)]);return _0x5c89f9[_0x3221d8(0x1ac)]({'attributes':{'class':[this[_0x3221d8(0x1b5)]['if'](_0x3221d8(0x19a),_0x3221d8(0x1a5),_0xa7cf8c=>!_0xa7cf8c)]}}),_0x5c89f9;}[_0x346500(0x1ba)](){const _0x218ec5=_0x346500;super[_0x218ec5(0x1ba)](),this[_0x218ec5(0x199)]('');}[_0x346500(0x199)](_0x93f978){const _0x4074d3=_0x346500,_0x405fe0=_0x5dd13e();this[_0x4074d3(0x1a2)]=_0x405fe0,this[_0x4074d3(0x1a7)](_0x4074d3(0x1b6),{'sourceId':this[_0x4074d3(0x1bd)]['id'],'query':_0x93f978,'uid':_0x405fe0}),this[_0x4074d3(0x19a)]=!0x0;}[_0x346500(0x1a4)](_0x1d61df,_0x3f86c9){const _0x1fddd0=_0x346500;if(_0x3f86c9&&_0x3f86c9!==this[_0x1fddd0(0x1a2)])return;const _0x3fc459=this[_0x1fddd0(0x1bd)][_0x1fddd0(0x1aa)]?this[_0x1fddd0(0x1af)][_0x1fddd0(0x19c)]():'';this[_0x1fddd0(0x1a6)][_0x1fddd0(0x1a4)](_0x1d61df,_0x3fc459),requestAnimationFrame(()=>{const _0x55be26=_0x1fddd0;this[_0x55be26(0x19a)]=!0x1;});}[_0x346500(0x1ab)](_0x21d8b3,_0x3581d1){const _0x2f8501=_0x346500;this[_0x2f8501(0x1a6)][_0x2f8501(0x1ab)](_0x21d8b3,_0x3581d1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x41acb8=_0x19b8;(function(_0x4e1cfd,_0x51b0a6){const _0x4de4c7=_0x19b8,_0x1c4678=_0x4e1cfd();while(!![]){try{const _0x1e3bd8=-parseInt(_0x4de4c7(0x196))/0x1+-parseInt(_0x4de4c7(0x184))/0x2*(-parseInt(_0x4de4c7(0x18e))/0x3)+-parseInt(_0x4de4c7(0x181))/0x4*(parseInt(_0x4de4c7(0x198))/0x5)+-parseInt(_0x4de4c7(0x199))/0x6+parseInt(_0x4de4c7(0x191))/0x7+-parseInt(_0x4de4c7(0x18d))/0x8*(-parseInt(_0x4de4c7(0x18c))/0x9)+parseInt(_0x4de4c7(0x189))/0xa*(parseInt(_0x4de4c7(0x185))/0xb);if(_0x1e3bd8===_0x51b0a6)break;else _0x1c4678['push'](_0x1c4678['shift']());}catch(_0x5556d2){_0x1c4678['push'](_0x1c4678['shift']());}}}(_0x387b,0x68aed));import{View as _0x20ad52}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x328bc0}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x182b1b}from'../controls/aichatchipsoverflowmanager.js';function _0x19b8(_0x5caa8c,_0x42f76a){const _0x387be4=_0x387b();return _0x19b8=function(_0x19b880,_0x492fdc){_0x19b880=_0x19b880-0x179;let _0x466b3c=_0x387be4[_0x19b880];return _0x466b3c;},_0x19b8(_0x5caa8c,_0x42f76a);}function _0x387b(){const _0x27198c=['200610IsaRYa','div','setTemplate','261MKYNZU','157128YQSAzm','525DTNklW','_createContextChips','ck-ai-chat-controls-button','2752386oUiQwo','add','element','_bodyCollection','ck-ai-chat-context-chips-wrapper-balloon','586138QTzaxN','ck-ai-chat-context-chips-wrapper','20AyEZRl','2573544dlXBkD','ck-ai-chat-controls_context_show-more-button','ck-reset_all','setContainerElement','createCollection','ck-ai-chat__feed__context-chips','_overflowManager','destroy','querySelector','473156Pqpjis','_contextChips','ck-ai-chat-context-controls__show-more-balloon-panel','1276XvNZCv','462yVGHna','render','locale','reorganizeChips'];_0x387b=function(){return _0x27198c;};return _0x387b();}const po=_0x41acb8(0x17d),wo=_0x41acb8(0x197),_o=_0x41acb8(0x195),uo=_0x41acb8(0x190),xo=_0x41acb8(0x179),fo=_0x41acb8(0x183);export class AIChatFeedContextChipsView extends _0x20ad52{[_0x41acb8(0x182)]=this[_0x41acb8(0x17c)]();[_0x41acb8(0x17e)];[_0x41acb8(0x194)];constructor(_0x5eecf7,_0x554a83,_0x4d7188){const _0x1588f6=_0x41acb8;super(_0x5eecf7),this[_0x1588f6(0x194)]=_0x4d7188,this[_0x1588f6(0x18f)](_0x554a83);const _0x374a10={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':fo,'overflowContainer':_o,'controlsButton':uo}};this[_0x1588f6(0x17e)]=new _0x182b1b(_0x5eecf7,this[_0x1588f6(0x182)],_0x374a10,this[_0x1588f6(0x194)],this),this[_0x1588f6(0x18b)]({'tag':_0x1588f6(0x18a),'attributes':{'class':[po,'ck',_0x1588f6(0x17a)]},'children':[{'tag':_0x1588f6(0x18a),'attributes':{'class':wo},'children':this[_0x1588f6(0x182)]}]});}[_0x41acb8(0x186)](){const _0xd1cea5=_0x41acb8;super[_0xd1cea5(0x186)]();const _0x551841=this[_0xd1cea5(0x193)][_0xd1cea5(0x180)]('.'+wo);_0x551841&&(this[_0xd1cea5(0x17e)][_0xd1cea5(0x17b)](_0x551841),this[_0xd1cea5(0x17e)][_0xd1cea5(0x188)]());}[_0x41acb8(0x17f)](){const _0x34eab6=_0x41acb8;super[_0x34eab6(0x17f)](),this[_0x34eab6(0x17e)][_0x34eab6(0x17f)]();}[_0x41acb8(0x18f)](_0x3c7ddb){const _0x3c5e30=_0x41acb8;for(const _0x13b596 of _0x3c7ddb){const _0x23fed4=new _0x328bc0(this[_0x3c5e30(0x187)],_0x13b596,!0x0,!0x1);this[_0x3c5e30(0x182)][_0x3c5e30(0x192)](_0x23fed4);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x4739fe=_0x1cf1;(function(_0x3b6e23,_0x2ab722){var _0x21ec53=_0x1cf1,_0x183234=_0x3b6e23();while(!![]){try{var _0x4d7756=-parseInt(_0x21ec53(0x191))/0x1+-parseInt(_0x21ec53(0x19c))/0x2+-parseInt(_0x21ec53(0x1a4))/0x3+-parseInt(_0x21ec53(0x19e))/0x4*(-parseInt(_0x21ec53(0x199))/0x5)+-parseInt(_0x21ec53(0x190))/0x6*(parseInt(_0x21ec53(0x1a6))/0x7)+-parseInt(_0x21ec53(0x195))/0x8*(parseInt(_0x21ec53(0x192))/0x9)+-parseInt(_0x21ec53(0x197))/0xa*(-parseInt(_0x21ec53(0x1a0))/0xb);if(_0x4d7756===_0x2ab722)break;else _0x183234['push'](_0x183234['shift']());}catch(_0x376b3c){_0x183234['push'](_0x183234['shift']());}}}(_0x1cbf,0xe65f1));import{AIChatFeedItemView as _0x3856b5}from'./aichatfeeditemview.js';function _0x1cf1(_0xc46e81,_0x74d95d){var _0x1cbfb4=_0x1cbf();return _0x1cf1=function(_0x1cf131,_0x1e2fdc){_0x1cf131=_0x1cf131-0x190;var _0x26a9df=_0x1cbfb4[_0x1cf131];return _0x26a9df;},_0x1cf1(_0xc46e81,_0x74d95d);}function _0x1cbf(){var _0x6f6b77=['render','markAsDone','2864mJfeWU','innerHTML','10fHMpIx','warning','960440YdSGRF','element','ck-ai-chat-error_warning','1797700oJeZVD','extendTemplate','8JlajQk','initialContent','72807383cDbykB','options','level','setContent','5454612AWjexm','ck-ai-chat-error','745255elpJpR','66GMMsCf','1394041ISYSmj','19539vKokpg'];_0x1cbf=function(){return _0x6f6b77;};return _0x1cbf();}export class AIChatFeedErrorItemView extends _0x3856b5{constructor(_0x54ee05){var _0x1410e7=_0x1cf1;super(_0x54ee05),this[_0x1410e7(0x19d)]({'attributes':{'class':[_0x1410e7(0x1a5),_0x1410e7(0x198)===_0x54ee05[_0x1410e7(0x1a2)]?_0x1410e7(0x19b):'']}});}[_0x4739fe(0x193)](){var _0x4af823=_0x4739fe;super[_0x4af823(0x193)](),this[_0x4af823(0x1a3)](this[_0x4af823(0x1a1)][_0x4af823(0x19f)]),this[_0x4af823(0x194)]();}[_0x4739fe(0x1a3)](_0x2e9dd7){var _0x1a2491=_0x4739fe;this[_0x1a2491(0x19a)][_0x1a2491(0x196)]=_0x2e9dd7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x504402=_0x394f;function _0x394f(_0x1e463b,_0x1a292d){const _0x2f49a2=_0x2f49();return _0x394f=function(_0x394f78,_0x16e504){_0x394f78=_0x394f78-0x1ac;let _0x4b4f83=_0x2f49a2[_0x394f78];return _0x4b4f83;},_0x394f(_0x1e463b,_0x1a292d);}function _0x2f49(){const _0x4e4141=['10FUewaL','20ZYuzJX','ck-ai-chat__feed__interaction-header__capabilities','div','10zClctY','ck-ai-chat__feed__interaction-header','24rvQpfl','402996dJjkUS','content','91xVPMay','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','1131218LiBmmG','children','ck-hidden','3004918yAyLzG','span','add','capabilities','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','setTemplate','push','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','ck-ai-chat__feed__interaction-header__capabilities__text','690328pfScvy','13GpJtXk','28344XCHZqu','extendTemplate','8519895JXJwQj','2bgMyrC','865843EMEEDQ'];_0x2f49=function(){return _0x4e4141;};return _0x2f49();}(function(_0x4eba2c,_0x1dd153){const _0x33ce64=_0x394f,_0x2b29cd=_0x4eba2c();while(!![]){try{const _0x5472e2=-parseInt(_0x33ce64(0x1b3))/0x1*(-parseInt(_0x33ce64(0x1c4))/0x2)+parseInt(_0x33ce64(0x1af))/0x3*(-parseInt(_0x33ce64(0x1c7))/0x4)+-parseInt(_0x33ce64(0x1c6))/0x5*(-parseInt(_0x33ce64(0x1c1))/0x6)+-parseInt(_0x33ce64(0x1b1))/0x7*(-parseInt(_0x33ce64(0x1bf))/0x8)+parseInt(_0x33ce64(0x1c3))/0x9*(-parseInt(_0x33ce64(0x1ac))/0xa)+parseInt(_0x33ce64(0x1c5))/0xb*(parseInt(_0x33ce64(0x1ae))/0xc)+parseInt(_0x33ce64(0x1c0))/0xd*(-parseInt(_0x33ce64(0x1b6))/0xe);if(_0x5472e2===_0x1dd153)break;else _0x2b29cd['push'](_0x2b29cd['shift']());}catch(_0xcbcd3a){_0x2b29cd['push'](_0x2b29cd['shift']());}}}(_0x2f49,0x8f4ab));import{IconBulb as _0x10a06c,IconWeb as _0x1be699}from'@ckeditor/ckeditor5-icons';import{IconView as _0x4877f3,View as _0x5e59f1}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x877df4}from'./aichatfeeditemview.js';import{getTranslation as _0x39f108}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x877df4{[_0x504402(0x1b9)];constructor(_0xe2f8c9,_0x4c39f9){const _0x5e88f3=_0x504402;super(_0x4c39f9);const {isWebSearchEnabled:_0x26ca34,isReasoningEnabled:_0x1aeb33}=_0x4c39f9[_0x5e88f3(0x1b9)],_0xb50959=[];let _0x3140dd='';_0x26ca34&&_0x1aeb33?(_0x3140dd=_0x39f108(_0xe2f8c9,_0x5e88f3(0x1ba)),_0xb50959[_0x5e88f3(0x1bc)](ia(_0x1be699)),_0xb50959[_0x5e88f3(0x1bc)](ia(_0x10a06c))):_0x26ca34?(_0x3140dd=_0x39f108(_0xe2f8c9,_0x5e88f3(0x1b2)),_0xb50959[_0x5e88f3(0x1bc)](ia(_0x1be699))):_0x1aeb33&&(_0x3140dd=_0x39f108(_0xe2f8c9,_0x5e88f3(0x1bd)),_0xb50959[_0x5e88f3(0x1bc)](ia(_0x10a06c))),this[_0x5e88f3(0x1c2)]({'attributes':{'class':[_0x5e88f3(0x1ad),_0x3140dd?'':_0x5e88f3(0x1b5)]}});const _0x552eb7=new _0x5e59f1();_0x552eb7[_0x5e88f3(0x1bb)]({'tag':_0x5e88f3(0x1c9),'attributes':{'class':['ck',_0x5e88f3(0x1c8)]},'children':[..._0xb50959,{'tag':_0x5e88f3(0x1b7),'attributes':{'class':[_0x5e88f3(0x1be)]},'children':[_0x3140dd]}]}),this[_0x5e88f3(0x1b4)][_0x5e88f3(0x1b8)](_0x552eb7),this[_0x5e88f3(0x1b9)]=_0x4c39f9[_0x5e88f3(0x1b9)];}}function ia(_0x1b1636){const _0x33157d=_0x504402,_0x43c495=new _0x4877f3();return _0x43c495[_0x33157d(0x1b0)]=_0x1b1636,_0x43c495;}
|