@ckeditor/ckeditor5-ai 47.0.0-alpha.5 → 47.0.0-alpha.7
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/LICENSE.md +4 -0
- package/build/ai.js +1 -1
- package/ckeditor5-metadata.json +14 -0
- package/dist/index-editor.css +70 -19
- package/dist/index.css +80 -19
- 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 +6 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +0 -2
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
- 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.d.ts +3 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.d.ts +4 -0
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +9 -2
- 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.d.ts +6 -0
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +4 -0
- 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.d.ts +1 -0
- 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.d.ts +8 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
- 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 +17 -0
- package/src/aicore/aiconnector.d.ts +13 -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.d.ts +41 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +2 -2
- 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 +16 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.d.ts +35 -0
- package/src/aieditorintegration/aieditorintegration.js +23 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
- 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/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.d.ts +6 -0
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/augmentation.d.ts +6 -0
- package/src/index.d.ts +4 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +17 -4
- package/theme/aichat/aichat-controls.css +6 -0
- package/theme/aichat/aichat.css +2 -0
- package/theme/aichat/aichathistory.css +26 -9
- package/theme/aichat/aiminitoolbar.css +8 -0
- package/theme/aichat/aisuggestioncontainer.css +14 -2
- package/theme/aireviewmode/aireviewmode-check-run-result.css +6 -0
- package/theme/aitabs/aitabsview.css +6 -1
- package/theme/common/aibutton.css +0 -4
- package/theme/common/aiheader.css +1 -0
- package/src/aiquickactions/utils/common-translations.d.ts +0 -9
- package/src/aiquickactions/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c6dae=_0x111c;(function(_0x50cfd5,_0x1160cb){const _0x572cae=_0x111c,_0xa01292=_0x50cfd5();while(!![]){try{const _0x51df51=parseInt(_0x572cae(0xa0))/0x1+-parseInt(_0x572cae(0xab))/0x2*(parseInt(_0x572cae(0xa6))/0x3)+parseInt(_0x572cae(0x9d))/0x4+parseInt(_0x572cae(0xb4))/0x5*(parseInt(_0x572cae(0xa2))/0x6)+-parseInt(_0x572cae(0xad))/0x7*(parseInt(_0x572cae(0xb1))/0x8)+-parseInt(_0x572cae(0xb2))/0x9*(parseInt(_0x572cae(0xa3))/0xa)+-parseInt(_0x572cae(0xa4))/0xb;if(_0x51df51===_0x1160cb)break;else _0xa01292['push'](_0xa01292['shift']());}catch(_0x4a8024){_0xa01292['push'](_0xa01292['shift']());}}}(_0x312c,0xd9513));function _0x111c(_0x1231e2,_0x2f65e0){const _0x312c26=_0x312c();return _0x111c=function(_0x111cb4,_0x11541b){_0x111cb4=_0x111cb4-0x9c;let _0x46fe6c=_0x312c26[_0x111cb4];return _0x46fe6c;},_0x111c(_0x1231e2,_0x2f65e0);}function _0x312c(){const _0x2293fa=['find','filter','_modelList','getDefault','some','values','5053472acAiWN','isAvailable','getModels','1240016xlFkYR','_connector','570RYitPk','1479990wCjGmQ','783123DLlOaI','name','244419OrdXzX','list','capabilities','ai-chat-default-model-id-unrecognized','items','8HVmfXw','length','140FmHjuZ','sort','getAll','provider','390928ifLJag','63ReAFhw','enabled','41955WtUPoq'];_0x312c=function(){return _0x2293fa;};return _0x312c();}import{EmitterMixin as _0x3fe714,logWarning as _0x1b9e27}from'ckeditor5/src/utils.js';export class AIChatModels extends _0x3fe714(){[_0x5c6dae(0xb7)]=[];[_0x5c6dae(0xa1)];constructor({connector:_0x58e577}){const _0x448c29=_0x5c6dae;super(),this[_0x448c29(0xa1)]=_0x58e577;}async[_0x5c6dae(0xaf)](){const _0xd792d2=_0x5c6dae;if(!this[_0xd792d2(0xb7)][_0xd792d2(0xac)]){const _0x870cee=this[_0xd792d2(0xa1)][_0xd792d2(0x9f)](),_0x43ad57=(await _0x870cee[_0xd792d2(0xa7)]())[_0xd792d2(0xaa)][_0xd792d2(0xae)]((_0x1bce8f,_0x1c9344)=>{const _0x1a3103=_0xd792d2,_0x49e507=Object[_0x1a3103(0x9c)](_0x1bce8f[_0x1a3103(0xa8)])[_0x1a3103(0xb6)](_0x40f2d3=>_0x40f2d3[_0x1a3103(0xb3)])[_0x1a3103(0xac)];return Object[_0x1a3103(0x9c)](_0x1c9344[_0x1a3103(0xa8)])[_0x1a3103(0xb6)](_0x2083d0=>_0x2083d0[_0x1a3103(0xb3)])[_0x1a3103(0xac)]-_0x49e507;});this[_0xd792d2(0xb7)]=_0x43ad57;}return this[_0xd792d2(0xb7)];}async[_0x5c6dae(0xb8)](_0x440a3c){const _0x1dec01=_0x5c6dae,_0x155733=await this[_0x1dec01(0xaf)]();if(!_0x155733[_0x1dec01(0xac)])return null;if(_0x440a3c){const _0x30b982=_0x155733[_0x1dec01(0xb5)](_0x5bb6dc=>_0x5bb6dc['id']===_0x440a3c);if(_0x30b982)return _0x30b982;_0x1b9e27(_0x1dec01(0xa9),{'defaultModelId':_0x440a3c,'fallBackModelId':_0x155733[0x0]['id']});}return _0x155733[0x0];}async[_0x5c6dae(0x9e)](_0x5edbbb){const _0x2ead32=_0x5c6dae;return(await this[_0x2ead32(0xaf)]())[_0x2ead32(0xb9)](_0x31a87e=>_0x31a87e[_0x2ead32(0xa5)]===_0x5edbbb[_0x2ead32(0xa5)]&&_0x31a87e[_0x2ead32(0xb0)]===_0x5edbbb[_0x2ead32(0xb0)]);}}
|
|
@@ -17,6 +17,12 @@ export declare class AIChatControlsView extends View {
|
|
|
17
17
|
* @observable
|
|
18
18
|
*/
|
|
19
19
|
isLoading: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The disabled state of the controls.
|
|
22
|
+
*
|
|
23
|
+
* @observable
|
|
24
|
+
*/
|
|
25
|
+
isDisabled: boolean;
|
|
20
26
|
constructor(locale: Locale, bodyCollection: BodyCollection);
|
|
21
27
|
/**
|
|
22
28
|
* Adds an item chip to the current context list.
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57996b=_0x420c;(function(_0x249f16,_0x4377a3){const _0x259443=_0x420c,_0x484d35=_0x249f16();while(!![]){try{const _0x3694a7=-parseInt(_0x259443(0x181))/0x1+parseInt(_0x259443(0x197))/0x2*(parseInt(_0x259443(0x18f))/0x3)+parseInt(_0x259443(0x18b))/0x4+parseInt(_0x259443(0x190))/0x5+-parseInt(_0x259443(0x1ac))/0x6+-parseInt(_0x259443(0x192))/0x7+parseInt(_0x259443(0x1b8))/0x8;if(_0x3694a7===_0x4377a3)break;else _0x484d35['push'](_0x484d35['shift']());}catch(_0x2aaffd){_0x484d35['push'](_0x484d35['shift']());}}}(_0x5cfa,0xc28d7));import{clickOutsideHandler as _0x318332,View as _0x35ef2e}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x118a79}from'./controls/aichatpromptinputview.js';function _0x420c(_0x25220e,_0x2270ca){const _0x5cfadc=_0x5cfa();return _0x420c=function(_0x420cba,_0x27995e){_0x420cba=_0x420cba-0x17f;let _0x25cad3=_0x5cfadc[_0x420cba];return _0x25cad3;},_0x420c(_0x25220e,_0x2270ca);}function _0x5cfa(){const _0x33bcde=['clearConversationContextItems','setTemplate','focusPromptInput','setIsUploadInProgress','clearConversationContextUI','element','toggleReasoning','ck-hidden','5412136rECeGl','enableModelSelector','updateResourceState','_contextPanelView','_promptInputView','div','setAddContextOptions','setModelList','1376810OOwBEa','setContextItemLoading','_handlePromptInputFocus','addContextItem','setPlaceholderText','setConversationContext','clearPendingContextUI','_shouldRestorePromptInputFocus','setReasoning','sendUserMessage','2355736FgFYYV','toggleWebSearch','ck-ai-chat-controls-disabled','bindTemplate','4056609eBHFcP','6774680aKyAet','form','4749521rRsKhC','populateSourceResourceBalloon','delegate','low','selectModel','2zCBtIC','closeSourceResourceBalloon','_createLoaderView','clearCurrentContextItems','removeContextItem','_promptCapabilitiesView','isDisabled','addContextButtonView','set','setModel','isLoading','focus','change:isLoading','setWebSearch','setInputPlaceholder','_createPromptInputView','_loaderView','disableModelSelector','_createContextPanelView','ck-ai-chat-controls','_createPromptCapabilitiesView','6722340dXVaGL','resetMessageInput','abortPromptStream','reset'];_0x5cfa=function(){return _0x33bcde;};return _0x5cfa();}import{AIChatPromptCapabilitiesView as _0x68772c}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x273a3a,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x89c1d9}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x1df78f}from'./controls/aichatcontrolsloaderview.js';export class AIChatControlsView extends _0x35ef2e{[_0x57996b(0x1bb)];[_0x57996b(0x1bc)];[_0x57996b(0x19c)];[_0x57996b(0x1a7)];[_0x57996b(0x188)];constructor(_0x174a71,_0x325497){const _0x405a7=_0x57996b;super(_0x174a71),this[_0x405a7(0x1bb)]=this[_0x405a7(0x1a9)](_0x174a71,_0x325497),this[_0x405a7(0x1bc)]=this[_0x405a7(0x1a6)](_0x174a71),this[_0x405a7(0x19c)]=this[_0x405a7(0x1ab)](_0x174a71),this[_0x405a7(0x1a7)]=this[_0x405a7(0x199)](_0x174a71),this[_0x405a7(0x188)]=!0x1,this[_0x405a7(0x1bc)][_0x405a7(0x194)](_0x405a7(0x18a))['to'](this),this[_0x405a7(0x1a7)][_0x405a7(0x194)](_0x405a7(0x1ae))['to'](this),this[_0x405a7(0x19c)][_0x405a7(0x194)](_0x405a7(0x18c))['to'](this),this[_0x405a7(0x19c)][_0x405a7(0x194)](_0x405a7(0x1b6))['to'](this),this[_0x405a7(0x19c)][_0x405a7(0x194)](_0x405a7(0x196))['to'](this),this[_0x405a7(0x1bb)][_0x405a7(0x194)](..._0x89c1d9)['to'](this),this[_0x405a7(0x19f)](_0x405a7(0x19d),!0x1);const _0x549080=this[_0x405a7(0x18e)];this[_0x405a7(0x1b1)]({'tag':_0x405a7(0x191),'attributes':{'class':['ck',_0x405a7(0x1aa),_0x549080['if'](_0x405a7(0x19d),_0x405a7(0x18d))]},'children':[{'tag':_0x405a7(0x1bd),'attributes':{'class':[_0x549080['if'](_0x405a7(0x1a1),_0x405a7(0x1b7))]},'children':[this[_0x405a7(0x1bb)],this[_0x405a7(0x1bc)],this[_0x405a7(0x19c)]]},{'tag':_0x405a7(0x1bd),'attributes':{'class':[_0x549080['if'](_0x405a7(0x1a1),_0x405a7(0x1b7),_0x19d99a=>!_0x19d99a)]},'children':[this[_0x405a7(0x1a7)]]}]}),_0x318332({'emitter':this[_0x405a7(0x1bc)],'activator':()=>this[_0x405a7(0x1a1)],'contextElements':()=>[this[_0x405a7(0x1b5)]],'callback':()=>{const _0x136f42=_0x405a7;this[_0x136f42(0x188)]=!0x1;}}),this['on'](_0x405a7(0x1a3),this[_0x405a7(0x183)],{'priority':_0x405a7(0x195)});}[_0x57996b(0x1a9)](_0x5665d1,_0x225cc5){return new _0x273a3a(_0x5665d1,_0x225cc5);}[_0x57996b(0x1a6)](_0x4aef8a){const _0x4d3fcd=_0x57996b;return new _0x118a79(_0x4aef8a,this[_0x4d3fcd(0x1bb)][_0x4d3fcd(0x19e)]);}[_0x57996b(0x1ab)](_0x15bb82){return new _0x68772c(_0x15bb82);}[_0x57996b(0x199)](_0x476ccc){return new _0x1df78f(_0x476ccc);}[_0x57996b(0x183)](_0x2138e3,_0x467289,_0x6001c3){const _0x23efad=_0x57996b;_0x6001c3?this[_0x23efad(0x188)]=!0x0:this[_0x23efad(0x188)]&&this[_0x23efad(0x1bc)][_0x23efad(0x1a2)]();}[_0x57996b(0x184)](_0x1881c4,_0x200acb){const _0x3f3aff=_0x57996b;this[_0x3f3aff(0x1bb)][_0x3f3aff(0x184)](_0x1881c4,_0x200acb);}[_0x57996b(0x19b)](_0x49444a){const _0x215ccb=_0x57996b;this[_0x215ccb(0x1bb)][_0x215ccb(0x19b)](_0x49444a);}[_0x57996b(0x182)](_0xf9385e,_0x3e0f9b){const _0x55eb31=_0x57996b;this[_0x55eb31(0x1bb)][_0x55eb31(0x182)](_0xf9385e,_0x3e0f9b);}[_0x57996b(0x1b3)](_0x66abba){const _0x5313b9=_0x57996b;this[_0x5313b9(0x1bc)][_0x5313b9(0x1b3)](_0x66abba);}[_0x57996b(0x186)](_0x3222c8){const _0x20c539=_0x57996b;this[_0x20c539(0x1bb)][_0x20c539(0x186)](_0x3222c8);}[_0x57996b(0x187)](){const _0x272a3d=_0x57996b;this[_0x272a3d(0x1bb)][_0x272a3d(0x19a)]();}[_0x57996b(0x1b4)](){const _0x315e91=_0x57996b;this[_0x315e91(0x1bb)][_0x315e91(0x1b0)]();}[_0x57996b(0x1ba)](_0x5c9f10,_0x4c69be,_0x5e4573){const _0x589df1=_0x57996b;this[_0x589df1(0x1bb)][_0x589df1(0x1ba)](_0x5c9f10,_0x4c69be,_0x5e4573);}[_0x57996b(0x1a4)](_0xf3cc6d){const _0x3c3442=_0x57996b;this[_0x3c3442(0x19c)][_0x3c3442(0x1a4)](_0xf3cc6d);}[_0x57996b(0x189)](_0x26f014){const _0x4e2d87=_0x57996b;this[_0x4e2d87(0x19c)][_0x4e2d87(0x189)](_0x26f014);}[_0x57996b(0x1ad)](){const _0x45de04=_0x57996b;this[_0x45de04(0x1bc)][_0x45de04(0x1af)]();}[_0x57996b(0x17f)](_0x46b6c3){const _0x5b0ea1=_0x57996b;this[_0x5b0ea1(0x1bb)][_0x5b0ea1(0x17f)](_0x46b6c3);}[_0x57996b(0x1a5)](_0x3fa27d){const _0x55c8a7=_0x57996b;this[_0x55c8a7(0x1bc)][_0x55c8a7(0x185)](_0x3fa27d);}[_0x57996b(0x180)](_0x1a813d,_0x19e799){const _0x2c20f4=_0x57996b;this[_0x2c20f4(0x19c)][_0x2c20f4(0x180)](_0x1a813d,_0x19e799);}[_0x57996b(0x1a0)](_0x412436){const _0x37face=_0x57996b;this[_0x37face(0x19c)][_0x37face(0x1a0)](_0x412436);}[_0x57996b(0x1b9)](){const _0x322fc3=_0x57996b;this[_0x322fc3(0x19c)][_0x322fc3(0x1b9)]();}[_0x57996b(0x1a8)](_0x2d02b8){const _0x5b4348=_0x57996b;this[_0x5b4348(0x19c)][_0x5b4348(0x1a8)](_0x2d02b8);}[_0x57996b(0x193)](_0x39c7ba,_0x6b0f68,_0x46fe13,_0x12dbba){const _0x2c0d8c=_0x57996b;this[_0x2c0d8c(0x1bb)][_0x2c0d8c(0x193)](_0x39c7ba,_0x6b0f68,_0x46fe13,_0x12dbba);}[_0x57996b(0x198)](_0x1640c2){const _0x554d7d=_0x57996b;this[_0x554d7d(0x1bb)][_0x554d7d(0x198)](_0x1640c2);}[_0x57996b(0x1b2)](){const _0x39266b=_0x57996b;this[_0x39266b(0x1bc)][_0x39266b(0x1a2)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x279a10=_0x1fc2;(function(_0x12eecd,_0x26c909){const _0x83a234=_0x1fc2,_0x928649=_0x12eecd();while(!![]){try{const _0x1050eb=-parseInt(_0x83a234(0xa2))/0x1+-parseInt(_0x83a234(0xe6))/0x2*(parseInt(_0x83a234(0xad))/0x3)+-parseInt(_0x83a234(0xc4))/0x4*(parseInt(_0x83a234(0xcb))/0x5)+parseInt(_0x83a234(0xc6))/0x6*(-parseInt(_0x83a234(0xa7))/0x7)+parseInt(_0x83a234(0xce))/0x8*(-parseInt(_0x83a234(0xe9))/0x9)+-parseInt(_0x83a234(0xbf))/0xa+parseInt(_0x83a234(0x9d))/0xb;if(_0x1050eb===_0x26c909)break;else _0x928649['push'](_0x928649['shift']());}catch(_0x630429){_0x928649['push'](_0x928649['shift']());}}}(_0x3cd9,0x1a49b));import{CKEditorError as _0x4a028a,logWarning as _0x28ae64,scrollViewportToShowTarget as _0x46fdf8}from'ckeditor5/src/utils.js';import{View as _0x28867d}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0xa84e19}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x255221}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3f5828}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x2e1e7e}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x463ad4}from'./feed/aichatfeederroritemview.js';function _0x1fc2(_0x2f8e6a,_0x126f8c){const _0x3cd981=_0x3cd9();return _0x1fc2=function(_0x1fc282,_0x43d914){_0x1fc282=_0x1fc282-0x9b;let _0x258a0d=_0x3cd981[_0x1fc282];return _0x258a0d;},_0x1fc2(_0x2f8e6a,_0x126f8c);}import{AIChatFeedInteractionHeaderView as _0x3dcf63}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x4ba47d}from'../utils/scrollmanager.js';import{AISkeletonView as _0x126b68,SKELETON_DEFINITIONS as _0x3e7a52}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x54046a}from'../../aicore/ui/aispinner.js';function _0x3cd9(){const _0x1918ca=['231582hZoWeZ','startAutoScroll','ck-ai-chat__feed','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','start','ck-ai-chat__loader-text','remove','_setupTemplate','setTemplate','user-message','find','isLoadingSkeletonVisible','updateSuggestionItem','_createSkeletonLoader','stopAutoScroll','loadingMessage','locale','markItemAsDone','1027320ZYuzjy','createCollection','options','markAsDone','clear','495916uQEziq','extendTemplate','282zEHQYN','ai-chat-feed-view-item-not-a-suggestion-item','ai-suggestion-reply','getPartView','removeItem','5XLHFAP','ck-ai-chat__loader','getItemIds','14312QZahhN','setLoadingMessage','getItemById','interaction-header','span','updateSuggestionPartState','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','scrollToSuggestion','scrollManager','isTrackChangesOn','updatePartState','bind','element','stop','ai-reply','_createTemplateChildren','toggleLoadingSkeleton','div','set','ck-hidden','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','updateSources','isPending','bindTemplate','4LDeZFI','isVisible','ck-ai-chat__feed__items','828iAKesl','destroy','_createFeedItems','render','map','add','10713472gLrFMY','updateContent','ai-chat-feed-view-item-not-a-reply-item','addItem','_createFeedLoader','191199blspdJ','updateReplyItem','delegate','aiFeed','_createLoaderChildren','19271YjRcxC','_bodyCollection','children','includes','updateWebSources','ai-chat-feed-view-item-not-found'];_0x3cd9=function(){return _0x1918ca;};return _0x3cd9();}export class AIChatFeedView extends _0x28867d{[_0x279a10(0xa9)];[_0x279a10(0xd6)];[_0x279a10(0xa8)];constructor(_0x36ad99,_0x26af27){const _0x370bd5=_0x279a10;super(_0x36ad99),this[_0x370bd5(0xa8)]=_0x26af27,this[_0x370bd5(0xe0)](_0x370bd5(0xe4),!0x1),this[_0x370bd5(0xe0)](_0x370bd5(0xbc),''),this[_0x370bd5(0xe0)](_0x370bd5(0xb8),!0x1),this[_0x370bd5(0xe0)](_0x370bd5(0xd7),!0x1),this[_0x370bd5(0xa9)]=this[_0x370bd5(0xc0)](),this[_0x370bd5(0xa9)][_0x370bd5(0xa4)](..._0xa84e19)['to'](this),this[_0x370bd5(0xb4)]();}[_0x279a10(0xec)](){const _0x347a7a=_0x279a10;super[_0x347a7a(0xec)](),this[_0x347a7a(0xd6)]=new _0x4ba47d(this[_0x347a7a(0xda)]);}[_0x279a10(0xea)](){const _0x2ae2f8=_0x279a10;super[_0x2ae2f8(0xea)](),this[_0x2ae2f8(0xd6)][_0x2ae2f8(0xea)]();}[_0x279a10(0xc3)](){const _0x2d24ea=_0x279a10;this[_0x2d24ea(0xa9)][_0x2d24ea(0xc3)]();}[_0x279a10(0xa0)](_0x2e4218,_0x5a5f1d){const _0x10f786=_0x279a10;let _0x4c0c69;_0x10f786(0xdc)===_0x2e4218?_0x4c0c69=new _0x3f5828(this[_0x10f786(0xbd)],_0x5a5f1d):_0x10f786(0xc8)===_0x2e4218?(_0x4c0c69=new _0x255221(this[_0x10f786(0xbd)],_0x5a5f1d),_0x4c0c69[_0x10f786(0xd9)](_0x10f786(0xd7))['to'](this,_0x10f786(0xd7))):_0x4c0c69=_0x10f786(0xb6)===_0x2e4218?new _0x2e1e7e(this[_0x10f786(0xbd)],_0x5a5f1d,this[_0x10f786(0xa8)]):_0x10f786(0xd1)===_0x2e4218?new _0x3dcf63(this[_0x10f786(0xbd)],_0x5a5f1d):new _0x463ad4(_0x5a5f1d),this[_0x10f786(0xa9)][_0x10f786(0x9c)](_0x4c0c69);}async[_0x279a10(0xa3)]({id:_0x4cb309,parsedContent:_0x847a5f,renderingStrategy:_0x309898,abortSignal:_0x2bb1ce}){const _0x3b7229=_0x279a10,_0x103376=this[_0x3b7229(0xd0)](_0x4cb309);if(!(_0x103376 instanceof _0x3f5828))throw new _0x4a028a(_0x3b7229(0x9f),null,{'itemView':_0x103376,'id':_0x4cb309,'parsedContent':_0x847a5f});await _0x103376[_0x3b7229(0x9e)]({'parsedContent':_0x847a5f,'renderingStrategy':_0x309898,'abortSignal':_0x2bb1ce});}async[_0x279a10(0xab)](_0x569a63,_0x165c4e){const _0x5b188f=_0x279a10,_0x187c78=this[_0x5b188f(0xd0)](_0x569a63);if(_0x187c78 instanceof _0x255221)_0x187c78[_0x5b188f(0xe3)](_0x165c4e);else{if(!(_0x187c78 instanceof _0x3f5828))throw new _0x4a028a(_0x5b188f(0xb0),null,{'itemView':_0x187c78,'id':_0x569a63,'sources':_0x165c4e});_0x187c78[_0x5b188f(0xe3)](_0x165c4e);}}async[_0x279a10(0xb9)]({id:_0x148869,parts:_0xb6c0a4,renderingStrategy:_0xa0ea70,abortSignal:_0x384dba}){const _0x46a65b=_0x279a10,_0x5184d0=this[_0x46a65b(0xd0)](_0x148869);if(!(_0x5184d0 instanceof _0x255221))throw new _0x4a028a(_0x46a65b(0xc7),null,{'itemView':_0x5184d0,'id':_0x148869,'parts':_0xb6c0a4});await _0x5184d0[_0x46a65b(0x9e)]({'parts':_0xb6c0a4,'renderingStrategy':_0xa0ea70,'abortSignal':_0x384dba});}[_0x279a10(0xd3)]({id:_0x424b45,index:_0x2ea87a,state:_0x3c56e8}){const _0x36bf5d=_0x279a10,_0x2ef060=this[_0x36bf5d(0xd0)](_0x424b45);if(!(_0x2ef060 instanceof _0x255221))throw new _0x4a028a(_0x36bf5d(0xc7),this,{'id':_0x424b45});_0x2ef060[_0x36bf5d(0xd8)](_0x2ea87a,_0x3c56e8);}[_0x279a10(0xbe)](_0x5c9116){const _0x2ace23=_0x279a10;this[_0x2ace23(0xd0)](_0x5c9116)[_0x2ace23(0xc2)]();}[_0x279a10(0xcd)](){const _0x14090f=_0x279a10;return this[_0x14090f(0xa9)][_0x14090f(0x9b)](_0x8bcf66=>_0x8bcf66[_0x14090f(0xc1)]['id']);}[_0x279a10(0xca)](_0x3e5be4){const _0x2d3358=_0x279a10;this[_0x2d3358(0xa9)][_0x2d3358(0xb3)](this[_0x2d3358(0xd0)](_0x3e5be4));}[_0x279a10(0xd5)](_0x437a0f,_0xa6d563){const _0x43ed92=_0x279a10,_0x5d777c=this[_0x43ed92(0xd0)](_0x437a0f);if(!(_0x5d777c instanceof _0x255221))return void _0x28ae64(_0x43ed92(0xe2),{'replyId':_0x437a0f,'partIndex':_0xa6d563});const _0x47d468=_0x5d777c[_0x43ed92(0xc9)](_0xa6d563);_0x47d468?_0x46fdf8({'target':_0x47d468[_0x43ed92(0xda)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x28ae64(_0x43ed92(0xd4),{'replyId':_0x437a0f,'partIndex':_0xa6d563});}[_0x279a10(0xb4)](){const _0x57b3b0=_0x279a10;this[_0x57b3b0(0xb5)]({'tag':_0x57b3b0(0xdf),'attributes':{'class':['ck',_0x57b3b0(0xaf)]},'children':this[_0x57b3b0(0xdd)]()});}[_0x279a10(0xdd)](){const _0x125582=_0x279a10,_0x1da4d4=this[_0x125582(0xba)]();return[this[_0x125582(0xeb)](),_0x1da4d4,this[_0x125582(0xa1)]()];}[_0x279a10(0xba)](){const _0x2a15ea=_0x279a10,_0x1d147b=new _0x126b68(this[_0x2a15ea(0xbd)],_0x3e7a52[_0x2a15ea(0xa5)]);return _0x1d147b[_0x2a15ea(0xc5)]({'attributes':{'class':[this[_0x2a15ea(0xe5)]['if'](_0x2a15ea(0xb8),_0x2a15ea(0xe1),_0x53697a=>!_0x53697a)]}}),_0x1d147b;}[_0x279a10(0xeb)](){const _0x5cbb0b=_0x279a10,_0x3a4383=new _0x28867d(this[_0x5cbb0b(0xbd)]);return _0x3a4383[_0x5cbb0b(0xb5)]({'tag':_0x5cbb0b(0xdf),'attributes':{'class':['ck',_0x5cbb0b(0xe8),this[_0x5cbb0b(0xe5)]['if'](_0x5cbb0b(0xb8),_0x5cbb0b(0xe1))]},'children':this[_0x5cbb0b(0xa9)]}),_0x3a4383;}[_0x279a10(0xa1)](){const _0xd590d3=_0x279a10,_0x40a211=new _0x28867d(this[_0xd590d3(0xbd)]);return _0x40a211[_0xd590d3(0xb5)]({'tag':_0xd590d3(0xdf),'attributes':{'class':['ck',_0xd590d3(0xcc),this[_0xd590d3(0xe5)]['if'](_0xd590d3(0xe4),_0xd590d3(0xe1),_0x445356=>!_0x445356)]},'children':this[_0xd590d3(0xa6)]()}),_0x40a211;}[_0x279a10(0xa6)](){const _0x5512cd=_0x279a10,_0x4ef4a2=new _0x54046a();return _0x4ef4a2[_0x5512cd(0xe7)]=!0x0,[_0x4ef4a2,{'tag':_0x5512cd(0xd2),'attributes':{'class':['ck',_0x5512cd(0xb2)]},'children':[{'text':this[_0x5512cd(0xe5)]['to'](_0x5512cd(0xbc))}]}];}[_0x279a10(0xd0)](_0x164e90){const _0x4ea862=_0x279a10,_0x28ccfb=this[_0x4ea862(0xa9)][_0x4ea862(0xb7)](_0x3f8db2=>_0x3f8db2[_0x4ea862(0xc1)]['id'][_0x4ea862(0xaa)](_0x164e90));if(!_0x28ccfb)throw new _0x4a028a(_0x4ea862(0xac),this,{'id':_0x164e90});return _0x28ccfb;}[_0x279a10(0xcf)](_0xc551ac){const _0x1286d2=_0x279a10;this[_0x1286d2(0xe0)](_0x1286d2(0xbc),_0xc551ac);}[_0x279a10(0xde)](_0x573c9e){const _0x311398=_0x279a10;this[_0x311398(0xe0)](_0x311398(0xb8),_0x573c9e);}[_0x279a10(0xae)](){const _0x143379=_0x279a10;this[_0x143379(0xd6)][_0x143379(0xb1)]();}[_0x279a10(0xbb)](){const _0x35c8d3=_0x279a10;this[_0x35c8d3(0xd6)][_0x35c8d3(0xdb)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x29fc6e=_0x4de1;function _0xee6a(){const _0x57853b=['7081954yNcifN','startConversation','AI_CHAT_HEADING','AI_CHAT_LABEL_NEW_CHAT','92398dzfZfK','276TVCfsB','set','801DHXChI','add','13LRoEdl','children','61540LZImHN','execute','_createStartConversationButton','26553bLDUmb','ck-ai-header\x20ck-ai-header_chat','5546604ufRzkN','conversationStartButton','155ksfjVe','fire','156540PcqiDS','locale','resizeButton','ck-ai-chat__start-conversation','3801704GvDwxJ','isMaximized'];_0xee6a=function(){return _0x57853b;};return _0xee6a();}(function(_0x56193c,_0x2e28b1){const _0x3432cb=_0x4de1,_0x1e7018=_0x56193c();while(!![]){try{const _0x1dbbe4=parseInt(_0x3432cb(0x97))/0x1*(-parseInt(_0x3432cb(0x92))/0x2)+-parseInt(_0x3432cb(0x82))/0x3*(-parseInt(_0x3432cb(0x93))/0x4)+-parseInt(_0x3432cb(0x86))/0x5*(-parseInt(_0x3432cb(0x88))/0x6)+-parseInt(_0x3432cb(0x84))/0x7+parseInt(_0x3432cb(0x8c))/0x8+-parseInt(_0x3432cb(0x95))/0x9*(-parseInt(_0x3432cb(0x99))/0xa)+-parseInt(_0x3432cb(0x8e))/0xb;if(_0x1dbbe4===_0x2e28b1)break;else _0x1e7018['push'](_0x1e7018['shift']());}catch(_0xd15133){_0x1e7018['push'](_0x1e7018['shift']());}}}(_0xee6a,0x63097));import{ButtonView as _0x4c15d5,FormHeaderView as _0x373d88}from'ckeditor5/src/ui.js';import{IconPlus as _0x507f2b,IconAIChat as _0x304244}from'ckeditor5/src/icons.js';function _0x4de1(_0x2dce1c,_0x2d9df7){const _0xee6a41=_0xee6a();return _0x4de1=function(_0x4de187,_0x52daf8){_0x4de187=_0x4de187-0x80;let _0x44cac4=_0xee6a41[_0x4de187];return _0x44cac4;},_0x4de1(_0x2dce1c,_0x2d9df7);}import{getTranslation as _0x1f04b1}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x1aa6a5}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x373d88{[_0x29fc6e(0x85)];[_0x29fc6e(0x8a)];constructor(_0x2a01e1,_0x19f761){const _0x21d56b=_0x29fc6e;super(_0x2a01e1,{'label':_0x1f04b1(_0x2a01e1,_0x21d56b(0x90)),'class':_0x21d56b(0x83),'icon':_0x304244}),this[_0x21d56b(0x94)](_0x21d56b(0x8d),!0x1),this[_0x21d56b(0x85)]=this[_0x21d56b(0x81)](_0x2a01e1),this[_0x21d56b(0x98)][_0x21d56b(0x96)](this[_0x21d56b(0x85)]),_0x19f761&&(this[_0x21d56b(0x8a)]=_0x1aa6a5(_0x2a01e1,this),this[_0x21d56b(0x98)][_0x21d56b(0x96)](this[_0x21d56b(0x8a)]));}[_0x29fc6e(0x81)](_0xd48dce){const _0x181133=_0x29fc6e,_0x539043=new _0x4c15d5(_0xd48dce);return _0x539043[_0x181133(0x94)]({'label':_0x1f04b1(this[_0x181133(0x89)],_0x181133(0x91)),'withText':!0x0,'icon':_0x507f2b,'class':_0x181133(0x8b)}),_0x539043['on'](_0x181133(0x80),()=>{const _0x1acb68=_0x181133;this[_0x1acb68(0x87)](_0x1acb68(0x8f));}),_0x539043;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x5344(){var _0x4c4998=['uiLanguageDirection','646446ogrROw','detachFromDom','populateSourceResourceBalloon','chatDisclaimer','16650QuaLCQ','div','9339nvJphM','delegate','_bodyCollection','2475658eTunIF','attachToDom','ck-rounded-corners','9941240gHLTQv','3901541TsBGqI','645312wevHfp','10ZhRpEZ','ck-ai-chat','chatHeader','destroy','chatFeed','10539JJEDjI','setTemplate','chatControls','1756xNIMpG','ck-reset_all','closeSourceResourceBalloon'];_0x5344=function(){return _0x4c4998;};return _0x5344();}var _0x2dd37d=_0x26d6;(function(_0x7d5e1f,_0x1b446e){var _0x1cdb22=_0x26d6,_0xc8d7fc=_0x7d5e1f();while(!![]){try{var _0x2c114b=-parseInt(_0x1cdb22(0xb5))/0x1+parseInt(_0x1cdb22(0xb0))/0x2+parseInt(_0x1cdb22(0xad))/0x3*(-parseInt(_0x1cdb22(0xbe))/0x4)+parseInt(_0x1cdb22(0xb6))/0x5*(parseInt(_0x1cdb22(0xc2))/0x6)+parseInt(_0x1cdb22(0xb4))/0x7+-parseInt(_0x1cdb22(0xb3))/0x8+parseInt(_0x1cdb22(0xbb))/0x9*(parseInt(_0x1cdb22(0xab))/0xa);if(_0x2c114b===_0x1b446e)break;else _0xc8d7fc['push'](_0xc8d7fc['shift']());}catch(_0x5793be){_0xc8d7fc['push'](_0xc8d7fc['shift']());}}}(_0x5344,0xac517));function _0x26d6(_0x46d543,_0x4f75e6){var _0x53441f=_0x5344();return _0x26d6=function(_0x26d663,_0x5943a7){_0x26d663=_0x26d663-0xab;var _0x2f2612=_0x53441f[_0x26d663];return _0x2f2612;},_0x26d6(_0x46d543,_0x4f75e6);}import{View as _0x45f3f5,BodyCollection as _0x2fe29a}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x26ea0a}from'../utils/eventnames.js';import{AIChatFeedView as _0x28befb}from'./aichatfeedview.js';import{AIChatControlsView as _0x541ed5}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x173b53}from'./aichatheaderview.js';import{AIDisclaimerView as _0x24c13b}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x45f3f5{[_0x2dd37d(0xb8)];[_0x2dd37d(0xba)];[_0x2dd37d(0xbd)];[_0x2dd37d(0xc5)];[_0x2dd37d(0xaf)];constructor(_0x33cb61,_0x46e0ae){var _0x31e153=_0x2dd37d;super(_0x33cb61),this[_0x31e153(0xaf)]=new _0x2fe29a(_0x33cb61),this[_0x31e153(0xaf)][_0x31e153(0xb1)](),this[_0x31e153(0xb8)]=new _0x173b53(_0x33cb61,_0x46e0ae),this[_0x31e153(0xb8)][_0x31e153(0xae)](..._0x26ea0a)['to'](this),this[_0x31e153(0xba)]=new _0x28befb(_0x33cb61,this[_0x31e153(0xaf)]),this[_0x31e153(0xba)][_0x31e153(0xae)](..._0x26ea0a)['to'](this),this[_0x31e153(0xbd)]=new _0x541ed5(_0x33cb61,this[_0x31e153(0xaf)]),this[_0x31e153(0xbd)][_0x31e153(0xae)](..._0x26ea0a)['to'](this),this[_0x31e153(0xc5)]=new _0x24c13b(_0x33cb61),this[_0x31e153(0xbc)]({'tag':_0x31e153(0xac),'attributes':{'class':['ck',_0x31e153(0xbf),_0x31e153(0xb7),_0x31e153(0xb2)],'dir':_0x33cb61[_0x31e153(0xc1)]},'children':[this[_0x31e153(0xb8)],this[_0x31e153(0xba)],this[_0x31e153(0xbd)],this[_0x31e153(0xc5)]]});}[_0x2dd37d(0xc4)](_0x4e19ee,_0x2abd2d,_0xb0ca7e,_0x393534){var _0x9bd007=_0x2dd37d;this[_0x9bd007(0xbd)][_0x9bd007(0xc4)](_0x4e19ee,_0x2abd2d,_0xb0ca7e,_0x393534);}[_0x2dd37d(0xc0)](_0x463916){var _0x2753ff=_0x2dd37d;this[_0x2753ff(0xbd)][_0x2753ff(0xc0)](_0x463916);}[_0x2dd37d(0xb9)](){var _0x3989fe=_0x2dd37d;this[_0x3989fe(0xaf)][_0x3989fe(0xc3)](),super[_0x3989fe(0xb9)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x40cfd0=_0x5170;function _0x5170(_0x137084,_0x869867){const _0x30923a=_0x3092();return _0x5170=function(_0x517044,_0x3ec749){_0x517044=_0x517044-0xde;let _0xab6ab6=_0x30923a[_0x517044];return _0xab6ab6;},_0x5170(_0x137084,_0x869867);}(function(_0x4892f8,_0x2c0f39){const _0x2e33b8=_0x5170,_0x5830c0=_0x4892f8();while(!![]){try{const _0x585761=parseInt(_0x2e33b8(0xf4))/0x1*(-parseInt(_0x2e33b8(0x13f))/0x2)+-parseInt(_0x2e33b8(0x170))/0x3+parseInt(_0x2e33b8(0xde))/0x4*(-parseInt(_0x2e33b8(0x154))/0x5)+parseInt(_0x2e33b8(0x129))/0x6+parseInt(_0x2e33b8(0x16c))/0x7+-parseInt(_0x2e33b8(0x15b))/0x8*(parseInt(_0x2e33b8(0x147))/0x9)+parseInt(_0x2e33b8(0x109))/0xa;if(_0x585761===_0x2c0f39)break;else _0x5830c0['push'](_0x5830c0['shift']());}catch(_0x278df7){_0x5830c0['push'](_0x5830c0['shift']());}}}(_0x3092,0x59f48));function _0x3092(){const _0x5e4135=['getComputedStyle','overflowContainer','999060Fmyieg','_createMockButton','clientWidth','pop','disconnect','right','bottom','style','_createShowMoreButtonView','reorganizeChips','innerWidth','auto','isOn','_repinBalloonPanel','offsetWidth','_isContainerVisible','visibility','body','observe','_calculateContainerWidth','showMoreButton','push','25656OYjkvo','_createShowMoreButton','hidden','_overflowChips','+\x201','_targetContainer','_updateShowMoreButtonVisibility','tagName','15786jNerJs','display','_distributeChips','cloneNode','showBalloonPanel','calculationContainer','destroy','add','innerHeight','block\x20!important','content','element','_applyOverflowResults','5Utabfl','pin','includes','-9999px','controlsButton','_parentView','ck-calculation-container','536PerowT','_showMoreButtonView','boxSizing','setTemplate','_createContainerElements','execute','border-box','_showMoreBalloonPanelView','abs','visible','absolute','innerHTML','undefined','show','disableAnimationOnEnter','div','_setupVisibilityObserver','5132876LaBRFA','_updateOverflowUI','documentElement','setContainerElement','1942281EKhzUc','from','2815496yhGiRo','render','classList','children','0px','zIndex','_pendingCalculation','_createShowMoreBalloonPanelView','_intersectionObserver','_calculateOverflowInContainer','.ck-ai-chat','overflowChips','length','forEach','_visibleChips','rowDetectionTolerance','button','_config','width','some','_updateBalloonContent','none','10zjKhhx','showMoreLabelPrefix','_handleShowMoreButtonClick','label','createElement','50px','className','left','pointerEvents','top','appendChild','_containerElement','remove','_ancestorsToRestore','cssClasses','showMoreBalloon','set','querySelector','height','_checkAndHandleOverflow','isIntersecting','10657770pxPuSp','parentElement','hideBalloonPanel','getBoundingClientRect','block','isConnected','toLowerCase','300px','_locale','_renderChipsAndCountRows','filter','_createCalculationContainer','_bodyCollection','_restoreAncestorVisibility','maxVisibleRows','clear','opacity','isVisible','_makeAncestorsVisible','slice','position','textContent','showMoreButtonView','_testButtonFit','visible\x20!important','_applyCalculationStyles','_findTargetContainer','hide','extendTemplate','clientHeight'];_0x3092=function(){return _0x5e4135;};return _0x3092();}import{View as _0x344de5,BalloonPanelView as _0x2c75e1,ButtonView as _0x323fb2,clickOutsideHandler as _0x4dfbf2}from'ckeditor5/src/ui.js';import{Collection as _0x476ac6}from'ckeditor5/src/utils.js';const wn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},_n=_0x40cfd0(0x110);export class AIChatChipsOverflowManager{[_0x40cfd0(0x111)];[_0x40cfd0(0xef)];[_0x40cfd0(0xec)];[_0x40cfd0(0x142)];[_0x40cfd0(0x15c)]=null;[_0x40cfd0(0x162)]=null;[_0x40cfd0(0xff)]=null;[_0x40cfd0(0x115)];[_0x40cfd0(0x159)]=null;[_0x40cfd0(0xe6)]=null;[_0x40cfd0(0xe4)]=!0x1;constructor(_0x33db8a,_0x298836,_0x5ab03b,_0xb217dc,_0x3db2e3){const _0x58a174=_0x40cfd0;this[_0x58a174(0x111)]=_0x33db8a,this[_0x58a174(0xec)]=_0x298836,this[_0x58a174(0xef)]={...wn,..._0x5ab03b,'cssClasses':{'controlsButton':'','calculationContainer':_0x58a174(0x15a),..._0x5ab03b[_0x58a174(0x102)]}},this[_0x58a174(0x142)]=new _0x476ac6(),this[_0x58a174(0x115)]=_0xb217dc,this[_0x58a174(0x159)]=_0x3db2e3||null;}[_0x40cfd0(0x16f)](_0xfe6d8c){const _0x201a00=_0x40cfd0;this[_0x201a00(0xe6)]&&(this[_0x201a00(0xe6)][_0x201a00(0x12d)](),this[_0x201a00(0xe6)]=null),this[_0x201a00(0xff)]=_0xfe6d8c,this[_0x201a00(0x16b)]();}get[_0x40cfd0(0x11f)](){const _0x28a2b4=_0x40cfd0;return this[_0x28a2b4(0x15c)];}get[_0x40cfd0(0xe9)](){const _0xb164f0=_0x40cfd0;return this[_0xb164f0(0x142)];}[_0x40cfd0(0x132)](){requestAnimationFrame(()=>{const _0x51761b=_0x5170;this[_0x51761b(0x107)]();});}[_0x40cfd0(0x14b)](){const _0x5b93d2=_0x40cfd0;this[_0x5b93d2(0x15c)]&&this[_0x5b93d2(0x162)]&&(this[_0x5b93d2(0xf2)](),this[_0x5b93d2(0x15c)][_0x5b93d2(0x135)]=!0x0,this[_0x5b93d2(0x162)][_0x5b93d2(0x168)](),this[_0x5b93d2(0x162)][_0x5b93d2(0x155)]({'target':this[_0x5b93d2(0x15c)][_0x5b93d2(0x152)],'limiter':document[_0x5b93d2(0x105)](_0x5b93d2(0xe8))}));}[_0x40cfd0(0x10b)](){const _0x1b7d04=_0x40cfd0;this[_0x1b7d04(0x15c)]&&this[_0x1b7d04(0x162)]&&(this[_0x1b7d04(0x15c)][_0x1b7d04(0x135)]=!0x1,this[_0x1b7d04(0x162)][_0x1b7d04(0x124)]());}[_0x40cfd0(0x118)](){const _0x3ed850=_0x40cfd0;this[_0x3ed850(0x142)][_0x3ed850(0x118)](),this[_0x3ed850(0x10b)](),this[_0x3ed850(0x145)](),this[_0x3ed850(0x15c)]&&(this[_0x3ed850(0x15c)][_0x3ed850(0xf7)]=''),this[_0x3ed850(0x162)]&&this[_0x3ed850(0x162)][_0x3ed850(0x151)][_0x3ed850(0x118)]();}[_0x40cfd0(0x14d)](){const _0x5ee2cc=_0x40cfd0;this[_0x5ee2cc(0xe6)]&&(this[_0x5ee2cc(0xe6)][_0x5ee2cc(0x12d)](),this[_0x5ee2cc(0xe6)]=null),this[_0x5ee2cc(0x15c)]&&(this[_0x5ee2cc(0x15c)][_0x5ee2cc(0x14d)](),this[_0x5ee2cc(0x15c)]=null),this[_0x5ee2cc(0x162)]&&(this[_0x5ee2cc(0x162)][_0x5ee2cc(0x14d)](),this[_0x5ee2cc(0x162)]=null);}[_0x40cfd0(0x107)](){const _0xa7c93b=_0x40cfd0;if(!this[_0xa7c93b(0xff)])return;if(!this[_0xa7c93b(0x138)]())return void(this[_0xa7c93b(0xe4)]=!0x0);this[_0xa7c93b(0xe4)]=!0x1;const _0x28118c=[...this[_0xa7c93b(0xec)],...this[_0xa7c93b(0x142)]],_0x16aaa9=this[_0xa7c93b(0x114)](),_0x3f6e66=this[_0xa7c93b(0xe7)](_0x16aaa9,_0x28118c),_0x5a3c04=_0x16aaa9[_0xa7c93b(0x101)];_0x5a3c04&&this[_0xa7c93b(0x116)](_0x5a3c04),_0x16aaa9[_0xa7c93b(0x100)](),this[_0xa7c93b(0x153)](_0x28118c,_0x3f6e66);}[_0x40cfd0(0x140)](){const _0x3f12a2=_0x40cfd0;this[_0x3f12a2(0x15c)]=this[_0x3f12a2(0x131)](),this[_0x3f12a2(0x162)]=this[_0x3f12a2(0xe5)](),this[_0x3f12a2(0x15c)][_0x3f12a2(0xdf)](),this[_0x3f12a2(0xff)][_0x3f12a2(0xfe)](this[_0x3f12a2(0x15c)][_0x3f12a2(0x152)]),this[_0x3f12a2(0x15c)]['on'](_0x3f12a2(0x160),()=>{const _0x584bd7=_0x3f12a2;this[_0x584bd7(0xf6)]();}),_0x4dfbf2({'emitter':this[_0x3f12a2(0x162)],'contextElements':[this[_0x3f12a2(0x162)][_0x3f12a2(0x152)],this[_0x3f12a2(0x15c)][_0x3f12a2(0x152)]],'callback':()=>this[_0x3f12a2(0x10b)](),'activator':()=>this[_0x3f12a2(0x15c)][_0x3f12a2(0x135)]});}[_0x40cfd0(0x131)](){const _0x219910=_0x40cfd0,_0x3489f3=new _0x323fb2(this[_0x219910(0x111)]);_0x3489f3[_0x219910(0x104)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x4e7587=[this[_0x219910(0xef)][_0x219910(0x102)][_0x219910(0x13d)]];return this[_0x219910(0xef)][_0x219910(0x102)][_0x219910(0x158)]&&_0x4e7587[_0x219910(0x13e)](this[_0x219910(0xef)][_0x219910(0x102)][_0x219910(0x158)]),_0x3489f3[_0x219910(0x125)]({'attributes':{'class':_0x4e7587}}),_0x3489f3;}[_0x40cfd0(0xe5)](){const _0x5be973=_0x40cfd0,_0x44f4bc=new _0x2c75e1(this[_0x5be973(0x111)]);return _0x44f4bc[_0x5be973(0x125)]({'attributes':{'class':this[_0x5be973(0xef)][_0x5be973(0x102)][_0x5be973(0x103)]}}),this[_0x5be973(0x115)][_0x5be973(0x14e)](_0x44f4bc),_0x44f4bc;}[_0x40cfd0(0xf2)](){const _0x34859b=_0x40cfd0;if(this[_0x34859b(0x162)]&&(this[_0x34859b(0x162)][_0x34859b(0x151)][_0x34859b(0x118)](),this[_0x34859b(0x142)][_0x34859b(0xea)]>0x0)){this[_0x34859b(0x142)][_0x34859b(0xeb)](_0x29b7cc=>{const _0x5b7ff6=_0x34859b;_0x29b7cc[_0x5b7ff6(0x169)]();});const _0x1d1c77=new _0x344de5(this[_0x34859b(0x111)]);_0x1d1c77[_0x34859b(0x15e)]({'tag':_0x34859b(0x16a),'attributes':{'class':this[_0x34859b(0xef)][_0x34859b(0x102)][_0x34859b(0x128)]},'children':this[_0x34859b(0x142)]}),this[_0x34859b(0x162)][_0x34859b(0x151)][_0x34859b(0x14e)](_0x1d1c77);}}[_0x40cfd0(0xf6)](){const _0x3b4aa5=_0x40cfd0;this[_0x3b4aa5(0x15c)][_0x3b4aa5(0x135)]?this[_0x3b4aa5(0x10b)]():this[_0x3b4aa5(0x14b)]();}[_0x40cfd0(0x145)](){const _0x388454=_0x40cfd0,_0x2f5515=this[_0x388454(0x142)][_0x388454(0xea)]>0x0;this[_0x388454(0x15c)]?.[_0x388454(0x152)]&&(this[_0x388454(0x15c)][_0x388454(0x152)][_0x388454(0x130)][_0x388454(0x148)]=_0x2f5515?'':_0x388454(0xf3));}[_0x40cfd0(0x136)](){const _0x8d1398=_0x40cfd0;this[_0x8d1398(0x15c)]?.[_0x8d1398(0x135)]&&this[_0x8d1398(0x162)]?.[_0x8d1398(0x11a)]&&this[_0x8d1398(0x15c)][_0x8d1398(0x152)]&&this[_0x8d1398(0x162)][_0x8d1398(0x155)]({'target':this[_0x8d1398(0x15c)][_0x8d1398(0x152)],'limiter':document[_0x8d1398(0x105)](_0x8d1398(0xe8))});}[_0x40cfd0(0x123)](_0x2b9376){const _0x55c8de=_0x40cfd0,_0x1b4836=this[_0x55c8de(0xff)]?.[_0x55c8de(0x146)][_0x55c8de(0x10f)]()||_0x55c8de(0x16a),_0x1b768c=this[_0x55c8de(0xff)]?.[_0x55c8de(0xe0)];if(_0x1b768c){const _0x6394bf=_0x1b768c[0x0]||'',_0x2652d4=_0x2b9376[_0x55c8de(0x105)]('.'+_0x6394bf),_0x564de1=_0x2b9376[_0x55c8de(0x105)](_0x1b4836);return _0x2652d4||_0x564de1||_0x2b9376;}return _0x2b9376[_0x55c8de(0x105)](_0x1b4836)||_0x2b9376;}[_0x40cfd0(0x13c)](){const _0x4d4f46=_0x40cfd0,_0x348c99=this[_0x4d4f46(0x159)]?.[_0x4d4f46(0x152)]||this[_0x4d4f46(0xff)];if(!_0x348c99)return _n;const _0x3fa22b=window[_0x4d4f46(0x127)](_0x348c99)[_0x4d4f46(0xf0)];if(_0x4d4f46(0x134)===_0x3fa22b||_0x4d4f46(0xe2)===_0x3fa22b||!_0x3fa22b){const _0x16db9b=_0x348c99[_0x4d4f46(0x10a)];if(_0x16db9b){const _0x34be58=window[_0x4d4f46(0x127)](_0x16db9b);return _0x4d4f46(0x134)!==_0x34be58[_0x4d4f46(0xf0)]?_0x34be58[_0x4d4f46(0xf0)]:_n;}return _n;}return _0x3fa22b;}[_0x40cfd0(0x122)](_0x408e9c,_0x56f05a){const _0x5efbca=_0x40cfd0;this[_0x5efbca(0xef)][_0x5efbca(0x102)][_0x5efbca(0x14c)]&&_0x408e9c[_0x5efbca(0xe0)][_0x5efbca(0x14e)](this[_0x5efbca(0xef)][_0x5efbca(0x102)][_0x5efbca(0x14c)]),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xf0)]=_0x56f05a,_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x11d)]=_0x5efbca(0x165),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xfd)]=_0x5efbca(0x157),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xfb)]=_0x5efbca(0x157),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x119)]='0',_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xfc)]=_0x5efbca(0xf3),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0xe3)]='-1',_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x139)]=_0x5efbca(0x121),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x148)]=_0x5efbca(0x150),_0x408e9c[_0x5efbca(0x130)][_0x5efbca(0x15d)]=_0x5efbca(0x161);}[_0x40cfd0(0x116)](_0x446f95){const _0x3b7afe=_0x40cfd0;_0x446f95[_0x3b7afe(0xeb)](({element:_0x722349,originalDisplay:_0xdea2c6,originalVisibility:_0x46e2f7})=>{const _0x596517=_0x3b7afe;_0x722349[_0x596517(0x130)][_0x596517(0x148)]=_0xdea2c6,_0x722349[_0x596517(0x130)][_0x596517(0x139)]=_0x46e2f7;});}[_0x40cfd0(0x11b)](_0x51681c){const _0x441f6d=_0x40cfd0,_0x37bd66=[];let _0x214522=_0x51681c;for(;_0x214522&&_0x214522!==document[_0x441f6d(0x13a)];){const _0x55c182=window[_0x441f6d(0x127)](_0x214522);_0x441f6d(0xf3)!==_0x55c182[_0x441f6d(0x148)]&&_0x441f6d(0x141)!==_0x55c182[_0x441f6d(0x139)]||(_0x37bd66[_0x441f6d(0x13e)]({'element':_0x214522,'originalDisplay':_0x214522[_0x441f6d(0x130)][_0x441f6d(0x148)],'originalVisibility':_0x214522[_0x441f6d(0x130)][_0x441f6d(0x139)]}),_0x214522[_0x441f6d(0x130)][_0x441f6d(0x148)]=_0x441f6d(0x10d),_0x214522[_0x441f6d(0x130)][_0x441f6d(0x139)]=_0x441f6d(0x164)),_0x214522=_0x214522[_0x441f6d(0x10a)];}return _0x37bd66;}[_0x40cfd0(0x15f)](){const _0x483372=_0x40cfd0;let _0x4d6fae,_0x2fd627;return this[_0x483372(0x159)]?.[_0x483372(0x152)]?(_0x4d6fae=this[_0x483372(0x159)][_0x483372(0x152)][_0x483372(0x14a)](!0x0),_0x2fd627=this[_0x483372(0x123)](_0x4d6fae)):(_0x4d6fae=document[_0x483372(0xf8)](_0x483372(0x16a)),_0x2fd627=_0x4d6fae),{'calculationContainer':_0x4d6fae,'targetContainer':_0x2fd627};}[_0x40cfd0(0x114)](){const _0x34eba2=_0x40cfd0,{calculationContainer:_0x442a5d,targetContainer:_0xa716cb}=this[_0x34eba2(0x15f)](),_0x5ab85a=this[_0x34eba2(0x13c)]();this[_0x34eba2(0x122)](_0x442a5d,_0x5ab85a);const _0x15743d=this[_0x34eba2(0x159)]?.[_0x34eba2(0x152)]||this[_0x34eba2(0xff)],_0x373998=_0x15743d?.[_0x34eba2(0x10a)];_0x373998?_0x373998[_0x34eba2(0xfe)](_0x442a5d):document[_0x34eba2(0x13a)][_0x34eba2(0xfe)](_0x442a5d),_0x442a5d[_0x34eba2(0x144)]=_0xa716cb;const _0x12b941=this[_0x34eba2(0x11b)](_0x373998||null);return _0x442a5d[_0x34eba2(0x137)],_0x442a5d[_0x34eba2(0x101)]=_0x12b941,_0x442a5d;}[_0x40cfd0(0xe7)](_0x598008,_0xafb743){const _0x7dfa8d=_0x40cfd0,_0x4f2554=_0x598008[_0x7dfa8d(0x144)]||_0x598008,_0x5bf7f9=[],{rowCount:_0x60e5f5}=this[_0x7dfa8d(0x112)](_0x4f2554,_0xafb743);if(_0x60e5f5<=this[_0x7dfa8d(0xef)][_0x7dfa8d(0x117)])return _0x5bf7f9;const _0x4144d2=_0xafb743[_0x7dfa8d(0x11c)]();for(;_0x4144d2[_0x7dfa8d(0xea)]>0x0;){if(this[_0x7dfa8d(0x120)](_0x598008,_0x4f2554,_0x4144d2)){const _0x47bf11=_0xafb743[_0x7dfa8d(0x113)](_0x203453=>!_0x4144d2[_0x7dfa8d(0x156)](_0x203453));_0x5bf7f9[_0x7dfa8d(0x13e)](..._0x47bf11);break;}if(!_0x4144d2[_0x7dfa8d(0x12c)]())break;}return _0x5bf7f9;}[_0x40cfd0(0x112)](_0x280161,_0x29b1d1){const _0xe6237d=_0x40cfd0;_0x280161[_0xe6237d(0x166)]='',_0x29b1d1[_0xe6237d(0xeb)](_0x4c71d3=>{const _0x2b49c3=_0xe6237d;if(_0x4c71d3[_0x2b49c3(0x152)]){const _0x2377c3=_0x4c71d3[_0x2b49c3(0x152)][_0x2b49c3(0x14a)](!0x0);_0x280161[_0x2b49c3(0xfe)](_0x2377c3);}}),_0x280161[_0xe6237d(0x137)];const _0x330f19=_0x280161[_0xe6237d(0xe1)],_0xc5c771=[];return Array[_0xe6237d(0x171)](_0x330f19)[_0xe6237d(0xeb)](_0x4fb3b9=>{const _0xd33734=_0xe6237d,_0x44a749=_0x4fb3b9[_0xd33734(0x10c)]()[_0xd33734(0xfd)];_0xc5c771[_0xd33734(0xf1)](_0x546838=>Math[_0xd33734(0x163)](_0x546838-_0x44a749)<this[_0xd33734(0xef)][_0xd33734(0xed)])||_0xc5c771[_0xd33734(0x13e)](_0x44a749);}),{'rowCount':_0xc5c771[_0xe6237d(0xea)]};}[_0x40cfd0(0x12a)](){const _0x41c9b6=_0x40cfd0,_0x5c4a52=document[_0x41c9b6(0xf8)](_0x41c9b6(0xee));return _0x5c4a52[_0x41c9b6(0xfa)]=this[_0x41c9b6(0xef)][_0x41c9b6(0x102)][_0x41c9b6(0x13d)],this[_0x41c9b6(0xef)][_0x41c9b6(0x102)][_0x41c9b6(0x158)]&&_0x5c4a52[_0x41c9b6(0xe0)][_0x41c9b6(0x14e)](this[_0x41c9b6(0xef)][_0x41c9b6(0x102)][_0x41c9b6(0x158)]),_0x5c4a52[_0x41c9b6(0x11e)]=_0x41c9b6(0x143),_0x5c4a52;}[_0x40cfd0(0x120)](_0x5e40d1,_0xb88651,_0x15cfcc){const _0x3601d9=_0x40cfd0;this[_0x3601d9(0x112)](_0xb88651,_0x15cfcc);const _0x54c71a=this[_0x3601d9(0x12a)]();_0x5e40d1[_0x3601d9(0xfe)](_0x54c71a),_0x5e40d1[_0x3601d9(0x137)];const _0x400852=[..._0xb88651[_0x3601d9(0xe1)],_0x54c71a],_0x2594e2=[];_0x400852[_0x3601d9(0xeb)](_0x23c3e7=>{const _0x1f8dda=_0x3601d9,_0x437df4=_0x23c3e7[_0x1f8dda(0x10c)]()[_0x1f8dda(0xfd)];_0x2594e2[_0x1f8dda(0xf1)](_0x13e462=>Math[_0x1f8dda(0x163)](_0x13e462-_0x437df4)<this[_0x1f8dda(0xef)][_0x1f8dda(0xed)])||_0x2594e2[_0x1f8dda(0x13e)](_0x437df4);});const _0xf8bab6=_0x2594e2[_0x3601d9(0xea)];return _0x54c71a[_0x3601d9(0x100)](),_0xf8bab6<=this[_0x3601d9(0xef)][_0x3601d9(0x117)];}[_0x40cfd0(0x149)](_0xfe18ff,_0x127e4f){const _0x476320=_0x40cfd0;this[_0x476320(0xec)][_0x476320(0x118)](),this[_0x476320(0x142)][_0x476320(0x118)](),_0xfe18ff[_0x476320(0xeb)](_0x3f00b4=>{const _0x49dfe5=_0x476320;_0x127e4f[_0x49dfe5(0x156)](_0x3f00b4)?this[_0x49dfe5(0x142)][_0x49dfe5(0x14e)](_0x3f00b4):this[_0x49dfe5(0xec)][_0x49dfe5(0x14e)](_0x3f00b4);});}[_0x40cfd0(0x16d)](_0x5d5429){const _0x1b63c7=_0x40cfd0;if(_0x5d5429>0x0&&!this[_0x1b63c7(0x15c)]&&this[_0x1b63c7(0x140)](),_0x5d5429>0x0&&this[_0x1b63c7(0x15c)]){const _0x2a2f64=''+this[_0x1b63c7(0xef)][_0x1b63c7(0xf5)]+(_0x5d5429<0x63?_0x5d5429:'99');this[_0x1b63c7(0x15c)][_0x1b63c7(0xf7)]=_0x2a2f64;}this[_0x1b63c7(0xf2)](),this[_0x1b63c7(0x145)](),this[_0x1b63c7(0x136)]();}[_0x40cfd0(0x153)](_0x55ce17,_0x4048ea){const _0x1b4046=_0x40cfd0;this[_0x1b4046(0x149)](_0x55ce17,_0x4048ea),this[_0x1b4046(0x16d)](_0x4048ea[_0x1b4046(0xea)]);}[_0x40cfd0(0x16b)](){const _0x47288c=_0x40cfd0;this[_0x47288c(0xff)]&&_0x47288c(0x167)!=typeof IntersectionObserver&&(this[_0x47288c(0xe6)]=new IntersectionObserver(_0xab17b8=>{const _0x29cbf6=_0x47288c;_0xab17b8[0x0][_0x29cbf6(0x108)]&&this[_0x29cbf6(0xe4)]&&requestAnimationFrame(()=>{const _0x22ba89=_0x29cbf6;this[_0x22ba89(0x107)]();});},{'threshold':0.01,'rootMargin':_0x47288c(0xf9)}),this[_0x47288c(0xe6)][_0x47288c(0x13b)](this[_0x47288c(0xff)]));}[_0x40cfd0(0x138)](){const _0x10d65a=_0x40cfd0;if(!this[_0x10d65a(0xff)])return!0x1;if(!this[_0x10d65a(0xff)][_0x10d65a(0x10e)])return!0x1;const _0x272b38=this[_0x10d65a(0xff)][_0x10d65a(0x10c)]();if(0x0===_0x272b38[_0x10d65a(0xf0)]||0x0===_0x272b38[_0x10d65a(0x106)])return!0x1;const _0x3149d1=window[_0x10d65a(0x14f)]||document[_0x10d65a(0x16e)][_0x10d65a(0x126)],_0x3bb631=window[_0x10d65a(0x133)]||document[_0x10d65a(0x16e)][_0x10d65a(0x12b)],_0x7d8459=0xc8;return _0x272b38[_0x10d65a(0x12f)]>=-0xc8&&_0x272b38[_0x10d65a(0xfd)]<=_0x3149d1+_0x7d8459&&_0x272b38[_0x10d65a(0x12e)]>=-0xc8&&_0x272b38[_0x10d65a(0xfb)]<=_0x3bb631+_0x7d8459;}}
|
|
23
|
+
const _0x483829=_0xde92;(function(_0x393971,_0x264d82){const _0x5c8c17=_0xde92,_0x2c488b=_0x393971();while(!![]){try{const _0x126a8d=parseInt(_0x5c8c17(0xc3))/0x1+parseInt(_0x5c8c17(0x76))/0x2+parseInt(_0x5c8c17(0x8c))/0x3+-parseInt(_0x5c8c17(0xb7))/0x4*(parseInt(_0x5c8c17(0x7e))/0x5)+-parseInt(_0x5c8c17(0xab))/0x6*(-parseInt(_0x5c8c17(0x8a))/0x7)+parseInt(_0x5c8c17(0x9f))/0x8+-parseInt(_0x5c8c17(0x8d))/0x9*(parseInt(_0x5c8c17(0xcb))/0xa);if(_0x126a8d===_0x264d82)break;else _0x2c488b['push'](_0x2c488b['shift']());}catch(_0x37c62e){_0x2c488b['push'](_0x2c488b['shift']());}}}(_0xc0f4,0xc75a9));function _0xc0f4(){const _0x2b58ad=['pop','body','length','1280810yWSvFI','set','zIndex','_restoreAncestorVisibility','block\x20!important','innerWidth','_visibleChips','from','2126640QISHPe','_createShowMoreBalloonPanelView','auto','isVisible','_parentView','children','observe','_ancestorsToRestore','hidden','width','_containerElement','_updateShowMoreButtonVisibility','render','appendChild','_applyCalculationStyles','_showMoreButtonView','abs','toLowerCase','_showMoreBalloonPanelView','none','50px','_createShowMoreButton','createElement','button','_createContainerElements','_findTargetContainer','pointerEvents','_intersectionObserver','maxVisibleRows','setTemplate','disconnect','display','slice','opacity','0px','clientHeight','clientWidth','clear','right','label','visibility','element','showMoreButtonView','position','_updateOverflowUI','_createShowMoreButtonView','filter','showBalloonPanel','_updateBalloonContent','showMoreBalloon','content','boxSizing','getBoundingClientRect','hideBalloonPanel','add','_calculateContainerWidth','calculationContainer','height','_distributeChips','remove','_handleShowMoreButtonClick','pin','isOn','2621570FDEDzm','controlsButton','_locale','_renderChipsAndCountRows','_overflowChips','style','undefined','overflowChips','25EIykxY','_createMockButton','visible','innerHeight','_applyOverflowResults','showMoreButton','border-box','block','forEach','_calculateOverflowInContainer','_testButtonFit','visible\x20!important','7QwZCoe','classList','4717653JCOebw','162KTqlIj','isConnected','bottom','setContainerElement','left','300px','.ck-ai-chat','_setupVisibilityObserver','_config','_pendingCalculation','div','offsetWidth','-9999px','_createCalculationContainer','parentElement','top','execute','isIntersecting','3078624hHllBN','absolute','documentElement','ck-calculation-container','cloneNode','reorganizeChips','className','_repinBalloonPanel','hide','overflowContainer','querySelector','push','4020396iQYQHn','tagName','_targetContainer','getComputedStyle','_isContainerVisible','rowDetectionTolerance','some','includes','extendTemplate','+\x201','disableAnimationOnEnter','_bodyCollection','459628bJNYkm','_checkAndHandleOverflow','destroy','innerHTML','show','textContent','cssClasses','showMoreLabelPrefix','_makeAncestorsVisible'];_0xc0f4=function(){return _0x2b58ad;};return _0xc0f4();}import{View as _0x2cb2c6,BalloonPanelView as _0x2eace9,ButtonView as _0x3c95e8,clickOutsideHandler as _0x4af2b1}from'ckeditor5/src/ui.js';import{Collection as _0x169b08}from'ckeditor5/src/utils.js';const dn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},bn=_0x483829(0x92);function _0xde92(_0x500072,_0x2f3014){const _0xc0f4bd=_0xc0f4();return _0xde92=function(_0xde921d,_0x34c510){_0xde921d=_0xde921d-0x68;let _0x5e3100=_0xc0f4bd[_0xde921d];return _0x5e3100;},_0xde92(_0x500072,_0x2f3014);}export class AIChatChipsOverflowManager{[_0x483829(0x78)];[_0x483829(0x95)];[_0x483829(0xc9)];[_0x483829(0x7a)];[_0x483829(0xda)]=null;[_0x483829(0xdd)]=null;[_0x483829(0xd5)]=null;[_0x483829(0xb6)];[_0x483829(0xcf)]=null;[_0x483829(0xe6)]=null;[_0x483829(0x96)]=!0x1;constructor(_0x59c991,_0x55c4d9,_0x4461d4,_0xf0f49a,_0x4b7240){const _0x388ac9=_0x483829;this[_0x388ac9(0x78)]=_0x59c991,this[_0x388ac9(0xc9)]=_0x55c4d9,this[_0x388ac9(0x95)]={...dn,..._0x4461d4,'cssClasses':{'controlsButton':'','calculationContainer':_0x388ac9(0xa2),..._0x4461d4[_0x388ac9(0xbd)]}},this[_0x388ac9(0x7a)]=new _0x169b08(),this[_0x388ac9(0xb6)]=_0xf0f49a,this[_0x388ac9(0xcf)]=_0x4b7240||null;}[_0x483829(0x90)](_0x3e2459){const _0x35e1a5=_0x483829;this[_0x35e1a5(0xe6)]&&(this[_0x35e1a5(0xe6)][_0x35e1a5(0xe9)](),this[_0x35e1a5(0xe6)]=null),this[_0x35e1a5(0xd5)]=_0x3e2459,this[_0x35e1a5(0x94)]();}get[_0x483829(0xf5)](){const _0x9388d5=_0x483829;return this[_0x9388d5(0xda)];}get[_0x483829(0x7d)](){const _0x8075da=_0x483829;return this[_0x8075da(0x7a)];}[_0x483829(0xa4)](){requestAnimationFrame(()=>{const _0xf00231=_0xde92;this[_0xf00231(0xb8)]();});}[_0x483829(0xfa)](){const _0x13e179=_0x483829;this[_0x13e179(0xda)]&&this[_0x13e179(0xdd)]&&(this[_0x13e179(0xfb)](),this[_0x13e179(0xda)][_0x13e179(0x75)]=!0x0,this[_0x13e179(0xdd)][_0x13e179(0xbb)](),this[_0x13e179(0xdd)][_0x13e179(0x74)]({'target':this[_0x13e179(0xda)][_0x13e179(0xf4)],'limiter':document[_0x13e179(0xa9)](_0x13e179(0x93))}));}[_0x483829(0x6c)](){const _0x23ecfb=_0x483829;this[_0x23ecfb(0xda)]&&this[_0x23ecfb(0xdd)]&&(this[_0x23ecfb(0xda)][_0x23ecfb(0x75)]=!0x1,this[_0x23ecfb(0xdd)][_0x23ecfb(0xa7)]());}[_0x483829(0xf0)](){const _0x1a798f=_0x483829;this[_0x1a798f(0x7a)][_0x1a798f(0xf0)](),this[_0x1a798f(0x6c)](),this[_0x1a798f(0xd6)](),this[_0x1a798f(0xda)]&&(this[_0x1a798f(0xda)][_0x1a798f(0xf2)]=''),this[_0x1a798f(0xdd)]&&this[_0x1a798f(0xdd)][_0x1a798f(0x69)][_0x1a798f(0xf0)]();}[_0x483829(0xb9)](){const _0x4abc8d=_0x483829;this[_0x4abc8d(0xe6)]&&(this[_0x4abc8d(0xe6)][_0x4abc8d(0xe9)](),this[_0x4abc8d(0xe6)]=null),this[_0x4abc8d(0xda)]&&(this[_0x4abc8d(0xda)][_0x4abc8d(0xb9)](),this[_0x4abc8d(0xda)]=null),this[_0x4abc8d(0xdd)]&&(this[_0x4abc8d(0xdd)][_0x4abc8d(0xb9)](),this[_0x4abc8d(0xdd)]=null);}[_0x483829(0xb8)](){const _0x579b6b=_0x483829;if(!this[_0x579b6b(0xd5)])return;if(!this[_0x579b6b(0xaf)]())return void(this[_0x579b6b(0x96)]=!0x0);this[_0x579b6b(0x96)]=!0x1;const _0x51956d=[...this[_0x579b6b(0xc9)],...this[_0x579b6b(0x7a)]],_0x1b0953=this[_0x579b6b(0x9a)](),_0x373643=this[_0x579b6b(0x87)](_0x1b0953,_0x51956d),_0x338c49=_0x1b0953[_0x579b6b(0xd2)];_0x338c49&&this[_0x579b6b(0xc6)](_0x338c49),_0x1b0953[_0x579b6b(0x72)](),this[_0x579b6b(0x82)](_0x51956d,_0x373643);}[_0x483829(0xe0)](){const _0x8b7211=_0x483829;this[_0x8b7211(0xda)]=this[_0x8b7211(0xf8)](),this[_0x8b7211(0xdd)]=this[_0x8b7211(0xcc)](),this[_0x8b7211(0xda)][_0x8b7211(0xd7)](),this[_0x8b7211(0xd5)][_0x8b7211(0xd8)](this[_0x8b7211(0xda)][_0x8b7211(0xf4)]),this[_0x8b7211(0xda)]['on'](_0x8b7211(0x9d),()=>{const _0x2d9426=_0x8b7211;this[_0x2d9426(0x73)]();}),_0x4af2b1({'emitter':this[_0x8b7211(0xdd)],'contextElements':[this[_0x8b7211(0xdd)][_0x8b7211(0xf4)],this[_0x8b7211(0xda)][_0x8b7211(0xf4)]],'callback':()=>this[_0x8b7211(0x6c)](),'activator':()=>this[_0x8b7211(0xda)][_0x8b7211(0x75)]});}[_0x483829(0xf8)](){const _0x3c591e=_0x483829,_0xff7504=new _0x3c95e8(this[_0x3c591e(0x78)]);_0xff7504[_0x3c591e(0xc4)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x19b581=[this[_0x3c591e(0x95)][_0x3c591e(0xbd)][_0x3c591e(0x83)]];return this[_0x3c591e(0x95)][_0x3c591e(0xbd)][_0x3c591e(0x77)]&&_0x19b581[_0x3c591e(0xaa)](this[_0x3c591e(0x95)][_0x3c591e(0xbd)][_0x3c591e(0x77)]),_0xff7504[_0x3c591e(0xb3)]({'attributes':{'class':_0x19b581}}),_0xff7504;}[_0x483829(0xcc)](){const _0x19f99a=_0x483829,_0x3fff59=new _0x2eace9(this[_0x19f99a(0x78)]);return _0x3fff59[_0x19f99a(0xb3)]({'attributes':{'class':this[_0x19f99a(0x95)][_0x19f99a(0xbd)][_0x19f99a(0x68)]}}),this[_0x19f99a(0xb6)][_0x19f99a(0x6d)](_0x3fff59),_0x3fff59;}[_0x483829(0xfb)](){const _0x466636=_0x483829;if(this[_0x466636(0xdd)]&&(this[_0x466636(0xdd)][_0x466636(0x69)][_0x466636(0xf0)](),this[_0x466636(0x7a)][_0x466636(0xc2)]>0x0)){this[_0x466636(0x7a)][_0x466636(0x86)](_0x11eef4=>{const _0x2534c0=_0x466636;_0x11eef4[_0x2534c0(0xb5)]();});const _0x4fea8e=new _0x2cb2c6(this[_0x466636(0x78)]);_0x4fea8e[_0x466636(0xe8)]({'tag':_0x466636(0x97),'attributes':{'class':this[_0x466636(0x95)][_0x466636(0xbd)][_0x466636(0xa8)]},'children':this[_0x466636(0x7a)]}),this[_0x466636(0xdd)][_0x466636(0x69)][_0x466636(0x6d)](_0x4fea8e);}}[_0x483829(0x73)](){const _0x12f6b9=_0x483829;this[_0x12f6b9(0xda)][_0x12f6b9(0x75)]?this[_0x12f6b9(0x6c)]():this[_0x12f6b9(0xfa)]();}[_0x483829(0xd6)](){const _0x577e3e=_0x483829,_0x2571a1=this[_0x577e3e(0x7a)][_0x577e3e(0xc2)]>0x0;this[_0x577e3e(0xda)]?.[_0x577e3e(0xf4)]&&(this[_0x577e3e(0xda)][_0x577e3e(0xf4)][_0x577e3e(0x7b)][_0x577e3e(0xea)]=_0x2571a1?'':_0x577e3e(0xde));}[_0x483829(0xa6)](){const _0x1ccc98=_0x483829;this[_0x1ccc98(0xda)]?.[_0x1ccc98(0x75)]&&this[_0x1ccc98(0xdd)]?.[_0x1ccc98(0xce)]&&this[_0x1ccc98(0xda)][_0x1ccc98(0xf4)]&&this[_0x1ccc98(0xdd)][_0x1ccc98(0x74)]({'target':this[_0x1ccc98(0xda)][_0x1ccc98(0xf4)],'limiter':document[_0x1ccc98(0xa9)](_0x1ccc98(0x93))});}[_0x483829(0xe4)](_0x5348a9){const _0x2c9148=_0x483829,_0x4b91d5=this[_0x2c9148(0xd5)]?.[_0x2c9148(0xac)][_0x2c9148(0xdc)]()||_0x2c9148(0x97),_0x2bf049=this[_0x2c9148(0xd5)]?.[_0x2c9148(0x8b)];if(_0x2bf049){const _0x1c3111=_0x2bf049[0x0]||'',_0x20e1c0=_0x5348a9[_0x2c9148(0xa9)]('.'+_0x1c3111),_0x40f295=_0x5348a9[_0x2c9148(0xa9)](_0x4b91d5);return _0x20e1c0||_0x40f295||_0x5348a9;}return _0x5348a9[_0x2c9148(0xa9)](_0x4b91d5)||_0x5348a9;}[_0x483829(0x6e)](){const _0x170704=_0x483829,_0x4a07b6=this[_0x170704(0xcf)]?.[_0x170704(0xf4)]||this[_0x170704(0xd5)];if(!_0x4a07b6)return bn;const _0x10fc00=window[_0x170704(0xae)](_0x4a07b6)[_0x170704(0xd4)];if(_0x170704(0xcd)===_0x10fc00||_0x170704(0xed)===_0x10fc00||!_0x10fc00){const _0x27fff8=_0x4a07b6[_0x170704(0x9b)];if(_0x27fff8){const _0x33279b=window[_0x170704(0xae)](_0x27fff8);return _0x170704(0xcd)!==_0x33279b[_0x170704(0xd4)]?_0x33279b[_0x170704(0xd4)]:bn;}return bn;}return _0x10fc00;}[_0x483829(0xd9)](_0x534f98,_0x4d9b3b){const _0x3f7479=_0x483829;this[_0x3f7479(0x95)][_0x3f7479(0xbd)][_0x3f7479(0x6f)]&&_0x534f98[_0x3f7479(0x8b)][_0x3f7479(0x6d)](this[_0x3f7479(0x95)][_0x3f7479(0xbd)][_0x3f7479(0x6f)]),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xd4)]=_0x4d9b3b,_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xf6)]=_0x3f7479(0xa0),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0x9c)]=_0x3f7479(0x99),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0x91)]=_0x3f7479(0x99),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xec)]='0',_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xe5)]=_0x3f7479(0xde),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xc5)]='-1',_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xf3)]=_0x3f7479(0x89),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0xea)]=_0x3f7479(0xc7),_0x534f98[_0x3f7479(0x7b)][_0x3f7479(0x6a)]=_0x3f7479(0x84);}[_0x483829(0xc6)](_0x12b498){const _0x39c8ae=_0x483829;_0x12b498[_0x39c8ae(0x86)](({element:_0x4b254c,originalDisplay:_0x475209,originalVisibility:_0x45eab9})=>{const _0x508f8e=_0x39c8ae;_0x4b254c[_0x508f8e(0x7b)][_0x508f8e(0xea)]=_0x475209,_0x4b254c[_0x508f8e(0x7b)][_0x508f8e(0xf3)]=_0x45eab9;});}[_0x483829(0xbf)](_0x35cca0){const _0x3038f0=_0x483829,_0x48451a=[];let _0xeeed63=_0x35cca0;for(;_0xeeed63&&_0xeeed63!==document[_0x3038f0(0xc1)];){const _0x5d76f7=window[_0x3038f0(0xae)](_0xeeed63);_0x3038f0(0xde)!==_0x5d76f7[_0x3038f0(0xea)]&&_0x3038f0(0xd3)!==_0x5d76f7[_0x3038f0(0xf3)]||(_0x48451a[_0x3038f0(0xaa)]({'element':_0xeeed63,'originalDisplay':_0xeeed63[_0x3038f0(0x7b)][_0x3038f0(0xea)],'originalVisibility':_0xeeed63[_0x3038f0(0x7b)][_0x3038f0(0xf3)]}),_0xeeed63[_0x3038f0(0x7b)][_0x3038f0(0xea)]=_0x3038f0(0x85),_0xeeed63[_0x3038f0(0x7b)][_0x3038f0(0xf3)]=_0x3038f0(0x80)),_0xeeed63=_0xeeed63[_0x3038f0(0x9b)];}return _0x48451a;}[_0x483829(0xe3)](){const _0x463339=_0x483829;let _0x26af4c,_0x310e1b;return this[_0x463339(0xcf)]?.[_0x463339(0xf4)]?(_0x26af4c=this[_0x463339(0xcf)][_0x463339(0xf4)][_0x463339(0xa3)](!0x0),_0x310e1b=this[_0x463339(0xe4)](_0x26af4c)):(_0x26af4c=document[_0x463339(0xe1)](_0x463339(0x97)),_0x310e1b=_0x26af4c),{'calculationContainer':_0x26af4c,'targetContainer':_0x310e1b};}[_0x483829(0x9a)](){const _0x30f0a0=_0x483829,{calculationContainer:_0x1d9c9e,targetContainer:_0x1ca2d7}=this[_0x30f0a0(0xe3)](),_0x46257d=this[_0x30f0a0(0x6e)]();this[_0x30f0a0(0xd9)](_0x1d9c9e,_0x46257d);const _0x47051d=this[_0x30f0a0(0xcf)]?.[_0x30f0a0(0xf4)]||this[_0x30f0a0(0xd5)],_0x52956f=_0x47051d?.[_0x30f0a0(0x9b)];_0x52956f?_0x52956f[_0x30f0a0(0xd8)](_0x1d9c9e):document[_0x30f0a0(0xc1)][_0x30f0a0(0xd8)](_0x1d9c9e),_0x1d9c9e[_0x30f0a0(0xad)]=_0x1ca2d7;const _0x5e55a9=this[_0x30f0a0(0xbf)](_0x52956f||null);return _0x1d9c9e[_0x30f0a0(0x98)],_0x1d9c9e[_0x30f0a0(0xd2)]=_0x5e55a9,_0x1d9c9e;}[_0x483829(0x87)](_0x5469c1,_0x4f3da8){const _0x2ebcfe=_0x483829,_0xef181c=_0x5469c1[_0x2ebcfe(0xad)]||_0x5469c1,_0x3de835=[],{rowCount:_0x57c3ae}=this[_0x2ebcfe(0x79)](_0xef181c,_0x4f3da8);if(_0x57c3ae<=this[_0x2ebcfe(0x95)][_0x2ebcfe(0xe7)])return _0x3de835;const _0x59386d=_0x4f3da8[_0x2ebcfe(0xeb)]();for(;_0x59386d[_0x2ebcfe(0xc2)]>0x0;){if(this[_0x2ebcfe(0x88)](_0x5469c1,_0xef181c,_0x59386d)){const _0x16fdf0=_0x4f3da8[_0x2ebcfe(0xf9)](_0x28385f=>!_0x59386d[_0x2ebcfe(0xb2)](_0x28385f));_0x3de835[_0x2ebcfe(0xaa)](..._0x16fdf0);break;}if(!_0x59386d[_0x2ebcfe(0xc0)]())break;}return _0x3de835;}[_0x483829(0x79)](_0x2c7022,_0x111654){const _0x32269f=_0x483829;_0x2c7022[_0x32269f(0xba)]='',_0x111654[_0x32269f(0x86)](_0x5d3906=>{const _0x10658e=_0x32269f;if(_0x5d3906[_0x10658e(0xf4)]){const _0x7ff70a=_0x5d3906[_0x10658e(0xf4)][_0x10658e(0xa3)](!0x0);_0x2c7022[_0x10658e(0xd8)](_0x7ff70a);}}),_0x2c7022[_0x32269f(0x98)];const _0x19bc14=_0x2c7022[_0x32269f(0xd0)],_0x47fe85=[];return Array[_0x32269f(0xca)](_0x19bc14)[_0x32269f(0x86)](_0x2dc917=>{const _0x5bc6fb=_0x32269f,_0xe2260e=_0x2dc917[_0x5bc6fb(0x6b)]()[_0x5bc6fb(0x9c)];_0x47fe85[_0x5bc6fb(0xb1)](_0x1253fd=>Math[_0x5bc6fb(0xdb)](_0x1253fd-_0xe2260e)<this[_0x5bc6fb(0x95)][_0x5bc6fb(0xb0)])||_0x47fe85[_0x5bc6fb(0xaa)](_0xe2260e);}),{'rowCount':_0x47fe85[_0x32269f(0xc2)]};}[_0x483829(0x7f)](){const _0xf778fd=_0x483829,_0x40c880=document[_0xf778fd(0xe1)](_0xf778fd(0xe2));return _0x40c880[_0xf778fd(0xa5)]=this[_0xf778fd(0x95)][_0xf778fd(0xbd)][_0xf778fd(0x83)],this[_0xf778fd(0x95)][_0xf778fd(0xbd)][_0xf778fd(0x77)]&&_0x40c880[_0xf778fd(0x8b)][_0xf778fd(0x6d)](this[_0xf778fd(0x95)][_0xf778fd(0xbd)][_0xf778fd(0x77)]),_0x40c880[_0xf778fd(0xbc)]=_0xf778fd(0xb4),_0x40c880;}[_0x483829(0x88)](_0x1373c6,_0x4f84ab,_0x459e4a){const _0x3bcedb=_0x483829;this[_0x3bcedb(0x79)](_0x4f84ab,_0x459e4a);const _0x227650=this[_0x3bcedb(0x7f)]();_0x1373c6[_0x3bcedb(0xd8)](_0x227650),_0x1373c6[_0x3bcedb(0x98)];const _0x54046d=[..._0x4f84ab[_0x3bcedb(0xd0)],_0x227650],_0x2fe3c5=[];_0x54046d[_0x3bcedb(0x86)](_0xb67307=>{const _0x2cc2e3=_0x3bcedb,_0x4ca822=_0xb67307[_0x2cc2e3(0x6b)]()[_0x2cc2e3(0x9c)];_0x2fe3c5[_0x2cc2e3(0xb1)](_0x158cc7=>Math[_0x2cc2e3(0xdb)](_0x158cc7-_0x4ca822)<this[_0x2cc2e3(0x95)][_0x2cc2e3(0xb0)])||_0x2fe3c5[_0x2cc2e3(0xaa)](_0x4ca822);});const _0x186b53=_0x2fe3c5[_0x3bcedb(0xc2)];return _0x227650[_0x3bcedb(0x72)](),_0x186b53<=this[_0x3bcedb(0x95)][_0x3bcedb(0xe7)];}[_0x483829(0x71)](_0x3cf724,_0x34de50){const _0xddbe42=_0x483829;this[_0xddbe42(0xc9)][_0xddbe42(0xf0)](),this[_0xddbe42(0x7a)][_0xddbe42(0xf0)](),_0x3cf724[_0xddbe42(0x86)](_0x1088eb=>{const _0x19a192=_0xddbe42;_0x34de50[_0x19a192(0xb2)](_0x1088eb)?this[_0x19a192(0x7a)][_0x19a192(0x6d)](_0x1088eb):this[_0x19a192(0xc9)][_0x19a192(0x6d)](_0x1088eb);});}[_0x483829(0xf7)](_0x302d64){const _0x4b868b=_0x483829;if(_0x302d64>0x0&&!this[_0x4b868b(0xda)]&&this[_0x4b868b(0xe0)](),_0x302d64>0x0&&this[_0x4b868b(0xda)]){const _0xb4af5f=''+this[_0x4b868b(0x95)][_0x4b868b(0xbe)]+(_0x302d64<0x63?_0x302d64:'99');this[_0x4b868b(0xda)][_0x4b868b(0xf2)]=_0xb4af5f;}this[_0x4b868b(0xfb)](),this[_0x4b868b(0xd6)](),this[_0x4b868b(0xa6)]();}[_0x483829(0x82)](_0xee1490,_0x5bfa33){const _0x150373=_0x483829;this[_0x150373(0x71)](_0xee1490,_0x5bfa33),this[_0x150373(0xf7)](_0x5bfa33[_0x150373(0xc2)]);}[_0x483829(0x94)](){const _0x595fad=_0x483829;this[_0x595fad(0xd5)]&&_0x595fad(0x7c)!=typeof IntersectionObserver&&(this[_0x595fad(0xe6)]=new IntersectionObserver(_0x490fed=>{const _0x1733a7=_0x595fad;_0x490fed[0x0][_0x1733a7(0x9e)]&&this[_0x1733a7(0x96)]&&requestAnimationFrame(()=>{const _0xb22c84=_0x1733a7;this[_0xb22c84(0xb8)]();});},{'threshold':0.01,'rootMargin':_0x595fad(0xdf)}),this[_0x595fad(0xe6)][_0x595fad(0xd1)](this[_0x595fad(0xd5)]));}[_0x483829(0xaf)](){const _0x3d6492=_0x483829;if(!this[_0x3d6492(0xd5)])return!0x1;if(!this[_0x3d6492(0xd5)][_0x3d6492(0x8e)])return!0x1;const _0x2c201f=this[_0x3d6492(0xd5)][_0x3d6492(0x6b)]();if(0x0===_0x2c201f[_0x3d6492(0xd4)]||0x0===_0x2c201f[_0x3d6492(0x70)])return!0x1;const _0x8583f7=window[_0x3d6492(0x81)]||document[_0x3d6492(0xa1)][_0x3d6492(0xee)],_0x5e9193=window[_0x3d6492(0xc8)]||document[_0x3d6492(0xa1)][_0x3d6492(0xef)],_0x5d42a0=0xc8;return _0x2c201f[_0x3d6492(0x8f)]>=-0xc8&&_0x2c201f[_0x3d6492(0x9c)]<=_0x8583f7+_0x5d42a0&&_0x2c201f[_0x3d6492(0xf1)]>=-0xc8&&_0x2c201f[_0x3d6492(0x91)]<=_0x5e9193+_0x5d42a0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x175709=_0x1c36;function _0x159f(){const _0x30e446=['350619hlxGTK','889JBFmLz','addEventListener','label','small','_createTemplateChildren','disableAnimationOnEnter','selection','document','execute','_setupRemoveButtonEvent','bind','ck-ai-chat-context-chip__type-icon','isLoading','ck-ai-chat-context-chip_document','lastIndexOf','AI_CHAT_CONTEXT_REMOVE_FROM_CONTEXT','_createLoaderIcon','animationend','12fSBBkt','div','set','locale','tooltip','slice','_createIconView','content','removeEventListener','span','element','ck-ai-chat-context-chip__label','432188YSxyeN','_isAnimationOnEnterEnabled','246FirOvF','ck-ai-chat-context-chip_wide','_setupTemplate','isVisible','length','_createLabelElement','_createRemoveButton','webkitAnimationEnd','bindTemplate','fire','readonly','ck-ai-chat-context-chip_new-chip','extendTemplate','9082899ddxcXW','type','render','28607360rNaZot','_initializeProperties','47770qORvxE','121685zEIGLQ','classList','ck-ai-chat-context-controls__chip-tooltip','_handleAnimationEndOnce','removeContextItemChip','ck-hidden','_createTemplateAttributes','59912vKareT','ck-ai-chat-context-chip','uiId','remove','setTemplate','add','itemType'];_0x159f=function(){return _0x30e446;};return _0x159f();}(function(_0x3185f5,_0x6b9c8b){const _0x511a0c=_0x1c36,_0x4ff331=_0x3185f5();while(!![]){try{const _0x6abfa6=parseInt(_0x511a0c(0x189))/0x1+-parseInt(_0x511a0c(0x19d))/0x2+parseInt(_0x511a0c(0x16a))/0x3*(parseInt(_0x511a0c(0x17d))/0x4)+parseInt(_0x511a0c(0x19e))/0x5*(-parseInt(_0x511a0c(0x18b))/0x6)+parseInt(_0x511a0c(0x16b))/0x7*(-parseInt(_0x511a0c(0x163))/0x8)+-parseInt(_0x511a0c(0x198))/0x9+parseInt(_0x511a0c(0x19b))/0xa;if(_0x6abfa6===_0x6b9c8b)break;else _0x4ff331['push'](_0x4ff331['shift']());}catch(_0x1c7049){_0x4ff331['push'](_0x4ff331['shift']());}}}(_0x159f,0xa1817));import{ButtonView as _0x30b984,IconView as _0x2c7615}from'ckeditor5/src/ui.js';import{IconClose as _0x59770f,IconDocument as _0x258d9c,IconFileUpload as _0x23d225,IconLink as _0x959826,IconSelection as _0x23c090}from'@ckeditor/ckeditor5-icons';function _0x1c36(_0xc19359,_0x194357){const _0x159fc1=_0x159f();return _0x1c36=function(_0x1c36b3,_0x15a910){_0x1c36b3=_0x1c36b3-0x15e;let _0x500710=_0x159fc1[_0x1c36b3];return _0x500710;},_0x1c36(_0xc19359,_0x194357);}import{getTranslation as _0x4dbb8c}from'../../../aicore/utils/common-translations.js';import{AISpinnerView as _0x5cbcb7}from'../../../aicore/ui/aispinner.js';const yn={'file':_0x23d225,'document':_0x258d9c,'web-resource':_0x959826,'text':_0x23d225,'selection':_0x23c090},Ln=_0x175709(0x164),Rn=_0x175709(0x18c),Vn=_0x175709(0x178),jn=_0x175709(0x188),Bn=_0x175709(0x176),Mn=_0x175709(0x15e),Nn='n';export class AIChatContextItemButtonView extends _0x30b984{constructor(_0x39a3de,_0x9d0852,_0xe0460,_0x79d2d1,_0x40648b=!0x1){const _0x5e59fc=_0x175709;super(_0x39a3de),this[_0x5e59fc(0x18a)]=_0x79d2d1,this[_0x5e59fc(0x19c)](_0x9d0852,_0xe0460,_0x40648b),this[_0x5e59fc(0x18d)]();}[_0x175709(0x19a)](){const _0x5655c6=_0x175709;super[_0x5655c6(0x19a)](),this[_0x5655c6(0x18a)]&&this[_0x5655c6(0x187)]&&(this[_0x5655c6(0x187)][_0x5655c6(0x19f)][_0x5655c6(0x168)](_0x5655c6(0x196)),this[_0x5655c6(0x15f)](this[_0x5655c6(0x187)],()=>{const _0x23466b=_0x5655c6;this[_0x23466b(0x187)]&&this[_0x23466b(0x187)][_0x23466b(0x19f)][_0x23466b(0x166)](_0x23466b(0x196));}));}[_0x175709(0x170)](){const _0x342c7c=_0x175709;this[_0x342c7c(0x18a)]=!0x1,this[_0x342c7c(0x187)]&&this[_0x342c7c(0x187)][_0x342c7c(0x19f)][_0x342c7c(0x166)](_0x342c7c(0x196));}[_0x175709(0x19c)](_0x407ef3,_0x2dc38d,_0x1ab688){const _0x2dec11=_0x175709;this[_0x2dec11(0x17f)](_0x2dec11(0x16d),_0x407ef3[_0x2dec11(0x16d)]),this[_0x2dec11(0x17f)](_0x2dec11(0x181),!0x0),this[_0x2dec11(0x17f)](_0x2dec11(0x169),_0x407ef3[_0x2dec11(0x199)]),this[_0x2dec11(0x17f)]('id',_0x407ef3[_0x2dec11(0x165)]),this[_0x2dec11(0x17f)](_0x2dec11(0x195),_0x2dc38d),this[_0x2dec11(0x17f)](_0x2dec11(0x177),_0x1ab688);}[_0x175709(0x18d)](){const _0x248ed9=_0x175709,_0x4d3463=this[_0x248ed9(0x183)](),_0x3eed01=this[_0x248ed9(0x191)](),_0x46edd5=this[_0x248ed9(0x193)];this[_0x248ed9(0x167)]({'tag':_0x248ed9(0x17e),'attributes':this[_0x248ed9(0x162)](_0x46edd5),'children':this[_0x248ed9(0x16f)](_0x4d3463,_0x3eed01,_0x46edd5)});}[_0x175709(0x162)](_0x108cfe){const _0x677364=_0x175709;return{'class':[Ln,_0x108cfe['if'](_0x677364(0x169),Vn,_0x46af6e=>_0x677364(0x172)==_0x46af6e),_0x108cfe['if'](_0x677364(0x169),Rn,_0x405293=>_0x677364(0x171)==_0x405293)],'data-cke-tooltip-text':_0x108cfe['to'](_0x677364(0x16d),Xn),'data-cke-tooltip-position':Nn,'data-cke-tooltip-class':Mn};}[_0x175709(0x16f)](_0x40100c,_0x2f40b5,_0x5e854e){const _0x12362d=_0x175709,_0x52fa98=this[_0x12362d(0x190)](_0x5e854e),_0x4d44a4=this[_0x12362d(0x17b)]();return this[_0x12362d(0x195)]?[_0x40100c,_0x52fa98]:[_0x40100c,_0x4d44a4,_0x52fa98,_0x2f40b5];}[_0x175709(0x190)](_0x1c57f9){const _0x40be9d=_0x175709;return{'tag':_0x40be9d(0x186),'attributes':{'class':jn},'children':[{'text':_0x1c57f9['to'](_0x40be9d(0x16d))}]};}[_0x175709(0x191)](){const _0x108414=_0x175709,_0x446374=new _0x30b984(this[_0x108414(0x180)]);return _0x446374[_0x108414(0x17f)]({'label':_0x4dbb8c(this[_0x108414(0x180)],_0x108414(0x17a)),'icon':_0x59770f}),this[_0x108414(0x174)](_0x446374),_0x446374;}[_0x175709(0x174)](_0x32c1c6){const _0x297674=_0x175709;_0x32c1c6['on'](_0x297674(0x173),()=>{const _0x415d62=_0x297674;this[_0x415d62(0x194)](_0x415d62(0x160),this['id']);});}[_0x175709(0x183)](){const _0x11c16f=_0x175709,_0x11da51=this[_0x11c16f(0x193)],_0x29de88=new _0x2c7615();return _0x29de88[_0x11c16f(0x184)]=yn[this[_0x11c16f(0x169)]],_0x29de88[_0x11c16f(0x197)]({'attributes':{'class':[Bn,_0x11da51['if'](_0x11c16f(0x177),_0x11c16f(0x161),_0xbd1509=>_0xbd1509)]}}),_0x29de88;}[_0x175709(0x15f)](_0x5533e5,_0x10239f){const _0x16b90d=_0x175709;if(!_0x5533e5)return;const _0x323942=()=>{const _0x2c3015=_0x1c36;_0x10239f(),_0x5533e5[_0x2c3015(0x185)](_0x2c3015(0x17c),_0x323942),_0x5533e5[_0x2c3015(0x185)](_0x2c3015(0x192),_0x323942);};_0x5533e5[_0x16b90d(0x16c)](_0x16b90d(0x17c),_0x323942),_0x5533e5[_0x16b90d(0x16c)](_0x16b90d(0x192),_0x323942);}[_0x175709(0x17b)](){const _0x3f56df=_0x175709,_0x2e388e=new _0x5cbcb7(_0x3f56df(0x16e));return _0x2e388e[_0x3f56df(0x175)](_0x3f56df(0x18e))['to'](this,_0x3f56df(0x177),_0x15eedf=>_0x15eedf),_0x2e388e;}}function Xn(_0x250dc7){const _0x55b4f3=_0x175709;if(!_0x250dc7)return _0x250dc7;if(_0x250dc7[_0x55b4f3(0x18f)]<=0x78)return _0x250dc7;const _0xf74bdd=_0x250dc7[_0x55b4f3(0x182)](0x0,0x78),_0x56d587=_0xf74bdd[_0x55b4f3(0x179)]('\x20');return(_0x56d587>0x0?_0xf74bdd[_0x55b4f3(0x182)](0x0,_0x56d587):_0xf74bdd)+'…';}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4ea7(_0x4b65dc,_0xa4c639){const _0x3978c9=_0x3978();return _0x4ea7=function(_0x4ea76c,_0x51f6d0){_0x4ea76c=_0x4ea76c-0x157;let _0x5d2c47=_0x3978c9[_0x4ea76c];return _0x5d2c47;},_0x4ea7(_0x4b65dc,_0xa4c639);}function _0x3978(){const _0x3d1b97=['execute','length','set','destroy','children','_createBackButton','AI_CHAT_CONTEXT_URL_PLACEHOLDER','focusTracker','div','isEnabled','keystrokes','AI_CHAT_CONTEXT_URL_EMPTY_ERROR','listenTo','submitUrl','shift+tab','forEach','value','AI_CHAT_CONTEXT_URL_ADD_URL','ck-button-icon','21zaKhOm','ck-button-icon\x20ck-button-back','clearError','_createConfirmButton','_setupKeystrokes','656LOMCTx','_setupTemplate','focus','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','esc','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_context-url','clear','5630090MTZJFp','setError','focusCycler','createCollection','trim','input','refreshBalloon','_createUrlInputField','locale','ck-labeled-field-view_empty','8674605rkVyMq','_setupEventHandlers','138012yQQJvr','_updateConfirmButtonState','add','2414664lNkOHv','stop','backButton','_handleSubmit','1277417CaXvmr','ck-ai-chat-context-controls__url-form','tab','fieldView','form','AI_CHAT_CONTEXT_URL_INVALID_ERROR','99uglQlt','getValue','render','errorText','_isValidUrl','setTemplate','submit','1006928LgXXjD','_focusables','fire','cancel','ck-ai-chat-context-controls__url-input-section','6833178RaEaYm','element','confirmButton','AI_CHAT_CONTEXT_URL_LABEL','urlInputField'];_0x3978=function(){return _0x3d1b97;};return _0x3978();}const _0x5ef798=_0x4ea7;(function(_0x2c75af,_0x250db5){const _0x358a53=_0x4ea7,_0x2e53fb=_0x2c75af();while(!![]){try{const _0x344b7e=-parseInt(_0x358a53(0x185))/0x1+-parseInt(_0x358a53(0x181))/0x2+parseInt(_0x358a53(0x166))/0x3*(parseInt(_0x358a53(0x192))/0x4)+-parseInt(_0x358a53(0x17c))/0x5+-parseInt(_0x358a53(0x197))/0x6+parseInt(_0x358a53(0x17e))/0x7*(-parseInt(_0x358a53(0x16b))/0x8)+-parseInt(_0x358a53(0x18b))/0x9*(-parseInt(_0x358a53(0x172))/0xa);if(_0x344b7e===_0x250db5)break;else _0x2e53fb['push'](_0x2e53fb['shift']());}catch(_0xcbd67d){_0x2e53fb['push'](_0x2e53fb['shift']());}}}(_0x3978,0xef40a));import{FocusTracker as _0x1a7fbb,KeystrokeHandler as _0x59a5e9}from'ckeditor5/src/utils.js';import{ButtonView as _0x4585e3,FocusCycler as _0x2984e9,LabeledFieldView as _0x14d684,View as _0x10aab1,FormHeaderView as _0x586608,createLabeledInputText as _0x50a4df,submitHandler as _0x34da7c}from'ckeditor5/src/ui.js';import{IconCheck as _0x31e6bb,IconPreviousArrow as _0x61039c}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x1e9914}from'../../../aicore/utils/common-translations.js';const rh=_0x5ef798(0x186),oh=_0x5ef798(0x196);export class AIChatContextPanelUrlInputView extends _0x10aab1{[_0x5ef798(0x15a)];[_0x5ef798(0x15d)];[_0x5ef798(0x193)];[_0x5ef798(0x174)];[_0x5ef798(0x19b)];[_0x5ef798(0x183)];[_0x5ef798(0x199)];constructor(_0x10fffa){const _0x1e738c=_0x5ef798;super(_0x10fffa),this[_0x1e738c(0x15a)]=new _0x1a7fbb(),this[_0x1e738c(0x15d)]=new _0x59a5e9(),this[_0x1e738c(0x183)]=this[_0x1e738c(0x158)](),this[_0x1e738c(0x19b)]=this[_0x1e738c(0x179)](),this[_0x1e738c(0x199)]=this[_0x1e738c(0x169)](),this[_0x1e738c(0x193)]=this[_0x1e738c(0x175)]([this[_0x1e738c(0x183)],this[_0x1e738c(0x19b)],this[_0x1e738c(0x199)]]),this[_0x1e738c(0x174)]=new _0x2984e9({'focusables':this[_0x1e738c(0x193)],'focusTracker':this[_0x1e738c(0x15a)],'keystrokeHandler':this[_0x1e738c(0x15d)],'actions':{'focusPrevious':_0x1e738c(0x161),'focusNext':_0x1e738c(0x187)}}),this[_0x1e738c(0x16c)](),this[_0x1e738c(0x17d)](),this[_0x1e738c(0x16a)]();}[_0x5ef798(0x18d)](){const _0x3fff24=_0x5ef798;super[_0x3fff24(0x18d)](),this[_0x3fff24(0x193)][_0x3fff24(0x162)](_0x37764e=>{const _0x111ce0=_0x3fff24;this[_0x111ce0(0x15a)][_0x111ce0(0x180)](_0x37764e[_0x111ce0(0x198)]),this[_0x111ce0(0x15d)][_0x111ce0(0x15f)](_0x37764e[_0x111ce0(0x198)]);}),_0x34da7c({'view':this}),this[_0x3fff24(0x16d)]();}[_0x5ef798(0x19f)](){const _0x2459ee=_0x5ef798;super[_0x2459ee(0x19f)](),this[_0x2459ee(0x15a)][_0x2459ee(0x19f)](),this[_0x2459ee(0x15d)][_0x2459ee(0x19f)]();}[_0x5ef798(0x16d)](){const _0x4ebc10=_0x5ef798;this[_0x4ebc10(0x19b)][_0x4ebc10(0x16d)]();}[_0x5ef798(0x18c)](){const _0x2977d0=_0x5ef798;return this[_0x2977d0(0x19b)][_0x2977d0(0x188)][_0x2977d0(0x198)]?.[_0x2977d0(0x163)]?.[_0x2977d0(0x176)]()||'';}[_0x5ef798(0x171)](){const _0x1b4258=_0x5ef798;this[_0x1b4258(0x19b)][_0x1b4258(0x188)][_0x1b4258(0x198)][_0x1b4258(0x163)]='',this[_0x1b4258(0x19b)][_0x1b4258(0x18e)]=null,this[_0x1b4258(0x199)][_0x1b4258(0x15c)]=!0x1;}[_0x5ef798(0x173)](_0x4c426f){const _0x56badd=_0x5ef798;this[_0x56badd(0x19b)][_0x56badd(0x18e)]=_0x4c426f,this[_0x56badd(0x17f)](),this[_0x56badd(0x194)](_0x56badd(0x178));}[_0x5ef798(0x168)](){const _0x4142a3=_0x5ef798;this[_0x4142a3(0x19b)][_0x4142a3(0x18e)]=null,this[_0x4142a3(0x17f)]();}[_0x5ef798(0x158)](){const _0x117c16=_0x5ef798,_0x1072a7=new _0x4585e3(this[_0x117c16(0x17a)]);return _0x1072a7[_0x117c16(0x19e)]({'icon':_0x61039c,'tooltip':_0x1e9914(this[_0x117c16(0x17a)],_0x117c16(0x16e)),'tooltipPosition':'n','class':_0x117c16(0x167)}),_0x1072a7;}[_0x5ef798(0x179)](){const _0x113e97=_0x5ef798,_0x527d44=new _0x14d684(this[_0x113e97(0x17a)],_0x50a4df);return _0x527d44[_0x113e97(0x19e)]({'label':_0x1e9914(this[_0x113e97(0x17a)],_0x113e97(0x19a)),'class':_0x113e97(0x17b)}),_0x527d44[_0x113e97(0x188)][_0x113e97(0x19e)]({'placeholder':_0x1e9914(this[_0x113e97(0x17a)],_0x113e97(0x159))}),_0x527d44;}[_0x5ef798(0x169)](){const _0x59583e=_0x5ef798,_0x4588cf=new _0x4585e3(this[_0x59583e(0x17a)]);return _0x4588cf[_0x59583e(0x19e)]({'icon':_0x31e6bb,'tooltip':_0x1e9914(this[_0x59583e(0x17a)],_0x59583e(0x164)),'tooltipPosition':'n','class':_0x59583e(0x165),'type':_0x59583e(0x191),'isEnabled':!0x1}),_0x4588cf;}[_0x5ef798(0x16c)](){const _0x5c55b7=_0x5ef798,_0x2e89a0=new _0x586608(this[_0x5c55b7(0x17a)],{'label':_0x1e9914(this[_0x5c55b7(0x17a)],_0x5c55b7(0x164)),'class':_0x5c55b7(0x170)});_0x2e89a0[_0x5c55b7(0x157)][_0x5c55b7(0x180)](this[_0x5c55b7(0x183)],0x0),this[_0x5c55b7(0x190)]({'tag':_0x5c55b7(0x189),'attributes':{'class':rh,'tabindex':'-1'},'children':[_0x2e89a0,{'tag':_0x5c55b7(0x15b),'attributes':{'class':oh},'children':[this[_0x5c55b7(0x19b)],this[_0x5c55b7(0x199)]]}]});}[_0x5ef798(0x17d)](){const _0x2ec42c=_0x5ef798;this[_0x2ec42c(0x183)]['on'](_0x2ec42c(0x19c),()=>{const _0x114617=_0x2ec42c;this[_0x114617(0x171)](),this[_0x114617(0x194)](_0x114617(0x195));}),this[_0x2ec42c(0x19b)][_0x2ec42c(0x188)]['on'](_0x2ec42c(0x177),()=>{const _0x5b8849=_0x2ec42c;this[_0x5b8849(0x168)](),this[_0x5b8849(0x17f)](),this[_0x5b8849(0x194)](_0x5b8849(0x178));}),this['on'](_0x2ec42c(0x191),_0x3603db=>{const _0x18f8bc=_0x2ec42c;_0x3603db[_0x18f8bc(0x182)](),this[_0x18f8bc(0x184)]();});}[_0x5ef798(0x16a)](){const _0x5f4e67=_0x5ef798;this[_0x5f4e67(0x15d)][_0x5f4e67(0x19e)](_0x5f4e67(0x16f),(_0x45b602,_0x392dec)=>{const _0xff82c4=_0x5f4e67;this[_0xff82c4(0x171)](),this[_0xff82c4(0x194)](_0xff82c4(0x195)),_0x392dec();});}[_0x5ef798(0x184)](){const _0x32a828=_0x5ef798,_0x1bb57c=this[_0x32a828(0x18c)]()[_0x32a828(0x176)]();_0x1bb57c?this[_0x32a828(0x18f)](_0x1bb57c)?(this[_0x32a828(0x168)](),this[_0x32a828(0x194)](_0x32a828(0x160),_0x1bb57c)):this[_0x32a828(0x173)](_0x1e9914(this[_0x32a828(0x17a)],_0x32a828(0x18a))):this[_0x32a828(0x173)](_0x1e9914(this[_0x32a828(0x17a)],_0x32a828(0x15e)));}[_0x5ef798(0x17f)](){const _0x5511c1=_0x5ef798,_0xba2775=this[_0x5511c1(0x18c)]()[_0x5511c1(0x176)](),_0x4edb40=!!this[_0x5511c1(0x19b)][_0x5511c1(0x18e)];this[_0x5511c1(0x199)][_0x5511c1(0x15c)]=_0xba2775[_0x5511c1(0x19d)]>0x0&&!_0x4edb40;}[_0x5ef798(0x18f)](_0xf27b7c){try{return!!new URL(_0xf27b7c);}catch{return!0x1;}}}
|