@ckeditor/ckeditor5-ai 47.0.0-alpha.2 → 47.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.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.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hu.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/ko.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/nl.js +1 -1
- package/build/translations/no.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/sk.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/tr.js +1 -1
- package/build/translations/uk.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 +50 -37
- package/dist/index.css +68 -38
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +5 -0
- package/lang/translations/ar.po +171 -171
- package/lang/translations/bg.po +155 -155
- package/lang/translations/bn.po +155 -155
- package/lang/translations/ca.po +155 -155
- package/lang/translations/cs.po +159 -159
- package/lang/translations/da.po +155 -155
- package/lang/translations/de.po +155 -155
- package/lang/translations/el.po +155 -155
- package/lang/translations/es.po +155 -155
- package/lang/translations/et.po +155 -155
- package/lang/translations/fi.po +155 -155
- package/lang/translations/fr.po +155 -155
- package/lang/translations/he.po +155 -155
- package/lang/translations/hi.po +155 -155
- package/lang/translations/hu.po +155 -155
- package/lang/translations/id.po +151 -151
- package/lang/translations/it.po +155 -155
- package/lang/translations/ja.po +151 -151
- package/lang/translations/ko.po +151 -151
- package/lang/translations/lt.po +159 -159
- package/lang/translations/lv.po +159 -159
- package/lang/translations/ms.po +151 -151
- package/lang/translations/nl.po +155 -155
- package/lang/translations/no.po +155 -155
- package/lang/translations/pl.po +159 -159
- package/lang/translations/pt-br.po +155 -155
- package/lang/translations/pt.po +155 -155
- package/lang/translations/ro.po +159 -159
- package/lang/translations/ru.po +159 -159
- package/lang/translations/sk.po +159 -159
- package/lang/translations/sr.po +159 -159
- package/lang/translations/sv.po +155 -155
- package/lang/translations/th.po +151 -151
- package/lang/translations/tr.po +155 -155
- package/lang/translations/uk.po +159 -159
- package/lang/translations/vi.po +151 -151
- package/lang/translations/zh-cn.po +151 -151
- package/lang/translations/zh.po +151 -151
- package/package.json +16 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.d.ts +2 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.d.ts +2 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.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 +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/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/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +2 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +2 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +2 -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.d.ts +2 -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/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/utils/common-translations.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +24 -8
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +12 -1
- 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.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +6 -0
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +19 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.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 +30 -0
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +23 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +12 -2
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +1 -0
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.d.ts +1 -0
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.js +1 -1
- package/theme/aichat/aichatfeed.css +6 -2
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +19 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
- package/theme/aireviewmode/aireviewmode-check-run.css +0 -35
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4cd946=_0x4dab;(function(_0x4c480d,_0x5564bc){const _0xa2d497=_0x4dab,_0x532b01=_0x4c480d();while(!![]){try{const _0x14af13=parseInt(_0xa2d497(0xd2))/0x1+parseInt(_0xa2d497(0xcd))/0x2+parseInt(_0xa2d497(0x101))/0x3+parseInt(_0xa2d497(0xc9))/0x4*(parseInt(_0xa2d497(0xf3))/0x5)+parseInt(_0xa2d497(0xf5))/0x6+-parseInt(_0xa2d497(0x100))/0x7+parseInt(_0xa2d497(0xc8))/0x8*(-parseInt(_0xa2d497(0xf6))/0x9);if(_0x14af13===_0x5564bc)break;else _0x532b01['push'](_0x532b01['shift']());}catch(_0x180351){_0x532b01['push'](_0x532b01['shift']());}}}(_0x4890,0xe0df0));function _0x4dab(_0x27b314,_0x555798){const _0x489085=_0x4890();return _0x4dab=function(_0x4daba0,_0x8a9107){_0x4daba0=_0x4daba0-0xc5;let _0x7944ed=_0x489085[_0x4daba0];return _0x7944ed;},_0x4dab(_0x27b314,_0x555798);}import{clickOutsideHandler as _0xd64d2f,View as _0x54cd72}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x11bcb8}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x23b854}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x570526,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x1caa48}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x2724f3}from'./controls/aichatcontrolsloaderview.js';function _0x4890(){const _0x55d881=['_handlePromptInputFocus','_createLoaderView','bindTemplate','clearConversationContextUI','sendUserMessage','clearPendingContextUI','setTemplate','change:isLoading','setReasoning','addContextItem','setModelList','resetMessageInput','disableModelSelector','setInputPlaceholder','setModel','toggleReasoning','enableModelSelector','updateResourceState','setWebSearch','addContextButtonView','_promptCapabilitiesView','19155oPYLwi','element','8154384tufBkF','603kopmSx','ck-ai-chat-controls','clearCurrentContextItems','isLoading','_shouldRestorePromptInputFocus','_loaderView','focusPromptInput','setContextItemLoading','_createContextPanelView','delegate','1087331zfJjHD','3961782NTNoNj','setConversationContext','closeSourceResourceBalloon','reset','681008vaSDJN','1424uDwZIB','_createPromptInputView','setPlaceholderText','removeContextItem','2250348kqDGlR','focus','_contextPanelView','low','clearConversationContextItems','1611179jRKyxe','abortPromptStream','div','form','populateSourceResourceBalloon','setIsUploadInProgress','_createPromptCapabilitiesView','selectModel','setAddContextOptions','ck-hidden','toggleWebSearch','_promptInputView'];_0x4890=function(){return _0x55d881;};return _0x4890();}export class AIChatControlsView extends _0x54cd72{[_0x4cd946(0xcf)];[_0x4cd946(0xdd)];[_0x4cd946(0xf2)];[_0x4cd946(0xfb)];[_0x4cd946(0xfa)];constructor(_0x382253,_0x215495){const _0x23a36c=_0x4cd946;super(_0x382253),this[_0x23a36c(0xcf)]=this[_0x23a36c(0xfe)](_0x382253,_0x215495),this[_0x23a36c(0xdd)]=this[_0x23a36c(0xca)](_0x382253),this[_0x23a36c(0xf2)]=this[_0x23a36c(0xd8)](_0x382253),this[_0x23a36c(0xfb)]=this[_0x23a36c(0xdf)](_0x382253),this[_0x23a36c(0xfa)]=!0x1,this[_0x23a36c(0xdd)][_0x23a36c(0xff)](_0x23a36c(0xe2))['to'](this),this[_0x23a36c(0xfb)][_0x23a36c(0xff)](_0x23a36c(0xd3))['to'](this),this[_0x23a36c(0xf2)][_0x23a36c(0xff)](_0x23a36c(0xdc))['to'](this),this[_0x23a36c(0xf2)][_0x23a36c(0xff)](_0x23a36c(0xed))['to'](this),this[_0x23a36c(0xf2)][_0x23a36c(0xff)](_0x23a36c(0xd9))['to'](this),this[_0x23a36c(0xcf)][_0x23a36c(0xff)](..._0x1caa48)['to'](this);const _0x36370b=this[_0x23a36c(0xe0)];this[_0x23a36c(0xe4)]({'tag':_0x23a36c(0xd5),'attributes':{'class':['ck',_0x23a36c(0xf7)]},'children':[{'tag':_0x23a36c(0xd4),'attributes':{'class':[_0x36370b['if'](_0x23a36c(0xf9),_0x23a36c(0xdb))]},'children':[this[_0x23a36c(0xcf)],this[_0x23a36c(0xdd)],this[_0x23a36c(0xf2)]]},{'tag':_0x23a36c(0xd4),'attributes':{'class':[_0x36370b['if'](_0x23a36c(0xf9),_0x23a36c(0xdb),_0x3a5640=>!_0x3a5640)]},'children':[this[_0x23a36c(0xfb)]]}]}),_0xd64d2f({'emitter':this[_0x23a36c(0xdd)],'activator':()=>this[_0x23a36c(0xf9)],'contextElements':()=>[this[_0x23a36c(0xf4)]],'callback':()=>{const _0x285d94=_0x23a36c;this[_0x285d94(0xfa)]=!0x1;}}),this['on'](_0x23a36c(0xe5),this[_0x23a36c(0xde)],{'priority':_0x23a36c(0xd0)});}[_0x4cd946(0xfe)](_0x2a4871,_0x469674){return new _0x570526(_0x2a4871,_0x469674);}[_0x4cd946(0xca)](_0x55f8ce){const _0xaa6cf=_0x4cd946;return new _0x11bcb8(_0x55f8ce,this[_0xaa6cf(0xcf)][_0xaa6cf(0xf1)]);}[_0x4cd946(0xd8)](_0x426138){return new _0x23b854(_0x426138);}[_0x4cd946(0xdf)](_0x14b6d6){return new _0x2724f3(_0x14b6d6);}[_0x4cd946(0xde)](_0x22031a,_0x19df87,_0x23fe33){const _0x51813d=_0x4cd946;_0x23fe33?this[_0x51813d(0xfa)]=!0x0:this[_0x51813d(0xfa)]&&this[_0x51813d(0xdd)][_0x51813d(0xce)]();}[_0x4cd946(0xe7)](_0x5a1bd9,_0x193c81){const _0x205846=_0x4cd946;this[_0x205846(0xcf)][_0x205846(0xe7)](_0x5a1bd9,_0x193c81);}[_0x4cd946(0xcc)](_0x4e5e02){const _0x1d5a60=_0x4cd946;this[_0x1d5a60(0xcf)][_0x1d5a60(0xcc)](_0x4e5e02);}[_0x4cd946(0xfd)](_0x315002,_0xc7d2a1){const _0x3b371c=_0x4cd946;this[_0x3b371c(0xcf)][_0x3b371c(0xfd)](_0x315002,_0xc7d2a1);}[_0x4cd946(0xd7)](_0x5ab09d){const _0x361d30=_0x4cd946;this[_0x361d30(0xdd)][_0x361d30(0xd7)](_0x5ab09d);}[_0x4cd946(0xc5)](_0x1ee60a){const _0x3e7ec7=_0x4cd946;this[_0x3e7ec7(0xcf)][_0x3e7ec7(0xc5)](_0x1ee60a);}[_0x4cd946(0xe3)](){const _0x7e8f85=_0x4cd946;this[_0x7e8f85(0xcf)][_0x7e8f85(0xf8)]();}[_0x4cd946(0xe1)](){const _0x39ccce=_0x4cd946;this[_0x39ccce(0xcf)][_0x39ccce(0xd1)]();}[_0x4cd946(0xef)](_0x11ec81,_0x149c73,_0x57d3d7){const _0x974e34=_0x4cd946;this[_0x974e34(0xcf)][_0x974e34(0xef)](_0x11ec81,_0x149c73,_0x57d3d7);}[_0x4cd946(0xf0)](_0x3d4f7b){const _0x27d538=_0x4cd946;this[_0x27d538(0xf2)][_0x27d538(0xf0)](_0x3d4f7b);}[_0x4cd946(0xe6)](_0x2a27a5){const _0x3d7eca=_0x4cd946;this[_0x3d7eca(0xf2)][_0x3d7eca(0xe6)](_0x2a27a5);}[_0x4cd946(0xe9)](){const _0x351df8=_0x4cd946;this[_0x351df8(0xdd)][_0x351df8(0xc7)]();}[_0x4cd946(0xda)](_0x2f192a){const _0x11eb9a=_0x4cd946;this[_0x11eb9a(0xcf)][_0x11eb9a(0xda)](_0x2f192a);}[_0x4cd946(0xeb)](_0x22b771){const _0x2af353=_0x4cd946;this[_0x2af353(0xdd)][_0x2af353(0xcb)](_0x22b771);}[_0x4cd946(0xe8)](_0x2b8098,_0x45340e){const _0x3666c7=_0x4cd946;this[_0x3666c7(0xf2)][_0x3666c7(0xe8)](_0x2b8098,_0x45340e);}[_0x4cd946(0xec)](_0x23f6e2){const _0x436814=_0x4cd946;this[_0x436814(0xf2)][_0x436814(0xec)](_0x23f6e2);}[_0x4cd946(0xee)](){const _0x1cafbc=_0x4cd946;this[_0x1cafbc(0xf2)][_0x1cafbc(0xee)]();}[_0x4cd946(0xea)](_0x9ad37d){const _0x3f1721=_0x4cd946;this[_0x3f1721(0xf2)][_0x3f1721(0xea)](_0x9ad37d);}[_0x4cd946(0xd6)](_0x579a0e,_0x527b27,_0x5ed004,_0xbdd39e){const _0x204e82=_0x4cd946;this[_0x204e82(0xcf)][_0x204e82(0xd6)](_0x579a0e,_0x527b27,_0x5ed004,_0xbdd39e);}[_0x4cd946(0xc6)](_0x12e0b4){const _0x43c1d9=_0x4cd946;this[_0x43c1d9(0xcf)][_0x43c1d9(0xc6)](_0x12e0b4);}[_0x4cd946(0xfc)](){const _0x584146=_0x4cd946;this[_0x584146(0xdd)][_0x584146(0xce)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2a64ae=_0x55db;(function(_0x32d7e3,_0x5c2d63){const _0x241abe=_0x55db,_0x4b0b52=_0x32d7e3();while(!![]){try{const _0x307351=-parseInt(_0x241abe(0x1da))/0x1*(-parseInt(_0x241abe(0x21a))/0x2)+-parseInt(_0x241abe(0x1d7))/0x3*(parseInt(_0x241abe(0x1fe))/0x4)+-parseInt(_0x241abe(0x211))/0x5+parseInt(_0x241abe(0x1fd))/0x6*(parseInt(_0x241abe(0x1ee))/0x7)+parseInt(_0x241abe(0x1f6))/0x8*(-parseInt(_0x241abe(0x20a))/0x9)+-parseInt(_0x241abe(0x1e5))/0xa+parseInt(_0x241abe(0x1d2))/0xb;if(_0x307351===_0x5c2d63)break;else _0x4b0b52['push'](_0x4b0b52['shift']());}catch(_0x1828e3){_0x4b0b52['push'](_0x4b0b52['shift']());}}}(_0x8fb3,0xe4e6a));import{CKEditorError as _0xcba86b,logWarning as _0x1e0ec,scrollViewportToShowTarget as _0x2a0c78}from'ckeditor5/src/utils.js';import{View as _0x2b438e}from'ckeditor5/src/ui.js';function _0x8fb3(){const _0x2744dc=['scrollManager','ai-chat-feed-view-item-not-found','set','map','_createLoaderChildren','children','380344WVLSWk','stop','startAutoScroll','extendTemplate','updateSuggestionItem','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat__feed','clear','23548602jtDQHc','addItem','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','updatePartState','ck-ai-chat__loader','3cfTFeB','ai-suggestion-reply','_createTemplateChildren','6IRQrim','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','stopAutoScroll','aiFeed','markAsDone','ai-chat-feed-view-item-not-a-reply-item','removeItem','delegate','div','ai-reply','_createSkeletonLoader','2477680UUdrgz','user-message','locale','updateReplyItem','_createFeedLoader','updateSources','remove','ck-ai-chat__feed__items','isVisible','107695Zbvwto','updateWebSources','setLoadingMessage','element','markItemAsDone','_createFeedItems','isLoadingSkeletonVisible','updateSuggestionPartState','552corirI','options','updateContent','getItemIds','_setupTemplate','getPartView','ai-chat-feed-view-item-not-a-suggestion-item','438MezMQL','2150472vsyaJA','add','isPending','find','ck-ai-chat__loader-text','render','toggleLoadingSkeleton','bindTemplate','start','span','includes','_bodyCollection','237753CUvnrB','getItemById','interaction-header','destroy','ck-hidden','loadingMessage','setTemplate','4295910VRcRno','createCollection','scrollToSuggestion'];_0x8fb3=function(){return _0x2744dc;};return _0x8fb3();}function _0x55db(_0x1c54b0,_0x503cdc){const _0x8fb3d1=_0x8fb3();return _0x55db=function(_0x55dbae,_0x2acee2){_0x55dbae=_0x55dbae-0x1cd;let _0x1f47d3=_0x8fb3d1[_0x55dbae];return _0x1f47d3;},_0x55db(_0x1c54b0,_0x503cdc);}import{AI_CHAT_UI_EVENT_NAMES as _0x23a9c4}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x4cbcf7}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0xf52276}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x1c2247}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x4ef967}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0xe81511}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x12ccd6}from'../utils/scrollmanager.js';import{AISkeletonView as _0x26daf5,SKELETON_DEFINITIONS as _0x20a350}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2220a1}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x2b438e{[_0x2a64ae(0x219)];[_0x2a64ae(0x214)];[_0x2a64ae(0x209)];constructor(_0x1ab53a,_0x52c436){const _0x41462f=_0x2a64ae;super(_0x1ab53a),this[_0x41462f(0x209)]=_0x52c436,this[_0x41462f(0x216)](_0x41462f(0x200),!0x1),this[_0x41462f(0x216)](_0x41462f(0x20f),''),this[_0x41462f(0x216)](_0x41462f(0x1f4),!0x1),this[_0x41462f(0x219)]=this[_0x41462f(0x212)](),this[_0x41462f(0x219)][_0x41462f(0x1e1)](..._0x23a9c4)['to'](this),this[_0x41462f(0x1fa)]();}[_0x2a64ae(0x203)](){const _0xb00b10=_0x2a64ae;super[_0xb00b10(0x203)](),this[_0xb00b10(0x214)]=new _0x12ccd6(this[_0xb00b10(0x1f1)]);}[_0x2a64ae(0x20d)](){const _0x361057=_0x2a64ae;super[_0x361057(0x20d)](),this[_0x361057(0x214)][_0x361057(0x20d)]();}[_0x2a64ae(0x1d1)](){const _0xa58789=_0x2a64ae;this[_0xa58789(0x219)][_0xa58789(0x1d1)]();}[_0x2a64ae(0x1d3)](_0x4b4cf8,_0x1920e1){const _0x215021=_0x2a64ae;let _0x31b695;_0x31b695=_0x215021(0x1e3)===_0x4b4cf8?new _0xf52276(this[_0x215021(0x1e7)],_0x1920e1):_0x215021(0x1d8)===_0x4b4cf8?new _0x4cbcf7(this[_0x215021(0x1e7)],_0x1920e1):_0x215021(0x1e6)===_0x4b4cf8?new _0x1c2247(this[_0x215021(0x1e7)],_0x1920e1,this[_0x215021(0x209)]):_0x215021(0x20c)===_0x4b4cf8?new _0xe81511(this[_0x215021(0x1e7)],_0x1920e1):new _0x4ef967(_0x1920e1),this[_0x215021(0x219)][_0x215021(0x1ff)](_0x31b695);}async[_0x2a64ae(0x1e8)]({id:_0x11fa0e,parsedContent:_0x5c2426,renderingStrategy:_0x3e8ec3,abortSignal:_0x588be1}){const _0x1aeff5=_0x2a64ae,_0x2e2995=this[_0x1aeff5(0x20b)](_0x11fa0e);if(!(_0x2e2995 instanceof _0xf52276))throw new _0xcba86b(_0x1aeff5(0x1df),null,{'itemView':_0x2e2995,'id':_0x11fa0e,'parsedContent':_0x5c2426});await _0x2e2995[_0x1aeff5(0x1f8)]({'parsedContent':_0x5c2426,'renderingStrategy':_0x3e8ec3,'abortSignal':_0x588be1});}async[_0x2a64ae(0x1ef)](_0x238bae,_0x4808b9){const _0x216afd=_0x2a64ae,_0x498117=this[_0x216afd(0x20b)](_0x238bae);if(_0x498117 instanceof _0x4cbcf7)_0x498117[_0x216afd(0x1ea)](_0x4808b9);else{if(!(_0x498117 instanceof _0xf52276))throw new _0xcba86b(_0x216afd(0x1db),null,{'itemView':_0x498117,'id':_0x238bae,'sources':_0x4808b9});_0x498117[_0x216afd(0x1ea)](_0x4808b9);}}async[_0x2a64ae(0x1ce)]({id:_0x1719a8,parts:_0x425663,renderingStrategy:_0xea8256,abortSignal:_0x5e0504}){const _0x176de2=_0x2a64ae,_0x1a12a4=this[_0x176de2(0x20b)](_0x1719a8);if(!(_0x1a12a4 instanceof _0x4cbcf7))throw new _0xcba86b(_0x176de2(0x1fc),null,{'itemView':_0x1a12a4,'id':_0x1719a8,'parts':_0x425663});await _0x1a12a4[_0x176de2(0x1f8)]({'parts':_0x425663,'renderingStrategy':_0xea8256,'abortSignal':_0x5e0504});}[_0x2a64ae(0x1f5)]({id:_0x1ddade,index:_0x27b98f,state:_0x3689db}){const _0x618ebb=_0x2a64ae,_0x35952b=this[_0x618ebb(0x20b)](_0x1ddade);if(!(_0x35952b instanceof _0x4cbcf7))throw new _0xcba86b(_0x618ebb(0x1fc),this,{'id':_0x1ddade});_0x35952b[_0x618ebb(0x1d5)](_0x27b98f,_0x3689db);}[_0x2a64ae(0x1f2)](_0x2acf55){const _0x1199aa=_0x2a64ae;this[_0x1199aa(0x20b)](_0x2acf55)[_0x1199aa(0x1de)]();}[_0x2a64ae(0x1f9)](){const _0x115069=_0x2a64ae;return this[_0x115069(0x219)][_0x115069(0x217)](_0x34c1f4=>_0x34c1f4[_0x115069(0x1f7)]['id']);}[_0x2a64ae(0x1e0)](_0x15d0bc){const _0x426573=_0x2a64ae;this[_0x426573(0x219)][_0x426573(0x1eb)](this[_0x426573(0x20b)](_0x15d0bc));}[_0x2a64ae(0x213)](_0x14cdf2,_0x133431){const _0x71dc1d=_0x2a64ae,_0x3a38b3=this[_0x71dc1d(0x20b)](_0x14cdf2);if(!(_0x3a38b3 instanceof _0x4cbcf7))return void _0x1e0ec(_0x71dc1d(0x1d4),{'replyId':_0x14cdf2,'partIndex':_0x133431});const _0x3652c2=_0x3a38b3[_0x71dc1d(0x1fb)](_0x133431);_0x3652c2?_0x2a0c78({'target':_0x3652c2[_0x71dc1d(0x1f1)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x1e0ec(_0x71dc1d(0x1cf),{'replyId':_0x14cdf2,'partIndex':_0x133431});}[_0x2a64ae(0x1fa)](){const _0x4b9c61=_0x2a64ae;this[_0x4b9c61(0x210)]({'tag':_0x4b9c61(0x1e2),'attributes':{'class':['ck',_0x4b9c61(0x1d0)]},'children':this[_0x4b9c61(0x1d9)]()});}[_0x2a64ae(0x1d9)](){const _0x2746e8=_0x2a64ae,_0x3165a7=this[_0x2746e8(0x1e4)]();return[this[_0x2746e8(0x1f3)](),_0x3165a7,this[_0x2746e8(0x1e9)]()];}[_0x2a64ae(0x1e4)](){const _0x366a6a=_0x2a64ae,_0xa17868=new _0x26daf5(this[_0x366a6a(0x1e7)],_0x20a350[_0x366a6a(0x1dd)]);return _0xa17868[_0x366a6a(0x1cd)]({'attributes':{'class':[this[_0x366a6a(0x205)]['if'](_0x366a6a(0x1f4),_0x366a6a(0x20e),_0x474395=>!_0x474395)]}}),_0xa17868;}[_0x2a64ae(0x1f3)](){const _0x504568=_0x2a64ae,_0xd6092b=new _0x2b438e(this[_0x504568(0x1e7)]);return _0xd6092b[_0x504568(0x210)]({'tag':_0x504568(0x1e2),'attributes':{'class':['ck',_0x504568(0x1ec),this[_0x504568(0x205)]['if'](_0x504568(0x1f4),_0x504568(0x20e))]},'children':this[_0x504568(0x219)]}),_0xd6092b;}[_0x2a64ae(0x1e9)](){const _0x5603e5=_0x2a64ae,_0xb15f76=new _0x2b438e(this[_0x5603e5(0x1e7)]);return _0xb15f76[_0x5603e5(0x210)]({'tag':_0x5603e5(0x1e2),'attributes':{'class':['ck',_0x5603e5(0x1d6),this[_0x5603e5(0x205)]['if'](_0x5603e5(0x200),_0x5603e5(0x20e),_0x801f15=>!_0x801f15)]},'children':this[_0x5603e5(0x218)]()}),_0xb15f76;}[_0x2a64ae(0x218)](){const _0x461435=_0x2a64ae,_0x50e555=new _0x2220a1();return _0x50e555[_0x461435(0x1ed)]=!0x0,[_0x50e555,{'tag':_0x461435(0x207),'attributes':{'class':['ck',_0x461435(0x202)]},'children':[{'text':this[_0x461435(0x205)]['to'](_0x461435(0x20f))}]}];}[_0x2a64ae(0x20b)](_0x3d6e1a){const _0x2b432c=_0x2a64ae,_0x2439bc=this[_0x2b432c(0x219)][_0x2b432c(0x201)](_0x51930f=>_0x51930f[_0x2b432c(0x1f7)]['id'][_0x2b432c(0x208)](_0x3d6e1a));if(!_0x2439bc)throw new _0xcba86b(_0x2b432c(0x215),this,{'id':_0x3d6e1a});return _0x2439bc;}[_0x2a64ae(0x1f0)](_0x518f8c){const _0x1026bf=_0x2a64ae;this[_0x1026bf(0x216)](_0x1026bf(0x20f),_0x518f8c);}[_0x2a64ae(0x204)](_0x4cc99e){const _0x3464ce=_0x2a64ae;this[_0x3464ce(0x216)](_0x3464ce(0x1f4),_0x4cc99e);}[_0x2a64ae(0x21c)](){const _0x280b78=_0x2a64ae;this[_0x280b78(0x214)][_0x280b78(0x206)]();}[_0x2a64ae(0x1dc)](){const _0x46dbeb=_0x2a64ae;this[_0x46dbeb(0x214)][_0x46dbeb(0x21b)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x4c32c7=_0x2824;function _0x2824(_0x165a1b,_0x176c56){const _0xbf1a0=_0xbf1a();return _0x2824=function(_0x282475,_0x190176){_0x282475=_0x282475-0x144;let _0x446f65=_0xbf1a0[_0x282475];return _0x446f65;},_0x2824(_0x165a1b,_0x176c56);}(function(_0x140cc8,_0x576b0d){const _0x5947b9=_0x2824,_0x5e9a60=_0x140cc8();while(!![]){try{const _0x2e9e59=-parseInt(_0x5947b9(0x14e))/0x1+parseInt(_0x5947b9(0x159))/0x2*(parseInt(_0x5947b9(0x14d))/0x3)+-parseInt(_0x5947b9(0x154))/0x4+parseInt(_0x5947b9(0x147))/0x5*(-parseInt(_0x5947b9(0x151))/0x6)+parseInt(_0x5947b9(0x149))/0x7*(-parseInt(_0x5947b9(0x158))/0x8)+parseInt(_0x5947b9(0x155))/0x9*(parseInt(_0x5947b9(0x14b))/0xa)+-parseInt(_0x5947b9(0x148))/0xb*(-parseInt(_0x5947b9(0x150))/0xc);if(_0x2e9e59===_0x576b0d)break;else _0x5e9a60['push'](_0x5e9a60['shift']());}catch(_0x157cca){_0x5e9a60['push'](_0x5e9a60['shift']());}}}(_0xbf1a,0x3866e));import{ButtonView as _0x9ffc28,FormHeaderView as _0x1f7d83}from'ckeditor5/src/ui.js';import{IconPlus as _0x31565c,IconAIChat as _0x5e50fa}from'ckeditor5/src/icons.js';import{getTranslation as _0x11d935}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x582b47}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x1f7d83{[_0x4c32c7(0x15b)];[_0x4c32c7(0x157)];constructor(_0x54fcb3,_0x4d9302){const _0x2daf0d=_0x4c32c7;super(_0x54fcb3,{'label':_0x11d935(_0x54fcb3,_0x2daf0d(0x15a)),'class':_0x2daf0d(0x15c),'icon':_0x5e50fa}),this[_0x2daf0d(0x153)](_0x2daf0d(0x144),!0x1),this[_0x2daf0d(0x15b)]=this[_0x2daf0d(0x156)](_0x54fcb3),this[_0x2daf0d(0x152)][_0x2daf0d(0x14a)](this[_0x2daf0d(0x15b)]),_0x4d9302&&(this[_0x2daf0d(0x157)]=_0x582b47(_0x54fcb3,this),this[_0x2daf0d(0x152)][_0x2daf0d(0x14a)](this[_0x2daf0d(0x157)]));}[_0x4c32c7(0x156)](_0x513503){const _0x115f48=_0x4c32c7,_0x210a25=new _0x9ffc28(_0x513503);return _0x210a25[_0x115f48(0x153)]({'label':_0x11d935(this[_0x115f48(0x14f)],_0x115f48(0x14c)),'withText':!0x0,'icon':_0x31565c,'class':_0x115f48(0x15e)}),_0x210a25['on'](_0x115f48(0x146),()=>{const _0x4f8697=_0x115f48;this[_0x4f8697(0x15d)](_0x4f8697(0x145));}),_0x210a25;}}function _0xbf1a(){const _0x15816e=['12wdvpIt','161166WQnEXD','children','set','49368lJDcqI','63UFUGUW','_createStartConversationButton','resizeButton','16tZLsCe','452fYiMCD','AI_CHAT_HEADING','conversationStartButton','ck-ai-header\x20ck-ai-header_chat','fire','ck-ai-chat__start-conversation','isMaximized','startConversation','execute','30yTDJQs','5952529yHpOri','1225574VZpmwo','add','294880yIqPSh','AI_CHAT_LABEL_NEW_CHAT','4497WsyCRY','331635vqUMkj','locale'];_0xbf1a=function(){return _0x15816e;};return _0xbf1a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2dd4b8=_0x20e4;(function(_0x3fd4fa,_0x1608d5){var _0x33c745=_0x20e4,_0x730b16=_0x3fd4fa();while(!![]){try{var _0x2fcacd=-parseInt(_0x33c745(0x17e))/0x1*(-parseInt(_0x33c745(0x16c))/0x2)+parseInt(_0x33c745(0x170))/0x3*(parseInt(_0x33c745(0x173))/0x4)+-parseInt(_0x33c745(0x17a))/0x5+parseInt(_0x33c745(0x183))/0x6*(-parseInt(_0x33c745(0x185))/0x7)+parseInt(_0x33c745(0x176))/0x8*(parseInt(_0x33c745(0x177))/0x9)+parseInt(_0x33c745(0x171))/0xa+parseInt(_0x33c745(0x169))/0xb*(-parseInt(_0x33c745(0x16f))/0xc);if(_0x2fcacd===_0x1608d5)break;else _0x730b16['push'](_0x730b16['shift']());}catch(_0x2947d8){_0x730b16['push'](_0x730b16['shift']());}}}(_0x3444,0x9834c));import{View as _0x1b9f12,BodyCollection as _0x4e41c0}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x121644}from'../utils/eventnames.js';function _0x3444(){var _0x944467=['4044qKzjLU','attachToDom','2142sizhhh','40799uugbgH','div','detachFromDom','42844TnVPZv','destroy','ck-reset_all','2208OJtCwm','426aPNGIX','6685480jOjYKP','ck-rounded-corners','6500zwpGaB','delegate','uiLanguageDirection','8BhsDvy','8136369ExgPPw','_bodyCollection','chatFeed','3276885hbdybR','closeSourceResourceBalloon','chatHeader','ck-ai-chat','17jnZoxI','chatDisclaimer','setTemplate','populateSourceResourceBalloon','chatControls'];_0x3444=function(){return _0x944467;};return _0x3444();}import{AIChatFeedView as _0x1fd2c8}from'./aichatfeedview.js';import{AIChatControlsView as _0x2cae1e}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x52ba12}from'./aichatheaderview.js';import{AIDisclaimerView as _0x2c4837}from'../../aicore/ui/aidisclaimerview.js';function _0x20e4(_0x530d3f,_0x113785){var _0x344412=_0x3444();return _0x20e4=function(_0x20e4dd,_0x5ad9ef){_0x20e4dd=_0x20e4dd-0x169;var _0xacd3a5=_0x344412[_0x20e4dd];return _0xacd3a5;},_0x20e4(_0x530d3f,_0x113785);}export class AIChatView extends _0x1b9f12{[_0x2dd4b8(0x17c)];[_0x2dd4b8(0x179)];[_0x2dd4b8(0x182)];[_0x2dd4b8(0x17f)];[_0x2dd4b8(0x178)];constructor(_0x3bf840,_0x306a37){var _0x4b2588=_0x2dd4b8;super(_0x3bf840),this[_0x4b2588(0x178)]=new _0x4e41c0(_0x3bf840),this[_0x4b2588(0x178)][_0x4b2588(0x184)](),this[_0x4b2588(0x17c)]=new _0x52ba12(_0x3bf840,_0x306a37),this[_0x4b2588(0x17c)][_0x4b2588(0x174)](..._0x121644)['to'](this),this[_0x4b2588(0x179)]=new _0x1fd2c8(_0x3bf840,this[_0x4b2588(0x178)]),this[_0x4b2588(0x179)][_0x4b2588(0x174)](..._0x121644)['to'](this),this[_0x4b2588(0x182)]=new _0x2cae1e(_0x3bf840,this[_0x4b2588(0x178)]),this[_0x4b2588(0x182)][_0x4b2588(0x174)](..._0x121644)['to'](this),this[_0x4b2588(0x17f)]=new _0x2c4837(_0x3bf840),this[_0x4b2588(0x180)]({'tag':_0x4b2588(0x16a),'attributes':{'class':['ck',_0x4b2588(0x16e),_0x4b2588(0x17d),_0x4b2588(0x172)],'dir':_0x3bf840[_0x4b2588(0x175)]},'children':[this[_0x4b2588(0x17c)],this[_0x4b2588(0x179)],this[_0x4b2588(0x182)],this[_0x4b2588(0x17f)]]});}[_0x2dd4b8(0x181)](_0x25f5f0,_0x43c1e4,_0x2f1831,_0x37685f){var _0x976784=_0x2dd4b8;this[_0x976784(0x182)][_0x976784(0x181)](_0x25f5f0,_0x43c1e4,_0x2f1831,_0x37685f);}[_0x2dd4b8(0x17b)](_0x44a5a9){var _0x4d1ec9=_0x2dd4b8;this[_0x4d1ec9(0x182)][_0x4d1ec9(0x17b)](_0x44a5a9);}[_0x2dd4b8(0x16d)](){var _0x3cd5ba=_0x2dd4b8;this[_0x3cd5ba(0x178)][_0x3cd5ba(0x16b)](),super[_0x3cd5ba(0x16d)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x1a8e(){const _0x649ebe=['width','showMoreButton','forEach','cloneNode','_showMoreBalloonPanelView','_targetContainer','documentElement','add','50px','_calculateOverflowInContainer','300px','right','_setupVisibilityObserver','children','1213688WHxGlh','visible','toLowerCase','querySelector','undefined','isOn','div','clear','absolute','content','_ancestorsToRestore','height','_handleShowMoreButtonClick','isConnected','render','disconnect','overflowContainer','_visibleChips','rowDetectionTolerance','setTemplate','8787864zyUgHr','top','extendTemplate','_restoreAncestorVisibility','_applyCalculationStyles','controlsButton','_containerElement','8220435FxymnQ','isVisible','pin','calculationContainer','observe','filter','some','5370015cAcuxU','_updateBalloonContent','tagName','boxSizing','ck-calculation-container','_parentView','label','position','showBalloonPanel','block','_makeAncestorsVisible','_intersectionObserver','4498LQeEaB','_createShowMoreBalloonPanelView','includes','_isContainerVisible','classList','bottom','textContent','_distributeChips','opacity','auto','display','execute','_locale','hideBalloonPanel','hide','showMoreBalloon','show','innerHeight','_createShowMoreButton','style','6923172oEAcvG','_createMockButton','destroy','_createContainerElements','_createCalculationContainer','_bodyCollection','getBoundingClientRect','setContainerElement','_updateOverflowUI','visibility','879tWcblt','_findTargetContainer','0px','pop','slice','border-box','_pendingCalculation','zIndex','_updateShowMoreButtonVisibility','clientHeight','reorganizeChips','overflowChips','className','showMoreLabelPrefix','maxVisibleRows','from','createElement','isIntersecting','none','hidden','body','innerWidth','visible\x20!important','4502230ZXNWhv','6qZugog','.ck-ai-chat','_calculateContainerWidth','getComputedStyle','button','27uxjQro','_repinBalloonPanel','_createShowMoreButtonView','_showMoreButtonView','parentElement','pointerEvents','_checkAndHandleOverflow','disableAnimationOnEnter','offsetWidth','set','_renderChipsAndCountRows','_applyOverflowResults','left','length','appendChild','block\x20!important','element','remove','abs','+\x201','_overflowChips','push','_testButtonFit','-9999px','clientWidth','innerHTML','_config','cssClasses','showMoreButtonView'];_0x1a8e=function(){return _0x649ebe;};return _0x1a8e();}const _0x4a6c5d=_0x40ef;(function(_0x456175,_0x59e5a7){const _0x39ac3b=_0x40ef,_0x352ab4=_0x456175();while(!![]){try{const _0x3b3be7=parseInt(_0x39ac3b(0x240))/0x1+-parseInt(_0x39ac3b(0x1da))/0x2*(-parseInt(_0x39ac3b(0x1f8))/0x3)+parseInt(_0x39ac3b(0x1ee))/0x4+-parseInt(_0x39ac3b(0x25b))/0x5+parseInt(_0x39ac3b(0x210))/0x6*(-parseInt(_0x39ac3b(0x1ce))/0x7)+parseInt(_0x39ac3b(0x254))/0x8+-parseInt(_0x39ac3b(0x215))/0x9*(parseInt(_0x39ac3b(0x20f))/0xa);if(_0x3b3be7===_0x59e5a7)break;else _0x352ab4['push'](_0x352ab4['shift']());}catch(_0x22de7a){_0x352ab4['push'](_0x352ab4['shift']());}}}(_0x1a8e,0xe57f4));import{View as _0x4f409a,BalloonPanelView as _0x44684c,ButtonView as _0x17f5f0,clickOutsideHandler as _0xe54fb4}from'ckeditor5/src/ui.js';import{Collection as _0x265f3c}from'ckeditor5/src/utils.js';const sn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},hn=_0x4a6c5d(0x23c);function _0x40ef(_0x330cfe,_0x2b8ef1){const _0x1a8e14=_0x1a8e();return _0x40ef=function(_0x40ef4a,_0x497024){_0x40ef4a=_0x40ef4a-0x1cd;let _0x26ef22=_0x1a8e14[_0x40ef4a];return _0x26ef22;},_0x40ef(_0x330cfe,_0x2b8ef1);}export class AIChatChipsOverflowManager{[_0x4a6c5d(0x1e6)];[_0x4a6c5d(0x22f)];[_0x4a6c5d(0x251)];[_0x4a6c5d(0x229)];[_0x4a6c5d(0x218)]=null;[_0x4a6c5d(0x236)]=null;[_0x4a6c5d(0x25a)]=null;[_0x4a6c5d(0x1f3)];[_0x4a6c5d(0x1d3)]=null;[_0x4a6c5d(0x1d9)]=null;[_0x4a6c5d(0x1fe)]=!0x1;constructor(_0x219750,_0x1cb794,_0x2922cd,_0x1ec1c2,_0x3db02e){const _0x569541=_0x4a6c5d;this[_0x569541(0x1e6)]=_0x219750,this[_0x569541(0x251)]=_0x1cb794,this[_0x569541(0x22f)]={...sn,..._0x2922cd,'cssClasses':{'controlsButton':'','calculationContainer':_0x569541(0x1d2),..._0x2922cd[_0x569541(0x230)]}},this[_0x569541(0x229)]=new _0x265f3c(),this[_0x569541(0x1f3)]=_0x1ec1c2,this[_0x569541(0x1d3)]=_0x3db02e||null;}[_0x4a6c5d(0x1f5)](_0x51e20c){const _0x327594=_0x4a6c5d;this[_0x327594(0x1d9)]&&(this[_0x327594(0x1d9)][_0x327594(0x24f)](),this[_0x327594(0x1d9)]=null),this[_0x327594(0x25a)]=_0x51e20c,this[_0x327594(0x23e)]();}get[_0x4a6c5d(0x231)](){const _0x124e32=_0x4a6c5d;return this[_0x124e32(0x218)];}get[_0x4a6c5d(0x203)](){const _0x55eec0=_0x4a6c5d;return this[_0x55eec0(0x229)];}[_0x4a6c5d(0x202)](){requestAnimationFrame(()=>{const _0x39788f=_0x40ef;this[_0x39788f(0x21b)]();});}[_0x4a6c5d(0x1d6)](){const _0x499d16=_0x4a6c5d;this[_0x499d16(0x218)]&&this[_0x499d16(0x236)]&&(this[_0x499d16(0x1cf)](),this[_0x499d16(0x218)][_0x499d16(0x245)]=!0x0,this[_0x499d16(0x236)][_0x499d16(0x1ea)](),this[_0x499d16(0x236)][_0x499d16(0x25d)]({'target':this[_0x499d16(0x218)][_0x499d16(0x225)],'limiter':document[_0x499d16(0x243)](_0x499d16(0x211))}));}[_0x4a6c5d(0x1e7)](){const _0x296b4d=_0x4a6c5d;this[_0x296b4d(0x218)]&&this[_0x296b4d(0x236)]&&(this[_0x296b4d(0x218)][_0x296b4d(0x245)]=!0x1,this[_0x296b4d(0x236)][_0x296b4d(0x1e8)]());}[_0x4a6c5d(0x247)](){const _0x143d63=_0x4a6c5d;this[_0x143d63(0x229)][_0x143d63(0x247)](),this[_0x143d63(0x1e7)](),this[_0x143d63(0x200)](),this[_0x143d63(0x218)]&&(this[_0x143d63(0x218)][_0x143d63(0x1d4)]=''),this[_0x143d63(0x236)]&&this[_0x143d63(0x236)][_0x143d63(0x249)][_0x143d63(0x247)]();}[_0x4a6c5d(0x1f0)](){const _0x1adfb9=_0x4a6c5d;this[_0x1adfb9(0x1d9)]&&(this[_0x1adfb9(0x1d9)][_0x1adfb9(0x24f)](),this[_0x1adfb9(0x1d9)]=null),this[_0x1adfb9(0x218)]&&(this[_0x1adfb9(0x218)][_0x1adfb9(0x1f0)](),this[_0x1adfb9(0x218)]=null),this[_0x1adfb9(0x236)]&&(this[_0x1adfb9(0x236)][_0x1adfb9(0x1f0)](),this[_0x1adfb9(0x236)]=null);}[_0x4a6c5d(0x21b)](){const _0x221125=_0x4a6c5d;if(!this[_0x221125(0x25a)])return;if(!this[_0x221125(0x1dd)]())return void(this[_0x221125(0x1fe)]=!0x0);this[_0x221125(0x1fe)]=!0x1;const _0x15d921=[...this[_0x221125(0x251)],...this[_0x221125(0x229)]],_0x81a67b=this[_0x221125(0x1f2)](),_0x1a9d7e=this[_0x221125(0x23b)](_0x81a67b,_0x15d921),_0x3b5eb1=_0x81a67b[_0x221125(0x24a)];_0x3b5eb1&&this[_0x221125(0x257)](_0x3b5eb1),_0x81a67b[_0x221125(0x226)](),this[_0x221125(0x220)](_0x15d921,_0x1a9d7e);}[_0x4a6c5d(0x1ec)](){const _0x4e4e6d=_0x4a6c5d;this[_0x4e4e6d(0x218)]=this[_0x4e4e6d(0x217)](),this[_0x4e4e6d(0x236)]=this[_0x4e4e6d(0x1db)](),this[_0x4e4e6d(0x218)][_0x4e4e6d(0x24e)](),this[_0x4e4e6d(0x25a)][_0x4e4e6d(0x223)](this[_0x4e4e6d(0x218)][_0x4e4e6d(0x225)]),this[_0x4e4e6d(0x218)]['on'](_0x4e4e6d(0x1e5),()=>{const _0x7d247b=_0x4e4e6d;this[_0x7d247b(0x24c)]();}),_0xe54fb4({'emitter':this[_0x4e4e6d(0x236)],'contextElements':[this[_0x4e4e6d(0x236)][_0x4e4e6d(0x225)],this[_0x4e4e6d(0x218)][_0x4e4e6d(0x225)]],'callback':()=>this[_0x4e4e6d(0x1e7)](),'activator':()=>this[_0x4e4e6d(0x218)][_0x4e4e6d(0x245)]});}[_0x4a6c5d(0x217)](){const _0x9bc5e9=_0x4a6c5d,_0x308496=new _0x17f5f0(this[_0x9bc5e9(0x1e6)]);_0x308496[_0x9bc5e9(0x21e)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x41a31d=[this[_0x9bc5e9(0x22f)][_0x9bc5e9(0x230)][_0x9bc5e9(0x233)]];return this[_0x9bc5e9(0x22f)][_0x9bc5e9(0x230)][_0x9bc5e9(0x259)]&&_0x41a31d[_0x9bc5e9(0x22a)](this[_0x9bc5e9(0x22f)][_0x9bc5e9(0x230)][_0x9bc5e9(0x259)]),_0x308496[_0x9bc5e9(0x256)]({'attributes':{'class':_0x41a31d}}),_0x308496;}[_0x4a6c5d(0x1db)](){const _0x1bc198=_0x4a6c5d,_0x376bbe=new _0x44684c(this[_0x1bc198(0x1e6)]);return _0x376bbe[_0x1bc198(0x256)]({'attributes':{'class':this[_0x1bc198(0x22f)][_0x1bc198(0x230)][_0x1bc198(0x1e9)]}}),this[_0x1bc198(0x1f3)][_0x1bc198(0x239)](_0x376bbe),_0x376bbe;}[_0x4a6c5d(0x1cf)](){const _0x4732c0=_0x4a6c5d;if(this[_0x4732c0(0x236)]&&(this[_0x4732c0(0x236)][_0x4732c0(0x249)][_0x4732c0(0x247)](),this[_0x4732c0(0x229)][_0x4732c0(0x222)]>0x0)){this[_0x4732c0(0x229)][_0x4732c0(0x234)](_0x894735=>{const _0x5c85b7=_0x4732c0;_0x894735[_0x5c85b7(0x21c)]();});const _0x510750=new _0x4f409a(this[_0x4732c0(0x1e6)]);_0x510750[_0x4732c0(0x253)]({'tag':_0x4732c0(0x246),'attributes':{'class':this[_0x4732c0(0x22f)][_0x4732c0(0x230)][_0x4732c0(0x250)]},'children':this[_0x4732c0(0x229)]}),this[_0x4732c0(0x236)][_0x4732c0(0x249)][_0x4732c0(0x239)](_0x510750);}}[_0x4a6c5d(0x24c)](){const _0x543ae0=_0x4a6c5d;this[_0x543ae0(0x218)][_0x543ae0(0x245)]?this[_0x543ae0(0x1e7)]():this[_0x543ae0(0x1d6)]();}[_0x4a6c5d(0x200)](){const _0x416117=_0x4a6c5d,_0x4d869b=this[_0x416117(0x229)][_0x416117(0x222)]>0x0;this[_0x416117(0x218)]?.[_0x416117(0x225)]&&(this[_0x416117(0x218)][_0x416117(0x225)][_0x416117(0x1ed)][_0x416117(0x1e4)]=_0x4d869b?'':_0x416117(0x20a));}[_0x4a6c5d(0x216)](){const _0x5c3b51=_0x4a6c5d;this[_0x5c3b51(0x218)]?.[_0x5c3b51(0x245)]&&this[_0x5c3b51(0x236)]?.[_0x5c3b51(0x25c)]&&this[_0x5c3b51(0x218)][_0x5c3b51(0x225)]&&this[_0x5c3b51(0x236)][_0x5c3b51(0x25d)]({'target':this[_0x5c3b51(0x218)][_0x5c3b51(0x225)],'limiter':document[_0x5c3b51(0x243)](_0x5c3b51(0x211))});}[_0x4a6c5d(0x1f9)](_0x5420f1){const _0x3ff44a=_0x4a6c5d,_0x43e91a=this[_0x3ff44a(0x25a)]?.[_0x3ff44a(0x1d0)][_0x3ff44a(0x242)]()||_0x3ff44a(0x246),_0x1c519a=this[_0x3ff44a(0x25a)]?.[_0x3ff44a(0x1de)];if(_0x1c519a){const _0x2b87b6=_0x1c519a[0x0]||'',_0x55cfc7=_0x5420f1[_0x3ff44a(0x243)]('.'+_0x2b87b6),_0x1fe700=_0x5420f1[_0x3ff44a(0x243)](_0x43e91a);return _0x55cfc7||_0x1fe700||_0x5420f1;}return _0x5420f1[_0x3ff44a(0x243)](_0x43e91a)||_0x5420f1;}[_0x4a6c5d(0x212)](){const _0x95b954=_0x4a6c5d,_0x28cd65=this[_0x95b954(0x1d3)]?.[_0x95b954(0x225)]||this[_0x95b954(0x25a)];if(!_0x28cd65)return hn;const _0x4cb69a=window[_0x95b954(0x213)](_0x28cd65)[_0x95b954(0x232)];if(_0x95b954(0x1e3)===_0x4cb69a||_0x95b954(0x1fa)===_0x4cb69a||!_0x4cb69a){const _0x3a5bcb=_0x28cd65[_0x95b954(0x219)];if(_0x3a5bcb){const _0xdf7800=window[_0x95b954(0x213)](_0x3a5bcb);return _0x95b954(0x1e3)!==_0xdf7800[_0x95b954(0x232)]?_0xdf7800[_0x95b954(0x232)]:hn;}return hn;}return _0x4cb69a;}[_0x4a6c5d(0x258)](_0x482ff1,_0x5a8b00){const _0x56f1db=_0x4a6c5d;this[_0x56f1db(0x22f)][_0x56f1db(0x230)][_0x56f1db(0x25e)]&&_0x482ff1[_0x56f1db(0x1de)][_0x56f1db(0x239)](this[_0x56f1db(0x22f)][_0x56f1db(0x230)][_0x56f1db(0x25e)]),_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x232)]=_0x5a8b00,_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x1d5)]=_0x56f1db(0x248),_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x255)]=_0x56f1db(0x22c),_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x221)]=_0x56f1db(0x22c),_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x1e2)]='0',_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x21a)]=_0x56f1db(0x20a),_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x1ff)]='-1',_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x1f7)]=_0x56f1db(0x20e),_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x1e4)]=_0x56f1db(0x224),_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x1d1)]=_0x56f1db(0x1fd);}[_0x4a6c5d(0x257)](_0x37c218){const _0x4de8e7=_0x4a6c5d;_0x37c218[_0x4de8e7(0x234)](({element:_0x59e721,originalDisplay:_0x52dcd,originalVisibility:_0x25c09a})=>{const _0x22dad7=_0x4de8e7;_0x59e721[_0x22dad7(0x1ed)][_0x22dad7(0x1e4)]=_0x52dcd,_0x59e721[_0x22dad7(0x1ed)][_0x22dad7(0x1f7)]=_0x25c09a;});}[_0x4a6c5d(0x1d8)](_0x575ca9){const _0x161fa3=_0x4a6c5d,_0x3ece4c=[];let _0xda48d4=_0x575ca9;for(;_0xda48d4&&_0xda48d4!==document[_0x161fa3(0x20c)];){const _0x48cec6=window[_0x161fa3(0x213)](_0xda48d4);_0x161fa3(0x20a)!==_0x48cec6[_0x161fa3(0x1e4)]&&_0x161fa3(0x20b)!==_0x48cec6[_0x161fa3(0x1f7)]||(_0x3ece4c[_0x161fa3(0x22a)]({'element':_0xda48d4,'originalDisplay':_0xda48d4[_0x161fa3(0x1ed)][_0x161fa3(0x1e4)],'originalVisibility':_0xda48d4[_0x161fa3(0x1ed)][_0x161fa3(0x1f7)]}),_0xda48d4[_0x161fa3(0x1ed)][_0x161fa3(0x1e4)]=_0x161fa3(0x1d7),_0xda48d4[_0x161fa3(0x1ed)][_0x161fa3(0x1f7)]=_0x161fa3(0x241)),_0xda48d4=_0xda48d4[_0x161fa3(0x219)];}return _0x3ece4c;}[_0x4a6c5d(0x1f1)](){const _0x1e9d8e=_0x4a6c5d;let _0x3cf1d4,_0x5c3960;return this[_0x1e9d8e(0x1d3)]?.[_0x1e9d8e(0x225)]?(_0x3cf1d4=this[_0x1e9d8e(0x1d3)][_0x1e9d8e(0x225)][_0x1e9d8e(0x235)](!0x0),_0x5c3960=this[_0x1e9d8e(0x1f9)](_0x3cf1d4)):(_0x3cf1d4=document[_0x1e9d8e(0x208)](_0x1e9d8e(0x246)),_0x5c3960=_0x3cf1d4),{'calculationContainer':_0x3cf1d4,'targetContainer':_0x5c3960};}[_0x4a6c5d(0x1f2)](){const _0x441797=_0x4a6c5d,{calculationContainer:_0x3e7cca,targetContainer:_0x3e94da}=this[_0x441797(0x1f1)](),_0x5166bf=this[_0x441797(0x212)]();this[_0x441797(0x258)](_0x3e7cca,_0x5166bf);const _0x41bf77=this[_0x441797(0x1d3)]?.[_0x441797(0x225)]||this[_0x441797(0x25a)],_0x164826=_0x41bf77?.[_0x441797(0x219)];_0x164826?_0x164826[_0x441797(0x223)](_0x3e7cca):document[_0x441797(0x20c)][_0x441797(0x223)](_0x3e7cca),_0x3e7cca[_0x441797(0x237)]=_0x3e94da;const _0x102e4c=this[_0x441797(0x1d8)](_0x164826||null);return _0x3e7cca[_0x441797(0x21d)],_0x3e7cca[_0x441797(0x24a)]=_0x102e4c,_0x3e7cca;}[_0x4a6c5d(0x23b)](_0x2ef265,_0x1195ca){const _0x4ad824=_0x4a6c5d,_0x587ea2=_0x2ef265[_0x4ad824(0x237)]||_0x2ef265,_0x3fe35c=[],{rowCount:_0x418a7e}=this[_0x4ad824(0x21f)](_0x587ea2,_0x1195ca);if(_0x418a7e<=this[_0x4ad824(0x22f)][_0x4ad824(0x206)])return _0x3fe35c;const _0xd43c4=_0x1195ca[_0x4ad824(0x1fc)]();for(;_0xd43c4[_0x4ad824(0x222)]>0x0;){if(this[_0x4ad824(0x22b)](_0x2ef265,_0x587ea2,_0xd43c4)){const _0x1c988d=_0x1195ca[_0x4ad824(0x260)](_0x505b72=>!_0xd43c4[_0x4ad824(0x1dc)](_0x505b72));_0x3fe35c[_0x4ad824(0x22a)](..._0x1c988d);break;}if(!_0xd43c4[_0x4ad824(0x1fb)]())break;}return _0x3fe35c;}[_0x4a6c5d(0x21f)](_0x1595bb,_0x3521cb){const _0x4d6063=_0x4a6c5d;_0x1595bb[_0x4d6063(0x22e)]='',_0x3521cb[_0x4d6063(0x234)](_0x31300c=>{const _0x28aadb=_0x4d6063;if(_0x31300c[_0x28aadb(0x225)]){const _0x2b8ada=_0x31300c[_0x28aadb(0x225)][_0x28aadb(0x235)](!0x0);_0x1595bb[_0x28aadb(0x223)](_0x2b8ada);}}),_0x1595bb[_0x4d6063(0x21d)];const _0x400d9b=_0x1595bb[_0x4d6063(0x23f)],_0x374220=[];return Array[_0x4d6063(0x207)](_0x400d9b)[_0x4d6063(0x234)](_0x47b345=>{const _0x3ea25a=_0x4d6063,_0x3f57f1=_0x47b345[_0x3ea25a(0x1f4)]()[_0x3ea25a(0x255)];_0x374220[_0x3ea25a(0x1cd)](_0x1606ba=>Math[_0x3ea25a(0x227)](_0x1606ba-_0x3f57f1)<this[_0x3ea25a(0x22f)][_0x3ea25a(0x252)])||_0x374220[_0x3ea25a(0x22a)](_0x3f57f1);}),{'rowCount':_0x374220[_0x4d6063(0x222)]};}[_0x4a6c5d(0x1ef)](){const _0x21cc1c=_0x4a6c5d,_0x46cf7f=document[_0x21cc1c(0x208)](_0x21cc1c(0x214));return _0x46cf7f[_0x21cc1c(0x204)]=this[_0x21cc1c(0x22f)][_0x21cc1c(0x230)][_0x21cc1c(0x233)],this[_0x21cc1c(0x22f)][_0x21cc1c(0x230)][_0x21cc1c(0x259)]&&_0x46cf7f[_0x21cc1c(0x1de)][_0x21cc1c(0x239)](this[_0x21cc1c(0x22f)][_0x21cc1c(0x230)][_0x21cc1c(0x259)]),_0x46cf7f[_0x21cc1c(0x1e0)]=_0x21cc1c(0x228),_0x46cf7f;}[_0x4a6c5d(0x22b)](_0x240707,_0x25df9e,_0x3dd21d){const _0x2b7b0a=_0x4a6c5d;this[_0x2b7b0a(0x21f)](_0x25df9e,_0x3dd21d);const _0x7d8d27=this[_0x2b7b0a(0x1ef)]();_0x240707[_0x2b7b0a(0x223)](_0x7d8d27),_0x240707[_0x2b7b0a(0x21d)];const _0x22e65f=[..._0x25df9e[_0x2b7b0a(0x23f)],_0x7d8d27],_0xd48ad8=[];_0x22e65f[_0x2b7b0a(0x234)](_0x1a63c2=>{const _0x8382cc=_0x2b7b0a,_0x5f24fe=_0x1a63c2[_0x8382cc(0x1f4)]()[_0x8382cc(0x255)];_0xd48ad8[_0x8382cc(0x1cd)](_0x3009ce=>Math[_0x8382cc(0x227)](_0x3009ce-_0x5f24fe)<this[_0x8382cc(0x22f)][_0x8382cc(0x252)])||_0xd48ad8[_0x8382cc(0x22a)](_0x5f24fe);});const _0x561716=_0xd48ad8[_0x2b7b0a(0x222)];return _0x7d8d27[_0x2b7b0a(0x226)](),_0x561716<=this[_0x2b7b0a(0x22f)][_0x2b7b0a(0x206)];}[_0x4a6c5d(0x1e1)](_0x8466a1,_0x1ec8f2){const _0x4c8cac=_0x4a6c5d;this[_0x4c8cac(0x251)][_0x4c8cac(0x247)](),this[_0x4c8cac(0x229)][_0x4c8cac(0x247)](),_0x8466a1[_0x4c8cac(0x234)](_0x375578=>{const _0x3f8af6=_0x4c8cac;_0x1ec8f2[_0x3f8af6(0x1dc)](_0x375578)?this[_0x3f8af6(0x229)][_0x3f8af6(0x239)](_0x375578):this[_0x3f8af6(0x251)][_0x3f8af6(0x239)](_0x375578);});}[_0x4a6c5d(0x1f6)](_0x528616){const _0x18323a=_0x4a6c5d;if(_0x528616>0x0&&!this[_0x18323a(0x218)]&&this[_0x18323a(0x1ec)](),_0x528616>0x0&&this[_0x18323a(0x218)]){const _0x2476a3=''+this[_0x18323a(0x22f)][_0x18323a(0x205)]+(_0x528616<0x63?_0x528616:'99');this[_0x18323a(0x218)][_0x18323a(0x1d4)]=_0x2476a3;}this[_0x18323a(0x1cf)](),this[_0x18323a(0x200)](),this[_0x18323a(0x216)]();}[_0x4a6c5d(0x220)](_0x1175b8,_0x85e694){const _0x57d3d4=_0x4a6c5d;this[_0x57d3d4(0x1e1)](_0x1175b8,_0x85e694),this[_0x57d3d4(0x1f6)](_0x85e694[_0x57d3d4(0x222)]);}[_0x4a6c5d(0x23e)](){const _0x4c0dba=_0x4a6c5d;this[_0x4c0dba(0x25a)]&&_0x4c0dba(0x244)!=typeof IntersectionObserver&&(this[_0x4c0dba(0x1d9)]=new IntersectionObserver(_0x1d3961=>{const _0x30b9e4=_0x4c0dba;_0x1d3961[0x0][_0x30b9e4(0x209)]&&this[_0x30b9e4(0x1fe)]&&requestAnimationFrame(()=>{const _0x44ea96=_0x30b9e4;this[_0x44ea96(0x21b)]();});},{'threshold':0.01,'rootMargin':_0x4c0dba(0x23a)}),this[_0x4c0dba(0x1d9)][_0x4c0dba(0x25f)](this[_0x4c0dba(0x25a)]));}[_0x4a6c5d(0x1dd)](){const _0x45c0d5=_0x4a6c5d;if(!this[_0x45c0d5(0x25a)])return!0x1;if(!this[_0x45c0d5(0x25a)][_0x45c0d5(0x24d)])return!0x1;const _0x460e05=this[_0x45c0d5(0x25a)][_0x45c0d5(0x1f4)]();if(0x0===_0x460e05[_0x45c0d5(0x232)]||0x0===_0x460e05[_0x45c0d5(0x24b)])return!0x1;const _0x4890e5=window[_0x45c0d5(0x1eb)]||document[_0x45c0d5(0x238)][_0x45c0d5(0x201)],_0x4a8db3=window[_0x45c0d5(0x20d)]||document[_0x45c0d5(0x238)][_0x45c0d5(0x22d)],_0x51a499=0xc8;return _0x460e05[_0x45c0d5(0x1df)]>=-0xc8&&_0x460e05[_0x45c0d5(0x255)]<=_0x4890e5+_0x51a499&&_0x460e05[_0x45c0d5(0x23d)]>=-0xc8&&_0x460e05[_0x45c0d5(0x221)]<=_0x4a8db3+_0x51a499;}}
|
|
23
|
+
const _0xf4227d=_0x1ce4;(function(_0x1b03c3,_0x2384d4){const _0x3077d2=_0x1ce4,_0x3b7901=_0x1b03c3();while(!![]){try{const _0x5d0adf=-parseInt(_0x3077d2(0x1ed))/0x1+parseInt(_0x3077d2(0x21d))/0x2*(parseInt(_0x3077d2(0x210))/0x3)+parseInt(_0x3077d2(0x1a7))/0x4+-parseInt(_0x3077d2(0x215))/0x5*(parseInt(_0x3077d2(0x1b7))/0x6)+parseInt(_0x3077d2(0x1ce))/0x7+-parseInt(_0x3077d2(0x1f4))/0x8*(parseInt(_0x3077d2(0x1da))/0x9)+parseInt(_0x3077d2(0x1b6))/0xa*(parseInt(_0x3077d2(0x1d1))/0xb);if(_0x5d0adf===_0x2384d4)break;else _0x3b7901['push'](_0x3b7901['shift']());}catch(_0x4f7fb0){_0x3b7901['push'](_0x3b7901['shift']());}}}(_0x36f5,0x3f710));import{View as _0x2abfae,BalloonPanelView as _0x23692d,ButtonView as _0x39eaf9,clickOutsideHandler as _0x421e92}from'ckeditor5/src/ui.js';import{Collection as _0x216c2a}from'ckeditor5/src/utils.js';function _0x36f5(){const _0x61d3a9=['querySelector','_updateOverflowUI','_calculateOverflowInContainer','_config','rowDetectionTolerance','slice','from','showMoreLabelPrefix','_makeAncestorsVisible','className','_restoreAncestorVisibility','visible','pop','134595jtKuqp','pin','forEach','isConnected','right','1066060kfoYFM','undefined','_locale','push','_intersectionObserver','block\x20!important','overflowChips','createElement','2FaxPhc','_handleShowMoreButtonClick','0px','div','_createMockButton','classList','50px','_updateShowMoreButtonVisibility','opacity','hideBalloonPanel','border-box','innerHTML','display','_targetContainer','isIntersecting','pointerEvents','element','innerWidth','innerHeight','reorganizeChips','_createCalculationContainer','documentElement','auto','calculationContainer','cloneNode','children','bottom','_bodyCollection','zIndex','clientWidth','includes','1569356bVIGoQ','appendChild','_updateBalloonContent','block','execute','_renderChipsAndCountRows','content','remove','show','textContent','clear','offsetWidth','isOn','position','showBalloonPanel','36870KuRNjE','6UrfhTt','add','300px','_showMoreButtonView','toLowerCase','button','disconnect','_containerElement','isVisible','_createShowMoreBalloonPanelView','_testButtonFit','controlsButton','absolute','showMoreButton','+\x201','_overflowChips','getComputedStyle','getBoundingClientRect','disableAnimationOnEnter','maxVisibleRows','hide','body','width','3430945aKfyie','_createShowMoreButtonView','parentElement','297AwHclX','_createShowMoreButton','.ck-ai-chat','cssClasses','set','tagName','setTemplate','-9999px','_findTargetContainer','548721COMMhy','style','top','showMoreButtonView','boxSizing','clientHeight','left','ck-calculation-container','_checkAndHandleOverflow','_parentView','hidden','label','_ancestorsToRestore','visible\x20!important','render','showMoreBalloon','_visibleChips','_pendingCalculation','_isContainerVisible','492851MEJZid','observe','height','extendTemplate','_distributeChips','length','some','8eQdOvn','destroy','visibility','_createContainerElements','_showMoreBalloonPanelView','_applyOverflowResults','abs','_setupVisibilityObserver','setContainerElement','overflowContainer','_repinBalloonPanel','_calculateContainerWidth','filter','_applyCalculationStyles','none'];_0x36f5=function(){return _0x61d3a9;};return _0x36f5();}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0xf4227d(0x1b9);function _0x1ce4(_0xf002c2,_0x3cdf6b){const _0x36f551=_0x36f5();return _0x1ce4=function(_0x1ce47c,_0x36a7d0){_0x1ce47c=_0x1ce47c-0x19a;let _0x1d1c00=_0x36f551[_0x1ce47c];return _0x1d1c00;},_0x1ce4(_0xf002c2,_0x3cdf6b);}export class AIChatChipsOverflowManager{[_0xf4227d(0x217)];[_0xf4227d(0x206)];[_0xf4227d(0x1ea)];[_0xf4227d(0x1c6)];[_0xf4227d(0x1ba)]=null;[_0xf4227d(0x1f8)]=null;[_0xf4227d(0x1be)]=null;[_0xf4227d(0x1a3)];[_0xf4227d(0x1e3)]=null;[_0xf4227d(0x219)]=null;[_0xf4227d(0x1eb)]=!0x1;constructor(_0x53e5ef,_0x185ea3,_0x46327f,_0x4c963c,_0x52f1a3){const _0x1f7d10=_0xf4227d;this[_0x1f7d10(0x217)]=_0x53e5ef,this[_0x1f7d10(0x1ea)]=_0x185ea3,this[_0x1f7d10(0x206)]={...hn,..._0x46327f,'cssClasses':{'controlsButton':'','calculationContainer':_0x1f7d10(0x1e1),..._0x46327f[_0x1f7d10(0x1d4)]}},this[_0x1f7d10(0x1c6)]=new _0x216c2a(),this[_0x1f7d10(0x1a3)]=_0x4c963c,this[_0x1f7d10(0x1e3)]=_0x52f1a3||null;}[_0xf4227d(0x1fc)](_0x1f3952){const _0x27c375=_0xf4227d;this[_0x27c375(0x219)]&&(this[_0x27c375(0x219)][_0x27c375(0x1bd)](),this[_0x27c375(0x219)]=null),this[_0x27c375(0x1be)]=_0x1f3952,this[_0x27c375(0x1fb)]();}get[_0xf4227d(0x1dd)](){const _0x558189=_0xf4227d;return this[_0x558189(0x1ba)];}get[_0xf4227d(0x21b)](){const _0x916a8d=_0xf4227d;return this[_0x916a8d(0x1c6)];}[_0xf4227d(0x19b)](){requestAnimationFrame(()=>{const _0x49ac2f=_0x1ce4;this[_0x49ac2f(0x1e2)]();});}[_0xf4227d(0x1b5)](){const _0xba0d2d=_0xf4227d;this[_0xba0d2d(0x1ba)]&&this[_0xba0d2d(0x1f8)]&&(this[_0xba0d2d(0x1a9)](),this[_0xba0d2d(0x1ba)][_0xba0d2d(0x1b3)]=!0x0,this[_0xba0d2d(0x1f8)][_0xba0d2d(0x1af)](),this[_0xba0d2d(0x1f8)][_0xba0d2d(0x211)]({'target':this[_0xba0d2d(0x1ba)][_0xba0d2d(0x22d)],'limiter':document[_0xba0d2d(0x203)](_0xba0d2d(0x1d3))}));}[_0xf4227d(0x226)](){const _0x866028=_0xf4227d;this[_0x866028(0x1ba)]&&this[_0x866028(0x1f8)]&&(this[_0x866028(0x1ba)][_0x866028(0x1b3)]=!0x1,this[_0x866028(0x1f8)][_0x866028(0x1cb)]());}[_0xf4227d(0x1b1)](){const _0x1f810a=_0xf4227d;this[_0x1f810a(0x1c6)][_0x1f810a(0x1b1)](),this[_0x1f810a(0x226)](),this[_0x1f810a(0x224)](),this[_0x1f810a(0x1ba)]&&(this[_0x1f810a(0x1ba)][_0x1f810a(0x1e5)]=''),this[_0x1f810a(0x1f8)]&&this[_0x1f810a(0x1f8)][_0x1f810a(0x1ad)][_0x1f810a(0x1b1)]();}[_0xf4227d(0x1f5)](){const _0x182965=_0xf4227d;this[_0x182965(0x219)]&&(this[_0x182965(0x219)][_0x182965(0x1bd)](),this[_0x182965(0x219)]=null),this[_0x182965(0x1ba)]&&(this[_0x182965(0x1ba)][_0x182965(0x1f5)](),this[_0x182965(0x1ba)]=null),this[_0x182965(0x1f8)]&&(this[_0x182965(0x1f8)][_0x182965(0x1f5)](),this[_0x182965(0x1f8)]=null);}[_0xf4227d(0x1e2)](){const _0x56a5bf=_0xf4227d;if(!this[_0x56a5bf(0x1be)])return;if(!this[_0x56a5bf(0x1ec)]())return void(this[_0x56a5bf(0x1eb)]=!0x0);this[_0x56a5bf(0x1eb)]=!0x1;const _0xbb5fe0=[...this[_0x56a5bf(0x1ea)],...this[_0x56a5bf(0x1c6)]],_0x30f1ae=this[_0x56a5bf(0x19c)](),_0x38128c=this[_0x56a5bf(0x205)](_0x30f1ae,_0xbb5fe0),_0x235ee4=_0x30f1ae[_0x56a5bf(0x1e6)];_0x235ee4&&this[_0x56a5bf(0x20d)](_0x235ee4),_0x30f1ae[_0x56a5bf(0x1ae)](),this[_0x56a5bf(0x1f9)](_0xbb5fe0,_0x38128c);}[_0xf4227d(0x1d2)](){const _0x2f9bf9=_0xf4227d;this[_0x2f9bf9(0x1ba)]=this[_0x2f9bf9(0x1cf)](),this[_0x2f9bf9(0x1f8)]=this[_0x2f9bf9(0x1c0)](),this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x1e8)](),this[_0x2f9bf9(0x1be)][_0x2f9bf9(0x1a8)](this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x22d)]),this[_0x2f9bf9(0x1ba)]['on'](_0x2f9bf9(0x1ab),()=>{const _0x1bed3=_0x2f9bf9;this[_0x1bed3(0x21e)]();}),_0x421e92({'emitter':this[_0x2f9bf9(0x1f8)],'contextElements':[this[_0x2f9bf9(0x1f8)][_0x2f9bf9(0x22d)],this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x22d)]],'callback':()=>this[_0x2f9bf9(0x226)](),'activator':()=>this[_0x2f9bf9(0x1ba)][_0x2f9bf9(0x1b3)]});}[_0xf4227d(0x1cf)](){const _0x2b8e79=_0xf4227d,_0x4f7fec=new _0x39eaf9(this[_0x2b8e79(0x217)]);_0x4f7fec[_0x2b8e79(0x1d5)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x326afc=[this[_0x2b8e79(0x206)][_0x2b8e79(0x1d4)][_0x2b8e79(0x1c4)]];return this[_0x2b8e79(0x206)][_0x2b8e79(0x1d4)][_0x2b8e79(0x1c2)]&&_0x326afc[_0x2b8e79(0x218)](this[_0x2b8e79(0x206)][_0x2b8e79(0x1d4)][_0x2b8e79(0x1c2)]),_0x4f7fec[_0x2b8e79(0x1f0)]({'attributes':{'class':_0x326afc}}),_0x4f7fec;}[_0xf4227d(0x1c0)](){const _0x5ce91b=_0xf4227d,_0x4b9357=new _0x23692d(this[_0x5ce91b(0x217)]);return _0x4b9357[_0x5ce91b(0x1f0)]({'attributes':{'class':this[_0x5ce91b(0x206)][_0x5ce91b(0x1d4)][_0x5ce91b(0x1e9)]}}),this[_0x5ce91b(0x1a3)][_0x5ce91b(0x1b8)](_0x4b9357),_0x4b9357;}[_0xf4227d(0x1a9)](){const _0x28b930=_0xf4227d;if(this[_0x28b930(0x1f8)]&&(this[_0x28b930(0x1f8)][_0x28b930(0x1ad)][_0x28b930(0x1b1)](),this[_0x28b930(0x1c6)][_0x28b930(0x1f2)]>0x0)){this[_0x28b930(0x1c6)][_0x28b930(0x212)](_0x20e5ca=>{const _0x508a95=_0x28b930;_0x20e5ca[_0x508a95(0x1c9)]();});const _0x45a584=new _0x2abfae(this[_0x28b930(0x217)]);_0x45a584[_0x28b930(0x1d7)]({'tag':_0x28b930(0x220),'attributes':{'class':this[_0x28b930(0x206)][_0x28b930(0x1d4)][_0x28b930(0x1fd)]},'children':this[_0x28b930(0x1c6)]}),this[_0x28b930(0x1f8)][_0x28b930(0x1ad)][_0x28b930(0x1b8)](_0x45a584);}}[_0xf4227d(0x21e)](){const _0x5c39b9=_0xf4227d;this[_0x5c39b9(0x1ba)][_0x5c39b9(0x1b3)]?this[_0x5c39b9(0x226)]():this[_0x5c39b9(0x1b5)]();}[_0xf4227d(0x224)](){const _0x88c65c=_0xf4227d,_0x4d4f00=this[_0x88c65c(0x1c6)][_0x88c65c(0x1f2)]>0x0;this[_0x88c65c(0x1ba)]?.[_0x88c65c(0x22d)]&&(this[_0x88c65c(0x1ba)][_0x88c65c(0x22d)][_0x88c65c(0x1db)][_0x88c65c(0x229)]=_0x4d4f00?'':_0x88c65c(0x202));}[_0xf4227d(0x1fe)](){const _0x5bb28a=_0xf4227d;this[_0x5bb28a(0x1ba)]?.[_0x5bb28a(0x1b3)]&&this[_0x5bb28a(0x1f8)]?.[_0x5bb28a(0x1bf)]&&this[_0x5bb28a(0x1ba)][_0x5bb28a(0x22d)]&&this[_0x5bb28a(0x1f8)][_0x5bb28a(0x211)]({'target':this[_0x5bb28a(0x1ba)][_0x5bb28a(0x22d)],'limiter':document[_0x5bb28a(0x203)](_0x5bb28a(0x1d3))});}[_0xf4227d(0x1d9)](_0x50dae9){const _0x4f9755=_0xf4227d,_0x1fe079=this[_0x4f9755(0x1be)]?.[_0x4f9755(0x1d6)][_0x4f9755(0x1bb)]()||_0x4f9755(0x220),_0x314a73=this[_0x4f9755(0x1be)]?.[_0x4f9755(0x222)];if(_0x314a73){const _0x27cfd0=_0x314a73[0x0]||'',_0x55845b=_0x50dae9[_0x4f9755(0x203)]('.'+_0x27cfd0),_0x35bdbf=_0x50dae9[_0x4f9755(0x203)](_0x1fe079);return _0x55845b||_0x35bdbf||_0x50dae9;}return _0x50dae9[_0x4f9755(0x203)](_0x1fe079)||_0x50dae9;}[_0xf4227d(0x1ff)](){const _0x1810f3=_0xf4227d,_0x170b6c=this[_0x1810f3(0x1e3)]?.[_0x1810f3(0x22d)]||this[_0x1810f3(0x1be)];if(!_0x170b6c)return ln;const _0x4d5783=window[_0x1810f3(0x1c7)](_0x170b6c)[_0x1810f3(0x1cd)];if(_0x1810f3(0x19e)===_0x4d5783||_0x1810f3(0x21f)===_0x4d5783||!_0x4d5783){const _0x57318f=_0x170b6c[_0x1810f3(0x1d0)];if(_0x57318f){const _0x286817=window[_0x1810f3(0x1c7)](_0x57318f);return _0x1810f3(0x19e)!==_0x286817[_0x1810f3(0x1cd)]?_0x286817[_0x1810f3(0x1cd)]:ln;}return ln;}return _0x4d5783;}[_0xf4227d(0x201)](_0x3e907e,_0x54af8a){const _0x1b6fe7=_0xf4227d;this[_0x1b6fe7(0x206)][_0x1b6fe7(0x1d4)][_0x1b6fe7(0x19f)]&&_0x3e907e[_0x1b6fe7(0x222)][_0x1b6fe7(0x1b8)](this[_0x1b6fe7(0x206)][_0x1b6fe7(0x1d4)][_0x1b6fe7(0x19f)]),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1cd)]=_0x54af8a,_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1b4)]=_0x1b6fe7(0x1c3),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1dc)]=_0x1b6fe7(0x1d8),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1e0)]=_0x1b6fe7(0x1d8),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x225)]='0',_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x22c)]=_0x1b6fe7(0x202),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1a4)]='-1',_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1f6)]=_0x1b6fe7(0x1e7),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x229)]=_0x1b6fe7(0x21a),_0x3e907e[_0x1b6fe7(0x1db)][_0x1b6fe7(0x1de)]=_0x1b6fe7(0x227);}[_0xf4227d(0x20d)](_0x51e945){const _0x203242=_0xf4227d;_0x51e945[_0x203242(0x212)](({element:_0x1e0c57,originalDisplay:_0x284915,originalVisibility:_0x2d43ba})=>{const _0x4adf6c=_0x203242;_0x1e0c57[_0x4adf6c(0x1db)][_0x4adf6c(0x229)]=_0x284915,_0x1e0c57[_0x4adf6c(0x1db)][_0x4adf6c(0x1f6)]=_0x2d43ba;});}[_0xf4227d(0x20b)](_0x2db3f1){const _0x2a90e5=_0xf4227d,_0xb65ea=[];let _0x5f206f=_0x2db3f1;for(;_0x5f206f&&_0x5f206f!==document[_0x2a90e5(0x1cc)];){const _0x2a1034=window[_0x2a90e5(0x1c7)](_0x5f206f);_0x2a90e5(0x202)!==_0x2a1034[_0x2a90e5(0x229)]&&_0x2a90e5(0x1e4)!==_0x2a1034[_0x2a90e5(0x1f6)]||(_0xb65ea[_0x2a90e5(0x218)]({'element':_0x5f206f,'originalDisplay':_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x229)],'originalVisibility':_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x1f6)]}),_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x229)]=_0x2a90e5(0x1aa),_0x5f206f[_0x2a90e5(0x1db)][_0x2a90e5(0x1f6)]=_0x2a90e5(0x20e)),_0x5f206f=_0x5f206f[_0x2a90e5(0x1d0)];}return _0xb65ea;}[_0xf4227d(0x1f7)](){const _0x21b46e=_0xf4227d;let _0x4289f6,_0x44441e;return this[_0x21b46e(0x1e3)]?.[_0x21b46e(0x22d)]?(_0x4289f6=this[_0x21b46e(0x1e3)][_0x21b46e(0x22d)][_0x21b46e(0x1a0)](!0x0),_0x44441e=this[_0x21b46e(0x1d9)](_0x4289f6)):(_0x4289f6=document[_0x21b46e(0x21c)](_0x21b46e(0x220)),_0x44441e=_0x4289f6),{'calculationContainer':_0x4289f6,'targetContainer':_0x44441e};}[_0xf4227d(0x19c)](){const _0xc462bd=_0xf4227d,{calculationContainer:_0x238794,targetContainer:_0x3d6595}=this[_0xc462bd(0x1f7)](),_0x394d66=this[_0xc462bd(0x1ff)]();this[_0xc462bd(0x201)](_0x238794,_0x394d66);const _0x16e1af=this[_0xc462bd(0x1e3)]?.[_0xc462bd(0x22d)]||this[_0xc462bd(0x1be)],_0x3adb15=_0x16e1af?.[_0xc462bd(0x1d0)];_0x3adb15?_0x3adb15[_0xc462bd(0x1a8)](_0x238794):document[_0xc462bd(0x1cc)][_0xc462bd(0x1a8)](_0x238794),_0x238794[_0xc462bd(0x22a)]=_0x3d6595;const _0x186699=this[_0xc462bd(0x20b)](_0x3adb15||null);return _0x238794[_0xc462bd(0x1b2)],_0x238794[_0xc462bd(0x1e6)]=_0x186699,_0x238794;}[_0xf4227d(0x205)](_0x114ee4,_0x281efb){const _0x462649=_0xf4227d,_0x1e79c3=_0x114ee4[_0x462649(0x22a)]||_0x114ee4,_0x44e52d=[],{rowCount:_0x5eb92c}=this[_0x462649(0x1ac)](_0x1e79c3,_0x281efb);if(_0x5eb92c<=this[_0x462649(0x206)][_0x462649(0x1ca)])return _0x44e52d;const _0x9048a2=_0x281efb[_0x462649(0x208)]();for(;_0x9048a2[_0x462649(0x1f2)]>0x0;){if(this[_0x462649(0x1c1)](_0x114ee4,_0x1e79c3,_0x9048a2)){const _0x4a31be=_0x281efb[_0x462649(0x200)](_0xd902b5=>!_0x9048a2[_0x462649(0x1a6)](_0xd902b5));_0x44e52d[_0x462649(0x218)](..._0x4a31be);break;}if(!_0x9048a2[_0x462649(0x20f)]())break;}return _0x44e52d;}[_0xf4227d(0x1ac)](_0x257a92,_0x158f0e){const _0x351d47=_0xf4227d;_0x257a92[_0x351d47(0x228)]='',_0x158f0e[_0x351d47(0x212)](_0x2db86e=>{const _0x47e5bd=_0x351d47;if(_0x2db86e[_0x47e5bd(0x22d)]){const _0x6930f9=_0x2db86e[_0x47e5bd(0x22d)][_0x47e5bd(0x1a0)](!0x0);_0x257a92[_0x47e5bd(0x1a8)](_0x6930f9);}}),_0x257a92[_0x351d47(0x1b2)];const _0x29afd7=_0x257a92[_0x351d47(0x1a1)],_0x4e8299=[];return Array[_0x351d47(0x209)](_0x29afd7)[_0x351d47(0x212)](_0x2356ff=>{const _0x30efaa=_0x351d47,_0x36ac13=_0x2356ff[_0x30efaa(0x1c8)]()[_0x30efaa(0x1dc)];_0x4e8299[_0x30efaa(0x1f3)](_0x2d46a9=>Math[_0x30efaa(0x1fa)](_0x2d46a9-_0x36ac13)<this[_0x30efaa(0x206)][_0x30efaa(0x207)])||_0x4e8299[_0x30efaa(0x218)](_0x36ac13);}),{'rowCount':_0x4e8299[_0x351d47(0x1f2)]};}[_0xf4227d(0x221)](){const _0x419dfa=_0xf4227d,_0xa19994=document[_0x419dfa(0x21c)](_0x419dfa(0x1bc));return _0xa19994[_0x419dfa(0x20c)]=this[_0x419dfa(0x206)][_0x419dfa(0x1d4)][_0x419dfa(0x1c4)],this[_0x419dfa(0x206)][_0x419dfa(0x1d4)][_0x419dfa(0x1c2)]&&_0xa19994[_0x419dfa(0x222)][_0x419dfa(0x1b8)](this[_0x419dfa(0x206)][_0x419dfa(0x1d4)][_0x419dfa(0x1c2)]),_0xa19994[_0x419dfa(0x1b0)]=_0x419dfa(0x1c5),_0xa19994;}[_0xf4227d(0x1c1)](_0x15bca0,_0x3068a8,_0x58f833){const _0x5c4362=_0xf4227d;this[_0x5c4362(0x1ac)](_0x3068a8,_0x58f833);const _0x38fc09=this[_0x5c4362(0x221)]();_0x15bca0[_0x5c4362(0x1a8)](_0x38fc09),_0x15bca0[_0x5c4362(0x1b2)];const _0x2a97da=[..._0x3068a8[_0x5c4362(0x1a1)],_0x38fc09],_0x190a24=[];_0x2a97da[_0x5c4362(0x212)](_0x214ad6=>{const _0x417fd1=_0x5c4362,_0x2229a9=_0x214ad6[_0x417fd1(0x1c8)]()[_0x417fd1(0x1dc)];_0x190a24[_0x417fd1(0x1f3)](_0x24331a=>Math[_0x417fd1(0x1fa)](_0x24331a-_0x2229a9)<this[_0x417fd1(0x206)][_0x417fd1(0x207)])||_0x190a24[_0x417fd1(0x218)](_0x2229a9);});const _0x3604ec=_0x190a24[_0x5c4362(0x1f2)];return _0x38fc09[_0x5c4362(0x1ae)](),_0x3604ec<=this[_0x5c4362(0x206)][_0x5c4362(0x1ca)];}[_0xf4227d(0x1f1)](_0x4b623c,_0x226fe0){const _0x206741=_0xf4227d;this[_0x206741(0x1ea)][_0x206741(0x1b1)](),this[_0x206741(0x1c6)][_0x206741(0x1b1)](),_0x4b623c[_0x206741(0x212)](_0x47752c=>{const _0x310e8a=_0x206741;_0x226fe0[_0x310e8a(0x1a6)](_0x47752c)?this[_0x310e8a(0x1c6)][_0x310e8a(0x1b8)](_0x47752c):this[_0x310e8a(0x1ea)][_0x310e8a(0x1b8)](_0x47752c);});}[_0xf4227d(0x204)](_0x4bc346){const _0x2f0f0d=_0xf4227d;if(_0x4bc346>0x0&&!this[_0x2f0f0d(0x1ba)]&&this[_0x2f0f0d(0x1d2)](),_0x4bc346>0x0&&this[_0x2f0f0d(0x1ba)]){const _0x227330=''+this[_0x2f0f0d(0x206)][_0x2f0f0d(0x20a)]+(_0x4bc346<0x63?_0x4bc346:'99');this[_0x2f0f0d(0x1ba)][_0x2f0f0d(0x1e5)]=_0x227330;}this[_0x2f0f0d(0x1a9)](),this[_0x2f0f0d(0x224)](),this[_0x2f0f0d(0x1fe)]();}[_0xf4227d(0x1f9)](_0x8982f4,_0x46d988){const _0x2507d1=_0xf4227d;this[_0x2507d1(0x1f1)](_0x8982f4,_0x46d988),this[_0x2507d1(0x204)](_0x46d988[_0x2507d1(0x1f2)]);}[_0xf4227d(0x1fb)](){const _0x544d99=_0xf4227d;this[_0x544d99(0x1be)]&&_0x544d99(0x216)!=typeof IntersectionObserver&&(this[_0x544d99(0x219)]=new IntersectionObserver(_0x5a556b=>{const _0x64239a=_0x544d99;_0x5a556b[0x0][_0x64239a(0x22b)]&&this[_0x64239a(0x1eb)]&&requestAnimationFrame(()=>{const _0x5edf19=_0x64239a;this[_0x5edf19(0x1e2)]();});},{'threshold':0.01,'rootMargin':_0x544d99(0x223)}),this[_0x544d99(0x219)][_0x544d99(0x1ee)](this[_0x544d99(0x1be)]));}[_0xf4227d(0x1ec)](){const _0x37563a=_0xf4227d;if(!this[_0x37563a(0x1be)])return!0x1;if(!this[_0x37563a(0x1be)][_0x37563a(0x213)])return!0x1;const _0x48d8f0=this[_0x37563a(0x1be)][_0x37563a(0x1c8)]();if(0x0===_0x48d8f0[_0x37563a(0x1cd)]||0x0===_0x48d8f0[_0x37563a(0x1ef)])return!0x1;const _0x178d2e=window[_0x37563a(0x19a)]||document[_0x37563a(0x19d)][_0x37563a(0x1df)],_0x43e574=window[_0x37563a(0x22e)]||document[_0x37563a(0x19d)][_0x37563a(0x1a5)],_0x5f75a7=0xc8;return _0x48d8f0[_0x37563a(0x1a2)]>=-0xc8&&_0x48d8f0[_0x37563a(0x1dc)]<=_0x178d2e+_0x5f75a7&&_0x48d8f0[_0x37563a(0x214)]>=-0xc8&&_0x48d8f0[_0x37563a(0x1e0)]<=_0x43e574+_0x5f75a7;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2e038c=_0x40aa;(function(_0x12dd65,_0xbadf1){const _0x5bd752=_0x40aa,_0x318022=_0x12dd65();while(!![]){try{const _0x3f1c09=-parseInt(_0x5bd752(0xc5))/0x1+-parseInt(_0x5bd752(0xef))/0x2*(-parseInt(_0x5bd752(0x102))/0x3)+-parseInt(_0x5bd752(0xfc))/0x4+-parseInt(_0x5bd752(0xd9))/0x5*(parseInt(_0x5bd752(0xe6))/0x6)+-parseInt(_0x5bd752(0xed))/0x7*(parseInt(_0x5bd752(0x100))/0x8)+parseInt(_0x5bd752(0xf1))/0x9*(-parseInt(_0x5bd752(0xc7))/0xa)+parseInt(_0x5bd752(0xd6))/0xb*(parseInt(_0x5bd752(0xcd))/0xc);if(_0x3f1c09===_0xbadf1)break;else _0x318022['push'](_0x318022['shift']());}catch(_0xdf5cfd){_0x318022['push'](_0x318022['shift']());}}}(_0x12d8,0x7c74a));function _0x40aa(_0x56e591,_0x42cd44){const _0x12d851=_0x12d8();return _0x40aa=function(_0x40aab4,_0x496a59){_0x40aab4=_0x40aab4-0xc2;let _0x2dda2f=_0x12d851[_0x40aab4];return _0x2dda2f;},_0x40aa(_0x56e591,_0x42cd44);}import{ButtonView as _0x556218,IconView as _0x47f9ca}from'ckeditor5/src/ui.js';import{IconClose as _0x432abb,IconDocument as _0x2ce0d2,IconFileUpload as _0x1613bf,IconLink as _0x2c5b21,IconSelection as _0x4914d0}from'@ckeditor/ckeditor5-icons';function _0x12d8(){const _0x3de396=['bind','10TYFPjV','remove','small','_createLoaderIcon','disableAnimationOnEnter','extendTemplate','removeContextItemChip','tooltip','element','set','length','add','itemType','2425278wDoPlQ','document','execute','ck-ai-chat-context-chip__type-icon','isLoading','_createIconView','_isAnimationOnEnterEnabled','1676668xoigOr','lastIndexOf','30346HFshIo','setTemplate','2151549lZbLOB','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','selection','div','animationend','content','_createRemoveButton','label','span','webkitAnimationEnd','fire','2998644aVvrve','_setupRemoveButtonEvent','ck-ai-chat-context-chip','_handleAnimationEndOnce','8qztLTn','ck-ai-chat-context-controls__chip-tooltip','132NUmyLh','locale','ck-ai-chat-context-chip__label','render','_initializeProperties','uiId','ck-hidden','83309tnHzAw','_createTemplateAttributes','10zAsfES','bindTemplate','ck-ai-chat-context-chip_new-chip','addEventListener','removeEventListener','_createTemplateChildren','23545668gnxBUs','ck-ai-chat-context-chip_wide','_createLabelElement','classList','isVisible','readonly','slice','_setupTemplate','ck-ai-chat-context-chip_document','11krgVQA','type'];_0x12d8=function(){return _0x3de396;};return _0x12d8();}import{getTranslation as _0x57c993}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x16b3d5}from'../../../aicore/ui/aispinner.js';const kn={'file':_0x1613bf,'document':_0x2ce0d2,'web-resource':_0x2c5b21,'text':_0x1613bf,'selection':_0x4914d0},xn=_0x2e038c(0xfe),bn=_0x2e038c(0xce),wn=_0x2e038c(0xd5),Tn=_0x2e038c(0x104),En=_0x2e038c(0xe9),An=_0x2e038c(0x101),Cn='n';export class AIChatContextItemButtonView extends _0x556218{constructor(_0xa5d517,_0x4805b9,_0x5877ef,_0x23456a,_0x26f535=!0x1){const _0x9a4a6d=_0x2e038c;super(_0xa5d517),this[_0x9a4a6d(0xec)]=_0x23456a,this[_0x9a4a6d(0xc2)](_0x4805b9,_0x5877ef,_0x26f535),this[_0x9a4a6d(0xd4)]();}[_0x2e038c(0x105)](){const _0x3a6c9c=_0x2e038c;super[_0x3a6c9c(0x105)](),this[_0x3a6c9c(0xec)]&&this[_0x3a6c9c(0xe1)]&&(this[_0x3a6c9c(0xe1)][_0x3a6c9c(0xd0)][_0x3a6c9c(0xe4)](_0x3a6c9c(0xc9)),this[_0x3a6c9c(0xff)](this[_0x3a6c9c(0xe1)],()=>{const _0x68256=_0x3a6c9c;this[_0x68256(0xe1)]&&this[_0x68256(0xe1)][_0x68256(0xd0)][_0x68256(0xda)](_0x68256(0xc9));}));}[_0x2e038c(0xdd)](){const _0x4bd61d=_0x2e038c;this[_0x4bd61d(0xec)]=!0x1,this[_0x4bd61d(0xe1)]&&this[_0x4bd61d(0xe1)][_0x4bd61d(0xd0)][_0x4bd61d(0xda)](_0x4bd61d(0xc9));}[_0x2e038c(0xc2)](_0x51f215,_0x5104dc,_0x183fb8){const _0x58a28e=_0x2e038c;this[_0x58a28e(0xe2)](_0x58a28e(0xf8),_0x51f215[_0x58a28e(0xf8)]),this[_0x58a28e(0xe2)](_0x58a28e(0xe0),!0x0),this[_0x58a28e(0xe2)](_0x58a28e(0xe5),_0x51f215[_0x58a28e(0xd7)]),this[_0x58a28e(0xe2)]('id',_0x51f215[_0x58a28e(0xc3)]),this[_0x58a28e(0xe2)](_0x58a28e(0xd2),_0x5104dc),this[_0x58a28e(0xe2)](_0x58a28e(0xea),_0x183fb8);}[_0x2e038c(0xd4)](){const _0x1a6d96=_0x2e038c,_0x12ce41=this[_0x1a6d96(0xeb)](),_0x37696e=this[_0x1a6d96(0xf7)](),_0x43d0c9=this[_0x1a6d96(0xc8)];this[_0x1a6d96(0xf0)]({'tag':_0x1a6d96(0xf4),'attributes':this[_0x1a6d96(0xc6)](_0x43d0c9),'children':this[_0x1a6d96(0xcc)](_0x12ce41,_0x37696e,_0x43d0c9)});}[_0x2e038c(0xc6)](_0x3f7b4e){const _0x2301c1=_0x2e038c;return{'class':[xn,_0x3f7b4e['if'](_0x2301c1(0xe5),wn,_0x11dc5b=>_0x2301c1(0xe7)==_0x11dc5b),_0x3f7b4e['if'](_0x2301c1(0xe5),bn,_0x31bd7a=>_0x2301c1(0xf3)==_0x31bd7a)],'data-cke-tooltip-text':_0x3f7b4e['to'](_0x2301c1(0xf8),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x2e038c(0xcc)](_0x81c2d8,_0x519d5b,_0x41cbc8){const _0x4dea50=_0x2e038c,_0x170916=this[_0x4dea50(0xcf)](_0x41cbc8),_0x44a966=this[_0x4dea50(0xdc)]();return this[_0x4dea50(0xd2)]?[_0x81c2d8,_0x170916]:[_0x81c2d8,_0x44a966,_0x170916,_0x519d5b];}[_0x2e038c(0xcf)](_0xb525c7){const _0x3409bd=_0x2e038c;return{'tag':_0x3409bd(0xf9),'attributes':{'class':Tn},'children':[{'text':_0xb525c7['to'](_0x3409bd(0xf8))}]};}[_0x2e038c(0xf7)](){const _0x721e2b=_0x2e038c,_0x29f38f=new _0x556218(this[_0x721e2b(0x103)]);return _0x29f38f[_0x721e2b(0xe2)]({'label':_0x57c993(this[_0x721e2b(0x103)],_0x721e2b(0xf2)),'icon':_0x432abb}),this[_0x721e2b(0xfd)](_0x29f38f),_0x29f38f;}[_0x2e038c(0xfd)](_0x4ed892){const _0xb8d64f=_0x2e038c;_0x4ed892['on'](_0xb8d64f(0xe8),()=>{const _0xb99ddd=_0xb8d64f;this[_0xb99ddd(0xfb)](_0xb99ddd(0xdf),this['id']);});}[_0x2e038c(0xeb)](){const _0x2c3bb3=_0x2e038c,_0x3f93ee=this[_0x2c3bb3(0xc8)],_0x1ffc09=new _0x47f9ca();return _0x1ffc09[_0x2c3bb3(0xf6)]=kn[this[_0x2c3bb3(0xe5)]],_0x1ffc09[_0x2c3bb3(0xde)]({'attributes':{'class':[En,_0x3f93ee['if'](_0x2c3bb3(0xea),_0x2c3bb3(0xc4),_0x10f320=>_0x10f320)]}}),_0x1ffc09;}[_0x2e038c(0xff)](_0x237113,_0x55b8d4){const _0xd96b3c=_0x2e038c;if(!_0x237113)return;const _0x27efa0=()=>{const _0x51710a=_0x40aa;_0x55b8d4(),_0x237113[_0x51710a(0xcb)](_0x51710a(0xf5),_0x27efa0),_0x237113[_0x51710a(0xcb)](_0x51710a(0xfa),_0x27efa0);};_0x237113[_0xd96b3c(0xca)](_0xd96b3c(0xf5),_0x27efa0),_0x237113[_0xd96b3c(0xca)](_0xd96b3c(0xfa),_0x27efa0);}[_0x2e038c(0xdc)](){const _0x1ef7bf=_0x2e038c,_0x481677=new _0x16b3d5(_0x1ef7bf(0xdb));return _0x481677[_0x1ef7bf(0xd8)](_0x1ef7bf(0xd1))['to'](this,_0x1ef7bf(0xea),_0x1cd911=>_0x1cd911),_0x481677;}}function In(_0x4add06){const _0x11bc25=_0x2e038c;if(!_0x4add06)return _0x4add06;if(_0x4add06[_0x11bc25(0xe3)]<=0x78)return _0x4add06;const _0x3b6066=_0x4add06[_0x11bc25(0xd3)](0x0,0x78),_0x3a9db2=_0x3b6066[_0x11bc25(0xee)]('\x20');return(_0x3a9db2>0x0?_0x3b6066[_0x11bc25(0xd3)](0x0,_0x3a9db2):_0x3b6066)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x43a2fd=_0x5936;(function(_0x17d9e2,_0x181c6b){const _0x7a461=_0x5936,_0x186546=_0x17d9e2();while(!![]){try{const _0x15f297=-parseInt(_0x7a461(0xa2))/0x1*(parseInt(_0x7a461(0xd8))/0x2)+parseInt(_0x7a461(0xb0))/0x3*(-parseInt(_0x7a461(0xa7))/0x4)+-parseInt(_0x7a461(0xc2))/0x5*(parseInt(_0x7a461(0xd9))/0x6)+parseInt(_0x7a461(0xc0))/0x7*(parseInt(_0x7a461(0x93))/0x8)+-parseInt(_0x7a461(0xd7))/0x9+-parseInt(_0x7a461(0xb9))/0xa+parseInt(_0x7a461(0xa4))/0xb*(parseInt(_0x7a461(0xb1))/0xc);if(_0x15f297===_0x181c6b)break;else _0x186546['push'](_0x186546['shift']());}catch(_0x173de5){_0x186546['push'](_0x186546['shift']());}}}(_0x5490,0xb5fe8));import{FocusTracker as _0x555e08,KeystrokeHandler as _0x57ec9d}from'ckeditor5/src/utils.js';import{ButtonView as _0x2c6397,FocusCycler as _0x391480,LabeledFieldView as _0x57d818,View as _0x46ebf8,FormHeaderView as _0x2f8c4c,createLabeledInputText as _0x334fc1,submitHandler as _0x3a5821}from'ckeditor5/src/ui.js';import{IconCheck as _0x55fa44,IconPreviousArrow as _0x407faf}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x48773a}from'../../../aicore/utils/common-translations.js';const rh=_0x43a2fd(0xc9),oh=_0x43a2fd(0x94);function _0x5936(_0x1b86c1,_0x4c5de4){const _0x5490d0=_0x5490();return _0x5936=function(_0x593683,_0x4a5ae1){_0x593683=_0x593683-0x93;let _0x3c6988=_0x5490d0[_0x593683];return _0x3c6988;},_0x5936(_0x1b86c1,_0x4c5de4);}export class AIChatContextPanelUrlInputView extends _0x46ebf8{[_0x43a2fd(0xd1)];[_0x43a2fd(0xa8)];[_0x43a2fd(0x97)];[_0x43a2fd(0x9c)];[_0x43a2fd(0xda)];[_0x43a2fd(0x96)];[_0x43a2fd(0xa9)];constructor(_0x5e41d8){const _0x205d34=_0x43a2fd;super(_0x5e41d8),this[_0x205d34(0xd1)]=new _0x555e08(),this[_0x205d34(0xa8)]=new _0x57ec9d(),this[_0x205d34(0x96)]=this[_0x205d34(0xd0)](),this[_0x205d34(0xda)]=this[_0x205d34(0xc1)](),this[_0x205d34(0xa9)]=this[_0x205d34(0xdb)](),this[_0x205d34(0x97)]=this[_0x205d34(0xb2)]([this[_0x205d34(0x96)],this[_0x205d34(0xda)],this[_0x205d34(0xa9)]]),this[_0x205d34(0x9c)]=new _0x391480({'focusables':this[_0x205d34(0x97)],'focusTracker':this[_0x205d34(0xd1)],'keystrokeHandler':this[_0x205d34(0xa8)],'actions':{'focusPrevious':_0x205d34(0xa5),'focusNext':_0x205d34(0x9b)}}),this[_0x205d34(0xaa)](),this[_0x205d34(0xab)](),this[_0x205d34(0xcb)]();}[_0x43a2fd(0xd6)](){const _0x4c2c84=_0x43a2fd;super[_0x4c2c84(0xd6)](),this[_0x4c2c84(0x97)][_0x4c2c84(0xcf)](_0x45d833=>{const _0x11dec4=_0x4c2c84;this[_0x11dec4(0xd1)][_0x11dec4(0xdd)](_0x45d833[_0x11dec4(0x9a)]),this[_0x11dec4(0xa8)][_0x11dec4(0xd2)](_0x45d833[_0x11dec4(0x9a)]);}),_0x3a5821({'view':this}),this[_0x4c2c84(0xcc)]();}[_0x43a2fd(0xc7)](){const _0x2960f7=_0x43a2fd;super[_0x2960f7(0xc7)](),this[_0x2960f7(0xd1)][_0x2960f7(0xc7)](),this[_0x2960f7(0xa8)][_0x2960f7(0xc7)]();}[_0x43a2fd(0xcc)](){const _0x1195ba=_0x43a2fd;this[_0x1195ba(0xda)][_0x1195ba(0xcc)]();}[_0x43a2fd(0xaf)](){const _0x11aa6d=_0x43a2fd;return this[_0x11aa6d(0xda)][_0x11aa6d(0x9f)][_0x11aa6d(0x9a)]?.[_0x11aa6d(0xc8)]?.[_0x11aa6d(0xc3)]()||'';}[_0x43a2fd(0x98)](){const _0x1f86a3=_0x43a2fd;this[_0x1f86a3(0xda)][_0x1f86a3(0x9f)][_0x1f86a3(0x9a)][_0x1f86a3(0xc8)]='',this[_0x1f86a3(0xda)][_0x1f86a3(0x99)]=null,this[_0x1f86a3(0xa9)][_0x1f86a3(0xd4)]=!0x1;}[_0x43a2fd(0xbc)](_0xc42abd){const _0x7ca19f=_0x43a2fd;this[_0x7ca19f(0xda)][_0x7ca19f(0x99)]=_0xc42abd,this[_0x7ca19f(0xb3)](),this[_0x7ca19f(0xcd)](_0x7ca19f(0xc6));}[_0x43a2fd(0xa3)](){const _0x376e93=_0x43a2fd;this[_0x376e93(0xda)][_0x376e93(0x99)]=null,this[_0x376e93(0xb3)]();}[_0x43a2fd(0xd0)](){const _0x284e35=_0x43a2fd,_0x32e516=new _0x2c6397(this[_0x284e35(0xb7)]);return _0x32e516[_0x284e35(0xbb)]({'icon':_0x407faf,'tooltip':_0x48773a(this[_0x284e35(0xb7)],_0x284e35(0xba)),'tooltipPosition':'n','class':_0x284e35(0xbf)}),_0x32e516;}[_0x43a2fd(0xc1)](){const _0x58703c=_0x43a2fd,_0x391cc2=new _0x57d818(this[_0x58703c(0xb7)],_0x334fc1);return _0x391cc2[_0x58703c(0xbb)]({'label':_0x48773a(this[_0x58703c(0xb7)],_0x58703c(0x9e)),'class':_0x58703c(0xb6)}),_0x391cc2[_0x58703c(0x9f)][_0x58703c(0xbb)]({'placeholder':_0x48773a(this[_0x58703c(0xb7)],_0x58703c(0xd5))}),_0x391cc2;}[_0x43a2fd(0xdb)](){const _0x54a692=_0x43a2fd,_0x4da41=new _0x2c6397(this[_0x54a692(0xb7)]);return _0x4da41[_0x54a692(0xbb)]({'icon':_0x55fa44,'tooltip':_0x48773a(this[_0x54a692(0xb7)],_0x54a692(0xa1)),'tooltipPosition':'n','class':_0x54a692(0xa6),'type':_0x54a692(0xc5),'isEnabled':!0x1}),_0x4da41;}[_0x43a2fd(0xaa)](){const _0x5c0d10=_0x43a2fd,_0x43784f=new _0x2f8c4c(this[_0x5c0d10(0xb7)],{'label':_0x48773a(this[_0x5c0d10(0xb7)],_0x5c0d10(0xa1)),'class':_0x5c0d10(0x9d)});_0x43784f[_0x5c0d10(0xbe)][_0x5c0d10(0xdd)](this[_0x5c0d10(0x96)],0x0),this[_0x5c0d10(0xb8)]({'tag':_0x5c0d10(0xae),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0x43784f,{'tag':_0x5c0d10(0xb4),'attributes':{'class':oh},'children':[this[_0x5c0d10(0xda)],this[_0x5c0d10(0xa9)]]}]});}[_0x43a2fd(0xab)](){const _0x14adff=_0x43a2fd;this[_0x14adff(0x96)]['on'](_0x14adff(0xa0),()=>{const _0x2ae7d8=_0x14adff;this[_0x2ae7d8(0x98)](),this[_0x2ae7d8(0xcd)](_0x2ae7d8(0xb5));}),this[_0x14adff(0xda)][_0x14adff(0x9f)]['on'](_0x14adff(0xce),()=>{const _0x496758=_0x14adff;this[_0x496758(0xa3)](),this[_0x496758(0xb3)](),this[_0x496758(0xcd)](_0x496758(0xc6));}),this['on'](_0x14adff(0xc5),_0x49dc12=>{const _0x4b58cb=_0x14adff;_0x49dc12[_0x4b58cb(0xd3)](),this[_0x4b58cb(0xdc)]();});}[_0x43a2fd(0xcb)](){const _0x56241a=_0x43a2fd;this[_0x56241a(0xa8)][_0x56241a(0xbb)](_0x56241a(0xbd),(_0x5d9dad,_0x22d1d7)=>{const _0x556083=_0x56241a;this[_0x556083(0x98)](),this[_0x556083(0xcd)](_0x556083(0xb5)),_0x22d1d7();});}[_0x43a2fd(0xdc)](){const _0x2b2411=_0x43a2fd,_0x4dcc60=this[_0x2b2411(0xaf)]()[_0x2b2411(0xc3)]();_0x4dcc60?this[_0x2b2411(0xac)](_0x4dcc60)?(this[_0x2b2411(0xa3)](),this[_0x2b2411(0xcd)](_0x2b2411(0xad),_0x4dcc60)):this[_0x2b2411(0xbc)](_0x48773a(this[_0x2b2411(0xb7)],_0x2b2411(0x95))):this[_0x2b2411(0xbc)](_0x48773a(this[_0x2b2411(0xb7)],_0x2b2411(0xca)));}[_0x43a2fd(0xb3)](){const _0x3231ab=_0x43a2fd,_0x442898=this[_0x3231ab(0xaf)]()[_0x3231ab(0xc3)](),_0x3abc29=!!this[_0x3231ab(0xda)][_0x3231ab(0x99)];this[_0x3231ab(0xa9)][_0x3231ab(0xd4)]=_0x442898[_0x3231ab(0xc4)]>0x0&&!_0x3abc29;}[_0x43a2fd(0xac)](_0x192cac){try{return!!new URL(_0x192cac);}catch{return!0x1;}}}function _0x5490(){const _0x281f2c=['319GIPMnE','shift+tab','ck-button-icon','228qcLmdH','keystrokes','confirmButton','_setupTemplate','_setupEventHandlers','_isValidUrl','submitUrl','form','getValue','71280EjMkPh','1727556QZsicJ','createCollection','_updateConfirmButtonState','div','cancel','ck-labeled-field-view_empty','locale','setTemplate','14683280ztDDeM','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','set','setError','esc','children','ck-button-icon\x20ck-button-back','7uulwLp','_createUrlInputField','3355awLBbK','trim','length','submit','refreshBalloon','destroy','value','ck-ai-chat-context-controls__url-form','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','_setupKeystrokes','focus','fire','input','forEach','_createBackButton','focusTracker','listenTo','stop','isEnabled','AI_CHAT_CONTEXT_URL_PLACEHOLDER','render','2585799IMeYPb','4weSOfm','9480KBHIcT','urlInputField','_createConfirmButton','_handleSubmit','add','6982208PYoJyB','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_INVALID_ERROR','backButton','_focusables','clear','errorText','element','tab','focusCycler','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','AI_CHAT_CONTEXT_URL_LABEL','fieldView','execute','AI_CHAT_CONTEXT_URL_ADD_URL','66058YMWJfH','clearError'];_0x5490=function(){return _0x281f2c;};return _0x5490();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x7ee3(){const _0x588d0d=['element','urls','isLoading','224175LKUuit','reorganizeChips','_createContextButton','label','render','remove','_setupAddContextBalloonClickOutsideHandler','_overflowManager','buttonView','setAddContextOptions','showSourceResourcesBalloon','1784200wMvEpH','icon','ck-ai-chat-controls_context_show-more-button','pin','AI_CHAT_CONTEXT_URL_LABEL','balloonView','execute','_createUrlBalloonPanelView','clear','locale','_createAddContextBalloonPanelView','menuitem','_urlBalloonPanelView','addFileToContext','done','_getLimiterElement','_toggleAddContextBalloon','AI_CHAT_CONTEXT_ADD_CONTEXT','addResourceToContext','_conversationContextsChips','clearConversationContextItems','children','hideAddContextBalloonPanel','tooltip','ck-ai-chat-context-controls','ck-ai-chat-context-controls__show-more-balloon-panel','_createArrowView','removeContextItemChip','_addContextBalloonPanelView','ck-ai-chat-context-controls__add-context-balloon-panel','_createResourcesBalloonView','ck-ai-chat-context-controls__url-balloon-panel','hide','_setupUrlBalloonClickOutsideHandler','_resourcesBalloonView','isReadOnly','ck-reset_all-excluded','southArrowNorthEast','overflowChips','_urlInputView','content','_setupTemplate','_handleUrlSubmit','2245236LbIVGg','fire','northArrowSouthWest','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-controls-button','addContextItem','sources','ck-ai-chat-context-controls__add-context-button','_showSourceResourcesBalloon','_createAddContextButtonView','hideUrlBalloonPanel','isAnyResourceBalloonVisible','northArrowSouth','southArrowNorth','files','_addContextToCollection','clearCurrentContextItems','3009222jeZtVK','updateResourceState','refreshBalloon','ck-ai-chat-context-controls__balloon-button','_removeContextFromCollection','body','2ChvWsW','addUrlToContext','closest','_createBaseBalloonPanel','setContextItemLoading','_handleAddContextButtonClick','document','_addUrlContent','find','focus','isEnabled','setTemplate','908244nwgwTE','bodyCollection','setContainerElement','populateSourceResourceBalloon','extendTemplate','isVisible','source','defaultPositions','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat','addContextButtonView','_addContextBalloonConfig','_setBalloonPanelContent','ck-ai-chat-context-controls__pending-contexts','isOn','northArrowSouthEast','_setAddContextButtonEnabled','type','current','submitUrl','1682415UGJpZu','showUrlBalloonPanel','_bindEventHandlers','arrowView','__arrow','addDocumentToContext','bind','_setupAllBalloonClickOutsideHandlers','add','closeSourceResourceBalloon','conversation','removeContextItem','3237248KiLIEH','div','loadSourceResources','ck-ai-chat-context-chips-wrapper-balloon','destroy','_currentContextsChips','createCollection','_createBalloonButton','setConversationContext','show','isHidden','showAddContextBalloonPanel','southArrowNorthWest','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','set','enabled','cancel'];_0x7ee3=function(){return _0x588d0d;};return _0x7ee3();}const _0x34ad26=_0x598d;(function(_0x39cbe6,_0xdc6d41){const _0x24fe2b=_0x598d,_0x5d52fc=_0x39cbe6();while(!![]){try{const _0x1086b1=-parseInt(_0x24fe2b(0x194))/0x1*(-parseInt(_0x24fe2b(0x188))/0x2)+-parseInt(_0x24fe2b(0x182))/0x3+-parseInt(_0x24fe2b(0x146))/0x4+parseInt(_0x24fe2b(0x13b))/0x5+parseInt(_0x24fe2b(0x171))/0x6+parseInt(_0x24fe2b(0x11b))/0x7+parseInt(_0x24fe2b(0x127))/0x8;if(_0x1086b1===_0xdc6d41)break;else _0x5d52fc['push'](_0x5d52fc['shift']());}catch(_0x481447){_0x5d52fc['push'](_0x5d52fc['shift']());}}}(_0x7ee3,0x7fb9a));function _0x598d(_0x27810f,_0x41cf55){const _0x7ee362=_0x7ee3();return _0x598d=function(_0x598d2d,_0x21d7da){_0x598d2d=_0x598d2d-0x10c;let _0x4e6d44=_0x7ee362[_0x598d2d];return _0x4e6d44;},_0x598d(_0x27810f,_0x41cf55);}import{BalloonPanelView as _0xad9472,ButtonView as _0x2d6ee4,clickOutsideHandler as _0x47d22e,FileDialogButtonView as _0x2c46b5,IconView as _0x4d2f81,View as _0x300a95}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x5dafdd,IconDocument as _0x52e710,IconDocumentOutline as _0x2888f0,IconDropdownArrow as _0x2fc3cb,IconLink as _0x1b6b04,IconPaperClip as _0x299bd1}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x3c1726}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x498e92}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xc1d009}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x18a4a4}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3a35f9}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x34ad26(0x120),_0x34ad26(0x153),_0x34ad26(0x189),_0x34ad26(0x158),_0x34ad26(0x126),_0x34ad26(0x129)];const Bo=_0x34ad26(0x15e),bo=_0x34ad26(0x114),To=_0x34ad26(0x163),Ao=_0x34ad26(0x178),ko=_0x34ad26(0x165),Eo=_0x34ad26(0x185),vo=_0x34ad26(0x174),go=_0x34ad26(0x175),Vo=_0x34ad26(0x12a),fo=_0x34ad26(0x148),Io=_0x34ad26(0x15f),Po=_0x34ad26(0x110),Ro=[_0xad9472[_0x34ad26(0x10e)][_0x34ad26(0x173)],_0xad9472[_0x34ad26(0x10e)][_0x34ad26(0x17d)],_0xad9472[_0x34ad26(0x10e)][_0x34ad26(0x116)],_0xad9472[_0x34ad26(0x10e)][_0x34ad26(0x133)],_0xad9472[_0x34ad26(0x10e)][_0x34ad26(0x17e)],_0xad9472[_0x34ad26(0x10e)][_0x34ad26(0x16b)]];export class AIChatContextPanelView extends _0x300a95{[_0x34ad26(0x111)];[_0x34ad26(0x12c)]=this[_0x34ad26(0x12d)]();[_0x34ad26(0x159)]=this[_0x34ad26(0x12d)]();[_0x34ad26(0x142)];[_0x34ad26(0x162)];[_0x34ad26(0x152)];[_0x34ad26(0x16d)];[_0x34ad26(0x168)];[_0x34ad26(0x112)];[_0x34ad26(0x195)];constructor(_0x51df23,_0x51994b){const _0x1d0ae7=_0x34ad26;super(_0x51df23),this[_0x1d0ae7(0x195)]=_0x51994b,this[_0x1d0ae7(0x12c)]=this[_0x1d0ae7(0x12d)](),this[_0x1d0ae7(0x159)]=this[_0x1d0ae7(0x12d)](),this[_0x1d0ae7(0x111)]=this[_0x1d0ae7(0x17a)](_0x51df23),this[_0x1d0ae7(0x162)]=this[_0x1d0ae7(0x150)](_0x51df23),this[_0x1d0ae7(0x152)]=this[_0x1d0ae7(0x14d)](_0x51df23),this[_0x1d0ae7(0x168)]=this[_0x1d0ae7(0x164)](_0x51df23,_0x51994b);const _0x134ed7={'cssClasses':{'showMoreButton':fo,'showMoreBalloon':Io,'overflowContainer':Vo,'controlsButton':go}};this[_0x1d0ae7(0x142)]=new _0xc1d009(_0x51df23,this[_0x1d0ae7(0x12c)],_0x134ed7,this[_0x1d0ae7(0x195)],this),this[_0x1d0ae7(0x112)]={'buttonView':this[_0x1d0ae7(0x111)],'balloonView':this[_0x1d0ae7(0x162)],'hideMethod':this[_0x1d0ae7(0x15c)][_0x1d0ae7(0x121)](this),'showMethod':this[_0x1d0ae7(0x132)][_0x1d0ae7(0x121)](this)},this[_0x1d0ae7(0x16f)](),this[_0x1d0ae7(0x11d)]();}[_0x34ad26(0x13f)](){const _0x79e364=_0x34ad26;super[_0x79e364(0x13f)](),this[_0x79e364(0x122)](),this[_0x79e364(0x142)][_0x79e364(0x196)](this[_0x79e364(0x138)]),this[_0x79e364(0x142)][_0x79e364(0x13c)]();}[_0x34ad26(0x12b)](){const _0x24049c=_0x34ad26;super[_0x24049c(0x12b)](),this[_0x24049c(0x142)][_0x24049c(0x12b)](),this[_0x24049c(0x168)][_0x24049c(0x12b)]();}[_0x34ad26(0x176)](_0x42b9a1,_0x2376ce){const _0x139aca=_0x34ad26,_0x43eee2=this[_0x139aca(0x13d)](_0x42b9a1,_0x139aca(0x119),!0x0,_0x2376ce);this[_0x139aca(0x180)](_0x43eee2,this[_0x139aca(0x12c)]),this[_0x139aca(0x142)][_0x139aca(0x13c)]();}[_0x34ad26(0x126)](_0x513ad4){const _0x2ea2c8=_0x34ad26;this[_0x2ea2c8(0x186)](_0x513ad4,this[_0x2ea2c8(0x12c)]),this[_0x2ea2c8(0x186)](_0x513ad4,this[_0x2ea2c8(0x142)][_0x2ea2c8(0x16c)]),this[_0x2ea2c8(0x142)][_0x2ea2c8(0x13c)]();}[_0x34ad26(0x18c)](_0x389ae3,_0x54b5a6){const _0x568788=_0x34ad26;let _0x42018f=this[_0x568788(0x12c)][_0x568788(0x190)](_0x2574d1=>_0x2574d1['id']===_0x389ae3);_0x42018f||(_0x42018f=this[_0x568788(0x142)][_0x568788(0x16c)][_0x568788(0x190)](_0x3ff7c9=>_0x3ff7c9['id']===_0x389ae3)),_0x42018f&&(_0x42018f[_0x568788(0x13a)]=_0x54b5a6);}[_0x34ad26(0x12f)](_0x4989dd){const _0x33780c=_0x34ad26;this[_0x33780c(0x159)][_0x33780c(0x14e)]();for(const _0x2f32a9 of _0x4989dd){const _0x26f840=this[_0x33780c(0x13d)](_0x2f32a9,_0x33780c(0x125),!0x1,!0x1);this[_0x33780c(0x180)](_0x26f840,this[_0x33780c(0x159)]);}}[_0x34ad26(0x181)](){const _0x53f48d=_0x34ad26;this[_0x53f48d(0x12c)][_0x53f48d(0x14e)](),this[_0x53f48d(0x142)][_0x53f48d(0x14e)]();}[_0x34ad26(0x15a)](){const _0x13f892=_0x34ad26;this[_0x13f892(0x159)][_0x13f892(0x14e)]();}[_0x34ad26(0x183)](_0x282550,_0x5cc7a7,_0x3a0a3f){const _0x170cf0=_0x34ad26;this[_0x170cf0(0x168)][_0x170cf0(0x183)](_0x282550,_0x5cc7a7,_0x3a0a3f);}[_0x34ad26(0x15c)](){const _0x58e81f=_0x34ad26;this[_0x58e81f(0x156)](!0x1);}[_0x34ad26(0x132)](){const _0x44bec1=_0x34ad26;this[_0x44bec1(0x156)](!0x0);}[_0x34ad26(0x17b)](){const _0x555ce3=_0x34ad26;this[_0x555ce3(0x152)][_0x555ce3(0x166)](),this[_0x555ce3(0x111)][_0x555ce3(0x115)]=!0x1,this[_0x555ce3(0x16d)]&&this[_0x555ce3(0x16d)][_0x555ce3(0x14e)]();}[_0x34ad26(0x11c)](){const _0x4dacab=_0x34ad26;this[_0x4dacab(0x152)][_0x4dacab(0x130)](),this[_0x4dacab(0x111)][_0x4dacab(0x115)]=!0x0;}[_0x34ad26(0x179)](_0xf43e3c){const _0x455ee6=_0x34ad26;this[_0x455ee6(0x168)][_0x455ee6(0x145)](_0xf43e3c),this[_0x455ee6(0x111)][_0x455ee6(0x115)]=!0x0;}[_0x34ad26(0x197)](_0x95cf0e,_0x1e3a2e,_0x4b0487,_0x4793fb){const _0x4dc468=_0x34ad26;this[_0x4dc468(0x168)][_0x4dc468(0x197)](_0x95cf0e,_0x4b0487,_0x4793fb);}[_0x34ad26(0x124)](_0xb483d4){const _0x55353a=_0x34ad26;this[_0x55353a(0x168)][_0x55353a(0x124)](_0xb483d4),this[_0x55353a(0x111)][_0x55353a(0x115)]=!0x1;}[_0x34ad26(0x144)](_0x47abda){const _0x1d601d=_0x34ad26;this[_0x1d601d(0x113)](this[_0x1d601d(0x162)],this[_0x1d601d(0x14f)],_0x47abda),this[_0x1d601d(0x117)](_0x47abda);}[_0x34ad26(0x117)](_0x4db523){const _0x593e17=_0x34ad26,_0x2d0a8c=!_0x4db523[_0x593e17(0x18e)][_0x593e17(0x131)]&&_0x4db523[_0x593e17(0x18e)][_0x593e17(0x136)],_0x4afc43=_0x4db523[_0x593e17(0x139)][_0x593e17(0x136)],_0x5df37d=_0x4db523[_0x593e17(0x17f)][_0x593e17(0x136)];this[_0x593e17(0x111)][_0x593e17(0x192)]=_0x2d0a8c||_0x4afc43||_0x5df37d;}[_0x34ad26(0x16f)](){const _0x2251bd=_0x34ad26;this[_0x2251bd(0x193)]({'tag':_0x2251bd(0x128),'attributes':{'class':[Bo,_0x2251bd(0x16a)]},'children':[{'tag':_0x2251bd(0x128),'attributes':{'class':bo},'children':this[_0x2251bd(0x12c)]}]});}[_0x34ad26(0x11d)](){const _0x1fa818=_0x34ad26;this[_0x1fa818(0x111)]['on'](_0x1fa818(0x14c),()=>{const _0x22f088=_0x1fa818;this[_0x22f088(0x18d)]();});}[_0x34ad26(0x17a)](_0x2e922e){const _0x1f34fd=_0x34ad26,_0x41316a=new _0x2d6ee4(_0x2e922e);return _0x41316a[_0x1f34fd(0x135)]({'label':_0x18a4a4(_0x2e922e,_0x1f34fd(0x157)),'class':go+'\x20'+Ao,'icon':_0x299bd1,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x41316a;}[_0x34ad26(0x150)](_0x4c3e74){const _0x2b2810=_0x34ad26;return this[_0x2b2810(0x18b)](_0x4c3e74,To);}[_0x34ad26(0x14d)](_0x2c0dfd){const _0xd80810=_0x34ad26,_0x42f09b=this[_0xd80810(0x18b)](_0x2c0dfd,ko);return this[_0xd80810(0x18f)](_0x42f09b,_0x2c0dfd),_0x42f09b;}[_0x34ad26(0x164)](_0x4708a2,_0x474f2e){const _0xb9bbb8=_0x34ad26;return new _0x3a35f9(_0x4708a2,_0x474f2e,{'onBackToContext':()=>{const _0x5ca9d1=_0x598d;this[_0x5ca9d1(0x132)](),this[_0x5ca9d1(0x162)][_0x5ca9d1(0x149)]({'target':this[_0x5ca9d1(0x111)][_0x5ca9d1(0x138)],'limiter':this[_0x5ca9d1(0x155)](),'positions':Ro});},'onResourceSelected':(_0x33c4a5,_0x963d89)=>{const _0x23b5d0=_0x598d;this[_0x23b5d0(0x172)](_0x23b5d0(0x158),{'source':_0x33c4a5,'resource':_0x963d89});},'onLoadSourceResources':_0x182fb0=>{const _0x55e76f=_0x598d;this[_0x55e76f(0x172)](_0x55e76f(0x129),_0x182fb0);},'onBalloonClosed':()=>{const _0x115592=_0x598d;this[_0x115592(0x111)][_0x115592(0x115)]=!0x1;},'getLimiterElement':()=>this[_0xb9bbb8(0x155)](),'getTargetElement':()=>this[_0xb9bbb8(0x111)][_0xb9bbb8(0x138)]});}[_0x34ad26(0x155)](){const _0x3d9d98=_0x34ad26;return this[_0x3d9d98(0x138)]?.[_0x3d9d98(0x18a)]('.'+Po)||document[_0x3d9d98(0x187)];}[_0x34ad26(0x18b)](_0x3afb1a,_0x3faecc){const _0x476411=_0x34ad26,_0x2fc4d1=new _0xad9472(_0x3afb1a);return _0x2fc4d1[_0x476411(0x198)]({'attributes':{'class':_0x3faecc}}),this[_0x476411(0x195)][_0x476411(0x123)](_0x2fc4d1),_0x2fc4d1;}[_0x34ad26(0x113)](_0xe51541,_0x2a1ba2,_0x4aa1f2){const _0x398d4e=_0x34ad26;if(_0xe51541[_0x398d4e(0x16e)][_0x398d4e(0x14e)](),!_0x4aa1f2[_0x398d4e(0x18e)][_0x398d4e(0x131)]&&_0x4aa1f2[_0x398d4e(0x18e)][_0x398d4e(0x136)]){const _0x19fddf=this[_0x398d4e(0x12e)](_0x2a1ba2,{'label':_0x18a4a4(_0x2a1ba2,_0x398d4e(0x134)),'icon':_0x52e710});_0x19fddf['on'](_0x398d4e(0x14c),()=>{const _0x53d3f7=_0x398d4e;this[_0x53d3f7(0x172)](_0x53d3f7(0x120)),this[_0x53d3f7(0x15c)]();}),_0xe51541[_0x398d4e(0x16e)][_0x398d4e(0x123)](_0x19fddf);}if(_0x4aa1f2[_0x398d4e(0x139)][_0x398d4e(0x136)]){const _0x4b7c86=this[_0x398d4e(0x12e)](_0x2a1ba2,{'label':_0x18a4a4(_0x2a1ba2,_0x398d4e(0x14a)),'icon':_0x1b6b04});_0x4b7c86['on'](_0x398d4e(0x14c),()=>{const _0x5a7186=_0x398d4e;this[_0x5a7186(0x15c)](),this[_0x5a7186(0x11c)](),this[_0x5a7186(0x152)][_0x5a7186(0x149)]({'target':this[_0x5a7186(0x111)][_0x5a7186(0x138)],'limiter':this[_0x5a7186(0x155)](),'positions':Ro}),this[_0x5a7186(0x16d)][_0x5a7186(0x191)]();}),_0xe51541[_0x398d4e(0x16e)][_0x398d4e(0x123)](_0x4b7c86);}if(_0x4aa1f2[_0x398d4e(0x17f)][_0x398d4e(0x136)]){const _0x3adddb=new _0x2c46b5(_0x2a1ba2);_0x3adddb[_0x398d4e(0x135)]({'label':_0x18a4a4(_0x2a1ba2,_0x398d4e(0x10f)),'icon':_0x5dafdd,'withText':!0x0,'tooltip':!0x0,'class':Eo,'allowMultipleFiles':!0x0}),_0x3adddb['on'](_0x398d4e(0x154),(_0x2cf14c,_0x23b91b)=>{const _0x3706ae=_0x398d4e;this[_0x3706ae(0x172)](_0x3706ae(0x153),_0x23b91b),this[_0x3706ae(0x15c)]();}),_0x3adddb[_0x398d4e(0x15d)]=!0x0,_0xe51541[_0x398d4e(0x16e)][_0x398d4e(0x123)](_0x3adddb);}for(const _0x2d38af of _0x4aa1f2[_0x398d4e(0x177)]){const _0x28b5fe=this[_0x398d4e(0x12e)](_0x2a1ba2,{'label':_0x2d38af[_0x398d4e(0x13e)],'icon':_0x2d38af[_0x398d4e(0x147)]||_0x2888f0,'type':_0x398d4e(0x10d)});_0xe51541[_0x398d4e(0x16e)][_0x398d4e(0x123)](_0x28b5fe),_0x28b5fe['on'](_0x398d4e(0x14c),()=>{const _0x4276b3=_0x398d4e;this[_0x4276b3(0x15c)](),this[_0x4276b3(0x179)](_0x2d38af);});}}[_0x34ad26(0x18f)](_0x576255,_0x5afb32){const _0x10051e=_0x34ad26;this[_0x10051e(0x16d)]=new _0x498e92(_0x5afb32),this[_0x10051e(0x16d)]['on'](_0x10051e(0x11a),(_0x4ebe5f,_0x938d77)=>{const _0x497852=_0x10051e;this[_0x497852(0x170)](_0x938d77);}),this[_0x10051e(0x16d)]['on'](_0x10051e(0x137),()=>{const _0x3f0f1e=_0x10051e;this[_0x3f0f1e(0x17b)](),this[_0x3f0f1e(0x132)](),this[_0x3f0f1e(0x162)][_0x3f0f1e(0x149)]({'target':this[_0x3f0f1e(0x111)][_0x3f0f1e(0x138)],'limiter':this[_0x3f0f1e(0x155)](),'positions':Ro});}),this[_0x10051e(0x16d)]['on'](_0x10051e(0x184),()=>{const _0xea0b08=_0x10051e;this[_0xea0b08(0x152)][_0xea0b08(0x10c)]&&this[_0xea0b08(0x152)][_0xea0b08(0x149)]({'target':this[_0xea0b08(0x111)][_0xea0b08(0x138)],'limiter':this[_0xea0b08(0x155)](),'positions':Ro});}),_0x576255[_0x10051e(0x16e)][_0x10051e(0x123)](this[_0x10051e(0x16d)]);}[_0x34ad26(0x12e)](_0x17f264,_0x3e04f1){const _0x2e4a13=_0x34ad26,_0x241984=_0x2e4a13(0x10d)===_0x3e04f1[_0x2e4a13(0x118)]?new SourcesBalloonButtonView(_0x17f264):new _0x2d6ee4(_0x17f264);return _0x241984[_0x2e4a13(0x135)]({'label':_0x3e04f1[_0x2e4a13(0x13e)],'icon':_0x3e04f1[_0x2e4a13(0x147)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Eo}),_0x241984;}[_0x34ad26(0x122)](){const _0x31d6b5=_0x34ad26;this[_0x31d6b5(0x141)](),this[_0x31d6b5(0x167)]();}[_0x34ad26(0x167)](){const _0x1fd9af=_0x34ad26;_0x47d22e({'emitter':this[_0x1fd9af(0x152)],'contextElements':[this[_0x1fd9af(0x152)][_0x1fd9af(0x138)]],'callback':()=>{const _0x18b83c=_0x1fd9af;this[_0x18b83c(0x17b)]();},'activator':()=>this[_0x1fd9af(0x152)][_0x1fd9af(0x10c)]});}[_0x34ad26(0x156)](_0x267bee){const _0x21dfe2=_0x34ad26,_0xcc662b=this[_0x21dfe2(0x112)];_0xcc662b[_0x21dfe2(0x143)][_0x21dfe2(0x115)]=_0x267bee,_0x267bee?_0xcc662b[_0x21dfe2(0x14b)][_0x21dfe2(0x130)]():_0xcc662b[_0x21dfe2(0x14b)][_0x21dfe2(0x166)]();}[_0x34ad26(0x141)](){const _0x2a2047=_0x34ad26,{balloonView:_0xe475a2,buttonView:_0x273ccc,hideMethod:_0x257904}=this[_0x2a2047(0x112)];_0x47d22e({'emitter':_0xe475a2,'contextElements':[_0xe475a2[_0x2a2047(0x138)],_0x273ccc[_0x2a2047(0x138)]],'callback':()=>{_0x257904();},'activator':()=>_0x273ccc[_0x2a2047(0x115)]&&!this[_0x2a2047(0x152)][_0x2a2047(0x10c)]&&!this[_0x2a2047(0x168)][_0x2a2047(0x17c)]()});}[_0x34ad26(0x13d)](_0x3a128a,_0x1d8ecd,_0x515460=!0x1,_0x442df7=!0x1){const _0x14e8f1=_0x34ad26,_0x33468c=_0x14e8f1(0x125)===_0x1d8ecd||!0x0===_0x3a128a[_0x14e8f1(0x169)],_0x2fd17d=new _0x3c1726(this[_0x14e8f1(0x14f)],_0x3a128a,_0x33468c,_0x515460,_0x442df7);return _0x33468c||_0x2fd17d['on'](_0x14e8f1(0x161),()=>{const _0x46e0f1=_0x14e8f1;this[_0x46e0f1(0x172)](_0x46e0f1(0x126),_0x2fd17d['id']);}),_0x2fd17d;}[_0x34ad26(0x180)](_0x113f2b,_0x286c97){const _0x50252b=_0x34ad26;_0x286c97[_0x50252b(0x123)](_0x113f2b,0x0);}[_0x34ad26(0x186)](_0x1e2389,_0x3b500e){const _0x5c14ae=_0x34ad26,_0x4a7656=_0x3b500e[_0x5c14ae(0x190)](_0x5be55a=>_0x5be55a['id']===_0x1e2389);_0x4a7656&&_0x3b500e[_0x5c14ae(0x140)](_0x4a7656);}[_0x34ad26(0x18d)](){const _0x30200f=_0x34ad26;this[_0x30200f(0x111)][_0x30200f(0x115)]?this[_0x30200f(0x15c)]():(this[_0x30200f(0x132)](),this[_0x30200f(0x162)][_0x30200f(0x149)]({'target':this[_0x30200f(0x111)][_0x30200f(0x138)],'limiter':this[_0x30200f(0x155)](),'positions':Ro}));}[_0x34ad26(0x170)](_0xc05de){const _0x15122b=_0x34ad26;this[_0x15122b(0x16d)][_0x15122b(0x14e)](),this[_0x15122b(0x17b)](),this[_0x15122b(0x172)](_0x15122b(0x189),_0xc05de);}}export class SourcesBalloonButtonView extends _0x2d6ee4{[_0x34ad26(0x11e)];constructor(_0x1558be){const _0xad462a=_0x34ad26;super(_0x1558be),this[_0xad462a(0x135)]({'withText':!0x0,'role':_0xad462a(0x151)}),this[_0xad462a(0x11e)]=this[_0xad462a(0x160)](),this[_0xad462a(0x198)]({'attributes':{'class':[vo]}});}[_0x34ad26(0x13f)](){const _0xddbcb3=_0x34ad26;super[_0xddbcb3(0x13f)](),this[_0xddbcb3(0x15b)][_0xddbcb3(0x123)](this[_0xddbcb3(0x11e)]);}[_0x34ad26(0x160)](){const _0x444b3c=_0x34ad26,_0x485e78=new _0x4d2f81();return _0x485e78[_0x444b3c(0x16e)]=_0x2fc3cb,_0x485e78[_0x444b3c(0x198)]({'attributes':{'class':vo+_0x444b3c(0x11f)}}),_0x485e78;}}
|
|
23
|
+
const _0x19d5cf=_0x19d7;(function(_0x481392,_0x176901){const _0x306e50=_0x19d7,_0x59cf60=_0x481392();while(!![]){try{const _0x1c15eb=-parseInt(_0x306e50(0x197))/0x1+-parseInt(_0x306e50(0x1e3))/0x2+parseInt(_0x306e50(0x1bc))/0x3+-parseInt(_0x306e50(0x194))/0x4+-parseInt(_0x306e50(0x195))/0x5*(parseInt(_0x306e50(0x1df))/0x6)+-parseInt(_0x306e50(0x1c9))/0x7*(-parseInt(_0x306e50(0x20b))/0x8)+-parseInt(_0x306e50(0x1bd))/0x9*(-parseInt(_0x306e50(0x1f3))/0xa);if(_0x1c15eb===_0x176901)break;else _0x59cf60['push'](_0x59cf60['shift']());}catch(_0x2504b8){_0x59cf60['push'](_0x59cf60['shift']());}}}(_0x5cad,0x38b96));import{BalloonPanelView as _0x5ba009,ButtonView as _0x1a69a5,clickOutsideHandler as _0x4e344e,FileDialogButtonView as _0x1aa42d,IconView as _0x1e9b06,View as _0x37febe}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1e54e6,IconDocument as _0x50884a,IconDocumentOutline as _0x82fc53,IconDropdownArrow as _0x52fdbc,IconLink as _0x4a9546,IconPaperClip as _0x5bd2ef}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x2fdbd2}from'./aichatcontextitembuttonview.js';function _0x19d7(_0x545330,_0x388296){const _0x5cad40=_0x5cad();return _0x19d7=function(_0x19d7ab,_0x19570b){_0x19d7ab=_0x19d7ab-0x182;let _0x2bab91=_0x5cad40[_0x19d7ab];return _0x2bab91;},_0x19d7(_0x545330,_0x388296);}import{AIChatContextPanelUrlInputView as _0x13a8f3}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xf11c38}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x513eb1}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x446091}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x19d5cf(0x1ca),_0x19d5cf(0x18f),_0x19d5cf(0x1e2),_0x19d5cf(0x190),_0x19d5cf(0x1af),_0x19d5cf(0x1f1)];const Po=_0x19d5cf(0x192),Ro=_0x19d5cf(0x1d2),Uo=_0x19d5cf(0x1bb),Lo=_0x19d5cf(0x1ce),No=_0x19d5cf(0x1f9),Mo=_0x19d5cf(0x1d0),Ho=_0x19d5cf(0x1d5),uo=_0x19d5cf(0x209),jo=_0x19d5cf(0x1c7),xo=_0x19d5cf(0x1d7),mo=_0x19d5cf(0x1b1),Xo=_0x19d5cf(0x1c8),Do=[_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x210)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x1c1)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x201)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x1b3)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x19a)],_0x5ba009[_0x19d5cf(0x18d)][_0x19d5cf(0x1fe)]];export class AIChatContextPanelView extends _0x37febe{[_0x19d5cf(0x1a8)];[_0x19d5cf(0x1f4)]=this[_0x19d5cf(0x20e)]();[_0x19d5cf(0x200)]=this[_0x19d5cf(0x20e)]();[_0x19d5cf(0x1c5)];[_0x19d5cf(0x1e8)];[_0x19d5cf(0x1dd)];[_0x19d5cf(0x1a5)];[_0x19d5cf(0x1d4)];[_0x19d5cf(0x1da)];[_0x19d5cf(0x1d6)];constructor(_0x3330d8,_0x3de151){const _0x311369=_0x19d5cf;super(_0x3330d8),this[_0x311369(0x1d6)]=_0x3de151,this[_0x311369(0x1f4)]=this[_0x311369(0x20e)](),this[_0x311369(0x200)]=this[_0x311369(0x20e)](),this[_0x311369(0x1a8)]=this[_0x311369(0x1d3)](_0x3330d8),this[_0x311369(0x1e8)]=this[_0x311369(0x187)](_0x3330d8),this[_0x311369(0x1dd)]=this[_0x311369(0x1c4)](_0x3330d8),this[_0x311369(0x1d4)]=this[_0x311369(0x1bf)](_0x3330d8,_0x3de151);const _0x18f2bb={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':mo,'overflowContainer':jo,'controlsButton':uo}};this[_0x311369(0x1c5)]=new _0xf11c38(_0x3330d8,this[_0x311369(0x1f4)],_0x18f2bb,this[_0x311369(0x1d6)],this),this[_0x311369(0x1da)]={'buttonView':this[_0x311369(0x1a8)],'balloonView':this[_0x311369(0x1e8)],'hideMethod':this[_0x311369(0x1e5)][_0x311369(0x1fa)](this),'showMethod':this[_0x311369(0x20f)][_0x311369(0x1fa)](this)},this[_0x311369(0x202)](),this[_0x311369(0x1c6)]();}[_0x19d5cf(0x1e4)](){const _0x16ebf6=_0x19d5cf;super[_0x16ebf6(0x1e4)](),this[_0x16ebf6(0x193)](),this[_0x16ebf6(0x1c5)][_0x16ebf6(0x196)](this[_0x16ebf6(0x1dc)]),this[_0x16ebf6(0x1c5)][_0x16ebf6(0x1c3)]();}[_0x19d5cf(0x1a1)](){const _0x2c0270=_0x19d5cf;super[_0x2c0270(0x1a1)](),this[_0x2c0270(0x1c5)][_0x2c0270(0x1a1)](),this[_0x2c0270(0x1d4)][_0x2c0270(0x1a1)]();}[_0x19d5cf(0x191)](_0x25a0b7,_0x3cd42d){const _0x3879bd=_0x19d5cf,_0x443c2c=this[_0x3879bd(0x1e6)](_0x25a0b7,_0x3879bd(0x1fc),!0x0,_0x3cd42d);this[_0x3879bd(0x185)](_0x443c2c,this[_0x3879bd(0x1f4)]),this[_0x3879bd(0x1c5)][_0x3879bd(0x1c3)]();}[_0x19d5cf(0x1af)](_0x3ca5b2){const _0x37f186=_0x19d5cf;this[_0x37f186(0x19e)](_0x3ca5b2,this[_0x37f186(0x1f4)]),this[_0x37f186(0x19e)](_0x3ca5b2,this[_0x37f186(0x1c5)][_0x37f186(0x1a9)]),this[_0x37f186(0x1c5)][_0x37f186(0x1c3)]();}[_0x19d5cf(0x20c)](_0x48c473,_0x3fcae){const _0x5145f9=_0x19d5cf;let _0x50376f=this[_0x5145f9(0x1f4)][_0x5145f9(0x208)](_0xac9186=>_0xac9186['id']===_0x48c473);_0x50376f||(_0x50376f=this[_0x5145f9(0x1c5)][_0x5145f9(0x1a9)][_0x5145f9(0x208)](_0xeac4e=>_0xeac4e['id']===_0x48c473)),_0x50376f&&(_0x50376f[_0x5145f9(0x18a)]=_0x3fcae);}[_0x19d5cf(0x1b6)](_0x119e0b){const _0x437873=_0x19d5cf;this[_0x437873(0x200)][_0x437873(0x1f6)]();for(const _0xddc00d of _0x119e0b){const _0x4c6d4d=this[_0x437873(0x1e6)](_0xddc00d,_0x437873(0x1ff),!0x1,!0x1);this[_0x437873(0x185)](_0x4c6d4d,this[_0x437873(0x200)]);}}[_0x19d5cf(0x1db)](){const _0xea61ee=_0x19d5cf;this[_0xea61ee(0x1f4)][_0xea61ee(0x1f6)](),this[_0xea61ee(0x1c5)][_0xea61ee(0x1f6)]();}[_0x19d5cf(0x1ed)](){const _0x80966f=_0x19d5cf;this[_0x80966f(0x200)][_0x80966f(0x1f6)]();}[_0x19d5cf(0x1ec)](_0x35f55f,_0x341462,_0x5011e9){const _0x40811e=_0x19d5cf;this[_0x40811e(0x1d4)][_0x40811e(0x1ec)](_0x35f55f,_0x341462,_0x5011e9);}[_0x19d5cf(0x1e5)](){const _0x2ec9c4=_0x19d5cf;this[_0x2ec9c4(0x184)](!0x1);}[_0x19d5cf(0x20f)](){const _0x56f647=_0x19d5cf;this[_0x56f647(0x184)](!0x0);}[_0x19d5cf(0x1be)](){const _0x294b6d=_0x19d5cf;this[_0x294b6d(0x1dd)][_0x294b6d(0x1b4)](),this[_0x294b6d(0x1a8)][_0x294b6d(0x1a2)]=!0x1,this[_0x294b6d(0x1a5)]&&this[_0x294b6d(0x1a5)][_0x294b6d(0x1f6)]();}[_0x19d5cf(0x1d8)](){const _0x49a7d4=_0x19d5cf;this[_0x49a7d4(0x1dd)][_0x49a7d4(0x1a3)](),this[_0x49a7d4(0x1a8)][_0x49a7d4(0x1a2)]=!0x0;}[_0x19d5cf(0x1a7)](_0x3e5fe9){const _0x1888c7=_0x19d5cf;this[_0x1888c7(0x1d4)][_0x1888c7(0x19f)](_0x3e5fe9),this[_0x1888c7(0x1a8)][_0x1888c7(0x1a2)]=!0x0;}[_0x19d5cf(0x1cd)](_0x358b12,_0xd3544d,_0x589102,_0x182c92){const _0x530632=_0x19d5cf;this[_0x530632(0x1d4)][_0x530632(0x1cd)](_0x358b12,_0x589102,_0x182c92);}[_0x19d5cf(0x203)](_0x289027){const _0x34d3c9=_0x19d5cf;this[_0x34d3c9(0x1d4)][_0x34d3c9(0x203)](_0x289027),this[_0x34d3c9(0x1a8)][_0x34d3c9(0x1a2)]=!0x1;}[_0x19d5cf(0x188)](_0x4d7930){const _0x1e76b2=_0x19d5cf;this[_0x1e76b2(0x1ea)](this[_0x1e76b2(0x1e8)],this[_0x1e76b2(0x1ba)],_0x4d7930),this[_0x1e76b2(0x186)](_0x4d7930);}[_0x19d5cf(0x186)](_0x27819d){const _0x2d45af=_0x19d5cf,_0x4c774e=!_0x27819d[_0x2d45af(0x198)][_0x2d45af(0x1f8)]&&_0x27819d[_0x2d45af(0x198)][_0x2d45af(0x206)],_0x5a5c77=_0x27819d[_0x2d45af(0x1b8)][_0x2d45af(0x206)],_0x2fa2d6=_0x27819d[_0x2d45af(0x183)][_0x2d45af(0x206)];this[_0x2d45af(0x1a8)][_0x2d45af(0x1e9)]=_0x4c774e||_0x5a5c77||_0x2fa2d6;}[_0x19d5cf(0x202)](){const _0x255534=_0x19d5cf;this[_0x255534(0x1b0)]({'tag':_0x255534(0x1a4),'attributes':{'class':[Po,_0x255534(0x1f7)]},'children':[{'tag':_0x255534(0x1a4),'attributes':{'class':Ro},'children':this[_0x255534(0x1f4)]}]});}[_0x19d5cf(0x1c6)](){const _0x5f161c=_0x19d5cf;this[_0x5f161c(0x1a8)]['on'](_0x5f161c(0x1b7),()=>{const _0x44c1b9=_0x5f161c;this[_0x44c1b9(0x1c0)]();});}[_0x19d5cf(0x1d3)](_0x3acf99){const _0x3d5b08=_0x19d5cf,_0x1dba6f=new _0x1a69a5(_0x3acf99);return _0x1dba6f[_0x3d5b08(0x1b2)]({'label':_0x513eb1(_0x3acf99,_0x3d5b08(0x19d)),'class':uo+'\x20'+Lo,'icon':_0x5bd2ef,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x1dba6f;}[_0x19d5cf(0x187)](_0x200a17){const _0x47a211=_0x19d5cf;return this[_0x47a211(0x1c2)](_0x200a17,Uo);}[_0x19d5cf(0x1c4)](_0x5c8689){const _0x5d09f6=_0x19d5cf,_0x3af17e=this[_0x5d09f6(0x1c2)](_0x5c8689,No);return this[_0x5d09f6(0x1cc)](_0x3af17e,_0x5c8689),_0x3af17e;}[_0x19d5cf(0x1bf)](_0x160cbb,_0x243280){const _0x172359=_0x19d5cf;return new _0x446091(_0x160cbb,_0x243280,{'onBackToContext':()=>{const _0x30d5ad=_0x19d7;this[_0x30d5ad(0x20f)](),this[_0x30d5ad(0x1e8)][_0x30d5ad(0x1e1)]({'target':this[_0x30d5ad(0x1a8)][_0x30d5ad(0x1dc)],'limiter':this[_0x30d5ad(0x1eb)](),'positions':Do});},'onResourceSelected':(_0x3dba9e,_0xee21ad)=>{const _0x20b160=_0x19d7;this[_0x20b160(0x1ab)](_0x20b160(0x190),{'source':_0x3dba9e,'resource':_0xee21ad});},'onLoadSourceResources':_0x2eb2f1=>{const _0x13e0c9=_0x19d7;this[_0x13e0c9(0x1ab)](_0x13e0c9(0x1f1),_0x2eb2f1);},'onBalloonClosed':()=>{const _0x4396b4=_0x19d7;this[_0x4396b4(0x1a8)][_0x4396b4(0x1a2)]=!0x1;},'getLimiterElement':()=>this[_0x172359(0x1eb)](),'getTargetElement':()=>this[_0x172359(0x1a8)][_0x172359(0x1dc)]});}[_0x19d5cf(0x1eb)](){const _0x480bdc=_0x19d5cf;return this[_0x480bdc(0x1dc)]?.[_0x480bdc(0x205)]('.'+Xo)||document[_0x480bdc(0x189)];}[_0x19d5cf(0x1c2)](_0x15486c,_0x4e42){const _0x12b578=_0x19d5cf,_0x27cf65=new _0x5ba009(_0x15486c);return _0x27cf65[_0x12b578(0x1f0)]({'attributes':{'class':_0x4e42}}),this[_0x12b578(0x1d6)][_0x12b578(0x19c)](_0x27cf65),_0x27cf65;}[_0x19d5cf(0x1ea)](_0x96e411,_0x548689,_0x412021){const _0x4048d7=_0x19d5cf;if(_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x1f6)](),!_0x412021[_0x4048d7(0x198)][_0x4048d7(0x1f8)]&&_0x412021[_0x4048d7(0x198)][_0x4048d7(0x206)]){const _0x5a9beb=this[_0x4048d7(0x1ac)](_0x548689,{'label':_0x513eb1(_0x548689,_0x4048d7(0x18e)),'icon':_0x50884a});_0x5a9beb['on'](_0x4048d7(0x1b7),()=>{const _0x374929=_0x4048d7;this[_0x374929(0x1ab)](_0x374929(0x1ca)),this[_0x374929(0x1e5)]();}),_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0x5a9beb);}if(_0x412021[_0x4048d7(0x1b8)][_0x4048d7(0x206)]){const _0xd21924=this[_0x4048d7(0x1ac)](_0x548689,{'label':_0x513eb1(_0x548689,_0x4048d7(0x207)),'icon':_0x4a9546});_0xd21924['on'](_0x4048d7(0x1b7),()=>{const _0xb5316=_0x4048d7;this[_0xb5316(0x1e5)](),this[_0xb5316(0x1d8)](),this[_0xb5316(0x1dd)][_0xb5316(0x1e1)]({'target':this[_0xb5316(0x1a8)][_0xb5316(0x1dc)],'limiter':this[_0xb5316(0x1eb)](),'positions':Do}),this[_0xb5316(0x1a5)][_0xb5316(0x1e7)]();}),_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0xd21924);}if(_0x412021[_0x4048d7(0x183)][_0x4048d7(0x206)]){const _0x16575d=new _0x1aa42d(_0x548689);_0x16575d[_0x4048d7(0x1b2)]({'label':_0x513eb1(_0x548689,_0x4048d7(0x1cb)),'icon':_0x1e54e6,'withText':!0x0,'tooltip':!0x0,'class':Mo,'allowMultipleFiles':!0x0}),_0x16575d['on'](_0x4048d7(0x1b9),(_0x199d60,_0x240d94)=>{const _0x1ff8e5=_0x4048d7;this[_0x1ff8e5(0x1ab)](_0x1ff8e5(0x18f),_0x240d94),this[_0x1ff8e5(0x1e5)]();}),_0x16575d[_0x4048d7(0x1fd)]=!0x0,_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0x16575d);}for(const _0x141822 of _0x412021[_0x4048d7(0x19b)]){const _0x449a76=this[_0x4048d7(0x1ac)](_0x548689,{'label':_0x141822[_0x4048d7(0x199)],'icon':_0x141822[_0x4048d7(0x1ae)]||_0x82fc53,'type':_0x4048d7(0x1f5)});_0x96e411[_0x4048d7(0x1b5)][_0x4048d7(0x19c)](_0x449a76),_0x449a76['on'](_0x4048d7(0x1b7),()=>{const _0x19b15d=_0x4048d7;this[_0x19b15d(0x1e5)](),this[_0x19b15d(0x1a7)](_0x141822);});}}[_0x19d5cf(0x1cc)](_0x4d6e3a,_0x29946){const _0x3ce44e=_0x19d5cf;this[_0x3ce44e(0x1a5)]=new _0x13a8f3(_0x29946),this[_0x3ce44e(0x1a5)]['on'](_0x3ce44e(0x18b),(_0xa2c2cd,_0x111398)=>{const _0x154a06=_0x3ce44e;this[_0x154a06(0x1aa)](_0x111398);}),this[_0x3ce44e(0x1a5)]['on'](_0x3ce44e(0x1de),()=>{const _0x5bc2f2=_0x3ce44e;this[_0x5bc2f2(0x1be)](),this[_0x5bc2f2(0x20f)](),this[_0x5bc2f2(0x1e8)][_0x5bc2f2(0x1e1)]({'target':this[_0x5bc2f2(0x1a8)][_0x5bc2f2(0x1dc)],'limiter':this[_0x5bc2f2(0x1eb)](),'positions':Do});}),this[_0x3ce44e(0x1a5)]['on'](_0x3ce44e(0x1ee),()=>{const _0x1e836b=_0x3ce44e;this[_0x1e836b(0x1dd)][_0x1e836b(0x1d9)]&&this[_0x1e836b(0x1dd)][_0x1e836b(0x1e1)]({'target':this[_0x1e836b(0x1a8)][_0x1e836b(0x1dc)],'limiter':this[_0x1e836b(0x1eb)](),'positions':Do});}),_0x4d6e3a[_0x3ce44e(0x1b5)][_0x3ce44e(0x19c)](this[_0x3ce44e(0x1a5)]);}[_0x19d5cf(0x1ac)](_0x3cf052,_0x488391){const _0x5c7311=_0x19d5cf,_0x28945d=_0x5c7311(0x1f5)===_0x488391[_0x5c7311(0x1fb)]?new SourcesBalloonButtonView(_0x3cf052):new _0x1a69a5(_0x3cf052);return _0x28945d[_0x5c7311(0x1b2)]({'label':_0x488391[_0x5c7311(0x199)],'icon':_0x488391[_0x5c7311(0x1ae)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Mo}),_0x28945d;}[_0x19d5cf(0x193)](){const _0x164c61=_0x19d5cf;this[_0x164c61(0x20d)](),this[_0x164c61(0x1e0)]();}[_0x19d5cf(0x1e0)](){const _0x52c465=_0x19d5cf;_0x4e344e({'emitter':this[_0x52c465(0x1dd)],'contextElements':[this[_0x52c465(0x1dd)][_0x52c465(0x1dc)]],'callback':()=>{const _0x161619=_0x52c465;this[_0x161619(0x1be)]();},'activator':()=>this[_0x52c465(0x1dd)][_0x52c465(0x1d9)]});}[_0x19d5cf(0x184)](_0x1a1ecd){const _0x32d0df=_0x19d5cf,_0x4c52be=this[_0x32d0df(0x1da)];_0x4c52be[_0x32d0df(0x18c)][_0x32d0df(0x1a2)]=_0x1a1ecd,_0x1a1ecd?_0x4c52be[_0x32d0df(0x204)][_0x32d0df(0x1a3)]():_0x4c52be[_0x32d0df(0x204)][_0x32d0df(0x1b4)]();}[_0x19d5cf(0x20d)](){const _0x51ab3a=_0x19d5cf,{balloonView:_0x4c8474,buttonView:_0x14da55,hideMethod:_0x530054}=this[_0x51ab3a(0x1da)];_0x4e344e({'emitter':_0x4c8474,'contextElements':[_0x4c8474[_0x51ab3a(0x1dc)],_0x14da55[_0x51ab3a(0x1dc)]],'callback':()=>{_0x530054();},'activator':()=>_0x14da55[_0x51ab3a(0x1a2)]&&!this[_0x51ab3a(0x1dd)][_0x51ab3a(0x1d9)]&&!this[_0x51ab3a(0x1d4)][_0x51ab3a(0x1d1)]()});}[_0x19d5cf(0x1e6)](_0x4cd569,_0xb2cfe6,_0x885c76=!0x1,_0x592cb2=!0x1){const _0x44d1f0=_0x19d5cf,_0x2e5b37=_0x44d1f0(0x1ff)===_0xb2cfe6||!0x0===_0x4cd569[_0x44d1f0(0x1ad)],_0x51f926=new _0x2fdbd2(this[_0x44d1f0(0x1ba)],_0x4cd569,_0x2e5b37,_0x885c76,_0x592cb2);return _0x2e5b37||_0x51f926['on'](_0x44d1f0(0x1ef),()=>{const _0x16f6e8=_0x44d1f0;this[_0x16f6e8(0x1ab)](_0x16f6e8(0x1af),_0x51f926['id']);}),_0x51f926;}[_0x19d5cf(0x185)](_0x47caf7,_0xcc820c){const _0x2d97de=_0x19d5cf;_0xcc820c[_0x2d97de(0x19c)](_0x47caf7,0x0);}[_0x19d5cf(0x19e)](_0x346e27,_0x5a8ac6){const _0x31cd09=_0x19d5cf,_0x106965=_0x5a8ac6[_0x31cd09(0x208)](_0x5de15a=>_0x5de15a['id']===_0x346e27);_0x106965&&_0x5a8ac6[_0x31cd09(0x20a)](_0x106965);}[_0x19d5cf(0x1c0)](){const _0x373856=_0x19d5cf;this[_0x373856(0x1a8)][_0x373856(0x1a2)]?this[_0x373856(0x1e5)]():(this[_0x373856(0x20f)](),this[_0x373856(0x1e8)][_0x373856(0x1e1)]({'target':this[_0x373856(0x1a8)][_0x373856(0x1dc)],'limiter':this[_0x373856(0x1eb)](),'positions':Do}));}[_0x19d5cf(0x1aa)](_0x69d33){const _0x20847c=_0x19d5cf;this[_0x20847c(0x1a5)][_0x20847c(0x1f6)](),this[_0x20847c(0x1be)](),this[_0x20847c(0x1ab)](_0x20847c(0x1e2),_0x69d33);}}function _0x5cad(){const _0x50b887=['5jVLvkR','setContainerElement','184813NNuygQ','document','label','southArrowNorth','sources','add','AI_CHAT_CONTEXT_ADD_CONTEXT','_removeContextFromCollection','showSourceResourcesBalloon','menuitem','destroy','isOn','show','div','_urlInputView','__arrow','_showSourceResourcesBalloon','addContextButtonView','overflowChips','_handleUrlSubmit','fire','_createBalloonButton','isReadOnly','icon','removeContextItem','setTemplate','ck-ai-chat-context-controls__show-more-balloon-panel','set','southArrowNorthWest','hide','content','setConversationContext','execute','urls','done','locale','ck-ai-chat-context-controls__add-context-balloon-panel','1033371ldRIOi','712737PdsUaH','hideUrlBalloonPanel','_createResourcesBalloonView','_handleAddContextButtonClick','northArrowSouth','_createBaseBalloonPanel','reorganizeChips','_createUrlBalloonPanelView','_overflowManager','_bindEventHandlers','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat','7XeXFKz','addDocumentToContext','AI_CHAT_CONTEXT_FILE_LABEL','_addUrlContent','populateSourceResourceBalloon','ck-ai-chat-context-controls__add-context-button','_createArrowView','ck-ai-chat-context-controls__balloon-button','isAnyResourceBalloonVisible','ck-ai-chat-context-controls__pending-contexts','_createAddContextButtonView','_resourcesBalloonView','ck-ai-chat-context-controls__balloon-button-source','bodyCollection','ck-ai-chat-controls_context_show-more-button','showUrlBalloonPanel','isVisible','_addContextBalloonConfig','clearCurrentContextItems','element','_urlBalloonPanelView','cancel','700332ISwnno','_setupUrlBalloonClickOutsideHandler','pin','addUrlToContext','837438rLuhOy','render','hideAddContextBalloonPanel','_createContextButton','focus','_addContextBalloonPanelView','isEnabled','_setBalloonPanelContent','_getLimiterElement','updateResourceState','clearConversationContextItems','refreshBalloon','removeContextItemChip','extendTemplate','loadSourceResources','children','130fINiaQ','_currentContextsChips','source','clear','ck-reset_all-excluded','isHidden','ck-ai-chat-context-controls__url-balloon-panel','bind','type','current','tooltip','southArrowNorthEast','conversation','_conversationContextsChips','northArrowSouthEast','_setupTemplate','closeSourceResourceBalloon','balloonView','closest','enabled','AI_CHAT_CONTEXT_URL_LABEL','find','ck-ai-chat-controls-button','remove','153368uBLsVr','setContextItemLoading','_setupAddContextBalloonClickOutsideHandler','createCollection','showAddContextBalloonPanel','northArrowSouthWest','arrowView','files','_toggleAddContextBalloon','_addContextToCollection','_setAddContextButtonEnabled','_createAddContextBalloonPanelView','setAddContextOptions','body','isLoading','submitUrl','buttonView','defaultPositions','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','addFileToContext','addResourceToContext','addContextItem','ck-ai-chat-context-controls','_setupAllBalloonClickOutsideHandlers','1762164WJkaFG'];_0x5cad=function(){return _0x50b887;};return _0x5cad();}export class SourcesBalloonButtonView extends _0x1a69a5{[_0x19d5cf(0x182)];constructor(_0x4fabfa){const _0x185824=_0x19d5cf;super(_0x4fabfa),this[_0x185824(0x1b2)]({'withText':!0x0,'role':_0x185824(0x1a0)}),this[_0x185824(0x182)]=this[_0x185824(0x1cf)](),this[_0x185824(0x1f0)]({'attributes':{'class':[Ho]}});}[_0x19d5cf(0x1e4)](){const _0x1cdc4f=_0x19d5cf;super[_0x1cdc4f(0x1e4)](),this[_0x1cdc4f(0x1f2)][_0x1cdc4f(0x19c)](this[_0x1cdc4f(0x182)]);}[_0x19d5cf(0x1cf)](){const _0x31f1c0=_0x19d5cf,_0x568f8c=new _0x1e9b06();return _0x568f8c[_0x31f1c0(0x1b5)]=_0x52fdbc,_0x568f8c[_0x31f1c0(0x1f0)]({'attributes':{'class':Ho+_0x31f1c0(0x1a6)}}),_0x568f8c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x16b2(){const _0x5b7269=['413724FOfijz','_loaderView','ai-chat-controls-loader__cancel-button','set','locale','ck-reset_all','ck-ai-chat-controls-loader-icon-dot','AI_CHAT_STOP_GENERATING','11349MaFLUv','11230mVhsrQ','ck-ai-chat-controls-loader-wrapper','4433172gEWGda','abortPromptStream','AI_CHAT_IS_WRITING','execute','520998BynXNP','_createLoaderView','_createCancelButtonView','fire','ck-ai-chat-controls-loader','12QWDUqv','63222093NXboNb','1399976lGyNrs','21nQsHwI','ck-ai-chat-controls-loader-icon','_cancelButtonView','5wYXZce','1504765Kiynzr','setTemplate','div'];_0x16b2=function(){return _0x5b7269;};return _0x16b2();}const _0x45b79c=_0x114d;function _0x114d(_0x313d71,_0x3db209){const _0x16b25d=_0x16b2();return _0x114d=function(_0x114de3,_0x1f6f67){_0x114de3=_0x114de3-0x78;let _0x4cd754=_0x16b25d[_0x114de3];return _0x4cd754;},_0x114d(_0x313d71,_0x3db209);}(function(_0x5d181e,_0x272b4a){const _0x4f94ed=_0x114d,_0x316efc=_0x5d181e();while(!![]){try{const _0xc77375=parseInt(_0x4f94ed(0x8d))/0x1*(-parseInt(_0x4f94ed(0x91))/0x2)+-parseInt(_0x4f94ed(0x7e))/0x3+-parseInt(_0x4f94ed(0x87))/0x4*(parseInt(_0x4f94ed(0x8e))/0x5)+parseInt(_0x4f94ed(0x82))/0x6*(-parseInt(_0x4f94ed(0x8a))/0x7)+parseInt(_0x4f94ed(0x89))/0x8+-parseInt(_0x4f94ed(0x7b))/0x9*(parseInt(_0x4f94ed(0x7c))/0xa)+parseInt(_0x4f94ed(0x88))/0xb;if(_0xc77375===_0x272b4a)break;else _0x316efc['push'](_0x316efc['shift']());}catch(_0x392da1){_0x316efc['push'](_0x316efc['shift']());}}}(_0x16b2,0xcadf5));import{ButtonView as _0x3f4b8e,View as _0x214bdf}from'ckeditor5/src/ui.js';import{IconStop as _0x550916}from'ckeditor5/src/icons.js';import{getTranslation as _0x536b82}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x214bdf{[_0x45b79c(0x8c)];[_0x45b79c(0x92)];constructor(_0x529ceb){const _0x497555=_0x45b79c;super(_0x529ceb),this[_0x497555(0x8c)]=this[_0x497555(0x84)](),this[_0x497555(0x92)]=this[_0x497555(0x83)](),this[_0x497555(0x8f)]({'tag':_0x497555(0x90),'attributes':{'class':['ck',_0x497555(0x7d),_0x497555(0x78)]},'children':[this[_0x497555(0x92)],this[_0x497555(0x8c)]]});}[_0x45b79c(0x84)](){const _0xfd4ded=_0x45b79c,_0x13c69e=new _0x3f4b8e(this[_0xfd4ded(0x95)]);return _0x13c69e[_0xfd4ded(0x94)]({'label':_0x536b82(this[_0xfd4ded(0x95)],_0xfd4ded(0x7a)),'withText':!0x0,'class':_0xfd4ded(0x93),'icon':_0x550916}),_0x13c69e['on'](_0xfd4ded(0x81),()=>{const _0x457c2b=_0xfd4ded;this[_0x457c2b(0x85)](_0x457c2b(0x7f));}),_0x13c69e;}[_0x45b79c(0x83)](){const _0x129c67=_0x45b79c,_0x24cfbb=new _0x214bdf(this[_0x129c67(0x95)]);return _0x24cfbb[_0x129c67(0x8f)]({'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x86)]},'children':[{'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x8b)]},'children':[{'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x79)]}},{'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x79)]}},{'tag':_0x129c67(0x90),'attributes':{'class':[_0x129c67(0x79)]}}]},{'text':_0x536b82(this[_0x129c67(0x95)],_0x129c67(0x80))}]}),_0x24cfbb;}}
|