@ckeditor/ckeditor5-ai 47.0.0 → 47.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
-
const
|
|
23
|
+
const _0x2cfdeb=_0x26ff;function _0x2454(){const _0x47d3e2=['getAvailableModels','608SeXMzq','_filterModels','11635496erdNVw','string','14NDXzcn','capabilities','_displayedModels','some','list','_modelList','push','12WEPUyA','184213zngZKB','name','_defaultModelId','getDefault','ai-chat-default-model-id-unrecognized','10PIyBkq','startsWith','values','enabled','getAll','55xYYpmm','find','provider','getModel','766974vAgrBo','ai-chat-model-id-unrecognized','2635320UFgxNf','length','isAvailable','4938010lHAYMZ','getModels','7135290LpOXDw','map','items','filter','_connector','sort','8886JLHtKU','toLocaleLowerCase'];_0x2454=function(){return _0x47d3e2;};return _0x2454();}(function(_0xd9d0bd,_0x55651b){const _0x334100=_0x26ff,_0x565cd8=_0xd9d0bd();while(!![]){try{const _0x422e87=parseInt(_0x334100(0x1ac))/0x1*(parseInt(_0x334100(0x1ab))/0x2)+parseInt(_0x334100(0x19d))/0x3*(parseInt(_0x334100(0x1a0))/0x4)+-parseInt(_0x334100(0x195))/0x5+-parseInt(_0x334100(0x1ba))/0x6*(parseInt(_0x334100(0x1a4))/0x7)+-parseInt(_0x334100(0x1a2))/0x8+-parseInt(_0x334100(0x197))/0x9*(-parseInt(_0x334100(0x1b1))/0xa)+-parseInt(_0x334100(0x1b6))/0xb*(-parseInt(_0x334100(0x192))/0xc);if(_0x422e87===_0x55651b)break;else _0x565cd8['push'](_0x565cd8['shift']());}catch(_0xb3105d){_0x565cd8['push'](_0x565cd8['shift']());}}}(_0x2454,0xb6c79));import{EmitterMixin as _0x20f49b,logWarning as _0x4abe22}from'ckeditor5/src/utils.js';function _0x26ff(_0x42f928,_0x5baccd){const _0x245402=_0x2454();return _0x26ff=function(_0x26ff86,_0x2ac9d1){_0x26ff86=_0x26ff86-0x191;let _0x1a09ac=_0x245402[_0x26ff86];return _0x1a09ac;},_0x26ff(_0x42f928,_0x5baccd);}export class AIChatModels extends _0x20f49b(){[_0x2cfdeb(0x1a9)]=[];[_0x2cfdeb(0x19b)];[_0x2cfdeb(0x1a6)];[_0x2cfdeb(0x1ae)];constructor({connector:_0x402e2e,displayedModels:_0x535a52,defaultModelId:_0x361cb5}){const _0x5c952b=_0x2cfdeb;super(),this[_0x5c952b(0x19b)]=_0x402e2e,this[_0x5c952b(0x1a6)]=_0x535a52,this[_0x5c952b(0x1ae)]=_0x361cb5;}async[_0x2cfdeb(0x1b5)](){const _0x252449=_0x2cfdeb;if(!this[_0x252449(0x1a9)][_0x252449(0x193)]){const _0xf3a8b5=this[_0x252449(0x19b)][_0x252449(0x196)](),_0x5a3c30=(await _0xf3a8b5[_0x252449(0x1a8)]())[_0x252449(0x199)][_0x252449(0x19c)]((_0x43be9f,_0x9955e6)=>{const _0x486627=_0x252449,_0x20d99a=Object[_0x486627(0x1b3)](_0x43be9f[_0x486627(0x1a5)])[_0x486627(0x19a)](_0x3b06d4=>_0x3b06d4[_0x486627(0x1b4)])[_0x486627(0x193)];return Object[_0x486627(0x1b3)](_0x9955e6[_0x486627(0x1a5)])[_0x486627(0x19a)](_0x28ae1d=>_0x28ae1d[_0x486627(0x1b4)])[_0x486627(0x193)]-_0x20d99a;});this[_0x252449(0x1a9)]=_0x5a3c30;}return this[_0x252449(0x1a9)];}async[_0x2cfdeb(0x19f)](){const _0xf2365b=_0x2cfdeb,_0x4d3a01=await this[_0xf2365b(0x1b5)]();return this[_0xf2365b(0x1a1)](_0x4d3a01,this[_0xf2365b(0x1a6)]);}async[_0x2cfdeb(0x1b9)](_0x5b0655){const _0x28359f=_0x2cfdeb,_0xd983c5=await this[_0x28359f(0x1b5)]();if(!_0xd983c5[_0x28359f(0x193)])return null;if(_0x5b0655){const _0x418581=_0xd983c5[_0x28359f(0x1b7)](_0x3f77ae=>_0x3f77ae['id']===_0x5b0655);if(_0x418581)return _0x418581;_0x4abe22(_0x28359f(0x191),{'modelId':_0x5b0655,'fallBackModelId':this[_0x28359f(0x1ae)]});}return this[_0x28359f(0x1af)]();}async[_0x2cfdeb(0x1af)](){const _0x5779e6=_0x2cfdeb,_0x3f3699=await this[_0x5779e6(0x19f)]();if(!_0x3f3699[_0x5779e6(0x193)])return null;if(this[_0x5779e6(0x1ae)]){const _0x4ce0b8=_0x3f3699[_0x5779e6(0x1b7)](_0x30c32b=>_0x30c32b['id']===this[_0x5779e6(0x1ae)]);if(_0x4ce0b8)return _0x4ce0b8;_0x4abe22(_0x5779e6(0x1b0),{'defaultModelId':this[_0x5779e6(0x1ae)],'fallBackModelId':_0x3f3699[0x0]['id']});}return _0x3f3699[0x0];}async[_0x2cfdeb(0x194)](_0x380f1e){const _0x57e59f=_0x2cfdeb;return(await this[_0x57e59f(0x19f)]())[_0x57e59f(0x1a7)](_0x10abc8=>_0x10abc8[_0x57e59f(0x1ad)]===_0x380f1e[_0x57e59f(0x1ad)]&&_0x10abc8[_0x57e59f(0x1b8)]===_0x380f1e[_0x57e59f(0x1b8)]);}[_0x2cfdeb(0x1a1)](_0x4cc2a5,_0x36345f){const _0x1a65c2=_0x2cfdeb;let _0x352844;if(_0x36345f){_0x352844=[];const _0x376ff8=_0x1a65c2(0x1a3)==typeof _0x36345f?[_0x36345f[_0x1a65c2(0x19e)]()]:_0x36345f[_0x1a65c2(0x198)](_0x2789d8=>_0x2789d8[_0x1a65c2(0x19e)]());for(const _0x3b0a48 of _0x376ff8)for(const _0x2e9a5e of _0x4cc2a5)(_0x2e9a5e['id'][_0x1a65c2(0x19e)]()===_0x3b0a48||_0x2e9a5e[_0x1a65c2(0x1ad)][_0x1a65c2(0x19e)]()===_0x3b0a48||_0x2e9a5e[_0x1a65c2(0x1b8)][_0x1a65c2(0x19e)]()===_0x3b0a48||_0x2e9a5e['id'][_0x1a65c2(0x19e)]()[_0x1a65c2(0x1b2)](_0x3b0a48))&&_0x352844[_0x1a65c2(0x1aa)](_0x2e9a5e);}else _0x352844=_0x4cc2a5;return _0x352844;}}
|
|
@@ -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
|
-
|
|
23
|
+
function _0x4be2(_0xf07a2e,_0x2acc25){const _0x1e1e8b=_0x1e1e();return _0x4be2=function(_0x4be23e,_0x13d19e){_0x4be23e=_0x4be23e-0x15b;let _0x1ccc5e=_0x1e1e8b[_0x4be23e];return _0x1ccc5e;},_0x4be2(_0xf07a2e,_0x2acc25);}const _0x540c98=_0x4be2;(function(_0x31116a,_0x3da991){const _0x2222f4=_0x4be2,_0x2c7f0c=_0x31116a();while(!![]){try{const _0x2433e7=parseInt(_0x2222f4(0x1a7))/0x1*(-parseInt(_0x2222f4(0x162))/0x2)+parseInt(_0x2222f4(0x1a6))/0x3*(parseInt(_0x2222f4(0x173))/0x4)+-parseInt(_0x2222f4(0x174))/0x5+-parseInt(_0x2222f4(0x18b))/0x6+-parseInt(_0x2222f4(0x167))/0x7+parseInt(_0x2222f4(0x168))/0x8*(-parseInt(_0x2222f4(0x172))/0x9)+-parseInt(_0x2222f4(0x192))/0xa*(-parseInt(_0x2222f4(0x1a3))/0xb);if(_0x2433e7===_0x3da991)break;else _0x2c7f0c['push'](_0x2c7f0c['shift']());}catch(_0x5f220e){_0x2c7f0c['push'](_0x2c7f0c['shift']());}}}(_0x1e1e,0xb5e49));import{ButtonView as _0x593373,clickOutsideHandler as _0x4c041a,View as _0x4db962}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x208b88}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x468809}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x4b9546,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x45cdae}from'./controls/aichatcontextpanelview.js';function _0x1e1e(){const _0x4a65c4=['35532UNvlFm','40myvkTu','389195BvabXU','isModelAvailable','updateResourceState','bindTemplate','_shouldRestorePromptInputFocus','execute','removeContextItem','setWebSearch','find','toggleReasoning','abortPromptStream','_displayedModels','selectModel','addContextButtonView','ck-ai-chat-controls-model-unavailable-message','clearCurrentContextItems','reset','setInputPlaceholder','agent','focusPromptInput','resetMessageInput','ck-ai-chat-controls__start-new-chat-button','set','8359062ZgRxoL','setReasoning','ck-ai-chat-controls-disabled','setPlaceholderText','toggleWebSearch','_createContextPanelView','locale','10wVcwBV','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','disableModelSelector','element','setAddContextOptions','setTemplate','ck-hidden','low','_createPromptCapabilitiesView','ck-ai-chat-controls','_modelUnavailableMessageView','closeSourceResourceBalloon','_loaderView','clearConversationContextUI','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setModel','delegate','48183179lJHAQK','_promptCapabilitiesView','focus','18534eQaTNo','110452NejNkA','div','addContextItem','isLoading','_createModelUnavailableMessageView','_promptInputView','startsWith','setContextItemLoading','enableModelSelector','setModelList','_createLoaderView','2eTMOTL','form','populateSourceResourceBalloon','_contextPanelView','setConversationContext','8121064LBTvTW','1936buJwbJ','_createPromptInputView','sendUserMessage','startConversation','clearPendingContextUI','clearConversationContextItems','change:isLoading','_handlePromptInputFocus','setIsUploadInProgress','isDisabled'];_0x1e1e=function(){return _0x4a65c4;};return _0x1e1e();}import{AIChatControlsLoaderView as _0x4a5a0d}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x4874e0}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x4db962{[_0x540c98(0x17f)]=[];[_0x540c98(0x165)];[_0x540c98(0x15c)];[_0x540c98(0x1a4)];[_0x540c98(0x19e)];[_0x540c98(0x19c)];[_0x540c98(0x178)];constructor(_0xc039ed,_0x4312bb){const _0x2299db=_0x540c98;super(_0xc039ed),this[_0x2299db(0x165)]=this[_0x2299db(0x190)](_0xc039ed,_0x4312bb),this[_0x2299db(0x15c)]=this[_0x2299db(0x169)](_0xc039ed),this[_0x2299db(0x1a4)]=this[_0x2299db(0x19a)](_0xc039ed),this[_0x2299db(0x19e)]=this[_0x2299db(0x161)](_0xc039ed),this[_0x2299db(0x19c)]=this[_0x2299db(0x15b)](_0xc039ed),this[_0x2299db(0x178)]=!0x1,this[_0x2299db(0x15c)][_0x2299db(0x1a2)](_0x2299db(0x16a))['to'](this),this[_0x2299db(0x19e)][_0x2299db(0x1a2)](_0x2299db(0x17e))['to'](this),this[_0x2299db(0x1a4)][_0x2299db(0x1a2)](_0x2299db(0x18f))['to'](this),this[_0x2299db(0x1a4)][_0x2299db(0x1a2)](_0x2299db(0x17d))['to'](this),this[_0x2299db(0x1a4)][_0x2299db(0x1a2)](_0x2299db(0x180))['to'](this),this[_0x2299db(0x165)][_0x2299db(0x1a2)](..._0x45cdae)['to'](this),this[_0x2299db(0x18a)](_0x2299db(0x175),!0x0),this[_0x2299db(0x18a)](_0x2299db(0x171),!0x1);const _0x36092d=this[_0x2299db(0x177)];this[_0x2299db(0x197)]({'tag':_0x2299db(0x163),'attributes':{'class':['ck',_0x2299db(0x19b),_0x36092d['if'](_0x2299db(0x171),_0x2299db(0x18d))]},'children':[{'tag':_0x2299db(0x1a8),'attributes':{'class':[_0x36092d['if'](_0x2299db(0x1aa),_0x2299db(0x198),_0x249813=>_0x249813||!this[_0x2299db(0x175)]),_0x36092d['if'](_0x2299db(0x175),_0x2299db(0x198),_0x3aa545=>!_0x3aa545||this[_0x2299db(0x1aa)])]},'children':[this[_0x2299db(0x165)],this[_0x2299db(0x15c)],this[_0x2299db(0x1a4)]]},{'tag':_0x2299db(0x1a8),'attributes':{'class':[_0x36092d['if'](_0x2299db(0x1aa),_0x2299db(0x198),_0x8615bb=>!_0x8615bb)]},'children':[this[_0x2299db(0x19e)]]},{'tag':_0x2299db(0x1a8),'attributes':{'class':[_0x36092d['if'](_0x2299db(0x175),_0x2299db(0x198),_0x439028=>_0x439028)]},'children':[this[_0x2299db(0x19c)]]}]}),_0x4c041a({'emitter':this[_0x2299db(0x15c)],'activator':()=>this[_0x2299db(0x1aa)],'contextElements':()=>[this[_0x2299db(0x195)]],'callback':()=>{const _0x34862b=_0x2299db;this[_0x34862b(0x178)]=!0x1;}}),this['on'](_0x2299db(0x16e),this[_0x2299db(0x16f)],{'priority':_0x2299db(0x199)});}[_0x540c98(0x190)](_0x32189c,_0x1887aa){return new _0x4b9546(_0x32189c,_0x1887aa);}[_0x540c98(0x169)](_0x569767){const _0x4cf548=_0x540c98;return new _0x208b88(_0x569767,this[_0x4cf548(0x165)][_0x4cf548(0x181)]);}[_0x540c98(0x19a)](_0xf6a85a){return new _0x468809(_0xf6a85a);}[_0x540c98(0x161)](_0x2ce103){return new _0x4a5a0d(_0x2ce103);}[_0x540c98(0x15b)](_0x16d467){const _0x2cabd1=_0x540c98,_0x4cd421=new _s(_0x16d467);return _0x4cd421[_0x2cabd1(0x1a2)](_0x2cabd1(0x16b))['to'](this),_0x4cd421;}[_0x540c98(0x16f)](_0x314416,_0x446c68,_0x2bd29d){const _0x37e13d=_0x540c98;_0x2bd29d?this[_0x37e13d(0x178)]=!0x0:this[_0x37e13d(0x178)]&&this[_0x37e13d(0x15c)][_0x37e13d(0x1a5)]();}[_0x540c98(0x1a9)](_0x53c1d4,_0x21d223){const _0x99953a=_0x540c98;this[_0x99953a(0x165)][_0x99953a(0x1a9)](_0x53c1d4,_0x21d223);}[_0x540c98(0x17a)](_0x1539be){const _0x255f46=_0x540c98;this[_0x255f46(0x165)][_0x255f46(0x17a)](_0x1539be);}[_0x540c98(0x15e)](_0x4c14e,_0x543957){const _0x4a8910=_0x540c98;this[_0x4a8910(0x165)][_0x4a8910(0x15e)](_0x4c14e,_0x543957);}[_0x540c98(0x170)](_0x4c849a){const _0x1f9906=_0x540c98;this[_0x1f9906(0x15c)][_0x1f9906(0x170)](_0x4c849a);}[_0x540c98(0x166)](_0x3f3389){const _0x332d3e=_0x540c98;this[_0x332d3e(0x165)][_0x332d3e(0x166)](_0x3f3389);}[_0x540c98(0x16c)](){const _0x517c74=_0x540c98;this[_0x517c74(0x165)][_0x517c74(0x183)]();}[_0x540c98(0x19f)](){const _0x1bee14=_0x540c98;this[_0x1bee14(0x165)][_0x1bee14(0x16d)]();}[_0x540c98(0x176)](_0x57707d,_0xa7c157,_0x1f225e){const _0x2bdc51=_0x540c98;this[_0x2bdc51(0x165)][_0x2bdc51(0x176)](_0x57707d,_0xa7c157,_0x1f225e);}[_0x540c98(0x17b)](_0x222f1a){const _0x1aa6a6=_0x540c98;this[_0x1aa6a6(0x1a4)][_0x1aa6a6(0x17b)](_0x222f1a);}[_0x540c98(0x18c)](_0x4fc486){const _0x13e43f=_0x540c98;this[_0x13e43f(0x1a4)][_0x13e43f(0x18c)](_0x4fc486);}[_0x540c98(0x188)](){const _0x4cc82f=_0x540c98;this[_0x4cc82f(0x15c)][_0x4cc82f(0x184)]();}[_0x540c98(0x196)](_0x52721f){const _0x49c426=_0x540c98;this[_0x49c426(0x165)][_0x49c426(0x196)](_0x52721f);}[_0x540c98(0x185)](_0x1b39dc){const _0x37e624=_0x540c98;this[_0x37e624(0x15c)][_0x37e624(0x18e)](_0x1b39dc);}[_0x540c98(0x160)](_0x1b8501,_0x6d6cf){const _0x12ab6b=_0x540c98;this[_0x12ab6b(0x17f)]=_0x1b8501,this[_0x12ab6b(0x1a4)][_0x12ab6b(0x160)](_0x1b8501,_0x6d6cf);}[_0x540c98(0x1a1)](_0x3fa80d){const _0x24a419=_0x540c98;(_0x3fa80d?this[_0x24a419(0x17f)][_0x24a419(0x17c)](_0xdbc8a5=>_0xdbc8a5['id']===_0x3fa80d['id']):null)?(this[_0x24a419(0x175)]=!0x0,this[_0x24a419(0x1a4)][_0x24a419(0x1a1)](_0x3fa80d)):_0x3fa80d?.['id'][_0x24a419(0x15d)](_0x24a419(0x186))?(this[_0x24a419(0x175)]=!0x0,this[_0x24a419(0x1a4)][_0x24a419(0x1a1)](this[_0x24a419(0x17f)][0x0])):this[_0x24a419(0x175)]=!0x1;}[_0x540c98(0x15f)](){const _0x5efe04=_0x540c98;this[_0x5efe04(0x1a4)][_0x5efe04(0x15f)]();}[_0x540c98(0x194)](_0x290947){const _0x4ff8d7=_0x540c98;this[_0x4ff8d7(0x1a4)][_0x4ff8d7(0x194)](_0x290947);}[_0x540c98(0x164)](_0x50e45b,_0x3d402f,_0x5e98ce,_0x5a1906){const _0x421add=_0x540c98;this[_0x421add(0x165)][_0x421add(0x164)](_0x50e45b,_0x3d402f,_0x5e98ce,_0x5a1906);}[_0x540c98(0x19d)](_0x468fee){const _0x3e1088=_0x540c98;this[_0x3e1088(0x165)][_0x3e1088(0x19d)](_0x468fee);}[_0x540c98(0x187)](){const _0xa4ba37=_0x540c98;this[_0xa4ba37(0x15c)][_0xa4ba37(0x1a5)]();}}class _s extends _0x4db962{constructor(_0x575fc4){const _0x5a82f2=_0x540c98;super(_0x575fc4);const _0x3794db=new _0x593373(_0x575fc4);_0x3794db[_0x5a82f2(0x18a)]({'label':_0x4874e0(this[_0x5a82f2(0x191)],_0x5a82f2(0x193)),'withText':!0x0,'class':[_0x5a82f2(0x189)],'tooltip':''}),_0x3794db[_0x5a82f2(0x1a2)](_0x5a82f2(0x179))['to'](this,_0x5a82f2(0x16b)),this[_0x5a82f2(0x197)]({'tag':_0x5a82f2(0x1a8),'attributes':{'class':['ck',_0x5a82f2(0x182)]},'children':[{'tag':'p','children':[{'text':_0x4874e0(this[_0x5a82f2(0x191)],_0x5a82f2(0x1a0))+'\x20'},_0x3794db]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c0112=_0x3b44;(function(_0x48a3a1,_0x454e30){const _0xafbbc7=_0x3b44,_0x378b8e=_0x48a3a1();while(!![]){try{const _0x38bc93=parseInt(_0xafbbc7(0x1a7))/0x1*(parseInt(_0xafbbc7(0x1d5))/0x2)+parseInt(_0xafbbc7(0x1e8))/0x3*(-parseInt(_0xafbbc7(0x1d7))/0x4)+-parseInt(_0xafbbc7(0x1ec))/0x5*(parseInt(_0xafbbc7(0x1aa))/0x6)+parseInt(_0xafbbc7(0x1b6))/0x7+parseInt(_0xafbbc7(0x1e0))/0x8*(parseInt(_0xafbbc7(0x1be))/0x9)+-parseInt(_0xafbbc7(0x1f5))/0xa+parseInt(_0xafbbc7(0x1cd))/0xb;if(_0x38bc93===_0x454e30)break;else _0x378b8e['push'](_0x378b8e['shift']());}catch(_0x47b196){_0x378b8e['push'](_0x378b8e['shift']());}}}(_0x1809,0xb74bb));import{CKEditorError as _0x49c7bd,logWarning as _0x1f881e,scrollViewportToShowTarget as _0x221c8e}from'ckeditor5/src/utils.js';import{View as _0x4a78a8}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x35cf0f}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x20c602}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x41115a}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x5c5c8e}from'./feed/aichatfeedusermessageitem.js';function _0x3b44(_0xf99ed3,_0x1cf354){const _0x1809c3=_0x1809();return _0x3b44=function(_0x3b447a,_0x45b68d){_0x3b447a=_0x3b447a-0x1a5;let _0x42cb19=_0x1809c3[_0x3b447a];return _0x42cb19;},_0x3b44(_0xf99ed3,_0x1cf354);}function _0x1809(){const _0x406be4=['_createLoaderChildren','div','48mhSTSa','isTrackChangesOn','bindTemplate','isVisible','updateWebSources','updateSuggestionPartState','setLoadingMessage','_createTemplateChildren','3LvyEix','extendTemplate','updateSources','children','104815NRLKDv','isLoadingSkeletonVisible','getItemById','stop','bind','ck-ai-chat__feed','ck-ai-chat__loader','updatePartState','ai-chat-feed-view-item-not-a-reply-item','2208800xqlsNk','scrollManager','delegate','ai-chat-feed-view-item-not-found','241ZcgdNR','remove','ai-chat-feed-view-item-not-a-suggestion-item','132tQrPMw','destroy','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','add','ai-reply','updateSuggestionItem','element','locale','_setupTemplate','removeItem','updateReplyItem','1842967Ferydp','ck-hidden','updateContent','map','getPartView','interaction-header','markItemAsDone','toggleLoadingSkeleton','335295HloQAa','markAsDone','ck-ai-chat__feed__items','setTemplate','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','stopAutoScroll','find','loadingMessage','getItemIds','ai-suggestion-reply','_createSkeletonLoader','_bodyCollection','startAutoScroll','_createFeedLoader','options','6261629JeLkYN','clear','aiFeed','start','user-message','_createFeedItems','ck-ai-chat__loader-text','scrollToSuggestion','4726zbLxod','createCollection','770752HsENFs','addItem','span','set','includes','isPending','render'];_0x1809=function(){return _0x406be4;};return _0x1809();}import{AIChatFeedErrorItemView as _0x39c2ef}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x458b97}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x10df7a}from'../utils/scrollmanager.js';import{AISkeletonView as _0x49e7a1,SKELETON_DEFINITIONS as _0x2a9e52}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2c59e1}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x4a78a8{[_0x1c0112(0x1eb)];[_0x1c0112(0x1f6)];[_0x1c0112(0x1c9)];constructor(_0x21f534,_0x1726e3){const _0x16a685=_0x1c0112;super(_0x21f534),this[_0x16a685(0x1c9)]=_0x1726e3,this[_0x16a685(0x1da)](_0x16a685(0x1dc),!0x1),this[_0x16a685(0x1da)](_0x16a685(0x1c5),''),this[_0x16a685(0x1da)](_0x16a685(0x1ed),!0x1),this[_0x16a685(0x1da)](_0x16a685(0x1e1),!0x1),this[_0x16a685(0x1eb)]=this[_0x16a685(0x1d6)](),this[_0x16a685(0x1eb)][_0x16a685(0x1a5)](..._0x35cf0f)['to'](this),this[_0x16a685(0x1b3)]();}[_0x1c0112(0x1dd)](){const _0x497108=_0x1c0112;super[_0x497108(0x1dd)](),this[_0x497108(0x1f6)]=new _0x10df7a(this[_0x497108(0x1b1)]);}[_0x1c0112(0x1ab)](){const _0x26a2b0=_0x1c0112;super[_0x26a2b0(0x1ab)](),this[_0x26a2b0(0x1f6)][_0x26a2b0(0x1ab)]();}[_0x1c0112(0x1ce)](){const _0x316039=_0x1c0112;this[_0x316039(0x1eb)][_0x316039(0x1ce)]();}[_0x1c0112(0x1d8)](_0x31e026,_0x32eb00){const _0x20bc9c=_0x1c0112;let _0x3d859f;_0x20bc9c(0x1af)===_0x31e026?_0x3d859f=new _0x41115a(this[_0x20bc9c(0x1b2)],_0x32eb00):_0x20bc9c(0x1c7)===_0x31e026?(_0x3d859f=new _0x20c602(this[_0x20bc9c(0x1b2)],_0x32eb00),_0x3d859f[_0x20bc9c(0x1f0)](_0x20bc9c(0x1e1))['to'](this,_0x20bc9c(0x1e1))):_0x3d859f=_0x20bc9c(0x1d1)===_0x31e026?new _0x5c5c8e(this[_0x20bc9c(0x1b2)],_0x32eb00,this[_0x20bc9c(0x1c9)]):_0x20bc9c(0x1bb)===_0x31e026?new _0x458b97(this[_0x20bc9c(0x1b2)],_0x32eb00):new _0x39c2ef(_0x32eb00),this[_0x20bc9c(0x1eb)][_0x20bc9c(0x1ae)](_0x3d859f);}async[_0x1c0112(0x1b5)]({id:_0x510df6,parsedContent:_0xde64bc,renderingStrategy:_0x3f0ce5,abortSignal:_0x780da}){const _0x245ec9=_0x1c0112,_0x46f776=this[_0x245ec9(0x1ee)](_0x510df6);if(!(_0x46f776 instanceof _0x41115a))throw new _0x49c7bd(_0x245ec9(0x1f4),null,{'itemView':_0x46f776,'id':_0x510df6,'parsedContent':_0xde64bc});await _0x46f776[_0x245ec9(0x1b8)]({'parsedContent':_0xde64bc,'renderingStrategy':_0x3f0ce5,'abortSignal':_0x780da});}async[_0x1c0112(0x1e4)](_0x560ab6,_0x3394f5){const _0x4138f3=_0x1c0112,_0x250593=this[_0x4138f3(0x1ee)](_0x560ab6);if(_0x250593 instanceof _0x20c602)_0x250593[_0x4138f3(0x1ea)](_0x3394f5);else{if(!(_0x250593 instanceof _0x41115a))throw new _0x49c7bd(_0x4138f3(0x1ad),null,{'itemView':_0x250593,'id':_0x560ab6,'sources':_0x3394f5});_0x250593[_0x4138f3(0x1ea)](_0x3394f5);}}async[_0x1c0112(0x1b0)]({id:_0x2c6c26,parts:_0xc8d783,renderingStrategy:_0x18b293,abortSignal:_0x49247b}){const _0x59af8c=_0x1c0112,_0x2aed68=this[_0x59af8c(0x1ee)](_0x2c6c26);if(!(_0x2aed68 instanceof _0x20c602))throw new _0x49c7bd(_0x59af8c(0x1a9),null,{'itemView':_0x2aed68,'id':_0x2c6c26,'parts':_0xc8d783});await _0x2aed68[_0x59af8c(0x1b8)]({'parts':_0xc8d783,'renderingStrategy':_0x18b293,'abortSignal':_0x49247b});}[_0x1c0112(0x1e5)]({id:_0x4fe3f0,index:_0x1bb350,state:_0x1fcc6b}){const _0x1cc0ba=_0x1c0112,_0x56e2f1=this[_0x1cc0ba(0x1ee)](_0x4fe3f0);if(!(_0x56e2f1 instanceof _0x20c602))throw new _0x49c7bd(_0x1cc0ba(0x1a9),this,{'id':_0x4fe3f0});_0x56e2f1[_0x1cc0ba(0x1f3)](_0x1bb350,_0x1fcc6b);}[_0x1c0112(0x1bc)](_0x1dfe6c){const _0xb67046=_0x1c0112;this[_0xb67046(0x1ee)](_0x1dfe6c)[_0xb67046(0x1bf)]();}[_0x1c0112(0x1c6)](){const _0x190f3d=_0x1c0112;return this[_0x190f3d(0x1eb)][_0x190f3d(0x1b9)](_0x416aee=>_0x416aee[_0x190f3d(0x1cc)]['id']);}[_0x1c0112(0x1b4)](_0x4e0704){const _0x213547=_0x1c0112;this[_0x213547(0x1eb)][_0x213547(0x1a8)](this[_0x213547(0x1ee)](_0x4e0704));}[_0x1c0112(0x1d4)](_0x2f4d6f,_0x28e8ea){const _0x18e4fb=_0x1c0112,_0x50616a=this[_0x18e4fb(0x1ee)](_0x2f4d6f);if(!(_0x50616a instanceof _0x20c602))return void _0x1f881e(_0x18e4fb(0x1ac),{'replyId':_0x2f4d6f,'partIndex':_0x28e8ea});const _0x8f1904=_0x50616a[_0x18e4fb(0x1ba)](_0x28e8ea);_0x8f1904?_0x221c8e({'target':_0x8f1904[_0x18e4fb(0x1b1)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x1f881e(_0x18e4fb(0x1c2),{'replyId':_0x2f4d6f,'partIndex':_0x28e8ea});}[_0x1c0112(0x1b3)](){const _0x3fe01a=_0x1c0112;this[_0x3fe01a(0x1c1)]({'tag':_0x3fe01a(0x1df),'attributes':{'class':['ck',_0x3fe01a(0x1f1)]},'children':this[_0x3fe01a(0x1e7)]()});}[_0x1c0112(0x1e7)](){const _0x5b3a5a=_0x1c0112,_0x1ad28d=this[_0x5b3a5a(0x1c8)]();return[this[_0x5b3a5a(0x1d2)](),_0x1ad28d,this[_0x5b3a5a(0x1cb)]()];}[_0x1c0112(0x1c8)](){const _0x526b67=_0x1c0112,_0x25f650=new _0x49e7a1(this[_0x526b67(0x1b2)],_0x2a9e52[_0x526b67(0x1cf)]);return _0x25f650[_0x526b67(0x1e9)]({'attributes':{'class':[this[_0x526b67(0x1e2)]['if'](_0x526b67(0x1ed),_0x526b67(0x1b7),_0x5d310d=>!_0x5d310d)]}}),_0x25f650;}[_0x1c0112(0x1d2)](){const _0x4527dd=_0x1c0112,_0x4cf7e6=new _0x4a78a8(this[_0x4527dd(0x1b2)]);return _0x4cf7e6[_0x4527dd(0x1c1)]({'tag':_0x4527dd(0x1df),'attributes':{'class':['ck',_0x4527dd(0x1c0),this[_0x4527dd(0x1e2)]['if'](_0x4527dd(0x1ed),_0x4527dd(0x1b7))]},'children':this[_0x4527dd(0x1eb)]}),_0x4cf7e6;}[_0x1c0112(0x1cb)](){const _0x347760=_0x1c0112,_0x1a4607=new _0x4a78a8(this[_0x347760(0x1b2)]);return _0x1a4607[_0x347760(0x1c1)]({'tag':_0x347760(0x1df),'attributes':{'class':['ck',_0x347760(0x1f2),this[_0x347760(0x1e2)]['if'](_0x347760(0x1dc),_0x347760(0x1b7),_0x3b56a4=>!_0x3b56a4)]},'children':this[_0x347760(0x1de)]()}),_0x1a4607;}[_0x1c0112(0x1de)](){const _0x4a0ddf=_0x1c0112,_0x1b0c10=new _0x2c59e1();return _0x1b0c10[_0x4a0ddf(0x1e3)]=!0x0,[_0x1b0c10,{'tag':_0x4a0ddf(0x1d9),'attributes':{'class':['ck',_0x4a0ddf(0x1d3)]},'children':[{'text':this[_0x4a0ddf(0x1e2)]['to'](_0x4a0ddf(0x1c5))}]}];}[_0x1c0112(0x1ee)](_0x4ab4b3){const _0x2a28ee=_0x1c0112,_0x27f06b=this[_0x2a28ee(0x1eb)][_0x2a28ee(0x1c4)](_0x8d2029=>_0x8d2029[_0x2a28ee(0x1cc)]['id'][_0x2a28ee(0x1db)](_0x4ab4b3));if(!_0x27f06b)throw new _0x49c7bd(_0x2a28ee(0x1a6),this,{'id':_0x4ab4b3});return _0x27f06b;}[_0x1c0112(0x1e6)](_0x5dadda){const _0x3171e5=_0x1c0112;this[_0x3171e5(0x1da)](_0x3171e5(0x1c5),_0x5dadda);}[_0x1c0112(0x1bd)](_0x4f2099){const _0x1c757e=_0x1c0112;this[_0x1c757e(0x1da)](_0x1c757e(0x1ed),_0x4f2099);}[_0x1c0112(0x1ca)](){const _0x1357fa=_0x1c0112;this[_0x1357fa(0x1f6)][_0x1357fa(0x1d0)]();}[_0x1c0112(0x1c3)](){const _0x155358=_0x1c0112;this[_0x155358(0x1f6)][_0x155358(0x1ef)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x453ba4=_0x5b3a;function _0x5b3a(_0x4c1f9e,_0x19a068){const _0x51d586=_0x51d5();return _0x5b3a=function(_0x5b3a15,_0x12044a){_0x5b3a15=_0x5b3a15-0x1d0;let _0x19e5ca=_0x51d586[_0x5b3a15];return _0x19e5ca;},_0x5b3a(_0x4c1f9e,_0x19a068);}(function(_0x5ec61f,_0xb37c9f){const _0x23a569=_0x5b3a,_0x334e0d=_0x5ec61f();while(!![]){try{const _0x358e55=parseInt(_0x23a569(0x1e3))/0x1+parseInt(_0x23a569(0x1e0))/0x2*(parseInt(_0x23a569(0x1d9))/0x3)+parseInt(_0x23a569(0x1d1))/0x4+-parseInt(_0x23a569(0x1df))/0x5+parseInt(_0x23a569(0x1d3))/0x6+-parseInt(_0x23a569(0x1e4))/0x7+parseInt(_0x23a569(0x1d8))/0x8*(-parseInt(_0x23a569(0x1d6))/0x9);if(_0x358e55===_0xb37c9f)break;else _0x334e0d['push'](_0x334e0d['shift']());}catch(_0x17e8e8){_0x334e0d['push'](_0x334e0d['shift']());}}}(_0x51d5,0x4df24));import{ButtonView as _0x14a667,FormHeaderView as _0x43e8e9}from'ckeditor5/src/ui.js';import{IconPlus as _0x4b280d,IconAIChat as _0x5a734e}from'ckeditor5/src/icons.js';import{getTranslation as _0x464627}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x2c5d61}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x43e8e9{[_0x453ba4(0x1dc)];[_0x453ba4(0x1de)];constructor(_0x245559,_0x2f5b1f){const _0x2e97f2=_0x453ba4;super(_0x245559,{'label':_0x464627(_0x245559,_0x2e97f2(0x1d0)),'class':_0x2e97f2(0x1e7),'icon':_0x5a734e}),this[_0x2e97f2(0x1dd)](_0x2e97f2(0x1e1),!0x1),this[_0x2e97f2(0x1dc)]=this[_0x2e97f2(0x1e5)](_0x245559),this[_0x2e97f2(0x1db)][_0x2e97f2(0x1d5)](this[_0x2e97f2(0x1dc)]),_0x2f5b1f&&(this[_0x2e97f2(0x1de)]=_0x2c5d61(_0x245559,this),this[_0x2e97f2(0x1db)][_0x2e97f2(0x1d5)](this[_0x2e97f2(0x1de)]));}[_0x453ba4(0x1e5)](_0x25a7b2){const _0x5cf3d6=_0x453ba4,_0x2c8836=new _0x14a667(_0x25a7b2);return _0x2c8836[_0x5cf3d6(0x1dd)]({'label':_0x464627(this[_0x5cf3d6(0x1d7)],_0x5cf3d6(0x1e6)),'withText':!0x0,'icon':_0x4b280d,'class':_0x5cf3d6(0x1e2)}),_0x2c8836['on'](_0x5cf3d6(0x1d2),()=>{const _0x2ffbe8=_0x5cf3d6;this[_0x2ffbe8(0x1d4)](_0x2ffbe8(0x1da));}),_0x2c8836;}}function _0x51d5(){const _0x4eb4ac=['4kjzWYg','isMaximized','ck-ai-chat__start-conversation','536253ifLukl','2488906LLhLCZ','_createStartConversationButton','AI_CHAT_LABEL_NEW_CHAT','ck-ai-header\x20ck-ai-header_chat','AI_CHAT_HEADING','984480ynvrSA','execute','2830884fjbwsB','fire','add','6247764WpsDpX','locale','8ZRGSYD','194112fCHcxl','startConversation','children','conversationStartButton','set','resizeButton','72865bXuZtK'];_0x51d5=function(){return _0x4eb4ac;};return _0x51d5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x447dcb=_0x15b6;(function(_0x53d9ba,_0x52084c){var _0x109289=_0x15b6,_0x3f32f6=_0x53d9ba();while(!![]){try{var _0x5ed743=-parseInt(_0x109289(0xc9))/0x1*(-parseInt(_0x109289(0xca))/0x2)+parseInt(_0x109289(0xd4))/0x3+parseInt(_0x109289(0xcd))/0x4*(parseInt(_0x109289(0xcf))/0x5)+-parseInt(_0x109289(0xc1))/0x6+parseInt(_0x109289(0xc2))/0x7*(parseInt(_0x109289(0xc3))/0x8)+parseInt(_0x109289(0xc6))/0x9+-parseInt(_0x109289(0xd6))/0xa;if(_0x5ed743===_0x52084c)break;else _0x3f32f6['push'](_0x3f32f6['shift']());}catch(_0x14ca85){_0x3f32f6['push'](_0x3f32f6['shift']());}}}(_0xd0cb,0x7c541));import{View as _0x4c08dd,BodyCollection as _0x3b9394}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x2ae0e0}from'../utils/eventnames.js';import{AIChatFeedView as _0x46aff8}from'./aichatfeedview.js';function _0x15b6(_0x16fb5b,_0x3e358f){var _0xd0cb6=_0xd0cb();return _0x15b6=function(_0x15b6d0,_0x1f69bd){_0x15b6d0=_0x15b6d0-0xc1;var _0x2c4aac=_0xd0cb6[_0x15b6d0];return _0x2c4aac;},_0x15b6(_0x16fb5b,_0x3e358f);}import{AIChatControlsView as _0xc23084}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x139129}from'./aichatheaderview.js';import{AIDisclaimerView as _0x51b718}from'../../aicore/ui/aidisclaimerview.js';function _0xd0cb(){var _0x5b8981=['ck-rounded-corners','closeSourceResourceBalloon','1790358SndfEU','2884svNtOz','4800auKTEA','delegate','chatControls','7484157sDywbx','detachFromDom','destroy','21461WoiwyK','88UCfyVu','_bodyCollection','ck-ai-chat','978992rpLHcY','populateSourceResourceBalloon','5oyTKBV','div','chatHeader','attachToDom','chatFeed','1391250DrvOUI','setTemplate','19239130SejImB','chatDisclaimer','uiLanguageDirection','ck-reset_all'];_0xd0cb=function(){return _0x5b8981;};return _0xd0cb();}export class AIChatView extends _0x4c08dd{[_0x447dcb(0xd1)];[_0x447dcb(0xd3)];[_0x447dcb(0xc5)];[_0x447dcb(0xd7)];[_0x447dcb(0xcb)];constructor(_0x38a56f,_0x3b6062){var _0x210e3c=_0x447dcb;super(_0x38a56f),this[_0x210e3c(0xcb)]=new _0x3b9394(_0x38a56f),this[_0x210e3c(0xcb)][_0x210e3c(0xd2)](),this[_0x210e3c(0xd1)]=new _0x139129(_0x38a56f,_0x3b6062),this[_0x210e3c(0xd1)][_0x210e3c(0xc4)](..._0x2ae0e0)['to'](this),this[_0x210e3c(0xd3)]=new _0x46aff8(_0x38a56f,this[_0x210e3c(0xcb)]),this[_0x210e3c(0xd3)][_0x210e3c(0xc4)](..._0x2ae0e0)['to'](this),this[_0x210e3c(0xc5)]=new _0xc23084(_0x38a56f,this[_0x210e3c(0xcb)]),this[_0x210e3c(0xc5)][_0x210e3c(0xc4)](..._0x2ae0e0)['to'](this),this[_0x210e3c(0xd7)]=new _0x51b718(_0x38a56f),this[_0x210e3c(0xd5)]({'tag':_0x210e3c(0xd0),'attributes':{'class':['ck',_0x210e3c(0xd9),_0x210e3c(0xcc),_0x210e3c(0xda)],'dir':_0x38a56f[_0x210e3c(0xd8)]},'children':[this[_0x210e3c(0xd1)],this[_0x210e3c(0xd3)],this[_0x210e3c(0xc5)],this[_0x210e3c(0xd7)]]});}[_0x447dcb(0xce)](_0x322972,_0x2ea8be,_0x184a97,_0x4674be){var _0x439c80=_0x447dcb;this[_0x439c80(0xc5)][_0x439c80(0xce)](_0x322972,_0x2ea8be,_0x184a97,_0x4674be);}[_0x447dcb(0xdb)](_0x140ec4){var _0x3267b6=_0x447dcb;this[_0x3267b6(0xc5)][_0x3267b6(0xdb)](_0x140ec4);}[_0x447dcb(0xc8)](){var _0xa5eb8b=_0x447dcb;this[_0xa5eb8b(0xcb)][_0xa5eb8b(0xc7)](),super[_0xa5eb8b(0xc8)]();}}
|
|
@@ -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 _0x103eef=_0x5c94;(function(_0x49d17c,_0x2090ad){const _0x5b75ff=_0x5c94,_0x529334=_0x49d17c();while(!![]){try{const _0x65dc69=parseInt(_0x5b75ff(0x183))/0x1*(-parseInt(_0x5b75ff(0x17f))/0x2)+parseInt(_0x5b75ff(0x1ba))/0x3+-parseInt(_0x5b75ff(0x15f))/0x4*(-parseInt(_0x5b75ff(0x1ae))/0x5)+-parseInt(_0x5b75ff(0x1a6))/0x6+-parseInt(_0x5b75ff(0x1d2))/0x7+-parseInt(_0x5b75ff(0x1a7))/0x8+-parseInt(_0x5b75ff(0x175))/0x9*(-parseInt(_0x5b75ff(0x196))/0xa);if(_0x65dc69===_0x2090ad)break;else _0x529334['push'](_0x529334['shift']());}catch(_0x14fa2c){_0x529334['push'](_0x529334['shift']());}}}(_0x36ff,0x81be6));import{View as _0x48e354,BalloonPanelView as _0x3f17ca,ButtonView as _0x5ab417,clickOutsideHandler as _0x2ab105}from'ckeditor5/src/ui.js';import{Collection as _0x437402}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0x103eef(0x17d);function _0x5c94(_0x54f1a3,_0x26f3e0){const _0x36ff17=_0x36ff();return _0x5c94=function(_0x5c94db,_0xd977c){_0x5c94db=_0x5c94db-0x157;let _0x402d43=_0x36ff17[_0x5c94db];return _0x402d43;},_0x5c94(_0x54f1a3,_0x26f3e0);}function _0x36ff(){const _0x858061=['auto','_createShowMoreButtonView','opacity','execute','_createCalculationContainer','showBalloonPanel','_createContainerElements','appendChild','controlsButton','width','setTemplate','_distributeChips','block\x20!important','visible','141564VHkmXV','children','extendTemplate','_visibleChips','overflowContainer','_createMockButton','destroy','_applyOverflowResults','_ancestorsToRestore','pointerEvents','height','_parentView','_createShowMoreButton','pin','isOn','visible\x20!important','show','slice','length','push','_renderChipsAndCountRows','_intersectionObserver','81AOecso','content','top','absolute','_handleShowMoreButtonClick','_updateShowMoreButtonVisibility','_targetContainer','filter','300px','isIntersecting','2049586cQqdTJ','_calculateOverflowInContainer','disableAnimationOnEnter','.ck-ai-chat','1cpbQnG','clientHeight','left','calculationContainer','hidden','showMoreButtonView','style','_showMoreBalloonPanelView','cloneNode','_locale','getBoundingClientRect','className','rowDetectionTolerance','_testButtonFit','display','render','innerHTML','div','clientWidth','2197110NFkwue','createElement','maxVisibleRows','_makeAncestorsVisible','set','isConnected','innerWidth','_config','disconnect','button','showMoreLabelPrefix','none','observe','body','visibility','_showMoreButtonView','716514WroQqj','8206472dJsYNn','_setupVisibilityObserver','boxSizing','-9999px','_pendingCalculation','_restoreAncestorVisibility','hideBalloonPanel','15xeqMsR','pop','clear','undefined','overflowChips','_updateOverflowUI','position','remove','classList','border-box','showMoreBalloon','_checkAndHandleOverflow','2190588BYDcQA','innerHeight','_containerElement','querySelector','tagName','_applyCalculationStyles','0px','add','_isContainerVisible','reorganizeChips','element','_findTargetContainer','toLowerCase','hide','abs','isVisible','bottom','_bodyCollection','_createShowMoreBalloonPanelView','some','label','block','_repinBalloonPanel','getComputedStyle','786219PcbDqQ','from','parentElement','+\x201','forEach','setContainerElement','_overflowChips','50px','right','offsetWidth','zIndex','_updateBalloonContent','cssClasses','ck-calculation-container','textContent','_calculateContainerWidth','showMoreButton','includes','documentElement'];_0x36ff=function(){return _0x858061;};return _0x36ff();}export class AIChatChipsOverflowManager{[_0x103eef(0x18c)];[_0x103eef(0x19d)];[_0x103eef(0x162)];[_0x103eef(0x1d8)];[_0x103eef(0x1a5)]=null;[_0x103eef(0x18a)]=null;[_0x103eef(0x1bc)]=null;[_0x103eef(0x1cb)];[_0x103eef(0x16a)]=null;[_0x103eef(0x174)]=null;[_0x103eef(0x1ab)]=!0x1;constructor(_0x2fb68,_0x2e9031,_0x273aec,_0x46bc6f,_0x322e2f){const _0x3f3c56=_0x103eef;this[_0x3f3c56(0x18c)]=_0x2fb68,this[_0x3f3c56(0x162)]=_0x2e9031,this[_0x3f3c56(0x19d)]={...hn,..._0x273aec,'cssClasses':{'controlsButton':'','calculationContainer':_0x3f3c56(0x1df),..._0x273aec[_0x3f3c56(0x1de)]}},this[_0x3f3c56(0x1d8)]=new _0x437402(),this[_0x3f3c56(0x1cb)]=_0x46bc6f,this[_0x3f3c56(0x16a)]=_0x322e2f||null;}[_0x103eef(0x1d7)](_0x1624a1){const _0x479938=_0x103eef;this[_0x479938(0x174)]&&(this[_0x479938(0x174)][_0x479938(0x19e)](),this[_0x479938(0x174)]=null),this[_0x479938(0x1bc)]=_0x1624a1,this[_0x479938(0x1a8)]();}get[_0x103eef(0x188)](){const _0x28d8f7=_0x103eef;return this[_0x28d8f7(0x1a5)];}get[_0x103eef(0x1b2)](){const _0x4cb34a=_0x103eef;return this[_0x4cb34a(0x1d8)];}[_0x103eef(0x1c3)](){requestAnimationFrame(()=>{const _0x3cf56e=_0x5c94;this[_0x3cf56e(0x1b9)]();});}[_0x103eef(0x1ea)](){const _0x1a22a5=_0x103eef;this[_0x1a22a5(0x1a5)]&&this[_0x1a22a5(0x18a)]&&(this[_0x1a22a5(0x1dd)](),this[_0x1a22a5(0x1a5)][_0x1a22a5(0x16d)]=!0x0,this[_0x1a22a5(0x18a)][_0x1a22a5(0x16f)](),this[_0x1a22a5(0x18a)][_0x1a22a5(0x16c)]({'target':this[_0x1a22a5(0x1a5)][_0x1a22a5(0x1c4)],'limiter':document[_0x1a22a5(0x1bd)](_0x1a22a5(0x182))}));}[_0x103eef(0x1ad)](){const _0x3d75d9=_0x103eef;this[_0x3d75d9(0x1a5)]&&this[_0x3d75d9(0x18a)]&&(this[_0x3d75d9(0x1a5)][_0x3d75d9(0x16d)]=!0x1,this[_0x3d75d9(0x18a)][_0x3d75d9(0x1c7)]());}[_0x103eef(0x1b0)](){const _0x242c76=_0x103eef;this[_0x242c76(0x1d8)][_0x242c76(0x1b0)](),this[_0x242c76(0x1ad)](),this[_0x242c76(0x17a)](),this[_0x242c76(0x1a5)]&&(this[_0x242c76(0x1a5)][_0x242c76(0x1ce)]=''),this[_0x242c76(0x18a)]&&this[_0x242c76(0x18a)][_0x242c76(0x176)][_0x242c76(0x1b0)]();}[_0x103eef(0x165)](){const _0x40fc11=_0x103eef;this[_0x40fc11(0x174)]&&(this[_0x40fc11(0x174)][_0x40fc11(0x19e)](),this[_0x40fc11(0x174)]=null),this[_0x40fc11(0x1a5)]&&(this[_0x40fc11(0x1a5)][_0x40fc11(0x165)](),this[_0x40fc11(0x1a5)]=null),this[_0x40fc11(0x18a)]&&(this[_0x40fc11(0x18a)][_0x40fc11(0x165)](),this[_0x40fc11(0x18a)]=null);}[_0x103eef(0x1b9)](){const _0x33567c=_0x103eef;if(!this[_0x33567c(0x1bc)])return;if(!this[_0x33567c(0x1c2)]())return void(this[_0x33567c(0x1ab)]=!0x0);this[_0x33567c(0x1ab)]=!0x1;const _0x51a600=[...this[_0x33567c(0x162)],...this[_0x33567c(0x1d8)]],_0x53186f=this[_0x33567c(0x1e9)](),_0x2e8b8b=this[_0x33567c(0x180)](_0x53186f,_0x51a600),_0x3f35af=_0x53186f[_0x33567c(0x167)];_0x3f35af&&this[_0x33567c(0x1ac)](_0x3f35af),_0x53186f[_0x33567c(0x1b5)](),this[_0x33567c(0x166)](_0x51a600,_0x2e8b8b);}[_0x103eef(0x16b)](){const _0x28c2cc=_0x103eef;this[_0x28c2cc(0x1a5)]=this[_0x28c2cc(0x1e6)](),this[_0x28c2cc(0x18a)]=this[_0x28c2cc(0x1cc)](),this[_0x28c2cc(0x1a5)][_0x28c2cc(0x192)](),this[_0x28c2cc(0x1bc)][_0x28c2cc(0x158)](this[_0x28c2cc(0x1a5)][_0x28c2cc(0x1c4)]),this[_0x28c2cc(0x1a5)]['on'](_0x28c2cc(0x1e8),()=>{const _0x431325=_0x28c2cc;this[_0x431325(0x179)]();}),_0x2ab105({'emitter':this[_0x28c2cc(0x18a)],'contextElements':[this[_0x28c2cc(0x18a)][_0x28c2cc(0x1c4)],this[_0x28c2cc(0x1a5)][_0x28c2cc(0x1c4)]],'callback':()=>this[_0x28c2cc(0x1ad)](),'activator':()=>this[_0x28c2cc(0x1a5)][_0x28c2cc(0x16d)]});}[_0x103eef(0x1e6)](){const _0x2a2839=_0x103eef,_0x50e128=new _0x5ab417(this[_0x2a2839(0x18c)]);_0x50e128[_0x2a2839(0x19a)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x475399=[this[_0x2a2839(0x19d)][_0x2a2839(0x1de)][_0x2a2839(0x1e2)]];return this[_0x2a2839(0x19d)][_0x2a2839(0x1de)][_0x2a2839(0x159)]&&_0x475399[_0x2a2839(0x172)](this[_0x2a2839(0x19d)][_0x2a2839(0x1de)][_0x2a2839(0x159)]),_0x50e128[_0x2a2839(0x161)]({'attributes':{'class':_0x475399}}),_0x50e128;}[_0x103eef(0x1cc)](){const _0x6b1284=_0x103eef,_0x16f8b2=new _0x3f17ca(this[_0x6b1284(0x18c)]);return _0x16f8b2[_0x6b1284(0x161)]({'attributes':{'class':this[_0x6b1284(0x19d)][_0x6b1284(0x1de)][_0x6b1284(0x1b8)]}}),this[_0x6b1284(0x1cb)][_0x6b1284(0x1c1)](_0x16f8b2),_0x16f8b2;}[_0x103eef(0x1dd)](){const _0xd7e180=_0x103eef;if(this[_0xd7e180(0x18a)]&&(this[_0xd7e180(0x18a)][_0xd7e180(0x176)][_0xd7e180(0x1b0)](),this[_0xd7e180(0x1d8)][_0xd7e180(0x171)]>0x0)){this[_0xd7e180(0x1d8)][_0xd7e180(0x1d6)](_0x17208c=>{const _0x512666=_0xd7e180;_0x17208c[_0x512666(0x181)]();});const _0x557853=new _0x48e354(this[_0xd7e180(0x18c)]);_0x557853[_0xd7e180(0x15b)]({'tag':_0xd7e180(0x194),'attributes':{'class':this[_0xd7e180(0x19d)][_0xd7e180(0x1de)][_0xd7e180(0x163)]},'children':this[_0xd7e180(0x1d8)]}),this[_0xd7e180(0x18a)][_0xd7e180(0x176)][_0xd7e180(0x1c1)](_0x557853);}}[_0x103eef(0x179)](){const _0x450c57=_0x103eef;this[_0x450c57(0x1a5)][_0x450c57(0x16d)]?this[_0x450c57(0x1ad)]():this[_0x450c57(0x1ea)]();}[_0x103eef(0x17a)](){const _0x191a2f=_0x103eef,_0x27ac75=this[_0x191a2f(0x1d8)][_0x191a2f(0x171)]>0x0;this[_0x191a2f(0x1a5)]?.[_0x191a2f(0x1c4)]&&(this[_0x191a2f(0x1a5)][_0x191a2f(0x1c4)][_0x191a2f(0x189)][_0x191a2f(0x191)]=_0x27ac75?'':_0x191a2f(0x1a1));}[_0x103eef(0x1d0)](){const _0x5a3a3d=_0x103eef;this[_0x5a3a3d(0x1a5)]?.[_0x5a3a3d(0x16d)]&&this[_0x5a3a3d(0x18a)]?.[_0x5a3a3d(0x1c9)]&&this[_0x5a3a3d(0x1a5)][_0x5a3a3d(0x1c4)]&&this[_0x5a3a3d(0x18a)][_0x5a3a3d(0x16c)]({'target':this[_0x5a3a3d(0x1a5)][_0x5a3a3d(0x1c4)],'limiter':document[_0x5a3a3d(0x1bd)](_0x5a3a3d(0x182))});}[_0x103eef(0x1c5)](_0x58f1b3){const _0x41dd07=_0x103eef,_0x72461b=this[_0x41dd07(0x1bc)]?.[_0x41dd07(0x1be)][_0x41dd07(0x1c6)]()||_0x41dd07(0x194),_0x2580fa=this[_0x41dd07(0x1bc)]?.[_0x41dd07(0x1b6)];if(_0x2580fa){const _0x109913=_0x2580fa[0x0]||'',_0x321884=_0x58f1b3[_0x41dd07(0x1bd)]('.'+_0x109913),_0x375502=_0x58f1b3[_0x41dd07(0x1bd)](_0x72461b);return _0x321884||_0x375502||_0x58f1b3;}return _0x58f1b3[_0x41dd07(0x1bd)](_0x72461b)||_0x58f1b3;}[_0x103eef(0x1e1)](){const _0x381aee=_0x103eef,_0x4caafe=this[_0x381aee(0x16a)]?.[_0x381aee(0x1c4)]||this[_0x381aee(0x1bc)];if(!_0x4caafe)return ln;const _0xbca312=window[_0x381aee(0x1d1)](_0x4caafe)[_0x381aee(0x15a)];if(_0x381aee(0x1e5)===_0xbca312||_0x381aee(0x1c0)===_0xbca312||!_0xbca312){const _0x511007=_0x4caafe[_0x381aee(0x1d4)];if(_0x511007){const _0x8f352f=window[_0x381aee(0x1d1)](_0x511007);return _0x381aee(0x1e5)!==_0x8f352f[_0x381aee(0x15a)]?_0x8f352f[_0x381aee(0x15a)]:ln;}return ln;}return _0xbca312;}[_0x103eef(0x1bf)](_0x85f8c4,_0x50dcf1){const _0x3c81b1=_0x103eef;this[_0x3c81b1(0x19d)][_0x3c81b1(0x1de)][_0x3c81b1(0x186)]&&_0x85f8c4[_0x3c81b1(0x1b6)][_0x3c81b1(0x1c1)](this[_0x3c81b1(0x19d)][_0x3c81b1(0x1de)][_0x3c81b1(0x186)]),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x15a)]=_0x50dcf1,_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1b4)]=_0x3c81b1(0x178),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x177)]=_0x3c81b1(0x1aa),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x185)]=_0x3c81b1(0x1aa),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1e7)]='0',_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x168)]=_0x3c81b1(0x1a1),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1dc)]='-1',_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1a4)]=_0x3c81b1(0x16e),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x191)]=_0x3c81b1(0x15d),_0x85f8c4[_0x3c81b1(0x189)][_0x3c81b1(0x1a9)]=_0x3c81b1(0x1b7);}[_0x103eef(0x1ac)](_0x39beda){const _0xafcf4=_0x103eef;_0x39beda[_0xafcf4(0x1d6)](({element:_0x55614e,originalDisplay:_0x202ca1,originalVisibility:_0xdd452c})=>{const _0x29bb2b=_0xafcf4;_0x55614e[_0x29bb2b(0x189)][_0x29bb2b(0x191)]=_0x202ca1,_0x55614e[_0x29bb2b(0x189)][_0x29bb2b(0x1a4)]=_0xdd452c;});}[_0x103eef(0x199)](_0x4bb0cc){const _0x583720=_0x103eef,_0x172ed0=[];let _0x1d11d7=_0x4bb0cc;for(;_0x1d11d7&&_0x1d11d7!==document[_0x583720(0x1a3)];){const _0xcdb2d5=window[_0x583720(0x1d1)](_0x1d11d7);_0x583720(0x1a1)!==_0xcdb2d5[_0x583720(0x191)]&&_0x583720(0x187)!==_0xcdb2d5[_0x583720(0x1a4)]||(_0x172ed0[_0x583720(0x172)]({'element':_0x1d11d7,'originalDisplay':_0x1d11d7[_0x583720(0x189)][_0x583720(0x191)],'originalVisibility':_0x1d11d7[_0x583720(0x189)][_0x583720(0x1a4)]}),_0x1d11d7[_0x583720(0x189)][_0x583720(0x191)]=_0x583720(0x1cf),_0x1d11d7[_0x583720(0x189)][_0x583720(0x1a4)]=_0x583720(0x15e)),_0x1d11d7=_0x1d11d7[_0x583720(0x1d4)];}return _0x172ed0;}[_0x103eef(0x157)](){const _0x428ff4=_0x103eef;let _0xb7a8b0,_0x11d9c9;return this[_0x428ff4(0x16a)]?.[_0x428ff4(0x1c4)]?(_0xb7a8b0=this[_0x428ff4(0x16a)][_0x428ff4(0x1c4)][_0x428ff4(0x18b)](!0x0),_0x11d9c9=this[_0x428ff4(0x1c5)](_0xb7a8b0)):(_0xb7a8b0=document[_0x428ff4(0x197)](_0x428ff4(0x194)),_0x11d9c9=_0xb7a8b0),{'calculationContainer':_0xb7a8b0,'targetContainer':_0x11d9c9};}[_0x103eef(0x1e9)](){const _0x1e6bee=_0x103eef,{calculationContainer:_0x392d5d,targetContainer:_0x43b819}=this[_0x1e6bee(0x157)](),_0x562053=this[_0x1e6bee(0x1e1)]();this[_0x1e6bee(0x1bf)](_0x392d5d,_0x562053);const _0x23a88d=this[_0x1e6bee(0x16a)]?.[_0x1e6bee(0x1c4)]||this[_0x1e6bee(0x1bc)],_0x7bab9c=_0x23a88d?.[_0x1e6bee(0x1d4)];_0x7bab9c?_0x7bab9c[_0x1e6bee(0x158)](_0x392d5d):document[_0x1e6bee(0x1a3)][_0x1e6bee(0x158)](_0x392d5d),_0x392d5d[_0x1e6bee(0x17b)]=_0x43b819;const _0x3cb8f6=this[_0x1e6bee(0x199)](_0x7bab9c||null);return _0x392d5d[_0x1e6bee(0x1db)],_0x392d5d[_0x1e6bee(0x167)]=_0x3cb8f6,_0x392d5d;}[_0x103eef(0x180)](_0x3e8b66,_0x5b83fe){const _0x3a3b19=_0x103eef,_0x1586bc=_0x3e8b66[_0x3a3b19(0x17b)]||_0x3e8b66,_0x5a6de4=[],{rowCount:_0x5d8a48}=this[_0x3a3b19(0x173)](_0x1586bc,_0x5b83fe);if(_0x5d8a48<=this[_0x3a3b19(0x19d)][_0x3a3b19(0x198)])return _0x5a6de4;const _0x43c182=_0x5b83fe[_0x3a3b19(0x170)]();for(;_0x43c182[_0x3a3b19(0x171)]>0x0;){if(this[_0x3a3b19(0x190)](_0x3e8b66,_0x1586bc,_0x43c182)){const _0xf07569=_0x5b83fe[_0x3a3b19(0x17c)](_0x2c53df=>!_0x43c182[_0x3a3b19(0x1e3)](_0x2c53df));_0x5a6de4[_0x3a3b19(0x172)](..._0xf07569);break;}if(!_0x43c182[_0x3a3b19(0x1af)]())break;}return _0x5a6de4;}[_0x103eef(0x173)](_0x1333e1,_0x30e8f5){const _0x4748ca=_0x103eef;_0x1333e1[_0x4748ca(0x193)]='',_0x30e8f5[_0x4748ca(0x1d6)](_0x327592=>{const _0x495348=_0x4748ca;if(_0x327592[_0x495348(0x1c4)]){const _0x5cd011=_0x327592[_0x495348(0x1c4)][_0x495348(0x18b)](!0x0);_0x1333e1[_0x495348(0x158)](_0x5cd011);}}),_0x1333e1[_0x4748ca(0x1db)];const _0x4269b4=_0x1333e1[_0x4748ca(0x160)],_0x28beea=[];return Array[_0x4748ca(0x1d3)](_0x4269b4)[_0x4748ca(0x1d6)](_0x5e133a=>{const _0x3baaa5=_0x4748ca,_0x452a16=_0x5e133a[_0x3baaa5(0x18d)]()[_0x3baaa5(0x177)];_0x28beea[_0x3baaa5(0x1cd)](_0x39e48a=>Math[_0x3baaa5(0x1c8)](_0x39e48a-_0x452a16)<this[_0x3baaa5(0x19d)][_0x3baaa5(0x18f)])||_0x28beea[_0x3baaa5(0x172)](_0x452a16);}),{'rowCount':_0x28beea[_0x4748ca(0x171)]};}[_0x103eef(0x164)](){const _0x237dd0=_0x103eef,_0x5cd663=document[_0x237dd0(0x197)](_0x237dd0(0x19f));return _0x5cd663[_0x237dd0(0x18e)]=this[_0x237dd0(0x19d)][_0x237dd0(0x1de)][_0x237dd0(0x1e2)],this[_0x237dd0(0x19d)][_0x237dd0(0x1de)][_0x237dd0(0x159)]&&_0x5cd663[_0x237dd0(0x1b6)][_0x237dd0(0x1c1)](this[_0x237dd0(0x19d)][_0x237dd0(0x1de)][_0x237dd0(0x159)]),_0x5cd663[_0x237dd0(0x1e0)]=_0x237dd0(0x1d5),_0x5cd663;}[_0x103eef(0x190)](_0x29dac1,_0x5e55d5,_0x47a289){const _0x459a57=_0x103eef;this[_0x459a57(0x173)](_0x5e55d5,_0x47a289);const _0x2d8eae=this[_0x459a57(0x164)]();_0x29dac1[_0x459a57(0x158)](_0x2d8eae),_0x29dac1[_0x459a57(0x1db)];const _0x4d5a5a=[..._0x5e55d5[_0x459a57(0x160)],_0x2d8eae],_0x48708a=[];_0x4d5a5a[_0x459a57(0x1d6)](_0x3f3853=>{const _0xe6aefa=_0x459a57,_0x123a99=_0x3f3853[_0xe6aefa(0x18d)]()[_0xe6aefa(0x177)];_0x48708a[_0xe6aefa(0x1cd)](_0x37abed=>Math[_0xe6aefa(0x1c8)](_0x37abed-_0x123a99)<this[_0xe6aefa(0x19d)][_0xe6aefa(0x18f)])||_0x48708a[_0xe6aefa(0x172)](_0x123a99);});const _0x5136f8=_0x48708a[_0x459a57(0x171)];return _0x2d8eae[_0x459a57(0x1b5)](),_0x5136f8<=this[_0x459a57(0x19d)][_0x459a57(0x198)];}[_0x103eef(0x15c)](_0x46de99,_0x50ef95){const _0x269bef=_0x103eef;this[_0x269bef(0x162)][_0x269bef(0x1b0)](),this[_0x269bef(0x1d8)][_0x269bef(0x1b0)](),_0x46de99[_0x269bef(0x1d6)](_0x491dfa=>{const _0x43d123=_0x269bef;_0x50ef95[_0x43d123(0x1e3)](_0x491dfa)?this[_0x43d123(0x1d8)][_0x43d123(0x1c1)](_0x491dfa):this[_0x43d123(0x162)][_0x43d123(0x1c1)](_0x491dfa);});}[_0x103eef(0x1b3)](_0x41ce4e){const _0x2037ea=_0x103eef;if(_0x41ce4e>0x0&&!this[_0x2037ea(0x1a5)]&&this[_0x2037ea(0x16b)](),_0x41ce4e>0x0&&this[_0x2037ea(0x1a5)]){const _0x3c2976=''+this[_0x2037ea(0x19d)][_0x2037ea(0x1a0)]+(_0x41ce4e<0x63?_0x41ce4e:'99');this[_0x2037ea(0x1a5)][_0x2037ea(0x1ce)]=_0x3c2976;}this[_0x2037ea(0x1dd)](),this[_0x2037ea(0x17a)](),this[_0x2037ea(0x1d0)]();}[_0x103eef(0x166)](_0x57563d,_0x2661e4){const _0x2ff5f3=_0x103eef;this[_0x2ff5f3(0x15c)](_0x57563d,_0x2661e4),this[_0x2ff5f3(0x1b3)](_0x2661e4[_0x2ff5f3(0x171)]);}[_0x103eef(0x1a8)](){const _0x2b116c=_0x103eef;this[_0x2b116c(0x1bc)]&&_0x2b116c(0x1b1)!=typeof IntersectionObserver&&(this[_0x2b116c(0x174)]=new IntersectionObserver(_0x5f4ef0=>{const _0x2149fd=_0x2b116c;_0x5f4ef0[0x0][_0x2149fd(0x17e)]&&this[_0x2149fd(0x1ab)]&&requestAnimationFrame(()=>{const _0x262742=_0x2149fd;this[_0x262742(0x1b9)]();});},{'threshold':0.01,'rootMargin':_0x2b116c(0x1d9)}),this[_0x2b116c(0x174)][_0x2b116c(0x1a2)](this[_0x2b116c(0x1bc)]));}[_0x103eef(0x1c2)](){const _0x3df925=_0x103eef;if(!this[_0x3df925(0x1bc)])return!0x1;if(!this[_0x3df925(0x1bc)][_0x3df925(0x19b)])return!0x1;const _0x4d54d8=this[_0x3df925(0x1bc)][_0x3df925(0x18d)]();if(0x0===_0x4d54d8[_0x3df925(0x15a)]||0x0===_0x4d54d8[_0x3df925(0x169)])return!0x1;const _0x35ef1b=window[_0x3df925(0x1bb)]||document[_0x3df925(0x1e4)][_0x3df925(0x184)],_0x20adfe=window[_0x3df925(0x19c)]||document[_0x3df925(0x1e4)][_0x3df925(0x195)],_0x333ba4=0xc8;return _0x4d54d8[_0x3df925(0x1ca)]>=-0xc8&&_0x4d54d8[_0x3df925(0x177)]<=_0x35ef1b+_0x333ba4&&_0x4d54d8[_0x3df925(0x1da)]>=-0xc8&&_0x4d54d8[_0x3df925(0x185)]<=_0x20adfe+_0x333ba4;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x32dc(_0x17957b,_0x8f9bb7){const _0x53edf7=_0x53ed();return _0x32dc=function(_0x32dc5f,_0x5a45d5){_0x32dc5f=_0x32dc5f-0xcb;let _0x46299b=_0x53edf7[_0x32dc5f];return _0x46299b;},_0x32dc(_0x17957b,_0x8f9bb7);}const _0x585d47=_0x32dc;(function(_0x1e5cd9,_0xeba80f){const _0x33b1fd=_0x32dc,_0x5d218f=_0x1e5cd9();while(!![]){try{const _0x288d2b=-parseInt(_0x33b1fd(0xce))/0x1+-parseInt(_0x33b1fd(0xf5))/0x2*(parseInt(_0x33b1fd(0xef))/0x3)+-parseInt(_0x33b1fd(0xfd))/0x4+-parseInt(_0x33b1fd(0xfa))/0x5+parseInt(_0x33b1fd(0xdc))/0x6*(-parseInt(_0x33b1fd(0xdb))/0x7)+-parseInt(_0x33b1fd(0xe8))/0x8+parseInt(_0x33b1fd(0xf2))/0x9*(parseInt(_0x33b1fd(0xf1))/0xa);if(_0x288d2b===_0xeba80f)break;else _0x5d218f['push'](_0x5d218f['shift']());}catch(_0xd478f4){_0x5d218f['push'](_0x5d218f['shift']());}}}(_0x53ed,0xe1271));import{ButtonView as _0x1a42f1,IconView as _0x2512ac}from'ckeditor5/src/ui.js';import{IconClose as _0x15537c,IconDocument as _0x5e5ca1,IconFileUpload as _0x3d31b7,IconLink as _0x2e5132,IconSelection as _0x2be1e0}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x38c828}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x2bdfd7}from'../../../aicore/ui/aispinner.js';function _0x53ed(){const _0x402022=['6YQzVOx','addEventListener','removeContextItemChip','small','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_createIconView','render','_createTemplateAttributes','disableAnimationOnEnter','ck-ai-chat-context-controls__chip-tooltip','slice','_setupRemoveButtonEvent','6044304GvFNuN','element','_initializeProperties','add','itemType','_createTemplateChildren','lastIndexOf','3qqdplC','div','98510XAezSF','5481ezTqqf','animationend','length','3048154KXSJss','ck-ai-chat-context-chip__label','selection','ck-ai-chat-context-chip','ck-ai-chat-context-chip_new-chip','3605805DcqLdA','readonly','type','2654876dvjDEU','_createRemoveButton','ck-hidden','_handleAnimationEndOnce','classList','tooltip','isLoading','uiId','setTemplate','_createLoaderIcon','bind','_isAnimationOnEnterEnabled','execute','locale','removeEventListener','label','content','document','ck-ai-chat-context-chip__type-icon','1086468CzRJqf','extendTemplate','bindTemplate','webkitAnimationEnd','_setupTemplate','_createLabelElement','ck-ai-chat-context-chip_document','span','remove','ck-ai-chat-context-chip_wide','set','fire','isVisible','2282497gpkIHG'];_0x53ed=function(){return _0x402022;};return _0x53ed();}const kn={'file':_0x3d31b7,'document':_0x5e5ca1,'web-resource':_0x2e5132,'text':_0x3d31b7,'selection':_0x2be1e0},xn=_0x585d47(0xf8),bn=_0x585d47(0xd7),wn=_0x585d47(0xd4),Tn=_0x585d47(0xf6),En=_0x585d47(0xcd),An=_0x585d47(0xe5),Cn='n';export class AIChatContextItemButtonView extends _0x1a42f1{constructor(_0x4b2582,_0x54a885,_0x289b90,_0x71e721,_0x8421c1=!0x1){const _0x3fb4bc=_0x585d47;super(_0x4b2582),this[_0x3fb4bc(0x108)]=_0x71e721,this[_0x3fb4bc(0xea)](_0x54a885,_0x289b90,_0x8421c1),this[_0x3fb4bc(0xd2)]();}[_0x585d47(0xe2)](){const _0x295a84=_0x585d47;super[_0x295a84(0xe2)](),this[_0x295a84(0x108)]&&this[_0x295a84(0xe9)]&&(this[_0x295a84(0xe9)][_0x295a84(0x101)][_0x295a84(0xeb)](_0x295a84(0xf9)),this[_0x295a84(0x100)](this[_0x295a84(0xe9)],()=>{const _0x300087=_0x295a84;this[_0x300087(0xe9)]&&this[_0x300087(0xe9)][_0x300087(0x101)][_0x300087(0xd6)](_0x300087(0xf9));}));}[_0x585d47(0xe4)](){const _0x2e8368=_0x585d47;this[_0x2e8368(0x108)]=!0x1,this[_0x2e8368(0xe9)]&&this[_0x2e8368(0xe9)][_0x2e8368(0x101)][_0x2e8368(0xd6)](_0x2e8368(0xf9));}[_0x585d47(0xea)](_0x33b4e8,_0x60f139,_0x3b747a){const _0x30c99f=_0x585d47;this[_0x30c99f(0xd8)](_0x30c99f(0x10c),_0x33b4e8[_0x30c99f(0x10c)]),this[_0x30c99f(0xd8)](_0x30c99f(0x102),!0x0),this[_0x30c99f(0xd8)](_0x30c99f(0xec),_0x33b4e8[_0x30c99f(0xfc)]),this[_0x30c99f(0xd8)]('id',_0x33b4e8[_0x30c99f(0x104)]),this[_0x30c99f(0xd8)](_0x30c99f(0xfb),_0x60f139),this[_0x30c99f(0xd8)](_0x30c99f(0x103),_0x3b747a);}[_0x585d47(0xd2)](){const _0xa177b4=_0x585d47,_0x2c9902=this[_0xa177b4(0xe1)](),_0x10eed1=this[_0xa177b4(0xfe)](),_0x2ccbed=this[_0xa177b4(0xd0)];this[_0xa177b4(0x105)]({'tag':_0xa177b4(0xf0),'attributes':this[_0xa177b4(0xe3)](_0x2ccbed),'children':this[_0xa177b4(0xed)](_0x2c9902,_0x10eed1,_0x2ccbed)});}[_0x585d47(0xe3)](_0x55b187){const _0xb32963=_0x585d47;return{'class':[xn,_0x55b187['if'](_0xb32963(0xec),wn,_0x5a4636=>_0xb32963(0xcc)==_0x5a4636),_0x55b187['if'](_0xb32963(0xec),bn,_0x10ce2a=>_0xb32963(0xf7)==_0x10ce2a)],'data-cke-tooltip-text':_0x55b187['to'](_0xb32963(0x10c),In),'data-cke-tooltip-position':Cn,'data-cke-tooltip-class':An};}[_0x585d47(0xed)](_0x1a20fb,_0xea027,_0x43c660){const _0x3e2144=_0x585d47,_0x33d947=this[_0x3e2144(0xd3)](_0x43c660),_0x3b0e43=this[_0x3e2144(0x106)]();return this[_0x3e2144(0xfb)]?[_0x1a20fb,_0x33d947]:[_0x1a20fb,_0x3b0e43,_0x33d947,_0xea027];}[_0x585d47(0xd3)](_0x183afb){const _0x2a2966=_0x585d47;return{'tag':_0x2a2966(0xd5),'attributes':{'class':Tn},'children':[{'text':_0x183afb['to'](_0x2a2966(0x10c))}]};}[_0x585d47(0xfe)](){const _0x41f199=_0x585d47,_0x3979dc=new _0x1a42f1(this[_0x41f199(0x10a)]);return _0x3979dc[_0x41f199(0xd8)]({'label':_0x38c828(this[_0x41f199(0x10a)],_0x41f199(0xe0)),'icon':_0x15537c}),this[_0x41f199(0xe7)](_0x3979dc),_0x3979dc;}[_0x585d47(0xe7)](_0x2ddf56){const _0x4acd46=_0x585d47;_0x2ddf56['on'](_0x4acd46(0x109),()=>{const _0x2f4b3f=_0x4acd46;this[_0x2f4b3f(0xd9)](_0x2f4b3f(0xde),this['id']);});}[_0x585d47(0xe1)](){const _0x4c9490=_0x585d47,_0x593512=this[_0x4c9490(0xd0)],_0x5315f1=new _0x2512ac();return _0x5315f1[_0x4c9490(0xcb)]=kn[this[_0x4c9490(0xec)]],_0x5315f1[_0x4c9490(0xcf)]({'attributes':{'class':[En,_0x593512['if'](_0x4c9490(0x103),_0x4c9490(0xff),_0x327973=>_0x327973)]}}),_0x5315f1;}[_0x585d47(0x100)](_0x2be4e2,_0x50ed04){const _0x2e0ff1=_0x585d47;if(!_0x2be4e2)return;const _0x245048=()=>{const _0x31738c=_0x32dc;_0x50ed04(),_0x2be4e2[_0x31738c(0x10b)](_0x31738c(0xf3),_0x245048),_0x2be4e2[_0x31738c(0x10b)](_0x31738c(0xd1),_0x245048);};_0x2be4e2[_0x2e0ff1(0xdd)](_0x2e0ff1(0xf3),_0x245048),_0x2be4e2[_0x2e0ff1(0xdd)](_0x2e0ff1(0xd1),_0x245048);}[_0x585d47(0x106)](){const _0x4e9777=_0x585d47,_0x2d7209=new _0x2bdfd7(_0x4e9777(0xdf));return _0x2d7209[_0x4e9777(0x107)](_0x4e9777(0xda))['to'](this,_0x4e9777(0x103),_0x1383a8=>_0x1383a8),_0x2d7209;}}function In(_0x139778){const _0x197888=_0x585d47;if(!_0x139778)return _0x139778;if(_0x139778[_0x197888(0xf4)]<=0x78)return _0x139778;const _0x4c0a60=_0x139778[_0x197888(0xe6)](0x0,0x78),_0x3c46d1=_0x4c0a60[_0x197888(0xee)]('\x20');return(_0x3c46d1>0x0?_0x4c0a60[_0x197888(0xe6)](0x0,_0x3c46d1):_0x4c0a60)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2f203c=_0x54ad;(function(_0x4f0ee3,_0x551d2a){const _0x4a745a=_0x54ad,_0xa4f7df=_0x4f0ee3();while(!![]){try{const _0x50aa75=-parseInt(_0x4a745a(0xc2))/0x1*(parseInt(_0x4a745a(0xfd))/0x2)+parseInt(_0x4a745a(0xff))/0x3*(parseInt(_0x4a745a(0xbe))/0x4)+parseInt(_0x4a745a(0xfc))/0x5+-parseInt(_0x4a745a(0xdd))/0x6+-parseInt(_0x4a745a(0xc1))/0x7*(parseInt(_0x4a745a(0xf8))/0x8)+parseInt(_0x4a745a(0xbb))/0x9+parseInt(_0x4a745a(0xd6))/0xa*(parseInt(_0x4a745a(0xf6))/0xb);if(_0x50aa75===_0x551d2a)break;else _0xa4f7df['push'](_0xa4f7df['shift']());}catch(_0x5d1a67){_0xa4f7df['push'](_0xa4f7df['shift']());}}}(_0x481c,0x5c44c));import{FocusTracker as _0x30abcd,KeystrokeHandler as _0x351a7b}from'ckeditor5/src/utils.js';import{ButtonView as _0x2eb32c,FocusCycler as _0x52729e,LabeledFieldView as _0x30cc85,View as _0x53b846,FormHeaderView as _0x341eca,createLabeledInputText as _0x5be1bd,submitHandler as _0x1c8407}from'ckeditor5/src/ui.js';import{IconCheck as _0x3192df,IconPreviousArrow as _0x39db98}from'@ckeditor/ckeditor5-icons';function _0x54ad(_0x2c9c5f,_0x55cffc){const _0x481c85=_0x481c();return _0x54ad=function(_0x54ad62,_0x130422){_0x54ad62=_0x54ad62-0xb6;let _0x18df59=_0x481c85[_0x54ad62];return _0x18df59;},_0x54ad(_0x2c9c5f,_0x55cffc);}import{getTranslation as _0x13a761}from'../../../aicore/utils/common-translations.js';const eh=_0x2f203c(0xca),hh=_0x2f203c(0xec);function _0x481c(){const _0x521718=['focusTracker','listenTo','input','fire','refreshBalloon','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','AI_CHAT_CONTEXT_URL_INVALID_ERROR','keystrokes','_setupTemplate','confirmButton','_createConfirmButton','ck-ai-chat-context-controls__url-input-section','value','ck-button-icon','clear','focusCycler','submit','element','trim','div','_updateConfirmButtonState','11HcKCgR','AI_CHAT_CONTEXT_URL_ADD_URL','168pYeKLd','submitUrl','ck-labeled-field-view_empty','createCollection','3690545fXcUrF','3778ROOaYD','locale','69rgjemB','add','focus','_setupKeystrokes','AI_CHAT_CONTEXT_URL_LABEL','_focusables','3625245PnMqby','forEach','execute','17348kbOJlc','set','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','206059uaOoBu','31rSxFOr','fieldView','setTemplate','render','stop','isEnabled','esc','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','ck-ai-chat-context-controls__url-form','form','children','_createBackButton','backButton','length','clearError','_setupEventHandlers','setError','getValue','tab','shift+tab','444330kyRKlx','_createUrlInputField','errorText','ck-button-icon\x20ck-button-back','_isValidUrl','AI_CHAT_CONTEXT_URL_PLACEHOLDER','_handleSubmit','1382580zXAfNR','urlInputField','cancel','destroy'];_0x481c=function(){return _0x521718;};return _0x481c();}export class AIChatContextPanelUrlInputView extends _0x53b846{[_0x2f203c(0xe1)];[_0x2f203c(0xe8)];[_0x2f203c(0xba)];[_0x2f203c(0xf0)];[_0x2f203c(0xde)];[_0x2f203c(0xce)];[_0x2f203c(0xea)];constructor(_0x45598e){const _0xfb3b8a=_0x2f203c;super(_0x45598e),this[_0xfb3b8a(0xe1)]=new _0x30abcd(),this[_0xfb3b8a(0xe8)]=new _0x351a7b(),this[_0xfb3b8a(0xce)]=this[_0xfb3b8a(0xcd)](),this[_0xfb3b8a(0xde)]=this[_0xfb3b8a(0xd7)](),this[_0xfb3b8a(0xea)]=this[_0xfb3b8a(0xeb)](),this[_0xfb3b8a(0xba)]=this[_0xfb3b8a(0xfb)]([this[_0xfb3b8a(0xce)],this[_0xfb3b8a(0xde)],this[_0xfb3b8a(0xea)]]),this[_0xfb3b8a(0xf0)]=new _0x52729e({'focusables':this[_0xfb3b8a(0xba)],'focusTracker':this[_0xfb3b8a(0xe1)],'keystrokeHandler':this[_0xfb3b8a(0xe8)],'actions':{'focusPrevious':_0xfb3b8a(0xd5),'focusNext':_0xfb3b8a(0xd4)}}),this[_0xfb3b8a(0xe9)](),this[_0xfb3b8a(0xd1)](),this[_0xfb3b8a(0xb8)]();}[_0x2f203c(0xc5)](){const _0x3a4165=_0x2f203c;super[_0x3a4165(0xc5)](),this[_0x3a4165(0xba)][_0x3a4165(0xbc)](_0x57d35d=>{const _0x481592=_0x3a4165;this[_0x481592(0xe1)][_0x481592(0xb6)](_0x57d35d[_0x481592(0xf2)]),this[_0x481592(0xe8)][_0x481592(0xe2)](_0x57d35d[_0x481592(0xf2)]);}),_0x1c8407({'view':this}),this[_0x3a4165(0xb7)]();}[_0x2f203c(0xe0)](){const _0x533880=_0x2f203c;super[_0x533880(0xe0)](),this[_0x533880(0xe1)][_0x533880(0xe0)](),this[_0x533880(0xe8)][_0x533880(0xe0)]();}[_0x2f203c(0xb7)](){const _0x518588=_0x2f203c;this[_0x518588(0xde)][_0x518588(0xb7)]();}[_0x2f203c(0xd3)](){const _0x51e93b=_0x2f203c;return this[_0x51e93b(0xde)][_0x51e93b(0xc3)][_0x51e93b(0xf2)]?.[_0x51e93b(0xed)]?.[_0x51e93b(0xf3)]()||'';}[_0x2f203c(0xef)](){const _0x157eeb=_0x2f203c;this[_0x157eeb(0xde)][_0x157eeb(0xc3)][_0x157eeb(0xf2)][_0x157eeb(0xed)]='',this[_0x157eeb(0xde)][_0x157eeb(0xd8)]=null,this[_0x157eeb(0xea)][_0x157eeb(0xc7)]=!0x1;}[_0x2f203c(0xd2)](_0x3e88ab){const _0x4bc261=_0x2f203c;this[_0x4bc261(0xde)][_0x4bc261(0xd8)]=_0x3e88ab,this[_0x4bc261(0xf5)](),this[_0x4bc261(0xe4)](_0x4bc261(0xe5));}[_0x2f203c(0xd0)](){const _0x26eb0a=_0x2f203c;this[_0x26eb0a(0xde)][_0x26eb0a(0xd8)]=null,this[_0x26eb0a(0xf5)]();}[_0x2f203c(0xcd)](){const _0x1097a4=_0x2f203c,_0x4e7d2c=new _0x2eb32c(this[_0x1097a4(0xfe)]);return _0x4e7d2c[_0x1097a4(0xbf)]({'icon':_0x39db98,'tooltip':_0x13a761(this[_0x1097a4(0xfe)],_0x1097a4(0xe6)),'tooltipPosition':'n','class':_0x1097a4(0xd9)}),_0x4e7d2c;}[_0x2f203c(0xd7)](){const _0x4dd7db=_0x2f203c,_0x24a3bd=new _0x30cc85(this[_0x4dd7db(0xfe)],_0x5be1bd);return _0x24a3bd[_0x4dd7db(0xbf)]({'label':_0x13a761(this[_0x4dd7db(0xfe)],_0x4dd7db(0xb9)),'class':_0x4dd7db(0xfa)}),_0x24a3bd[_0x4dd7db(0xc3)][_0x4dd7db(0xbf)]({'placeholder':_0x13a761(this[_0x4dd7db(0xfe)],_0x4dd7db(0xdb))}),_0x24a3bd;}[_0x2f203c(0xeb)](){const _0x273e51=_0x2f203c,_0x514e24=new _0x2eb32c(this[_0x273e51(0xfe)]);return _0x514e24[_0x273e51(0xbf)]({'icon':_0x3192df,'tooltip':_0x13a761(this[_0x273e51(0xfe)],_0x273e51(0xf7)),'tooltipPosition':'n','class':_0x273e51(0xee),'type':_0x273e51(0xf1),'isEnabled':!0x1}),_0x514e24;}[_0x2f203c(0xe9)](){const _0x2c0b5c=_0x2f203c,_0x29448a=new _0x341eca(this[_0x2c0b5c(0xfe)],{'label':_0x13a761(this[_0x2c0b5c(0xfe)],_0x2c0b5c(0xf7)),'class':_0x2c0b5c(0xc9)});_0x29448a[_0x2c0b5c(0xcc)][_0x2c0b5c(0xb6)](this[_0x2c0b5c(0xce)],0x0),this[_0x2c0b5c(0xc4)]({'tag':_0x2c0b5c(0xcb),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x29448a,{'tag':_0x2c0b5c(0xf4),'attributes':{'class':hh},'children':[this[_0x2c0b5c(0xde)],this[_0x2c0b5c(0xea)]]}]});}[_0x2f203c(0xd1)](){const _0x81c849=_0x2f203c;this[_0x81c849(0xce)]['on'](_0x81c849(0xbd),()=>{const _0x4857b7=_0x81c849;this[_0x4857b7(0xef)](),this[_0x4857b7(0xe4)](_0x4857b7(0xdf));}),this[_0x81c849(0xde)][_0x81c849(0xc3)]['on'](_0x81c849(0xe3),()=>{const _0x5625b6=_0x81c849;this[_0x5625b6(0xd0)](),this[_0x5625b6(0xf5)](),this[_0x5625b6(0xe4)](_0x5625b6(0xe5));}),this['on'](_0x81c849(0xf1),_0x2c23c8=>{const _0x44a7ff=_0x81c849;_0x2c23c8[_0x44a7ff(0xc6)](),this[_0x44a7ff(0xdc)]();});}[_0x2f203c(0xb8)](){const _0x55c685=_0x2f203c;this[_0x55c685(0xe8)][_0x55c685(0xbf)](_0x55c685(0xc8),(_0x81c6e7,_0x4c8222)=>{const _0x35e242=_0x55c685;this[_0x35e242(0xef)](),this[_0x35e242(0xe4)](_0x35e242(0xdf)),_0x4c8222();});}[_0x2f203c(0xdc)](){const _0x529f28=_0x2f203c,_0x319e9a=this[_0x529f28(0xd3)]()[_0x529f28(0xf3)]();_0x319e9a?this[_0x529f28(0xda)](_0x319e9a)?(this[_0x529f28(0xd0)](),this[_0x529f28(0xe4)](_0x529f28(0xf9),_0x319e9a)):this[_0x529f28(0xd2)](_0x13a761(this[_0x529f28(0xfe)],_0x529f28(0xe7))):this[_0x529f28(0xd2)](_0x13a761(this[_0x529f28(0xfe)],_0x529f28(0xc0)));}[_0x2f203c(0xf5)](){const _0x2ecf28=_0x2f203c,_0x46add6=this[_0x2ecf28(0xd3)]()[_0x2ecf28(0xf3)](),_0x20462a=!!this[_0x2ecf28(0xde)][_0x2ecf28(0xd8)];this[_0x2ecf28(0xea)][_0x2ecf28(0xc7)]=_0x46add6[_0x2ecf28(0xcf)]>0x0&&!_0x20462a;}[_0x2f203c(0xda)](_0x4aa11a){try{return!!new URL(_0x4aa11a);}catch{return!0x1;}}}
|