@ckeditor/ckeditor5-ai 47.0.0 → 47.1.0-alpha.0
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/ckeditor5-metadata.json +9 -2
- package/dist/index-editor.css +119 -34
- package/dist/index.css +144 -35
- 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/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.d.ts +3 -3
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +6 -0
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.d.ts +2 -4
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.d.ts +11 -4
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.d.ts +9 -0
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.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/aiconfig.d.ts +4 -0
- 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.d.ts +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.d.ts +2 -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.d.ts +2 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +3 -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 +31 -3
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +5 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.d.ts +7 -5
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.d.ts +3 -0
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +27 -3
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +13 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.d.ts +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.d.ts +4 -0
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.d.ts +5 -0
- package/src/errors.js +23 -0
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +4 -0
- package/theme/aichat/aichat-controls/model-unavailable-message.css +39 -0
- package/theme/aichat/aichat-controls.css +1 -0
- package/theme/aichat/aichat.css +0 -1
- package/theme/aichat/aichatfeed.css +9 -0
- package/theme/aichat/aisuggestioncontainer.css +7 -1
- package/theme/aireviewmode/aireviewmode-balloon-panel-suggestion.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +25 -19
- package/theme/aireviewmode/aireviewmode-check-run.css +35 -7
- package/theme/aitabs/aitabsview.css +2 -2
- package/theme/aitabs/tabs/tabsview.css +13 -3
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.d.ts +0 -16
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +0 -23
|
@@ -14,17 +14,24 @@ export declare class AIChatModels extends /* #__PURE__ */ AIChatModels_base {
|
|
|
14
14
|
/**
|
|
15
15
|
* @inheritDoc
|
|
16
16
|
*/
|
|
17
|
-
constructor({ connector }: {
|
|
17
|
+
constructor({ connector, displayedModels, defaultModelId }: {
|
|
18
18
|
connector: AIConnector;
|
|
19
|
+
displayedModels?: string | Array<string>;
|
|
20
|
+
defaultModelId?: string;
|
|
19
21
|
});
|
|
20
22
|
/**
|
|
21
23
|
* Returns a list of available AI chat models.
|
|
22
24
|
*/
|
|
23
25
|
getAll(): Promise<Array<AIChatModel>>;
|
|
26
|
+
getAvailableModels(): Promise<Array<AIChatModel>>;
|
|
27
|
+
/**
|
|
28
|
+
* Returns a specific AI chat model.
|
|
29
|
+
*/
|
|
30
|
+
getModel(modelId?: string): Promise<AIChatModel | null>;
|
|
24
31
|
/**
|
|
25
32
|
* Returns default AI chat model.
|
|
26
33
|
*/
|
|
27
|
-
getDefault(
|
|
34
|
+
getDefault(): Promise<AIChatModel | null>;
|
|
28
35
|
/**
|
|
29
36
|
* Checks whether the given model is available.
|
|
30
37
|
*/
|
|
@@ -67,9 +74,9 @@ export type AIChatModelsConfig = {
|
|
|
67
74
|
modelSelectorAlwaysVisible?: boolean;
|
|
68
75
|
/**
|
|
69
76
|
* Decides which models are visible in the model selector dropdown. It can be a string or an array of strings.
|
|
70
|
-
* It is optional and if not provided, all models are supported.
|
|
71
77
|
*
|
|
72
|
-
*
|
|
78
|
+
* * It is optional and if not provided, all models are supported.
|
|
79
|
+
* * If configured, editor will try to match the passed models by their ID, name or provider. Order by which the models are matched
|
|
73
80
|
* is later reflected in the model selector dropdown.
|
|
74
81
|
*/
|
|
75
82
|
displayedModels?: string | Array<string>;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4fe3(_0xbdd6a8,_0x50ae97){const _0x365b8e=_0x365b();return _0x4fe3=function(_0x4fe339,_0x159d32){_0x4fe339=_0x4fe339-0x1ba;let _0x1c7bee=_0x365b8e[_0x4fe339];return _0x1c7bee;},_0x4fe3(_0xbdd6a8,_0x50ae97);}const _0x4ce729=_0x4fe3;(function(_0x293b26,_0x164ffc){const _0x3a4462=_0x4fe3,_0x5dcb4f=_0x293b26();while(!![]){try{const _0x4ce7dc=parseInt(_0x3a4462(0x1d0))/0x1*(-parseInt(_0x3a4462(0x1de))/0x2)+-parseInt(_0x3a4462(0x1e0))/0x3+parseInt(_0x3a4462(0x1dc))/0x4+-parseInt(_0x3a4462(0x1d8))/0x5+-parseInt(_0x3a4462(0x1d7))/0x6+parseInt(_0x3a4462(0x1da))/0x7+parseInt(_0x3a4462(0x1c4))/0x8*(parseInt(_0x3a4462(0x1c2))/0x9);if(_0x4ce7dc===_0x164ffc)break;else _0x5dcb4f['push'](_0x5dcb4f['shift']());}catch(_0x46f0a3){_0x5dcb4f['push'](_0x5dcb4f['shift']());}}}(_0x365b,0x49485));import{EmitterMixin as _0xcd2e4c,logWarning as _0x42a2a0}from'ckeditor5/src/utils.js';export class AIChatModels extends _0xcd2e4c(){[_0x4ce729(0x1d5)]=[];[_0x4ce729(0x1c1)];[_0x4ce729(0x1cf)];[_0x4ce729(0x1c0)];constructor({connector:_0x3937a5,displayedModels:_0x3a5237,defaultModelId:_0x3c2a93}){const _0x4a991e=_0x4ce729;super(),this[_0x4a991e(0x1c1)]=_0x3937a5,this[_0x4a991e(0x1cf)]=_0x3a5237,this[_0x4a991e(0x1c0)]=_0x3c2a93;}async[_0x4ce729(0x1cd)](){const _0x5c8580=_0x4ce729;if(!this[_0x5c8580(0x1d5)][_0x5c8580(0x1c3)]){const _0x320774=this[_0x5c8580(0x1c1)][_0x5c8580(0x1bb)](),_0x35423c=(await _0x320774[_0x5c8580(0x1cc)]())[_0x5c8580(0x1d9)][_0x5c8580(0x1d3)]((_0x1d8a22,_0x314271)=>{const _0x270784=_0x5c8580,_0x54c3ea=Object[_0x270784(0x1c5)](_0x1d8a22[_0x270784(0x1bf)])[_0x270784(0x1ba)](_0x3979aa=>_0x3979aa[_0x270784(0x1ca)])[_0x270784(0x1c3)];return Object[_0x270784(0x1c5)](_0x314271[_0x270784(0x1bf)])[_0x270784(0x1ba)](_0x5428f7=>_0x5428f7[_0x270784(0x1ca)])[_0x270784(0x1c3)]-_0x54c3ea;});this[_0x5c8580(0x1d5)]=_0x35423c;}return this[_0x5c8580(0x1d5)];}async[_0x4ce729(0x1d4)](){const _0x160d52=_0x4ce729,_0x1ce18d=await this[_0x160d52(0x1cd)]();return this[_0x160d52(0x1cb)](_0x1ce18d,this[_0x160d52(0x1cf)]);}async[_0x4ce729(0x1c8)](_0x314c11){const _0x27a35b=_0x4ce729,_0x4ee89c=await this[_0x27a35b(0x1cd)]();if(!_0x4ee89c[_0x27a35b(0x1c3)])return null;if(_0x314c11){const _0x2678ad=_0x4ee89c[_0x27a35b(0x1c9)](_0x492a3a=>_0x492a3a['id']===_0x314c11);if(_0x2678ad)return _0x2678ad;_0x42a2a0(_0x27a35b(0x1d1),{'modelId':_0x314c11,'fallBackModelId':this[_0x27a35b(0x1c0)]});}return this[_0x27a35b(0x1dd)]();}async[_0x4ce729(0x1dd)](){const _0x279bf6=_0x4ce729,_0x797a05=await this[_0x279bf6(0x1d4)]();if(!_0x797a05[_0x279bf6(0x1c3)])return null;if(this[_0x279bf6(0x1c0)]){const _0x32a464=_0x797a05[_0x279bf6(0x1c9)](_0x317707=>_0x317707['id']===this[_0x279bf6(0x1c0)]);if(_0x32a464)return _0x32a464;_0x42a2a0(_0x279bf6(0x1db),{'defaultModelId':this[_0x279bf6(0x1c0)],'fallBackModelId':_0x797a05[0x0]['id']});}return _0x797a05[0x0];}async[_0x4ce729(0x1c6)](_0x147c3c){const _0x167129=_0x4ce729;return(await this[_0x167129(0x1d4)]())[_0x167129(0x1bd)](_0x2b1a1f=>_0x2b1a1f[_0x167129(0x1d2)]===_0x147c3c[_0x167129(0x1d2)]&&_0x2b1a1f[_0x167129(0x1bc)]===_0x147c3c[_0x167129(0x1bc)]);}[_0x4ce729(0x1cb)](_0x2a8849,_0x2849a4){const _0x54df79=_0x4ce729;let _0x5b7aa7;if(_0x2849a4){_0x5b7aa7=[];const _0x4fd58b=_0x54df79(0x1d6)==typeof _0x2849a4?[_0x2849a4[_0x54df79(0x1ce)]()]:_0x2849a4[_0x54df79(0x1be)](_0x36270d=>_0x36270d[_0x54df79(0x1ce)]());for(const _0x5bd37a of _0x4fd58b)for(const _0x11ea06 of _0x2a8849)(_0x11ea06['id'][_0x54df79(0x1ce)]()===_0x5bd37a||_0x11ea06[_0x54df79(0x1d2)][_0x54df79(0x1ce)]()===_0x5bd37a||_0x11ea06[_0x54df79(0x1bc)][_0x54df79(0x1ce)]()===_0x5bd37a||_0x11ea06['id'][_0x54df79(0x1ce)]()[_0x54df79(0x1c7)](_0x5bd37a))&&_0x5b7aa7[_0x54df79(0x1df)](_0x11ea06);}else _0x5b7aa7=_0x2a8849;return _0x5b7aa7;}}function _0x365b(){const _0x4d3171=['1743760iJSxSh','getDefault','294274XCrBwv','push','1143330hBVVij','filter','getModels','provider','some','map','capabilities','_defaultModelId','_connector','43245fBZygv','length','2088xXUOsh','values','isAvailable','startsWith','getModel','find','enabled','_filterModels','list','getAll','toLocaleLowerCase','_displayedModels','3gdpdhL','ai-chat-model-id-unrecognized','name','sort','getAvailableModels','_modelList','string','2924526SPJzdH','921795OOHKdp','items','730947uXexBD','ai-chat-default-model-id-unrecognized'];_0x365b=function(){return _0x4d3171;};return _0x365b();}
|
|
@@ -23,6 +23,12 @@ export declare class AIChatControlsView extends View {
|
|
|
23
23
|
* @observable
|
|
24
24
|
*/
|
|
25
25
|
isDisabled: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Indicates if the active model is available.
|
|
28
|
+
*
|
|
29
|
+
* @observable
|
|
30
|
+
*/
|
|
31
|
+
isModelAvailable: boolean;
|
|
26
32
|
constructor(locale: Locale, bodyCollection: BodyCollection);
|
|
27
33
|
/**
|
|
28
34
|
* Adds an item chip to the current context list.
|
|
@@ -100,5 +106,8 @@ export declare class AIChatControlsView extends View {
|
|
|
100
106
|
* Closes the source resource balloon and cleans up its state.
|
|
101
107
|
*/
|
|
102
108
|
closeSourceResourceBalloon(sourceId: string): void;
|
|
109
|
+
/**
|
|
110
|
+
* Focuses the prompt input.
|
|
111
|
+
*/
|
|
103
112
|
focusPromptInput(): void;
|
|
104
113
|
}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x588e27=_0x2fa3;(function(_0x59d800,_0x201218){const _0x577fff=_0x2fa3,_0x1b71f5=_0x59d800();while(!![]){try{const _0x5d25b8=parseInt(_0x577fff(0x216))/0x1+-parseInt(_0x577fff(0x1ef))/0x2+parseInt(_0x577fff(0x213))/0x3+parseInt(_0x577fff(0x21f))/0x4+parseInt(_0x577fff(0x1e9))/0x5+-parseInt(_0x577fff(0x20b))/0x6+-parseInt(_0x577fff(0x1ee))/0x7;if(_0x5d25b8===_0x201218)break;else _0x1b71f5['push'](_0x1b71f5['shift']());}catch(_0x1ecf0d){_0x1b71f5['push'](_0x1b71f5['shift']());}}}(_0x1900,0x648ce));import{ButtonView as _0x1e1e74,clickOutsideHandler as _0x42df32,View as _0x3fcccd}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x2bfc9d}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x257268}from'./controls/aichatpromptcapabilitiesview.js';function _0x1900(){const _0x1e2cc4=['updateResourceState','setInputPlaceholder','_createModelUnavailableMessageView','focusPromptInput','_shouldRestorePromptInputFocus','_createPromptInputView','abortPromptStream','setTemplate','disableModelSelector','closeSourceResourceBalloon','ck-hidden','_loaderView','element','38106mBicng','_createPromptCapabilitiesView','agent','_handlePromptInputFocus','sendUserMessage','_promptCapabilitiesView','ck-ai-chat-controls__start-new-chat-button','isDisabled','306393GUZJte','populateSourceResourceBalloon','div','396701ZoPNub','delegate','clearConversationContextUI','isLoading','execute','addContextButtonView','setIsUploadInProgress','setModelList','setAddContextOptions','816616HjKEzS','enableModelSelector','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','clearCurrentContextItems','resetMessageInput','startsWith','set','focus','removeContextItem','selectModel','setPlaceholderText','_createLoaderView','find','_modelUnavailableMessageView','locale','toggleReasoning','form','change:isLoading','_createContextPanelView','low','addContextItem','reset','2710995kPXjOJ','setModel','setConversationContext','_contextPanelView','clearPendingContextUI','5153463TecqJB','181542zSUNCC','isModelAvailable','startConversation','ck-ai-chat-controls-disabled','_displayedModels','clearConversationContextItems','setContextItemLoading','setReasoning','_promptInputView','ck-ai-chat-controls-model-unavailable-message','toggleWebSearch','bindTemplate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','setWebSearch','ck-ai-chat-controls'];_0x1900=function(){return _0x1e2cc4;};return _0x1900();}function _0x2fa3(_0x4ddef2,_0x54b945){const _0x19007b=_0x1900();return _0x2fa3=function(_0x2fa3f6,_0x16f004){_0x2fa3f6=_0x2fa3f6-0x1e3;let _0x2a8a92=_0x19007b[_0x2fa3f6];return _0x2a8a92;},_0x2fa3(_0x4ddef2,_0x54b945);}import{AIChatContextPanelView as _0x12a833,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0xfc78b7}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x506500}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0xd1223e}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x3fcccd{[_0x588e27(0x1f3)]=[];[_0x588e27(0x1ec)];[_0x588e27(0x1f7)];[_0x588e27(0x210)];[_0x588e27(0x209)];[_0x588e27(0x22c)];[_0x588e27(0x202)];constructor(_0x19ecc9,_0x4250ce){const _0x5af301=_0x588e27;super(_0x19ecc9),this[_0x5af301(0x1ec)]=this[_0x5af301(0x1e5)](_0x19ecc9,_0x4250ce),this[_0x5af301(0x1f7)]=this[_0x5af301(0x203)](_0x19ecc9),this[_0x5af301(0x210)]=this[_0x5af301(0x20c)](_0x19ecc9),this[_0x5af301(0x209)]=this[_0x5af301(0x22a)](_0x19ecc9),this[_0x5af301(0x22c)]=this[_0x5af301(0x200)](_0x19ecc9),this[_0x5af301(0x202)]=!0x1,this[_0x5af301(0x1f7)][_0x5af301(0x217)](_0x5af301(0x20f))['to'](this),this[_0x5af301(0x209)][_0x5af301(0x217)](_0x5af301(0x204))['to'](this),this[_0x5af301(0x210)][_0x5af301(0x217)](_0x5af301(0x1f9))['to'](this),this[_0x5af301(0x210)][_0x5af301(0x217)](_0x5af301(0x22e))['to'](this),this[_0x5af301(0x210)][_0x5af301(0x217)](_0x5af301(0x228))['to'](this),this[_0x5af301(0x1ec)][_0x5af301(0x217)](..._0xfc78b7)['to'](this),this[_0x5af301(0x225)](_0x5af301(0x1f0),!0x0),this[_0x5af301(0x225)](_0x5af301(0x212),!0x1);const _0x309eb6=this[_0x5af301(0x1fa)];this[_0x5af301(0x205)]({'tag':_0x5af301(0x1e3),'attributes':{'class':['ck',_0x5af301(0x1fd),_0x309eb6['if'](_0x5af301(0x212),_0x5af301(0x1f2))]},'children':[{'tag':_0x5af301(0x215),'attributes':{'class':[_0x309eb6['if'](_0x5af301(0x219),_0x5af301(0x208),_0x23a208=>_0x23a208||!this[_0x5af301(0x1f0)]),_0x309eb6['if'](_0x5af301(0x1f0),_0x5af301(0x208),_0x5ec0e9=>!_0x5ec0e9||this[_0x5af301(0x219)])]},'children':[this[_0x5af301(0x1ec)],this[_0x5af301(0x1f7)],this[_0x5af301(0x210)]]},{'tag':_0x5af301(0x215),'attributes':{'class':[_0x309eb6['if'](_0x5af301(0x219),_0x5af301(0x208),_0x28c4b2=>!_0x28c4b2)]},'children':[this[_0x5af301(0x209)]]},{'tag':_0x5af301(0x215),'attributes':{'class':[_0x309eb6['if'](_0x5af301(0x1f0),_0x5af301(0x208),_0x4f2546=>_0x4f2546)]},'children':[this[_0x5af301(0x22c)]]}]}),_0x42df32({'emitter':this[_0x5af301(0x1f7)],'activator':()=>this[_0x5af301(0x219)],'contextElements':()=>[this[_0x5af301(0x20a)]],'callback':()=>{const _0x5303eb=_0x5af301;this[_0x5303eb(0x202)]=!0x1;}}),this['on'](_0x5af301(0x1e4),this[_0x5af301(0x20e)],{'priority':_0x5af301(0x1e6)});}[_0x588e27(0x1e5)](_0x396105,_0x343927){return new _0x12a833(_0x396105,_0x343927);}[_0x588e27(0x203)](_0x4e7678){const _0x573d10=_0x588e27;return new _0x2bfc9d(_0x4e7678,this[_0x573d10(0x1ec)][_0x573d10(0x21b)]);}[_0x588e27(0x20c)](_0x313d38){return new _0x257268(_0x313d38);}[_0x588e27(0x22a)](_0x329efe){return new _0x506500(_0x329efe);}[_0x588e27(0x200)](_0x507eef){const _0x9c2d2a=_0x588e27,_0x342eb2=new ms(_0x507eef);return _0x342eb2[_0x9c2d2a(0x217)](_0x9c2d2a(0x1f1))['to'](this),_0x342eb2;}[_0x588e27(0x20e)](_0x5e32e5,_0x1f1fda,_0x167215){const _0x4c53fc=_0x588e27;_0x167215?this[_0x4c53fc(0x202)]=!0x0:this[_0x4c53fc(0x202)]&&this[_0x4c53fc(0x1f7)][_0x4c53fc(0x226)]();}[_0x588e27(0x1e7)](_0x3eb15e,_0x37c5ee){const _0x3bde69=_0x588e27;this[_0x3bde69(0x1ec)][_0x3bde69(0x1e7)](_0x3eb15e,_0x37c5ee);}[_0x588e27(0x227)](_0x434dde){const _0x4f063b=_0x588e27;this[_0x4f063b(0x1ec)][_0x4f063b(0x227)](_0x434dde);}[_0x588e27(0x1f5)](_0x48bcfb,_0x2e04d0){const _0x36c077=_0x588e27;this[_0x36c077(0x1ec)][_0x36c077(0x1f5)](_0x48bcfb,_0x2e04d0);}[_0x588e27(0x21c)](_0x1fb7dd){const _0x4ba44d=_0x588e27;this[_0x4ba44d(0x1f7)][_0x4ba44d(0x21c)](_0x1fb7dd);}[_0x588e27(0x1eb)](_0x49b384){const _0x244828=_0x588e27;this[_0x244828(0x1ec)][_0x244828(0x1eb)](_0x49b384);}[_0x588e27(0x1ed)](){const _0x575127=_0x588e27;this[_0x575127(0x1ec)][_0x575127(0x222)]();}[_0x588e27(0x218)](){const _0x21b440=_0x588e27;this[_0x21b440(0x1ec)][_0x21b440(0x1f4)]();}[_0x588e27(0x1fe)](_0x647a41,_0x2ef321,_0x1f97fa){const _0x45c60d=_0x588e27;this[_0x45c60d(0x1ec)][_0x45c60d(0x1fe)](_0x647a41,_0x2ef321,_0x1f97fa);}[_0x588e27(0x1fc)](_0x3a08d3){const _0x34ea38=_0x588e27;this[_0x34ea38(0x210)][_0x34ea38(0x1fc)](_0x3a08d3);}[_0x588e27(0x1f6)](_0x4a9cbf){const _0x5dd7c1=_0x588e27;this[_0x5dd7c1(0x210)][_0x5dd7c1(0x1f6)](_0x4a9cbf);}[_0x588e27(0x223)](){const _0x36673b=_0x588e27;this[_0x36673b(0x1f7)][_0x36673b(0x1e8)]();}[_0x588e27(0x21e)](_0x352b69){const _0x24ba45=_0x588e27;this[_0x24ba45(0x1ec)][_0x24ba45(0x21e)](_0x352b69);}[_0x588e27(0x1ff)](_0x41113a){const _0x55b414=_0x588e27;this[_0x55b414(0x1f7)][_0x55b414(0x229)](_0x41113a);}[_0x588e27(0x21d)](_0x5eea5c,_0x4e70bf){const _0xa31e63=_0x588e27;this[_0xa31e63(0x1f3)]=_0x5eea5c,this[_0xa31e63(0x210)][_0xa31e63(0x21d)](_0x5eea5c,_0x4e70bf);}[_0x588e27(0x1ea)](_0x8ce0fe){const _0x29a847=_0x588e27;(_0x8ce0fe?this[_0x29a847(0x1f3)][_0x29a847(0x22b)](_0x3e130d=>_0x3e130d['id']===_0x8ce0fe['id']):null)?(this[_0x29a847(0x1f0)]=!0x0,this[_0x29a847(0x210)][_0x29a847(0x1ea)](_0x8ce0fe)):_0x8ce0fe?.['id'][_0x29a847(0x224)](_0x29a847(0x20d))?(this[_0x29a847(0x1f0)]=!0x0,this[_0x29a847(0x210)][_0x29a847(0x1ea)](this[_0x29a847(0x1f3)][0x0])):this[_0x29a847(0x1f0)]=!0x1;}[_0x588e27(0x220)](){const _0x4f6bfa=_0x588e27;this[_0x4f6bfa(0x210)][_0x4f6bfa(0x220)]();}[_0x588e27(0x206)](_0xb23555){const _0x2f84ac=_0x588e27;this[_0x2f84ac(0x210)][_0x2f84ac(0x206)](_0xb23555);}[_0x588e27(0x214)](_0x103212,_0x349d2e,_0x47ba26,_0x227941){const _0x1f13d8=_0x588e27;this[_0x1f13d8(0x1ec)][_0x1f13d8(0x214)](_0x103212,_0x349d2e,_0x47ba26,_0x227941);}[_0x588e27(0x207)](_0x2dd85b){const _0x31f336=_0x588e27;this[_0x31f336(0x1ec)][_0x31f336(0x207)](_0x2dd85b);}[_0x588e27(0x201)](){const _0x55c1b1=_0x588e27;this[_0x55c1b1(0x1f7)][_0x55c1b1(0x226)]();}}class ms extends _0x3fcccd{constructor(_0x4e07d7){const _0x5f3ccd=_0x588e27;super(_0x4e07d7);const _0x1c224e=new _0x1e1e74(_0x4e07d7);_0x1c224e[_0x5f3ccd(0x225)]({'label':_0xd1223e(this[_0x5f3ccd(0x22d)],_0x5f3ccd(0x1fb)),'withText':!0x0,'class':[_0x5f3ccd(0x211)],'tooltip':''}),_0x1c224e[_0x5f3ccd(0x217)](_0x5f3ccd(0x21a))['to'](this,_0x5f3ccd(0x1f1)),this[_0x5f3ccd(0x205)]({'tag':_0x5f3ccd(0x215),'attributes':{'class':['ck',_0x5f3ccd(0x1f8)]},'children':[{'tag':'p','children':[{'text':_0xd1223e(this[_0x5f3ccd(0x22d)],_0x5f3ccd(0x221))+'\x20'},_0x1c224e]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f0162=_0xbac0;(function(_0x4e9f56,_0x53fe2a){const _0x47e304=_0xbac0,_0x552346=_0x4e9f56();while(!![]){try{const _0x22fe39=parseInt(_0x47e304(0x16c))/0x1+-parseInt(_0x47e304(0x162))/0x2*(-parseInt(_0x47e304(0x169))/0x3)+parseInt(_0x47e304(0x18d))/0x4*(-parseInt(_0x47e304(0x157))/0x5)+-parseInt(_0x47e304(0x183))/0x6*(parseInt(_0x47e304(0x14d))/0x7)+-parseInt(_0x47e304(0x155))/0x8*(parseInt(_0x47e304(0x19c))/0x9)+-parseInt(_0x47e304(0x14f))/0xa*(parseInt(_0x47e304(0x17f))/0xb)+-parseInt(_0x47e304(0x192))/0xc*(-parseInt(_0x47e304(0x17d))/0xd);if(_0x22fe39===_0x53fe2a)break;else _0x552346['push'](_0x552346['shift']());}catch(_0x325083){_0x552346['push'](_0x552346['shift']());}}}(_0x24df,0xadc82));import{CKEditorError as _0x3f1cde,logWarning as _0x55f041,scrollViewportToShowTarget as _0x197b74}from'ckeditor5/src/utils.js';import{View as _0x52ca87}from'ckeditor5/src/ui.js';function _0xbac0(_0xd54c48,_0x4a85d4){const _0x24df73=_0x24df();return _0xbac0=function(_0xbac049,_0x49427e){_0xbac049=_0xbac049-0x14d;let _0x2e5e47=_0x24df73[_0xbac049];return _0x2e5e47;},_0xbac0(_0xd54c48,_0x4a85d4);}import{AI_CHAT_UI_EVENT_NAMES as _0x4cf819}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x752c52}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x5cf5bd}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x5b243b}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x15789b}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x3e2a4e}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x2b5ed6}from'../utils/scrollmanager.js';import{AISkeletonView as _0x4c3570,SKELETON_DEFINITIONS as _0x2f678d}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x34de90}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x52ca87{[_0x5f0162(0x199)];[_0x5f0162(0x15e)];[_0x5f0162(0x19d)];constructor(_0x3affe9,_0x5a9d10){const _0x15ce7e=_0x5f0162;super(_0x3affe9),this[_0x15ce7e(0x19d)]=_0x5a9d10,this[_0x15ce7e(0x156)](_0x15ce7e(0x152),!0x1),this[_0x15ce7e(0x156)](_0x15ce7e(0x194),''),this[_0x15ce7e(0x156)](_0x15ce7e(0x191),!0x1),this[_0x15ce7e(0x156)](_0x15ce7e(0x19a),!0x1),this[_0x15ce7e(0x199)]=this[_0x15ce7e(0x185)](),this[_0x15ce7e(0x199)][_0x15ce7e(0x17c)](..._0x4cf819)['to'](this),this[_0x15ce7e(0x178)]();}[_0x5f0162(0x17b)](){const _0x556a46=_0x5f0162;super[_0x556a46(0x17b)](),this[_0x556a46(0x15e)]=new _0x2b5ed6(this[_0x556a46(0x16d)]);}[_0x5f0162(0x15c)](){const _0xf40b85=_0x5f0162;super[_0xf40b85(0x15c)](),this[_0xf40b85(0x15e)][_0xf40b85(0x15c)]();}[_0x5f0162(0x161)](){const _0x2ce323=_0x5f0162;this[_0x2ce323(0x199)][_0x2ce323(0x161)]();}[_0x5f0162(0x19e)](_0x1a53f2,_0x1be616){const _0x3bb24b=_0x5f0162;let _0x4cac18;_0x3bb24b(0x158)===_0x1a53f2?_0x4cac18=new _0x5cf5bd(this[_0x3bb24b(0x193)],_0x1be616):_0x3bb24b(0x16a)===_0x1a53f2?(_0x4cac18=new _0x752c52(this[_0x3bb24b(0x193)],_0x1be616),_0x4cac18[_0x3bb24b(0x171)](_0x3bb24b(0x19a))['to'](this,_0x3bb24b(0x19a))):_0x4cac18=_0x3bb24b(0x188)===_0x1a53f2?new _0x5b243b(this[_0x3bb24b(0x193)],_0x1be616,this[_0x3bb24b(0x19d)]):_0x3bb24b(0x18e)===_0x1a53f2?new _0x3e2a4e(this[_0x3bb24b(0x193)],_0x1be616):new _0x15789b(_0x1be616),this[_0x3bb24b(0x199)][_0x3bb24b(0x195)](_0x4cac18);}async[_0x5f0162(0x151)]({id:_0x17b135,parsedContent:_0x46f9e1,renderingStrategy:_0x58c38a,abortSignal:_0x443a78}){const _0x38c89f=_0x5f0162,_0x1350e9=this[_0x38c89f(0x153)](_0x17b135);if(!(_0x1350e9 instanceof _0x5cf5bd))throw new _0x3f1cde(_0x38c89f(0x17e),null,{'itemView':_0x1350e9,'id':_0x17b135,'parsedContent':_0x46f9e1});await _0x1350e9[_0x38c89f(0x165)]({'parsedContent':_0x46f9e1,'renderingStrategy':_0x58c38a,'abortSignal':_0x443a78});}async[_0x5f0162(0x154)](_0x56aaef,_0x1097e5){const _0x3cedc6=_0x5f0162,_0x2e294b=this[_0x3cedc6(0x153)](_0x56aaef);if(_0x2e294b instanceof _0x752c52)_0x2e294b[_0x3cedc6(0x18c)](_0x1097e5);else{if(!(_0x2e294b instanceof _0x5cf5bd))throw new _0x3f1cde(_0x3cedc6(0x173),null,{'itemView':_0x2e294b,'id':_0x56aaef,'sources':_0x1097e5});_0x2e294b[_0x3cedc6(0x18c)](_0x1097e5);}}async[_0x5f0162(0x184)]({id:_0x1ffc66,parts:_0x59b92,renderingStrategy:_0x3cc5bc,abortSignal:_0x110390}){const _0x4f309d=_0x5f0162,_0x4b208c=this[_0x4f309d(0x153)](_0x1ffc66);if(!(_0x4b208c instanceof _0x752c52))throw new _0x3f1cde(_0x4f309d(0x15f),null,{'itemView':_0x4b208c,'id':_0x1ffc66,'parts':_0x59b92});await _0x4b208c[_0x4f309d(0x165)]({'parts':_0x59b92,'renderingStrategy':_0x3cc5bc,'abortSignal':_0x110390});}[_0x5f0162(0x168)]({id:_0x505d87,index:_0x1504aa,state:_0x237147}){const _0x47c2ee=_0x5f0162,_0x50531a=this[_0x47c2ee(0x153)](_0x505d87);if(!(_0x50531a instanceof _0x752c52))throw new _0x3f1cde(_0x47c2ee(0x15f),this,{'id':_0x505d87});_0x50531a[_0x47c2ee(0x179)](_0x1504aa,_0x237147);}[_0x5f0162(0x15b)](_0x3477ba){const _0xb96a1c=_0x5f0162;this[_0xb96a1c(0x153)](_0x3477ba)[_0xb96a1c(0x18a)]();}[_0x5f0162(0x187)](){const _0x3f7664=_0x5f0162;return this[_0x3f7664(0x199)][_0x3f7664(0x163)](_0x42c014=>_0x42c014[_0x3f7664(0x196)]['id']);}[_0x5f0162(0x17a)](_0x1c5324){const _0x4f137b=_0x5f0162;this[_0x4f137b(0x199)][_0x4f137b(0x177)](this[_0x4f137b(0x153)](_0x1c5324));}[_0x5f0162(0x14e)](_0xfc54dd,_0x9ea10){const _0x4b2ae3=_0x5f0162,_0x59da7c=this[_0x4b2ae3(0x153)](_0xfc54dd);if(!(_0x59da7c instanceof _0x752c52))return void _0x55f041(_0x4b2ae3(0x15a),{'replyId':_0xfc54dd,'partIndex':_0x9ea10});const _0x5dea46=_0x59da7c[_0x4b2ae3(0x198)](_0x9ea10);_0x5dea46?_0x197b74({'target':_0x5dea46[_0x4b2ae3(0x16d)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x55f041(_0x4b2ae3(0x189),{'replyId':_0xfc54dd,'partIndex':_0x9ea10});}[_0x5f0162(0x178)](){const _0x29c934=_0x5f0162;this[_0x29c934(0x19f)]({'tag':_0x29c934(0x159),'attributes':{'class':['ck',_0x29c934(0x180)]},'children':this[_0x29c934(0x176)]()});}[_0x5f0162(0x176)](){const _0x1e7a26=_0x5f0162,_0x39a31e=this[_0x1e7a26(0x166)]();return[this[_0x1e7a26(0x197)](),_0x39a31e,this[_0x1e7a26(0x1a0)]()];}[_0x5f0162(0x166)](){const _0x970190=_0x5f0162,_0x4a29cc=new _0x4c3570(this[_0x970190(0x193)],_0x2f678d[_0x970190(0x18f)]);return _0x4a29cc[_0x970190(0x16f)]({'attributes':{'class':[this[_0x970190(0x15d)]['if'](_0x970190(0x191),_0x970190(0x19b),_0x21b259=>!_0x21b259)]}}),_0x4a29cc;}[_0x5f0162(0x197)](){const _0x2a25b3=_0x5f0162,_0x5b58d3=new _0x52ca87(this[_0x2a25b3(0x193)]);return _0x5b58d3[_0x2a25b3(0x19f)]({'tag':_0x2a25b3(0x159),'attributes':{'class':['ck',_0x2a25b3(0x150),this[_0x2a25b3(0x15d)]['if'](_0x2a25b3(0x191),_0x2a25b3(0x19b))]},'children':this[_0x2a25b3(0x199)]}),_0x5b58d3;}[_0x5f0162(0x1a0)](){const _0x417487=_0x5f0162,_0x3ab295=new _0x52ca87(this[_0x417487(0x193)]);return _0x3ab295[_0x417487(0x19f)]({'tag':_0x417487(0x159),'attributes':{'class':['ck',_0x417487(0x160),this[_0x417487(0x15d)]['if'](_0x417487(0x152),_0x417487(0x19b),_0x1312f2=>!_0x1312f2)]},'children':this[_0x417487(0x186)]()}),_0x3ab295;}[_0x5f0162(0x186)](){const _0x4d4cf5=_0x5f0162,_0x36f133=new _0x34de90();return _0x36f133[_0x4d4cf5(0x172)]=!0x0,[_0x36f133,{'tag':_0x4d4cf5(0x175),'attributes':{'class':['ck',_0x4d4cf5(0x181)]},'children':[{'text':this[_0x4d4cf5(0x15d)]['to'](_0x4d4cf5(0x194))}]}];}[_0x5f0162(0x153)](_0x5ad53d){const _0x5f45cc=_0x5f0162,_0x498ec0=this[_0x5f45cc(0x199)][_0x5f45cc(0x174)](_0x242561=>_0x242561[_0x5f45cc(0x196)]['id'][_0x5f45cc(0x16e)](_0x5ad53d));if(!_0x498ec0)throw new _0x3f1cde(_0x5f45cc(0x18b),this,{'id':_0x5ad53d});return _0x498ec0;}[_0x5f0162(0x182)](_0x2dedfe){const _0x1e22ae=_0x5f0162;this[_0x1e22ae(0x156)](_0x1e22ae(0x194),_0x2dedfe);}[_0x5f0162(0x16b)](_0xeaa6e0){const _0x3a69ae=_0x5f0162;this[_0x3a69ae(0x156)](_0x3a69ae(0x191),_0xeaa6e0);}[_0x5f0162(0x164)](){const _0x3f37a2=_0x5f0162;this[_0x3f37a2(0x15e)][_0x3f37a2(0x170)]();}[_0x5f0162(0x167)](){const _0x502f8a=_0x5f0162;this[_0x502f8a(0x15e)][_0x502f8a(0x190)]();}}function _0x24df(){const _0x3a40d8=['delegate','5031Ikqqwh','ai-chat-feed-view-item-not-a-reply-item','297bpJroD','ck-ai-chat__feed','ck-ai-chat__loader-text','setLoadingMessage','6gdtbFz','updateSuggestionItem','createCollection','_createLoaderChildren','getItemIds','user-message','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','markAsDone','ai-chat-feed-view-item-not-found','updateSources','4TZsHZT','interaction-header','aiFeed','stop','isLoadingSkeletonVisible','53892tEewmp','locale','loadingMessage','add','options','_createFeedItems','getPartView','children','isTrackChangesOn','ck-hidden','1089mUvkFv','_bodyCollection','addItem','setTemplate','_createFeedLoader','4536931lwFgKg','scrollToSuggestion','472320zrhpOE','ck-ai-chat__feed__items','updateReplyItem','isPending','getItemById','updateWebSources','30168efDyXg','set','3583645NElhyN','ai-reply','div','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','markItemAsDone','destroy','bindTemplate','scrollManager','ai-chat-feed-view-item-not-a-suggestion-item','ck-ai-chat__loader','clear','2cSseOp','map','startAutoScroll','updateContent','_createSkeletonLoader','stopAutoScroll','updateSuggestionPartState','4049706NYITyL','ai-suggestion-reply','toggleLoadingSkeleton','720308UgLmSO','element','includes','extendTemplate','start','bind','isVisible','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','find','span','_createTemplateChildren','remove','_setupTemplate','updatePartState','removeItem','render'];_0x24df=function(){return _0x3a40d8;};return _0x24df();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x8062b5=_0x2fa3;(function(_0x21ed5e,_0x269861){const _0x35a7cf=_0x2fa3,_0xcc30b1=_0x21ed5e();while(!![]){try{const _0x5c1f32=parseInt(_0x35a7cf(0x120))/0x1+-parseInt(_0x35a7cf(0x115))/0x2*(-parseInt(_0x35a7cf(0x116))/0x3)+parseInt(_0x35a7cf(0x122))/0x4+parseInt(_0x35a7cf(0x124))/0x5+parseInt(_0x35a7cf(0x117))/0x6+parseInt(_0x35a7cf(0x11c))/0x7*(-parseInt(_0x35a7cf(0x113))/0x8)+parseInt(_0x35a7cf(0x112))/0x9*(-parseInt(_0x35a7cf(0x119))/0xa);if(_0x5c1f32===_0x269861)break;else _0xcc30b1['push'](_0xcc30b1['shift']());}catch(_0x52ed6b){_0xcc30b1['push'](_0xcc30b1['shift']());}}}(_0x3205,0x4f92b));import{ButtonView as _0x31c811,FormHeaderView as _0xe1a5e4}from'ckeditor5/src/ui.js';import{IconPlus as _0x4a7911,IconAIChat as _0x1eacca}from'ckeditor5/src/icons.js';function _0x2fa3(_0x2c1d1c,_0x4ad1f6){const _0x3205ea=_0x3205();return _0x2fa3=function(_0x2fa3e9,_0x3500e7){_0x2fa3e9=_0x2fa3e9-0x10d;let _0x48ba76=_0x3205ea[_0x2fa3e9];return _0x48ba76;},_0x2fa3(_0x2c1d1c,_0x4ad1f6);}function _0x3205(){const _0x490481=['add','496955UGqJjW','resizeButton','fire','children','ck-ai-header\x20ck-ai-header_chat','startConversation','locale','9442305WKmIlN','744tyBONi','AI_CHAT_HEADING','26552UDhAld','81RtoYwJ','3182262ULmSJZ','_createStartConversationButton','10qADxzD','execute','AI_CHAT_LABEL_NEW_CHAT','3178yWnRvf','conversationStartButton','set','isMaximized','219519BnYwnO','ck-ai-chat__start-conversation','838236KNurRR'];_0x3205=function(){return _0x490481;};return _0x3205();}import{getTranslation as _0x28d1d8}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x2745f6}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0xe1a5e4{[_0x8062b5(0x11d)];[_0x8062b5(0x125)];constructor(_0x52e800,_0xbae7d7){const _0x5a04fa=_0x8062b5;super(_0x52e800,{'label':_0x28d1d8(_0x52e800,_0x5a04fa(0x114)),'class':_0x5a04fa(0x10f),'icon':_0x1eacca}),this[_0x5a04fa(0x11e)](_0x5a04fa(0x11f),!0x1),this[_0x5a04fa(0x11d)]=this[_0x5a04fa(0x118)](_0x52e800),this[_0x5a04fa(0x10e)][_0x5a04fa(0x123)](this[_0x5a04fa(0x11d)]),_0xbae7d7&&(this[_0x5a04fa(0x125)]=_0x2745f6(_0x52e800,this),this[_0x5a04fa(0x10e)][_0x5a04fa(0x123)](this[_0x5a04fa(0x125)]));}[_0x8062b5(0x118)](_0xe5789){const _0x3c5e42=_0x8062b5,_0x21ad54=new _0x31c811(_0xe5789);return _0x21ad54[_0x3c5e42(0x11e)]({'label':_0x28d1d8(this[_0x3c5e42(0x111)],_0x3c5e42(0x11b)),'withText':!0x0,'icon':_0x4a7911,'class':_0x3c5e42(0x121)}),_0x21ad54['on'](_0x3c5e42(0x11a),()=>{const _0x298824=_0x3c5e42;this[_0x298824(0x10d)](_0x298824(0x110));}),_0x21ad54;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3ac918=_0x5006;(function(_0x9211e0,_0x90759b){var _0x40fa11=_0x5006,_0x3c56f4=_0x9211e0();while(!![]){try{var _0x6b5e5a=parseInt(_0x40fa11(0x7c))/0x1+-parseInt(_0x40fa11(0x77))/0x2*(-parseInt(_0x40fa11(0x74))/0x3)+-parseInt(_0x40fa11(0x70))/0x4+parseInt(_0x40fa11(0x6a))/0x5*(parseInt(_0x40fa11(0x79))/0x6)+-parseInt(_0x40fa11(0x7e))/0x7+-parseInt(_0x40fa11(0x72))/0x8+parseInt(_0x40fa11(0x80))/0x9*(-parseInt(_0x40fa11(0x68))/0xa);if(_0x6b5e5a===_0x90759b)break;else _0x3c56f4['push'](_0x3c56f4['shift']());}catch(_0xbdc43a){_0x3c56f4['push'](_0x3c56f4['shift']());}}}(_0x3d1f,0x5131c));function _0x3d1f(){var _0x541983=['2359861OTSIQm','chatControls','204021XpsAso','chatFeed','closeSourceResourceBalloon','30gdXlfH','uiLanguageDirection','5ooxbgh','div','setTemplate','destroy','ck-ai-chat','ck-rounded-corners','592616bbvnsU','chatHeader','3736192VvlJzL','detachFromDom','21198kuyyQM','ck-reset_all','delegate','46cgzggk','_bodyCollection','3177684rFdNzK','populateSourceResourceBalloon','attachToDom','660748OUFzme','chatDisclaimer'];_0x3d1f=function(){return _0x541983;};return _0x3d1f();}import{View as _0x3c74cc,BodyCollection as _0x3e4798}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1e290e}from'../utils/eventnames.js';import{AIChatFeedView as _0x27e53d}from'./aichatfeedview.js';import{AIChatControlsView as _0x7a7e28}from'./aichatcontrolsview.js';function _0x5006(_0x100258,_0x2d4f6c){var _0x3d1f75=_0x3d1f();return _0x5006=function(_0x5006d9,_0xdd8e58){_0x5006d9=_0x5006d9-0x67;var _0x5f2a49=_0x3d1f75[_0x5006d9];return _0x5f2a49;},_0x5006(_0x100258,_0x2d4f6c);}import{AIChatHeaderView as _0x120676}from'./aichatheaderview.js';import{AIDisclaimerView as _0xedcebf}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x3c74cc{[_0x3ac918(0x71)];[_0x3ac918(0x81)];[_0x3ac918(0x7f)];[_0x3ac918(0x7d)];[_0x3ac918(0x78)];constructor(_0x2a35b2,_0x582428){var _0x529642=_0x3ac918;super(_0x2a35b2),this[_0x529642(0x78)]=new _0x3e4798(_0x2a35b2),this[_0x529642(0x78)][_0x529642(0x7b)](),this[_0x529642(0x71)]=new _0x120676(_0x2a35b2,_0x582428),this[_0x529642(0x71)][_0x529642(0x76)](..._0x1e290e)['to'](this),this[_0x529642(0x81)]=new _0x27e53d(_0x2a35b2,this[_0x529642(0x78)]),this[_0x529642(0x81)][_0x529642(0x76)](..._0x1e290e)['to'](this),this[_0x529642(0x7f)]=new _0x7a7e28(_0x2a35b2,this[_0x529642(0x78)]),this[_0x529642(0x7f)][_0x529642(0x76)](..._0x1e290e)['to'](this),this[_0x529642(0x7d)]=new _0xedcebf(_0x2a35b2),this[_0x529642(0x6c)]({'tag':_0x529642(0x6b),'attributes':{'class':['ck',_0x529642(0x75),_0x529642(0x6e),_0x529642(0x6f)],'dir':_0x2a35b2[_0x529642(0x69)]},'children':[this[_0x529642(0x71)],this[_0x529642(0x81)],this[_0x529642(0x7f)],this[_0x529642(0x7d)]]});}[_0x3ac918(0x7a)](_0x1e9de8,_0x3f36ff,_0x3a9328,_0x128de1){var _0x633f10=_0x3ac918;this[_0x633f10(0x7f)][_0x633f10(0x7a)](_0x1e9de8,_0x3f36ff,_0x3a9328,_0x128de1);}[_0x3ac918(0x67)](_0x838ba4){var _0x2d745a=_0x3ac918;this[_0x2d745a(0x7f)][_0x2d745a(0x67)](_0x838ba4);}[_0x3ac918(0x6d)](){var _0x3ec757=_0x3ac918;this[_0x3ec757(0x78)][_0x3ec757(0x73)](),super[_0x3ec757(0x6d)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4ab944=_0x1277;(function(_0x5b0ba3,_0xa36371){const _0x5b1c48=_0x1277,_0x28b12a=_0x5b0ba3();while(!![]){try{const _0x119628=parseInt(_0x5b1c48(0x137))/0x1*(-parseInt(_0x5b1c48(0xf9))/0x2)+-parseInt(_0x5b1c48(0x129))/0x3*(parseInt(_0x5b1c48(0x116))/0x4)+parseInt(_0x5b1c48(0x173))/0x5*(-parseInt(_0x5b1c48(0x177))/0x6)+-parseInt(_0x5b1c48(0x14e))/0x7*(-parseInt(_0x5b1c48(0x103))/0x8)+parseInt(_0x5b1c48(0x10c))/0x9+-parseInt(_0x5b1c48(0x178))/0xa*(parseInt(_0x5b1c48(0x10d))/0xb)+parseInt(_0x5b1c48(0x113))/0xc*(parseInt(_0x5b1c48(0x140))/0xd);if(_0x119628===_0xa36371)break;else _0x28b12a['push'](_0x28b12a['shift']());}catch(_0x52d6d1){_0x28b12a['push'](_0x28b12a['shift']());}}}(_0x49d7,0xef156));import{View as _0x39cd95,BalloonPanelView as _0x236c43,ButtonView as _0x5780e8,clickOutsideHandler as _0x50119c}from'ckeditor5/src/ui.js';function _0x49d7(){const _0x107bb8=['forEach','innerHTML','_updateOverflowUI','observe','_createCalculationContainer','zIndex','_createShowMoreButtonView','slice','showBalloonPanel','includes','_calculateContainerWidth','2400559tTqqnj','createElement','clear','position','overflowContainer','bottom','_handleShowMoreButtonClick','textContent','_applyCalculationStyles','boxSizing','_showMoreBalloonPanelView','visible','width','_repinBalloonPanel','_setupVisibilityObserver','_containerElement','label','_config','disableAnimationOnEnter','block\x20!important','border-box','from','hideBalloonPanel','_visibleChips','_createShowMoreButton','hide','auto','-9999px','_calculateOverflowInContainer','showMoreButtonView','tagName','clientWidth','display','visibility','pin','_pendingCalculation','_showMoreButtonView','5dzqYlm','pointerEvents','disconnect','some','4008012QNKijg','10jHcUcx','cssClasses','toLowerCase','controlsButton','block','_bodyCollection','_updateShowMoreButtonVisibility','_isContainerVisible','visible\x20!important','reorganizeChips','_renderChipsAndCountRows','.ck-ai-chat','top','isIntersecting','remove','isOn','_ancestorsToRestore','_testButtonFit','content','push','div','set','left','button','36wVPKSD','body','appendChild','filter','clientHeight','abs','element','documentElement','showMoreBalloon','_makeAncestorsVisible','16EGNHqs','execute','undefined','getComputedStyle','300px','ck-calculation-container','_applyOverflowResults','none','destroy','2455857gKOtKv','4948834Tsyyia','opacity','classList','style','_locale','height','55725636ylAZno','parentElement','isConnected','6617784STonfN','_restoreAncestorVisibility','showMoreLabelPrefix','_distributeChips','maxVisibleRows','absolute','cloneNode','isVisible','add','extendTemplate','_targetContainer','_findTargetContainer','show','right','offsetWidth','setTemplate','setContainerElement','overflowChips','calculationContainer','3suSwRs','+\x201','getBoundingClientRect','children','showMoreButton','innerHeight','pop','_checkAndHandleOverflow','className','hidden','querySelector','innerWidth','rowDetectionTolerance','_overflowChips','102829pJaQRB','0px','_parentView','_createContainerElements','_updateBalloonContent','_createShowMoreBalloonPanelView','_intersectionObserver','length','50px','13wkaDUJ','_createMockButton','render'];_0x49d7=function(){return _0x107bb8;};return _0x49d7();}import{Collection as _0x1e6e7b}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},wn=_0x4ab944(0x107);function _0x1277(_0x153342,_0x1e75b3){const _0x49d733=_0x49d7();return _0x1277=function(_0x1277e4,_0x29ea00){_0x1277e4=_0x1277e4-0xe5;let _0x2863c6=_0x49d733[_0x1277e4];return _0x2863c6;},_0x1277(_0x153342,_0x1e75b3);}export class AIChatChipsOverflowManager{[_0x4ab944(0x111)];[_0x4ab944(0x15f)];[_0x4ab944(0x165)];[_0x4ab944(0x136)];[_0x4ab944(0x172)]=null;[_0x4ab944(0x158)]=null;[_0x4ab944(0x15d)]=null;[_0x4ab944(0xe6)];[_0x4ab944(0x139)]=null;[_0x4ab944(0x13d)]=null;[_0x4ab944(0x171)]=!0x1;constructor(_0x48cab7,_0x38c7ca,_0x392e36,_0x1bf5a4,_0x199dfc){const _0x1a842b=_0x4ab944;this[_0x1a842b(0x111)]=_0x48cab7,this[_0x1a842b(0x165)]=_0x38c7ca,this[_0x1a842b(0x15f)]={...hn,..._0x392e36,'cssClasses':{'controlsButton':'','calculationContainer':_0x1a842b(0x108),..._0x392e36[_0x1a842b(0x179)]}},this[_0x1a842b(0x136)]=new _0x1e6e7b(),this[_0x1a842b(0xe6)]=_0x1bf5a4,this[_0x1a842b(0x139)]=_0x199dfc||null;}[_0x4ab944(0x126)](_0x2e5125){const _0x5b8eed=_0x4ab944;this[_0x5b8eed(0x13d)]&&(this[_0x5b8eed(0x13d)][_0x5b8eed(0x175)](),this[_0x5b8eed(0x13d)]=null),this[_0x5b8eed(0x15d)]=_0x2e5125,this[_0x5b8eed(0x15c)]();}get[_0x4ab944(0x16b)](){const _0x44dc6e=_0x4ab944;return this[_0x44dc6e(0x172)];}get[_0x4ab944(0x127)](){const _0x1850f8=_0x4ab944;return this[_0x1850f8(0x136)];}[_0x4ab944(0xea)](){requestAnimationFrame(()=>{const _0x6f0375=_0x1277;this[_0x6f0375(0x130)]();});}[_0x4ab944(0x14b)](){const _0x3355e2=_0x4ab944;this[_0x3355e2(0x172)]&&this[_0x3355e2(0x158)]&&(this[_0x3355e2(0x13b)](),this[_0x3355e2(0x172)][_0x3355e2(0xf0)]=!0x0,this[_0x3355e2(0x158)][_0x3355e2(0x122)](),this[_0x3355e2(0x158)][_0x3355e2(0x170)]({'target':this[_0x3355e2(0x172)][_0x3355e2(0xff)],'limiter':document[_0x3355e2(0x133)](_0x3355e2(0xec))}));}[_0x4ab944(0x164)](){const _0x10e7f2=_0x4ab944;this[_0x10e7f2(0x172)]&&this[_0x10e7f2(0x158)]&&(this[_0x10e7f2(0x172)][_0x10e7f2(0xf0)]=!0x1,this[_0x10e7f2(0x158)][_0x10e7f2(0x167)]());}[_0x4ab944(0x150)](){const _0x6295e4=_0x4ab944;this[_0x6295e4(0x136)][_0x6295e4(0x150)](),this[_0x6295e4(0x164)](),this[_0x6295e4(0xe7)](),this[_0x6295e4(0x172)]&&(this[_0x6295e4(0x172)][_0x6295e4(0x15e)]=''),this[_0x6295e4(0x158)]&&this[_0x6295e4(0x158)][_0x6295e4(0xf3)][_0x6295e4(0x150)]();}[_0x4ab944(0x10b)](){const _0xab1121=_0x4ab944;this[_0xab1121(0x13d)]&&(this[_0xab1121(0x13d)][_0xab1121(0x175)](),this[_0xab1121(0x13d)]=null),this[_0xab1121(0x172)]&&(this[_0xab1121(0x172)][_0xab1121(0x10b)](),this[_0xab1121(0x172)]=null),this[_0xab1121(0x158)]&&(this[_0xab1121(0x158)][_0xab1121(0x10b)](),this[_0xab1121(0x158)]=null);}[_0x4ab944(0x130)](){const _0x4254d9=_0x4ab944;if(!this[_0x4254d9(0x15d)])return;if(!this[_0x4254d9(0xe8)]())return void(this[_0x4254d9(0x171)]=!0x0);this[_0x4254d9(0x171)]=!0x1;const _0x4c7795=[...this[_0x4254d9(0x165)],...this[_0x4254d9(0x136)]],_0x5bc250=this[_0x4254d9(0x147)](),_0x5e716c=this[_0x4254d9(0x16a)](_0x5bc250,_0x4c7795),_0x1dcc22=_0x5bc250[_0x4254d9(0xf1)];_0x1dcc22&&this[_0x4254d9(0x117)](_0x1dcc22),_0x5bc250[_0x4254d9(0xef)](),this[_0x4254d9(0x109)](_0x4c7795,_0x5e716c);}[_0x4ab944(0x166)](){const _0x8ee1c=_0x4ab944;this[_0x8ee1c(0x172)]=this[_0x8ee1c(0x149)](),this[_0x8ee1c(0x158)]=this[_0x8ee1c(0x13c)](),this[_0x8ee1c(0x172)][_0x8ee1c(0x142)](),this[_0x8ee1c(0x15d)][_0x8ee1c(0xfb)](this[_0x8ee1c(0x172)][_0x8ee1c(0xff)]),this[_0x8ee1c(0x172)]['on'](_0x8ee1c(0x104),()=>{const _0x360b85=_0x8ee1c;this[_0x360b85(0x154)]();}),_0x50119c({'emitter':this[_0x8ee1c(0x158)],'contextElements':[this[_0x8ee1c(0x158)][_0x8ee1c(0xff)],this[_0x8ee1c(0x172)][_0x8ee1c(0xff)]],'callback':()=>this[_0x8ee1c(0x164)](),'activator':()=>this[_0x8ee1c(0x172)][_0x8ee1c(0xf0)]});}[_0x4ab944(0x149)](){const _0x32b8b9=_0x4ab944,_0x5c75ea=new _0x5780e8(this[_0x32b8b9(0x111)]);_0x5c75ea[_0x32b8b9(0xf6)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x8f432d=[this[_0x32b8b9(0x15f)][_0x32b8b9(0x179)][_0x32b8b9(0x12d)]];return this[_0x32b8b9(0x15f)][_0x32b8b9(0x179)][_0x32b8b9(0x17b)]&&_0x8f432d[_0x32b8b9(0xf4)](this[_0x32b8b9(0x15f)][_0x32b8b9(0x179)][_0x32b8b9(0x17b)]),_0x5c75ea[_0x32b8b9(0x11f)]({'attributes':{'class':_0x8f432d}}),_0x5c75ea;}[_0x4ab944(0x13c)](){const _0x4e9648=_0x4ab944,_0x3777fa=new _0x236c43(this[_0x4e9648(0x111)]);return _0x3777fa[_0x4e9648(0x11f)]({'attributes':{'class':this[_0x4e9648(0x15f)][_0x4e9648(0x179)][_0x4e9648(0x101)]}}),this[_0x4e9648(0xe6)][_0x4e9648(0x11e)](_0x3777fa),_0x3777fa;}[_0x4ab944(0x13b)](){const _0x2d08fd=_0x4ab944;if(this[_0x2d08fd(0x158)]&&(this[_0x2d08fd(0x158)][_0x2d08fd(0xf3)][_0x2d08fd(0x150)](),this[_0x2d08fd(0x136)][_0x2d08fd(0x13e)]>0x0)){this[_0x2d08fd(0x136)][_0x2d08fd(0x143)](_0x1e4cdd=>{const _0x53fa7b=_0x2d08fd;_0x1e4cdd[_0x53fa7b(0x160)]();});const _0x496ab0=new _0x39cd95(this[_0x2d08fd(0x111)]);_0x496ab0[_0x2d08fd(0x125)]({'tag':_0x2d08fd(0xf5),'attributes':{'class':this[_0x2d08fd(0x15f)][_0x2d08fd(0x179)][_0x2d08fd(0x152)]},'children':this[_0x2d08fd(0x136)]}),this[_0x2d08fd(0x158)][_0x2d08fd(0xf3)][_0x2d08fd(0x11e)](_0x496ab0);}}[_0x4ab944(0x154)](){const _0x439e3b=_0x4ab944;this[_0x439e3b(0x172)][_0x439e3b(0xf0)]?this[_0x439e3b(0x164)]():this[_0x439e3b(0x14b)]();}[_0x4ab944(0xe7)](){const _0x3cd5cc=_0x4ab944,_0x59b514=this[_0x3cd5cc(0x136)][_0x3cd5cc(0x13e)]>0x0;this[_0x3cd5cc(0x172)]?.[_0x3cd5cc(0xff)]&&(this[_0x3cd5cc(0x172)][_0x3cd5cc(0xff)][_0x3cd5cc(0x110)][_0x3cd5cc(0x16e)]=_0x59b514?'':_0x3cd5cc(0x10a));}[_0x4ab944(0x15b)](){const _0x528b92=_0x4ab944;this[_0x528b92(0x172)]?.[_0x528b92(0xf0)]&&this[_0x528b92(0x158)]?.[_0x528b92(0x11d)]&&this[_0x528b92(0x172)][_0x528b92(0xff)]&&this[_0x528b92(0x158)][_0x528b92(0x170)]({'target':this[_0x528b92(0x172)][_0x528b92(0xff)],'limiter':document[_0x528b92(0x133)](_0x528b92(0xec))});}[_0x4ab944(0x121)](_0x3774f9){const _0x460fec=_0x4ab944,_0x5ca573=this[_0x460fec(0x15d)]?.[_0x460fec(0x16c)][_0x460fec(0x17a)]()||_0x460fec(0xf5),_0x5db1d8=this[_0x460fec(0x15d)]?.[_0x460fec(0x10f)];if(_0x5db1d8){const _0x5367a5=_0x5db1d8[0x0]||'',_0xe5eb40=_0x3774f9[_0x460fec(0x133)]('.'+_0x5367a5),_0x9865bd=_0x3774f9[_0x460fec(0x133)](_0x5ca573);return _0xe5eb40||_0x9865bd||_0x3774f9;}return _0x3774f9[_0x460fec(0x133)](_0x5ca573)||_0x3774f9;}[_0x4ab944(0x14d)](){const _0x17db4e=_0x4ab944,_0x551af5=this[_0x17db4e(0x139)]?.[_0x17db4e(0xff)]||this[_0x17db4e(0x15d)];if(!_0x551af5)return wn;const _0x5d1ac4=window[_0x17db4e(0x106)](_0x551af5)[_0x17db4e(0x15a)];if(_0x17db4e(0x168)===_0x5d1ac4||_0x17db4e(0x138)===_0x5d1ac4||!_0x5d1ac4){const _0x35a019=_0x551af5[_0x17db4e(0x114)];if(_0x35a019){const _0x62dd58=window[_0x17db4e(0x106)](_0x35a019);return _0x17db4e(0x168)!==_0x62dd58[_0x17db4e(0x15a)]?_0x62dd58[_0x17db4e(0x15a)]:wn;}return wn;}return _0x5d1ac4;}[_0x4ab944(0x156)](_0x583fef,_0x29c026){const _0x289dec=_0x4ab944;this[_0x289dec(0x15f)][_0x289dec(0x179)][_0x289dec(0x128)]&&_0x583fef[_0x289dec(0x10f)][_0x289dec(0x11e)](this[_0x289dec(0x15f)][_0x289dec(0x179)][_0x289dec(0x128)]),_0x583fef[_0x289dec(0x110)][_0x289dec(0x15a)]=_0x29c026,_0x583fef[_0x289dec(0x110)][_0x289dec(0x151)]=_0x289dec(0x11b),_0x583fef[_0x289dec(0x110)][_0x289dec(0xed)]=_0x289dec(0x169),_0x583fef[_0x289dec(0x110)][_0x289dec(0xf7)]=_0x289dec(0x169),_0x583fef[_0x289dec(0x110)][_0x289dec(0x10e)]='0',_0x583fef[_0x289dec(0x110)][_0x289dec(0x174)]=_0x289dec(0x10a),_0x583fef[_0x289dec(0x110)][_0x289dec(0x148)]='-1',_0x583fef[_0x289dec(0x110)][_0x289dec(0x16f)]=_0x289dec(0xe9),_0x583fef[_0x289dec(0x110)][_0x289dec(0x16e)]=_0x289dec(0x161),_0x583fef[_0x289dec(0x110)][_0x289dec(0x157)]=_0x289dec(0x162);}[_0x4ab944(0x117)](_0x1cf0ac){const _0x512054=_0x4ab944;_0x1cf0ac[_0x512054(0x143)](({element:_0x297bba,originalDisplay:_0x67955f,originalVisibility:_0x3bbf65})=>{const _0x382cc9=_0x512054;_0x297bba[_0x382cc9(0x110)][_0x382cc9(0x16e)]=_0x67955f,_0x297bba[_0x382cc9(0x110)][_0x382cc9(0x16f)]=_0x3bbf65;});}[_0x4ab944(0x102)](_0x55ec3f){const _0x17f6d9=_0x4ab944,_0x21ef24=[];let _0x11b402=_0x55ec3f;for(;_0x11b402&&_0x11b402!==document[_0x17f6d9(0xfa)];){const _0x4a8fc6=window[_0x17f6d9(0x106)](_0x11b402);_0x17f6d9(0x10a)!==_0x4a8fc6[_0x17f6d9(0x16e)]&&_0x17f6d9(0x132)!==_0x4a8fc6[_0x17f6d9(0x16f)]||(_0x21ef24[_0x17f6d9(0xf4)]({'element':_0x11b402,'originalDisplay':_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16e)],'originalVisibility':_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16f)]}),_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16e)]=_0x17f6d9(0xe5),_0x11b402[_0x17f6d9(0x110)][_0x17f6d9(0x16f)]=_0x17f6d9(0x159)),_0x11b402=_0x11b402[_0x17f6d9(0x114)];}return _0x21ef24;}[_0x4ab944(0x13a)](){const _0x410b25=_0x4ab944;let _0x5977d8,_0x1d5d15;return this[_0x410b25(0x139)]?.[_0x410b25(0xff)]?(_0x5977d8=this[_0x410b25(0x139)][_0x410b25(0xff)][_0x410b25(0x11c)](!0x0),_0x1d5d15=this[_0x410b25(0x121)](_0x5977d8)):(_0x5977d8=document[_0x410b25(0x14f)](_0x410b25(0xf5)),_0x1d5d15=_0x5977d8),{'calculationContainer':_0x5977d8,'targetContainer':_0x1d5d15};}[_0x4ab944(0x147)](){const _0x4b577e=_0x4ab944,{calculationContainer:_0x413f21,targetContainer:_0x4b3501}=this[_0x4b577e(0x13a)](),_0x24d7d8=this[_0x4b577e(0x14d)]();this[_0x4b577e(0x156)](_0x413f21,_0x24d7d8);const _0x39d475=this[_0x4b577e(0x139)]?.[_0x4b577e(0xff)]||this[_0x4b577e(0x15d)],_0x500b6f=_0x39d475?.[_0x4b577e(0x114)];_0x500b6f?_0x500b6f[_0x4b577e(0xfb)](_0x413f21):document[_0x4b577e(0xfa)][_0x4b577e(0xfb)](_0x413f21),_0x413f21[_0x4b577e(0x120)]=_0x4b3501;const _0x530809=this[_0x4b577e(0x102)](_0x500b6f||null);return _0x413f21[_0x4b577e(0x124)],_0x413f21[_0x4b577e(0xf1)]=_0x530809,_0x413f21;}[_0x4ab944(0x16a)](_0x4aedec,_0x91861b){const _0x1f2da0=_0x4ab944,_0x170ab2=_0x4aedec[_0x1f2da0(0x120)]||_0x4aedec,_0x1bc76c=[],{rowCount:_0x36c5cb}=this[_0x1f2da0(0xeb)](_0x170ab2,_0x91861b);if(_0x36c5cb<=this[_0x1f2da0(0x15f)][_0x1f2da0(0x11a)])return _0x1bc76c;const _0x245506=_0x91861b[_0x1f2da0(0x14a)]();for(;_0x245506[_0x1f2da0(0x13e)]>0x0;){if(this[_0x1f2da0(0xf2)](_0x4aedec,_0x170ab2,_0x245506)){const _0xba11c1=_0x91861b[_0x1f2da0(0xfc)](_0x1982a7=>!_0x245506[_0x1f2da0(0x14c)](_0x1982a7));_0x1bc76c[_0x1f2da0(0xf4)](..._0xba11c1);break;}if(!_0x245506[_0x1f2da0(0x12f)]())break;}return _0x1bc76c;}[_0x4ab944(0xeb)](_0x4930f7,_0x10490f){const _0xf30d01=_0x4ab944;_0x4930f7[_0xf30d01(0x144)]='',_0x10490f[_0xf30d01(0x143)](_0x2d8d4c=>{const _0x58ee47=_0xf30d01;if(_0x2d8d4c[_0x58ee47(0xff)]){const _0x1a1794=_0x2d8d4c[_0x58ee47(0xff)][_0x58ee47(0x11c)](!0x0);_0x4930f7[_0x58ee47(0xfb)](_0x1a1794);}}),_0x4930f7[_0xf30d01(0x124)];const _0x96e796=_0x4930f7[_0xf30d01(0x12c)],_0x5a7713=[];return Array[_0xf30d01(0x163)](_0x96e796)[_0xf30d01(0x143)](_0x3e9291=>{const _0x249bc7=_0xf30d01,_0x3ebd94=_0x3e9291[_0x249bc7(0x12b)]()[_0x249bc7(0xed)];_0x5a7713[_0x249bc7(0x176)](_0x15bf93=>Math[_0x249bc7(0xfe)](_0x15bf93-_0x3ebd94)<this[_0x249bc7(0x15f)][_0x249bc7(0x135)])||_0x5a7713[_0x249bc7(0xf4)](_0x3ebd94);}),{'rowCount':_0x5a7713[_0xf30d01(0x13e)]};}[_0x4ab944(0x141)](){const _0xa87372=_0x4ab944,_0x9a55b7=document[_0xa87372(0x14f)](_0xa87372(0xf8));return _0x9a55b7[_0xa87372(0x131)]=this[_0xa87372(0x15f)][_0xa87372(0x179)][_0xa87372(0x12d)],this[_0xa87372(0x15f)][_0xa87372(0x179)][_0xa87372(0x17b)]&&_0x9a55b7[_0xa87372(0x10f)][_0xa87372(0x11e)](this[_0xa87372(0x15f)][_0xa87372(0x179)][_0xa87372(0x17b)]),_0x9a55b7[_0xa87372(0x155)]=_0xa87372(0x12a),_0x9a55b7;}[_0x4ab944(0xf2)](_0x6443b0,_0x4a6abf,_0x55514a){const _0x257b9a=_0x4ab944;this[_0x257b9a(0xeb)](_0x4a6abf,_0x55514a);const _0x4b4627=this[_0x257b9a(0x141)]();_0x6443b0[_0x257b9a(0xfb)](_0x4b4627),_0x6443b0[_0x257b9a(0x124)];const _0x4ff50e=[..._0x4a6abf[_0x257b9a(0x12c)],_0x4b4627],_0x475658=[];_0x4ff50e[_0x257b9a(0x143)](_0x3e11db=>{const _0x26b9e9=_0x257b9a,_0x378d5a=_0x3e11db[_0x26b9e9(0x12b)]()[_0x26b9e9(0xed)];_0x475658[_0x26b9e9(0x176)](_0x545264=>Math[_0x26b9e9(0xfe)](_0x545264-_0x378d5a)<this[_0x26b9e9(0x15f)][_0x26b9e9(0x135)])||_0x475658[_0x26b9e9(0xf4)](_0x378d5a);});const _0x1e69ad=_0x475658[_0x257b9a(0x13e)];return _0x4b4627[_0x257b9a(0xef)](),_0x1e69ad<=this[_0x257b9a(0x15f)][_0x257b9a(0x11a)];}[_0x4ab944(0x119)](_0x23b5e0,_0x528fc8){const _0x31c700=_0x4ab944;this[_0x31c700(0x165)][_0x31c700(0x150)](),this[_0x31c700(0x136)][_0x31c700(0x150)](),_0x23b5e0[_0x31c700(0x143)](_0xf8a55d=>{const _0x49e0fe=_0x31c700;_0x528fc8[_0x49e0fe(0x14c)](_0xf8a55d)?this[_0x49e0fe(0x136)][_0x49e0fe(0x11e)](_0xf8a55d):this[_0x49e0fe(0x165)][_0x49e0fe(0x11e)](_0xf8a55d);});}[_0x4ab944(0x145)](_0xe409a0){const _0x2d77d6=_0x4ab944;if(_0xe409a0>0x0&&!this[_0x2d77d6(0x172)]&&this[_0x2d77d6(0x166)](),_0xe409a0>0x0&&this[_0x2d77d6(0x172)]){const _0x3023df=''+this[_0x2d77d6(0x15f)][_0x2d77d6(0x118)]+(_0xe409a0<0x63?_0xe409a0:'99');this[_0x2d77d6(0x172)][_0x2d77d6(0x15e)]=_0x3023df;}this[_0x2d77d6(0x13b)](),this[_0x2d77d6(0xe7)](),this[_0x2d77d6(0x15b)]();}[_0x4ab944(0x109)](_0x477dc3,_0x4a9858){const _0x3b7167=_0x4ab944;this[_0x3b7167(0x119)](_0x477dc3,_0x4a9858),this[_0x3b7167(0x145)](_0x4a9858[_0x3b7167(0x13e)]);}[_0x4ab944(0x15c)](){const _0x590308=_0x4ab944;this[_0x590308(0x15d)]&&_0x590308(0x105)!=typeof IntersectionObserver&&(this[_0x590308(0x13d)]=new IntersectionObserver(_0x4c1b22=>{const _0x2dd6eb=_0x590308;_0x4c1b22[0x0][_0x2dd6eb(0xee)]&&this[_0x2dd6eb(0x171)]&&requestAnimationFrame(()=>{const _0x40f308=_0x2dd6eb;this[_0x40f308(0x130)]();});},{'threshold':0.01,'rootMargin':_0x590308(0x13f)}),this[_0x590308(0x13d)][_0x590308(0x146)](this[_0x590308(0x15d)]));}[_0x4ab944(0xe8)](){const _0x5aa775=_0x4ab944;if(!this[_0x5aa775(0x15d)])return!0x1;if(!this[_0x5aa775(0x15d)][_0x5aa775(0x115)])return!0x1;const _0x3b30a1=this[_0x5aa775(0x15d)][_0x5aa775(0x12b)]();if(0x0===_0x3b30a1[_0x5aa775(0x15a)]||0x0===_0x3b30a1[_0x5aa775(0x112)])return!0x1;const _0x22dcc3=window[_0x5aa775(0x12e)]||document[_0x5aa775(0x100)][_0x5aa775(0xfd)],_0x408d81=window[_0x5aa775(0x134)]||document[_0x5aa775(0x100)][_0x5aa775(0x16d)],_0x3106f8=0xc8;return _0x3b30a1[_0x5aa775(0x153)]>=-0xc8&&_0x3b30a1[_0x5aa775(0xed)]<=_0x22dcc3+_0x3106f8&&_0x3b30a1[_0x5aa775(0x123)]>=-0xc8&&_0x3b30a1[_0x5aa775(0xf7)]<=_0x408d81+_0x3106f8;}}
|
|
23
|
+
const _0x27157a=_0x5cbd;(function(_0x382aff,_0x496aad){const _0x263468=_0x5cbd,_0x5b73bb=_0x382aff();while(!![]){try{const _0x474ee0=parseInt(_0x263468(0x142))/0x1*(-parseInt(_0x263468(0x16a))/0x2)+parseInt(_0x263468(0x12e))/0x3*(-parseInt(_0x263468(0xf2))/0x4)+-parseInt(_0x263468(0x129))/0x5+-parseInt(_0x263468(0xf7))/0x6*(-parseInt(_0x263468(0xfa))/0x7)+-parseInt(_0x263468(0x15c))/0x8*(-parseInt(_0x263468(0x11a))/0x9)+parseInt(_0x263468(0x17d))/0xa+parseInt(_0x263468(0x149))/0xb*(parseInt(_0x263468(0x111))/0xc);if(_0x474ee0===_0x496aad)break;else _0x5b73bb['push'](_0x5b73bb['shift']());}catch(_0x3adb47){_0x5b73bb['push'](_0x5b73bb['shift']());}}}(_0x578a,0x819cf));function _0x5cbd(_0x294d28,_0x55ad0f){const _0x578a56=_0x578a();return _0x5cbd=function(_0x5cbd43,_0x5735af){_0x5cbd43=_0x5cbd43-0xef;let _0x3fa845=_0x578a56[_0x5cbd43];return _0x3fa845;},_0x5cbd(_0x294d28,_0x55ad0f);}import{View as _0x1f4113,BalloonPanelView as _0x10034c,ButtonView as _0x452677,clickOutsideHandler as _0x89e0f6}from'ckeditor5/src/ui.js';import{Collection as _0x56cc9b}from'ckeditor5/src/utils.js';function _0x578a(){const _0xacbadf=['50px','showBalloonPanel','getBoundingClientRect','children','_restoreAncestorVisibility','add','_distributeChips','_createShowMoreButtonView','bottom','_parentView','-9999px','innerWidth','_config','some','12XghMDS','cssClasses','toLowerCase','_createCalculationContainer','tagName','reorganizeChips','length','visible\x20!important','height','4708197WdJTWf','+\x201','left','block\x20!important','overflowContainer','push','_updateShowMoreButtonVisibility','_targetContainer','width','isVisible','_handleShowMoreButtonClick','abs','pin','className','pop','4971240cUSmcm','controlsButton','_createShowMoreBalloonPanelView','_containerElement','showMoreLabelPrefix','1362JPaPYr','content','_makeAncestorsVisible','createElement','pointerEvents','_createContainerElements','hide','_overflowChips','set','div','opacity','block','includes','innerHTML','_calculateContainerWidth','observe','show','clear','setContainerElement','.ck-ai-chat','2SlundG','calculationContainer','body','extendTemplate','getComputedStyle','hidden','_checkAndHandleOverflow','7267249gLMlIy','destroy','style','_repinBalloonPanel','setTemplate','slice','isOn','none','documentElement','_testButtonFit','showMoreButtonView','remove','label','_calculateOverflowInContainer','position','zIndex','offsetWidth','cloneNode','_intersectionObserver','8AYwPdf','_updateBalloonContent','querySelector','display','_isContainerVisible','0px','_showMoreBalloonPanelView','absolute','_visibleChips','right','from','visibility','ck-calculation-container','_applyCalculationStyles','665288KUBNHn','forEach','_findTargetContainer','_bodyCollection','button','hideBalloonPanel','isIntersecting','_ancestorsToRestore','_updateOverflowUI','appendChild','top','maxVisibleRows','render','_renderChipsAndCountRows','_showMoreButtonView','auto','clientHeight','disconnect','overflowChips','4765490OqBHDD','_pendingCalculation','showMoreButton','textContent','border-box','classList','disableAnimationOnEnter','innerHeight','clientWidth','300px','visible','8HOMxiS','parentElement','_setupVisibilityObserver','element','boxSizing','12YBrZsN','execute','_createShowMoreButton','1858493bhBbjx','_createMockButton','rowDetectionTolerance','isConnected','undefined','_applyOverflowResults','_locale','filter','showMoreBalloon'];_0x578a=function(){return _0xacbadf;};return _0x578a();}const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0x27157a(0xf0);export class AIChatChipsOverflowManager{[_0x27157a(0x100)];[_0x27157a(0x10f)];[_0x27157a(0x164)];[_0x27157a(0x135)];[_0x27157a(0x178)]=null;[_0x27157a(0x162)]=null;[_0x27157a(0x12c)]=null;[_0x27157a(0x16d)];[_0x27157a(0x10c)]=null;[_0x27157a(0x15b)]=null;[_0x27157a(0x17e)]=!0x1;constructor(_0x3dd647,_0x306ebc,_0x5b544d,_0x316ba2,_0x29a719){const _0x314af8=_0x27157a;this[_0x314af8(0x100)]=_0x3dd647,this[_0x314af8(0x164)]=_0x306ebc,this[_0x314af8(0x10f)]={...hn,..._0x5b544d,'cssClasses':{'controlsButton':'','calculationContainer':_0x314af8(0x168),..._0x5b544d[_0x314af8(0x112)]}},this[_0x314af8(0x135)]=new _0x56cc9b(),this[_0x314af8(0x16d)]=_0x316ba2,this[_0x314af8(0x10c)]=_0x29a719||null;}[_0x27157a(0x140)](_0x52ccbe){const _0x15a258=_0x27157a;this[_0x15a258(0x15b)]&&(this[_0x15a258(0x15b)][_0x15a258(0x17b)](),this[_0x15a258(0x15b)]=null),this[_0x15a258(0x12c)]=_0x52ccbe,this[_0x15a258(0xf4)]();}get[_0x27157a(0x153)](){const _0xad844f=_0x27157a;return this[_0xad844f(0x178)];}get[_0x27157a(0x17c)](){const _0xba3481=_0x27157a;return this[_0xba3481(0x135)];}[_0x27157a(0x116)](){requestAnimationFrame(()=>{const _0x513146=_0x5cbd;this[_0x513146(0x148)]();});}[_0x27157a(0x104)](){const _0x87364c=_0x27157a;this[_0x87364c(0x178)]&&this[_0x87364c(0x162)]&&(this[_0x87364c(0x15d)](),this[_0x87364c(0x178)][_0x87364c(0x14f)]=!0x0,this[_0x87364c(0x162)][_0x87364c(0x13e)](),this[_0x87364c(0x162)][_0x87364c(0x126)]({'target':this[_0x87364c(0x178)][_0x87364c(0xf5)],'limiter':document[_0x87364c(0x15e)](_0x87364c(0x141))}));}[_0x27157a(0x16f)](){const _0x1e1901=_0x27157a;this[_0x1e1901(0x178)]&&this[_0x1e1901(0x162)]&&(this[_0x1e1901(0x178)][_0x1e1901(0x14f)]=!0x1,this[_0x1e1901(0x162)][_0x1e1901(0x134)]());}[_0x27157a(0x13f)](){const _0x100b93=_0x27157a;this[_0x100b93(0x135)][_0x100b93(0x13f)](),this[_0x100b93(0x16f)](),this[_0x100b93(0x120)](),this[_0x100b93(0x178)]&&(this[_0x100b93(0x178)][_0x100b93(0x155)]=''),this[_0x100b93(0x162)]&&this[_0x100b93(0x162)][_0x100b93(0x12f)][_0x100b93(0x13f)]();}[_0x27157a(0x14a)](){const _0x52e569=_0x27157a;this[_0x52e569(0x15b)]&&(this[_0x52e569(0x15b)][_0x52e569(0x17b)](),this[_0x52e569(0x15b)]=null),this[_0x52e569(0x178)]&&(this[_0x52e569(0x178)][_0x52e569(0x14a)](),this[_0x52e569(0x178)]=null),this[_0x52e569(0x162)]&&(this[_0x52e569(0x162)][_0x52e569(0x14a)](),this[_0x52e569(0x162)]=null);}[_0x27157a(0x148)](){const _0xb9799e=_0x27157a;if(!this[_0xb9799e(0x12c)])return;if(!this[_0xb9799e(0x160)]())return void(this[_0xb9799e(0x17e)]=!0x0);this[_0xb9799e(0x17e)]=!0x1;const _0x227516=[...this[_0xb9799e(0x164)],...this[_0xb9799e(0x135)]],_0x68d84d=this[_0xb9799e(0x114)](),_0x2d896e=this[_0xb9799e(0x156)](_0x68d84d,_0x227516),_0x2e4491=_0x68d84d[_0xb9799e(0x171)];_0x2e4491&&this[_0xb9799e(0x107)](_0x2e4491),_0x68d84d[_0xb9799e(0x154)](),this[_0xb9799e(0xff)](_0x227516,_0x2d896e);}[_0x27157a(0xf9)](){const _0x8ca824=_0x27157a;this[_0x8ca824(0x178)]=this[_0x8ca824(0x10a)](),this[_0x8ca824(0x162)]=this[_0x8ca824(0x12b)](),this[_0x8ca824(0x178)][_0x8ca824(0x176)](),this[_0x8ca824(0x12c)][_0x8ca824(0x173)](this[_0x8ca824(0x178)][_0x8ca824(0xf5)]),this[_0x8ca824(0x178)]['on'](_0x8ca824(0xf8),()=>{const _0x3f0548=_0x8ca824;this[_0x3f0548(0x124)]();}),_0x89e0f6({'emitter':this[_0x8ca824(0x162)],'contextElements':[this[_0x8ca824(0x162)][_0x8ca824(0xf5)],this[_0x8ca824(0x178)][_0x8ca824(0xf5)]],'callback':()=>this[_0x8ca824(0x16f)](),'activator':()=>this[_0x8ca824(0x178)][_0x8ca824(0x14f)]});}[_0x27157a(0x10a)](){const _0x4bc996=_0x27157a,_0x39776a=new _0x452677(this[_0x4bc996(0x100)]);_0x39776a[_0x4bc996(0x136)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x2d9d8f=[this[_0x4bc996(0x10f)][_0x4bc996(0x112)][_0x4bc996(0x17f)]];return this[_0x4bc996(0x10f)][_0x4bc996(0x112)][_0x4bc996(0x12a)]&&_0x2d9d8f[_0x4bc996(0x11f)](this[_0x4bc996(0x10f)][_0x4bc996(0x112)][_0x4bc996(0x12a)]),_0x39776a[_0x4bc996(0x145)]({'attributes':{'class':_0x2d9d8f}}),_0x39776a;}[_0x27157a(0x12b)](){const _0x1ef85e=_0x27157a,_0x5c5e6a=new _0x10034c(this[_0x1ef85e(0x100)]);return _0x5c5e6a[_0x1ef85e(0x145)]({'attributes':{'class':this[_0x1ef85e(0x10f)][_0x1ef85e(0x112)][_0x1ef85e(0x102)]}}),this[_0x1ef85e(0x16d)][_0x1ef85e(0x108)](_0x5c5e6a),_0x5c5e6a;}[_0x27157a(0x15d)](){const _0xa75352=_0x27157a;if(this[_0xa75352(0x162)]&&(this[_0xa75352(0x162)][_0xa75352(0x12f)][_0xa75352(0x13f)](),this[_0xa75352(0x135)][_0xa75352(0x117)]>0x0)){this[_0xa75352(0x135)][_0xa75352(0x16b)](_0xeac4bc=>{const _0x47969e=_0xa75352;_0xeac4bc[_0x47969e(0x183)]();});const _0x2f7a5f=new _0x1f4113(this[_0xa75352(0x100)]);_0x2f7a5f[_0xa75352(0x14d)]({'tag':_0xa75352(0x137),'attributes':{'class':this[_0xa75352(0x10f)][_0xa75352(0x112)][_0xa75352(0x11e)]},'children':this[_0xa75352(0x135)]}),this[_0xa75352(0x162)][_0xa75352(0x12f)][_0xa75352(0x108)](_0x2f7a5f);}}[_0x27157a(0x124)](){const _0x110a4f=_0x27157a;this[_0x110a4f(0x178)][_0x110a4f(0x14f)]?this[_0x110a4f(0x16f)]():this[_0x110a4f(0x104)]();}[_0x27157a(0x120)](){const _0x23dc46=_0x27157a,_0x64115d=this[_0x23dc46(0x135)][_0x23dc46(0x117)]>0x0;this[_0x23dc46(0x178)]?.[_0x23dc46(0xf5)]&&(this[_0x23dc46(0x178)][_0x23dc46(0xf5)][_0x23dc46(0x14b)][_0x23dc46(0x15f)]=_0x64115d?'':_0x23dc46(0x150));}[_0x27157a(0x14c)](){const _0x84707d=_0x27157a;this[_0x84707d(0x178)]?.[_0x84707d(0x14f)]&&this[_0x84707d(0x162)]?.[_0x84707d(0x123)]&&this[_0x84707d(0x178)][_0x84707d(0xf5)]&&this[_0x84707d(0x162)][_0x84707d(0x126)]({'target':this[_0x84707d(0x178)][_0x84707d(0xf5)],'limiter':document[_0x84707d(0x15e)](_0x84707d(0x141))});}[_0x27157a(0x16c)](_0x5dec61){const _0x3418c0=_0x27157a,_0xdabc44=this[_0x3418c0(0x12c)]?.[_0x3418c0(0x115)][_0x3418c0(0x113)]()||_0x3418c0(0x137),_0x305ec0=this[_0x3418c0(0x12c)]?.[_0x3418c0(0x182)];if(_0x305ec0){const _0x44a12e=_0x305ec0[0x0]||'',_0x5e0d3d=_0x5dec61[_0x3418c0(0x15e)]('.'+_0x44a12e),_0x24e61c=_0x5dec61[_0x3418c0(0x15e)](_0xdabc44);return _0x5e0d3d||_0x24e61c||_0x5dec61;}return _0x5dec61[_0x3418c0(0x15e)](_0xdabc44)||_0x5dec61;}[_0x27157a(0x13c)](){const _0x34fbb0=_0x27157a,_0x25f59d=this[_0x34fbb0(0x10c)]?.[_0x34fbb0(0xf5)]||this[_0x34fbb0(0x12c)];if(!_0x25f59d)return ln;const _0x5810a1=window[_0x34fbb0(0x146)](_0x25f59d)[_0x34fbb0(0x122)];if(_0x34fbb0(0x179)===_0x5810a1||_0x34fbb0(0x161)===_0x5810a1||!_0x5810a1){const _0x4c10d0=_0x25f59d[_0x34fbb0(0xf3)];if(_0x4c10d0){const _0xe31675=window[_0x34fbb0(0x146)](_0x4c10d0);return _0x34fbb0(0x179)!==_0xe31675[_0x34fbb0(0x122)]?_0xe31675[_0x34fbb0(0x122)]:ln;}return ln;}return _0x5810a1;}[_0x27157a(0x169)](_0x9cac7d,_0x133eb6){const _0xdeee33=_0x27157a;this[_0xdeee33(0x10f)][_0xdeee33(0x112)][_0xdeee33(0x143)]&&_0x9cac7d[_0xdeee33(0x182)][_0xdeee33(0x108)](this[_0xdeee33(0x10f)][_0xdeee33(0x112)][_0xdeee33(0x143)]),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x122)]=_0x133eb6,_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x157)]=_0xdeee33(0x163),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x174)]=_0xdeee33(0x10d),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x11c)]=_0xdeee33(0x10d),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x138)]='0',_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x132)]=_0xdeee33(0x150),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x158)]='-1',_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x167)]=_0xdeee33(0x118),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0x15f)]=_0xdeee33(0x11d),_0x9cac7d[_0xdeee33(0x14b)][_0xdeee33(0xf6)]=_0xdeee33(0x181);}[_0x27157a(0x107)](_0x3960fd){const _0x52b5fd=_0x27157a;_0x3960fd[_0x52b5fd(0x16b)](({element:_0x2a78b1,originalDisplay:_0x707b56,originalVisibility:_0x4d2c86})=>{const _0x413157=_0x52b5fd;_0x2a78b1[_0x413157(0x14b)][_0x413157(0x15f)]=_0x707b56,_0x2a78b1[_0x413157(0x14b)][_0x413157(0x167)]=_0x4d2c86;});}[_0x27157a(0x130)](_0xef6998){const _0x3bdc06=_0x27157a,_0x5dd0ce=[];let _0xad2e7b=_0xef6998;for(;_0xad2e7b&&_0xad2e7b!==document[_0x3bdc06(0x144)];){const _0x1d5dfa=window[_0x3bdc06(0x146)](_0xad2e7b);_0x3bdc06(0x150)!==_0x1d5dfa[_0x3bdc06(0x15f)]&&_0x3bdc06(0x147)!==_0x1d5dfa[_0x3bdc06(0x167)]||(_0x5dd0ce[_0x3bdc06(0x11f)]({'element':_0xad2e7b,'originalDisplay':_0xad2e7b[_0x3bdc06(0x14b)][_0x3bdc06(0x15f)],'originalVisibility':_0xad2e7b[_0x3bdc06(0x14b)][_0x3bdc06(0x167)]}),_0xad2e7b[_0x3bdc06(0x14b)][_0x3bdc06(0x15f)]=_0x3bdc06(0x139),_0xad2e7b[_0x3bdc06(0x14b)][_0x3bdc06(0x167)]=_0x3bdc06(0xf1)),_0xad2e7b=_0xad2e7b[_0x3bdc06(0xf3)];}return _0x5dd0ce;}[_0x27157a(0x133)](){const _0x5f209e=_0x27157a;let _0x3402ca,_0x56dc67;return this[_0x5f209e(0x10c)]?.[_0x5f209e(0xf5)]?(_0x3402ca=this[_0x5f209e(0x10c)][_0x5f209e(0xf5)][_0x5f209e(0x15a)](!0x0),_0x56dc67=this[_0x5f209e(0x16c)](_0x3402ca)):(_0x3402ca=document[_0x5f209e(0x131)](_0x5f209e(0x137)),_0x56dc67=_0x3402ca),{'calculationContainer':_0x3402ca,'targetContainer':_0x56dc67};}[_0x27157a(0x114)](){const _0x478d24=_0x27157a,{calculationContainer:_0x5e2c71,targetContainer:_0x5c6427}=this[_0x478d24(0x133)](),_0x5f26dc=this[_0x478d24(0x13c)]();this[_0x478d24(0x169)](_0x5e2c71,_0x5f26dc);const _0x5a1d7d=this[_0x478d24(0x10c)]?.[_0x478d24(0xf5)]||this[_0x478d24(0x12c)],_0x5c41ca=_0x5a1d7d?.[_0x478d24(0xf3)];_0x5c41ca?_0x5c41ca[_0x478d24(0x173)](_0x5e2c71):document[_0x478d24(0x144)][_0x478d24(0x173)](_0x5e2c71),_0x5e2c71[_0x478d24(0x121)]=_0x5c6427;const _0x15ac90=this[_0x478d24(0x130)](_0x5c41ca||null);return _0x5e2c71[_0x478d24(0x159)],_0x5e2c71[_0x478d24(0x171)]=_0x15ac90,_0x5e2c71;}[_0x27157a(0x156)](_0x2ec5ac,_0x18a504){const _0x45c7de=_0x27157a,_0x4e0917=_0x2ec5ac[_0x45c7de(0x121)]||_0x2ec5ac,_0x551467=[],{rowCount:_0x5249bc}=this[_0x45c7de(0x177)](_0x4e0917,_0x18a504);if(_0x5249bc<=this[_0x45c7de(0x10f)][_0x45c7de(0x175)])return _0x551467;const _0xf664f4=_0x18a504[_0x45c7de(0x14e)]();for(;_0xf664f4[_0x45c7de(0x117)]>0x0;){if(this[_0x45c7de(0x152)](_0x2ec5ac,_0x4e0917,_0xf664f4)){const _0x3ac0ed=_0x18a504[_0x45c7de(0x101)](_0x466404=>!_0xf664f4[_0x45c7de(0x13a)](_0x466404));_0x551467[_0x45c7de(0x11f)](..._0x3ac0ed);break;}if(!_0xf664f4[_0x45c7de(0x128)]())break;}return _0x551467;}[_0x27157a(0x177)](_0x7afb3d,_0x38f056){const _0x3a202c=_0x27157a;_0x7afb3d[_0x3a202c(0x13b)]='',_0x38f056[_0x3a202c(0x16b)](_0x48006e=>{const _0x15ae74=_0x3a202c;if(_0x48006e[_0x15ae74(0xf5)]){const _0x5e933f=_0x48006e[_0x15ae74(0xf5)][_0x15ae74(0x15a)](!0x0);_0x7afb3d[_0x15ae74(0x173)](_0x5e933f);}}),_0x7afb3d[_0x3a202c(0x159)];const _0x5e334f=_0x7afb3d[_0x3a202c(0x106)],_0x49beee=[];return Array[_0x3a202c(0x166)](_0x5e334f)[_0x3a202c(0x16b)](_0x258f51=>{const _0xe3294e=_0x3a202c,_0x10625d=_0x258f51[_0xe3294e(0x105)]()[_0xe3294e(0x174)];_0x49beee[_0xe3294e(0x110)](_0x5580b4=>Math[_0xe3294e(0x125)](_0x5580b4-_0x10625d)<this[_0xe3294e(0x10f)][_0xe3294e(0xfc)])||_0x49beee[_0xe3294e(0x11f)](_0x10625d);}),{'rowCount':_0x49beee[_0x3a202c(0x117)]};}[_0x27157a(0xfb)](){const _0x5951de=_0x27157a,_0x4cb942=document[_0x5951de(0x131)](_0x5951de(0x16e));return _0x4cb942[_0x5951de(0x127)]=this[_0x5951de(0x10f)][_0x5951de(0x112)][_0x5951de(0x17f)],this[_0x5951de(0x10f)][_0x5951de(0x112)][_0x5951de(0x12a)]&&_0x4cb942[_0x5951de(0x182)][_0x5951de(0x108)](this[_0x5951de(0x10f)][_0x5951de(0x112)][_0x5951de(0x12a)]),_0x4cb942[_0x5951de(0x180)]=_0x5951de(0x11b),_0x4cb942;}[_0x27157a(0x152)](_0x268001,_0x48f4d7,_0x196d30){const _0x235a43=_0x27157a;this[_0x235a43(0x177)](_0x48f4d7,_0x196d30);const _0x4eec63=this[_0x235a43(0xfb)]();_0x268001[_0x235a43(0x173)](_0x4eec63),_0x268001[_0x235a43(0x159)];const _0x2344e0=[..._0x48f4d7[_0x235a43(0x106)],_0x4eec63],_0x8ada3f=[];_0x2344e0[_0x235a43(0x16b)](_0x2ceb90=>{const _0x472ac5=_0x235a43,_0x5e6044=_0x2ceb90[_0x472ac5(0x105)]()[_0x472ac5(0x174)];_0x8ada3f[_0x472ac5(0x110)](_0x4b751b=>Math[_0x472ac5(0x125)](_0x4b751b-_0x5e6044)<this[_0x472ac5(0x10f)][_0x472ac5(0xfc)])||_0x8ada3f[_0x472ac5(0x11f)](_0x5e6044);});const _0x592903=_0x8ada3f[_0x235a43(0x117)];return _0x4eec63[_0x235a43(0x154)](),_0x592903<=this[_0x235a43(0x10f)][_0x235a43(0x175)];}[_0x27157a(0x109)](_0x7ce33d,_0x1a493a){const _0x23ef6f=_0x27157a;this[_0x23ef6f(0x164)][_0x23ef6f(0x13f)](),this[_0x23ef6f(0x135)][_0x23ef6f(0x13f)](),_0x7ce33d[_0x23ef6f(0x16b)](_0x4d94af=>{const _0x35fcd8=_0x23ef6f;_0x1a493a[_0x35fcd8(0x13a)](_0x4d94af)?this[_0x35fcd8(0x135)][_0x35fcd8(0x108)](_0x4d94af):this[_0x35fcd8(0x164)][_0x35fcd8(0x108)](_0x4d94af);});}[_0x27157a(0x172)](_0x16b35b){const _0x1e94d1=_0x27157a;if(_0x16b35b>0x0&&!this[_0x1e94d1(0x178)]&&this[_0x1e94d1(0xf9)](),_0x16b35b>0x0&&this[_0x1e94d1(0x178)]){const _0x2de43c=''+this[_0x1e94d1(0x10f)][_0x1e94d1(0x12d)]+(_0x16b35b<0x63?_0x16b35b:'99');this[_0x1e94d1(0x178)][_0x1e94d1(0x155)]=_0x2de43c;}this[_0x1e94d1(0x15d)](),this[_0x1e94d1(0x120)](),this[_0x1e94d1(0x14c)]();}[_0x27157a(0xff)](_0x59d6b1,_0x25f192){const _0x1dfd71=_0x27157a;this[_0x1dfd71(0x109)](_0x59d6b1,_0x25f192),this[_0x1dfd71(0x172)](_0x25f192[_0x1dfd71(0x117)]);}[_0x27157a(0xf4)](){const _0x32eba9=_0x27157a;this[_0x32eba9(0x12c)]&&_0x32eba9(0xfe)!=typeof IntersectionObserver&&(this[_0x32eba9(0x15b)]=new IntersectionObserver(_0x353c83=>{const _0x1e1ba5=_0x32eba9;_0x353c83[0x0][_0x1e1ba5(0x170)]&&this[_0x1e1ba5(0x17e)]&&requestAnimationFrame(()=>{const _0x27c9b8=_0x1e1ba5;this[_0x27c9b8(0x148)]();});},{'threshold':0.01,'rootMargin':_0x32eba9(0x103)}),this[_0x32eba9(0x15b)][_0x32eba9(0x13d)](this[_0x32eba9(0x12c)]));}[_0x27157a(0x160)](){const _0x107b14=_0x27157a;if(!this[_0x107b14(0x12c)])return!0x1;if(!this[_0x107b14(0x12c)][_0x107b14(0xfd)])return!0x1;const _0x2e4908=this[_0x107b14(0x12c)][_0x107b14(0x105)]();if(0x0===_0x2e4908[_0x107b14(0x122)]||0x0===_0x2e4908[_0x107b14(0x119)])return!0x1;const _0x7eb8ca=window[_0x107b14(0x184)]||document[_0x107b14(0x151)][_0x107b14(0x17a)],_0x335ec8=window[_0x107b14(0x10e)]||document[_0x107b14(0x151)][_0x107b14(0xef)],_0xafda4a=0xc8;return _0x2e4908[_0x107b14(0x10b)]>=-0xc8&&_0x2e4908[_0x107b14(0x174)]<=_0x7eb8ca+_0xafda4a&&_0x2e4908[_0x107b14(0x165)]>=-0xc8&&_0x2e4908[_0x107b14(0x11c)]<=_0x335ec8+_0xafda4a;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x44d48a=_0x2ce2;(function(_0x4e72b3,_0x2a3eec){const _0x10ad07=_0x2ce2,_0x35f9e7=_0x4e72b3();while(!![]){try{const _0x322450=parseInt(_0x10ad07(0xf1))/0x1+parseInt(_0x10ad07(0x12b))/0x2+parseInt(_0x10ad07(0x120))/0x3+parseInt(_0x10ad07(0x129))/0x4*(parseInt(_0x10ad07(0x107))/0x5)+parseInt(_0x10ad07(0x126))/0x6*(parseInt(_0x10ad07(0xf6))/0x7)+-parseInt(_0x10ad07(0x113))/0x8*(parseInt(_0x10ad07(0x102))/0x9)+-parseInt(_0x10ad07(0xfc))/0xa*(parseInt(_0x10ad07(0x118))/0xb);if(_0x322450===_0x2a3eec)break;else _0x35f9e7['push'](_0x35f9e7['shift']());}catch(_0x1e25a0){_0x35f9e7['push'](_0x35f9e7['shift']());}}}(_0x1758,0xe3654));import{ButtonView as _0x2ee146,IconView as _0x223bde}from'ckeditor5/src/ui.js';import{IconClose as _0x367b69,IconDocument as _0x4d7cbb,IconFileUpload as _0x25928e,IconLink as _0x119839,IconSelection as _0x1ae556}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1fbcb6}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5672e5}from'../../../aicore/ui/aispinner.js';function _0x2ce2(_0xa6cd6e,_0xb5a61e){const _0x1758d2=_0x1758();return _0x2ce2=function(_0x2ce2af,_0xb00806){_0x2ce2af=_0x2ce2af-0xe9;let _0x2e96a7=_0x1758d2[_0x2ce2af];return _0x2e96a7;},_0x2ce2(_0xa6cd6e,_0xb5a61e);}function _0x1758(){const _0xd1d0d5=['itemType','_isAnimationOnEnterEnabled','_createIconView','readonly','2612301LHBbeB','remove','ck-ai-chat-context-chip__label','_createLabelElement','ck-hidden','_setupRemoveButtonEvent','3210reqSUr','addEventListener','element','1354728ROcofV','isVisible','3466798dHAeAq','_setupTemplate','fire','_createTemplateChildren','tooltip','locale','_handleAnimationEndOnce','render','content','1790915SCkSGI','uiId','selection','ck-ai-chat-context-chip_document','bind','2345vYPXlk','label','ck-ai-chat-context-chip__type-icon','disableAnimationOnEnter','removeContextItemChip','classList','2836110BsRBHd','add','removeEventListener','execute','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','span','12291750lqHgHw','setTemplate','lastIndexOf','_createRemoveButton','webkitAnimationEnd','25XAGWoh','set','ck-ai-chat-context-chip','isLoading','bindTemplate','animationend','extendTemplate','small','_createLoaderIcon','_createTemplateAttributes','div','length','8HmotJx','ck-ai-chat-context-chip_new-chip','type','_initializeProperties','ck-ai-chat-context-chip_wide','154IjNarc','document','ck-ai-chat-context-controls__chip-tooltip','slice'];_0x1758=function(){return _0xd1d0d5;};return _0x1758();}const xn={'file':_0x25928e,'document':_0x4d7cbb,'web-resource':_0x119839,'text':_0x25928e,'selection':_0x1ae556},bn=_0x44d48a(0x109),wn=_0x44d48a(0x117),Tn=_0x44d48a(0xf4),En=_0x44d48a(0x122),An=_0x44d48a(0xf8),Cn=_0x44d48a(0x11a),In='n';export class AIChatContextItemButtonView extends _0x2ee146{constructor(_0xdcc781,_0x123f1a,_0x5ec396,_0x49f072,_0x40d7dc=!0x1){const _0x4e416f=_0x44d48a;super(_0xdcc781),this[_0x4e416f(0x11d)]=_0x49f072,this[_0x4e416f(0x116)](_0x123f1a,_0x5ec396,_0x40d7dc),this[_0x4e416f(0xe9)]();}[_0x44d48a(0xef)](){const _0x3ec2c0=_0x44d48a;super[_0x3ec2c0(0xef)](),this[_0x3ec2c0(0x11d)]&&this[_0x3ec2c0(0x128)]&&(this[_0x3ec2c0(0x128)][_0x3ec2c0(0xfb)][_0x3ec2c0(0xfd)](_0x3ec2c0(0x114)),this[_0x3ec2c0(0xee)](this[_0x3ec2c0(0x128)],()=>{const _0x5a64ff=_0x3ec2c0;this[_0x5a64ff(0x128)]&&this[_0x5a64ff(0x128)][_0x5a64ff(0xfb)][_0x5a64ff(0x121)](_0x5a64ff(0x114));}));}[_0x44d48a(0xf9)](){const _0x356925=_0x44d48a;this[_0x356925(0x11d)]=!0x1,this[_0x356925(0x128)]&&this[_0x356925(0x128)][_0x356925(0xfb)][_0x356925(0x121)](_0x356925(0x114));}[_0x44d48a(0x116)](_0xa49c8,_0x62d338,_0x1c775c){const _0x3194f9=_0x44d48a;this[_0x3194f9(0x108)](_0x3194f9(0xf7),_0xa49c8[_0x3194f9(0xf7)]),this[_0x3194f9(0x108)](_0x3194f9(0xec),!0x0),this[_0x3194f9(0x108)](_0x3194f9(0x11c),_0xa49c8[_0x3194f9(0x115)]),this[_0x3194f9(0x108)]('id',_0xa49c8[_0x3194f9(0xf2)]),this[_0x3194f9(0x108)](_0x3194f9(0x11f),_0x62d338),this[_0x3194f9(0x108)](_0x3194f9(0x10a),_0x1c775c);}[_0x44d48a(0xe9)](){const _0x27a573=_0x44d48a,_0x11950d=this[_0x27a573(0x11e)](),_0x59c38b=this[_0x27a573(0x105)](),_0x177c63=this[_0x27a573(0x10b)];this[_0x27a573(0x103)]({'tag':_0x27a573(0x111),'attributes':this[_0x27a573(0x110)](_0x177c63),'children':this[_0x27a573(0xeb)](_0x11950d,_0x59c38b,_0x177c63)});}[_0x44d48a(0x110)](_0x272c66){const _0x1f4b42=_0x44d48a;return{'class':[bn,_0x272c66['if'](_0x1f4b42(0x11c),Tn,_0x55d4dd=>_0x1f4b42(0x119)==_0x55d4dd),_0x272c66['if'](_0x1f4b42(0x11c),wn,_0x481585=>_0x1f4b42(0xf3)==_0x481585)],'data-cke-tooltip-text':_0x272c66['to'](_0x1f4b42(0xf7),On),'data-cke-tooltip-position':In,'data-cke-tooltip-class':Cn};}[_0x44d48a(0xeb)](_0x3dbd64,_0x426e92,_0x40f21d){const _0x112eec=_0x44d48a,_0x7158c3=this[_0x112eec(0x123)](_0x40f21d),_0x1ff097=this[_0x112eec(0x10f)]();return this[_0x112eec(0x11f)]?[_0x3dbd64,_0x7158c3]:[_0x3dbd64,_0x1ff097,_0x7158c3,_0x426e92];}[_0x44d48a(0x123)](_0x248d5f){const _0x4598a8=_0x44d48a;return{'tag':_0x4598a8(0x101),'attributes':{'class':En},'children':[{'text':_0x248d5f['to'](_0x4598a8(0xf7))}]};}[_0x44d48a(0x105)](){const _0x2d9815=_0x44d48a,_0xc48fd8=new _0x2ee146(this[_0x2d9815(0xed)]);return _0xc48fd8[_0x2d9815(0x108)]({'label':_0x1fbcb6(this[_0x2d9815(0xed)],_0x2d9815(0x100)),'icon':_0x367b69}),this[_0x2d9815(0x125)](_0xc48fd8),_0xc48fd8;}[_0x44d48a(0x125)](_0x18ae76){const _0xf7bf28=_0x44d48a;_0x18ae76['on'](_0xf7bf28(0xff),()=>{const _0x11f31a=_0xf7bf28;this[_0x11f31a(0xea)](_0x11f31a(0xfa),this['id']);});}[_0x44d48a(0x11e)](){const _0x394e54=_0x44d48a,_0x2ce4b2=this[_0x394e54(0x10b)],_0x4a61bf=new _0x223bde();return _0x4a61bf[_0x394e54(0xf0)]=xn[this[_0x394e54(0x11c)]],_0x4a61bf[_0x394e54(0x10d)]({'attributes':{'class':[An,_0x2ce4b2['if'](_0x394e54(0x10a),_0x394e54(0x124),_0x469a0e=>_0x469a0e)]}}),_0x4a61bf;}[_0x44d48a(0xee)](_0x1f90a5,_0x2d4479){const _0x25b477=_0x44d48a;if(!_0x1f90a5)return;const _0x2e7383=()=>{const _0x50104c=_0x2ce2;_0x2d4479(),_0x1f90a5[_0x50104c(0xfe)](_0x50104c(0x10c),_0x2e7383),_0x1f90a5[_0x50104c(0xfe)](_0x50104c(0x106),_0x2e7383);};_0x1f90a5[_0x25b477(0x127)](_0x25b477(0x10c),_0x2e7383),_0x1f90a5[_0x25b477(0x127)](_0x25b477(0x106),_0x2e7383);}[_0x44d48a(0x10f)](){const _0x1fb0ee=_0x44d48a,_0x2be12d=new _0x5672e5(_0x1fb0ee(0x10e));return _0x2be12d[_0x1fb0ee(0xf5)](_0x1fb0ee(0x12a))['to'](this,_0x1fb0ee(0x10a),_0x13d788=>_0x13d788),_0x2be12d;}}function On(_0x33570c){const _0x3b1dff=_0x44d48a;if(!_0x33570c)return _0x33570c;if(_0x33570c[_0x3b1dff(0x112)]<=0x78)return _0x33570c;const _0x16f532=_0x33570c[_0x3b1dff(0x11b)](0x0,0x78),_0x24fcdd=_0x16f532[_0x3b1dff(0x104)]('\x20');return(_0x24fcdd>0x0?_0x16f532[_0x3b1dff(0x11b)](0x0,_0x24fcdd):_0x16f532)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b7310=_0x1d7b;(function(_0x972665,_0x56ef05){const _0x3f034c=_0x1d7b,_0x1341e3=_0x972665();while(!![]){try{const _0xbad744=parseInt(_0x3f034c(0x1a0))/0x1+parseInt(_0x3f034c(0x19d))/0x2+parseInt(_0x3f034c(0x19b))/0x3*(parseInt(_0x3f034c(0x197))/0x4)+parseInt(_0x3f034c(0x1d5))/0x5*(parseInt(_0x3f034c(0x1db))/0x6)+parseInt(_0x3f034c(0x1a9))/0x7+-parseInt(_0x3f034c(0x1af))/0x8*(parseInt(_0x3f034c(0x1c4))/0x9)+parseInt(_0x3f034c(0x1b2))/0xa*(-parseInt(_0x3f034c(0x1a7))/0xb);if(_0xbad744===_0x56ef05)break;else _0x1341e3['push'](_0x1341e3['shift']());}catch(_0x547d1b){_0x1341e3['push'](_0x1341e3['shift']());}}}(_0x5cf6,0x80ca7));import{FocusTracker as _0x425248,KeystrokeHandler as _0x1e2d80}from'ckeditor5/src/utils.js';import{ButtonView as _0x372f7c,FocusCycler as _0x44e758,LabeledFieldView as _0x55440b,View as _0x1a86e4,FormHeaderView as _0x7eb32c,createLabeledInputText as _0x3fa5b2,submitHandler as _0xa82849}from'ckeditor5/src/ui.js';function _0x1d7b(_0x1d9b50,_0x32a83f){const _0x5cf64d=_0x5cf6();return _0x1d7b=function(_0x1d7b20,_0x241283){_0x1d7b20=_0x1d7b20-0x192;let _0x3c6a81=_0x5cf64d[_0x1d7b20];return _0x3c6a81;},_0x1d7b(_0x1d9b50,_0x32a83f);}import{IconCheck as _0x597597,IconPreviousArrow as _0x305acf}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2e62c2}from'../../../aicore/utils/common-translations.js';const eh=_0x5b7310(0x1d9),hh=_0x5b7310(0x1cd);function _0x5cf6(){const _0x5ba17d=['_createUrlInputField','13122uBSMTx','fire','value','focusTracker','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_setupKeystrokes','_setupTemplate','_createBackButton','_createConfirmButton','ck-ai-chat-context-controls__url-input-section','AI_CHAT_CONTEXT_URL_ADD_URL','focus','destroy','set','stop','execute','_focusables','460855lkYRMx','_setupEventHandlers','_handleSubmit','element','ck-ai-chat-context-controls__url-form','setError','18AizPpE','input','submit','clearError','keystrokes','isEnabled','140RFLHVp','listenTo','form','AI_CHAT_CONTEXT_URL_LABEL','33111vnmONa','add','600506rDwNkQ','AI_CHAT_CONTEXT_URL_PLACEHOLDER','tab','571257enVJNU','_isValidUrl','ck-button-icon\x20ck-button-back','length','urlInputField','setTemplate','fieldView','547514gcxUsx','esc','5047063bjvJBW','confirmButton','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','clear','forEach','3472kJrMYK','trim','createCollection','220iTQmhc','shift+tab','AI_CHAT_CONTEXT_URL_INVALID_ERROR','refreshBalloon','div','backButton','getValue','ck-button-icon','ck-labeled-field-view_empty','render','focusCycler','locale','_updateConfirmButtonState','submitUrl','errorText','cancel','children'];_0x5cf6=function(){return _0x5ba17d;};return _0x5cf6();}export class AIChatContextPanelUrlInputView extends _0x1a86e4{[_0x5b7310(0x1c7)];[_0x5b7310(0x195)];[_0x5b7310(0x1d4)];[_0x5b7310(0x1bc)];[_0x5b7310(0x1a4)];[_0x5b7310(0x1b7)];[_0x5b7310(0x1aa)];constructor(_0x48a441){const _0x357ad1=_0x5b7310;super(_0x48a441),this[_0x357ad1(0x1c7)]=new _0x425248(),this[_0x357ad1(0x195)]=new _0x1e2d80(),this[_0x357ad1(0x1b7)]=this[_0x357ad1(0x1cb)](),this[_0x357ad1(0x1a4)]=this[_0x357ad1(0x1c3)](),this[_0x357ad1(0x1aa)]=this[_0x357ad1(0x1cc)](),this[_0x357ad1(0x1d4)]=this[_0x357ad1(0x1b1)]([this[_0x357ad1(0x1b7)],this[_0x357ad1(0x1a4)],this[_0x357ad1(0x1aa)]]),this[_0x357ad1(0x1bc)]=new _0x44e758({'focusables':this[_0x357ad1(0x1d4)],'focusTracker':this[_0x357ad1(0x1c7)],'keystrokeHandler':this[_0x357ad1(0x195)],'actions':{'focusPrevious':_0x357ad1(0x1b3),'focusNext':_0x357ad1(0x19f)}}),this[_0x357ad1(0x1ca)](),this[_0x357ad1(0x1d6)](),this[_0x357ad1(0x1c9)]();}[_0x5b7310(0x1bb)](){const _0x363e9d=_0x5b7310;super[_0x363e9d(0x1bb)](),this[_0x363e9d(0x1d4)][_0x363e9d(0x1ae)](_0x599ff7=>{const _0x565c48=_0x363e9d;this[_0x565c48(0x1c7)][_0x565c48(0x19c)](_0x599ff7[_0x565c48(0x1d8)]),this[_0x565c48(0x195)][_0x565c48(0x198)](_0x599ff7[_0x565c48(0x1d8)]);}),_0xa82849({'view':this}),this[_0x363e9d(0x1cf)]();}[_0x5b7310(0x1d0)](){const _0x50a9ac=_0x5b7310;super[_0x50a9ac(0x1d0)](),this[_0x50a9ac(0x1c7)][_0x50a9ac(0x1d0)](),this[_0x50a9ac(0x195)][_0x50a9ac(0x1d0)]();}[_0x5b7310(0x1cf)](){const _0x22c0b2=_0x5b7310;this[_0x22c0b2(0x1a4)][_0x22c0b2(0x1cf)]();}[_0x5b7310(0x1b8)](){const _0x4a2b52=_0x5b7310;return this[_0x4a2b52(0x1a4)][_0x4a2b52(0x1a6)][_0x4a2b52(0x1d8)]?.[_0x4a2b52(0x1c6)]?.[_0x4a2b52(0x1b0)]()||'';}[_0x5b7310(0x1ad)](){const _0x46e5c2=_0x5b7310;this[_0x46e5c2(0x1a4)][_0x46e5c2(0x1a6)][_0x46e5c2(0x1d8)][_0x46e5c2(0x1c6)]='',this[_0x46e5c2(0x1a4)][_0x46e5c2(0x1c0)]=null,this[_0x46e5c2(0x1aa)][_0x46e5c2(0x196)]=!0x1;}[_0x5b7310(0x1da)](_0x470dfa){const _0x1a1aa9=_0x5b7310;this[_0x1a1aa9(0x1a4)][_0x1a1aa9(0x1c0)]=_0x470dfa,this[_0x1a1aa9(0x1be)](),this[_0x1a1aa9(0x1c5)](_0x1a1aa9(0x1b5));}[_0x5b7310(0x194)](){const _0x45ea2e=_0x5b7310;this[_0x45ea2e(0x1a4)][_0x45ea2e(0x1c0)]=null,this[_0x45ea2e(0x1be)]();}[_0x5b7310(0x1cb)](){const _0x37f7eb=_0x5b7310,_0x25a3fe=new _0x372f7c(this[_0x37f7eb(0x1bd)]);return _0x25a3fe[_0x37f7eb(0x1d1)]({'icon':_0x305acf,'tooltip':_0x2e62c2(this[_0x37f7eb(0x1bd)],_0x37f7eb(0x1ab)),'tooltipPosition':'n','class':_0x37f7eb(0x1a2)}),_0x25a3fe;}[_0x5b7310(0x1c3)](){const _0xefc900=_0x5b7310,_0xc898c2=new _0x55440b(this[_0xefc900(0x1bd)],_0x3fa5b2);return _0xc898c2[_0xefc900(0x1d1)]({'label':_0x2e62c2(this[_0xefc900(0x1bd)],_0xefc900(0x19a)),'class':_0xefc900(0x1ba)}),_0xc898c2[_0xefc900(0x1a6)][_0xefc900(0x1d1)]({'placeholder':_0x2e62c2(this[_0xefc900(0x1bd)],_0xefc900(0x19e))}),_0xc898c2;}[_0x5b7310(0x1cc)](){const _0x3d23fb=_0x5b7310,_0x5448e3=new _0x372f7c(this[_0x3d23fb(0x1bd)]);return _0x5448e3[_0x3d23fb(0x1d1)]({'icon':_0x597597,'tooltip':_0x2e62c2(this[_0x3d23fb(0x1bd)],_0x3d23fb(0x1ce)),'tooltipPosition':'n','class':_0x3d23fb(0x1b9),'type':_0x3d23fb(0x193),'isEnabled':!0x1}),_0x5448e3;}[_0x5b7310(0x1ca)](){const _0x401dd9=_0x5b7310,_0x5bfc0b=new _0x7eb32c(this[_0x401dd9(0x1bd)],{'label':_0x2e62c2(this[_0x401dd9(0x1bd)],_0x401dd9(0x1ce)),'class':_0x401dd9(0x1c8)});_0x5bfc0b[_0x401dd9(0x1c2)][_0x401dd9(0x19c)](this[_0x401dd9(0x1b7)],0x0),this[_0x401dd9(0x1a5)]({'tag':_0x401dd9(0x199),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x5bfc0b,{'tag':_0x401dd9(0x1b6),'attributes':{'class':hh},'children':[this[_0x401dd9(0x1a4)],this[_0x401dd9(0x1aa)]]}]});}[_0x5b7310(0x1d6)](){const _0x20854e=_0x5b7310;this[_0x20854e(0x1b7)]['on'](_0x20854e(0x1d3),()=>{const _0x5214dc=_0x20854e;this[_0x5214dc(0x1ad)](),this[_0x5214dc(0x1c5)](_0x5214dc(0x1c1));}),this[_0x20854e(0x1a4)][_0x20854e(0x1a6)]['on'](_0x20854e(0x192),()=>{const _0x5e799d=_0x20854e;this[_0x5e799d(0x194)](),this[_0x5e799d(0x1be)](),this[_0x5e799d(0x1c5)](_0x5e799d(0x1b5));}),this['on'](_0x20854e(0x193),_0x2b66d9=>{const _0x59e284=_0x20854e;_0x2b66d9[_0x59e284(0x1d2)](),this[_0x59e284(0x1d7)]();});}[_0x5b7310(0x1c9)](){const _0x7089a=_0x5b7310;this[_0x7089a(0x195)][_0x7089a(0x1d1)](_0x7089a(0x1a8),(_0x3fd3fc,_0x2b6624)=>{const _0x157bfc=_0x7089a;this[_0x157bfc(0x1ad)](),this[_0x157bfc(0x1c5)](_0x157bfc(0x1c1)),_0x2b6624();});}[_0x5b7310(0x1d7)](){const _0x44823c=_0x5b7310,_0x58f9e9=this[_0x44823c(0x1b8)]()[_0x44823c(0x1b0)]();_0x58f9e9?this[_0x44823c(0x1a1)](_0x58f9e9)?(this[_0x44823c(0x194)](),this[_0x44823c(0x1c5)](_0x44823c(0x1bf),_0x58f9e9)):this[_0x44823c(0x1da)](_0x2e62c2(this[_0x44823c(0x1bd)],_0x44823c(0x1b4))):this[_0x44823c(0x1da)](_0x2e62c2(this[_0x44823c(0x1bd)],_0x44823c(0x1ac)));}[_0x5b7310(0x1be)](){const _0x7c4807=_0x5b7310,_0x1520f4=this[_0x7c4807(0x1b8)]()[_0x7c4807(0x1b0)](),_0x11d650=!!this[_0x7c4807(0x1a4)][_0x7c4807(0x1c0)];this[_0x7c4807(0x1aa)][_0x7c4807(0x196)]=_0x1520f4[_0x7c4807(0x1a3)]>0x0&&!_0x11d650;}[_0x5b7310(0x1a1)](_0x2105db){try{return!!new URL(_0x2105db);}catch{return!0x1;}}}
|