@ckeditor/ckeditor5-ai 47.2.0 → 47.3.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +16 -20
- package/build/ai.js +2 -2
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/ast.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/be.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de-ch.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/en-gb.js +1 -1
- package/build/translations/eo.js +1 -1
- package/build/translations/es-co.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/eu.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/gu.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/hy.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/kk.js +1 -1
- package/build/translations/km.js +1 -1
- package/build/translations/kn.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/ku.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nb.js +1 -1
- package/build/translations/ne.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/oc.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/si.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sl.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/ti.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/uz.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/dist/index-editor.css +285 -65
- package/dist/index.css +286 -68
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +10 -1
- package/lang/translations/af.po +36 -0
- package/lang/translations/ar.po +36 -0
- package/lang/translations/ast.po +36 -0
- package/lang/translations/az.po +36 -0
- package/lang/translations/be.po +36 -0
- package/lang/translations/bg.po +36 -0
- package/lang/translations/bn.po +36 -0
- package/lang/translations/bs.po +36 -0
- package/lang/translations/ca.po +36 -0
- package/lang/translations/cs.po +36 -0
- package/lang/translations/da.po +36 -0
- package/lang/translations/de-ch.po +36 -0
- package/lang/translations/de.po +36 -0
- package/lang/translations/el.po +36 -0
- package/lang/translations/en-au.po +36 -0
- package/lang/translations/en-gb.po +36 -0
- package/lang/translations/en.po +36 -0
- package/lang/translations/eo.po +36 -0
- package/lang/translations/es-co.po +36 -0
- package/lang/translations/es.po +36 -0
- package/lang/translations/et.po +36 -0
- package/lang/translations/eu.po +36 -0
- package/lang/translations/fa.po +36 -0
- package/lang/translations/fi.po +36 -0
- package/lang/translations/fr.po +36 -0
- package/lang/translations/gl.po +36 -0
- package/lang/translations/gu.po +36 -0
- package/lang/translations/he.po +36 -0
- package/lang/translations/hi.po +36 -0
- package/lang/translations/hr.po +36 -0
- package/lang/translations/hu.po +36 -0
- package/lang/translations/hy.po +36 -0
- package/lang/translations/id.po +36 -0
- package/lang/translations/it.po +36 -0
- package/lang/translations/ja.po +36 -0
- package/lang/translations/jv.po +36 -0
- package/lang/translations/kk.po +36 -0
- package/lang/translations/km.po +36 -0
- package/lang/translations/kn.po +36 -0
- package/lang/translations/ko.po +36 -0
- package/lang/translations/ku.po +36 -0
- package/lang/translations/lt.po +36 -0
- package/lang/translations/lv.po +36 -0
- package/lang/translations/ms.po +36 -0
- package/lang/translations/nb.po +36 -0
- package/lang/translations/ne.po +36 -0
- package/lang/translations/nl.po +36 -0
- package/lang/translations/no.po +36 -0
- package/lang/translations/oc.po +36 -0
- package/lang/translations/pl.po +36 -0
- package/lang/translations/pt-br.po +36 -0
- package/lang/translations/pt.po +36 -0
- package/lang/translations/ro.po +36 -0
- package/lang/translations/ru.po +36 -0
- package/lang/translations/si.po +36 -0
- package/lang/translations/sk.po +36 -0
- package/lang/translations/sl.po +36 -0
- package/lang/translations/sq.po +36 -0
- package/lang/translations/sr-latn.po +36 -0
- package/lang/translations/sr.po +36 -0
- package/lang/translations/sv.po +36 -0
- package/lang/translations/th.po +36 -0
- package/lang/translations/ti.po +36 -0
- package/lang/translations/tk.po +36 -0
- package/lang/translations/tr.po +36 -0
- package/lang/translations/tt.po +36 -0
- package/lang/translations/ug.po +36 -0
- package/lang/translations/uk.po +36 -0
- package/lang/translations/ur.po +36 -0
- package/lang/translations/uz.po +36 -0
- package/lang/translations/vi.po +36 -0
- package/lang/translations/zh-cn.po +36 -0
- package/lang/translations/zh.po +36 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.d.ts +8 -0
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +12 -0
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.d.ts +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +23 -0
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +24 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.d.ts +5 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.d.ts +39 -6
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.d.ts +6 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.d.ts +30 -5
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.d.ts +5 -0
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +23 -0
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.d.ts +29 -0
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +23 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +16 -0
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +8 -2
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.d.ts +4 -0
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +11 -2
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.d.ts +24 -0
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +7 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.d.ts +8 -0
- package/src/errorsmap.js +23 -0
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +26 -0
- package/theme/aichat/aichat.css +1 -3
- package/theme/aichat/aichathistory.css +1 -1
- package/theme/aichat/aisuggestioncontainer.css +1 -1
- package/theme/aiquickactions/aiquickactions.css +139 -25
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +24 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +13 -0
- package/theme/aireviewmode/aireviewmode.css +33 -10
- package/theme/common/{aichaterror.css → ainotification.css} +17 -14
- package/theme/common/aitrackchanges.css +9 -0
- package/src/aichat/utils/scrollmanager.js +0 -23
- /package/src/{aichat → aicore}/utils/scrollmanager.d.ts +0 -0
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x30dbfa=_0x18bf;(function(_0x2bd3ad,_0x30bb74){const _0x56b404=_0x18bf,_0x2e79d9=_0x2bd3ad();while(!![]){try{const _0x21deb0=parseInt(_0x56b404(0x181))/0x1*(-parseInt(_0x56b404(0x1a5))/0x2)+parseInt(_0x56b404(0x187))/0x3+-parseInt(_0x56b404(0x1ac))/0x4*(parseInt(_0x56b404(0x179))/0x5)+parseInt(_0x56b404(0x1b0))/0x6*(-parseInt(_0x56b404(0x173))/0x7)+-parseInt(_0x56b404(0x1a3))/0x8*(-parseInt(_0x56b404(0x196))/0x9)+-parseInt(_0x56b404(0x190))/0xa*(parseInt(_0x56b404(0x189))/0xb)+parseInt(_0x56b404(0x19d))/0xc;if(_0x21deb0===_0x30bb74)break;else _0x2e79d9['push'](_0x2e79d9['shift']());}catch(_0x392bb6){_0x2e79d9['push'](_0x2e79d9['shift']());}}}(_0x410e,0x71a62));import{ButtonView as _0xa61d46,clickOutsideHandler as _0x140ce4,View as _0x25cd50}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x56af2d}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x5a7f08}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x1bd516,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x39ab80}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x561c77}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x1c68ad}from'../../aicore/utils/common-translations.js';function _0x18bf(_0x3d9d9e,_0x410c67){const _0x410e48=_0x410e();return _0x18bf=function(_0x18bfb0,_0x2d3c4b){_0x18bfb0=_0x18bfb0-0x16c;let _0x17792c=_0x410e48[_0x18bfb0];return _0x17792c;},_0x18bf(_0x3d9d9e,_0x410c67);}function _0x410e(){const _0x362452=['26742036GxGqZT','selectModel','disableModelSelector','startConversation','setInputPlaceholder','set','2137448zbSTpk','agent','46742evBoYp','setAddContextOptions','low','resetMessageInput','ck-hidden','addContextButtonView','bindTemplate','88OBJYrI','setWebSearch','clearConversationContextUI','_modelUnavailableMessageView','5234088jsERnT','isModelAvailable','startsWith','enableModelSelector','element','updateResourceState','setIsUploadInProgress','sendUserMessage','focus','clearCurrentContextItems','focusPromptInput','_promptInputView','setModelList','setTemplate','populateSourceResourceBalloon','_displayedModels','_createLoaderView','_createPromptInputView','find','toggleWebSearch','ck-ai-chat-controls__start-new-chat-button','_promptCapabilitiesView','7GHzWtg','_shouldRestorePromptInputFocus','clearPendingContextUI','abortPromptStream','setConversationContext','execute','114675TdNVXm','_loaderView','delegate','div','_createModelUnavailableMessageView','toggleReasoning','setReasoning','ck-ai-chat-controls-disabled','21XeeFlk','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setContextItemLoading','addContextItem','closeSourceResourceBalloon','ck-ai-chat-controls','1312347uLEugW','isLoading','33lQaVyd','_createPromptCapabilitiesView','setModel','locale','isDisabled','bodyCollection','form','2890330NXRKjO','contextResourcesSearchInputVisibleFrom','_contextPanelView','clearConversationContextItems','_createContextPanelView','_handlePromptInputFocus','18NRXcyA','setPlaceholderText','change:isLoading','reset','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','ck-ai-chat-controls-model-unavailable-message','removeContextItem'];_0x410e=function(){return _0x362452;};return _0x410e();}export class AIChatControlsView extends _0x25cd50{[_0x30dbfa(0x16c)]=[];[_0x30dbfa(0x192)];[_0x30dbfa(0x1bb)];[_0x30dbfa(0x172)];[_0x30dbfa(0x17a)];[_0x30dbfa(0x1af)];[_0x30dbfa(0x174)];constructor(_0x5e5817,_0x3f6533){const _0x8c9514=_0x30dbfa;super(_0x5e5817),this[_0x8c9514(0x192)]=this[_0x8c9514(0x194)](_0x5e5817,{'bodyCollection':_0x3f6533[_0x8c9514(0x18e)],'searchInputVisibleFrom':_0x3f6533[_0x8c9514(0x191)]}),this[_0x8c9514(0x1bb)]=this[_0x8c9514(0x16e)](_0x5e5817),this[_0x8c9514(0x172)]=this[_0x8c9514(0x18a)](_0x5e5817),this[_0x8c9514(0x17a)]=this[_0x8c9514(0x16d)](_0x5e5817),this[_0x8c9514(0x1af)]=this[_0x8c9514(0x17d)](_0x5e5817),this[_0x8c9514(0x174)]=!0x1,this[_0x8c9514(0x1bb)][_0x8c9514(0x17b)](_0x8c9514(0x1b7))['to'](this),this[_0x8c9514(0x17a)][_0x8c9514(0x17b)](_0x8c9514(0x176))['to'](this),this[_0x8c9514(0x172)][_0x8c9514(0x17b)](_0x8c9514(0x170))['to'](this),this[_0x8c9514(0x172)][_0x8c9514(0x17b)](_0x8c9514(0x17e))['to'](this),this[_0x8c9514(0x172)][_0x8c9514(0x17b)](_0x8c9514(0x19e))['to'](this),this[_0x8c9514(0x192)][_0x8c9514(0x17b)](..._0x39ab80)['to'](this),this[_0x8c9514(0x1a2)](_0x8c9514(0x1b1),!0x0),this[_0x8c9514(0x1a2)](_0x8c9514(0x18d),!0x1);const _0x5f48dd=this[_0x8c9514(0x1ab)];this[_0x8c9514(0x1bd)]({'tag':_0x8c9514(0x18f),'attributes':{'class':['ck',_0x8c9514(0x186),_0x5f48dd['if'](_0x8c9514(0x18d),_0x8c9514(0x180))]},'children':[{'tag':_0x8c9514(0x17c),'attributes':{'class':[_0x5f48dd['if'](_0x8c9514(0x188),_0x8c9514(0x1a9),_0x1da270=>_0x1da270||!this[_0x8c9514(0x1b1)]),_0x5f48dd['if'](_0x8c9514(0x1b1),_0x8c9514(0x1a9),_0x522f0c=>!_0x522f0c||this[_0x8c9514(0x188)])]},'children':[this[_0x8c9514(0x192)],this[_0x8c9514(0x1bb)],this[_0x8c9514(0x172)]]},{'tag':_0x8c9514(0x17c),'attributes':{'class':[_0x5f48dd['if'](_0x8c9514(0x188),_0x8c9514(0x1a9),_0x5a48ac=>!_0x5a48ac)]},'children':[this[_0x8c9514(0x17a)]]},{'tag':_0x8c9514(0x17c),'attributes':{'class':[_0x5f48dd['if'](_0x8c9514(0x1b1),_0x8c9514(0x1a9),_0x24e910=>_0x24e910)]},'children':[this[_0x8c9514(0x1af)]]}]}),_0x140ce4({'emitter':this[_0x8c9514(0x1bb)],'activator':()=>this[_0x8c9514(0x188)],'contextElements':()=>[this[_0x8c9514(0x1b4)]],'callback':()=>{const _0x3f9cdc=_0x8c9514;this[_0x3f9cdc(0x174)]=!0x1;}}),this['on'](_0x8c9514(0x198),this[_0x8c9514(0x195)],{'priority':_0x8c9514(0x1a7)});}[_0x30dbfa(0x194)](_0x1172b0,_0x168f19){return new _0x1bd516(_0x1172b0,_0x168f19);}[_0x30dbfa(0x16e)](_0x58130e){const _0x1cac65=_0x30dbfa;return new _0x56af2d(_0x58130e,this[_0x1cac65(0x192)][_0x1cac65(0x1aa)]);}[_0x30dbfa(0x18a)](_0x3a47c1){return new _0x5a7f08(_0x3a47c1);}[_0x30dbfa(0x16d)](_0x12ce21){return new _0x561c77(_0x12ce21);}[_0x30dbfa(0x17d)](_0x11e481){const _0x3ed21f=_0x30dbfa,_0x605113=new ws(_0x11e481);return _0x605113[_0x3ed21f(0x17b)](_0x3ed21f(0x1a0))['to'](this),_0x605113;}[_0x30dbfa(0x195)](_0x30cb43,_0x4cc6bb,_0x2092f7){const _0x4699ab=_0x30dbfa;_0x2092f7?this[_0x4699ab(0x174)]=!0x0:this[_0x4699ab(0x174)]&&this[_0x4699ab(0x1bb)][_0x4699ab(0x1b8)]();}[_0x30dbfa(0x184)](_0x14d128,_0x4eb11a){const _0x2310fd=_0x30dbfa;this[_0x2310fd(0x192)][_0x2310fd(0x184)](_0x14d128,_0x4eb11a);}[_0x30dbfa(0x19c)](_0x5e7ae4){const _0x323890=_0x30dbfa;this[_0x323890(0x192)][_0x323890(0x19c)](_0x5e7ae4);}[_0x30dbfa(0x183)](_0x2cc5fb,_0x553ca7){const _0x19980c=_0x30dbfa;this[_0x19980c(0x192)][_0x19980c(0x183)](_0x2cc5fb,_0x553ca7);}[_0x30dbfa(0x1b6)](_0x3b7ca8){const _0x4fad83=_0x30dbfa;this[_0x4fad83(0x1bb)][_0x4fad83(0x1b6)](_0x3b7ca8);}[_0x30dbfa(0x177)](_0x54bc96){const _0x526c10=_0x30dbfa;this[_0x526c10(0x192)][_0x526c10(0x177)](_0x54bc96);}[_0x30dbfa(0x175)](){const _0x581ff0=_0x30dbfa;this[_0x581ff0(0x192)][_0x581ff0(0x1b9)]();}[_0x30dbfa(0x1ae)](){const _0xe5cb71=_0x30dbfa;this[_0xe5cb71(0x192)][_0xe5cb71(0x193)]();}[_0x30dbfa(0x1b5)](_0x32672e,_0x1d78c5,_0x28c332){const _0x11aa63=_0x30dbfa;this[_0x11aa63(0x192)][_0x11aa63(0x1b5)](_0x32672e,_0x1d78c5,_0x28c332);}[_0x30dbfa(0x1ad)](_0x544be6){const _0x377b02=_0x30dbfa;this[_0x377b02(0x172)][_0x377b02(0x1ad)](_0x544be6);}[_0x30dbfa(0x17f)](_0x23e633){const _0x2ed25d=_0x30dbfa;this[_0x2ed25d(0x172)][_0x2ed25d(0x17f)](_0x23e633);}[_0x30dbfa(0x1a8)](){const _0x40bfb2=_0x30dbfa;this[_0x40bfb2(0x1bb)][_0x40bfb2(0x199)]();}[_0x30dbfa(0x1a6)](_0x7fd897){const _0x32d3fd=_0x30dbfa;this[_0x32d3fd(0x192)][_0x32d3fd(0x1a6)](_0x7fd897);}[_0x30dbfa(0x1a1)](_0x580ba2){const _0x959f3c=_0x30dbfa;this[_0x959f3c(0x1bb)][_0x959f3c(0x197)](_0x580ba2);}[_0x30dbfa(0x1bc)](_0x295f33,_0x30f08a){const _0x568bc5=_0x30dbfa;this[_0x568bc5(0x16c)]=_0x295f33,this[_0x568bc5(0x172)][_0x568bc5(0x1bc)](_0x295f33,_0x30f08a);}[_0x30dbfa(0x18b)](_0x394a95){const _0x221c62=_0x30dbfa;(_0x394a95?this[_0x221c62(0x16c)][_0x221c62(0x16f)](_0x2c6024=>_0x2c6024['id']===_0x394a95['id']):null)?(this[_0x221c62(0x1b1)]=!0x0,this[_0x221c62(0x172)][_0x221c62(0x18b)](_0x394a95)):_0x394a95?.['id'][_0x221c62(0x1b2)](_0x221c62(0x1a4))?(this[_0x221c62(0x1b1)]=!0x0,this[_0x221c62(0x172)][_0x221c62(0x18b)](this[_0x221c62(0x16c)][0x0])):this[_0x221c62(0x1b1)]=!0x1;}[_0x30dbfa(0x1b3)](){const _0x28e829=_0x30dbfa;this[_0x28e829(0x172)][_0x28e829(0x1b3)]();}[_0x30dbfa(0x19f)](_0x5213e4){const _0x5b3039=_0x30dbfa;this[_0x5b3039(0x172)][_0x5b3039(0x19f)](_0x5213e4);}[_0x30dbfa(0x1be)](_0x428731,_0x9add84,_0x50664c,_0x45f229){const _0x1fdccd=_0x30dbfa;this[_0x1fdccd(0x192)][_0x1fdccd(0x1be)](_0x428731,_0x9add84,_0x50664c,_0x45f229);}[_0x30dbfa(0x185)](_0x242e7b){const _0x23b329=_0x30dbfa;this[_0x23b329(0x192)][_0x23b329(0x185)](_0x242e7b);}[_0x30dbfa(0x1ba)](){const _0x585917=_0x30dbfa;this[_0x585917(0x1bb)][_0x585917(0x1b8)]();}}class ws extends _0x25cd50{constructor(_0xcea9c2){const _0x287791=_0x30dbfa;super(_0xcea9c2);const _0xc5d5c7=new _0xa61d46(_0xcea9c2);_0xc5d5c7[_0x287791(0x1a2)]({'label':_0x1c68ad(this[_0x287791(0x18c)],_0x287791(0x182)),'withText':!0x0,'class':[_0x287791(0x171)],'tooltip':''}),_0xc5d5c7[_0x287791(0x17b)](_0x287791(0x178))['to'](this,_0x287791(0x1a0)),this[_0x287791(0x1bd)]({'tag':_0x287791(0x17c),'attributes':{'class':['ck',_0x287791(0x19b)]},'children':[{'tag':'p','children':[{'text':_0x1c68ad(this[_0x287791(0x18c)],_0x287791(0x19a))+'\x20'},_0xc5d5c7]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fe30c=_0x10a8;(function(_0x5b47db,_0x3fd197){const _0x27fd0f=_0x10a8,_0x599c39=_0x5b47db();while(!![]){try{const _0x3a3db5=-parseInt(_0x27fd0f(0x1e0))/0x1*(parseInt(_0x27fd0f(0x1f4))/0x2)+-parseInt(_0x27fd0f(0x208))/0x3*(parseInt(_0x27fd0f(0x201))/0x4)+parseInt(_0x27fd0f(0x224))/0x5*(-parseInt(_0x27fd0f(0x20f))/0x6)+parseInt(_0x27fd0f(0x1fa))/0x7+parseInt(_0x27fd0f(0x1f3))/0x8+-parseInt(_0x27fd0f(0x1de))/0x9*(-parseInt(_0x27fd0f(0x212))/0xa)+-parseInt(_0x27fd0f(0x1ea))/0xb*(-parseInt(_0x27fd0f(0x1db))/0xc);if(_0x3a3db5===_0x3fd197)break;else _0x599c39['push'](_0x599c39['shift']());}catch(_0xf51831){_0x599c39['push'](_0x599c39['shift']());}}}(_0x222e,0x5272d));import{CKEditorError as _0x16f5ce,logWarning as _0x3bca21,scrollViewportToShowTarget as _0x2326f9}from'ckeditor5/src/utils.js';import{View as _0x5a29dd}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x262a57}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x33ebb9}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x53eca5}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x16fa94}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x2a27be}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x1cfb47}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x2aeb60}from'../../aicore/utils/scrollmanager.js';function _0x222e(){const _0x40b19b=['user-message','1077241mkJKIf','aiFeed','options','ck-ai-chat__feed','add','isVisible','bindTemplate','_bodyCollection','getItemById','187800fvdctl','2FSOhvD','extendTemplate','getPartView','element','isLoadingSkeletonVisible','stopAutoScroll','218043PJLgnk','ai-chat-feed-view-item-not-a-reply-item','delegate','_createFeedItems','render','_setupTemplate','markItemAsDone','3964KZlCco','ai-chat-feed-view-item-not-found','markAsDone','ck-hidden','getItemIds','ck-ai-chat__loader','startAutoScroll','1530NzhPPl','bind','isPending','div','ck-ai-chat__loader-text','updateWebSources','updateContent','60hMtwYY','ai-chat-feed-view-item-not-a-suggestion-item','ai-reply','5283770vvtafK','remove','scrollToSuggestion','setLoadingMessage','locale','_createTemplateChildren','updateSuggestionPartState','includes','updateSuggestionItem','clear','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','stop','toggleLoadingSkeleton','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','map','span','setTemplate','scrollManager','36705cHPXbQ','removeItem','loadingMessage','set','createCollection','_createLoaderChildren','find','interaction-header','destroy','updatePartState','60VIwsxl','children','start','9GqTsCG','ai-suggestion-reply','156127zuBrqi','addItem','_createFeedLoader','updateSources','isTrackChangesOn','_createSkeletonLoader','updateReplyItem','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ck-ai-chat__feed__items'];_0x222e=function(){return _0x40b19b;};return _0x222e();}import{AISkeletonView as _0x155f07,SKELETON_DEFINITIONS as _0x38ca68}from'../../aicore/ui/aiskeleton.js';function _0x10a8(_0xd52190,_0x1156dd){const _0x222e82=_0x222e();return _0x10a8=function(_0x10a869,_0x2637d8){_0x10a869=_0x10a869-0x1d7;let _0x28d087=_0x222e82[_0x10a869];return _0x28d087;},_0x10a8(_0xd52190,_0x1156dd);}import{AISpinnerView as _0x3964da}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x5a29dd{[_0x1fe30c(0x1dc)];[_0x1fe30c(0x223)];[_0x1fe30c(0x1f1)];constructor(_0xec4995,_0x574da7){const _0x3ac603=_0x1fe30c;super(_0xec4995),this[_0x3ac603(0x1f1)]=_0x574da7,this[_0x3ac603(0x227)](_0x3ac603(0x20a),!0x1),this[_0x3ac603(0x227)](_0x3ac603(0x226),''),this[_0x3ac603(0x227)](_0x3ac603(0x1f8),!0x1),this[_0x3ac603(0x227)](_0x3ac603(0x1e4),!0x1),this[_0x3ac603(0x1dc)]=this[_0x3ac603(0x228)](),this[_0x3ac603(0x1dc)][_0x3ac603(0x1fc)](..._0x262a57)['to'](this),this[_0x3ac603(0x1ff)]();}[_0x1fe30c(0x1fe)](){const _0x332c9e=_0x1fe30c;super[_0x332c9e(0x1fe)](),this[_0x332c9e(0x223)]=new _0x2aeb60(this[_0x332c9e(0x1f7)]);}[_0x1fe30c(0x1d9)](){const _0x4fa50e=_0x1fe30c;super[_0x4fa50e(0x1d9)](),this[_0x4fa50e(0x223)][_0x4fa50e(0x1d9)]();}[_0x1fe30c(0x21b)](){const _0x1a20f6=_0x1fe30c;this[_0x1a20f6(0x1dc)][_0x1a20f6(0x21b)]();}[_0x1fe30c(0x1e1)](_0x58501b,_0x569ef9){const _0x49320f=_0x1fe30c;let _0x231770;_0x49320f(0x211)===_0x58501b?_0x231770=new _0x53eca5(this[_0x49320f(0x216)],_0x569ef9):_0x49320f(0x1df)===_0x58501b?(_0x231770=new _0x33ebb9(this[_0x49320f(0x216)],_0x569ef9),_0x231770[_0x49320f(0x209)](_0x49320f(0x1e4))['to'](this,_0x49320f(0x1e4))):_0x231770=_0x49320f(0x1e9)===_0x58501b?new _0x16fa94(this[_0x49320f(0x216)],_0x569ef9,this[_0x49320f(0x1f1)]):_0x49320f(0x1d8)===_0x58501b?new _0x1cfb47(this[_0x49320f(0x216)],_0x569ef9):new _0x2a27be(_0x569ef9),this[_0x49320f(0x1dc)][_0x49320f(0x1ee)](_0x231770);}async[_0x1fe30c(0x1e6)]({id:_0x1adf0b,parsedContent:_0x35883d,renderingStrategy:_0x3d0981,abortSignal:_0x1b3530}){const _0x57d31b=_0x1fe30c,_0x13b01f=this[_0x57d31b(0x1f2)](_0x1adf0b);if(!(_0x13b01f instanceof _0x53eca5))throw new _0x16f5ce(_0x57d31b(0x1fb),null,{'itemView':_0x13b01f,'id':_0x1adf0b,'parsedContent':_0x35883d});await _0x13b01f[_0x57d31b(0x20e)]({'parsedContent':_0x35883d,'renderingStrategy':_0x3d0981,'abortSignal':_0x1b3530});}async[_0x1fe30c(0x20d)](_0x69a7c7,_0x4560f4){const _0x91ed74=_0x1fe30c,_0x83a387=this[_0x91ed74(0x1f2)](_0x69a7c7);if(_0x83a387 instanceof _0x33ebb9)_0x83a387[_0x91ed74(0x1e3)](_0x4560f4);else{if(!(_0x83a387 instanceof _0x53eca5))throw new _0x16f5ce(_0x91ed74(0x1e7),null,{'itemView':_0x83a387,'id':_0x69a7c7,'sources':_0x4560f4});_0x83a387[_0x91ed74(0x1e3)](_0x4560f4);}}async[_0x1fe30c(0x21a)]({id:_0x174002,parts:_0x361d3a,renderingStrategy:_0x51c268,abortSignal:_0x29d023}){const _0xd09857=_0x1fe30c,_0x55b2a8=this[_0xd09857(0x1f2)](_0x174002);if(!(_0x55b2a8 instanceof _0x33ebb9))throw new _0x16f5ce(_0xd09857(0x210),null,{'itemView':_0x55b2a8,'id':_0x174002,'parts':_0x361d3a});await _0x55b2a8[_0xd09857(0x20e)]({'parts':_0x361d3a,'renderingStrategy':_0x51c268,'abortSignal':_0x29d023});}[_0x1fe30c(0x218)]({id:_0x53f7ee,index:_0x3e9886,state:_0x27cada}){const _0x31dd61=_0x1fe30c,_0x20e09f=this[_0x31dd61(0x1f2)](_0x53f7ee);if(!(_0x20e09f instanceof _0x33ebb9))throw new _0x16f5ce(_0x31dd61(0x210),this,{'id':_0x53f7ee});_0x20e09f[_0x31dd61(0x1da)](_0x3e9886,_0x27cada);}[_0x1fe30c(0x200)](_0x202a9c){const _0x395266=_0x1fe30c;this[_0x395266(0x1f2)](_0x202a9c)[_0x395266(0x203)]();}[_0x1fe30c(0x205)](){const _0x5e0053=_0x1fe30c;return this[_0x5e0053(0x1dc)][_0x5e0053(0x220)](_0xb6f32e=>_0xb6f32e[_0x5e0053(0x1ec)]['id']);}[_0x1fe30c(0x225)](_0x10240c){const _0x41eaab=_0x1fe30c;this[_0x41eaab(0x1dc)][_0x41eaab(0x213)](this[_0x41eaab(0x1f2)](_0x10240c));}[_0x1fe30c(0x214)](_0x52d9f3,_0x619bef){const _0x23cc57=_0x1fe30c,_0x293a8a=this[_0x23cc57(0x1f2)](_0x52d9f3);if(!(_0x293a8a instanceof _0x33ebb9))return void _0x3bca21(_0x23cc57(0x21f),{'replyId':_0x52d9f3,'partIndex':_0x619bef});const _0x2ecc23=_0x293a8a[_0x23cc57(0x1f6)](_0x619bef);_0x2ecc23?_0x2326f9({'target':_0x2ecc23[_0x23cc57(0x1f7)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x3bca21(_0x23cc57(0x21c),{'replyId':_0x52d9f3,'partIndex':_0x619bef});}[_0x1fe30c(0x1ff)](){const _0x3649dc=_0x1fe30c;this[_0x3649dc(0x222)]({'tag':_0x3649dc(0x20b),'attributes':{'class':['ck',_0x3649dc(0x1ed)]},'children':this[_0x3649dc(0x217)]()});}[_0x1fe30c(0x217)](){const _0x24131e=_0x1fe30c,_0x544804=this[_0x24131e(0x1e5)]();return[this[_0x24131e(0x1fd)](),_0x544804,this[_0x24131e(0x1e2)]()];}[_0x1fe30c(0x1e5)](){const _0x4558ba=_0x1fe30c,_0x590bef=new _0x155f07(this[_0x4558ba(0x216)],_0x38ca68[_0x4558ba(0x1eb)]);return _0x590bef[_0x4558ba(0x1f5)]({'attributes':{'class':[this[_0x4558ba(0x1f0)]['if'](_0x4558ba(0x1f8),_0x4558ba(0x204),_0x4388be=>!_0x4388be)]}}),_0x590bef;}[_0x1fe30c(0x1fd)](){const _0x4f9f05=_0x1fe30c,_0x775031=new _0x5a29dd(this[_0x4f9f05(0x216)]);return _0x775031[_0x4f9f05(0x222)]({'tag':_0x4f9f05(0x20b),'attributes':{'class':['ck',_0x4f9f05(0x1e8),this[_0x4f9f05(0x1f0)]['if'](_0x4f9f05(0x1f8),_0x4f9f05(0x204))]},'children':this[_0x4f9f05(0x1dc)]}),_0x775031;}[_0x1fe30c(0x1e2)](){const _0x39d0dc=_0x1fe30c,_0x36797a=new _0x5a29dd(this[_0x39d0dc(0x216)]);return _0x36797a[_0x39d0dc(0x222)]({'tag':_0x39d0dc(0x20b),'attributes':{'class':['ck',_0x39d0dc(0x206),this[_0x39d0dc(0x1f0)]['if'](_0x39d0dc(0x20a),_0x39d0dc(0x204),_0x7ebb68=>!_0x7ebb68)]},'children':this[_0x39d0dc(0x229)]()}),_0x36797a;}[_0x1fe30c(0x229)](){const _0x4e55e3=_0x1fe30c,_0xf018b6=new _0x3964da();return _0xf018b6[_0x4e55e3(0x1ef)]=!0x0,[_0xf018b6,{'tag':_0x4e55e3(0x221),'attributes':{'class':['ck',_0x4e55e3(0x20c)]},'children':[{'text':this[_0x4e55e3(0x1f0)]['to'](_0x4e55e3(0x226))}]}];}[_0x1fe30c(0x1f2)](_0x184ca0){const _0x535913=_0x1fe30c,_0x3b4a17=this[_0x535913(0x1dc)][_0x535913(0x1d7)](_0x58f8fe=>_0x58f8fe[_0x535913(0x1ec)]['id'][_0x535913(0x219)](_0x184ca0));if(!_0x3b4a17)throw new _0x16f5ce(_0x535913(0x202),this,{'id':_0x184ca0});return _0x3b4a17;}[_0x1fe30c(0x215)](_0x5cdc1e){const _0x3f5c29=_0x1fe30c;this[_0x3f5c29(0x227)](_0x3f5c29(0x226),_0x5cdc1e);}[_0x1fe30c(0x21e)](_0x6eceee){const _0x2cdc43=_0x1fe30c;this[_0x2cdc43(0x227)](_0x2cdc43(0x1f8),_0x6eceee);}[_0x1fe30c(0x207)](){const _0x28d3c7=_0x1fe30c;this[_0x28d3c7(0x223)][_0x28d3c7(0x1dd)]();}[_0x1fe30c(0x1f9)](){const _0x778fda=_0x1fe30c;this[_0x778fda(0x223)][_0x778fda(0x21d)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2abac7=_0x5dbe;(function(_0x56fcb5,_0x4be5c0){const _0x258395=_0x5dbe,_0x110ce7=_0x56fcb5();while(!![]){try{const _0x5bcf30=-parseInt(_0x258395(0x168))/0x1*(parseInt(_0x258395(0x159))/0x2)+-parseInt(_0x258395(0x166))/0x3+-parseInt(_0x258395(0x164))/0x4+parseInt(_0x258395(0x160))/0x5+parseInt(_0x258395(0x15f))/0x6+-parseInt(_0x258395(0x162))/0x7*(-parseInt(_0x258395(0x153))/0x8)+-parseInt(_0x258395(0x155))/0x9*(-parseInt(_0x258395(0x151))/0xa);if(_0x5bcf30===_0x4be5c0)break;else _0x110ce7['push'](_0x110ce7['shift']());}catch(_0x18c6a3){_0x110ce7['push'](_0x110ce7['shift']());}}}(_0x4498,0xa96f5));function _0x5dbe(_0x28b4c8,_0x16ee83){const _0x4498ad=_0x4498();return _0x5dbe=function(_0x5dbe79,_0x318f8f){_0x5dbe79=_0x5dbe79-0x150;let _0x3a578a=_0x4498ad[_0x5dbe79];return _0x3a578a;},_0x5dbe(_0x28b4c8,_0x16ee83);}import{ButtonView as _0x574015,FormHeaderView as _0x5e3054}from'ckeditor5/src/ui.js';import{IconPlus as _0x2e6767,IconAIChat as _0x38bf48}from'ckeditor5/src/icons.js';import{getTranslation as _0x12d53a}from'../../aicore/utils/common-translations.js';function _0x4498(){const _0x425d9e=['set','3043443WnLNBl','AI_CHAT_LABEL_NEW_CHAT','85Ncwlpq','fire','670wiXfCv','conversationStartButton','601768lDcdEQ','add','336771EZVTtU','startConversation','ck-ai-chat__start-conversation','AI_CHAT_HEADING','19570qPoOGd','isMaximized','_createStartConversationButton','children','execute','ck-ai-header\x20ck-ai-header_chat','2750052nbUidw','244965OgLzeW','resizeButton','49bqrNTv','locale','4002976HddUaf'];_0x4498=function(){return _0x425d9e;};return _0x4498();}import{createResizeButton as _0x2e6a59}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x5e3054{[_0x2abac7(0x152)];[_0x2abac7(0x161)];constructor(_0xe407d2,_0x467289){const _0x3cae73=_0x2abac7;super(_0xe407d2,{'label':_0x12d53a(_0xe407d2,_0x3cae73(0x158)),'class':_0x3cae73(0x15e),'icon':_0x38bf48}),this[_0x3cae73(0x165)](_0x3cae73(0x15a),!0x1),this[_0x3cae73(0x152)]=this[_0x3cae73(0x15b)](_0xe407d2),this[_0x3cae73(0x15c)][_0x3cae73(0x154)](this[_0x3cae73(0x152)]),_0x467289&&(this[_0x3cae73(0x161)]=_0x2e6a59(_0xe407d2,this),this[_0x3cae73(0x15c)][_0x3cae73(0x154)](this[_0x3cae73(0x161)]));}[_0x2abac7(0x15b)](_0x9d57fa){const _0x5363bf=_0x2abac7,_0x5c965b=new _0x574015(_0x9d57fa);return _0x5c965b[_0x5363bf(0x165)]({'label':_0x12d53a(this[_0x5363bf(0x163)],_0x5363bf(0x167)),'withText':!0x0,'icon':_0x2e6767,'class':_0x5363bf(0x157)}),_0x5c965b['on'](_0x5363bf(0x15d),()=>{const _0xda9c75=_0x5363bf;this[_0xda9c75(0x150)](_0xda9c75(0x156));}),_0x5c965b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x33965b=_0x4526;(function(_0x3442bd,_0x348df3){var _0x3f8a48=_0x4526,_0x540c2c=_0x3442bd();while(!![]){try{var _0x2e6f02=-parseInt(_0x3f8a48(0xa9))/0x1*(parseInt(_0x3f8a48(0x96))/0x2)+parseInt(_0x3f8a48(0xb0))/0x3+-parseInt(_0x3f8a48(0xac))/0x4*(parseInt(_0x3f8a48(0xa4))/0x5)+parseInt(_0x3f8a48(0xa0))/0x6*(parseInt(_0x3f8a48(0xa7))/0x7)+parseInt(_0x3f8a48(0x95))/0x8*(-parseInt(_0x3f8a48(0xad))/0x9)+parseInt(_0x3f8a48(0xae))/0xa+-parseInt(_0x3f8a48(0x9f))/0xb*(-parseInt(_0x3f8a48(0xa2))/0xc);if(_0x2e6f02===_0x348df3)break;else _0x540c2c['push'](_0x540c2c['shift']());}catch(_0x24aa15){_0x540c2c['push'](_0x540c2c['shift']());}}}(_0x37ec,0x8b9a0));import{View as _0x3bf72b,BodyCollection as _0x25774a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x4a12fb}from'../utils/eventnames.js';import{AIChatFeedView as _0x56bda8}from'./aichatfeedview.js';function _0x4526(_0x40763a,_0x87e77f){var _0x37ec1b=_0x37ec();return _0x4526=function(_0x4526f5,_0x40ae07){_0x4526f5=_0x4526f5-0x92;var _0x453a5b=_0x37ec1b[_0x4526f5];return _0x453a5b;},_0x4526(_0x40763a,_0x87e77f);}import{AIChatControlsView as _0x3b26ed}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x290181}from'./aichatheaderview.js';function _0x37ec(){var _0x2059d5=['div','2UetqRS','contextResourcesSearchInputVisibleFrom','ck-reset_all','1410504sIFARL','9CCQNVU','2753280YlHdHR','attachToDom','668454NHoAfD','ck-ai-chat','chatHeader','closeSourceResourceBalloon','3926264mNMSaJ','703730JcfSTl','chatFeed','detachFromDom','populateSourceResourceBalloon','delegate','showResizeButton','_bodyCollection','chatControls','ck-rounded-corners','11539SjBJBa','399984RQhFSi','uiLanguageDirection','20508MDSqBK','chatDisclaimer','15YtYqYu','setTemplate','destroy','56tDwohl'];_0x37ec=function(){return _0x2059d5;};return _0x37ec();}import{AIDisclaimerView as _0x432aae}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x3bf72b{[_0x33965b(0x93)];[_0x33965b(0x97)];[_0x33965b(0x9d)];[_0x33965b(0xa3)];[_0x33965b(0x9c)];constructor(_0x29ec64,_0x4ccba8){var _0x5c4c33=_0x33965b;super(_0x29ec64),this[_0x5c4c33(0x9c)]=new _0x25774a(_0x29ec64),this[_0x5c4c33(0x9c)][_0x5c4c33(0xaf)](),this[_0x5c4c33(0x93)]=new _0x290181(_0x29ec64,_0x4ccba8[_0x5c4c33(0x9b)]),this[_0x5c4c33(0x93)][_0x5c4c33(0x9a)](..._0x4a12fb)['to'](this),this[_0x5c4c33(0x97)]=new _0x56bda8(_0x29ec64,this[_0x5c4c33(0x9c)]),this[_0x5c4c33(0x97)][_0x5c4c33(0x9a)](..._0x4a12fb)['to'](this),this[_0x5c4c33(0x9d)]=new _0x3b26ed(_0x29ec64,{'bodyCollection':this[_0x5c4c33(0x9c)],'contextResourcesSearchInputVisibleFrom':_0x4ccba8[_0x5c4c33(0xaa)]}),this[_0x5c4c33(0x9d)][_0x5c4c33(0x9a)](..._0x4a12fb)['to'](this),this[_0x5c4c33(0xa3)]=new _0x432aae(_0x29ec64),this[_0x5c4c33(0xa5)]({'tag':_0x5c4c33(0xa8),'attributes':{'class':['ck',_0x5c4c33(0xab),_0x5c4c33(0x92),_0x5c4c33(0x9e)],'dir':_0x29ec64[_0x5c4c33(0xa1)]},'children':[this[_0x5c4c33(0x93)],this[_0x5c4c33(0x97)],this[_0x5c4c33(0x9d)],this[_0x5c4c33(0xa3)]]});}[_0x33965b(0x99)](_0x56a39d,_0x12eaac,_0x404505,_0x5af1cd){var _0x3ca823=_0x33965b;this[_0x3ca823(0x9d)][_0x3ca823(0x99)](_0x56a39d,_0x12eaac,_0x404505,_0x5af1cd);}[_0x33965b(0x94)](_0x116b6a){var _0xd8b0fb=_0x33965b;this[_0xd8b0fb(0x9d)][_0xd8b0fb(0x94)](_0x116b6a);}[_0x33965b(0xa6)](){var _0x54fb65=_0x33965b;this[_0x54fb65(0x9c)][_0x54fb65(0x98)](),super[_0x54fb65(0xa6)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x15e7(_0x58b596,_0x49b6e0){const _0x30d5ef=_0x30d5();return _0x15e7=function(_0x15e7c3,_0x3c61f0){_0x15e7c3=_0x15e7c3-0x1a3;let _0x1900b7=_0x30d5ef[_0x15e7c3];return _0x1900b7;},_0x15e7(_0x58b596,_0x49b6e0);}const _0x9c7903=_0x15e7;(function(_0x4cdade,_0x43affc){const _0x5f48fa=_0x15e7,_0x4b9dad=_0x4cdade();while(!![]){try{const _0x2ec882=parseInt(_0x5f48fa(0x1b8))/0x1*(parseInt(_0x5f48fa(0x237))/0x2)+parseInt(_0x5f48fa(0x1f3))/0x3*(parseInt(_0x5f48fa(0x1b7))/0x4)+parseInt(_0x5f48fa(0x219))/0x5*(-parseInt(_0x5f48fa(0x1dc))/0x6)+parseInt(_0x5f48fa(0x1c2))/0x7*(parseInt(_0x5f48fa(0x1b5))/0x8)+-parseInt(_0x5f48fa(0x21b))/0x9*(-parseInt(_0x5f48fa(0x1c3))/0xa)+-parseInt(_0x5f48fa(0x22e))/0xb*(-parseInt(_0x5f48fa(0x1ec))/0xc)+-parseInt(_0x5f48fa(0x1af))/0xd;if(_0x2ec882===_0x43affc)break;else _0x4b9dad['push'](_0x4b9dad['shift']());}catch(_0x11013b){_0x4b9dad['push'](_0x4b9dad['shift']());}}}(_0x30d5,0xb8cb4));import{View as _0x205eec,BalloonPanelView as _0x359e33,ButtonView as _0x231815,clickOutsideHandler as _0x3fbf77}from'ckeditor5/src/ui.js';import{Collection as _0x3c2f0d}from'ckeditor5/src/utils.js';const dn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},bn=_0x9c7903(0x1d7);export class AIChatChipsOverflowManager{[_0x9c7903(0x1b0)];[_0x9c7903(0x1d4)];[_0x9c7903(0x21f)];[_0x9c7903(0x229)];[_0x9c7903(0x223)]=null;[_0x9c7903(0x1bc)]=null;[_0x9c7903(0x1d3)]=null;[_0x9c7903(0x1c8)];[_0x9c7903(0x1d6)]=null;[_0x9c7903(0x1ba)]=null;[_0x9c7903(0x1b4)]=!0x1;constructor(_0x4b7e48,_0x2c455a,_0x1bebff,_0x36763e,_0x5cc938){const _0x161c8f=_0x9c7903;this[_0x161c8f(0x1b0)]=_0x4b7e48,this[_0x161c8f(0x21f)]=_0x2c455a,this[_0x161c8f(0x1d4)]={...dn,..._0x1bebff,'cssClasses':{'controlsButton':'','calculationContainer':_0x161c8f(0x1fb),..._0x1bebff[_0x161c8f(0x1a9)]}},this[_0x161c8f(0x229)]=new _0x3c2f0d(),this[_0x161c8f(0x1c8)]=_0x36763e,this[_0x161c8f(0x1d6)]=_0x5cc938||null;}[_0x9c7903(0x1fe)](_0x2364ab){const _0x410cc3=_0x9c7903;this[_0x410cc3(0x1ba)]&&(this[_0x410cc3(0x1ba)][_0x410cc3(0x1ff)](),this[_0x410cc3(0x1ba)]=null),this[_0x410cc3(0x1d3)]=_0x2364ab,this[_0x410cc3(0x1a7)]();}get[_0x9c7903(0x1fc)](){const _0x536733=_0x9c7903;return this[_0x536733(0x223)];}get[_0x9c7903(0x1c0)](){const _0x34f785=_0x9c7903;return this[_0x34f785(0x229)];}[_0x9c7903(0x215)](){requestAnimationFrame(()=>{const _0x10d829=_0x15e7;this[_0x10d829(0x1be)]();});}[_0x9c7903(0x239)](){const _0x3e3f7f=_0x9c7903;this[_0x3e3f7f(0x223)]&&this[_0x3e3f7f(0x1bc)]&&(this[_0x3e3f7f(0x1ee)](),this[_0x3e3f7f(0x223)][_0x3e3f7f(0x1da)]=!0x0,this[_0x3e3f7f(0x1bc)][_0x3e3f7f(0x228)](),this[_0x3e3f7f(0x1bc)][_0x3e3f7f(0x1e4)]({'target':this[_0x3e3f7f(0x223)][_0x3e3f7f(0x1cf)],'limiter':document[_0x3e3f7f(0x20b)](_0x3e3f7f(0x1cb))}));}[_0x9c7903(0x1e8)](){const _0x5de340=_0x9c7903;this[_0x5de340(0x223)]&&this[_0x5de340(0x1bc)]&&(this[_0x5de340(0x223)][_0x5de340(0x1da)]=!0x1,this[_0x5de340(0x1bc)][_0x5de340(0x1ca)]());}[_0x9c7903(0x21d)](){const _0x4182a1=_0x9c7903;this[_0x4182a1(0x229)][_0x4182a1(0x21d)](),this[_0x4182a1(0x1e8)](),this[_0x4182a1(0x1e6)](),this[_0x4182a1(0x223)]&&(this[_0x4182a1(0x223)][_0x4182a1(0x1f2)]=''),this[_0x4182a1(0x1bc)]&&this[_0x4182a1(0x1bc)][_0x4182a1(0x1e7)][_0x4182a1(0x21d)]();}[_0x9c7903(0x224)](){const _0x3b44ed=_0x9c7903;this[_0x3b44ed(0x1ba)]&&(this[_0x3b44ed(0x1ba)][_0x3b44ed(0x1ff)](),this[_0x3b44ed(0x1ba)]=null),this[_0x3b44ed(0x223)]&&(this[_0x3b44ed(0x223)][_0x3b44ed(0x224)](),this[_0x3b44ed(0x223)]=null),this[_0x3b44ed(0x1bc)]&&(this[_0x3b44ed(0x1bc)][_0x3b44ed(0x224)](),this[_0x3b44ed(0x1bc)]=null);}[_0x9c7903(0x1be)](){const _0xdf0117=_0x9c7903;if(!this[_0xdf0117(0x1d3)])return;if(!this[_0xdf0117(0x200)]())return void(this[_0xdf0117(0x1b4)]=!0x0);this[_0xdf0117(0x1b4)]=!0x1;const _0x122510=[...this[_0xdf0117(0x21f)],...this[_0xdf0117(0x229)]],_0x23e119=this[_0xdf0117(0x21a)](),_0x5acf12=this[_0xdf0117(0x1f6)](_0x23e119,_0x122510),_0x496f75=_0x23e119[_0xdf0117(0x238)];_0x496f75&&this[_0xdf0117(0x1b6)](_0x496f75),_0x23e119[_0xdf0117(0x233)](),this[_0xdf0117(0x1ef)](_0x122510,_0x5acf12);}[_0x9c7903(0x218)](){const _0x5b7e76=_0x9c7903;this[_0x5b7e76(0x223)]=this[_0x5b7e76(0x1bb)](),this[_0x5b7e76(0x1bc)]=this[_0x5b7e76(0x1c1)](),this[_0x5b7e76(0x223)][_0x5b7e76(0x1f7)](),this[_0x5b7e76(0x1d3)][_0x5b7e76(0x217)](this[_0x5b7e76(0x223)][_0x5b7e76(0x1cf)]),this[_0x5b7e76(0x223)]['on'](_0x5b7e76(0x1ac),()=>{const _0x1e00c0=_0x5b7e76;this[_0x1e00c0(0x1e1)]();}),_0x3fbf77({'emitter':this[_0x5b7e76(0x1bc)],'contextElements':[this[_0x5b7e76(0x1bc)][_0x5b7e76(0x1cf)],this[_0x5b7e76(0x223)][_0x5b7e76(0x1cf)]],'callback':()=>this[_0x5b7e76(0x1e8)](),'activator':()=>this[_0x5b7e76(0x223)][_0x5b7e76(0x1da)]});}[_0x9c7903(0x1bb)](){const _0xcd64e5=_0x9c7903,_0x53a0c9=new _0x231815(this[_0xcd64e5(0x1b0)]);_0x53a0c9[_0xcd64e5(0x1e0)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0xe98797=[this[_0xcd64e5(0x1d4)][_0xcd64e5(0x1a9)][_0xcd64e5(0x1ce)]];return this[_0xcd64e5(0x1d4)][_0xcd64e5(0x1a9)][_0xcd64e5(0x210)]&&_0xe98797[_0xcd64e5(0x205)](this[_0xcd64e5(0x1d4)][_0xcd64e5(0x1a9)][_0xcd64e5(0x210)]),_0x53a0c9[_0xcd64e5(0x227)]({'attributes':{'class':_0xe98797}}),_0x53a0c9;}[_0x9c7903(0x1c1)](){const _0x4bca73=_0x9c7903,_0x186fad=new _0x359e33(this[_0x4bca73(0x1b0)]);return _0x186fad[_0x4bca73(0x227)]({'attributes':{'class':this[_0x4bca73(0x1d4)][_0x4bca73(0x1a9)][_0x4bca73(0x1fd)]}}),this[_0x4bca73(0x1c8)][_0x4bca73(0x1a8)](_0x186fad),_0x186fad;}[_0x9c7903(0x1ee)](){const _0x56b28e=_0x9c7903;if(this[_0x56b28e(0x1bc)]&&(this[_0x56b28e(0x1bc)][_0x56b28e(0x1e7)][_0x56b28e(0x21d)](),this[_0x56b28e(0x229)][_0x56b28e(0x1a4)]>0x0)){this[_0x56b28e(0x229)][_0x56b28e(0x1f8)](_0x256fcc=>{const _0x4f2e4e=_0x56b28e;_0x256fcc[_0x4f2e4e(0x1ab)]();});const _0x2ef39b=new _0x205eec(this[_0x56b28e(0x1b0)]);_0x2ef39b[_0x56b28e(0x230)]({'tag':_0x56b28e(0x1d1),'attributes':{'class':this[_0x56b28e(0x1d4)][_0x56b28e(0x1a9)][_0x56b28e(0x1b3)]},'children':this[_0x56b28e(0x229)]}),this[_0x56b28e(0x1bc)][_0x56b28e(0x1e7)][_0x56b28e(0x1a8)](_0x2ef39b);}}[_0x9c7903(0x1e1)](){const _0x4ecee0=_0x9c7903;this[_0x4ecee0(0x223)][_0x4ecee0(0x1da)]?this[_0x4ecee0(0x1e8)]():this[_0x4ecee0(0x239)]();}[_0x9c7903(0x1e6)](){const _0x49fd7d=_0x9c7903,_0x35c278=this[_0x49fd7d(0x229)][_0x49fd7d(0x1a4)]>0x0;this[_0x49fd7d(0x223)]?.[_0x49fd7d(0x1cf)]&&(this[_0x49fd7d(0x223)][_0x49fd7d(0x1cf)][_0x49fd7d(0x222)][_0x49fd7d(0x1db)]=_0x35c278?'':_0x49fd7d(0x1f4));}[_0x9c7903(0x213)](){const _0x4b4d1a=_0x9c7903;this[_0x4b4d1a(0x223)]?.[_0x4b4d1a(0x1da)]&&this[_0x4b4d1a(0x1bc)]?.[_0x4b4d1a(0x1f5)]&&this[_0x4b4d1a(0x223)][_0x4b4d1a(0x1cf)]&&this[_0x4b4d1a(0x1bc)][_0x4b4d1a(0x1e4)]({'target':this[_0x4b4d1a(0x223)][_0x4b4d1a(0x1cf)],'limiter':document[_0x4b4d1a(0x20b)](_0x4b4d1a(0x1cb))});}[_0x9c7903(0x1cd)](_0x1e9aab){const _0x24a417=_0x9c7903,_0x1030ca=this[_0x24a417(0x1d3)]?.[_0x24a417(0x1b2)][_0x24a417(0x1d8)]()||_0x24a417(0x1d1),_0x52ad07=this[_0x24a417(0x1d3)]?.[_0x24a417(0x1d5)];if(_0x52ad07){const _0x3bda70=_0x52ad07[0x0]||'',_0x269b5e=_0x1e9aab[_0x24a417(0x20b)]('.'+_0x3bda70),_0x6f07ea=_0x1e9aab[_0x24a417(0x20b)](_0x1030ca);return _0x269b5e||_0x6f07ea||_0x1e9aab;}return _0x1e9aab[_0x24a417(0x20b)](_0x1030ca)||_0x1e9aab;}[_0x9c7903(0x225)](){const _0x5090b1=_0x9c7903,_0x2a610b=this[_0x5090b1(0x1d6)]?.[_0x5090b1(0x1cf)]||this[_0x5090b1(0x1d3)];if(!_0x2a610b)return bn;const _0x1095a1=window[_0x5090b1(0x209)](_0x2a610b)[_0x5090b1(0x1f0)];if(_0x5090b1(0x1f9)===_0x1095a1||_0x5090b1(0x235)===_0x1095a1||!_0x1095a1){const _0x191c5e=_0x2a610b[_0x5090b1(0x221)];if(_0x191c5e){const _0x4cb4f8=window[_0x5090b1(0x209)](_0x191c5e);return _0x5090b1(0x1f9)!==_0x4cb4f8[_0x5090b1(0x1f0)]?_0x4cb4f8[_0x5090b1(0x1f0)]:bn;}return bn;}return _0x1095a1;}[_0x9c7903(0x212)](_0x50749f,_0x8fb4ff){const _0x3e6084=_0x9c7903;this[_0x3e6084(0x1d4)][_0x3e6084(0x1a9)][_0x3e6084(0x207)]&&_0x50749f[_0x3e6084(0x1d5)][_0x3e6084(0x1a8)](this[_0x3e6084(0x1d4)][_0x3e6084(0x1a9)][_0x3e6084(0x207)]),_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x1f0)]=_0x8fb4ff,_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x206)]=_0x3e6084(0x1c7),_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x22d)]=_0x3e6084(0x203),_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x1d2)]=_0x3e6084(0x203),_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x1a3)]='0',_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x22a)]=_0x3e6084(0x1f4),_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x1ea)]='-1',_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x1b1)]=_0x3e6084(0x204),_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x1db)]=_0x3e6084(0x1b9),_0x50749f[_0x3e6084(0x222)][_0x3e6084(0x216)]=_0x3e6084(0x1e3);}[_0x9c7903(0x1b6)](_0x3eacc3){const _0x540f21=_0x9c7903;_0x3eacc3[_0x540f21(0x1f8)](({element:_0x22288c,originalDisplay:_0x30da8c,originalVisibility:_0x153380})=>{const _0x2a8455=_0x540f21;_0x22288c[_0x2a8455(0x222)][_0x2a8455(0x1db)]=_0x30da8c,_0x22288c[_0x2a8455(0x222)][_0x2a8455(0x1b1)]=_0x153380;});}[_0x9c7903(0x1de)](_0x5004f5){const _0x51da38=_0x9c7903,_0x3bd94=[];let _0x121e17=_0x5004f5;for(;_0x121e17&&_0x121e17!==document[_0x51da38(0x1dd)];){const _0xb9a42a=window[_0x51da38(0x209)](_0x121e17);_0x51da38(0x1f4)!==_0xb9a42a[_0x51da38(0x1db)]&&_0x51da38(0x20e)!==_0xb9a42a[_0x51da38(0x1b1)]||(_0x3bd94[_0x51da38(0x205)]({'element':_0x121e17,'originalDisplay':_0x121e17[_0x51da38(0x222)][_0x51da38(0x1db)],'originalVisibility':_0x121e17[_0x51da38(0x222)][_0x51da38(0x1b1)]}),_0x121e17[_0x51da38(0x222)][_0x51da38(0x1db)]=_0x51da38(0x1bd),_0x121e17[_0x51da38(0x222)][_0x51da38(0x1b1)]=_0x51da38(0x1c4)),_0x121e17=_0x121e17[_0x51da38(0x221)];}return _0x3bd94;}[_0x9c7903(0x1a5)](){const _0x286436=_0x9c7903;let _0x351433,_0x328883;return this[_0x286436(0x1d6)]?.[_0x286436(0x1cf)]?(_0x351433=this[_0x286436(0x1d6)][_0x286436(0x1cf)][_0x286436(0x20d)](!0x0),_0x328883=this[_0x286436(0x1cd)](_0x351433)):(_0x351433=document[_0x286436(0x1ad)](_0x286436(0x1d1)),_0x328883=_0x351433),{'calculationContainer':_0x351433,'targetContainer':_0x328883};}[_0x9c7903(0x21a)](){const _0x1276c4=_0x9c7903,{calculationContainer:_0x2e0625,targetContainer:_0x1c00a3}=this[_0x1276c4(0x1a5)](),_0x5da16f=this[_0x1276c4(0x225)]();this[_0x1276c4(0x212)](_0x2e0625,_0x5da16f);const _0x53e1f8=this[_0x1276c4(0x1d6)]?.[_0x1276c4(0x1cf)]||this[_0x1276c4(0x1d3)],_0x271323=_0x53e1f8?.[_0x1276c4(0x221)];_0x271323?_0x271323[_0x1276c4(0x217)](_0x2e0625):document[_0x1276c4(0x1dd)][_0x1276c4(0x217)](_0x2e0625),_0x2e0625[_0x1276c4(0x1fa)]=_0x1c00a3;const _0xf17bc=this[_0x1276c4(0x1de)](_0x271323||null);return _0x2e0625[_0x1276c4(0x1ed)],_0x2e0625[_0x1276c4(0x238)]=_0xf17bc,_0x2e0625;}[_0x9c7903(0x1f6)](_0x1b7357,_0x40dabd){const _0x2efb42=_0x9c7903,_0x429850=_0x1b7357[_0x2efb42(0x1fa)]||_0x1b7357,_0x5e5dbc=[],{rowCount:_0x54311d}=this[_0x2efb42(0x1d0)](_0x429850,_0x40dabd);if(_0x54311d<=this[_0x2efb42(0x1d4)][_0x2efb42(0x1aa)])return _0x5e5dbc;const _0x13d641=_0x40dabd[_0x2efb42(0x1f1)]();for(;_0x13d641[_0x2efb42(0x1a4)]>0x0;){if(this[_0x2efb42(0x1eb)](_0x1b7357,_0x429850,_0x13d641)){const _0x33b68f=_0x40dabd[_0x2efb42(0x231)](_0x25e9db=>!_0x13d641[_0x2efb42(0x201)](_0x25e9db));_0x5e5dbc[_0x2efb42(0x205)](..._0x33b68f);break;}if(!_0x13d641[_0x2efb42(0x214)]())break;}return _0x5e5dbc;}[_0x9c7903(0x1d0)](_0x3b69f9,_0x3f26e4){const _0x251bce=_0x9c7903;_0x3b69f9[_0x251bce(0x226)]='',_0x3f26e4[_0x251bce(0x1f8)](_0x1ccf98=>{const _0x4fd6e1=_0x251bce;if(_0x1ccf98[_0x4fd6e1(0x1cf)]){const _0x148d59=_0x1ccf98[_0x4fd6e1(0x1cf)][_0x4fd6e1(0x20d)](!0x0);_0x3b69f9[_0x4fd6e1(0x217)](_0x148d59);}}),_0x3b69f9[_0x251bce(0x1ed)];const _0x4c8fde=_0x3b69f9[_0x251bce(0x22f)],_0x3c198d=[];return Array[_0x251bce(0x1bf)](_0x4c8fde)[_0x251bce(0x1f8)](_0x16d005=>{const _0x3cd275=_0x251bce,_0x116565=_0x16d005[_0x3cd275(0x220)]()[_0x3cd275(0x22d)];_0x3c198d[_0x3cd275(0x1ae)](_0xcb327b=>Math[_0x3cd275(0x1e2)](_0xcb327b-_0x116565)<this[_0x3cd275(0x1d4)][_0x3cd275(0x21c)])||_0x3c198d[_0x3cd275(0x205)](_0x116565);}),{'rowCount':_0x3c198d[_0x251bce(0x1a4)]};}[_0x9c7903(0x232)](){const _0x3efe20=_0x9c7903,_0x25c5dd=document[_0x3efe20(0x1ad)](_0x3efe20(0x1d9));return _0x25c5dd[_0x3efe20(0x1c5)]=this[_0x3efe20(0x1d4)][_0x3efe20(0x1a9)][_0x3efe20(0x1ce)],this[_0x3efe20(0x1d4)][_0x3efe20(0x1a9)][_0x3efe20(0x210)]&&_0x25c5dd[_0x3efe20(0x1d5)][_0x3efe20(0x1a8)](this[_0x3efe20(0x1d4)][_0x3efe20(0x1a9)][_0x3efe20(0x210)]),_0x25c5dd[_0x3efe20(0x20c)]=_0x3efe20(0x21e),_0x25c5dd;}[_0x9c7903(0x1eb)](_0xcb27e,_0x58c311,_0x326f73){const _0x3b2015=_0x9c7903;this[_0x3b2015(0x1d0)](_0x58c311,_0x326f73);const _0x5c5c0f=this[_0x3b2015(0x232)]();_0xcb27e[_0x3b2015(0x217)](_0x5c5c0f),_0xcb27e[_0x3b2015(0x1ed)];const _0x2e842b=[..._0x58c311[_0x3b2015(0x22f)],_0x5c5c0f],_0x7bcff2=[];_0x2e842b[_0x3b2015(0x1f8)](_0x65701e=>{const _0x50fc69=_0x3b2015,_0x2a4ea8=_0x65701e[_0x50fc69(0x220)]()[_0x50fc69(0x22d)];_0x7bcff2[_0x50fc69(0x1ae)](_0x57dd11=>Math[_0x50fc69(0x1e2)](_0x57dd11-_0x2a4ea8)<this[_0x50fc69(0x1d4)][_0x50fc69(0x21c)])||_0x7bcff2[_0x50fc69(0x205)](_0x2a4ea8);});const _0x40ca99=_0x7bcff2[_0x3b2015(0x1a4)];return _0x5c5c0f[_0x3b2015(0x233)](),_0x40ca99<=this[_0x3b2015(0x1d4)][_0x3b2015(0x1aa)];}[_0x9c7903(0x22c)](_0x1053a7,_0x3b106f){const _0x4b0e5d=_0x9c7903;this[_0x4b0e5d(0x21f)][_0x4b0e5d(0x21d)](),this[_0x4b0e5d(0x229)][_0x4b0e5d(0x21d)](),_0x1053a7[_0x4b0e5d(0x1f8)](_0x17030e=>{const _0x5a9375=_0x4b0e5d;_0x3b106f[_0x5a9375(0x201)](_0x17030e)?this[_0x5a9375(0x229)][_0x5a9375(0x1a8)](_0x17030e):this[_0x5a9375(0x21f)][_0x5a9375(0x1a8)](_0x17030e);});}[_0x9c7903(0x202)](_0x626893){const _0x3279c6=_0x9c7903;if(_0x626893>0x0&&!this[_0x3279c6(0x223)]&&this[_0x3279c6(0x218)](),_0x626893>0x0&&this[_0x3279c6(0x223)]){const _0x510d96=''+this[_0x3279c6(0x1d4)][_0x3279c6(0x1c6)]+(_0x626893<0x63?_0x626893:'99');this[_0x3279c6(0x223)][_0x3279c6(0x1f2)]=_0x510d96;}this[_0x3279c6(0x1ee)](),this[_0x3279c6(0x1e6)](),this[_0x3279c6(0x213)]();}[_0x9c7903(0x1ef)](_0x1364fb,_0x5e7eca){const _0x5ce6f1=_0x9c7903;this[_0x5ce6f1(0x22c)](_0x1364fb,_0x5e7eca),this[_0x5ce6f1(0x202)](_0x5e7eca[_0x5ce6f1(0x1a4)]);}[_0x9c7903(0x1a7)](){const _0x5b7f06=_0x9c7903;this[_0x5b7f06(0x1d3)]&&_0x5b7f06(0x1cc)!=typeof IntersectionObserver&&(this[_0x5b7f06(0x1ba)]=new IntersectionObserver(_0x80c32d=>{const _0x3b67f1=_0x5b7f06;_0x80c32d[0x0][_0x3b67f1(0x1df)]&&this[_0x3b67f1(0x1b4)]&&requestAnimationFrame(()=>{const _0x2c4ab0=_0x3b67f1;this[_0x2c4ab0(0x1be)]();});},{'threshold':0.01,'rootMargin':_0x5b7f06(0x1a6)}),this[_0x5b7f06(0x1ba)][_0x5b7f06(0x211)](this[_0x5b7f06(0x1d3)]));}[_0x9c7903(0x200)](){const _0x1a4d74=_0x9c7903;if(!this[_0x1a4d74(0x1d3)])return!0x1;if(!this[_0x1a4d74(0x1d3)][_0x1a4d74(0x20a)])return!0x1;const _0x2a9cd5=this[_0x1a4d74(0x1d3)][_0x1a4d74(0x220)]();if(0x0===_0x2a9cd5[_0x1a4d74(0x1f0)]||0x0===_0x2a9cd5[_0x1a4d74(0x1c9)])return!0x1;const _0xb7db23=window[_0x1a4d74(0x208)]||document[_0x1a4d74(0x22b)][_0x1a4d74(0x1e9)],_0x4800ba=window[_0x1a4d74(0x20f)]||document[_0x1a4d74(0x22b)][_0x1a4d74(0x236)],_0x2aa5fd=0xc8;return _0x2a9cd5[_0x1a4d74(0x234)]>=-0xc8&&_0x2a9cd5[_0x1a4d74(0x22d)]<=_0xb7db23+_0x2aa5fd&&_0x2a9cd5[_0x1a4d74(0x1e5)]>=-0xc8&&_0x2a9cd5[_0x1a4d74(0x1d2)]<=_0x4800ba+_0x2aa5fd;}}function _0x30d5(){const _0x27c971=['_createMockButton','remove','bottom','0px','clientWidth','85112AogiSq','_ancestorsToRestore','showBalloonPanel','opacity','length','_createContainerElements','50px','_setupVisibilityObserver','add','cssClasses','maxVisibleRows','disableAnimationOnEnter','execute','createElement','some','3516097tawyAd','_locale','visibility','tagName','overflowContainer','_pendingCalculation','4584IjeIGK','_restoreAncestorVisibility','66532nYVkkF','10okSKfK','block\x20!important','_intersectionObserver','_createShowMoreButtonView','_showMoreBalloonPanelView','block','_checkAndHandleOverflow','from','overflowChips','_createShowMoreBalloonPanelView','5670RRGBlN','617920SHbxWc','visible','className','showMoreLabelPrefix','absolute','_bodyCollection','height','hide','.ck-ai-chat','undefined','_findTargetContainer','showMoreButton','element','_renderChipsAndCountRows','div','left','_containerElement','_config','classList','_parentView','300px','toLowerCase','button','isOn','display','906fCezNt','body','_makeAncestorsVisible','isIntersecting','set','_handleShowMoreButtonClick','abs','border-box','pin','right','_updateShowMoreButtonVisibility','content','hideBalloonPanel','clientHeight','zIndex','_testButtonFit','1833204GBUtQv','offsetWidth','_updateBalloonContent','_applyOverflowResults','width','slice','label','141XWqGOI','none','isVisible','_calculateOverflowInContainer','render','forEach','auto','_targetContainer','ck-calculation-container','showMoreButtonView','showMoreBalloon','setContainerElement','disconnect','_isContainerVisible','includes','_updateOverflowUI','-9999px','visible\x20!important','push','position','calculationContainer','innerHeight','getComputedStyle','isConnected','querySelector','textContent','cloneNode','hidden','innerWidth','controlsButton','observe','_applyCalculationStyles','_repinBalloonPanel','pop','reorganizeChips','boxSizing','appendChild','_createShowMoreButton','48665kHWTwP','_createCalculationContainer','9xQZwYy','rowDetectionTolerance','clear','+\x201','_visibleChips','getBoundingClientRect','parentElement','style','_showMoreButtonView','destroy','_calculateContainerWidth','innerHTML','extendTemplate','show','_overflowChips','pointerEvents','documentElement','_distributeChips','top','55fodMPO','children','setTemplate','filter'];_0x30d5=function(){return _0x27c971;};return _0x30d5();}
|
|
23
|
+
function _0x71d9(_0x12843a,_0x1e6cb2){const _0x45301e=_0x4530();return _0x71d9=function(_0x71d9cd,_0x4450fc){_0x71d9cd=_0x71d9cd-0x9e;let _0x539635=_0x45301e[_0x71d9cd];return _0x539635;},_0x71d9(_0x12843a,_0x1e6cb2);}const _0x3f9c0c=_0x71d9;(function(_0x4e555e,_0x5b5489){const _0x393410=_0x71d9,_0x47f58b=_0x4e555e();while(!![]){try{const _0x5c60c8=parseInt(_0x393410(0x100))/0x1*(-parseInt(_0x393410(0xb7))/0x2)+parseInt(_0x393410(0xdd))/0x3+parseInt(_0x393410(0x11f))/0x4+parseInt(_0x393410(0xa2))/0x5*(parseInt(_0x393410(0xd8))/0x6)+parseInt(_0x393410(0xef))/0x7+parseInt(_0x393410(0x125))/0x8*(parseInt(_0x393410(0x12c))/0x9)+parseInt(_0x393410(0x118))/0xa*(-parseInt(_0x393410(0x104))/0xb);if(_0x5c60c8===_0x5b5489)break;else _0x47f58b['push'](_0x47f58b['shift']());}catch(_0x52e184){_0x47f58b['push'](_0x47f58b['shift']());}}}(_0x4530,0x74027));import{View as _0x52d8ec,BalloonPanelView as _0x2eb749,ButtonView as _0x5f024c,clickOutsideHandler as _0x537eb6}from'ckeditor5/src/ui.js';import{Collection as _0x5444e0}from'ckeditor5/src/utils.js';function _0x4530(){const _0x647703=['top','_updateOverflowUI','clear','undefined','_showMoreBalloonPanelView','3662108omNkFc','_createShowMoreBalloonPanelView','some','includes','50px','div','8XdlKSN','tagName','_visibleChips','absolute','left','rowDetectionTolerance','_calculateOverflowInContainer','6625107FWzvlo','_config','pop','_renderChipsAndCountRows','auto','forEach','_distributeChips','.ck-ai-chat','width','clientHeight','createElement','243715nNrAMs','_testButtonFit','_updateShowMoreButtonVisibility','element','documentElement','+\x201','_targetContainer','maxVisibleRows','disconnect','_findTargetContainer','isOn','getBoundingClientRect','showMoreButton','_setupVisibilityObserver','calculationContainer','from','setTemplate','block\x20!important','filter','_createShowMoreButtonView','ck-calculation-container','284128TbTugx','content','appendChild','push','_locale','body','_checkAndHandleOverflow','showBalloonPanel','_containerElement','_isContainerVisible','textContent','clientWidth','_ancestorsToRestore','_pendingCalculation','zIndex','overflowContainer','pointerEvents','_parentView','_createShowMoreButton','innerHTML','children','showMoreButtonView','_createMockButton','observe','classList','boxSizing','block','slice','_intersectionObserver','visible\x20!important','bottom','label','showMoreLabelPrefix','60ncmpnC','cloneNode','_bodyCollection','pin','border-box','2498088GMvRlp','overflowChips','hideBalloonPanel','isVisible','className','innerWidth','position','abs','isIntersecting','_handleShowMoreButtonClick','_makeAncestorsVisible','_createContainerElements','0px','controlsButton','querySelector','set','hidden','getComputedStyle','6105827aRRKPU','remove','disableAnimationOnEnter','extendTemplate','button','display','destroy','_calculateContainerWidth','showMoreBalloon','visible','_restoreAncestorVisibility','_overflowChips','parentElement','-9999px','none','setContainerElement','toLowerCase','1VcGtnU','execute','_repinBalloonPanel','innerHeight','17747389TafPlW','_showMoreButtonView','_applyOverflowResults','hide','opacity','visibility','cssClasses','_updateBalloonContent','reorganizeChips','_applyCalculationStyles','_createCalculationContainer','height','isConnected','style','show','offsetWidth','render','add','length','right','20ENmBTm','300px'];_0x4530=function(){return _0x647703;};return _0x4530();}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x3f9c0c(0x119);export class AIChatChipsOverflowManager{[_0x3f9c0c(0xbb)];[_0x3f9c0c(0x12d)];[_0x3f9c0c(0x127)];[_0x3f9c0c(0xfa)];[_0x3f9c0c(0x105)]=null;[_0x3f9c0c(0x11e)]=null;[_0x3f9c0c(0xbf)]=null;[_0x3f9c0c(0xda)];[_0x3f9c0c(0xc8)]=null;[_0x3f9c0c(0xd3)]=null;[_0x3f9c0c(0xc4)]=!0x1;constructor(_0x5dcf3b,_0x4552f9,_0x2658d9,_0x53d145,_0x3945f8){const _0x47e0fb=_0x3f9c0c;this[_0x47e0fb(0xbb)]=_0x5dcf3b,this[_0x47e0fb(0x127)]=_0x4552f9,this[_0x47e0fb(0x12d)]={...hn,..._0x2658d9,'cssClasses':{'controlsButton':'','calculationContainer':_0x47e0fb(0xb6),..._0x2658d9[_0x47e0fb(0x10a)]}},this[_0x47e0fb(0xfa)]=new _0x5444e0(),this[_0x47e0fb(0xda)]=_0x53d145,this[_0x47e0fb(0xc8)]=_0x3945f8||null;}[_0x3f9c0c(0xfe)](_0x4c56b2){const _0x3625a3=_0x3f9c0c;this[_0x3625a3(0xd3)]&&(this[_0x3625a3(0xd3)][_0x3625a3(0xaa)](),this[_0x3625a3(0xd3)]=null),this[_0x3625a3(0xbf)]=_0x4c56b2,this[_0x3625a3(0xaf)]();}get[_0x3f9c0c(0xcc)](){const _0xcd744f=_0x3f9c0c;return this[_0xcd744f(0x105)];}get[_0x3f9c0c(0xde)](){const _0x48e0f4=_0x3f9c0c;return this[_0x48e0f4(0xfa)];}[_0x3f9c0c(0x10c)](){requestAnimationFrame(()=>{const _0x1ef958=_0x71d9;this[_0x1ef958(0xbd)]();});}[_0x3f9c0c(0xbe)](){const _0xadac8b=_0x3f9c0c;this[_0xadac8b(0x105)]&&this[_0xadac8b(0x11e)]&&(this[_0xadac8b(0x10b)](),this[_0xadac8b(0x105)][_0xadac8b(0xac)]=!0x0,this[_0xadac8b(0x11e)][_0xadac8b(0x112)](),this[_0xadac8b(0x11e)][_0xadac8b(0xdb)]({'target':this[_0xadac8b(0x105)][_0xadac8b(0xa5)],'limiter':document[_0xadac8b(0xeb)](_0xadac8b(0x9e))}));}[_0x3f9c0c(0xdf)](){const _0x594024=_0x3f9c0c;this[_0x594024(0x105)]&&this[_0x594024(0x11e)]&&(this[_0x594024(0x105)][_0x594024(0xac)]=!0x1,this[_0x594024(0x11e)][_0x594024(0x107)]());}[_0x3f9c0c(0x11c)](){const _0x3c0265=_0x3f9c0c;this[_0x3c0265(0xfa)][_0x3c0265(0x11c)](),this[_0x3c0265(0xdf)](),this[_0x3c0265(0xa4)](),this[_0x3c0265(0x105)]&&(this[_0x3c0265(0x105)][_0x3c0265(0xd6)]=''),this[_0x3c0265(0x11e)]&&this[_0x3c0265(0x11e)][_0x3c0265(0xb8)][_0x3c0265(0x11c)]();}[_0x3f9c0c(0xf5)](){const _0x50767f=_0x3f9c0c;this[_0x50767f(0xd3)]&&(this[_0x50767f(0xd3)][_0x50767f(0xaa)](),this[_0x50767f(0xd3)]=null),this[_0x50767f(0x105)]&&(this[_0x50767f(0x105)][_0x50767f(0xf5)](),this[_0x50767f(0x105)]=null),this[_0x50767f(0x11e)]&&(this[_0x50767f(0x11e)][_0x50767f(0xf5)](),this[_0x50767f(0x11e)]=null);}[_0x3f9c0c(0xbd)](){const _0x1acec4=_0x3f9c0c;if(!this[_0x1acec4(0xbf)])return;if(!this[_0x1acec4(0xc0)]())return void(this[_0x1acec4(0xc4)]=!0x0);this[_0x1acec4(0xc4)]=!0x1;const _0x4fef95=[...this[_0x1acec4(0x127)],...this[_0x1acec4(0xfa)]],_0x3f63f5=this[_0x1acec4(0x10e)](),_0x30b617=this[_0x1acec4(0x12b)](_0x3f63f5,_0x4fef95),_0x2b611a=_0x3f63f5[_0x1acec4(0xc3)];_0x2b611a&&this[_0x1acec4(0xf9)](_0x2b611a),_0x3f63f5[_0x1acec4(0xf0)](),this[_0x1acec4(0x106)](_0x4fef95,_0x30b617);}[_0x3f9c0c(0xc9)](){const _0x56d212=_0x3f9c0c;this[_0x56d212(0x105)]=this[_0x56d212(0xb5)](),this[_0x56d212(0x11e)]=this[_0x56d212(0x120)](),this[_0x56d212(0x105)][_0x56d212(0x114)](),this[_0x56d212(0xbf)][_0x56d212(0xb9)](this[_0x56d212(0x105)][_0x56d212(0xa5)]),this[_0x56d212(0x105)]['on'](_0x56d212(0x101),()=>{const _0x4033f1=_0x56d212;this[_0x4033f1(0xe6)]();}),_0x537eb6({'emitter':this[_0x56d212(0x11e)],'contextElements':[this[_0x56d212(0x11e)][_0x56d212(0xa5)],this[_0x56d212(0x105)][_0x56d212(0xa5)]],'callback':()=>this[_0x56d212(0xdf)](),'activator':()=>this[_0x56d212(0x105)][_0x56d212(0xac)]});}[_0x3f9c0c(0xb5)](){const _0x243f12=_0x3f9c0c,_0x5a32cd=new _0x5f024c(this[_0x243f12(0xbb)]);_0x5a32cd[_0x243f12(0xec)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1dcf63=[this[_0x243f12(0x12d)][_0x243f12(0x10a)][_0x243f12(0xae)]];return this[_0x243f12(0x12d)][_0x243f12(0x10a)][_0x243f12(0xea)]&&_0x1dcf63[_0x243f12(0xba)](this[_0x243f12(0x12d)][_0x243f12(0x10a)][_0x243f12(0xea)]),_0x5a32cd[_0x243f12(0xf2)]({'attributes':{'class':_0x1dcf63}}),_0x5a32cd;}[_0x3f9c0c(0x120)](){const _0x29fefc=_0x3f9c0c,_0x5279d7=new _0x2eb749(this[_0x29fefc(0xbb)]);return _0x5279d7[_0x29fefc(0xf2)]({'attributes':{'class':this[_0x29fefc(0x12d)][_0x29fefc(0x10a)][_0x29fefc(0xf7)]}}),this[_0x29fefc(0xda)][_0x29fefc(0x115)](_0x5279d7),_0x5279d7;}[_0x3f9c0c(0x10b)](){const _0x26f552=_0x3f9c0c;if(this[_0x26f552(0x11e)]&&(this[_0x26f552(0x11e)][_0x26f552(0xb8)][_0x26f552(0x11c)](),this[_0x26f552(0xfa)][_0x26f552(0x116)]>0x0)){this[_0x26f552(0xfa)][_0x26f552(0x131)](_0x54f463=>{const _0x43f74a=_0x26f552;_0x54f463[_0x43f74a(0xf1)]();});const _0x3dc671=new _0x52d8ec(this[_0x26f552(0xbb)]);_0x3dc671[_0x26f552(0xb2)]({'tag':_0x26f552(0x124),'attributes':{'class':this[_0x26f552(0x12d)][_0x26f552(0x10a)][_0x26f552(0xc6)]},'children':this[_0x26f552(0xfa)]}),this[_0x26f552(0x11e)][_0x26f552(0xb8)][_0x26f552(0x115)](_0x3dc671);}}[_0x3f9c0c(0xe6)](){const _0x3552f4=_0x3f9c0c;this[_0x3552f4(0x105)][_0x3552f4(0xac)]?this[_0x3552f4(0xdf)]():this[_0x3552f4(0xbe)]();}[_0x3f9c0c(0xa4)](){const _0x310d66=_0x3f9c0c,_0x2d81d0=this[_0x310d66(0xfa)][_0x310d66(0x116)]>0x0;this[_0x310d66(0x105)]?.[_0x310d66(0xa5)]&&(this[_0x310d66(0x105)][_0x310d66(0xa5)][_0x310d66(0x111)][_0x310d66(0xf4)]=_0x2d81d0?'':_0x310d66(0xfd));}[_0x3f9c0c(0x102)](){const _0x35453c=_0x3f9c0c;this[_0x35453c(0x105)]?.[_0x35453c(0xac)]&&this[_0x35453c(0x11e)]?.[_0x35453c(0xe0)]&&this[_0x35453c(0x105)][_0x35453c(0xa5)]&&this[_0x35453c(0x11e)][_0x35453c(0xdb)]({'target':this[_0x35453c(0x105)][_0x35453c(0xa5)],'limiter':document[_0x35453c(0xeb)](_0x35453c(0x9e))});}[_0x3f9c0c(0xab)](_0x2a9139){const _0x3847d9=_0x3f9c0c,_0x23eb41=this[_0x3847d9(0xbf)]?.[_0x3847d9(0x126)][_0x3847d9(0xff)]()||_0x3847d9(0x124),_0x395a91=this[_0x3847d9(0xbf)]?.[_0x3847d9(0xcf)];if(_0x395a91){const _0x328bed=_0x395a91[0x0]||'',_0x55ba40=_0x2a9139[_0x3847d9(0xeb)]('.'+_0x328bed),_0x56f775=_0x2a9139[_0x3847d9(0xeb)](_0x23eb41);return _0x55ba40||_0x56f775||_0x2a9139;}return _0x2a9139[_0x3847d9(0xeb)](_0x23eb41)||_0x2a9139;}[_0x3f9c0c(0xf6)](){const _0x2995b2=_0x3f9c0c,_0x70ebc5=this[_0x2995b2(0xc8)]?.[_0x2995b2(0xa5)]||this[_0x2995b2(0xbf)];if(!_0x70ebc5)return an;const _0x47c44b=window[_0x2995b2(0xee)](_0x70ebc5)[_0x2995b2(0x9f)];if(_0x2995b2(0x130)===_0x47c44b||_0x2995b2(0xe9)===_0x47c44b||!_0x47c44b){const _0x5224f0=_0x70ebc5[_0x2995b2(0xfb)];if(_0x5224f0){const _0x5ff7a3=window[_0x2995b2(0xee)](_0x5224f0);return _0x2995b2(0x130)!==_0x5ff7a3[_0x2995b2(0x9f)]?_0x5ff7a3[_0x2995b2(0x9f)]:an;}return an;}return _0x47c44b;}[_0x3f9c0c(0x10d)](_0x200ed4,_0x10db9d){const _0x38a12a=_0x3f9c0c;this[_0x38a12a(0x12d)][_0x38a12a(0x10a)][_0x38a12a(0xb0)]&&_0x200ed4[_0x38a12a(0xcf)][_0x38a12a(0x115)](this[_0x38a12a(0x12d)][_0x38a12a(0x10a)][_0x38a12a(0xb0)]),_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0x9f)]=_0x10db9d,_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0xe3)]=_0x38a12a(0x128),_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0x11a)]=_0x38a12a(0xfc),_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0x129)]=_0x38a12a(0xfc),_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0x108)]='0',_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0xc7)]=_0x38a12a(0xfd),_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0xc5)]='-1',_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0x109)]=_0x38a12a(0xd4),_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0xf4)]=_0x38a12a(0xb3),_0x200ed4[_0x38a12a(0x111)][_0x38a12a(0xd0)]=_0x38a12a(0xdc);}[_0x3f9c0c(0xf9)](_0x4d9325){const _0x264c4c=_0x3f9c0c;_0x4d9325[_0x264c4c(0x131)](({element:_0x502724,originalDisplay:_0x32a718,originalVisibility:_0x4f0280})=>{const _0x5abb64=_0x264c4c;_0x502724[_0x5abb64(0x111)][_0x5abb64(0xf4)]=_0x32a718,_0x502724[_0x5abb64(0x111)][_0x5abb64(0x109)]=_0x4f0280;});}[_0x3f9c0c(0xe7)](_0x44e753){const _0x32468a=_0x3f9c0c,_0x497505=[];let _0x503253=_0x44e753;for(;_0x503253&&_0x503253!==document[_0x32468a(0xbc)];){const _0x31e54d=window[_0x32468a(0xee)](_0x503253);_0x32468a(0xfd)!==_0x31e54d[_0x32468a(0xf4)]&&_0x32468a(0xed)!==_0x31e54d[_0x32468a(0x109)]||(_0x497505[_0x32468a(0xba)]({'element':_0x503253,'originalDisplay':_0x503253[_0x32468a(0x111)][_0x32468a(0xf4)],'originalVisibility':_0x503253[_0x32468a(0x111)][_0x32468a(0x109)]}),_0x503253[_0x32468a(0x111)][_0x32468a(0xf4)]=_0x32468a(0xd1),_0x503253[_0x32468a(0x111)][_0x32468a(0x109)]=_0x32468a(0xf8)),_0x503253=_0x503253[_0x32468a(0xfb)];}return _0x497505;}[_0x3f9c0c(0xe8)](){const _0x14d57e=_0x3f9c0c;let _0x3ff5d2,_0x438534;return this[_0x14d57e(0xc8)]?.[_0x14d57e(0xa5)]?(_0x3ff5d2=this[_0x14d57e(0xc8)][_0x14d57e(0xa5)][_0x14d57e(0xd9)](!0x0),_0x438534=this[_0x14d57e(0xab)](_0x3ff5d2)):(_0x3ff5d2=document[_0x14d57e(0xa1)](_0x14d57e(0x124)),_0x438534=_0x3ff5d2),{'calculationContainer':_0x3ff5d2,'targetContainer':_0x438534};}[_0x3f9c0c(0x10e)](){const _0x45b1ba=_0x3f9c0c,{calculationContainer:_0x459690,targetContainer:_0xa327f7}=this[_0x45b1ba(0xe8)](),_0x1b3652=this[_0x45b1ba(0xf6)]();this[_0x45b1ba(0x10d)](_0x459690,_0x1b3652);const _0x2ef492=this[_0x45b1ba(0xc8)]?.[_0x45b1ba(0xa5)]||this[_0x45b1ba(0xbf)],_0x114bf1=_0x2ef492?.[_0x45b1ba(0xfb)];_0x114bf1?_0x114bf1[_0x45b1ba(0xb9)](_0x459690):document[_0x45b1ba(0xbc)][_0x45b1ba(0xb9)](_0x459690),_0x459690[_0x45b1ba(0xa8)]=_0xa327f7;const _0x42625f=this[_0x45b1ba(0xe7)](_0x114bf1||null);return _0x459690[_0x45b1ba(0x113)],_0x459690[_0x45b1ba(0xc3)]=_0x42625f,_0x459690;}[_0x3f9c0c(0x12b)](_0x4a32eb,_0x40da55){const _0x3ca058=_0x3f9c0c,_0x1332d2=_0x4a32eb[_0x3ca058(0xa8)]||_0x4a32eb,_0x40ff61=[],{rowCount:_0x288c7e}=this[_0x3ca058(0x12f)](_0x1332d2,_0x40da55);if(_0x288c7e<=this[_0x3ca058(0x12d)][_0x3ca058(0xa9)])return _0x40ff61;const _0x4fe8f0=_0x40da55[_0x3ca058(0xd2)]();for(;_0x4fe8f0[_0x3ca058(0x116)]>0x0;){if(this[_0x3ca058(0xa3)](_0x4a32eb,_0x1332d2,_0x4fe8f0)){const _0x297150=_0x40da55[_0x3ca058(0xb4)](_0x355d1e=>!_0x4fe8f0[_0x3ca058(0x122)](_0x355d1e));_0x40ff61[_0x3ca058(0xba)](..._0x297150);break;}if(!_0x4fe8f0[_0x3ca058(0x12e)]())break;}return _0x40ff61;}[_0x3f9c0c(0x12f)](_0x460159,_0x275ce4){const _0x5d85eb=_0x3f9c0c;_0x460159[_0x5d85eb(0xca)]='',_0x275ce4[_0x5d85eb(0x131)](_0x57de7e=>{const _0x337a57=_0x5d85eb;if(_0x57de7e[_0x337a57(0xa5)]){const _0x36f6a7=_0x57de7e[_0x337a57(0xa5)][_0x337a57(0xd9)](!0x0);_0x460159[_0x337a57(0xb9)](_0x36f6a7);}}),_0x460159[_0x5d85eb(0x113)];const _0xfc083a=_0x460159[_0x5d85eb(0xcb)],_0x1efb78=[];return Array[_0x5d85eb(0xb1)](_0xfc083a)[_0x5d85eb(0x131)](_0x5af42c=>{const _0x3dfa7b=_0x5d85eb,_0x31b543=_0x5af42c[_0x3dfa7b(0xad)]()[_0x3dfa7b(0x11a)];_0x1efb78[_0x3dfa7b(0x121)](_0x2c6e5f=>Math[_0x3dfa7b(0xe4)](_0x2c6e5f-_0x31b543)<this[_0x3dfa7b(0x12d)][_0x3dfa7b(0x12a)])||_0x1efb78[_0x3dfa7b(0xba)](_0x31b543);}),{'rowCount':_0x1efb78[_0x5d85eb(0x116)]};}[_0x3f9c0c(0xcd)](){const _0x4da4c5=_0x3f9c0c,_0x11109a=document[_0x4da4c5(0xa1)](_0x4da4c5(0xf3));return _0x11109a[_0x4da4c5(0xe1)]=this[_0x4da4c5(0x12d)][_0x4da4c5(0x10a)][_0x4da4c5(0xae)],this[_0x4da4c5(0x12d)][_0x4da4c5(0x10a)][_0x4da4c5(0xea)]&&_0x11109a[_0x4da4c5(0xcf)][_0x4da4c5(0x115)](this[_0x4da4c5(0x12d)][_0x4da4c5(0x10a)][_0x4da4c5(0xea)]),_0x11109a[_0x4da4c5(0xc1)]=_0x4da4c5(0xa7),_0x11109a;}[_0x3f9c0c(0xa3)](_0x37c16b,_0x1fd776,_0x204334){const _0x405457=_0x3f9c0c;this[_0x405457(0x12f)](_0x1fd776,_0x204334);const _0x3ca3ae=this[_0x405457(0xcd)]();_0x37c16b[_0x405457(0xb9)](_0x3ca3ae),_0x37c16b[_0x405457(0x113)];const _0x4b179b=[..._0x1fd776[_0x405457(0xcb)],_0x3ca3ae],_0x320155=[];_0x4b179b[_0x405457(0x131)](_0x11fb8c=>{const _0x5e92c0=_0x405457,_0x3bcbad=_0x11fb8c[_0x5e92c0(0xad)]()[_0x5e92c0(0x11a)];_0x320155[_0x5e92c0(0x121)](_0x5c3e5a=>Math[_0x5e92c0(0xe4)](_0x5c3e5a-_0x3bcbad)<this[_0x5e92c0(0x12d)][_0x5e92c0(0x12a)])||_0x320155[_0x5e92c0(0xba)](_0x3bcbad);});const _0x298935=_0x320155[_0x405457(0x116)];return _0x3ca3ae[_0x405457(0xf0)](),_0x298935<=this[_0x405457(0x12d)][_0x405457(0xa9)];}[_0x3f9c0c(0x132)](_0x58a782,_0x4808fa){const _0x1c3b5d=_0x3f9c0c;this[_0x1c3b5d(0x127)][_0x1c3b5d(0x11c)](),this[_0x1c3b5d(0xfa)][_0x1c3b5d(0x11c)](),_0x58a782[_0x1c3b5d(0x131)](_0x12a259=>{const _0x284682=_0x1c3b5d;_0x4808fa[_0x284682(0x122)](_0x12a259)?this[_0x284682(0xfa)][_0x284682(0x115)](_0x12a259):this[_0x284682(0x127)][_0x284682(0x115)](_0x12a259);});}[_0x3f9c0c(0x11b)](_0x2a0233){const _0x3700a0=_0x3f9c0c;if(_0x2a0233>0x0&&!this[_0x3700a0(0x105)]&&this[_0x3700a0(0xc9)](),_0x2a0233>0x0&&this[_0x3700a0(0x105)]){const _0x1f8fa4=''+this[_0x3700a0(0x12d)][_0x3700a0(0xd7)]+(_0x2a0233<0x63?_0x2a0233:'99');this[_0x3700a0(0x105)][_0x3700a0(0xd6)]=_0x1f8fa4;}this[_0x3700a0(0x10b)](),this[_0x3700a0(0xa4)](),this[_0x3700a0(0x102)]();}[_0x3f9c0c(0x106)](_0x4c7956,_0x96b8d4){const _0x268616=_0x3f9c0c;this[_0x268616(0x132)](_0x4c7956,_0x96b8d4),this[_0x268616(0x11b)](_0x96b8d4[_0x268616(0x116)]);}[_0x3f9c0c(0xaf)](){const _0x3a0c06=_0x3f9c0c;this[_0x3a0c06(0xbf)]&&_0x3a0c06(0x11d)!=typeof IntersectionObserver&&(this[_0x3a0c06(0xd3)]=new IntersectionObserver(_0x2eb9a9=>{const _0x34a1a5=_0x3a0c06;_0x2eb9a9[0x0][_0x34a1a5(0xe5)]&&this[_0x34a1a5(0xc4)]&&requestAnimationFrame(()=>{const _0x1248db=_0x34a1a5;this[_0x1248db(0xbd)]();});},{'threshold':0.01,'rootMargin':_0x3a0c06(0x123)}),this[_0x3a0c06(0xd3)][_0x3a0c06(0xce)](this[_0x3a0c06(0xbf)]));}[_0x3f9c0c(0xc0)](){const _0x118612=_0x3f9c0c;if(!this[_0x118612(0xbf)])return!0x1;if(!this[_0x118612(0xbf)][_0x118612(0x110)])return!0x1;const _0x3c70fc=this[_0x118612(0xbf)][_0x118612(0xad)]();if(0x0===_0x3c70fc[_0x118612(0x9f)]||0x0===_0x3c70fc[_0x118612(0x10f)])return!0x1;const _0x3b5741=window[_0x118612(0x103)]||document[_0x118612(0xa6)][_0x118612(0xa0)],_0x5f4bfd=window[_0x118612(0xe2)]||document[_0x118612(0xa6)][_0x118612(0xc2)],_0x2f4387=0xc8;return _0x3c70fc[_0x118612(0xd5)]>=-0xc8&&_0x3c70fc[_0x118612(0x11a)]<=_0x3b5741+_0x2f4387&&_0x3c70fc[_0x118612(0x117)]>=-0xc8&&_0x3c70fc[_0x118612(0x129)]<=_0x5f4bfd+_0x2f4387;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31820a=_0x5565;(function(_0x1eeee8,_0x4c8177){const _0x518f1c=_0x5565,_0x2f48cc=_0x1eeee8();while(!![]){try{const _0x35baa7=-parseInt(_0x518f1c(0xef))/0x1*(-parseInt(_0x518f1c(0xd9))/0x2)+parseInt(_0x518f1c(0xf2))/0x3+parseInt(_0x518f1c(0xf1))/0x4+-parseInt(_0x518f1c(0xdf))/0x5*(parseInt(_0x518f1c(0xf6))/0x6)+-parseInt(_0x518f1c(0xdb))/0x7+-parseInt(_0x518f1c(0xff))/0x8*(-parseInt(_0x518f1c(0xda))/0x9)+parseInt(_0x518f1c(0xe5))/0xa*(-parseInt(_0x518f1c(0xc3))/0xb);if(_0x35baa7===_0x4c8177)break;else _0x2f48cc['push'](_0x2f48cc['shift']());}catch(_0x569103){_0x2f48cc['push'](_0x2f48cc['shift']());}}}(_0x2aa0,0x556d6));import{ButtonView as _0x1325c9,IconView as _0xe045b6}from'ckeditor5/src/ui.js';import{IconClose as _0x34cea9,IconDocument as _0x304f11,IconFileUpload as _0x4d8c02,IconLink as _0x3c4bde,IconSelection as _0x4d5743}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2a18cb}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0xca5f72}from'../../../aicore/ui/aispinner.js';const xn={'file':_0x4d8c02,'document':_0x304f11,'web-resource':_0x3c4bde,'text':_0x4d8c02,'selection':_0x4d5743},bn=_0x31820a(0xc9),wn=_0x31820a(0xfe),Tn=_0x31820a(0xc7),En=_0x31820a(0x100),fn=_0x31820a(0xcd),An=_0x31820a(0xe0),Cn='n';function _0x5565(_0x1595a7,_0x4e9674){const _0x2aa06f=_0x2aa0();return _0x5565=function(_0x5565bc,_0x44403c){_0x5565bc=_0x5565bc-0xc3;let _0x491cbe=_0x2aa06f[_0x5565bc];return _0x491cbe;},_0x5565(_0x1595a7,_0x4e9674);}function _0x2aa0(){const _0x566f5a=['_setupTemplate','render','execute','label','removeEventListener','30267VDjmJA','type','890724JxIoqG','683886UOjfKU','_createLoaderIcon','setTemplate','locale','6uysETJ','addEventListener','_createIconView','fire','_handleAnimationEndOnce','remove','readonly','tooltip','ck-ai-chat-context-chip_wide','8MTsOzj','ck-ai-chat-context-chip__label','_createTemplateAttributes','ck-ai-chat-context-chip_new-chip','_isAnimationOnEnterEnabled','isLoading','_createTemplateChildren','11OgFdhG','span','slice','animationend','ck-ai-chat-context-chip_document','set','ck-ai-chat-context-chip','bindTemplate','isVisible','document','ck-ai-chat-context-chip__type-icon','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','uiId','element','bind','itemType','length','removeContextItemChip','add','div','extendTemplate','lastIndexOf','46jvRAxu','5468130UpyaRo','2622284ZgtuKE','small','_initializeProperties','selection','61645lyrOcM','ck-ai-chat-context-controls__chip-tooltip','classList','content','ck-hidden','_createLabelElement','10175030wUtYZY','_createRemoveButton','webkitAnimationEnd','disableAnimationOnEnter','_setupRemoveButtonEvent'];_0x2aa0=function(){return _0x566f5a;};return _0x2aa0();}export class AIChatContextItemButtonView extends _0x1325c9{constructor(_0x240fba,_0x2efba9,_0x4bd7e6,_0xe059bf,_0x3bd2f1=!0x1){const _0x209039=_0x31820a;super(_0x240fba),this[_0x209039(0x103)]=_0xe059bf,this[_0x209039(0xdd)](_0x2efba9,_0x4bd7e6,_0x3bd2f1),this[_0x209039(0xea)]();}[_0x31820a(0xeb)](){const _0x79063b=_0x31820a;super[_0x79063b(0xeb)](),this[_0x79063b(0x103)]&&this[_0x79063b(0xd0)]&&(this[_0x79063b(0xd0)][_0x79063b(0xe1)][_0x79063b(0xd5)](_0x79063b(0x102)),this[_0x79063b(0xfa)](this[_0x79063b(0xd0)],()=>{const _0x316893=_0x79063b;this[_0x316893(0xd0)]&&this[_0x316893(0xd0)][_0x316893(0xe1)][_0x316893(0xfb)](_0x316893(0x102));}));}[_0x31820a(0xe8)](){const _0x558446=_0x31820a;this[_0x558446(0x103)]=!0x1,this[_0x558446(0xd0)]&&this[_0x558446(0xd0)][_0x558446(0xe1)][_0x558446(0xfb)](_0x558446(0x102));}[_0x31820a(0xdd)](_0x367410,_0xb436c9,_0x2bd735){const _0xa147f3=_0x31820a;this[_0xa147f3(0xc8)](_0xa147f3(0xed),_0x367410[_0xa147f3(0xed)]),this[_0xa147f3(0xc8)](_0xa147f3(0xfd),!0x0),this[_0xa147f3(0xc8)](_0xa147f3(0xd2),_0x367410[_0xa147f3(0xf0)]),this[_0xa147f3(0xc8)]('id',_0x367410[_0xa147f3(0xcf)]),this[_0xa147f3(0xc8)](_0xa147f3(0xfc),_0xb436c9),this[_0xa147f3(0xc8)](_0xa147f3(0x104),_0x2bd735);}[_0x31820a(0xea)](){const _0x42637e=_0x31820a,_0xe14da3=this[_0x42637e(0xf8)](),_0x51c6ee=this[_0x42637e(0xe6)](),_0x399372=this[_0x42637e(0xca)];this[_0x42637e(0xf4)]({'tag':_0x42637e(0xd6),'attributes':this[_0x42637e(0x101)](_0x399372),'children':this[_0x42637e(0x105)](_0xe14da3,_0x51c6ee,_0x399372)});}[_0x31820a(0x101)](_0x84a622){const _0xcf2538=_0x31820a;return{'class':[bn,_0x84a622['if'](_0xcf2538(0xd2),Tn,_0x3f18c7=>_0xcf2538(0xcc)==_0x3f18c7),_0x84a622['if'](_0xcf2538(0xd2),wn,_0x372a51=>_0xcf2538(0xde)==_0x372a51)],'data-cke-tooltip-text':_0x84a622['to'](_0xcf2538(0xed),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x31820a(0x105)](_0x369664,_0x1a552f,_0x4eb9eb){const _0x461790=_0x31820a,_0x15aef9=this[_0x461790(0xe4)](_0x4eb9eb),_0x38c0d4=this[_0x461790(0xf3)]();return this[_0x461790(0xfc)]?[_0x369664,_0x15aef9]:[_0x369664,_0x38c0d4,_0x15aef9,_0x1a552f];}[_0x31820a(0xe4)](_0x26dde6){const _0x1b152d=_0x31820a;return{'tag':_0x1b152d(0xc4),'attributes':{'class':En},'children':[{'text':_0x26dde6['to'](_0x1b152d(0xed))}]};}[_0x31820a(0xe6)](){const _0x1266a7=_0x31820a,_0x3c3f1=new _0x1325c9(this[_0x1266a7(0xf5)]);return _0x3c3f1[_0x1266a7(0xc8)]({'label':_0x2a18cb(this[_0x1266a7(0xf5)],_0x1266a7(0xce)),'icon':_0x34cea9}),this[_0x1266a7(0xe9)](_0x3c3f1),_0x3c3f1;}[_0x31820a(0xe9)](_0x19492e){const _0x24efda=_0x31820a;_0x19492e['on'](_0x24efda(0xec),()=>{const _0x9f9fb8=_0x24efda;this[_0x9f9fb8(0xf9)](_0x9f9fb8(0xd4),this['id']);});}[_0x31820a(0xf8)](){const _0x26ce96=_0x31820a,_0x492026=this[_0x26ce96(0xca)],_0x5b7661=new _0xe045b6();return _0x5b7661[_0x26ce96(0xe2)]=xn[this[_0x26ce96(0xd2)]],_0x5b7661[_0x26ce96(0xd7)]({'attributes':{'class':[fn,_0x492026['if'](_0x26ce96(0x104),_0x26ce96(0xe3),_0x2ca469=>_0x2ca469)]}}),_0x5b7661;}[_0x31820a(0xfa)](_0x5a326c,_0x41f125){const _0x478f82=_0x31820a;if(!_0x5a326c)return;const _0x3a0ebf=()=>{const _0x5df03b=_0x5565;_0x41f125(),_0x5a326c[_0x5df03b(0xee)](_0x5df03b(0xc6),_0x3a0ebf),_0x5a326c[_0x5df03b(0xee)](_0x5df03b(0xe7),_0x3a0ebf);};_0x5a326c[_0x478f82(0xf7)](_0x478f82(0xc6),_0x3a0ebf),_0x5a326c[_0x478f82(0xf7)](_0x478f82(0xe7),_0x3a0ebf);}[_0x31820a(0xf3)](){const _0x5abfe5=_0x31820a,_0x4c7a16=new _0xca5f72(_0x5abfe5(0xdc));return _0x4c7a16[_0x5abfe5(0xd1)](_0x5abfe5(0xcb))['to'](this,_0x5abfe5(0x104),_0x42405c=>_0x42405c),_0x4c7a16;}}function In(_0x43293b){const _0x5b66e9=_0x31820a;if(!_0x43293b)return _0x43293b;if(_0x43293b[_0x5b66e9(0xd3)]<=0x78)return _0x43293b;const _0x1e00ab=_0x43293b[_0x5b66e9(0xc5)](0x0,0x78),_0x385b5a=_0x1e00ab[_0x5b66e9(0xd8)]('\x20');return(_0x385b5a>0x0?_0x1e00ab[_0x5b66e9(0xc5)](0x0,_0x385b5a):_0x1e00ab)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d821e=_0x4d30;(function(_0x49ef79,_0x1713e1){const _0x203d48=_0x4d30,_0x495c80=_0x49ef79();while(!![]){try{const _0x1c04aa=-parseInt(_0x203d48(0x1f1))/0x1+-parseInt(_0x203d48(0x1f0))/0x2+-parseInt(_0x203d48(0x1de))/0x3*(-parseInt(_0x203d48(0x1be))/0x4)+parseInt(_0x203d48(0x1db))/0x5*(-parseInt(_0x203d48(0x200))/0x6)+-parseInt(_0x203d48(0x1c8))/0x7*(parseInt(_0x203d48(0x1d5))/0x8)+parseInt(_0x203d48(0x1e4))/0x9+-parseInt(_0x203d48(0x1c9))/0xa*(-parseInt(_0x203d48(0x1eb))/0xb);if(_0x1c04aa===_0x1713e1)break;else _0x495c80['push'](_0x495c80['shift']());}catch(_0x2fb5a6){_0x495c80['push'](_0x495c80['shift']());}}}(_0x595d,0x2a14a));import{FocusTracker as _0x34ac6a,KeystrokeHandler as _0xe7e84c}from'ckeditor5/src/utils.js';function _0x4d30(_0x13111b,_0x12c7ed){const _0x595dba=_0x595d();return _0x4d30=function(_0x4d3062,_0x24759f){_0x4d3062=_0x4d3062-0x1bb;let _0x29eca5=_0x595dba[_0x4d3062];return _0x29eca5;},_0x4d30(_0x13111b,_0x12c7ed);}import{ButtonView as _0x1f30cb,FocusCycler as _0x3fa551,LabeledFieldView as _0xa815f7,View as _0x11d00d,FormHeaderView as _0x31e387,createLabeledInputText as _0x2e8544,submitHandler as _0x38ff8e}from'ckeditor5/src/ui.js';function _0x595d(){const _0x31ca72=['refreshBalloon','_handleSubmit','execute','1706445hqSZai','clear','clearError','setError','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','cancel','trim','2033075WWlZsM','listenTo','AI_CHAT_CONTEXT_URL_PLACEHOLDER','errorText','_isValidUrl','120490EkiEIX','118623GTISKn','isEnabled','submitUrl','focus','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_setupKeystrokes','children','keystrokes','destroy','form','focusTracker','length','shift+tab','_setupTemplate','_updateConfirmButtonState','434118BKqjvg','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','setTemplate','esc','_setupEventHandlers','set','_createBackButton','focusCycler','1166328VgREjJ','ck-ai-chat-context-controls__url-input-section','backButton','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_focusables','input','ck-labeled-field-view_empty','forEach','submit','urlInputField','98jAmrFz','20eyZRtc','locale','fieldView','stop','_createConfirmButton','createCollection','getValue','AI_CHAT_CONTEXT_URL_LABEL','_createUrlInputField','element','AI_CHAT_CONTEXT_URL_ADD_URL','render','161456LpGUxz','add','value','ck-ai-chat-context-controls__url-form','confirmButton','div','15OQHbWl','fire','ck-button-icon\x20ck-button-back','3lMAxlv','tab','ck-button-icon'];_0x595d=function(){return _0x31ca72;};return _0x595d();}import{IconCheck as _0x4568b1,IconPreviousArrow as _0xfe2026}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x134650}from'../../../aicore/utils/common-translations.js';const ch=_0x2d821e(0x1d8),nh=_0x2d821e(0x1bf);export class AIChatContextPanelUrlInputView extends _0x11d00d{[_0x2d821e(0x1fb)];[_0x2d821e(0x1f8)];[_0x2d821e(0x1c2)];[_0x2d821e(0x1bd)];[_0x2d821e(0x1c7)];[_0x2d821e(0x1c0)];[_0x2d821e(0x1d9)];constructor(_0x35c72c){const _0xdccff9=_0x2d821e;super(_0x35c72c),this[_0xdccff9(0x1fb)]=new _0x34ac6a(),this[_0xdccff9(0x1f8)]=new _0xe7e84c(),this[_0xdccff9(0x1c0)]=this[_0xdccff9(0x1bc)](),this[_0xdccff9(0x1c7)]=this[_0xdccff9(0x1d1)](),this[_0xdccff9(0x1d9)]=this[_0xdccff9(0x1cd)](),this[_0xdccff9(0x1c2)]=this[_0xdccff9(0x1ce)]([this[_0xdccff9(0x1c0)],this[_0xdccff9(0x1c7)],this[_0xdccff9(0x1d9)]]),this[_0xdccff9(0x1bd)]=new _0x3fa551({'focusables':this[_0xdccff9(0x1c2)],'focusTracker':this[_0xdccff9(0x1fb)],'keystrokeHandler':this[_0xdccff9(0x1f8)],'actions':{'focusPrevious':_0xdccff9(0x1fd),'focusNext':_0xdccff9(0x1df)}}),this[_0xdccff9(0x1fe)](),this[_0xdccff9(0x204)](),this[_0xdccff9(0x1f6)]();}[_0x2d821e(0x1d4)](){const _0x278d8a=_0x2d821e;super[_0x278d8a(0x1d4)](),this[_0x278d8a(0x1c2)][_0x278d8a(0x1c5)](_0x5d809c=>{const _0x3aa296=_0x278d8a;this[_0x3aa296(0x1fb)][_0x3aa296(0x1d6)](_0x5d809c[_0x3aa296(0x1d2)]),this[_0x3aa296(0x1f8)][_0x3aa296(0x1ec)](_0x5d809c[_0x3aa296(0x1d2)]);}),_0x38ff8e({'view':this}),this[_0x278d8a(0x1f4)]();}[_0x2d821e(0x1f9)](){const _0x4dfbe7=_0x2d821e;super[_0x4dfbe7(0x1f9)](),this[_0x4dfbe7(0x1fb)][_0x4dfbe7(0x1f9)](),this[_0x4dfbe7(0x1f8)][_0x4dfbe7(0x1f9)]();}[_0x2d821e(0x1f4)](){const _0x8f038a=_0x2d821e;this[_0x8f038a(0x1c7)][_0x8f038a(0x1f4)]();}[_0x2d821e(0x1cf)](){const _0x8c03b6=_0x2d821e;return this[_0x8c03b6(0x1c7)][_0x8c03b6(0x1cb)][_0x8c03b6(0x1d2)]?.[_0x8c03b6(0x1d7)]?.[_0x8c03b6(0x1ea)]()||'';}[_0x2d821e(0x1e5)](){const _0x232b6a=_0x2d821e;this[_0x232b6a(0x1c7)][_0x232b6a(0x1cb)][_0x232b6a(0x1d2)][_0x232b6a(0x1d7)]='',this[_0x232b6a(0x1c7)][_0x232b6a(0x1ee)]=null,this[_0x232b6a(0x1d9)][_0x232b6a(0x1f2)]=!0x1;}[_0x2d821e(0x1e7)](_0x3cf08a){const _0x39fbd2=_0x2d821e;this[_0x39fbd2(0x1c7)][_0x39fbd2(0x1ee)]=_0x3cf08a,this[_0x39fbd2(0x1ff)](),this[_0x39fbd2(0x1dc)](_0x39fbd2(0x1e1));}[_0x2d821e(0x1e6)](){const _0x5442c2=_0x2d821e;this[_0x5442c2(0x1c7)][_0x5442c2(0x1ee)]=null,this[_0x5442c2(0x1ff)]();}[_0x2d821e(0x1bc)](){const _0xb9d05d=_0x2d821e,_0x19b67f=new _0x1f30cb(this[_0xb9d05d(0x1ca)]);return _0x19b67f[_0xb9d05d(0x1bb)]({'icon':_0xfe2026,'tooltip':_0x134650(this[_0xb9d05d(0x1ca)],_0xb9d05d(0x1e8)),'tooltipPosition':'n','class':_0xb9d05d(0x1dd)}),_0x19b67f;}[_0x2d821e(0x1d1)](){const _0x354a11=_0x2d821e,_0x301694=new _0xa815f7(this[_0x354a11(0x1ca)],_0x2e8544);return _0x301694[_0x354a11(0x1bb)]({'label':_0x134650(this[_0x354a11(0x1ca)],_0x354a11(0x1d0)),'class':_0x354a11(0x1c4)}),_0x301694[_0x354a11(0x1cb)][_0x354a11(0x1bb)]({'placeholder':_0x134650(this[_0x354a11(0x1ca)],_0x354a11(0x1ed))}),_0x301694;}[_0x2d821e(0x1cd)](){const _0x63af66=_0x2d821e,_0x2df7d5=new _0x1f30cb(this[_0x63af66(0x1ca)]);return _0x2df7d5[_0x63af66(0x1bb)]({'icon':_0x4568b1,'tooltip':_0x134650(this[_0x63af66(0x1ca)],_0x63af66(0x1d3)),'tooltipPosition':'n','class':_0x63af66(0x1e0),'type':_0x63af66(0x1c6),'isEnabled':!0x1}),_0x2df7d5;}[_0x2d821e(0x1fe)](){const _0x3a9582=_0x2d821e,_0x225d3a=new _0x31e387(this[_0x3a9582(0x1ca)],{'label':_0x134650(this[_0x3a9582(0x1ca)],_0x3a9582(0x1d3)),'class':_0x3a9582(0x1f5)});_0x225d3a[_0x3a9582(0x1f7)][_0x3a9582(0x1d6)](this[_0x3a9582(0x1c0)],0x0),this[_0x3a9582(0x202)]({'tag':_0x3a9582(0x1fa),'attributes':{'class':ch,'tabindex':'-1'},'children':[_0x225d3a,{'tag':_0x3a9582(0x1da),'attributes':{'class':nh},'children':[this[_0x3a9582(0x1c7)],this[_0x3a9582(0x1d9)]]}]});}[_0x2d821e(0x204)](){const _0x41257d=_0x2d821e;this[_0x41257d(0x1c0)]['on'](_0x41257d(0x1e3),()=>{const _0x54547d=_0x41257d;this[_0x54547d(0x1e5)](),this[_0x54547d(0x1dc)](_0x54547d(0x1e9));}),this[_0x41257d(0x1c7)][_0x41257d(0x1cb)]['on'](_0x41257d(0x1c3),()=>{const _0x2738dd=_0x41257d;this[_0x2738dd(0x1e6)](),this[_0x2738dd(0x1ff)](),this[_0x2738dd(0x1dc)](_0x2738dd(0x1e1));}),this['on'](_0x41257d(0x1c6),_0x4cf31e=>{const _0x82b627=_0x41257d;_0x4cf31e[_0x82b627(0x1cc)](),this[_0x82b627(0x1e2)]();});}[_0x2d821e(0x1f6)](){const _0x5988dc=_0x2d821e;this[_0x5988dc(0x1f8)][_0x5988dc(0x1bb)](_0x5988dc(0x203),(_0x153b05,_0x185dcc)=>{const _0xea57f5=_0x5988dc;this[_0xea57f5(0x1e5)](),this[_0xea57f5(0x1dc)](_0xea57f5(0x1e9)),_0x185dcc();});}[_0x2d821e(0x1e2)](){const _0x3f06ca=_0x2d821e,_0x1fa412=this[_0x3f06ca(0x1cf)]()[_0x3f06ca(0x1ea)]();_0x1fa412?this[_0x3f06ca(0x1ef)](_0x1fa412)?(this[_0x3f06ca(0x1e6)](),this[_0x3f06ca(0x1dc)](_0x3f06ca(0x1f3),_0x1fa412)):this[_0x3f06ca(0x1e7)](_0x134650(this[_0x3f06ca(0x1ca)],_0x3f06ca(0x1c1))):this[_0x3f06ca(0x1e7)](_0x134650(this[_0x3f06ca(0x1ca)],_0x3f06ca(0x201)));}[_0x2d821e(0x1ff)](){const _0x32b42c=_0x2d821e,_0x23098d=this[_0x32b42c(0x1cf)]()[_0x32b42c(0x1ea)](),_0x22414b=!!this[_0x32b42c(0x1c7)][_0x32b42c(0x1ee)];this[_0x32b42c(0x1d9)][_0x32b42c(0x1f2)]=_0x23098d[_0x32b42c(0x1fc)]>0x0&&!_0x22414b;}[_0x2d821e(0x1ef)](_0x7646af){try{return!!new URL(_0x7646af);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x5b5b(_0x4ba31a,_0x13b5df){const _0x3779a9=_0x3779();return _0x5b5b=function(_0x5b5bc7,_0x2ff7bd){_0x5b5bc7=_0x5b5bc7-0x10e;let _0x53a3b3=_0x3779a9[_0x5b5bc7];return _0x53a3b3;},_0x5b5b(_0x4ba31a,_0x13b5df);}const _0x21a751=_0x5b5b;(function(_0x4e9d64,_0x3610c8){const _0x16f732=_0x5b5b,_0x4a83c1=_0x4e9d64();while(!![]){try{const _0x11d369=parseInt(_0x16f732(0x151))/0x1+-parseInt(_0x16f732(0x17c))/0x2+parseInt(_0x16f732(0x131))/0x3+-parseInt(_0x16f732(0x153))/0x4+-parseInt(_0x16f732(0x192))/0x5*(parseInt(_0x16f732(0x15d))/0x6)+parseInt(_0x16f732(0x115))/0x7*(-parseInt(_0x16f732(0x19a))/0x8)+parseInt(_0x16f732(0x139))/0x9;if(_0x11d369===_0x3610c8)break;else _0x4a83c1['push'](_0x4a83c1['shift']());}catch(_0x47ffad){_0x4a83c1['push'](_0x4a83c1['shift']());}}}(_0x3779,0x8c62a));import{BalloonPanelView as _0x500f13,ButtonView as _0x5acd13,clickOutsideHandler as _0x385be2,FileDialogButtonView as _0x547be5,IconView as _0x54d274,View as _0x40a7fb}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x301489,IconDocument as _0x4bf564,IconDocumentOutline as _0x2c3dac,IconDropdownArrow as _0x36e10d,IconLink as _0x9ea0b1,IconPaperClip as _0x3520a2}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2e68fc}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x536cda}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x430289}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x2b2b1f}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x36aaa6}from'./resources/aichatresourcesballoonview.js';function _0x3779(){const _0x7517f4=['isEnabled','ck-ai-chat-context-controls__balloon-button','ck-ai-chat-context-controls__url-balloon-panel','current','cancel','ck-ai-chat','northArrowSouthWest','hideUrlBalloonPanel','remove','1832913SdFKbU','locale','add','_createArrowView','fire','_bindEventHandlers','bodyCollection','removeContextItemChip','23443281aPeHsT','isHidden','ck-ai-chat-context-controls__pending-contexts','balloonView','isAnyResourceBalloonVisible','_showSourceResourcesBalloon','_handleUrlSubmit','setAddContextOptions','reorganizeChips','setTemplate','ck-ai-chat-context-controls','setConversationContext','extendTemplate','_addContextBalloonConfig','_addUrlContent','ck-ai-chat-controls_context_show-more-button','setContainerElement','_setupAllBalloonClickOutsideHandlers','southArrowNorthEast','addContextItem','hideAddContextBalloonPanel','_createAddContextBalloonPanelView','_createUrlBalloonPanelView','addDocumentToContext','521132nHIqup','removeContextItem','3905204oTItwS','_resourcesBalloonView','done','execute','conversation','AI_CHAT_CONTEXT_FILE_LABEL','clear','defaultPositions','overflowChips','label','19254GEwYqg','children','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','loadSourceResources','ck-ai-chat-context-chips-wrapper-balloon','_setBalloonPanelContent','isReadOnly','pin','closest','southArrowNorthWest','northArrowSouth','source','enabled','_setAddContextButtonEnabled','addFileToContext','showUrlBalloonPanel','content','type','isLoading','files','northArrowSouthEast','_setupUrlBalloonClickOutsideHandler','_conversationContextsChips','ck-ai-chat-context-controls__show-more-balloon-panel','set','isVisible','ck-ai-chat-controls-button','closeSourceResourceBalloon','_addContextToCollection','_handleAddContextButtonClick','show','2070836RHctVn','_urlBalloonPanelView','sources','AI_CHAT_CONTEXT_URL_LABEL','ck-ai-chat-context-controls__add-context-balloon-panel','_currentContextsChips','div','_overflowManager','focus','document','arrowView','hide','_createBaseBalloonPanel','_removeContextFromCollection','showSourceResourcesBalloon','updateResourceState','_addContextBalloonPanelView','populateSourceResourceBalloon','_getLimiterElement','menuitem','isOn','_setupTemplate','385NyBbXB','_createResourcesBalloonView','_createBalloonButton','find','addContextButtonView','showAddContextBalloonPanel','submitUrl','AI_CHAT_CONTEXT_ADD_CONTEXT','3612328GdvyMv','addResourceToContext','ck-ai-chat-context-controls__add-context-button','icon','tooltip','clearCurrentContextItems','render','destroy','searchInputVisibleFrom','urls','14LbjOPK','bind','ck-reset_all-excluded','_createContextButton','southArrowNorth','_setupAddContextBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button-source','element','body','refreshBalloon','createCollection','_toggleAddContextBalloon','buttonView','__arrow','addUrlToContext','setContextItemLoading','_createAddContextButtonView','clearConversationContextItems','_urlInputView'];_0x3779=function(){return _0x7517f4;};return _0x3779();}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x21a751(0x150),_0x21a751(0x16b),_0x21a751(0x123),_0x21a751(0x19b),_0x21a751(0x152),_0x21a751(0x160)];const Ro=_0x21a751(0x143),Uo=_0x21a751(0x13b),Lo=_0x21a751(0x180),No=_0x21a751(0x19c),Oo=_0x21a751(0x12a),Mo=_0x21a751(0x129),Ho=_0x21a751(0x11b),bo=_0x21a751(0x177),Fo=_0x21a751(0x161),vo=_0x21a751(0x148),jo=_0x21a751(0x174),Xo=_0x21a751(0x12d),Do=[_0x500f13[_0x21a751(0x15a)][_0x21a751(0x12e)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x167)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x171)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x166)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x119)],_0x500f13[_0x21a751(0x15a)][_0x21a751(0x14b)]];export class AIChatContextPanelView extends _0x40a7fb{[_0x21a751(0x196)];[_0x21a751(0x181)]=this[_0x21a751(0x11f)]();[_0x21a751(0x173)]=this[_0x21a751(0x11f)]();[_0x21a751(0x183)];[_0x21a751(0x18c)];[_0x21a751(0x17d)];[_0x21a751(0x127)];[_0x21a751(0x154)];[_0x21a751(0x146)];[_0x21a751(0x137)];constructor(_0x10a458,_0x5788a3){const _0x4b3afd=_0x21a751;super(_0x10a458),this[_0x4b3afd(0x137)]=_0x5788a3[_0x4b3afd(0x137)],this[_0x4b3afd(0x181)]=this[_0x4b3afd(0x11f)](),this[_0x4b3afd(0x173)]=this[_0x4b3afd(0x11f)](),this[_0x4b3afd(0x196)]=this[_0x4b3afd(0x125)](_0x10a458),this[_0x4b3afd(0x18c)]=this[_0x4b3afd(0x14e)](_0x10a458),this[_0x4b3afd(0x17d)]=this[_0x4b3afd(0x14f)](_0x10a458),this[_0x4b3afd(0x154)]=this[_0x4b3afd(0x193)](_0x10a458,_0x5788a3);const _0x2599e8={'cssClasses':{'showMoreButton':vo,'showMoreBalloon':jo,'overflowContainer':Fo,'controlsButton':bo}};this[_0x4b3afd(0x183)]=new _0x430289(_0x10a458,this[_0x4b3afd(0x181)],_0x2599e8,this[_0x4b3afd(0x137)],this),this[_0x4b3afd(0x146)]={'buttonView':this[_0x4b3afd(0x196)],'balloonView':this[_0x4b3afd(0x18c)],'hideMethod':this[_0x4b3afd(0x14d)][_0x4b3afd(0x116)](this),'showMethod':this[_0x4b3afd(0x197)][_0x4b3afd(0x116)](this)},this[_0x4b3afd(0x191)](),this[_0x4b3afd(0x136)]();}[_0x21a751(0x111)](){const _0x3a035d=_0x21a751;super[_0x3a035d(0x111)](),this[_0x3a035d(0x14a)](),this[_0x3a035d(0x183)][_0x3a035d(0x149)](this[_0x3a035d(0x11c)]),this[_0x3a035d(0x183)][_0x3a035d(0x141)]();}[_0x21a751(0x112)](){const _0x1d6649=_0x21a751;super[_0x1d6649(0x112)](),this[_0x1d6649(0x183)][_0x1d6649(0x112)](),this[_0x1d6649(0x154)][_0x1d6649(0x112)]();}[_0x21a751(0x14c)](_0x1962ed,_0x5d46be){const _0x1bc594=_0x21a751,_0x4d5f16=this[_0x1bc594(0x118)](_0x1962ed,_0x1bc594(0x12b),!0x0,_0x5d46be);this[_0x1bc594(0x179)](_0x4d5f16,this[_0x1bc594(0x181)]),this[_0x1bc594(0x183)][_0x1bc594(0x141)]();}[_0x21a751(0x152)](_0xc542fb){const _0x6eb290=_0x21a751;this[_0x6eb290(0x189)](_0xc542fb,this[_0x6eb290(0x181)]),this[_0x6eb290(0x189)](_0xc542fb,this[_0x6eb290(0x183)][_0x6eb290(0x15b)]),this[_0x6eb290(0x183)][_0x6eb290(0x141)]();}[_0x21a751(0x124)](_0x4e477c,_0x5aeeed){const _0x7d7e62=_0x21a751;let _0x1b3586=this[_0x7d7e62(0x181)][_0x7d7e62(0x195)](_0x4db2fd=>_0x4db2fd['id']===_0x4e477c);_0x1b3586||(_0x1b3586=this[_0x7d7e62(0x183)][_0x7d7e62(0x15b)][_0x7d7e62(0x195)](_0x40ddc3=>_0x40ddc3['id']===_0x4e477c)),_0x1b3586&&(_0x1b3586[_0x7d7e62(0x16f)]=_0x5aeeed);}[_0x21a751(0x144)](_0x277478){const _0xe87886=_0x21a751;this[_0xe87886(0x173)][_0xe87886(0x159)]();for(const _0x20bb8c of _0x277478){const _0x59818d=this[_0xe87886(0x118)](_0x20bb8c,_0xe87886(0x157),!0x1,!0x1);this[_0xe87886(0x179)](_0x59818d,this[_0xe87886(0x173)]);}}[_0x21a751(0x110)](){const _0x788134=_0x21a751;this[_0x788134(0x181)][_0x788134(0x159)](),this[_0x788134(0x183)][_0x788134(0x159)]();}[_0x21a751(0x126)](){const _0x2a07ba=_0x21a751;this[_0x2a07ba(0x173)][_0x2a07ba(0x159)]();}[_0x21a751(0x18b)](_0x5bf947,_0xad3f5,_0x1f9d77){const _0x4632d9=_0x21a751;this[_0x4632d9(0x154)][_0x4632d9(0x18b)](_0x5bf947,_0xad3f5,_0x1f9d77);}[_0x21a751(0x14d)](){const _0x5ebe00=_0x21a751;this[_0x5ebe00(0x120)](!0x1);}[_0x21a751(0x197)](){const _0x1dc7e1=_0x21a751;this[_0x1dc7e1(0x120)](!0x0);}[_0x21a751(0x12f)](){const _0x22a1a3=_0x21a751;this[_0x22a1a3(0x17d)][_0x22a1a3(0x187)](),this[_0x22a1a3(0x196)][_0x22a1a3(0x190)]=!0x1,this[_0x22a1a3(0x127)]&&this[_0x22a1a3(0x127)][_0x22a1a3(0x159)]();}[_0x21a751(0x16c)](){const _0x46eadd=_0x21a751;this[_0x46eadd(0x17d)][_0x46eadd(0x17b)](),this[_0x46eadd(0x196)][_0x46eadd(0x190)]=!0x0;}[_0x21a751(0x13e)](_0x121fa4){const _0x493a91=_0x21a751;this[_0x493a91(0x154)][_0x493a91(0x18a)](_0x121fa4),this[_0x493a91(0x196)][_0x493a91(0x190)]=!0x0;}[_0x21a751(0x18d)](_0x1c27e7,_0x2111ee,_0x3dec81,_0x43ea9f){const _0x4ec06a=_0x21a751;this[_0x4ec06a(0x154)][_0x4ec06a(0x18d)](_0x1c27e7,_0x3dec81,_0x43ea9f);}[_0x21a751(0x178)](_0x5c2b6c){const _0x3b8a27=_0x21a751;this[_0x3b8a27(0x154)][_0x3b8a27(0x178)](_0x5c2b6c),this[_0x3b8a27(0x196)][_0x3b8a27(0x190)]=!0x1;}[_0x21a751(0x140)](_0x10f46e){const _0x357b96=_0x21a751;this[_0x357b96(0x162)](this[_0x357b96(0x18c)],this[_0x357b96(0x132)],_0x10f46e),this[_0x357b96(0x16a)](_0x10f46e);}[_0x21a751(0x16a)](_0x234fbb){const _0xe8963f=_0x21a751,_0x24f989=!_0x234fbb[_0xe8963f(0x185)][_0xe8963f(0x13a)]&&_0x234fbb[_0xe8963f(0x185)][_0xe8963f(0x169)],_0x3bb4c5=_0x234fbb[_0xe8963f(0x114)][_0xe8963f(0x169)],_0x1cdf7e=_0x234fbb[_0xe8963f(0x170)][_0xe8963f(0x169)];this[_0xe8963f(0x196)][_0xe8963f(0x128)]=_0x24f989||_0x3bb4c5||_0x1cdf7e;}[_0x21a751(0x191)](){const _0x1cbb61=_0x21a751;this[_0x1cbb61(0x142)]({'tag':_0x1cbb61(0x182),'attributes':{'class':[Ro,_0x1cbb61(0x117)]},'children':[{'tag':_0x1cbb61(0x182),'attributes':{'class':Uo},'children':this[_0x1cbb61(0x181)]}]});}[_0x21a751(0x136)](){const _0x4b5674=_0x21a751;this[_0x4b5674(0x196)]['on'](_0x4b5674(0x156),()=>{const _0xcdba33=_0x4b5674;this[_0xcdba33(0x17a)]();});}[_0x21a751(0x125)](_0x2302d4){const _0x4cd062=_0x21a751,_0x21c253=new _0x5acd13(_0x2302d4);return _0x21c253[_0x4cd062(0x175)]({'label':_0x2b2b1f(_0x2302d4,_0x4cd062(0x199)),'class':bo+'\x20'+No,'icon':_0x3520a2,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x21c253;}[_0x21a751(0x14e)](_0xbf1ff4){const _0xe198e2=_0x21a751;return this[_0xe198e2(0x188)](_0xbf1ff4,Lo);}[_0x21a751(0x14f)](_0x2a75fd){const _0x12579c=_0x21a751,_0x60f99e=this[_0x12579c(0x188)](_0x2a75fd,Oo);return this[_0x12579c(0x147)](_0x60f99e,_0x2a75fd),_0x60f99e;}[_0x21a751(0x193)](_0x332d4c,_0x5d5e5b){const _0x5acbc7=_0x21a751,_0x1898b3={'searchInputVisibleFrom':_0x5d5e5b[_0x5acbc7(0x113)],'onBackToContext':()=>{const _0x49d335=_0x5acbc7;this[_0x49d335(0x197)](),this[_0x49d335(0x18c)][_0x49d335(0x164)]({'target':this[_0x49d335(0x196)][_0x49d335(0x11c)],'limiter':this[_0x49d335(0x18e)](),'positions':Do});},'onResourceSelected':(_0x46b8da,_0x41229d)=>{const _0x5cb079=_0x5acbc7;this[_0x5cb079(0x135)](_0x5cb079(0x19b),{'source':_0x46b8da,'resource':_0x41229d});},'onLoadSourceResources':_0x3e9ea9=>{const _0x2ed585=_0x5acbc7;this[_0x2ed585(0x135)](_0x2ed585(0x160),_0x3e9ea9);},'onBalloonClosed':()=>{const _0x5c03b2=_0x5acbc7;this[_0x5c03b2(0x196)][_0x5c03b2(0x190)]=!0x1;},'getLimiterElement':()=>this[_0x5acbc7(0x18e)](),'getTargetElement':()=>this[_0x5acbc7(0x196)][_0x5acbc7(0x11c)]};return new _0x36aaa6(_0x332d4c,_0x5d5e5b[_0x5acbc7(0x137)],_0x1898b3);}[_0x21a751(0x18e)](){const _0x59c40b=_0x21a751;return this[_0x59c40b(0x11c)]?.[_0x59c40b(0x165)]('.'+Xo)||document[_0x59c40b(0x11d)];}[_0x21a751(0x188)](_0x214b3e,_0x3e86a5){const _0x4fe115=_0x21a751,_0x447c01=new _0x500f13(_0x214b3e);return _0x447c01[_0x4fe115(0x145)]({'attributes':{'class':_0x3e86a5}}),this[_0x4fe115(0x137)][_0x4fe115(0x133)](_0x447c01),_0x447c01;}[_0x21a751(0x162)](_0x3a9787,_0x556c21,_0x34fb8d){const _0x14e967=_0x21a751;if(_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x159)](),!_0x34fb8d[_0x14e967(0x185)][_0x14e967(0x13a)]&&_0x34fb8d[_0x14e967(0x185)][_0x14e967(0x169)]){const _0x1f7540=this[_0x14e967(0x194)](_0x556c21,{'label':_0x2b2b1f(_0x556c21,_0x14e967(0x15f)),'icon':_0x4bf564});_0x1f7540['on'](_0x14e967(0x156),()=>{const _0x69ae50=_0x14e967;this[_0x69ae50(0x135)](_0x69ae50(0x150)),this[_0x69ae50(0x14d)]();}),_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x133)](_0x1f7540);}if(_0x34fb8d[_0x14e967(0x114)][_0x14e967(0x169)]){const _0x5f1461=this[_0x14e967(0x194)](_0x556c21,{'label':_0x2b2b1f(_0x556c21,_0x14e967(0x17f)),'icon':_0x9ea0b1});_0x5f1461['on'](_0x14e967(0x156),()=>{const _0x202ca9=_0x14e967;this[_0x202ca9(0x14d)](),this[_0x202ca9(0x16c)](),this[_0x202ca9(0x17d)][_0x202ca9(0x164)]({'target':this[_0x202ca9(0x196)][_0x202ca9(0x11c)],'limiter':this[_0x202ca9(0x18e)](),'positions':Do}),this[_0x202ca9(0x127)][_0x202ca9(0x184)]();}),_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x133)](_0x5f1461);}if(_0x34fb8d[_0x14e967(0x170)][_0x14e967(0x169)]){const _0xd44b91=new _0x547be5(_0x556c21);_0xd44b91[_0x14e967(0x175)]({'label':_0x2b2b1f(_0x556c21,_0x14e967(0x158)),'icon':_0x301489,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0xd44b91['on'](_0x14e967(0x155),(_0x3a8f33,_0x354a0b)=>{const _0x1ad576=_0x14e967;this[_0x1ad576(0x135)](_0x1ad576(0x16b),_0x354a0b),this[_0x1ad576(0x14d)]();}),_0xd44b91[_0x14e967(0x10f)]=!0x0,_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x133)](_0xd44b91);}for(const _0x1e4588 of _0x34fb8d[_0x14e967(0x17e)]){const _0x590c63=this[_0x14e967(0x194)](_0x556c21,{'label':_0x1e4588[_0x14e967(0x15c)],'icon':_0x1e4588[_0x14e967(0x10e)]||_0x2c3dac,'type':_0x14e967(0x168)});_0x3a9787[_0x14e967(0x16d)][_0x14e967(0x133)](_0x590c63),_0x590c63['on'](_0x14e967(0x156),()=>{const _0xf42c21=_0x14e967;this[_0xf42c21(0x14d)](),this[_0xf42c21(0x13e)](_0x1e4588);});}}[_0x21a751(0x147)](_0x6a0cf1,_0x5a9457){const _0x18bdc6=_0x21a751;this[_0x18bdc6(0x127)]=new _0x536cda(_0x5a9457),this[_0x18bdc6(0x127)]['on'](_0x18bdc6(0x198),(_0x4cb99e,_0x24686d)=>{const _0x2c96a2=_0x18bdc6;this[_0x2c96a2(0x13f)](_0x24686d);}),this[_0x18bdc6(0x127)]['on'](_0x18bdc6(0x12c),()=>{const _0x130331=_0x18bdc6;this[_0x130331(0x12f)](),this[_0x130331(0x197)](),this[_0x130331(0x18c)][_0x130331(0x164)]({'target':this[_0x130331(0x196)][_0x130331(0x11c)],'limiter':this[_0x130331(0x18e)](),'positions':Do});}),this[_0x18bdc6(0x127)]['on'](_0x18bdc6(0x11e),()=>{const _0x48887c=_0x18bdc6;this[_0x48887c(0x17d)][_0x48887c(0x176)]&&this[_0x48887c(0x17d)][_0x48887c(0x164)]({'target':this[_0x48887c(0x196)][_0x48887c(0x11c)],'limiter':this[_0x48887c(0x18e)](),'positions':Do});}),_0x6a0cf1[_0x18bdc6(0x16d)][_0x18bdc6(0x133)](this[_0x18bdc6(0x127)]);}[_0x21a751(0x194)](_0x279f0d,_0x128576){const _0x55aef8=_0x21a751,_0xbf13c1=_0x55aef8(0x168)===_0x128576[_0x55aef8(0x16e)]?new SourcesBalloonButtonView(_0x279f0d):new _0x5acd13(_0x279f0d);return _0xbf13c1[_0x55aef8(0x175)]({'label':_0x128576[_0x55aef8(0x15c)],'icon':_0x128576[_0x55aef8(0x10e)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0xbf13c1;}[_0x21a751(0x14a)](){const _0x58cf47=_0x21a751;this[_0x58cf47(0x11a)](),this[_0x58cf47(0x172)]();}[_0x21a751(0x172)](){const _0x22adb7=_0x21a751;_0x385be2({'emitter':this[_0x22adb7(0x17d)],'contextElements':[this[_0x22adb7(0x17d)][_0x22adb7(0x11c)]],'callback':()=>{const _0x3253c4=_0x22adb7;this[_0x3253c4(0x12f)]();},'activator':()=>this[_0x22adb7(0x17d)][_0x22adb7(0x176)]});}[_0x21a751(0x120)](_0x5e63b1){const _0x594bbd=_0x21a751,_0x27fe96=this[_0x594bbd(0x146)];_0x27fe96[_0x594bbd(0x121)][_0x594bbd(0x190)]=_0x5e63b1,_0x5e63b1?_0x27fe96[_0x594bbd(0x13c)][_0x594bbd(0x17b)]():_0x27fe96[_0x594bbd(0x13c)][_0x594bbd(0x187)]();}[_0x21a751(0x11a)](){const _0x41ef23=_0x21a751,{balloonView:_0x79b01f,buttonView:_0x5e4405,hideMethod:_0x450a5e}=this[_0x41ef23(0x146)];_0x385be2({'emitter':_0x79b01f,'contextElements':[_0x79b01f[_0x41ef23(0x11c)],_0x5e4405[_0x41ef23(0x11c)]],'callback':()=>{_0x450a5e();},'activator':()=>_0x5e4405[_0x41ef23(0x190)]&&!this[_0x41ef23(0x17d)][_0x41ef23(0x176)]&&!this[_0x41ef23(0x154)][_0x41ef23(0x13d)]()});}[_0x21a751(0x118)](_0x4bab19,_0x170a15,_0x3ff5e8=!0x1,_0x386f9c=!0x1){const _0x71a4e3=_0x21a751,_0x2da78f=_0x71a4e3(0x157)===_0x170a15||!0x0===_0x4bab19[_0x71a4e3(0x163)],_0x3913a5=new _0x2e68fc(this[_0x71a4e3(0x132)],_0x4bab19,_0x2da78f,_0x3ff5e8,_0x386f9c);return _0x2da78f||_0x3913a5['on'](_0x71a4e3(0x138),()=>{const _0xfbd45a=_0x71a4e3;this[_0xfbd45a(0x135)](_0xfbd45a(0x152),_0x3913a5['id']);}),_0x3913a5;}[_0x21a751(0x179)](_0x562277,_0x338462){const _0x32efa0=_0x21a751;_0x338462[_0x32efa0(0x133)](_0x562277,0x0);}[_0x21a751(0x189)](_0x4ba073,_0xebde98){const _0x4923e2=_0x21a751,_0x5a708e=_0xebde98[_0x4923e2(0x195)](_0x216736=>_0x216736['id']===_0x4ba073);_0x5a708e&&_0xebde98[_0x4923e2(0x130)](_0x5a708e);}[_0x21a751(0x17a)](){const _0x4688a1=_0x21a751;this[_0x4688a1(0x196)][_0x4688a1(0x190)]?this[_0x4688a1(0x14d)]():(this[_0x4688a1(0x197)](),this[_0x4688a1(0x18c)][_0x4688a1(0x164)]({'target':this[_0x4688a1(0x196)][_0x4688a1(0x11c)],'limiter':this[_0x4688a1(0x18e)](),'positions':Do}));}[_0x21a751(0x13f)](_0x327b74){const _0x520cf9=_0x21a751;this[_0x520cf9(0x127)][_0x520cf9(0x159)](),this[_0x520cf9(0x12f)](),this[_0x520cf9(0x135)](_0x520cf9(0x123),_0x327b74);}}export class SourcesBalloonButtonView extends _0x5acd13{[_0x21a751(0x186)];constructor(_0x3a4758){const _0x215b55=_0x21a751;super(_0x3a4758),this[_0x215b55(0x175)]({'withText':!0x0,'role':_0x215b55(0x18f)}),this[_0x215b55(0x186)]=this[_0x215b55(0x134)](),this[_0x215b55(0x145)]({'attributes':{'class':[Ho]}});}[_0x21a751(0x111)](){const _0x22e107=_0x21a751;super[_0x22e107(0x111)](),this[_0x22e107(0x15e)][_0x22e107(0x133)](this[_0x22e107(0x186)]);}[_0x21a751(0x134)](){const _0x3360ce=_0x21a751,_0x43c70f=new _0x54d274();return _0x43c70f[_0x3360ce(0x16d)]=_0x36e10d,_0x43c70f[_0x3360ce(0x145)]({'attributes':{'class':Ho+_0x3360ce(0x122)}}),_0x43c70f;}}
|
|
23
|
+
const _0x12ea40=_0x38d5;function _0x406b(){const _0x65688=['icon','clearCurrentContextItems','urls','_getLimiterElement','destroy','_urlBalloonPanelView','_createAddContextButtonView','setAddContextOptions','defaultPositions','_handleAddContextButtonClick','_setBalloonPanelContent','createCollection','ck-ai-chat','southArrowNorth','document','_setAddContextButtonEnabled','type','submitUrl','searchInputVisibleFrom','ck-ai-chat-context-controls__pending-contexts','find','remove','enabled','northArrowSouthWest','_createAddContextBalloonPanelView','isHidden','setConversationContext','refreshBalloon','extendTemplate','ck-ai-chat-context-controls','_bindEventHandlers','northArrowSouth','_urlInputView','ck-ai-chat-context-controls__show-more-balloon-panel','isReadOnly','48mtvwYZ','showUrlBalloonPanel','hide','61621rEqBaG','addContextItem','_createArrowView','southArrowNorthEast','closest','2673760mdSmfh','834MZGedC','southArrowNorthWest','clear','ck-ai-chat-controls_context_show-more-button','AI_CHAT_CONTEXT_FILE_LABEL','done','showSourceResourcesBalloon','isLoading','current','AI_CHAT_CONTEXT_ADD_CONTEXT','pin','closeSourceResourceBalloon','isAnyResourceBalloonVisible','arrowView','hideUrlBalloonPanel','buttonView','_addContextBalloonConfig','AI_CHAT_CONTEXT_URL_LABEL','ck-ai-chat-context-controls__add-context-balloon-panel','_createBalloonButton','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','setContainerElement','tooltip','focus','_removeContextFromCollection','87093BjJMdE','isOn','_toggleAddContextBalloon','locale','populateSourceResourceBalloon','_setupUrlBalloonClickOutsideHandler','source','_currentContextsChips','addDocumentToContext','_addContextBalloonPanelView','setTemplate','div','184bqPEyP','_conversationContextsChips','balloonView','bind','setContextItemLoading','ck-ai-chat-context-controls__balloon-button-source','label','addContextButtonView','__arrow','addFileToContext','cancel','isEnabled','add','ck-ai-chat-context-controls__url-balloon-panel','_showSourceResourcesBalloon','show','menuitem','ck-ai-chat-context-controls__add-context-button','10FiBgUl','updateResourceState','element','loadSourceResources','hideAddContextBalloonPanel','_setupTemplate','set','_createContextButton','bodyCollection','sources','removeContextItem','_handleUrlSubmit','conversation','render','addUrlToContext','_overflowManager','isVisible','_addContextToCollection','1275308CvjGzD','reorganizeChips','13895442tdjLXk','children','addResourceToContext','removeContextItemChip','execute','_createResourcesBalloonView','_setupAddContextBalloonClickOutsideHandler','files','98372LpNpRy','clearConversationContextItems','46821EkLPJP','body','ck-ai-chat-context-chips-wrapper-balloon','fire','_addUrlContent','_createUrlBalloonPanelView','content','_createBaseBalloonPanel','_resourcesBalloonView','ck-ai-chat-controls-button','showAddContextBalloonPanel','ck-ai-chat-context-controls__balloon-button','northArrowSouthEast','ck-reset_all-excluded','_setupAllBalloonClickOutsideHandlers','overflowChips'];_0x406b=function(){return _0x65688;};return _0x406b();}(function(_0x33a2ae,_0x85bb7e){const _0x4793db=_0x38d5,_0x3016cf=_0x33a2ae();while(!![]){try{const _0x377dc1=parseInt(_0x4793db(0x20d))/0x1+-parseInt(_0x4793db(0x217))/0x2+parseInt(_0x4793db(0x219))/0x3*(-parseInt(_0x4793db(0x24c))/0x4)+-parseInt(_0x4793db(0x254))/0x5+-parseInt(_0x4793db(0x255))/0x6*(-parseInt(_0x4793db(0x24f))/0x7)+-parseInt(_0x4793db(0x1e9))/0x8*(-parseInt(_0x4793db(0x1dd))/0x9)+parseInt(_0x4793db(0x1fb))/0xa*(-parseInt(_0x4793db(0x20f))/0xb);if(_0x377dc1===_0x85bb7e)break;else _0x3016cf['push'](_0x3016cf['shift']());}catch(_0x255089){_0x3016cf['push'](_0x3016cf['shift']());}}}(_0x406b,0xa7bcc));function _0x38d5(_0x28dfb7,_0x5e469a){const _0x406bc3=_0x406b();return _0x38d5=function(_0x38d52f,_0x5ced74){_0x38d52f=_0x38d52f-0x1c6;let _0x5f1aef=_0x406bc3[_0x38d52f];return _0x5f1aef;},_0x38d5(_0x28dfb7,_0x5e469a);}import{BalloonPanelView as _0x53a978,ButtonView as _0x4dfc42,clickOutsideHandler as _0x45f768,FileDialogButtonView as _0x25840c,IconView as _0x27811a,View as _0x349933}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x33b1a1,IconDocument as _0x1112b0,IconDocumentOutline as _0x478743,IconDropdownArrow as _0x1b1652,IconLink as _0x28606e,IconPaperClip as _0xc85aac}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x23b9b8}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x465b79}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x585d4c}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x4fa115}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x38adca}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x12ea40(0x1e5),_0x12ea40(0x1f2),_0x12ea40(0x209),_0x12ea40(0x211),_0x12ea40(0x205),_0x12ea40(0x1fe)];const ko=_0x12ea40(0x246),Eo=_0x12ea40(0x23c),vo=_0x12ea40(0x1d6),Vo=_0x12ea40(0x1fa),Io=_0x12ea40(0x1f6),Po=_0x12ea40(0x224),Ro=_0x12ea40(0x1ee),Uo=_0x12ea40(0x222),Lo=_0x12ea40(0x21b),No=_0x12ea40(0x1c7),Oo=_0x12ea40(0x24a),Mo=_0x12ea40(0x235),Ho=[_0x53a978[_0x12ea40(0x231)][_0x12ea40(0x240)],_0x53a978[_0x12ea40(0x231)][_0x12ea40(0x248)],_0x53a978[_0x12ea40(0x231)][_0x12ea40(0x225)],_0x53a978[_0x12ea40(0x231)][_0x12ea40(0x256)],_0x53a978[_0x12ea40(0x231)][_0x12ea40(0x236)],_0x53a978[_0x12ea40(0x231)][_0x12ea40(0x252)]];export class AIChatContextPanelView extends _0x349933{[_0x12ea40(0x1f0)];[_0x12ea40(0x1e4)]=this[_0x12ea40(0x234)]();[_0x12ea40(0x1ea)]=this[_0x12ea40(0x234)]();[_0x12ea40(0x20a)];[_0x12ea40(0x1e6)];[_0x12ea40(0x22e)];[_0x12ea40(0x249)];[_0x12ea40(0x221)];[_0x12ea40(0x1d4)];[_0x12ea40(0x203)];constructor(_0x1ba292,_0x1ddb7e){const _0x5df4=_0x12ea40;super(_0x1ba292),this[_0x5df4(0x203)]=_0x1ddb7e[_0x5df4(0x203)],this[_0x5df4(0x1e4)]=this[_0x5df4(0x234)](),this[_0x5df4(0x1ea)]=this[_0x5df4(0x234)](),this[_0x5df4(0x1f0)]=this[_0x5df4(0x22f)](_0x1ba292),this[_0x5df4(0x1e6)]=this[_0x5df4(0x241)](_0x1ba292),this[_0x5df4(0x22e)]=this[_0x5df4(0x21e)](_0x1ba292),this[_0x5df4(0x221)]=this[_0x5df4(0x214)](_0x1ba292,_0x1ddb7e);const _0xc87af5={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Lo,'controlsButton':Uo}};this[_0x5df4(0x20a)]=new _0x585d4c(_0x1ba292,this[_0x5df4(0x1e4)],_0xc87af5,this[_0x5df4(0x203)],this),this[_0x5df4(0x1d4)]={'buttonView':this[_0x5df4(0x1f0)],'balloonView':this[_0x5df4(0x1e6)],'hideMethod':this[_0x5df4(0x1ff)][_0x5df4(0x1ec)](this),'showMethod':this[_0x5df4(0x223)][_0x5df4(0x1ec)](this)},this[_0x5df4(0x200)](),this[_0x5df4(0x247)]();}[_0x12ea40(0x208)](){const _0x5f585c=_0x12ea40;super[_0x5f585c(0x208)](),this[_0x5f585c(0x227)](),this[_0x5f585c(0x20a)][_0x5f585c(0x1d9)](this[_0x5f585c(0x1fd)]),this[_0x5f585c(0x20a)][_0x5f585c(0x20e)]();}[_0x12ea40(0x22d)](){const _0x1aaec2=_0x12ea40;super[_0x1aaec2(0x22d)](),this[_0x1aaec2(0x20a)][_0x1aaec2(0x22d)](),this[_0x1aaec2(0x221)][_0x1aaec2(0x22d)]();}[_0x12ea40(0x250)](_0x3efa69,_0x404b37){const _0x36717c=_0x12ea40,_0x44862c=this[_0x36717c(0x202)](_0x3efa69,_0x36717c(0x1cc),!0x0,_0x404b37);this[_0x36717c(0x20c)](_0x44862c,this[_0x36717c(0x1e4)]),this[_0x36717c(0x20a)][_0x36717c(0x20e)]();}[_0x12ea40(0x205)](_0xb8bac9){const _0x5aeab9=_0x12ea40;this[_0x5aeab9(0x1dc)](_0xb8bac9,this[_0x5aeab9(0x1e4)]),this[_0x5aeab9(0x1dc)](_0xb8bac9,this[_0x5aeab9(0x20a)][_0x5aeab9(0x228)]),this[_0x5aeab9(0x20a)][_0x5aeab9(0x20e)]();}[_0x12ea40(0x1ed)](_0x548ae9,_0x95b7b0){const _0x463a38=_0x12ea40;let _0x1a29bb=this[_0x463a38(0x1e4)][_0x463a38(0x23d)](_0x3da12e=>_0x3da12e['id']===_0x548ae9);_0x1a29bb||(_0x1a29bb=this[_0x463a38(0x20a)][_0x463a38(0x228)][_0x463a38(0x23d)](_0x40da93=>_0x40da93['id']===_0x548ae9)),_0x1a29bb&&(_0x1a29bb[_0x463a38(0x1cb)]=_0x95b7b0);}[_0x12ea40(0x243)](_0x3a73c2){const _0x5cf790=_0x12ea40;this[_0x5cf790(0x1ea)][_0x5cf790(0x1c6)]();for(const _0x569339 of _0x3a73c2){const _0x1cd566=this[_0x5cf790(0x202)](_0x569339,_0x5cf790(0x207),!0x1,!0x1);this[_0x5cf790(0x20c)](_0x1cd566,this[_0x5cf790(0x1ea)]);}}[_0x12ea40(0x22a)](){const _0x5d6043=_0x12ea40;this[_0x5d6043(0x1e4)][_0x5d6043(0x1c6)](),this[_0x5d6043(0x20a)][_0x5d6043(0x1c6)]();}[_0x12ea40(0x218)](){const _0x36103e=_0x12ea40;this[_0x36103e(0x1ea)][_0x36103e(0x1c6)]();}[_0x12ea40(0x1fc)](_0x3c07af,_0x51f27f,_0x1f20dc){const _0x493e91=_0x12ea40;this[_0x493e91(0x221)][_0x493e91(0x1fc)](_0x3c07af,_0x51f27f,_0x1f20dc);}[_0x12ea40(0x1ff)](){const _0x3edf30=_0x12ea40;this[_0x3edf30(0x1df)](!0x1);}[_0x12ea40(0x223)](){const _0x225a8b=_0x12ea40;this[_0x225a8b(0x1df)](!0x0);}[_0x12ea40(0x1d2)](){const _0x2b6594=_0x12ea40;this[_0x2b6594(0x22e)][_0x2b6594(0x24e)](),this[_0x2b6594(0x1f0)][_0x2b6594(0x1de)]=!0x1,this[_0x2b6594(0x249)]&&this[_0x2b6594(0x249)][_0x2b6594(0x1c6)]();}[_0x12ea40(0x24d)](){const _0x6595c0=_0x12ea40;this[_0x6595c0(0x22e)][_0x6595c0(0x1f8)](),this[_0x6595c0(0x1f0)][_0x6595c0(0x1de)]=!0x0;}[_0x12ea40(0x1f7)](_0x284efc){const _0x8ed0=_0x12ea40;this[_0x8ed0(0x221)][_0x8ed0(0x1ca)](_0x284efc),this[_0x8ed0(0x1f0)][_0x8ed0(0x1de)]=!0x0;}[_0x12ea40(0x1e1)](_0xcb8711,_0x14408c,_0x4f1be1,_0x3782c7){const _0x521501=_0x12ea40;this[_0x521501(0x221)][_0x521501(0x1e1)](_0xcb8711,_0x4f1be1,_0x3782c7);}[_0x12ea40(0x1cf)](_0x3b6359){const _0x3e7b46=_0x12ea40;this[_0x3e7b46(0x221)][_0x3e7b46(0x1cf)](_0x3b6359),this[_0x3e7b46(0x1f0)][_0x3e7b46(0x1de)]=!0x1;}[_0x12ea40(0x230)](_0x9115ee){const _0x49af85=_0x12ea40;this[_0x49af85(0x233)](this[_0x49af85(0x1e6)],this[_0x49af85(0x1e0)],_0x9115ee),this[_0x49af85(0x238)](_0x9115ee);}[_0x12ea40(0x238)](_0xa47d89){const _0x250458=_0x12ea40,_0x3d23d9=!_0xa47d89[_0x250458(0x237)][_0x250458(0x242)]&&_0xa47d89[_0x250458(0x237)][_0x250458(0x23f)],_0x582ea7=_0xa47d89[_0x250458(0x22b)][_0x250458(0x23f)],_0x4faa7d=_0xa47d89[_0x250458(0x216)][_0x250458(0x23f)];this[_0x250458(0x1f0)][_0x250458(0x1f4)]=_0x3d23d9||_0x582ea7||_0x4faa7d;}[_0x12ea40(0x200)](){const _0x23fe0e=_0x12ea40;this[_0x23fe0e(0x1e7)]({'tag':_0x23fe0e(0x1e8),'attributes':{'class':[ko,_0x23fe0e(0x226)]},'children':[{'tag':_0x23fe0e(0x1e8),'attributes':{'class':Eo},'children':this[_0x23fe0e(0x1e4)]}]});}[_0x12ea40(0x247)](){const _0x41a7bc=_0x12ea40;this[_0x41a7bc(0x1f0)]['on'](_0x41a7bc(0x213),()=>{const _0x360cc0=_0x41a7bc;this[_0x360cc0(0x232)]();});}[_0x12ea40(0x22f)](_0x510dad){const _0x5255d3=_0x12ea40,_0x12b2af=new _0x4dfc42(_0x510dad);return _0x12b2af[_0x5255d3(0x201)]({'label':_0x4fa115(_0x510dad,_0x5255d3(0x1cd)),'class':Uo+'\x20'+Vo,'icon':_0xc85aac,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x12b2af;}[_0x12ea40(0x241)](_0x1caa5f){const _0x11d8d6=_0x12ea40;return this[_0x11d8d6(0x220)](_0x1caa5f,vo);}[_0x12ea40(0x21e)](_0x29cc6f){const _0x5f1f4c=_0x12ea40,_0x48c889=this[_0x5f1f4c(0x220)](_0x29cc6f,Io);return this[_0x5f1f4c(0x21d)](_0x48c889,_0x29cc6f),_0x48c889;}[_0x12ea40(0x214)](_0x27b103,_0x27ea0b){const _0x41789b=_0x12ea40,_0x23214e={'searchInputVisibleFrom':_0x27ea0b[_0x41789b(0x23b)],'onBackToContext':()=>{const _0x33addd=_0x41789b;this[_0x33addd(0x223)](),this[_0x33addd(0x1e6)][_0x33addd(0x1ce)]({'target':this[_0x33addd(0x1f0)][_0x33addd(0x1fd)],'limiter':this[_0x33addd(0x22c)](),'positions':Ho});},'onResourceSelected':(_0x3458ab,_0x1a6040)=>{const _0x381745=_0x41789b;this[_0x381745(0x21c)](_0x381745(0x211),{'source':_0x3458ab,'resource':_0x1a6040});},'onLoadSourceResources':_0x4bb53c=>{const _0xf0cf33=_0x41789b;this[_0xf0cf33(0x21c)](_0xf0cf33(0x1fe),_0x4bb53c);},'onBalloonClosed':()=>{const _0x411be9=_0x41789b;this[_0x411be9(0x1f0)][_0x411be9(0x1de)]=!0x1;},'getLimiterElement':()=>this[_0x41789b(0x22c)](),'getTargetElement':()=>this[_0x41789b(0x1f0)][_0x41789b(0x1fd)]};return new _0x38adca(_0x27b103,_0x27ea0b[_0x41789b(0x203)],_0x23214e);}[_0x12ea40(0x22c)](){const _0x223b3e=_0x12ea40;return this[_0x223b3e(0x1fd)]?.[_0x223b3e(0x253)]('.'+Mo)||document[_0x223b3e(0x21a)];}[_0x12ea40(0x220)](_0x40fd43,_0xdc46da){const _0xc6ea5c=_0x12ea40,_0x54ede3=new _0x53a978(_0x40fd43);return _0x54ede3[_0xc6ea5c(0x245)]({'attributes':{'class':_0xdc46da}}),this[_0xc6ea5c(0x203)][_0xc6ea5c(0x1f5)](_0x54ede3),_0x54ede3;}[_0x12ea40(0x233)](_0x175ef3,_0x7e0abc,_0x1048b2){const _0x133947=_0x12ea40;if(_0x175ef3[_0x133947(0x21f)][_0x133947(0x1c6)](),!_0x1048b2[_0x133947(0x237)][_0x133947(0x242)]&&_0x1048b2[_0x133947(0x237)][_0x133947(0x23f)]){const _0x26f0a7=this[_0x133947(0x1d7)](_0x7e0abc,{'label':_0x4fa115(_0x7e0abc,_0x133947(0x1d8)),'icon':_0x1112b0});_0x26f0a7['on'](_0x133947(0x213),()=>{const _0x1c806b=_0x133947;this[_0x1c806b(0x21c)](_0x1c806b(0x1e5)),this[_0x1c806b(0x1ff)]();}),_0x175ef3[_0x133947(0x21f)][_0x133947(0x1f5)](_0x26f0a7);}if(_0x1048b2[_0x133947(0x22b)][_0x133947(0x23f)]){const _0x21e793=this[_0x133947(0x1d7)](_0x7e0abc,{'label':_0x4fa115(_0x7e0abc,_0x133947(0x1d5)),'icon':_0x28606e});_0x21e793['on'](_0x133947(0x213),()=>{const _0x3c7a42=_0x133947;this[_0x3c7a42(0x1ff)](),this[_0x3c7a42(0x24d)](),this[_0x3c7a42(0x22e)][_0x3c7a42(0x1ce)]({'target':this[_0x3c7a42(0x1f0)][_0x3c7a42(0x1fd)],'limiter':this[_0x3c7a42(0x22c)](),'positions':Ho}),this[_0x3c7a42(0x249)][_0x3c7a42(0x1db)]();}),_0x175ef3[_0x133947(0x21f)][_0x133947(0x1f5)](_0x21e793);}if(_0x1048b2[_0x133947(0x216)][_0x133947(0x23f)]){const _0x3f242c=new _0x25840c(_0x7e0abc);_0x3f242c[_0x133947(0x201)]({'label':_0x4fa115(_0x7e0abc,_0x133947(0x1c8)),'icon':_0x33b1a1,'withText':!0x0,'tooltip':!0x0,'class':Po,'allowMultipleFiles':!0x0}),_0x3f242c['on'](_0x133947(0x1c9),(_0x11bfb3,_0x311ab6)=>{const _0x33bf20=_0x133947;this[_0x33bf20(0x21c)](_0x33bf20(0x1f2),_0x311ab6),this[_0x33bf20(0x1ff)]();}),_0x3f242c[_0x133947(0x1da)]=!0x0,_0x175ef3[_0x133947(0x21f)][_0x133947(0x1f5)](_0x3f242c);}for(const _0x955ab7 of _0x1048b2[_0x133947(0x204)]){const _0x1498c7=this[_0x133947(0x1d7)](_0x7e0abc,{'label':_0x955ab7[_0x133947(0x1ef)],'icon':_0x955ab7[_0x133947(0x229)]||_0x478743,'type':_0x133947(0x1e3)});_0x175ef3[_0x133947(0x21f)][_0x133947(0x1f5)](_0x1498c7),_0x1498c7['on'](_0x133947(0x213),()=>{const _0x11c3dc=_0x133947;this[_0x11c3dc(0x1ff)](),this[_0x11c3dc(0x1f7)](_0x955ab7);});}}[_0x12ea40(0x21d)](_0x386b0b,_0x3992ff){const _0x3ca00f=_0x12ea40;this[_0x3ca00f(0x249)]=new _0x465b79(_0x3992ff),this[_0x3ca00f(0x249)]['on'](_0x3ca00f(0x23a),(_0x20967f,_0x5411ee)=>{const _0xbfe08=_0x3ca00f;this[_0xbfe08(0x206)](_0x5411ee);}),this[_0x3ca00f(0x249)]['on'](_0x3ca00f(0x1f3),()=>{const _0x5ae21b=_0x3ca00f;this[_0x5ae21b(0x1d2)](),this[_0x5ae21b(0x223)](),this[_0x5ae21b(0x1e6)][_0x5ae21b(0x1ce)]({'target':this[_0x5ae21b(0x1f0)][_0x5ae21b(0x1fd)],'limiter':this[_0x5ae21b(0x22c)](),'positions':Ho});}),this[_0x3ca00f(0x249)]['on'](_0x3ca00f(0x244),()=>{const _0x155d63=_0x3ca00f;this[_0x155d63(0x22e)][_0x155d63(0x20b)]&&this[_0x155d63(0x22e)][_0x155d63(0x1ce)]({'target':this[_0x155d63(0x1f0)][_0x155d63(0x1fd)],'limiter':this[_0x155d63(0x22c)](),'positions':Ho});}),_0x386b0b[_0x3ca00f(0x21f)][_0x3ca00f(0x1f5)](this[_0x3ca00f(0x249)]);}[_0x12ea40(0x1d7)](_0x547b87,_0x3cc67f){const _0x155efd=_0x12ea40,_0x4f286f=_0x155efd(0x1e3)===_0x3cc67f[_0x155efd(0x239)]?new SourcesBalloonButtonView(_0x547b87):new _0x4dfc42(_0x547b87);return _0x4f286f[_0x155efd(0x201)]({'label':_0x3cc67f[_0x155efd(0x1ef)],'icon':_0x3cc67f[_0x155efd(0x229)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Po}),_0x4f286f;}[_0x12ea40(0x227)](){const _0x5b3708=_0x12ea40;this[_0x5b3708(0x215)](),this[_0x5b3708(0x1e2)]();}[_0x12ea40(0x1e2)](){const _0x4a8ce9=_0x12ea40;_0x45f768({'emitter':this[_0x4a8ce9(0x22e)],'contextElements':[this[_0x4a8ce9(0x22e)][_0x4a8ce9(0x1fd)]],'callback':()=>{const _0x1ef4e0=_0x4a8ce9;this[_0x1ef4e0(0x1d2)]();},'activator':()=>this[_0x4a8ce9(0x22e)][_0x4a8ce9(0x20b)]});}[_0x12ea40(0x1df)](_0x266691){const _0x3499de=_0x12ea40,_0x121024=this[_0x3499de(0x1d4)];_0x121024[_0x3499de(0x1d3)][_0x3499de(0x1de)]=_0x266691,_0x266691?_0x121024[_0x3499de(0x1eb)][_0x3499de(0x1f8)]():_0x121024[_0x3499de(0x1eb)][_0x3499de(0x24e)]();}[_0x12ea40(0x215)](){const _0x1d3fcd=_0x12ea40,{balloonView:_0x101414,buttonView:_0x302bda,hideMethod:_0x53d135}=this[_0x1d3fcd(0x1d4)];_0x45f768({'emitter':_0x101414,'contextElements':[_0x101414[_0x1d3fcd(0x1fd)],_0x302bda[_0x1d3fcd(0x1fd)]],'callback':()=>{_0x53d135();},'activator':()=>_0x302bda[_0x1d3fcd(0x1de)]&&!this[_0x1d3fcd(0x22e)][_0x1d3fcd(0x20b)]&&!this[_0x1d3fcd(0x221)][_0x1d3fcd(0x1d0)]()});}[_0x12ea40(0x202)](_0x5eded6,_0x5c00f2,_0x401eb0=!0x1,_0x5a1590=!0x1){const _0x2e3584=_0x12ea40,_0x22a138=_0x2e3584(0x207)===_0x5c00f2||!0x0===_0x5eded6[_0x2e3584(0x24b)],_0x322f5e=new _0x23b9b8(this[_0x2e3584(0x1e0)],_0x5eded6,_0x22a138,_0x401eb0,_0x5a1590);return _0x22a138||_0x322f5e['on'](_0x2e3584(0x212),()=>{const _0x2e9bd5=_0x2e3584;this[_0x2e9bd5(0x21c)](_0x2e9bd5(0x205),_0x322f5e['id']);}),_0x322f5e;}[_0x12ea40(0x20c)](_0x2fc555,_0x21ef1e){const _0x315363=_0x12ea40;_0x21ef1e[_0x315363(0x1f5)](_0x2fc555,0x0);}[_0x12ea40(0x1dc)](_0x1b2177,_0x5f08ca){const _0x15f38b=_0x12ea40,_0x4e9d83=_0x5f08ca[_0x15f38b(0x23d)](_0x46a8d1=>_0x46a8d1['id']===_0x1b2177);_0x4e9d83&&_0x5f08ca[_0x15f38b(0x23e)](_0x4e9d83);}[_0x12ea40(0x232)](){const _0x3fb8d4=_0x12ea40;this[_0x3fb8d4(0x1f0)][_0x3fb8d4(0x1de)]?this[_0x3fb8d4(0x1ff)]():(this[_0x3fb8d4(0x223)](),this[_0x3fb8d4(0x1e6)][_0x3fb8d4(0x1ce)]({'target':this[_0x3fb8d4(0x1f0)][_0x3fb8d4(0x1fd)],'limiter':this[_0x3fb8d4(0x22c)](),'positions':Ho}));}[_0x12ea40(0x206)](_0x485983){const _0x4403ee=_0x12ea40;this[_0x4403ee(0x249)][_0x4403ee(0x1c6)](),this[_0x4403ee(0x1d2)](),this[_0x4403ee(0x21c)](_0x4403ee(0x209),_0x485983);}}export class SourcesBalloonButtonView extends _0x4dfc42{[_0x12ea40(0x1d1)];constructor(_0x7b365e){const _0x35c5f1=_0x12ea40;super(_0x7b365e),this[_0x35c5f1(0x201)]({'withText':!0x0,'role':_0x35c5f1(0x1f9)}),this[_0x35c5f1(0x1d1)]=this[_0x35c5f1(0x251)](),this[_0x35c5f1(0x245)]({'attributes':{'class':[Ro]}});}[_0x12ea40(0x208)](){const _0x3a7fd3=_0x12ea40;super[_0x3a7fd3(0x208)](),this[_0x3a7fd3(0x210)][_0x3a7fd3(0x1f5)](this[_0x3a7fd3(0x1d1)]);}[_0x12ea40(0x251)](){const _0x4bcb7b=_0x12ea40,_0x4e660a=new _0x27811a();return _0x4e660a[_0x4bcb7b(0x21f)]=_0x1b1652,_0x4e660a[_0x4bcb7b(0x245)]({'attributes':{'class':Ro+_0x4bcb7b(0x1f1)}}),_0x4e660a;}}
|