@ckeditor/ckeditor5-ai 47.0.0-alpha.6 → 47.0.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +4 -0
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +147 -23
- package/dist/index.css +182 -24
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +5 -0
- package/lang/translations/af.po +224 -0
- package/lang/translations/ar.po +232 -0
- package/lang/translations/ast.po +224 -0
- package/lang/translations/az.po +224 -0
- package/lang/translations/be.po +226 -0
- package/lang/translations/bg.po +224 -0
- package/lang/translations/bn.po +224 -0
- package/lang/translations/bs.po +226 -0
- package/lang/translations/ca.po +224 -0
- package/lang/translations/cs.po +226 -0
- package/lang/translations/da.po +224 -0
- package/lang/translations/de-ch.po +224 -0
- package/lang/translations/de.po +224 -0
- package/lang/translations/el.po +224 -0
- package/lang/translations/en-au.po +224 -0
- package/lang/translations/en-gb.po +224 -0
- package/lang/translations/en.po +224 -0
- package/lang/translations/eo.po +224 -0
- package/lang/translations/es-co.po +224 -0
- package/lang/translations/es.po +224 -0
- package/lang/translations/et.po +224 -0
- package/lang/translations/eu.po +224 -0
- package/lang/translations/fa.po +222 -0
- package/lang/translations/fi.po +224 -0
- package/lang/translations/fr.po +224 -0
- package/lang/translations/gl.po +224 -0
- package/lang/translations/gu.po +224 -0
- package/lang/translations/he.po +224 -0
- package/lang/translations/hi.po +224 -0
- package/lang/translations/hr.po +226 -0
- package/lang/translations/hu.po +224 -0
- package/lang/translations/hy.po +224 -0
- package/lang/translations/id.po +222 -0
- package/lang/translations/it.po +224 -0
- package/lang/translations/ja.po +222 -0
- package/lang/translations/jv.po +224 -0
- package/lang/translations/kk.po +224 -0
- package/lang/translations/km.po +222 -0
- package/lang/translations/kn.po +224 -0
- package/lang/translations/ko.po +222 -0
- package/lang/translations/ku.po +224 -0
- package/lang/translations/lt.po +226 -0
- package/lang/translations/lv.po +226 -0
- package/lang/translations/ms.po +222 -0
- package/lang/translations/nb.po +224 -0
- package/lang/translations/ne.po +224 -0
- package/lang/translations/nl.po +224 -0
- package/lang/translations/no.po +224 -0
- package/lang/translations/oc.po +224 -0
- package/lang/translations/pl.po +226 -0
- package/lang/translations/pt-br.po +224 -0
- package/lang/translations/pt.po +224 -0
- package/lang/translations/ro.po +226 -0
- package/lang/translations/ru.po +226 -0
- package/lang/translations/si.po +224 -0
- package/lang/translations/sk.po +226 -0
- package/lang/translations/sl.po +228 -0
- package/lang/translations/sq.po +224 -0
- package/lang/translations/sr-latn.po +226 -0
- package/lang/translations/sr.po +226 -0
- package/lang/translations/sv.po +224 -0
- package/lang/translations/th.po +222 -0
- package/lang/translations/ti.po +224 -0
- package/lang/translations/tk.po +224 -0
- package/lang/translations/tr.po +224 -0
- package/lang/translations/tt.po +222 -0
- package/lang/translations/ug.po +222 -0
- package/lang/translations/uk.po +226 -0
- package/lang/translations/ur.po +224 -0
- package/lang/translations/uz.po +224 -0
- package/lang/translations/vi.po +222 -0
- package/lang/translations/zh-cn.po +222 -0
- package/lang/translations/zh.po +222 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +0 -2
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +3 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +12 -4
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +0 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +7 -3
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +1 -227
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.d.ts +3 -0
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +0 -30
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +4 -0
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +8 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.d.ts +0 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.d.ts +0 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +64 -9
- package/src/aicore/aiconnector.d.ts +13 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.d.ts +0 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.d.ts +41 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +2 -2
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +16 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.d.ts +0 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +1 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +164 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.d.ts +0 -49
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.d.ts +0 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.d.ts +29 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +0 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +1 -2
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +0 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +0 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.d.ts +6 -16
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +17 -4
- package/theme/aichat/aichat.css +1 -0
- package/theme/aichat/aichatfeed.css +39 -0
- package/theme/aichat/aichathistory.css +26 -9
- package/theme/aichat/aiminitoolbar.css +8 -0
- package/theme/aichat/aisuggestioncontainer.css +6 -0
- package/theme/aieditorintegration/aitogglebutton.css +23 -0
- package/theme/aiquickactions/aiquickactions.css +23 -4
- package/theme/aireviewmode/aireviewmode-check-run-result.css +3 -2
- package/theme/aireviewmode/aireviewmode.css +23 -0
- package/theme/aitabs/aitabsview.css +6 -1
- package/theme/common/aibutton.css +1 -5
- package/theme/common/aiheader.css +1 -0
- package/theme/common/aitrackchanges.css +13 -0
- package/src/aiquickactions/utils/common-translations.d.ts +0 -9
- package/src/aiquickactions/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e59b2=_0x5774;(function(_0x4f1df4,_0x4d8481){const _0x43aea9=_0x5774,_0x380fce=_0x4f1df4();while(!![]){try{const _0x30abb7=-parseInt(_0x43aea9(0x18e))/0x1*(-parseInt(_0x43aea9(0x184))/0x2)+-parseInt(_0x43aea9(0x198))/0x3*(-parseInt(_0x43aea9(0x19b))/0x4)+parseInt(_0x43aea9(0x179))/0x5*(-parseInt(_0x43aea9(0x17c))/0x6)+parseInt(_0x43aea9(0x185))/0x7+-parseInt(_0x43aea9(0x19e))/0x8+-parseInt(_0x43aea9(0x16d))/0x9*(-parseInt(_0x43aea9(0x19d))/0xa)+parseInt(_0x43aea9(0x1a1))/0xb*(parseInt(_0x43aea9(0x18a))/0xc);if(_0x30abb7===_0x4d8481)break;else _0x380fce['push'](_0x380fce['shift']());}catch(_0x7202c4){_0x380fce['push'](_0x380fce['shift']());}}}(_0x3659,0x9cd4e));function _0x3659(){const _0x419ddf=['toggleWebSearch','updateResourceState','isDisabled','clearConversationContextItems','92535BjBhJf','isLoading','abortPromptStream','96slipyc','bindTemplate','48920Ptozmo','6774760KALdad','sendUserMessage','setModelList','77AyXwpX','disableModelSelector','_createLoaderView','_promptInputView','_promptCapabilitiesView','ck-hidden','closeSourceResourceBalloon','form','addContextItem','enableModelSelector','toggleReasoning','_shouldRestorePromptInputFocus','setPlaceholderText','reset','ck-ai-chat-controls','9CpUjiL','_loaderView','focus','setConversationContext','selectModel','setContextItemLoading','_createPromptInputView','ck-ai-chat-controls-disabled','set','setTemplate','element','setModel','161690VJftMI','change:isLoading','div','144DWszJH','focusPromptInput','clearCurrentContextItems','setReasoning','_handlePromptInputFocus','low','_contextPanelView','delegate','2Faxldl','696360tFOdRJ','_createContextPanelView','_createPromptCapabilitiesView','clearConversationContextUI','removeContextItem','1134876YVXomf','populateSourceResourceBalloon','setAddContextOptions','setInputPlaceholder','758676VnTrcX','setWebSearch','addContextButtonView','setIsUploadInProgress','resetMessageInput','clearPendingContextUI'];_0x3659=function(){return _0x419ddf;};return _0x3659();}function _0x5774(_0x116ce9,_0x44d68f){const _0x36593a=_0x3659();return _0x5774=function(_0x577448,_0x518105){_0x577448=_0x577448-0x162;let _0x43fc0f=_0x36593a[_0x577448];return _0x43fc0f;},_0x5774(_0x116ce9,_0x44d68f);}import{clickOutsideHandler as _0x467665,View as _0x53380a}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x3f3568}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0xe681e3}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x23f62a,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5fc7a8}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x3ec91c}from'./controls/aichatcontrolsloaderview.js';export class AIChatControlsView extends _0x53380a{[_0x1e59b2(0x182)];[_0x1e59b2(0x1a4)];[_0x1e59b2(0x162)];[_0x1e59b2(0x16e)];[_0x1e59b2(0x169)];constructor(_0x55caff,_0x10954b){const _0x30454b=_0x1e59b2;super(_0x55caff),this[_0x30454b(0x182)]=this[_0x30454b(0x186)](_0x55caff,_0x10954b),this[_0x30454b(0x1a4)]=this[_0x30454b(0x173)](_0x55caff),this[_0x30454b(0x162)]=this[_0x30454b(0x187)](_0x55caff),this[_0x30454b(0x16e)]=this[_0x30454b(0x1a3)](_0x55caff),this[_0x30454b(0x169)]=!0x1,this[_0x30454b(0x1a4)][_0x30454b(0x183)](_0x30454b(0x19f))['to'](this),this[_0x30454b(0x16e)][_0x30454b(0x183)](_0x30454b(0x19a))['to'](this),this[_0x30454b(0x162)][_0x30454b(0x183)](_0x30454b(0x194))['to'](this),this[_0x30454b(0x162)][_0x30454b(0x183)](_0x30454b(0x168))['to'](this),this[_0x30454b(0x162)][_0x30454b(0x183)](_0x30454b(0x171))['to'](this),this[_0x30454b(0x182)][_0x30454b(0x183)](..._0x5fc7a8)['to'](this),this[_0x30454b(0x175)](_0x30454b(0x196),!0x1);const _0x54f6bb=this[_0x30454b(0x19c)];this[_0x30454b(0x176)]({'tag':_0x30454b(0x165),'attributes':{'class':['ck',_0x30454b(0x16c),_0x54f6bb['if'](_0x30454b(0x196),_0x30454b(0x174))]},'children':[{'tag':_0x30454b(0x17b),'attributes':{'class':[_0x54f6bb['if'](_0x30454b(0x199),_0x30454b(0x163))]},'children':[this[_0x30454b(0x182)],this[_0x30454b(0x1a4)],this[_0x30454b(0x162)]]},{'tag':_0x30454b(0x17b),'attributes':{'class':[_0x54f6bb['if'](_0x30454b(0x199),_0x30454b(0x163),_0x29000c=>!_0x29000c)]},'children':[this[_0x30454b(0x16e)]]}]}),_0x467665({'emitter':this[_0x30454b(0x1a4)],'activator':()=>this[_0x30454b(0x199)],'contextElements':()=>[this[_0x30454b(0x177)]],'callback':()=>{const _0xbf0a7f=_0x30454b;this[_0xbf0a7f(0x169)]=!0x1;}}),this['on'](_0x30454b(0x17a),this[_0x30454b(0x180)],{'priority':_0x30454b(0x181)});}[_0x1e59b2(0x186)](_0x1b3b9e,_0x235a52){return new _0x23f62a(_0x1b3b9e,_0x235a52);}[_0x1e59b2(0x173)](_0x2836d9){const _0x28f1eb=_0x1e59b2;return new _0x3f3568(_0x2836d9,this[_0x28f1eb(0x182)][_0x28f1eb(0x190)]);}[_0x1e59b2(0x187)](_0x360164){return new _0xe681e3(_0x360164);}[_0x1e59b2(0x1a3)](_0x4c378d){return new _0x3ec91c(_0x4c378d);}[_0x1e59b2(0x180)](_0x8465e8,_0x1193ea,_0x24b65a){const _0x1c4f53=_0x1e59b2;_0x24b65a?this[_0x1c4f53(0x169)]=!0x0:this[_0x1c4f53(0x169)]&&this[_0x1c4f53(0x1a4)][_0x1c4f53(0x16f)]();}[_0x1e59b2(0x166)](_0x315597,_0x12fbfc){const _0xab4167=_0x1e59b2;this[_0xab4167(0x182)][_0xab4167(0x166)](_0x315597,_0x12fbfc);}[_0x1e59b2(0x189)](_0x11d6b3){const _0x2e6792=_0x1e59b2;this[_0x2e6792(0x182)][_0x2e6792(0x189)](_0x11d6b3);}[_0x1e59b2(0x172)](_0x174612,_0x6f3155){const _0x410c4a=_0x1e59b2;this[_0x410c4a(0x182)][_0x410c4a(0x172)](_0x174612,_0x6f3155);}[_0x1e59b2(0x191)](_0x46d505){const _0x3255f9=_0x1e59b2;this[_0x3255f9(0x1a4)][_0x3255f9(0x191)](_0x46d505);}[_0x1e59b2(0x170)](_0x348b8f){const _0x1852c1=_0x1e59b2;this[_0x1852c1(0x182)][_0x1852c1(0x170)](_0x348b8f);}[_0x1e59b2(0x193)](){const _0x536137=_0x1e59b2;this[_0x536137(0x182)][_0x536137(0x17e)]();}[_0x1e59b2(0x188)](){const _0x3a6dd5=_0x1e59b2;this[_0x3a6dd5(0x182)][_0x3a6dd5(0x197)]();}[_0x1e59b2(0x195)](_0x33d2a3,_0x2367fa,_0xef6b76){const _0x4aaabe=_0x1e59b2;this[_0x4aaabe(0x182)][_0x4aaabe(0x195)](_0x33d2a3,_0x2367fa,_0xef6b76);}[_0x1e59b2(0x18f)](_0x4f1ee3){const _0x44200a=_0x1e59b2;this[_0x44200a(0x162)][_0x44200a(0x18f)](_0x4f1ee3);}[_0x1e59b2(0x17f)](_0x3a4eec){const _0x433e46=_0x1e59b2;this[_0x433e46(0x162)][_0x433e46(0x17f)](_0x3a4eec);}[_0x1e59b2(0x192)](){const _0x41e082=_0x1e59b2;this[_0x41e082(0x1a4)][_0x41e082(0x16b)]();}[_0x1e59b2(0x18c)](_0x322cc2){const _0x5e17d6=_0x1e59b2;this[_0x5e17d6(0x182)][_0x5e17d6(0x18c)](_0x322cc2);}[_0x1e59b2(0x18d)](_0x24546e){const _0x314a00=_0x1e59b2;this[_0x314a00(0x1a4)][_0x314a00(0x16a)](_0x24546e);}[_0x1e59b2(0x1a0)](_0x36a2c3,_0x1dc26c){const _0x18be17=_0x1e59b2;this[_0x18be17(0x162)][_0x18be17(0x1a0)](_0x36a2c3,_0x1dc26c);}[_0x1e59b2(0x178)](_0xc37a19){const _0xa34513=_0x1e59b2;this[_0xa34513(0x162)][_0xa34513(0x178)](_0xc37a19);}[_0x1e59b2(0x167)](){const _0x4fdb4a=_0x1e59b2;this[_0x4fdb4a(0x162)][_0x4fdb4a(0x167)]();}[_0x1e59b2(0x1a2)](_0x4619c8){const _0x2a423e=_0x1e59b2;this[_0x2a423e(0x162)][_0x2a423e(0x1a2)](_0x4619c8);}[_0x1e59b2(0x18b)](_0x1dbd8a,_0x1653e4,_0x10cd7f,_0x16ec94){const _0xbccbbc=_0x1e59b2;this[_0xbccbbc(0x182)][_0xbccbbc(0x18b)](_0x1dbd8a,_0x1653e4,_0x10cd7f,_0x16ec94);}[_0x1e59b2(0x164)](_0x5a3e97){const _0x3a6055=_0x1e59b2;this[_0x3a6055(0x182)][_0x3a6055(0x164)](_0x5a3e97);}[_0x1e59b2(0x17d)](){const _0x38748a=_0x1e59b2;this[_0x38748a(0x1a4)][_0x38748a(0x16f)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x567614=_0x393e;(function(_0x3d366a,_0x34c0e5){const _0x124b96=_0x393e,_0x4ead09=_0x3d366a();while(!![]){try{const _0x31cad9=parseInt(_0x124b96(0xd3))/0x1*(-parseInt(_0x124b96(0xc8))/0x2)+-parseInt(_0x124b96(0xb2))/0x3*(parseInt(_0x124b96(0x9b))/0x4)+-parseInt(_0x124b96(0xdd))/0x5*(-parseInt(_0x124b96(0xb4))/0x6)+parseInt(_0x124b96(0xe1))/0x7+parseInt(_0x124b96(0xab))/0x8+parseInt(_0x124b96(0xba))/0x9*(-parseInt(_0x124b96(0xad))/0xa)+parseInt(_0x124b96(0xa7))/0xb;if(_0x31cad9===_0x34c0e5)break;else _0x4ead09['push'](_0x4ead09['shift']());}catch(_0x3137f5){_0x4ead09['push'](_0x4ead09['shift']());}}}(_0x550f,0x49106));import{CKEditorError as _0x540e7a,logWarning as _0x21c816,scrollViewportToShowTarget as _0x41a4b9}from'ckeditor5/src/utils.js';import{View as _0x449b7a}from'ckeditor5/src/ui.js';function _0x393e(_0x6ececc,_0x113ac7){const _0x550fa9=_0x550f();return _0x393e=function(_0x393e40,_0x38c33e){_0x393e40=_0x393e40-0x96;let _0x290ef7=_0x550fa9[_0x393e40];return _0x290ef7;},_0x393e(_0x6ececc,_0x113ac7);}import{AI_CHAT_UI_EVENT_NAMES as _0x5ba7e2}from'../utils/eventnames.js';function _0x550f(){const _0x44ed4d=['createCollection','ck-ai-chat__loader-text','render','448568litRmq','add','740JpjNOF','updateWebSources','ck-hidden','updateSuggestionItem','_setupTemplate','21bbCtLT','startAutoScroll','154158PNQpEu','set','find','user-message','_createSkeletonLoader','markAsDone','37539qLlWKm','getItemById','locale','ck-ai-chat__feed','bind','markItemAsDone','ai-chat-feed-view-item-not-a-reply-item','loadingMessage','aiFeed','updateSuggestionPartState','stopAutoScroll','ck-ai-chat__loader','clear','_createTemplateChildren','4cyNewG','_createFeedItems','getPartView','destroy','ai-chat-feed-view-item-not-found','addItem','isTrackChangesOn','ai-reply','map','scrollManager','ai-suggestion-reply','189541OuZZkN','includes','isPending','isVisible','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','updateSources','updatePartState','_bodyCollection','delegate','div','50Bxmdfy','remove','_createLoaderChildren','_createFeedLoader','731577gBZFXL','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','removeItem','updateReplyItem','interaction-header','isLoadingSkeletonVisible','setTemplate','options','start','updateContent','element','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','84172iZnbVF','toggleLoadingSkeleton','setLoadingMessage','children','bindTemplate','span','extendTemplate','stop','scrollToSuggestion','ck-ai-chat__feed__items','ai-chat-feed-view-item-not-a-suggestion-item','getItemIds','7884745SmTrzK'];_0x550f=function(){return _0x44ed4d;};return _0x550f();}import{AIChatFeedSuggestionItemView as _0x51ebe3}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x58682c}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x5dac28}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x2d959a}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x5d2cd7}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x3a325d}from'../utils/scrollmanager.js';import{AISkeletonView as _0x3943a0,SKELETON_DEFINITIONS as _0x399e03}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0xc624bc}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x449b7a{[_0x567614(0x9e)];[_0x567614(0xd1)];[_0x567614(0xda)];constructor(_0x440ed6,_0x3be6f5){const _0x4a5faf=_0x567614;super(_0x440ed6),this[_0x4a5faf(0xda)]=_0x3be6f5,this[_0x4a5faf(0xb5)](_0x4a5faf(0xd5),!0x1),this[_0x4a5faf(0xb5)](_0x4a5faf(0xc1),''),this[_0x4a5faf(0xb5)](_0x4a5faf(0xe6),!0x1),this[_0x4a5faf(0xb5)](_0x4a5faf(0xce),!0x1),this[_0x4a5faf(0x9e)]=this[_0x4a5faf(0xa8)](),this[_0x4a5faf(0x9e)][_0x4a5faf(0xdb)](..._0x5ba7e2)['to'](this),this[_0x4a5faf(0xb1)]();}[_0x567614(0xaa)](){const _0xd731e0=_0x567614;super[_0xd731e0(0xaa)](),this[_0xd731e0(0xd1)]=new _0x3a325d(this[_0xd731e0(0x99)]);}[_0x567614(0xcb)](){const _0x26e015=_0x567614;super[_0x26e015(0xcb)](),this[_0x26e015(0xd1)][_0x26e015(0xcb)]();}[_0x567614(0xc6)](){const _0xbc6daf=_0x567614;this[_0xbc6daf(0x9e)][_0xbc6daf(0xc6)]();}[_0x567614(0xcd)](_0x45c1a9,_0x539cb5){const _0x158115=_0x567614;let _0x5616b6;_0x158115(0xcf)===_0x45c1a9?_0x5616b6=new _0x58682c(this[_0x158115(0xbc)],_0x539cb5):_0x158115(0xd2)===_0x45c1a9?(_0x5616b6=new _0x51ebe3(this[_0x158115(0xbc)],_0x539cb5),_0x5616b6[_0x158115(0xbe)](_0x158115(0xce))['to'](this,_0x158115(0xce))):_0x5616b6=_0x158115(0xb7)===_0x45c1a9?new _0x5dac28(this[_0x158115(0xbc)],_0x539cb5,this[_0x158115(0xda)]):_0x158115(0xe5)===_0x45c1a9?new _0x5d2cd7(this[_0x158115(0xbc)],_0x539cb5):new _0x2d959a(_0x539cb5),this[_0x158115(0x9e)][_0x158115(0xac)](_0x5616b6);}async[_0x567614(0xe4)]({id:_0x244b79,parsedContent:_0x23497e,renderingStrategy:_0x46a150,abortSignal:_0x5ac85c}){const _0x4be354=_0x567614,_0x588d57=this[_0x4be354(0xbb)](_0x244b79);if(!(_0x588d57 instanceof _0x58682c))throw new _0x540e7a(_0x4be354(0xc0),null,{'itemView':_0x588d57,'id':_0x244b79,'parsedContent':_0x23497e});await _0x588d57[_0x4be354(0x98)]({'parsedContent':_0x23497e,'renderingStrategy':_0x46a150,'abortSignal':_0x5ac85c});}async[_0x567614(0xae)](_0xb0d859,_0x145e5a){const _0x17f859=_0x567614,_0x521abf=this[_0x17f859(0xbb)](_0xb0d859);if(_0x521abf instanceof _0x51ebe3)_0x521abf[_0x17f859(0xd8)](_0x145e5a);else{if(!(_0x521abf instanceof _0x58682c))throw new _0x540e7a(_0x17f859(0xe2),null,{'itemView':_0x521abf,'id':_0xb0d859,'sources':_0x145e5a});_0x521abf[_0x17f859(0xd8)](_0x145e5a);}}async[_0x567614(0xb0)]({id:_0x4faf34,parts:_0x1198fa,renderingStrategy:_0x2e801d,abortSignal:_0x5a20e7}){const _0x4d0a78=_0x567614,_0x45538b=this[_0x4d0a78(0xbb)](_0x4faf34);if(!(_0x45538b instanceof _0x51ebe3))throw new _0x540e7a(_0x4d0a78(0xa5),null,{'itemView':_0x45538b,'id':_0x4faf34,'parts':_0x1198fa});await _0x45538b[_0x4d0a78(0x98)]({'parts':_0x1198fa,'renderingStrategy':_0x2e801d,'abortSignal':_0x5a20e7});}[_0x567614(0xc3)]({id:_0x3466ea,index:_0x3d4ec3,state:_0x2556a2}){const _0x31b5e1=_0x567614,_0x46e242=this[_0x31b5e1(0xbb)](_0x3466ea);if(!(_0x46e242 instanceof _0x51ebe3))throw new _0x540e7a(_0x31b5e1(0xa5),this,{'id':_0x3466ea});_0x46e242[_0x31b5e1(0xd9)](_0x3d4ec3,_0x2556a2);}[_0x567614(0xbf)](_0x37995c){const _0x300ba9=_0x567614;this[_0x300ba9(0xbb)](_0x37995c)[_0x300ba9(0xb9)]();}[_0x567614(0xa6)](){const _0x5ca138=_0x567614;return this[_0x5ca138(0x9e)][_0x5ca138(0xd0)](_0x453847=>_0x453847[_0x5ca138(0x96)]['id']);}[_0x567614(0xe3)](_0x3326c7){const _0x3c2d6a=_0x567614;this[_0x3c2d6a(0x9e)][_0x3c2d6a(0xde)](this[_0x3c2d6a(0xbb)](_0x3326c7));}[_0x567614(0xa3)](_0x2544fc,_0x51135b){const _0x37a54c=_0x567614,_0x3bf4ab=this[_0x37a54c(0xbb)](_0x2544fc);if(!(_0x3bf4ab instanceof _0x51ebe3))return void _0x21c816(_0x37a54c(0x9a),{'replyId':_0x2544fc,'partIndex':_0x51135b});const _0x4f8a5f=_0x3bf4ab[_0x37a54c(0xca)](_0x51135b);_0x4f8a5f?_0x41a4b9({'target':_0x4f8a5f[_0x37a54c(0x99)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x21c816(_0x37a54c(0xd7),{'replyId':_0x2544fc,'partIndex':_0x51135b});}[_0x567614(0xb1)](){const _0x560a42=_0x567614;this[_0x560a42(0xe7)]({'tag':_0x560a42(0xdc),'attributes':{'class':['ck',_0x560a42(0xbd)]},'children':this[_0x560a42(0xc7)]()});}[_0x567614(0xc7)](){const _0x2dc239=_0x567614,_0xcf5ad8=this[_0x2dc239(0xb8)]();return[this[_0x2dc239(0xc9)](),_0xcf5ad8,this[_0x2dc239(0xe0)]()];}[_0x567614(0xb8)](){const _0x49a1d0=_0x567614,_0x4e0640=new _0x3943a0(this[_0x49a1d0(0xbc)],_0x399e03[_0x49a1d0(0xc2)]);return _0x4e0640[_0x49a1d0(0xa1)]({'attributes':{'class':[this[_0x49a1d0(0x9f)]['if'](_0x49a1d0(0xe6),_0x49a1d0(0xaf),_0x2c8eb0=>!_0x2c8eb0)]}}),_0x4e0640;}[_0x567614(0xc9)](){const _0x248f75=_0x567614,_0x3c7ddb=new _0x449b7a(this[_0x248f75(0xbc)]);return _0x3c7ddb[_0x248f75(0xe7)]({'tag':_0x248f75(0xdc),'attributes':{'class':['ck',_0x248f75(0xa4),this[_0x248f75(0x9f)]['if'](_0x248f75(0xe6),_0x248f75(0xaf))]},'children':this[_0x248f75(0x9e)]}),_0x3c7ddb;}[_0x567614(0xe0)](){const _0x51b316=_0x567614,_0xebed2d=new _0x449b7a(this[_0x51b316(0xbc)]);return _0xebed2d[_0x51b316(0xe7)]({'tag':_0x51b316(0xdc),'attributes':{'class':['ck',_0x51b316(0xc5),this[_0x51b316(0x9f)]['if'](_0x51b316(0xd5),_0x51b316(0xaf),_0x3f9114=>!_0x3f9114)]},'children':this[_0x51b316(0xdf)]()}),_0xebed2d;}[_0x567614(0xdf)](){const _0x3ad57c=_0x567614,_0x2f877b=new _0xc624bc();return _0x2f877b[_0x3ad57c(0xd6)]=!0x0,[_0x2f877b,{'tag':_0x3ad57c(0xa0),'attributes':{'class':['ck',_0x3ad57c(0xa9)]},'children':[{'text':this[_0x3ad57c(0x9f)]['to'](_0x3ad57c(0xc1))}]}];}[_0x567614(0xbb)](_0x31142f){const _0x6956a9=_0x567614,_0x5f3be0=this[_0x6956a9(0x9e)][_0x6956a9(0xb6)](_0x254966=>_0x254966[_0x6956a9(0x96)]['id'][_0x6956a9(0xd4)](_0x31142f));if(!_0x5f3be0)throw new _0x540e7a(_0x6956a9(0xcc),this,{'id':_0x31142f});return _0x5f3be0;}[_0x567614(0x9d)](_0x193eac){const _0x57528a=_0x567614;this[_0x57528a(0xb5)](_0x57528a(0xc1),_0x193eac);}[_0x567614(0x9c)](_0x1fb03d){const _0x489100=_0x567614;this[_0x489100(0xb5)](_0x489100(0xe6),_0x1fb03d);}[_0x567614(0xb3)](){const _0xc62f6a=_0x567614;this[_0xc62f6a(0xd1)][_0xc62f6a(0x97)]();}[_0x567614(0xc4)](){const _0x441abc=_0x567614;this[_0x441abc(0xd1)][_0x441abc(0xa2)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30493d=_0x4927;(function(_0x1fa181,_0x195815){const _0x4dc06a=_0x4927,_0x357037=_0x1fa181();while(!![]){try{const _0x3bee69=-parseInt(_0x4dc06a(0xfb))/0x1*(-parseInt(_0x4dc06a(0xe9))/0x2)+parseInt(_0x4dc06a(0xed))/0x3+parseInt(_0x4dc06a(0xef))/0x4*(-parseInt(_0x4dc06a(0xf6))/0x5)+-parseInt(_0x4dc06a(0xfa))/0x6+parseInt(_0x4dc06a(0xee))/0x7+-parseInt(_0x4dc06a(0xf0))/0x8*(-parseInt(_0x4dc06a(0xe6))/0x9)+-parseInt(_0x4dc06a(0xf1))/0xa*(parseInt(_0x4dc06a(0xf9))/0xb);if(_0x3bee69===_0x195815)break;else _0x357037['push'](_0x357037['shift']());}catch(_0x4c56b6){_0x357037['push'](_0x357037['shift']());}}}(_0x43d6,0x4bada));function _0x4927(_0x93eb1,_0x3a7208){const _0x43d6d9=_0x43d6();return _0x4927=function(_0x4927e9,_0x5c50ec){_0x4927e9=_0x4927e9-0xe3;let _0xd2b25f=_0x43d6d9[_0x4927e9];return _0xd2b25f;},_0x4927(_0x93eb1,_0x3a7208);}import{ButtonView as _0x56c1a8,FormHeaderView as _0x578122}from'ckeditor5/src/ui.js';import{IconPlus as _0x574acf,IconAIChat as _0x320847}from'ckeditor5/src/icons.js';function _0x43d6(){const _0x51c0fc=['207KYMaXf','AI_CHAT_HEADING','resizeButton','246nnmDkq','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_LABEL_NEW_CHAT','locale','1261023EGHaQV','1590078VcFqCT','1940PhhBnv','71624IPqLkH','490250bbXKRA','children','fire','_createStartConversationButton','conversationStartButton','3085sCyGto','startConversation','isMaximized','88BaZOpc','1984980NZmpZf','3893lnoAZJ','ck-ai-chat__start-conversation','set','execute','add'];_0x43d6=function(){return _0x51c0fc;};return _0x43d6();}import{getTranslation as _0x16d96b}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x1a9fc6}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x578122{[_0x30493d(0xf5)];[_0x30493d(0xe8)];constructor(_0x2ee2a5,_0x30d5b5){const _0x3eb96a=_0x30493d;super(_0x2ee2a5,{'label':_0x16d96b(_0x2ee2a5,_0x3eb96a(0xe7)),'class':_0x3eb96a(0xea),'icon':_0x320847}),this[_0x3eb96a(0xe3)](_0x3eb96a(0xf8),!0x1),this[_0x3eb96a(0xf5)]=this[_0x3eb96a(0xf4)](_0x2ee2a5),this[_0x3eb96a(0xf2)][_0x3eb96a(0xe5)](this[_0x3eb96a(0xf5)]),_0x30d5b5&&(this[_0x3eb96a(0xe8)]=_0x1a9fc6(_0x2ee2a5,this),this[_0x3eb96a(0xf2)][_0x3eb96a(0xe5)](this[_0x3eb96a(0xe8)]));}[_0x30493d(0xf4)](_0x5bd06e){const _0x5b4d32=_0x30493d,_0x2846ec=new _0x56c1a8(_0x5bd06e);return _0x2846ec[_0x5b4d32(0xe3)]({'label':_0x16d96b(this[_0x5b4d32(0xec)],_0x5b4d32(0xeb)),'withText':!0x0,'icon':_0x574acf,'class':_0x5b4d32(0xfc)}),_0x2846ec['on'](_0x5b4d32(0xe4),()=>{const _0x344396=_0x5b4d32;this[_0x344396(0xf3)](_0x344396(0xf7));}),_0x2846ec;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x385b(_0x2ecc41,_0x37eafd){var _0x66a4e=_0x66a4();return _0x385b=function(_0x385b07,_0x1596ca){_0x385b07=_0x385b07-0x15c;var _0x2cae5a=_0x66a4e[_0x385b07];return _0x2cae5a;},_0x385b(_0x2ecc41,_0x37eafd);}var _0x38a10a=_0x385b;(function(_0x20b7e0,_0x4e9f77){var _0x29b81e=_0x385b,_0x5123bb=_0x20b7e0();while(!![]){try{var _0x8d13dd=parseInt(_0x29b81e(0x16c))/0x1*(parseInt(_0x29b81e(0x176))/0x2)+parseInt(_0x29b81e(0x15f))/0x3*(parseInt(_0x29b81e(0x167))/0x4)+-parseInt(_0x29b81e(0x175))/0x5*(-parseInt(_0x29b81e(0x169))/0x6)+parseInt(_0x29b81e(0x172))/0x7*(-parseInt(_0x29b81e(0x16d))/0x8)+parseInt(_0x29b81e(0x174))/0x9+parseInt(_0x29b81e(0x162))/0xa+-parseInt(_0x29b81e(0x16a))/0xb;if(_0x8d13dd===_0x4e9f77)break;else _0x5123bb['push'](_0x5123bb['shift']());}catch(_0x2e0693){_0x5123bb['push'](_0x5123bb['shift']());}}}(_0x66a4,0xb28b9));import{View as _0x171429,BodyCollection as _0x218c7f}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1dbcfa}from'../utils/eventnames.js';import{AIChatFeedView as _0x4dfeaf}from'./aichatfeedview.js';import{AIChatControlsView as _0x293fd4}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x359783}from'./aichatheaderview.js';function _0x66a4(){var _0x3ae9a9=['_bodyCollection','ck-reset_all','30zVKKjD','populateSourceResourceBalloon','ck-rounded-corners','6882730ClqrUD','closeSourceResourceBalloon','uiLanguageDirection','detachFromDom','div','447964CmeKhF','setTemplate','12xYIypM','27705689LXBKKT','attachToDom','2uuLfXS','8377456qOvjSu','chatControls','chatFeed','ck-ai-chat','chatHeader','7UQCwkD','delegate','8119179qAEGVg','1380565ZiitqA','1034662MwbCjB','destroy','chatDisclaimer'];_0x66a4=function(){return _0x3ae9a9;};return _0x66a4();}import{AIDisclaimerView as _0x161075}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x171429{[_0x38a10a(0x171)];[_0x38a10a(0x16f)];[_0x38a10a(0x16e)];[_0x38a10a(0x15c)];[_0x38a10a(0x15d)];constructor(_0xea5929,_0x48f242){var _0x3c841a=_0x38a10a;super(_0xea5929),this[_0x3c841a(0x15d)]=new _0x218c7f(_0xea5929),this[_0x3c841a(0x15d)][_0x3c841a(0x16b)](),this[_0x3c841a(0x171)]=new _0x359783(_0xea5929,_0x48f242),this[_0x3c841a(0x171)][_0x3c841a(0x173)](..._0x1dbcfa)['to'](this),this[_0x3c841a(0x16f)]=new _0x4dfeaf(_0xea5929,this[_0x3c841a(0x15d)]),this[_0x3c841a(0x16f)][_0x3c841a(0x173)](..._0x1dbcfa)['to'](this),this[_0x3c841a(0x16e)]=new _0x293fd4(_0xea5929,this[_0x3c841a(0x15d)]),this[_0x3c841a(0x16e)][_0x3c841a(0x173)](..._0x1dbcfa)['to'](this),this[_0x3c841a(0x15c)]=new _0x161075(_0xea5929),this[_0x3c841a(0x168)]({'tag':_0x3c841a(0x166),'attributes':{'class':['ck',_0x3c841a(0x15e),_0x3c841a(0x170),_0x3c841a(0x161)],'dir':_0xea5929[_0x3c841a(0x164)]},'children':[this[_0x3c841a(0x171)],this[_0x3c841a(0x16f)],this[_0x3c841a(0x16e)],this[_0x3c841a(0x15c)]]});}[_0x38a10a(0x160)](_0xfd903e,_0x324768,_0x335b54,_0x189784){var _0x4d270f=_0x38a10a;this[_0x4d270f(0x16e)][_0x4d270f(0x160)](_0xfd903e,_0x324768,_0x335b54,_0x189784);}[_0x38a10a(0x163)](_0x309ff8){var _0x46eca3=_0x38a10a;this[_0x46eca3(0x16e)][_0x46eca3(0x163)](_0x309ff8);}[_0x38a10a(0x177)](){var _0x389095=_0x38a10a;this[_0x389095(0x15d)][_0x389095(0x165)](),super[_0x389095(0x177)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x18e301=_0x3eda;function _0x3eda(_0x5f3c67,_0x4f5029){const _0x454db6=_0x454d();return _0x3eda=function(_0x3eda71,_0x181ceb){_0x3eda71=_0x3eda71-0x138;let _0x6f7766=_0x454db6[_0x3eda71];return _0x6f7766;},_0x3eda(_0x5f3c67,_0x4f5029);}(function(_0x1de6fc,_0x42c6e8){const _0x743d28=_0x3eda,_0x41e073=_0x1de6fc();while(!![]){try{const _0x1d401f=parseInt(_0x743d28(0x170))/0x1+-parseInt(_0x743d28(0x142))/0x2*(parseInt(_0x743d28(0x1ba))/0x3)+parseInt(_0x743d28(0x171))/0x4+-parseInt(_0x743d28(0x1bc))/0x5*(-parseInt(_0x743d28(0x159))/0x6)+-parseInt(_0x743d28(0x1af))/0x7*(-parseInt(_0x743d28(0x15c))/0x8)+-parseInt(_0x743d28(0x1c1))/0x9*(parseInt(_0x743d28(0x191))/0xa)+parseInt(_0x743d28(0x165))/0xb;if(_0x1d401f===_0x42c6e8)break;else _0x41e073['push'](_0x41e073['shift']());}catch(_0x580c4c){_0x41e073['push'](_0x41e073['shift']());}}}(_0x454d,0x6ee24));function _0x454d(){const _0x1d799d=['rowDetectionTolerance','from','label','15297aZrxVK','959544mkawgw','includes','_bodyCollection','block\x20!important','_calculateOverflowInContainer','offsetWidth','clientWidth','_showMoreBalloonPanelView','height','classList','overflowChips','+\x201','none','_testButtonFit','_makeAncestorsVisible','_createShowMoreButtonView','display','showMoreButtonView','_updateBalloonContent','overflowContainer','some','reorganizeChips','getBoundingClientRect','destroy','_findTargetContainer','_createContainerElements','block','extendTemplate','pin','_containerElement','createElement','_updateOverflowUI','24620EroWqX','absolute','className','parentElement','border-box','push','element','bottom','showBalloonPanel','_intersectionObserver','opacity','isIntersecting','visibility','auto','innerWidth','visible\x20!important','execute','_createMockButton','_restoreAncestorVisibility','_createShowMoreBalloonPanelView','clientHeight','_renderChipsAndCountRows','div','cloneNode','children','top','_createShowMoreButton','disconnect','300px','set','1092763yTjEEW','abs','render','_distributeChips','_visibleChips','appendChild','innerHTML','left','length','setContainerElement','remove','104109KlBNxB','_repinBalloonPanel','7880TZqXUc','add','_ancestorsToRestore','getComputedStyle','tagName','3015wWIFtJ','_parentView','content','.ck-ai-chat','undefined','right','slice','cssClasses','position','showMoreLabelPrefix','isConnected','forEach','showMoreBalloon','style','_createCalculationContainer','hideBalloonPanel','_setupVisibilityObserver','toLowerCase','setTemplate','clear','width','innerHeight','34lmcili','hidden','_checkAndHandleOverflow','querySelector','body','boxSizing','filter','-9999px','_applyCalculationStyles','_config','maxVisibleRows','textContent','_calculateContainerWidth','documentElement','_locale','hide','button','_showMoreButtonView','_applyOverflowResults','_isContainerVisible','ck-calculation-container','_updateShowMoreButtonVisibility','disableAnimationOnEnter','438dsLMqv','_targetContainer','_handleShowMoreButtonClick','16IMTiPv','_overflowChips','pop','calculationContainer','showMoreButton','_pendingCalculation','observe','show','zIndex','13050972UJSXGe','isOn','controlsButton','pointerEvents','50px','isVisible','visible','0px'];_0x454d=function(){return _0x1d799d;};return _0x454d();}import{View as _0x39c7dd,BalloonPanelView as _0x518f0a,ButtonView as _0x4dd38d,clickOutsideHandler as _0x40759b}from'ckeditor5/src/ui.js';import{Collection as _0x3562c1}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},un=_0x18e301(0x1ad);export class AIChatChipsOverflowManager{[_0x18e301(0x150)];[_0x18e301(0x14b)];[_0x18e301(0x1b3)];[_0x18e301(0x15d)];[_0x18e301(0x153)]=null;[_0x18e301(0x178)]=null;[_0x18e301(0x18e)]=null;[_0x18e301(0x173)];[_0x18e301(0x1c2)]=null;[_0x18e301(0x19a)]=null;[_0x18e301(0x161)]=!0x1;constructor(_0x450d2e,_0x555ff0,_0x485aaa,_0x26de1a,_0x2f3697){const _0xe57de5=_0x18e301;this[_0xe57de5(0x150)]=_0x450d2e,this[_0xe57de5(0x1b3)]=_0x555ff0,this[_0xe57de5(0x14b)]={...hn,..._0x485aaa,'cssClasses':{'controlsButton':'','calculationContainer':_0xe57de5(0x156),..._0x485aaa[_0xe57de5(0x1c8)]}},this[_0xe57de5(0x15d)]=new _0x3562c1(),this[_0xe57de5(0x173)]=_0x26de1a,this[_0xe57de5(0x1c2)]=_0x2f3697||null;}[_0x18e301(0x1b8)](_0x5e2fb0){const _0x499fb9=_0x18e301;this[_0x499fb9(0x19a)]&&(this[_0x499fb9(0x19a)][_0x499fb9(0x1ac)](),this[_0x499fb9(0x19a)]=null),this[_0x499fb9(0x18e)]=_0x5e2fb0,this[_0x499fb9(0x13c)]();}get[_0x18e301(0x182)](){const _0x52053a=_0x18e301;return this[_0x52053a(0x153)];}get[_0x18e301(0x17b)](){const _0x5c16e3=_0x18e301;return this[_0x5c16e3(0x15d)];}[_0x18e301(0x186)](){requestAnimationFrame(()=>{const _0x57d77a=_0x3eda;this[_0x57d77a(0x144)]();});}[_0x18e301(0x199)](){const _0x10caff=_0x18e301;this[_0x10caff(0x153)]&&this[_0x10caff(0x178)]&&(this[_0x10caff(0x183)](),this[_0x10caff(0x153)][_0x10caff(0x166)]=!0x0,this[_0x10caff(0x178)][_0x10caff(0x163)](),this[_0x10caff(0x178)][_0x10caff(0x18d)]({'target':this[_0x10caff(0x153)][_0x10caff(0x197)],'limiter':document[_0x10caff(0x145)](_0x10caff(0x1c4))}));}[_0x18e301(0x13b)](){const _0x1eb9a5=_0x18e301;this[_0x1eb9a5(0x153)]&&this[_0x1eb9a5(0x178)]&&(this[_0x1eb9a5(0x153)][_0x1eb9a5(0x166)]=!0x1,this[_0x1eb9a5(0x178)][_0x1eb9a5(0x151)]());}[_0x18e301(0x13f)](){const _0x53c2e5=_0x18e301;this[_0x53c2e5(0x15d)][_0x53c2e5(0x13f)](),this[_0x53c2e5(0x13b)](),this[_0x53c2e5(0x157)](),this[_0x53c2e5(0x153)]&&(this[_0x53c2e5(0x153)][_0x53c2e5(0x16f)]=''),this[_0x53c2e5(0x178)]&&this[_0x53c2e5(0x178)][_0x53c2e5(0x1c3)][_0x53c2e5(0x13f)]();}[_0x18e301(0x188)](){const _0x12e410=_0x18e301;this[_0x12e410(0x19a)]&&(this[_0x12e410(0x19a)][_0x12e410(0x1ac)](),this[_0x12e410(0x19a)]=null),this[_0x12e410(0x153)]&&(this[_0x12e410(0x153)][_0x12e410(0x188)](),this[_0x12e410(0x153)]=null),this[_0x12e410(0x178)]&&(this[_0x12e410(0x178)][_0x12e410(0x188)](),this[_0x12e410(0x178)]=null);}[_0x18e301(0x144)](){const _0x27d33f=_0x18e301;if(!this[_0x27d33f(0x18e)])return;if(!this[_0x27d33f(0x155)]())return void(this[_0x27d33f(0x161)]=!0x0);this[_0x27d33f(0x161)]=!0x1;const _0x53ea45=[...this[_0x27d33f(0x1b3)],...this[_0x27d33f(0x15d)]],_0xd613c1=this[_0x27d33f(0x13a)](),_0x2a9d3f=this[_0x27d33f(0x175)](_0xd613c1,_0x53ea45),_0x477263=_0xd613c1[_0x27d33f(0x1be)];_0x477263&&this[_0x27d33f(0x1a3)](_0x477263),_0xd613c1[_0x27d33f(0x1b9)](),this[_0x27d33f(0x154)](_0x53ea45,_0x2a9d3f);}[_0x18e301(0x1ab)](){const _0x2d4904=_0x18e301;this[_0x2d4904(0x153)]=this[_0x2d4904(0x180)](),this[_0x2d4904(0x178)]=this[_0x2d4904(0x1a4)](),this[_0x2d4904(0x153)][_0x2d4904(0x1b1)](),this[_0x2d4904(0x18e)][_0x2d4904(0x1b4)](this[_0x2d4904(0x153)][_0x2d4904(0x197)]),this[_0x2d4904(0x153)]['on'](_0x2d4904(0x1a1),()=>{const _0x2415ad=_0x2d4904;this[_0x2415ad(0x15b)]();}),_0x40759b({'emitter':this[_0x2d4904(0x178)],'contextElements':[this[_0x2d4904(0x178)][_0x2d4904(0x197)],this[_0x2d4904(0x153)][_0x2d4904(0x197)]],'callback':()=>this[_0x2d4904(0x13b)](),'activator':()=>this[_0x2d4904(0x153)][_0x2d4904(0x166)]});}[_0x18e301(0x180)](){const _0x344483=_0x18e301,_0x1a6a0c=new _0x4dd38d(this[_0x344483(0x150)]);_0x1a6a0c[_0x344483(0x1ae)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x5d7788=[this[_0x344483(0x14b)][_0x344483(0x1c8)][_0x344483(0x160)]];return this[_0x344483(0x14b)][_0x344483(0x1c8)][_0x344483(0x167)]&&_0x5d7788[_0x344483(0x196)](this[_0x344483(0x14b)][_0x344483(0x1c8)][_0x344483(0x167)]),_0x1a6a0c[_0x344483(0x18c)]({'attributes':{'class':_0x5d7788}}),_0x1a6a0c;}[_0x18e301(0x1a4)](){const _0xb158ec=_0x18e301,_0x42d317=new _0x518f0a(this[_0xb158ec(0x150)]);return _0x42d317[_0xb158ec(0x18c)]({'attributes':{'class':this[_0xb158ec(0x14b)][_0xb158ec(0x1c8)][_0xb158ec(0x138)]}}),this[_0xb158ec(0x173)][_0xb158ec(0x1bd)](_0x42d317),_0x42d317;}[_0x18e301(0x183)](){const _0x3ea262=_0x18e301;if(this[_0x3ea262(0x178)]&&(this[_0x3ea262(0x178)][_0x3ea262(0x1c3)][_0x3ea262(0x13f)](),this[_0x3ea262(0x15d)][_0x3ea262(0x1b7)]>0x0)){this[_0x3ea262(0x15d)][_0x3ea262(0x1cc)](_0x19435f=>{const _0x1cb297=_0x3ea262;_0x19435f[_0x1cb297(0x158)]();});const _0x31b901=new _0x39c7dd(this[_0x3ea262(0x150)]);_0x31b901[_0x3ea262(0x13e)]({'tag':_0x3ea262(0x1a7),'attributes':{'class':this[_0x3ea262(0x14b)][_0x3ea262(0x1c8)][_0x3ea262(0x184)]},'children':this[_0x3ea262(0x15d)]}),this[_0x3ea262(0x178)][_0x3ea262(0x1c3)][_0x3ea262(0x1bd)](_0x31b901);}}[_0x18e301(0x15b)](){const _0x5f2988=_0x18e301;this[_0x5f2988(0x153)][_0x5f2988(0x166)]?this[_0x5f2988(0x13b)]():this[_0x5f2988(0x199)]();}[_0x18e301(0x157)](){const _0x4cc57f=_0x18e301,_0x1a8b91=this[_0x4cc57f(0x15d)][_0x4cc57f(0x1b7)]>0x0;this[_0x4cc57f(0x153)]?.[_0x4cc57f(0x197)]&&(this[_0x4cc57f(0x153)][_0x4cc57f(0x197)][_0x4cc57f(0x139)][_0x4cc57f(0x181)]=_0x1a8b91?'':_0x4cc57f(0x17d));}[_0x18e301(0x1bb)](){const _0x527a91=_0x18e301;this[_0x527a91(0x153)]?.[_0x527a91(0x166)]&&this[_0x527a91(0x178)]?.[_0x527a91(0x16a)]&&this[_0x527a91(0x153)][_0x527a91(0x197)]&&this[_0x527a91(0x178)][_0x527a91(0x18d)]({'target':this[_0x527a91(0x153)][_0x527a91(0x197)],'limiter':document[_0x527a91(0x145)](_0x527a91(0x1c4))});}[_0x18e301(0x189)](_0x2cc2fd){const _0x1aba6a=_0x18e301,_0x117b59=this[_0x1aba6a(0x18e)]?.[_0x1aba6a(0x1c0)][_0x1aba6a(0x13d)]()||_0x1aba6a(0x1a7),_0x52f5f2=this[_0x1aba6a(0x18e)]?.[_0x1aba6a(0x17a)];if(_0x52f5f2){const _0x320399=_0x52f5f2[0x0]||'',_0x2c118e=_0x2cc2fd[_0x1aba6a(0x145)]('.'+_0x320399),_0x4a0c30=_0x2cc2fd[_0x1aba6a(0x145)](_0x117b59);return _0x2c118e||_0x4a0c30||_0x2cc2fd;}return _0x2cc2fd[_0x1aba6a(0x145)](_0x117b59)||_0x2cc2fd;}[_0x18e301(0x14e)](){const _0x174cd7=_0x18e301,_0xe6fbfa=this[_0x174cd7(0x1c2)]?.[_0x174cd7(0x197)]||this[_0x174cd7(0x18e)];if(!_0xe6fbfa)return un;const _0xe0d600=window[_0x174cd7(0x1bf)](_0xe6fbfa)[_0x174cd7(0x140)];if(_0x174cd7(0x19e)===_0xe0d600||_0x174cd7(0x16c)===_0xe0d600||!_0xe0d600){const _0x55b249=_0xe6fbfa[_0x174cd7(0x194)];if(_0x55b249){const _0xcf975=window[_0x174cd7(0x1bf)](_0x55b249);return _0x174cd7(0x19e)!==_0xcf975[_0x174cd7(0x140)]?_0xcf975[_0x174cd7(0x140)]:un;}return un;}return _0xe0d600;}[_0x18e301(0x14a)](_0x39fc1d,_0xfe250f){const _0x1f029d=_0x18e301;this[_0x1f029d(0x14b)][_0x1f029d(0x1c8)][_0x1f029d(0x15f)]&&_0x39fc1d[_0x1f029d(0x17a)][_0x1f029d(0x1bd)](this[_0x1f029d(0x14b)][_0x1f029d(0x1c8)][_0x1f029d(0x15f)]),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x140)]=_0xfe250f,_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x1c9)]=_0x1f029d(0x192),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x1aa)]=_0x1f029d(0x149),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x1b6)]=_0x1f029d(0x149),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x19b)]='0',_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x168)]=_0x1f029d(0x17d),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x164)]='-1',_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x19d)]=_0x1f029d(0x1a0),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x181)]=_0x1f029d(0x174),_0x39fc1d[_0x1f029d(0x139)][_0x1f029d(0x147)]=_0x1f029d(0x195);}[_0x18e301(0x1a3)](_0x115b0c){const _0x27ed20=_0x18e301;_0x115b0c[_0x27ed20(0x1cc)](({element:_0x338a73,originalDisplay:_0x4a7616,originalVisibility:_0x2d4c40})=>{const _0x4d8e18=_0x27ed20;_0x338a73[_0x4d8e18(0x139)][_0x4d8e18(0x181)]=_0x4a7616,_0x338a73[_0x4d8e18(0x139)][_0x4d8e18(0x19d)]=_0x2d4c40;});}[_0x18e301(0x17f)](_0x5b85d9){const _0x5896b0=_0x18e301,_0x56920d=[];let _0x1d3508=_0x5b85d9;for(;_0x1d3508&&_0x1d3508!==document[_0x5896b0(0x146)];){const _0x41b1ad=window[_0x5896b0(0x1bf)](_0x1d3508);_0x5896b0(0x17d)!==_0x41b1ad[_0x5896b0(0x181)]&&_0x5896b0(0x143)!==_0x41b1ad[_0x5896b0(0x19d)]||(_0x56920d[_0x5896b0(0x196)]({'element':_0x1d3508,'originalDisplay':_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x181)],'originalVisibility':_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x19d)]}),_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x181)]=_0x5896b0(0x18b),_0x1d3508[_0x5896b0(0x139)][_0x5896b0(0x19d)]=_0x5896b0(0x16b)),_0x1d3508=_0x1d3508[_0x5896b0(0x194)];}return _0x56920d;}[_0x18e301(0x18a)](){const _0x24c7f7=_0x18e301;let _0x17de19,_0x19352d;return this[_0x24c7f7(0x1c2)]?.[_0x24c7f7(0x197)]?(_0x17de19=this[_0x24c7f7(0x1c2)][_0x24c7f7(0x197)][_0x24c7f7(0x1a8)](!0x0),_0x19352d=this[_0x24c7f7(0x189)](_0x17de19)):(_0x17de19=document[_0x24c7f7(0x18f)](_0x24c7f7(0x1a7)),_0x19352d=_0x17de19),{'calculationContainer':_0x17de19,'targetContainer':_0x19352d};}[_0x18e301(0x13a)](){const _0x6f0b6d=_0x18e301,{calculationContainer:_0x55082d,targetContainer:_0x7fbce3}=this[_0x6f0b6d(0x18a)](),_0x488777=this[_0x6f0b6d(0x14e)]();this[_0x6f0b6d(0x14a)](_0x55082d,_0x488777);const _0x1e1aeb=this[_0x6f0b6d(0x1c2)]?.[_0x6f0b6d(0x197)]||this[_0x6f0b6d(0x18e)],_0x36d796=_0x1e1aeb?.[_0x6f0b6d(0x194)];_0x36d796?_0x36d796[_0x6f0b6d(0x1b4)](_0x55082d):document[_0x6f0b6d(0x146)][_0x6f0b6d(0x1b4)](_0x55082d),_0x55082d[_0x6f0b6d(0x15a)]=_0x7fbce3;const _0x4841d7=this[_0x6f0b6d(0x17f)](_0x36d796||null);return _0x55082d[_0x6f0b6d(0x176)],_0x55082d[_0x6f0b6d(0x1be)]=_0x4841d7,_0x55082d;}[_0x18e301(0x175)](_0x5eda9e,_0x4bc077){const _0x91bd5a=_0x18e301,_0x88cb2d=_0x5eda9e[_0x91bd5a(0x15a)]||_0x5eda9e,_0x1ee89f=[],{rowCount:_0x2c81c4}=this[_0x91bd5a(0x1a6)](_0x88cb2d,_0x4bc077);if(_0x2c81c4<=this[_0x91bd5a(0x14b)][_0x91bd5a(0x14c)])return _0x1ee89f;const _0x1574e2=_0x4bc077[_0x91bd5a(0x1c7)]();for(;_0x1574e2[_0x91bd5a(0x1b7)]>0x0;){if(this[_0x91bd5a(0x17e)](_0x5eda9e,_0x88cb2d,_0x1574e2)){const _0x453b6f=_0x4bc077[_0x91bd5a(0x148)](_0x52c3c1=>!_0x1574e2[_0x91bd5a(0x172)](_0x52c3c1));_0x1ee89f[_0x91bd5a(0x196)](..._0x453b6f);break;}if(!_0x1574e2[_0x91bd5a(0x15e)]())break;}return _0x1ee89f;}[_0x18e301(0x1a6)](_0x232378,_0x4fb1c8){const _0xa61c63=_0x18e301;_0x232378[_0xa61c63(0x1b5)]='',_0x4fb1c8[_0xa61c63(0x1cc)](_0x5112ad=>{const _0x4b65ef=_0xa61c63;if(_0x5112ad[_0x4b65ef(0x197)]){const _0x174627=_0x5112ad[_0x4b65ef(0x197)][_0x4b65ef(0x1a8)](!0x0);_0x232378[_0x4b65ef(0x1b4)](_0x174627);}}),_0x232378[_0xa61c63(0x176)];const _0x114609=_0x232378[_0xa61c63(0x1a9)],_0x404b3a=[];return Array[_0xa61c63(0x16e)](_0x114609)[_0xa61c63(0x1cc)](_0x4e5b5a=>{const _0x4a9dcb=_0xa61c63,_0x14426d=_0x4e5b5a[_0x4a9dcb(0x187)]()[_0x4a9dcb(0x1aa)];_0x404b3a[_0x4a9dcb(0x185)](_0x329ac5=>Math[_0x4a9dcb(0x1b0)](_0x329ac5-_0x14426d)<this[_0x4a9dcb(0x14b)][_0x4a9dcb(0x16d)])||_0x404b3a[_0x4a9dcb(0x196)](_0x14426d);}),{'rowCount':_0x404b3a[_0xa61c63(0x1b7)]};}[_0x18e301(0x1a2)](){const _0x586bee=_0x18e301,_0x4031b8=document[_0x586bee(0x18f)](_0x586bee(0x152));return _0x4031b8[_0x586bee(0x193)]=this[_0x586bee(0x14b)][_0x586bee(0x1c8)][_0x586bee(0x160)],this[_0x586bee(0x14b)][_0x586bee(0x1c8)][_0x586bee(0x167)]&&_0x4031b8[_0x586bee(0x17a)][_0x586bee(0x1bd)](this[_0x586bee(0x14b)][_0x586bee(0x1c8)][_0x586bee(0x167)]),_0x4031b8[_0x586bee(0x14d)]=_0x586bee(0x17c),_0x4031b8;}[_0x18e301(0x17e)](_0x5574b3,_0x575971,_0x4d8db6){const _0x28f1d7=_0x18e301;this[_0x28f1d7(0x1a6)](_0x575971,_0x4d8db6);const _0x584c41=this[_0x28f1d7(0x1a2)]();_0x5574b3[_0x28f1d7(0x1b4)](_0x584c41),_0x5574b3[_0x28f1d7(0x176)];const _0x11a262=[..._0x575971[_0x28f1d7(0x1a9)],_0x584c41],_0xeff3e1=[];_0x11a262[_0x28f1d7(0x1cc)](_0x2048b1=>{const _0x1473f7=_0x28f1d7,_0x418e40=_0x2048b1[_0x1473f7(0x187)]()[_0x1473f7(0x1aa)];_0xeff3e1[_0x1473f7(0x185)](_0xd2ad0e=>Math[_0x1473f7(0x1b0)](_0xd2ad0e-_0x418e40)<this[_0x1473f7(0x14b)][_0x1473f7(0x16d)])||_0xeff3e1[_0x1473f7(0x196)](_0x418e40);});const _0x46a7e0=_0xeff3e1[_0x28f1d7(0x1b7)];return _0x584c41[_0x28f1d7(0x1b9)](),_0x46a7e0<=this[_0x28f1d7(0x14b)][_0x28f1d7(0x14c)];}[_0x18e301(0x1b2)](_0x128079,_0x4a61ed){const _0x17317b=_0x18e301;this[_0x17317b(0x1b3)][_0x17317b(0x13f)](),this[_0x17317b(0x15d)][_0x17317b(0x13f)](),_0x128079[_0x17317b(0x1cc)](_0x1faf69=>{const _0x8be56d=_0x17317b;_0x4a61ed[_0x8be56d(0x172)](_0x1faf69)?this[_0x8be56d(0x15d)][_0x8be56d(0x1bd)](_0x1faf69):this[_0x8be56d(0x1b3)][_0x8be56d(0x1bd)](_0x1faf69);});}[_0x18e301(0x190)](_0xa90596){const _0x264561=_0x18e301;if(_0xa90596>0x0&&!this[_0x264561(0x153)]&&this[_0x264561(0x1ab)](),_0xa90596>0x0&&this[_0x264561(0x153)]){const _0x2e55bd=''+this[_0x264561(0x14b)][_0x264561(0x1ca)]+(_0xa90596<0x63?_0xa90596:'99');this[_0x264561(0x153)][_0x264561(0x16f)]=_0x2e55bd;}this[_0x264561(0x183)](),this[_0x264561(0x157)](),this[_0x264561(0x1bb)]();}[_0x18e301(0x154)](_0x5052c3,_0x1da049){const _0x37069b=_0x18e301;this[_0x37069b(0x1b2)](_0x5052c3,_0x1da049),this[_0x37069b(0x190)](_0x1da049[_0x37069b(0x1b7)]);}[_0x18e301(0x13c)](){const _0x548ca2=_0x18e301;this[_0x548ca2(0x18e)]&&_0x548ca2(0x1c5)!=typeof IntersectionObserver&&(this[_0x548ca2(0x19a)]=new IntersectionObserver(_0x2e2733=>{const _0x10b0e9=_0x548ca2;_0x2e2733[0x0][_0x10b0e9(0x19c)]&&this[_0x10b0e9(0x161)]&&requestAnimationFrame(()=>{const _0x3c5e93=_0x10b0e9;this[_0x3c5e93(0x144)]();});},{'threshold':0.01,'rootMargin':_0x548ca2(0x169)}),this[_0x548ca2(0x19a)][_0x548ca2(0x162)](this[_0x548ca2(0x18e)]));}[_0x18e301(0x155)](){const _0x51dfa0=_0x18e301;if(!this[_0x51dfa0(0x18e)])return!0x1;if(!this[_0x51dfa0(0x18e)][_0x51dfa0(0x1cb)])return!0x1;const _0x50a369=this[_0x51dfa0(0x18e)][_0x51dfa0(0x187)]();if(0x0===_0x50a369[_0x51dfa0(0x140)]||0x0===_0x50a369[_0x51dfa0(0x179)])return!0x1;const _0x87a510=window[_0x51dfa0(0x141)]||document[_0x51dfa0(0x14f)][_0x51dfa0(0x1a5)],_0x125b01=window[_0x51dfa0(0x19f)]||document[_0x51dfa0(0x14f)][_0x51dfa0(0x177)],_0x471568=0xc8;return _0x50a369[_0x51dfa0(0x198)]>=-0xc8&&_0x50a369[_0x51dfa0(0x1aa)]<=_0x87a510+_0x471568&&_0x50a369[_0x51dfa0(0x1c6)]>=-0xc8&&_0x50a369[_0x51dfa0(0x1b6)]<=_0x125b01+_0x471568;}}
|
|
23
|
+
const _0x1aa33a=_0x20b8;function _0x51ad(){const _0x1ed277=['_createShowMoreBalloonPanelView','right','innerWidth','_distributeChips','hideBalloonPanel','innerHeight','filter','undefined','position','isOn','_config','_makeAncestorsVisible','_updateBalloonContent','_checkAndHandleOverflow','absolute','300px','ck-calculation-container','remove','pin','48917270icOohp','div','body','createElement','children','clientHeight','toLowerCase','_renderChipsAndCountRows','isVisible','display','opacity','width','render','includes','calculationContainer','_visibleChips','_pendingCalculation','querySelector','_applyCalculationStyles','5176736KXgMsx','pop','push','clientWidth','isIntersecting','overflowChips','_createMockButton','add','disableAnimationOnEnter','button','destroy','extendTemplate','66VqgYRX','_createShowMoreButton','getBoundingClientRect','overflowContainer','visibility','from','length','documentElement','2759973QlXgMf','style','setTemplate','content','abs','_testButtonFit','-9999px','border-box','top','_bodyCollection','parentElement','_calculateContainerWidth','showMoreBalloon','8UwNOQR','setContainerElement','none','zIndex','_createShowMoreButtonView','.ck-ai-chat','disconnect','50906ngIYDa','show','_showMoreBalloonPanelView','showMoreButtonView','isConnected','showMoreButton','showMoreLabelPrefix','5tkBlCf','0px','rowDetectionTolerance','_ancestorsToRestore','innerHTML','block','_applyOverflowResults','_restoreAncestorVisibility','offsetWidth','maxVisibleRows','_createCalculationContainer','appendChild','_repinBalloonPanel','reorganizeChips','_locale','7891245hKIPrh','_findTargetContainer','visible','className','_targetContainer','_handleShowMoreButtonClick','pointerEvents','_showMoreButtonView','hidden','50px','slice','clear','height','11ikiOBX','_createContainerElements','left','textContent','_isContainerVisible','boxSizing','_parentView','forEach','2242632lDFlcv','+\x201','hide','block\x20!important','cssClasses','4187750eJDXzA','element','some','auto','_containerElement','_updateOverflowUI','bottom','observe','tagName','visible\x20!important','cloneNode','controlsButton','classList','showBalloonPanel','label','_calculateOverflowInContainer','_updateShowMoreButtonVisibility','execute','getComputedStyle','_setupVisibilityObserver','_intersectionObserver','_overflowChips','set'];_0x51ad=function(){return _0x1ed277;};return _0x51ad();}(function(_0x1e57c2,_0x4a7eb0){const _0x466b85=_0x20b8,_0x481cb0=_0x1e57c2();while(!![]){try{const _0xe06e19=parseInt(_0x466b85(0x1c6))/0x1*(-parseInt(_0x466b85(0x1e2))/0x2)+-parseInt(_0x466b85(0x1ce))/0x3+parseInt(_0x466b85(0x1ba))/0x4*(-parseInt(_0x466b85(0x154))/0x5)+-parseInt(_0x466b85(0x178))/0x6+-parseInt(_0x466b85(0x17d))/0x7+-parseInt(_0x466b85(0x1db))/0x8*(-parseInt(_0x466b85(0x163))/0x9)+parseInt(_0x466b85(0x1a7))/0xa*(parseInt(_0x466b85(0x170))/0xb);if(_0xe06e19===_0x4a7eb0)break;else _0x481cb0['push'](_0x481cb0['shift']());}catch(_0x5dc3a7){_0x481cb0['push'](_0x481cb0['shift']());}}}(_0x51ad,0xdc525));import{View as _0x1a43a9,BalloonPanelView as _0x5d2c75,ButtonView as _0x551de0,clickOutsideHandler as _0x18bb58}from'ckeditor5/src/ui.js';import{Collection as _0x1d4733}from'ckeditor5/src/utils.js';function _0x20b8(_0x2b7aef,_0x2a1a45){const _0x51ad2e=_0x51ad();return _0x20b8=function(_0x20b859,_0xd337b){_0x20b859=_0x20b859-0x14f;let _0x3693df=_0x51ad2e[_0x20b859];return _0x3693df;},_0x20b8(_0x2b7aef,_0x2a1a45);}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},wn=_0x1aa33a(0x1a3);export class AIChatChipsOverflowManager{[_0x1aa33a(0x162)];[_0x1aa33a(0x19e)];[_0x1aa33a(0x1b6)];[_0x1aa33a(0x192)];[_0x1aa33a(0x16a)]=null;[_0x1aa33a(0x14f)]=null;[_0x1aa33a(0x181)]=null;[_0x1aa33a(0x1d7)];[_0x1aa33a(0x176)]=null;[_0x1aa33a(0x191)]=null;[_0x1aa33a(0x1b7)]=!0x1;constructor(_0xec398c,_0x5ab587,_0x46f6d3,_0x41e98a,_0x99993b){const _0xee61d5=_0x1aa33a;this[_0xee61d5(0x162)]=_0xec398c,this[_0xee61d5(0x1b6)]=_0x5ab587,this[_0xee61d5(0x19e)]={...hn,..._0x46f6d3,'cssClasses':{'controlsButton':'','calculationContainer':_0xee61d5(0x1a4),..._0x46f6d3[_0xee61d5(0x17c)]}},this[_0xee61d5(0x192)]=new _0x1d4733(),this[_0xee61d5(0x1d7)]=_0x41e98a,this[_0xee61d5(0x176)]=_0x99993b||null;}[_0x1aa33a(0x1dc)](_0x4452db){const _0x3fa08e=_0x1aa33a;this[_0x3fa08e(0x191)]&&(this[_0x3fa08e(0x191)][_0x3fa08e(0x1e1)](),this[_0x3fa08e(0x191)]=null),this[_0x3fa08e(0x181)]=_0x4452db,this[_0x3fa08e(0x190)]();}get[_0x1aa33a(0x150)](){const _0xcbacd=_0x1aa33a;return this[_0xcbacd(0x16a)];}get[_0x1aa33a(0x1bf)](){const _0x3ee463=_0x1aa33a;return this[_0x3ee463(0x192)];}[_0x1aa33a(0x161)](){requestAnimationFrame(()=>{const _0x5d4bf5=_0x20b8;this[_0x5d4bf5(0x1a1)]();});}[_0x1aa33a(0x18a)](){const _0x20dd23=_0x1aa33a;this[_0x20dd23(0x16a)]&&this[_0x20dd23(0x14f)]&&(this[_0x20dd23(0x1a0)](),this[_0x20dd23(0x16a)][_0x20dd23(0x19d)]=!0x0,this[_0x20dd23(0x14f)][_0x20dd23(0x1e3)](),this[_0x20dd23(0x14f)][_0x20dd23(0x1a6)]({'target':this[_0x20dd23(0x16a)][_0x20dd23(0x17e)],'limiter':document[_0x20dd23(0x1b8)](_0x20dd23(0x1e0))}));}[_0x1aa33a(0x198)](){const _0x19bab6=_0x1aa33a;this[_0x19bab6(0x16a)]&&this[_0x19bab6(0x14f)]&&(this[_0x19bab6(0x16a)][_0x19bab6(0x19d)]=!0x1,this[_0x19bab6(0x14f)][_0x19bab6(0x17a)]());}[_0x1aa33a(0x16e)](){const _0x228558=_0x1aa33a;this[_0x228558(0x192)][_0x228558(0x16e)](),this[_0x228558(0x198)](),this[_0x228558(0x18d)](),this[_0x228558(0x16a)]&&(this[_0x228558(0x16a)][_0x228558(0x18b)]=''),this[_0x228558(0x14f)]&&this[_0x228558(0x14f)][_0x228558(0x1d1)][_0x228558(0x16e)]();}[_0x1aa33a(0x1c4)](){const _0x55f04b=_0x1aa33a;this[_0x55f04b(0x191)]&&(this[_0x55f04b(0x191)][_0x55f04b(0x1e1)](),this[_0x55f04b(0x191)]=null),this[_0x55f04b(0x16a)]&&(this[_0x55f04b(0x16a)][_0x55f04b(0x1c4)](),this[_0x55f04b(0x16a)]=null),this[_0x55f04b(0x14f)]&&(this[_0x55f04b(0x14f)][_0x55f04b(0x1c4)](),this[_0x55f04b(0x14f)]=null);}[_0x1aa33a(0x1a1)](){const _0x6b9398=_0x1aa33a;if(!this[_0x6b9398(0x181)])return;if(!this[_0x6b9398(0x174)]())return void(this[_0x6b9398(0x1b7)]=!0x0);this[_0x6b9398(0x1b7)]=!0x1;const _0x194dfd=[...this[_0x6b9398(0x1b6)],...this[_0x6b9398(0x192)]],_0x3b50dc=this[_0x6b9398(0x15e)](),_0x2a5b8f=this[_0x6b9398(0x18c)](_0x3b50dc,_0x194dfd),_0x33b067=_0x3b50dc[_0x6b9398(0x157)];_0x33b067&&this[_0x6b9398(0x15b)](_0x33b067),_0x3b50dc[_0x6b9398(0x1a5)](),this[_0x6b9398(0x15a)](_0x194dfd,_0x2a5b8f);}[_0x1aa33a(0x1c7)](){const _0x40bbd0=_0x1aa33a;this[_0x40bbd0(0x16a)]=this[_0x40bbd0(0x1df)](),this[_0x40bbd0(0x14f)]=this[_0x40bbd0(0x194)](),this[_0x40bbd0(0x16a)][_0x40bbd0(0x1b3)](),this[_0x40bbd0(0x181)][_0x40bbd0(0x15f)](this[_0x40bbd0(0x16a)][_0x40bbd0(0x17e)]),this[_0x40bbd0(0x16a)]['on'](_0x40bbd0(0x18e),()=>{const _0x14e65e=_0x40bbd0;this[_0x14e65e(0x168)]();}),_0x18bb58({'emitter':this[_0x40bbd0(0x14f)],'contextElements':[this[_0x40bbd0(0x14f)][_0x40bbd0(0x17e)],this[_0x40bbd0(0x16a)][_0x40bbd0(0x17e)]],'callback':()=>this[_0x40bbd0(0x198)](),'activator':()=>this[_0x40bbd0(0x16a)][_0x40bbd0(0x19d)]});}[_0x1aa33a(0x1df)](){const _0x4a4c5a=_0x1aa33a,_0x1c1071=new _0x551de0(this[_0x4a4c5a(0x162)]);_0x1c1071[_0x4a4c5a(0x193)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x36d051=[this[_0x4a4c5a(0x19e)][_0x4a4c5a(0x17c)][_0x4a4c5a(0x152)]];return this[_0x4a4c5a(0x19e)][_0x4a4c5a(0x17c)][_0x4a4c5a(0x188)]&&_0x36d051[_0x4a4c5a(0x1bc)](this[_0x4a4c5a(0x19e)][_0x4a4c5a(0x17c)][_0x4a4c5a(0x188)]),_0x1c1071[_0x4a4c5a(0x1c5)]({'attributes':{'class':_0x36d051}}),_0x1c1071;}[_0x1aa33a(0x194)](){const _0x1546e5=_0x1aa33a,_0x567ad5=new _0x5d2c75(this[_0x1546e5(0x162)]);return _0x567ad5[_0x1546e5(0x1c5)]({'attributes':{'class':this[_0x1546e5(0x19e)][_0x1546e5(0x17c)][_0x1546e5(0x1da)]}}),this[_0x1546e5(0x1d7)][_0x1546e5(0x1c1)](_0x567ad5),_0x567ad5;}[_0x1aa33a(0x1a0)](){const _0xd12a3=_0x1aa33a;if(this[_0xd12a3(0x14f)]&&(this[_0xd12a3(0x14f)][_0xd12a3(0x1d1)][_0xd12a3(0x16e)](),this[_0xd12a3(0x192)][_0xd12a3(0x1cc)]>0x0)){this[_0xd12a3(0x192)][_0xd12a3(0x177)](_0x544371=>{const _0x4275d9=_0xd12a3;_0x544371[_0x4275d9(0x1c2)]();});const _0x31515a=new _0x1a43a9(this[_0xd12a3(0x162)]);_0x31515a[_0xd12a3(0x1d0)]({'tag':_0xd12a3(0x1a8),'attributes':{'class':this[_0xd12a3(0x19e)][_0xd12a3(0x17c)][_0xd12a3(0x1c9)]},'children':this[_0xd12a3(0x192)]}),this[_0xd12a3(0x14f)][_0xd12a3(0x1d1)][_0xd12a3(0x1c1)](_0x31515a);}}[_0x1aa33a(0x168)](){const _0x181748=_0x1aa33a;this[_0x181748(0x16a)][_0x181748(0x19d)]?this[_0x181748(0x198)]():this[_0x181748(0x18a)]();}[_0x1aa33a(0x18d)](){const _0x444e42=_0x1aa33a,_0x9d2beb=this[_0x444e42(0x192)][_0x444e42(0x1cc)]>0x0;this[_0x444e42(0x16a)]?.[_0x444e42(0x17e)]&&(this[_0x444e42(0x16a)][_0x444e42(0x17e)][_0x444e42(0x1cf)][_0x444e42(0x1b0)]=_0x9d2beb?'':_0x444e42(0x1dd));}[_0x1aa33a(0x160)](){const _0x4aae51=_0x1aa33a;this[_0x4aae51(0x16a)]?.[_0x4aae51(0x19d)]&&this[_0x4aae51(0x14f)]?.[_0x4aae51(0x1af)]&&this[_0x4aae51(0x16a)][_0x4aae51(0x17e)]&&this[_0x4aae51(0x14f)][_0x4aae51(0x1a6)]({'target':this[_0x4aae51(0x16a)][_0x4aae51(0x17e)],'limiter':document[_0x4aae51(0x1b8)](_0x4aae51(0x1e0))});}[_0x1aa33a(0x164)](_0x41d0b2){const _0x563d67=_0x1aa33a,_0xac41ed=this[_0x563d67(0x181)]?.[_0x563d67(0x185)][_0x563d67(0x1ad)]()||_0x563d67(0x1a8),_0x2867b3=this[_0x563d67(0x181)]?.[_0x563d67(0x189)];if(_0x2867b3){const _0x2ae90d=_0x2867b3[0x0]||'',_0x3dce15=_0x41d0b2[_0x563d67(0x1b8)]('.'+_0x2ae90d),_0x17d6b9=_0x41d0b2[_0x563d67(0x1b8)](_0xac41ed);return _0x3dce15||_0x17d6b9||_0x41d0b2;}return _0x41d0b2[_0x563d67(0x1b8)](_0xac41ed)||_0x41d0b2;}[_0x1aa33a(0x1d9)](){const _0x2d520d=_0x1aa33a,_0x1beba0=this[_0x2d520d(0x176)]?.[_0x2d520d(0x17e)]||this[_0x2d520d(0x181)];if(!_0x1beba0)return wn;const _0x3271b1=window[_0x2d520d(0x18f)](_0x1beba0)[_0x2d520d(0x1b2)];if(_0x2d520d(0x180)===_0x3271b1||_0x2d520d(0x155)===_0x3271b1||!_0x3271b1){const _0x11c856=_0x1beba0[_0x2d520d(0x1d8)];if(_0x11c856){const _0x47f440=window[_0x2d520d(0x18f)](_0x11c856);return _0x2d520d(0x180)!==_0x47f440[_0x2d520d(0x1b2)]?_0x47f440[_0x2d520d(0x1b2)]:wn;}return wn;}return _0x3271b1;}[_0x1aa33a(0x1b9)](_0x203de5,_0x955aed){const _0xe526c6=_0x1aa33a;this[_0xe526c6(0x19e)][_0xe526c6(0x17c)][_0xe526c6(0x1b5)]&&_0x203de5[_0xe526c6(0x189)][_0xe526c6(0x1c1)](this[_0xe526c6(0x19e)][_0xe526c6(0x17c)][_0xe526c6(0x1b5)]),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1b2)]=_0x955aed,_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x19c)]=_0xe526c6(0x1a2),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1d6)]=_0xe526c6(0x1d4),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x172)]=_0xe526c6(0x1d4),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1b1)]='0',_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x169)]=_0xe526c6(0x1dd),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1de)]='-1',_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1ca)]=_0xe526c6(0x186),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x1b0)]=_0xe526c6(0x17b),_0x203de5[_0xe526c6(0x1cf)][_0xe526c6(0x175)]=_0xe526c6(0x1d5);}[_0x1aa33a(0x15b)](_0x387c02){const _0x21c0db=_0x1aa33a;_0x387c02[_0x21c0db(0x177)](({element:_0x140af8,originalDisplay:_0x1dcc2b,originalVisibility:_0x1bca9f})=>{const _0x9e6ca2=_0x21c0db;_0x140af8[_0x9e6ca2(0x1cf)][_0x9e6ca2(0x1b0)]=_0x1dcc2b,_0x140af8[_0x9e6ca2(0x1cf)][_0x9e6ca2(0x1ca)]=_0x1bca9f;});}[_0x1aa33a(0x19f)](_0x6789ad){const _0x2d2429=_0x1aa33a,_0xb653d0=[];let _0x464db5=_0x6789ad;for(;_0x464db5&&_0x464db5!==document[_0x2d2429(0x1a9)];){const _0x20d4ba=window[_0x2d2429(0x18f)](_0x464db5);_0x2d2429(0x1dd)!==_0x20d4ba[_0x2d2429(0x1b0)]&&_0x2d2429(0x16b)!==_0x20d4ba[_0x2d2429(0x1ca)]||(_0xb653d0[_0x2d2429(0x1bc)]({'element':_0x464db5,'originalDisplay':_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1b0)],'originalVisibility':_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1ca)]}),_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1b0)]=_0x2d2429(0x159),_0x464db5[_0x2d2429(0x1cf)][_0x2d2429(0x1ca)]=_0x2d2429(0x165)),_0x464db5=_0x464db5[_0x2d2429(0x1d8)];}return _0xb653d0;}[_0x1aa33a(0x171)](){const _0x519c86=_0x1aa33a;let _0x21eea8,_0x262e2b;return this[_0x519c86(0x176)]?.[_0x519c86(0x17e)]?(_0x21eea8=this[_0x519c86(0x176)][_0x519c86(0x17e)][_0x519c86(0x187)](!0x0),_0x262e2b=this[_0x519c86(0x164)](_0x21eea8)):(_0x21eea8=document[_0x519c86(0x1aa)](_0x519c86(0x1a8)),_0x262e2b=_0x21eea8),{'calculationContainer':_0x21eea8,'targetContainer':_0x262e2b};}[_0x1aa33a(0x15e)](){const _0x3c1d7d=_0x1aa33a,{calculationContainer:_0x7d812b,targetContainer:_0x5e5776}=this[_0x3c1d7d(0x171)](),_0x453570=this[_0x3c1d7d(0x1d9)]();this[_0x3c1d7d(0x1b9)](_0x7d812b,_0x453570);const _0x9d84a9=this[_0x3c1d7d(0x176)]?.[_0x3c1d7d(0x17e)]||this[_0x3c1d7d(0x181)],_0x1f1b91=_0x9d84a9?.[_0x3c1d7d(0x1d8)];_0x1f1b91?_0x1f1b91[_0x3c1d7d(0x15f)](_0x7d812b):document[_0x3c1d7d(0x1a9)][_0x3c1d7d(0x15f)](_0x7d812b),_0x7d812b[_0x3c1d7d(0x167)]=_0x5e5776;const _0x496cea=this[_0x3c1d7d(0x19f)](_0x1f1b91||null);return _0x7d812b[_0x3c1d7d(0x15c)],_0x7d812b[_0x3c1d7d(0x157)]=_0x496cea,_0x7d812b;}[_0x1aa33a(0x18c)](_0x471e9f,_0x5bd5ed){const _0x137df3=_0x1aa33a,_0xb3578f=_0x471e9f[_0x137df3(0x167)]||_0x471e9f,_0x40853d=[],{rowCount:_0x47fa0b}=this[_0x137df3(0x1ae)](_0xb3578f,_0x5bd5ed);if(_0x47fa0b<=this[_0x137df3(0x19e)][_0x137df3(0x15d)])return _0x40853d;const _0x532dd6=_0x5bd5ed[_0x137df3(0x16d)]();for(;_0x532dd6[_0x137df3(0x1cc)]>0x0;){if(this[_0x137df3(0x1d3)](_0x471e9f,_0xb3578f,_0x532dd6)){const _0x321b54=_0x5bd5ed[_0x137df3(0x19a)](_0x14f644=>!_0x532dd6[_0x137df3(0x1b4)](_0x14f644));_0x40853d[_0x137df3(0x1bc)](..._0x321b54);break;}if(!_0x532dd6[_0x137df3(0x1bb)]())break;}return _0x40853d;}[_0x1aa33a(0x1ae)](_0x893b5e,_0xbeaa82){const _0x293b20=_0x1aa33a;_0x893b5e[_0x293b20(0x158)]='',_0xbeaa82[_0x293b20(0x177)](_0x5c88cb=>{const _0x1e550f=_0x293b20;if(_0x5c88cb[_0x1e550f(0x17e)]){const _0xd472fd=_0x5c88cb[_0x1e550f(0x17e)][_0x1e550f(0x187)](!0x0);_0x893b5e[_0x1e550f(0x15f)](_0xd472fd);}}),_0x893b5e[_0x293b20(0x15c)];const _0x4c81fa=_0x893b5e[_0x293b20(0x1ab)],_0x5436cc=[];return Array[_0x293b20(0x1cb)](_0x4c81fa)[_0x293b20(0x177)](_0x462f93=>{const _0x293cba=_0x293b20,_0x254e7e=_0x462f93[_0x293cba(0x1c8)]()[_0x293cba(0x1d6)];_0x5436cc[_0x293cba(0x17f)](_0x10dcdf=>Math[_0x293cba(0x1d2)](_0x10dcdf-_0x254e7e)<this[_0x293cba(0x19e)][_0x293cba(0x156)])||_0x5436cc[_0x293cba(0x1bc)](_0x254e7e);}),{'rowCount':_0x5436cc[_0x293b20(0x1cc)]};}[_0x1aa33a(0x1c0)](){const _0x406a57=_0x1aa33a,_0x9e6d8=document[_0x406a57(0x1aa)](_0x406a57(0x1c3));return _0x9e6d8[_0x406a57(0x166)]=this[_0x406a57(0x19e)][_0x406a57(0x17c)][_0x406a57(0x152)],this[_0x406a57(0x19e)][_0x406a57(0x17c)][_0x406a57(0x188)]&&_0x9e6d8[_0x406a57(0x189)][_0x406a57(0x1c1)](this[_0x406a57(0x19e)][_0x406a57(0x17c)][_0x406a57(0x188)]),_0x9e6d8[_0x406a57(0x173)]=_0x406a57(0x179),_0x9e6d8;}[_0x1aa33a(0x1d3)](_0x2bb704,_0x3aea36,_0x521614){const _0x21e70a=_0x1aa33a;this[_0x21e70a(0x1ae)](_0x3aea36,_0x521614);const _0x10d420=this[_0x21e70a(0x1c0)]();_0x2bb704[_0x21e70a(0x15f)](_0x10d420),_0x2bb704[_0x21e70a(0x15c)];const _0x49be08=[..._0x3aea36[_0x21e70a(0x1ab)],_0x10d420],_0x5f4313=[];_0x49be08[_0x21e70a(0x177)](_0x41be2f=>{const _0x32e9d3=_0x21e70a,_0x57a48f=_0x41be2f[_0x32e9d3(0x1c8)]()[_0x32e9d3(0x1d6)];_0x5f4313[_0x32e9d3(0x17f)](_0x5b93af=>Math[_0x32e9d3(0x1d2)](_0x5b93af-_0x57a48f)<this[_0x32e9d3(0x19e)][_0x32e9d3(0x156)])||_0x5f4313[_0x32e9d3(0x1bc)](_0x57a48f);});const _0x3fd037=_0x5f4313[_0x21e70a(0x1cc)];return _0x10d420[_0x21e70a(0x1a5)](),_0x3fd037<=this[_0x21e70a(0x19e)][_0x21e70a(0x15d)];}[_0x1aa33a(0x197)](_0x55092b,_0x3ef29d){const _0x3883d3=_0x1aa33a;this[_0x3883d3(0x1b6)][_0x3883d3(0x16e)](),this[_0x3883d3(0x192)][_0x3883d3(0x16e)](),_0x55092b[_0x3883d3(0x177)](_0x4445d2=>{const _0x710701=_0x3883d3;_0x3ef29d[_0x710701(0x1b4)](_0x4445d2)?this[_0x710701(0x192)][_0x710701(0x1c1)](_0x4445d2):this[_0x710701(0x1b6)][_0x710701(0x1c1)](_0x4445d2);});}[_0x1aa33a(0x182)](_0x2bc427){const _0xd9ce7c=_0x1aa33a;if(_0x2bc427>0x0&&!this[_0xd9ce7c(0x16a)]&&this[_0xd9ce7c(0x1c7)](),_0x2bc427>0x0&&this[_0xd9ce7c(0x16a)]){const _0x1d41e6=''+this[_0xd9ce7c(0x19e)][_0xd9ce7c(0x153)]+(_0x2bc427<0x63?_0x2bc427:'99');this[_0xd9ce7c(0x16a)][_0xd9ce7c(0x18b)]=_0x1d41e6;}this[_0xd9ce7c(0x1a0)](),this[_0xd9ce7c(0x18d)](),this[_0xd9ce7c(0x160)]();}[_0x1aa33a(0x15a)](_0x5e5b2e,_0x47093f){const _0x5f3882=_0x1aa33a;this[_0x5f3882(0x197)](_0x5e5b2e,_0x47093f),this[_0x5f3882(0x182)](_0x47093f[_0x5f3882(0x1cc)]);}[_0x1aa33a(0x190)](){const _0x335ce6=_0x1aa33a;this[_0x335ce6(0x181)]&&_0x335ce6(0x19b)!=typeof IntersectionObserver&&(this[_0x335ce6(0x191)]=new IntersectionObserver(_0x4f6aea=>{const _0xba789=_0x335ce6;_0x4f6aea[0x0][_0xba789(0x1be)]&&this[_0xba789(0x1b7)]&&requestAnimationFrame(()=>{const _0x4aa609=_0xba789;this[_0x4aa609(0x1a1)]();});},{'threshold':0.01,'rootMargin':_0x335ce6(0x16c)}),this[_0x335ce6(0x191)][_0x335ce6(0x184)](this[_0x335ce6(0x181)]));}[_0x1aa33a(0x174)](){const _0x106366=_0x1aa33a;if(!this[_0x106366(0x181)])return!0x1;if(!this[_0x106366(0x181)][_0x106366(0x151)])return!0x1;const _0x4b5327=this[_0x106366(0x181)][_0x106366(0x1c8)]();if(0x0===_0x4b5327[_0x106366(0x1b2)]||0x0===_0x4b5327[_0x106366(0x16f)])return!0x1;const _0x4d9ab0=window[_0x106366(0x199)]||document[_0x106366(0x1cd)][_0x106366(0x1ac)],_0x9e6de9=window[_0x106366(0x196)]||document[_0x106366(0x1cd)][_0x106366(0x1bd)],_0x1bba51=0xc8;return _0x4b5327[_0x106366(0x183)]>=-0xc8&&_0x4b5327[_0x106366(0x1d6)]<=_0x4d9ab0+_0x1bba51&&_0x4b5327[_0x106366(0x195)]>=-0xc8&&_0x4b5327[_0x106366(0x172)]<=_0x9e6de9+_0x1bba51;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e5cfd=_0x477a;(function(_0xf1a4d9,_0x23039c){const _0x419e0a=_0x477a,_0x1ecadd=_0xf1a4d9();while(!![]){try{const _0x35cc28=parseInt(_0x419e0a(0x174))/0x1+-parseInt(_0x419e0a(0x14d))/0x2*(parseInt(_0x419e0a(0x16a))/0x3)+parseInt(_0x419e0a(0x140))/0x4+-parseInt(_0x419e0a(0x157))/0x5+parseInt(_0x419e0a(0x171))/0x6*(-parseInt(_0x419e0a(0x154))/0x7)+-parseInt(_0x419e0a(0x158))/0x8+parseInt(_0x419e0a(0x173))/0x9;if(_0x35cc28===_0x23039c)break;else _0x1ecadd['push'](_0x1ecadd['shift']());}catch(_0xc67716){_0x1ecadd['push'](_0x1ecadd['shift']());}}}(_0x55c7,0xd85f2));function _0x477a(_0x419ae8,_0x6c08ef){const _0x55c7b6=_0x55c7();return _0x477a=function(_0x477a0e,_0x2b4852){_0x477a0e=_0x477a0e-0x13a;let _0x978bed=_0x55c7b6[_0x477a0e];return _0x978bed;},_0x477a(_0x419ae8,_0x6c08ef);}import{ButtonView as _0x3217b9,IconView as _0x287cf8}from'ckeditor5/src/ui.js';import{IconClose as _0x155ccf,IconDocument as _0x323bd2,IconFileUpload as _0x4aede2,IconLink as _0xe9c2e0,IconSelection as _0x5ae350}from'@ckeditor/ckeditor5-icons';function _0x55c7(){const _0x272493=['ck-ai-chat-context-chip__type-icon','animationend','itemType','ck-ai-chat-context-chip_document','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','selection','isLoading','removeContextItemChip','lastIndexOf','isVisible','664611YIwvbs','slice','add','document','ck-ai-chat-context-chip','render','length','9496782QtfdCI','_createLoaderIcon','42182604BZPFWG','91438ivXsqN','tooltip','_createIconView','setTemplate','locale','_setupRemoveButtonEvent','fire','webkitAnimationEnd','type','label','ck-ai-chat-context-chip_wide','set','_createTemplateChildren','2283808KFTuyU','readonly','ck-ai-chat-context-controls__chip-tooltip','disableAnimationOnEnter','div','_isAnimationOnEnterEnabled','content','ck-ai-chat-context-chip__label','small','remove','removeEventListener','_createTemplateAttributes','_initializeProperties','2CHYilz','uiId','_setupTemplate','element','bind','_createLabelElement','ck-ai-chat-context-chip_new-chip','7QKnoHB','span','bindTemplate','6105660nwLnwy','11500976dUPzyt','execute','_handleAnimationEndOnce','classList','_createRemoveButton','ck-hidden','extendTemplate','addEventListener'];_0x55c7=function(){return _0x272493;};return _0x55c7();}import{getTranslation as _0x340952}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x47d1aa}from'../../../aicore/ui/aispinner.js';const bn={'file':_0x4aede2,'document':_0x323bd2,'web-resource':_0xe9c2e0,'text':_0x4aede2,'selection':_0x5ae350},Tn=_0x1e5cfd(0x16e),En=_0x1e5cfd(0x13d),An=_0x1e5cfd(0x163),Cn=_0x1e5cfd(0x147),In=_0x1e5cfd(0x160),On=_0x1e5cfd(0x142),gn='n';export class AIChatContextItemButtonView extends _0x3217b9{constructor(_0x4514d7,_0x404498,_0x1b8016,_0x384688,_0x8ac7f3=!0x1){const _0x1c7860=_0x1e5cfd;super(_0x4514d7),this[_0x1c7860(0x145)]=_0x384688,this[_0x1c7860(0x14c)](_0x404498,_0x1b8016,_0x8ac7f3),this[_0x1c7860(0x14f)]();}[_0x1e5cfd(0x16f)](){const _0x2884bb=_0x1e5cfd;super[_0x2884bb(0x16f)](),this[_0x2884bb(0x145)]&&this[_0x2884bb(0x150)]&&(this[_0x2884bb(0x150)][_0x2884bb(0x15b)][_0x2884bb(0x16c)](_0x2884bb(0x153)),this[_0x2884bb(0x15a)](this[_0x2884bb(0x150)],()=>{const _0x5662b2=_0x2884bb;this[_0x5662b2(0x150)]&&this[_0x5662b2(0x150)][_0x5662b2(0x15b)][_0x5662b2(0x149)](_0x5662b2(0x153));}));}[_0x1e5cfd(0x143)](){const _0x26d371=_0x1e5cfd;this[_0x26d371(0x145)]=!0x1,this[_0x26d371(0x150)]&&this[_0x26d371(0x150)][_0x26d371(0x15b)][_0x26d371(0x149)](_0x26d371(0x153));}[_0x1e5cfd(0x14c)](_0x4d16b4,_0x23a9c9,_0x26dfdb){const _0x164f07=_0x1e5cfd;this[_0x164f07(0x13e)](_0x164f07(0x13c),_0x4d16b4[_0x164f07(0x13c)]),this[_0x164f07(0x13e)](_0x164f07(0x175),!0x0),this[_0x164f07(0x13e)](_0x164f07(0x162),_0x4d16b4[_0x164f07(0x13b)]),this[_0x164f07(0x13e)]('id',_0x4d16b4[_0x164f07(0x14e)]),this[_0x164f07(0x13e)](_0x164f07(0x141),_0x23a9c9),this[_0x164f07(0x13e)](_0x164f07(0x166),_0x26dfdb);}[_0x1e5cfd(0x14f)](){const _0x1770dd=_0x1e5cfd,_0x2b72b9=this[_0x1770dd(0x176)](),_0x4466c7=this[_0x1770dd(0x15c)](),_0x250d58=this[_0x1770dd(0x156)];this[_0x1770dd(0x177)]({'tag':_0x1770dd(0x144),'attributes':this[_0x1770dd(0x14b)](_0x250d58),'children':this[_0x1770dd(0x13f)](_0x2b72b9,_0x4466c7,_0x250d58)});}[_0x1e5cfd(0x14b)](_0x2cfd74){const _0x28f18d=_0x1e5cfd;return{'class':[Tn,_0x2cfd74['if'](_0x28f18d(0x162),An,_0x25c8b7=>_0x28f18d(0x16d)==_0x25c8b7),_0x2cfd74['if'](_0x28f18d(0x162),En,_0x308d52=>_0x28f18d(0x165)==_0x308d52)],'data-cke-tooltip-text':_0x2cfd74['to'](_0x28f18d(0x13c),vn),'data-cke-tooltip-position':gn,'data-cke-tooltip-class':On};}[_0x1e5cfd(0x13f)](_0x38dc17,_0x2d276b,_0x333eb7){const _0x3f9c1f=_0x1e5cfd,_0x10c216=this[_0x3f9c1f(0x152)](_0x333eb7),_0x160607=this[_0x3f9c1f(0x172)]();return this[_0x3f9c1f(0x141)]?[_0x38dc17,_0x10c216]:[_0x38dc17,_0x160607,_0x10c216,_0x2d276b];}[_0x1e5cfd(0x152)](_0x28f911){const _0x1dcecb=_0x1e5cfd;return{'tag':_0x1dcecb(0x155),'attributes':{'class':Cn},'children':[{'text':_0x28f911['to'](_0x1dcecb(0x13c))}]};}[_0x1e5cfd(0x15c)](){const _0x425e9c=_0x1e5cfd,_0x4c8d5a=new _0x3217b9(this[_0x425e9c(0x178)]);return _0x4c8d5a[_0x425e9c(0x13e)]({'label':_0x340952(this[_0x425e9c(0x178)],_0x425e9c(0x164)),'icon':_0x155ccf}),this[_0x425e9c(0x179)](_0x4c8d5a),_0x4c8d5a;}[_0x1e5cfd(0x179)](_0x2589b7){const _0x20d054=_0x1e5cfd;_0x2589b7['on'](_0x20d054(0x159),()=>{const _0x18c9b9=_0x20d054;this[_0x18c9b9(0x17a)](_0x18c9b9(0x167),this['id']);});}[_0x1e5cfd(0x176)](){const _0x1beaaa=_0x1e5cfd,_0x26c032=this[_0x1beaaa(0x156)],_0x2860e2=new _0x287cf8();return _0x2860e2[_0x1beaaa(0x146)]=bn[this[_0x1beaaa(0x162)]],_0x2860e2[_0x1beaaa(0x15e)]({'attributes':{'class':[In,_0x26c032['if'](_0x1beaaa(0x166),_0x1beaaa(0x15d),_0x170952=>_0x170952)]}}),_0x2860e2;}[_0x1e5cfd(0x15a)](_0x456291,_0x198b23){const _0x3f819c=_0x1e5cfd;if(!_0x456291)return;const _0x501912=()=>{const _0x229c66=_0x477a;_0x198b23(),_0x456291[_0x229c66(0x14a)](_0x229c66(0x161),_0x501912),_0x456291[_0x229c66(0x14a)](_0x229c66(0x13a),_0x501912);};_0x456291[_0x3f819c(0x15f)](_0x3f819c(0x161),_0x501912),_0x456291[_0x3f819c(0x15f)](_0x3f819c(0x13a),_0x501912);}[_0x1e5cfd(0x172)](){const _0x43d153=_0x1e5cfd,_0x341d8c=new _0x47d1aa(_0x43d153(0x148));return _0x341d8c[_0x43d153(0x151)](_0x43d153(0x169))['to'](this,_0x43d153(0x166),_0x463226=>_0x463226),_0x341d8c;}}function vn(_0x1a910d){const _0x4be3aa=_0x1e5cfd;if(!_0x1a910d)return _0x1a910d;if(_0x1a910d[_0x4be3aa(0x170)]<=0x78)return _0x1a910d;const _0x4c5830=_0x1a910d[_0x4be3aa(0x16b)](0x0,0x78),_0x1a7e77=_0x4c5830[_0x4be3aa(0x168)]('\x20');return(_0x1a7e77>0x0?_0x4c5830[_0x4be3aa(0x16b)](0x0,_0x1a7e77):_0x4c5830)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x181995=_0x3919;(function(_0x15c58a,_0x54e3bf){const _0x274fb1=_0x3919,_0x40ad6b=_0x15c58a();while(!![]){try{const _0x110e35=-parseInt(_0x274fb1(0x184))/0x1*(parseInt(_0x274fb1(0x1a6))/0x2)+-parseInt(_0x274fb1(0x1a5))/0x3+parseInt(_0x274fb1(0x1a0))/0x4+parseInt(_0x274fb1(0x179))/0x5*(parseInt(_0x274fb1(0x174))/0x6)+-parseInt(_0x274fb1(0x1a8))/0x7*(parseInt(_0x274fb1(0x17d))/0x8)+parseInt(_0x274fb1(0x18d))/0x9+parseInt(_0x274fb1(0x172))/0xa;if(_0x110e35===_0x54e3bf)break;else _0x40ad6b['push'](_0x40ad6b['shift']());}catch(_0x3797ab){_0x40ad6b['push'](_0x40ad6b['shift']());}}}(_0xf0cb,0x92b80));function _0x3919(_0x1297f8,_0x18de7d){const _0xf0cb6c=_0xf0cb();return _0x3919=function(_0x391989,_0x28ad13){_0x391989=_0x391989-0x160;let _0x56f250=_0xf0cb6c[_0x391989];return _0x56f250;},_0x3919(_0x1297f8,_0x18de7d);}import{FocusTracker as _0x32d5c0,KeystrokeHandler as _0x102746}from'ckeditor5/src/utils.js';import{ButtonView as _0x2dbff7,FocusCycler as _0x2805ab,LabeledFieldView as _0xd605b7,View as _0x3371c2,FormHeaderView as _0x213855,createLabeledInputText as _0x6b1af5,submitHandler as _0x56d19d}from'ckeditor5/src/ui.js';import{IconCheck as _0x6e6fc2,IconPreviousArrow as _0x4a194e}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xfc4ccc}from'../../../aicore/utils/common-translations.js';const eh=_0x181995(0x18a),hh=_0x181995(0x18b);export class AIChatContextPanelUrlInputView extends _0x3371c2{[_0x181995(0x19f)];[_0x181995(0x1a3)];[_0x181995(0x16d)];[_0x181995(0x194)];[_0x181995(0x192)];[_0x181995(0x16f)];[_0x181995(0x178)];constructor(_0x316916){const _0x5345de=_0x181995;super(_0x316916),this[_0x5345de(0x19f)]=new _0x32d5c0(),this[_0x5345de(0x1a3)]=new _0x102746(),this[_0x5345de(0x16f)]=this[_0x5345de(0x1a1)](),this[_0x5345de(0x192)]=this[_0x5345de(0x1a7)](),this[_0x5345de(0x178)]=this[_0x5345de(0x189)](),this[_0x5345de(0x16d)]=this[_0x5345de(0x181)]([this[_0x5345de(0x16f)],this[_0x5345de(0x192)],this[_0x5345de(0x178)]]),this[_0x5345de(0x194)]=new _0x2805ab({'focusables':this[_0x5345de(0x16d)],'focusTracker':this[_0x5345de(0x19f)],'keystrokeHandler':this[_0x5345de(0x1a3)],'actions':{'focusPrevious':_0x5345de(0x17e),'focusNext':_0x5345de(0x199)}}),this[_0x5345de(0x16b)](),this[_0x5345de(0x160)](),this[_0x5345de(0x197)]();}[_0x181995(0x176)](){const _0x3ddc91=_0x181995;super[_0x3ddc91(0x176)](),this[_0x3ddc91(0x16d)][_0x3ddc91(0x168)](_0x258a3a=>{const _0x2cc088=_0x3ddc91;this[_0x2cc088(0x19f)][_0x2cc088(0x196)](_0x258a3a[_0x2cc088(0x16c)]),this[_0x2cc088(0x1a3)][_0x2cc088(0x193)](_0x258a3a[_0x2cc088(0x16c)]);}),_0x56d19d({'view':this}),this[_0x3ddc91(0x166)]();}[_0x181995(0x164)](){const _0x2c0435=_0x181995;super[_0x2c0435(0x164)](),this[_0x2c0435(0x19f)][_0x2c0435(0x164)](),this[_0x2c0435(0x1a3)][_0x2c0435(0x164)]();}[_0x181995(0x166)](){const _0x5d817f=_0x181995;this[_0x5d817f(0x192)][_0x5d817f(0x166)]();}[_0x181995(0x18e)](){const _0x4d217d=_0x181995;return this[_0x4d217d(0x192)][_0x4d217d(0x182)][_0x4d217d(0x16c)]?.[_0x4d217d(0x198)]?.[_0x4d217d(0x195)]()||'';}[_0x181995(0x18f)](){const _0x9b7a14=_0x181995;this[_0x9b7a14(0x192)][_0x9b7a14(0x182)][_0x9b7a14(0x16c)][_0x9b7a14(0x198)]='',this[_0x9b7a14(0x192)][_0x9b7a14(0x187)]=null,this[_0x9b7a14(0x178)][_0x9b7a14(0x167)]=!0x1;}[_0x181995(0x161)](_0x4bcd0e){const _0x59ae88=_0x181995;this[_0x59ae88(0x192)][_0x59ae88(0x187)]=_0x4bcd0e,this[_0x59ae88(0x183)](),this[_0x59ae88(0x171)](_0x59ae88(0x180));}[_0x181995(0x18c)](){const _0x15ae47=_0x181995;this[_0x15ae47(0x192)][_0x15ae47(0x187)]=null,this[_0x15ae47(0x183)]();}[_0x181995(0x1a1)](){const _0x471aaa=_0x181995,_0x31897f=new _0x2dbff7(this[_0x471aaa(0x19a)]);return _0x31897f[_0x471aaa(0x169)]({'icon':_0x4a194e,'tooltip':_0xfc4ccc(this[_0x471aaa(0x19a)],_0x471aaa(0x19b)),'tooltipPosition':'n','class':_0x471aaa(0x19c)}),_0x31897f;}[_0x181995(0x1a7)](){const _0x55805f=_0x181995,_0x4880b0=new _0xd605b7(this[_0x55805f(0x19a)],_0x6b1af5);return _0x4880b0[_0x55805f(0x169)]({'label':_0xfc4ccc(this[_0x55805f(0x19a)],_0x55805f(0x16a)),'class':_0x55805f(0x177)}),_0x4880b0[_0x55805f(0x182)][_0x55805f(0x169)]({'placeholder':_0xfc4ccc(this[_0x55805f(0x19a)],_0x55805f(0x185))}),_0x4880b0;}[_0x181995(0x189)](){const _0x5b6e4e=_0x181995,_0x413ae5=new _0x2dbff7(this[_0x5b6e4e(0x19a)]);return _0x413ae5[_0x5b6e4e(0x169)]({'icon':_0x6e6fc2,'tooltip':_0xfc4ccc(this[_0x5b6e4e(0x19a)],_0x5b6e4e(0x17f)),'tooltipPosition':'n','class':_0x5b6e4e(0x17c),'type':_0x5b6e4e(0x1a4),'isEnabled':!0x1}),_0x413ae5;}[_0x181995(0x16b)](){const _0x432c91=_0x181995,_0x1aacb5=new _0x213855(this[_0x432c91(0x19a)],{'label':_0xfc4ccc(this[_0x432c91(0x19a)],_0x432c91(0x17f)),'class':_0x432c91(0x17a)});_0x1aacb5[_0x432c91(0x191)][_0x432c91(0x196)](this[_0x432c91(0x16f)],0x0),this[_0x432c91(0x1a2)]({'tag':_0x432c91(0x170),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x1aacb5,{'tag':_0x432c91(0x16e),'attributes':{'class':hh},'children':[this[_0x432c91(0x192)],this[_0x432c91(0x178)]]}]});}[_0x181995(0x160)](){const _0x2a96f8=_0x181995;this[_0x2a96f8(0x16f)]['on'](_0x2a96f8(0x162),()=>{const _0x1da80a=_0x2a96f8;this[_0x1da80a(0x18f)](),this[_0x1da80a(0x171)](_0x1da80a(0x19d));}),this[_0x2a96f8(0x192)][_0x2a96f8(0x182)]['on'](_0x2a96f8(0x188),()=>{const _0x19e869=_0x2a96f8;this[_0x19e869(0x18c)](),this[_0x19e869(0x183)](),this[_0x19e869(0x171)](_0x19e869(0x180));}),this['on'](_0x2a96f8(0x1a4),_0x254eb6=>{const _0x5d94d5=_0x2a96f8;_0x254eb6[_0x5d94d5(0x186)](),this[_0x5d94d5(0x190)]();});}[_0x181995(0x197)](){const _0x49d732=_0x181995;this[_0x49d732(0x1a3)][_0x49d732(0x169)](_0x49d732(0x165),(_0xe7abc1,_0x4f94e6)=>{const _0x19f0e9=_0x49d732;this[_0x19f0e9(0x18f)](),this[_0x19f0e9(0x171)](_0x19f0e9(0x19d)),_0x4f94e6();});}[_0x181995(0x190)](){const _0xc0a7c0=_0x181995,_0x33701f=this[_0xc0a7c0(0x18e)]()[_0xc0a7c0(0x195)]();_0x33701f?this[_0xc0a7c0(0x163)](_0x33701f)?(this[_0xc0a7c0(0x18c)](),this[_0xc0a7c0(0x171)](_0xc0a7c0(0x175),_0x33701f)):this[_0xc0a7c0(0x161)](_0xfc4ccc(this[_0xc0a7c0(0x19a)],_0xc0a7c0(0x17b))):this[_0xc0a7c0(0x161)](_0xfc4ccc(this[_0xc0a7c0(0x19a)],_0xc0a7c0(0x173)));}[_0x181995(0x183)](){const _0x1eb991=_0x181995,_0x5b2532=this[_0x1eb991(0x18e)]()[_0x1eb991(0x195)](),_0x48b858=!!this[_0x1eb991(0x192)][_0x1eb991(0x187)];this[_0x1eb991(0x178)][_0x1eb991(0x167)]=_0x5b2532[_0x1eb991(0x19e)]>0x0&&!_0x48b858;}[_0x181995(0x163)](_0x118386){try{return!!new URL(_0x118386);}catch{return!0x1;}}}function _0xf0cb(){const _0x3537cf=['_handleSubmit','children','urlInputField','listenTo','focusCycler','trim','add','_setupKeystrokes','value','tab','locale','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','ck-button-icon\x20ck-button-back','cancel','length','focusTracker','4357284oHEPrx','_createBackButton','setTemplate','keystrokes','submit','1632144rDsPvr','2321978ISiWNP','_createUrlInputField','8743XilEVi','_setupEventHandlers','setError','execute','_isValidUrl','destroy','esc','focus','isEnabled','forEach','set','AI_CHAT_CONTEXT_URL_LABEL','_setupTemplate','element','_focusables','div','backButton','form','fire','6222640PwiPJi','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','456RhTyDK','submitUrl','render','ck-labeled-field-view_empty','confirmButton','17615EjDxeT','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_INVALID_ERROR','ck-button-icon','2696PgKcMT','shift+tab','AI_CHAT_CONTEXT_URL_ADD_URL','refreshBalloon','createCollection','fieldView','_updateConfirmButtonState','1vxzaGU','AI_CHAT_CONTEXT_URL_PLACEHOLDER','stop','errorText','input','_createConfirmButton','ck-ai-chat-context-controls__url-form','ck-ai-chat-context-controls__url-input-section','clearError','6728193YSlLhU','getValue','clear'];_0xf0cb=function(){return _0x3537cf;};return _0xf0cb();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x84dda9=_0x389d;(function(_0x246b87,_0x39c574){const _0x3e2e3a=_0x389d,_0x4a3caa=_0x246b87();while(!![]){try{const _0x20e755=-parseInt(_0x3e2e3a(0x1b8))/0x1+-parseInt(_0x3e2e3a(0x1a9))/0x2*(parseInt(_0x3e2e3a(0x1dd))/0x3)+-parseInt(_0x3e2e3a(0x1b2))/0x4*(parseInt(_0x3e2e3a(0x1e9))/0x5)+parseInt(_0x3e2e3a(0x1cb))/0x6*(parseInt(_0x3e2e3a(0x16d))/0x7)+-parseInt(_0x3e2e3a(0x183))/0x8*(-parseInt(_0x3e2e3a(0x1a3))/0x9)+-parseInt(_0x3e2e3a(0x1f9))/0xa*(-parseInt(_0x3e2e3a(0x1b5))/0xb)+parseInt(_0x3e2e3a(0x1a4))/0xc;if(_0x20e755===_0x39c574)break;else _0x4a3caa['push'](_0x4a3caa['shift']());}catch(_0x5ccd9b){_0x4a3caa['push'](_0x4a3caa['shift']());}}}(_0x3dc8,0xeb4f6));function _0x389d(_0x309092,_0x19e0ad){const _0x3dc8ae=_0x3dc8();return _0x389d=function(_0x389d2b,_0x2dbe71){_0x389d2b=_0x389d2b-0x169;let _0x3cf4d2=_0x3dc8ae[_0x389d2b];return _0x3cf4d2;},_0x389d(_0x309092,_0x19e0ad);}import{BalloonPanelView as _0x5af0aa,ButtonView as _0x455f47,clickOutsideHandler as _0x525405,FileDialogButtonView as _0x32df22,IconView as _0x435def,View as _0x58153e}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x3b078c,IconDocument as _0x2ae25e,IconDocumentOutline as _0x41aa6f,IconDropdownArrow as _0x3ede3c,IconLink as _0x3f96c8,IconPaperClip as _0x31a6df}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x7a8c6a}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x22cb32}from'./aichatcontextpanelurlinputview.js';function _0x3dc8(){const _0x521cd0=['566106ZzMOhM','buttonView','southArrowNorthEast','loadSourceResources','AI_CHAT_CONTEXT_URL_LABEL','_overflowManager','label','sources','_setAddContextButtonEnabled','setContextItemLoading','element','setContainerElement','clearConversationContextItems','_currentContextsChips','clearCurrentContextItems','_conversationContextsChips','showSourceResourcesBalloon','execute','31449nPxouW','updateResourceState','isAnyResourceBalloonVisible','hideUrlBalloonPanel','find','ck-ai-chat-context-controls__add-context-balloon-panel','northArrowSouthEast','refreshBalloon','files','fire','render','_removeContextFromCollection','5rXfZwp','clear','ck-ai-chat-context-controls__url-balloon-panel','showAddContextBalloonPanel','_resourcesBalloonView','_getLimiterElement','_toggleAddContextBalloon','_setupAllBalloonClickOutsideHandlers','locale','_createArrowView','addContextButtonView','setConversationContext','ck-ai-chat-context-controls__show-more-balloon-panel','reorganizeChips','bind','type','10pepkah','addFileToContext','_showSourceResourcesBalloon','ck-ai-chat-context-controls__balloon-button','_createContextButton','133nQxKGe','addResourceToContext','body','extendTemplate','icon','ck-ai-chat-controls-button','submitUrl','northArrowSouth','_handleUrlSubmit','addContextItem','_urlInputView','hide','ck-ai-chat-context-controls__balloon-button-source','AI_CHAT_CONTEXT_FILE_LABEL','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','closest','balloonView','current','_setupAddContextBalloonClickOutsideHandler','_createBalloonButton','_setupTemplate','closeSourceResourceBalloon','8XUNwPR','document','menuitem','setAddContextOptions','isVisible','isEnabled','_bindEventHandlers','_createAddContextButtonView','children','defaultPositions','urls','addDocumentToContext','ck-ai-chat-context-controls__add-context-button','__arrow','enabled','add','southArrowNorthWest','isLoading','remove','showUrlBalloonPanel','_createAddContextBalloonPanelView','northArrowSouthWest','bodyCollection','tooltip','set','_createResourcesBalloonView','_addContextToCollection','source','addUrlToContext','removeContextItemChip','isReadOnly','_createBaseBalloonPanel','3474045HsuNNJ','5215284jKTfeH','setTemplate','ck-ai-chat-controls_context_show-more-button','_urlBalloonPanelView','conversation','282VrDsQF','hideAddContextBalloonPanel','_addUrlContent','AI_CHAT_CONTEXT_ADD_CONTEXT','ck-ai-chat-context-controls','ck-ai-chat-context-controls__pending-contexts','populateSourceResourceBalloon','isHidden','ck-ai-chat','418728gTqrjo','createCollection','ck-ai-chat-context-chips-wrapper-balloon','19905325hzZaAK','_setupUrlBalloonClickOutsideHandler','div','1876241lRiDff','removeContextItem','done','isOn','show','_createUrlBalloonPanelView','arrowView','destroy','_setBalloonPanelContent','_handleAddContextButtonClick','cancel','southArrowNorth','content','focus','pin','overflowChips','_addContextBalloonConfig','ck-reset_all-excluded','_addContextBalloonPanelView'];_0x3dc8=function(){return _0x521cd0;};return _0x3dc8();}import{AIChatChipsOverflowManager as _0x47f623}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x4ffe96}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x2085ee}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x84dda9(0x18e),_0x84dda9(0x169),_0x84dda9(0x19f),_0x84dda9(0x16e),_0x84dda9(0x1b9),_0x84dda9(0x1ce)];const bo=_0x84dda9(0x1ad),To=_0x84dda9(0x1ae),Ao=_0x84dda9(0x1e2),ko=_0x84dda9(0x18f),Eo=_0x84dda9(0x1eb),vo=_0x84dda9(0x16b),go=_0x84dda9(0x179),Vo=_0x84dda9(0x172),fo=_0x84dda9(0x1b4),Io=_0x84dda9(0x1a6),Po=_0x84dda9(0x1f5),Ro=_0x84dda9(0x1b1),So=[_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x198)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x174)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x1e3)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x193)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x1c3)],_0x5af0aa[_0x84dda9(0x18c)][_0x84dda9(0x1cd)]];export class AIChatContextPanelView extends _0x58153e{[_0x84dda9(0x1f3)];[_0x84dda9(0x1d8)]=this[_0x84dda9(0x1b3)]();[_0x84dda9(0x1da)]=this[_0x84dda9(0x1b3)]();[_0x84dda9(0x1d0)];[_0x84dda9(0x1ca)];[_0x84dda9(0x1a7)];[_0x84dda9(0x177)];[_0x84dda9(0x1ed)];[_0x84dda9(0x1c8)];[_0x84dda9(0x199)];constructor(_0x27078c,_0x423fea){const _0x54d317=_0x84dda9;super(_0x27078c),this[_0x54d317(0x199)]=_0x423fea,this[_0x54d317(0x1d8)]=this[_0x54d317(0x1b3)](),this[_0x54d317(0x1da)]=this[_0x54d317(0x1b3)](),this[_0x54d317(0x1f3)]=this[_0x54d317(0x18a)](_0x27078c),this[_0x54d317(0x1ca)]=this[_0x54d317(0x197)](_0x27078c),this[_0x54d317(0x1a7)]=this[_0x54d317(0x1bd)](_0x27078c),this[_0x54d317(0x1ed)]=this[_0x54d317(0x19c)](_0x27078c,_0x423fea);const _0x27b6b6={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x54d317(0x1d0)]=new _0x47f623(_0x27078c,this[_0x54d317(0x1d8)],_0x27b6b6,this[_0x54d317(0x199)],this),this[_0x54d317(0x1c8)]={'buttonView':this[_0x54d317(0x1f3)],'balloonView':this[_0x54d317(0x1ca)],'hideMethod':this[_0x54d317(0x1aa)][_0x54d317(0x1f7)](this),'showMethod':this[_0x54d317(0x1ec)][_0x54d317(0x1f7)](this)},this[_0x54d317(0x181)](),this[_0x54d317(0x189)]();}[_0x84dda9(0x1e7)](){const _0x3c0694=_0x84dda9;super[_0x3c0694(0x1e7)](),this[_0x3c0694(0x1f0)](),this[_0x3c0694(0x1d0)][_0x3c0694(0x1d6)](this[_0x3c0694(0x1d5)]),this[_0x3c0694(0x1d0)][_0x3c0694(0x1f6)]();}[_0x84dda9(0x1bf)](){const _0x30d3e8=_0x84dda9;super[_0x30d3e8(0x1bf)](),this[_0x30d3e8(0x1d0)][_0x30d3e8(0x1bf)](),this[_0x30d3e8(0x1ed)][_0x30d3e8(0x1bf)]();}[_0x84dda9(0x176)](_0x1a5290,_0x61847b){const _0x20b057=_0x84dda9,_0xc9f4f1=this[_0x20b057(0x16c)](_0x1a5290,_0x20b057(0x17e),!0x0,_0x61847b);this[_0x20b057(0x19d)](_0xc9f4f1,this[_0x20b057(0x1d8)]),this[_0x20b057(0x1d0)][_0x20b057(0x1f6)]();}[_0x84dda9(0x1b9)](_0x252243){const _0x1363c6=_0x84dda9;this[_0x1363c6(0x1e8)](_0x252243,this[_0x1363c6(0x1d8)]),this[_0x1363c6(0x1e8)](_0x252243,this[_0x1363c6(0x1d0)][_0x1363c6(0x1c7)]),this[_0x1363c6(0x1d0)][_0x1363c6(0x1f6)]();}[_0x84dda9(0x1d4)](_0xbde7e9,_0x5cfd60){const _0x4eae89=_0x84dda9;let _0x29f430=this[_0x4eae89(0x1d8)][_0x4eae89(0x1e1)](_0x291a36=>_0x291a36['id']===_0xbde7e9);_0x29f430||(_0x29f430=this[_0x4eae89(0x1d0)][_0x4eae89(0x1c7)][_0x4eae89(0x1e1)](_0x2aae8f=>_0x2aae8f['id']===_0xbde7e9)),_0x29f430&&(_0x29f430[_0x4eae89(0x194)]=_0x5cfd60);}[_0x84dda9(0x1f4)](_0x41f502){const _0x9e11b1=_0x84dda9;this[_0x9e11b1(0x1da)][_0x9e11b1(0x1ea)]();for(const _0x54e031 of _0x41f502){const _0x40f52a=this[_0x9e11b1(0x16c)](_0x54e031,_0x9e11b1(0x1a8),!0x1,!0x1);this[_0x9e11b1(0x19d)](_0x40f52a,this[_0x9e11b1(0x1da)]);}}[_0x84dda9(0x1d9)](){const _0x21b4a7=_0x84dda9;this[_0x21b4a7(0x1d8)][_0x21b4a7(0x1ea)](),this[_0x21b4a7(0x1d0)][_0x21b4a7(0x1ea)]();}[_0x84dda9(0x1d7)](){const _0x287499=_0x84dda9;this[_0x287499(0x1da)][_0x287499(0x1ea)]();}[_0x84dda9(0x1de)](_0x4ec77b,_0x16d296,_0x57a90c){const _0xe08db4=_0x84dda9;this[_0xe08db4(0x1ed)][_0xe08db4(0x1de)](_0x4ec77b,_0x16d296,_0x57a90c);}[_0x84dda9(0x1aa)](){const _0x15d679=_0x84dda9;this[_0x15d679(0x1ef)](!0x1);}[_0x84dda9(0x1ec)](){const _0x5e6657=_0x84dda9;this[_0x5e6657(0x1ef)](!0x0);}[_0x84dda9(0x1e0)](){const _0x2ef6a7=_0x84dda9;this[_0x2ef6a7(0x1a7)][_0x2ef6a7(0x178)](),this[_0x2ef6a7(0x1f3)][_0x2ef6a7(0x1bb)]=!0x1,this[_0x2ef6a7(0x177)]&&this[_0x2ef6a7(0x177)][_0x2ef6a7(0x1ea)]();}[_0x84dda9(0x196)](){const _0x4f2f8a=_0x84dda9;this[_0x4f2f8a(0x1a7)][_0x4f2f8a(0x1bc)](),this[_0x4f2f8a(0x1f3)][_0x4f2f8a(0x1bb)]=!0x0;}[_0x84dda9(0x16a)](_0x49bd92){const _0x279f60=_0x84dda9;this[_0x279f60(0x1ed)][_0x279f60(0x1db)](_0x49bd92),this[_0x279f60(0x1f3)][_0x279f60(0x1bb)]=!0x0;}[_0x84dda9(0x1af)](_0x598058,_0x43376d,_0x32323c,_0xc185f6){const _0x3fcb60=_0x84dda9;this[_0x3fcb60(0x1ed)][_0x3fcb60(0x1af)](_0x598058,_0x32323c,_0xc185f6);}[_0x84dda9(0x182)](_0x35c4f9){const _0x222d8d=_0x84dda9;this[_0x222d8d(0x1ed)][_0x222d8d(0x182)](_0x35c4f9),this[_0x222d8d(0x1f3)][_0x222d8d(0x1bb)]=!0x1;}[_0x84dda9(0x186)](_0x108e4c){const _0x154623=_0x84dda9;this[_0x154623(0x1c0)](this[_0x154623(0x1ca)],this[_0x154623(0x1f1)],_0x108e4c),this[_0x154623(0x1d3)](_0x108e4c);}[_0x84dda9(0x1d3)](_0x4fda12){const _0x433c5c=_0x84dda9,_0xc67d79=!_0x4fda12[_0x433c5c(0x184)][_0x433c5c(0x1b0)]&&_0x4fda12[_0x433c5c(0x184)][_0x433c5c(0x191)],_0x475c71=_0x4fda12[_0x433c5c(0x18d)][_0x433c5c(0x191)],_0x49ed4c=_0x4fda12[_0x433c5c(0x1e5)][_0x433c5c(0x191)];this[_0x433c5c(0x1f3)][_0x433c5c(0x188)]=_0xc67d79||_0x475c71||_0x49ed4c;}[_0x84dda9(0x181)](){const _0x4a7f3e=_0x84dda9;this[_0x4a7f3e(0x1a5)]({'tag':_0x4a7f3e(0x1b7),'attributes':{'class':[bo,_0x4a7f3e(0x1c9)]},'children':[{'tag':_0x4a7f3e(0x1b7),'attributes':{'class':To},'children':this[_0x4a7f3e(0x1d8)]}]});}[_0x84dda9(0x189)](){const _0x15854a=_0x84dda9;this[_0x15854a(0x1f3)]['on'](_0x15854a(0x1dc),()=>{const _0x44f1e8=_0x15854a;this[_0x44f1e8(0x1c1)]();});}[_0x84dda9(0x18a)](_0x8c5cce){const _0x883ea2=_0x84dda9,_0x353e58=new _0x455f47(_0x8c5cce);return _0x353e58[_0x883ea2(0x19b)]({'label':_0x4ffe96(_0x8c5cce,_0x883ea2(0x1ac)),'class':Vo+'\x20'+ko,'icon':_0x31a6df,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x353e58;}[_0x84dda9(0x197)](_0x435700){const _0x447587=_0x84dda9;return this[_0x447587(0x1a2)](_0x435700,Ao);}[_0x84dda9(0x1bd)](_0x272fac){const _0x186d20=_0x84dda9,_0x5e4488=this[_0x186d20(0x1a2)](_0x272fac,Eo);return this[_0x186d20(0x1ab)](_0x5e4488,_0x272fac),_0x5e4488;}[_0x84dda9(0x19c)](_0x14153c,_0x1543aa){const _0x168909=_0x84dda9;return new _0x2085ee(_0x14153c,_0x1543aa,{'onBackToContext':()=>{const _0x30c472=_0x389d;this[_0x30c472(0x1ec)](),this[_0x30c472(0x1ca)][_0x30c472(0x1c6)]({'target':this[_0x30c472(0x1f3)][_0x30c472(0x1d5)],'limiter':this[_0x30c472(0x1ee)](),'positions':So});},'onResourceSelected':(_0x31b3fc,_0x518aea)=>{const _0x384476=_0x389d;this[_0x384476(0x1e6)](_0x384476(0x16e),{'source':_0x31b3fc,'resource':_0x518aea});},'onLoadSourceResources':_0x29523d=>{const _0x10ec79=_0x389d;this[_0x10ec79(0x1e6)](_0x10ec79(0x1ce),_0x29523d);},'onBalloonClosed':()=>{const _0x100ef9=_0x389d;this[_0x100ef9(0x1f3)][_0x100ef9(0x1bb)]=!0x1;},'getLimiterElement':()=>this[_0x168909(0x1ee)](),'getTargetElement':()=>this[_0x168909(0x1f3)][_0x168909(0x1d5)]});}[_0x84dda9(0x1ee)](){const _0x152546=_0x84dda9;return this[_0x152546(0x1d5)]?.[_0x152546(0x17c)]('.'+Ro)||document[_0x152546(0x16f)];}[_0x84dda9(0x1a2)](_0x3c0e0d,_0x5d5f5a){const _0x71be5=_0x84dda9,_0x9875a0=new _0x5af0aa(_0x3c0e0d);return _0x9875a0[_0x71be5(0x170)]({'attributes':{'class':_0x5d5f5a}}),this[_0x71be5(0x199)][_0x71be5(0x192)](_0x9875a0),_0x9875a0;}[_0x84dda9(0x1c0)](_0x3438e8,_0x599501,_0x28a81f){const _0x5cc0dd=_0x84dda9;if(_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x1ea)](),!_0x28a81f[_0x5cc0dd(0x184)][_0x5cc0dd(0x1b0)]&&_0x28a81f[_0x5cc0dd(0x184)][_0x5cc0dd(0x191)]){const _0x3a8602=this[_0x5cc0dd(0x180)](_0x599501,{'label':_0x4ffe96(_0x599501,_0x5cc0dd(0x17b)),'icon':_0x2ae25e});_0x3a8602['on'](_0x5cc0dd(0x1dc),()=>{const _0x551500=_0x5cc0dd;this[_0x551500(0x1e6)](_0x551500(0x18e)),this[_0x551500(0x1aa)]();}),_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0x3a8602);}if(_0x28a81f[_0x5cc0dd(0x18d)][_0x5cc0dd(0x191)]){const _0xeb2c9f=this[_0x5cc0dd(0x180)](_0x599501,{'label':_0x4ffe96(_0x599501,_0x5cc0dd(0x1cf)),'icon':_0x3f96c8});_0xeb2c9f['on'](_0x5cc0dd(0x1dc),()=>{const _0x21f753=_0x5cc0dd;this[_0x21f753(0x1aa)](),this[_0x21f753(0x196)](),this[_0x21f753(0x1a7)][_0x21f753(0x1c6)]({'target':this[_0x21f753(0x1f3)][_0x21f753(0x1d5)],'limiter':this[_0x21f753(0x1ee)](),'positions':So}),this[_0x21f753(0x177)][_0x21f753(0x1c5)]();}),_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0xeb2c9f);}if(_0x28a81f[_0x5cc0dd(0x1e5)][_0x5cc0dd(0x191)]){const _0x10a096=new _0x32df22(_0x599501);_0x10a096[_0x5cc0dd(0x19b)]({'label':_0x4ffe96(_0x599501,_0x5cc0dd(0x17a)),'icon':_0x3b078c,'withText':!0x0,'tooltip':!0x0,'class':vo,'allowMultipleFiles':!0x0}),_0x10a096['on'](_0x5cc0dd(0x1ba),(_0x5d63a4,_0x43b841)=>{const _0x50a78b=_0x5cc0dd;this[_0x50a78b(0x1e6)](_0x50a78b(0x169),_0x43b841),this[_0x50a78b(0x1aa)]();}),_0x10a096[_0x5cc0dd(0x19a)]=!0x0,_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0x10a096);}for(const _0x52a62c of _0x28a81f[_0x5cc0dd(0x1d2)]){const _0x489c5=this[_0x5cc0dd(0x180)](_0x599501,{'label':_0x52a62c[_0x5cc0dd(0x1d1)],'icon':_0x52a62c[_0x5cc0dd(0x171)]||_0x41aa6f,'type':_0x5cc0dd(0x19e)});_0x3438e8[_0x5cc0dd(0x1c4)][_0x5cc0dd(0x192)](_0x489c5),_0x489c5['on'](_0x5cc0dd(0x1dc),()=>{const _0x3004e7=_0x5cc0dd;this[_0x3004e7(0x1aa)](),this[_0x3004e7(0x16a)](_0x52a62c);});}}[_0x84dda9(0x1ab)](_0x52f1fd,_0x3ba454){const _0xbf0af2=_0x84dda9;this[_0xbf0af2(0x177)]=new _0x22cb32(_0x3ba454),this[_0xbf0af2(0x177)]['on'](_0xbf0af2(0x173),(_0x1e21cd,_0x3f844e)=>{const _0x24e459=_0xbf0af2;this[_0x24e459(0x175)](_0x3f844e);}),this[_0xbf0af2(0x177)]['on'](_0xbf0af2(0x1c2),()=>{const _0x5b0de9=_0xbf0af2;this[_0x5b0de9(0x1e0)](),this[_0x5b0de9(0x1ec)](),this[_0x5b0de9(0x1ca)][_0x5b0de9(0x1c6)]({'target':this[_0x5b0de9(0x1f3)][_0x5b0de9(0x1d5)],'limiter':this[_0x5b0de9(0x1ee)](),'positions':So});}),this[_0xbf0af2(0x177)]['on'](_0xbf0af2(0x1e4),()=>{const _0x1f0222=_0xbf0af2;this[_0x1f0222(0x1a7)][_0x1f0222(0x187)]&&this[_0x1f0222(0x1a7)][_0x1f0222(0x1c6)]({'target':this[_0x1f0222(0x1f3)][_0x1f0222(0x1d5)],'limiter':this[_0x1f0222(0x1ee)](),'positions':So});}),_0x52f1fd[_0xbf0af2(0x1c4)][_0xbf0af2(0x192)](this[_0xbf0af2(0x177)]);}[_0x84dda9(0x180)](_0xb4bb8f,_0xa505ac){const _0x95a5e4=_0x84dda9,_0x475a17=_0x95a5e4(0x19e)===_0xa505ac[_0x95a5e4(0x1f8)]?new SourcesBalloonButtonView(_0xb4bb8f):new _0x455f47(_0xb4bb8f);return _0x475a17[_0x95a5e4(0x19b)]({'label':_0xa505ac[_0x95a5e4(0x1d1)],'icon':_0xa505ac[_0x95a5e4(0x171)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':vo}),_0x475a17;}[_0x84dda9(0x1f0)](){const _0x58b311=_0x84dda9;this[_0x58b311(0x17f)](),this[_0x58b311(0x1b6)]();}[_0x84dda9(0x1b6)](){const _0x22b652=_0x84dda9;_0x525405({'emitter':this[_0x22b652(0x1a7)],'contextElements':[this[_0x22b652(0x1a7)][_0x22b652(0x1d5)]],'callback':()=>{const _0x9e45b9=_0x22b652;this[_0x9e45b9(0x1e0)]();},'activator':()=>this[_0x22b652(0x1a7)][_0x22b652(0x187)]});}[_0x84dda9(0x1ef)](_0x2a0443){const _0x51149c=_0x84dda9,_0x435444=this[_0x51149c(0x1c8)];_0x435444[_0x51149c(0x1cc)][_0x51149c(0x1bb)]=_0x2a0443,_0x2a0443?_0x435444[_0x51149c(0x17d)][_0x51149c(0x1bc)]():_0x435444[_0x51149c(0x17d)][_0x51149c(0x178)]();}[_0x84dda9(0x17f)](){const _0x40a7f8=_0x84dda9,{balloonView:_0x1538a7,buttonView:_0xfef65c,hideMethod:_0x83463f}=this[_0x40a7f8(0x1c8)];_0x525405({'emitter':_0x1538a7,'contextElements':[_0x1538a7[_0x40a7f8(0x1d5)],_0xfef65c[_0x40a7f8(0x1d5)]],'callback':()=>{_0x83463f();},'activator':()=>_0xfef65c[_0x40a7f8(0x1bb)]&&!this[_0x40a7f8(0x1a7)][_0x40a7f8(0x187)]&&!this[_0x40a7f8(0x1ed)][_0x40a7f8(0x1df)]()});}[_0x84dda9(0x16c)](_0x8e107,_0x4a3cab,_0x31b697=!0x1,_0x51b4bc=!0x1){const _0x408fc3=_0x84dda9,_0x2655f9=_0x408fc3(0x1a8)===_0x4a3cab||!0x0===_0x8e107[_0x408fc3(0x1a1)],_0x43192f=new _0x7a8c6a(this[_0x408fc3(0x1f1)],_0x8e107,_0x2655f9,_0x31b697,_0x51b4bc);return _0x2655f9||_0x43192f['on'](_0x408fc3(0x1a0),()=>{const _0x57ad88=_0x408fc3;this[_0x57ad88(0x1e6)](_0x57ad88(0x1b9),_0x43192f['id']);}),_0x43192f;}[_0x84dda9(0x19d)](_0x30940f,_0x1f02df){const _0x5b0706=_0x84dda9;_0x1f02df[_0x5b0706(0x192)](_0x30940f,0x0);}[_0x84dda9(0x1e8)](_0x5bdd1a,_0x356c0b){const _0x262708=_0x84dda9,_0x1ed083=_0x356c0b[_0x262708(0x1e1)](_0x5e1df7=>_0x5e1df7['id']===_0x5bdd1a);_0x1ed083&&_0x356c0b[_0x262708(0x195)](_0x1ed083);}[_0x84dda9(0x1c1)](){const _0xe20e09=_0x84dda9;this[_0xe20e09(0x1f3)][_0xe20e09(0x1bb)]?this[_0xe20e09(0x1aa)]():(this[_0xe20e09(0x1ec)](),this[_0xe20e09(0x1ca)][_0xe20e09(0x1c6)]({'target':this[_0xe20e09(0x1f3)][_0xe20e09(0x1d5)],'limiter':this[_0xe20e09(0x1ee)](),'positions':So}));}[_0x84dda9(0x175)](_0x497943){const _0x1fc20b=_0x84dda9;this[_0x1fc20b(0x177)][_0x1fc20b(0x1ea)](),this[_0x1fc20b(0x1e0)](),this[_0x1fc20b(0x1e6)](_0x1fc20b(0x19f),_0x497943);}}export class SourcesBalloonButtonView extends _0x455f47{[_0x84dda9(0x1be)];constructor(_0xdec8bc){const _0x5676fa=_0x84dda9;super(_0xdec8bc),this[_0x5676fa(0x19b)]({'withText':!0x0,'role':_0x5676fa(0x185)}),this[_0x5676fa(0x1be)]=this[_0x5676fa(0x1f2)](),this[_0x5676fa(0x170)]({'attributes':{'class':[go]}});}[_0x84dda9(0x1e7)](){const _0x52f0c7=_0x84dda9;super[_0x52f0c7(0x1e7)](),this[_0x52f0c7(0x18b)][_0x52f0c7(0x192)](this[_0x52f0c7(0x1be)]);}[_0x84dda9(0x1f2)](){const _0x341aeb=_0x84dda9,_0x378998=new _0x435def();return _0x378998[_0x341aeb(0x1c4)]=_0x3ede3c,_0x378998[_0x341aeb(0x170)]({'attributes':{'class':go+_0x341aeb(0x190)}}),_0x378998;}}
|
|
23
|
+
const _0x4e9c08=_0x1021;(function(_0x252e14,_0x4000f5){const _0x32e602=_0x1021,_0x5a37df=_0x252e14();while(!![]){try{const _0x52377c=parseInt(_0x32e602(0xef))/0x1*(parseInt(_0x32e602(0x94))/0x2)+parseInt(_0x32e602(0xdf))/0x3+parseInt(_0x32e602(0xd7))/0x4*(-parseInt(_0x32e602(0xb5))/0x5)+parseInt(_0x32e602(0xe2))/0x6*(-parseInt(_0x32e602(0xd3))/0x7)+parseInt(_0x32e602(0xfe))/0x8+parseInt(_0x32e602(0x9f))/0x9*(parseInt(_0x32e602(0x99))/0xa)+parseInt(_0x32e602(0xbd))/0xb*(parseInt(_0x32e602(0xa6))/0xc);if(_0x52377c===_0x4000f5)break;else _0x5a37df['push'](_0x5a37df['shift']());}catch(_0x139c2a){_0x5a37df['push'](_0x5a37df['shift']());}}}(_0x28bb,0xc9ea0));function _0x28bb(){const _0x199844=['12NWyptG','addContextButtonView','ck-ai-chat-context-controls__url-balloon-panel','ck-ai-chat-context-controls__add-context-button','reorganizeChips','_setBalloonPanelContent','ck-ai-chat','ck-reset_all-excluded','clearConversationContextItems','removeContextItem','source','overflowChips','updateResourceState','div','sources','1985sMxwVT','northArrowSouthWest','document','isVisible','_setupTemplate','done','__arrow','southArrowNorthWest','11753786MoSVHG','isLoading','clearCurrentContextItems','_toggleAddContextBalloon','icon','setConversationContext','showSourceResourcesBalloon','northArrowSouth','addDocumentToContext','extendTemplate','createCollection','ck-ai-chat-context-controls__show-more-balloon-panel','defaultPositions','AI_CHAT_CONTEXT_FILE_LABEL','add','hideAddContextBalloonPanel','label','_showSourceResourcesBalloon','_createAddContextBalloonPanelView','render','bind','_bindEventHandlers','21wHYKYv','hideUrlBalloonPanel','populateSourceResourceBalloon','setContainerElement','16508ogXlMr','body','ck-ai-chat-controls-button','ck-ai-chat-context-controls','conversation','show','_addContextToCollection','_createAddContextButtonView','4400199nLmEIu','northArrowSouthEast','submitUrl','3015120JhASiM','isHidden','arrowView','content','tooltip','ck-ai-chat-context-chips-wrapper-balloon','set','addResourceToContext','_addContextBalloonPanelView','element','_urlInputView','_handleUrlSubmit','showAddContextBalloonPanel','1FoDpay','locale','hide','isAnyResourceBalloonVisible','urls','ck-ai-chat-controls_context_show-more-button','_createBalloonButton','ck-ai-chat-context-controls__balloon-button','focus','refreshBalloon','_setupAllBalloonClickOutsideHandlers','bodyCollection','_addUrlContent','ck-ai-chat-context-controls__pending-contexts','cancel','2646976AFquCF','addFileToContext','AI_CHAT_CONTEXT_URL_LABEL','isReadOnly','menuitem','children','closest','files','removeContextItemChip','_createUrlBalloonPanelView','closeSourceResourceBalloon','destroy','fire','enabled','addUrlToContext','type','setContextItemLoading','buttonView','_createResourcesBalloonView','_setAddContextButtonEnabled','_overflowManager','pin','isOn','loadSourceResources','_currentContextsChips','ck-ai-chat-context-controls__balloon-button-source','balloonView','setAddContextOptions','_createBaseBalloonPanel','execute','_resourcesBalloonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','_urlBalloonPanelView','_setupAddContextBalloonClickOutsideHandler','_conversationContextsChips','isEnabled','southArrowNorth','showUrlBalloonPanel','addContextItem','439996UsWnJm','_createArrowView','current','_removeContextFromCollection','_handleAddContextButtonClick','47940XgYkBo','_setupUrlBalloonClickOutsideHandler','_createContextButton','remove','clear','ck-ai-chat-context-controls__add-context-balloon-panel','1665CCYWdf','_getLimiterElement','southArrowNorthEast','AI_CHAT_CONTEXT_ADD_CONTEXT','setTemplate','find','_addContextBalloonConfig'];_0x28bb=function(){return _0x199844;};return _0x28bb();}import{BalloonPanelView as _0x1fa834,ButtonView as _0x2971f0,clickOutsideHandler as _0xf04abc,FileDialogButtonView as _0x355495,IconView as _0xd63c0e,View as _0x56bbf4}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x443d82,IconDocument as _0x68bfbc,IconDocumentOutline as _0x2f94a4,IconDropdownArrow as _0x24ec6c,IconLink as _0x878118,IconPaperClip as _0x4e10a3}from'@ckeditor/ckeditor5-icons';function _0x1021(_0x232a52,_0x1f4559){const _0x28bb80=_0x28bb();return _0x1021=function(_0x1021e7,_0x4ccb6d){_0x1021e7=_0x1021e7-0x87;let _0x72f2f9=_0x28bb80[_0x1021e7];return _0x72f2f9;},_0x1021(_0x232a52,_0x1f4559);}import{AIChatContextItemButtonView as _0x21b72b}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0xa41e7}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x29fa93}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x4374fa}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x58e0fd}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x4e9c08(0xc5),_0x4e9c08(0xff),_0x4e9c08(0x10c),_0x4e9c08(0xe9),_0x4e9c08(0xaf),_0x4e9c08(0x115)];const bo=_0x4e9c08(0xda),To=_0x4e9c08(0xfc),Ao=_0x4e9c08(0x9e),ko=_0x4e9c08(0xa9),Eo=_0x4e9c08(0xa8),vo=_0x4e9c08(0xf6),go=_0x4e9c08(0x117),Vo=_0x4e9c08(0xd9),fo=_0x4e9c08(0xe7),Io=_0x4e9c08(0xf4),Po=_0x4e9c08(0xc8),Ro=_0x4e9c08(0xac),So=[_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xb6)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xc4)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xe0)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xbc)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0x91)],_0x1fa834[_0x4e9c08(0xc9)][_0x4e9c08(0xa1)]];export class AIChatContextPanelView extends _0x56bbf4{[_0x4e9c08(0xa7)];[_0x4e9c08(0x116)]=this[_0x4e9c08(0xc7)]();[_0x4e9c08(0x8f)]=this[_0x4e9c08(0xc7)]();[_0x4e9c08(0x112)];[_0x4e9c08(0xea)];[_0x4e9c08(0x8d)];[_0x4e9c08(0xec)];[_0x4e9c08(0x8b)];[_0x4e9c08(0xa5)];[_0x4e9c08(0xfa)];constructor(_0x14bda0,_0x54aa46){const _0x17ab5c=_0x4e9c08;super(_0x14bda0),this[_0x17ab5c(0xfa)]=_0x54aa46,this[_0x17ab5c(0x116)]=this[_0x17ab5c(0xc7)](),this[_0x17ab5c(0x8f)]=this[_0x17ab5c(0xc7)](),this[_0x17ab5c(0xa7)]=this[_0x17ab5c(0xde)](_0x14bda0),this[_0x17ab5c(0xea)]=this[_0x17ab5c(0xcf)](_0x14bda0),this[_0x17ab5c(0x8d)]=this[_0x17ab5c(0x107)](_0x14bda0),this[_0x17ab5c(0x8b)]=this[_0x17ab5c(0x110)](_0x14bda0,_0x54aa46);const _0x7665c8={'cssClasses':{'showMoreButton':Io,'showMoreBalloon':Po,'overflowContainer':fo,'controlsButton':Vo}};this[_0x17ab5c(0x112)]=new _0x29fa93(_0x14bda0,this[_0x17ab5c(0x116)],_0x7665c8,this[_0x17ab5c(0xfa)],this),this[_0x17ab5c(0xa5)]={'buttonView':this[_0x17ab5c(0xa7)],'balloonView':this[_0x17ab5c(0xea)],'hideMethod':this[_0x17ab5c(0xcc)][_0x17ab5c(0xd1)](this),'showMethod':this[_0x17ab5c(0xee)][_0x17ab5c(0xd1)](this)},this[_0x17ab5c(0xb9)](),this[_0x17ab5c(0xd2)]();}[_0x4e9c08(0xd0)](){const _0x4ef260=_0x4e9c08;super[_0x4ef260(0xd0)](),this[_0x4ef260(0xf9)](),this[_0x4ef260(0x112)][_0x4ef260(0xd6)](this[_0x4ef260(0xeb)]),this[_0x4ef260(0x112)][_0x4ef260(0xaa)]();}[_0x4e9c08(0x109)](){const _0xde2c25=_0x4e9c08;super[_0xde2c25(0x109)](),this[_0xde2c25(0x112)][_0xde2c25(0x109)](),this[_0xde2c25(0x8b)][_0xde2c25(0x109)]();}[_0x4e9c08(0x93)](_0x1c2c1e,_0x4ef4e6){const _0x2ca2df=_0x4e9c08,_0x4dbdbe=this[_0x2ca2df(0x9b)](_0x1c2c1e,_0x2ca2df(0x96),!0x0,_0x4ef4e6);this[_0x2ca2df(0xdd)](_0x4dbdbe,this[_0x2ca2df(0x116)]),this[_0x2ca2df(0x112)][_0x2ca2df(0xaa)]();}[_0x4e9c08(0xaf)](_0x3839f8){const _0x2cdf49=_0x4e9c08;this[_0x2cdf49(0x97)](_0x3839f8,this[_0x2cdf49(0x116)]),this[_0x2cdf49(0x97)](_0x3839f8,this[_0x2cdf49(0x112)][_0x2cdf49(0xb1)]),this[_0x2cdf49(0x112)][_0x2cdf49(0xaa)]();}[_0x4e9c08(0x10e)](_0x27c616,_0x5c35d7){const _0x43aa34=_0x4e9c08;let _0x235678=this[_0x43aa34(0x116)][_0x43aa34(0xa4)](_0x59d48=>_0x59d48['id']===_0x27c616);_0x235678||(_0x235678=this[_0x43aa34(0x112)][_0x43aa34(0xb1)][_0x43aa34(0xa4)](_0x534787=>_0x534787['id']===_0x27c616)),_0x235678&&(_0x235678[_0x43aa34(0xbe)]=_0x5c35d7);}[_0x4e9c08(0xc2)](_0x305293){const _0x5b4bdd=_0x4e9c08;this[_0x5b4bdd(0x8f)][_0x5b4bdd(0x9d)]();for(const _0x1048e3 of _0x305293){const _0x528db3=this[_0x5b4bdd(0x9b)](_0x1048e3,_0x5b4bdd(0xdb),!0x1,!0x1);this[_0x5b4bdd(0xdd)](_0x528db3,this[_0x5b4bdd(0x8f)]);}}[_0x4e9c08(0xbf)](){const _0x31d78f=_0x4e9c08;this[_0x31d78f(0x116)][_0x31d78f(0x9d)](),this[_0x31d78f(0x112)][_0x31d78f(0x9d)]();}[_0x4e9c08(0xae)](){const _0x108fa7=_0x4e9c08;this[_0x108fa7(0x8f)][_0x108fa7(0x9d)]();}[_0x4e9c08(0xb2)](_0x2bf51e,_0x2d83f4,_0x31559e){const _0x23f364=_0x4e9c08;this[_0x23f364(0x8b)][_0x23f364(0xb2)](_0x2bf51e,_0x2d83f4,_0x31559e);}[_0x4e9c08(0xcc)](){const _0x59bd39=_0x4e9c08;this[_0x59bd39(0xc0)](!0x1);}[_0x4e9c08(0xee)](){const _0x36141f=_0x4e9c08;this[_0x36141f(0xc0)](!0x0);}[_0x4e9c08(0xd4)](){const _0x4f56a0=_0x4e9c08;this[_0x4f56a0(0x8d)][_0x4f56a0(0xf1)](),this[_0x4f56a0(0xa7)][_0x4f56a0(0x114)]=!0x1,this[_0x4f56a0(0xec)]&&this[_0x4f56a0(0xec)][_0x4f56a0(0x9d)]();}[_0x4e9c08(0x92)](){const _0x20e1f1=_0x4e9c08;this[_0x20e1f1(0x8d)][_0x20e1f1(0xdc)](),this[_0x20e1f1(0xa7)][_0x20e1f1(0x114)]=!0x0;}[_0x4e9c08(0xce)](_0x515306){const _0x226b7d=_0x4e9c08;this[_0x226b7d(0x8b)][_0x226b7d(0xc3)](_0x515306),this[_0x226b7d(0xa7)][_0x226b7d(0x114)]=!0x0;}[_0x4e9c08(0xd5)](_0x499689,_0x3e1864,_0x230d39,_0x47e238){const _0x5875b2=_0x4e9c08;this[_0x5875b2(0x8b)][_0x5875b2(0xd5)](_0x499689,_0x230d39,_0x47e238);}[_0x4e9c08(0x108)](_0x3c5687){const _0x46cce6=_0x4e9c08;this[_0x46cce6(0x8b)][_0x46cce6(0x108)](_0x3c5687),this[_0x46cce6(0xa7)][_0x46cce6(0x114)]=!0x1;}[_0x4e9c08(0x88)](_0x2844cb){const _0x854aa5=_0x4e9c08;this[_0x854aa5(0xab)](this[_0x854aa5(0xea)],this[_0x854aa5(0xf0)],_0x2844cb),this[_0x854aa5(0x111)](_0x2844cb);}[_0x4e9c08(0x111)](_0x3ac439){const _0x46290e=_0x4e9c08,_0x313bf0=!_0x3ac439[_0x46290e(0xb7)][_0x46290e(0xe3)]&&_0x3ac439[_0x46290e(0xb7)][_0x46290e(0x10b)],_0x2c97c7=_0x3ac439[_0x46290e(0xf3)][_0x46290e(0x10b)],_0x36ca7b=_0x3ac439[_0x46290e(0x105)][_0x46290e(0x10b)];this[_0x46290e(0xa7)][_0x46290e(0x90)]=_0x313bf0||_0x2c97c7||_0x36ca7b;}[_0x4e9c08(0xb9)](){const _0x2e57d8=_0x4e9c08;this[_0x2e57d8(0xa3)]({'tag':_0x2e57d8(0xb3),'attributes':{'class':[bo,_0x2e57d8(0xad)]},'children':[{'tag':_0x2e57d8(0xb3),'attributes':{'class':To},'children':this[_0x2e57d8(0x116)]}]});}[_0x4e9c08(0xd2)](){const _0x13395d=_0x4e9c08;this[_0x13395d(0xa7)]['on'](_0x13395d(0x8a),()=>{const _0x206d17=_0x13395d;this[_0x206d17(0x98)]();});}[_0x4e9c08(0xde)](_0x4a15d8){const _0x4629ff=_0x4e9c08,_0x85cac4=new _0x2971f0(_0x4a15d8);return _0x85cac4[_0x4629ff(0xe8)]({'label':_0x4374fa(_0x4a15d8,_0x4629ff(0xa2)),'class':Vo+'\x20'+ko,'icon':_0x4e10a3,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x85cac4;}[_0x4e9c08(0xcf)](_0x36f452){const _0x11d111=_0x4e9c08;return this[_0x11d111(0x89)](_0x36f452,Ao);}[_0x4e9c08(0x107)](_0x3f15b1){const _0x467b1d=_0x4e9c08,_0x423775=this[_0x467b1d(0x89)](_0x3f15b1,Eo);return this[_0x467b1d(0xfb)](_0x423775,_0x3f15b1),_0x423775;}[_0x4e9c08(0x110)](_0x446865,_0x4fc519){const _0x44d8c5=_0x4e9c08;return new _0x58e0fd(_0x446865,_0x4fc519,{'onBackToContext':()=>{const _0x534602=_0x1021;this[_0x534602(0xee)](),this[_0x534602(0xea)][_0x534602(0x113)]({'target':this[_0x534602(0xa7)][_0x534602(0xeb)],'limiter':this[_0x534602(0xa0)](),'positions':So});},'onResourceSelected':(_0x4f746e,_0x42e664)=>{const _0x392c1b=_0x1021;this[_0x392c1b(0x10a)](_0x392c1b(0xe9),{'source':_0x4f746e,'resource':_0x42e664});},'onLoadSourceResources':_0x19d638=>{const _0x4b945c=_0x1021;this[_0x4b945c(0x10a)](_0x4b945c(0x115),_0x19d638);},'onBalloonClosed':()=>{const _0x505512=_0x1021;this[_0x505512(0xa7)][_0x505512(0x114)]=!0x1;},'getLimiterElement':()=>this[_0x44d8c5(0xa0)](),'getTargetElement':()=>this[_0x44d8c5(0xa7)][_0x44d8c5(0xeb)]});}[_0x4e9c08(0xa0)](){const _0x37e790=_0x4e9c08;return this[_0x37e790(0xeb)]?.[_0x37e790(0x104)]('.'+Ro)||document[_0x37e790(0xd8)];}[_0x4e9c08(0x89)](_0x2cea4c,_0x5c7564){const _0x370fd7=_0x4e9c08,_0x9f42e8=new _0x1fa834(_0x2cea4c);return _0x9f42e8[_0x370fd7(0xc6)]({'attributes':{'class':_0x5c7564}}),this[_0x370fd7(0xfa)][_0x370fd7(0xcb)](_0x9f42e8),_0x9f42e8;}[_0x4e9c08(0xab)](_0x3f3756,_0x192164,_0x4516f0){const _0xa2e6b7=_0x4e9c08;if(_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0x9d)](),!_0x4516f0[_0xa2e6b7(0xb7)][_0xa2e6b7(0xe3)]&&_0x4516f0[_0xa2e6b7(0xb7)][_0xa2e6b7(0x10b)]){const _0x377d5e=this[_0xa2e6b7(0xf5)](_0x192164,{'label':_0x4374fa(_0x192164,_0xa2e6b7(0x8c)),'icon':_0x68bfbc});_0x377d5e['on'](_0xa2e6b7(0x8a),()=>{const _0x1b5e40=_0xa2e6b7;this[_0x1b5e40(0x10a)](_0x1b5e40(0xc5)),this[_0x1b5e40(0xcc)]();}),_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x377d5e);}if(_0x4516f0[_0xa2e6b7(0xf3)][_0xa2e6b7(0x10b)]){const _0x4b9317=this[_0xa2e6b7(0xf5)](_0x192164,{'label':_0x4374fa(_0x192164,_0xa2e6b7(0x100)),'icon':_0x878118});_0x4b9317['on'](_0xa2e6b7(0x8a),()=>{const _0x1fe7f7=_0xa2e6b7;this[_0x1fe7f7(0xcc)](),this[_0x1fe7f7(0x92)](),this[_0x1fe7f7(0x8d)][_0x1fe7f7(0x113)]({'target':this[_0x1fe7f7(0xa7)][_0x1fe7f7(0xeb)],'limiter':this[_0x1fe7f7(0xa0)](),'positions':So}),this[_0x1fe7f7(0xec)][_0x1fe7f7(0xf7)]();}),_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x4b9317);}if(_0x4516f0[_0xa2e6b7(0x105)][_0xa2e6b7(0x10b)]){const _0x51d48b=new _0x355495(_0x192164);_0x51d48b[_0xa2e6b7(0xe8)]({'label':_0x4374fa(_0x192164,_0xa2e6b7(0xca)),'icon':_0x443d82,'withText':!0x0,'tooltip':!0x0,'class':vo,'allowMultipleFiles':!0x0}),_0x51d48b['on'](_0xa2e6b7(0xba),(_0x40ff0c,_0x47b439)=>{const _0x33bdea=_0xa2e6b7;this[_0x33bdea(0x10a)](_0x33bdea(0xff),_0x47b439),this[_0x33bdea(0xcc)]();}),_0x51d48b[_0xa2e6b7(0xe6)]=!0x0,_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x51d48b);}for(const _0x1d4f5f of _0x4516f0[_0xa2e6b7(0xb4)]){const _0x531991=this[_0xa2e6b7(0xf5)](_0x192164,{'label':_0x1d4f5f[_0xa2e6b7(0xcd)],'icon':_0x1d4f5f[_0xa2e6b7(0xc1)]||_0x2f94a4,'type':_0xa2e6b7(0xb0)});_0x3f3756[_0xa2e6b7(0xe5)][_0xa2e6b7(0xcb)](_0x531991),_0x531991['on'](_0xa2e6b7(0x8a),()=>{const _0x243f88=_0xa2e6b7;this[_0x243f88(0xcc)](),this[_0x243f88(0xce)](_0x1d4f5f);});}}[_0x4e9c08(0xfb)](_0x5730b6,_0x18874a){const _0x265449=_0x4e9c08;this[_0x265449(0xec)]=new _0xa41e7(_0x18874a),this[_0x265449(0xec)]['on'](_0x265449(0xe1),(_0x12fb4c,_0x5d5a72)=>{const _0x5cdabe=_0x265449;this[_0x5cdabe(0xed)](_0x5d5a72);}),this[_0x265449(0xec)]['on'](_0x265449(0xfd),()=>{const _0xe23011=_0x265449;this[_0xe23011(0xd4)](),this[_0xe23011(0xee)](),this[_0xe23011(0xea)][_0xe23011(0x113)]({'target':this[_0xe23011(0xa7)][_0xe23011(0xeb)],'limiter':this[_0xe23011(0xa0)](),'positions':So});}),this[_0x265449(0xec)]['on'](_0x265449(0xf8),()=>{const _0x50ab1b=_0x265449;this[_0x50ab1b(0x8d)][_0x50ab1b(0xb8)]&&this[_0x50ab1b(0x8d)][_0x50ab1b(0x113)]({'target':this[_0x50ab1b(0xa7)][_0x50ab1b(0xeb)],'limiter':this[_0x50ab1b(0xa0)](),'positions':So});}),_0x5730b6[_0x265449(0xe5)][_0x265449(0xcb)](this[_0x265449(0xec)]);}[_0x4e9c08(0xf5)](_0x512bd9,_0x50990a){const _0x28d4e7=_0x4e9c08,_0x13f60d=_0x28d4e7(0xb0)===_0x50990a[_0x28d4e7(0x10d)]?new SourcesBalloonButtonView(_0x512bd9):new _0x2971f0(_0x512bd9);return _0x13f60d[_0x28d4e7(0xe8)]({'label':_0x50990a[_0x28d4e7(0xcd)],'icon':_0x50990a[_0x28d4e7(0xc1)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':vo}),_0x13f60d;}[_0x4e9c08(0xf9)](){const _0x532d2f=_0x4e9c08;this[_0x532d2f(0x8e)](),this[_0x532d2f(0x9a)]();}[_0x4e9c08(0x9a)](){const _0x24c174=_0x4e9c08;_0xf04abc({'emitter':this[_0x24c174(0x8d)],'contextElements':[this[_0x24c174(0x8d)][_0x24c174(0xeb)]],'callback':()=>{const _0x5877fb=_0x24c174;this[_0x5877fb(0xd4)]();},'activator':()=>this[_0x24c174(0x8d)][_0x24c174(0xb8)]});}[_0x4e9c08(0xc0)](_0x28c6f0){const _0x31689a=_0x4e9c08,_0x38c726=this[_0x31689a(0xa5)];_0x38c726[_0x31689a(0x10f)][_0x31689a(0x114)]=_0x28c6f0,_0x28c6f0?_0x38c726[_0x31689a(0x87)][_0x31689a(0xdc)]():_0x38c726[_0x31689a(0x87)][_0x31689a(0xf1)]();}[_0x4e9c08(0x8e)](){const _0x4d9a36=_0x4e9c08,{balloonView:_0x13ac51,buttonView:_0x48db7d,hideMethod:_0x5e897a}=this[_0x4d9a36(0xa5)];_0xf04abc({'emitter':_0x13ac51,'contextElements':[_0x13ac51[_0x4d9a36(0xeb)],_0x48db7d[_0x4d9a36(0xeb)]],'callback':()=>{_0x5e897a();},'activator':()=>_0x48db7d[_0x4d9a36(0x114)]&&!this[_0x4d9a36(0x8d)][_0x4d9a36(0xb8)]&&!this[_0x4d9a36(0x8b)][_0x4d9a36(0xf2)]()});}[_0x4e9c08(0x9b)](_0x2e2097,_0x245663,_0xeec991=!0x1,_0x2b04f8=!0x1){const _0x416035=_0x4e9c08,_0x146c3c=_0x416035(0xdb)===_0x245663||!0x0===_0x2e2097[_0x416035(0x101)],_0x1b149d=new _0x21b72b(this[_0x416035(0xf0)],_0x2e2097,_0x146c3c,_0xeec991,_0x2b04f8);return _0x146c3c||_0x1b149d['on'](_0x416035(0x106),()=>{const _0x3de272=_0x416035;this[_0x3de272(0x10a)](_0x3de272(0xaf),_0x1b149d['id']);}),_0x1b149d;}[_0x4e9c08(0xdd)](_0x354f2d,_0x570517){const _0x2423e4=_0x4e9c08;_0x570517[_0x2423e4(0xcb)](_0x354f2d,0x0);}[_0x4e9c08(0x97)](_0x208e9a,_0x396011){const _0x4351a3=_0x4e9c08,_0x40bf03=_0x396011[_0x4351a3(0xa4)](_0x151500=>_0x151500['id']===_0x208e9a);_0x40bf03&&_0x396011[_0x4351a3(0x9c)](_0x40bf03);}[_0x4e9c08(0x98)](){const _0x341ba0=_0x4e9c08;this[_0x341ba0(0xa7)][_0x341ba0(0x114)]?this[_0x341ba0(0xcc)]():(this[_0x341ba0(0xee)](),this[_0x341ba0(0xea)][_0x341ba0(0x113)]({'target':this[_0x341ba0(0xa7)][_0x341ba0(0xeb)],'limiter':this[_0x341ba0(0xa0)](),'positions':So}));}[_0x4e9c08(0xed)](_0x4dcc7c){const _0x4c3722=_0x4e9c08;this[_0x4c3722(0xec)][_0x4c3722(0x9d)](),this[_0x4c3722(0xd4)](),this[_0x4c3722(0x10a)](_0x4c3722(0x10c),_0x4dcc7c);}}export class SourcesBalloonButtonView extends _0x2971f0{[_0x4e9c08(0xe4)];constructor(_0x871a26){const _0x3b5f64=_0x4e9c08;super(_0x871a26),this[_0x3b5f64(0xe8)]({'withText':!0x0,'role':_0x3b5f64(0x102)}),this[_0x3b5f64(0xe4)]=this[_0x3b5f64(0x95)](),this[_0x3b5f64(0xc6)]({'attributes':{'class':[go]}});}[_0x4e9c08(0xd0)](){const _0x1ddc0a=_0x4e9c08;super[_0x1ddc0a(0xd0)](),this[_0x1ddc0a(0x103)][_0x1ddc0a(0xcb)](this[_0x1ddc0a(0xe4)]);}[_0x4e9c08(0x95)](){const _0x54b3cb=_0x4e9c08,_0x158986=new _0xd63c0e();return _0x158986[_0x54b3cb(0xe5)]=_0x24ec6c,_0x158986[_0x54b3cb(0xc6)]({'attributes':{'class':go+_0x54b3cb(0xbb)}}),_0x158986;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1c4574=_0x3783;(function(_0x4240ac,_0x377419){const _0x133ef5=_0x3783,_0x54962d=_0x4240ac();while(!![]){try{const _0x5142db=parseInt(_0x133ef5(0xbd))/0x1*(parseInt(_0x133ef5(0xbb))/0x2)+parseInt(_0x133ef5(0xcc))/0x3+parseInt(_0x133ef5(0xc5))/0x4*(parseInt(_0x133ef5(0xc7))/0x5)+parseInt(_0x133ef5(0xb9))/0x6*(parseInt(_0x133ef5(0xca))/0x7)+-parseInt(_0x133ef5(0xbc))/0x8*(parseInt(_0x133ef5(0xc9))/0x9)+-parseInt(_0x133ef5(0xc1))/0xa+parseInt(_0x133ef5(0xd0))/0xb*(-parseInt(_0x133ef5(0xd3))/0xc);if(_0x5142db===_0x377419)break;else _0x54962d['push'](_0x54962d['shift']());}catch(_0x4fce28){_0x54962d['push'](_0x54962d['shift']());}}}(_0x32b3,0x1b652));import{ButtonView as _0x35867c,View as _0x5e2836}from'ckeditor5/src/ui.js';import{IconStop as _0x2074d3}from'ckeditor5/src/icons.js';function _0x3783(_0x56bfaa,_0x5ef9d7){const _0x32b325=_0x32b3();return _0x3783=function(_0x378321,_0x553666){_0x378321=_0x378321-0xb8;let _0x8aaaf8=_0x32b325[_0x378321];return _0x8aaaf8;},_0x3783(_0x56bfaa,_0x5ef9d7);}function _0x32b3(){const _0x33e181=['ck-ai-chat-controls-loader-wrapper','665799WsxsPm','locale','_cancelButtonView','ck-ai-chat-controls-loader-icon-dot','2227654cIbXYQ','div','ck-ai-chat-controls-loader-icon','12bkiUoD','ai-chat-controls-loader__cancel-button','abortPromptStream','set','fire','4116cmGavA','_createLoaderView','2pvZkgM','257768KjJkiv','79479rmQYdd','AI_CHAT_IS_WRITING','ck-reset_all','_createCancelButtonView','832870PocAFx','AI_CHAT_STOP_GENERATING','setTemplate','execute','364108KdeWeI','_loaderView','5BKDJWL','ck-ai-chat-controls-loader','36ZQFIBT','1372BtmUlW'];_0x32b3=function(){return _0x33e181;};return _0x32b3();}import{getTranslation as _0x444d97}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x5e2836{[_0x1c4574(0xce)];[_0x1c4574(0xc6)];constructor(_0x24d5ef){const _0x115f8e=_0x1c4574;super(_0x24d5ef),this[_0x115f8e(0xce)]=this[_0x115f8e(0xc0)](),this[_0x115f8e(0xc6)]=this[_0x115f8e(0xba)](),this[_0x115f8e(0xc3)]({'tag':_0x115f8e(0xd1),'attributes':{'class':['ck',_0x115f8e(0xcb),_0x115f8e(0xbf)]},'children':[this[_0x115f8e(0xc6)],this[_0x115f8e(0xce)]]});}[_0x1c4574(0xc0)](){const _0x3c1265=_0x1c4574,_0x3cfd6e=new _0x35867c(this[_0x3c1265(0xcd)]);return _0x3cfd6e[_0x3c1265(0xd6)]({'label':_0x444d97(this[_0x3c1265(0xcd)],_0x3c1265(0xc2)),'withText':!0x0,'class':_0x3c1265(0xd4),'icon':_0x2074d3}),_0x3cfd6e['on'](_0x3c1265(0xc4),()=>{const _0x4e1a14=_0x3c1265;this[_0x4e1a14(0xb8)](_0x4e1a14(0xd5));}),_0x3cfd6e;}[_0x1c4574(0xba)](){const _0x350e93=_0x1c4574,_0x91c58e=new _0x5e2836(this[_0x350e93(0xcd)]);return _0x91c58e[_0x350e93(0xc3)]({'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xc8)]},'children':[{'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xd2)]},'children':[{'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xcf)]}},{'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xcf)]}},{'tag':_0x350e93(0xd1),'attributes':{'class':[_0x350e93(0xcf)]}}]},{'text':_0x444d97(this[_0x350e93(0xcd)],_0x350e93(0xbe))}]}),_0x91c58e;}}
|