@ckeditor/ckeditor5-ai 47.0.0-alpha.2 → 47.0.0-alpha.4
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 _0x357593=_0xcca7;(function(_0xb4f1dd,_0x1934ec){const _0x31e142=_0xcca7,_0x5435fe=_0xb4f1dd();while(!![]){try{const _0x2ee206=-parseInt(_0x31e142(0x174))/0x1*(-parseInt(_0x31e142(0x153))/0x2)+-parseInt(_0x31e142(0x16e))/0x3+parseInt(_0x31e142(0x171))/0x4+-parseInt(_0x31e142(0x17b))/0x5+parseInt(_0x31e142(0x182))/0x6+-parseInt(_0x31e142(0x151))/0x7+-parseInt(_0x31e142(0x17d))/0x8*(-parseInt(_0x31e142(0x185))/0x9);if(_0x2ee206===_0x1934ec)break;else _0x5435fe['push'](_0x5435fe['shift']());}catch(_0x37e1b8){_0x5435fe['push'](_0x5435fe['shift']());}}}(_0x105b,0xbf1c4));import{clickOutsideHandler as _0x2bd67d,View as _0x21f948}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2f21fd}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x4c77c3}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x2f5630,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x3ca7f0}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x20f35b}from'./controls/aichatcontrolsloaderview.js';function _0xcca7(_0x293b67,_0x32f4bf){const _0x105ba1=_0x105b();return _0xcca7=function(_0xcca79d,_0x2eadcd){_0xcca79d=_0xcca79d-0x150;let _0x149372=_0x105ba1[_0xcca79d];return _0x149372;},_0xcca7(_0x293b67,_0x32f4bf);}function _0x105b(){const _0x32f6a3=['_promptInputView','clearCurrentContextItems','10331391RQlrum','closeSourceResourceBalloon','6EZeGPy','sendUserMessage','disableModelSelector','setModelList','toggleWebSearch','delegate','setConversationContext','setTemplate','bindTemplate','low','_contextPanelView','ck-ai-chat-controls','setPlaceholderText','change:isLoading','ck-hidden','_createContextPanelView','setInputPlaceholder','setContextItemLoading','reset','enableModelSelector','clearConversationContextUI','abortPromptStream','clearConversationContextItems','removeContextItem','focusPromptInput','populateSourceResourceBalloon','_loaderView','1810176aISLMK','_handlePromptInputFocus','setWebSearch','3063248evVeRd','updateResourceState','_createLoaderView','311882WwAdjX','isLoading','_createPromptInputView','addContextButtonView','_shouldRestorePromptInputFocus','addContextItem','selectModel','6324340pGBLJM','clearPendingContextUI','274384oADndx','setAddContextOptions','div','element','setReasoning','765222PJouoL','focus','_promptCapabilitiesView','603xyuWcC','setModel','resetMessageInput','form','_createPromptCapabilitiesView','toggleReasoning','setIsUploadInProgress'];_0x105b=function(){return _0x32f6a3;};return _0x105b();}export class AIChatControlsView extends _0x21f948{[_0x357593(0x15d)];[_0x357593(0x18c)];[_0x357593(0x184)];[_0x357593(0x16d)];[_0x357593(0x178)];constructor(_0x2a97af,_0x281716){const _0x2c1f64=_0x357593;super(_0x2a97af),this[_0x2c1f64(0x15d)]=this[_0x2c1f64(0x162)](_0x2a97af,_0x281716),this[_0x2c1f64(0x18c)]=this[_0x2c1f64(0x176)](_0x2a97af),this[_0x2c1f64(0x184)]=this[_0x2c1f64(0x189)](_0x2a97af),this[_0x2c1f64(0x16d)]=this[_0x2c1f64(0x173)](_0x2a97af),this[_0x2c1f64(0x178)]=!0x1,this[_0x2c1f64(0x18c)][_0x2c1f64(0x158)](_0x2c1f64(0x154))['to'](this),this[_0x2c1f64(0x16d)][_0x2c1f64(0x158)](_0x2c1f64(0x168))['to'](this),this[_0x2c1f64(0x184)][_0x2c1f64(0x158)](_0x2c1f64(0x157))['to'](this),this[_0x2c1f64(0x184)][_0x2c1f64(0x158)](_0x2c1f64(0x18a))['to'](this),this[_0x2c1f64(0x184)][_0x2c1f64(0x158)](_0x2c1f64(0x17a))['to'](this),this[_0x2c1f64(0x15d)][_0x2c1f64(0x158)](..._0x3ca7f0)['to'](this);const _0xf8562c=this[_0x2c1f64(0x15b)];this[_0x2c1f64(0x15a)]({'tag':_0x2c1f64(0x188),'attributes':{'class':['ck',_0x2c1f64(0x15e)]},'children':[{'tag':_0x2c1f64(0x17f),'attributes':{'class':[_0xf8562c['if'](_0x2c1f64(0x175),_0x2c1f64(0x161))]},'children':[this[_0x2c1f64(0x15d)],this[_0x2c1f64(0x18c)],this[_0x2c1f64(0x184)]]},{'tag':_0x2c1f64(0x17f),'attributes':{'class':[_0xf8562c['if'](_0x2c1f64(0x175),_0x2c1f64(0x161),_0xf533b6=>!_0xf533b6)]},'children':[this[_0x2c1f64(0x16d)]]}]}),_0x2bd67d({'emitter':this[_0x2c1f64(0x18c)],'activator':()=>this[_0x2c1f64(0x175)],'contextElements':()=>[this[_0x2c1f64(0x180)]],'callback':()=>{const _0x55380e=_0x2c1f64;this[_0x55380e(0x178)]=!0x1;}}),this['on'](_0x2c1f64(0x160),this[_0x2c1f64(0x16f)],{'priority':_0x2c1f64(0x15c)});}[_0x357593(0x162)](_0x116d93,_0x27b0b1){return new _0x2f5630(_0x116d93,_0x27b0b1);}[_0x357593(0x176)](_0x1b2feb){const _0x3f7157=_0x357593;return new _0x2f21fd(_0x1b2feb,this[_0x3f7157(0x15d)][_0x3f7157(0x177)]);}[_0x357593(0x189)](_0x4bc1ee){return new _0x4c77c3(_0x4bc1ee);}[_0x357593(0x173)](_0x270cda){return new _0x20f35b(_0x270cda);}[_0x357593(0x16f)](_0x12590f,_0x1bde77,_0x2dcf60){const _0x4c6a43=_0x357593;_0x2dcf60?this[_0x4c6a43(0x178)]=!0x0:this[_0x4c6a43(0x178)]&&this[_0x4c6a43(0x18c)][_0x4c6a43(0x183)]();}[_0x357593(0x179)](_0x1a71de,_0x11c717){const _0x41341b=_0x357593;this[_0x41341b(0x15d)][_0x41341b(0x179)](_0x1a71de,_0x11c717);}[_0x357593(0x16a)](_0x17e1fc){const _0x5cdcd1=_0x357593;this[_0x5cdcd1(0x15d)][_0x5cdcd1(0x16a)](_0x17e1fc);}[_0x357593(0x164)](_0x333f72,_0x4dfb8e){const _0x3953a2=_0x357593;this[_0x3953a2(0x15d)][_0x3953a2(0x164)](_0x333f72,_0x4dfb8e);}[_0x357593(0x18b)](_0x248016){const _0x24ce6c=_0x357593;this[_0x24ce6c(0x18c)][_0x24ce6c(0x18b)](_0x248016);}[_0x357593(0x159)](_0x538b07){const _0x447453=_0x357593;this[_0x447453(0x15d)][_0x447453(0x159)](_0x538b07);}[_0x357593(0x17c)](){const _0x5a855f=_0x357593;this[_0x5a855f(0x15d)][_0x5a855f(0x150)]();}[_0x357593(0x167)](){const _0x64670e=_0x357593;this[_0x64670e(0x15d)][_0x64670e(0x169)]();}[_0x357593(0x172)](_0xc92ed9,_0x4dfae2,_0x469f44){const _0x4f421e=_0x357593;this[_0x4f421e(0x15d)][_0x4f421e(0x172)](_0xc92ed9,_0x4dfae2,_0x469f44);}[_0x357593(0x170)](_0x5625b7){const _0x974bfe=_0x357593;this[_0x974bfe(0x184)][_0x974bfe(0x170)](_0x5625b7);}[_0x357593(0x181)](_0x5571ee){const _0x24de97=_0x357593;this[_0x24de97(0x184)][_0x24de97(0x181)](_0x5571ee);}[_0x357593(0x187)](){const _0x2eff78=_0x357593;this[_0x2eff78(0x18c)][_0x2eff78(0x165)]();}[_0x357593(0x17e)](_0x1eac76){const _0x57a821=_0x357593;this[_0x57a821(0x15d)][_0x57a821(0x17e)](_0x1eac76);}[_0x357593(0x163)](_0x3ec4bb){const _0x5c8741=_0x357593;this[_0x5c8741(0x18c)][_0x5c8741(0x15f)](_0x3ec4bb);}[_0x357593(0x156)](_0x172634,_0x411f5e){const _0xcb163c=_0x357593;this[_0xcb163c(0x184)][_0xcb163c(0x156)](_0x172634,_0x411f5e);}[_0x357593(0x186)](_0x4c065d){const _0x48ebd9=_0x357593;this[_0x48ebd9(0x184)][_0x48ebd9(0x186)](_0x4c065d);}[_0x357593(0x166)](){const _0x12e6b6=_0x357593;this[_0x12e6b6(0x184)][_0x12e6b6(0x166)]();}[_0x357593(0x155)](_0xe91ef6){const _0x5ef43e=_0x357593;this[_0x5ef43e(0x184)][_0x5ef43e(0x155)](_0xe91ef6);}[_0x357593(0x16c)](_0x5c2fc2,_0x5cdb8e,_0x339803,_0x4ec72d){const _0xd3d5dd=_0x357593;this[_0xd3d5dd(0x15d)][_0xd3d5dd(0x16c)](_0x5c2fc2,_0x5cdb8e,_0x339803,_0x4ec72d);}[_0x357593(0x152)](_0x5c57cf){const _0x3fc37d=_0x357593;this[_0x3fc37d(0x15d)][_0x3fc37d(0x152)](_0x5c57cf);}[_0x357593(0x16b)](){const _0x205fec=_0x357593;this[_0x205fec(0x18c)][_0x205fec(0x183)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x574cec=_0x24b1;(function(_0x3d6d04,_0xe1fdbf){const _0x339555=_0x24b1,_0x16367b=_0x3d6d04();while(!![]){try{const _0x41ceb5=parseInt(_0x339555(0x1a2))/0x1*(-parseInt(_0x339555(0x1be))/0x2)+-parseInt(_0x339555(0x19a))/0x3*(parseInt(_0x339555(0x1b9))/0x4)+parseInt(_0x339555(0x1b6))/0x5+parseInt(_0x339555(0x1b2))/0x6+-parseInt(_0x339555(0x19d))/0x7*(parseInt(_0x339555(0x190))/0x8)+parseInt(_0x339555(0x1d4))/0x9*(parseInt(_0x339555(0x191))/0xa)+parseInt(_0x339555(0x19b))/0xb;if(_0x41ceb5===_0xe1fdbf)break;else _0x16367b['push'](_0x16367b['shift']());}catch(_0x1f59be){_0x16367b['push'](_0x16367b['shift']());}}}(_0x9f44,0x6e0fd));import{CKEditorError as _0xf8a08f,logWarning as _0xe15d4f,scrollViewportToShowTarget as _0x5b5d40}from'ckeditor5/src/utils.js';import{View as _0x4d4e4f}from'ckeditor5/src/ui.js';function _0x24b1(_0x33f14f,_0x4b5504){const _0x9f44f=_0x9f44();return _0x24b1=function(_0x24b171,_0xcbda49){_0x24b171=_0x24b171-0x190;let _0x3d80e8=_0x9f44f[_0x24b171];return _0x3d80e8;},_0x24b1(_0x33f14f,_0x4b5504);}import{AI_CHAT_UI_EVENT_NAMES as _0x4f7dd2}from'../utils/eventnames.js';function _0x9f44(){const _0x1f05f8=['removeItem','_setupTemplate','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','isVisible','set','createCollection','ck-ai-chat__feed__items','isPending','stop','2172966HrjdNZ','locale','addItem','includes','1726695zAsFJv','startAutoScroll','_createTemplateChildren','4948KaYYLe','element','start','ai-suggestion-reply','_createFeedLoader','2wFELfs','loadingMessage','markItemAsDone','updateSuggestionItem','bindTemplate','isLoadingSkeletonVisible','getItemIds','aiFeed','ai-chat-feed-view-item-not-a-suggestion-item','ck-ai-chat__feed','clear','updateWebSources','span','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','_bodyCollection','stopAutoScroll','setTemplate','getItemById','updatePartState','remove','add','updateContent','5918841uVnPse','updateReplyItem','extendTemplate','ai-reply','updateSources','toggleLoadingSkeleton','getPartView','ck-ai-chat__loader-text','updateSuggestionPartState','map','div','_createSkeletonLoader','8tZCFBG','10vMBaaJ','ai-chat-feed-view-item-not-found','options','find','scrollToSuggestion','_createLoaderChildren','interaction-header','ck-ai-chat__loader','user-message','1449InfVnJ','8742030JzJXvN','destroy','5676132dokWMj','markAsDone','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','setLoadingMessage','_createFeedItems','300719YZCYDo','scrollManager','ck-hidden','children','render','delegate','ai-chat-feed-view-item-not-a-reply-item'];_0x9f44=function(){return _0x1f05f8;};return _0x9f44();}import{AIChatFeedSuggestionItemView as _0x3c4942}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3a8f44}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x144d8f}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x5f3c4e}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x4b66d5}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x27884a}from'../utils/scrollmanager.js';import{AISkeletonView as _0x394e38,SKELETON_DEFINITIONS as _0x5bc358}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x4fe8cf}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4d4e4f{[_0x574cec(0x1a5)];[_0x574cec(0x1a3)];[_0x574cec(0x1cc)];constructor(_0x199449,_0x365088){const _0x4a7337=_0x574cec;super(_0x199449),this[_0x4a7337(0x1cc)]=_0x365088,this[_0x4a7337(0x1ad)](_0x4a7337(0x1b0),!0x1),this[_0x4a7337(0x1ad)](_0x4a7337(0x1bf),''),this[_0x4a7337(0x1ad)](_0x4a7337(0x1c3),!0x1),this[_0x4a7337(0x1a5)]=this[_0x4a7337(0x1ae)](),this[_0x4a7337(0x1a5)][_0x4a7337(0x1a7)](..._0x4f7dd2)['to'](this),this[_0x4a7337(0x1aa)]();}[_0x574cec(0x1a6)](){const _0x1f5af4=_0x574cec;super[_0x1f5af4(0x1a6)](),this[_0x1f5af4(0x1a3)]=new _0x27884a(this[_0x1f5af4(0x1ba)]);}[_0x574cec(0x19c)](){const _0x3dfd12=_0x574cec;super[_0x3dfd12(0x19c)](),this[_0x3dfd12(0x1a3)][_0x3dfd12(0x19c)]();}[_0x574cec(0x1c8)](){const _0x18681a=_0x574cec;this[_0x18681a(0x1a5)][_0x18681a(0x1c8)]();}[_0x574cec(0x1b4)](_0x5ba7a2,_0x4b5f73){const _0x5d9d95=_0x574cec;let _0x17fd68;_0x17fd68=_0x5d9d95(0x1d7)===_0x5ba7a2?new _0x3a8f44(this[_0x5d9d95(0x1b3)],_0x4b5f73):_0x5d9d95(0x1bc)===_0x5ba7a2?new _0x3c4942(this[_0x5d9d95(0x1b3)],_0x4b5f73):_0x5d9d95(0x199)===_0x5ba7a2?new _0x144d8f(this[_0x5d9d95(0x1b3)],_0x4b5f73,this[_0x5d9d95(0x1cc)]):_0x5d9d95(0x197)===_0x5ba7a2?new _0x4b66d5(this[_0x5d9d95(0x1b3)],_0x4b5f73):new _0x5f3c4e(_0x4b5f73),this[_0x5d9d95(0x1a5)][_0x5d9d95(0x1d2)](_0x17fd68);}async[_0x574cec(0x1d5)]({id:_0x58d611,parsedContent:_0xd0e7b1,renderingStrategy:_0x5a94c3,abortSignal:_0x4b73f5}){const _0x2f57f3=_0x574cec,_0x54224d=this[_0x2f57f3(0x1cf)](_0x58d611);if(!(_0x54224d instanceof _0x3a8f44))throw new _0xf8a08f(_0x2f57f3(0x1a8),null,{'itemView':_0x54224d,'id':_0x58d611,'parsedContent':_0xd0e7b1});await _0x54224d[_0x2f57f3(0x1d3)]({'parsedContent':_0xd0e7b1,'renderingStrategy':_0x5a94c3,'abortSignal':_0x4b73f5});}async[_0x574cec(0x1c9)](_0x2f8c6e,_0x4e0a26){const _0x1a91c3=_0x574cec,_0x1e8374=this[_0x1a91c3(0x1cf)](_0x2f8c6e);if(_0x1e8374 instanceof _0x3c4942)_0x1e8374[_0x1a91c3(0x1d8)](_0x4e0a26);else{if(!(_0x1e8374 instanceof _0x3a8f44))throw new _0xf8a08f(_0x1a91c3(0x19f),null,{'itemView':_0x1e8374,'id':_0x2f8c6e,'sources':_0x4e0a26});_0x1e8374[_0x1a91c3(0x1d8)](_0x4e0a26);}}async[_0x574cec(0x1c1)]({id:_0x1366bd,parts:_0x2bc2a2,renderingStrategy:_0x365007,abortSignal:_0x165b80}){const _0x4b61e1=_0x574cec,_0xb72a65=this[_0x4b61e1(0x1cf)](_0x1366bd);if(!(_0xb72a65 instanceof _0x3c4942))throw new _0xf8a08f(_0x4b61e1(0x1c6),null,{'itemView':_0xb72a65,'id':_0x1366bd,'parts':_0x2bc2a2});await _0xb72a65[_0x4b61e1(0x1d3)]({'parts':_0x2bc2a2,'renderingStrategy':_0x365007,'abortSignal':_0x165b80});}[_0x574cec(0x1dc)]({id:_0x606701,index:_0x260e10,state:_0x35a616}){const _0x5d7dac=_0x574cec,_0x38baa0=this[_0x5d7dac(0x1cf)](_0x606701);if(!(_0x38baa0 instanceof _0x3c4942))throw new _0xf8a08f(_0x5d7dac(0x1c6),this,{'id':_0x606701});_0x38baa0[_0x5d7dac(0x1d0)](_0x260e10,_0x35a616);}[_0x574cec(0x1c0)](_0x993f50){const _0x1883fe=_0x574cec;this[_0x1883fe(0x1cf)](_0x993f50)[_0x1883fe(0x19e)]();}[_0x574cec(0x1c4)](){const _0x5c3ae4=_0x574cec;return this[_0x5c3ae4(0x1a5)][_0x5c3ae4(0x1dd)](_0x1c2ba2=>_0x1c2ba2[_0x5c3ae4(0x193)]['id']);}[_0x574cec(0x1a9)](_0x36b293){const _0x522212=_0x574cec;this[_0x522212(0x1a5)][_0x522212(0x1d1)](this[_0x522212(0x1cf)](_0x36b293));}[_0x574cec(0x195)](_0x32e4c3,_0x385a87){const _0x3ad68c=_0x574cec,_0x1b5b7f=this[_0x3ad68c(0x1cf)](_0x32e4c3);if(!(_0x1b5b7f instanceof _0x3c4942))return void _0xe15d4f(_0x3ad68c(0x1ab),{'replyId':_0x32e4c3,'partIndex':_0x385a87});const _0xefe5=_0x1b5b7f[_0x3ad68c(0x1da)](_0x385a87);_0xefe5?_0x5b5d40({'target':_0xefe5[_0x3ad68c(0x1ba)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0xe15d4f(_0x3ad68c(0x1cb),{'replyId':_0x32e4c3,'partIndex':_0x385a87});}[_0x574cec(0x1aa)](){const _0x506f9c=_0x574cec;this[_0x506f9c(0x1ce)]({'tag':_0x506f9c(0x1de),'attributes':{'class':['ck',_0x506f9c(0x1c7)]},'children':this[_0x506f9c(0x1b8)]()});}[_0x574cec(0x1b8)](){const _0x46c023=_0x574cec,_0x58260a=this[_0x46c023(0x1df)]();return[this[_0x46c023(0x1a1)](),_0x58260a,this[_0x46c023(0x1bd)]()];}[_0x574cec(0x1df)](){const _0x2ef030=_0x574cec,_0x33dedd=new _0x394e38(this[_0x2ef030(0x1b3)],_0x5bc358[_0x2ef030(0x1c5)]);return _0x33dedd[_0x2ef030(0x1d6)]({'attributes':{'class':[this[_0x2ef030(0x1c2)]['if'](_0x2ef030(0x1c3),_0x2ef030(0x1a4),_0x649efd=>!_0x649efd)]}}),_0x33dedd;}[_0x574cec(0x1a1)](){const _0x32bf09=_0x574cec,_0x50c4d6=new _0x4d4e4f(this[_0x32bf09(0x1b3)]);return _0x50c4d6[_0x32bf09(0x1ce)]({'tag':_0x32bf09(0x1de),'attributes':{'class':['ck',_0x32bf09(0x1af),this[_0x32bf09(0x1c2)]['if'](_0x32bf09(0x1c3),_0x32bf09(0x1a4))]},'children':this[_0x32bf09(0x1a5)]}),_0x50c4d6;}[_0x574cec(0x1bd)](){const _0x138695=_0x574cec,_0x2cf0fb=new _0x4d4e4f(this[_0x138695(0x1b3)]);return _0x2cf0fb[_0x138695(0x1ce)]({'tag':_0x138695(0x1de),'attributes':{'class':['ck',_0x138695(0x198),this[_0x138695(0x1c2)]['if'](_0x138695(0x1b0),_0x138695(0x1a4),_0x566c12=>!_0x566c12)]},'children':this[_0x138695(0x196)]()}),_0x2cf0fb;}[_0x574cec(0x196)](){const _0xc53f76=_0x574cec,_0x3e5359=new _0x4fe8cf();return _0x3e5359[_0xc53f76(0x1ac)]=!0x0,[_0x3e5359,{'tag':_0xc53f76(0x1ca),'attributes':{'class':['ck',_0xc53f76(0x1db)]},'children':[{'text':this[_0xc53f76(0x1c2)]['to'](_0xc53f76(0x1bf))}]}];}[_0x574cec(0x1cf)](_0x55571b){const _0x1d3b2d=_0x574cec,_0xd9eb4d=this[_0x1d3b2d(0x1a5)][_0x1d3b2d(0x194)](_0x41f337=>_0x41f337[_0x1d3b2d(0x193)]['id'][_0x1d3b2d(0x1b5)](_0x55571b));if(!_0xd9eb4d)throw new _0xf8a08f(_0x1d3b2d(0x192),this,{'id':_0x55571b});return _0xd9eb4d;}[_0x574cec(0x1a0)](_0x41254f){const _0x2754ae=_0x574cec;this[_0x2754ae(0x1ad)](_0x2754ae(0x1bf),_0x41254f);}[_0x574cec(0x1d9)](_0x5ea1cd){const _0x2cc38d=_0x574cec;this[_0x2cc38d(0x1ad)](_0x2cc38d(0x1c3),_0x5ea1cd);}[_0x574cec(0x1b7)](){const _0x2bd662=_0x574cec;this[_0x2bd662(0x1a3)][_0x2bd662(0x1bb)]();}[_0x574cec(0x1cd)](){const _0x4bbff3=_0x574cec;this[_0x4bbff3(0x1a3)][_0x4bbff3(0x1b1)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1317(_0x28ea23,_0x1370f1){const _0x33b99b=_0x33b9();return _0x1317=function(_0x131786,_0x2fd9db){_0x131786=_0x131786-0x6d;let _0x522084=_0x33b99b[_0x131786];return _0x522084;},_0x1317(_0x28ea23,_0x1370f1);}const _0x27681a=_0x1317;(function(_0x1d8697,_0x25e1c0){const _0x451010=_0x1317,_0x653412=_0x1d8697();while(!![]){try{const _0xf61179=parseInt(_0x451010(0x78))/0x1*(-parseInt(_0x451010(0x80))/0x2)+parseInt(_0x451010(0x83))/0x3*(-parseInt(_0x451010(0x7e))/0x4)+parseInt(_0x451010(0x85))/0x5+-parseInt(_0x451010(0x82))/0x6+parseInt(_0x451010(0x77))/0x7*(parseInt(_0x451010(0x81))/0x8)+parseInt(_0x451010(0x86))/0x9*(-parseInt(_0x451010(0x75))/0xa)+parseInt(_0x451010(0x70))/0xb;if(_0xf61179===_0x25e1c0)break;else _0x653412['push'](_0x653412['shift']());}catch(_0x1bf654){_0x653412['push'](_0x653412['shift']());}}}(_0x33b9,0xef312));import{ButtonView as _0x3cef7b,FormHeaderView as _0xc61646}from'ckeditor5/src/ui.js';import{IconPlus as _0x1c29ca,IconAIChat as _0x1160a6}from'ckeditor5/src/icons.js';import{getTranslation as _0x1ba1aa}from'../../aicore/utils/common-translations.js';function _0x33b9(){const _0x3895a9=['AI_CHAT_LABEL_NEW_CHAT','10eBClam','set','7UnxAqT','1787oNIVFP','ck-ai-header\x20ck-ai-header_chat','startConversation','execute','resizeButton','ck-ai-chat__start-conversation','4fnPcBQ','add','74uwLHqQ','10231064nnxhSF','5075820JBcuKu','3116001IvqvuK','AI_CHAT_HEADING','6529885KMvBFz','15640389QFYGCS','fire','isMaximized','conversationStartButton','22917917qbHWdi','locale','_createStartConversationButton','children'];_0x33b9=function(){return _0x3895a9;};return _0x33b9();}import{createResizeButton as _0x3fc4af}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0xc61646{[_0x27681a(0x6f)];[_0x27681a(0x7c)];constructor(_0x547335,_0x23d3ef){const _0x5133b3=_0x27681a;super(_0x547335,{'label':_0x1ba1aa(_0x547335,_0x5133b3(0x84)),'class':_0x5133b3(0x79),'icon':_0x1160a6}),this[_0x5133b3(0x76)](_0x5133b3(0x6e),!0x1),this[_0x5133b3(0x6f)]=this[_0x5133b3(0x72)](_0x547335),this[_0x5133b3(0x73)][_0x5133b3(0x7f)](this[_0x5133b3(0x6f)]),_0x23d3ef&&(this[_0x5133b3(0x7c)]=_0x3fc4af(_0x547335,this),this[_0x5133b3(0x73)][_0x5133b3(0x7f)](this[_0x5133b3(0x7c)]));}[_0x27681a(0x72)](_0x252da7){const _0x1267b5=_0x27681a,_0x4db12e=new _0x3cef7b(_0x252da7);return _0x4db12e[_0x1267b5(0x76)]({'label':_0x1ba1aa(this[_0x1267b5(0x71)],_0x1267b5(0x74)),'withText':!0x0,'icon':_0x1c29ca,'class':_0x1267b5(0x7d)}),_0x4db12e['on'](_0x1267b5(0x7b),()=>{const _0x4aaff5=_0x1267b5;this[_0x4aaff5(0x6d)](_0x4aaff5(0x7a));}),_0x4db12e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x18a2a1=_0xbcf2;function _0x4e2a(){var _0xdf2844=['416105WhctQn','uiLanguageDirection','8ptGkbH','1307736vpwchc','1188GBtYqh','6GIZlNo','1383NUqfXl','ck-rounded-corners','destroy','chatFeed','222170cQQRLE','_bodyCollection','9pmsdfy','53163lGBORD','attachToDom','chatDisclaimer','setTemplate','delegate','chatHeader','detachFromDom','2830219IYvEhQ','ck-ai-chat','2778920uHHosC','ck-reset_all','closeSourceResourceBalloon','populateSourceResourceBalloon','308PzaxdB','chatControls','div'];_0x4e2a=function(){return _0xdf2844;};return _0x4e2a();}function _0xbcf2(_0x445e98,_0x401dc0){var _0x4e2afd=_0x4e2a();return _0xbcf2=function(_0xbcf233,_0x3fc471){_0xbcf233=_0xbcf233-0xf6;var _0x23e716=_0x4e2afd[_0xbcf233];return _0x23e716;},_0xbcf2(_0x445e98,_0x401dc0);}(function(_0x4687fb,_0x271d19){var _0x21c2f6=_0xbcf2,_0x123e17=_0x4687fb();while(!![]){try{var _0x21ca14=parseInt(_0x21c2f6(0x110))/0x1*(parseInt(_0x21c2f6(0x107))/0x2)+parseInt(_0x21c2f6(0x10d))/0x3+parseInt(_0x21c2f6(0x10c))/0x4*(-parseInt(_0x21c2f6(0x10a))/0x5)+parseInt(_0x21c2f6(0x10f))/0x6*(-parseInt(_0x21c2f6(0x101))/0x7)+parseInt(_0x21c2f6(0x103))/0x8*(-parseInt(_0x21c2f6(0xf9))/0x9)+parseInt(_0x21c2f6(0xf7))/0xa+parseInt(_0x21c2f6(0xfa))/0xb*(parseInt(_0x21c2f6(0x10e))/0xc);if(_0x21ca14===_0x271d19)break;else _0x123e17['push'](_0x123e17['shift']());}catch(_0x35a90c){_0x123e17['push'](_0x123e17['shift']());}}}(_0x4e2a,0x3881e));import{View as _0xee1c73,BodyCollection as _0x1199b9}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x59ed78}from'../utils/eventnames.js';import{AIChatFeedView as _0x301e15}from'./aichatfeedview.js';import{AIChatControlsView as _0x5d94fb}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x424843}from'./aichatheaderview.js';import{AIDisclaimerView as _0x272f53}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0xee1c73{[_0x18a2a1(0xff)];[_0x18a2a1(0xf6)];[_0x18a2a1(0x108)];[_0x18a2a1(0xfc)];[_0x18a2a1(0xf8)];constructor(_0x22a510,_0x2b0b6e){var _0x21802f=_0x18a2a1;super(_0x22a510),this[_0x21802f(0xf8)]=new _0x1199b9(_0x22a510),this[_0x21802f(0xf8)][_0x21802f(0xfb)](),this[_0x21802f(0xff)]=new _0x424843(_0x22a510,_0x2b0b6e),this[_0x21802f(0xff)][_0x21802f(0xfe)](..._0x59ed78)['to'](this),this[_0x21802f(0xf6)]=new _0x301e15(_0x22a510,this[_0x21802f(0xf8)]),this[_0x21802f(0xf6)][_0x21802f(0xfe)](..._0x59ed78)['to'](this),this[_0x21802f(0x108)]=new _0x5d94fb(_0x22a510,this[_0x21802f(0xf8)]),this[_0x21802f(0x108)][_0x21802f(0xfe)](..._0x59ed78)['to'](this),this[_0x21802f(0xfc)]=new _0x272f53(_0x22a510),this[_0x21802f(0xfd)]({'tag':_0x21802f(0x109),'attributes':{'class':['ck',_0x21802f(0x104),_0x21802f(0x102),_0x21802f(0x111)],'dir':_0x22a510[_0x21802f(0x10b)]},'children':[this[_0x21802f(0xff)],this[_0x21802f(0xf6)],this[_0x21802f(0x108)],this[_0x21802f(0xfc)]]});}[_0x18a2a1(0x106)](_0x24be92,_0x39cac9,_0x3896e5,_0x1c2163){var _0x46fbc8=_0x18a2a1;this[_0x46fbc8(0x108)][_0x46fbc8(0x106)](_0x24be92,_0x39cac9,_0x3896e5,_0x1c2163);}[_0x18a2a1(0x105)](_0x4e8d78){var _0x42dada=_0x18a2a1;this[_0x42dada(0x108)][_0x42dada(0x105)](_0x4e8d78);}[_0x18a2a1(0x112)](){var _0x5b9e18=_0x18a2a1;this[_0x5b9e18(0xf8)][_0x5b9e18(0x100)](),super[_0x5b9e18(0x112)]();}}
|
|
@@ -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 _0x1c78c3=_0x4181;(function(_0x12a4d2,_0x51fc70){const _0x1e84b2=_0x4181,_0x3286c4=_0x12a4d2();while(!![]){try{const _0x58ba3e=parseInt(_0x1e84b2(0x156))/0x1*(-parseInt(_0x1e84b2(0x14b))/0x2)+-parseInt(_0x1e84b2(0x16e))/0x3+-parseInt(_0x1e84b2(0x11b))/0x4+parseInt(_0x1e84b2(0x17d))/0x5*(parseInt(_0x1e84b2(0x139))/0x6)+parseInt(_0x1e84b2(0x10e))/0x7*(parseInt(_0x1e84b2(0x122))/0x8)+-parseInt(_0x1e84b2(0x199))/0x9*(-parseInt(_0x1e84b2(0x126))/0xa)+-parseInt(_0x1e84b2(0x174))/0xb*(-parseInt(_0x1e84b2(0x17a))/0xc);if(_0x58ba3e===_0x51fc70)break;else _0x3286c4['push'](_0x3286c4['shift']());}catch(_0x5bf488){_0x3286c4['push'](_0x3286c4['shift']());}}}(_0x4d47,0xe13fb));import{View as _0xbf65fb,BalloonPanelView as _0x428e55,ButtonView as _0x1dc775,clickOutsideHandler as _0x30bc6a}from'ckeditor5/src/ui.js';import{Collection as _0x5831be}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0x1c78c3(0x179);function _0x4d47(){const _0x3c1971=['disconnect','zIndex','label','style','+\x201','2zYGtcb','pointerEvents','bottom','ck-calculation-container','none','isOn','isConnected','_createShowMoreButtonView','setTemplate','visibility','width','207054JphOcv','innerHeight','_makeAncestorsVisible','clientHeight','content','disableAnimationOnEnter','add','_findTargetContainer','_checkAndHandleOverflow','_renderChipsAndCountRows','_calculateOverflowInContainer','border-box','appendChild','_updateOverflowUI','_restoreAncestorVisibility','clientWidth','top','execute','from','div','_updateShowMoreButtonVisibility','show','children','body','4287141Blidrp','createElement','_visibleChips','hide','_locale','pop','11cEWvxr','isIntersecting','opacity','set','right','300px','1487868fNjqkl','documentElement','_showMoreButtonView','86205MCJEqu','remove','_parentView','_intersectionObserver','boxSizing','hidden','_ancestorsToRestore','length','_calculateContainerWidth','element','some','showMoreButton','forEach','innerWidth','_repinBalloonPanel','overflowContainer','_applyCalculationStyles','_updateBalloonContent','getComputedStyle','display','height','tagName','abs','classList','block\x20!important','slice','_config','button','414567ncFmQv','clear','overflowChips','render','_bodyCollection','textContent','setContainerElement','absolute','_createShowMoreButton','showMoreButtonView','_targetContainer','6845335AGvahm','left','pin','includes','block','_applyOverflowResults','visible\x20!important','_showMoreBalloonPanelView','position','className','_isContainerVisible','push','showMoreLabelPrefix','2755224rZtfhE','observe','_containerElement','destroy','_overflowChips','showMoreBalloon','isVisible','8LVSYNu','_handleShowMoreButtonClick','_createContainerElements','undefined','230GCIprI','filter','querySelector','offsetWidth','auto','0px','_pendingCalculation','_createCalculationContainer','cloneNode','.ck-ai-chat','innerHTML','50px','parentElement','calculationContainer','visible','_createMockButton','_distributeChips','getBoundingClientRect','showBalloonPanel','378PesIiL','_testButtonFit','_setupVisibilityObserver','cssClasses','reorganizeChips','maxVisibleRows','toLowerCase','extendTemplate','_createShowMoreBalloonPanelView','hideBalloonPanel','rowDetectionTolerance','controlsButton','-9999px'];_0x4d47=function(){return _0x3c1971;};return _0x4d47();}function _0x4181(_0xe656e5,_0x44aa97){const _0x4d47a7=_0x4d47();return _0x4181=function(_0x418165,_0x2b8d94){_0x418165=_0x418165-0x107;let _0x32ae28=_0x4d47a7[_0x418165];return _0x32ae28;},_0x4181(_0xe656e5,_0x44aa97);}export class AIChatChipsOverflowManager{[_0x1c78c3(0x172)];[_0x1c78c3(0x197)];[_0x1c78c3(0x170)];[_0x1c78c3(0x11f)];[_0x1c78c3(0x17c)]=null;[_0x1c78c3(0x115)]=null;[_0x1c78c3(0x11d)]=null;[_0x1c78c3(0x107)];[_0x1c78c3(0x17f)]=null;[_0x1c78c3(0x180)]=null;[_0x1c78c3(0x12c)]=!0x1;constructor(_0x49e1c3,_0x143ced,_0x51ead3,_0x8ec027,_0x155232){const _0x18e4cc=_0x1c78c3;this[_0x18e4cc(0x172)]=_0x49e1c3,this[_0x18e4cc(0x170)]=_0x143ced,this[_0x18e4cc(0x197)]={...hn,..._0x51ead3,'cssClasses':{'controlsButton':'','calculationContainer':_0x18e4cc(0x14e),..._0x51ead3[_0x18e4cc(0x13c)]}},this[_0x18e4cc(0x11f)]=new _0x5831be(),this[_0x18e4cc(0x107)]=_0x8ec027,this[_0x18e4cc(0x17f)]=_0x155232||null;}[_0x1c78c3(0x109)](_0x50d537){const _0x4713d1=_0x1c78c3;this[_0x4713d1(0x180)]&&(this[_0x4713d1(0x180)][_0x4713d1(0x146)](),this[_0x4713d1(0x180)]=null),this[_0x4713d1(0x11d)]=_0x50d537,this[_0x4713d1(0x13b)]();}get[_0x1c78c3(0x10c)](){const _0x3f2df1=_0x1c78c3;return this[_0x3f2df1(0x17c)];}get[_0x1c78c3(0x19b)](){const _0x50a784=_0x1c78c3;return this[_0x50a784(0x11f)];}[_0x1c78c3(0x13d)](){requestAnimationFrame(()=>{const _0x233a04=_0x4181;this[_0x233a04(0x15e)]();});}[_0x1c78c3(0x138)](){const _0xd74190=_0x1c78c3;this[_0xd74190(0x17c)]&&this[_0xd74190(0x115)]&&(this[_0xd74190(0x18e)](),this[_0xd74190(0x17c)][_0xd74190(0x150)]=!0x0,this[_0xd74190(0x115)][_0xd74190(0x16b)](),this[_0xd74190(0x115)][_0xd74190(0x110)]({'target':this[_0xd74190(0x17c)][_0xd74190(0x186)],'limiter':document[_0xd74190(0x128)](_0xd74190(0x12f))}));}[_0x1c78c3(0x142)](){const _0x5e4091=_0x1c78c3;this[_0x5e4091(0x17c)]&&this[_0x5e4091(0x115)]&&(this[_0x5e4091(0x17c)][_0x5e4091(0x150)]=!0x1,this[_0x5e4091(0x115)][_0x5e4091(0x171)]());}[_0x1c78c3(0x19a)](){const _0x56b485=_0x1c78c3;this[_0x56b485(0x11f)][_0x56b485(0x19a)](),this[_0x56b485(0x142)](),this[_0x56b485(0x16a)](),this[_0x56b485(0x17c)]&&(this[_0x56b485(0x17c)][_0x56b485(0x148)]=''),this[_0x56b485(0x115)]&&this[_0x56b485(0x115)][_0x56b485(0x15a)][_0x56b485(0x19a)]();}[_0x1c78c3(0x11e)](){const _0x2a2d11=_0x1c78c3;this[_0x2a2d11(0x180)]&&(this[_0x2a2d11(0x180)][_0x2a2d11(0x146)](),this[_0x2a2d11(0x180)]=null),this[_0x2a2d11(0x17c)]&&(this[_0x2a2d11(0x17c)][_0x2a2d11(0x11e)](),this[_0x2a2d11(0x17c)]=null),this[_0x2a2d11(0x115)]&&(this[_0x2a2d11(0x115)][_0x2a2d11(0x11e)](),this[_0x2a2d11(0x115)]=null);}[_0x1c78c3(0x15e)](){const _0x209008=_0x1c78c3;if(!this[_0x209008(0x11d)])return;if(!this[_0x209008(0x118)]())return void(this[_0x209008(0x12c)]=!0x0);this[_0x209008(0x12c)]=!0x1;const _0xdecc9f=[...this[_0x209008(0x170)],...this[_0x209008(0x11f)]],_0x1f2884=this[_0x209008(0x12d)](),_0xea1657=this[_0x209008(0x160)](_0x1f2884,_0xdecc9f),_0xdf83fd=_0x1f2884[_0x209008(0x183)];_0xdf83fd&&this[_0x209008(0x164)](_0xdf83fd),_0x1f2884[_0x209008(0x17e)](),this[_0x209008(0x113)](_0xdecc9f,_0xea1657);}[_0x1c78c3(0x10b)](){const _0x4acd6d=_0x1c78c3;this[_0x4acd6d(0x17c)]=this[_0x4acd6d(0x152)](),this[_0x4acd6d(0x115)]=this[_0x4acd6d(0x141)](),this[_0x4acd6d(0x17c)][_0x4acd6d(0x19c)](),this[_0x4acd6d(0x11d)][_0x4acd6d(0x162)](this[_0x4acd6d(0x17c)][_0x4acd6d(0x186)]),this[_0x4acd6d(0x17c)]['on'](_0x4acd6d(0x167),()=>{const _0x274735=_0x4acd6d;this[_0x274735(0x123)]();}),_0x30bc6a({'emitter':this[_0x4acd6d(0x115)],'contextElements':[this[_0x4acd6d(0x115)][_0x4acd6d(0x186)],this[_0x4acd6d(0x17c)][_0x4acd6d(0x186)]],'callback':()=>this[_0x4acd6d(0x142)](),'activator':()=>this[_0x4acd6d(0x17c)][_0x4acd6d(0x150)]});}[_0x1c78c3(0x152)](){const _0x206151=_0x1c78c3,_0x5d037c=new _0x1dc775(this[_0x206151(0x172)]);_0x5d037c[_0x206151(0x177)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x2ea9b6=[this[_0x206151(0x197)][_0x206151(0x13c)][_0x206151(0x188)]];return this[_0x206151(0x197)][_0x206151(0x13c)][_0x206151(0x144)]&&_0x2ea9b6[_0x206151(0x119)](this[_0x206151(0x197)][_0x206151(0x13c)][_0x206151(0x144)]),_0x5d037c[_0x206151(0x140)]({'attributes':{'class':_0x2ea9b6}}),_0x5d037c;}[_0x1c78c3(0x141)](){const _0x19b9f7=_0x1c78c3,_0x3aa494=new _0x428e55(this[_0x19b9f7(0x172)]);return _0x3aa494[_0x19b9f7(0x140)]({'attributes':{'class':this[_0x19b9f7(0x197)][_0x19b9f7(0x13c)][_0x19b9f7(0x120)]}}),this[_0x19b9f7(0x107)][_0x19b9f7(0x15c)](_0x3aa494),_0x3aa494;}[_0x1c78c3(0x18e)](){const _0x2da172=_0x1c78c3;if(this[_0x2da172(0x115)]&&(this[_0x2da172(0x115)][_0x2da172(0x15a)][_0x2da172(0x19a)](),this[_0x2da172(0x11f)][_0x2da172(0x184)]>0x0)){this[_0x2da172(0x11f)][_0x2da172(0x189)](_0x150961=>{const _0x43572e=_0x2da172;_0x150961[_0x43572e(0x15b)]();});const _0x5ecd58=new _0xbf65fb(this[_0x2da172(0x172)]);_0x5ecd58[_0x2da172(0x153)]({'tag':_0x2da172(0x169),'attributes':{'class':this[_0x2da172(0x197)][_0x2da172(0x13c)][_0x2da172(0x18c)]},'children':this[_0x2da172(0x11f)]}),this[_0x2da172(0x115)][_0x2da172(0x15a)][_0x2da172(0x15c)](_0x5ecd58);}}[_0x1c78c3(0x123)](){const _0x238472=_0x1c78c3;this[_0x238472(0x17c)][_0x238472(0x150)]?this[_0x238472(0x142)]():this[_0x238472(0x138)]();}[_0x1c78c3(0x16a)](){const _0x51e0c7=_0x1c78c3,_0x50df8d=this[_0x51e0c7(0x11f)][_0x51e0c7(0x184)]>0x0;this[_0x51e0c7(0x17c)]?.[_0x51e0c7(0x186)]&&(this[_0x51e0c7(0x17c)][_0x51e0c7(0x186)][_0x51e0c7(0x149)][_0x51e0c7(0x190)]=_0x50df8d?'':_0x51e0c7(0x14f));}[_0x1c78c3(0x18b)](){const _0x3feb20=_0x1c78c3;this[_0x3feb20(0x17c)]?.[_0x3feb20(0x150)]&&this[_0x3feb20(0x115)]?.[_0x3feb20(0x121)]&&this[_0x3feb20(0x17c)][_0x3feb20(0x186)]&&this[_0x3feb20(0x115)][_0x3feb20(0x110)]({'target':this[_0x3feb20(0x17c)][_0x3feb20(0x186)],'limiter':document[_0x3feb20(0x128)](_0x3feb20(0x12f))});}[_0x1c78c3(0x15d)](_0x4bc6b5){const _0x2bfbbf=_0x1c78c3,_0x16ae90=this[_0x2bfbbf(0x11d)]?.[_0x2bfbbf(0x192)][_0x2bfbbf(0x13f)]()||_0x2bfbbf(0x169),_0x2d9b3b=this[_0x2bfbbf(0x11d)]?.[_0x2bfbbf(0x194)];if(_0x2d9b3b){const _0x5cdd41=_0x2d9b3b[0x0]||'',_0x583329=_0x4bc6b5[_0x2bfbbf(0x128)]('.'+_0x5cdd41),_0x522537=_0x4bc6b5[_0x2bfbbf(0x128)](_0x16ae90);return _0x583329||_0x522537||_0x4bc6b5;}return _0x4bc6b5[_0x2bfbbf(0x128)](_0x16ae90)||_0x4bc6b5;}[_0x1c78c3(0x185)](){const _0x4c8e85=_0x1c78c3,_0x54e5c9=this[_0x4c8e85(0x17f)]?.[_0x4c8e85(0x186)]||this[_0x4c8e85(0x11d)];if(!_0x54e5c9)return ln;const _0x393427=window[_0x4c8e85(0x18f)](_0x54e5c9)[_0x4c8e85(0x155)];if(_0x4c8e85(0x12a)===_0x393427||_0x4c8e85(0x12b)===_0x393427||!_0x393427){const _0x35c4cb=_0x54e5c9[_0x4c8e85(0x132)];if(_0x35c4cb){const _0x255dd1=window[_0x4c8e85(0x18f)](_0x35c4cb);return _0x4c8e85(0x12a)!==_0x255dd1[_0x4c8e85(0x155)]?_0x255dd1[_0x4c8e85(0x155)]:ln;}return ln;}return _0x393427;}[_0x1c78c3(0x18d)](_0x1a314c,_0x58c071){const _0x4c63cb=_0x1c78c3;this[_0x4c63cb(0x197)][_0x4c63cb(0x13c)][_0x4c63cb(0x133)]&&_0x1a314c[_0x4c63cb(0x194)][_0x4c63cb(0x15c)](this[_0x4c63cb(0x197)][_0x4c63cb(0x13c)][_0x4c63cb(0x133)]),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x155)]=_0x58c071,_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x116)]=_0x4c63cb(0x10a),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x166)]=_0x4c63cb(0x145),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x10f)]=_0x4c63cb(0x145),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x176)]='0',_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x14c)]=_0x4c63cb(0x14f),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x147)]='-1',_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x154)]=_0x4c63cb(0x114),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x190)]=_0x4c63cb(0x195),_0x1a314c[_0x4c63cb(0x149)][_0x4c63cb(0x181)]=_0x4c63cb(0x161);}[_0x1c78c3(0x164)](_0x2303dd){const _0x51491a=_0x1c78c3;_0x2303dd[_0x51491a(0x189)](({element:_0x51ddf1,originalDisplay:_0x166d90,originalVisibility:_0x5b8d42})=>{const _0x407e01=_0x51491a;_0x51ddf1[_0x407e01(0x149)][_0x407e01(0x190)]=_0x166d90,_0x51ddf1[_0x407e01(0x149)][_0x407e01(0x154)]=_0x5b8d42;});}[_0x1c78c3(0x158)](_0x205b46){const _0x5f0361=_0x1c78c3,_0x21c853=[];let _0x15c204=_0x205b46;for(;_0x15c204&&_0x15c204!==document[_0x5f0361(0x16d)];){const _0x596da1=window[_0x5f0361(0x18f)](_0x15c204);_0x5f0361(0x14f)!==_0x596da1[_0x5f0361(0x190)]&&_0x5f0361(0x182)!==_0x596da1[_0x5f0361(0x154)]||(_0x21c853[_0x5f0361(0x119)]({'element':_0x15c204,'originalDisplay':_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x190)],'originalVisibility':_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x154)]}),_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x190)]=_0x5f0361(0x112),_0x15c204[_0x5f0361(0x149)][_0x5f0361(0x154)]=_0x5f0361(0x134)),_0x15c204=_0x15c204[_0x5f0361(0x132)];}return _0x21c853;}[_0x1c78c3(0x124)](){const _0x21c689=_0x1c78c3;let _0x35620f,_0x340f9d;return this[_0x21c689(0x17f)]?.[_0x21c689(0x186)]?(_0x35620f=this[_0x21c689(0x17f)][_0x21c689(0x186)][_0x21c689(0x12e)](!0x0),_0x340f9d=this[_0x21c689(0x15d)](_0x35620f)):(_0x35620f=document[_0x21c689(0x16f)](_0x21c689(0x169)),_0x340f9d=_0x35620f),{'calculationContainer':_0x35620f,'targetContainer':_0x340f9d};}[_0x1c78c3(0x12d)](){const _0x94d243=_0x1c78c3,{calculationContainer:_0x3d71d0,targetContainer:_0x24b734}=this[_0x94d243(0x124)](),_0x5c62f3=this[_0x94d243(0x185)]();this[_0x94d243(0x18d)](_0x3d71d0,_0x5c62f3);const _0x41ce08=this[_0x94d243(0x17f)]?.[_0x94d243(0x186)]||this[_0x94d243(0x11d)],_0x11b4a0=_0x41ce08?.[_0x94d243(0x132)];_0x11b4a0?_0x11b4a0[_0x94d243(0x162)](_0x3d71d0):document[_0x94d243(0x16d)][_0x94d243(0x162)](_0x3d71d0),_0x3d71d0[_0x94d243(0x10d)]=_0x24b734;const _0x14ab3e=this[_0x94d243(0x158)](_0x11b4a0||null);return _0x3d71d0[_0x94d243(0x129)],_0x3d71d0[_0x94d243(0x183)]=_0x14ab3e,_0x3d71d0;}[_0x1c78c3(0x160)](_0x2e15f4,_0x2d1f1b){const _0x4dc8be=_0x1c78c3,_0x92d67e=_0x2e15f4[_0x4dc8be(0x10d)]||_0x2e15f4,_0x72240f=[],{rowCount:_0x51cec2}=this[_0x4dc8be(0x15f)](_0x92d67e,_0x2d1f1b);if(_0x51cec2<=this[_0x4dc8be(0x197)][_0x4dc8be(0x13e)])return _0x72240f;const _0x8db0b5=_0x2d1f1b[_0x4dc8be(0x196)]();for(;_0x8db0b5[_0x4dc8be(0x184)]>0x0;){if(this[_0x4dc8be(0x13a)](_0x2e15f4,_0x92d67e,_0x8db0b5)){const _0x4f2c7b=_0x2d1f1b[_0x4dc8be(0x127)](_0x1ae428=>!_0x8db0b5[_0x4dc8be(0x111)](_0x1ae428));_0x72240f[_0x4dc8be(0x119)](..._0x4f2c7b);break;}if(!_0x8db0b5[_0x4dc8be(0x173)]())break;}return _0x72240f;}[_0x1c78c3(0x15f)](_0x2caeb3,_0x56feb6){const _0x262608=_0x1c78c3;_0x2caeb3[_0x262608(0x130)]='',_0x56feb6[_0x262608(0x189)](_0xf3e631=>{const _0x33e0e5=_0x262608;if(_0xf3e631[_0x33e0e5(0x186)]){const _0x507674=_0xf3e631[_0x33e0e5(0x186)][_0x33e0e5(0x12e)](!0x0);_0x2caeb3[_0x33e0e5(0x162)](_0x507674);}}),_0x2caeb3[_0x262608(0x129)];const _0x45657c=_0x2caeb3[_0x262608(0x16c)],_0xa36c29=[];return Array[_0x262608(0x168)](_0x45657c)[_0x262608(0x189)](_0x3e6c21=>{const _0x1c5f1f=_0x262608,_0x2a3aef=_0x3e6c21[_0x1c5f1f(0x137)]()[_0x1c5f1f(0x166)];_0xa36c29[_0x1c5f1f(0x187)](_0x4ee961=>Math[_0x1c5f1f(0x193)](_0x4ee961-_0x2a3aef)<this[_0x1c5f1f(0x197)][_0x1c5f1f(0x143)])||_0xa36c29[_0x1c5f1f(0x119)](_0x2a3aef);}),{'rowCount':_0xa36c29[_0x262608(0x184)]};}[_0x1c78c3(0x135)](){const _0x5e21f6=_0x1c78c3,_0x16991e=document[_0x5e21f6(0x16f)](_0x5e21f6(0x198));return _0x16991e[_0x5e21f6(0x117)]=this[_0x5e21f6(0x197)][_0x5e21f6(0x13c)][_0x5e21f6(0x188)],this[_0x5e21f6(0x197)][_0x5e21f6(0x13c)][_0x5e21f6(0x144)]&&_0x16991e[_0x5e21f6(0x194)][_0x5e21f6(0x15c)](this[_0x5e21f6(0x197)][_0x5e21f6(0x13c)][_0x5e21f6(0x144)]),_0x16991e[_0x5e21f6(0x108)]=_0x5e21f6(0x14a),_0x16991e;}[_0x1c78c3(0x13a)](_0x2e489c,_0x224fc0,_0x2cc9fa){const _0x2575f7=_0x1c78c3;this[_0x2575f7(0x15f)](_0x224fc0,_0x2cc9fa);const _0x39853e=this[_0x2575f7(0x135)]();_0x2e489c[_0x2575f7(0x162)](_0x39853e),_0x2e489c[_0x2575f7(0x129)];const _0x244e50=[..._0x224fc0[_0x2575f7(0x16c)],_0x39853e],_0x3cd883=[];_0x244e50[_0x2575f7(0x189)](_0x2c01a2=>{const _0x1a4836=_0x2575f7,_0xd3183e=_0x2c01a2[_0x1a4836(0x137)]()[_0x1a4836(0x166)];_0x3cd883[_0x1a4836(0x187)](_0x2a8dd8=>Math[_0x1a4836(0x193)](_0x2a8dd8-_0xd3183e)<this[_0x1a4836(0x197)][_0x1a4836(0x143)])||_0x3cd883[_0x1a4836(0x119)](_0xd3183e);});const _0x23b881=_0x3cd883[_0x2575f7(0x184)];return _0x39853e[_0x2575f7(0x17e)](),_0x23b881<=this[_0x2575f7(0x197)][_0x2575f7(0x13e)];}[_0x1c78c3(0x136)](_0x26b4a9,_0x50c8eb){const _0x1df7e4=_0x1c78c3;this[_0x1df7e4(0x170)][_0x1df7e4(0x19a)](),this[_0x1df7e4(0x11f)][_0x1df7e4(0x19a)](),_0x26b4a9[_0x1df7e4(0x189)](_0x53d36f=>{const _0x593de7=_0x1df7e4;_0x50c8eb[_0x593de7(0x111)](_0x53d36f)?this[_0x593de7(0x11f)][_0x593de7(0x15c)](_0x53d36f):this[_0x593de7(0x170)][_0x593de7(0x15c)](_0x53d36f);});}[_0x1c78c3(0x163)](_0x5a918f){const _0x14187a=_0x1c78c3;if(_0x5a918f>0x0&&!this[_0x14187a(0x17c)]&&this[_0x14187a(0x10b)](),_0x5a918f>0x0&&this[_0x14187a(0x17c)]){const _0x386b42=''+this[_0x14187a(0x197)][_0x14187a(0x11a)]+(_0x5a918f<0x63?_0x5a918f:'99');this[_0x14187a(0x17c)][_0x14187a(0x148)]=_0x386b42;}this[_0x14187a(0x18e)](),this[_0x14187a(0x16a)](),this[_0x14187a(0x18b)]();}[_0x1c78c3(0x113)](_0x2ee750,_0x79d4ff){const _0x43aa98=_0x1c78c3;this[_0x43aa98(0x136)](_0x2ee750,_0x79d4ff),this[_0x43aa98(0x163)](_0x79d4ff[_0x43aa98(0x184)]);}[_0x1c78c3(0x13b)](){const _0x4e494d=_0x1c78c3;this[_0x4e494d(0x11d)]&&_0x4e494d(0x125)!=typeof IntersectionObserver&&(this[_0x4e494d(0x180)]=new IntersectionObserver(_0x26a3a3=>{const _0x1822a0=_0x4e494d;_0x26a3a3[0x0][_0x1822a0(0x175)]&&this[_0x1822a0(0x12c)]&&requestAnimationFrame(()=>{const _0x9aabfd=_0x1822a0;this[_0x9aabfd(0x15e)]();});},{'threshold':0.01,'rootMargin':_0x4e494d(0x131)}),this[_0x4e494d(0x180)][_0x4e494d(0x11c)](this[_0x4e494d(0x11d)]));}[_0x1c78c3(0x118)](){const _0x192321=_0x1c78c3;if(!this[_0x192321(0x11d)])return!0x1;if(!this[_0x192321(0x11d)][_0x192321(0x151)])return!0x1;const _0x483954=this[_0x192321(0x11d)][_0x192321(0x137)]();if(0x0===_0x483954[_0x192321(0x155)]||0x0===_0x483954[_0x192321(0x191)])return!0x1;const _0x597956=window[_0x192321(0x157)]||document[_0x192321(0x17b)][_0x192321(0x159)],_0x444c7d=window[_0x192321(0x18a)]||document[_0x192321(0x17b)][_0x192321(0x165)],_0x421bbb=0xc8;return _0x483954[_0x192321(0x14d)]>=-0xc8&&_0x483954[_0x192321(0x166)]<=_0x597956+_0x421bbb&&_0x483954[_0x192321(0x178)]>=-0xc8&&_0x483954[_0x192321(0x10f)]<=_0x444c7d+_0x421bbb;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x261683=_0x5ee8;(function(_0x524506,_0x1e4026){const _0x346fed=_0x5ee8,_0x100061=_0x524506();while(!![]){try{const _0x2bd5df=-parseInt(_0x346fed(0x14c))/0x1+parseInt(_0x346fed(0x117))/0x2+parseInt(_0x346fed(0x139))/0x3+-parseInt(_0x346fed(0x13b))/0x4*(-parseInt(_0x346fed(0x13e))/0x5)+parseInt(_0x346fed(0x137))/0x6+parseInt(_0x346fed(0x148))/0x7+-parseInt(_0x346fed(0x110))/0x8*(parseInt(_0x346fed(0x12d))/0x9);if(_0x2bd5df===_0x1e4026)break;else _0x100061['push'](_0x100061['shift']());}catch(_0x2d1a90){_0x100061['push'](_0x100061['shift']());}}}(_0x3ad9,0x9f4c8));import{ButtonView as _0x2983d6,IconView as _0x461926}from'ckeditor5/src/ui.js';import{IconClose as _0x5643c8,IconDocument as _0x5d0307,IconFileUpload as _0x32ae90,IconLink as _0x2ff5b5,IconSelection as _0x58535f}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xcc101d}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x245f2b}from'../../../aicore/ui/aispinner.js';function _0x3ad9(){const _0x27947c=['setTemplate','7276350lshwPs','selection','1177710HDmrrc','animationend','1137124YXTjyb','div','disableAnimationOnEnter','5lwGmwn','ck-ai-chat-context-chip_document','_createRemoveButton','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','isLoading','fire','removeContextItemChip','_createLoaderIcon','_initializeProperties','extendTemplate','2617727duHzSl','webkitAnimationEnd','ck-hidden','document','408201hUXtCh','_setupTemplate','ck-ai-chat-context-chip__label','itemType','bindTemplate','4313416ZVwXbt','ck-ai-chat-context-chip_new-chip','ck-ai-chat-context-chip_wide','remove','isVisible','readonly','_isAnimationOnEnterEnabled','829366lnTfxj','removeEventListener','execute','length','_createTemplateAttributes','add','_setupRemoveButtonEvent','ck-ai-chat-context-chip','lastIndexOf','_createLabelElement','set','bind','uiId','ck-ai-chat-context-controls__chip-tooltip','type','addEventListener','ck-ai-chat-context-chip__type-icon','_createTemplateChildren','small','locale','classList','span','27zqzrpL','slice','render','tooltip','content','label','_handleAnimationEndOnce','element','_createIconView'];_0x3ad9=function(){return _0x27947c;};return _0x3ad9();}const kn={'file':_0x32ae90,'document':_0x5d0307,'web-resource':_0x2ff5b5,'text':_0x32ae90,'selection':_0x58535f},xn=_0x261683(0x11e),bn=_0x261683(0x112),wn=_0x261683(0x13f),Tn=_0x261683(0x14e),En=_0x261683(0x127),An=_0x261683(0x124),Cn='n';function _0x5ee8(_0x4d36a6,_0x5a30de){const _0x3ad9f9=_0x3ad9();return _0x5ee8=function(_0x5ee8bb,_0x59bda1){_0x5ee8bb=_0x5ee8bb-0x110;let _0x158a58=_0x3ad9f9[_0x5ee8bb];return _0x158a58;},_0x5ee8(_0x4d36a6,_0x5a30de);}export class AIChatContextItemButtonView extends _0x2983d6{constructor(_0x267a35,_0xc109eb,_0x23222d,_0x2318ad,_0x5731cd=!0x1){const _0x2c8141=_0x261683;super(_0x267a35),this[_0x2c8141(0x116)]=_0x2318ad,this[_0x2c8141(0x146)](_0xc109eb,_0x23222d,_0x5731cd),this[_0x2c8141(0x14d)]();}[_0x261683(0x12f)](){const _0x49d95f=_0x261683;super[_0x49d95f(0x12f)](),this[_0x49d95f(0x116)]&&this[_0x49d95f(0x134)]&&(this[_0x49d95f(0x134)][_0x49d95f(0x12b)][_0x49d95f(0x11c)](_0x49d95f(0x111)),this[_0x49d95f(0x133)](this[_0x49d95f(0x134)],()=>{const _0x3937e1=_0x49d95f;this[_0x3937e1(0x134)]&&this[_0x3937e1(0x134)][_0x3937e1(0x12b)][_0x3937e1(0x113)](_0x3937e1(0x111));}));}[_0x261683(0x13d)](){const _0x280142=_0x261683;this[_0x280142(0x116)]=!0x1,this[_0x280142(0x134)]&&this[_0x280142(0x134)][_0x280142(0x12b)][_0x280142(0x113)](_0x280142(0x111));}[_0x261683(0x146)](_0x5efb9a,_0x79ce17,_0x272b7e){const _0x1342f4=_0x261683;this[_0x1342f4(0x121)](_0x1342f4(0x132),_0x5efb9a[_0x1342f4(0x132)]),this[_0x1342f4(0x121)](_0x1342f4(0x130),!0x0),this[_0x1342f4(0x121)](_0x1342f4(0x14f),_0x5efb9a[_0x1342f4(0x125)]),this[_0x1342f4(0x121)]('id',_0x5efb9a[_0x1342f4(0x123)]),this[_0x1342f4(0x121)](_0x1342f4(0x115),_0x79ce17),this[_0x1342f4(0x121)](_0x1342f4(0x142),_0x272b7e);}[_0x261683(0x14d)](){const _0x5b48a8=_0x261683,_0x47019a=this[_0x5b48a8(0x135)](),_0x28d207=this[_0x5b48a8(0x140)](),_0x3deee7=this[_0x5b48a8(0x150)];this[_0x5b48a8(0x136)]({'tag':_0x5b48a8(0x13c),'attributes':this[_0x5b48a8(0x11b)](_0x3deee7),'children':this[_0x5b48a8(0x128)](_0x47019a,_0x28d207,_0x3deee7)});}[_0x261683(0x11b)](_0x1a4881){const _0x7d376e=_0x261683;return{'class':[xn,_0x1a4881['if'](_0x7d376e(0x14f),wn,_0x480491=>_0x7d376e(0x14b)==_0x480491),_0x1a4881['if'](_0x7d376e(0x14f),bn,_0x2bced4=>_0x7d376e(0x138)==_0x2bced4)],'data-cke-tooltip-text':_0x1a4881['to'](_0x7d376e(0x132),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x261683(0x128)](_0x574a6e,_0x3662f3,_0x30e884){const _0x3893ed=_0x261683,_0x4a2313=this[_0x3893ed(0x120)](_0x30e884),_0x2d8b0f=this[_0x3893ed(0x145)]();return this[_0x3893ed(0x115)]?[_0x574a6e,_0x4a2313]:[_0x574a6e,_0x2d8b0f,_0x4a2313,_0x3662f3];}[_0x261683(0x120)](_0x2b25c9){const _0x4370a5=_0x261683;return{'tag':_0x4370a5(0x12c),'attributes':{'class':Tn},'children':[{'text':_0x2b25c9['to'](_0x4370a5(0x132))}]};}[_0x261683(0x140)](){const _0xa63156=_0x261683,_0x1d754a=new _0x2983d6(this[_0xa63156(0x12a)]);return _0x1d754a[_0xa63156(0x121)]({'label':_0xcc101d(this[_0xa63156(0x12a)],_0xa63156(0x141)),'icon':_0x5643c8}),this[_0xa63156(0x11d)](_0x1d754a),_0x1d754a;}[_0x261683(0x11d)](_0x3485d6){const _0x494e9d=_0x261683;_0x3485d6['on'](_0x494e9d(0x119),()=>{const _0x66ff80=_0x494e9d;this[_0x66ff80(0x143)](_0x66ff80(0x144),this['id']);});}[_0x261683(0x135)](){const _0x3f58cd=_0x261683,_0x5b0d4c=this[_0x3f58cd(0x150)],_0x51a542=new _0x461926();return _0x51a542[_0x3f58cd(0x131)]=kn[this[_0x3f58cd(0x14f)]],_0x51a542[_0x3f58cd(0x147)]({'attributes':{'class':[En,_0x5b0d4c['if'](_0x3f58cd(0x142),_0x3f58cd(0x14a),_0x52318a=>_0x52318a)]}}),_0x51a542;}[_0x261683(0x133)](_0x27142e,_0x1dc36d){const _0x4523b5=_0x261683;if(!_0x27142e)return;const _0xcdfd86=()=>{const _0x39c8f7=_0x5ee8;_0x1dc36d(),_0x27142e[_0x39c8f7(0x118)](_0x39c8f7(0x13a),_0xcdfd86),_0x27142e[_0x39c8f7(0x118)](_0x39c8f7(0x149),_0xcdfd86);};_0x27142e[_0x4523b5(0x126)](_0x4523b5(0x13a),_0xcdfd86),_0x27142e[_0x4523b5(0x126)](_0x4523b5(0x149),_0xcdfd86);}[_0x261683(0x145)](){const _0x5ac27e=_0x261683,_0x2fc1c4=new _0x245f2b(_0x5ac27e(0x129));return _0x2fc1c4[_0x5ac27e(0x122)](_0x5ac27e(0x114))['to'](this,_0x5ac27e(0x142),_0x4b8746=>_0x4b8746),_0x2fc1c4;}}function In(_0x47035b){const _0x496484=_0x261683;if(!_0x47035b)return _0x47035b;if(_0x47035b[_0x496484(0x11a)]<=0x78)return _0x47035b;const _0x305950=_0x47035b[_0x496484(0x12e)](0x0,0x78),_0x27cba2=_0x305950[_0x496484(0x11f)]('\x20');return(_0x27cba2>0x0?_0x305950[_0x496484(0x12e)](0x0,_0x27cba2):_0x305950)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2ab8a=_0x3aca;(function(_0x4b8cc6,_0x1908b2){const _0x14da71=_0x3aca,_0x930438=_0x4b8cc6();while(!![]){try{const _0x8e04bd=-parseInt(_0x14da71(0xc4))/0x1+parseInt(_0x14da71(0xff))/0x2*(parseInt(_0x14da71(0xf8))/0x3)+parseInt(_0x14da71(0xe7))/0x4*(-parseInt(_0x14da71(0xde))/0x5)+parseInt(_0x14da71(0xf1))/0x6*(-parseInt(_0x14da71(0x10b))/0x7)+parseInt(_0x14da71(0xe9))/0x8*(-parseInt(_0x14da71(0xc2))/0x9)+-parseInt(_0x14da71(0xe1))/0xa*(-parseInt(_0x14da71(0xe4))/0xb)+parseInt(_0x14da71(0xf4))/0xc;if(_0x8e04bd===_0x1908b2)break;else _0x930438['push'](_0x930438['shift']());}catch(_0x42c0b4){_0x930438['push'](_0x930438['shift']());}}}(_0x5b24,0x56847));import{FocusTracker as _0x5667c0,KeystrokeHandler as _0x4251d9}from'ckeditor5/src/utils.js';import{ButtonView as _0x33f9f7,FocusCycler as _0x29a261,LabeledFieldView as _0x53b9ca,View as _0x4c392a,FormHeaderView as _0x2c5b4d,createLabeledInputText as _0x547b90,submitHandler as _0x210f00}from'ckeditor5/src/ui.js';import{IconCheck as _0x3d9671,IconPreviousArrow as _0x37a4ba}from'@ckeditor/ckeditor5-icons';function _0x5b24(){const _0x27e610=['focusCycler','backButton','_isValidUrl','confirmButton','urlInputField','focusTracker','esc','children','fieldView','keystrokes','createCollection','element','render','_createUrlInputField','AI_CHAT_CONTEXT_URL_PLACEHOLDER','listenTo','isEnabled','_createConfirmButton','set','ck-ai-chat-context-controls__url-input-section','_createBackButton','value','_updateConfirmButtonState','22180lfDBvV','fire','trim','180dRIZDe','submit','ck-ai-chat-context-controls__url-form','57365xjubDR','submitUrl','setError','572OsKxtw','AI_CHAT_CONTEXT_URL_LABEL','488LAeHrA','AI_CHAT_CONTEXT_URL_ADD_URL','_setupEventHandlers','ck-button-icon','div','locale','_setupTemplate','stop','14484BgYLhL','destroy','getValue','23852448QcLalF','shift+tab','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','303594gehtKb','form','_setupKeystrokes','errorText','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','input','_focusables','2cYslBA','focus','clear','cancel','tab','execute','setTemplate','clearError','AI_CHAT_CONTEXT_URL_INVALID_ERROR','ck-button-icon\x20ck-button-back','refreshBalloon','forEach','357ucDOSJ','_handleSubmit','76761STUjVH','ck-labeled-field-view_empty','550666RWsvbo','add','length'];_0x5b24=function(){return _0x27e610;};return _0x5b24();}function _0x3aca(_0x5e8a4a,_0x911e05){const _0x5b2472=_0x5b24();return _0x3aca=function(_0x3aca9f,_0x5ada8d){_0x3aca9f=_0x3aca9f-0xc2;let _0x331aec=_0x5b2472[_0x3aca9f];return _0x331aec;},_0x3aca(_0x5e8a4a,_0x911e05);}import{getTranslation as _0x185da1}from'../../../aicore/utils/common-translations.js';const eh=_0x2ab8a(0xe3),hh=_0x2ab8a(0xda);export class AIChatContextPanelUrlInputView extends _0x4c392a{[_0x2ab8a(0xcc)];[_0x2ab8a(0xd0)];[_0x2ab8a(0xfe)];[_0x2ab8a(0xc7)];[_0x2ab8a(0xcb)];[_0x2ab8a(0xc8)];[_0x2ab8a(0xca)];constructor(_0x2df7bb){const _0xe8da0f=_0x2ab8a;super(_0x2df7bb),this[_0xe8da0f(0xcc)]=new _0x5667c0(),this[_0xe8da0f(0xd0)]=new _0x4251d9(),this[_0xe8da0f(0xc8)]=this[_0xe8da0f(0xdb)](),this[_0xe8da0f(0xcb)]=this[_0xe8da0f(0xd4)](),this[_0xe8da0f(0xca)]=this[_0xe8da0f(0xd8)](),this[_0xe8da0f(0xfe)]=this[_0xe8da0f(0xd1)]([this[_0xe8da0f(0xc8)],this[_0xe8da0f(0xcb)],this[_0xe8da0f(0xca)]]),this[_0xe8da0f(0xc7)]=new _0x29a261({'focusables':this[_0xe8da0f(0xfe)],'focusTracker':this[_0xe8da0f(0xcc)],'keystrokeHandler':this[_0xe8da0f(0xd0)],'actions':{'focusPrevious':_0xe8da0f(0xf5),'focusNext':_0xe8da0f(0x103)}}),this[_0xe8da0f(0xef)](),this[_0xe8da0f(0xeb)](),this[_0xe8da0f(0xfa)]();}[_0x2ab8a(0xd3)](){const _0x5c3c85=_0x2ab8a;super[_0x5c3c85(0xd3)](),this[_0x5c3c85(0xfe)][_0x5c3c85(0x10a)](_0x101446=>{const _0x4a0f3c=_0x5c3c85;this[_0x4a0f3c(0xcc)][_0x4a0f3c(0xc5)](_0x101446[_0x4a0f3c(0xd2)]),this[_0x4a0f3c(0xd0)][_0x4a0f3c(0xd6)](_0x101446[_0x4a0f3c(0xd2)]);}),_0x210f00({'view':this}),this[_0x5c3c85(0x100)]();}[_0x2ab8a(0xf2)](){const _0x3c4379=_0x2ab8a;super[_0x3c4379(0xf2)](),this[_0x3c4379(0xcc)][_0x3c4379(0xf2)](),this[_0x3c4379(0xd0)][_0x3c4379(0xf2)]();}[_0x2ab8a(0x100)](){const _0x58965a=_0x2ab8a;this[_0x58965a(0xcb)][_0x58965a(0x100)]();}[_0x2ab8a(0xf3)](){const _0x121687=_0x2ab8a;return this[_0x121687(0xcb)][_0x121687(0xcf)][_0x121687(0xd2)]?.[_0x121687(0xdc)]?.[_0x121687(0xe0)]()||'';}[_0x2ab8a(0x101)](){const _0x55ff88=_0x2ab8a;this[_0x55ff88(0xcb)][_0x55ff88(0xcf)][_0x55ff88(0xd2)][_0x55ff88(0xdc)]='',this[_0x55ff88(0xcb)][_0x55ff88(0xfb)]=null,this[_0x55ff88(0xca)][_0x55ff88(0xd7)]=!0x1;}[_0x2ab8a(0xe6)](_0x4a1b96){const _0x5ae07c=_0x2ab8a;this[_0x5ae07c(0xcb)][_0x5ae07c(0xfb)]=_0x4a1b96,this[_0x5ae07c(0xdd)](),this[_0x5ae07c(0xdf)](_0x5ae07c(0x109));}[_0x2ab8a(0x106)](){const _0x18d8d8=_0x2ab8a;this[_0x18d8d8(0xcb)][_0x18d8d8(0xfb)]=null,this[_0x18d8d8(0xdd)]();}[_0x2ab8a(0xdb)](){const _0x286902=_0x2ab8a,_0x4a2097=new _0x33f9f7(this[_0x286902(0xee)]);return _0x4a2097[_0x286902(0xd9)]({'icon':_0x37a4ba,'tooltip':_0x185da1(this[_0x286902(0xee)],_0x286902(0xf6)),'tooltipPosition':'n','class':_0x286902(0x108)}),_0x4a2097;}[_0x2ab8a(0xd4)](){const _0x2eb282=_0x2ab8a,_0x3e78ac=new _0x53b9ca(this[_0x2eb282(0xee)],_0x547b90);return _0x3e78ac[_0x2eb282(0xd9)]({'label':_0x185da1(this[_0x2eb282(0xee)],_0x2eb282(0xe8)),'class':_0x2eb282(0xc3)}),_0x3e78ac[_0x2eb282(0xcf)][_0x2eb282(0xd9)]({'placeholder':_0x185da1(this[_0x2eb282(0xee)],_0x2eb282(0xd5))}),_0x3e78ac;}[_0x2ab8a(0xd8)](){const _0xf63cd1=_0x2ab8a,_0x24160b=new _0x33f9f7(this[_0xf63cd1(0xee)]);return _0x24160b[_0xf63cd1(0xd9)]({'icon':_0x3d9671,'tooltip':_0x185da1(this[_0xf63cd1(0xee)],_0xf63cd1(0xea)),'tooltipPosition':'n','class':_0xf63cd1(0xec),'type':_0xf63cd1(0xe2),'isEnabled':!0x1}),_0x24160b;}[_0x2ab8a(0xef)](){const _0x34f69f=_0x2ab8a,_0x279a05=new _0x2c5b4d(this[_0x34f69f(0xee)],{'label':_0x185da1(this[_0x34f69f(0xee)],_0x34f69f(0xea)),'class':_0x34f69f(0xfc)});_0x279a05[_0x34f69f(0xce)][_0x34f69f(0xc5)](this[_0x34f69f(0xc8)],0x0),this[_0x34f69f(0x105)]({'tag':_0x34f69f(0xf9),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x279a05,{'tag':_0x34f69f(0xed),'attributes':{'class':hh},'children':[this[_0x34f69f(0xcb)],this[_0x34f69f(0xca)]]}]});}[_0x2ab8a(0xeb)](){const _0x2caee7=_0x2ab8a;this[_0x2caee7(0xc8)]['on'](_0x2caee7(0x104),()=>{const _0x4030ea=_0x2caee7;this[_0x4030ea(0x101)](),this[_0x4030ea(0xdf)](_0x4030ea(0x102));}),this[_0x2caee7(0xcb)][_0x2caee7(0xcf)]['on'](_0x2caee7(0xfd),()=>{const _0x16d0a3=_0x2caee7;this[_0x16d0a3(0x106)](),this[_0x16d0a3(0xdd)](),this[_0x16d0a3(0xdf)](_0x16d0a3(0x109));}),this['on'](_0x2caee7(0xe2),_0x1799c8=>{const _0x346123=_0x2caee7;_0x1799c8[_0x346123(0xf0)](),this[_0x346123(0x10c)]();});}[_0x2ab8a(0xfa)](){const _0x4bcaec=_0x2ab8a;this[_0x4bcaec(0xd0)][_0x4bcaec(0xd9)](_0x4bcaec(0xcd),(_0x40d200,_0x51c3c5)=>{const _0x43f6df=_0x4bcaec;this[_0x43f6df(0x101)](),this[_0x43f6df(0xdf)](_0x43f6df(0x102)),_0x51c3c5();});}[_0x2ab8a(0x10c)](){const _0x42dcf6=_0x2ab8a,_0xd0941c=this[_0x42dcf6(0xf3)]()[_0x42dcf6(0xe0)]();_0xd0941c?this[_0x42dcf6(0xc9)](_0xd0941c)?(this[_0x42dcf6(0x106)](),this[_0x42dcf6(0xdf)](_0x42dcf6(0xe5),_0xd0941c)):this[_0x42dcf6(0xe6)](_0x185da1(this[_0x42dcf6(0xee)],_0x42dcf6(0x107))):this[_0x42dcf6(0xe6)](_0x185da1(this[_0x42dcf6(0xee)],_0x42dcf6(0xf7)));}[_0x2ab8a(0xdd)](){const _0x437a2e=_0x2ab8a,_0x361fd5=this[_0x437a2e(0xf3)]()[_0x437a2e(0xe0)](),_0x1bba4b=!!this[_0x437a2e(0xcb)][_0x437a2e(0xfb)];this[_0x437a2e(0xca)][_0x437a2e(0xd7)]=_0x361fd5[_0x437a2e(0xc6)]>0x0&&!_0x1bba4b;}[_0x2ab8a(0xc9)](_0x1000f7){try{return!!new URL(_0x1000f7);}catch{return!0x1;}}}
|
|
@@ -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 _0x2ca822=_0x22fc;(function(_0xcc8b7e,_0x4eb5f2){const _0x3de790=_0x22fc,_0x5051cf=_0xcc8b7e();while(!![]){try{const _0x20b21c=parseInt(_0x3de790(0x81))/0x1*(-parseInt(_0x3de790(0x86))/0x2)+-parseInt(_0x3de790(0xff))/0x3+-parseInt(_0x3de790(0xb7))/0x4+-parseInt(_0x3de790(0x92))/0x5+parseInt(_0x3de790(0xa8))/0x6+parseInt(_0x3de790(0xc4))/0x7+-parseInt(_0x3de790(0xf0))/0x8*(-parseInt(_0x3de790(0xdb))/0x9);if(_0x20b21c===_0x4eb5f2)break;else _0x5051cf['push'](_0x5051cf['shift']());}catch(_0x561444){_0x5051cf['push'](_0x5051cf['shift']());}}}(_0x1d5f,0x89782));import{BalloonPanelView as _0x401041,ButtonView as _0x273dfd,clickOutsideHandler as _0x251fd1,FileDialogButtonView as _0x13e297,IconView as _0xd14263,View as _0x6a0a2c}from'ckeditor5/src/ui.js';function _0x22fc(_0x146fd8,_0x536704){const _0x1d5f13=_0x1d5f();return _0x22fc=function(_0x22fc63,_0x18387c){_0x22fc63=_0x22fc63-0x80;let _0x3e2e19=_0x1d5f13[_0x22fc63];return _0x3e2e19;},_0x22fc(_0x146fd8,_0x536704);}import{IconBrowseFiles as _0x1c4317,IconDocument as _0xc8a123,IconDocumentOutline as _0x5eb0fb,IconDropdownArrow as _0x22a845,IconLink as _0xa0f7df,IconPaperClip as _0x55d586}from'@ckeditor/ckeditor5-icons';function _0x1d5f(){const _0x738113=['isReadOnly','_conversationContextsChips','populateSourceResourceBalloon','hide','_handleUrlSubmit','1ubIZOL','closest','_toggleAddContextBalloon','showSourceResourcesBalloon','_createAddContextBalloonPanelView','1330258EMOcFF','enabled','menuitem','clearConversationContextItems','updateResourceState','setContainerElement','_setupUrlBalloonClickOutsideHandler','show','_handleAddContextButtonClick','isVisible','reorganizeChips','refreshBalloon','4772265Umqgkn','createCollection','AI_CHAT_CONTEXT_FILE_LABEL','label','arrowView','addResourceToContext','buttonView','div','ck-ai-chat-context-controls__add-context-balloon-panel','source','current','render','addDocumentToContext','ck-ai-chat-context-controls__add-context-button','cancel','isAnyResourceBalloonVisible','children','northArrowSouthEast','addContextItem','_addContextBalloonConfig','_createResourcesBalloonView','addUrlToContext','3538980juzDgb','execute','setConversationContext','ck-ai-chat-controls_context_show-more-button','_createAddContextButtonView','files','_urlBalloonPanelView','_getLimiterElement','balloonView','removeContextItemChip','conversation','find','setContextItemLoading','destroy','_resourcesBalloonView','723224KnEyPI','southArrowNorthWest','icon','_setupTemplate','northArrowSouth','bind','southArrowNorthEast','_currentContextsChips','isHidden','_overflowManager','setTemplate','type','_setBalloonPanelContent','7655606gWDBUI','showUrlBalloonPanel','isEnabled','remove','hideUrlBalloonPanel','ck-ai-chat-context-controls__url-balloon-panel','set','hideAddContextBalloonPanel','_setupAllBalloonClickOutsideHandlers','AI_CHAT_CONTEXT_URL_LABEL','urls','clearCurrentContextItems','_createArrowView','__arrow','isOn','bodyCollection','focus','loadSourceResources','pin','ck-ai-chat-context-controls__balloon-button','defaultPositions','ck-ai-chat-context-controls','_urlInputView','5897403djiGXz','_bindEventHandlers','tooltip','ck-ai-chat','done','isLoading','_createBalloonButton','ck-ai-chat-context-controls__show-more-balloon-panel','ck-ai-chat-context-controls__pending-contexts','ck-ai-chat-controls-button','southArrowNorth','_createContextButton','ck-ai-chat-context-chips-wrapper-balloon','_removeContextFromCollection','extendTemplate','add','addFileToContext','setAddContextOptions','northArrowSouthWest','document','element','16dJWOWc','showAddContextBalloonPanel','_showSourceResourcesBalloon','sources','content','body','AI_CHAT_CONTEXT_ADD_CONTEXT','_addContextToCollection','_createBaseBalloonPanel','ck-ai-chat-context-controls__balloon-button-source','closeSourceResourceBalloon','fire','clear','addContextButtonView','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','1891680NvAcdS','submitUrl','_createUrlBalloonPanelView','overflowChips','_addContextBalloonPanelView','_setAddContextButtonEnabled','_addUrlContent','locale','ck-reset_all-excluded','_setupAddContextBalloonClickOutsideHandler','removeContextItem'];_0x1d5f=function(){return _0x738113;};return _0x1d5f();}import{AIChatContextItemButtonView as _0x1c7391}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x571f35}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x55dbab}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x22cc11}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x238d7b}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x2ca822(0x9e),_0x2ca822(0xeb),_0x2ca822(0xa7),_0x2ca822(0x97),_0x2ca822(0x109),_0x2ca822(0xd5)];const Bo=_0x2ca822(0xd9),bo=_0x2ca822(0xe3),To=_0x2ca822(0x9a),Ao=_0x2ca822(0x9f),ko=_0x2ca822(0xc9),Eo=_0x2ca822(0xd7),vo=_0x2ca822(0xf9),go=_0x2ca822(0xe4),Vo=_0x2ca822(0xe7),fo=_0x2ca822(0xab),Io=_0x2ca822(0xe2),Po=_0x2ca822(0xde),Ro=[_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xed)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xbb)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xa3)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xb8)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xe5)],_0x401041[_0x2ca822(0xd8)][_0x2ca822(0xbd)]];export class AIChatContextPanelView extends _0x6a0a2c{[_0x2ca822(0xfd)];[_0x2ca822(0xbe)]=this[_0x2ca822(0x93)]();[_0x2ca822(0x10b)]=this[_0x2ca822(0x93)]();[_0x2ca822(0xc0)];[_0x2ca822(0x103)];[_0x2ca822(0xae)];[_0x2ca822(0xda)];[_0x2ca822(0xb6)];[_0x2ca822(0xa5)];[_0x2ca822(0xd3)];constructor(_0x23f24b,_0x3271c1){const _0x5eafe7=_0x2ca822;super(_0x23f24b),this[_0x5eafe7(0xd3)]=_0x3271c1,this[_0x5eafe7(0xbe)]=this[_0x5eafe7(0x93)](),this[_0x5eafe7(0x10b)]=this[_0x5eafe7(0x93)](),this[_0x5eafe7(0xfd)]=this[_0x5eafe7(0xac)](_0x23f24b),this[_0x5eafe7(0x103)]=this[_0x5eafe7(0x85)](_0x23f24b),this[_0x5eafe7(0xae)]=this[_0x5eafe7(0x101)](_0x23f24b),this[_0x5eafe7(0xb6)]=this[_0x5eafe7(0xa6)](_0x23f24b,_0x3271c1);const _0x4ffb41={'cssClasses':{'showMoreButton':fo,'showMoreBalloon':Io,'overflowContainer':Vo,'controlsButton':go}};this[_0x5eafe7(0xc0)]=new _0x55dbab(_0x23f24b,this[_0x5eafe7(0xbe)],_0x4ffb41,this[_0x5eafe7(0xd3)],this),this[_0x5eafe7(0xa5)]={'buttonView':this[_0x5eafe7(0xfd)],'balloonView':this[_0x5eafe7(0x103)],'hideMethod':this[_0x5eafe7(0xcb)][_0x5eafe7(0xbc)](this),'showMethod':this[_0x5eafe7(0xf1)][_0x5eafe7(0xbc)](this)},this[_0x5eafe7(0xba)](),this[_0x5eafe7(0xdc)]();}[_0x2ca822(0x9d)](){const _0x587ba9=_0x2ca822;super[_0x587ba9(0x9d)](),this[_0x587ba9(0xcc)](),this[_0x587ba9(0xc0)][_0x587ba9(0x8b)](this[_0x587ba9(0xef)]),this[_0x587ba9(0xc0)][_0x587ba9(0x90)]();}[_0x2ca822(0xb5)](){const _0x2e4330=_0x2ca822;super[_0x2e4330(0xb5)](),this[_0x2e4330(0xc0)][_0x2e4330(0xb5)](),this[_0x2e4330(0xb6)][_0x2e4330(0xb5)]();}[_0x2ca822(0xa4)](_0x13b33a,_0x2b2391){const _0x5ccd13=_0x2ca822,_0x57c430=this[_0x5ccd13(0xe6)](_0x13b33a,_0x5ccd13(0x9c),!0x0,_0x2b2391);this[_0x5ccd13(0xf7)](_0x57c430,this[_0x5ccd13(0xbe)]),this[_0x5ccd13(0xc0)][_0x5ccd13(0x90)]();}[_0x2ca822(0x109)](_0x1ea3f5){const _0x952cee=_0x2ca822;this[_0x952cee(0xe8)](_0x1ea3f5,this[_0x952cee(0xbe)]),this[_0x952cee(0xe8)](_0x1ea3f5,this[_0x952cee(0xc0)][_0x952cee(0x102)]),this[_0x952cee(0xc0)][_0x952cee(0x90)]();}[_0x2ca822(0xb4)](_0x3e30e0,_0x413509){const _0x1f9798=_0x2ca822;let _0x178571=this[_0x1f9798(0xbe)][_0x1f9798(0xb3)](_0xcf2192=>_0xcf2192['id']===_0x3e30e0);_0x178571||(_0x178571=this[_0x1f9798(0xc0)][_0x1f9798(0x102)][_0x1f9798(0xb3)](_0x4ad5cc=>_0x4ad5cc['id']===_0x3e30e0)),_0x178571&&(_0x178571[_0x1f9798(0xe0)]=_0x413509);}[_0x2ca822(0xaa)](_0x49f786){const _0x2404ce=_0x2ca822;this[_0x2404ce(0x10b)][_0x2404ce(0xfc)]();for(const _0x22ff5c of _0x49f786){const _0x1d229e=this[_0x2404ce(0xe6)](_0x22ff5c,_0x2404ce(0xb2),!0x1,!0x1);this[_0x2404ce(0xf7)](_0x1d229e,this[_0x2404ce(0x10b)]);}}[_0x2ca822(0xcf)](){const _0x2cd87c=_0x2ca822;this[_0x2cd87c(0xbe)][_0x2cd87c(0xfc)](),this[_0x2cd87c(0xc0)][_0x2cd87c(0xfc)]();}[_0x2ca822(0x89)](){const _0x43c8fe=_0x2ca822;this[_0x43c8fe(0x10b)][_0x43c8fe(0xfc)]();}[_0x2ca822(0x8a)](_0x129710,_0x423fe5,_0x357227){const _0x23b443=_0x2ca822;this[_0x23b443(0xb6)][_0x23b443(0x8a)](_0x129710,_0x423fe5,_0x357227);}[_0x2ca822(0xcb)](){const _0x1bd0be=_0x2ca822;this[_0x1bd0be(0x83)](!0x1);}[_0x2ca822(0xf1)](){const _0xda8dc6=_0x2ca822;this[_0xda8dc6(0x83)](!0x0);}[_0x2ca822(0xc8)](){const _0xb0ce4=_0x2ca822;this[_0xb0ce4(0xae)][_0xb0ce4(0x10d)](),this[_0xb0ce4(0xfd)][_0xb0ce4(0xd2)]=!0x1,this[_0xb0ce4(0xda)]&&this[_0xb0ce4(0xda)][_0xb0ce4(0xfc)]();}[_0x2ca822(0xc5)](){const _0x238319=_0x2ca822;this[_0x238319(0xae)][_0x238319(0x8d)](),this[_0x238319(0xfd)][_0x238319(0xd2)]=!0x0;}[_0x2ca822(0xf2)](_0xe108dd){const _0x279859=_0x2ca822;this[_0x279859(0xb6)][_0x279859(0x84)](_0xe108dd),this[_0x279859(0xfd)][_0x279859(0xd2)]=!0x0;}[_0x2ca822(0x10c)](_0x1c3d1f,_0x26ad3a,_0x598892,_0x4ca988){const _0x486ef8=_0x2ca822;this[_0x486ef8(0xb6)][_0x486ef8(0x10c)](_0x1c3d1f,_0x598892,_0x4ca988);}[_0x2ca822(0xfa)](_0x5aef9e){const _0x51c477=_0x2ca822;this[_0x51c477(0xb6)][_0x51c477(0xfa)](_0x5aef9e),this[_0x51c477(0xfd)][_0x51c477(0xd2)]=!0x1;}[_0x2ca822(0xec)](_0x5c8b72){const _0x33911a=_0x2ca822;this[_0x33911a(0xc3)](this[_0x33911a(0x103)],this[_0x33911a(0x106)],_0x5c8b72),this[_0x33911a(0x104)](_0x5c8b72);}[_0x2ca822(0x104)](_0x52f9b8){const _0x2fa272=_0x2ca822,_0x2eb34c=!_0x52f9b8[_0x2fa272(0xee)][_0x2fa272(0xbf)]&&_0x52f9b8[_0x2fa272(0xee)][_0x2fa272(0x87)],_0x5585dd=_0x52f9b8[_0x2fa272(0xce)][_0x2fa272(0x87)],_0x170e78=_0x52f9b8[_0x2fa272(0xad)][_0x2fa272(0x87)];this[_0x2fa272(0xfd)][_0x2fa272(0xc6)]=_0x2eb34c||_0x5585dd||_0x170e78;}[_0x2ca822(0xba)](){const _0x3e1fa8=_0x2ca822;this[_0x3e1fa8(0xc1)]({'tag':_0x3e1fa8(0x99),'attributes':{'class':[Bo,_0x3e1fa8(0x107)]},'children':[{'tag':_0x3e1fa8(0x99),'attributes':{'class':bo},'children':this[_0x3e1fa8(0xbe)]}]});}[_0x2ca822(0xdc)](){const _0x15ba29=_0x2ca822;this[_0x15ba29(0xfd)]['on'](_0x15ba29(0xa9),()=>{const _0x5e55ae=_0x15ba29;this[_0x5e55ae(0x8e)]();});}[_0x2ca822(0xac)](_0x554753){const _0x273739=_0x2ca822,_0x3a9adc=new _0x273dfd(_0x554753);return _0x3a9adc[_0x273739(0xca)]({'label':_0x22cc11(_0x554753,_0x273739(0xf6)),'class':go+'\x20'+Ao,'icon':_0x55d586,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x3a9adc;}[_0x2ca822(0x85)](_0x59567a){const _0x449bc2=_0x2ca822;return this[_0x449bc2(0xf8)](_0x59567a,To);}[_0x2ca822(0x101)](_0x5a8d68){const _0xb5e5bf=_0x2ca822,_0x57ffd4=this[_0xb5e5bf(0xf8)](_0x5a8d68,ko);return this[_0xb5e5bf(0x105)](_0x57ffd4,_0x5a8d68),_0x57ffd4;}[_0x2ca822(0xa6)](_0x32ad5a,_0x2f4333){const _0x555780=_0x2ca822;return new _0x238d7b(_0x32ad5a,_0x2f4333,{'onBackToContext':()=>{const _0x1c4b89=_0x22fc;this[_0x1c4b89(0xf1)](),this[_0x1c4b89(0x103)][_0x1c4b89(0xd6)]({'target':this[_0x1c4b89(0xfd)][_0x1c4b89(0xef)],'limiter':this[_0x1c4b89(0xaf)](),'positions':Ro});},'onResourceSelected':(_0x91713e,_0x19e0e5)=>{const _0x1c4ce1=_0x22fc;this[_0x1c4ce1(0xfb)](_0x1c4ce1(0x97),{'source':_0x91713e,'resource':_0x19e0e5});},'onLoadSourceResources':_0x15d2d6=>{const _0x256250=_0x22fc;this[_0x256250(0xfb)](_0x256250(0xd5),_0x15d2d6);},'onBalloonClosed':()=>{const _0x2a3019=_0x22fc;this[_0x2a3019(0xfd)][_0x2a3019(0xd2)]=!0x1;},'getLimiterElement':()=>this[_0x555780(0xaf)](),'getTargetElement':()=>this[_0x555780(0xfd)][_0x555780(0xef)]});}[_0x2ca822(0xaf)](){const _0x4a5a0c=_0x2ca822;return this[_0x4a5a0c(0xef)]?.[_0x4a5a0c(0x82)]('.'+Po)||document[_0x4a5a0c(0xf5)];}[_0x2ca822(0xf8)](_0x26ba0e,_0x145230){const _0x3ee8ac=_0x2ca822,_0xf6019f=new _0x401041(_0x26ba0e);return _0xf6019f[_0x3ee8ac(0xe9)]({'attributes':{'class':_0x145230}}),this[_0x3ee8ac(0xd3)][_0x3ee8ac(0xea)](_0xf6019f),_0xf6019f;}[_0x2ca822(0xc3)](_0x553551,_0x5c48f2,_0x167832){const _0x1a0902=_0x2ca822;if(_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xfc)](),!_0x167832[_0x1a0902(0xee)][_0x1a0902(0xbf)]&&_0x167832[_0x1a0902(0xee)][_0x1a0902(0x87)]){const _0x3d006a=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x22cc11(_0x5c48f2,_0x1a0902(0xfe)),'icon':_0xc8a123});_0x3d006a['on'](_0x1a0902(0xa9),()=>{const _0x2d5039=_0x1a0902;this[_0x2d5039(0xfb)](_0x2d5039(0x9e)),this[_0x2d5039(0xcb)]();}),_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x3d006a);}if(_0x167832[_0x1a0902(0xce)][_0x1a0902(0x87)]){const _0x130cdc=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x22cc11(_0x5c48f2,_0x1a0902(0xcd)),'icon':_0xa0f7df});_0x130cdc['on'](_0x1a0902(0xa9),()=>{const _0x50955e=_0x1a0902;this[_0x50955e(0xcb)](),this[_0x50955e(0xc5)](),this[_0x50955e(0xae)][_0x50955e(0xd6)]({'target':this[_0x50955e(0xfd)][_0x50955e(0xef)],'limiter':this[_0x50955e(0xaf)](),'positions':Ro}),this[_0x50955e(0xda)][_0x50955e(0xd4)]();}),_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x130cdc);}if(_0x167832[_0x1a0902(0xad)][_0x1a0902(0x87)]){const _0x349696=new _0x13e297(_0x5c48f2);_0x349696[_0x1a0902(0xca)]({'label':_0x22cc11(_0x5c48f2,_0x1a0902(0x94)),'icon':_0x1c4317,'withText':!0x0,'tooltip':!0x0,'class':Eo,'allowMultipleFiles':!0x0}),_0x349696['on'](_0x1a0902(0xdf),(_0x52de69,_0x360823)=>{const _0x181d2c=_0x1a0902;this[_0x181d2c(0xfb)](_0x181d2c(0xeb),_0x360823),this[_0x181d2c(0xcb)]();}),_0x349696[_0x1a0902(0xdd)]=!0x0,_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x349696);}for(const _0x44d14c of _0x167832[_0x1a0902(0xf3)]){const _0x216ebb=this[_0x1a0902(0xe1)](_0x5c48f2,{'label':_0x44d14c[_0x1a0902(0x95)],'icon':_0x44d14c[_0x1a0902(0xb9)]||_0x5eb0fb,'type':_0x1a0902(0x9b)});_0x553551[_0x1a0902(0xf4)][_0x1a0902(0xea)](_0x216ebb),_0x216ebb['on'](_0x1a0902(0xa9),()=>{const _0x24ceaf=_0x1a0902;this[_0x24ceaf(0xcb)](),this[_0x24ceaf(0xf2)](_0x44d14c);});}}[_0x2ca822(0x105)](_0x524494,_0x43886a){const _0x1042f0=_0x2ca822;this[_0x1042f0(0xda)]=new _0x571f35(_0x43886a),this[_0x1042f0(0xda)]['on'](_0x1042f0(0x100),(_0x39a251,_0x51785b)=>{const _0x741c28=_0x1042f0;this[_0x741c28(0x80)](_0x51785b);}),this[_0x1042f0(0xda)]['on'](_0x1042f0(0xa0),()=>{const _0x4ee6a9=_0x1042f0;this[_0x4ee6a9(0xc8)](),this[_0x4ee6a9(0xf1)](),this[_0x4ee6a9(0x103)][_0x4ee6a9(0xd6)]({'target':this[_0x4ee6a9(0xfd)][_0x4ee6a9(0xef)],'limiter':this[_0x4ee6a9(0xaf)](),'positions':Ro});}),this[_0x1042f0(0xda)]['on'](_0x1042f0(0x91),()=>{const _0x5c67c5=_0x1042f0;this[_0x5c67c5(0xae)][_0x5c67c5(0x8f)]&&this[_0x5c67c5(0xae)][_0x5c67c5(0xd6)]({'target':this[_0x5c67c5(0xfd)][_0x5c67c5(0xef)],'limiter':this[_0x5c67c5(0xaf)](),'positions':Ro});}),_0x524494[_0x1042f0(0xf4)][_0x1042f0(0xea)](this[_0x1042f0(0xda)]);}[_0x2ca822(0xe1)](_0x57e194,_0x1e7a42){const _0x409beb=_0x2ca822,_0x19a030=_0x409beb(0x9b)===_0x1e7a42[_0x409beb(0xc2)]?new SourcesBalloonButtonView(_0x57e194):new _0x273dfd(_0x57e194);return _0x19a030[_0x409beb(0xca)]({'label':_0x1e7a42[_0x409beb(0x95)],'icon':_0x1e7a42[_0x409beb(0xb9)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Eo}),_0x19a030;}[_0x2ca822(0xcc)](){const _0x55e594=_0x2ca822;this[_0x55e594(0x108)](),this[_0x55e594(0x8c)]();}[_0x2ca822(0x8c)](){const _0x2a1372=_0x2ca822;_0x251fd1({'emitter':this[_0x2a1372(0xae)],'contextElements':[this[_0x2a1372(0xae)][_0x2a1372(0xef)]],'callback':()=>{const _0x209be6=_0x2a1372;this[_0x209be6(0xc8)]();},'activator':()=>this[_0x2a1372(0xae)][_0x2a1372(0x8f)]});}[_0x2ca822(0x83)](_0x397404){const _0x3c6019=_0x2ca822,_0x45a62e=this[_0x3c6019(0xa5)];_0x45a62e[_0x3c6019(0x98)][_0x3c6019(0xd2)]=_0x397404,_0x397404?_0x45a62e[_0x3c6019(0xb0)][_0x3c6019(0x8d)]():_0x45a62e[_0x3c6019(0xb0)][_0x3c6019(0x10d)]();}[_0x2ca822(0x108)](){const _0x4f007a=_0x2ca822,{balloonView:_0x38d9bc,buttonView:_0x40cfa7,hideMethod:_0x5e3a65}=this[_0x4f007a(0xa5)];_0x251fd1({'emitter':_0x38d9bc,'contextElements':[_0x38d9bc[_0x4f007a(0xef)],_0x40cfa7[_0x4f007a(0xef)]],'callback':()=>{_0x5e3a65();},'activator':()=>_0x40cfa7[_0x4f007a(0xd2)]&&!this[_0x4f007a(0xae)][_0x4f007a(0x8f)]&&!this[_0x4f007a(0xb6)][_0x4f007a(0xa1)]()});}[_0x2ca822(0xe6)](_0x5e0cf0,_0x5d7c21,_0x1544d1=!0x1,_0xa2b390=!0x1){const _0x3fbb1f=_0x2ca822,_0x1699be=_0x3fbb1f(0xb2)===_0x5d7c21||!0x0===_0x5e0cf0[_0x3fbb1f(0x10a)],_0x3bc5a0=new _0x1c7391(this[_0x3fbb1f(0x106)],_0x5e0cf0,_0x1699be,_0x1544d1,_0xa2b390);return _0x1699be||_0x3bc5a0['on'](_0x3fbb1f(0xb1),()=>{const _0x26315c=_0x3fbb1f;this[_0x26315c(0xfb)](_0x26315c(0x109),_0x3bc5a0['id']);}),_0x3bc5a0;}[_0x2ca822(0xf7)](_0x6b2c1d,_0x5cfdc9){const _0x31be5c=_0x2ca822;_0x5cfdc9[_0x31be5c(0xea)](_0x6b2c1d,0x0);}[_0x2ca822(0xe8)](_0x2d1efb,_0x269b36){const _0x4579ce=_0x2ca822,_0x1ecb91=_0x269b36[_0x4579ce(0xb3)](_0x263585=>_0x263585['id']===_0x2d1efb);_0x1ecb91&&_0x269b36[_0x4579ce(0xc7)](_0x1ecb91);}[_0x2ca822(0x8e)](){const _0x105144=_0x2ca822;this[_0x105144(0xfd)][_0x105144(0xd2)]?this[_0x105144(0xcb)]():(this[_0x105144(0xf1)](),this[_0x105144(0x103)][_0x105144(0xd6)]({'target':this[_0x105144(0xfd)][_0x105144(0xef)],'limiter':this[_0x105144(0xaf)](),'positions':Ro}));}[_0x2ca822(0x80)](_0x5f5dce){const _0x57482b=_0x2ca822;this[_0x57482b(0xda)][_0x57482b(0xfc)](),this[_0x57482b(0xc8)](),this[_0x57482b(0xfb)](_0x57482b(0xa7),_0x5f5dce);}}export class SourcesBalloonButtonView extends _0x273dfd{[_0x2ca822(0x96)];constructor(_0xab925){const _0x3532d0=_0x2ca822;super(_0xab925),this[_0x3532d0(0xca)]({'withText':!0x0,'role':_0x3532d0(0x88)}),this[_0x3532d0(0x96)]=this[_0x3532d0(0xd0)](),this[_0x3532d0(0xe9)]({'attributes':{'class':[vo]}});}[_0x2ca822(0x9d)](){const _0x4e16ce=_0x2ca822;super[_0x4e16ce(0x9d)](),this[_0x4e16ce(0xa2)][_0x4e16ce(0xea)](this[_0x4e16ce(0x96)]);}[_0x2ca822(0xd0)](){const _0x23ccf6=_0x2ca822,_0x57142e=new _0xd14263();return _0x57142e[_0x23ccf6(0xf4)]=_0x22a845,_0x57142e[_0x23ccf6(0xe9)]({'attributes':{'class':vo+_0x23ccf6(0xd1)}}),_0x57142e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5606(){const _0x316036=['abortPromptStream','3292slaVvj','ck-reset_all','609065LKKGPz','ai-chat-controls-loader__cancel-button','set','fire','ck-ai-chat-controls-loader-icon','4199922bckszR','587480HSGaKY','div','execute','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader','AI_CHAT_IS_WRITING','33832gmBQeK','AI_CHAT_STOP_GENERATING','_loaderView','_cancelButtonView','_createLoaderView','2SizgJg','1408068oveUAe','231MIyEsm','152957KXHbzy','_createCancelButtonView','ck-ai-chat-controls-loader-wrapper','setTemplate','locale'];_0x5606=function(){return _0x316036;};return _0x5606();}const _0x5ef391=_0x6b6b;(function(_0x243840,_0x13e913){const _0x263dcc=_0x6b6b,_0x45aeac=_0x243840();while(!![]){try{const _0x47f206=parseInt(_0x263dcc(0x1fd))/0x1*(-parseInt(_0x263dcc(0x1f8))/0x2)+parseInt(_0x263dcc(0x1ff))/0x3*(-parseInt(_0x263dcc(0x1ea))/0x4)+parseInt(_0x263dcc(0x1ec))/0x5+-parseInt(_0x263dcc(0x1fe))/0x6+-parseInt(_0x263dcc(0x200))/0x7+-parseInt(_0x263dcc(0x1f2))/0x8+parseInt(_0x263dcc(0x1f1))/0x9;if(_0x47f206===_0x13e913)break;else _0x45aeac['push'](_0x45aeac['shift']());}catch(_0x31b544){_0x45aeac['push'](_0x45aeac['shift']());}}}(_0x5606,0x27618));function _0x6b6b(_0x1990dd,_0x44f77f){const _0x560652=_0x5606();return _0x6b6b=function(_0x6b6bda,_0x255e2f){_0x6b6bda=_0x6b6bda-0x1e6;let _0x324330=_0x560652[_0x6b6bda];return _0x324330;},_0x6b6b(_0x1990dd,_0x44f77f);}import{ButtonView as _0x1560e0,View as _0x1eafdb}from'ckeditor5/src/ui.js';import{IconStop as _0x15c2ee}from'ckeditor5/src/icons.js';import{getTranslation as _0x4398c9}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x1eafdb{[_0x5ef391(0x1fb)];[_0x5ef391(0x1fa)];constructor(_0x38f98e){const _0x30f0ca=_0x5ef391;super(_0x38f98e),this[_0x30f0ca(0x1fb)]=this[_0x30f0ca(0x201)](),this[_0x30f0ca(0x1fa)]=this[_0x30f0ca(0x1fc)](),this[_0x30f0ca(0x1e7)]({'tag':_0x30f0ca(0x1f3),'attributes':{'class':['ck',_0x30f0ca(0x1e6),_0x30f0ca(0x1eb)]},'children':[this[_0x30f0ca(0x1fa)],this[_0x30f0ca(0x1fb)]]});}[_0x5ef391(0x201)](){const _0x3cc278=_0x5ef391,_0x424674=new _0x1560e0(this[_0x3cc278(0x1e8)]);return _0x424674[_0x3cc278(0x1ee)]({'label':_0x4398c9(this[_0x3cc278(0x1e8)],_0x3cc278(0x1f9)),'withText':!0x0,'class':_0x3cc278(0x1ed),'icon':_0x15c2ee}),_0x424674['on'](_0x3cc278(0x1f4),()=>{const _0x48dc12=_0x3cc278;this[_0x48dc12(0x1ef)](_0x48dc12(0x1e9));}),_0x424674;}[_0x5ef391(0x1fc)](){const _0x3db077=_0x5ef391,_0x4b5c63=new _0x1eafdb(this[_0x3db077(0x1e8)]);return _0x4b5c63[_0x3db077(0x1e7)]({'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f6)]},'children':[{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f0)]},'children':[{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f5)]}},{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f5)]}},{'tag':_0x3db077(0x1f3),'attributes':{'class':[_0x3db077(0x1f5)]}}]},{'text':_0x4398c9(this[_0x3db077(0x1e8)],_0x3db077(0x1f7))}]}),_0x4b5c63;}}
|