@ckeditor/ckeditor5-ai 47.0.0-alpha.0 → 47.0.0-alpha.2
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/dist/index-editor.css +114 -12
- package/dist/index.css +114 -12
- 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 +36 -1
- 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.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.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 +16 -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.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.d.ts +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/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/utils/common-translations.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.d.ts +31 -0
- package/src/aireviewmode/aireviewcheckdefinitions.js +23 -0
- package/src/aireviewmode/aireviewmode.d.ts +37 -0
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.d.ts +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.d.ts +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.d.ts +2 -19
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.d.ts +2 -5
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +6 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +4 -0
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.d.ts +1 -0
- 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/aireviewmodeformamanager.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.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.d.ts +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.d.ts +3 -2
- package/src/index.js +1 -1
- package/theme/aichat/aichat-controls/aichat-controls-loader.css +1 -1
- package/theme/aichat/aichat-controls.css +4 -0
- package/theme/aichat/aichatfeed.css +4 -0
- package/theme/aireviewmode/aireviewmode-check-list.css +112 -11
- package/theme/aitabs/tabs/tabbuttonview.css +1 -0
- package/src/aireviewmode/utils/common-translations.d.ts +0 -9
- package/src/aireviewmode/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16c0ab=_0x3662;(function(_0x129fbb,_0x1e19a3){const _0x428388=_0x3662,_0x35fed4=_0x129fbb();while(!![]){try{const _0x301e1e=parseInt(_0x428388(0xa8))/0x1+parseInt(_0x428388(0x9e))/0x2+parseInt(_0x428388(0x91))/0x3*(-parseInt(_0x428388(0xb1))/0x4)+-parseInt(_0x428388(0xa1))/0x5*(parseInt(_0x428388(0x86))/0x6)+parseInt(_0x428388(0x93))/0x7+parseInt(_0x428388(0x8f))/0x8+-parseInt(_0x428388(0x87))/0x9*(parseInt(_0x428388(0xab))/0xa);if(_0x301e1e===_0x1e19a3)break;else _0x35fed4['push'](_0x35fed4['shift']());}catch(_0x189c42){_0x35fed4['push'](_0x35fed4['shift']());}}}(_0x35bf,0xc42dd));import{clickOutsideHandler as _0x55f52d,View as _0xbf4035}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x483f92}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0xf4cbac}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x305793,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x4e796d}from'./controls/aichatcontextpanelview.js';function _0x3662(_0x3237ba,_0x2a4ad2){const _0x35bf85=_0x35bf();return _0x3662=function(_0x366280,_0x28b9c1){_0x366280=_0x366280-0x75;let _0x1019d7=_0x35bf85[_0x366280];return _0x1019d7;},_0x3662(_0x3237ba,_0x2a4ad2);}import{AIChatControlsLoaderView as _0x36714f}from'./controls/aichatcontrolsloaderview.js';export class AIChatControlsView extends _0xbf4035{[_0x16c0ab(0x96)];[_0x16c0ab(0xa4)];[_0x16c0ab(0x80)];[_0x16c0ab(0x8c)];[_0x16c0ab(0xa0)];constructor(_0x17a241,_0xb0256c){const _0x35ebd8=_0x16c0ab;super(_0x17a241),this[_0x35ebd8(0x96)]=this[_0x35ebd8(0x88)](_0x17a241,_0xb0256c),this[_0x35ebd8(0xa4)]=this[_0x35ebd8(0x82)](_0x17a241),this[_0x35ebd8(0x80)]=this[_0x35ebd8(0x97)](_0x17a241),this[_0x35ebd8(0x8c)]=this[_0x35ebd8(0x9f)](_0x17a241),this[_0x35ebd8(0xa0)]=!0x1,this[_0x35ebd8(0xa4)][_0x35ebd8(0x9b)](_0x35ebd8(0x85))['to'](this),this[_0x35ebd8(0x8c)][_0x35ebd8(0x9b)](_0x35ebd8(0x89))['to'](this),this[_0x35ebd8(0x80)][_0x35ebd8(0x9b)](_0x35ebd8(0xa7))['to'](this),this[_0x35ebd8(0x80)][_0x35ebd8(0x9b)](_0x35ebd8(0x95))['to'](this),this[_0x35ebd8(0x80)][_0x35ebd8(0x9b)](_0x35ebd8(0x84))['to'](this),this[_0x35ebd8(0x96)][_0x35ebd8(0x9b)](..._0x4e796d)['to'](this);const _0x4b7fa0=this[_0x35ebd8(0x8e)];this[_0x35ebd8(0x76)]({'tag':_0x35ebd8(0xa6),'attributes':{'class':['ck',_0x35ebd8(0x7a)]},'children':[{'tag':_0x35ebd8(0x7d),'attributes':{'class':[_0x4b7fa0['if'](_0x35ebd8(0x9a),_0x35ebd8(0x77))]},'children':[this[_0x35ebd8(0x96)],this[_0x35ebd8(0xa4)],this[_0x35ebd8(0x80)]]},{'tag':_0x35ebd8(0x7d),'attributes':{'class':[_0x4b7fa0['if'](_0x35ebd8(0x9a),_0x35ebd8(0x77),_0x2a24b9=>!_0x2a24b9)]},'children':[this[_0x35ebd8(0x8c)]]}]}),_0x55f52d({'emitter':this[_0x35ebd8(0xa4)],'activator':()=>this[_0x35ebd8(0x9a)],'contextElements':()=>[this[_0x35ebd8(0x9c)]],'callback':()=>{const _0x50c6de=_0x35ebd8;this[_0x50c6de(0xa0)]=!0x1;}}),this['on'](_0x35ebd8(0xb0),this[_0x35ebd8(0x92)],{'priority':_0x35ebd8(0xad)});}[_0x16c0ab(0x88)](_0x4ab277,_0x422ae9){return new _0x305793(_0x4ab277,_0x422ae9);}[_0x16c0ab(0x82)](_0x3155cb){const _0x510faf=_0x16c0ab;return new _0x483f92(_0x3155cb,this[_0x510faf(0x96)][_0x510faf(0x7b)]);}[_0x16c0ab(0x97)](_0x35a5ca){return new _0xf4cbac(_0x35a5ca);}[_0x16c0ab(0x9f)](_0x3be85b){return new _0x36714f(_0x3be85b);}[_0x16c0ab(0x92)](_0x508670,_0x3aa9f6,_0x3678bd){const _0x4c56ca=_0x16c0ab;_0x3678bd?this[_0x4c56ca(0xa0)]=!0x0:this[_0x4c56ca(0xa0)]&&this[_0x4c56ca(0xa4)][_0x4c56ca(0x90)]();}[_0x16c0ab(0x8d)](_0x58bf1e,_0x4eb0b4){const _0x527057=_0x16c0ab;this[_0x527057(0x96)][_0x527057(0x8d)](_0x58bf1e,_0x4eb0b4);}[_0x16c0ab(0xae)](_0xbfb93e){const _0x449220=_0x16c0ab;this[_0x449220(0x96)][_0x449220(0xae)](_0xbfb93e);}[_0x16c0ab(0x7c)](_0x79b71f,_0x33fb65){const _0x4bc4dc=_0x16c0ab;this[_0x4bc4dc(0x96)][_0x4bc4dc(0x7c)](_0x79b71f,_0x33fb65);}[_0x16c0ab(0x78)](_0x48a13a){const _0x48139c=_0x16c0ab;this[_0x48139c(0xa4)][_0x48139c(0x78)](_0x48a13a);}[_0x16c0ab(0x79)](_0x4e7799){const _0x129102=_0x16c0ab;this[_0x129102(0x96)][_0x129102(0x79)](_0x4e7799);}[_0x16c0ab(0xa2)](){const _0x39cd0e=_0x16c0ab;this[_0x39cd0e(0x96)][_0x39cd0e(0xb2)]();}[_0x16c0ab(0xac)](){const _0x5d95f4=_0x16c0ab;this[_0x5d95f4(0x96)][_0x5d95f4(0x81)]();}[_0x16c0ab(0x7f)](_0xfd0df4,_0x46c5cb,_0x5bcb8d){const _0x1c59ce=_0x16c0ab;this[_0x1c59ce(0x96)][_0x1c59ce(0x7f)](_0xfd0df4,_0x46c5cb,_0x5bcb8d);}[_0x16c0ab(0xa3)](_0x228e83){const _0x946567=_0x16c0ab;this[_0x946567(0x80)][_0x946567(0xa3)](_0x228e83);}[_0x16c0ab(0xaf)](_0x2694cc){const _0x41ed9=_0x16c0ab;this[_0x41ed9(0x80)][_0x41ed9(0xaf)](_0x2694cc);}[_0x16c0ab(0x75)](){const _0x61181d=_0x16c0ab;this[_0x61181d(0xa4)][_0x61181d(0x94)]();}[_0x16c0ab(0x9d)](_0x44e003){const _0x4ecb5b=_0x16c0ab;this[_0x4ecb5b(0x96)][_0x4ecb5b(0x9d)](_0x44e003);}[_0x16c0ab(0x99)](_0x24bbcb){const _0xfd4bba=_0x16c0ab;this[_0xfd4bba(0xa4)][_0xfd4bba(0x7e)](_0x24bbcb);}[_0x16c0ab(0x98)](_0x5cb917,_0x38f250){const _0x23ae7d=_0x16c0ab;this[_0x23ae7d(0x80)][_0x23ae7d(0x98)](_0x5cb917,_0x38f250);}[_0x16c0ab(0xa5)](_0x35aff2){const _0x7b6d17=_0x16c0ab;this[_0x7b6d17(0x80)][_0x7b6d17(0xa5)](_0x35aff2);}[_0x16c0ab(0x83)](){const _0x4bd088=_0x16c0ab;this[_0x4bd088(0x80)][_0x4bd088(0x83)]();}[_0x16c0ab(0xaa)](_0x1988ed){const _0x1ddc56=_0x16c0ab;this[_0x1ddc56(0x80)][_0x1ddc56(0xaa)](_0x1988ed);}[_0x16c0ab(0x8b)](_0x1e73fe,_0x4aaf81,_0x56bfa2,_0x583fe3){const _0x2896ec=_0x16c0ab;this[_0x2896ec(0x96)][_0x2896ec(0x8b)](_0x1e73fe,_0x4aaf81,_0x56bfa2,_0x583fe3);}[_0x16c0ab(0xa9)](_0x356c73){const _0xa65887=_0x16c0ab;this[_0xa65887(0x96)][_0xa65887(0xa9)](_0x356c73);}[_0x16c0ab(0x8a)](){const _0xd8cebb=_0x16c0ab;this[_0xd8cebb(0xa4)][_0xd8cebb(0x90)]();}}function _0x35bf(){const _0x35badd=['_createPromptInputView','enableModelSelector','selectModel','sendUserMessage','3167058dABHxM','207AAweXe','_createContextPanelView','abortPromptStream','focusPromptInput','populateSourceResourceBalloon','_loaderView','addContextItem','bindTemplate','10412144DSnnNv','focus','9930BCwjCT','_handlePromptInputFocus','9026871eSeEuK','reset','toggleReasoning','_contextPanelView','_createPromptCapabilitiesView','setModelList','setInputPlaceholder','isLoading','delegate','element','setAddContextOptions','1565826oPJAsD','_createLoaderView','_shouldRestorePromptInputFocus','5cZzAtp','clearPendingContextUI','setWebSearch','_promptInputView','setModel','form','toggleWebSearch','555397ZQTPrC','closeSourceResourceBalloon','disableModelSelector','584130TccbxW','clearConversationContextUI','low','removeContextItem','setReasoning','change:isLoading','1516wuwkNd','clearCurrentContextItems','resetMessageInput','setTemplate','ck-hidden','setIsUploadInProgress','setConversationContext','ck-ai-chat-controls','addContextButtonView','setContextItemLoading','div','setPlaceholderText','updateResourceState','_promptCapabilitiesView','clearConversationContextItems'];_0x35bf=function(){return _0x35badd;};return _0x35bf();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x34eecb=_0x2608;(function(_0x189c7f,_0x41d3b4){const _0x22dc72=_0x2608,_0x4846de=_0x189c7f();while(!![]){try{const _0x49c698=parseInt(_0x22dc72(0x1da))/0x1+parseInt(_0x22dc72(0x1ec))/0x2+parseInt(_0x22dc72(0x1d1))/0x3+parseInt(_0x22dc72(0x1fc))/0x4*(parseInt(_0x22dc72(0x1dc))/0x5)+-parseInt(_0x22dc72(0x20b))/0x6+parseInt(_0x22dc72(0x1e8))/0x7+-parseInt(_0x22dc72(0x1d0))/0x8*(parseInt(_0x22dc72(0x1f3))/0x9);if(_0x49c698===_0x41d3b4)break;else _0x4846de['push'](_0x4846de['shift']());}catch(_0x20b762){_0x4846de['push'](_0x4846de['shift']());}}}(_0x1617,0x71cad));function _0x1617(){const _0x283996=['ai-suggestion-reply','removeItem','_createSkeletonLoader','updatePartState','ck-ai-chat__loader','updateWebSources','aiFeed','_createTemplateChildren','ck-ai-chat__feed__items','span','ck-hidden','_createFeedLoader','markAsDone','344qGLfJO','487374MVGhIe','isVisible','_setupTemplate','getItemIds','options','loadingMessage','clear','toggleLoadingSkeleton','_bodyCollection','425154iujqlu','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','215iUtlnp','remove','extendTemplate','getPartView','ai-chat-feed-view-item-not-a-suggestion-item','setTemplate','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ai-chat-feed-view-item-not-a-reply-item','element','user-message','start','locale','5629099DbKzEn','updateContent','startAutoScroll','children','1706698ugbOgC','stopAutoScroll','ck-ai-chat__feed','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','div','add','isLoadingSkeletonVisible','363969XchsHE','set','ai-reply','getItemById','map','_createLoaderChildren','scrollToSuggestion','isPending','updateReplyItem','26740sngRQZ','find','destroy','interaction-header','updateSources','updateSuggestionPartState','ai-chat-feed-view-item-not-found','createCollection','setLoadingMessage','scrollManager','ck-ai-chat__loader-text','markItemAsDone','render','_createFeedItems','stop','1965102xGRFoT','delegate','addItem','updateSuggestionItem','includes','bindTemplate'];_0x1617=function(){return _0x283996;};return _0x1617();}import{CKEditorError as _0x1f879c,logWarning as _0x4d9802,scrollViewportToShowTarget as _0x2d033b}from'ckeditor5/src/utils.js';import{View as _0x1a6cf5}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x51feaf}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x1e5c72}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x4b98cc}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0xbe1707}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x58fa73}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x36a118}from'./feed/aichatfeedinteractionheaderview.js';function _0x2608(_0x5d9a48,_0x24bd37){const _0x16178e=_0x1617();return _0x2608=function(_0x260895,_0x18ee57){_0x260895=_0x260895-0x1c3;let _0x190894=_0x16178e[_0x260895];return _0x190894;},_0x2608(_0x5d9a48,_0x24bd37);}import{ScrollManager as _0x46574d}from'../utils/scrollmanager.js';import{AISkeletonView as _0x3a015c,SKELETON_DEFINITIONS as _0x1f6e80}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x383c6a}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x1a6cf5{[_0x34eecb(0x1eb)];[_0x34eecb(0x205)];[_0x34eecb(0x1d9)];constructor(_0x490132,_0x316950){const _0x822a11=_0x34eecb;super(_0x490132),this[_0x822a11(0x1d9)]=_0x316950,this[_0x822a11(0x1f4)](_0x822a11(0x1fa),!0x1),this[_0x822a11(0x1f4)](_0x822a11(0x1d6),''),this[_0x822a11(0x1f4)](_0x822a11(0x1f2),!0x1),this[_0x822a11(0x1eb)]=this[_0x822a11(0x203)](),this[_0x822a11(0x1eb)][_0x822a11(0x20c)](..._0x51feaf)['to'](this),this[_0x822a11(0x1d3)]();}[_0x34eecb(0x208)](){const _0x1216f6=_0x34eecb;super[_0x1216f6(0x208)](),this[_0x1216f6(0x205)]=new _0x46574d(this[_0x1216f6(0x1e4)]);}[_0x34eecb(0x1fe)](){const _0x590385=_0x34eecb;super[_0x590385(0x1fe)](),this[_0x590385(0x205)][_0x590385(0x1fe)]();}[_0x34eecb(0x1d7)](){const _0x5ee63b=_0x34eecb;this[_0x5ee63b(0x1eb)][_0x5ee63b(0x1d7)]();}[_0x34eecb(0x20d)](_0x25a2ac,_0x3ce85f){const _0xcc3be=_0x34eecb;let _0x8d4b40;_0x8d4b40=_0xcc3be(0x1f5)===_0x25a2ac?new _0x4b98cc(_0x3ce85f):_0xcc3be(0x1c3)===_0x25a2ac?new _0x1e5c72(this[_0xcc3be(0x1e7)],_0x3ce85f):_0xcc3be(0x1e5)===_0x25a2ac?new _0xbe1707(this[_0xcc3be(0x1e7)],_0x3ce85f,this[_0xcc3be(0x1d9)]):_0xcc3be(0x1ff)===_0x25a2ac?new _0x36a118(this[_0xcc3be(0x1e7)],_0x3ce85f):new _0x58fa73(_0x3ce85f),this[_0xcc3be(0x1eb)][_0xcc3be(0x1f1)](_0x8d4b40);}async[_0x34eecb(0x1fb)]({id:_0x43bcd3,parsedContent:_0x368ed1,renderingStrategy:_0x54a0d0,abortSignal:_0x402384}){const _0x278caf=_0x34eecb,_0x324aa6=this[_0x278caf(0x1f6)](_0x43bcd3);if(!(_0x324aa6 instanceof _0x4b98cc))throw new _0x1f879c(_0x278caf(0x1e3),null,{'itemView':_0x324aa6,'id':_0x43bcd3,'parsedContent':_0x368ed1});await _0x324aa6[_0x278caf(0x1e9)]({'parsedContent':_0x368ed1,'renderingStrategy':_0x54a0d0,'abortSignal':_0x402384});}async[_0x34eecb(0x1c8)](_0x240ddd,_0x349031){const _0x365c79=_0x34eecb,_0x57deda=this[_0x365c79(0x1f6)](_0x240ddd);if(_0x57deda instanceof _0x1e5c72)_0x57deda[_0x365c79(0x200)](_0x349031);else{if(!(_0x57deda instanceof _0x4b98cc))throw new _0x1f879c(_0x365c79(0x1ef),null,{'itemView':_0x57deda,'id':_0x240ddd,'sources':_0x349031});_0x57deda[_0x365c79(0x200)](_0x349031);}}async[_0x34eecb(0x20e)]({id:_0x83ac17,parts:_0x37f580,renderingStrategy:_0x3648d2,abortSignal:_0x12eea2}){const _0x304fa3=_0x34eecb,_0x2f33b0=this[_0x304fa3(0x1f6)](_0x83ac17);if(!(_0x2f33b0 instanceof _0x1e5c72))throw new _0x1f879c(_0x304fa3(0x1e0),null,{'itemView':_0x2f33b0,'id':_0x83ac17,'parts':_0x37f580});await _0x2f33b0[_0x304fa3(0x1e9)]({'parts':_0x37f580,'renderingStrategy':_0x3648d2,'abortSignal':_0x12eea2});}[_0x34eecb(0x201)]({id:_0x355457,index:_0x3cd008,state:_0x4c58fa}){const _0x19f997=_0x34eecb,_0x109f7c=this[_0x19f997(0x1f6)](_0x355457);if(!(_0x109f7c instanceof _0x1e5c72))throw new _0x1f879c(_0x19f997(0x1e0),this,{'id':_0x355457});_0x109f7c[_0x19f997(0x1c6)](_0x3cd008,_0x4c58fa);}[_0x34eecb(0x207)](_0x351f51){const _0x44fc44=_0x34eecb;this[_0x44fc44(0x1f6)](_0x351f51)[_0x44fc44(0x1cf)]();}[_0x34eecb(0x1d4)](){const _0x4ab8b4=_0x34eecb;return this[_0x4ab8b4(0x1eb)][_0x4ab8b4(0x1f7)](_0x4fe4a2=>_0x4fe4a2[_0x4ab8b4(0x1d5)]['id']);}[_0x34eecb(0x1c4)](_0x9e0dc2){const _0x1f4b59=_0x34eecb;this[_0x1f4b59(0x1eb)][_0x1f4b59(0x1dd)](this[_0x1f4b59(0x1f6)](_0x9e0dc2));}[_0x34eecb(0x1f9)](_0x1ab0c5,_0x5ef33b){const _0x19e355=_0x34eecb,_0x3a0d48=this[_0x19e355(0x1f6)](_0x1ab0c5);if(!(_0x3a0d48 instanceof _0x1e5c72))return void _0x4d9802(_0x19e355(0x1db),{'replyId':_0x1ab0c5,'partIndex':_0x5ef33b});const _0x51ed33=_0x3a0d48[_0x19e355(0x1df)](_0x5ef33b);_0x51ed33?_0x2d033b({'target':_0x51ed33[_0x19e355(0x1e4)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x4d9802(_0x19e355(0x1e2),{'replyId':_0x1ab0c5,'partIndex':_0x5ef33b});}[_0x34eecb(0x1d3)](){const _0x1f70db=_0x34eecb;this[_0x1f70db(0x1e1)]({'tag':_0x1f70db(0x1f0),'attributes':{'class':['ck',_0x1f70db(0x1ee)]},'children':this[_0x1f70db(0x1ca)]()});}[_0x34eecb(0x1ca)](){const _0x312899=_0x34eecb,_0x56eec1=this[_0x312899(0x1c5)]();return[this[_0x312899(0x209)](),_0x56eec1,this[_0x312899(0x1ce)]()];}[_0x34eecb(0x1c5)](){const _0x2d6a0f=_0x34eecb,_0x215bfc=new _0x3a015c(this[_0x2d6a0f(0x1e7)],_0x1f6e80[_0x2d6a0f(0x1c9)]);return _0x215bfc[_0x2d6a0f(0x1de)]({'attributes':{'class':[this[_0x2d6a0f(0x210)]['if'](_0x2d6a0f(0x1f2),_0x2d6a0f(0x1cd),_0x49b331=>!_0x49b331)]}}),_0x215bfc;}[_0x34eecb(0x209)](){const _0x1d8739=_0x34eecb,_0x45598c=new _0x1a6cf5(this[_0x1d8739(0x1e7)]);return _0x45598c[_0x1d8739(0x1e1)]({'tag':_0x1d8739(0x1f0),'attributes':{'class':['ck',_0x1d8739(0x1cb),this[_0x1d8739(0x210)]['if'](_0x1d8739(0x1f2),_0x1d8739(0x1cd))]},'children':this[_0x1d8739(0x1eb)]}),_0x45598c;}[_0x34eecb(0x1ce)](){const _0x196cc1=_0x34eecb,_0x64dc1a=new _0x1a6cf5(this[_0x196cc1(0x1e7)]);return _0x64dc1a[_0x196cc1(0x1e1)]({'tag':_0x196cc1(0x1f0),'attributes':{'class':['ck',_0x196cc1(0x1c7),this[_0x196cc1(0x210)]['if'](_0x196cc1(0x1fa),_0x196cc1(0x1cd),_0x53b152=>!_0x53b152)]},'children':this[_0x196cc1(0x1f8)]()}),_0x64dc1a;}[_0x34eecb(0x1f8)](){const _0x4eb4a9=_0x34eecb,_0x5a15ae=new _0x383c6a();return _0x5a15ae[_0x4eb4a9(0x1d2)]=!0x0,[_0x5a15ae,{'tag':_0x4eb4a9(0x1cc),'attributes':{'class':['ck',_0x4eb4a9(0x206)]},'children':[{'text':this[_0x4eb4a9(0x210)]['to'](_0x4eb4a9(0x1d6))}]}];}[_0x34eecb(0x1f6)](_0x257ecd){const _0x2a8c15=_0x34eecb,_0x5ff143=this[_0x2a8c15(0x1eb)][_0x2a8c15(0x1fd)](_0x5dfd1b=>_0x5dfd1b[_0x2a8c15(0x1d5)]['id'][_0x2a8c15(0x20f)](_0x257ecd));if(!_0x5ff143)throw new _0x1f879c(_0x2a8c15(0x202),this,{'id':_0x257ecd});return _0x5ff143;}[_0x34eecb(0x204)](_0x2ddbe6){const _0x5e91bb=_0x34eecb;this[_0x5e91bb(0x1f4)](_0x5e91bb(0x1d6),_0x2ddbe6);}[_0x34eecb(0x1d8)](_0x26f31a){const _0x5fb250=_0x34eecb;this[_0x5fb250(0x1f4)](_0x5fb250(0x1f2),_0x26f31a);}[_0x34eecb(0x1ea)](){const _0x1f5425=_0x34eecb;this[_0x1f5425(0x205)][_0x1f5425(0x1e6)]();}[_0x34eecb(0x1ed)](){const _0x2e6e47=_0x34eecb;this[_0x2e6e47(0x205)][_0x2e6e47(0x20a)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x41d4(){const _0x300a7a=['_createStartConversationButton','16011ptZeaM','execute','startConversation','4706757ebGVgR','360gRWPin','set','2CUqSKw','56PRVfBO','712767bflhuU','10577eKHmYm','AI_CHAT_LABEL_NEW_CHAT','children','isMaximized','ck-ai-chat__start-conversation','resizeButton','824432UkcOBf','45365PPTFAb','ck-ai-header\x20ck-ai-header_chat','locale','1392gHBPCf','AI_CHAT_HEADING','conversationStartButton','fire','156120HgdFhh','add'];_0x41d4=function(){return _0x300a7a;};return _0x41d4();}const _0x5d3457=_0x2220;(function(_0x3e771d,_0x8605ee){const _0x3a9585=_0x2220,_0x3f2313=_0x3e771d();while(!![]){try{const _0x4de622=-parseInt(_0x3a9585(0x11e))/0x1*(-parseInt(_0x3a9585(0x12f))/0x2)+parseInt(_0x3a9585(0x120))/0x3+-parseInt(_0x3a9585(0x11f))/0x4*(parseInt(_0x3a9585(0x128))/0x5)+-parseInt(_0x3a9585(0x12b))/0x6*(parseInt(_0x3a9585(0x121))/0x7)+-parseInt(_0x3a9585(0x127))/0x8+parseInt(_0x3a9585(0x132))/0x9*(-parseInt(_0x3a9585(0x136))/0xa)+parseInt(_0x3a9585(0x135))/0xb;if(_0x4de622===_0x8605ee)break;else _0x3f2313['push'](_0x3f2313['shift']());}catch(_0x91bb4d){_0x3f2313['push'](_0x3f2313['shift']());}}}(_0x41d4,0x2b31c));import{ButtonView as _0xa5c6a1,FormHeaderView as _0xcff439}from'ckeditor5/src/ui.js';function _0x2220(_0xde9d60,_0x1d95af){const _0x41d45f=_0x41d4();return _0x2220=function(_0x2220ff,_0x47218a){_0x2220ff=_0x2220ff-0x11d;let _0x2a4851=_0x41d45f[_0x2220ff];return _0x2a4851;},_0x2220(_0xde9d60,_0x1d95af);}import{IconPlus as _0x4cc64a,IconAIChat as _0x1d3adb}from'ckeditor5/src/icons.js';import{getTranslation as _0x1475f4}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0xa4db18}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0xcff439{[_0x5d3457(0x12d)];[_0x5d3457(0x126)];constructor(_0x376991,_0x1cbee4){const _0x442cc1=_0x5d3457;super(_0x376991,{'label':_0x1475f4(_0x376991,_0x442cc1(0x12c)),'class':_0x442cc1(0x129),'icon':_0x1d3adb}),this[_0x442cc1(0x11d)](_0x442cc1(0x124),!0x1),this[_0x442cc1(0x12d)]=this[_0x442cc1(0x131)](_0x376991),this[_0x442cc1(0x123)][_0x442cc1(0x130)](this[_0x442cc1(0x12d)]),_0x1cbee4&&(this[_0x442cc1(0x126)]=_0xa4db18(_0x376991,this),this[_0x442cc1(0x123)][_0x442cc1(0x130)](this[_0x442cc1(0x126)]));}[_0x5d3457(0x131)](_0x1c81a8){const _0xa4ca8e=_0x5d3457,_0xace526=new _0xa5c6a1(_0x1c81a8);return _0xace526[_0xa4ca8e(0x11d)]({'label':_0x1475f4(this[_0xa4ca8e(0x12a)],_0xa4ca8e(0x122)),'withText':!0x0,'icon':_0x4cc64a,'class':_0xa4ca8e(0x125)}),_0xace526['on'](_0xa4ca8e(0x133),()=>{const _0x557c64=_0xa4ca8e;this[_0x557c64(0x12e)](_0x557c64(0x134));}),_0xace526;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1cc321=_0x436a;function _0x74c6(){var _0x438985=['delegate','chatControls','ck-rounded-corners','12JMrswX','chatDisclaimer','destroy','10344GsqUet','div','1529wglLys','747556RvhdYO','8raJzBa','populateSourceResourceBalloon','ck-reset_all','closeSourceResourceBalloon','attachToDom','setTemplate','1315XfCOgt','551151wfKkON','uiLanguageDirection','9696ECwPzC','chatHeader','3800818tehNvE','9816547PjCDkm','330808NcErjr','chatFeed','170AaIiDI','ck-ai-chat','4hsaBNI','_bodyCollection','detachFromDom'];_0x74c6=function(){return _0x438985;};return _0x74c6();}(function(_0x435c8a,_0x15408b){var _0x1e09ae=_0x436a,_0x5b0941=_0x435c8a();while(!![]){try{var _0x40980f=parseInt(_0x1e09ae(0x1e0))/0x1*(parseInt(_0x1e09ae(0x1dc))/0x2)+-parseInt(_0x1e09ae(0x1c8))/0x3*(-parseInt(_0x1e09ae(0x1ce))/0x4)+parseInt(_0x1e09ae(0x1d5))/0x5*(-parseInt(_0x1e09ae(0x1cb))/0x6)+-parseInt(_0x1e09ae(0x1da))/0x7*(parseInt(_0x1e09ae(0x1cf))/0x8)+-parseInt(_0x1e09ae(0x1d6))/0x9*(-parseInt(_0x1e09ae(0x1de))/0xa)+-parseInt(_0x1e09ae(0x1cd))/0xb*(parseInt(_0x1e09ae(0x1d8))/0xc)+-parseInt(_0x1e09ae(0x1db))/0xd;if(_0x40980f===_0x15408b)break;else _0x5b0941['push'](_0x5b0941['shift']());}catch(_0x315b4b){_0x5b0941['push'](_0x5b0941['shift']());}}}(_0x74c6,0x8f2b2));function _0x436a(_0x36e5b0,_0x55dba3){var _0x74c65b=_0x74c6();return _0x436a=function(_0x436af7,_0x3bdac7){_0x436af7=_0x436af7-0x1c4;var _0x3c8685=_0x74c65b[_0x436af7];return _0x3c8685;},_0x436a(_0x36e5b0,_0x55dba3);}import{View as _0x3b5770,BodyCollection as _0x4cb4cd}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x364545}from'../utils/eventnames.js';import{AIChatFeedView as _0x51b06f}from'./aichatfeedview.js';import{AIChatControlsView as _0x4d9894}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x5e4385}from'./aichatheaderview.js';import{AIDisclaimerView as _0x3cf9ff}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x3b5770{[_0x1cc321(0x1d9)];[_0x1cc321(0x1dd)];[_0x1cc321(0x1c6)];[_0x1cc321(0x1c9)];[_0x1cc321(0x1e1)];constructor(_0x2296b3,_0x5c331b){var _0x336bfa=_0x1cc321;super(_0x2296b3),this[_0x336bfa(0x1e1)]=new _0x4cb4cd(_0x2296b3),this[_0x336bfa(0x1e1)][_0x336bfa(0x1d3)](),this[_0x336bfa(0x1d9)]=new _0x5e4385(_0x2296b3,_0x5c331b),this[_0x336bfa(0x1d9)][_0x336bfa(0x1c5)](..._0x364545)['to'](this),this[_0x336bfa(0x1dd)]=new _0x51b06f(_0x2296b3,this[_0x336bfa(0x1e1)]),this[_0x336bfa(0x1dd)][_0x336bfa(0x1c5)](..._0x364545)['to'](this),this[_0x336bfa(0x1c6)]=new _0x4d9894(_0x2296b3,this[_0x336bfa(0x1e1)]),this[_0x336bfa(0x1c6)][_0x336bfa(0x1c5)](..._0x364545)['to'](this),this[_0x336bfa(0x1c9)]=new _0x3cf9ff(_0x2296b3),this[_0x336bfa(0x1d4)]({'tag':_0x336bfa(0x1cc),'attributes':{'class':['ck',_0x336bfa(0x1d1),_0x336bfa(0x1df),_0x336bfa(0x1c7)],'dir':_0x2296b3[_0x336bfa(0x1d7)]},'children':[this[_0x336bfa(0x1d9)],this[_0x336bfa(0x1dd)],this[_0x336bfa(0x1c6)],this[_0x336bfa(0x1c9)]]});}[_0x1cc321(0x1d0)](_0x6ad8e4,_0x44e305,_0x12e5e6,_0x1c0143){var _0x1f8773=_0x1cc321;this[_0x1f8773(0x1c6)][_0x1f8773(0x1d0)](_0x6ad8e4,_0x44e305,_0x12e5e6,_0x1c0143);}[_0x1cc321(0x1d2)](_0x3e9fc7){var _0x5cc3b0=_0x1cc321;this[_0x5cc3b0(0x1c6)][_0x5cc3b0(0x1d2)](_0x3e9fc7);}[_0x1cc321(0x1ca)](){var _0x5dc3fc=_0x1cc321;this[_0x5dc3fc(0x1e1)][_0x5dc3fc(0x1c4)](),super[_0x5dc3fc(0x1ca)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x52093d=_0x30f1;(function(_0x13a249,_0x13a305){const _0x763ce0=_0x30f1,_0x31e9e4=_0x13a249();while(!![]){try{const _0x4a2041=-parseInt(_0x763ce0(0x1e9))/0x1+parseInt(_0x763ce0(0x1cf))/0x2+parseInt(_0x763ce0(0x245))/0x3+parseInt(_0x763ce0(0x22a))/0x4*(parseInt(_0x763ce0(0x23c))/0x5)+-parseInt(_0x763ce0(0x21e))/0x6*(parseInt(_0x763ce0(0x225))/0x7)+-parseInt(_0x763ce0(0x20a))/0x8*(parseInt(_0x763ce0(0x24e))/0x9)+parseInt(_0x763ce0(0x1dc))/0xa;if(_0x4a2041===_0x13a305)break;else _0x31e9e4['push'](_0x31e9e4['shift']());}catch(_0x594798){_0x31e9e4['push'](_0x31e9e4['shift']());}}}(_0x2ced,0x7b6de));function _0x2ced(){const _0x39a80a=['textContent','_calculateContainerWidth','_createShowMoreButton','show','documentElement','element','0px','createElement','from','innerHTML','_createContainerElements','bottom','_createShowMoreButtonView','slice','6936yJYxBu','includes','_renderChipsAndCountRows','_bodyCollection','opacity','none','remove','4711qhMvqx','_restoreAncestorVisibility','zIndex','right','_checkAndHandleOverflow','424FZWGeT','disableAnimationOnEnter','execute','_parentView','block','cloneNode','innerHeight','_handleShowMoreButtonClick','ck-calculation-container','overflowChips','display','set','auto','_calculateOverflowInContainer','_createShowMoreBalloonPanelView','_visibleChips','label','innerWidth','32685ijpjBH','render','_targetContainer','_createMockButton','div','_makeAncestorsVisible','_locale','undefined','position','307221DjPNUz','top','content','maxVisibleRows','body','cssClasses','overflowContainer','block\x20!important','300px','68967yaUpVV','_setupVisibilityObserver','classList','children','length','showMoreButtonView','some','50px','showBalloonPanel','calculationContainer','_distributeChips','_overflowChips','destroy','visible\x20!important','parentElement','className','forEach','width','_config','pop','_intersectionObserver','583610SJAEeD','boxSizing','filter','border-box','style','.ck-ai-chat','_applyCalculationStyles','appendChild','-9999px','abs','_containerElement','_findTargetContainer','reorganizeChips','11183290ePLLhj','getComputedStyle','_updateBalloonContent','_updateOverflowUI','_showMoreButtonView','_ancestorsToRestore','setContainerElement','setTemplate','controlsButton','absolute','observe','left','tagName','439140EKjNMt','isVisible','querySelector','_createCalculationContainer','clientWidth','clear','isIntersecting','_showMoreBalloonPanelView','toLowerCase','_updateShowMoreButtonVisibility','hide','pointerEvents','height','_isContainerVisible','pin','isOn','showMoreLabelPrefix','add','_testButtonFit','visibility','showMoreButton','showMoreBalloon','button','push','isConnected','offsetWidth','+\x201','visible','rowDetectionTolerance','_applyOverflowResults','hideBalloonPanel','clientHeight','hidden','504hIOlbM','_repinBalloonPanel','getBoundingClientRect','_pendingCalculation','extendTemplate','disconnect'];_0x2ced=function(){return _0x39a80a;};return _0x2ced();}import{View as _0x399537,BalloonPanelView as _0x4fec26,ButtonView as _0x2bc9c6,clickOutsideHandler as _0x5a7999}from'ckeditor5/src/ui.js';import{Collection as _0x43f663}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},ln=_0x52093d(0x24d);function _0x30f1(_0x1c89ee,_0x48874b){const _0x2ced1=_0x2ced();return _0x30f1=function(_0x30f180,_0xd26c9f){_0x30f180=_0x30f180-0x1c3;let _0x49437e=_0x2ced1[_0x30f180];return _0x49437e;},_0x30f1(_0x1c89ee,_0x48874b);}export class AIChatChipsOverflowManager{[_0x52093d(0x242)];[_0x52093d(0x1cc)];[_0x52093d(0x239)];[_0x52093d(0x1c5)];[_0x52093d(0x1e0)]=null;[_0x52093d(0x1f0)]=null;[_0x52093d(0x1d9)]=null;[_0x52093d(0x221)];[_0x52093d(0x22d)]=null;[_0x52093d(0x1ce)]=null;[_0x52093d(0x20d)]=!0x1;constructor(_0x225cdc,_0x496564,_0x1e288b,_0x572fcc,_0x48b430){const _0x20b6de=_0x52093d;this[_0x20b6de(0x242)]=_0x225cdc,this[_0x20b6de(0x239)]=_0x496564,this[_0x20b6de(0x1cc)]={...hn,..._0x1e288b,'cssClasses':{'controlsButton':'','calculationContainer':_0x20b6de(0x232),..._0x1e288b[_0x20b6de(0x24a)]}},this[_0x20b6de(0x1c5)]=new _0x43f663(),this[_0x20b6de(0x221)]=_0x572fcc,this[_0x20b6de(0x22d)]=_0x48b430||null;}[_0x52093d(0x1e2)](_0x50fdb3){const _0x198cac=_0x52093d;this[_0x198cac(0x1ce)]&&(this[_0x198cac(0x1ce)][_0x198cac(0x20f)](),this[_0x198cac(0x1ce)]=null),this[_0x198cac(0x1d9)]=_0x50fdb3,this[_0x198cac(0x24f)]();}get[_0x52093d(0x253)](){const _0x1fff9c=_0x52093d;return this[_0x1fff9c(0x1e0)];}get[_0x52093d(0x233)](){const _0x4373a3=_0x52093d;return this[_0x4373a3(0x1c5)];}[_0x52093d(0x1db)](){requestAnimationFrame(()=>{const _0x5be6a8=_0x30f1;this[_0x5be6a8(0x229)]();});}[_0x52093d(0x256)](){const _0x59caee=_0x52093d;this[_0x59caee(0x1e0)]&&this[_0x59caee(0x1f0)]&&(this[_0x59caee(0x1de)](),this[_0x59caee(0x1e0)][_0x59caee(0x1f8)]=!0x0,this[_0x59caee(0x1f0)][_0x59caee(0x213)](),this[_0x59caee(0x1f0)][_0x59caee(0x1f7)]({'target':this[_0x59caee(0x1e0)][_0x59caee(0x215)],'limiter':document[_0x59caee(0x1eb)](_0x59caee(0x1d4))}));}[_0x52093d(0x207)](){const _0x5f5a3e=_0x52093d;this[_0x5f5a3e(0x1e0)]&&this[_0x5f5a3e(0x1f0)]&&(this[_0x5f5a3e(0x1e0)][_0x5f5a3e(0x1f8)]=!0x1,this[_0x5f5a3e(0x1f0)][_0x5f5a3e(0x1f3)]());}[_0x52093d(0x1ee)](){const _0x515d51=_0x52093d;this[_0x515d51(0x1c5)][_0x515d51(0x1ee)](),this[_0x515d51(0x207)](),this[_0x515d51(0x1f2)](),this[_0x515d51(0x1e0)]&&(this[_0x515d51(0x1e0)][_0x515d51(0x23a)]=''),this[_0x515d51(0x1f0)]&&this[_0x515d51(0x1f0)][_0x515d51(0x247)][_0x515d51(0x1ee)]();}[_0x52093d(0x1c6)](){const _0x120d59=_0x52093d;this[_0x120d59(0x1ce)]&&(this[_0x120d59(0x1ce)][_0x120d59(0x20f)](),this[_0x120d59(0x1ce)]=null),this[_0x120d59(0x1e0)]&&(this[_0x120d59(0x1e0)][_0x120d59(0x1c6)](),this[_0x120d59(0x1e0)]=null),this[_0x120d59(0x1f0)]&&(this[_0x120d59(0x1f0)][_0x120d59(0x1c6)](),this[_0x120d59(0x1f0)]=null);}[_0x52093d(0x229)](){const _0x1c2b7c=_0x52093d;if(!this[_0x1c2b7c(0x1d9)])return;if(!this[_0x1c2b7c(0x1f6)]())return void(this[_0x1c2b7c(0x20d)]=!0x0);this[_0x1c2b7c(0x20d)]=!0x1;const _0x6e59f=[...this[_0x1c2b7c(0x239)],...this[_0x1c2b7c(0x1c5)]],_0xe3e55f=this[_0x1c2b7c(0x1ec)](),_0x5df374=this[_0x1c2b7c(0x237)](_0xe3e55f,_0x6e59f),_0x15d8f6=_0xe3e55f[_0x1c2b7c(0x1e1)];_0x15d8f6&&this[_0x1c2b7c(0x226)](_0x15d8f6),_0xe3e55f[_0x1c2b7c(0x224)](),this[_0x1c2b7c(0x206)](_0x6e59f,_0x5df374);}[_0x52093d(0x212)](){const _0x44c747=_0x52093d;this[_0x44c747(0x1e0)]=this[_0x44c747(0x21c)](),this[_0x44c747(0x1f0)]=this[_0x44c747(0x238)](),this[_0x44c747(0x1e0)][_0x44c747(0x23d)](),this[_0x44c747(0x1d9)][_0x44c747(0x1d6)](this[_0x44c747(0x1e0)][_0x44c747(0x215)]),this[_0x44c747(0x1e0)]['on'](_0x44c747(0x22c),()=>{const _0x54d195=_0x44c747;this[_0x54d195(0x231)]();}),_0x5a7999({'emitter':this[_0x44c747(0x1f0)],'contextElements':[this[_0x44c747(0x1f0)][_0x44c747(0x215)],this[_0x44c747(0x1e0)][_0x44c747(0x215)]],'callback':()=>this[_0x44c747(0x207)](),'activator':()=>this[_0x44c747(0x1e0)][_0x44c747(0x1f8)]});}[_0x52093d(0x21c)](){const _0x382927=_0x52093d,_0x3443cc=new _0x2bc9c6(this[_0x382927(0x242)]);_0x3443cc[_0x382927(0x235)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x17b7b6=[this[_0x382927(0x1cc)][_0x382927(0x24a)][_0x382927(0x1fd)]];return this[_0x382927(0x1cc)][_0x382927(0x24a)][_0x382927(0x1e4)]&&_0x17b7b6[_0x382927(0x200)](this[_0x382927(0x1cc)][_0x382927(0x24a)][_0x382927(0x1e4)]),_0x3443cc[_0x382927(0x20e)]({'attributes':{'class':_0x17b7b6}}),_0x3443cc;}[_0x52093d(0x238)](){const _0x2fb34f=_0x52093d,_0x4a7df3=new _0x4fec26(this[_0x2fb34f(0x242)]);return _0x4a7df3[_0x2fb34f(0x20e)]({'attributes':{'class':this[_0x2fb34f(0x1cc)][_0x2fb34f(0x24a)][_0x2fb34f(0x1fe)]}}),this[_0x2fb34f(0x221)][_0x2fb34f(0x1fa)](_0x4a7df3),_0x4a7df3;}[_0x52093d(0x1de)](){const _0x317793=_0x52093d;if(this[_0x317793(0x1f0)]&&(this[_0x317793(0x1f0)][_0x317793(0x247)][_0x317793(0x1ee)](),this[_0x317793(0x1c5)][_0x317793(0x252)]>0x0)){this[_0x317793(0x1c5)][_0x317793(0x1ca)](_0x5e40fb=>{const _0x30ebb7=_0x317793;_0x5e40fb[_0x30ebb7(0x22b)]();});const _0x1e90f4=new _0x399537(this[_0x317793(0x242)]);_0x1e90f4[_0x317793(0x1e3)]({'tag':_0x317793(0x240),'attributes':{'class':this[_0x317793(0x1cc)][_0x317793(0x24a)][_0x317793(0x24b)]},'children':this[_0x317793(0x1c5)]}),this[_0x317793(0x1f0)][_0x317793(0x247)][_0x317793(0x1fa)](_0x1e90f4);}}[_0x52093d(0x231)](){const _0x56feb6=_0x52093d;this[_0x56feb6(0x1e0)][_0x56feb6(0x1f8)]?this[_0x56feb6(0x207)]():this[_0x56feb6(0x256)]();}[_0x52093d(0x1f2)](){const _0x504d85=_0x52093d,_0x1b04f9=this[_0x504d85(0x1c5)][_0x504d85(0x252)]>0x0;this[_0x504d85(0x1e0)]?.[_0x504d85(0x215)]&&(this[_0x504d85(0x1e0)][_0x504d85(0x215)][_0x504d85(0x1d3)][_0x504d85(0x234)]=_0x1b04f9?'':_0x504d85(0x223));}[_0x52093d(0x20b)](){const _0x34a51c=_0x52093d;this[_0x34a51c(0x1e0)]?.[_0x34a51c(0x1f8)]&&this[_0x34a51c(0x1f0)]?.[_0x34a51c(0x1ea)]&&this[_0x34a51c(0x1e0)][_0x34a51c(0x215)]&&this[_0x34a51c(0x1f0)][_0x34a51c(0x1f7)]({'target':this[_0x34a51c(0x1e0)][_0x34a51c(0x215)],'limiter':document[_0x34a51c(0x1eb)](_0x34a51c(0x1d4))});}[_0x52093d(0x1da)](_0xccd6ad){const _0x3d8c49=_0x52093d,_0x216771=this[_0x3d8c49(0x1d9)]?.[_0x3d8c49(0x1e8)][_0x3d8c49(0x1f1)]()||_0x3d8c49(0x240),_0x4000e9=this[_0x3d8c49(0x1d9)]?.[_0x3d8c49(0x250)];if(_0x4000e9){const _0x4000ee=_0x4000e9[0x0]||'',_0x28bc8c=_0xccd6ad[_0x3d8c49(0x1eb)]('.'+_0x4000ee),_0x1c393b=_0xccd6ad[_0x3d8c49(0x1eb)](_0x216771);return _0x28bc8c||_0x1c393b||_0xccd6ad;}return _0xccd6ad[_0x3d8c49(0x1eb)](_0x216771)||_0xccd6ad;}[_0x52093d(0x211)](){const _0x1686c6=_0x52093d,_0x3df4fa=this[_0x1686c6(0x22d)]?.[_0x1686c6(0x215)]||this[_0x1686c6(0x1d9)];if(!_0x3df4fa)return ln;const _0x5c6663=window[_0x1686c6(0x1dd)](_0x3df4fa)[_0x1686c6(0x1cb)];if(_0x1686c6(0x236)===_0x5c6663||_0x1686c6(0x216)===_0x5c6663||!_0x5c6663){const _0x427a44=_0x3df4fa[_0x1686c6(0x1c8)];if(_0x427a44){const _0x3b865b=window[_0x1686c6(0x1dd)](_0x427a44);return _0x1686c6(0x236)!==_0x3b865b[_0x1686c6(0x1cb)]?_0x3b865b[_0x1686c6(0x1cb)]:ln;}return ln;}return _0x5c6663;}[_0x52093d(0x1d5)](_0x342421,_0x596307){const _0xe2cf49=_0x52093d;this[_0xe2cf49(0x1cc)][_0xe2cf49(0x24a)][_0xe2cf49(0x1c3)]&&_0x342421[_0xe2cf49(0x250)][_0xe2cf49(0x1fa)](this[_0xe2cf49(0x1cc)][_0xe2cf49(0x24a)][_0xe2cf49(0x1c3)]),_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x1cb)]=_0x596307,_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x244)]=_0xe2cf49(0x1e5),_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x246)]=_0xe2cf49(0x1d7),_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x1e7)]=_0xe2cf49(0x1d7),_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x222)]='0',_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x1f4)]=_0xe2cf49(0x223),_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x227)]='-1',_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x1fc)]=_0xe2cf49(0x1c7),_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x234)]=_0xe2cf49(0x24c),_0x342421[_0xe2cf49(0x1d3)][_0xe2cf49(0x1d0)]=_0xe2cf49(0x1d2);}[_0x52093d(0x226)](_0x294d86){const _0x43175f=_0x52093d;_0x294d86[_0x43175f(0x1ca)](({element:_0xfb307c,originalDisplay:_0x4b86a8,originalVisibility:_0x14d3c2})=>{const _0x10d69b=_0x43175f;_0xfb307c[_0x10d69b(0x1d3)][_0x10d69b(0x234)]=_0x4b86a8,_0xfb307c[_0x10d69b(0x1d3)][_0x10d69b(0x1fc)]=_0x14d3c2;});}[_0x52093d(0x241)](_0xb25956){const _0x3ed018=_0x52093d,_0x5043c8=[];let _0xdc40be=_0xb25956;for(;_0xdc40be&&_0xdc40be!==document[_0x3ed018(0x249)];){const _0x3adf0f=window[_0x3ed018(0x1dd)](_0xdc40be);_0x3ed018(0x223)!==_0x3adf0f[_0x3ed018(0x234)]&&_0x3ed018(0x209)!==_0x3adf0f[_0x3ed018(0x1fc)]||(_0x5043c8[_0x3ed018(0x200)]({'element':_0xdc40be,'originalDisplay':_0xdc40be[_0x3ed018(0x1d3)][_0x3ed018(0x234)],'originalVisibility':_0xdc40be[_0x3ed018(0x1d3)][_0x3ed018(0x1fc)]}),_0xdc40be[_0x3ed018(0x1d3)][_0x3ed018(0x234)]=_0x3ed018(0x22e),_0xdc40be[_0x3ed018(0x1d3)][_0x3ed018(0x1fc)]=_0x3ed018(0x204)),_0xdc40be=_0xdc40be[_0x3ed018(0x1c8)];}return _0x5043c8;}[_0x52093d(0x21a)](){const _0x32236e=_0x52093d;let _0x5dbc75,_0x5b90f7;return this[_0x32236e(0x22d)]?.[_0x32236e(0x215)]?(_0x5dbc75=this[_0x32236e(0x22d)][_0x32236e(0x215)][_0x32236e(0x22f)](!0x0),_0x5b90f7=this[_0x32236e(0x1da)](_0x5dbc75)):(_0x5dbc75=document[_0x32236e(0x217)](_0x32236e(0x240)),_0x5b90f7=_0x5dbc75),{'calculationContainer':_0x5dbc75,'targetContainer':_0x5b90f7};}[_0x52093d(0x1ec)](){const _0x3c95c2=_0x52093d,{calculationContainer:_0x37d365,targetContainer:_0x451019}=this[_0x3c95c2(0x21a)](),_0x7bdabe=this[_0x3c95c2(0x211)]();this[_0x3c95c2(0x1d5)](_0x37d365,_0x7bdabe);const _0x96f152=this[_0x3c95c2(0x22d)]?.[_0x3c95c2(0x215)]||this[_0x3c95c2(0x1d9)],_0x420ab4=_0x96f152?.[_0x3c95c2(0x1c8)];_0x420ab4?_0x420ab4[_0x3c95c2(0x1d6)](_0x37d365):document[_0x3c95c2(0x249)][_0x3c95c2(0x1d6)](_0x37d365),_0x37d365[_0x3c95c2(0x23e)]=_0x451019;const _0x3a247a=this[_0x3c95c2(0x241)](_0x420ab4||null);return _0x37d365[_0x3c95c2(0x202)],_0x37d365[_0x3c95c2(0x1e1)]=_0x3a247a,_0x37d365;}[_0x52093d(0x237)](_0x5bddff,_0x334429){const _0x5e931f=_0x52093d,_0x1d08f3=_0x5bddff[_0x5e931f(0x23e)]||_0x5bddff,_0x13e171=[],{rowCount:_0x59bcba}=this[_0x5e931f(0x220)](_0x1d08f3,_0x334429);if(_0x59bcba<=this[_0x5e931f(0x1cc)][_0x5e931f(0x248)])return _0x13e171;const _0x1a8c36=_0x334429[_0x5e931f(0x21d)]();for(;_0x1a8c36[_0x5e931f(0x252)]>0x0;){if(this[_0x5e931f(0x1fb)](_0x5bddff,_0x1d08f3,_0x1a8c36)){const _0x3d10bf=_0x334429[_0x5e931f(0x1d1)](_0x238d23=>!_0x1a8c36[_0x5e931f(0x21f)](_0x238d23));_0x13e171[_0x5e931f(0x200)](..._0x3d10bf);break;}if(!_0x1a8c36[_0x5e931f(0x1cd)]())break;}return _0x13e171;}[_0x52093d(0x220)](_0x6023da,_0x36beb3){const _0x1263ee=_0x52093d;_0x6023da[_0x1263ee(0x219)]='',_0x36beb3[_0x1263ee(0x1ca)](_0x51df27=>{const _0x1b7f41=_0x1263ee;if(_0x51df27[_0x1b7f41(0x215)]){const _0x3a3c53=_0x51df27[_0x1b7f41(0x215)][_0x1b7f41(0x22f)](!0x0);_0x6023da[_0x1b7f41(0x1d6)](_0x3a3c53);}}),_0x6023da[_0x1263ee(0x202)];const _0x5e6fa2=_0x6023da[_0x1263ee(0x251)],_0x52fb9b=[];return Array[_0x1263ee(0x218)](_0x5e6fa2)[_0x1263ee(0x1ca)](_0x17ba88=>{const _0x415f6d=_0x1263ee,_0x582741=_0x17ba88[_0x415f6d(0x20c)]()[_0x415f6d(0x246)];_0x52fb9b[_0x415f6d(0x254)](_0x40e392=>Math[_0x415f6d(0x1d8)](_0x40e392-_0x582741)<this[_0x415f6d(0x1cc)][_0x415f6d(0x205)])||_0x52fb9b[_0x415f6d(0x200)](_0x582741);}),{'rowCount':_0x52fb9b[_0x1263ee(0x252)]};}[_0x52093d(0x23f)](){const _0x58345b=_0x52093d,_0x1b24e8=document[_0x58345b(0x217)](_0x58345b(0x1ff));return _0x1b24e8[_0x58345b(0x1c9)]=this[_0x58345b(0x1cc)][_0x58345b(0x24a)][_0x58345b(0x1fd)],this[_0x58345b(0x1cc)][_0x58345b(0x24a)][_0x58345b(0x1e4)]&&_0x1b24e8[_0x58345b(0x250)][_0x58345b(0x1fa)](this[_0x58345b(0x1cc)][_0x58345b(0x24a)][_0x58345b(0x1e4)]),_0x1b24e8[_0x58345b(0x210)]=_0x58345b(0x203),_0x1b24e8;}[_0x52093d(0x1fb)](_0x354ac0,_0x468a16,_0x2f307c){const _0x5339e2=_0x52093d;this[_0x5339e2(0x220)](_0x468a16,_0x2f307c);const _0x1d8f14=this[_0x5339e2(0x23f)]();_0x354ac0[_0x5339e2(0x1d6)](_0x1d8f14),_0x354ac0[_0x5339e2(0x202)];const _0x2f977b=[..._0x468a16[_0x5339e2(0x251)],_0x1d8f14],_0x5ec0ba=[];_0x2f977b[_0x5339e2(0x1ca)](_0x1415fa=>{const _0x151ade=_0x5339e2,_0x212df2=_0x1415fa[_0x151ade(0x20c)]()[_0x151ade(0x246)];_0x5ec0ba[_0x151ade(0x254)](_0x1a1bb4=>Math[_0x151ade(0x1d8)](_0x1a1bb4-_0x212df2)<this[_0x151ade(0x1cc)][_0x151ade(0x205)])||_0x5ec0ba[_0x151ade(0x200)](_0x212df2);});const _0x20660c=_0x5ec0ba[_0x5339e2(0x252)];return _0x1d8f14[_0x5339e2(0x224)](),_0x20660c<=this[_0x5339e2(0x1cc)][_0x5339e2(0x248)];}[_0x52093d(0x1c4)](_0x3c81a4,_0x46400b){const _0x571f2a=_0x52093d;this[_0x571f2a(0x239)][_0x571f2a(0x1ee)](),this[_0x571f2a(0x1c5)][_0x571f2a(0x1ee)](),_0x3c81a4[_0x571f2a(0x1ca)](_0x466a5d=>{const _0x544ad6=_0x571f2a;_0x46400b[_0x544ad6(0x21f)](_0x466a5d)?this[_0x544ad6(0x1c5)][_0x544ad6(0x1fa)](_0x466a5d):this[_0x544ad6(0x239)][_0x544ad6(0x1fa)](_0x466a5d);});}[_0x52093d(0x1df)](_0x46ba04){const _0x5f0c4e=_0x52093d;if(_0x46ba04>0x0&&!this[_0x5f0c4e(0x1e0)]&&this[_0x5f0c4e(0x212)](),_0x46ba04>0x0&&this[_0x5f0c4e(0x1e0)]){const _0x5610b9=''+this[_0x5f0c4e(0x1cc)][_0x5f0c4e(0x1f9)]+(_0x46ba04<0x63?_0x46ba04:'99');this[_0x5f0c4e(0x1e0)][_0x5f0c4e(0x23a)]=_0x5610b9;}this[_0x5f0c4e(0x1de)](),this[_0x5f0c4e(0x1f2)](),this[_0x5f0c4e(0x20b)]();}[_0x52093d(0x206)](_0x39d5e4,_0x5462a0){const _0x28ae6c=_0x52093d;this[_0x28ae6c(0x1c4)](_0x39d5e4,_0x5462a0),this[_0x28ae6c(0x1df)](_0x5462a0[_0x28ae6c(0x252)]);}[_0x52093d(0x24f)](){const _0x423c5e=_0x52093d;this[_0x423c5e(0x1d9)]&&_0x423c5e(0x243)!=typeof IntersectionObserver&&(this[_0x423c5e(0x1ce)]=new IntersectionObserver(_0x1d38ff=>{const _0x1cb38f=_0x423c5e;_0x1d38ff[0x0][_0x1cb38f(0x1ef)]&&this[_0x1cb38f(0x20d)]&&requestAnimationFrame(()=>{const _0x3526d8=_0x1cb38f;this[_0x3526d8(0x229)]();});},{'threshold':0.01,'rootMargin':_0x423c5e(0x255)}),this[_0x423c5e(0x1ce)][_0x423c5e(0x1e6)](this[_0x423c5e(0x1d9)]));}[_0x52093d(0x1f6)](){const _0x3eaf3c=_0x52093d;if(!this[_0x3eaf3c(0x1d9)])return!0x1;if(!this[_0x3eaf3c(0x1d9)][_0x3eaf3c(0x201)])return!0x1;const _0x265ec4=this[_0x3eaf3c(0x1d9)][_0x3eaf3c(0x20c)]();if(0x0===_0x265ec4[_0x3eaf3c(0x1cb)]||0x0===_0x265ec4[_0x3eaf3c(0x1f5)])return!0x1;const _0x4220c3=window[_0x3eaf3c(0x230)]||document[_0x3eaf3c(0x214)][_0x3eaf3c(0x208)],_0x5bd1c9=window[_0x3eaf3c(0x23b)]||document[_0x3eaf3c(0x214)][_0x3eaf3c(0x1ed)],_0x1417ff=0xc8;return _0x265ec4[_0x3eaf3c(0x21b)]>=-0xc8&&_0x265ec4[_0x3eaf3c(0x246)]<=_0x4220c3+_0x1417ff&&_0x265ec4[_0x3eaf3c(0x228)]>=-0xc8&&_0x265ec4[_0x3eaf3c(0x1e7)]<=_0x5bd1c9+_0x1417ff;}}
|
|
23
|
+
function _0x1a8e(){const _0x649ebe=['width','showMoreButton','forEach','cloneNode','_showMoreBalloonPanelView','_targetContainer','documentElement','add','50px','_calculateOverflowInContainer','300px','right','_setupVisibilityObserver','children','1213688WHxGlh','visible','toLowerCase','querySelector','undefined','isOn','div','clear','absolute','content','_ancestorsToRestore','height','_handleShowMoreButtonClick','isConnected','render','disconnect','overflowContainer','_visibleChips','rowDetectionTolerance','setTemplate','8787864zyUgHr','top','extendTemplate','_restoreAncestorVisibility','_applyCalculationStyles','controlsButton','_containerElement','8220435FxymnQ','isVisible','pin','calculationContainer','observe','filter','some','5370015cAcuxU','_updateBalloonContent','tagName','boxSizing','ck-calculation-container','_parentView','label','position','showBalloonPanel','block','_makeAncestorsVisible','_intersectionObserver','4498LQeEaB','_createShowMoreBalloonPanelView','includes','_isContainerVisible','classList','bottom','textContent','_distributeChips','opacity','auto','display','execute','_locale','hideBalloonPanel','hide','showMoreBalloon','show','innerHeight','_createShowMoreButton','style','6923172oEAcvG','_createMockButton','destroy','_createContainerElements','_createCalculationContainer','_bodyCollection','getBoundingClientRect','setContainerElement','_updateOverflowUI','visibility','879tWcblt','_findTargetContainer','0px','pop','slice','border-box','_pendingCalculation','zIndex','_updateShowMoreButtonVisibility','clientHeight','reorganizeChips','overflowChips','className','showMoreLabelPrefix','maxVisibleRows','from','createElement','isIntersecting','none','hidden','body','innerWidth','visible\x20!important','4502230ZXNWhv','6qZugog','.ck-ai-chat','_calculateContainerWidth','getComputedStyle','button','27uxjQro','_repinBalloonPanel','_createShowMoreButtonView','_showMoreButtonView','parentElement','pointerEvents','_checkAndHandleOverflow','disableAnimationOnEnter','offsetWidth','set','_renderChipsAndCountRows','_applyOverflowResults','left','length','appendChild','block\x20!important','element','remove','abs','+\x201','_overflowChips','push','_testButtonFit','-9999px','clientWidth','innerHTML','_config','cssClasses','showMoreButtonView'];_0x1a8e=function(){return _0x649ebe;};return _0x1a8e();}const _0x4a6c5d=_0x40ef;(function(_0x456175,_0x59e5a7){const _0x39ac3b=_0x40ef,_0x352ab4=_0x456175();while(!![]){try{const _0x3b3be7=parseInt(_0x39ac3b(0x240))/0x1+-parseInt(_0x39ac3b(0x1da))/0x2*(-parseInt(_0x39ac3b(0x1f8))/0x3)+parseInt(_0x39ac3b(0x1ee))/0x4+-parseInt(_0x39ac3b(0x25b))/0x5+parseInt(_0x39ac3b(0x210))/0x6*(-parseInt(_0x39ac3b(0x1ce))/0x7)+parseInt(_0x39ac3b(0x254))/0x8+-parseInt(_0x39ac3b(0x215))/0x9*(parseInt(_0x39ac3b(0x20f))/0xa);if(_0x3b3be7===_0x59e5a7)break;else _0x352ab4['push'](_0x352ab4['shift']());}catch(_0x22de7a){_0x352ab4['push'](_0x352ab4['shift']());}}}(_0x1a8e,0xe57f4));import{View as _0x4f409a,BalloonPanelView as _0x44684c,ButtonView as _0x17f5f0,clickOutsideHandler as _0xe54fb4}from'ckeditor5/src/ui.js';import{Collection as _0x265f3c}from'ckeditor5/src/utils.js';const sn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},hn=_0x4a6c5d(0x23c);function _0x40ef(_0x330cfe,_0x2b8ef1){const _0x1a8e14=_0x1a8e();return _0x40ef=function(_0x40ef4a,_0x497024){_0x40ef4a=_0x40ef4a-0x1cd;let _0x26ef22=_0x1a8e14[_0x40ef4a];return _0x26ef22;},_0x40ef(_0x330cfe,_0x2b8ef1);}export class AIChatChipsOverflowManager{[_0x4a6c5d(0x1e6)];[_0x4a6c5d(0x22f)];[_0x4a6c5d(0x251)];[_0x4a6c5d(0x229)];[_0x4a6c5d(0x218)]=null;[_0x4a6c5d(0x236)]=null;[_0x4a6c5d(0x25a)]=null;[_0x4a6c5d(0x1f3)];[_0x4a6c5d(0x1d3)]=null;[_0x4a6c5d(0x1d9)]=null;[_0x4a6c5d(0x1fe)]=!0x1;constructor(_0x219750,_0x1cb794,_0x2922cd,_0x1ec1c2,_0x3db02e){const _0x569541=_0x4a6c5d;this[_0x569541(0x1e6)]=_0x219750,this[_0x569541(0x251)]=_0x1cb794,this[_0x569541(0x22f)]={...sn,..._0x2922cd,'cssClasses':{'controlsButton':'','calculationContainer':_0x569541(0x1d2),..._0x2922cd[_0x569541(0x230)]}},this[_0x569541(0x229)]=new _0x265f3c(),this[_0x569541(0x1f3)]=_0x1ec1c2,this[_0x569541(0x1d3)]=_0x3db02e||null;}[_0x4a6c5d(0x1f5)](_0x51e20c){const _0x327594=_0x4a6c5d;this[_0x327594(0x1d9)]&&(this[_0x327594(0x1d9)][_0x327594(0x24f)](),this[_0x327594(0x1d9)]=null),this[_0x327594(0x25a)]=_0x51e20c,this[_0x327594(0x23e)]();}get[_0x4a6c5d(0x231)](){const _0x124e32=_0x4a6c5d;return this[_0x124e32(0x218)];}get[_0x4a6c5d(0x203)](){const _0x55eec0=_0x4a6c5d;return this[_0x55eec0(0x229)];}[_0x4a6c5d(0x202)](){requestAnimationFrame(()=>{const _0x39788f=_0x40ef;this[_0x39788f(0x21b)]();});}[_0x4a6c5d(0x1d6)](){const _0x499d16=_0x4a6c5d;this[_0x499d16(0x218)]&&this[_0x499d16(0x236)]&&(this[_0x499d16(0x1cf)](),this[_0x499d16(0x218)][_0x499d16(0x245)]=!0x0,this[_0x499d16(0x236)][_0x499d16(0x1ea)](),this[_0x499d16(0x236)][_0x499d16(0x25d)]({'target':this[_0x499d16(0x218)][_0x499d16(0x225)],'limiter':document[_0x499d16(0x243)](_0x499d16(0x211))}));}[_0x4a6c5d(0x1e7)](){const _0x296b4d=_0x4a6c5d;this[_0x296b4d(0x218)]&&this[_0x296b4d(0x236)]&&(this[_0x296b4d(0x218)][_0x296b4d(0x245)]=!0x1,this[_0x296b4d(0x236)][_0x296b4d(0x1e8)]());}[_0x4a6c5d(0x247)](){const _0x143d63=_0x4a6c5d;this[_0x143d63(0x229)][_0x143d63(0x247)](),this[_0x143d63(0x1e7)](),this[_0x143d63(0x200)](),this[_0x143d63(0x218)]&&(this[_0x143d63(0x218)][_0x143d63(0x1d4)]=''),this[_0x143d63(0x236)]&&this[_0x143d63(0x236)][_0x143d63(0x249)][_0x143d63(0x247)]();}[_0x4a6c5d(0x1f0)](){const _0x1adfb9=_0x4a6c5d;this[_0x1adfb9(0x1d9)]&&(this[_0x1adfb9(0x1d9)][_0x1adfb9(0x24f)](),this[_0x1adfb9(0x1d9)]=null),this[_0x1adfb9(0x218)]&&(this[_0x1adfb9(0x218)][_0x1adfb9(0x1f0)](),this[_0x1adfb9(0x218)]=null),this[_0x1adfb9(0x236)]&&(this[_0x1adfb9(0x236)][_0x1adfb9(0x1f0)](),this[_0x1adfb9(0x236)]=null);}[_0x4a6c5d(0x21b)](){const _0x221125=_0x4a6c5d;if(!this[_0x221125(0x25a)])return;if(!this[_0x221125(0x1dd)]())return void(this[_0x221125(0x1fe)]=!0x0);this[_0x221125(0x1fe)]=!0x1;const _0x15d921=[...this[_0x221125(0x251)],...this[_0x221125(0x229)]],_0x81a67b=this[_0x221125(0x1f2)](),_0x1a9d7e=this[_0x221125(0x23b)](_0x81a67b,_0x15d921),_0x3b5eb1=_0x81a67b[_0x221125(0x24a)];_0x3b5eb1&&this[_0x221125(0x257)](_0x3b5eb1),_0x81a67b[_0x221125(0x226)](),this[_0x221125(0x220)](_0x15d921,_0x1a9d7e);}[_0x4a6c5d(0x1ec)](){const _0x4e4e6d=_0x4a6c5d;this[_0x4e4e6d(0x218)]=this[_0x4e4e6d(0x217)](),this[_0x4e4e6d(0x236)]=this[_0x4e4e6d(0x1db)](),this[_0x4e4e6d(0x218)][_0x4e4e6d(0x24e)](),this[_0x4e4e6d(0x25a)][_0x4e4e6d(0x223)](this[_0x4e4e6d(0x218)][_0x4e4e6d(0x225)]),this[_0x4e4e6d(0x218)]['on'](_0x4e4e6d(0x1e5),()=>{const _0x7d247b=_0x4e4e6d;this[_0x7d247b(0x24c)]();}),_0xe54fb4({'emitter':this[_0x4e4e6d(0x236)],'contextElements':[this[_0x4e4e6d(0x236)][_0x4e4e6d(0x225)],this[_0x4e4e6d(0x218)][_0x4e4e6d(0x225)]],'callback':()=>this[_0x4e4e6d(0x1e7)](),'activator':()=>this[_0x4e4e6d(0x218)][_0x4e4e6d(0x245)]});}[_0x4a6c5d(0x217)](){const _0x9bc5e9=_0x4a6c5d,_0x308496=new _0x17f5f0(this[_0x9bc5e9(0x1e6)]);_0x308496[_0x9bc5e9(0x21e)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x41a31d=[this[_0x9bc5e9(0x22f)][_0x9bc5e9(0x230)][_0x9bc5e9(0x233)]];return this[_0x9bc5e9(0x22f)][_0x9bc5e9(0x230)][_0x9bc5e9(0x259)]&&_0x41a31d[_0x9bc5e9(0x22a)](this[_0x9bc5e9(0x22f)][_0x9bc5e9(0x230)][_0x9bc5e9(0x259)]),_0x308496[_0x9bc5e9(0x256)]({'attributes':{'class':_0x41a31d}}),_0x308496;}[_0x4a6c5d(0x1db)](){const _0x1bc198=_0x4a6c5d,_0x376bbe=new _0x44684c(this[_0x1bc198(0x1e6)]);return _0x376bbe[_0x1bc198(0x256)]({'attributes':{'class':this[_0x1bc198(0x22f)][_0x1bc198(0x230)][_0x1bc198(0x1e9)]}}),this[_0x1bc198(0x1f3)][_0x1bc198(0x239)](_0x376bbe),_0x376bbe;}[_0x4a6c5d(0x1cf)](){const _0x4732c0=_0x4a6c5d;if(this[_0x4732c0(0x236)]&&(this[_0x4732c0(0x236)][_0x4732c0(0x249)][_0x4732c0(0x247)](),this[_0x4732c0(0x229)][_0x4732c0(0x222)]>0x0)){this[_0x4732c0(0x229)][_0x4732c0(0x234)](_0x894735=>{const _0x5c85b7=_0x4732c0;_0x894735[_0x5c85b7(0x21c)]();});const _0x510750=new _0x4f409a(this[_0x4732c0(0x1e6)]);_0x510750[_0x4732c0(0x253)]({'tag':_0x4732c0(0x246),'attributes':{'class':this[_0x4732c0(0x22f)][_0x4732c0(0x230)][_0x4732c0(0x250)]},'children':this[_0x4732c0(0x229)]}),this[_0x4732c0(0x236)][_0x4732c0(0x249)][_0x4732c0(0x239)](_0x510750);}}[_0x4a6c5d(0x24c)](){const _0x543ae0=_0x4a6c5d;this[_0x543ae0(0x218)][_0x543ae0(0x245)]?this[_0x543ae0(0x1e7)]():this[_0x543ae0(0x1d6)]();}[_0x4a6c5d(0x200)](){const _0x416117=_0x4a6c5d,_0x4d869b=this[_0x416117(0x229)][_0x416117(0x222)]>0x0;this[_0x416117(0x218)]?.[_0x416117(0x225)]&&(this[_0x416117(0x218)][_0x416117(0x225)][_0x416117(0x1ed)][_0x416117(0x1e4)]=_0x4d869b?'':_0x416117(0x20a));}[_0x4a6c5d(0x216)](){const _0x5c3b51=_0x4a6c5d;this[_0x5c3b51(0x218)]?.[_0x5c3b51(0x245)]&&this[_0x5c3b51(0x236)]?.[_0x5c3b51(0x25c)]&&this[_0x5c3b51(0x218)][_0x5c3b51(0x225)]&&this[_0x5c3b51(0x236)][_0x5c3b51(0x25d)]({'target':this[_0x5c3b51(0x218)][_0x5c3b51(0x225)],'limiter':document[_0x5c3b51(0x243)](_0x5c3b51(0x211))});}[_0x4a6c5d(0x1f9)](_0x5420f1){const _0x3ff44a=_0x4a6c5d,_0x43e91a=this[_0x3ff44a(0x25a)]?.[_0x3ff44a(0x1d0)][_0x3ff44a(0x242)]()||_0x3ff44a(0x246),_0x1c519a=this[_0x3ff44a(0x25a)]?.[_0x3ff44a(0x1de)];if(_0x1c519a){const _0x2b87b6=_0x1c519a[0x0]||'',_0x55cfc7=_0x5420f1[_0x3ff44a(0x243)]('.'+_0x2b87b6),_0x1fe700=_0x5420f1[_0x3ff44a(0x243)](_0x43e91a);return _0x55cfc7||_0x1fe700||_0x5420f1;}return _0x5420f1[_0x3ff44a(0x243)](_0x43e91a)||_0x5420f1;}[_0x4a6c5d(0x212)](){const _0x95b954=_0x4a6c5d,_0x28cd65=this[_0x95b954(0x1d3)]?.[_0x95b954(0x225)]||this[_0x95b954(0x25a)];if(!_0x28cd65)return hn;const _0x4cb69a=window[_0x95b954(0x213)](_0x28cd65)[_0x95b954(0x232)];if(_0x95b954(0x1e3)===_0x4cb69a||_0x95b954(0x1fa)===_0x4cb69a||!_0x4cb69a){const _0x3a5bcb=_0x28cd65[_0x95b954(0x219)];if(_0x3a5bcb){const _0xdf7800=window[_0x95b954(0x213)](_0x3a5bcb);return _0x95b954(0x1e3)!==_0xdf7800[_0x95b954(0x232)]?_0xdf7800[_0x95b954(0x232)]:hn;}return hn;}return _0x4cb69a;}[_0x4a6c5d(0x258)](_0x482ff1,_0x5a8b00){const _0x56f1db=_0x4a6c5d;this[_0x56f1db(0x22f)][_0x56f1db(0x230)][_0x56f1db(0x25e)]&&_0x482ff1[_0x56f1db(0x1de)][_0x56f1db(0x239)](this[_0x56f1db(0x22f)][_0x56f1db(0x230)][_0x56f1db(0x25e)]),_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x232)]=_0x5a8b00,_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x1d5)]=_0x56f1db(0x248),_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x255)]=_0x56f1db(0x22c),_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x221)]=_0x56f1db(0x22c),_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x1e2)]='0',_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x21a)]=_0x56f1db(0x20a),_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x1ff)]='-1',_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x1f7)]=_0x56f1db(0x20e),_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x1e4)]=_0x56f1db(0x224),_0x482ff1[_0x56f1db(0x1ed)][_0x56f1db(0x1d1)]=_0x56f1db(0x1fd);}[_0x4a6c5d(0x257)](_0x37c218){const _0x4de8e7=_0x4a6c5d;_0x37c218[_0x4de8e7(0x234)](({element:_0x59e721,originalDisplay:_0x52dcd,originalVisibility:_0x25c09a})=>{const _0x22dad7=_0x4de8e7;_0x59e721[_0x22dad7(0x1ed)][_0x22dad7(0x1e4)]=_0x52dcd,_0x59e721[_0x22dad7(0x1ed)][_0x22dad7(0x1f7)]=_0x25c09a;});}[_0x4a6c5d(0x1d8)](_0x575ca9){const _0x161fa3=_0x4a6c5d,_0x3ece4c=[];let _0xda48d4=_0x575ca9;for(;_0xda48d4&&_0xda48d4!==document[_0x161fa3(0x20c)];){const _0x48cec6=window[_0x161fa3(0x213)](_0xda48d4);_0x161fa3(0x20a)!==_0x48cec6[_0x161fa3(0x1e4)]&&_0x161fa3(0x20b)!==_0x48cec6[_0x161fa3(0x1f7)]||(_0x3ece4c[_0x161fa3(0x22a)]({'element':_0xda48d4,'originalDisplay':_0xda48d4[_0x161fa3(0x1ed)][_0x161fa3(0x1e4)],'originalVisibility':_0xda48d4[_0x161fa3(0x1ed)][_0x161fa3(0x1f7)]}),_0xda48d4[_0x161fa3(0x1ed)][_0x161fa3(0x1e4)]=_0x161fa3(0x1d7),_0xda48d4[_0x161fa3(0x1ed)][_0x161fa3(0x1f7)]=_0x161fa3(0x241)),_0xda48d4=_0xda48d4[_0x161fa3(0x219)];}return _0x3ece4c;}[_0x4a6c5d(0x1f1)](){const _0x1e9d8e=_0x4a6c5d;let _0x3cf1d4,_0x5c3960;return this[_0x1e9d8e(0x1d3)]?.[_0x1e9d8e(0x225)]?(_0x3cf1d4=this[_0x1e9d8e(0x1d3)][_0x1e9d8e(0x225)][_0x1e9d8e(0x235)](!0x0),_0x5c3960=this[_0x1e9d8e(0x1f9)](_0x3cf1d4)):(_0x3cf1d4=document[_0x1e9d8e(0x208)](_0x1e9d8e(0x246)),_0x5c3960=_0x3cf1d4),{'calculationContainer':_0x3cf1d4,'targetContainer':_0x5c3960};}[_0x4a6c5d(0x1f2)](){const _0x441797=_0x4a6c5d,{calculationContainer:_0x3e7cca,targetContainer:_0x3e94da}=this[_0x441797(0x1f1)](),_0x5166bf=this[_0x441797(0x212)]();this[_0x441797(0x258)](_0x3e7cca,_0x5166bf);const _0x41bf77=this[_0x441797(0x1d3)]?.[_0x441797(0x225)]||this[_0x441797(0x25a)],_0x164826=_0x41bf77?.[_0x441797(0x219)];_0x164826?_0x164826[_0x441797(0x223)](_0x3e7cca):document[_0x441797(0x20c)][_0x441797(0x223)](_0x3e7cca),_0x3e7cca[_0x441797(0x237)]=_0x3e94da;const _0x102e4c=this[_0x441797(0x1d8)](_0x164826||null);return _0x3e7cca[_0x441797(0x21d)],_0x3e7cca[_0x441797(0x24a)]=_0x102e4c,_0x3e7cca;}[_0x4a6c5d(0x23b)](_0x2ef265,_0x1195ca){const _0x4ad824=_0x4a6c5d,_0x587ea2=_0x2ef265[_0x4ad824(0x237)]||_0x2ef265,_0x3fe35c=[],{rowCount:_0x418a7e}=this[_0x4ad824(0x21f)](_0x587ea2,_0x1195ca);if(_0x418a7e<=this[_0x4ad824(0x22f)][_0x4ad824(0x206)])return _0x3fe35c;const _0xd43c4=_0x1195ca[_0x4ad824(0x1fc)]();for(;_0xd43c4[_0x4ad824(0x222)]>0x0;){if(this[_0x4ad824(0x22b)](_0x2ef265,_0x587ea2,_0xd43c4)){const _0x1c988d=_0x1195ca[_0x4ad824(0x260)](_0x505b72=>!_0xd43c4[_0x4ad824(0x1dc)](_0x505b72));_0x3fe35c[_0x4ad824(0x22a)](..._0x1c988d);break;}if(!_0xd43c4[_0x4ad824(0x1fb)]())break;}return _0x3fe35c;}[_0x4a6c5d(0x21f)](_0x1595bb,_0x3521cb){const _0x4d6063=_0x4a6c5d;_0x1595bb[_0x4d6063(0x22e)]='',_0x3521cb[_0x4d6063(0x234)](_0x31300c=>{const _0x28aadb=_0x4d6063;if(_0x31300c[_0x28aadb(0x225)]){const _0x2b8ada=_0x31300c[_0x28aadb(0x225)][_0x28aadb(0x235)](!0x0);_0x1595bb[_0x28aadb(0x223)](_0x2b8ada);}}),_0x1595bb[_0x4d6063(0x21d)];const _0x400d9b=_0x1595bb[_0x4d6063(0x23f)],_0x374220=[];return Array[_0x4d6063(0x207)](_0x400d9b)[_0x4d6063(0x234)](_0x47b345=>{const _0x3ea25a=_0x4d6063,_0x3f57f1=_0x47b345[_0x3ea25a(0x1f4)]()[_0x3ea25a(0x255)];_0x374220[_0x3ea25a(0x1cd)](_0x1606ba=>Math[_0x3ea25a(0x227)](_0x1606ba-_0x3f57f1)<this[_0x3ea25a(0x22f)][_0x3ea25a(0x252)])||_0x374220[_0x3ea25a(0x22a)](_0x3f57f1);}),{'rowCount':_0x374220[_0x4d6063(0x222)]};}[_0x4a6c5d(0x1ef)](){const _0x21cc1c=_0x4a6c5d,_0x46cf7f=document[_0x21cc1c(0x208)](_0x21cc1c(0x214));return _0x46cf7f[_0x21cc1c(0x204)]=this[_0x21cc1c(0x22f)][_0x21cc1c(0x230)][_0x21cc1c(0x233)],this[_0x21cc1c(0x22f)][_0x21cc1c(0x230)][_0x21cc1c(0x259)]&&_0x46cf7f[_0x21cc1c(0x1de)][_0x21cc1c(0x239)](this[_0x21cc1c(0x22f)][_0x21cc1c(0x230)][_0x21cc1c(0x259)]),_0x46cf7f[_0x21cc1c(0x1e0)]=_0x21cc1c(0x228),_0x46cf7f;}[_0x4a6c5d(0x22b)](_0x240707,_0x25df9e,_0x3dd21d){const _0x2b7b0a=_0x4a6c5d;this[_0x2b7b0a(0x21f)](_0x25df9e,_0x3dd21d);const _0x7d8d27=this[_0x2b7b0a(0x1ef)]();_0x240707[_0x2b7b0a(0x223)](_0x7d8d27),_0x240707[_0x2b7b0a(0x21d)];const _0x22e65f=[..._0x25df9e[_0x2b7b0a(0x23f)],_0x7d8d27],_0xd48ad8=[];_0x22e65f[_0x2b7b0a(0x234)](_0x1a63c2=>{const _0x8382cc=_0x2b7b0a,_0x5f24fe=_0x1a63c2[_0x8382cc(0x1f4)]()[_0x8382cc(0x255)];_0xd48ad8[_0x8382cc(0x1cd)](_0x3009ce=>Math[_0x8382cc(0x227)](_0x3009ce-_0x5f24fe)<this[_0x8382cc(0x22f)][_0x8382cc(0x252)])||_0xd48ad8[_0x8382cc(0x22a)](_0x5f24fe);});const _0x561716=_0xd48ad8[_0x2b7b0a(0x222)];return _0x7d8d27[_0x2b7b0a(0x226)](),_0x561716<=this[_0x2b7b0a(0x22f)][_0x2b7b0a(0x206)];}[_0x4a6c5d(0x1e1)](_0x8466a1,_0x1ec8f2){const _0x4c8cac=_0x4a6c5d;this[_0x4c8cac(0x251)][_0x4c8cac(0x247)](),this[_0x4c8cac(0x229)][_0x4c8cac(0x247)](),_0x8466a1[_0x4c8cac(0x234)](_0x375578=>{const _0x3f8af6=_0x4c8cac;_0x1ec8f2[_0x3f8af6(0x1dc)](_0x375578)?this[_0x3f8af6(0x229)][_0x3f8af6(0x239)](_0x375578):this[_0x3f8af6(0x251)][_0x3f8af6(0x239)](_0x375578);});}[_0x4a6c5d(0x1f6)](_0x528616){const _0x18323a=_0x4a6c5d;if(_0x528616>0x0&&!this[_0x18323a(0x218)]&&this[_0x18323a(0x1ec)](),_0x528616>0x0&&this[_0x18323a(0x218)]){const _0x2476a3=''+this[_0x18323a(0x22f)][_0x18323a(0x205)]+(_0x528616<0x63?_0x528616:'99');this[_0x18323a(0x218)][_0x18323a(0x1d4)]=_0x2476a3;}this[_0x18323a(0x1cf)](),this[_0x18323a(0x200)](),this[_0x18323a(0x216)]();}[_0x4a6c5d(0x220)](_0x1175b8,_0x85e694){const _0x57d3d4=_0x4a6c5d;this[_0x57d3d4(0x1e1)](_0x1175b8,_0x85e694),this[_0x57d3d4(0x1f6)](_0x85e694[_0x57d3d4(0x222)]);}[_0x4a6c5d(0x23e)](){const _0x4c0dba=_0x4a6c5d;this[_0x4c0dba(0x25a)]&&_0x4c0dba(0x244)!=typeof IntersectionObserver&&(this[_0x4c0dba(0x1d9)]=new IntersectionObserver(_0x1d3961=>{const _0x30b9e4=_0x4c0dba;_0x1d3961[0x0][_0x30b9e4(0x209)]&&this[_0x30b9e4(0x1fe)]&&requestAnimationFrame(()=>{const _0x44ea96=_0x30b9e4;this[_0x44ea96(0x21b)]();});},{'threshold':0.01,'rootMargin':_0x4c0dba(0x23a)}),this[_0x4c0dba(0x1d9)][_0x4c0dba(0x25f)](this[_0x4c0dba(0x25a)]));}[_0x4a6c5d(0x1dd)](){const _0x45c0d5=_0x4a6c5d;if(!this[_0x45c0d5(0x25a)])return!0x1;if(!this[_0x45c0d5(0x25a)][_0x45c0d5(0x24d)])return!0x1;const _0x460e05=this[_0x45c0d5(0x25a)][_0x45c0d5(0x1f4)]();if(0x0===_0x460e05[_0x45c0d5(0x232)]||0x0===_0x460e05[_0x45c0d5(0x24b)])return!0x1;const _0x4890e5=window[_0x45c0d5(0x1eb)]||document[_0x45c0d5(0x238)][_0x45c0d5(0x201)],_0x4a8db3=window[_0x45c0d5(0x20d)]||document[_0x45c0d5(0x238)][_0x45c0d5(0x22d)],_0x51a499=0xc8;return _0x460e05[_0x45c0d5(0x1df)]>=-0xc8&&_0x460e05[_0x45c0d5(0x255)]<=_0x4890e5+_0x51a499&&_0x460e05[_0x45c0d5(0x23d)]>=-0xc8&&_0x460e05[_0x45c0d5(0x221)]<=_0x4a8db3+_0x51a499;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4a44(_0x5cb58a,_0x962f89){const _0x2ebab8=_0x2eba();return _0x4a44=function(_0x4a446d,_0x5df947){_0x4a446d=_0x4a446d-0x100;let _0x580f42=_0x2ebab8[_0x4a446d];return _0x580f42;},_0x4a44(_0x5cb58a,_0x962f89);}const _0x4432fa=_0x4a44;(function(_0x4e959e,_0xab11c0){const _0x511726=_0x4a44,_0x467a9c=_0x4e959e();while(!![]){try{const _0x3a84f9=-parseInt(_0x511726(0x12d))/0x1*(parseInt(_0x511726(0x130))/0x2)+-parseInt(_0x511726(0x12f))/0x3*(-parseInt(_0x511726(0x142))/0x4)+parseInt(_0x511726(0x119))/0x5+-parseInt(_0x511726(0x114))/0x6+parseInt(_0x511726(0x109))/0x7*(parseInt(_0x511726(0x101))/0x8)+parseInt(_0x511726(0x137))/0x9*(-parseInt(_0x511726(0x120))/0xa)+-parseInt(_0x511726(0x138))/0xb;if(_0x3a84f9===_0xab11c0)break;else _0x467a9c['push'](_0x467a9c['shift']());}catch(_0x2c7845){_0x467a9c['push'](_0x467a9c['shift']());}}}(_0x2eba,0xb4f3e));import{ButtonView as _0x465bb6,IconView as _0x5463fa}from'ckeditor5/src/ui.js';import{IconClose as _0x14b4e3,IconDocument as _0x53b789,IconFileUpload as _0x2d15a1,IconLink as _0x3cb86c,IconSelection as _0x3d2223}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x2d5f41}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x4c952e}from'../../../aicore/ui/aispinner.js';function _0x2eba(){const _0x90c0ba=['classList','uiId','5793300mrbgzj','_createLabelElement','_createLoaderIcon','label','slice','ck-ai-chat-context-chip','_createIconView','1498920UtrCax','ck-ai-chat-context-controls__chip-tooltip','remove','lastIndexOf','setTemplate','element','disableAnimationOnEnter','_handleAnimationEndOnce','ck-ai-chat-context-chip__type-icon','ck-ai-chat-context-chip_document','span','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','small','1RiRcUK','ck-ai-chat-context-chip__label','3HBDUET','1994588ZviMyT','extendTemplate','document','readonly','webkitAnimationEnd','content','add','27MrIRBt','5767476ZQvOWv','div','fire','removeEventListener','_setupTemplate','selection','set','isVisible','animationend','_createTemplateChildren','3264824bZNZwV','execute','7216VPboLr','itemType','_isAnimationOnEnterEnabled','addEventListener','locale','ck-hidden','ck-ai-chat-context-chip_wide','_createRemoveButton','8197kGyscX','type','isLoading','removeContextItemChip','ck-ai-chat-context-chip_new-chip','length','_initializeProperties','_setupRemoveButtonEvent','bind','_createTemplateAttributes','tooltip','1911840KVUGgu','bindTemplate','render'];_0x2eba=function(){return _0x90c0ba;};return _0x2eba();}const mn={'file':_0x2d15a1,'document':_0x53b789,'web-resource':_0x3cb86c,'text':_0x2d15a1,'selection':_0x3d2223},dn=_0x4432fa(0x11e),un=_0x4432fa(0x107),_n=_0x4432fa(0x129),kn=_0x4432fa(0x12e),xn=_0x4432fa(0x128),bn=_0x4432fa(0x121),wn='n';export class AIChatContextItemButtonView extends _0x465bb6{constructor(_0x2ee51d,_0x2dc19b,_0x1bc2bd,_0x31c47f,_0x5397a1=!0x1){const _0x13db00=_0x4432fa;super(_0x2ee51d),this[_0x13db00(0x103)]=_0x31c47f,this[_0x13db00(0x10f)](_0x2dc19b,_0x1bc2bd,_0x5397a1),this[_0x13db00(0x13c)]();}[_0x4432fa(0x116)](){const _0x339882=_0x4432fa;super[_0x339882(0x116)](),this[_0x339882(0x103)]&&this[_0x339882(0x125)]&&(this[_0x339882(0x125)][_0x339882(0x117)][_0x339882(0x136)](_0x339882(0x10d)),this[_0x339882(0x127)](this[_0x339882(0x125)],()=>{const _0x24014a=_0x339882;this[_0x24014a(0x125)]&&this[_0x24014a(0x125)][_0x24014a(0x117)][_0x24014a(0x122)](_0x24014a(0x10d));}));}[_0x4432fa(0x126)](){const _0x1e30e1=_0x4432fa;this[_0x1e30e1(0x103)]=!0x1,this[_0x1e30e1(0x125)]&&this[_0x1e30e1(0x125)][_0x1e30e1(0x117)][_0x1e30e1(0x122)](_0x1e30e1(0x10d));}[_0x4432fa(0x10f)](_0x35d144,_0x1b9685,_0x3a8e08){const _0x4d5d71=_0x4432fa;this[_0x4d5d71(0x13e)](_0x4d5d71(0x11c),_0x35d144[_0x4d5d71(0x11c)]),this[_0x4d5d71(0x13e)](_0x4d5d71(0x113),!0x0),this[_0x4d5d71(0x13e)](_0x4d5d71(0x102),_0x35d144[_0x4d5d71(0x10a)]),this[_0x4d5d71(0x13e)]('id',_0x35d144[_0x4d5d71(0x118)]),this[_0x4d5d71(0x13e)](_0x4d5d71(0x133),_0x1b9685),this[_0x4d5d71(0x13e)](_0x4d5d71(0x10b),_0x3a8e08);}[_0x4432fa(0x13c)](){const _0x475591=_0x4432fa,_0x320b41=this[_0x475591(0x11f)](),_0x4a5a57=this[_0x475591(0x108)](),_0x525f34=this[_0x475591(0x115)];this[_0x475591(0x124)]({'tag':_0x475591(0x139),'attributes':this[_0x475591(0x112)](_0x525f34),'children':this[_0x475591(0x141)](_0x320b41,_0x4a5a57,_0x525f34)});}[_0x4432fa(0x112)](_0xce9993){const _0x694f38=_0x4432fa;return{'class':[dn,_0xce9993['if'](_0x694f38(0x102),_n,_0x5b01aa=>_0x694f38(0x132)==_0x5b01aa),_0xce9993['if'](_0x694f38(0x102),un,_0x78a22d=>_0x694f38(0x13d)==_0x78a22d)],'data-cke-tooltip-text':_0xce9993['to'](_0x694f38(0x11c),Tn),'data-cke-tooltip-position':wn,'data-cke-tooltip-class':bn};}[_0x4432fa(0x141)](_0x329b6c,_0x5dfb1a,_0x2921bf){const _0x162dc1=_0x4432fa,_0x19095b=this[_0x162dc1(0x11a)](_0x2921bf),_0x56f9f5=this[_0x162dc1(0x11b)]();return this[_0x162dc1(0x133)]?[_0x329b6c,_0x19095b]:[_0x329b6c,_0x56f9f5,_0x19095b,_0x5dfb1a];}[_0x4432fa(0x11a)](_0x55713e){const _0x21e47a=_0x4432fa;return{'tag':_0x21e47a(0x12a),'attributes':{'class':kn},'children':[{'text':_0x55713e['to'](_0x21e47a(0x11c))}]};}[_0x4432fa(0x108)](){const _0x23270e=_0x4432fa,_0x9d092e=new _0x465bb6(this[_0x23270e(0x105)]);return _0x9d092e[_0x23270e(0x13e)]({'label':_0x2d5f41(this[_0x23270e(0x105)],_0x23270e(0x12b)),'icon':_0x14b4e3}),this[_0x23270e(0x110)](_0x9d092e),_0x9d092e;}[_0x4432fa(0x110)](_0x3bfb5f){const _0xf92197=_0x4432fa;_0x3bfb5f['on'](_0xf92197(0x100),()=>{const _0x554dca=_0xf92197;this[_0x554dca(0x13a)](_0x554dca(0x10c),this['id']);});}[_0x4432fa(0x11f)](){const _0x1263a3=_0x4432fa,_0x418f2f=this[_0x1263a3(0x115)],_0x26c4cd=new _0x5463fa();return _0x26c4cd[_0x1263a3(0x135)]=mn[this[_0x1263a3(0x102)]],_0x26c4cd[_0x1263a3(0x131)]({'attributes':{'class':[xn,_0x418f2f['if'](_0x1263a3(0x10b),_0x1263a3(0x106),_0x5338ff=>_0x5338ff)]}}),_0x26c4cd;}[_0x4432fa(0x127)](_0x1bb10e,_0x49a242){const _0x59a77b=_0x4432fa;if(!_0x1bb10e)return;const _0x10e9cc=()=>{const _0x2457cc=_0x4a44;_0x49a242(),_0x1bb10e[_0x2457cc(0x13b)](_0x2457cc(0x140),_0x10e9cc),_0x1bb10e[_0x2457cc(0x13b)](_0x2457cc(0x134),_0x10e9cc);};_0x1bb10e[_0x59a77b(0x104)](_0x59a77b(0x140),_0x10e9cc),_0x1bb10e[_0x59a77b(0x104)](_0x59a77b(0x134),_0x10e9cc);}[_0x4432fa(0x11b)](){const _0x210321=_0x4432fa,_0x47f193=new _0x4c952e(_0x210321(0x12c));return _0x47f193[_0x210321(0x111)](_0x210321(0x13f))['to'](this,_0x210321(0x10b),_0x328e49=>_0x328e49),_0x47f193;}}function Tn(_0x399dfd){const _0x5b3624=_0x4432fa;if(!_0x399dfd)return _0x399dfd;if(_0x399dfd[_0x5b3624(0x10e)]<=0x78)return _0x399dfd;const _0x3f7309=_0x399dfd[_0x5b3624(0x11d)](0x0,0x78),_0x42f68a=_0x3f7309[_0x5b3624(0x123)]('\x20');return(_0x42f68a>0x0?_0x3f7309[_0x5b3624(0x11d)](0x0,_0x42f68a):_0x3f7309)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5e91(_0x327dc5,_0x5af3f5){const _0x45b089=_0x45b0();return _0x5e91=function(_0x5e91ee,_0x516782){_0x5e91ee=_0x5e91ee-0x86;let _0xfedda2=_0x45b089[_0x5e91ee];return _0xfedda2;},_0x5e91(_0x327dc5,_0x5af3f5);}const _0x15d27b=_0x5e91;(function(_0x4d454e,_0x16d53c){const _0x5aae53=_0x5e91,_0x43a987=_0x4d454e();while(!![]){try{const _0x14c007=parseInt(_0x5aae53(0xb0))/0x1+parseInt(_0x5aae53(0xc3))/0x2+-parseInt(_0x5aae53(0x93))/0x3+parseInt(_0x5aae53(0xb1))/0x4*(parseInt(_0x5aae53(0xa4))/0x5)+parseInt(_0x5aae53(0x97))/0x6+-parseInt(_0x5aae53(0xc4))/0x7+-parseInt(_0x5aae53(0xad))/0x8*(parseInt(_0x5aae53(0x9a))/0x9);if(_0x14c007===_0x16d53c)break;else _0x43a987['push'](_0x43a987['shift']());}catch(_0xe31cc5){_0x43a987['push'](_0x43a987['shift']());}}}(_0x45b0,0xe6bd6));function _0x45b0(){const _0x4f43d6=['errorText','7254984FsZKje','_focusables','AI_CHAT_CONTEXT_URL_ADD_URL','2110743bNJNme','clearError','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','clear','trim','_isValidUrl','input','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','_createBackButton','_setupTemplate','4090505NwNnkN','backButton','fieldView','_updateConfirmButtonState','submit','element','_setupKeystrokes','ck-labeled-field-view_empty','length','64hltNrv','forEach','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','664801rtheVx','8oscErH','shift+tab','cancel','_handleSubmit','setTemplate','_createConfirmButton','div','form','focus','esc','isEnabled','keystrokes','children','set','stop','AI_CHAT_CONTEXT_URL_INVALID_ERROR','_createUrlInputField','locale','3314572glCjZQ','9298457RfHCbc','ck-button-icon','AI_CHAT_CONTEXT_URL_LABEL','tab','_setupEventHandlers','destroy','ck-ai-chat-context-controls__url-input-section','value','urlInputField','refreshBalloon','add','setError','getValue','ck-button-icon\x20ck-button-back','execute','AI_CHAT_CONTEXT_URL_PLACEHOLDER','ck-ai-chat-context-controls__url-form','submitUrl','createCollection','fire','focusTracker','render','focusCycler','3053328XYkhTQ','listenTo','confirmButton'];_0x45b0=function(){return _0x4f43d6;};return _0x45b0();}import{FocusTracker as _0x47a7d0,KeystrokeHandler as _0x14ec32}from'ckeditor5/src/utils.js';import{ButtonView as _0x182a52,FocusCycler as _0x5903b1,LabeledFieldView as _0x51359e,View as _0x8bc9b8,FormHeaderView as _0x5f8c8f,createLabeledInputText as _0x348786,submitHandler as _0x3438f7}from'ckeditor5/src/ui.js';import{IconCheck as _0xb9890f,IconPreviousArrow as _0x567d6d}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xf8dee6}from'../../../aicore/utils/common-translations.js';const eh=_0x15d27b(0x8c),hh=_0x15d27b(0xca);export class AIChatContextPanelUrlInputView extends _0x8bc9b8{[_0x15d27b(0x90)];[_0x15d27b(0xbc)];[_0x15d27b(0x98)];[_0x15d27b(0x92)];[_0x15d27b(0xcc)];[_0x15d27b(0xa5)];[_0x15d27b(0x95)];constructor(_0x1aad5d){const _0x3a2dc2=_0x15d27b;super(_0x1aad5d),this[_0x3a2dc2(0x90)]=new _0x47a7d0(),this[_0x3a2dc2(0xbc)]=new _0x14ec32(),this[_0x3a2dc2(0xa5)]=this[_0x3a2dc2(0xa2)](),this[_0x3a2dc2(0xcc)]=this[_0x3a2dc2(0xc1)](),this[_0x3a2dc2(0x95)]=this[_0x3a2dc2(0xb6)](),this[_0x3a2dc2(0x98)]=this[_0x3a2dc2(0x8e)]([this[_0x3a2dc2(0xa5)],this[_0x3a2dc2(0xcc)],this[_0x3a2dc2(0x95)]]),this[_0x3a2dc2(0x92)]=new _0x5903b1({'focusables':this[_0x3a2dc2(0x98)],'focusTracker':this[_0x3a2dc2(0x90)],'keystrokeHandler':this[_0x3a2dc2(0xbc)],'actions':{'focusPrevious':_0x3a2dc2(0xb2),'focusNext':_0x3a2dc2(0xc7)}}),this[_0x3a2dc2(0xa3)](),this[_0x3a2dc2(0xc8)](),this[_0x3a2dc2(0xaa)]();}[_0x15d27b(0x91)](){const _0x464a21=_0x15d27b;super[_0x464a21(0x91)](),this[_0x464a21(0x98)][_0x464a21(0xae)](_0x4c915c=>{const _0x572376=_0x464a21;this[_0x572376(0x90)][_0x572376(0x86)](_0x4c915c[_0x572376(0xa9)]),this[_0x572376(0xbc)][_0x572376(0x94)](_0x4c915c[_0x572376(0xa9)]);}),_0x3438f7({'view':this}),this[_0x464a21(0xb9)]();}[_0x15d27b(0xc9)](){const _0x42912f=_0x15d27b;super[_0x42912f(0xc9)](),this[_0x42912f(0x90)][_0x42912f(0xc9)](),this[_0x42912f(0xbc)][_0x42912f(0xc9)]();}[_0x15d27b(0xb9)](){const _0x218620=_0x15d27b;this[_0x218620(0xcc)][_0x218620(0xb9)]();}[_0x15d27b(0x88)](){const _0x16dc53=_0x15d27b;return this[_0x16dc53(0xcc)][_0x16dc53(0xa6)][_0x16dc53(0xa9)]?.[_0x16dc53(0xcb)]?.[_0x16dc53(0x9e)]()||'';}[_0x15d27b(0x9d)](){const _0x20dbf8=_0x15d27b;this[_0x20dbf8(0xcc)][_0x20dbf8(0xa6)][_0x20dbf8(0xa9)][_0x20dbf8(0xcb)]='',this[_0x20dbf8(0xcc)][_0x20dbf8(0x96)]=null,this[_0x20dbf8(0x95)][_0x20dbf8(0xbb)]=!0x1;}[_0x15d27b(0x87)](_0x2c5172){const _0x50e8e7=_0x15d27b;this[_0x50e8e7(0xcc)][_0x50e8e7(0x96)]=_0x2c5172,this[_0x50e8e7(0xa7)](),this[_0x50e8e7(0x8f)](_0x50e8e7(0xcd));}[_0x15d27b(0x9b)](){const _0x65988=_0x15d27b;this[_0x65988(0xcc)][_0x65988(0x96)]=null,this[_0x65988(0xa7)]();}[_0x15d27b(0xa2)](){const _0x2bbcaa=_0x15d27b,_0x8fbd50=new _0x182a52(this[_0x2bbcaa(0xc2)]);return _0x8fbd50[_0x2bbcaa(0xbe)]({'icon':_0x567d6d,'tooltip':_0xf8dee6(this[_0x2bbcaa(0xc2)],_0x2bbcaa(0x9c)),'tooltipPosition':'n','class':_0x2bbcaa(0x89)}),_0x8fbd50;}[_0x15d27b(0xc1)](){const _0x1bd276=_0x15d27b,_0x1cf619=new _0x51359e(this[_0x1bd276(0xc2)],_0x348786);return _0x1cf619[_0x1bd276(0xbe)]({'label':_0xf8dee6(this[_0x1bd276(0xc2)],_0x1bd276(0xc6)),'class':_0x1bd276(0xab)}),_0x1cf619[_0x1bd276(0xa6)][_0x1bd276(0xbe)]({'placeholder':_0xf8dee6(this[_0x1bd276(0xc2)],_0x1bd276(0x8b))}),_0x1cf619;}[_0x15d27b(0xb6)](){const _0x1bbccf=_0x15d27b,_0x1d9507=new _0x182a52(this[_0x1bbccf(0xc2)]);return _0x1d9507[_0x1bbccf(0xbe)]({'icon':_0xb9890f,'tooltip':_0xf8dee6(this[_0x1bbccf(0xc2)],_0x1bbccf(0x99)),'tooltipPosition':'n','class':_0x1bbccf(0xc5),'type':_0x1bbccf(0xa8),'isEnabled':!0x1}),_0x1d9507;}[_0x15d27b(0xa3)](){const _0x5b85c3=_0x15d27b,_0x5da260=new _0x5f8c8f(this[_0x5b85c3(0xc2)],{'label':_0xf8dee6(this[_0x5b85c3(0xc2)],_0x5b85c3(0x99)),'class':_0x5b85c3(0xa1)});_0x5da260[_0x5b85c3(0xbd)][_0x5b85c3(0x86)](this[_0x5b85c3(0xa5)],0x0),this[_0x5b85c3(0xb5)]({'tag':_0x5b85c3(0xb8),'attributes':{'class':eh,'tabindex':'-1'},'children':[_0x5da260,{'tag':_0x5b85c3(0xb7),'attributes':{'class':hh},'children':[this[_0x5b85c3(0xcc)],this[_0x5b85c3(0x95)]]}]});}[_0x15d27b(0xc8)](){const _0x399e4c=_0x15d27b;this[_0x399e4c(0xa5)]['on'](_0x399e4c(0x8a),()=>{const _0x45a4a1=_0x399e4c;this[_0x45a4a1(0x9d)](),this[_0x45a4a1(0x8f)](_0x45a4a1(0xb3));}),this[_0x399e4c(0xcc)][_0x399e4c(0xa6)]['on'](_0x399e4c(0xa0),()=>{const _0x250e1d=_0x399e4c;this[_0x250e1d(0x9b)](),this[_0x250e1d(0xa7)](),this[_0x250e1d(0x8f)](_0x250e1d(0xcd));}),this['on'](_0x399e4c(0xa8),_0xa39693=>{const _0x135e67=_0x399e4c;_0xa39693[_0x135e67(0xbf)](),this[_0x135e67(0xb4)]();});}[_0x15d27b(0xaa)](){const _0x2b1c1a=_0x15d27b;this[_0x2b1c1a(0xbc)][_0x2b1c1a(0xbe)](_0x2b1c1a(0xba),(_0x515507,_0x30131b)=>{const _0x413e02=_0x2b1c1a;this[_0x413e02(0x9d)](),this[_0x413e02(0x8f)](_0x413e02(0xb3)),_0x30131b();});}[_0x15d27b(0xb4)](){const _0xf01cde=_0x15d27b,_0x1b3da8=this[_0xf01cde(0x88)]()[_0xf01cde(0x9e)]();_0x1b3da8?this[_0xf01cde(0x9f)](_0x1b3da8)?(this[_0xf01cde(0x9b)](),this[_0xf01cde(0x8f)](_0xf01cde(0x8d),_0x1b3da8)):this[_0xf01cde(0x87)](_0xf8dee6(this[_0xf01cde(0xc2)],_0xf01cde(0xc0))):this[_0xf01cde(0x87)](_0xf8dee6(this[_0xf01cde(0xc2)],_0xf01cde(0xaf)));}[_0x15d27b(0xa7)](){const _0x380b45=_0x15d27b,_0x58064c=this[_0x380b45(0x88)]()[_0x380b45(0x9e)](),_0x245869=!!this[_0x380b45(0xcc)][_0x380b45(0x96)];this[_0x380b45(0x95)][_0x380b45(0xbb)]=_0x58064c[_0x380b45(0xac)]>0x0&&!_0x245869;}[_0x15d27b(0x9f)](_0x477a74){try{return!!new URL(_0x477a74);}catch{return!0x1;}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x443f7a=_0x44d2;function _0x44d2(_0x33075f,_0x558e38){const _0x2d1236=_0x2d12();return _0x44d2=function(_0x44d2ba,_0x40b23b){_0x44d2ba=_0x44d2ba-0x1cb;let _0x5d800c=_0x2d1236[_0x44d2ba];return _0x5d800c;},_0x44d2(_0x33075f,_0x558e38);}(function(_0x5e4908,_0x79059e){const _0x1f9137=_0x44d2,_0x3951b8=_0x5e4908();while(!![]){try{const _0x5b2178=parseInt(_0x1f9137(0x204))/0x1*(-parseInt(_0x1f9137(0x206))/0x2)+parseInt(_0x1f9137(0x216))/0x3+parseInt(_0x1f9137(0x22e))/0x4*(-parseInt(_0x1f9137(0x257))/0x5)+parseInt(_0x1f9137(0x237))/0x6+parseInt(_0x1f9137(0x246))/0x7*(-parseInt(_0x1f9137(0x1ed))/0x8)+-parseInt(_0x1f9137(0x21f))/0x9*(-parseInt(_0x1f9137(0x219))/0xa)+parseInt(_0x1f9137(0x20e))/0xb;if(_0x5b2178===_0x79059e)break;else _0x3951b8['push'](_0x3951b8['shift']());}catch(_0x464487){_0x3951b8['push'](_0x3951b8['shift']());}}}(_0x2d12,0x49120));import{BalloonPanelView as _0x551729,ButtonView as _0x39c52e,clickOutsideHandler as _0x5ef739,FileDialogButtonView as _0x3228c0,IconView as _0x41a391,View as _0x3e2b4a}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x1caa61,IconDocument as _0x1a80e0,IconDocumentOutline as _0x519699,IconDropdownArrow as _0x12a1f5,IconLink as _0x34dbd4,IconPaperClip as _0x8b38f1}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x1ec021}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x241762}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0x4101cd}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x1f398a}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3d6395}from'./resources/aichatresourcesballoonview.js';function _0x2d12(){const _0xdb4cd9=['_setupAddContextBalloonClickOutsideHandler','isAnyResourceBalloonVisible','add','hide','_createBalloonButton','2960888Jmnytq','submitUrl','addContextItem','ck-ai-chat-context-chips-wrapper-balloon','document','div','__arrow','addUrlToContext','current','children','southArrowNorthWest','ck-ai-chat-context-controls__add-context-balloon-panel','urls','isVisible','southArrowNorthEast','clearConversationContextItems','reorganizeChips','locale','clearCurrentContextItems','northArrowSouthWest','updateResourceState','icon','_bindEventHandlers','5YsmKik','find','208252MGDFJx','arrowView','render','cancel','_overflowManager','_showSourceResourcesBalloon','northArrowSouthEast','_resourcesBalloonView','5081285aKCIAn','ck-ai-chat-controls-button','AI_CHAT_CONTEXT_ADD_CONTEXT','_createBaseBalloonPanel','_setupAllBalloonClickOutsideHandlers','_addContextToCollection','_currentContextsChips','addFileToContext','1318566ziasBJ','ck-ai-chat','addDocumentToContext','10ibUQMv','_toggleAddContextBalloon','ck-ai-chat-context-controls__balloon-button','_handleAddContextButtonClick','hideAddContextBalloonPanel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','4816431BfGoEt','populateSourceResourceBalloon','addContextButtonView','southArrowNorth','bodyCollection','tooltip','isReadOnly','closeSourceResourceBalloon','_addContextBalloonPanelView','fire','ck-ai-chat-controls_context_show-more-button','removeContextItemChip','defaultPositions','_urlInputView','ck-ai-chat-context-controls__add-context-button','2363356sCidOc','showAddContextBalloonPanel','_createResourcesBalloonView','pin','setConversationContext','setContainerElement','_getLimiterElement','_createAddContextButtonView','_createArrowView','2065560VikAQa','bind','_addUrlContent','body','show','_setAddContextButtonEnabled','addResourceToContext','AI_CHAT_CONTEXT_URL_LABEL','northArrowSouth','_createUrlBalloonPanelView','ck-ai-chat-context-controls__url-balloon-panel','_createContextButton','menuitem','isEnabled','_handleUrlSubmit','7XaeefW','loadSourceResources','setTemplate','_conversationContextsChips','content','_urlBalloonPanelView','overflowChips','ck-ai-chat-context-controls','buttonView','setContextItemLoading','remove','label','AI_CHAT_CONTEXT_FILE_LABEL','source','isHidden','execute','sources','5GkZvoJ','setAddContextOptions','_addContextBalloonConfig','closest','isOn','_setBalloonPanelContent','_setupUrlBalloonClickOutsideHandler','ck-ai-chat-context-controls__balloon-button-source','ck-reset_all-excluded','_createAddContextBalloonPanelView','enabled','_removeContextFromCollection','ck-ai-chat-context-controls__pending-contexts','extendTemplate','hideUrlBalloonPanel','done','element','destroy','ck-ai-chat-context-controls__show-more-balloon-panel','conversation','createCollection','focus','showUrlBalloonPanel','removeContextItem','type','showSourceResourcesBalloon','balloonView','_setupTemplate','isLoading','files','refreshBalloon','set','clear'];_0x2d12=function(){return _0xdb4cd9;};return _0x2d12();}export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x443f7a(0x218),_0x443f7a(0x215),_0x443f7a(0x1f4),_0x443f7a(0x23d),_0x443f7a(0x1de),_0x443f7a(0x247)];const wo=_0x443f7a(0x24d),po=_0x443f7a(0x1d3),Bo=_0x443f7a(0x1f8),bo=_0x443f7a(0x22d),To=_0x443f7a(0x241),Ao=_0x443f7a(0x21b),ko=_0x443f7a(0x1ce),Eo=_0x443f7a(0x20f),vo=_0x443f7a(0x1f0),go=_0x443f7a(0x229),Vo=_0x443f7a(0x1d9),fo=_0x443f7a(0x217),Io=[_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x200)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x23f)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x20c)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x1f7)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x222)],_0x551729[_0x443f7a(0x22b)][_0x443f7a(0x1fb)]];export class AIChatContextPanelView extends _0x3e2b4a{[_0x443f7a(0x221)];[_0x443f7a(0x214)]=this[_0x443f7a(0x1db)]();[_0x443f7a(0x249)]=this[_0x443f7a(0x1db)]();[_0x443f7a(0x20a)];[_0x443f7a(0x227)];[_0x443f7a(0x24b)];[_0x443f7a(0x22c)];[_0x443f7a(0x20d)];[_0x443f7a(0x259)];[_0x443f7a(0x223)];constructor(_0x2005f8,_0x19ee30){const _0xd2972b=_0x443f7a;super(_0x2005f8),this[_0xd2972b(0x223)]=_0x19ee30,this[_0xd2972b(0x214)]=this[_0xd2972b(0x1db)](),this[_0xd2972b(0x249)]=this[_0xd2972b(0x1db)](),this[_0xd2972b(0x221)]=this[_0xd2972b(0x235)](_0x2005f8),this[_0xd2972b(0x227)]=this[_0xd2972b(0x1d0)](_0x2005f8),this[_0xd2972b(0x24b)]=this[_0xd2972b(0x240)](_0x2005f8),this[_0xd2972b(0x20d)]=this[_0xd2972b(0x230)](_0x2005f8,_0x19ee30);const _0x4b745a={'cssClasses':{'showMoreButton':go,'showMoreBalloon':Vo,'overflowContainer':vo,'controlsButton':Eo}};this[_0xd2972b(0x20a)]=new _0x4101cd(_0x2005f8,this[_0xd2972b(0x214)],_0x4b745a,this[_0xd2972b(0x223)],this),this[_0xd2972b(0x259)]={'buttonView':this[_0xd2972b(0x221)],'balloonView':this[_0xd2972b(0x227)],'hideMethod':this[_0xd2972b(0x21d)][_0xd2972b(0x238)](this),'showMethod':this[_0xd2972b(0x22f)][_0xd2972b(0x238)](this)},this[_0xd2972b(0x1e2)](),this[_0xd2972b(0x203)]();}[_0x443f7a(0x208)](){const _0x2d0f1c=_0x443f7a;super[_0x2d0f1c(0x208)](),this[_0x2d0f1c(0x212)](),this[_0x2d0f1c(0x20a)][_0x2d0f1c(0x233)](this[_0x2d0f1c(0x1d7)]),this[_0x2d0f1c(0x20a)][_0x2d0f1c(0x1fd)]();}[_0x443f7a(0x1d8)](){const _0x423c02=_0x443f7a;super[_0x423c02(0x1d8)](),this[_0x423c02(0x20a)][_0x423c02(0x1d8)](),this[_0x423c02(0x20d)][_0x423c02(0x1d8)]();}[_0x443f7a(0x1ef)](_0x4635e2,_0x24121b){const _0x234d79=_0x443f7a,_0x13494e=this[_0x234d79(0x242)](_0x4635e2,_0x234d79(0x1f5),!0x0,_0x24121b);this[_0x234d79(0x213)](_0x13494e,this[_0x234d79(0x214)]),this[_0x234d79(0x20a)][_0x234d79(0x1fd)]();}[_0x443f7a(0x1de)](_0x365ac8){const _0x2ff639=_0x443f7a;this[_0x2ff639(0x1d2)](_0x365ac8,this[_0x2ff639(0x214)]),this[_0x2ff639(0x1d2)](_0x365ac8,this[_0x2ff639(0x20a)][_0x2ff639(0x24c)]),this[_0x2ff639(0x20a)][_0x2ff639(0x1fd)]();}[_0x443f7a(0x24f)](_0x26f7aa,_0x324c08){const _0x26803a=_0x443f7a;let _0x5ac392=this[_0x26803a(0x214)][_0x26803a(0x205)](_0x22d7cf=>_0x22d7cf['id']===_0x26f7aa);_0x5ac392||(_0x5ac392=this[_0x26803a(0x20a)][_0x26803a(0x24c)][_0x26803a(0x205)](_0x4ca773=>_0x4ca773['id']===_0x26f7aa)),_0x5ac392&&(_0x5ac392[_0x26803a(0x1e3)]=_0x324c08);}[_0x443f7a(0x232)](_0x342817){const _0x169417=_0x443f7a;this[_0x169417(0x249)][_0x169417(0x1e7)]();for(const _0x38802c of _0x342817){const _0x3243dd=this[_0x169417(0x242)](_0x38802c,_0x169417(0x1da),!0x1,!0x1);this[_0x169417(0x213)](_0x3243dd,this[_0x169417(0x249)]);}}[_0x443f7a(0x1ff)](){const _0xb8580f=_0x443f7a;this[_0xb8580f(0x214)][_0xb8580f(0x1e7)](),this[_0xb8580f(0x20a)][_0xb8580f(0x1e7)]();}[_0x443f7a(0x1fc)](){const _0x2d91db=_0x443f7a;this[_0x2d91db(0x249)][_0x2d91db(0x1e7)]();}[_0x443f7a(0x201)](_0x1aa368,_0x1dd363,_0x132eb4){const _0x4d0c62=_0x443f7a;this[_0x4d0c62(0x20d)][_0x4d0c62(0x201)](_0x1aa368,_0x1dd363,_0x132eb4);}[_0x443f7a(0x21d)](){const _0xdc6f2d=_0x443f7a;this[_0xdc6f2d(0x21a)](!0x1);}[_0x443f7a(0x22f)](){const _0x1ba07a=_0x443f7a;this[_0x1ba07a(0x21a)](!0x0);}[_0x443f7a(0x1d5)](){const _0x1452c0=_0x443f7a;this[_0x1452c0(0x24b)][_0x1452c0(0x1eb)](),this[_0x1452c0(0x221)][_0x1452c0(0x1cb)]=!0x1,this[_0x1452c0(0x22c)]&&this[_0x1452c0(0x22c)][_0x1452c0(0x1e7)]();}[_0x443f7a(0x1dd)](){const _0x35396c=_0x443f7a;this[_0x35396c(0x24b)][_0x35396c(0x23b)](),this[_0x35396c(0x221)][_0x35396c(0x1cb)]=!0x0;}[_0x443f7a(0x20b)](_0xefafc2){const _0x204223=_0x443f7a;this[_0x204223(0x20d)][_0x204223(0x1e0)](_0xefafc2),this[_0x204223(0x221)][_0x204223(0x1cb)]=!0x0;}[_0x443f7a(0x220)](_0x4fa908,_0x1a3cad,_0x438ee7,_0x131572){const _0x2606d4=_0x443f7a;this[_0x2606d4(0x20d)][_0x2606d4(0x220)](_0x4fa908,_0x438ee7,_0x131572);}[_0x443f7a(0x226)](_0x5d955b){const _0x234648=_0x443f7a;this[_0x234648(0x20d)][_0x234648(0x226)](_0x5d955b),this[_0x234648(0x221)][_0x234648(0x1cb)]=!0x1;}[_0x443f7a(0x258)](_0xcb884c){const _0x176e79=_0x443f7a;this[_0x176e79(0x1cc)](this[_0x176e79(0x227)],this[_0x176e79(0x1fe)],_0xcb884c),this[_0x176e79(0x23c)](_0xcb884c);}[_0x443f7a(0x23c)](_0x5808d1){const _0x44d083=_0x443f7a,_0x2354b3=!_0x5808d1[_0x44d083(0x1f1)][_0x44d083(0x254)]&&_0x5808d1[_0x44d083(0x1f1)][_0x44d083(0x1d1)],_0x4abcf9=_0x5808d1[_0x44d083(0x1f9)][_0x44d083(0x1d1)],_0x53754c=_0x5808d1[_0x44d083(0x1e4)][_0x44d083(0x1d1)];this[_0x44d083(0x221)][_0x44d083(0x244)]=_0x2354b3||_0x4abcf9||_0x53754c;}[_0x443f7a(0x1e2)](){const _0x359ca4=_0x443f7a;this[_0x359ca4(0x248)]({'tag':_0x359ca4(0x1f2),'attributes':{'class':[wo,_0x359ca4(0x1cf)]},'children':[{'tag':_0x359ca4(0x1f2),'attributes':{'class':po},'children':this[_0x359ca4(0x214)]}]});}[_0x443f7a(0x203)](){const _0x36fd09=_0x443f7a;this[_0x36fd09(0x221)]['on'](_0x36fd09(0x255),()=>{const _0x58a60f=_0x36fd09;this[_0x58a60f(0x21c)]();});}[_0x443f7a(0x235)](_0x18975e){const _0x360984=_0x443f7a,_0x11ce3b=new _0x39c52e(_0x18975e);return _0x11ce3b[_0x360984(0x1e6)]({'label':_0x1f398a(_0x18975e,_0x360984(0x210)),'class':Eo+'\x20'+bo,'icon':_0x8b38f1,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x11ce3b;}[_0x443f7a(0x1d0)](_0x5a2d67){const _0x2192f6=_0x443f7a;return this[_0x2192f6(0x211)](_0x5a2d67,Bo);}[_0x443f7a(0x240)](_0x14763f){const _0x241afd=_0x443f7a,_0x3f1ce7=this[_0x241afd(0x211)](_0x14763f,To);return this[_0x241afd(0x239)](_0x3f1ce7,_0x14763f),_0x3f1ce7;}[_0x443f7a(0x230)](_0x989b36,_0x5ef135){const _0x4d89ea=_0x443f7a;return new _0x3d6395(_0x989b36,_0x5ef135,{'onBackToContext':()=>{const _0x3f84ec=_0x44d2;this[_0x3f84ec(0x22f)](),this[_0x3f84ec(0x227)][_0x3f84ec(0x231)]({'target':this[_0x3f84ec(0x221)][_0x3f84ec(0x1d7)],'limiter':this[_0x3f84ec(0x234)](),'positions':Io});},'onResourceSelected':(_0x522a3c,_0x514da4)=>{const _0x2faec8=_0x44d2;this[_0x2faec8(0x228)](_0x2faec8(0x23d),{'source':_0x522a3c,'resource':_0x514da4});},'onLoadSourceResources':_0x7fd72b=>{const _0x22b34d=_0x44d2;this[_0x22b34d(0x228)](_0x22b34d(0x247),_0x7fd72b);},'onBalloonClosed':()=>{const _0x3a3cd1=_0x44d2;this[_0x3a3cd1(0x221)][_0x3a3cd1(0x1cb)]=!0x1;},'getLimiterElement':()=>this[_0x4d89ea(0x234)](),'getTargetElement':()=>this[_0x4d89ea(0x221)][_0x4d89ea(0x1d7)]});}[_0x443f7a(0x234)](){const _0x56c25e=_0x443f7a;return this[_0x56c25e(0x1d7)]?.[_0x56c25e(0x25a)]('.'+fo)||document[_0x56c25e(0x23a)];}[_0x443f7a(0x211)](_0x34b89a,_0x1db755){const _0x538332=_0x443f7a,_0x34352b=new _0x551729(_0x34b89a);return _0x34352b[_0x538332(0x1d4)]({'attributes':{'class':_0x1db755}}),this[_0x538332(0x223)][_0x538332(0x1ea)](_0x34352b),_0x34352b;}[_0x443f7a(0x1cc)](_0x191f7d,_0x1ee00a,_0x407008){const _0x5763a1=_0x443f7a;if(_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1e7)](),!_0x407008[_0x5763a1(0x1f1)][_0x5763a1(0x254)]&&_0x407008[_0x5763a1(0x1f1)][_0x5763a1(0x1d1)]){const _0x3eb004=this[_0x5763a1(0x1ec)](_0x1ee00a,{'label':_0x1f398a(_0x1ee00a,_0x5763a1(0x21e)),'icon':_0x1a80e0});_0x3eb004['on'](_0x5763a1(0x255),()=>{const _0x3f213b=_0x5763a1;this[_0x3f213b(0x228)](_0x3f213b(0x218)),this[_0x3f213b(0x21d)]();}),_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1ea)](_0x3eb004);}if(_0x407008[_0x5763a1(0x1f9)][_0x5763a1(0x1d1)]){const _0xb46c4a=this[_0x5763a1(0x1ec)](_0x1ee00a,{'label':_0x1f398a(_0x1ee00a,_0x5763a1(0x23e)),'icon':_0x34dbd4});_0xb46c4a['on'](_0x5763a1(0x255),()=>{const _0x5253d5=_0x5763a1;this[_0x5253d5(0x21d)](),this[_0x5253d5(0x1dd)](),this[_0x5253d5(0x24b)][_0x5253d5(0x231)]({'target':this[_0x5253d5(0x221)][_0x5253d5(0x1d7)],'limiter':this[_0x5253d5(0x234)](),'positions':Io}),this[_0x5253d5(0x22c)][_0x5253d5(0x1dc)]();}),_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1ea)](_0xb46c4a);}if(_0x407008[_0x5763a1(0x1e4)][_0x5763a1(0x1d1)]){const _0x126038=new _0x3228c0(_0x1ee00a);_0x126038[_0x5763a1(0x1e6)]({'label':_0x1f398a(_0x1ee00a,_0x5763a1(0x252)),'icon':_0x1caa61,'withText':!0x0,'tooltip':!0x0,'class':Ao,'allowMultipleFiles':!0x0}),_0x126038['on'](_0x5763a1(0x1d6),(_0x26ea77,_0x510b20)=>{const _0x272a20=_0x5763a1;this[_0x272a20(0x228)](_0x272a20(0x215),_0x510b20),this[_0x272a20(0x21d)]();}),_0x126038[_0x5763a1(0x224)]=!0x0,_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1ea)](_0x126038);}for(const _0x48a8ff of _0x407008[_0x5763a1(0x256)]){const _0x439926=this[_0x5763a1(0x1ec)](_0x1ee00a,{'label':_0x48a8ff[_0x5763a1(0x251)],'icon':_0x48a8ff[_0x5763a1(0x202)]||_0x519699,'type':_0x5763a1(0x253)});_0x191f7d[_0x5763a1(0x24a)][_0x5763a1(0x1ea)](_0x439926),_0x439926['on'](_0x5763a1(0x255),()=>{const _0x2573f5=_0x5763a1;this[_0x2573f5(0x21d)](),this[_0x2573f5(0x20b)](_0x48a8ff);});}}[_0x443f7a(0x239)](_0x152f6c,_0x63d446){const _0x5cf71c=_0x443f7a;this[_0x5cf71c(0x22c)]=new _0x241762(_0x63d446),this[_0x5cf71c(0x22c)]['on'](_0x5cf71c(0x1ee),(_0x176e3a,_0x1c93af)=>{const _0x4ed0fa=_0x5cf71c;this[_0x4ed0fa(0x245)](_0x1c93af);}),this[_0x5cf71c(0x22c)]['on'](_0x5cf71c(0x209),()=>{const _0x3ad18c=_0x5cf71c;this[_0x3ad18c(0x1d5)](),this[_0x3ad18c(0x22f)](),this[_0x3ad18c(0x227)][_0x3ad18c(0x231)]({'target':this[_0x3ad18c(0x221)][_0x3ad18c(0x1d7)],'limiter':this[_0x3ad18c(0x234)](),'positions':Io});}),this[_0x5cf71c(0x22c)]['on'](_0x5cf71c(0x1e5),()=>{const _0x297d9f=_0x5cf71c;this[_0x297d9f(0x24b)][_0x297d9f(0x1fa)]&&this[_0x297d9f(0x24b)][_0x297d9f(0x231)]({'target':this[_0x297d9f(0x221)][_0x297d9f(0x1d7)],'limiter':this[_0x297d9f(0x234)](),'positions':Io});}),_0x152f6c[_0x5cf71c(0x24a)][_0x5cf71c(0x1ea)](this[_0x5cf71c(0x22c)]);}[_0x443f7a(0x1ec)](_0x12fc1c,_0x1d093c){const _0x14ce06=_0x443f7a,_0x223981=_0x14ce06(0x253)===_0x1d093c[_0x14ce06(0x1df)]?new SourcesBalloonButtonView(_0x12fc1c):new _0x39c52e(_0x12fc1c);return _0x223981[_0x14ce06(0x1e6)]({'label':_0x1d093c[_0x14ce06(0x251)],'icon':_0x1d093c[_0x14ce06(0x202)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Ao}),_0x223981;}[_0x443f7a(0x212)](){const _0x37b083=_0x443f7a;this[_0x37b083(0x1e8)](),this[_0x37b083(0x1cd)]();}[_0x443f7a(0x1cd)](){const _0x38939f=_0x443f7a;_0x5ef739({'emitter':this[_0x38939f(0x24b)],'contextElements':[this[_0x38939f(0x24b)][_0x38939f(0x1d7)]],'callback':()=>{const _0x48ce95=_0x38939f;this[_0x48ce95(0x1d5)]();},'activator':()=>this[_0x38939f(0x24b)][_0x38939f(0x1fa)]});}[_0x443f7a(0x21a)](_0x5a8c0a){const _0x5e9f74=_0x443f7a,_0x3d349c=this[_0x5e9f74(0x259)];_0x3d349c[_0x5e9f74(0x24e)][_0x5e9f74(0x1cb)]=_0x5a8c0a,_0x5a8c0a?_0x3d349c[_0x5e9f74(0x1e1)][_0x5e9f74(0x23b)]():_0x3d349c[_0x5e9f74(0x1e1)][_0x5e9f74(0x1eb)]();}[_0x443f7a(0x1e8)](){const _0x5a21e1=_0x443f7a,{balloonView:_0x234d0e,buttonView:_0x53f4e1,hideMethod:_0x5ce334}=this[_0x5a21e1(0x259)];_0x5ef739({'emitter':_0x234d0e,'contextElements':[_0x234d0e[_0x5a21e1(0x1d7)],_0x53f4e1[_0x5a21e1(0x1d7)]],'callback':()=>{_0x5ce334();},'activator':()=>_0x53f4e1[_0x5a21e1(0x1cb)]&&!this[_0x5a21e1(0x24b)][_0x5a21e1(0x1fa)]&&!this[_0x5a21e1(0x20d)][_0x5a21e1(0x1e9)]()});}[_0x443f7a(0x242)](_0x31544f,_0x3efc0e,_0x2c8c09=!0x1,_0x4f58d0=!0x1){const _0xc01937=_0x443f7a,_0xf41e0c=_0xc01937(0x1da)===_0x3efc0e||!0x0===_0x31544f[_0xc01937(0x225)],_0x16bda1=new _0x1ec021(this[_0xc01937(0x1fe)],_0x31544f,_0xf41e0c,_0x2c8c09,_0x4f58d0);return _0xf41e0c||_0x16bda1['on'](_0xc01937(0x22a),()=>{const _0x427cfd=_0xc01937;this[_0x427cfd(0x228)](_0x427cfd(0x1de),_0x16bda1['id']);}),_0x16bda1;}[_0x443f7a(0x213)](_0x916199,_0x405cb6){const _0x1c7806=_0x443f7a;_0x405cb6[_0x1c7806(0x1ea)](_0x916199,0x0);}[_0x443f7a(0x1d2)](_0x4a0a8a,_0x251b28){const _0x4c2c12=_0x443f7a,_0x316b39=_0x251b28[_0x4c2c12(0x205)](_0x24a26b=>_0x24a26b['id']===_0x4a0a8a);_0x316b39&&_0x251b28[_0x4c2c12(0x250)](_0x316b39);}[_0x443f7a(0x21c)](){const _0x121734=_0x443f7a;this[_0x121734(0x221)][_0x121734(0x1cb)]?this[_0x121734(0x21d)]():(this[_0x121734(0x22f)](),this[_0x121734(0x227)][_0x121734(0x231)]({'target':this[_0x121734(0x221)][_0x121734(0x1d7)],'limiter':this[_0x121734(0x234)](),'positions':Io}));}[_0x443f7a(0x245)](_0x32492d){const _0x416b64=_0x443f7a;this[_0x416b64(0x22c)][_0x416b64(0x1e7)](),this[_0x416b64(0x1d5)](),this[_0x416b64(0x228)](_0x416b64(0x1f4),_0x32492d);}}export class SourcesBalloonButtonView extends _0x39c52e{[_0x443f7a(0x207)];constructor(_0x2857fd){const _0x45376a=_0x443f7a;super(_0x2857fd),this[_0x45376a(0x1e6)]({'withText':!0x0,'role':_0x45376a(0x243)}),this[_0x45376a(0x207)]=this[_0x45376a(0x236)](),this[_0x45376a(0x1d4)]({'attributes':{'class':[ko]}});}[_0x443f7a(0x208)](){const _0x1c8110=_0x443f7a;super[_0x1c8110(0x208)](),this[_0x1c8110(0x1f6)][_0x1c8110(0x1ea)](this[_0x1c8110(0x207)]);}[_0x443f7a(0x236)](){const _0x5e06d6=_0x443f7a,_0x54b338=new _0x41a391();return _0x54b338[_0x5e06d6(0x24a)]=_0x12a1f5,_0x54b338[_0x5e06d6(0x1d4)]({'attributes':{'class':ko+_0x5e06d6(0x1f3)}}),_0x54b338;}}
|
|
23
|
+
function _0x7ee3(){const _0x588d0d=['element','urls','isLoading','224175LKUuit','reorganizeChips','_createContextButton','label','render','remove','_setupAddContextBalloonClickOutsideHandler','_overflowManager','buttonView','setAddContextOptions','showSourceResourcesBalloon','1784200wMvEpH','icon','ck-ai-chat-controls_context_show-more-button','pin','AI_CHAT_CONTEXT_URL_LABEL','balloonView','execute','_createUrlBalloonPanelView','clear','locale','_createAddContextBalloonPanelView','menuitem','_urlBalloonPanelView','addFileToContext','done','_getLimiterElement','_toggleAddContextBalloon','AI_CHAT_CONTEXT_ADD_CONTEXT','addResourceToContext','_conversationContextsChips','clearConversationContextItems','children','hideAddContextBalloonPanel','tooltip','ck-ai-chat-context-controls','ck-ai-chat-context-controls__show-more-balloon-panel','_createArrowView','removeContextItemChip','_addContextBalloonPanelView','ck-ai-chat-context-controls__add-context-balloon-panel','_createResourcesBalloonView','ck-ai-chat-context-controls__url-balloon-panel','hide','_setupUrlBalloonClickOutsideHandler','_resourcesBalloonView','isReadOnly','ck-reset_all-excluded','southArrowNorthEast','overflowChips','_urlInputView','content','_setupTemplate','_handleUrlSubmit','2245236LbIVGg','fire','northArrowSouthWest','ck-ai-chat-context-controls__balloon-button-source','ck-ai-chat-controls-button','addContextItem','sources','ck-ai-chat-context-controls__add-context-button','_showSourceResourcesBalloon','_createAddContextButtonView','hideUrlBalloonPanel','isAnyResourceBalloonVisible','northArrowSouth','southArrowNorth','files','_addContextToCollection','clearCurrentContextItems','3009222jeZtVK','updateResourceState','refreshBalloon','ck-ai-chat-context-controls__balloon-button','_removeContextFromCollection','body','2ChvWsW','addUrlToContext','closest','_createBaseBalloonPanel','setContextItemLoading','_handleAddContextButtonClick','document','_addUrlContent','find','focus','isEnabled','setTemplate','908244nwgwTE','bodyCollection','setContainerElement','populateSourceResourceBalloon','extendTemplate','isVisible','source','defaultPositions','AI_CHAT_CONTEXT_FILE_LABEL','ck-ai-chat','addContextButtonView','_addContextBalloonConfig','_setBalloonPanelContent','ck-ai-chat-context-controls__pending-contexts','isOn','northArrowSouthEast','_setAddContextButtonEnabled','type','current','submitUrl','1682415UGJpZu','showUrlBalloonPanel','_bindEventHandlers','arrowView','__arrow','addDocumentToContext','bind','_setupAllBalloonClickOutsideHandlers','add','closeSourceResourceBalloon','conversation','removeContextItem','3237248KiLIEH','div','loadSourceResources','ck-ai-chat-context-chips-wrapper-balloon','destroy','_currentContextsChips','createCollection','_createBalloonButton','setConversationContext','show','isHidden','showAddContextBalloonPanel','southArrowNorthWest','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','set','enabled','cancel'];_0x7ee3=function(){return _0x588d0d;};return _0x7ee3();}const _0x34ad26=_0x598d;(function(_0x39cbe6,_0xdc6d41){const _0x24fe2b=_0x598d,_0x5d52fc=_0x39cbe6();while(!![]){try{const _0x1086b1=-parseInt(_0x24fe2b(0x194))/0x1*(-parseInt(_0x24fe2b(0x188))/0x2)+-parseInt(_0x24fe2b(0x182))/0x3+-parseInt(_0x24fe2b(0x146))/0x4+parseInt(_0x24fe2b(0x13b))/0x5+parseInt(_0x24fe2b(0x171))/0x6+parseInt(_0x24fe2b(0x11b))/0x7+parseInt(_0x24fe2b(0x127))/0x8;if(_0x1086b1===_0xdc6d41)break;else _0x5d52fc['push'](_0x5d52fc['shift']());}catch(_0x481447){_0x5d52fc['push'](_0x5d52fc['shift']());}}}(_0x7ee3,0x7fb9a));function _0x598d(_0x27810f,_0x41cf55){const _0x7ee362=_0x7ee3();return _0x598d=function(_0x598d2d,_0x21d7da){_0x598d2d=_0x598d2d-0x10c;let _0x4e6d44=_0x7ee362[_0x598d2d];return _0x4e6d44;},_0x598d(_0x27810f,_0x41cf55);}import{BalloonPanelView as _0xad9472,ButtonView as _0x2d6ee4,clickOutsideHandler as _0x47d22e,FileDialogButtonView as _0x2c46b5,IconView as _0x4d2f81,View as _0x300a95}from'ckeditor5/src/ui.js';import{IconBrowseFiles as _0x5dafdd,IconDocument as _0x52e710,IconDocumentOutline as _0x2888f0,IconDropdownArrow as _0x2fc3cb,IconLink as _0x1b6b04,IconPaperClip as _0x299bd1}from'@ckeditor/ckeditor5-icons';import{AIChatContextItemButtonView as _0x3c1726}from'./aichatcontextitembuttonview.js';import{AIChatContextPanelUrlInputView as _0x498e92}from'./aichatcontextpanelurlinputview.js';import{AIChatChipsOverflowManager as _0xc1d009}from'./aichatchipsoverflowmanager.js';import{getTranslation as _0x18a4a4}from'../../../aicore/utils/common-translations.js';import{AIChatResourcesBalloonView as _0x3a35f9}from'./resources/aichatresourcesballoonview.js';export const CONTEXT_PANEL_VIEW_EVENT_NAMES=[_0x34ad26(0x120),_0x34ad26(0x153),_0x34ad26(0x189),_0x34ad26(0x158),_0x34ad26(0x126),_0x34ad26(0x129)];const Bo=_0x34ad26(0x15e),bo=_0x34ad26(0x114),To=_0x34ad26(0x163),Ao=_0x34ad26(0x178),ko=_0x34ad26(0x165),Eo=_0x34ad26(0x185),vo=_0x34ad26(0x174),go=_0x34ad26(0x175),Vo=_0x34ad26(0x12a),fo=_0x34ad26(0x148),Io=_0x34ad26(0x15f),Po=_0x34ad26(0x110),Ro=[_0xad9472[_0x34ad26(0x10e)][_0x34ad26(0x173)],_0xad9472[_0x34ad26(0x10e)][_0x34ad26(0x17d)],_0xad9472[_0x34ad26(0x10e)][_0x34ad26(0x116)],_0xad9472[_0x34ad26(0x10e)][_0x34ad26(0x133)],_0xad9472[_0x34ad26(0x10e)][_0x34ad26(0x17e)],_0xad9472[_0x34ad26(0x10e)][_0x34ad26(0x16b)]];export class AIChatContextPanelView extends _0x300a95{[_0x34ad26(0x111)];[_0x34ad26(0x12c)]=this[_0x34ad26(0x12d)]();[_0x34ad26(0x159)]=this[_0x34ad26(0x12d)]();[_0x34ad26(0x142)];[_0x34ad26(0x162)];[_0x34ad26(0x152)];[_0x34ad26(0x16d)];[_0x34ad26(0x168)];[_0x34ad26(0x112)];[_0x34ad26(0x195)];constructor(_0x51df23,_0x51994b){const _0x1d0ae7=_0x34ad26;super(_0x51df23),this[_0x1d0ae7(0x195)]=_0x51994b,this[_0x1d0ae7(0x12c)]=this[_0x1d0ae7(0x12d)](),this[_0x1d0ae7(0x159)]=this[_0x1d0ae7(0x12d)](),this[_0x1d0ae7(0x111)]=this[_0x1d0ae7(0x17a)](_0x51df23),this[_0x1d0ae7(0x162)]=this[_0x1d0ae7(0x150)](_0x51df23),this[_0x1d0ae7(0x152)]=this[_0x1d0ae7(0x14d)](_0x51df23),this[_0x1d0ae7(0x168)]=this[_0x1d0ae7(0x164)](_0x51df23,_0x51994b);const _0x134ed7={'cssClasses':{'showMoreButton':fo,'showMoreBalloon':Io,'overflowContainer':Vo,'controlsButton':go}};this[_0x1d0ae7(0x142)]=new _0xc1d009(_0x51df23,this[_0x1d0ae7(0x12c)],_0x134ed7,this[_0x1d0ae7(0x195)],this),this[_0x1d0ae7(0x112)]={'buttonView':this[_0x1d0ae7(0x111)],'balloonView':this[_0x1d0ae7(0x162)],'hideMethod':this[_0x1d0ae7(0x15c)][_0x1d0ae7(0x121)](this),'showMethod':this[_0x1d0ae7(0x132)][_0x1d0ae7(0x121)](this)},this[_0x1d0ae7(0x16f)](),this[_0x1d0ae7(0x11d)]();}[_0x34ad26(0x13f)](){const _0x79e364=_0x34ad26;super[_0x79e364(0x13f)](),this[_0x79e364(0x122)](),this[_0x79e364(0x142)][_0x79e364(0x196)](this[_0x79e364(0x138)]),this[_0x79e364(0x142)][_0x79e364(0x13c)]();}[_0x34ad26(0x12b)](){const _0x24049c=_0x34ad26;super[_0x24049c(0x12b)](),this[_0x24049c(0x142)][_0x24049c(0x12b)](),this[_0x24049c(0x168)][_0x24049c(0x12b)]();}[_0x34ad26(0x176)](_0x42b9a1,_0x2376ce){const _0x139aca=_0x34ad26,_0x43eee2=this[_0x139aca(0x13d)](_0x42b9a1,_0x139aca(0x119),!0x0,_0x2376ce);this[_0x139aca(0x180)](_0x43eee2,this[_0x139aca(0x12c)]),this[_0x139aca(0x142)][_0x139aca(0x13c)]();}[_0x34ad26(0x126)](_0x513ad4){const _0x2ea2c8=_0x34ad26;this[_0x2ea2c8(0x186)](_0x513ad4,this[_0x2ea2c8(0x12c)]),this[_0x2ea2c8(0x186)](_0x513ad4,this[_0x2ea2c8(0x142)][_0x2ea2c8(0x16c)]),this[_0x2ea2c8(0x142)][_0x2ea2c8(0x13c)]();}[_0x34ad26(0x18c)](_0x389ae3,_0x54b5a6){const _0x568788=_0x34ad26;let _0x42018f=this[_0x568788(0x12c)][_0x568788(0x190)](_0x2574d1=>_0x2574d1['id']===_0x389ae3);_0x42018f||(_0x42018f=this[_0x568788(0x142)][_0x568788(0x16c)][_0x568788(0x190)](_0x3ff7c9=>_0x3ff7c9['id']===_0x389ae3)),_0x42018f&&(_0x42018f[_0x568788(0x13a)]=_0x54b5a6);}[_0x34ad26(0x12f)](_0x4989dd){const _0x33780c=_0x34ad26;this[_0x33780c(0x159)][_0x33780c(0x14e)]();for(const _0x2f32a9 of _0x4989dd){const _0x26f840=this[_0x33780c(0x13d)](_0x2f32a9,_0x33780c(0x125),!0x1,!0x1);this[_0x33780c(0x180)](_0x26f840,this[_0x33780c(0x159)]);}}[_0x34ad26(0x181)](){const _0x53f48d=_0x34ad26;this[_0x53f48d(0x12c)][_0x53f48d(0x14e)](),this[_0x53f48d(0x142)][_0x53f48d(0x14e)]();}[_0x34ad26(0x15a)](){const _0x13f892=_0x34ad26;this[_0x13f892(0x159)][_0x13f892(0x14e)]();}[_0x34ad26(0x183)](_0x282550,_0x5cc7a7,_0x3a0a3f){const _0x170cf0=_0x34ad26;this[_0x170cf0(0x168)][_0x170cf0(0x183)](_0x282550,_0x5cc7a7,_0x3a0a3f);}[_0x34ad26(0x15c)](){const _0x58e81f=_0x34ad26;this[_0x58e81f(0x156)](!0x1);}[_0x34ad26(0x132)](){const _0x44bec1=_0x34ad26;this[_0x44bec1(0x156)](!0x0);}[_0x34ad26(0x17b)](){const _0x555ce3=_0x34ad26;this[_0x555ce3(0x152)][_0x555ce3(0x166)](),this[_0x555ce3(0x111)][_0x555ce3(0x115)]=!0x1,this[_0x555ce3(0x16d)]&&this[_0x555ce3(0x16d)][_0x555ce3(0x14e)]();}[_0x34ad26(0x11c)](){const _0x4dacab=_0x34ad26;this[_0x4dacab(0x152)][_0x4dacab(0x130)](),this[_0x4dacab(0x111)][_0x4dacab(0x115)]=!0x0;}[_0x34ad26(0x179)](_0xf43e3c){const _0x455ee6=_0x34ad26;this[_0x455ee6(0x168)][_0x455ee6(0x145)](_0xf43e3c),this[_0x455ee6(0x111)][_0x455ee6(0x115)]=!0x0;}[_0x34ad26(0x197)](_0x95cf0e,_0x1e3a2e,_0x4b0487,_0x4793fb){const _0x4dc468=_0x34ad26;this[_0x4dc468(0x168)][_0x4dc468(0x197)](_0x95cf0e,_0x4b0487,_0x4793fb);}[_0x34ad26(0x124)](_0xb483d4){const _0x55353a=_0x34ad26;this[_0x55353a(0x168)][_0x55353a(0x124)](_0xb483d4),this[_0x55353a(0x111)][_0x55353a(0x115)]=!0x1;}[_0x34ad26(0x144)](_0x47abda){const _0x1d601d=_0x34ad26;this[_0x1d601d(0x113)](this[_0x1d601d(0x162)],this[_0x1d601d(0x14f)],_0x47abda),this[_0x1d601d(0x117)](_0x47abda);}[_0x34ad26(0x117)](_0x4db523){const _0x593e17=_0x34ad26,_0x2d0a8c=!_0x4db523[_0x593e17(0x18e)][_0x593e17(0x131)]&&_0x4db523[_0x593e17(0x18e)][_0x593e17(0x136)],_0x4afc43=_0x4db523[_0x593e17(0x139)][_0x593e17(0x136)],_0x5df37d=_0x4db523[_0x593e17(0x17f)][_0x593e17(0x136)];this[_0x593e17(0x111)][_0x593e17(0x192)]=_0x2d0a8c||_0x4afc43||_0x5df37d;}[_0x34ad26(0x16f)](){const _0x2251bd=_0x34ad26;this[_0x2251bd(0x193)]({'tag':_0x2251bd(0x128),'attributes':{'class':[Bo,_0x2251bd(0x16a)]},'children':[{'tag':_0x2251bd(0x128),'attributes':{'class':bo},'children':this[_0x2251bd(0x12c)]}]});}[_0x34ad26(0x11d)](){const _0x1fa818=_0x34ad26;this[_0x1fa818(0x111)]['on'](_0x1fa818(0x14c),()=>{const _0x22f088=_0x1fa818;this[_0x22f088(0x18d)]();});}[_0x34ad26(0x17a)](_0x2e922e){const _0x1f34fd=_0x34ad26,_0x41316a=new _0x2d6ee4(_0x2e922e);return _0x41316a[_0x1f34fd(0x135)]({'label':_0x18a4a4(_0x2e922e,_0x1f34fd(0x157)),'class':go+'\x20'+Ao,'icon':_0x299bd1,'isToggleable':!0x0,'tooltip':!0x0,'tooltipPosition':'sw'}),_0x41316a;}[_0x34ad26(0x150)](_0x4c3e74){const _0x2b2810=_0x34ad26;return this[_0x2b2810(0x18b)](_0x4c3e74,To);}[_0x34ad26(0x14d)](_0x2c0dfd){const _0xd80810=_0x34ad26,_0x42f09b=this[_0xd80810(0x18b)](_0x2c0dfd,ko);return this[_0xd80810(0x18f)](_0x42f09b,_0x2c0dfd),_0x42f09b;}[_0x34ad26(0x164)](_0x4708a2,_0x474f2e){const _0xb9bbb8=_0x34ad26;return new _0x3a35f9(_0x4708a2,_0x474f2e,{'onBackToContext':()=>{const _0x5ca9d1=_0x598d;this[_0x5ca9d1(0x132)](),this[_0x5ca9d1(0x162)][_0x5ca9d1(0x149)]({'target':this[_0x5ca9d1(0x111)][_0x5ca9d1(0x138)],'limiter':this[_0x5ca9d1(0x155)](),'positions':Ro});},'onResourceSelected':(_0x33c4a5,_0x963d89)=>{const _0x23b5d0=_0x598d;this[_0x23b5d0(0x172)](_0x23b5d0(0x158),{'source':_0x33c4a5,'resource':_0x963d89});},'onLoadSourceResources':_0x182fb0=>{const _0x55e76f=_0x598d;this[_0x55e76f(0x172)](_0x55e76f(0x129),_0x182fb0);},'onBalloonClosed':()=>{const _0x115592=_0x598d;this[_0x115592(0x111)][_0x115592(0x115)]=!0x1;},'getLimiterElement':()=>this[_0xb9bbb8(0x155)](),'getTargetElement':()=>this[_0xb9bbb8(0x111)][_0xb9bbb8(0x138)]});}[_0x34ad26(0x155)](){const _0x3d9d98=_0x34ad26;return this[_0x3d9d98(0x138)]?.[_0x3d9d98(0x18a)]('.'+Po)||document[_0x3d9d98(0x187)];}[_0x34ad26(0x18b)](_0x3afb1a,_0x3faecc){const _0x476411=_0x34ad26,_0x2fc4d1=new _0xad9472(_0x3afb1a);return _0x2fc4d1[_0x476411(0x198)]({'attributes':{'class':_0x3faecc}}),this[_0x476411(0x195)][_0x476411(0x123)](_0x2fc4d1),_0x2fc4d1;}[_0x34ad26(0x113)](_0xe51541,_0x2a1ba2,_0x4aa1f2){const _0x398d4e=_0x34ad26;if(_0xe51541[_0x398d4e(0x16e)][_0x398d4e(0x14e)](),!_0x4aa1f2[_0x398d4e(0x18e)][_0x398d4e(0x131)]&&_0x4aa1f2[_0x398d4e(0x18e)][_0x398d4e(0x136)]){const _0x19fddf=this[_0x398d4e(0x12e)](_0x2a1ba2,{'label':_0x18a4a4(_0x2a1ba2,_0x398d4e(0x134)),'icon':_0x52e710});_0x19fddf['on'](_0x398d4e(0x14c),()=>{const _0x53d3f7=_0x398d4e;this[_0x53d3f7(0x172)](_0x53d3f7(0x120)),this[_0x53d3f7(0x15c)]();}),_0xe51541[_0x398d4e(0x16e)][_0x398d4e(0x123)](_0x19fddf);}if(_0x4aa1f2[_0x398d4e(0x139)][_0x398d4e(0x136)]){const _0x4b7c86=this[_0x398d4e(0x12e)](_0x2a1ba2,{'label':_0x18a4a4(_0x2a1ba2,_0x398d4e(0x14a)),'icon':_0x1b6b04});_0x4b7c86['on'](_0x398d4e(0x14c),()=>{const _0x5a7186=_0x398d4e;this[_0x5a7186(0x15c)](),this[_0x5a7186(0x11c)](),this[_0x5a7186(0x152)][_0x5a7186(0x149)]({'target':this[_0x5a7186(0x111)][_0x5a7186(0x138)],'limiter':this[_0x5a7186(0x155)](),'positions':Ro}),this[_0x5a7186(0x16d)][_0x5a7186(0x191)]();}),_0xe51541[_0x398d4e(0x16e)][_0x398d4e(0x123)](_0x4b7c86);}if(_0x4aa1f2[_0x398d4e(0x17f)][_0x398d4e(0x136)]){const _0x3adddb=new _0x2c46b5(_0x2a1ba2);_0x3adddb[_0x398d4e(0x135)]({'label':_0x18a4a4(_0x2a1ba2,_0x398d4e(0x10f)),'icon':_0x5dafdd,'withText':!0x0,'tooltip':!0x0,'class':Eo,'allowMultipleFiles':!0x0}),_0x3adddb['on'](_0x398d4e(0x154),(_0x2cf14c,_0x23b91b)=>{const _0x3706ae=_0x398d4e;this[_0x3706ae(0x172)](_0x3706ae(0x153),_0x23b91b),this[_0x3706ae(0x15c)]();}),_0x3adddb[_0x398d4e(0x15d)]=!0x0,_0xe51541[_0x398d4e(0x16e)][_0x398d4e(0x123)](_0x3adddb);}for(const _0x2d38af of _0x4aa1f2[_0x398d4e(0x177)]){const _0x28b5fe=this[_0x398d4e(0x12e)](_0x2a1ba2,{'label':_0x2d38af[_0x398d4e(0x13e)],'icon':_0x2d38af[_0x398d4e(0x147)]||_0x2888f0,'type':_0x398d4e(0x10d)});_0xe51541[_0x398d4e(0x16e)][_0x398d4e(0x123)](_0x28b5fe),_0x28b5fe['on'](_0x398d4e(0x14c),()=>{const _0x4276b3=_0x398d4e;this[_0x4276b3(0x15c)](),this[_0x4276b3(0x179)](_0x2d38af);});}}[_0x34ad26(0x18f)](_0x576255,_0x5afb32){const _0x10051e=_0x34ad26;this[_0x10051e(0x16d)]=new _0x498e92(_0x5afb32),this[_0x10051e(0x16d)]['on'](_0x10051e(0x11a),(_0x4ebe5f,_0x938d77)=>{const _0x497852=_0x10051e;this[_0x497852(0x170)](_0x938d77);}),this[_0x10051e(0x16d)]['on'](_0x10051e(0x137),()=>{const _0x3f0f1e=_0x10051e;this[_0x3f0f1e(0x17b)](),this[_0x3f0f1e(0x132)](),this[_0x3f0f1e(0x162)][_0x3f0f1e(0x149)]({'target':this[_0x3f0f1e(0x111)][_0x3f0f1e(0x138)],'limiter':this[_0x3f0f1e(0x155)](),'positions':Ro});}),this[_0x10051e(0x16d)]['on'](_0x10051e(0x184),()=>{const _0xea0b08=_0x10051e;this[_0xea0b08(0x152)][_0xea0b08(0x10c)]&&this[_0xea0b08(0x152)][_0xea0b08(0x149)]({'target':this[_0xea0b08(0x111)][_0xea0b08(0x138)],'limiter':this[_0xea0b08(0x155)](),'positions':Ro});}),_0x576255[_0x10051e(0x16e)][_0x10051e(0x123)](this[_0x10051e(0x16d)]);}[_0x34ad26(0x12e)](_0x17f264,_0x3e04f1){const _0x2e4a13=_0x34ad26,_0x241984=_0x2e4a13(0x10d)===_0x3e04f1[_0x2e4a13(0x118)]?new SourcesBalloonButtonView(_0x17f264):new _0x2d6ee4(_0x17f264);return _0x241984[_0x2e4a13(0x135)]({'label':_0x3e04f1[_0x2e4a13(0x13e)],'icon':_0x3e04f1[_0x2e4a13(0x147)],'withText':!0x0,'tooltip':!0x0,'tooltipPosition':'sw','class':Eo}),_0x241984;}[_0x34ad26(0x122)](){const _0x31d6b5=_0x34ad26;this[_0x31d6b5(0x141)](),this[_0x31d6b5(0x167)]();}[_0x34ad26(0x167)](){const _0x1fd9af=_0x34ad26;_0x47d22e({'emitter':this[_0x1fd9af(0x152)],'contextElements':[this[_0x1fd9af(0x152)][_0x1fd9af(0x138)]],'callback':()=>{const _0x18b83c=_0x1fd9af;this[_0x18b83c(0x17b)]();},'activator':()=>this[_0x1fd9af(0x152)][_0x1fd9af(0x10c)]});}[_0x34ad26(0x156)](_0x267bee){const _0x21dfe2=_0x34ad26,_0xcc662b=this[_0x21dfe2(0x112)];_0xcc662b[_0x21dfe2(0x143)][_0x21dfe2(0x115)]=_0x267bee,_0x267bee?_0xcc662b[_0x21dfe2(0x14b)][_0x21dfe2(0x130)]():_0xcc662b[_0x21dfe2(0x14b)][_0x21dfe2(0x166)]();}[_0x34ad26(0x141)](){const _0x2a2047=_0x34ad26,{balloonView:_0xe475a2,buttonView:_0x273ccc,hideMethod:_0x257904}=this[_0x2a2047(0x112)];_0x47d22e({'emitter':_0xe475a2,'contextElements':[_0xe475a2[_0x2a2047(0x138)],_0x273ccc[_0x2a2047(0x138)]],'callback':()=>{_0x257904();},'activator':()=>_0x273ccc[_0x2a2047(0x115)]&&!this[_0x2a2047(0x152)][_0x2a2047(0x10c)]&&!this[_0x2a2047(0x168)][_0x2a2047(0x17c)]()});}[_0x34ad26(0x13d)](_0x3a128a,_0x1d8ecd,_0x515460=!0x1,_0x442df7=!0x1){const _0x14e8f1=_0x34ad26,_0x33468c=_0x14e8f1(0x125)===_0x1d8ecd||!0x0===_0x3a128a[_0x14e8f1(0x169)],_0x2fd17d=new _0x3c1726(this[_0x14e8f1(0x14f)],_0x3a128a,_0x33468c,_0x515460,_0x442df7);return _0x33468c||_0x2fd17d['on'](_0x14e8f1(0x161),()=>{const _0x46e0f1=_0x14e8f1;this[_0x46e0f1(0x172)](_0x46e0f1(0x126),_0x2fd17d['id']);}),_0x2fd17d;}[_0x34ad26(0x180)](_0x113f2b,_0x286c97){const _0x50252b=_0x34ad26;_0x286c97[_0x50252b(0x123)](_0x113f2b,0x0);}[_0x34ad26(0x186)](_0x1e2389,_0x3b500e){const _0x5c14ae=_0x34ad26,_0x4a7656=_0x3b500e[_0x5c14ae(0x190)](_0x5be55a=>_0x5be55a['id']===_0x1e2389);_0x4a7656&&_0x3b500e[_0x5c14ae(0x140)](_0x4a7656);}[_0x34ad26(0x18d)](){const _0x30200f=_0x34ad26;this[_0x30200f(0x111)][_0x30200f(0x115)]?this[_0x30200f(0x15c)]():(this[_0x30200f(0x132)](),this[_0x30200f(0x162)][_0x30200f(0x149)]({'target':this[_0x30200f(0x111)][_0x30200f(0x138)],'limiter':this[_0x30200f(0x155)](),'positions':Ro}));}[_0x34ad26(0x170)](_0xc05de){const _0x15122b=_0x34ad26;this[_0x15122b(0x16d)][_0x15122b(0x14e)](),this[_0x15122b(0x17b)](),this[_0x15122b(0x172)](_0x15122b(0x189),_0xc05de);}}export class SourcesBalloonButtonView extends _0x2d6ee4{[_0x34ad26(0x11e)];constructor(_0x1558be){const _0xad462a=_0x34ad26;super(_0x1558be),this[_0xad462a(0x135)]({'withText':!0x0,'role':_0xad462a(0x151)}),this[_0xad462a(0x11e)]=this[_0xad462a(0x160)](),this[_0xad462a(0x198)]({'attributes':{'class':[vo]}});}[_0x34ad26(0x13f)](){const _0xddbcb3=_0x34ad26;super[_0xddbcb3(0x13f)](),this[_0xddbcb3(0x15b)][_0xddbcb3(0x123)](this[_0xddbcb3(0x11e)]);}[_0x34ad26(0x160)](){const _0x444b3c=_0x34ad26,_0x485e78=new _0x4d2f81();return _0x485e78[_0x444b3c(0x16e)]=_0x2fc3cb,_0x485e78[_0x444b3c(0x198)]({'attributes':{'class':vo+_0x444b3c(0x11f)}}),_0x485e78;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x7d164c=_0x5073;function _0x5073(_0x1e0002,_0x36391b){const _0x2e389f=_0x2e38();return _0x5073=function(_0x50735c,_0x201819){_0x50735c=_0x50735c-0x14b;let _0x1ebd8c=_0x2e389f[_0x50735c];return _0x1ebd8c;},_0x5073(_0x1e0002,_0x36391b);}(function(_0x2a523d,_0x1e4c8d){const _0x45c538=_0x5073,_0x226f2e=_0x2a523d();while(!![]){try{const _0x46bdab=parseInt(_0x45c538(0x161))/0x1*(-parseInt(_0x45c538(0x15f))/0x2)+parseInt(_0x45c538(0x165))/0x3+-parseInt(_0x45c538(0x163))/0x4*(parseInt(_0x45c538(0x155))/0x5)+-parseInt(_0x45c538(0x150))/0x6+parseInt(_0x45c538(0x15c))/0x7*(-parseInt(_0x45c538(0x15b))/0x8)+parseInt(_0x45c538(0x15d))/0x9+parseInt(_0x45c538(0x14e))/0xa*(parseInt(_0x45c538(0x153))/0xb);if(_0x46bdab===_0x1e4c8d)break;else _0x226f2e['push'](_0x226f2e['shift']());}catch(_0x248dce){_0x226f2e['push'](_0x226f2e['shift']());}}}(_0x2e38,0x331f0));import{ButtonView as _0x384bce,View as _0x3c8455}from'ckeditor5/src/ui.js';function _0x2e38(){const _0x496a85=['ck-ai-chat-controls-loader-icon','346105mbqjHt','div','_loaderView','AI_CHAT_IS_WRITING','_createCancelButtonView','_createLoaderView','2864672pNtgDx','7VnbJLS','1909683cDiAWI','ck-ai-chat-controls-loader','259588XKqXuZ','_cancelButtonView','1nIUwRB','ck-reset_all','8sVLNOK','abortPromptStream','468315BcpBOp','AI_CHAT_STOP_GENERATING','ck-ai-chat-controls-loader-icon-dot','setTemplate','fire','ck-ai-chat-controls-loader-wrapper','execute','40JiiSbM','ai-chat-controls-loader__cancel-button','1934112KoQBxT','locale','set','2171873gfBVdq'];_0x2e38=function(){return _0x496a85;};return _0x2e38();}import{IconStop as _0x92969}from'ckeditor5/src/icons.js';import{getTranslation as _0x595434}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x3c8455{[_0x7d164c(0x160)];[_0x7d164c(0x157)];constructor(_0x314e43){const _0x19cf3a=_0x7d164c;super(_0x314e43),this[_0x19cf3a(0x160)]=this[_0x19cf3a(0x159)](),this[_0x19cf3a(0x157)]=this[_0x19cf3a(0x15a)](),this[_0x19cf3a(0x168)]({'tag':_0x19cf3a(0x156),'attributes':{'class':['ck',_0x19cf3a(0x14c),_0x19cf3a(0x162)]},'children':[this[_0x19cf3a(0x157)],this[_0x19cf3a(0x160)]]});}[_0x7d164c(0x159)](){const _0x3239ff=_0x7d164c,_0x2f7795=new _0x384bce(this[_0x3239ff(0x151)]);return _0x2f7795[_0x3239ff(0x152)]({'label':_0x595434(this[_0x3239ff(0x151)],_0x3239ff(0x166)),'withText':!0x0,'class':_0x3239ff(0x14f),'icon':_0x92969}),_0x2f7795['on'](_0x3239ff(0x14d),()=>{const _0x58b825=_0x3239ff;this[_0x58b825(0x14b)](_0x58b825(0x164));}),_0x2f7795;}[_0x7d164c(0x15a)](){const _0x28d905=_0x7d164c,_0x4be81d=new _0x3c8455(this[_0x28d905(0x151)]);return _0x4be81d[_0x28d905(0x168)]({'tag':_0x28d905(0x156),'attributes':{'class':[_0x28d905(0x15e)]},'children':[{'tag':_0x28d905(0x156),'attributes':{'class':[_0x28d905(0x154)]},'children':[{'tag':_0x28d905(0x156),'attributes':{'class':[_0x28d905(0x167)]}},{'tag':_0x28d905(0x156),'attributes':{'class':[_0x28d905(0x167)]}},{'tag':_0x28d905(0x156),'attributes':{'class':[_0x28d905(0x167)]}}]},{'text':_0x595434(this[_0x28d905(0x151)],_0x28d905(0x158))}]}),_0x4be81d;}}
|