@ckeditor/ckeditor5-ai 47.3.0-alpha.6 → 47.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- 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/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/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.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/aichatresourcessearchinputview.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/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 +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.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.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/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.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/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.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.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.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/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.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/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x48d12a=_0x11c7;(function(_0x4b8025,_0x4b5f8f){const _0x123259=_0x11c7,_0x4355da=_0x4b8025();while(!![]){try{const _0x20b8d7=parseInt(_0x123259(0x150))/0x1+parseInt(_0x123259(0x156))/0x2+-parseInt(_0x123259(0x155))/0x3+-parseInt(_0x123259(0x152))/0x4*(-parseInt(_0x123259(0x157))/0x5)+parseInt(_0x123259(0x167))/0x6*(-parseInt(_0x123259(0x15f))/0x7)+-parseInt(_0x123259(0x153))/0x8+parseInt(_0x123259(0x162))/0x9*(parseInt(_0x123259(0x161))/0xa);if(_0x20b8d7===_0x4b5f8f)break;else _0x4355da['push'](_0x4355da['shift']());}catch(_0x1012ad){_0x4355da['push'](_0x4355da['shift']());}}}(_0x494a,0x75567));import{ButtonView as _0x1470cd,View as _0x49ea6f}from'ckeditor5/src/ui.js';import{IconStop as _0x4b2532}from'ckeditor5/src/icons.js';import{getTranslation as _0x45af24}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x49ea6f{[_0x48d12a(0x15e)];[_0x48d12a(0x165)];constructor(_0x35c344){const _0x5b0376=_0x48d12a;super(_0x35c344),this[_0x5b0376(0x15e)]=this[_0x5b0376(0x154)](),this[_0x5b0376(0x165)]=this[_0x5b0376(0x163)](),this[_0x5b0376(0x15d)]({'tag':_0x5b0376(0x164),'attributes':{'class':['ck',_0x5b0376(0x14f),_0x5b0376(0x151)]},'children':[this[_0x5b0376(0x165)],this[_0x5b0376(0x15e)]]});}[_0x48d12a(0x154)](){const _0x1895fb=_0x48d12a,_0x3bf215=new _0x1470cd(this[_0x1895fb(0x159)]);return _0x3bf215[_0x1895fb(0x160)]({'label':_0x45af24(this[_0x1895fb(0x159)],_0x1895fb(0x14b)),'withText':!0x0,'class':_0x1895fb(0x158),'icon':_0x4b2532}),_0x3bf215['on'](_0x1895fb(0x166),()=>{const _0x2dc9f0=_0x1895fb;this[_0x2dc9f0(0x14e)](_0x2dc9f0(0x15b));}),_0x3bf215;}[_0x48d12a(0x163)](){const _0x1c556b=_0x48d12a,_0xc7211e=new _0x49ea6f(this[_0x1c556b(0x159)]);return _0xc7211e[_0x1c556b(0x15d)]({'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x14d)]},'children':[{'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x15c)]},'children':[{'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x15a)]}},{'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x15a)]}},{'tag':_0x1c556b(0x164),'attributes':{'class':[_0x1c556b(0x15a)]}}]},{'text':_0x45af24(this[_0x1c556b(0x159)],_0x1c556b(0x14c))}]}),_0xc7211e;}}function _0x11c7(_0x1df95a,_0x4a1160){const _0x494af9=_0x494a();return _0x11c7=function(_0x11c782,_0x5f3cf0){_0x11c782=_0x11c782-0x14b;let _0x7b57f0=_0x494af9[_0x11c782];return _0x7b57f0;},_0x11c7(_0x1df95a,_0x4a1160);}function _0x494a(){const _0x26635=['set','3750020mOepDR','9sxwYti','_createLoaderView','div','_loaderView','execute','30NczlrO','AI_CHAT_STOP_GENERATING','AI_CHAT_IS_WRITING','ck-ai-chat-controls-loader','fire','ck-ai-chat-controls-loader-wrapper','265804WqOofI','ck-reset_all','56yeCBSL','1220968ZoAzKT','_createCancelButtonView','1782165klQmER','1053128svYDyX','171945qkNkNs','ck-ai-button-secondary\x20ck-ai-button-stop-generating','locale','ck-ai-chat-controls-loader-icon-dot','abortPromptStream','ck-ai-chat-controls-loader-icon','setTemplate','_cancelButtonView','590135GXuZCr'];_0x494a=function(){return _0x26635;};return _0x494a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2e9e33=_0x41d0;(function(_0x13b54e,_0x2a5ef8){const _0x2f7bab=_0x41d0,_0x3bdbf2=_0x13b54e();while(!![]){try{const _0x15b8a2=-parseInt(_0x2f7bab(0x16c))/0x1*(-parseInt(_0x2f7bab(0x1af))/0x2)+-parseInt(_0x2f7bab(0x182))/0x3+-parseInt(_0x2f7bab(0x1b9))/0x4*(parseInt(_0x2f7bab(0x190))/0x5)+parseInt(_0x2f7bab(0x19a))/0x6+-parseInt(_0x2f7bab(0x175))/0x7*(-parseInt(_0x2f7bab(0x167))/0x8)+parseInt(_0x2f7bab(0x166))/0x9*(-parseInt(_0x2f7bab(0x16e))/0xa)+parseInt(_0x2f7bab(0x1b0))/0xb*(parseInt(_0x2f7bab(0x1aa))/0xc);if(_0x15b8a2===_0x2a5ef8)break;else _0x3bdbf2['push'](_0x3bdbf2['shift']());}catch(_0x43b0c2){_0x3bdbf2['push'](_0x3bdbf2['shift']());}}}(_0x333c,0xbe468));import{Collection as _0x43c45d}from'ckeditor5/src/utils.js';import{IconAI as _0x410d5f,IconBulb as _0x1cd83f,IconWeb as _0x4591cb}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x195eff,ButtonLabelView as _0x3477fb,ButtonView as _0x14bdd0,createDropdown as _0x382ca4,IconView as _0x583260,UIModel as _0x18ed8a,View as _0x4d40eb}from'ckeditor5/src/ui.js';import{getTranslation as _0x4154cd}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x38c374}from'../../../aicore/model/aimodels.js';const No=_0x2e9e33(0x19c),vo=_0x2e9e33(0x1a1),Ho=_0x2e9e33(0x1ac),Mo=_0x2e9e33(0x165),Lo=_0x2e9e33(0x187),Do=_0x2e9e33(0x1b1),Wo=_0x2e9e33(0x15b),yo='n';function _0x41d0(_0x83e3d8,_0x3d1b24){const _0x333c1a=_0x333c();return _0x41d0=function(_0x41d0c1,_0x44cb2e){_0x41d0c1=_0x41d0c1-0x15b;let _0x1affbf=_0x333c1a[_0x41d0c1];return _0x1affbf;},_0x41d0(_0x83e3d8,_0x3d1b24);}export class AIChatPromptCapabilitiesView extends _0x4d40eb{[_0x2e9e33(0x1a6)];[_0x2e9e33(0x1b7)];[_0x2e9e33(0x194)];[_0x2e9e33(0x17f)];[_0x2e9e33(0x18d)];[_0x2e9e33(0x16d)];constructor(_0x4ea451){const _0x307298=_0x2e9e33;super(_0x4ea451),this[_0x307298(0x1a0)](_0x307298(0x170),!0x1),this[_0x307298(0x1a0)](_0x307298(0x169),!0x1),this[_0x307298(0x1a0)](_0x307298(0x15c),!0x0),this[_0x307298(0x1a0)](_0x307298(0x181),!0x0),this[_0x307298(0x1a0)](_0x307298(0x17a),null),this[_0x307298(0x1a0)](_0x307298(0x1b6),null),this[_0x307298(0x17f)]=this[_0x307298(0x1a3)](),this[_0x307298(0x16d)]=this[_0x307298(0x18e)](),this[_0x307298(0x1a6)]=this[_0x307298(0x188)](),this[_0x307298(0x1b7)]=this[_0x307298(0x185)](),this[_0x307298(0x194)]=this[_0x307298(0x19d)](),this[_0x307298(0x17f)][_0x307298(0x17e)][_0x307298(0x173)](_0x307298(0x195))['to'](this,_0x307298(0x15c),_0x386977=>_0x386977),this[_0x307298(0x17f)][_0x307298(0x17e)][_0x307298(0x173)](_0x307298(0x197))['to'](this,_0x307298(0x181),_0x2b0292=>_0x2b0292?this[_0x307298(0x17f)][_0x307298(0x17e)][_0x307298(0x1ba)]:_0x4154cd(this[_0x307298(0x189)],_0x307298(0x160))),this[_0x307298(0x17f)][_0x307298(0x173)](_0x307298(0x163))['to'](this,_0x307298(0x181),_0x488739=>_0x488739),this[_0x307298(0x1a6)][_0x307298(0x173)](_0x307298(0x16a))['to'](this,_0x307298(0x170),_0x44249f=>_0x44249f),this[_0x307298(0x1a6)][_0x307298(0x173)](_0x307298(0x1a2))['to'](this,_0x307298(0x15c),_0x241c4d=>!_0x241c4d),this[_0x307298(0x1a6)][_0x307298(0x173)](_0x307298(0x197))['to'](this,_0x307298(0x170),_0x4440e2=>_0x4154cd(this[_0x307298(0x189)],_0x4440e2?_0x307298(0x18b):_0x307298(0x180))),this[_0x307298(0x1b7)][_0x307298(0x173)](_0x307298(0x16a))['to'](this,_0x307298(0x169),_0x21bdad=>_0x21bdad),this[_0x307298(0x1b7)][_0x307298(0x173)](_0x307298(0x1a2))['to'](this,_0x307298(0x15c),_0x5ce95e=>!_0x5ce95e),this[_0x307298(0x1b7)][_0x307298(0x173)](_0x307298(0x197))['to'](this,_0x307298(0x169),_0x371627=>_0x4154cd(this[_0x307298(0x189)],_0x371627?_0x307298(0x183):_0x307298(0x19b))),this[_0x307298(0x176)]({'tag':_0x307298(0x19f),'attributes':{'class':[No]},'children':[this[_0x307298(0x17f)],this[_0x307298(0x16d)],this[_0x307298(0x1a6)],this[_0x307298(0x1b7)],this[_0x307298(0x194)]]}),this[_0x307298(0x18d)]=new _0x43c45d(),_0x195eff(this[_0x307298(0x17f)],this[_0x307298(0x18d)]);}[_0x2e9e33(0x192)](_0x22fccc,_0x501525){const _0x3cfeb5=_0x2e9e33;if(this[_0x3cfeb5(0x1a0)](_0x3cfeb5(0x15c),!(_0x501525&&_0x22fccc[_0x3cfeb5(0x162)]<=0x1)),this[_0x3cfeb5(0x18d)][_0x3cfeb5(0x1bd)](),_0x22fccc?.[_0x3cfeb5(0x162)]){const _0x515f7f=_0x38c374[_0x3cfeb5(0x1a9)](this[_0x3cfeb5(0x189)],_0x22fccc);for(const _0xf553e4 of _0x515f7f){const _0x461af8=new _0x18ed8a({'label':_0xf553e4[_0x3cfeb5(0x16b)],'withText':!0x0,'role':_0x3cfeb5(0x191),'id':_0xf553e4['id'],'model':_0xf553e4});_0x461af8[_0x3cfeb5(0x173)](_0x3cfeb5(0x16a))['to'](this,_0x3cfeb5(0x17a),_0x111efc=>_0x111efc===_0xf553e4['id']),this[_0x3cfeb5(0x18d)][_0x3cfeb5(0x184)]({'type':_0x3cfeb5(0x15d),'model':_0x461af8,'labelView':new Xs(this[_0x3cfeb5(0x189)],_0xf553e4)});}}}[_0x2e9e33(0x186)](_0x1157c2){const _0x436bff=_0x2e9e33;this[_0x436bff(0x1a0)](_0x436bff(0x170),_0x1157c2);}[_0x2e9e33(0x1c0)](_0x42aaf9){const _0x3d763d=_0x2e9e33;this[_0x3d763d(0x1a0)](_0x3d763d(0x169),_0x42aaf9);}[_0x2e9e33(0x1bc)](_0x3cb8a0){const _0x10f557=_0x2e9e33;if(!_0x3cb8a0)return;this[_0x10f557(0x17a)]=_0x3cb8a0['id'],this[_0x10f557(0x1b6)]=_0x3cb8a0[_0x10f557(0x16b)]||_0x3cb8a0['id'],this[_0x10f557(0x17f)][_0x10f557(0x17e)][_0x10f557(0x1a0)](_0x10f557(0x1ba),_0x3cb8a0[_0x10f557(0x16b)]),this[_0x10f557(0x17f)][_0x10f557(0x17e)][_0x10f557(0x1a0)](_0x10f557(0x197),_0x3cb8a0[_0x10f557(0x16b)]);const _0xd3753=_0x3cb8a0[_0x10f557(0x1a4)][_0x10f557(0x177)]?.[_0x10f557(0x1b5)]??!0x1;this[_0x10f557(0x1a0)](_0x10f557(0x170),!0x1),this[_0x10f557(0x1a6)][_0x10f557(0x1a0)](_0x10f557(0x16a),!0x1),this[_0x10f557(0x1a6)][_0x10f557(0x1a0)](_0x10f557(0x163),_0xd3753),this[_0x10f557(0x1a6)][_0x10f557(0x1a0)](_0x10f557(0x195),_0xd3753);const _0x23feff=_0x3cb8a0[_0x10f557(0x1a4)][_0x10f557(0x17b)]?.[_0x10f557(0x1b5)]??!0x1;this[_0x10f557(0x1a0)](_0x10f557(0x169),!0x1),this[_0x10f557(0x1b7)][_0x10f557(0x1a0)](_0x10f557(0x16a),!0x1),this[_0x10f557(0x1b7)][_0x10f557(0x1a0)](_0x10f557(0x163),_0x23feff),this[_0x10f557(0x1b7)][_0x10f557(0x1a0)](_0x10f557(0x195),_0x23feff);}[_0x2e9e33(0x179)](){const _0x508739=_0x2e9e33;this[_0x508739(0x1a0)](_0x508739(0x181),!0x0),this[_0x508739(0x1a0)](_0x508739(0x15c),!0x0);}[_0x2e9e33(0x1be)](_0x591b2f){const _0x1db93c=_0x2e9e33;this[_0x1db93c(0x1a0)](_0x1db93c(0x181),!0x1),_0x591b2f&&this[_0x1db93c(0x1a0)](_0x1db93c(0x15c),!0x1);}[_0x2e9e33(0x188)](){const _0x51f7ec=_0x2e9e33,_0x4ee7cf=new _0x14bdd0();return _0x4ee7cf[_0x51f7ec(0x1a0)]({'label':_0x4154cd(this[_0x51f7ec(0x189)],_0x51f7ec(0x164)),'icon':_0x4591cb,'class':vo,'isToggleable':!0x0,'tooltipPosition':yo}),_0x4ee7cf['on'](_0x51f7ec(0x198),()=>{const _0x4a9529=_0x51f7ec;this[_0x4a9529(0x171)](_0x4a9529(0x1b8));}),_0x4ee7cf;}[_0x2e9e33(0x185)](){const _0x421b4b=_0x2e9e33,_0x501107=new _0x14bdd0();return _0x501107[_0x421b4b(0x1a0)]({'label':_0x4154cd(this[_0x421b4b(0x189)],_0x421b4b(0x1ae)),'icon':_0x1cd83f,'class':vo,'isToggleable':!0x0,'tooltipPosition':yo}),_0x501107['on'](_0x421b4b(0x198),()=>{const _0x1d7ae0=_0x421b4b;this[_0x1d7ae0(0x171)](_0x1d7ae0(0x18f));}),_0x501107;}[_0x2e9e33(0x19d)](){const _0x41caa9=_0x2e9e33,_0x26007b=new _0x14bdd0();return _0x26007b[_0x41caa9(0x1a0)]({'label':_0x4154cd(this[_0x41caa9(0x189)],_0x41caa9(0x1ab)),'icon':_0x410d5f,'withText':!0x0,'class':vo,'isToggleable':!0x0,'tooltip':_0x4154cd(this[_0x41caa9(0x189)],_0x41caa9(0x1ab)),'tooltipPosition':yo}),_0x26007b[_0x41caa9(0x1bb)]({'attributes':{'class':[Ho]}}),_0x26007b['on'](_0x41caa9(0x198),()=>{const _0x25a436=_0x41caa9;console[_0x25a436(0x17c)](_0x25a436(0x172)),alert(_0x25a436(0x172));}),_0x26007b;}[_0x2e9e33(0x1a3)](){const _0x22a79c=_0x2e9e33,_0x2f9411=_0x382ca4(this[_0x22a79c(0x189)]);return _0x2f9411[_0x22a79c(0x1a0)]({'panelPosition':'ne','class':[Mo]}),_0x2f9411[_0x22a79c(0x17e)][_0x22a79c(0x1a0)]({'label':_0x4154cd(this[_0x22a79c(0x189)],_0x22a79c(0x161)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':yo}),this[_0x22a79c(0x19e)](_0x2f9411,_0x22a79c(0x198),_0x3df9b5=>{const _0x2e37a2=_0x22a79c;this[_0x2e37a2(0x171)](_0x2e37a2(0x18a),_0x3df9b5[_0x2e37a2(0x1a5)][_0x2e37a2(0x193)]);}),_0x2f9411;}[_0x2e9e33(0x18e)](){const _0x2a330d=_0x2e9e33,_0x2fa399=new jo(this[_0x2a330d(0x189)]);return _0x2fa399[_0x2a330d(0x173)](_0x2a330d(0x17d))['to'](this,_0x2a330d(0x1b6),_0x5e942c=>_0x5e942c??''),_0x2fa399[_0x2a330d(0x173)](_0x2a330d(0x195))['to'](this,_0x2a330d(0x15c),this,_0x2a330d(0x1b6),(_0x49c8cb,_0x1b2da1)=>!_0x49c8cb&&!_0x1b2da1?.[_0x2a330d(0x174)]()[_0x2a330d(0x16f)](_0x2a330d(0x15f))),_0x2fa399;}}function _0x333c(){const _0x5926a6=['model','_commandsButton','isVisible','ck-button__label','tooltip','execute','span','8877648BXKObU','AI_CHAT_ENABLE_REASONING','ck-ai-chat__prompt-capabilities','_createCommandsButton','listenTo','div','set','ck-ai-chat-controls-button','withText','_createModelSelectionDropdown','capabilities','source','_webSearchButton','content','description','getLocalized','5340mnMbul','AI_CHAT_COMMANDS','ck-ai-chat-controls-button--commands','addMany','AI_CHAT_REASONING','56ZDbFWf','12430mAhncQ','ck-ai-chat-controls__model-selection__item-description','_getCapabilityParts','AI_CHAT_CAPABILITIES_YES','AI_CHAT_CAPABILITIES_NO','enabled','activeModelName','_reasoningButton','toggleWebSearch','290308nQWCWk','label','extendTemplate','setModel','clear','disableModelSelector','ck-ai-chat-controls__model-name','setReasoning','ck-ai-chat-controls__model-selection__item-capabilities','modelSelectorVisible','button','ck-hidden','agent','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','length','isEnabled','AI_CHAT_SEARCH_WEB','ck-ai-chat-controls__model-selection','9aGDxXI','26880DnUPzU','style','reasoningActive','isOn','name','390QXeKOS','_modelNameView','8635670MQPwOu','startsWith','webSearchActive','fire','Commands\x20are\x20not\x20implemented\x20yet.','bind','toLowerCase','665eiRhtI','setTemplate','webSearch','bindTemplate','enableModelSelector','activeModelId','reasoning','log','text','buttonView','_modelSelectionDropdown','AI_CHAT_ENABLE_WEB_SEARCH','modelSelectorEnabled','1791198kbJOiQ','AI_CHAT_DISABLE_REASONING','add','_createReasoningButton','setWebSearch','ck-ai-chat-controls__model-selection__item-name','_createWebSearchButton','locale','selectModel','AI_CHAT_DISABLE_WEB_SEARCH','createCollection','_modelSelectionDropdownItems','_createModelNameView','toggleReasoning','5NUmXrr','menuitemradio','setModelList'];_0x333c=function(){return _0x5926a6;};return _0x333c();}class Xs extends _0x3477fb{constructor(_0x53eb80,_0x1ab7f7){const _0x178bfa=_0x2e9e33;super();const _0x464f21=this[_0x178bfa(0x178)],_0x394a0c=this[_0x178bfa(0x18c)]();this[_0x178bfa(0x176)]({'tag':_0x178bfa(0x19f),'attributes':{'class':['ck',_0x178bfa(0x196)],'style':_0x464f21['to'](_0x178bfa(0x168)),'id':_0x464f21['to']('id')},'children':[{'tag':_0x178bfa(0x19f),'attributes':{'class':[Lo]},'children':[{'text':_0x464f21['to'](_0x178bfa(0x17d))}]},{'tag':_0x178bfa(0x19f),'attributes':{'class':[Do]},'children':[{'tag':_0x178bfa(0x199),'children':[{'text':_0x1ab7f7[_0x178bfa(0x1a8)]}]}]},{'tag':_0x178bfa(0x19f),'attributes':{'class':[Wo]},'children':_0x394a0c}]}),_0x394a0c[_0x178bfa(0x1ad)](this[_0x178bfa(0x1b2)](_0x53eb80,_0x4591cb,_0x178bfa(0x164),_0x1ab7f7[_0x178bfa(0x1a4)][_0x178bfa(0x177)]?.[_0x178bfa(0x1b5)]??!0x1)),_0x394a0c[_0x178bfa(0x1ad)](this[_0x178bfa(0x1b2)](_0x53eb80,_0x1cd83f,_0x178bfa(0x1ae),_0x1ab7f7[_0x178bfa(0x1a4)][_0x178bfa(0x17b)]?.[_0x178bfa(0x1b5)]??!0x1));}[_0x2e9e33(0x1b2)](_0x1f42b9,_0x4348f8,_0x461e5c,_0x22a30f){const _0x7015e8=_0x2e9e33,_0x2ec48b=new _0x583260();_0x2ec48b[_0x7015e8(0x1a7)]=_0x4348f8;const _0x22242a=new _0x4d40eb(_0x1f42b9);_0x22242a[_0x7015e8(0x176)]({'tag':_0x7015e8(0x199),'children':[{'text':_0x4154cd(_0x1f42b9,_0x461e5c)+':\x20'}]});const _0x53e2c8=new _0x4d40eb(_0x1f42b9);return _0x53e2c8[_0x7015e8(0x176)]({'tag':_0x7015e8(0x199),'children':[{'text':_0x4154cd(_0x1f42b9,_0x22a30f?_0x7015e8(0x1b3):_0x7015e8(0x1b4))}]}),[_0x2ec48b,_0x22242a,_0x53e2c8];}}class jo extends _0x4d40eb{constructor(_0x5c12ac){const _0x10e33c=_0x2e9e33;super(_0x5c12ac),this[_0x10e33c(0x1a0)](_0x10e33c(0x17d),void 0x0),this[_0x10e33c(0x1a0)](_0x10e33c(0x195),!0x0);const _0x2d98d8=this[_0x10e33c(0x178)];this[_0x10e33c(0x176)]({'tag':_0x10e33c(0x199),'attributes':{'class':['ck',_0x10e33c(0x1bf),_0x2d98d8['if'](_0x10e33c(0x195),_0x10e33c(0x15e),_0x4e34c1=>!_0x4e34c1)]},'children':[{'text':_0x2d98d8['to'](_0x10e33c(0x17d))}]});}}
|
|
23
|
+
function _0x52de(_0x2a2e99,_0x40220d){const _0x54edca=_0x54ed();return _0x52de=function(_0x52de11,_0x1ec0d5){_0x52de11=_0x52de11-0x91;let _0x62498e=_0x54edca[_0x52de11];return _0x62498e;},_0x52de(_0x2a2e99,_0x40220d);}const _0x498d5d=_0x52de;function _0x54ed(){const _0x11ecfd=['model','3660GXHwMJ','extendTemplate','createCollection','ck-ai-chat-controls__model-selection','modelSelectorEnabled','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_ENABLE_REASONING','length','selectModel','log','description','_createWebSearchButton','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_REASONING','397734vpbzSa','bindTemplate','_createCommandsButton','add','_createReasoningButton','4992630Tfncyc','isVisible','listenTo','toggleWebSearch','_createModelSelectionDropdown','AI_CHAT_DISABLE_WEB_SEARCH','98pPjVTe','setReasoning','_createModelNameView','activeModelId','_reasoningButton','AI_CHAT_SEARCH_WEB','span','AI_CHAT_CAPABILITIES_NO','_modelSelectionDropdown','ck-ai-chat-controls-button--commands','setModelList','enableModelSelector','setWebSearch','tooltip','isEnabled','toLowerCase','label','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_ENABLE_WEB_SEARCH','ck-ai-chat__prompt-capabilities','ck-ai-chat-controls__model-selection__item-capabilities','_getCapabilityParts','fire','ck-hidden','text','setModel','agent','enabled','webSearchActive','webSearch','AI_CHAT_DISABLE_REASONING','ck-ai-chat-controls-button','ck-ai-chat-controls__model-name','AI_CHAT_COMMANDS','capabilities','clear','_modelNameView','menuitemradio','content','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','bind','376TiIyYM','withText','reasoning','5020wcTdeK','source','name','div','24gHRwer','33726vdgFfV','button','12247920GbrnJZ','toggleReasoning','execute','ck-ai-chat-controls__model-selection__item-name','buttonView','ck-button__label','setTemplate','isOn','715328AbNQKC','_webSearchButton','activeModelName','reasoningActive','7170944xebvNQ','set','_commandsButton','_modelSelectionDropdownItems','disableModelSelector','style','startsWith','getLocalized','AI_CHAT_CAPABILITIES_YES','addMany','locale','modelSelectorVisible'];_0x54ed=function(){return _0x11ecfd;};return _0x54ed();}(function(_0x5c678c,_0x509e8f){const _0x41d4c6=_0x52de,_0x43cb09=_0x5c678c();while(!![]){try{const _0x1cd734=parseInt(_0x41d4c6(0xd4))/0x1*(parseInt(_0x41d4c6(0xd7))/0x2)+parseInt(_0x41d4c6(0xdb))/0x3*(parseInt(_0x41d4c6(0xe6))/0x4)+-parseInt(_0x41d4c6(0xa5))/0x5+parseInt(_0x41d4c6(0xa0))/0x6*(parseInt(_0x41d4c6(0xab))/0x7)+parseInt(_0x41d4c6(0xea))/0x8+-parseInt(_0x41d4c6(0xde))/0x9+-parseInt(_0x41d4c6(0x92))/0xa*(parseInt(_0x41d4c6(0xdc))/0xb);if(_0x1cd734===_0x509e8f)break;else _0x43cb09['push'](_0x43cb09['shift']());}catch(_0x34fb2f){_0x43cb09['push'](_0x43cb09['shift']());}}}(_0x54ed,0xaf1d4));import{Collection as _0x79e392}from'ckeditor5/src/utils.js';import{IconAI as _0x3e9bde,IconBulb as _0x4423c5,IconWeb as _0x3d787c}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x8edfc8,ButtonLabelView as _0x2e56c8,ButtonView as _0x51b15d,createDropdown as _0x38515c,IconView as _0x191944,UIModel as _0x61fa73,View as _0x406b44}from'ckeditor5/src/ui.js';import{getTranslation as _0x8e7cdb}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x3715b9}from'../../../aicore/model/aimodels.js';const yo=_0x498d5d(0xbe),Uo=_0x498d5d(0xca),jo=_0x498d5d(0xb4),Go=_0x498d5d(0x95),Yo=_0x498d5d(0xe1),qo=_0x498d5d(0xbc),zo=_0x498d5d(0xbf),Fo='n';export class AIChatPromptCapabilitiesView extends _0x406b44{[_0x498d5d(0xe7)];[_0x498d5d(0xaf)];[_0x498d5d(0xec)];[_0x498d5d(0xb3)];[_0x498d5d(0xed)];[_0x498d5d(0xcf)];constructor(_0x27b15){const _0x5718d0=_0x498d5d;super(_0x27b15),this[_0x5718d0(0xeb)](_0x5718d0(0xc7),!0x1),this[_0x5718d0(0xeb)](_0x5718d0(0xe9),!0x1),this[_0x5718d0(0xeb)](_0x5718d0(0xf5),!0x0),this[_0x5718d0(0xeb)](_0x5718d0(0x96),!0x0),this[_0x5718d0(0xeb)](_0x5718d0(0xae),null),this[_0x5718d0(0xeb)](_0x5718d0(0xe8),null),this[_0x5718d0(0xb3)]=this[_0x5718d0(0xa9)](),this[_0x5718d0(0xcf)]=this[_0x5718d0(0xad)](),this[_0x5718d0(0xe7)]=this[_0x5718d0(0x9d)](),this[_0x5718d0(0xaf)]=this[_0x5718d0(0xa4)](),this[_0x5718d0(0xec)]=this[_0x5718d0(0xa2)](),this[_0x5718d0(0xb3)][_0x5718d0(0xe2)][_0x5718d0(0xd3)](_0x5718d0(0xa6))['to'](this,_0x5718d0(0xf5),_0x19758b=>_0x19758b),this[_0x5718d0(0xb3)][_0x5718d0(0xe2)][_0x5718d0(0xd3)](_0x5718d0(0xb8))['to'](this,_0x5718d0(0x96),_0x4d96b6=>_0x4d96b6?this[_0x5718d0(0xb3)][_0x5718d0(0xe2)][_0x5718d0(0xbb)]:_0x8e7cdb(this[_0x5718d0(0xf4)],_0x5718d0(0x9e))),this[_0x5718d0(0xb3)][_0x5718d0(0xd3)](_0x5718d0(0xb9))['to'](this,_0x5718d0(0x96),_0x179892=>_0x179892),this[_0x5718d0(0xe7)][_0x5718d0(0xd3)](_0x5718d0(0xe5))['to'](this,_0x5718d0(0xc7),_0x59ca93=>_0x59ca93),this[_0x5718d0(0xe7)][_0x5718d0(0xd3)](_0x5718d0(0xd5))['to'](this,_0x5718d0(0xf5),_0x249228=>!_0x249228),this[_0x5718d0(0xe7)][_0x5718d0(0xd3)](_0x5718d0(0xb8))['to'](this,_0x5718d0(0xc7),_0x418411=>_0x8e7cdb(this[_0x5718d0(0xf4)],_0x418411?_0x5718d0(0xaa):_0x5718d0(0xbd))),this[_0x5718d0(0xaf)][_0x5718d0(0xd3)](_0x5718d0(0xe5))['to'](this,_0x5718d0(0xe9),_0x49a249=>_0x49a249),this[_0x5718d0(0xaf)][_0x5718d0(0xd3)](_0x5718d0(0xd5))['to'](this,_0x5718d0(0xf5),_0x15cef4=>!_0x15cef4),this[_0x5718d0(0xaf)][_0x5718d0(0xd3)](_0x5718d0(0xb8))['to'](this,_0x5718d0(0xe9),_0x108a1e=>_0x8e7cdb(this[_0x5718d0(0xf4)],_0x108a1e?_0x5718d0(0xc9):_0x5718d0(0x98))),this[_0x5718d0(0xe4)]({'tag':_0x5718d0(0xda),'attributes':{'class':[yo]},'children':[this[_0x5718d0(0xb3)],this[_0x5718d0(0xcf)],this[_0x5718d0(0xe7)],this[_0x5718d0(0xaf)],this[_0x5718d0(0xec)]]}),this[_0x5718d0(0xed)]=new _0x79e392(),_0x8edfc8(this[_0x5718d0(0xb3)],this[_0x5718d0(0xed)]);}[_0x498d5d(0xb5)](_0x331f73,_0x11ab9a){const _0x25f273=_0x498d5d;if(this[_0x25f273(0xeb)](_0x25f273(0xf5),!(_0x11ab9a&&_0x331f73[_0x25f273(0x99)]<=0x1)),this[_0x25f273(0xed)][_0x25f273(0xce)](),_0x331f73?.[_0x25f273(0x99)]){const _0x1552df=_0x3715b9[_0x25f273(0xf1)](this[_0x25f273(0xf4)],_0x331f73);for(const _0x1d5fca of _0x1552df){const _0x4581a1=new _0x61fa73({'label':_0x1d5fca[_0x25f273(0xd9)],'withText':!0x0,'role':_0x25f273(0xd0),'id':_0x1d5fca['id'],'model':_0x1d5fca});_0x4581a1[_0x25f273(0xd3)](_0x25f273(0xe5))['to'](this,_0x25f273(0xae),_0x4d9b07=>_0x4d9b07===_0x1d5fca['id']),this[_0x25f273(0xed)][_0x25f273(0xa3)]({'type':_0x25f273(0xdd),'model':_0x4581a1,'labelView':new Xs(this[_0x25f273(0xf4)],_0x1d5fca)});}}}[_0x498d5d(0xb7)](_0x446c28){const _0x5a161a=_0x498d5d;this[_0x5a161a(0xeb)](_0x5a161a(0xc7),_0x446c28);}[_0x498d5d(0xac)](_0x539e82){const _0x2bb866=_0x498d5d;this[_0x2bb866(0xeb)](_0x2bb866(0xe9),_0x539e82);}[_0x498d5d(0xc4)](_0x551aef){const _0x17984b=_0x498d5d;if(!_0x551aef)return;this[_0x17984b(0xae)]=_0x551aef['id'],this[_0x17984b(0xe8)]=_0x551aef[_0x17984b(0xd9)]||_0x551aef['id'],this[_0x17984b(0xb3)][_0x17984b(0xe2)][_0x17984b(0xeb)](_0x17984b(0xbb),_0x551aef[_0x17984b(0xd9)]),this[_0x17984b(0xb3)][_0x17984b(0xe2)][_0x17984b(0xeb)](_0x17984b(0xb8),_0x551aef[_0x17984b(0xd9)]);const _0x575c16=_0x551aef[_0x17984b(0xcd)][_0x17984b(0xc8)]?.[_0x17984b(0xc6)]??!0x1;this[_0x17984b(0xeb)](_0x17984b(0xc7),!0x1),this[_0x17984b(0xe7)][_0x17984b(0xeb)](_0x17984b(0xe5),!0x1),this[_0x17984b(0xe7)][_0x17984b(0xeb)](_0x17984b(0xb9),_0x575c16),this[_0x17984b(0xe7)][_0x17984b(0xeb)](_0x17984b(0xa6),_0x575c16);const _0x11a100=_0x551aef[_0x17984b(0xcd)][_0x17984b(0xd6)]?.[_0x17984b(0xc6)]??!0x1;this[_0x17984b(0xeb)](_0x17984b(0xe9),!0x1),this[_0x17984b(0xaf)][_0x17984b(0xeb)](_0x17984b(0xe5),!0x1),this[_0x17984b(0xaf)][_0x17984b(0xeb)](_0x17984b(0xb9),_0x11a100),this[_0x17984b(0xaf)][_0x17984b(0xeb)](_0x17984b(0xa6),_0x11a100);}[_0x498d5d(0xb6)](){const _0xeebc03=_0x498d5d;this[_0xeebc03(0xeb)](_0xeebc03(0x96),!0x0),this[_0xeebc03(0xeb)](_0xeebc03(0xf5),!0x0);}[_0x498d5d(0xee)](_0x276840){const _0x53cf1d=_0x498d5d;this[_0x53cf1d(0xeb)](_0x53cf1d(0x96),!0x1),_0x276840&&this[_0x53cf1d(0xeb)](_0x53cf1d(0xf5),!0x1);}[_0x498d5d(0x9d)](){const _0x1bb581=_0x498d5d,_0x755bdb=new _0x51b15d();return _0x755bdb[_0x1bb581(0xeb)]({'label':_0x8e7cdb(this[_0x1bb581(0xf4)],_0x1bb581(0xb0)),'icon':_0x3d787c,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x755bdb['on'](_0x1bb581(0xe0),()=>{const _0x2055a1=_0x1bb581;this[_0x2055a1(0xc1)](_0x2055a1(0xa8));}),_0x755bdb;}[_0x498d5d(0xa4)](){const _0x2c3494=_0x498d5d,_0x36482f=new _0x51b15d();return _0x36482f[_0x2c3494(0xeb)]({'label':_0x8e7cdb(this[_0x2c3494(0xf4)],_0x2c3494(0x9f)),'icon':_0x4423c5,'class':Uo,'isToggleable':!0x0,'tooltipPosition':Fo}),_0x36482f['on'](_0x2c3494(0xe0),()=>{const _0x18b714=_0x2c3494;this[_0x18b714(0xc1)](_0x18b714(0xdf));}),_0x36482f;}[_0x498d5d(0xa2)](){const _0x570234=_0x498d5d,_0x501072=new _0x51b15d();return _0x501072[_0x570234(0xeb)]({'label':_0x8e7cdb(this[_0x570234(0xf4)],_0x570234(0xcc)),'icon':_0x3e9bde,'withText':!0x0,'class':Uo,'isToggleable':!0x0,'tooltip':_0x8e7cdb(this[_0x570234(0xf4)],_0x570234(0xcc)),'tooltipPosition':Fo}),_0x501072[_0x570234(0x93)]({'attributes':{'class':[jo]}}),_0x501072['on'](_0x570234(0xe0),()=>{const _0xcdd9a4=_0x570234;console[_0xcdd9a4(0x9b)](_0xcdd9a4(0x97)),alert(_0xcdd9a4(0x97));}),_0x501072;}[_0x498d5d(0xa9)](){const _0x474a58=_0x498d5d,_0x4b03db=_0x38515c(this[_0x474a58(0xf4)]);return _0x4b03db[_0x474a58(0xeb)]({'panelPosition':'ne','class':[Go]}),_0x4b03db[_0x474a58(0xe2)][_0x474a58(0xeb)]({'label':_0x8e7cdb(this[_0x474a58(0xf4)],_0x474a58(0xd2)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Fo}),this[_0x474a58(0xa7)](_0x4b03db,_0x474a58(0xe0),_0x49fb78=>{const _0x487291=_0x474a58;this[_0x487291(0xc1)](_0x487291(0x9a),_0x49fb78[_0x487291(0xd8)][_0x487291(0x91)]);}),_0x4b03db;}[_0x498d5d(0xad)](){const _0x1eed57=_0x498d5d,_0x21fd61=new Jo(this[_0x1eed57(0xf4)]);return _0x21fd61[_0x1eed57(0xd3)](_0x1eed57(0xc3))['to'](this,_0x1eed57(0xe8),_0x37b869=>_0x37b869??''),_0x21fd61[_0x1eed57(0xd3)](_0x1eed57(0xa6))['to'](this,_0x1eed57(0xf5),this,_0x1eed57(0xe8),(_0x445051,_0x44d533)=>!_0x445051&&!_0x44d533?.[_0x1eed57(0xba)]()[_0x1eed57(0xf0)](_0x1eed57(0xc5))),_0x21fd61;}}class Xs extends _0x2e56c8{constructor(_0xe9c7bd,_0x1ea9ae){const _0x3c5c56=_0x498d5d;super();const _0x1c7150=this[_0x3c5c56(0xa1)],_0xc7d1b0=this[_0x3c5c56(0x94)]();this[_0x3c5c56(0xe4)]({'tag':_0x3c5c56(0xda),'attributes':{'class':['ck',_0x3c5c56(0xe3)],'style':_0x1c7150['to'](_0x3c5c56(0xef)),'id':_0x1c7150['to']('id')},'children':[{'tag':_0x3c5c56(0xda),'attributes':{'class':[Yo]},'children':[{'text':_0x1c7150['to'](_0x3c5c56(0xc3))}]},{'tag':_0x3c5c56(0xda),'attributes':{'class':[qo]},'children':[{'tag':_0x3c5c56(0xb1),'children':[{'text':_0x1ea9ae[_0x3c5c56(0x9c)]}]}]},{'tag':_0x3c5c56(0xda),'attributes':{'class':[zo]},'children':_0xc7d1b0}]}),_0xc7d1b0[_0x3c5c56(0xf3)](this[_0x3c5c56(0xc0)](_0xe9c7bd,_0x3d787c,_0x3c5c56(0xb0),_0x1ea9ae[_0x3c5c56(0xcd)][_0x3c5c56(0xc8)]?.[_0x3c5c56(0xc6)]??!0x1)),_0xc7d1b0[_0x3c5c56(0xf3)](this[_0x3c5c56(0xc0)](_0xe9c7bd,_0x4423c5,_0x3c5c56(0x9f),_0x1ea9ae[_0x3c5c56(0xcd)][_0x3c5c56(0xd6)]?.[_0x3c5c56(0xc6)]??!0x1));}[_0x498d5d(0xc0)](_0x1befd2,_0x13f1d7,_0x281e75,_0x4d65e4){const _0x14fa2b=_0x498d5d,_0x47c1c0=new _0x191944();_0x47c1c0[_0x14fa2b(0xd1)]=_0x13f1d7;const _0x643126=new _0x406b44(_0x1befd2);_0x643126[_0x14fa2b(0xe4)]({'tag':_0x14fa2b(0xb1),'children':[{'text':_0x8e7cdb(_0x1befd2,_0x281e75)+':\x20'}]});const _0x32edca=new _0x406b44(_0x1befd2);return _0x32edca[_0x14fa2b(0xe4)]({'tag':_0x14fa2b(0xb1),'children':[{'text':_0x8e7cdb(_0x1befd2,_0x4d65e4?_0x14fa2b(0xf2):_0x14fa2b(0xb2))}]}),[_0x47c1c0,_0x643126,_0x32edca];}}class Jo extends _0x406b44{constructor(_0x5200a8){const _0x5e4558=_0x498d5d;super(_0x5200a8),this[_0x5e4558(0xeb)](_0x5e4558(0xc3),void 0x0),this[_0x5e4558(0xeb)](_0x5e4558(0xa6),!0x0);const _0x1ce540=this[_0x5e4558(0xa1)];this[_0x5e4558(0xe4)]({'tag':_0x5e4558(0xb1),'attributes':{'class':['ck',_0x5e4558(0xcb),_0x1ce540['if'](_0x5e4558(0xa6),_0x5e4558(0xc2),_0x1887c7=>!_0x1887c7)]},'children':[{'text':_0x1ce540['to'](_0x5e4558(0xc3))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x59a7b1=_0x35ee;(function(_0x48acef,_0x433299){const _0xd20c86=_0x35ee,_0x11cccf=_0x48acef();while(!![]){try{const _0x45bb3d=parseInt(_0xd20c86(0xf9))/0x1*(parseInt(_0xd20c86(0xec))/0x2)+-parseInt(_0xd20c86(0xe6))/0x3*(parseInt(_0xd20c86(0xe0))/0x4)+parseInt(_0xd20c86(0xba))/0x5+-parseInt(_0xd20c86(0xde))/0x6+parseInt(_0xd20c86(0xdb))/0x7*(parseInt(_0xd20c86(0xf0))/0x8)+-parseInt(_0xd20c86(0xd3))/0x9*(-parseInt(_0xd20c86(0xe1))/0xa)+parseInt(_0xd20c86(0xca))/0xb*(-parseInt(_0xd20c86(0xcb))/0xc);if(_0x45bb3d===_0x433299)break;else _0x11cccf['push'](_0x11cccf['shift']());}catch(_0x527f83){_0x11cccf['push'](_0x11cccf['shift']());}}}(_0x5456,0xcc16e));import{IconSubmit as _0x446c25}from'ckeditor5/src/icons.js';function _0x35ee(_0x5c6fcb,_0x1ec29e){const _0x545630=_0x5456();return _0x35ee=function(_0x35ee75,_0x5a80f7){_0x35ee75=_0x35ee75-0xba;let _0x246fc0=_0x545630[_0x35ee75];return _0x246fc0;},_0x35ee(_0x5c6fcb,_0x1ec29e);}import{ButtonView as _0xb36065,AutocompleteView as _0x1e18d9,createLabeledTextarea as _0xedf23e}from'ckeditor5/src/ui.js';import{global as _0x5ebdc5,isVisible as _0x32b2f6,Rect as _0x466028,ResizeObserver as _0x30ffe6}from'ckeditor5/src/utils.js';import{getTranslation as _0x4e853f}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x49a613}from'./aichatpromptsuggestionslistview.js';import{escape as _0x11ae6f}from'es-toolkit/compat';function _0x5456(){const _0x520b0e=['width','sendUserMessage','hasError','_queryViewResizeObserver','px\x20-\x20var(--ck-spacing-tiny))','requestAnimationFrame','keystrokes','element','left','destroy','ck-ai-chat__prompt-input','window','110XnjhjI','2239524yIojku','_createSubmitButton','extendTemplate','enter','right','fieldView','target','maxRows','1305VoLaHB','style','focusableChildren','_addContextButtonView','submitButtonView','fieldWrapperChildren','rtl','errorText','10424071UvXLdd','trim','update','2848776fJMnaN','isEmpty','4rEAkku','59580aqXQFB','bind','fire','value','reset','3041133oqZToO','uiLanguageDirection','execute','add','_setUpAddContextButtonPositioning','queryView','10432iZiBGW','ck-ai-chat__prompt-submit-button','placeholder','MIN_ROWS','8SrDBpR','setIsUploadInProgress','render','calc(','MAX_ROWS','submit','isUploadInProgress','excludeScrollbarsAndBorders','minRows','71zaLFQP','AI_CHAT_LABEL_SUBMIT','isEnabled','AI_CHAT_PROMPT_EMPTY_ERROR','7336640wRbNeT','set','locale','setPlaceholderText'];_0x5456=function(){return _0x520b0e;};return _0x5456();}export class AIChatPromptInputView extends _0x1e18d9{[_0x59a7b1(0xd7)];static [_0x59a7b1(0xef)]=0x1;static [_0x59a7b1(0xf4)]=0xc;[_0x59a7b1(0xd6)];[_0x59a7b1(0xc1)];constructor(_0x13ae98,_0x302441){const _0x45e80d=_0x59a7b1;super(_0x13ae98,{'queryView':{'label':'','creator':_0xedf23e,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x49a613(_0x13ae98),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x45e80d(0xbb)](_0x45e80d(0xdf),!0x0),this[_0x45e80d(0xbb)](_0x45e80d(0xf6),!0x1),this[_0x45e80d(0xd6)]=_0x302441,this[_0x45e80d(0xc1)]=null,this[_0x45e80d(0xeb)][_0x45e80d(0xd0)][_0x45e80d(0xf8)]=AIChatPromptInputView[_0x45e80d(0xef)],this[_0x45e80d(0xeb)][_0x45e80d(0xd0)][_0x45e80d(0xd2)]=AIChatPromptInputView[_0x45e80d(0xf4)],this[_0x45e80d(0xeb)][_0x45e80d(0xd8)][_0x45e80d(0xe9)](this[_0x45e80d(0xd6)]),this[_0x45e80d(0xea)](),this[_0x45e80d(0xcd)]({'attributes':{'class':['ck',_0x45e80d(0xc8)]}}),this[_0x45e80d(0xd7)]=this[_0x45e80d(0xcc)](),this[_0x45e80d(0xd7)][_0x45e80d(0xe2)](_0x45e80d(0xfb))['to'](this,_0x45e80d(0xdf),this,_0x45e80d(0xf6),(_0x393537,_0x4c522b)=>!_0x393537&&!_0x4c522b),this[_0x45e80d(0xd5)][_0x45e80d(0xe9)](this[_0x45e80d(0xd7)]);}[_0x59a7b1(0xf2)](){const _0x45323c=_0x59a7b1;super[_0x45323c(0xf2)](),this[_0x45323c(0xeb)][_0x45323c(0xd8)][_0x45323c(0xe9)](this[_0x45323c(0xd7)]),this[_0x45323c(0xc4)][_0x45323c(0xbb)](_0x45323c(0xce),(_0x575af6,_0x35e5b8)=>{const _0x6186ce=_0x45323c;this[_0x6186ce(0xf6)]||this[_0x6186ce(0xdf)]||_0x575af6[_0x6186ce(0xd1)]==this[_0x6186ce(0xeb)][_0x6186ce(0xd0)][_0x6186ce(0xc5)]&&(this[_0x6186ce(0xf5)](),_0x35e5b8());}),this[_0x45323c(0xeb)][_0x45323c(0xd0)]['on'](_0x45323c(0xdd),()=>{const _0x28d8ed=_0x45323c;this[_0x28d8ed(0xdf)]=''===this[_0x28d8ed(0xeb)][_0x28d8ed(0xd0)][_0x28d8ed(0xc5)][_0x28d8ed(0xe4)]?.[_0x28d8ed(0xdc)]();});}[_0x59a7b1(0xc7)](){const _0x4ac4d0=_0x59a7b1;super[_0x4ac4d0(0xc7)](),this[_0x4ac4d0(0xc1)]&&this[_0x4ac4d0(0xc1)][_0x4ac4d0(0xc7)]();}[_0x59a7b1(0xf5)](){const _0x5571eb=_0x59a7b1,_0x5bb08a=this[_0x5571eb(0xeb)][_0x5571eb(0xd0)][_0x5571eb(0xc5)][_0x5571eb(0xe4)]?.[_0x5571eb(0xdc)]();if(!_0x5bb08a)return this[_0x5571eb(0xeb)][_0x5571eb(0xda)]=_0x4e853f(this[_0x5571eb(0xbc)],_0x5571eb(0xfc)),void(this[_0x5571eb(0xeb)][_0x5571eb(0xd0)][_0x5571eb(0xc0)]=!0x0);this[_0x5571eb(0xeb)][_0x5571eb(0xd0)][_0x5571eb(0xc0)]=!0x1;const _0x5e3f89=_0x11ae6f(_0x5bb08a);this[_0x5571eb(0xe3)](_0x5571eb(0xbf),_0x5e3f89),this[_0x5571eb(0xeb)][_0x5571eb(0xd0)][_0x5571eb(0xe5)]();}[_0x59a7b1(0xbd)](_0x792e0a){const _0x20bcd7=_0x59a7b1;this[_0x20bcd7(0xeb)][_0x20bcd7(0xd0)][_0x20bcd7(0xbb)](_0x20bcd7(0xee),_0x792e0a);}[_0x59a7b1(0xcc)](){const _0xe8a752=_0x59a7b1,_0x5c1e95=new _0xb36065(this[_0xe8a752(0xbc)]);return _0x5c1e95[_0xe8a752(0xbb)]({'icon':_0x446c25,'label':_0x4e853f(this[_0xe8a752(0xbc)],_0xe8a752(0xfa)),'isVisible':!0x0,'tooltip':!0x0,'class':_0xe8a752(0xed),'isEnabled':!0x1}),_0x5c1e95['on'](_0xe8a752(0xe8),()=>{const _0x274f10=_0xe8a752;this[_0x274f10(0xf5)]();}),_0x5c1e95;}[_0x59a7b1(0xf1)](_0x3b2486){const _0x67f56b=_0x59a7b1;this[_0x67f56b(0xf6)]=_0x3b2486;}[_0x59a7b1(0xea)](){const _0x28e03b=_0x59a7b1,_0x30fa3c=this[_0x28e03b(0xbc)],_0x14e4fb=()=>{const _0x33eb27=_0x28e03b;_0x5ebdc5[_0x33eb27(0xc9)][_0x33eb27(0xc3)](()=>{const _0x4ac72c=_0x33eb27;if(_0x32b2f6(this[_0x4ac72c(0xc5)])){const _0x158e13=new _0x466028(this[_0x4ac72c(0xeb)][_0x4ac72c(0xd0)][_0x4ac72c(0xc5)]),_0x4046ec=new _0x466028(this[_0x4ac72c(0xd6)][_0x4ac72c(0xc5)]),_0x5b926e=_0x158e13[_0x4ac72c(0xbe)],_0x414c0a=_0x4ac72c(0xd9)===_0x30fa3c[_0x4ac72c(0xe7)]?_0x4ac72c(0xcf):_0x4ac72c(0xc6);_0x158e13[_0x4ac72c(0xf7)]();const _0x14d105=_0x5b926e-_0x158e13[_0x4ac72c(0xbe)]+0x1;this[_0x4ac72c(0xd6)][_0x4ac72c(0xc5)][_0x4ac72c(0xd4)][_0x414c0a]=_0x4ac72c(0xf3)+(_0x5b926e-_0x4046ec[_0x4ac72c(0xbe)]-_0x14d105)+_0x4ac72c(0xc2);}});};this[_0x28e03b(0xeb)][_0x28e03b(0xd0)]['on'](_0x28e03b(0xdd),_0x14e4fb),this['on'](_0x28e03b(0xf2),()=>{const _0x35499d=_0x28e03b;_0x14e4fb(),this[_0x35499d(0xc1)]=new _0x30ffe6(this[_0x35499d(0xeb)][_0x35499d(0xd0)][_0x35499d(0xc5)],()=>{_0x14e4fb();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x105e40=_0x3c3c;function _0x5a3e(){const _0x1148ae=['850440eMfAkO','1505AaNMVP','62iqZKsM','1876176JzIRzP','24858GqLazW','66krYDpP','filter','length','3096pgWnrS','1526LFcxDd','26916Rojgnu','12416xFXbhW','1948700EqHNFe','items','181pvInEF'];_0x5a3e=function(){return _0x1148ae;};return _0x5a3e();}function _0x3c3c(_0x4905cd,_0x247446){const _0x5a3e38=_0x5a3e();return _0x3c3c=function(_0x3c3c13,_0x1191d3){_0x3c3c13=_0x3c3c13-0x168;let _0x51db02=_0x5a3e38[_0x3c3c13];return _0x51db02;},_0x3c3c(_0x4905cd,_0x247446);}(function(_0x4ce982,_0x142e1d){const _0x26a87e=_0x3c3c,_0x4d0650=_0x4ce982();while(!![]){try{const _0x187aaa=parseInt(_0x26a87e(0x171))/0x1*(-parseInt(_0x26a87e(0x174))/0x2)+parseInt(_0x26a87e(0x172))/0x3+parseInt(_0x26a87e(0x16e))/0x4*(parseInt(_0x26a87e(0x173))/0x5)+parseInt(_0x26a87e(0x16d))/0x6*(-parseInt(_0x26a87e(0x16c))/0x7)+-parseInt(_0x26a87e(0x16b))/0x8*(-parseInt(_0x26a87e(0x176))/0x9)+parseInt(_0x26a87e(0x16f))/0xa+parseInt(_0x26a87e(0x168))/0xb*(-parseInt(_0x26a87e(0x175))/0xc);if(_0x187aaa===_0x142e1d)break;else _0x4d0650['push'](_0x4d0650['shift']());}catch(_0x1f6427){_0x4d0650['push'](_0x4d0650['shift']());}}}(_0x5a3e,0x88b1d));import{ListView as _0x2c3c6e}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x2c3c6e{[_0x105e40(0x169)](){const _0x535d40=_0x105e40;let _0x20e3f4=0x0;for(const _0x11db0a of this[_0x535d40(0x170)])_0x20e3f4+=_0x11db0a[_0x535d40(0x170)][_0x535d40(0x16a)];return{'resultsCount':_0x20e3f4,'totalItemsCount':_0x20e3f4};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52059b=_0x50f2;(function(_0x4f3cb8,_0x5b7e2c){const _0x19d587=_0x50f2,_0x478660=_0x4f3cb8();while(!![]){try{const _0x5043bb=-parseInt(_0x19d587(0x135))/0x1*(-parseInt(_0x19d587(0x148))/0x2)+parseInt(_0x19d587(0x132))/0x3*(parseInt(_0x19d587(0x13c))/0x4)+-parseInt(_0x19d587(0x13e))/0x5*(-parseInt(_0x19d587(0x12f))/0x6)+parseInt(_0x19d587(0x134))/0x7*(parseInt(_0x19d587(0x14e))/0x8)+parseInt(_0x19d587(0x149))/0x9+parseInt(_0x19d587(0x14b))/0xa+-parseInt(_0x19d587(0x13a))/0xb;if(_0x5043bb===_0x5b7e2c)break;else _0x478660['push'](_0x478660['shift']());}catch(_0x4f15f3){_0x478660['push'](_0x478660['shift']());}}}(_0x56ae,0xac8ba));import{ListView as _0x3eb588}from'ckeditor5/src/ui.js';function _0x50f2(_0x12c1ce,_0x5dd873){const _0x56ae51=_0x56ae();return _0x50f2=function(_0x50f2c6,_0xa0e5c4){_0x50f2c6=_0x50f2c6-0x12f;let _0x4c72e0=_0x56ae51[_0x50f2c6];return _0x4c72e0;},_0x50f2(_0x12c1ce,_0x5dd873);}import{AIChatResourceListItemView as _0x503c9c}from'./aichatresourcelistitemview.js';const oc=_0x52059b(0x138);export class AIChatContextResourcesListView extends _0x3eb588{[_0x52059b(0x136)];constructor(_0xf4732,_0x434157){const _0xe95ce6=_0x52059b;super(_0xf4732),this[_0xe95ce6(0x136)]=_0x434157,this[_0xe95ce6(0x150)]({'attributes':{'class':[oc]}});}[_0x52059b(0x140)](_0x159d68,_0x5c7a52){const _0x27aff0=_0x52059b;this[_0x27aff0(0x137)][_0x27aff0(0x13f)]();let _0x19a1a0=_0x159d68;if(this[_0x27aff0(0x136)][_0x27aff0(0x141)]&&_0x5c7a52&&''!==_0x5c7a52[_0x27aff0(0x14d)]()){const _0x2aa35e=new RegExp(_0x5c7a52[_0x27aff0(0x145)](/[.*+?^${}()|[\]\\]/g,_0x27aff0(0x144)),'gi');_0x19a1a0=_0x159d68[_0x27aff0(0x139)](_0x367511=>_0x2aa35e[_0x27aff0(0x142)](_0x367511[_0x27aff0(0x14a)]));}for(const _0x320d36 of _0x19a1a0){const _0x9d4a18=new _0x503c9c(this[_0x27aff0(0x130)],_0x320d36);_0x9d4a18['on'](_0x27aff0(0x147),()=>{const _0xbdc191=_0x27aff0;this[_0xbdc191(0x14f)](this[_0xbdc191(0x136)],_0x320d36);}),this[_0x27aff0(0x137)][_0x27aff0(0x143)](_0x9d4a18);}this[_0x27aff0(0x136)][_0x27aff0(0x141)]&&this[_0x27aff0(0x146)](_0x5c7a52);}[_0x52059b(0x146)](_0x1a060c){const _0x401db1=_0x52059b;this[_0x401db1(0x136)][_0x401db1(0x141)]&&this[_0x401db1(0x137)][_0x401db1(0x13b)](_0x52ae19=>{const _0x46db71=_0x401db1;_0x52ae19[_0x46db71(0x146)](_0x1a060c);});}[_0x52059b(0x14c)](_0x3af1ab,_0x42e36f){const _0x20ee04=_0x52059b;for(const _0x54cc4b of this[_0x20ee04(0x137)]){const _0x331fbc=_0x54cc4b;_0x331fbc[_0x20ee04(0x131)]['id']===_0x3af1ab&&_0x331fbc[_0x20ee04(0x14c)](_0x42e36f);}}[_0x52059b(0x14f)](_0x542f08,_0x169b29){const _0x5c2fe3=_0x52059b;this[_0x5c2fe3(0x13d)](_0x5c2fe3(0x133),{'source':_0x542f08,'resource':_0x169b29});}}function _0x56ae(){const _0x23111e=['6452pnrYoC','fire','4755920josCxs','clear','setResources','useDefaultFiltering','test','add','\x5c$&','replace','highlightText','execute','46150gDGApB','12493224eMPhWT','label','7186340yrEGMK','updateResourceState','trim','7756872avkdKp','_handleResourceSelection','extendTemplate','6norfHi','locale','resource','567OPvpLz','addResourceToContext','7URDVQp','33tQjKmx','_source','items','ck-ai-chat-resources__list','filter','48258639SXgPNP','forEach'];_0x56ae=function(){return _0x23111e;};return _0x56ae();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d3fd6=_0x3fb6;(function(_0x4e6f89,_0x671930){const _0x6c62f5=_0x3fb6,_0x4303dd=_0x4e6f89();while(!![]){try{const _0x29c581=parseInt(_0x6c62f5(0x12c))/0x1+parseInt(_0x6c62f5(0x14e))/0x2*(parseInt(_0x6c62f5(0x142))/0x3)+parseInt(_0x6c62f5(0x141))/0x4*(parseInt(_0x6c62f5(0x13e))/0x5)+parseInt(_0x6c62f5(0x150))/0x6+parseInt(_0x6c62f5(0x13a))/0x7+parseInt(_0x6c62f5(0x146))/0x8+parseInt(_0x6c62f5(0x129))/0x9*(-parseInt(_0x6c62f5(0x138))/0xa);if(_0x29c581===_0x671930)break;else _0x4303dd['push'](_0x4303dd['shift']());}catch(_0x40c2e4){_0x4303dd['push'](_0x4303dd['shift']());}}}(_0x5586,0x84c10));function _0x5586(){const _0x1948d9=['set','loadSourceResources','2920VbLNmO','length','_resourcesListView','_searchInputVisibleFrom','loadResources','locale','render','extendTemplate','4cDGiVI','_skeletonLoader','1067784UpSzxI','isLoading','ck-hidden','setResources','_searchView','aiChatResources','searchInputVisibleFrom','delegate','_searchSection','setTemplate','ck\x20ck-search','1482039UKJYHw','add','source','520374PrnHUE','bindTemplate','_source','fire','_createResourcesListView','_latestLoadResourcesUid','updateResourceState','has','search','_createSearchSection','highlightText','getQuery','150LDTJFi','addResourceToContext','6626830zOntem','ck-ai-chat-resources','useDefaultFiltering','div','2865550hTqghT','children','_createSkeletonView','4filEFT','1192983HEuGCL','_createSearchView'];_0x5586=function(){return _0x1948d9;};return _0x5586();}import{View as _0x203b9e,ViewCollection as _0x1e405f}from'ckeditor5/src/ui.js';import{uid as _0x1b5b9f}from'ckeditor5/src/utils.js';function _0x3fb6(_0x49ec0b,_0x2fccf8){const _0x558628=_0x5586();return _0x3fb6=function(_0x3fb6b4,_0x252907){_0x3fb6b4=_0x3fb6b4-0x125;let _0x1adcba=_0x558628[_0x3fb6b4];return _0x1adcba;},_0x3fb6(_0x49ec0b,_0x2fccf8);}import{AIChatContextResourcesListView as _0x41b213}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x9dc211}from'./aichatresourcessearchinputview.js';import{AISkeletonView as _0x3fbf92,SKELETON_DEFINITIONS as _0x29d84c}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x203b9e{[_0x4d3fd6(0x154)];[_0x4d3fd6(0x126)];[_0x4d3fd6(0x149)];[_0x4d3fd6(0x148)];[_0x4d3fd6(0x14f)];[_0x4d3fd6(0x12e)];[_0x4d3fd6(0x13f)];[_0x4d3fd6(0x131)]=null;constructor(_0x22b92c,_0x50ff48){const _0x4bdc0a=_0x4d3fd6;super(_0x22b92c),this[_0x4bdc0a(0x12e)]=_0x50ff48[_0x4bdc0a(0x12b)],this[_0x4bdc0a(0x149)]=_0x50ff48[_0x4bdc0a(0x156)]??0x7,this[_0x4bdc0a(0x144)](_0x4bdc0a(0x151),!0x0),this[_0x4bdc0a(0x154)]=this[_0x4bdc0a(0x143)](),this[_0x4bdc0a(0x126)]=this[_0x4bdc0a(0x135)](),this[_0x4bdc0a(0x148)]=this[_0x4bdc0a(0x130)](),this[_0x4bdc0a(0x14f)]=this[_0x4bdc0a(0x140)](),this[_0x4bdc0a(0x13f)]=new _0x1e405f([this[_0x4bdc0a(0x14f)],this[_0x4bdc0a(0x148)]]),this[_0x4bdc0a(0x127)]({'tag':_0x4bdc0a(0x13d),'attributes':{'class':_0x4bdc0a(0x13b)},'children':this[_0x4bdc0a(0x13f)]});}[_0x4d3fd6(0x143)](){const _0x36588b=_0x4d3fd6;return new _0x9dc211(this[_0x36588b(0x14b)]);}[_0x4d3fd6(0x135)](){const _0x2be483=_0x4d3fd6,_0x200d05=new _0x203b9e(this[_0x2be483(0x14b)]);return _0x200d05[_0x2be483(0x127)]({'tag':_0x2be483(0x13d),'attributes':{'class':_0x2be483(0x128)},'children':[this[_0x2be483(0x154)]]}),this[_0x2be483(0x154)]['on'](_0x2be483(0x134),(_0xe4fa82,_0x575807)=>{const _0x4154eb=_0x2be483;this[_0x4154eb(0x14a)](_0x575807),this[_0x4154eb(0x12e)][_0x4154eb(0x13c)]&&this[_0x4154eb(0x148)][_0x4154eb(0x136)](_0x575807);}),_0x200d05;}[_0x4d3fd6(0x130)](){const _0x472720=_0x4d3fd6,_0x353309=new _0x41b213(this[_0x472720(0x14b)],this[_0x472720(0x12e)]);return _0x353309[_0x472720(0x125)](_0x472720(0x139))['to'](this),_0x353309[_0x472720(0x14d)]({'attributes':{'class':this[_0x472720(0x12d)]['if'](_0x472720(0x151),_0x472720(0x152))}}),_0x353309;}[_0x4d3fd6(0x140)](){const _0x44af5e=_0x4d3fd6,_0x31e388=new _0x3fbf92(this[_0x44af5e(0x14b)],_0x29d84c[_0x44af5e(0x155)]);return _0x31e388[_0x44af5e(0x14d)]({'attributes':{'class':[this[_0x44af5e(0x12d)]['if'](_0x44af5e(0x151),_0x44af5e(0x152),_0x5422c2=>!_0x5422c2)]}}),_0x31e388;}[_0x4d3fd6(0x14c)](){const _0x37a6f0=_0x4d3fd6;super[_0x37a6f0(0x14c)](),this[_0x37a6f0(0x14a)]('');}[_0x4d3fd6(0x14a)](_0x14a0b9){const _0x1df013=_0x4d3fd6,_0x4c9ef8=_0x1b5b9f();this[_0x1df013(0x131)]=_0x4c9ef8,this[_0x1df013(0x12f)](_0x1df013(0x145),{'sourceId':this[_0x1df013(0x12e)]['id'],'query':_0x14a0b9,'uid':_0x4c9ef8}),this[_0x1df013(0x151)]=!0x0;}[_0x4d3fd6(0x153)](_0x8ab31d,_0x12e68a){const _0x21f230=_0x4d3fd6;if(_0x12e68a&&_0x12e68a!==this[_0x21f230(0x131)])return;const _0x2f9fe=this[_0x21f230(0x12e)][_0x21f230(0x13c)]?this[_0x21f230(0x154)][_0x21f230(0x137)]():'';this[_0x21f230(0x148)][_0x21f230(0x153)](_0x8ab31d,_0x2f9fe),_0x8ab31d[_0x21f230(0x147)]>=this[_0x21f230(0x149)]&&!this[_0x21f230(0x13f)][_0x21f230(0x133)](this[_0x21f230(0x126)])&&this[_0x21f230(0x13f)][_0x21f230(0x12a)](this[_0x21f230(0x126)],0x0),requestAnimationFrame(()=>{const _0x2b165e=_0x21f230;this[_0x2b165e(0x151)]=!0x1;});}[_0x4d3fd6(0x132)](_0x4fcdd9,_0x2e71a7){const _0x2047ac=_0x4d3fd6;this[_0x2047ac(0x148)][_0x2047ac(0x132)](_0x4fcdd9,_0x2e71a7);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x114df1=_0x4adc;(function(_0x56cc33,_0xce9ede){const _0xba95e5=_0x4adc,_0x33288c=_0x56cc33();while(!![]){try{const _0x4e76b7=-parseInt(_0xba95e5(0xcf))/0x1*(-parseInt(_0xba95e5(0xc8))/0x2)+parseInt(_0xba95e5(0xdc))/0x3+parseInt(_0xba95e5(0xc9))/0x4+parseInt(_0xba95e5(0xeb))/0x5*(-parseInt(_0xba95e5(0xf1))/0x6)+parseInt(_0xba95e5(0xea))/0x7+-parseInt(_0xba95e5(0xdf))/0x8*(-parseInt(_0xba95e5(0xe4))/0x9)+-parseInt(_0xba95e5(0xe2))/0xa;if(_0x4e76b7===_0xce9ede)break;else _0x33288c['push'](_0x33288c['shift']());}catch(_0x324011){_0x33288c['push'](_0x33288c['shift']());}}}(_0x3684,0x6926f));function _0x4adc(_0x33b644,_0x5ed557){const _0x36846e=_0x3684();return _0x4adc=function(_0x4adcd7,_0x8bdd1d){_0x4adcd7=_0x4adcd7-0xc6;let _0x7ccc9=_0x36846e[_0x4adcd7];return _0x7ccc9;},_0x4adc(_0x33b644,_0x5ed557);}import{HighlightedTextView as _0x525bb6,IconView as _0x2350dd,ListItemView as _0x4b9e12}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x407db3}from'es-toolkit/compat';import{AIContextItemType as _0x3e9d91}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x7db1d5,IconCheck as _0x374b94,IconDocument as _0x36a186,IconDocumentOutline as _0x31a0dd,IconLink as _0x44483f}from'@ckeditor/ckeditor5-icons';const Gr=_0x114df1(0xda),Hr=_0x114df1(0xdb),Jr=_0x114df1(0xd2),Kr=_0x114df1(0xd9);export class AIChatResourceListItemView extends _0x4b9e12{[_0x114df1(0xd3)];[_0x114df1(0xe5)];[_0x114df1(0xdd)];constructor(_0x397726,_0x5895d1){const _0x33bb1a=_0x114df1;super(_0x397726),this[_0x33bb1a(0xd3)]=_0x5895d1,this[_0x33bb1a(0xd4)](_0x33bb1a(0xcb),!!_0x5895d1[_0x33bb1a(0xcb)]),this[_0x33bb1a(0xe5)]=this[_0x33bb1a(0xd7)](),this[_0x33bb1a(0xdd)]=this[_0x33bb1a(0xed)](),this[_0x33bb1a(0xc7)]();}[_0x114df1(0xc6)](){const _0x42743a=_0x114df1;super[_0x42743a(0xc6)]();}[_0x114df1(0xe0)](_0x388d9d){const _0x206380=_0x114df1;if(_0x388d9d[_0x206380(0xcb)])return _0x374b94;switch(_0x388d9d[_0x206380(0xe8)]){case _0x3e9d91[_0x206380(0xcd)]:return _0x36a186;case _0x3e9d91[_0x206380(0xec)]:return _0x44483f;case _0x3e9d91[_0x206380(0xce)]:case _0x3e9d91[_0x206380(0xd0)]:return _0x7db1d5;default:return _0x31a0dd;}}[_0x114df1(0xe1)](_0x1d6fac){const _0x2e099c=_0x114df1;if(!_0x1d6fac||''===_0x1d6fac[_0x2e099c(0xde)]())return void this[_0x2e099c(0xe5)][_0x2e099c(0xe1)](null);const _0x57c9=new RegExp(_0x407db3(_0x1d6fac),'gi');this[_0x2e099c(0xe5)][_0x2e099c(0xe1)](_0x57c9);}[_0x114df1(0xee)](_0x1e583e){const _0x369c61=_0x114df1;this[_0x369c61(0xd3)][_0x369c61(0xcb)]=_0x1e583e,this[_0x369c61(0xcb)]=_0x1e583e,this[_0x369c61(0xd1)]();}[_0x114df1(0xd7)](){const _0xd86106=_0x114df1,_0x4656c5=new _0x525bb6();return _0x4656c5[_0xd86106(0xd8)]=this[_0xd86106(0xd3)][_0xd86106(0xe9)],_0x4656c5[_0xd86106(0xcc)]({'tag':_0xd86106(0xe3),'attributes':{'class':[Jr]}}),_0x4656c5;}[_0x114df1(0xed)](){const _0x568da1=_0x114df1,_0x4f8781=new _0x2350dd();return _0x4f8781[_0x568da1(0xef)]=this[_0x568da1(0xe0)](this[_0x568da1(0xd3)]),_0x4f8781;}[_0x114df1(0xc7)](){const _0x4da7b7=_0x114df1,_0x2bb5f7=this[_0x4da7b7(0xd5)];this[_0x4da7b7(0xf0)]({'tag':_0x4da7b7(0xe6),'attributes':{'class':[Gr,_0x2bb5f7['if'](_0x4da7b7(0xca),_0x4da7b7(0xe7),_0x5f0b41=>!_0x5f0b41),_0x2bb5f7['if'](_0x4da7b7(0xcb),Hr)]},'children':[{'tag':_0x4da7b7(0xe6),'attributes':{'class':[Kr]},'children':[this[_0x4da7b7(0xdd)]]},this[_0x4da7b7(0xe5)]],'on':{'click':_0x2bb5f7['to'](_0x4da7b7(0xd6))}});}[_0x114df1(0xd1)](){const _0x5320a5=_0x114df1;this[_0x5320a5(0xdd)][_0x5320a5(0xef)]=this[_0x5320a5(0xe0)](this[_0x5320a5(0xd3)]);}}function _0x3684(){const _0x19e4cb=['1194130LbEmNF','URL','_createIconView','updateResourceState','content','setTemplate','6jQfknm','render','_setupTemplate','2iOHPcx','3093144WFpAds','isVisible','isInContext','extendTemplate','DOCUMENT','FILE','161992qxcFHS','TEXT','_updateIcon','ck-ai-chat-resources__item-title','resource','set','bindTemplate','execute','_createTitleView','text','ck-ai-chat-resources__item__icon','ck-ai-chat-resources__item','ck-ai-chat-resources__item--in-context','584898ZQBlkz','_iconView','trim','8Mlazfr','getResourceIcon','highlightText','11118920nvkCaw','span','3195999gevpkG','_titleView','div','ck-hidden','type','label','2072462MNhtJt'];_0x3684=function(){return _0x19e4cb;};return _0x3684();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x1aff(_0x1240bb,_0x347e30){const _0x391dfe=_0x391d();return _0x1aff=function(_0x1affbc,_0x12fc51){_0x1affbc=_0x1affbc-0x1de;let _0x3c837d=_0x391dfe[_0x1affbc];return _0x3c837d;},_0x1aff(_0x1240bb,_0x347e30);}const _0x7fad91=_0x1aff;(function(_0x5cf482,_0x19b03b){const _0x43b0db=_0x1aff,_0x3c9ac5=_0x5cf482();while(!![]){try{const _0x18b279=parseInt(_0x43b0db(0x215))/0x1*(-parseInt(_0x43b0db(0x1fb))/0x2)+-parseInt(_0x43b0db(0x1f2))/0x3+parseInt(_0x43b0db(0x218))/0x4+-parseInt(_0x43b0db(0x205))/0x5*(-parseInt(_0x43b0db(0x211))/0x6)+-parseInt(_0x43b0db(0x1ea))/0x7+parseInt(_0x43b0db(0x1f0))/0x8+-parseInt(_0x43b0db(0x206))/0x9*(-parseInt(_0x43b0db(0x1df))/0xa);if(_0x18b279===_0x19b03b)break;else _0x3c9ac5['push'](_0x3c9ac5['shift']());}catch(_0xb772bc){_0x3c9ac5['push'](_0x3c9ac5['shift']());}}}(_0x391d,0x34056));import{BalloonPanelView as _0x5b5dcc,ButtonView as _0x2d22e8,clickOutsideHandler as _0x2d1ebc,FormHeaderView as _0xef1ce7}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x18ecbf}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x23bfd2}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x34c9ac}from'./aichatcontextresourcesview.js';function _0x391d(){const _0x4d8bda=['onResourceSelected','populateSourceResourceBalloon','169104kZVooL','ck-ai-chat-context-controls__source-balloon-panel','915483RQkmWP','once','_setupSingleResourceBalloonClickOutsideHandler','element','_sourceResourceBalloons','values','destroy','resource','_addSourceResourceContent','210mbHCpZ','_createBackButton','searchInputVisibleFrom','getTargetElement','label','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','execute','delete','set','_bodyCollection','144975mzKMaO','1611UEiIXz','_locale','extendTemplate','_getResourcesViewFromBalloon','_createBalloonHeader','show','clear','isAnyResourceBalloonVisible','getLimiterElement','change:isLoading','onLoadSourceResources','72NUyZGY','isVisible','updateResourceState','loadSourceResources','1557ogZbfW','content','get','557656OHaPwD','closeSourceResourceBalloon','ck-button-icon\x20ck-button-back','source','31010JwWqVN','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','addResourceToContext','pin','_config','children','setResources','_createBalloonResourcesView','_createSourceResourceBalloonPanel','hide','add','2672929lOMXqY','onBalloonClosed','onBackToContext','showSourceResourcesBalloon'];_0x391d=function(){return _0x4d8bda;};return _0x391d();}const Nr=_0x7fad91(0x1f1),Xr=_0x7fad91(0x21a),Qr=_0x7fad91(0x1e0);export class AIChatResourcesBalloonView{[_0x7fad91(0x1f6)]=new Map();[_0x7fad91(0x204)];[_0x7fad91(0x207)];[_0x7fad91(0x1e3)];constructor(_0x6adac0,_0x1125ac,_0xfae51a){const _0x3e1933=_0x7fad91;this[_0x3e1933(0x207)]=_0x6adac0,this[_0x3e1933(0x204)]=_0x1125ac,this[_0x3e1933(0x1e3)]=_0xfae51a;}[_0x7fad91(0x1ed)](_0x1812c6){const _0x44aeca=_0x7fad91;let _0x51002c=this[_0x44aeca(0x1f6)][_0x44aeca(0x217)](_0x1812c6['id']);_0x51002c||(_0x51002c=this[_0x44aeca(0x1e7)](),this[_0x44aeca(0x1f6)][_0x44aeca(0x203)](_0x1812c6['id'],_0x51002c),this[_0x44aeca(0x1f4)](_0x51002c)),this[_0x44aeca(0x1fa)](_0x51002c,_0x1812c6),_0x51002c[_0x44aeca(0x20b)]();const _0x1b5913=this[_0x44aeca(0x1e3)][_0x44aeca(0x1fe)]();_0x1b5913&&_0x51002c[_0x44aeca(0x1e2)]({'target':_0x1b5913,'limiter':this[_0x44aeca(0x1e3)][_0x44aeca(0x20e)]()});}[_0x7fad91(0x1ef)](_0x33891c,_0x360fe5,_0x1d85e0){const _0x12c94f=_0x7fad91,_0x5c7d32=this[_0x12c94f(0x1f6)][_0x12c94f(0x217)](_0x33891c);if(!_0x5c7d32)return;const _0x32cd8d=this[_0x12c94f(0x209)](_0x5c7d32);_0x32cd8d&&(_0x32cd8d[_0x12c94f(0x1e5)](_0x360fe5,_0x1d85e0),_0x32cd8d[_0x12c94f(0x1f3)](_0x12c94f(0x20f),()=>{const _0x1d0472=_0x12c94f;_0x5c7d32[_0x1d0472(0x1e2)]({'target':this[_0x1d0472(0x1e3)][_0x1d0472(0x1fe)](),'limiter':this[_0x1d0472(0x1e3)][_0x1d0472(0x20e)]()});}));}[_0x7fad91(0x219)](_0xa40983){const _0x1c9a2d=_0x7fad91,_0x54dd25=this[_0x1c9a2d(0x1f6)][_0x1c9a2d(0x217)](_0xa40983);_0x54dd25&&requestAnimationFrame(()=>{const _0x587091=_0x1c9a2d;_0x54dd25[_0x587091(0x1e8)](),this[_0x587091(0x1f6)][_0x587091(0x202)](_0xa40983),this[_0x587091(0x1e3)][_0x587091(0x1eb)]();});}[_0x7fad91(0x20d)](){const _0x2fb313=_0x7fad91;for(const _0x164a8d of this[_0x2fb313(0x1f6)][_0x2fb313(0x1f7)]())if(_0x164a8d[_0x2fb313(0x212)])return!0x0;return!0x1;}[_0x7fad91(0x213)](_0x3903c6,_0x58c75a,_0x5c8398){const _0x3ceb05=_0x7fad91,_0x986921=this[_0x3ceb05(0x1f6)][_0x3ceb05(0x217)](_0x3903c6);if(!_0x986921||!_0x986921[_0x3ceb05(0x212)])return;const _0x26e245=this[_0x3ceb05(0x1e3)][_0x3ceb05(0x1fe)]();if(!_0x26e245)return;_0x986921[_0x3ceb05(0x1e2)]({'target':_0x26e245,'limiter':this[_0x3ceb05(0x1e3)][_0x3ceb05(0x20e)]()});const _0x52824c=this[_0x3ceb05(0x209)](_0x986921);_0x52824c&&_0x52824c[_0x3ceb05(0x213)](_0x58c75a,_0x5c8398);}[_0x7fad91(0x1f8)](){const _0x303fb6=_0x7fad91;for(const _0xe2ead6 of this[_0x303fb6(0x1f6)][_0x303fb6(0x1f7)]())_0xe2ead6[_0x303fb6(0x1f8)]();this[_0x303fb6(0x1f6)][_0x303fb6(0x20c)]();}[_0x7fad91(0x1e7)](){const _0x3ad2e8=_0x7fad91,_0x4a8ac0=new _0x5b5dcc(this[_0x3ad2e8(0x207)]);return _0x4a8ac0[_0x3ad2e8(0x208)]({'attributes':{'class':Nr}}),this[_0x3ad2e8(0x204)][_0x3ad2e8(0x1e9)](_0x4a8ac0),_0x4a8ac0;}[_0x7fad91(0x1fa)](_0x35aeb9,_0x4e2231){const _0x33ff36=_0x7fad91;_0x35aeb9[_0x33ff36(0x216)][_0x33ff36(0x20c)]();const _0x516192=this[_0x33ff36(0x20a)](_0x35aeb9,_0x4e2231);_0x35aeb9[_0x33ff36(0x216)][_0x33ff36(0x1e9)](_0x516192);const _0x51f1a6=this[_0x33ff36(0x1e6)](_0x4e2231);_0x35aeb9[_0x33ff36(0x216)][_0x33ff36(0x1e9)](_0x51f1a6);}[_0x7fad91(0x20a)](_0x3a3281,_0x200e35){const _0x51c70c=_0x7fad91,_0x5b173c=this[_0x51c70c(0x1fc)](_0x3a3281),_0x113f38=new _0xef1ce7(this[_0x51c70c(0x207)],{'label':_0x200e35[_0x51c70c(0x1ff)],'class':Qr});return _0x113f38[_0x51c70c(0x1e4)][_0x51c70c(0x1e9)](_0x5b173c,0x0),_0x113f38;}[_0x7fad91(0x1fc)](_0x580edc){const _0x2ac857=_0x7fad91,_0x2f745e=new _0x2d22e8(this[_0x2ac857(0x207)]);return _0x2f745e[_0x2ac857(0x203)]({'icon':_0x18ecbf,'tooltip':_0x23bfd2(this[_0x2ac857(0x207)],_0x2ac857(0x200)),'tooltipPosition':'n','class':Xr}),_0x2f745e['on'](_0x2ac857(0x201),()=>{const _0xe4479e=_0x2ac857;_0x580edc[_0xe4479e(0x1e8)](),this[_0xe4479e(0x1e3)][_0xe4479e(0x1ec)]();}),_0x2f745e;}[_0x7fad91(0x1e6)](_0x42cb03){const _0x1567a8=_0x7fad91,_0x1ff8d5=new _0x34c9ac(this[_0x1567a8(0x207)],{'source':_0x42cb03,'searchInputVisibleFrom':this[_0x1567a8(0x1e3)][_0x1567a8(0x1fd)]});return _0x1ff8d5['on'](_0x1567a8(0x214),(_0x2dd959,_0x1174ec)=>{const _0x420669=_0x1567a8;this[_0x420669(0x1e3)][_0x420669(0x210)](_0x1174ec);}),_0x1ff8d5['on'](_0x1567a8(0x1e1),(_0x56a7d6,_0x38d52d)=>{const _0x5262bd=_0x1567a8;this[_0x5262bd(0x1e3)][_0x5262bd(0x1ee)](_0x38d52d[_0x5262bd(0x1de)],_0x38d52d[_0x5262bd(0x1f9)]),this[_0x5262bd(0x219)](_0x42cb03['id']);}),_0x1ff8d5;}[_0x7fad91(0x209)](_0x33b966){const _0x2a2a2b=_0x7fad91,_0x7f026f=_0x33b966[_0x2a2a2b(0x216)][_0x2a2a2b(0x217)](0x1);return _0x7f026f instanceof _0x34c9ac?_0x7f026f:null;}[_0x7fad91(0x1f4)](_0x260866){const _0x885912=_0x7fad91;_0x2d1ebc({'emitter':_0x260866,'contextElements':[_0x260866[_0x885912(0x1f5)]],'callback':()=>{const _0x4bde09=_0x885912;_0x260866[_0x4bde09(0x1e8)](),this[_0x4bde09(0x1e3)][_0x4bde09(0x1eb)]();},'activator':()=>_0x260866[_0x885912(0x212)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x3bd2e8,IconView as _0x2e57b1,LabeledFieldView as _0x3cefe2,createLabeledInputText as _0x2885c0}from'ckeditor5/src/ui.js';import{IconLoupe as _0x516c42,IconCancel as _0x550e15}from'ckeditor5/src/icons.js';import{getTranslation as _0x37f8a3}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x3cefe2{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x31dc33){const t=_0x31dc33['t'],_0x8f555={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x2885c0,'label':_0x37f8a3(_0x31dc33,'AI_CHAT_SEARCH_RESOURCES')};super(_0x31dc33,_0x8f555['creator']),this['label']=_0x8f555['label'],this['_viewConfig']=_0x8f555,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x31dc33,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x35bc4e){this['fire']('search',_0x35bc4e);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x2e57b1(),this['iconView']['content']=_0x516c42,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0xd9b8ef,t){this['resetButtonView']=new _0x3bd2e8(_0xd9b8ef),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x550e15,'class':'ck-search__reset','isVisible':!0x1,'tooltip':!0x0}),this['resetButtonView']['on']('execute',()=>{this['reset'](),this['focus'](),this['fire']('reset');}),this['resetButtonView']['bind']('isVisible')['to'](this['fieldView'],'isEmpty',_0x269fe1=>!_0x269fe1),this['fieldWrapperChildren']['add'](this['resetButtonView']),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-reset'}});}['_setupEventListeners'](){this['listenTo'](this['fieldView'],'input',()=>{this['search'](this['fieldView']['element']['value']);}),this['bind']('isEnabled')['to'](this);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x332fd8=_0x4315;(function(_0x3ae1ea,_0x57ec2d){const _0x434efe=_0x4315,_0x5cda1e=_0x3ae1ea();while(!![]){try{const _0x15f6aa=-parseInt(_0x434efe(0x79))/0x1*(-parseInt(_0x434efe(0x70))/0x2)+parseInt(_0x434efe(0x7f))/0x3*(-parseInt(_0x434efe(0x80))/0x4)+parseInt(_0x434efe(0x68))/0x5*(-parseInt(_0x434efe(0x8a))/0x6)+-parseInt(_0x434efe(0x86))/0x7*(parseInt(_0x434efe(0x6f))/0x8)+-parseInt(_0x434efe(0x76))/0x9*(-parseInt(_0x434efe(0x82))/0xa)+parseInt(_0x434efe(0x7c))/0xb*(parseInt(_0x434efe(0x6c))/0xc)+-parseInt(_0x434efe(0x6b))/0xd*(-parseInt(_0x434efe(0x83))/0xe);if(_0x15f6aa===_0x57ec2d)break;else _0x5cda1e['push'](_0x5cda1e['shift']());}catch(_0x531044){_0x5cda1e['push'](_0x5cda1e['shift']());}}}(_0x42ed,0xeda7a));import{View as _0x2bfcb4}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x1ebe0c}from'../controls/aichatcontextitembuttonview.js';function _0x42ed(){const _0xd8b086=['locale','_overflowManager','40XERAwW','19678jUmhYK','ck-reset_all','setContainerElement','ck-ai-chat-context-chips-wrapper','ck-ai-chat__feed__context-chips','_contextChips','18fkjrCs','ck-ai-chat-controls-button','_createContextChips','10GlUFyU','createCollection','setTemplate','6665021fjUMgI','querySelector','div','51yiNCKe','253196MFJKPo','ck-ai-chat-controls_context_show-more-button','1112830LXBVYV','1167222IqUgBm','ck-ai-chat-context-chips-wrapper-balloon','render','1869798ZpTaYJ','element','_bodyCollection','destroy','6QxnxNe','reorganizeChips','20985jJzeWC','ck-ai-chat-context-controls__show-more-balloon-panel','add','195dARDyH','36fdzKqK'];_0x42ed=function(){return _0xd8b086;};return _0x42ed();}function _0x4315(_0x58b850,_0x271d74){const _0x42edfd=_0x42ed();return _0x4315=function(_0x4315d1,_0x14764a){_0x4315d1=_0x4315d1-0x68;let _0x16b9ff=_0x42edfd[_0x4315d1];return _0x16b9ff;},_0x4315(_0x58b850,_0x271d74);}import{AIChatChipsOverflowManager as _0x1649fb}from'../controls/aichatchipsoverflowmanager.js';const $o=_0x332fd8(0x74),Ko=_0x332fd8(0x73),Qo=_0x332fd8(0x84),Uo=_0x332fd8(0x77),No=_0x332fd8(0x81),Oo=_0x332fd8(0x69);export class AIChatFeedContextChipsView extends _0x2bfcb4{[_0x332fd8(0x75)]=this[_0x332fd8(0x7a)]();[_0x332fd8(0x6e)];[_0x332fd8(0x88)];constructor(_0x1de347,_0x4e2e40,_0x20f85c){const _0x5211e5=_0x332fd8;super(_0x1de347),this[_0x5211e5(0x88)]=_0x20f85c,this[_0x5211e5(0x78)](_0x4e2e40);const _0x1b1fca={'cssClasses':{'showMoreButton':No,'showMoreBalloon':Oo,'overflowContainer':Qo,'controlsButton':Uo}};this[_0x5211e5(0x6e)]=new _0x1649fb(_0x1de347,this[_0x5211e5(0x75)],_0x1b1fca,this[_0x5211e5(0x88)],this),this[_0x5211e5(0x7b)]({'tag':_0x5211e5(0x7e),'attributes':{'class':[$o,'ck',_0x5211e5(0x71)]},'children':[{'tag':_0x5211e5(0x7e),'attributes':{'class':Ko},'children':this[_0x5211e5(0x75)]}]});}[_0x332fd8(0x85)](){const _0x1eee74=_0x332fd8;super[_0x1eee74(0x85)]();const _0x3d4c9a=this[_0x1eee74(0x87)][_0x1eee74(0x7d)]('.'+Ko);_0x3d4c9a&&(this[_0x1eee74(0x6e)][_0x1eee74(0x72)](_0x3d4c9a),this[_0x1eee74(0x6e)][_0x1eee74(0x8b)]());}[_0x332fd8(0x89)](){const _0x22b2b9=_0x332fd8;super[_0x22b2b9(0x89)](),this[_0x22b2b9(0x6e)][_0x22b2b9(0x89)]();}[_0x332fd8(0x78)](_0x58d112){const _0x4f01df=_0x332fd8;for(const _0x56ffd5 of _0x58d112){const _0x11df10=new _0x1ebe0c(this[_0x4f01df(0x6d)],_0x56ffd5,!0x0,!0x1);this[_0x4f01df(0x75)][_0x4f01df(0x6a)](_0x11df10);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x17ee(){var _0x1cdc21=['3545549wFrkvW','3474zukcBw','2980465CjYFkB','1955760aYKhZq','ck-ai-notification','6vTmNcU','setContent','472vTDyAg','2265992zcRyZT','ck-ai-notification_error','options','2135031moDzuR','261qHwYsn','innerHTML','613810dGrtjq','level','initialContent','render','markAsDone','warning','element','ck-ai-notification_warning','extendTemplate'];_0x17ee=function(){return _0x1cdc21;};return _0x17ee();}var _0x786797=_0x46c3;(function(_0x1508c3,_0x3e6ca8){var _0x4ab317=_0x46c3,_0x3d22e5=_0x1508c3();while(!![]){try{var _0x473e85=parseInt(_0x4ab317(0x108))/0x1*(parseInt(_0x4ab317(0x10e))/0x2)+-parseInt(_0x4ab317(0xfb))/0x3+-parseInt(_0x4ab317(0x10a))/0x4+parseInt(_0x4ab317(0x109))/0x5*(-parseInt(_0x4ab317(0x10c))/0x6)+-parseInt(_0x4ab317(0x107))/0x7+parseInt(_0x4ab317(0xf8))/0x8+-parseInt(_0x4ab317(0xfc))/0x9*(-parseInt(_0x4ab317(0xfe))/0xa);if(_0x473e85===_0x3e6ca8)break;else _0x3d22e5['push'](_0x3d22e5['shift']());}catch(_0x24c659){_0x3d22e5['push'](_0x3d22e5['shift']());}}}(_0x17ee,0x8d969));import{AIChatFeedItemView as _0x45947b}from'./aichatfeeditemview.js';function _0x46c3(_0x359ee4,_0x79d0fb){var _0x17eea3=_0x17ee();return _0x46c3=function(_0x46c378,_0x1e6d00){_0x46c378=_0x46c378-0xf8;var _0x149fa5=_0x17eea3[_0x46c378];return _0x149fa5;},_0x46c3(_0x359ee4,_0x79d0fb);}export class AIChatFeedErrorItemView extends _0x45947b{constructor(_0x56b3a8){var _0x557f17=_0x46c3;super(_0x56b3a8),this[_0x557f17(0x106)]({'attributes':{'class':[_0x557f17(0x10b),_0x557f17(0x103)===_0x56b3a8[_0x557f17(0xff)]?_0x557f17(0x105):_0x557f17(0xf9)]}});}[_0x786797(0x101)](){var _0x3e1fcc=_0x786797;super[_0x3e1fcc(0x101)](),this[_0x3e1fcc(0x10d)](this[_0x3e1fcc(0xfa)][_0x3e1fcc(0x100)]),this[_0x3e1fcc(0x102)]();}[_0x786797(0x10d)](_0x1929a6){var _0x11eb51=_0x786797;this[_0x11eb51(0x104)][_0x11eb51(0xfd)]=_0x1929a6;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1e3ae6=_0x4978;(function(_0x36d050,_0x31381a){const _0x34c978=_0x4978,_0x3dcab3=_0x36d050();while(!![]){try{const _0x1f9678=-parseInt(_0x34c978(0x1ba))/0x1*(-parseInt(_0x34c978(0x1c1))/0x2)+parseInt(_0x34c978(0x1b3))/0x3+-parseInt(_0x34c978(0x1a9))/0x4+parseInt(_0x34c978(0x1b6))/0x5+parseInt(_0x34c978(0x1be))/0x6+-parseInt(_0x34c978(0x1aa))/0x7+-parseInt(_0x34c978(0x1b2))/0x8*(parseInt(_0x34c978(0x1ab))/0x9);if(_0x1f9678===_0x31381a)break;else _0x3dcab3['push'](_0x3dcab3['shift']());}catch(_0x2521eb){_0x3dcab3['push'](_0x3dcab3['shift']());}}}(_0x244d,0x4c501));function _0x244d(){const _0x2e21b5=['push','add','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','ck-ai-chat__feed__interaction-header','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','ck-ai-chat__feed__interaction-header__capabilities__text','4215472OSmNfg','1868406mKLUsH','span','ck-ai-chat__feed__interaction-header__capabilities','1398065wHJQBR','content','children','div','532624RcwLyv','ck-hidden','capabilities','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','3503814thAKBj','setTemplate','extendTemplate','2qVtilT','2086932gDGFot','915810ivNjDl','18LFcDbO'];_0x244d=function(){return _0x2e21b5;};return _0x244d();}import{IconBulb as _0x529814,IconWeb as _0x43e569}from'@ckeditor/ckeditor5-icons';import{IconView as _0x47a833,View as _0x36e9f5}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x2c4e59}from'./aichatfeeditemview.js';import{getTranslation as _0x25178b}from'../../../aicore/utils/common-translations.js';function _0x4978(_0xe42bde,_0x497d39){const _0x244deb=_0x244d();return _0x4978=function(_0x49782d,_0x27c8ed){_0x49782d=_0x49782d-0x1a9;let _0x340a36=_0x244deb[_0x49782d];return _0x340a36;},_0x4978(_0xe42bde,_0x497d39);}export class AIChatFeedInteractionHeaderView extends _0x2c4e59{[_0x1e3ae6(0x1bc)];constructor(_0xe0df9f,_0x4dbbbb){const _0x570d6d=_0x1e3ae6;super(_0x4dbbbb);const {isWebSearchEnabled:_0x44a34a,isReasoningEnabled:_0x271b26}=_0x4dbbbb[_0x570d6d(0x1bc)],_0x3a7364=[];let _0xcfc1ce='';_0x44a34a&&_0x271b26?(_0xcfc1ce=_0x25178b(_0xe0df9f,_0x570d6d(0x1b0)),_0x3a7364[_0x570d6d(0x1ac)](aa(_0x43e569)),_0x3a7364[_0x570d6d(0x1ac)](aa(_0x529814))):_0x44a34a?(_0xcfc1ce=_0x25178b(_0xe0df9f,_0x570d6d(0x1bd)),_0x3a7364[_0x570d6d(0x1ac)](aa(_0x43e569))):_0x271b26&&(_0xcfc1ce=_0x25178b(_0xe0df9f,_0x570d6d(0x1ae)),_0x3a7364[_0x570d6d(0x1ac)](aa(_0x529814))),this[_0x570d6d(0x1c0)]({'attributes':{'class':[_0x570d6d(0x1af),_0xcfc1ce?'':_0x570d6d(0x1bb)]}});const _0x3a64cc=new _0x36e9f5();_0x3a64cc[_0x570d6d(0x1bf)]({'tag':_0x570d6d(0x1b9),'attributes':{'class':['ck',_0x570d6d(0x1b5)]},'children':[..._0x3a7364,{'tag':_0x570d6d(0x1b4),'attributes':{'class':[_0x570d6d(0x1b1)]},'children':[_0xcfc1ce]}]}),this[_0x570d6d(0x1b8)][_0x570d6d(0x1ad)](_0x3a64cc),this[_0x570d6d(0x1bc)]=_0x4dbbbb[_0x570d6d(0x1bc)];}}function aa(_0x23f917){const _0x121607=_0x1e3ae6,_0x343a0d=new _0x47a833();return _0x343a0d[_0x121607(0x1b7)]=_0x23f917,_0x343a0d;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49cb76=_0x5221;(function(_0x222c87,_0x8bc147){const _0x570168=_0x5221,_0x55412b=_0x222c87();while(!![]){try{const _0x78bd51=-parseInt(_0x570168(0x8b))/0x1*(parseInt(_0x570168(0x95))/0x2)+parseInt(_0x570168(0xa6))/0x3*(parseInt(_0x570168(0x91))/0x4)+-parseInt(_0x570168(0x93))/0x5*(parseInt(_0x570168(0xa1))/0x6)+parseInt(_0x570168(0xa7))/0x7*(-parseInt(_0x570168(0x90))/0x8)+parseInt(_0x570168(0x98))/0x9*(parseInt(_0x570168(0x87))/0xa)+-parseInt(_0x570168(0xad))/0xb*(parseInt(_0x570168(0xa2))/0xc)+-parseInt(_0x570168(0xa5))/0xd*(-parseInt(_0x570168(0xaa))/0xe);if(_0x78bd51===_0x8bc147)break;else _0x55412b['push'](_0x55412b['shift']());}catch(_0x1eee3a){_0x55412b['push'](_0x55412b['shift']());}}}(_0x212e,0x1dc2a));import{View as _0x4446ee}from'ckeditor5/src/ui.js';function _0x212e(){const _0x292ae8=['querySelectorAll','createCollection','div','element','7456odWzpi','125684yzMeYm','[data-id]','9025CzFvBP','setTemplate','2270TBxbIU','ck-ai-chat__feed__text-item','markAsDone','18tOEUSU','set','bindTemplate','htmlStreamer','options','content','ck-ai-chat__feed__item','animation:\x20ck-html-streamer-fade-in\x20.5s','removeAttribute','12HFctbE','12KYqRBb','data-id','isVisible','52Ovdtyl','6ssOkbN','126GbFeIB','ck-ai-chat__feed__item_done','ck-hidden','821996iCCRiq','children','streamIntoElement','213862cpqBxe','isDone','262190IiQILn','forEach','stream','cleanUpAnimations','166LrkuIv'];_0x212e=function(){return _0x292ae8;};return _0x212e();}function _0x5221(_0x16e0c2,_0xe304ed){const _0x212e01=_0x212e();return _0x5221=function(_0x522176,_0x9e7632){_0x522176=_0x522176-0x86;let _0x552972=_0x212e01[_0x522176];return _0x552972;},_0x5221(_0x16e0c2,_0xe304ed);}import{HTMLStreamer as _0x16cbc3}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x4446ee{[_0x49cb76(0x9c)];[_0x49cb76(0x9d)]='';[_0x49cb76(0x9b)];[_0x49cb76(0xab)];constructor(_0x1cd9ee){const _0x3f5517=_0x49cb76;super();const _0x5b89a5=this[_0x3f5517(0x9a)];this[_0x3f5517(0x99)](_0x3f5517(0x86),!0x1),this[_0x3f5517(0x99)](_0x3f5517(0xa4),!0x0),this[_0x3f5517(0x9b)]=new _0x16cbc3({'textNodeStyle':_0x3f5517(0x9f),'delay':0x14}),this[_0x3f5517(0x9c)]=_0x1cd9ee,this[_0x3f5517(0xab)]=this[_0x3f5517(0x8d)](),this[_0x3f5517(0x94)]({'tag':_0x3f5517(0x8e),'attributes':{'class':['ck',_0x3f5517(0x9e),_0x5b89a5['if'](_0x3f5517(0x86),_0x3f5517(0xa8)),_0x5b89a5['if'](_0x3f5517(0xa4),_0x3f5517(0xa9),_0x48ffa8=>!_0x48ffa8),_0x3f5517(0x96)],'data-cke-ai-id':this[_0x3f5517(0x9c)]['id']},'children':this[_0x3f5517(0xab)]});}[_0x49cb76(0x97)](){const _0x337071=_0x49cb76;this[_0x337071(0x9b)][_0x337071(0x8a)]({'targetElement':this[_0x337071(0x8f)]}),this[_0x337071(0x8f)][_0x337071(0x8c)](_0x337071(0x92))[_0x337071(0x88)](_0x2a984a=>{const _0x3a22cc=_0x337071;_0x2a984a[_0x3a22cc(0xa0)](_0x3a22cc(0xa3));}),this[_0x337071(0x86)]=!0x0;}async[_0x49cb76(0xac)](_0x360d90,_0x5ce81e,_0x3d56c9){const _0x4854a9=_0x49cb76;await this[_0x4854a9(0x9b)][_0x4854a9(0x89)]({'document':_0x360d90,'targetElement':_0x5ce81e,'abortSignal':_0x3d56c9});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe7416e=_0x56aa;function _0x5c18(){const _0xfab260=['7030590shIZDA','children','element','6276776iTuTdT','replyContainer','372LDgyoy','map','render','isVisible','17559100FPKwUc','7381535WZJzFg','streaming','545217pVzQUB','div','2760408foFxHE','innerHTML','extendTemplate','ck-ai-chat__feed__ai-reply-container','ck-ai-chat__feed__ai-reply','setTemplate','addMany','9SkxZVx','ck-reset_all-excluded','34785DuWZAn','updateContent','updateSources','options','locale','markAsDone','add','streamIntoElement','2GtppwR','static','initialContent'];_0x5c18=function(){return _0xfab260;};return _0x5c18();}(function(_0x2452db,_0x4967de){const _0x58c197=_0x56aa,_0x167ff9=_0x2452db();while(!![]){try{const _0x460cc1=-parseInt(_0x58c197(0x1ef))/0x1*(-parseInt(_0x58c197(0x202))/0x2)+-parseInt(_0x58c197(0x1f1))/0x3+-parseInt(_0x58c197(0x20a))/0x4*(-parseInt(_0x58c197(0x1fa))/0x5)+-parseInt(_0x58c197(0x205))/0x6+-parseInt(_0x58c197(0x1ed))/0x7+parseInt(_0x58c197(0x208))/0x8*(parseInt(_0x58c197(0x1f8))/0x9)+parseInt(_0x58c197(0x1ec))/0xa;if(_0x460cc1===_0x4967de)break;else _0x167ff9['push'](_0x167ff9['shift']());}catch(_0x3fd496){_0x167ff9['push'](_0x167ff9['shift']());}}}(_0x5c18,0x8f24f));import{AIChatFeedItemView as _0x15fe1f}from'./aichatfeeditemview.js';function _0x56aa(_0x51529d,_0x5407d8){const _0x5c18dc=_0x5c18();return _0x56aa=function(_0x56aa5d,_0x46b926){_0x56aa5d=_0x56aa5d-0x1eb;let _0x3d853f=_0x5c18dc[_0x56aa5d];return _0x3d853f;},_0x56aa(_0x51529d,_0x5407d8);}import{parse as _0x47998b,render as _0x4e7285}from'../../../aicore/utils/htmlparser.js';import{View as _0x1fa872}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x2c6b0e,AIWebSourceView as _0x5e1657}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';export class AIChatFeedReplyItemView extends _0x15fe1f{[_0xe7416e(0x209)];constructor(_0x235cf3,_0x26139f){const _0x5f0911=_0xe7416e;super(_0x26139f),this[_0x5f0911(0x1fe)]=_0x235cf3,this[_0x5f0911(0x1f3)]({'attributes':{'class':[_0x5f0911(0x1f5)]}}),this[_0x5f0911(0x209)]=new _0x1fa872(),this[_0x5f0911(0x209)][_0x5f0911(0x1f6)]({'tag':_0x5f0911(0x1f0),'attributes':{'class':['ck',_0x5f0911(0x1f9),_0x5f0911(0x1f4)]}}),this[_0x5f0911(0x206)][_0x5f0911(0x200)](this[_0x5f0911(0x209)]);}async[_0xe7416e(0x20c)](){const _0x221cf6=_0xe7416e;super[_0x221cf6(0x20c)](),this[_0x221cf6(0x1fd)][_0x221cf6(0x204)]&&(await this[_0x221cf6(0x1fb)]({'parsedContent':_0x47998b(this[_0x221cf6(0x1fd)][_0x221cf6(0x204)]),'renderingStrategy':_0x221cf6(0x203)}),this[_0x221cf6(0x1ff)]());}async[_0xe7416e(0x1fb)]({parsedContent:_0x236413,renderingStrategy:_0x11c9c1,abortSignal:_0xfe70e0}){const _0x5229ea=_0xe7416e;_0x5229ea(0x1ee)===_0x11c9c1?await this[_0x5229ea(0x201)](_0x236413,this[_0x5229ea(0x209)][_0x5229ea(0x207)],_0xfe70e0):this[_0x5229ea(0x209)][_0x5229ea(0x207)][_0x5229ea(0x1f2)]=_0x4e7285(_0x236413);}[_0xe7416e(0x1fc)](_0x5d98b4){const _0x2ebe33=_0xe7416e,_0x2bac28=new _0x2c6b0e(this[_0x2ebe33(0x1fe)]);_0x2bac28[_0x2ebe33(0x206)][_0x2ebe33(0x1f7)](_0x5d98b4[_0x2ebe33(0x20b)](_0x1feb98=>new _0x5e1657(this[_0x2ebe33(0x1fe)],_0x1feb98))),_0x2bac28[_0x2ebe33(0x1eb)]=!0x0,this[_0x2ebe33(0x206)][_0x2ebe33(0x200)](_0x2bac28);}}
|