@ckeditor/ckeditor5-ai 47.3.0-alpha.2 → 47.3.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index-editor.css +18 -11
- package/dist/index.css +19 -11
- 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.d.ts +1 -0
- 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
- package/theme/aiballoon/aiballoon.css +2 -1
- package/theme/aiquickactions/aiquickactions.css +17 -10
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x5869(_0x491e58,_0x36ec77){const _0x293291=_0x2932();return _0x5869=function(_0x5869b1,_0x28c9eb){_0x5869b1=_0x5869b1-0x1a1;let _0x23e61d=_0x293291[_0x5869b1];return _0x23e61d;},_0x5869(_0x491e58,_0x36ec77);}const _0x24095d=_0x5869;(function(_0x1522bd,_0x542cf7){const _0xcd4432=_0x5869,_0x4bf8a1=_0x1522bd();while(!![]){try{const _0x244360=parseInt(_0xcd4432(0x1a9))/0x1*(-parseInt(_0xcd4432(0x1ab))/0x2)+-parseInt(_0xcd4432(0x1ad))/0x3*(-parseInt(_0xcd4432(0x1a2))/0x4)+parseInt(_0xcd4432(0x1bc))/0x5+-parseInt(_0xcd4432(0x1a3))/0x6*(-parseInt(_0xcd4432(0x1ba))/0x7)+parseInt(_0xcd4432(0x1af))/0x8*(-parseInt(_0xcd4432(0x1aa))/0x9)+-parseInt(_0xcd4432(0x1b9))/0xa*(parseInt(_0xcd4432(0x1b2))/0xb)+-parseInt(_0xcd4432(0x1b3))/0xc*(-parseInt(_0xcd4432(0x1b6))/0xd);if(_0x244360===_0x542cf7)break;else _0x4bf8a1['push'](_0x4bf8a1['shift']());}catch(_0x246a2a){_0x4bf8a1['push'](_0x4bf8a1['shift']());}}}(_0x2932,0x66bd6));import{ButtonView as _0x4adeae,View as _0x4d1bd5}from'ckeditor5/src/ui.js';import{IconStop as _0x24b79f}from'ckeditor5/src/icons.js';import{getTranslation as _0x22092d}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x4d1bd5{[_0x24095d(0x1b4)];[_0x24095d(0x1a6)];constructor(_0x36fb2e){const _0x22a4b0=_0x24095d;super(_0x36fb2e),this[_0x22a4b0(0x1b4)]=this[_0x22a4b0(0x1c0)](),this[_0x22a4b0(0x1a6)]=this[_0x22a4b0(0x1a4)](),this[_0x22a4b0(0x1a5)]({'tag':_0x22a4b0(0x1b5),'attributes':{'class':['ck',_0x22a4b0(0x1be),_0x22a4b0(0x1ac)]},'children':[this[_0x22a4b0(0x1a6)],this[_0x22a4b0(0x1b4)]]});}[_0x24095d(0x1c0)](){const _0xe9cacd=_0x24095d,_0x4f20dd=new _0x4adeae(this[_0xe9cacd(0x1b0)]);return _0x4f20dd[_0xe9cacd(0x1bf)]({'label':_0x22092d(this[_0xe9cacd(0x1b0)],_0xe9cacd(0x1ae)),'withText':!0x0,'class':_0xe9cacd(0x1a8),'icon':_0x24b79f}),_0x4f20dd['on'](_0xe9cacd(0x1b1),()=>{const _0x6bff07=_0xe9cacd;this[_0x6bff07(0x1a1)](_0x6bff07(0x1bb));}),_0x4f20dd;}[_0x24095d(0x1a4)](){const _0x257f4f=_0x24095d,_0x3c2c09=new _0x4d1bd5(this[_0x257f4f(0x1b0)]);return _0x3c2c09[_0x257f4f(0x1a5)]({'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1a7)]},'children':[{'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1b8)]},'children':[{'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1bd)]}},{'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1bd)]}},{'tag':_0x257f4f(0x1b5),'attributes':{'class':[_0x257f4f(0x1bd)]}}]},{'text':_0x22092d(this[_0x257f4f(0x1b0)],_0x257f4f(0x1b7))}]}),_0x3c2c09;}}function _0x2932(){const _0x5d8e96=['9632VItkNv','abortPromptStream','2279055HfcTkn','ck-ai-chat-controls-loader-icon-dot','ck-ai-chat-controls-loader-wrapper','set','_createCancelButtonView','fire','12fzhqvZ','2562nKKLfI','_createLoaderView','setTemplate','_loaderView','ck-ai-chat-controls-loader','ck-ai-button-secondary\x20ck-ai-button-stop-generating','3qOzQEy','18nCQrqv','359246jEQvaM','ck-reset_all','246369bubxUw','AI_CHAT_STOP_GENERATING','761296cCaPEq','locale','execute','191543SKZTHj','1564692VAlYjF','_cancelButtonView','div','26vMgYeQ','AI_CHAT_IS_WRITING','ck-ai-chat-controls-loader-icon','230JjdnLj'];_0x2932=function(){return _0x5d8e96;};return _0x2932();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x10ab(_0x20f097,_0x32e23b){const _0xb75ac5=_0xb75a();return _0x10ab=function(_0x10abf5,_0x54f23d){_0x10abf5=_0x10abf5-0xc2;let _0x18c361=_0xb75ac5[_0x10abf5];return _0x18c361;},_0x10ab(_0x20f097,_0x32e23b);}const _0x5e21bb=_0x10ab;function _0xb75a(){const _0x3bdce4=['9dcKpld','reasoningActive','buttonView','_modelSelectionDropdown','enabled','span','modelSelectorEnabled','_modelNameView','ck-ai-chat-controls__model-name','_commandsButton','ck-ai-chat-controls-button','disableModelSelector','ck-ai-chat__prompt-capabilities','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','_createWebSearchButton','text','ck-ai-chat-controls__model-selection','_getCapabilityParts','source','startsWith','_modelSelectionDropdownItems','AI_CHAT_CAPABILITIES_YES','isVisible','tooltip','listenTo','ck-ai-chat-controls__model-selection__item-description','capabilities','AI_CHAT_COMMANDS','createCollection','AI_CHAT_SEARCH_WEB','extendTemplate','setTemplate','6909616cOAFNZ','AI_CHAT_CAPABILITIES_NO','_createModelSelectionDropdown','div','AI_CHAT_DISABLE_WEB_SEARCH','webSearch','label','AI_CHAT_ENABLE_REASONING','_createCommandsButton','ck-hidden','activeModelName','toggleReasoning','ck-button__label','ck-ai-chat-controls__model-selection__item-capabilities','isEnabled','withText','setModel','352444pcwrZA','Commands\x20are\x20not\x20implemented\x20yet.','style','locale','AI_CHAT_DISABLE_REASONING','7957710KJgmGi','add','AI_CHAT_ENABLE_WEB_SEARCH','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','_createModelNameView','content','fire','execute','selectModel','AI_CHAT_REASONING','12690376NXETuj','clear','length','enableModelSelector','agent','_webSearchButton','48NhrdPq','setReasoning','webSearchActive','menuitemradio','reasoning','description','221172mLXMtj','getLocalized','setModelList','name','52628WKjSVA','toLowerCase','activeModelId','ck-ai-chat-controls__model-selection__item-name','ck-ai-chat-controls-button--commands','setWebSearch','bind','addMany','_reasoningButton','1926168VRSynn','isOn','button','model','10dZuBwL','set','modelSelectorVisible','bindTemplate','_createReasoningButton','log','toggleWebSearch'];_0xb75a=function(){return _0x3bdce4;};return _0xb75a();}(function(_0x4a4e9f,_0x4698d8){const _0x5937c3=_0x10ab,_0x5b6e44=_0x4a4e9f();while(!![]){try{const _0x469ad1=-parseInt(_0x5937c3(0x122))/0x1*(-parseInt(_0x5937c3(0xc8))/0x2)+-parseInt(_0x5937c3(0xd1))/0x3+-parseInt(_0x5937c3(0x10d))/0x4+parseInt(_0x5937c3(0xd5))/0x5*(parseInt(_0x5937c3(0xc4))/0x6)+parseInt(_0x5937c3(0xfc))/0x7+-parseInt(_0x5937c3(0x11c))/0x8+-parseInt(_0x5937c3(0xdc))/0x9*(-parseInt(_0x5937c3(0x112))/0xa);if(_0x469ad1===_0x4698d8)break;else _0x5b6e44['push'](_0x5b6e44['shift']());}catch(_0x337470){_0x5b6e44['push'](_0x5b6e44['shift']());}}}(_0xb75a,0xc4177));import{Collection as _0x7811d2}from'ckeditor5/src/utils.js';import{IconAI as _0x4057e4,IconBulb as _0x4bfc9c,IconWeb as _0x52b9ff}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x150ec3,ButtonLabelView as _0x3e6f78,ButtonView as _0x4db3fe,createDropdown as _0x1e522d,IconView as _0x5b638f,UIModel as _0x4a0550,View as _0x4e0a68}from'ckeditor5/src/ui.js';import{getTranslation as _0x5a79f4}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x486794}from'../../../aicore/model/aimodels.js';const No=_0x5e21bb(0xe8),vo=_0x5e21bb(0xe6),Ho=_0x5e21bb(0xcc),Mo=_0x5e21bb(0xec),Lo=_0x5e21bb(0xcb),Do=_0x5e21bb(0xf5),Wo=_0x5e21bb(0x109),yo='n';export class AIChatPromptCapabilitiesView extends _0x4e0a68{[_0x5e21bb(0x121)];[_0x5e21bb(0xd0)];[_0x5e21bb(0xe5)];[_0x5e21bb(0xdf)];[_0x5e21bb(0xf0)];[_0x5e21bb(0xe3)];constructor(_0x5a8578){const _0x21fe1a=_0x5e21bb;super(_0x5a8578),this[_0x21fe1a(0xd6)](_0x21fe1a(0x124),!0x1),this[_0x21fe1a(0xd6)](_0x21fe1a(0xdd),!0x1),this[_0x21fe1a(0xd6)](_0x21fe1a(0xd7),!0x0),this[_0x21fe1a(0xd6)](_0x21fe1a(0xe2),!0x0),this[_0x21fe1a(0xd6)](_0x21fe1a(0xca),null),this[_0x21fe1a(0xd6)](_0x21fe1a(0x106),null),this[_0x21fe1a(0xdf)]=this[_0x21fe1a(0xfe)](),this[_0x21fe1a(0xe3)]=this[_0x21fe1a(0x116)](),this[_0x21fe1a(0x121)]=this[_0x21fe1a(0xea)](),this[_0x21fe1a(0xd0)]=this[_0x21fe1a(0xd9)](),this[_0x21fe1a(0xe5)]=this[_0x21fe1a(0x104)](),this[_0x21fe1a(0xdf)][_0x21fe1a(0xde)][_0x21fe1a(0xce)](_0x21fe1a(0xf2))['to'](this,_0x21fe1a(0xd7),_0x2bee27=>_0x2bee27),this[_0x21fe1a(0xdf)][_0x21fe1a(0xde)][_0x21fe1a(0xce)](_0x21fe1a(0xf3))['to'](this,_0x21fe1a(0xe2),_0x2835bf=>_0x2835bf?this[_0x21fe1a(0xdf)][_0x21fe1a(0xde)][_0x21fe1a(0x102)]:_0x5a79f4(this[_0x21fe1a(0x110)],_0x21fe1a(0x115))),this[_0x21fe1a(0xdf)][_0x21fe1a(0xce)](_0x21fe1a(0x10a))['to'](this,_0x21fe1a(0xe2),_0x470fba=>_0x470fba),this[_0x21fe1a(0x121)][_0x21fe1a(0xce)](_0x21fe1a(0xd2))['to'](this,_0x21fe1a(0x124),_0x1c6f25=>_0x1c6f25),this[_0x21fe1a(0x121)][_0x21fe1a(0xce)](_0x21fe1a(0x10b))['to'](this,_0x21fe1a(0xd7),_0x8d6961=>!_0x8d6961),this[_0x21fe1a(0x121)][_0x21fe1a(0xce)](_0x21fe1a(0xf3))['to'](this,_0x21fe1a(0x124),_0xc30064=>_0x5a79f4(this[_0x21fe1a(0x110)],_0xc30064?_0x21fe1a(0x100):_0x21fe1a(0x114))),this[_0x21fe1a(0xd0)][_0x21fe1a(0xce)](_0x21fe1a(0xd2))['to'](this,_0x21fe1a(0xdd),_0x2a3fb9=>_0x2a3fb9),this[_0x21fe1a(0xd0)][_0x21fe1a(0xce)](_0x21fe1a(0x10b))['to'](this,_0x21fe1a(0xd7),_0xf7a3ef=>!_0xf7a3ef),this[_0x21fe1a(0xd0)][_0x21fe1a(0xce)](_0x21fe1a(0xf3))['to'](this,_0x21fe1a(0xdd),_0x540bca=>_0x5a79f4(this[_0x21fe1a(0x110)],_0x540bca?_0x21fe1a(0x111):_0x21fe1a(0x103))),this[_0x21fe1a(0xfb)]({'tag':_0x21fe1a(0xff),'attributes':{'class':[No]},'children':[this[_0x21fe1a(0xdf)],this[_0x21fe1a(0xe3)],this[_0x21fe1a(0x121)],this[_0x21fe1a(0xd0)],this[_0x21fe1a(0xe5)]]}),this[_0x21fe1a(0xf0)]=new _0x7811d2(),_0x150ec3(this[_0x21fe1a(0xdf)],this[_0x21fe1a(0xf0)]);}[_0x5e21bb(0xc6)](_0x3f9fa5,_0x1d679c){const _0x403f88=_0x5e21bb;if(this[_0x403f88(0xd6)](_0x403f88(0xd7),!(_0x1d679c&&_0x3f9fa5[_0x403f88(0x11e)]<=0x1)),this[_0x403f88(0xf0)][_0x403f88(0x11d)](),_0x3f9fa5?.[_0x403f88(0x11e)]){const _0x3c97ac=_0x486794[_0x403f88(0xc5)](this[_0x403f88(0x110)],_0x3f9fa5);for(const _0x2809d9 of _0x3c97ac){const _0x18cd01=new _0x4a0550({'label':_0x2809d9[_0x403f88(0xc7)],'withText':!0x0,'role':_0x403f88(0x125),'id':_0x2809d9['id'],'model':_0x2809d9});_0x18cd01[_0x403f88(0xce)](_0x403f88(0xd2))['to'](this,_0x403f88(0xca),_0x4f75f3=>_0x4f75f3===_0x2809d9['id']),this[_0x403f88(0xf0)][_0x403f88(0x113)]({'type':_0x403f88(0xd3),'model':_0x18cd01,'labelView':new Xs(this[_0x403f88(0x110)],_0x2809d9)});}}}[_0x5e21bb(0xcd)](_0x1dc73a){const _0x18503b=_0x5e21bb;this[_0x18503b(0xd6)](_0x18503b(0x124),_0x1dc73a);}[_0x5e21bb(0x123)](_0x53d8cd){const _0x34bc0e=_0x5e21bb;this[_0x34bc0e(0xd6)](_0x34bc0e(0xdd),_0x53d8cd);}[_0x5e21bb(0x10c)](_0x317c36){const _0x45b952=_0x5e21bb;if(!_0x317c36)return;this[_0x45b952(0xca)]=_0x317c36['id'],this[_0x45b952(0x106)]=_0x317c36[_0x45b952(0xc7)]||_0x317c36['id'],this[_0x45b952(0xdf)][_0x45b952(0xde)][_0x45b952(0xd6)](_0x45b952(0x102),_0x317c36[_0x45b952(0xc7)]),this[_0x45b952(0xdf)][_0x45b952(0xde)][_0x45b952(0xd6)](_0x45b952(0xf3),_0x317c36[_0x45b952(0xc7)]);const _0x107a0e=_0x317c36[_0x45b952(0xf6)][_0x45b952(0x101)]?.[_0x45b952(0xe0)]??!0x1;this[_0x45b952(0xd6)](_0x45b952(0x124),!0x1),this[_0x45b952(0x121)][_0x45b952(0xd6)](_0x45b952(0xd2),!0x1),this[_0x45b952(0x121)][_0x45b952(0xd6)](_0x45b952(0x10a),_0x107a0e),this[_0x45b952(0x121)][_0x45b952(0xd6)](_0x45b952(0xf2),_0x107a0e);const _0x4fc9d7=_0x317c36[_0x45b952(0xf6)][_0x45b952(0xc2)]?.[_0x45b952(0xe0)]??!0x1;this[_0x45b952(0xd6)](_0x45b952(0xdd),!0x1),this[_0x45b952(0xd0)][_0x45b952(0xd6)](_0x45b952(0xd2),!0x1),this[_0x45b952(0xd0)][_0x45b952(0xd6)](_0x45b952(0x10a),_0x4fc9d7),this[_0x45b952(0xd0)][_0x45b952(0xd6)](_0x45b952(0xf2),_0x4fc9d7);}[_0x5e21bb(0x11f)](){const _0x59ceb7=_0x5e21bb;this[_0x59ceb7(0xd6)](_0x59ceb7(0xe2),!0x0),this[_0x59ceb7(0xd6)](_0x59ceb7(0xd7),!0x0);}[_0x5e21bb(0xe7)](_0x568c4f){const _0xab6f8f=_0x5e21bb;this[_0xab6f8f(0xd6)](_0xab6f8f(0xe2),!0x1),_0x568c4f&&this[_0xab6f8f(0xd6)](_0xab6f8f(0xd7),!0x1);}[_0x5e21bb(0xea)](){const _0x246f31=_0x5e21bb,_0x409275=new _0x4db3fe();return _0x409275[_0x246f31(0xd6)]({'label':_0x5a79f4(this[_0x246f31(0x110)],_0x246f31(0xf9)),'icon':_0x52b9ff,'class':vo,'isToggleable':!0x0,'tooltipPosition':yo}),_0x409275['on'](_0x246f31(0x119),()=>{const _0x1ef657=_0x246f31;this[_0x1ef657(0x118)](_0x1ef657(0xdb));}),_0x409275;}[_0x5e21bb(0xd9)](){const _0x34d982=_0x5e21bb,_0x4069e4=new _0x4db3fe();return _0x4069e4[_0x34d982(0xd6)]({'label':_0x5a79f4(this[_0x34d982(0x110)],_0x34d982(0x11b)),'icon':_0x4bfc9c,'class':vo,'isToggleable':!0x0,'tooltipPosition':yo}),_0x4069e4['on'](_0x34d982(0x119),()=>{const _0x582eb5=_0x34d982;this[_0x582eb5(0x118)](_0x582eb5(0x107));}),_0x4069e4;}[_0x5e21bb(0x104)](){const _0x3e0e53=_0x5e21bb,_0x580b49=new _0x4db3fe();return _0x580b49[_0x3e0e53(0xd6)]({'label':_0x5a79f4(this[_0x3e0e53(0x110)],_0x3e0e53(0xf7)),'icon':_0x4057e4,'withText':!0x0,'class':vo,'isToggleable':!0x0,'tooltip':_0x5a79f4(this[_0x3e0e53(0x110)],_0x3e0e53(0xf7)),'tooltipPosition':yo}),_0x580b49[_0x3e0e53(0xfa)]({'attributes':{'class':[Ho]}}),_0x580b49['on'](_0x3e0e53(0x119),()=>{const _0x3397e3=_0x3e0e53;console[_0x3397e3(0xda)](_0x3397e3(0x10e)),alert(_0x3397e3(0x10e));}),_0x580b49;}[_0x5e21bb(0xfe)](){const _0x1a5ece=_0x5e21bb,_0x2c702e=_0x1e522d(this[_0x1a5ece(0x110)]);return _0x2c702e[_0x1a5ece(0xd6)]({'panelPosition':'ne','class':[Mo]}),_0x2c702e[_0x1a5ece(0xde)][_0x1a5ece(0xd6)]({'label':_0x5a79f4(this[_0x1a5ece(0x110)],_0x1a5ece(0xe9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':yo}),this[_0x1a5ece(0xf4)](_0x2c702e,_0x1a5ece(0x119),_0x5c42b2=>{const _0x2fe133=_0x1a5ece;this[_0x2fe133(0x118)](_0x2fe133(0x11a),_0x5c42b2[_0x2fe133(0xee)][_0x2fe133(0xd4)]);}),_0x2c702e;}[_0x5e21bb(0x116)](){const _0x2fb48a=_0x5e21bb,_0x55976a=new jo(this[_0x2fb48a(0x110)]);return _0x55976a[_0x2fb48a(0xce)](_0x2fb48a(0xeb))['to'](this,_0x2fb48a(0x106),_0x433374=>_0x433374??''),_0x55976a[_0x2fb48a(0xce)](_0x2fb48a(0xf2))['to'](this,_0x2fb48a(0xd7),this,_0x2fb48a(0x106),(_0x3caafc,_0x46357c)=>!_0x3caafc&&!_0x46357c?.[_0x2fb48a(0xc9)]()[_0x2fb48a(0xef)](_0x2fb48a(0x120))),_0x55976a;}}class Xs extends _0x3e6f78{constructor(_0x5c068d,_0x5df11a){const _0x1a42b5=_0x5e21bb;super();const _0x5c5905=this[_0x1a42b5(0xd8)],_0x58c556=this[_0x1a42b5(0xf8)]();this[_0x1a42b5(0xfb)]({'tag':_0x1a42b5(0xff),'attributes':{'class':['ck',_0x1a42b5(0x108)],'style':_0x5c5905['to'](_0x1a42b5(0x10f)),'id':_0x5c5905['to']('id')},'children':[{'tag':_0x1a42b5(0xff),'attributes':{'class':[Lo]},'children':[{'text':_0x5c5905['to'](_0x1a42b5(0xeb))}]},{'tag':_0x1a42b5(0xff),'attributes':{'class':[Do]},'children':[{'tag':_0x1a42b5(0xe1),'children':[{'text':_0x5df11a[_0x1a42b5(0xc3)]}]}]},{'tag':_0x1a42b5(0xff),'attributes':{'class':[Wo]},'children':_0x58c556}]}),_0x58c556[_0x1a42b5(0xcf)](this[_0x1a42b5(0xed)](_0x5c068d,_0x52b9ff,_0x1a42b5(0xf9),_0x5df11a[_0x1a42b5(0xf6)][_0x1a42b5(0x101)]?.[_0x1a42b5(0xe0)]??!0x1)),_0x58c556[_0x1a42b5(0xcf)](this[_0x1a42b5(0xed)](_0x5c068d,_0x4bfc9c,_0x1a42b5(0x11b),_0x5df11a[_0x1a42b5(0xf6)][_0x1a42b5(0xc2)]?.[_0x1a42b5(0xe0)]??!0x1));}[_0x5e21bb(0xed)](_0x169c99,_0x260d32,_0x4dda8c,_0x511dbc){const _0x812b1d=_0x5e21bb,_0x1deba8=new _0x5b638f();_0x1deba8[_0x812b1d(0x117)]=_0x260d32;const _0x3db9ba=new _0x4e0a68(_0x169c99);_0x3db9ba[_0x812b1d(0xfb)]({'tag':_0x812b1d(0xe1),'children':[{'text':_0x5a79f4(_0x169c99,_0x4dda8c)+':\x20'}]});const _0x532287=new _0x4e0a68(_0x169c99);return _0x532287[_0x812b1d(0xfb)]({'tag':_0x812b1d(0xe1),'children':[{'text':_0x5a79f4(_0x169c99,_0x511dbc?_0x812b1d(0xf1):_0x812b1d(0xfd))}]}),[_0x1deba8,_0x3db9ba,_0x532287];}}class jo extends _0x4e0a68{constructor(_0x1e7abc){const _0x152967=_0x5e21bb;super(_0x1e7abc),this[_0x152967(0xd6)](_0x152967(0xeb),void 0x0),this[_0x152967(0xd6)](_0x152967(0xf2),!0x0);const _0x4a2f2f=this[_0x152967(0xd8)];this[_0x152967(0xfb)]({'tag':_0x152967(0xe1),'attributes':{'class':['ck',_0x152967(0xe4),_0x4a2f2f['if'](_0x152967(0xf2),_0x152967(0x105),_0x4ac7e7=>!_0x4ac7e7)]},'children':[{'text':_0x4a2f2f['to'](_0x152967(0xeb))}]});}}
|
|
23
|
+
const _0x40bcbd=_0x251a;(function(_0x5e2b1b,_0x435cd9){const _0x3eea7a=_0x251a,_0x1a6c59=_0x5e2b1b();while(!![]){try{const _0x12b3d7=parseInt(_0x3eea7a(0x16b))/0x1+parseInt(_0x3eea7a(0x146))/0x2*(-parseInt(_0x3eea7a(0x121))/0x3)+parseInt(_0x3eea7a(0x149))/0x4+-parseInt(_0x3eea7a(0x131))/0x5+parseInt(_0x3eea7a(0x14e))/0x6*(-parseInt(_0x3eea7a(0x173))/0x7)+-parseInt(_0x3eea7a(0x170))/0x8+parseInt(_0x3eea7a(0x14b))/0x9*(parseInt(_0x3eea7a(0x136))/0xa);if(_0x12b3d7===_0x435cd9)break;else _0x1a6c59['push'](_0x1a6c59['shift']());}catch(_0x12cd25){_0x1a6c59['push'](_0x1a6c59['shift']());}}}(_0x271c,0x53c38));import{Collection as _0x1c9a6e}from'ckeditor5/src/utils.js';import{IconAI as _0x22aa76,IconBulb as _0x56c59f,IconWeb as _0x46c587}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x45ee95,ButtonLabelView as _0x436a65,ButtonView as _0x382bbc,createDropdown as _0xbc1299,IconView as _0x417346,UIModel as _0x2d9e71,View as _0x163ac1}from'ckeditor5/src/ui.js';import{getTranslation as _0x4d7ce3}from'../../../aicore/utils/common-translations.js';import{AIModels as _0x44ad30}from'../../../aicore/model/aimodels.js';function _0x271c(){const _0x53aa1d=['add','name','AI_CHAT_DISABLE_WEB_SEARCH','text','addMany','AI_CHAT_DISABLE_REASONING','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','363741ZPMnvC','model','_createWebSearchButton','withText','ck-ai-chat-controls-button','5450384HnxIBV','locale','AI_CHAT_SEARCH_WEB','175fqBvfJ','enabled','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','length','_reasoningButton','modelSelectorVisible','setReasoning','tooltip','selectModel','ck-hidden','toLowerCase','_createReasoningButton','style','setModel','_getCapabilityParts','AI_CHAT_REASONING','extendTemplate','_createModelNameView','1871637vusbuw','agent','ck-ai-chat-controls-button--commands','reasoningActive','disableModelSelector','ck-ai-chat-controls__model-name','_modelNameView','setModelList','capabilities','activeModelName','ck-ai-chat-controls__model-selection','source','setWebSearch','setTemplate','toggleWebSearch','Commands\x20are\x20not\x20implemented\x20yet.','1753315njotzS','span','ck-ai-chat-controls__model-selection__item-name','isEnabled','content','100ySmBSq','bind','_createModelSelectionDropdown','ck-ai-chat-controls__model-selection__item-capabilities','_createCommandsButton','isVisible','label','createCollection','toggleReasoning','reasoning','_webSearchButton','listenTo','_modelSelectionDropdown','ck-button__label','AI_CHAT_CAPABILITIES_YES','set','2AYzydH','menuitemradio','div','588280RJFOvQ','AI_CHAT_CAPABILITIES_NO','1935585YsnoAr','_modelSelectionDropdownItems','buttonView','159006ZeSHWg','enableModelSelector','modelSelectorEnabled','activeModelId','webSearchActive','webSearch','AI_CHAT_COMMANDS','getLocalized','clear','bindTemplate','AI_CHAT_ENABLE_REASONING','startsWith','ck-ai-chat-controls__model-selection__item-description','AI_CHAT_ENABLE_WEB_SEARCH','fire','description','isOn','_commandsButton','execute','ck-ai-chat__prompt-capabilities','button','log'];_0x271c=function(){return _0x53aa1d;};return _0x271c();}const yo=_0x40bcbd(0x161),Lo=_0x40bcbd(0x16f),Go=_0x40bcbd(0x123),Yo=_0x40bcbd(0x12b),qo=_0x40bcbd(0x133),zo=_0x40bcbd(0x15a),Fo=_0x40bcbd(0x139),Jo='n';export class AIChatPromptCapabilitiesView extends _0x163ac1{[_0x40bcbd(0x140)];[_0x40bcbd(0x177)];[_0x40bcbd(0x15f)];[_0x40bcbd(0x142)];[_0x40bcbd(0x14c)];[_0x40bcbd(0x127)];constructor(_0x3d855a){const _0x14fac5=_0x40bcbd;super(_0x3d855a),this[_0x14fac5(0x145)](_0x14fac5(0x152),!0x1),this[_0x14fac5(0x145)](_0x14fac5(0x124),!0x1),this[_0x14fac5(0x145)](_0x14fac5(0x178),!0x0),this[_0x14fac5(0x145)](_0x14fac5(0x150),!0x0),this[_0x14fac5(0x145)](_0x14fac5(0x151),null),this[_0x14fac5(0x145)](_0x14fac5(0x12a),null),this[_0x14fac5(0x142)]=this[_0x14fac5(0x138)](),this[_0x14fac5(0x127)]=this[_0x14fac5(0x120)](),this[_0x14fac5(0x140)]=this[_0x14fac5(0x16d)](),this[_0x14fac5(0x177)]=this[_0x14fac5(0x11a)](),this[_0x14fac5(0x15f)]=this[_0x14fac5(0x13a)](),this[_0x14fac5(0x142)][_0x14fac5(0x14d)][_0x14fac5(0x137)](_0x14fac5(0x13b))['to'](this,_0x14fac5(0x178),_0x3a1a63=>_0x3a1a63),this[_0x14fac5(0x142)][_0x14fac5(0x14d)][_0x14fac5(0x137)](_0x14fac5(0x17a))['to'](this,_0x14fac5(0x150),_0x3c7be2=>_0x3c7be2?this[_0x14fac5(0x142)][_0x14fac5(0x14d)][_0x14fac5(0x13c)]:_0x4d7ce3(this[_0x14fac5(0x171)],_0x14fac5(0x175))),this[_0x14fac5(0x142)][_0x14fac5(0x137)](_0x14fac5(0x134))['to'](this,_0x14fac5(0x150),_0x421445=>_0x421445),this[_0x14fac5(0x140)][_0x14fac5(0x137)](_0x14fac5(0x15e))['to'](this,_0x14fac5(0x152),_0x90516c=>_0x90516c),this[_0x14fac5(0x140)][_0x14fac5(0x137)](_0x14fac5(0x16e))['to'](this,_0x14fac5(0x178),_0x3084a4=>!_0x3084a4),this[_0x14fac5(0x140)][_0x14fac5(0x137)](_0x14fac5(0x17a))['to'](this,_0x14fac5(0x152),_0x2b5660=>_0x4d7ce3(this[_0x14fac5(0x171)],_0x2b5660?_0x14fac5(0x166):_0x14fac5(0x15b))),this[_0x14fac5(0x177)][_0x14fac5(0x137)](_0x14fac5(0x15e))['to'](this,_0x14fac5(0x124),_0x55dd34=>_0x55dd34),this[_0x14fac5(0x177)][_0x14fac5(0x137)](_0x14fac5(0x16e))['to'](this,_0x14fac5(0x178),_0x25b416=>!_0x25b416),this[_0x14fac5(0x177)][_0x14fac5(0x137)](_0x14fac5(0x17a))['to'](this,_0x14fac5(0x124),_0x5c5b98=>_0x4d7ce3(this[_0x14fac5(0x171)],_0x5c5b98?_0x14fac5(0x169):_0x14fac5(0x158))),this[_0x14fac5(0x12e)]({'tag':_0x14fac5(0x148),'attributes':{'class':[yo]},'children':[this[_0x14fac5(0x142)],this[_0x14fac5(0x127)],this[_0x14fac5(0x140)],this[_0x14fac5(0x177)],this[_0x14fac5(0x15f)]]}),this[_0x14fac5(0x14c)]=new _0x1c9a6e(),_0x45ee95(this[_0x14fac5(0x142)],this[_0x14fac5(0x14c)]);}[_0x40bcbd(0x128)](_0x2465a5,_0x139a9b){const _0x15f7b2=_0x40bcbd;if(this[_0x15f7b2(0x145)](_0x15f7b2(0x178),!(_0x139a9b&&_0x2465a5[_0x15f7b2(0x176)]<=0x1)),this[_0x15f7b2(0x14c)][_0x15f7b2(0x156)](),_0x2465a5?.[_0x15f7b2(0x176)]){const _0x1e8c70=_0x44ad30[_0x15f7b2(0x155)](this[_0x15f7b2(0x171)],_0x2465a5);for(const _0x1f7654 of _0x1e8c70){const _0x54a13b=new _0x2d9e71({'label':_0x1f7654[_0x15f7b2(0x165)],'withText':!0x0,'role':_0x15f7b2(0x147),'id':_0x1f7654['id'],'model':_0x1f7654});_0x54a13b[_0x15f7b2(0x137)](_0x15f7b2(0x15e))['to'](this,_0x15f7b2(0x151),_0x5cb21a=>_0x5cb21a===_0x1f7654['id']),this[_0x15f7b2(0x14c)][_0x15f7b2(0x164)]({'type':_0x15f7b2(0x162),'model':_0x54a13b,'labelView':new Ys(this[_0x15f7b2(0x171)],_0x1f7654)});}}}[_0x40bcbd(0x12d)](_0x2ccd3b){const _0x38fc13=_0x40bcbd;this[_0x38fc13(0x145)](_0x38fc13(0x152),_0x2ccd3b);}[_0x40bcbd(0x179)](_0x5648be){const _0x1be78a=_0x40bcbd;this[_0x1be78a(0x145)](_0x1be78a(0x124),_0x5648be);}[_0x40bcbd(0x11c)](_0x4e8e31){const _0x1f980b=_0x40bcbd;if(!_0x4e8e31)return;this[_0x1f980b(0x151)]=_0x4e8e31['id'],this[_0x1f980b(0x12a)]=_0x4e8e31[_0x1f980b(0x165)]||_0x4e8e31['id'],this[_0x1f980b(0x142)][_0x1f980b(0x14d)][_0x1f980b(0x145)](_0x1f980b(0x13c),_0x4e8e31[_0x1f980b(0x165)]),this[_0x1f980b(0x142)][_0x1f980b(0x14d)][_0x1f980b(0x145)](_0x1f980b(0x17a),_0x4e8e31[_0x1f980b(0x165)]);const _0x117af4=_0x4e8e31[_0x1f980b(0x129)][_0x1f980b(0x153)]?.[_0x1f980b(0x174)]??!0x1;this[_0x1f980b(0x145)](_0x1f980b(0x152),!0x1),this[_0x1f980b(0x140)][_0x1f980b(0x145)](_0x1f980b(0x15e),!0x1),this[_0x1f980b(0x140)][_0x1f980b(0x145)](_0x1f980b(0x134),_0x117af4),this[_0x1f980b(0x140)][_0x1f980b(0x145)](_0x1f980b(0x13b),_0x117af4);const _0xafccae=_0x4e8e31[_0x1f980b(0x129)][_0x1f980b(0x13f)]?.[_0x1f980b(0x174)]??!0x1;this[_0x1f980b(0x145)](_0x1f980b(0x124),!0x1),this[_0x1f980b(0x177)][_0x1f980b(0x145)](_0x1f980b(0x15e),!0x1),this[_0x1f980b(0x177)][_0x1f980b(0x145)](_0x1f980b(0x134),_0xafccae),this[_0x1f980b(0x177)][_0x1f980b(0x145)](_0x1f980b(0x13b),_0xafccae);}[_0x40bcbd(0x14f)](){const _0xa8b862=_0x40bcbd;this[_0xa8b862(0x145)](_0xa8b862(0x150),!0x0),this[_0xa8b862(0x145)](_0xa8b862(0x178),!0x0);}[_0x40bcbd(0x125)](_0x308a88){const _0x2160c4=_0x40bcbd;this[_0x2160c4(0x145)](_0x2160c4(0x150),!0x1),_0x308a88&&this[_0x2160c4(0x145)](_0x2160c4(0x178),!0x1);}[_0x40bcbd(0x16d)](){const _0xcef17a=_0x40bcbd,_0x452181=new _0x382bbc();return _0x452181[_0xcef17a(0x145)]({'label':_0x4d7ce3(this[_0xcef17a(0x171)],_0xcef17a(0x172)),'icon':_0x46c587,'class':Lo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x452181['on'](_0xcef17a(0x160),()=>{const _0x4357bd=_0xcef17a;this[_0x4357bd(0x15c)](_0x4357bd(0x12f));}),_0x452181;}[_0x40bcbd(0x11a)](){const _0x56a63b=_0x40bcbd,_0x21dd03=new _0x382bbc();return _0x21dd03[_0x56a63b(0x145)]({'label':_0x4d7ce3(this[_0x56a63b(0x171)],_0x56a63b(0x11e)),'icon':_0x56c59f,'class':Lo,'isToggleable':!0x0,'tooltipPosition':Jo}),_0x21dd03['on'](_0x56a63b(0x160),()=>{const _0x3ff00d=_0x56a63b;this[_0x3ff00d(0x15c)](_0x3ff00d(0x13e));}),_0x21dd03;}[_0x40bcbd(0x13a)](){const _0x1d7809=_0x40bcbd,_0x51cd1=new _0x382bbc();return _0x51cd1[_0x1d7809(0x145)]({'label':_0x4d7ce3(this[_0x1d7809(0x171)],_0x1d7809(0x154)),'icon':_0x22aa76,'withText':!0x0,'class':Lo,'isToggleable':!0x0,'tooltip':_0x4d7ce3(this[_0x1d7809(0x171)],_0x1d7809(0x154)),'tooltipPosition':Jo}),_0x51cd1[_0x1d7809(0x11f)]({'attributes':{'class':[Go]}}),_0x51cd1['on'](_0x1d7809(0x160),()=>{const _0x724089=_0x1d7809;console[_0x724089(0x163)](_0x724089(0x130)),alert(_0x724089(0x130));}),_0x51cd1;}[_0x40bcbd(0x138)](){const _0x4197e7=_0x40bcbd,_0x30c9a9=_0xbc1299(this[_0x4197e7(0x171)]);return _0x30c9a9[_0x4197e7(0x145)]({'panelPosition':'ne','class':[Yo]}),_0x30c9a9[_0x4197e7(0x14d)][_0x4197e7(0x145)]({'label':_0x4d7ce3(this[_0x4197e7(0x171)],_0x4197e7(0x16a)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Jo}),this[_0x4197e7(0x141)](_0x30c9a9,_0x4197e7(0x160),_0x4a59e3=>{const _0x1201fc=_0x4197e7;this[_0x1201fc(0x15c)](_0x1201fc(0x117),_0x4a59e3[_0x1201fc(0x12c)][_0x1201fc(0x16c)]);}),_0x30c9a9;}[_0x40bcbd(0x120)](){const _0x48091a=_0x40bcbd,_0x3d97d4=new Ko(this[_0x48091a(0x171)]);return _0x3d97d4[_0x48091a(0x137)](_0x48091a(0x167))['to'](this,_0x48091a(0x12a),_0x580bf2=>_0x580bf2??''),_0x3d97d4[_0x48091a(0x137)](_0x48091a(0x13b))['to'](this,_0x48091a(0x178),this,_0x48091a(0x12a),(_0x1097cf,_0x4d0e2b)=>!_0x1097cf&&!_0x4d0e2b?.[_0x48091a(0x119)]()[_0x48091a(0x159)](_0x48091a(0x122))),_0x3d97d4;}}class Ys extends _0x436a65{constructor(_0x4d3ab5,_0x421178){const _0x3c9101=_0x40bcbd;super();const _0x1aba26=this[_0x3c9101(0x157)],_0x100479=this[_0x3c9101(0x13d)]();this[_0x3c9101(0x12e)]({'tag':_0x3c9101(0x148),'attributes':{'class':['ck',_0x3c9101(0x143)],'style':_0x1aba26['to'](_0x3c9101(0x11b)),'id':_0x1aba26['to']('id')},'children':[{'tag':_0x3c9101(0x148),'attributes':{'class':[qo]},'children':[{'text':_0x1aba26['to'](_0x3c9101(0x167))}]},{'tag':_0x3c9101(0x148),'attributes':{'class':[zo]},'children':[{'tag':_0x3c9101(0x132),'children':[{'text':_0x421178[_0x3c9101(0x15d)]}]}]},{'tag':_0x3c9101(0x148),'attributes':{'class':[Fo]},'children':_0x100479}]}),_0x100479[_0x3c9101(0x168)](this[_0x3c9101(0x11d)](_0x4d3ab5,_0x46c587,_0x3c9101(0x172),_0x421178[_0x3c9101(0x129)][_0x3c9101(0x153)]?.[_0x3c9101(0x174)]??!0x1)),_0x100479[_0x3c9101(0x168)](this[_0x3c9101(0x11d)](_0x4d3ab5,_0x56c59f,_0x3c9101(0x11e),_0x421178[_0x3c9101(0x129)][_0x3c9101(0x13f)]?.[_0x3c9101(0x174)]??!0x1));}[_0x40bcbd(0x11d)](_0x40addf,_0x7e37f0,_0x37cf87,_0x3ffbb6){const _0x22dd5d=_0x40bcbd,_0x1b432d=new _0x417346();_0x1b432d[_0x22dd5d(0x135)]=_0x7e37f0;const _0x4c5c6e=new _0x163ac1(_0x40addf);_0x4c5c6e[_0x22dd5d(0x12e)]({'tag':_0x22dd5d(0x132),'children':[{'text':_0x4d7ce3(_0x40addf,_0x37cf87)+':\x20'}]});const _0x472c05=new _0x163ac1(_0x40addf);return _0x472c05[_0x22dd5d(0x12e)]({'tag':_0x22dd5d(0x132),'children':[{'text':_0x4d7ce3(_0x40addf,_0x3ffbb6?_0x22dd5d(0x144):_0x22dd5d(0x14a))}]}),[_0x1b432d,_0x4c5c6e,_0x472c05];}}function _0x251a(_0x560af4,_0x5d7b5a){const _0x271cc5=_0x271c();return _0x251a=function(_0x251a72,_0x2c4855){_0x251a72=_0x251a72-0x117;let _0x1ea92f=_0x271cc5[_0x251a72];return _0x1ea92f;},_0x251a(_0x560af4,_0x5d7b5a);}class Ko extends _0x163ac1{constructor(_0x22099b){const _0x1c2bd0=_0x40bcbd;super(_0x22099b),this[_0x1c2bd0(0x145)](_0x1c2bd0(0x167),void 0x0),this[_0x1c2bd0(0x145)](_0x1c2bd0(0x13b),!0x0);const _0x84070d=this[_0x1c2bd0(0x157)];this[_0x1c2bd0(0x12e)]({'tag':_0x1c2bd0(0x132),'attributes':{'class':['ck',_0x1c2bd0(0x126),_0x84070d['if'](_0x1c2bd0(0x13b),_0x1c2bd0(0x118),_0x49288a=>!_0x49288a)]},'children':[{'text':_0x84070d['to'](_0x1c2bd0(0x167))}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2c47(_0xcdfd12,_0x4b9185){const _0x2cfe9b=_0x2cfe();return _0x2c47=function(_0x2c47b6,_0x489ddb){_0x2c47b6=_0x2c47b6-0xbb;let _0x3039a8=_0x2cfe9b[_0x2c47b6];return _0x3039a8;},_0x2c47(_0xcdfd12,_0x4b9185);}const _0x598ac8=_0x2c47;(function(_0x465bdb,_0x1d60d1){const _0x43181b=_0x2c47,_0x386073=_0x465bdb();while(!![]){try{const _0x38588d=-parseInt(_0x43181b(0xdd))/0x1+parseInt(_0x43181b(0xf9))/0x2+-parseInt(_0x43181b(0xf7))/0x3+parseInt(_0x43181b(0xd4))/0x4*(-parseInt(_0x43181b(0xbc))/0x5)+-parseInt(_0x43181b(0xf4))/0x6*(parseInt(_0x43181b(0xeb))/0x7)+-parseInt(_0x43181b(0xc2))/0x8+parseInt(_0x43181b(0xe1))/0x9*(parseInt(_0x43181b(0xe0))/0xa);if(_0x38588d===_0x1d60d1)break;else _0x386073['push'](_0x386073['shift']());}catch(_0x5da38b){_0x386073['push'](_0x386073['shift']());}}}(_0x2cfe,0xa2d6c));import{IconSubmit as _0x541b48}from'ckeditor5/src/icons.js';import{ButtonView as _0x7c634b,AutocompleteView as _0x5ecb06,createLabeledTextarea as _0x1295c5}from'ckeditor5/src/ui.js';import{global as _0x2e63da,isVisible as _0x23da85,Rect as _0x54e344,ResizeObserver as _0x49c45d}from'ckeditor5/src/utils.js';import{getTranslation as _0x1c3380}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x31853d}from'./aichatpromptsuggestionslistview.js';function _0x2cfe(){const _0x1f5720=['width','217525SatBhM','fieldWrapperChildren','render','_queryViewResizeObserver','right','requestAnimationFrame','excludeScrollbarsAndBorders','bind','element','6WmOBNT','hasError','setPlaceholderText','135393uUVRHU','MAX_ROWS','2202808GGEDFJ','_setUpAddContextButtonPositioning','focusableChildren','keystrokes','2758775cDKZFi','set','value','_addContextButtonView','fieldView','queryView','3251952zjmujw','window','left','errorText','enter','isEnabled','extendTemplate','update','destroy','placeholder','fire','trim','reset','isEmpty','uiLanguageDirection','rtl','style','setIsUploadInProgress','4aLVykg','execute','locale','AI_CHAT_PROMPT_EMPTY_ERROR','_createSubmitButton','isUploadInProgress','AI_CHAT_LABEL_SUBMIT','submit','px\x20-\x20var(--ck-spacing-tiny))','546877cgTmMu','target','minRows','760CoToxU','135819zwXNAp','maxRows','add','calc(','submitButtonView','MIN_ROWS','ck-ai-chat__prompt-input','ck-ai-chat__prompt-submit-button','sendUserMessage'];_0x2cfe=function(){return _0x1f5720;};return _0x2cfe();}import{escape as _0x45c377}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x5ecb06{[_0x598ac8(0xe5)];static [_0x598ac8(0xe6)]=0x1;static [_0x598ac8(0xf8)]=0xc;[_0x598ac8(0xbf)];[_0x598ac8(0xee)];constructor(_0x1014d6,_0x540b30){const _0x115ab1=_0x598ac8;super(_0x1014d6,{'queryView':{'label':'','creator':_0x1295c5,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x31853d(_0x1014d6),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x115ab1(0xbd)](_0x115ab1(0xcf),!0x0),this[_0x115ab1(0xbd)](_0x115ab1(0xd9),!0x1),this[_0x115ab1(0xbf)]=_0x540b30,this[_0x115ab1(0xee)]=null,this[_0x115ab1(0xc1)][_0x115ab1(0xc0)][_0x115ab1(0xdf)]=AIChatPromptInputView[_0x115ab1(0xe6)],this[_0x115ab1(0xc1)][_0x115ab1(0xc0)][_0x115ab1(0xe2)]=AIChatPromptInputView[_0x115ab1(0xf8)],this[_0x115ab1(0xc1)][_0x115ab1(0xec)][_0x115ab1(0xe3)](this[_0x115ab1(0xbf)]),this[_0x115ab1(0xfa)](),this[_0x115ab1(0xc8)]({'attributes':{'class':['ck',_0x115ab1(0xe7)]}}),this[_0x115ab1(0xe5)]=this[_0x115ab1(0xd8)](),this[_0x115ab1(0xe5)][_0x115ab1(0xf2)](_0x115ab1(0xc7))['to'](this,_0x115ab1(0xcf),this,_0x115ab1(0xd9),(_0x1d107d,_0x5185d0)=>!_0x1d107d&&!_0x5185d0),this[_0x115ab1(0xfb)][_0x115ab1(0xe3)](this[_0x115ab1(0xe5)]);}[_0x598ac8(0xed)](){const _0x777831=_0x598ac8;super[_0x777831(0xed)](),this[_0x777831(0xc1)][_0x777831(0xec)][_0x777831(0xe3)](this[_0x777831(0xe5)]),this[_0x777831(0xbb)][_0x777831(0xbd)](_0x777831(0xc6),(_0xdae53c,_0x502575)=>{const _0xc2fb6=_0x777831;this[_0xc2fb6(0xd9)]||this[_0xc2fb6(0xcf)]||_0xdae53c[_0xc2fb6(0xde)]==this[_0xc2fb6(0xc1)][_0xc2fb6(0xc0)][_0xc2fb6(0xf3)]&&(this[_0xc2fb6(0xdb)](),_0x502575());}),this[_0x777831(0xc1)][_0x777831(0xc0)]['on'](_0x777831(0xc9),()=>{const _0x56d774=_0x777831;this[_0x56d774(0xcf)]=''===this[_0x56d774(0xc1)][_0x56d774(0xc0)][_0x56d774(0xf3)][_0x56d774(0xbe)]?.[_0x56d774(0xcd)]();});}[_0x598ac8(0xca)](){const _0x3ba643=_0x598ac8;super[_0x3ba643(0xca)](),this[_0x3ba643(0xee)]&&this[_0x3ba643(0xee)][_0x3ba643(0xca)]();}[_0x598ac8(0xdb)](){const _0x4c979b=_0x598ac8,_0x3d99c4=this[_0x4c979b(0xc1)][_0x4c979b(0xc0)][_0x4c979b(0xf3)][_0x4c979b(0xbe)]?.[_0x4c979b(0xcd)]();if(!_0x3d99c4)return this[_0x4c979b(0xc1)][_0x4c979b(0xc5)]=_0x1c3380(this[_0x4c979b(0xd6)],_0x4c979b(0xd7)),void(this[_0x4c979b(0xc1)][_0x4c979b(0xc0)][_0x4c979b(0xf5)]=!0x0);this[_0x4c979b(0xc1)][_0x4c979b(0xc0)][_0x4c979b(0xf5)]=!0x1;const _0x49cc2f=_0x45c377(_0x3d99c4);this[_0x4c979b(0xcc)](_0x4c979b(0xe9),_0x49cc2f),this[_0x4c979b(0xc1)][_0x4c979b(0xc0)][_0x4c979b(0xce)]();}[_0x598ac8(0xf6)](_0x507e12){const _0x2ddd16=_0x598ac8;this[_0x2ddd16(0xc1)][_0x2ddd16(0xc0)][_0x2ddd16(0xbd)](_0x2ddd16(0xcb),_0x507e12);}[_0x598ac8(0xd8)](){const _0x2a40a6=_0x598ac8,_0x474de5=new _0x7c634b(this[_0x2a40a6(0xd6)]);return _0x474de5[_0x2a40a6(0xbd)]({'icon':_0x541b48,'label':_0x1c3380(this[_0x2a40a6(0xd6)],_0x2a40a6(0xda)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x2a40a6(0xe8),'isEnabled':!0x1}),_0x474de5['on'](_0x2a40a6(0xd5),()=>{const _0x4b0cc8=_0x2a40a6;this[_0x4b0cc8(0xdb)]();}),_0x474de5;}[_0x598ac8(0xd3)](_0x120532){const _0x486f2c=_0x598ac8;this[_0x486f2c(0xd9)]=_0x120532;}[_0x598ac8(0xfa)](){const _0x4c37a5=_0x598ac8,_0x72c686=this[_0x4c37a5(0xd6)],_0x125955=()=>{const _0x7965c6=_0x4c37a5;_0x2e63da[_0x7965c6(0xc3)][_0x7965c6(0xf0)](()=>{const _0x22aaec=_0x7965c6;if(_0x23da85(this[_0x22aaec(0xf3)])){const _0x37461a=new _0x54e344(this[_0x22aaec(0xc1)][_0x22aaec(0xc0)][_0x22aaec(0xf3)]),_0x1c3fba=new _0x54e344(this[_0x22aaec(0xbf)][_0x22aaec(0xf3)]),_0x73881b=_0x37461a[_0x22aaec(0xea)],_0x1bd4f7=_0x22aaec(0xd1)===_0x72c686[_0x22aaec(0xd0)]?_0x22aaec(0xef):_0x22aaec(0xc4);_0x37461a[_0x22aaec(0xf1)]();const _0x58d5aa=_0x73881b-_0x37461a[_0x22aaec(0xea)]+0x1;this[_0x22aaec(0xbf)][_0x22aaec(0xf3)][_0x22aaec(0xd2)][_0x1bd4f7]=_0x22aaec(0xe4)+(_0x73881b-_0x1c3fba[_0x22aaec(0xea)]-_0x58d5aa)+_0x22aaec(0xdc);}});};this[_0x4c37a5(0xc1)][_0x4c37a5(0xc0)]['on'](_0x4c37a5(0xc9),_0x125955),this['on'](_0x4c37a5(0xed),()=>{const _0x3d2c00=_0x4c37a5;_0x125955(),this[_0x3d2c00(0xee)]=new _0x49c45d(this[_0x3d2c00(0xc1)][_0x3d2c00(0xc0)][_0x3d2c00(0xf3)],()=>{_0x125955();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5091(){const _0x16da0d=['18DQzsYs','2225105sInuoH','length','118488DRvxyN','filter','6gylqcm','440666gJShDF','2866269cfYllQ','216584dKOKjX','items','1309767fhuEjl','360816iFLcDy'];_0x5091=function(){return _0x16da0d;};return _0x5091();}const _0x22cd42=_0x1c3a;(function(_0x405cc7,_0x363d89){const _0x4dd9c8=_0x1c3a,_0x4512b4=_0x405cc7();while(!![]){try{const _0x2923bb=parseInt(_0x4dd9c8(0x1ec))/0x1+-parseInt(_0x4dd9c8(0x1ef))/0x2+-parseInt(_0x4dd9c8(0x1f3))/0x3+-parseInt(_0x4dd9c8(0x1f4))/0x4+parseInt(_0x4dd9c8(0x1ea))/0x5+-parseInt(_0x4dd9c8(0x1ee))/0x6*(-parseInt(_0x4dd9c8(0x1f0))/0x7)+parseInt(_0x4dd9c8(0x1f1))/0x8*(parseInt(_0x4dd9c8(0x1e9))/0x9);if(_0x2923bb===_0x363d89)break;else _0x4512b4['push'](_0x4512b4['shift']());}catch(_0x2d1c9c){_0x4512b4['push'](_0x4512b4['shift']());}}}(_0x5091,0x445bc));import{ListView as _0x247744}from'ckeditor5/src/ui.js';function _0x1c3a(_0x2a7958,_0x1b235b){const _0x509133=_0x5091();return _0x1c3a=function(_0x1c3a1b,_0x50f47e){_0x1c3a1b=_0x1c3a1b-0x1e9;let _0x12ba2d=_0x509133[_0x1c3a1b];return _0x12ba2d;},_0x1c3a(_0x2a7958,_0x1b235b);}export class AIChatPromptSuggestionsListView extends _0x247744{[_0x22cd42(0x1ed)](){const _0x27037e=_0x22cd42;let _0x450f73=0x0;for(const _0x37ed2c of this[_0x27037e(0x1f2)])_0x450f73+=_0x37ed2c[_0x27037e(0x1f2)][_0x27037e(0x1eb)];return{'resultsCount':_0x450f73,'totalItemsCount':_0x450f73};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xb6af96=_0x1bb8;(function(_0x24b58a,_0x14d355){const _0x2d41e3=_0x1bb8,_0x39dd6d=_0x24b58a();while(!![]){try{const _0x5d9d30=parseInt(_0x2d41e3(0x10c))/0x1*(-parseInt(_0x2d41e3(0xfc))/0x2)+-parseInt(_0x2d41e3(0x108))/0x3+-parseInt(_0x2d41e3(0xee))/0x4*(parseInt(_0x2d41e3(0x10b))/0x5)+-parseInt(_0x2d41e3(0x10e))/0x6+-parseInt(_0x2d41e3(0xf4))/0x7*(-parseInt(_0x2d41e3(0x107))/0x8)+parseInt(_0x2d41e3(0xf0))/0x9*(-parseInt(_0x2d41e3(0xff))/0xa)+-parseInt(_0x2d41e3(0xf9))/0xb*(-parseInt(_0x2d41e3(0xf7))/0xc);if(_0x5d9d30===_0x14d355)break;else _0x39dd6d['push'](_0x39dd6d['shift']());}catch(_0x3e6fd2){_0x39dd6d['push'](_0x39dd6d['shift']());}}}(_0x2bfa,0xd2c43));import{ListView as _0x3c7c9c}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x532532}from'./aichatresourcelistitemview.js';function _0x2bfa(){const _0x268bb6=['addResourceToContext','108720nZFZiI','clear','fire','extendTemplate','86891UTYPFE','resource','filter','7596RTZhRh','_source','96459jDEdpN','test','execute','1108958DtWgbh','locale','trim','940rTRUGF','replace','setResources','updateResourceState','add','_handleResourceSelection','items','forEach','888xgaTzR','714627KbUWey','highlightText','\x5c$&','5lsUZPe','3rWTRUy','ck-ai-chat-resources__list','8813388AqFLqg','useDefaultFiltering','label','6237028WCGLxu'];_0x2bfa=function(){return _0x268bb6;};return _0x2bfa();}function _0x1bb8(_0x471e15,_0x47881c){const _0x2bfa5b=_0x2bfa();return _0x1bb8=function(_0x1bb871,_0x1b9f35){_0x1bb871=_0x1bb871-0xee;let _0x20ac25=_0x2bfa5b[_0x1bb871];return _0x20ac25;},_0x1bb8(_0x471e15,_0x47881c);}const sc=_0xb6af96(0x10d);export class AIChatContextResourcesListView extends _0x3c7c9c{[_0xb6af96(0xf8)];constructor(_0x4dda50,_0x3752c2){const _0x348c31=_0xb6af96;super(_0x4dda50),this[_0x348c31(0xf8)]=_0x3752c2,this[_0x348c31(0xf3)]({'attributes':{'class':[sc]}});}[_0xb6af96(0x101)](_0x1927f4,_0x1d7fd4){const _0x524967=_0xb6af96;this[_0x524967(0x105)][_0x524967(0xf1)]();let _0x1c19b3=_0x1927f4;if(this[_0x524967(0xf8)][_0x524967(0x10f)]&&_0x1d7fd4&&''!==_0x1d7fd4[_0x524967(0xfe)]()){const _0x5e3cda=new RegExp(_0x1d7fd4[_0x524967(0x100)](/[.*+?^${}()|[\]\\]/g,_0x524967(0x10a)),'gi');_0x1c19b3=_0x1927f4[_0x524967(0xf6)](_0x5ccf5d=>_0x5e3cda[_0x524967(0xfa)](_0x5ccf5d[_0x524967(0x110)]));}for(const _0x2f00c9 of _0x1c19b3){const _0xef37f4=new _0x532532(this[_0x524967(0xfd)],_0x2f00c9);_0xef37f4['on'](_0x524967(0xfb),()=>{const _0x2442c3=_0x524967;this[_0x2442c3(0x104)](this[_0x2442c3(0xf8)],_0x2f00c9);}),this[_0x524967(0x105)][_0x524967(0x103)](_0xef37f4);}this[_0x524967(0xf8)][_0x524967(0x10f)]&&this[_0x524967(0x109)](_0x1d7fd4);}[_0xb6af96(0x109)](_0x3c4886){const _0x10f407=_0xb6af96;this[_0x10f407(0xf8)][_0x10f407(0x10f)]&&this[_0x10f407(0x105)][_0x10f407(0x106)](_0x594ecc=>{const _0x3837a9=_0x10f407;_0x594ecc[_0x3837a9(0x109)](_0x3c4886);});}[_0xb6af96(0x102)](_0x191bb6,_0x2ff9a2){const _0x3759fa=_0xb6af96;for(const _0x96f74c of this[_0x3759fa(0x105)]){const _0x1ab97a=_0x96f74c;_0x1ab97a[_0x3759fa(0xf5)]['id']===_0x191bb6&&_0x1ab97a[_0x3759fa(0x102)](_0x2ff9a2);}}[_0xb6af96(0x104)](_0x3b3d57,_0x525baa){const _0x8e9fdc=_0xb6af96;this[_0x8e9fdc(0xf2)](_0x8e9fdc(0xef),{'source':_0x3b3d57,'resource':_0x525baa});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49f0fa=_0x5391;function _0x12ff(){const _0x584888=['search','render','83615bKsKzN','ck-hidden','bindTemplate','extendTemplate','984jUhHjw','loadResources','div','12411870wiiYnQ','3096027WyHdJc','has','10rGYcED','source','4168cSKElr','1zHZLup','2571054GwoSIB','children','_createSearchSection','aiChatResources','loadSourceResources','ck-ai-chat-resources','_resourcesListView','_searchInputVisibleFrom','_searchSection','_createSearchView','setResources','locale','2616116tKYPBT','_createResourcesListView','getQuery','_source','highlightText','addResourceToContext','fire','useDefaultFiltering','delegate','_skeletonLoader','_createSkeletonView','searchInputVisibleFrom','isLoading','updateResourceState','_searchView','_latestLoadResourcesUid','setTemplate','add','set','length','25100207acOVTt','ck\x20ck-search','3858DvLbzB'];_0x12ff=function(){return _0x584888;};return _0x12ff();}(function(_0x2a631f,_0x22a956){const _0x20fd0c=_0x5391,_0x14a675=_0x2a631f();while(!![]){try{const _0x42ec1b=-parseInt(_0x20fd0c(0x183))/0x1*(-parseInt(_0x20fd0c(0x190))/0x2)+parseInt(_0x20fd0c(0x1a6))/0x3*(-parseInt(_0x20fd0c(0x182))/0x4)+-parseInt(_0x20fd0c(0x180))/0x5*(parseInt(_0x20fd0c(0x184))/0x6)+-parseInt(_0x20fd0c(0x1a9))/0x7*(parseInt(_0x20fd0c(0x17a))/0x8)+-parseInt(_0x20fd0c(0x17e))/0x9+parseInt(_0x20fd0c(0x17d))/0xa+parseInt(_0x20fd0c(0x1a4))/0xb;if(_0x42ec1b===_0x22a956)break;else _0x14a675['push'](_0x14a675['shift']());}catch(_0x2aeee5){_0x14a675['push'](_0x14a675['shift']());}}}(_0x12ff,0xc864e));import{View as _0x259779,ViewCollection as _0x1909e0}from'ckeditor5/src/ui.js';import{uid as _0x5bebe5}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x2963bd}from'./aichatcontextresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x357489}from'./aichatresourcessearchinputview.js';function _0x5391(_0x5df888,_0x6a1d49){const _0x12ffeb=_0x12ff();return _0x5391=function(_0x53912f,_0x374601){_0x53912f=_0x53912f-0x17a;let _0x106b0f=_0x12ffeb[_0x53912f];return _0x106b0f;},_0x5391(_0x5df888,_0x6a1d49);}import{AISkeletonView as _0x43c821,SKELETON_DEFINITIONS as _0x15937e}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x259779{[_0x49f0fa(0x19e)];[_0x49f0fa(0x18c)];[_0x49f0fa(0x18b)];[_0x49f0fa(0x18a)];[_0x49f0fa(0x199)];[_0x49f0fa(0x193)];[_0x49f0fa(0x185)];[_0x49f0fa(0x19f)]=null;constructor(_0x49c63,_0x1e4a79){const _0x26df88=_0x49f0fa;super(_0x49c63),this[_0x26df88(0x193)]=_0x1e4a79[_0x26df88(0x181)],this[_0x26df88(0x18b)]=_0x1e4a79[_0x26df88(0x19b)]??0x7,this[_0x26df88(0x1a2)](_0x26df88(0x19c),!0x0),this[_0x26df88(0x19e)]=this[_0x26df88(0x18d)](),this[_0x26df88(0x18c)]=this[_0x26df88(0x186)](),this[_0x26df88(0x18a)]=this[_0x26df88(0x191)](),this[_0x26df88(0x199)]=this[_0x26df88(0x19a)](),this[_0x26df88(0x185)]=new _0x1909e0([this[_0x26df88(0x199)],this[_0x26df88(0x18a)]]),this[_0x26df88(0x1a0)]({'tag':_0x26df88(0x17c),'attributes':{'class':_0x26df88(0x189)},'children':this[_0x26df88(0x185)]});}[_0x49f0fa(0x18d)](){const _0x7f7168=_0x49f0fa;return new _0x357489(this[_0x7f7168(0x18f)]);}[_0x49f0fa(0x186)](){const _0x1d5cf0=_0x49f0fa,_0x4a49cf=new _0x259779(this[_0x1d5cf0(0x18f)]);return _0x4a49cf[_0x1d5cf0(0x1a0)]({'tag':_0x1d5cf0(0x17c),'attributes':{'class':_0x1d5cf0(0x1a5)},'children':[this[_0x1d5cf0(0x19e)]]}),this[_0x1d5cf0(0x19e)]['on'](_0x1d5cf0(0x1a7),(_0x1b4054,_0x210fbc)=>{const _0x297f50=_0x1d5cf0;this[_0x297f50(0x17b)](_0x210fbc),this[_0x297f50(0x193)][_0x297f50(0x197)]&&this[_0x297f50(0x18a)][_0x297f50(0x194)](_0x210fbc);}),_0x4a49cf;}[_0x49f0fa(0x191)](){const _0x98bf51=_0x49f0fa,_0x34c10c=new _0x2963bd(this[_0x98bf51(0x18f)],this[_0x98bf51(0x193)]);return _0x34c10c[_0x98bf51(0x198)](_0x98bf51(0x195))['to'](this),_0x34c10c[_0x98bf51(0x1ac)]({'attributes':{'class':this[_0x98bf51(0x1ab)]['if'](_0x98bf51(0x19c),_0x98bf51(0x1aa))}}),_0x34c10c;}[_0x49f0fa(0x19a)](){const _0xda7491=_0x49f0fa,_0x520d88=new _0x43c821(this[_0xda7491(0x18f)],_0x15937e[_0xda7491(0x187)]);return _0x520d88[_0xda7491(0x1ac)]({'attributes':{'class':[this[_0xda7491(0x1ab)]['if'](_0xda7491(0x19c),_0xda7491(0x1aa),_0x3e5320=>!_0x3e5320)]}}),_0x520d88;}[_0x49f0fa(0x1a8)](){const _0x3b536e=_0x49f0fa;super[_0x3b536e(0x1a8)](),this[_0x3b536e(0x17b)]('');}[_0x49f0fa(0x17b)](_0x539166){const _0x2ae003=_0x49f0fa,_0x21871b=_0x5bebe5();this[_0x2ae003(0x19f)]=_0x21871b,this[_0x2ae003(0x196)](_0x2ae003(0x188),{'sourceId':this[_0x2ae003(0x193)]['id'],'query':_0x539166,'uid':_0x21871b}),this[_0x2ae003(0x19c)]=!0x0;}[_0x49f0fa(0x18e)](_0x2e4193,_0x12ae94){const _0x194b27=_0x49f0fa;if(_0x12ae94&&_0x12ae94!==this[_0x194b27(0x19f)])return;const _0x100297=this[_0x194b27(0x193)][_0x194b27(0x197)]?this[_0x194b27(0x19e)][_0x194b27(0x192)]():'';this[_0x194b27(0x18a)][_0x194b27(0x18e)](_0x2e4193,_0x100297),_0x2e4193[_0x194b27(0x1a3)]>=this[_0x194b27(0x18b)]&&!this[_0x194b27(0x185)][_0x194b27(0x17f)](this[_0x194b27(0x18c)])&&this[_0x194b27(0x185)][_0x194b27(0x1a1)](this[_0x194b27(0x18c)],0x0),requestAnimationFrame(()=>{const _0x10e1d4=_0x194b27;this[_0x10e1d4(0x19c)]=!0x1;});}[_0x49f0fa(0x19d)](_0x1679f0,_0x16fba3){const _0x16c92e=_0x49f0fa;this[_0x16c92e(0x18a)][_0x16c92e(0x19d)](_0x1679f0,_0x16fba3);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3636b9=_0x1eda;function _0x1eda(_0x55660f,_0x4b2c75){const _0x4211a5=_0x4211();return _0x1eda=function(_0x1eda9c,_0x419005){_0x1eda9c=_0x1eda9c-0x1e6;let _0x4a983f=_0x4211a5[_0x1eda9c];return _0x4a983f;},_0x1eda(_0x55660f,_0x4b2c75);}(function(_0x6a613b,_0x1b5d3e){const _0x33e051=_0x1eda,_0x48a81d=_0x6a613b();while(!![]){try{const _0x5b35ea=-parseInt(_0x33e051(0x1f6))/0x1+parseInt(_0x33e051(0x1ef))/0x2+-parseInt(_0x33e051(0x1f7))/0x3+-parseInt(_0x33e051(0x209))/0x4+parseInt(_0x33e051(0x1ed))/0x5*(-parseInt(_0x33e051(0x1f5))/0x6)+-parseInt(_0x33e051(0x1f2))/0x7*(-parseInt(_0x33e051(0x1f3))/0x8)+parseInt(_0x33e051(0x20c))/0x9;if(_0x5b35ea===_0x1b5d3e)break;else _0x48a81d['push'](_0x48a81d['shift']());}catch(_0x1b1e51){_0x48a81d['push'](_0x48a81d['shift']());}}}(_0x4211,0x96f12));function _0x4211(){const _0x58f05b=['resource','899844SpwQPK','text','isInContext','20950416EjGUPB','ck-hidden','_setupTemplate','type','_iconView','isVisible','URL','_createIconView','ck-ai-chat-resources__item-title','highlightText','DOCUMENT','execute','639235apEoJt','_titleView','1232074BsgxDg','FILE','div','1008721VDlpfr','8MFjgWP','getResourceIcon','54FWfyOF','52461hzCpPM','3124983CgGbTQ','extendTemplate','TEXT','set','ck-ai-chat-resources__item','trim','_createTitleView','_updateIcon','bindTemplate','content','setTemplate','render','span','updateResourceState','ck-ai-chat-resources__item__icon','label','ck-ai-chat-resources__item--in-context'];_0x4211=function(){return _0x58f05b;};return _0x4211();}import{HighlightedTextView as _0x23573c,IconView as _0x6b3f72,ListItemView as _0x4c53e5}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x1841e6}from'es-toolkit/compat';import{AIContextItemType as _0x47176c}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x2a3292,IconCheck as _0x59aede,IconDocument as _0x1cb130,IconDocumentOutline as _0x4ef506,IconLink as _0xbaeecd}from'@ckeditor/ckeditor5-icons';const Br=_0x3636b9(0x1fb),Gr=_0x3636b9(0x207),Hr=_0x3636b9(0x1e9),Jr=_0x3636b9(0x205);export class AIChatResourceListItemView extends _0x4c53e5{[_0x3636b9(0x208)];[_0x3636b9(0x1ee)];[_0x3636b9(0x210)];constructor(_0x10c674,_0x44599a){const _0x1c36d8=_0x3636b9;super(_0x10c674),this[_0x1c36d8(0x208)]=_0x44599a,this[_0x1c36d8(0x1fa)](_0x1c36d8(0x20b),!!_0x44599a[_0x1c36d8(0x20b)]),this[_0x1c36d8(0x1ee)]=this[_0x1c36d8(0x1fd)](),this[_0x1c36d8(0x210)]=this[_0x1c36d8(0x1e8)](),this[_0x1c36d8(0x20e)]();}[_0x3636b9(0x202)](){const _0x8acaa0=_0x3636b9;super[_0x8acaa0(0x202)]();}[_0x3636b9(0x1f4)](_0x327664){const _0x3cfc10=_0x3636b9;if(_0x327664[_0x3cfc10(0x20b)])return _0x59aede;switch(_0x327664[_0x3cfc10(0x20f)]){case _0x47176c[_0x3cfc10(0x1eb)]:return _0x1cb130;case _0x47176c[_0x3cfc10(0x1e7)]:return _0xbaeecd;case _0x47176c[_0x3cfc10(0x1f0)]:case _0x47176c[_0x3cfc10(0x1f9)]:return _0x2a3292;default:return _0x4ef506;}}[_0x3636b9(0x1ea)](_0x12e37f){const _0xe01266=_0x3636b9;if(!_0x12e37f||''===_0x12e37f[_0xe01266(0x1fc)]())return void this[_0xe01266(0x1ee)][_0xe01266(0x1ea)](null);const _0x11984c=new RegExp(_0x1841e6(_0x12e37f),'gi');this[_0xe01266(0x1ee)][_0xe01266(0x1ea)](_0x11984c);}[_0x3636b9(0x204)](_0x3cbda3){const _0xac26f5=_0x3636b9;this[_0xac26f5(0x208)][_0xac26f5(0x20b)]=_0x3cbda3,this[_0xac26f5(0x20b)]=_0x3cbda3,this[_0xac26f5(0x1fe)]();}[_0x3636b9(0x1fd)](){const _0x552a32=_0x3636b9,_0x20706a=new _0x23573c();return _0x20706a[_0x552a32(0x20a)]=this[_0x552a32(0x208)][_0x552a32(0x206)],_0x20706a[_0x552a32(0x1f8)]({'tag':_0x552a32(0x203),'attributes':{'class':[Hr]}}),_0x20706a;}[_0x3636b9(0x1e8)](){const _0x464b9e=_0x3636b9,_0x413373=new _0x6b3f72();return _0x413373[_0x464b9e(0x200)]=this[_0x464b9e(0x1f4)](this[_0x464b9e(0x208)]),_0x413373;}[_0x3636b9(0x20e)](){const _0x44e750=_0x3636b9,_0x27c195=this[_0x44e750(0x1ff)];this[_0x44e750(0x201)]({'tag':_0x44e750(0x1f1),'attributes':{'class':[Br,_0x27c195['if'](_0x44e750(0x1e6),_0x44e750(0x20d),_0x24b673=>!_0x24b673),_0x27c195['if'](_0x44e750(0x20b),Gr)]},'children':[{'tag':_0x44e750(0x1f1),'attributes':{'class':[Jr]},'children':[this[_0x44e750(0x210)]]},this[_0x44e750(0x1ee)]],'on':{'click':_0x27c195['to'](_0x44e750(0x1ec))}});}[_0x3636b9(0x1fe)](){const _0x3de725=_0x3636b9;this[_0x3de725(0x210)][_0x3de725(0x200)]=this[_0x3de725(0x1f4)](this[_0x3de725(0x208)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x502189=_0x40f6;(function(_0x5219a4,_0x170030){const _0x35beba=_0x40f6,_0x1c5062=_0x5219a4();while(!![]){try{const _0x112e4f=parseInt(_0x35beba(0x1bc))/0x1+-parseInt(_0x35beba(0x1b5))/0x2+-parseInt(_0x35beba(0x188))/0x3*(-parseInt(_0x35beba(0x1b4))/0x4)+parseInt(_0x35beba(0x189))/0x5*(parseInt(_0x35beba(0x1a0))/0x6)+parseInt(_0x35beba(0x1a9))/0x7+parseInt(_0x35beba(0x1bf))/0x8+parseInt(_0x35beba(0x186))/0x9*(-parseInt(_0x35beba(0x1af))/0xa);if(_0x112e4f===_0x170030)break;else _0x1c5062['push'](_0x1c5062['shift']());}catch(_0x16063e){_0x1c5062['push'](_0x1c5062['shift']());}}}(_0x2b83,0xb6091));function _0x2b83(){const _0x5b96b9=['populateSourceResourceBalloon','_config','onResourceSelected','onBackToContext','getTargetElement','805700sjeBiA','_locale','change:isLoading','execute','loadSourceResources','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','70bqyFdZ','_createBalloonHeader','addResourceToContext','delete','element','12232zfwmLB','1851384TSckNN','destroy','_addSourceResourceContent','_bodyCollection','_getResourcesViewFromBalloon','once','set','996601KYPJXN','children','_setupSingleResourceBalloonClickOutsideHandler','7459088xDAzvS','onBalloonClosed','getLimiterElement','isVisible','2736225OtVdXq','get','348jKKmHk','5ctAVss','searchInputVisibleFrom','hide','values','setResources','resource','extendTemplate','_sourceResourceBalloons','_createSourceResourceBalloonPanel','pin','isAnyResourceBalloonVisible','_createBackButton','ck-ai-chat-context-controls__source-balloon-panel','source','updateResourceState','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','onLoadSourceResources','showSourceResourcesBalloon','ck-button-icon\x20ck-button-back','closeSourceResourceBalloon','_createBalloonResourcesView','clear','label','8404014GFBtRd','content','add','show'];_0x2b83=function(){return _0x5b96b9;};return _0x2b83();}import{BalloonPanelView as _0x292c7b,ButtonView as _0x139a9c,clickOutsideHandler as _0x4cce64,FormHeaderView as _0x4560ee}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x4babc6}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xcc227f}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x3d5c58}from'./aichatcontextresourcesview.js';const Nr=_0x502189(0x195),Xr=_0x502189(0x19b),Kr=_0x502189(0x1ae);function _0x40f6(_0x32309f,_0xa300c1){const _0x2b8372=_0x2b83();return _0x40f6=function(_0x40f601,_0x320d8a){_0x40f601=_0x40f601-0x183;let _0x335d98=_0x2b8372[_0x40f601];return _0x335d98;},_0x40f6(_0x32309f,_0xa300c1);}export class AIChatResourcesBalloonView{[_0x502189(0x190)]=new Map();[_0x502189(0x1b8)];[_0x502189(0x1aa)];[_0x502189(0x1a5)];constructor(_0x2ef2f7,_0x3bed02,_0x1bddcb){const _0x253396=_0x502189;this[_0x253396(0x1aa)]=_0x2ef2f7,this[_0x253396(0x1b8)]=_0x3bed02,this[_0x253396(0x1a5)]=_0x1bddcb;}[_0x502189(0x19a)](_0x18b369){const _0x20666b=_0x502189;let _0x45a0f1=this[_0x20666b(0x190)][_0x20666b(0x187)](_0x18b369['id']);_0x45a0f1||(_0x45a0f1=this[_0x20666b(0x191)](),this[_0x20666b(0x190)][_0x20666b(0x1bb)](_0x18b369['id'],_0x45a0f1),this[_0x20666b(0x1be)](_0x45a0f1)),this[_0x20666b(0x1b7)](_0x45a0f1,_0x18b369),_0x45a0f1[_0x20666b(0x1a3)]();const _0x283c91=this[_0x20666b(0x1a5)][_0x20666b(0x1a8)]();_0x283c91&&_0x45a0f1[_0x20666b(0x192)]({'target':_0x283c91,'limiter':this[_0x20666b(0x1a5)][_0x20666b(0x184)]()});}[_0x502189(0x1a4)](_0x590cbc,_0x11fdf1,_0x2d9ca0){const _0x954f85=_0x502189,_0x44156d=this[_0x954f85(0x190)][_0x954f85(0x187)](_0x590cbc);if(!_0x44156d)return;const _0x49328b=this[_0x954f85(0x1b9)](_0x44156d);_0x49328b&&(_0x49328b[_0x954f85(0x18d)](_0x11fdf1,_0x2d9ca0),_0x49328b[_0x954f85(0x1ba)](_0x954f85(0x1ab),()=>{const _0x154baa=_0x954f85;_0x44156d[_0x154baa(0x192)]({'target':this[_0x154baa(0x1a5)][_0x154baa(0x1a8)](),'limiter':this[_0x154baa(0x1a5)][_0x154baa(0x184)]()});}));}[_0x502189(0x19c)](_0x51d854){const _0x45fc67=_0x502189,_0x83bdf0=this[_0x45fc67(0x190)][_0x45fc67(0x187)](_0x51d854);_0x83bdf0&&requestAnimationFrame(()=>{const _0x58eb33=_0x45fc67;_0x83bdf0[_0x58eb33(0x18b)](),this[_0x58eb33(0x190)][_0x58eb33(0x1b2)](_0x51d854),this[_0x58eb33(0x1a5)][_0x58eb33(0x183)]();});}[_0x502189(0x193)](){const _0x477029=_0x502189;for(const _0x4c98b6 of this[_0x477029(0x190)][_0x477029(0x18c)]())if(_0x4c98b6[_0x477029(0x185)])return!0x0;return!0x1;}[_0x502189(0x197)](_0x528504,_0x47ad68,_0x11439e){const _0x5dd7ca=_0x502189,_0x174e0d=this[_0x5dd7ca(0x190)][_0x5dd7ca(0x187)](_0x528504);if(!_0x174e0d||!_0x174e0d[_0x5dd7ca(0x185)])return;const _0x11247b=this[_0x5dd7ca(0x1a5)][_0x5dd7ca(0x1a8)]();if(!_0x11247b)return;_0x174e0d[_0x5dd7ca(0x192)]({'target':_0x11247b,'limiter':this[_0x5dd7ca(0x1a5)][_0x5dd7ca(0x184)]()});const _0x5912bd=this[_0x5dd7ca(0x1b9)](_0x174e0d);_0x5912bd&&_0x5912bd[_0x5dd7ca(0x197)](_0x47ad68,_0x11439e);}[_0x502189(0x1b6)](){const _0x39f4ba=_0x502189;for(const _0x3e9504 of this[_0x39f4ba(0x190)][_0x39f4ba(0x18c)]())_0x3e9504[_0x39f4ba(0x1b6)]();this[_0x39f4ba(0x190)][_0x39f4ba(0x19e)]();}[_0x502189(0x191)](){const _0x3be636=_0x502189,_0x576331=new _0x292c7b(this[_0x3be636(0x1aa)]);return _0x576331[_0x3be636(0x18f)]({'attributes':{'class':Nr}}),this[_0x3be636(0x1b8)][_0x3be636(0x1a2)](_0x576331),_0x576331;}[_0x502189(0x1b7)](_0x1a90a7,_0x25485a){const _0x18805e=_0x502189;_0x1a90a7[_0x18805e(0x1a1)][_0x18805e(0x19e)]();const _0x377bc8=this[_0x18805e(0x1b0)](_0x1a90a7,_0x25485a);_0x1a90a7[_0x18805e(0x1a1)][_0x18805e(0x1a2)](_0x377bc8);const _0x52d445=this[_0x18805e(0x19d)](_0x25485a);_0x1a90a7[_0x18805e(0x1a1)][_0x18805e(0x1a2)](_0x52d445);}[_0x502189(0x1b0)](_0x2ecb99,_0x4d3388){const _0x25e49b=_0x502189,_0x4283b4=this[_0x25e49b(0x194)](_0x2ecb99),_0x4aa1fb=new _0x4560ee(this[_0x25e49b(0x1aa)],{'label':_0x4d3388[_0x25e49b(0x19f)],'class':Kr});return _0x4aa1fb[_0x25e49b(0x1bd)][_0x25e49b(0x1a2)](_0x4283b4,0x0),_0x4aa1fb;}[_0x502189(0x194)](_0x2bcf06){const _0xdc3882=_0x502189,_0x37c21d=new _0x139a9c(this[_0xdc3882(0x1aa)]);return _0x37c21d[_0xdc3882(0x1bb)]({'icon':_0x4babc6,'tooltip':_0xcc227f(this[_0xdc3882(0x1aa)],_0xdc3882(0x198)),'tooltipPosition':'n','class':Xr}),_0x37c21d['on'](_0xdc3882(0x1ac),()=>{const _0x25cf28=_0xdc3882;_0x2bcf06[_0x25cf28(0x18b)](),this[_0x25cf28(0x1a5)][_0x25cf28(0x1a7)]();}),_0x37c21d;}[_0x502189(0x19d)](_0x4fc19e){const _0x591492=_0x502189,_0x37bf86=new _0x3d5c58(this[_0x591492(0x1aa)],{'source':_0x4fc19e,'searchInputVisibleFrom':this[_0x591492(0x1a5)][_0x591492(0x18a)]});return _0x37bf86['on'](_0x591492(0x1ad),(_0x32271c,_0x3392ef)=>{const _0x1fc7da=_0x591492;this[_0x1fc7da(0x1a5)][_0x1fc7da(0x199)](_0x3392ef);}),_0x37bf86['on'](_0x591492(0x1b1),(_0x40d65b,_0x839539)=>{const _0x5160aa=_0x591492;this[_0x5160aa(0x1a5)][_0x5160aa(0x1a6)](_0x839539[_0x5160aa(0x196)],_0x839539[_0x5160aa(0x18e)]),this[_0x5160aa(0x19c)](_0x4fc19e['id']);}),_0x37bf86;}[_0x502189(0x1b9)](_0x12503b){const _0x5f362e=_0x502189,_0x2e50ad=_0x12503b[_0x5f362e(0x1a1)][_0x5f362e(0x187)](0x1);return _0x2e50ad instanceof _0x3d5c58?_0x2e50ad:null;}[_0x502189(0x1be)](_0x229eaa){const _0x1f8032=_0x502189;_0x4cce64({'emitter':_0x229eaa,'contextElements':[_0x229eaa[_0x1f8032(0x1b3)]],'callback':()=>{const _0x28b7da=_0x1f8032;_0x229eaa[_0x28b7da(0x18b)](),this[_0x28b7da(0x1a5)][_0x28b7da(0x183)]();},'activator':()=>_0x229eaa[_0x1f8032(0x185)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x4d8c3a,IconView as _0x10c657,LabeledFieldView as _0x1eee8,createLabeledInputText as _0x10806f}from'ckeditor5/src/ui.js';import{IconLoupe as _0x673375,IconCancel as _0x36b030}from'ckeditor5/src/icons.js';import{getTranslation as _0xe90aa7}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x1eee8{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x35f014){const t=_0x35f014['t'],_0x1da6d1={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x10806f,'label':_0xe90aa7(_0x35f014,'AI_CHAT_SEARCH_RESOURCES')};super(_0x35f014,_0x1da6d1['creator']),this['label']=_0x1da6d1['label'],this['_viewConfig']=_0x1da6d1,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x35f014,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x45333d){this['fire']('search',_0x45333d);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x10c657(),this['iconView']['content']=_0x673375,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x16078c,t){this['resetButtonView']=new _0x4d8c3a(_0x16078c),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0x36b030,'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',_0x379ba4=>!_0x379ba4),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 _0x1bbb82=_0x2aa9;(function(_0x10ecc4,_0x46a97d){const _0x33b7fb=_0x2aa9,_0x415238=_0x10ecc4();while(!![]){try{const _0x3002cb=parseInt(_0x33b7fb(0x16e))/0x1*(parseInt(_0x33b7fb(0x15d))/0x2)+parseInt(_0x33b7fb(0x161))/0x3*(-parseInt(_0x33b7fb(0x16d))/0x4)+parseInt(_0x33b7fb(0x155))/0x5*(-parseInt(_0x33b7fb(0x16f))/0x6)+-parseInt(_0x33b7fb(0x15c))/0x7*(-parseInt(_0x33b7fb(0x164))/0x8)+-parseInt(_0x33b7fb(0x174))/0x9+parseInt(_0x33b7fb(0x168))/0xa*(-parseInt(_0x33b7fb(0x176))/0xb)+parseInt(_0x33b7fb(0x160))/0xc;if(_0x3002cb===_0x46a97d)break;else _0x415238['push'](_0x415238['shift']());}catch(_0x5696c2){_0x415238['push'](_0x415238['shift']());}}}(_0x55de,0x279e9));import{View as _0x4f5a7c}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x1bbc5}from'../controls/aichatcontextitembuttonview.js';import{AIChatChipsOverflowManager as _0x2f4218}from'../controls/aichatchipsoverflowmanager.js';const $o=_0x1bbb82(0x167),Qo=_0x1bbb82(0x16c),Xo=_0x1bbb82(0x166),Lo=_0x1bbb82(0x170),Oo=_0x1bbb82(0x173),Mo=_0x1bbb82(0x171);function _0x55de(){const _0x2edf02=['div','locale','7WvQyTS','4106ZQKShe','_createContextChips','createCollection','5697180ayAYUm','39iVkLMs','_bodyCollection','add','897256EtkMic','_overflowManager','ck-ai-chat-context-chips-wrapper-balloon','ck-ai-chat__feed__context-chips','10cpQQsc','reorganizeChips','render','setContainerElement','ck-ai-chat-context-chips-wrapper','37624YuqIcY','11BkxAxw','42TrIfzI','ck-ai-chat-controls-button','ck-ai-chat-context-controls__show-more-balloon-panel','setTemplate','ck-ai-chat-controls_context_show-more-button','1163232ikJMvm','ck-reset_all','279730yEVqre','121620arpwXn','element','querySelector','destroy','_contextChips'];_0x55de=function(){return _0x2edf02;};return _0x55de();}function _0x2aa9(_0x2f257c,_0x3912ac){const _0x55de83=_0x55de();return _0x2aa9=function(_0x2aa94c,_0x47c1e2){_0x2aa94c=_0x2aa94c-0x155;let _0x59deee=_0x55de83[_0x2aa94c];return _0x59deee;},_0x2aa9(_0x2f257c,_0x3912ac);}export class AIChatFeedContextChipsView extends _0x4f5a7c{[_0x1bbb82(0x159)]=this[_0x1bbb82(0x15f)]();[_0x1bbb82(0x165)];[_0x1bbb82(0x162)];constructor(_0x32e514,_0x41f70b,_0x14c4fe){const _0xb49b05=_0x1bbb82;super(_0x32e514),this[_0xb49b05(0x162)]=_0x14c4fe,this[_0xb49b05(0x15e)](_0x41f70b);const _0x47cb00={'cssClasses':{'showMoreButton':Oo,'showMoreBalloon':Mo,'overflowContainer':Xo,'controlsButton':Lo}};this[_0xb49b05(0x165)]=new _0x2f4218(_0x32e514,this[_0xb49b05(0x159)],_0x47cb00,this[_0xb49b05(0x162)],this),this[_0xb49b05(0x172)]({'tag':_0xb49b05(0x15a),'attributes':{'class':[$o,'ck',_0xb49b05(0x175)]},'children':[{'tag':_0xb49b05(0x15a),'attributes':{'class':Qo},'children':this[_0xb49b05(0x159)]}]});}[_0x1bbb82(0x16a)](){const _0x528fb0=_0x1bbb82;super[_0x528fb0(0x16a)]();const _0x309eaf=this[_0x528fb0(0x156)][_0x528fb0(0x157)]('.'+Qo);_0x309eaf&&(this[_0x528fb0(0x165)][_0x528fb0(0x16b)](_0x309eaf),this[_0x528fb0(0x165)][_0x528fb0(0x169)]());}[_0x1bbb82(0x158)](){const _0x3e104d=_0x1bbb82;super[_0x3e104d(0x158)](),this[_0x3e104d(0x165)][_0x3e104d(0x158)]();}[_0x1bbb82(0x15e)](_0x206da1){const _0x4e67ce=_0x1bbb82;for(const _0x300b13 of _0x206da1){const _0x18cd0a=new _0x1bbc5(this[_0x4e67ce(0x15b)],_0x300b13,!0x0,!0x1);this[_0x4e67ce(0x159)][_0x4e67ce(0x163)](_0x18cd0a);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x441b14=_0x3930;(function(_0x34da5b,_0x374bf0){var _0x30aa61=_0x3930,_0x30f48a=_0x34da5b();while(!![]){try{var _0x2f92a1=parseInt(_0x30aa61(0x1ce))/0x1+-parseInt(_0x30aa61(0x1cb))/0x2*(parseInt(_0x30aa61(0x1bd))/0x3)+parseInt(_0x30aa61(0x1d0))/0x4+parseInt(_0x30aa61(0x1c2))/0x5*(parseInt(_0x30aa61(0x1c1))/0x6)+parseInt(_0x30aa61(0x1c0))/0x7+parseInt(_0x30aa61(0x1bf))/0x8+-parseInt(_0x30aa61(0x1c4))/0x9;if(_0x2f92a1===_0x374bf0)break;else _0x30f48a['push'](_0x30f48a['shift']());}catch(_0x309db4){_0x30f48a['push'](_0x30f48a['shift']());}}}(_0x26aa,0x51c0c));function _0x3930(_0x1431db,_0x5d7f03){var _0x26aa9f=_0x26aa();return _0x3930=function(_0x3930e3,_0xe363dc){_0x3930e3=_0x3930e3-0x1bd;var _0x6a3d88=_0x26aa9f[_0x3930e3];return _0x6a3d88;},_0x3930(_0x1431db,_0x5d7f03);}import{AIChatFeedItemView as _0x40d80b}from'./aichatfeeditemview.js';function _0x26aa(){var _0x5d6b8d=['89064naseuh','3337600VKLqiu','12594CgTqlQ','1525EZNCQg','ck-ai-notification_warning','10070145FPJbDK','ck-ai-notification_error','innerHTML','ck-ai-notification','render','markAsDone','warning','486jIWOgp','setContent','options','173952TwFguE','element','1515560YquYPu','initialContent','level','2805BGWgsK','extendTemplate'];_0x26aa=function(){return _0x5d6b8d;};return _0x26aa();}export class AIChatFeedErrorItemView extends _0x40d80b{constructor(_0x1dccc5){var _0x392653=_0x3930;super(_0x1dccc5),this[_0x392653(0x1be)]({'attributes':{'class':[_0x392653(0x1c7),_0x392653(0x1ca)===_0x1dccc5[_0x392653(0x1d2)]?_0x392653(0x1c3):_0x392653(0x1c5)]}});}[_0x441b14(0x1c8)](){var _0x2b1a4c=_0x441b14;super[_0x2b1a4c(0x1c8)](),this[_0x2b1a4c(0x1cc)](this[_0x2b1a4c(0x1cd)][_0x2b1a4c(0x1d1)]),this[_0x2b1a4c(0x1c9)]();}[_0x441b14(0x1cc)](_0x53c89e){var _0x1a9ad3=_0x441b14;this[_0x1a9ad3(0x1cf)][_0x1a9ad3(0x1c6)]=_0x53c89e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x45c8(){const _0x1a775f=['25717626jBUvBI','774QpsQgz','ck-ai-chat__feed__interaction-header','ck-hidden','3298869BTygDr','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','905AhDnEs','children','capabilities','2556htLHkl','21596PdhDuY','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','setTemplate','content','add','ck-ai-chat__feed__interaction-header__capabilities__text','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','ck-ai-chat__feed__interaction-header__capabilities','extendTemplate','3782172agWusg','push','div','span','9426472eYmHBa','567023eCcZth'];_0x45c8=function(){return _0x1a775f;};return _0x45c8();}const _0x47e59f=_0x1f51;(function(_0x33d50c,_0x5ee9cf){const _0x32fcce=_0x1f51,_0x3106f7=_0x33d50c();while(!![]){try{const _0x4da824=parseInt(_0x32fcce(0x1dd))/0x1+-parseInt(_0x32fcce(0x1df))/0x2*(parseInt(_0x32fcce(0x1e7))/0x3)+parseInt(_0x32fcce(0x1e8))/0x4*(-parseInt(_0x32fcce(0x1e4))/0x5)+-parseInt(_0x32fcce(0x1f1))/0x6+parseInt(_0x32fcce(0x1e2))/0x7+-parseInt(_0x32fcce(0x1f5))/0x8+parseInt(_0x32fcce(0x1de))/0x9;if(_0x4da824===_0x5ee9cf)break;else _0x3106f7['push'](_0x3106f7['shift']());}catch(_0xe2e6a6){_0x3106f7['push'](_0x3106f7['shift']());}}}(_0x45c8,0xbe79e));import{IconBulb as _0x1a731b,IconWeb as _0x56d5ad}from'@ckeditor/ckeditor5-icons';import{IconView as _0xb8a6fa,View as _0x13e159}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x26b1cc}from'./aichatfeeditemview.js';import{getTranslation as _0x31bb93}from'../../../aicore/utils/common-translations.js';function _0x1f51(_0x43e2c3,_0x457594){const _0x45c8fe=_0x45c8();return _0x1f51=function(_0x1f5114,_0x105254){_0x1f5114=_0x1f5114-0x1dd;let _0x1e6cbd=_0x45c8fe[_0x1f5114];return _0x1e6cbd;},_0x1f51(_0x43e2c3,_0x457594);}export class AIChatFeedInteractionHeaderView extends _0x26b1cc{[_0x47e59f(0x1e6)];constructor(_0x3fe255,_0x4c4a69){const _0x3ec9a5=_0x47e59f;super(_0x4c4a69);const {isWebSearchEnabled:_0x3cc89f,isReasoningEnabled:_0x1e84a5}=_0x4c4a69[_0x3ec9a5(0x1e6)],_0x38261e=[];let _0x102b92='';_0x3cc89f&&_0x1e84a5?(_0x102b92=_0x31bb93(_0x3fe255,_0x3ec9a5(0x1e3)),_0x38261e[_0x3ec9a5(0x1f2)](aa(_0x56d5ad)),_0x38261e[_0x3ec9a5(0x1f2)](aa(_0x1a731b))):_0x3cc89f?(_0x102b92=_0x31bb93(_0x3fe255,_0x3ec9a5(0x1ee)),_0x38261e[_0x3ec9a5(0x1f2)](aa(_0x56d5ad))):_0x1e84a5&&(_0x102b92=_0x31bb93(_0x3fe255,_0x3ec9a5(0x1e9)),_0x38261e[_0x3ec9a5(0x1f2)](aa(_0x1a731b))),this[_0x3ec9a5(0x1f0)]({'attributes':{'class':[_0x3ec9a5(0x1e0),_0x102b92?'':_0x3ec9a5(0x1e1)]}});const _0x4ec6e9=new _0x13e159();_0x4ec6e9[_0x3ec9a5(0x1ea)]({'tag':_0x3ec9a5(0x1f3),'attributes':{'class':['ck',_0x3ec9a5(0x1ef)]},'children':[..._0x38261e,{'tag':_0x3ec9a5(0x1f4),'attributes':{'class':[_0x3ec9a5(0x1ed)]},'children':[_0x102b92]}]}),this[_0x3ec9a5(0x1e5)][_0x3ec9a5(0x1ec)](_0x4ec6e9),this[_0x3ec9a5(0x1e6)]=_0x4c4a69[_0x3ec9a5(0x1e6)];}}function aa(_0x4e414d){const _0x58c567=_0x47e59f,_0xa87432=new _0xb8a6fa();return _0xa87432[_0x58c567(0x1eb)]=_0x4e414d,_0xa87432;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4ef9(){const _0x19d510=['setTemplate','removeAttribute','forEach','30bDtCoR','stream','387220ALzmVC','options','content','markAsDone','isVisible','ck-ai-chat__feed__item','isDone','ck-ai-chat__feed__text-item','data-id','508890bNWLYi','8770EsLVzu','[data-id]','1187200iKerYz','3210630PCCRhh','cleanUpAnimations','children','ck-ai-chat__feed__item_done','animation:\x20ck-html-streamer-fade-in\x20.5s','createCollection','streamIntoElement','ck-hidden','271866wevsAH','603558bJbCCw','querySelectorAll','div','3VQZsHo','bindTemplate','element','htmlStreamer','25kbMPOA','set'];_0x4ef9=function(){return _0x19d510;};return _0x4ef9();}function _0x522e(_0x429859,_0x7fed7c){const _0x4ef90f=_0x4ef9();return _0x522e=function(_0x522ed9,_0x48cf56){_0x522ed9=_0x522ed9-0x145;let _0x3cdb9f=_0x4ef90f[_0x522ed9];return _0x3cdb9f;},_0x522e(_0x429859,_0x7fed7c);}const _0x15434c=_0x522e;(function(_0x4bbc2f,_0x3d71fb){const _0x4f9e41=_0x522e,_0x4bc674=_0x4bbc2f();while(!![]){try{const _0x235211=parseInt(_0x4f9e41(0x146))/0x1*(-parseInt(_0x4f9e41(0x157))/0x2)+parseInt(_0x4f9e41(0x166))/0x3*(-parseInt(_0x4f9e41(0x14d))/0x4)+parseInt(_0x4f9e41(0x156))/0x5+-parseInt(_0x4f9e41(0x14b))/0x6*(-parseInt(_0x4f9e41(0x162))/0x7)+-parseInt(_0x4f9e41(0x159))/0x8+-parseInt(_0x4f9e41(0x163))/0x9+parseInt(_0x4f9e41(0x15a))/0xa;if(_0x235211===_0x3d71fb)break;else _0x4bc674['push'](_0x4bc674['shift']());}catch(_0x55b5da){_0x4bc674['push'](_0x4bc674['shift']());}}}(_0x4ef9,0x2fa43));import{View as _0x2e035d}from'ckeditor5/src/ui.js';import{HTMLStreamer as _0x30af44}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x2e035d{[_0x15434c(0x14e)];[_0x15434c(0x14f)]='';[_0x15434c(0x145)];[_0x15434c(0x15c)];constructor(_0x570ad2){const _0x390ada=_0x15434c;super();const _0x22c860=this[_0x390ada(0x167)];this[_0x390ada(0x147)](_0x390ada(0x153),!0x1),this[_0x390ada(0x147)](_0x390ada(0x151),!0x0),this[_0x390ada(0x145)]=new _0x30af44({'textNodeStyle':_0x390ada(0x15e),'delay':0x14}),this[_0x390ada(0x14e)]=_0x570ad2,this[_0x390ada(0x15c)]=this[_0x390ada(0x15f)](),this[_0x390ada(0x148)]({'tag':_0x390ada(0x165),'attributes':{'class':['ck',_0x390ada(0x152),_0x22c860['if'](_0x390ada(0x153),_0x390ada(0x15d)),_0x22c860['if'](_0x390ada(0x151),_0x390ada(0x161),_0xf28e60=>!_0xf28e60),_0x390ada(0x154)],'data-cke-ai-id':this[_0x390ada(0x14e)]['id']},'children':this[_0x390ada(0x15c)]});}[_0x15434c(0x150)](){const _0x1d928a=_0x15434c;this[_0x1d928a(0x145)][_0x1d928a(0x15b)]({'targetElement':this[_0x1d928a(0x168)]}),this[_0x1d928a(0x168)][_0x1d928a(0x164)](_0x1d928a(0x158))[_0x1d928a(0x14a)](_0x590c55=>{const _0x29b003=_0x1d928a;_0x590c55[_0x29b003(0x149)](_0x29b003(0x155));}),this[_0x1d928a(0x153)]=!0x0;}async[_0x15434c(0x160)](_0x58c7df,_0x336cd1,_0xf09847){const _0x261392=_0x15434c;await this[_0x261392(0x145)][_0x261392(0x14c)]({'document':_0x58c7df,'targetElement':_0x336cd1,'abortSignal':_0xf09847});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50d2ac=_0xcfcf;(function(_0x3c8a9a,_0x18b867){const _0x3f5f98=_0xcfcf,_0x191d85=_0x3c8a9a();while(!![]){try{const _0x497b77=-parseInt(_0x3f5f98(0x14c))/0x1+-parseInt(_0x3f5f98(0x165))/0x2*(-parseInt(_0x3f5f98(0x14b))/0x3)+-parseInt(_0x3f5f98(0x15e))/0x4*(-parseInt(_0x3f5f98(0x152))/0x5)+parseInt(_0x3f5f98(0x144))/0x6*(-parseInt(_0x3f5f98(0x147))/0x7)+parseInt(_0x3f5f98(0x14a))/0x8+-parseInt(_0x3f5f98(0x155))/0x9*(-parseInt(_0x3f5f98(0x156))/0xa)+-parseInt(_0x3f5f98(0x15b))/0xb*(parseInt(_0x3f5f98(0x163))/0xc);if(_0x497b77===_0x18b867)break;else _0x191d85['push'](_0x191d85['shift']());}catch(_0x3d77f4){_0x191d85['push'](_0x191d85['shift']());}}}(_0x4bee,0x8e384));import{AIChatFeedItemView as _0x3df4e9}from'./aichatfeeditemview.js';import{parse as _0x16f8d6,render as _0x84143e}from'../../../aicore/utils/htmlparser.js';import{View as _0x3286dd}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x5825e2,AIWebSourceView as _0x55d192}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x4bee(){const _0x2522af=['map','streaming','364bPPVNO','render','addMany','5503824RFAHry','90291JUCvVu','964900omuziE','markAsDone','div','isVisible','streamIntoElement','replyContainer','5352715jFtlRQ','innerHTML','ck-ai-chat__feed__ai-reply-container','45bkxdBP','1103450jfGBAh','ck-ai-chat__feed__ai-reply','children','ck-reset_all-excluded','static','74701uLyRjX','locale','element','4VGGSKr','updateContent','options','setTemplate','add','2676QtRymO','initialContent','62wOeHpU','extendTemplate','updateSources','20934AYZSaX'];_0x4bee=function(){return _0x2522af;};return _0x4bee();}function _0xcfcf(_0x327234,_0x324888){const _0x4bee8a=_0x4bee();return _0xcfcf=function(_0xcfcfe5,_0x61a64a){_0xcfcfe5=_0xcfcfe5-0x142;let _0x434e18=_0x4bee8a[_0xcfcfe5];return _0x434e18;},_0xcfcf(_0x327234,_0x324888);}export class AIChatFeedReplyItemView extends _0x3df4e9{[_0x50d2ac(0x151)];constructor(_0x1efa41,_0x4971b5){const _0x276c11=_0x50d2ac;super(_0x4971b5),this[_0x276c11(0x15c)]=_0x1efa41,this[_0x276c11(0x142)]({'attributes':{'class':[_0x276c11(0x157)]}}),this[_0x276c11(0x151)]=new _0x3286dd(),this[_0x276c11(0x151)][_0x276c11(0x161)]({'tag':_0x276c11(0x14e),'attributes':{'class':['ck',_0x276c11(0x159),_0x276c11(0x154)]}}),this[_0x276c11(0x158)][_0x276c11(0x162)](this[_0x276c11(0x151)]);}async[_0x50d2ac(0x148)](){const _0x1e39ba=_0x50d2ac;super[_0x1e39ba(0x148)](),this[_0x1e39ba(0x160)][_0x1e39ba(0x164)]&&(await this[_0x1e39ba(0x15f)]({'parsedContent':_0x16f8d6(this[_0x1e39ba(0x160)][_0x1e39ba(0x164)]),'renderingStrategy':_0x1e39ba(0x15a)}),this[_0x1e39ba(0x14d)]());}async[_0x50d2ac(0x15f)]({parsedContent:_0x1f3f4e,renderingStrategy:_0x432869,abortSignal:_0x2020be}){const _0x3a9a6f=_0x50d2ac;_0x3a9a6f(0x146)===_0x432869?await this[_0x3a9a6f(0x150)](_0x1f3f4e,this[_0x3a9a6f(0x151)][_0x3a9a6f(0x15d)],_0x2020be):this[_0x3a9a6f(0x151)][_0x3a9a6f(0x15d)][_0x3a9a6f(0x153)]=_0x84143e(_0x1f3f4e);}[_0x50d2ac(0x143)](_0x31b383){const _0x8f7fde=_0x50d2ac,_0x3689e3=new _0x5825e2(this[_0x8f7fde(0x15c)]);_0x3689e3[_0x8f7fde(0x158)][_0x8f7fde(0x149)](_0x31b383[_0x8f7fde(0x145)](_0x1644bc=>new _0x55d192(this[_0x8f7fde(0x15c)],_0x1644bc))),_0x3689e3[_0x8f7fde(0x14f)]=!0x0,this[_0x8f7fde(0x158)][_0x8f7fde(0x162)](_0x3689e3);}}
|