@ckeditor/ckeditor5-ai 47.0.0-alpha.6 → 47.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +4 -0
- package/build/ai.js +1 -1
- package/dist/index-editor.css +54 -18
- package/dist/index.css +64 -19
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/lang/contexts.json +5 -0
- package/package.json +15 -15
- package/src/aiactions/aiactions.d.ts +0 -2
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.d.ts +3 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.d.ts +7 -2
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.d.ts +4 -0
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -0
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +8 -2
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aiconfig.d.ts +17 -0
- package/src/aicore/aiconnector.d.ts +13 -0
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.d.ts +41 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.d.ts +2 -2
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +16 -0
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.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/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/theme/aiballoon/aiballoon.css +17 -4
- package/theme/aichat/aichathistory.css +26 -9
- package/theme/aichat/aiminitoolbar.css +8 -0
- package/theme/aichat/aisuggestioncontainer.css +6 -0
- package/theme/aireviewmode/aireviewmode-check-run-result.css +3 -2
- package/theme/aitabs/aitabsview.css +6 -1
- package/theme/common/aibutton.css +0 -4
- package/theme/common/aiheader.css +1 -0
- package/src/aiquickactions/utils/common-translations.d.ts +0 -9
- package/src/aiquickactions/utils/common-translations.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x4e0eeb=_0x29b3;function _0x29b3(_0x38e069,_0x4f1bc6){const _0x55e1fa=_0x55e1();return _0x29b3=function(_0x29b34b,_0x3e1f60){_0x29b34b=_0x29b34b-0x17e;let _0x4b222b=_0x55e1fa[_0x29b34b];return _0x4b222b;},_0x29b3(_0x38e069,_0x4f1bc6);}(function(_0x53e284,_0x305538){const _0x180da2=_0x29b3,_0x13c6a3=_0x53e284();while(!![]){try{const _0x2e74a4=parseInt(_0x180da2(0x193))/0x1*(parseInt(_0x180da2(0x188))/0x2)+parseInt(_0x180da2(0x195))/0x3+-parseInt(_0x180da2(0x18b))/0x4+-parseInt(_0x180da2(0x181))/0x5*(-parseInt(_0x180da2(0x17f))/0x6)+parseInt(_0x180da2(0x18a))/0x7*(-parseInt(_0x180da2(0x18f))/0x8)+-parseInt(_0x180da2(0x189))/0x9+parseInt(_0x180da2(0x191))/0xa;if(_0x2e74a4===_0x305538)break;else _0x13c6a3['push'](_0x13c6a3['shift']());}catch(_0x28b3b5){_0x13c6a3['push'](_0x13c6a3['shift']());}}}(_0x55e1,0x206dc));function _0x55e1(){const _0x533fd3=['_createLoaderView','80103Dwvujw','ck-ai-chat-controls-loader-wrapper','ai-chat-controls-loader__cancel-button','_cancelButtonView','ck-ai-chat-controls-loader','_createCancelButtonView','setTemplate','13272WiYQFG','AI_CHAT_IS_WRITING','25BDuvkh','ck-reset_all','AI_CHAT_STOP_GENERATING','locale','div','set','abortPromptStream','1446YVQhpZ','1127421ATczaW','17647WQWkIn','553032vtGkCD','ck-ai-chat-controls-loader-icon-dot','execute','ck-ai-chat-controls-loader-icon','88BwUaeO','_loaderView','3002880rPZKKB','fire','119fkxPcm'];_0x55e1=function(){return _0x533fd3;};return _0x55e1();}import{ButtonView as _0x1fefbb,View as _0x19d01e}from'ckeditor5/src/ui.js';import{IconStop as _0x224940}from'ckeditor5/src/icons.js';import{getTranslation as _0x20db71}from'../../../aicore/utils/common-translations.js';export class AIChatControlsLoaderView extends _0x19d01e{[_0x4e0eeb(0x198)];[_0x4e0eeb(0x190)];constructor(_0x29b556){const _0x57e868=_0x4e0eeb;super(_0x29b556),this[_0x57e868(0x198)]=this[_0x57e868(0x19a)](),this[_0x57e868(0x190)]=this[_0x57e868(0x194)](),this[_0x57e868(0x17e)]({'tag':_0x57e868(0x185),'attributes':{'class':['ck',_0x57e868(0x196),_0x57e868(0x182)]},'children':[this[_0x57e868(0x190)],this[_0x57e868(0x198)]]});}[_0x4e0eeb(0x19a)](){const _0x17abf3=_0x4e0eeb,_0x50f4a0=new _0x1fefbb(this[_0x17abf3(0x184)]);return _0x50f4a0[_0x17abf3(0x186)]({'label':_0x20db71(this[_0x17abf3(0x184)],_0x17abf3(0x183)),'withText':!0x0,'class':_0x17abf3(0x197),'icon':_0x224940}),_0x50f4a0['on'](_0x17abf3(0x18d),()=>{const _0x5d9f4e=_0x17abf3;this[_0x5d9f4e(0x192)](_0x5d9f4e(0x187));}),_0x50f4a0;}[_0x4e0eeb(0x194)](){const _0x6fdba8=_0x4e0eeb,_0x3b48ff=new _0x19d01e(this[_0x6fdba8(0x184)]);return _0x3b48ff[_0x6fdba8(0x17e)]({'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x199)]},'children':[{'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x18e)]},'children':[{'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x18c)]}},{'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x18c)]}},{'tag':_0x6fdba8(0x185),'attributes':{'class':[_0x6fdba8(0x18c)]}}]},{'text':_0x20db71(this[_0x6fdba8(0x184)],_0x6fdba8(0x180))}]}),_0x3b48ff;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x40cc(_0x23742b,_0x2f2dca){const _0x509e9d=_0x509e();return _0x40cc=function(_0x40ccbd,_0x7a149f){_0x40ccbd=_0x40ccbd-0x177;let _0x469290=_0x509e9d[_0x40ccbd];return _0x469290;},_0x40cc(_0x23742b,_0x2f2dca);}const _0x1111c2=_0x40cc;(function(_0x4d82b1,_0x5a1683){const _0x3dd99f=_0x40cc,_0x3d84a9=_0x4d82b1();while(!![]){try{const _0x3d5d64=-parseInt(_0x3dd99f(0x198))/0x1+parseInt(_0x3dd99f(0x1d9))/0x2*(-parseInt(_0x3dd99f(0x1c6))/0x3)+-parseInt(_0x3dd99f(0x180))/0x4*(parseInt(_0x3dd99f(0x19a))/0x5)+parseInt(_0x3dd99f(0x193))/0x6*(parseInt(_0x3dd99f(0x1d5))/0x7)+-parseInt(_0x3dd99f(0x17e))/0x8+-parseInt(_0x3dd99f(0x1a0))/0x9*(parseInt(_0x3dd99f(0x1b2))/0xa)+parseInt(_0x3dd99f(0x19f))/0xb;if(_0x3d5d64===_0x5a1683)break;else _0x3d84a9['push'](_0x3d84a9['shift']());}catch(_0x522590){_0x3d84a9['push'](_0x3d84a9['shift']());}}}(_0x509e,0xe6a54));import{Collection as _0x883430}from'ckeditor5/src/utils.js';function _0x509e(){const _0x84fb97=['AI_CHAT_REASONING','Commands\x20are\x20not\x20implemented\x20yet.','AI_CHAT_CAPABILITIES_NO','_modelSelectionDropdownItems','selectModel','73257QjAZvt','activeModelId','extendTemplate','AI_CHAT_ENABLE_REASONING','setTemplate','_createWebSearchButton','button','AI_CHAT_SEARCH_WEB','_getCapabilityParts','_createModelSelectionDropdown','clear','agent','_createCommandsButton','log','content','210NjdPbu','startsWith','addMany','AI_CHAT_COMMANDS','36AtzeJH','execute','model','style','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','AI_CHAT_CAPABILITIES_YES','modelSelectorEnabled','bind','enabled','3829280SZjQTq','ck-ai-chat-controls__model-selection__item-description','451172NimigW','ck-ai-chat-controls-button','ck-ai-chat-controls__model-name','setModelList','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','toggleWebSearch','_webSearchButton','reasoningActive','_modelSelectionDropdown','ck-ai-chat-controls__model-selection','setModel','ck-ai-chat-controls__model-selection__item-name','label','withText','tooltip','_reasoningButton','disableModelSelector','isOn','webSearch','182616UWREXi','AI_CHAT_DISABLE_REASONING','ck-button__label','name','add','1617800rSjtRd','locale','35IwyuWf','setReasoning','_modelNameView','span','ck-ai-chat-controls-button--commands','53181447GkalUK','15480tULQFM','ck-ai-chat__prompt-capabilities','buttonView','AI_CHAT_ENABLE_WEB_SEARCH','ck-hidden','enableModelSelector','AI_CHAT_DISABLE_WEB_SEARCH','fire','capabilities','ck-ai-chat-controls__model-selection__item-capabilities','toggleReasoning','isVisible','description','length','isEnabled','setWebSearch','createCollection','source','8590XOtJUF','menuitemradio','bindTemplate','set','webSearchActive','_commandsButton','activeModelName','toLowerCase','_createReasoningButton','modelSelectorVisible','listenTo','reasoning','div','_createModelNameView','text'];_0x509e=function(){return _0x84fb97;};return _0x509e();}import{IconAI as _0x2d6ca0,IconBulb as _0x400141,IconWeb as _0x525144}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3b0384,ButtonLabelView as _0x3f9da0,ButtonView as _0x10504d,createDropdown as _0x4f3a0a,IconView as _0x451074,UIModel as _0x25f688,View as _0x30d71b}from'ckeditor5/src/ui.js';import{getTranslation as _0x4b6f02}from'../../../aicore/utils/common-translations.js';const Ho=_0x1111c2(0x1a1),Vo=_0x1111c2(0x181),Mo=_0x1111c2(0x19e),Lo=_0x1111c2(0x189),Do=_0x1111c2(0x18b),Wo=_0x1111c2(0x17f),yo=_0x1111c2(0x1a9),Go='n';export class AIChatPromptCapabilitiesView extends _0x30d71b{[_0x1111c2(0x186)];[_0x1111c2(0x18f)];[_0x1111c2(0x1b7)];[_0x1111c2(0x188)];[_0x1111c2(0x1c4)];[_0x1111c2(0x19c)];constructor(_0x5d5d48){const _0x5d989a=_0x1111c2;super(_0x5d5d48),this[_0x5d989a(0x1b5)](_0x5d989a(0x1b6),!0x1),this[_0x5d989a(0x1b5)](_0x5d989a(0x187),!0x1),this[_0x5d989a(0x1b5)](_0x5d989a(0x1bb),!0x0),this[_0x5d989a(0x1b5)](_0x5d989a(0x17b),!0x0),this[_0x5d989a(0x1b5)](_0x5d989a(0x1c7),''),this[_0x5d989a(0x1b5)](_0x5d989a(0x1b8),''),this[_0x5d989a(0x188)]=this[_0x5d989a(0x1cf)](),this[_0x5d989a(0x19c)]=this[_0x5d989a(0x1bf)](),this[_0x5d989a(0x186)]=this[_0x5d989a(0x1cb)](),this[_0x5d989a(0x18f)]=this[_0x5d989a(0x1ba)](),this[_0x5d989a(0x1b7)]=this[_0x5d989a(0x1d2)](),this[_0x5d989a(0x188)][_0x5d989a(0x1a2)][_0x5d989a(0x17c)](_0x5d989a(0x1ab))['to'](this,_0x5d989a(0x1bb),_0x1c5da8=>_0x1c5da8),this[_0x5d989a(0x188)][_0x5d989a(0x1a2)][_0x5d989a(0x17c)](_0x5d989a(0x18e))['to'](this,_0x5d989a(0x17b),_0x351bea=>_0x351bea?this[_0x5d989a(0x188)][_0x5d989a(0x1a2)][_0x5d989a(0x18c)]:_0x4b6f02(this[_0x5d989a(0x199)],_0x5d989a(0x179))),this[_0x5d989a(0x188)][_0x5d989a(0x17c)](_0x5d989a(0x1ae))['to'](this,_0x5d989a(0x17b),_0x5522e0=>_0x5522e0),this[_0x5d989a(0x186)][_0x5d989a(0x17c)](_0x5d989a(0x191))['to'](this,_0x5d989a(0x1b6),_0x2ba8e0=>_0x2ba8e0),this[_0x5d989a(0x186)][_0x5d989a(0x17c)](_0x5d989a(0x18d))['to'](this,_0x5d989a(0x1bb),_0x4a2bb5=>!_0x4a2bb5),this[_0x5d989a(0x186)][_0x5d989a(0x17c)](_0x5d989a(0x18e))['to'](this,_0x5d989a(0x1b6),_0x15ba49=>_0x4b6f02(this[_0x5d989a(0x199)],_0x15ba49?_0x5d989a(0x1a6):_0x5d989a(0x1a3))),this[_0x5d989a(0x18f)][_0x5d989a(0x17c)](_0x5d989a(0x191))['to'](this,_0x5d989a(0x187),_0x1ffe3c=>_0x1ffe3c),this[_0x5d989a(0x18f)][_0x5d989a(0x17c)](_0x5d989a(0x18d))['to'](this,_0x5d989a(0x1bb),_0x123216=>!_0x123216),this[_0x5d989a(0x18f)][_0x5d989a(0x17c)](_0x5d989a(0x18e))['to'](this,_0x5d989a(0x187),_0x47ed1d=>_0x4b6f02(this[_0x5d989a(0x199)],_0x47ed1d?_0x5d989a(0x194):_0x5d989a(0x1c9))),this[_0x5d989a(0x1ca)]({'tag':_0x5d989a(0x1be),'attributes':{'class':[Ho]},'children':[this[_0x5d989a(0x188)],this[_0x5d989a(0x19c)],this[_0x5d989a(0x186)],this[_0x5d989a(0x18f)],this[_0x5d989a(0x1b7)]]}),this[_0x5d989a(0x1c4)]=new _0x883430(),_0x3b0384(this[_0x5d989a(0x188)],this[_0x5d989a(0x1c4)]);}[_0x1111c2(0x183)](_0x4a489a,_0x46d82f){const _0x3b8109=_0x1111c2;if(this[_0x3b8109(0x1b5)](_0x3b8109(0x1bb),!(_0x46d82f&&_0x4a489a[_0x3b8109(0x1ad)]<=0x1)),this[_0x3b8109(0x1c4)][_0x3b8109(0x1d0)](),_0x4a489a?.[_0x3b8109(0x1ad)])for(const _0x579b99 of _0x4a489a){const _0x243872=new _0x25f688({'label':_0x579b99[_0x3b8109(0x196)],'withText':!0x0,'role':_0x3b8109(0x1b3),'id':_0x579b99['id'],'model':_0x579b99});_0x243872[_0x3b8109(0x17c)](_0x3b8109(0x191))['to'](this,_0x3b8109(0x1c7),_0x2b8b38=>_0x2b8b38===_0x579b99['id']),this[_0x3b8109(0x1c4)][_0x3b8109(0x197)]({'type':_0x3b8109(0x1cc),'model':_0x243872,'labelView':new Ms(this[_0x3b8109(0x199)],_0x579b99)});}}[_0x1111c2(0x1af)](_0x5daa4e){const _0x5e072b=_0x1111c2;this[_0x5e072b(0x1b5)](_0x5e072b(0x1b6),_0x5daa4e);}[_0x1111c2(0x19b)](_0x1d7cd3){const _0x1f771f=_0x1111c2;this[_0x1f771f(0x1b5)](_0x1f771f(0x187),_0x1d7cd3);}[_0x1111c2(0x18a)](_0x19b9b5){const _0x4377f3=_0x1111c2;if(!_0x19b9b5)return;this[_0x4377f3(0x1c7)]=_0x19b9b5['id'],this[_0x4377f3(0x1b8)]=_0x19b9b5[_0x4377f3(0x196)]||_0x19b9b5['id'],this[_0x4377f3(0x188)][_0x4377f3(0x1a2)][_0x4377f3(0x1b5)](_0x4377f3(0x18c),_0x19b9b5[_0x4377f3(0x196)]),this[_0x4377f3(0x188)][_0x4377f3(0x1a2)][_0x4377f3(0x1b5)](_0x4377f3(0x18e),_0x19b9b5[_0x4377f3(0x196)]);const _0x511f06=_0x19b9b5[_0x4377f3(0x1a8)][_0x4377f3(0x192)]?.[_0x4377f3(0x17d)]??!0x1;this[_0x4377f3(0x1b5)](_0x4377f3(0x1b6),!0x1),this[_0x4377f3(0x186)][_0x4377f3(0x1b5)](_0x4377f3(0x191),!0x1),this[_0x4377f3(0x186)][_0x4377f3(0x1b5)](_0x4377f3(0x1ae),_0x511f06),this[_0x4377f3(0x186)][_0x4377f3(0x1b5)](_0x4377f3(0x1ab),_0x511f06);const _0x52c885=_0x19b9b5[_0x4377f3(0x1a8)][_0x4377f3(0x1bd)]?.[_0x4377f3(0x17d)]??!0x1;this[_0x4377f3(0x1b5)](_0x4377f3(0x187),!0x1),this[_0x4377f3(0x18f)][_0x4377f3(0x1b5)](_0x4377f3(0x191),!0x1),this[_0x4377f3(0x18f)][_0x4377f3(0x1b5)](_0x4377f3(0x1ae),_0x52c885),this[_0x4377f3(0x18f)][_0x4377f3(0x1b5)](_0x4377f3(0x1ab),_0x52c885);}[_0x1111c2(0x1a5)](){const _0x5debdd=_0x1111c2;this[_0x5debdd(0x1b5)](_0x5debdd(0x17b),!0x0),this[_0x5debdd(0x1b5)](_0x5debdd(0x1bb),!0x0);}[_0x1111c2(0x190)](_0x4a3f09){const _0x46877a=_0x1111c2;this[_0x46877a(0x1b5)](_0x46877a(0x17b),!0x1),_0x4a3f09&&this[_0x46877a(0x1b5)](_0x46877a(0x1bb),!0x1);}[_0x1111c2(0x1cb)](){const _0x4aa650=_0x1111c2,_0x37607e=new _0x10504d();return _0x37607e[_0x4aa650(0x1b5)]({'label':_0x4b6f02(this[_0x4aa650(0x199)],_0x4aa650(0x1cd)),'icon':_0x525144,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x37607e['on'](_0x4aa650(0x1da),()=>{const _0x235146=_0x4aa650;this[_0x235146(0x1a7)](_0x235146(0x185));}),_0x37607e;}[_0x1111c2(0x1ba)](){const _0x40948a=_0x1111c2,_0x4225f1=new _0x10504d();return _0x4225f1[_0x40948a(0x1b5)]({'label':_0x4b6f02(this[_0x40948a(0x199)],_0x40948a(0x1c1)),'icon':_0x400141,'class':Vo,'isToggleable':!0x0,'tooltipPosition':Go}),_0x4225f1['on'](_0x40948a(0x1da),()=>{const _0x3e8302=_0x40948a;this[_0x3e8302(0x1a7)](_0x3e8302(0x1aa));}),_0x4225f1;}[_0x1111c2(0x1d2)](){const _0x87fbc4=_0x1111c2,_0x5536e4=new _0x10504d();return _0x5536e4[_0x87fbc4(0x1b5)]({'label':_0x4b6f02(this[_0x87fbc4(0x199)],_0x87fbc4(0x1d8)),'icon':_0x2d6ca0,'withText':!0x0,'class':Vo,'isToggleable':!0x0,'tooltip':_0x4b6f02(this[_0x87fbc4(0x199)],_0x87fbc4(0x1d8)),'tooltipPosition':Go}),_0x5536e4[_0x87fbc4(0x1c8)]({'attributes':{'class':[Mo]}}),_0x5536e4['on'](_0x87fbc4(0x1da),()=>{const _0x1aa3fc=_0x87fbc4;console[_0x1aa3fc(0x1d3)](_0x1aa3fc(0x1c2)),alert(_0x1aa3fc(0x1c2));}),_0x5536e4;}[_0x1111c2(0x1cf)](){const _0x2658b9=_0x1111c2,_0x3f8191=_0x4f3a0a(this[_0x2658b9(0x199)]);return _0x3f8191[_0x2658b9(0x1b5)]({'panelPosition':'ne','class':[Lo]}),_0x3f8191[_0x2658b9(0x1a2)][_0x2658b9(0x1b5)]({'label':_0x4b6f02(this[_0x2658b9(0x199)],_0x2658b9(0x184)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':Go}),this[_0x2658b9(0x1bc)](_0x3f8191,_0x2658b9(0x1da),_0x573d12=>{const _0x2d5c11=_0x2658b9;this[_0x2d5c11(0x1a7)](_0x2d5c11(0x1c5),_0x573d12[_0x2d5c11(0x1b1)][_0x2d5c11(0x177)]);}),_0x3f8191;}[_0x1111c2(0x1bf)](){const _0x5b5d3b=_0x1111c2,_0xebf275=new jo(this[_0x5b5d3b(0x199)]);return _0xebf275[_0x5b5d3b(0x17c)](_0x5b5d3b(0x1c0))['to'](this,_0x5b5d3b(0x1b8),_0xd823f2=>_0xd823f2??''),_0xebf275[_0x5b5d3b(0x17c)](_0x5b5d3b(0x1ab))['to'](this,_0x5b5d3b(0x1bb),this,_0x5b5d3b(0x1b8),(_0x5e42f1,_0x54b0ee)=>!_0x5e42f1&&!_0x54b0ee?.[_0x5b5d3b(0x1b9)]()[_0x5b5d3b(0x1d6)](_0x5b5d3b(0x1d1))),_0xebf275;}}class Ms extends _0x3f9da0{constructor(_0x51331d,_0x4a3aa5){const _0x4f209d=_0x1111c2;super();const _0x250e04=this[_0x4f209d(0x1b4)],_0x3c20d8=this[_0x4f209d(0x1b0)]();this[_0x4f209d(0x1ca)]({'tag':_0x4f209d(0x1be),'attributes':{'class':['ck',_0x4f209d(0x195)],'style':_0x250e04['to'](_0x4f209d(0x178)),'id':_0x250e04['to']('id')},'children':[{'tag':_0x4f209d(0x1be),'attributes':{'class':[Do]},'children':[{'text':_0x250e04['to'](_0x4f209d(0x1c0))}]},{'tag':_0x4f209d(0x1be),'attributes':{'class':[Wo]},'children':[{'tag':_0x4f209d(0x19d),'children':[{'text':_0x4a3aa5[_0x4f209d(0x1ac)]}]}]},{'tag':_0x4f209d(0x1be),'attributes':{'class':[yo]},'children':_0x3c20d8}]}),_0x3c20d8[_0x4f209d(0x1d7)](this[_0x4f209d(0x1ce)](_0x51331d,_0x525144,_0x4f209d(0x1cd),_0x4a3aa5[_0x4f209d(0x1a8)][_0x4f209d(0x192)]?.[_0x4f209d(0x17d)]??!0x1)),_0x3c20d8[_0x4f209d(0x1d7)](this[_0x4f209d(0x1ce)](_0x51331d,_0x400141,_0x4f209d(0x1c1),_0x4a3aa5[_0x4f209d(0x1a8)][_0x4f209d(0x1bd)]?.[_0x4f209d(0x17d)]??!0x1));}[_0x1111c2(0x1ce)](_0x4daf03,_0x1a29b1,_0x125081,_0x1a1d77){const _0x565e6d=_0x1111c2,_0x21a5a8=new _0x451074();_0x21a5a8[_0x565e6d(0x1d4)]=_0x1a29b1;const _0x81476d=new _0x30d71b(_0x4daf03);_0x81476d[_0x565e6d(0x1ca)]({'tag':_0x565e6d(0x19d),'children':[{'text':_0x4b6f02(_0x4daf03,_0x125081)+':\x20'}]});const _0x4daed9=new _0x30d71b(_0x4daf03);return _0x4daed9[_0x565e6d(0x1ca)]({'tag':_0x565e6d(0x19d),'children':[{'text':_0x4b6f02(_0x4daf03,_0x1a1d77?_0x565e6d(0x17a):_0x565e6d(0x1c3))}]}),[_0x21a5a8,_0x81476d,_0x4daed9];}}class jo extends _0x30d71b{constructor(_0x30ab7e){const _0x2fed04=_0x1111c2;super(_0x30ab7e),this[_0x2fed04(0x1b5)](_0x2fed04(0x1c0),void 0x0),this[_0x2fed04(0x1b5)](_0x2fed04(0x1ab),!0x0);const _0x133b4c=this[_0x2fed04(0x1b4)];this[_0x2fed04(0x1ca)]({'tag':_0x2fed04(0x19d),'attributes':{'class':['ck',_0x2fed04(0x182),_0x133b4c['if'](_0x2fed04(0x1ab),_0x2fed04(0x1a4),_0x214214=>!_0x214214)]},'children':[{'text':_0x133b4c['to'](_0x2fed04(0x1c0))}]});}}
|
|
23
|
+
const _0x1fe7e6=_0x1b02;(function(_0x25fa7d,_0x297d6c){const _0x1df810=_0x1b02,_0x19eff4=_0x25fa7d();while(!![]){try{const _0xc9c0aa=-parseInt(_0x1df810(0x82))/0x1*(parseInt(_0x1df810(0xb8))/0x2)+parseInt(_0x1df810(0x7d))/0x3+-parseInt(_0x1df810(0x83))/0x4*(-parseInt(_0x1df810(0xd0))/0x5)+parseInt(_0x1df810(0x81))/0x6+-parseInt(_0x1df810(0x9a))/0x7+-parseInt(_0x1df810(0xbc))/0x8+parseInt(_0x1df810(0xd7))/0x9*(parseInt(_0x1df810(0xa3))/0xa);if(_0xc9c0aa===_0x297d6c)break;else _0x19eff4['push'](_0x19eff4['shift']());}catch(_0x34063c){_0x19eff4['push'](_0x19eff4['shift']());}}}(_0xa7b1,0x34521));import{Collection as _0x39200a}from'ckeditor5/src/utils.js';function _0x1b02(_0x55d376,_0x3eb874){const _0xa7b1e9=_0xa7b1();return _0x1b02=function(_0x1b02b6,_0x176528){_0x1b02b6=_0x1b02b6-0x7d;let _0xc8095=_0xa7b1e9[_0x1b02b6];return _0xc8095;},_0x1b02(_0x55d376,_0x3eb874);}import{IconAI as _0x414731,IconBulb as _0x377355,IconWeb as _0x10403c}from'@ckeditor/ckeditor5-icons';import{addListToDropdown as _0x3828b8,ButtonLabelView as _0x2346e7,ButtonView as _0x545412,createDropdown as _0x49dc79,IconView as _0x2c5a69,UIModel as _0x5dbdd5,View as _0xc952b3}from'ckeditor5/src/ui.js';import{getTranslation as _0x43bdd8}from'../../../aicore/utils/common-translations.js';const Oo=_0x1fe7e6(0xcb),uo=_0x1fe7e6(0xa4),No=_0x1fe7e6(0xc4),Ho=_0x1fe7e6(0x7f),Mo=_0x1fe7e6(0xd2),Do=_0x1fe7e6(0x95),Wo=_0x1fe7e6(0xc0),yo='n';export class AIChatPromptCapabilitiesView extends _0xc952b3{[_0x1fe7e6(0xae)];[_0x1fe7e6(0x9b)];[_0x1fe7e6(0xc6)];[_0x1fe7e6(0x90)];[_0x1fe7e6(0xa8)];[_0x1fe7e6(0xb9)];constructor(_0x394ed3){const _0x8e9002=_0x1fe7e6;super(_0x394ed3),this[_0x8e9002(0x9d)](_0x8e9002(0xb0),!0x1),this[_0x8e9002(0x9d)](_0x8e9002(0x93),!0x1),this[_0x8e9002(0x9d)](_0x8e9002(0xcc),!0x0),this[_0x8e9002(0x9d)](_0x8e9002(0xa2),!0x0),this[_0x8e9002(0x9d)](_0x8e9002(0xb5),''),this[_0x8e9002(0x9d)](_0x8e9002(0x9c),''),this[_0x8e9002(0x90)]=this[_0x8e9002(0xc8)](),this[_0x8e9002(0xb9)]=this[_0x8e9002(0x89)](),this[_0x8e9002(0xae)]=this[_0x8e9002(0xac)](),this[_0x8e9002(0x9b)]=this[_0x8e9002(0xdb)](),this[_0x8e9002(0xc6)]=this[_0x8e9002(0x9f)](),this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0xb6)](_0x8e9002(0xb4))['to'](this,_0x8e9002(0xcc),_0x47724e=>_0x47724e),this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0xa2),_0x156e45=>_0x156e45?this[_0x8e9002(0x90)][_0x8e9002(0xdf)][_0x8e9002(0x97)]:_0x43bdd8(this[_0x8e9002(0xaa)],_0x8e9002(0x87))),this[_0x8e9002(0x90)][_0x8e9002(0xb6)](_0x8e9002(0xc1))['to'](this,_0x8e9002(0xa2),_0x50d562=>_0x50d562),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xa7))['to'](this,_0x8e9002(0xb0),_0x3efccf=>_0x3efccf),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xc7))['to'](this,_0x8e9002(0xcc),_0x6e91d8=>!_0x6e91d8),this[_0x8e9002(0xae)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0xb0),_0x3a31d4=>_0x43bdd8(this[_0x8e9002(0xaa)],_0x3a31d4?_0x8e9002(0x8e):_0x8e9002(0xc5))),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xa7))['to'](this,_0x8e9002(0x93),_0x563e5f=>_0x563e5f),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xc7))['to'](this,_0x8e9002(0xcc),_0x487512=>!_0x487512),this[_0x8e9002(0x9b)][_0x8e9002(0xb6)](_0x8e9002(0xc3))['to'](this,_0x8e9002(0x93),_0x40948f=>_0x43bdd8(this[_0x8e9002(0xaa)],_0x40948f?_0x8e9002(0xab):_0x8e9002(0x84))),this[_0x8e9002(0xde)]({'tag':_0x8e9002(0x86),'attributes':{'class':[Oo]},'children':[this[_0x8e9002(0x90)],this[_0x8e9002(0xb9)],this[_0x8e9002(0xae)],this[_0x8e9002(0x9b)],this[_0x8e9002(0xc6)]]}),this[_0x8e9002(0xa8)]=new _0x39200a(),_0x3828b8(this[_0x8e9002(0x90)],this[_0x8e9002(0xa8)]);}[_0x1fe7e6(0x85)](_0x204187,_0x21cb47){const _0x402820=_0x1fe7e6;if(this[_0x402820(0x9d)](_0x402820(0xcc),!(_0x21cb47&&_0x204187[_0x402820(0x94)]<=0x1)),this[_0x402820(0xa8)][_0x402820(0xb3)](),_0x204187?.[_0x402820(0x94)])for(const _0x3cee85 of _0x204187){const _0x496a51=new _0x5dbdd5({'label':_0x3cee85[_0x402820(0x8b)],'withText':!0x0,'role':_0x402820(0xc2),'id':_0x3cee85['id'],'model':_0x3cee85});_0x496a51[_0x402820(0xb6)](_0x402820(0xa7))['to'](this,_0x402820(0xb5),_0x594423=>_0x594423===_0x3cee85['id']),this[_0x402820(0xa8)][_0x402820(0xd9)]({'type':_0x402820(0xda),'model':_0x496a51,'labelView':new Bs(this[_0x402820(0xaa)],_0x3cee85)});}}[_0x1fe7e6(0xa1)](_0xdb2ff1){const _0x2c2870=_0x1fe7e6;this[_0x2c2870(0x9d)](_0x2c2870(0xb0),_0xdb2ff1);}[_0x1fe7e6(0xcf)](_0x3d821b){const _0x1e2140=_0x1fe7e6;this[_0x1e2140(0x9d)](_0x1e2140(0x93),_0x3d821b);}[_0x1fe7e6(0x9e)](_0x36b4bf){const _0x30e938=_0x1fe7e6;if(!_0x36b4bf)return;this[_0x30e938(0xb5)]=_0x36b4bf['id'],this[_0x30e938(0x9c)]=_0x36b4bf[_0x30e938(0x8b)]||_0x36b4bf['id'],this[_0x30e938(0x90)][_0x30e938(0xdf)][_0x30e938(0x9d)](_0x30e938(0x97),_0x36b4bf[_0x30e938(0x8b)]),this[_0x30e938(0x90)][_0x30e938(0xdf)][_0x30e938(0x9d)](_0x30e938(0xc3),_0x36b4bf[_0x30e938(0x8b)]);const _0x41b165=_0x36b4bf[_0x30e938(0xad)][_0x30e938(0xd5)]?.[_0x30e938(0x91)]??!0x1;this[_0x30e938(0x9d)](_0x30e938(0xb0),!0x1),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xa7),!0x1),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xc1),_0x41b165),this[_0x30e938(0xae)][_0x30e938(0x9d)](_0x30e938(0xb4),_0x41b165);const _0x276daf=_0x36b4bf[_0x30e938(0xad)][_0x30e938(0x8a)]?.[_0x30e938(0x91)]??!0x1;this[_0x30e938(0x9d)](_0x30e938(0x93),!0x1),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xa7),!0x1),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xc1),_0x276daf),this[_0x30e938(0x9b)][_0x30e938(0x9d)](_0x30e938(0xb4),_0x276daf);}[_0x1fe7e6(0xd1)](){const _0x5d3b6d=_0x1fe7e6;this[_0x5d3b6d(0x9d)](_0x5d3b6d(0xa2),!0x0),this[_0x5d3b6d(0x9d)](_0x5d3b6d(0xcc),!0x0);}[_0x1fe7e6(0xdd)](_0x58f6ae){const _0x534eaf=_0x1fe7e6;this[_0x534eaf(0x9d)](_0x534eaf(0xa2),!0x1),_0x58f6ae&&this[_0x534eaf(0x9d)](_0x534eaf(0xcc),!0x1);}[_0x1fe7e6(0xac)](){const _0x45ba1e=_0x1fe7e6,_0x70f5d7=new _0x545412();return _0x70f5d7[_0x45ba1e(0x9d)]({'label':_0x43bdd8(this[_0x45ba1e(0xaa)],_0x45ba1e(0x8c)),'icon':_0x10403c,'class':uo,'isToggleable':!0x0,'tooltipPosition':yo}),_0x70f5d7['on'](_0x45ba1e(0xd6),()=>{const _0x26bfb3=_0x45ba1e;this[_0x26bfb3(0xce)](_0x26bfb3(0x8f));}),_0x70f5d7;}[_0x1fe7e6(0xdb)](){const _0x2f3168=_0x1fe7e6,_0x49a830=new _0x545412();return _0x49a830[_0x2f3168(0x9d)]({'label':_0x43bdd8(this[_0x2f3168(0xaa)],_0x2f3168(0xb2)),'icon':_0x377355,'class':uo,'isToggleable':!0x0,'tooltipPosition':yo}),_0x49a830['on'](_0x2f3168(0xd6),()=>{const _0x5882b4=_0x2f3168;this[_0x5882b4(0xce)](_0x5882b4(0xd4));}),_0x49a830;}[_0x1fe7e6(0x9f)](){const _0x1ebb17=_0x1fe7e6,_0x5f48cb=new _0x545412();return _0x5f48cb[_0x1ebb17(0x9d)]({'label':_0x43bdd8(this[_0x1ebb17(0xaa)],_0x1ebb17(0x99)),'icon':_0x414731,'withText':!0x0,'class':uo,'isToggleable':!0x0,'tooltip':_0x43bdd8(this[_0x1ebb17(0xaa)],_0x1ebb17(0x99)),'tooltipPosition':yo}),_0x5f48cb[_0x1ebb17(0xdc)]({'attributes':{'class':[No]}}),_0x5f48cb['on'](_0x1ebb17(0xd6),()=>{const _0x3c6650=_0x1ebb17;console[_0x3c6650(0xbf)](_0x3c6650(0xa0)),alert(_0x3c6650(0xa0));}),_0x5f48cb;}[_0x1fe7e6(0xc8)](){const _0x3d6dba=_0x1fe7e6,_0xf81452=_0x49dc79(this[_0x3d6dba(0xaa)]);return _0xf81452[_0x3d6dba(0x9d)]({'panelPosition':'ne','class':[Ho]}),_0xf81452[_0x3d6dba(0xdf)][_0x3d6dba(0x9d)]({'label':_0x43bdd8(this[_0x3d6dba(0xaa)],_0x3d6dba(0xc9)),'withText':!0x0,'tooltip':!0x0,'tooltipPosition':yo}),this[_0x3d6dba(0xbe)](_0xf81452,_0x3d6dba(0xd6),_0x5bd199=>{const _0x462369=_0x3d6dba;this[_0x462369(0xce)](_0x462369(0xbb),_0x5bd199[_0x462369(0xaf)][_0x462369(0xb1)]);}),_0xf81452;}[_0x1fe7e6(0x89)](){const _0x2ecb87=_0x1fe7e6,_0x10be36=new Go(this[_0x2ecb87(0xaa)]);return _0x10be36[_0x2ecb87(0xb6)](_0x2ecb87(0xbd))['to'](this,_0x2ecb87(0x9c),_0x4fb0d0=>_0x4fb0d0??''),_0x10be36[_0x2ecb87(0xb6)](_0x2ecb87(0xb4))['to'](this,_0x2ecb87(0xcc),this,_0x2ecb87(0x9c),(_0x1a2d53,_0x22727b)=>!_0x1a2d53&&!_0x22727b?.[_0x2ecb87(0x7e)]()[_0x2ecb87(0xcd)](_0x2ecb87(0x98))),_0x10be36;}}class Bs extends _0x2346e7{constructor(_0x301d97,_0x450aec){const _0x378839=_0x1fe7e6;super();const _0x54ffbc=this[_0x378839(0xca)],_0x15f396=this[_0x378839(0xd8)]();this[_0x378839(0xde)]({'tag':_0x378839(0x86),'attributes':{'class':['ck',_0x378839(0x80)],'style':_0x54ffbc['to'](_0x378839(0xba)),'id':_0x54ffbc['to']('id')},'children':[{'tag':_0x378839(0x86),'attributes':{'class':[Mo]},'children':[{'text':_0x54ffbc['to'](_0x378839(0xbd))}]},{'tag':_0x378839(0x86),'attributes':{'class':[Do]},'children':[{'tag':_0x378839(0x96),'children':[{'text':_0x450aec[_0x378839(0xa9)]}]}]},{'tag':_0x378839(0x86),'attributes':{'class':[Wo]},'children':_0x15f396}]}),_0x15f396[_0x378839(0xa5)](this[_0x378839(0x8d)](_0x301d97,_0x10403c,_0x378839(0x8c),_0x450aec[_0x378839(0xad)][_0x378839(0xd5)]?.[_0x378839(0x91)]??!0x1)),_0x15f396[_0x378839(0xa5)](this[_0x378839(0x8d)](_0x301d97,_0x377355,_0x378839(0xb2),_0x450aec[_0x378839(0xad)][_0x378839(0x8a)]?.[_0x378839(0x91)]??!0x1));}[_0x1fe7e6(0x8d)](_0x5aa2bb,_0x2c87b8,_0x490d09,_0x372f12){const _0x26607f=_0x1fe7e6,_0x427bd8=new _0x2c5a69();_0x427bd8[_0x26607f(0x88)]=_0x2c87b8;const _0x179372=new _0xc952b3(_0x5aa2bb);_0x179372[_0x26607f(0xde)]({'tag':_0x26607f(0x96),'children':[{'text':_0x43bdd8(_0x5aa2bb,_0x490d09)+':\x20'}]});const _0x56f622=new _0xc952b3(_0x5aa2bb);return _0x56f622[_0x26607f(0xde)]({'tag':_0x26607f(0x96),'children':[{'text':_0x43bdd8(_0x5aa2bb,_0x372f12?_0x26607f(0xb7):_0x26607f(0xa6))}]}),[_0x427bd8,_0x179372,_0x56f622];}}class Go extends _0xc952b3{constructor(_0x14454d){const _0x13d847=_0x1fe7e6;super(_0x14454d),this[_0x13d847(0x9d)](_0x13d847(0xbd),void 0x0),this[_0x13d847(0x9d)](_0x13d847(0xb4),!0x0);const _0xb70222=this[_0x13d847(0xca)];this[_0x13d847(0xde)]({'tag':_0x13d847(0x96),'attributes':{'class':['ck',_0x13d847(0xd3),_0xb70222['if'](_0x13d847(0xb4),_0x13d847(0x92),_0x1b27f8=>!_0x1b27f8)]},'children':[{'text':_0xb70222['to'](_0x13d847(0xbd))}]});}}function _0xa7b1(){const _0x42b66c=['18BXdGQT','createCollection','add','button','_createReasoningButton','extendTemplate','disableModelSelector','setTemplate','buttonView','661938ccdBhj','toLowerCase','ck-ai-chat-controls__model-selection','ck-button__label','703626OQXvkt','69NqyAvJ','4wwiDWN','AI_CHAT_ENABLE_REASONING','setModelList','div','AI_CHAT_MODEL_SELECTOR_DISABLED_TOOLTIP','content','_createModelNameView','reasoning','name','AI_CHAT_SEARCH_WEB','_getCapabilityParts','AI_CHAT_DISABLE_WEB_SEARCH','toggleWebSearch','_modelSelectionDropdown','enabled','ck-hidden','reasoningActive','length','ck-ai-chat-controls__model-selection__item-description','span','label','agent','AI_CHAT_COMMANDS','2466366bintkN','_reasoningButton','activeModelName','set','setModel','_createCommandsButton','Commands\x20are\x20not\x20implemented\x20yet.','setWebSearch','modelSelectorEnabled','3455770OVVyPj','ck-ai-chat-controls-button','addMany','AI_CHAT_CAPABILITIES_NO','isOn','_modelSelectionDropdownItems','description','locale','AI_CHAT_DISABLE_REASONING','_createWebSearchButton','capabilities','_webSearchButton','source','webSearchActive','model','AI_CHAT_REASONING','clear','isVisible','activeModelId','bind','AI_CHAT_CAPABILITIES_YES','12386EyNRIf','_modelNameView','style','selectModel','2496064SmlgXQ','text','listenTo','log','ck-ai-chat-controls__model-selection__item-capabilities','isEnabled','menuitemradio','tooltip','ck-ai-chat-controls-button--commands','AI_CHAT_ENABLE_WEB_SEARCH','_commandsButton','withText','_createModelSelectionDropdown','AI_CHAT_MODEL_SELECTOR_ENABLED_TOOLTIP','bindTemplate','ck-ai-chat__prompt-capabilities','modelSelectorVisible','startsWith','fire','setReasoning','1384485uAlmdy','enableModelSelector','ck-ai-chat-controls__model-selection__item-name','ck-ai-chat-controls__model-name','toggleReasoning','webSearch','execute'];_0xa7b1=function(){return _0x42b66c;};return _0xa7b1();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4083e0=_0x5fa0;function _0x5fa0(_0x9226de,_0x26ef9a){const _0x47f695=_0x47f6();return _0x5fa0=function(_0x5fa099,_0x430a76){_0x5fa099=_0x5fa099-0x150;let _0x85615f=_0x47f695[_0x5fa099];return _0x85615f;},_0x5fa0(_0x9226de,_0x26ef9a);}(function(_0x2c3968,_0x139307){const _0x471bbc=_0x5fa0,_0x9b8c36=_0x2c3968();while(!![]){try{const _0x522ff7=-parseInt(_0x471bbc(0x177))/0x1*(parseInt(_0x471bbc(0x181))/0x2)+-parseInt(_0x471bbc(0x17c))/0x3+parseInt(_0x471bbc(0x173))/0x4*(parseInt(_0x471bbc(0x18b))/0x5)+parseInt(_0x471bbc(0x18e))/0x6+parseInt(_0x471bbc(0x15a))/0x7+parseInt(_0x471bbc(0x157))/0x8+-parseInt(_0x471bbc(0x152))/0x9;if(_0x522ff7===_0x139307)break;else _0x9b8c36['push'](_0x9b8c36['shift']());}catch(_0x4d6f49){_0x9b8c36['push'](_0x9b8c36['shift']());}}}(_0x47f6,0x36b07));import{IconSubmit as _0x5e74ea}from'ckeditor5/src/icons.js';import{ButtonView as _0x3bb085,AutocompleteView as _0x551b17,createLabeledTextarea as _0x125650}from'ckeditor5/src/ui.js';import{global as _0x901d75,isVisible as _0xf95658,Rect as _0x4151a9,ResizeObserver as _0x46f2d8}from'ckeditor5/src/utils.js';function _0x47f6(){const _0x38ee09=['window','errorText','168952wALQtd','sendUserMessage','target','style','right','extendTemplate','_queryViewResizeObserver','maxRows','MAX_ROWS','submit','trim','value','_addContextButtonView','placeholder','requestAnimationFrame','add','fieldView','minRows','excludeScrollbarsAndBorders','width','fire','isUploadInProgress','calc(','AI_CHAT_LABEL_SUBMIT','locale','1228XjGxYJ','update','AI_CHAT_PROMPT_EMPTY_ERROR','px\x20-\x20var(--ck-spacing-tiny))','742srpEVM','isEmpty','setPlaceholderText','_setUpAddContextButtonPositioning','rtl','563802toksjc','MIN_ROWS','submitButtonView','set','isEnabled','1198WhpEAD','execute','ck-ai-chat__prompt-input','setIsUploadInProgress','enter','ck-ai-chat__prompt-submit-button','_createSubmitButton','focusableChildren','keystrokes','reset','2525DSBItU','fieldWrapperChildren','bind','2460360zBspzr','uiLanguageDirection','render','element','888993qfhcio','queryView','hasError','destroy','left','2927560BGFZEN'];_0x47f6=function(){return _0x38ee09;};return _0x47f6();}import{getTranslation as _0x6b5ec}from'../../../aicore/utils/common-translations.js';import{AIChatPromptSuggestionsListView as _0x47807a}from'./aichatpromptsuggestionslistview.js';import{escape as _0x234065}from'es-toolkit/compat';export class AIChatPromptInputView extends _0x551b17{[_0x4083e0(0x17e)];static [_0x4083e0(0x17d)]=0x1;static [_0x4083e0(0x162)]=0xc;[_0x4083e0(0x166)];[_0x4083e0(0x160)];constructor(_0x52b9b5,_0x4af6f4){const _0x46f6c1=_0x4083e0;super(_0x52b9b5,{'queryView':{'label':'','creator':_0x125650,'showIcon':!0x1,'showResetButton':!0x1},'filteredView':new _0x47807a(_0x52b9b5),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1}),this[_0x46f6c1(0x17f)](_0x46f6c1(0x178),!0x0),this[_0x46f6c1(0x17f)](_0x46f6c1(0x16f),!0x1),this[_0x46f6c1(0x166)]=_0x4af6f4,this[_0x46f6c1(0x160)]=null,this[_0x46f6c1(0x153)][_0x46f6c1(0x16a)][_0x46f6c1(0x16b)]=AIChatPromptInputView[_0x46f6c1(0x17d)],this[_0x46f6c1(0x153)][_0x46f6c1(0x16a)][_0x46f6c1(0x161)]=AIChatPromptInputView[_0x46f6c1(0x162)],this[_0x46f6c1(0x153)][_0x46f6c1(0x18c)][_0x46f6c1(0x169)](this[_0x46f6c1(0x166)]),this[_0x46f6c1(0x17a)](),this[_0x46f6c1(0x15f)]({'attributes':{'class':['ck',_0x46f6c1(0x183)]}}),this[_0x46f6c1(0x17e)]=this[_0x46f6c1(0x187)](),this[_0x46f6c1(0x17e)][_0x46f6c1(0x18d)](_0x46f6c1(0x180))['to'](this,_0x46f6c1(0x178),this,_0x46f6c1(0x16f),(_0x3b0a85,_0x28638d)=>!_0x3b0a85&&!_0x28638d),this[_0x46f6c1(0x188)][_0x46f6c1(0x169)](this[_0x46f6c1(0x17e)]);}[_0x4083e0(0x150)](){const _0x3f6d2b=_0x4083e0;super[_0x3f6d2b(0x150)](),this[_0x3f6d2b(0x153)][_0x3f6d2b(0x18c)][_0x3f6d2b(0x169)](this[_0x3f6d2b(0x17e)]),this[_0x3f6d2b(0x189)][_0x3f6d2b(0x17f)](_0x3f6d2b(0x185),(_0x1e9f16,_0x12a7f0)=>{const _0x51cb67=_0x3f6d2b;this[_0x51cb67(0x16f)]||this[_0x51cb67(0x178)]||_0x1e9f16[_0x51cb67(0x15c)]==this[_0x51cb67(0x153)][_0x51cb67(0x16a)][_0x51cb67(0x151)]&&(this[_0x51cb67(0x163)](),_0x12a7f0());}),this[_0x3f6d2b(0x153)][_0x3f6d2b(0x16a)]['on'](_0x3f6d2b(0x174),()=>{const _0xa2b6b6=_0x3f6d2b;this[_0xa2b6b6(0x178)]=''===this[_0xa2b6b6(0x153)][_0xa2b6b6(0x16a)][_0xa2b6b6(0x151)][_0xa2b6b6(0x165)]?.[_0xa2b6b6(0x164)]();});}[_0x4083e0(0x155)](){const _0x2d479c=_0x4083e0;super[_0x2d479c(0x155)](),this[_0x2d479c(0x160)]&&this[_0x2d479c(0x160)][_0x2d479c(0x155)]();}[_0x4083e0(0x163)](){const _0x3f9bdb=_0x4083e0,_0x54a158=this[_0x3f9bdb(0x153)][_0x3f9bdb(0x16a)][_0x3f9bdb(0x151)][_0x3f9bdb(0x165)]?.[_0x3f9bdb(0x164)]();if(!_0x54a158)return this[_0x3f9bdb(0x153)][_0x3f9bdb(0x159)]=_0x6b5ec(this[_0x3f9bdb(0x172)],_0x3f9bdb(0x175)),void(this[_0x3f9bdb(0x153)][_0x3f9bdb(0x16a)][_0x3f9bdb(0x154)]=!0x0);this[_0x3f9bdb(0x153)][_0x3f9bdb(0x16a)][_0x3f9bdb(0x154)]=!0x1;const _0x5ee495=_0x234065(_0x54a158);this[_0x3f9bdb(0x16e)](_0x3f9bdb(0x15b),_0x5ee495),this[_0x3f9bdb(0x153)][_0x3f9bdb(0x16a)][_0x3f9bdb(0x18a)]();}[_0x4083e0(0x179)](_0x15ecba){const _0x4dea3d=_0x4083e0;this[_0x4dea3d(0x153)][_0x4dea3d(0x16a)][_0x4dea3d(0x17f)](_0x4dea3d(0x167),_0x15ecba);}[_0x4083e0(0x187)](){const _0x47ea6d=_0x4083e0,_0x1faec0=new _0x3bb085(this[_0x47ea6d(0x172)]);return _0x1faec0[_0x47ea6d(0x17f)]({'icon':_0x5e74ea,'label':_0x6b5ec(this[_0x47ea6d(0x172)],_0x47ea6d(0x171)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x47ea6d(0x186),'isEnabled':!0x1}),_0x1faec0['on'](_0x47ea6d(0x182),()=>{const _0x56a866=_0x47ea6d;this[_0x56a866(0x163)]();}),_0x1faec0;}[_0x4083e0(0x184)](_0x34a04f){const _0x9e66b5=_0x4083e0;this[_0x9e66b5(0x16f)]=_0x34a04f;}[_0x4083e0(0x17a)](){const _0x4b1022=_0x4083e0,_0x16c978=this[_0x4b1022(0x172)],_0x686c89=()=>{const _0x505f88=_0x4b1022;_0x901d75[_0x505f88(0x158)][_0x505f88(0x168)](()=>{const _0x20cca9=_0x505f88;if(_0xf95658(this[_0x20cca9(0x151)])){const _0x40e315=new _0x4151a9(this[_0x20cca9(0x153)][_0x20cca9(0x16a)][_0x20cca9(0x151)]),_0x58d303=new _0x4151a9(this[_0x20cca9(0x166)][_0x20cca9(0x151)]),_0x117522=_0x40e315[_0x20cca9(0x16d)],_0x6ae75=_0x20cca9(0x17b)===_0x16c978[_0x20cca9(0x18f)]?_0x20cca9(0x15e):_0x20cca9(0x156);_0x40e315[_0x20cca9(0x16c)]();const _0x1cac70=_0x117522-_0x40e315[_0x20cca9(0x16d)]+0x1;this[_0x20cca9(0x166)][_0x20cca9(0x151)][_0x20cca9(0x15d)][_0x6ae75]=_0x20cca9(0x170)+(_0x117522-_0x58d303[_0x20cca9(0x16d)]-_0x1cac70)+_0x20cca9(0x176);}});};this[_0x4b1022(0x153)][_0x4b1022(0x16a)]['on'](_0x4b1022(0x174),_0x686c89),this['on'](_0x4b1022(0x150),()=>{const _0x14efcc=_0x4b1022;_0x686c89(),this[_0x14efcc(0x160)]=new _0x46f2d8(this[_0x14efcc(0x153)][_0x14efcc(0x16a)][_0x14efcc(0x151)],()=>{_0x686c89();});});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5503(_0x204a1d,_0x7be905){const _0x596677=_0x5966();return _0x5503=function(_0x550307,_0x14536a){_0x550307=_0x550307-0x108;let _0x1b91e8=_0x596677[_0x550307];return _0x1b91e8;},_0x5503(_0x204a1d,_0x7be905);}const _0x137d5b=_0x5503;(function(_0x1f4390,_0x584219){const _0x2b2754=_0x5503,_0x108077=_0x1f4390();while(!![]){try{const _0x1a2c71=parseInt(_0x2b2754(0x10f))/0x1+-parseInt(_0x2b2754(0x109))/0x2*(parseInt(_0x2b2754(0x108))/0x3)+-parseInt(_0x2b2754(0x10b))/0x4+-parseInt(_0x2b2754(0x111))/0x5*(-parseInt(_0x2b2754(0x10c))/0x6)+parseInt(_0x2b2754(0x110))/0x7+-parseInt(_0x2b2754(0x112))/0x8*(-parseInt(_0x2b2754(0x10e))/0x9)+-parseInt(_0x2b2754(0x10a))/0xa;if(_0x1a2c71===_0x584219)break;else _0x108077['push'](_0x108077['shift']());}catch(_0x3b670e){_0x108077['push'](_0x108077['shift']());}}}(_0x5966,0x46b82));function _0x5966(){const _0x1897b8=['items','length','15pFxbEZ','63382XCsUDK','324990PWfYsV','1451920hXexfC','147474cZvChv','filter','194751dJuvPB','271662LDgfwB','1566831AuTRzy','40QKbMyl','56MGHEqb'];_0x5966=function(){return _0x1897b8;};return _0x5966();}import{ListView as _0x4be276}from'ckeditor5/src/ui.js';export class AIChatPromptSuggestionsListView extends _0x4be276{[_0x137d5b(0x10d)](){const _0x5d87ea=_0x137d5b;let _0x3d5100=0x0;for(const _0x2b7f78 of this[_0x5d87ea(0x113)])_0x3d5100+=_0x2b7f78[_0x5d87ea(0x113)][_0x5d87ea(0x114)];return{'resultsCount':_0x3d5100,'totalItemsCount':_0x3d5100};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ba090=_0x1555;(function(_0x6bd045,_0xd695c8){const _0x5435d0=_0x1555,_0x26fed0=_0x6bd045();while(!![]){try{const _0x3e8b68=-parseInt(_0x5435d0(0x1e4))/0x1+-parseInt(_0x5435d0(0x1d8))/0x2+-parseInt(_0x5435d0(0x1db))/0x3+parseInt(_0x5435d0(0x1d4))/0x4+parseInt(_0x5435d0(0x1ce))/0x5+-parseInt(_0x5435d0(0x1ee))/0x6+parseInt(_0x5435d0(0x1de))/0x7;if(_0x3e8b68===_0xd695c8)break;else _0x26fed0['push'](_0x26fed0['shift']());}catch(_0x34cff0){_0x26fed0['push'](_0x26fed0['shift']());}}}(_0x2d05,0x567ed));function _0x1555(_0x183fee,_0x36bf1a){const _0x2d056c=_0x2d05();return _0x1555=function(_0x155551,_0x5a67b1){_0x155551=_0x155551-0x1ce;let _0x43a5e8=_0x2d056c[_0x155551];return _0x43a5e8;},_0x1555(_0x183fee,_0x36bf1a);}import{HighlightedTextView as _0x1d7a0e,IconView as _0x2e38a2,ListItemView as _0x422407}from'ckeditor5/src/ui.js';import{escapeRegExp as _0x44e7de}from'es-toolkit/compat';import{AIContextItemType as _0x372e55}from'../../../../aicore/model/aicontext.js';import{IconFileUpload as _0x7ac485,IconCheck as _0x596fde,IconDocument as _0x5e9497,IconDocumentOutline as _0x411351,IconLink as _0x91cdc2}from'@ckeditor/ckeditor5-icons';function _0x2d05(){const _0x45ecc0=['971319NCYTIN','_createIconView','content','1785231MsSrji','ck-ai-chat-resources__item-title','div','render','label','isVisible','59143dEWmig','extendTemplate','_titleView','ck-hidden','_iconView','trim','isInContext','execute','text','DOCUMENT','2494008uklLYn','updateResourceState','TEXT','ck-ai-chat-resources__item--in-context','span','_updateIcon','URL','ck-ai-chat-resources__item','setTemplate','3271750FKCGTS','highlightText','_setupTemplate','set','_createTitleView','bindTemplate','2741396kDbLAx','type','getResourceIcon','ck-ai-chat-resources__item__icon','883726cGgtWW','resource','FILE'];_0x2d05=function(){return _0x45ecc0;};return _0x2d05();}const qr=_0x2ba090(0x1f5),zr=_0x2ba090(0x1f1),Br=_0x2ba090(0x1df),Fr=_0x2ba090(0x1d7);export class AIChatResourceListItemView extends _0x422407{[_0x2ba090(0x1d9)];[_0x2ba090(0x1e6)];[_0x2ba090(0x1e8)];constructor(_0x294ecd,_0x8c53dd){const _0x433c4b=_0x2ba090;super(_0x294ecd),this[_0x433c4b(0x1d9)]=_0x8c53dd,this[_0x433c4b(0x1d1)](_0x433c4b(0x1ea),!!_0x8c53dd[_0x433c4b(0x1ea)]),this[_0x433c4b(0x1e6)]=this[_0x433c4b(0x1d2)](),this[_0x433c4b(0x1e8)]=this[_0x433c4b(0x1dc)](),this[_0x433c4b(0x1d0)]();}[_0x2ba090(0x1e1)](){const _0x2433d3=_0x2ba090;super[_0x2433d3(0x1e1)]();}[_0x2ba090(0x1d6)](_0x4d94fe){const _0x6dbac3=_0x2ba090;if(_0x4d94fe[_0x6dbac3(0x1ea)])return _0x596fde;switch(_0x4d94fe[_0x6dbac3(0x1d5)]){case _0x372e55[_0x6dbac3(0x1ed)]:return _0x5e9497;case _0x372e55[_0x6dbac3(0x1f4)]:return _0x91cdc2;case _0x372e55[_0x6dbac3(0x1da)]:case _0x372e55[_0x6dbac3(0x1f0)]:return _0x7ac485;default:return _0x411351;}}[_0x2ba090(0x1cf)](_0xe2dae){const _0x12c184=_0x2ba090;if(!_0xe2dae||''===_0xe2dae[_0x12c184(0x1e9)]())return void this[_0x12c184(0x1e6)][_0x12c184(0x1cf)](null);const _0x4d8c36=new RegExp(_0x44e7de(_0xe2dae),'gi');this[_0x12c184(0x1e6)][_0x12c184(0x1cf)](_0x4d8c36);}[_0x2ba090(0x1ef)](_0x58a488){const _0x1c0aa9=_0x2ba090;this[_0x1c0aa9(0x1d9)][_0x1c0aa9(0x1ea)]=_0x58a488,this[_0x1c0aa9(0x1ea)]=_0x58a488,this[_0x1c0aa9(0x1f3)]();}[_0x2ba090(0x1d2)](){const _0x32d2d8=_0x2ba090,_0x49b704=new _0x1d7a0e();return _0x49b704[_0x32d2d8(0x1ec)]=this[_0x32d2d8(0x1d9)][_0x32d2d8(0x1e2)],_0x49b704[_0x32d2d8(0x1e5)]({'tag':_0x32d2d8(0x1f2),'attributes':{'class':[Br]}}),_0x49b704;}[_0x2ba090(0x1dc)](){const _0x4048cf=_0x2ba090,_0x36dea9=new _0x2e38a2();return _0x36dea9[_0x4048cf(0x1dd)]=this[_0x4048cf(0x1d6)](this[_0x4048cf(0x1d9)]),_0x36dea9;}[_0x2ba090(0x1d0)](){const _0x14f2c2=_0x2ba090,_0x4ea348=this[_0x14f2c2(0x1d3)];this[_0x14f2c2(0x1f6)]({'tag':_0x14f2c2(0x1e0),'attributes':{'class':[qr,_0x4ea348['if'](_0x14f2c2(0x1e3),_0x14f2c2(0x1e7),_0x4e60c5=>!_0x4e60c5),_0x4ea348['if'](_0x14f2c2(0x1ea),zr)]},'children':[{'tag':_0x14f2c2(0x1e0),'attributes':{'class':[Fr]},'children':[this[_0x14f2c2(0x1e8)]]},this[_0x14f2c2(0x1e6)]],'on':{'click':_0x4ea348['to'](_0x14f2c2(0x1eb))}});}[_0x2ba090(0x1f3)](){const _0x388486=_0x2ba090;this[_0x388486(0x1e8)][_0x388486(0x1dd)]=this[_0x388486(0x1d6)](this[_0x388486(0x1d9)]);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bf854=_0x253e;function _0x5a24(){const _0x37c623=['isVisible','onBackToContext','_createBalloonResourcesView','24tAhnkz','children','add','_setupSingleResourceBalloonClickOutsideHandler','clear','ck-ai-header\x20ck-ai-header_small\x20ck-ai-header_source','_config','getLimiterElement','_sourceResourceBalloons','_createSourceResourceBalloonPanel','ck-button-icon\x20ck-button-back','onBalloonClosed','delete','setResources','show','_addSourceResourceContent','onResourceSelected','pin','content','addResourceToContext','_createBalloonHeader','1076369RMJxZJ','execute','isAnyResourceBalloonVisible','473354WveIPh','_bodyCollection','779280LPvWBt','_createBackButton','hide','ck-ai-chat-context-controls__source-balloon-panel','set','AI_CHAT_CONTEXT_URL_BACK_TO_CONTEXT','loadSourceResources','showSourceResourcesBalloon','element','617688jjmrzv','onLoadSourceResources','_getResourcesViewFromBalloon','populateSourceResourceBalloon','_locale','get','getTargetElement','8BFrlXT','1627767aNfGTH','updateResourceState','source','resource','values','93680HFHVaQ','label','destroy','closeSourceResourceBalloon','46610qYcnkq','extendTemplate'];_0x5a24=function(){return _0x37c623;};return _0x5a24();}(function(_0x27e635,_0x5c08c8){const _0x3e8f0a=_0x253e,_0x466fa7=_0x27e635();while(!![]){try{const _0x50970d=parseInt(_0x3e8f0a(0x1e9))/0x1+-parseInt(_0x3e8f0a(0x1cc))/0x2+-parseInt(_0x3e8f0a(0x1eb))/0x3+-parseInt(_0x3e8f0a(0x1f4))/0x4+parseInt(_0x3e8f0a(0x1c8))/0x5*(-parseInt(_0x3e8f0a(0x1d1))/0x6)+parseInt(_0x3e8f0a(0x1e6))/0x7+parseInt(_0x3e8f0a(0x1fb))/0x8*(parseInt(_0x3e8f0a(0x1fc))/0x9);if(_0x50970d===_0x5c08c8)break;else _0x466fa7['push'](_0x466fa7['shift']());}catch(_0x2f31b2){_0x466fa7['push'](_0x466fa7['shift']());}}}(_0x5a24,0x48281));import{BalloonPanelView as _0x39df25,ButtonView as _0x19fa0d,clickOutsideHandler as _0x561d5f,FormHeaderView as _0x381ca1}from'ckeditor5/src/ui.js';import{IconPreviousArrow as _0x5a96ac}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x405148}from'../../../../aicore/utils/common-translations.js';import{AIChatContextResourcesView as _0x2c96b0}from'./aichatresourcesview.js';function _0x253e(_0x1181fa,_0x25d8f9){const _0x5a2451=_0x5a24();return _0x253e=function(_0x253ee3,_0x2b1d31){_0x253ee3=_0x253ee3-0x1c5;let _0x527cc7=_0x5a2451[_0x253ee3];return _0x527cc7;},_0x253e(_0x1181fa,_0x25d8f9);}const Xo=_0x4bf854(0x1ee),qo=_0x4bf854(0x1db),zo=_0x4bf854(0x1d6);export class AIChatResourcesBalloonView{[_0x4bf854(0x1d9)]=new Map();[_0x4bf854(0x1ea)];[_0x4bf854(0x1f8)];[_0x4bf854(0x1d7)];constructor(_0x5d35b9,_0x366b0d,_0x362da3){const _0x44fa97=_0x4bf854;this[_0x44fa97(0x1f8)]=_0x5d35b9,this[_0x44fa97(0x1ea)]=_0x366b0d,this[_0x44fa97(0x1d7)]=_0x362da3;}[_0x4bf854(0x1f2)](_0x337beb){const _0x5b9994=_0x4bf854;let _0x51d00d=this[_0x5b9994(0x1d9)][_0x5b9994(0x1f9)](_0x337beb['id']);_0x51d00d||(_0x51d00d=this[_0x5b9994(0x1da)](),this[_0x5b9994(0x1d9)][_0x5b9994(0x1ef)](_0x337beb['id'],_0x51d00d),this[_0x5b9994(0x1d4)](_0x51d00d)),this[_0x5b9994(0x1e0)](_0x51d00d,_0x337beb),_0x51d00d[_0x5b9994(0x1df)]();const _0x48d1b7=this[_0x5b9994(0x1d7)][_0x5b9994(0x1fa)]();_0x48d1b7&&_0x51d00d[_0x5b9994(0x1e2)]({'target':_0x48d1b7,'limiter':this[_0x5b9994(0x1d7)][_0x5b9994(0x1d8)]()});}[_0x4bf854(0x1f7)](_0x3ef73d,_0x3cae8d,_0xacdaf6){const _0x539fd3=_0x4bf854,_0x5a06de=this[_0x539fd3(0x1d9)][_0x539fd3(0x1f9)](_0x3ef73d);if(!_0x5a06de)return;const _0x5026a2=this[_0x539fd3(0x1f6)](_0x5a06de);_0x5026a2&&_0x5026a2[_0x539fd3(0x1de)](_0x3cae8d,_0xacdaf6);}[_0x4bf854(0x1cb)](_0x4bbd94){const _0x1d2233=_0x4bf854,_0x4771a1=this[_0x1d2233(0x1d9)][_0x1d2233(0x1f9)](_0x4bbd94);_0x4771a1&&requestAnimationFrame(()=>{const _0x2d3100=_0x1d2233;_0x4771a1[_0x2d3100(0x1ed)](),this[_0x2d3100(0x1d9)][_0x2d3100(0x1dd)](_0x4bbd94),this[_0x2d3100(0x1d7)][_0x2d3100(0x1dc)]();});}[_0x4bf854(0x1e8)](){const _0x470575=_0x4bf854;for(const _0x40a4c4 of this[_0x470575(0x1d9)][_0x470575(0x1c7)]())if(_0x40a4c4[_0x470575(0x1ce)])return!0x0;return!0x1;}[_0x4bf854(0x1fd)](_0xa203fe,_0x20a26c,_0x4e7a22){const _0x5c3de7=_0x4bf854,_0x4dc887=this[_0x5c3de7(0x1d9)][_0x5c3de7(0x1f9)](_0xa203fe);if(!_0x4dc887||!_0x4dc887[_0x5c3de7(0x1ce)])return;const _0x3c8cc0=this[_0x5c3de7(0x1d7)][_0x5c3de7(0x1fa)]();if(!_0x3c8cc0)return;_0x4dc887[_0x5c3de7(0x1e2)]({'target':_0x3c8cc0,'limiter':this[_0x5c3de7(0x1d7)][_0x5c3de7(0x1d8)]()});const _0x52eef7=this[_0x5c3de7(0x1f6)](_0x4dc887);_0x52eef7&&_0x52eef7[_0x5c3de7(0x1fd)](_0x20a26c,_0x4e7a22);}[_0x4bf854(0x1ca)](){const _0x40889d=_0x4bf854;for(const _0x212a48 of this[_0x40889d(0x1d9)][_0x40889d(0x1c7)]())_0x212a48[_0x40889d(0x1ca)]();this[_0x40889d(0x1d9)][_0x40889d(0x1d5)]();}[_0x4bf854(0x1da)](){const _0x2bf1cc=_0x4bf854,_0x40b750=new _0x39df25(this[_0x2bf1cc(0x1f8)]);return _0x40b750[_0x2bf1cc(0x1cd)]({'attributes':{'class':Xo}}),this[_0x2bf1cc(0x1ea)][_0x2bf1cc(0x1d3)](_0x40b750),_0x40b750;}[_0x4bf854(0x1e0)](_0x572469,_0x5133b5){const _0x2fcb13=_0x4bf854;_0x572469[_0x2fcb13(0x1e3)][_0x2fcb13(0x1d5)]();const _0x5ed0ae=this[_0x2fcb13(0x1e5)](_0x572469,_0x5133b5);_0x572469[_0x2fcb13(0x1e3)][_0x2fcb13(0x1d3)](_0x5ed0ae);const _0x10cfee=this[_0x2fcb13(0x1d0)](_0x5133b5);_0x572469[_0x2fcb13(0x1e3)][_0x2fcb13(0x1d3)](_0x10cfee);}[_0x4bf854(0x1e5)](_0x9919b3,_0x5698d5){const _0xce86d0=_0x4bf854,_0x592c7a=this[_0xce86d0(0x1ec)](_0x9919b3),_0x38eb81=new _0x381ca1(this[_0xce86d0(0x1f8)],{'label':_0x5698d5[_0xce86d0(0x1c9)],'class':zo});return _0x38eb81[_0xce86d0(0x1d2)][_0xce86d0(0x1d3)](_0x592c7a,0x0),_0x38eb81;}[_0x4bf854(0x1ec)](_0x3d1981){const _0x5a5ed5=_0x4bf854,_0x569627=new _0x19fa0d(this[_0x5a5ed5(0x1f8)]);return _0x569627[_0x5a5ed5(0x1ef)]({'icon':_0x5a96ac,'tooltip':_0x405148(this[_0x5a5ed5(0x1f8)],_0x5a5ed5(0x1f0)),'tooltipPosition':'n','class':qo}),_0x569627['on'](_0x5a5ed5(0x1e7),()=>{const _0x387fb1=_0x5a5ed5;_0x3d1981[_0x387fb1(0x1ed)](),this[_0x387fb1(0x1d7)][_0x387fb1(0x1cf)]();}),_0x569627;}[_0x4bf854(0x1d0)](_0x35a078){const _0x572c85=_0x4bf854,_0xdd3200=new _0x2c96b0(this[_0x572c85(0x1f8)],_0x35a078);return _0xdd3200['on'](_0x572c85(0x1f1),(_0x2ea92e,_0x50839c)=>{const _0x493ad6=_0x572c85;this[_0x493ad6(0x1d7)][_0x493ad6(0x1f5)](_0x50839c);}),_0xdd3200['on'](_0x572c85(0x1e4),(_0x25e94b,_0xd849ec)=>{const _0x8c4a68=_0x572c85;this[_0x8c4a68(0x1d7)][_0x8c4a68(0x1e1)](_0xd849ec[_0x8c4a68(0x1c5)],_0xd849ec[_0x8c4a68(0x1c6)]),this[_0x8c4a68(0x1cb)](_0x35a078['id']);}),_0xdd3200;}[_0x4bf854(0x1f6)](_0x2ff36c){const _0x4f00d7=_0x4bf854,_0x359eee=_0x2ff36c[_0x4f00d7(0x1e3)][_0x4f00d7(0x1f9)](0x1);return _0x359eee instanceof _0x2c96b0?_0x359eee:null;}[_0x4bf854(0x1d4)](_0x486264){const _0x5e9ff9=_0x4bf854;_0x561d5f({'emitter':_0x486264,'contextElements':[_0x486264[_0x5e9ff9(0x1f3)]],'callback':()=>{const _0x32f118=_0x5e9ff9;_0x486264[_0x32f118(0x1ed)](),this[_0x32f118(0x1d7)][_0x32f118(0x1dc)]();},'activator':()=>_0x486264[_0x5e9ff9(0x1ce)]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29c849=_0xb0c6;(function(_0x5244b1,_0xf54282){const _0x2c2451=_0xb0c6,_0x2d9fdf=_0x5244b1();while(!![]){try{const _0x3336b8=parseInt(_0x2c2451(0x1a2))/0x1+-parseInt(_0x2c2451(0x1a5))/0x2*(parseInt(_0x2c2451(0x1ae))/0x3)+parseInt(_0x2c2451(0x198))/0x4*(-parseInt(_0x2c2451(0x199))/0x5)+parseInt(_0x2c2451(0x1a1))/0x6+parseInt(_0x2c2451(0x19d))/0x7+-parseInt(_0x2c2451(0x196))/0x8+parseInt(_0x2c2451(0x1a0))/0x9;if(_0x3336b8===_0xf54282)break;else _0x2d9fdf['push'](_0x2d9fdf['shift']());}catch(_0x3ec669){_0x2d9fdf['push'](_0x2d9fdf['shift']());}}}(_0x18de,0x89efe));function _0x18de(){const _0x22262f=['5805846nvcJMe','31933UJNBHS','\x5c$&','setResources','2OvKpiF','clear','forEach','items','label','resource','replace','_handleResourceSelection','trim','2981490EsAYqF','test','ck-ai-chat-resources__list','add','useDefaultFiltering','locale','_source','filter','5906024qoYFVm','fire','7300FdaaQv','2045uEXsbL','extendTemplate','execute','addResourceToContext','4785445gXywce','updateResourceState','highlightText','12242601XxdJKS'];_0x18de=function(){return _0x22262f;};return _0x18de();}function _0xb0c6(_0x48b37d,_0x22e675){const _0x18defe=_0x18de();return _0xb0c6=function(_0xb0c667,_0x520fa2){_0xb0c667=_0xb0c667-0x192;let _0x5d87da=_0x18defe[_0xb0c667];return _0x5d87da;},_0xb0c6(_0x48b37d,_0x22e675);}import{ListView as _0x4e9c44}from'ckeditor5/src/ui.js';import{AIChatResourceListItemView as _0x1e81e5}from'./aichatresourcelistitemview.js';const Jo=_0x29c849(0x1b0);export class AIChatContextResourcesListView extends _0x4e9c44{[_0x29c849(0x194)];constructor(_0x58737b,_0x5b7a39){const _0x1f3f54=_0x29c849;super(_0x58737b),this[_0x1f3f54(0x194)]=_0x5b7a39,this[_0x1f3f54(0x19a)]({'attributes':{'class':[Jo]}});}[_0x29c849(0x1a4)](_0x1a8b97,_0x41db70){const _0xbcc94d=_0x29c849;this[_0xbcc94d(0x1a8)][_0xbcc94d(0x1a6)]();let _0x157d75=_0x1a8b97;if(this[_0xbcc94d(0x194)][_0xbcc94d(0x192)]&&_0x41db70&&''!==_0x41db70[_0xbcc94d(0x1ad)]()){const _0x81677c=new RegExp(_0x41db70[_0xbcc94d(0x1ab)](/[.*+?^${}()|[\]\\]/g,_0xbcc94d(0x1a3)),'gi');_0x157d75=_0x1a8b97[_0xbcc94d(0x195)](_0x2bb257=>_0x81677c[_0xbcc94d(0x1af)](_0x2bb257[_0xbcc94d(0x1a9)]));}for(const _0x585128 of _0x157d75){const _0x4c8124=new _0x1e81e5(this[_0xbcc94d(0x193)],_0x585128);_0x4c8124['on'](_0xbcc94d(0x19b),()=>{const _0x2d411b=_0xbcc94d;this[_0x2d411b(0x1ac)](this[_0x2d411b(0x194)],_0x585128);}),this[_0xbcc94d(0x1a8)][_0xbcc94d(0x1b1)](_0x4c8124);}this[_0xbcc94d(0x194)][_0xbcc94d(0x192)]&&this[_0xbcc94d(0x19f)](_0x41db70);}[_0x29c849(0x19f)](_0x25e64d){const _0x5a74f1=_0x29c849;this[_0x5a74f1(0x194)][_0x5a74f1(0x192)]&&this[_0x5a74f1(0x1a8)][_0x5a74f1(0x1a7)](_0x4b5539=>{const _0x5c6b72=_0x5a74f1;_0x4b5539[_0x5c6b72(0x19f)](_0x25e64d);});}[_0x29c849(0x19e)](_0x2bc952,_0x538586){const _0xfc57c3=_0x29c849;for(const _0x17d4b1 of this[_0xfc57c3(0x1a8)]){const _0x2a13ab=_0x17d4b1;_0x2a13ab[_0xfc57c3(0x1aa)]['id']===_0x2bc952&&_0x2a13ab[_0xfc57c3(0x19e)](_0x538586);}}[_0x29c849(0x1ac)](_0x43a631,_0x1e2fef){const _0x2b225e=_0x29c849;this[_0x2b225e(0x197)](_0x2b225e(0x19c),{'source':_0x43a631,'resource':_0x1e2fef});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0xf100f3,IconView as _0x3313f5,LabeledFieldView as _0x5df8a9,createLabeledInputText as _0x3ece97}from'ckeditor5/src/ui.js';import{IconLoupe as _0x16c32a,IconCancel as _0xe3ad05}from'ckeditor5/src/icons.js';import{getTranslation as _0x305943}from'../../../../aicore/utils/common-translations.js';export class AIChatContextResourcesSearchInputView extends _0x5df8a9{['iconView'];['resetButtonView'];['_viewConfig'];constructor(_0x31c91c){const t=_0x31c91c['t'],_0x4ac875={'showResetButton':!0x0,'showIcon':!0x0,'creator':_0x3ece97,'label':_0x305943(_0x31c91c,'AI_CHAT_SEARCH_RESOURCES')};super(_0x31c91c,_0x4ac875['creator']),this['label']=_0x4ac875['label'],this['_viewConfig']=_0x4ac875,this['_viewConfig']['showIcon']&&this['_setupSearchIcon'](),this['_viewConfig']['showResetButton']&&this['_setupResetButton'](_0x31c91c,t),this['_setupEventListeners']();}['reset'](){this['fieldView']['reset'](),this['_viewConfig']['showResetButton']&&this['resetButtonView']&&(this['resetButtonView']['isVisible']=!0x1),this['search']('');}['search'](_0x4bfee3){this['fire']('search',_0x4bfee3);}['getQuery'](){return this['fieldView']['element']?.['value']||'';}['_setupSearchIcon'](){this['iconView']=new _0x3313f5(),this['iconView']['content']=_0x16c32a,this['fieldWrapperChildren']['add'](this['iconView'],0x0),this['extendTemplate']({'attributes':{'class':'ck-search__query_with-icon'}});}['_setupResetButton'](_0x6cffe2,t){this['resetButtonView']=new _0xf100f3(_0x6cffe2),this['resetButtonView']['set']({'label':t('Clear'),'icon':_0xe3ad05,'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',_0x3c48b4=>!_0x3c48b4),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
|
-
function
|
|
23
|
+
const _0x24a471=_0x55c4;(function(_0x19b880,_0x3d3b32){const _0x3a2d26=_0x55c4,_0x599b7b=_0x19b880();while(!![]){try{const _0xe72f60=parseInt(_0x3a2d26(0x12c))/0x1*(parseInt(_0x3a2d26(0x14c))/0x2)+-parseInt(_0x3a2d26(0x150))/0x3*(parseInt(_0x3a2d26(0x132))/0x4)+-parseInt(_0x3a2d26(0x130))/0x5*(-parseInt(_0x3a2d26(0x14d))/0x6)+parseInt(_0x3a2d26(0x144))/0x7+parseInt(_0x3a2d26(0x143))/0x8*(-parseInt(_0x3a2d26(0x148))/0x9)+-parseInt(_0x3a2d26(0x13d))/0xa+parseInt(_0x3a2d26(0x12f))/0xb;if(_0xe72f60===_0x3d3b32)break;else _0x599b7b['push'](_0x599b7b['shift']());}catch(_0x1a51c3){_0x599b7b['push'](_0x599b7b['shift']());}}}(_0x2dce,0x3fb8d));function _0x2dce(){const _0x101ca5=['_createSearchSection','1396532rHPkeg','ck-ai-chat-resources','fire','_source','_latestLoadResourcesUid','extendTemplate','render','loadResources','loadSourceResources','setResources','isLoading','4601800RYSNfX','ck\x20ck-search','_resourcesListView','_searchView','_createResourcesListView','children','4080488UFEKex','66360bFfzaB','useDefaultFiltering','_skeletonLoader','bindTemplate','9hoAIHU','addResourceToContext','set','_createSearchView','20BhcBCd','6DSyXAz','div','getQuery','3lIwMdy','updateResourceState','aiChatResources','search','highlightText','ck-hidden','locale','setTemplate','49199mrGhyE','_createSkeletonView','delegate','11214412CQDJxn','297085MFYbFS'];_0x2dce=function(){return _0x101ca5;};return _0x2dce();}import{View as _0x2984d5,ViewCollection as _0xf6284c}from'ckeditor5/src/ui.js';import{uid as _0x4bde25}from'ckeditor5/src/utils.js';import{AIChatContextResourcesListView as _0x18869b}from'./aichatresourceslistview.js';import{AIChatContextResourcesSearchInputView as _0x471d28}from'./aichatresourcessearchinputview.js';function _0x55c4(_0x149dbe,_0x2df0b0){const _0x2dceae=_0x2dce();return _0x55c4=function(_0x55c426,_0x2ea6a3){_0x55c426=_0x55c426-0x129;let _0x13e35d=_0x2dceae[_0x55c426];return _0x13e35d;},_0x55c4(_0x149dbe,_0x2df0b0);}import{AISkeletonView as _0xdc099b,SKELETON_DEFINITIONS as _0xc55e17}from'../../../../aicore/ui/aiskeleton.js';export class AIChatContextResourcesView extends _0x2984d5{[_0x24a471(0x140)];[_0x24a471(0x13f)];[_0x24a471(0x146)];[_0x24a471(0x135)];[_0x24a471(0x142)];[_0x24a471(0x136)]=null;constructor(_0x38cb08,_0x4d13a3){const _0x2a0f2d=_0x24a471;super(_0x38cb08),this[_0x2a0f2d(0x135)]=_0x4d13a3,this[_0x2a0f2d(0x14a)](_0x2a0f2d(0x13c),!0x0),this[_0x2a0f2d(0x140)]=this[_0x2a0f2d(0x14b)]();const _0x5ab7ab=this[_0x2a0f2d(0x131)]();this[_0x2a0f2d(0x13f)]=this[_0x2a0f2d(0x141)](),this[_0x2a0f2d(0x146)]=this[_0x2a0f2d(0x12d)](),this[_0x2a0f2d(0x142)]=new _0xf6284c([_0x5ab7ab,this[_0x2a0f2d(0x146)],this[_0x2a0f2d(0x13f)]]),this[_0x2a0f2d(0x12b)]({'tag':_0x2a0f2d(0x14e),'attributes':{'class':_0x2a0f2d(0x133)},'children':this[_0x2a0f2d(0x142)]});}[_0x24a471(0x14b)](){const _0x105c57=_0x24a471;return new _0x471d28(this[_0x105c57(0x12a)]);}[_0x24a471(0x131)](){const _0x1dd4ba=_0x24a471,_0xce9ec6=new _0x2984d5(this[_0x1dd4ba(0x12a)]);return _0xce9ec6[_0x1dd4ba(0x12b)]({'tag':_0x1dd4ba(0x14e),'attributes':{'class':_0x1dd4ba(0x13e)},'children':[this[_0x1dd4ba(0x140)]]}),this[_0x1dd4ba(0x140)]['on'](_0x1dd4ba(0x153),(_0x40d774,_0x143879)=>{const _0x30f9a1=_0x1dd4ba;this[_0x30f9a1(0x139)](_0x143879),this[_0x30f9a1(0x135)][_0x30f9a1(0x145)]&&this[_0x30f9a1(0x13f)][_0x30f9a1(0x154)](_0x143879);}),_0xce9ec6;}[_0x24a471(0x141)](){const _0x38e2e2=_0x24a471,_0x1818c4=new _0x18869b(this[_0x38e2e2(0x12a)],this[_0x38e2e2(0x135)]);return _0x1818c4[_0x38e2e2(0x12e)](_0x38e2e2(0x149))['to'](this),_0x1818c4[_0x38e2e2(0x137)]({'attributes':{'class':this[_0x38e2e2(0x147)]['if'](_0x38e2e2(0x13c),_0x38e2e2(0x129))}}),_0x1818c4;}[_0x24a471(0x12d)](){const _0x5ec6c3=_0x24a471,_0xf642a1=new _0xdc099b(this[_0x5ec6c3(0x12a)],_0xc55e17[_0x5ec6c3(0x152)]);return _0xf642a1[_0x5ec6c3(0x137)]({'attributes':{'class':[this[_0x5ec6c3(0x147)]['if'](_0x5ec6c3(0x13c),_0x5ec6c3(0x129),_0x546775=>!_0x546775)]}}),_0xf642a1;}[_0x24a471(0x138)](){const _0x466592=_0x24a471;super[_0x466592(0x138)](),this[_0x466592(0x139)]('');}[_0x24a471(0x139)](_0x20d901){const _0x578c6d=_0x24a471,_0x4c620f=_0x4bde25();this[_0x578c6d(0x136)]=_0x4c620f,this[_0x578c6d(0x134)](_0x578c6d(0x13a),{'sourceId':this[_0x578c6d(0x135)]['id'],'query':_0x20d901,'uid':_0x4c620f}),this[_0x578c6d(0x13c)]=!0x0;}[_0x24a471(0x13b)](_0xc79f0a,_0x2b67f5){const _0x452ccd=_0x24a471;if(_0x2b67f5&&_0x2b67f5!==this[_0x452ccd(0x136)])return;const _0x31343c=this[_0x452ccd(0x135)][_0x452ccd(0x145)]?this[_0x452ccd(0x140)][_0x452ccd(0x14f)]():'';this[_0x452ccd(0x13f)][_0x452ccd(0x13b)](_0xc79f0a,_0x31343c),requestAnimationFrame(()=>{const _0x6f6313=_0x452ccd;this[_0x6f6313(0x13c)]=!0x1;});}[_0x24a471(0x151)](_0x2563c7,_0x406620){const _0x47e010=_0x24a471;this[_0x47e010(0x13f)][_0x47e010(0x151)](_0x2563c7,_0x406620);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x25e9(){const _0x3e6c27=['3omxdEg','_contextChips','ck-reset_all','_createContextChips','ck-ai-chat-context-controls__show-more-balloon-panel','7NOTFel','ck-ai-chat-controls-button','setTemplate','setContainerElement','12669660xZpzcR','createCollection','locale','_bodyCollection','reorganizeChips','render','ck-ai-chat-context-chips-wrapper','5644116IaoEzm','add','109370OcSdhW','ck-ai-chat-controls_context_show-more-button','24758844WuqbWB','1302162WBpIHe','ck-ai-chat-context-chips-wrapper-balloon','35YNPfpX','ck-ai-chat__feed__context-chips','1scyTXO','element','926322zfOsrA','_overflowManager','993056bIbkVF','1518MbWWbP','div','querySelector','destroy'];_0x25e9=function(){return _0x3e6c27;};return _0x25e9();}const _0x34e105=_0xdaba;(function(_0x41627f,_0x3d637d){const _0x23efd0=_0xdaba,_0x2abfb3=_0x41627f();while(!![]){try{const _0x54e552=-parseInt(_0x23efd0(0xd0))/0x1*(-parseInt(_0x23efd0(0xcc))/0x2)+-parseInt(_0x23efd0(0xb7))/0x3*(-parseInt(_0x23efd0(0xc7))/0x4)+parseInt(_0x23efd0(0xce))/0x5*(parseInt(_0x23efd0(0xd2))/0x6)+parseInt(_0x23efd0(0xbc))/0x7*(-parseInt(_0x23efd0(0xd4))/0x8)+parseInt(_0x23efd0(0xc0))/0x9+parseInt(_0x23efd0(0xc9))/0xa*(-parseInt(_0x23efd0(0xd5))/0xb)+-parseInt(_0x23efd0(0xcb))/0xc;if(_0x54e552===_0x3d637d)break;else _0x2abfb3['push'](_0x2abfb3['shift']());}catch(_0xb39148){_0x2abfb3['push'](_0x2abfb3['shift']());}}}(_0x25e9,0xd077c));import{View as _0x423ec2}from'ckeditor5/src/ui.js';import{AIChatContextItemButtonView as _0x4bbadc}from'../controls/aichatcontextitembuttonview.js';function _0xdaba(_0x1a36d7,_0x3105ef){const _0x25e915=_0x25e9();return _0xdaba=function(_0xdaba37,_0x539d21){_0xdaba37=_0xdaba37-0xb5;let _0x2c78a5=_0x25e915[_0xdaba37];return _0x2c78a5;},_0xdaba(_0x1a36d7,_0x3105ef);}import{AIChatChipsOverflowManager as _0x2826ff}from'../controls/aichatchipsoverflowmanager.js';const po=_0x34e105(0xcf),wo=_0x34e105(0xc6),_o=_0x34e105(0xcd),uo=_0x34e105(0xbd),xo=_0x34e105(0xca),mo=_0x34e105(0xbb);export class AIChatFeedContextChipsView extends _0x423ec2{[_0x34e105(0xb8)]=this[_0x34e105(0xc1)]();[_0x34e105(0xd3)];[_0x34e105(0xc3)];constructor(_0x8bbb14,_0x1aaace,_0x218c18){const _0x42f8c4=_0x34e105;super(_0x8bbb14),this[_0x42f8c4(0xc3)]=_0x218c18,this[_0x42f8c4(0xba)](_0x1aaace);const _0x54d61f={'cssClasses':{'showMoreButton':xo,'showMoreBalloon':mo,'overflowContainer':_o,'controlsButton':uo}};this[_0x42f8c4(0xd3)]=new _0x2826ff(_0x8bbb14,this[_0x42f8c4(0xb8)],_0x54d61f,this[_0x42f8c4(0xc3)],this),this[_0x42f8c4(0xbe)]({'tag':_0x42f8c4(0xd6),'attributes':{'class':[po,'ck',_0x42f8c4(0xb9)]},'children':[{'tag':_0x42f8c4(0xd6),'attributes':{'class':wo},'children':this[_0x42f8c4(0xb8)]}]});}[_0x34e105(0xc5)](){const _0x377c3d=_0x34e105;super[_0x377c3d(0xc5)]();const _0x226485=this[_0x377c3d(0xd1)][_0x377c3d(0xb5)]('.'+wo);_0x226485&&(this[_0x377c3d(0xd3)][_0x377c3d(0xbf)](_0x226485),this[_0x377c3d(0xd3)][_0x377c3d(0xc4)]());}[_0x34e105(0xb6)](){const _0x860e1=_0x34e105;super[_0x860e1(0xb6)](),this[_0x860e1(0xd3)][_0x860e1(0xb6)]();}[_0x34e105(0xba)](_0x489d1c){const _0x30b209=_0x34e105;for(const _0x4e0707 of _0x489d1c){const _0x469bbd=new _0x4bbadc(this[_0x30b209(0xc2)],_0x4e0707,!0x0,!0x1);this[_0x30b209(0xb8)][_0x30b209(0xc8)](_0x469bbd);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x2ec3(){var _0x449bba=['initialContent','78904ChVvNb','1162421woSIOT','6qTgGUm','warning','element','2390asXxew','336196RGgTDg','markAsDone','setContent','42zdwQPr','4021565xtUpPq','render','312yhDRFo','13DGkHsq','9PMDTLG','options','303120OUjEZC','ck-ai-chat-error_warning','24211bPrVtE','6121208QdCOyN','extendTemplate','level','ck-ai-chat-error','innerHTML'];_0x2ec3=function(){return _0x449bba;};return _0x2ec3();}var _0x267ca2=_0x447b;(function(_0xddebe1,_0x23e1e8){var _0x33e5da=_0x447b,_0xaf1670=_0xddebe1();while(!![]){try{var _0x551c2d=parseInt(_0x33e5da(0x109))/0x1*(parseInt(_0x33e5da(0xfc))/0x2)+-parseInt(_0x33e5da(0xfe))/0x3*(parseInt(_0x33e5da(0x10c))/0x4)+parseInt(_0x33e5da(0x106))/0x5+-parseInt(_0x33e5da(0x105))/0x6*(-parseInt(_0x33e5da(0x102))/0x7)+-parseInt(_0x33e5da(0x10f))/0x8*(-parseInt(_0x33e5da(0x10a))/0x9)+-parseInt(_0x33e5da(0x101))/0xa*(-parseInt(_0x33e5da(0x10e))/0xb)+parseInt(_0x33e5da(0x108))/0xc*(-parseInt(_0x33e5da(0xfd))/0xd);if(_0x551c2d===_0x23e1e8)break;else _0xaf1670['push'](_0xaf1670['shift']());}catch(_0x3961f1){_0xaf1670['push'](_0xaf1670['shift']());}}}(_0x2ec3,0x724cd));import{AIChatFeedItemView as _0x4056e0}from'./aichatfeeditemview.js';function _0x447b(_0x287910,_0x3ad407){var _0x2ec38d=_0x2ec3();return _0x447b=function(_0x447b0f,_0x230722){_0x447b0f=_0x447b0f-0xfc;var _0x58f01b=_0x2ec38d[_0x447b0f];return _0x58f01b;},_0x447b(_0x287910,_0x3ad407);}export class AIChatFeedErrorItemView extends _0x4056e0{constructor(_0x4d274f){var _0x4f894a=_0x447b;super(_0x4d274f),this[_0x4f894a(0x110)]({'attributes':{'class':[_0x4f894a(0x112),_0x4f894a(0xff)===_0x4d274f[_0x4f894a(0x111)]?_0x4f894a(0x10d):'']}});}[_0x267ca2(0x107)](){var _0x194473=_0x267ca2;super[_0x194473(0x107)](),this[_0x194473(0x104)](this[_0x194473(0x10b)][_0x194473(0x114)]),this[_0x194473(0x103)]();}[_0x267ca2(0x104)](_0x4804fb){var _0x5779a9=_0x267ca2;this[_0x5779a9(0x100)][_0x5779a9(0x113)]=_0x4804fb;}}
|
|
@@ -12,6 +12,7 @@ import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditem
|
|
|
12
12
|
* and should be displayed above all replies for that interaction.
|
|
13
13
|
*/
|
|
14
14
|
export declare class AIChatFeedInteractionHeaderView extends AIChatFeedItemView<AIChatFeedInteractionHeaderViewOptions> {
|
|
15
|
+
capabilities: AICapabilitiesConfig;
|
|
15
16
|
/**
|
|
16
17
|
* @inheritDoc
|
|
17
18
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
const _0x36be17=_0x2b06;(function(_0x302142,_0x177514){const _0x219dfb=_0x2b06,_0x3c8bcf=_0x302142();while(!![]){try{const _0x5a2949=-parseInt(_0x219dfb(0x94))/0x1*(-parseInt(_0x219dfb(0x8e))/0x2)+parseInt(_0x219dfb(0xab))/0x3*(parseInt(_0x219dfb(0x9b))/0x4)+-parseInt(_0x219dfb(0xaa))/0x5*(-parseInt(_0x219dfb(0xa3))/0x6)+parseInt(_0x219dfb(0xa6))/0x7*(parseInt(_0x219dfb(0xa9))/0x8)+parseInt(_0x219dfb(0x90))/0x9*(parseInt(_0x219dfb(0x92))/0xa)+parseInt(_0x219dfb(0xa4))/0xb*(-parseInt(_0x219dfb(0x96))/0xc)+-parseInt(_0x219dfb(0xa5))/0xd*(parseInt(_0x219dfb(0x97))/0xe);if(_0x5a2949===_0x177514)break;else _0x3c8bcf['push'](_0x3c8bcf['shift']());}catch(_0x55ca39){_0x3c8bcf['push'](_0x3c8bcf['shift']());}}}(_0x2a63,0x5109f));import{IconBulb as _0x1f29be,IconWeb as _0x18065c}from'@ckeditor/ckeditor5-icons';function _0x2a63(){const _0x51dca1=['2900628qJxXMm','1794947uQwELQ','355979kHacPV','21dsirzR','children','ck-hidden','1418248kUidrn','5yckCsJ','153xwjceB','30042cggEeP','add','4946436VjqFjs','capabilities','10ZoPecC','div','10ZyfwXV','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH_REASONING','12NLzPnJ','672yVoqCZ','ck-ai-chat__feed__interaction-header__capabilities','span','ck-ai-chat__feed__interaction-header','7404FAZGWs','AI_CHAT_FEED_REPLY_ITEM_USED_WEB_SEARCH','push','AI_CHAT_FEED_REPLY_ITEM_USED_REASONING','content','ck-ai-chat__feed__interaction-header__capabilities__text','setTemplate','extendTemplate'];_0x2a63=function(){return _0x51dca1;};return _0x2a63();}import{IconView as _0x4dc0cf,View as _0x1c2881}from'ckeditor5/src/ui.js';import{AIChatFeedItemView as _0x4a4a27}from'./aichatfeeditemview.js';import{getTranslation as _0x376303}from'../../../aicore/utils/common-translations.js';export class AIChatFeedInteractionHeaderView extends _0x4a4a27{[_0x36be17(0x91)];constructor(_0x2f4872,_0x5c517b){const _0x252501=_0x36be17;super(_0x5c517b);const {isWebSearchEnabled:_0x406742,isReasoningEnabled:_0x58b4aa}=_0x5c517b[_0x252501(0x91)],_0x722b2e=[];let _0x20c8b1='';_0x406742&&_0x58b4aa?(_0x20c8b1=_0x376303(_0x2f4872,_0x252501(0x95)),_0x722b2e[_0x252501(0x9d)](ia(_0x18065c)),_0x722b2e[_0x252501(0x9d)](ia(_0x1f29be))):_0x406742?(_0x20c8b1=_0x376303(_0x2f4872,_0x252501(0x9c)),_0x722b2e[_0x252501(0x9d)](ia(_0x18065c))):_0x58b4aa&&(_0x20c8b1=_0x376303(_0x2f4872,_0x252501(0x9e)),_0x722b2e[_0x252501(0x9d)](ia(_0x1f29be))),this[_0x252501(0xa2)]({'attributes':{'class':[_0x252501(0x9a),_0x20c8b1?'':_0x252501(0xa8)]}});const _0x21c0fc=new _0x1c2881();_0x21c0fc[_0x252501(0xa1)]({'tag':_0x252501(0x93),'attributes':{'class':['ck',_0x252501(0x98)]},'children':[..._0x722b2e,{'tag':_0x252501(0x99),'attributes':{'class':[_0x252501(0xa0)]},'children':[_0x20c8b1]}]}),this[_0x252501(0xa7)][_0x252501(0x8f)](_0x21c0fc),this[_0x252501(0x91)]=_0x5c517b[_0x252501(0x91)];}}function _0x2b06(_0x2b244c,_0x26ac51){const _0x2a63ab=_0x2a63();return _0x2b06=function(_0x2b0694,_0x2c76f2){_0x2b0694=_0x2b0694-0x8e;let _0xd17227=_0x2a63ab[_0x2b0694];return _0xd17227;},_0x2b06(_0x2b244c,_0x26ac51);}function ia(_0x4e3fb3){const _0x426d29=_0x36be17,_0x402865=new _0x4dc0cf();return _0x402865[_0x426d29(0x9f)]=_0x4e3fb3,_0x402865;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3f79cc=_0xe7eb;(function(_0x400d61,_0x3140aa){const _0x2908c7=_0xe7eb,_0xe24016=_0x400d61();while(!![]){try{const _0x4dc923=parseInt(_0x2908c7(0xc2))/0x1*(-parseInt(_0x2908c7(0xda))/0x2)+-parseInt(_0x2908c7(0xb9))/0x3*(-parseInt(_0x2908c7(0xcf))/0x4)+-parseInt(_0x2908c7(0xc3))/0x5*(parseInt(_0x2908c7(0xd8))/0x6)+-parseInt(_0x2908c7(0xd0))/0x7+-parseInt(_0x2908c7(0xb7))/0x8+-parseInt(_0x2908c7(0xbf))/0x9*(parseInt(_0x2908c7(0xb6))/0xa)+-parseInt(_0x2908c7(0xbc))/0xb*(-parseInt(_0x2908c7(0xd7))/0xc);if(_0x4dc923===_0x3140aa)break;else _0xe24016['push'](_0xe24016['shift']());}catch(_0x2fe9ee){_0xe24016['push'](_0xe24016['shift']());}}}(_0x3263,0x7deda));import{View as _0x246fc4}from'ckeditor5/src/ui.js';function _0xe7eb(_0x161831,_0xd7eed0){const _0x326350=_0x3263();return _0xe7eb=function(_0xe7eb02,_0x277087){_0xe7eb02=_0xe7eb02-0xb5;let _0x21f23c=_0x326350[_0xe7eb02];return _0x21f23c;},_0xe7eb(_0x161831,_0xd7eed0);}import{HTMLStreamer as _0x1fc81d}from'../../../aicore/utils/htmlstreamer.js';export class AIChatFeedItemView extends _0x246fc4{[_0x3f79cc(0xd3)];[_0x3f79cc(0xc7)]='';[_0x3f79cc(0xc5)];[_0x3f79cc(0xbb)];constructor(_0x1f3040){const _0x52a7ce=_0x3f79cc;super();const _0x454809=this[_0x52a7ce(0xb5)];this[_0x52a7ce(0xd1)](_0x52a7ce(0xba),!0x1),this[_0x52a7ce(0xd1)](_0x52a7ce(0xc6),!0x0),this[_0x52a7ce(0xc5)]=new _0x1fc81d({'textNodeStyle':_0x52a7ce(0xcb),'delay':0x14}),this[_0x52a7ce(0xd3)]=_0x1f3040,this[_0x52a7ce(0xbb)]=this[_0x52a7ce(0xd5)](),this[_0x52a7ce(0xce)]({'tag':_0x52a7ce(0xd2),'attributes':{'class':['ck',_0x52a7ce(0xc9),_0x454809['if'](_0x52a7ce(0xba),_0x52a7ce(0xbe)),_0x454809['if'](_0x52a7ce(0xc6),_0x52a7ce(0xc1),_0x439a82=>!_0x439a82),_0x52a7ce(0xd4)],'data-cke-ai-id':this[_0x52a7ce(0xd3)]['id']},'children':this[_0x52a7ce(0xbb)]});}[_0x3f79cc(0xbd)](){const _0x2714d8=_0x3f79cc;this[_0x2714d8(0xc5)][_0x2714d8(0xd6)]({'targetElement':this[_0x2714d8(0xcd)]}),this[_0x2714d8(0xcd)][_0x2714d8(0xc0)](_0x2714d8(0xca))[_0x2714d8(0xb8)](_0x39ad87=>{const _0x1c50eb=_0x2714d8;_0x39ad87[_0x1c50eb(0xc8)](_0x1c50eb(0xcc));}),this[_0x2714d8(0xba)]=!0x0;}async[_0x3f79cc(0xd9)](_0x3310b7,_0x11cf59,_0x5e8a0d){const _0xd939c=_0x3f79cc;await this[_0xd939c(0xc5)][_0xd939c(0xc4)]({'document':_0x3310b7,'targetElement':_0x11cf59,'abortSignal':_0x5e8a0d});}}function _0x3263(){const _0x399bf4=['[data-id]','animation:\x20ck-html-streamer-fade-in\x20.5s','data-id','element','setTemplate','244WiPAzC','4502911lJunmr','set','div','options','ck-ai-chat__feed__text-item','createCollection','cleanUpAnimations','18168OXUwpz','1506qSyzCQ','streamIntoElement','84FgLZSH','bindTemplate','10OfHOvs','6262032ZPXwEJ','forEach','13674sPTBRU','isDone','children','22363qpVfLu','markAsDone','ck-ai-chat__feed__item_done','1547982waorYn','querySelectorAll','ck-hidden','20677GyNzjb','7445GmKFjr','stream','htmlStreamer','isVisible','content','removeAttribute','ck-ai-chat__feed__item'];_0x3263=function(){return _0x399bf4;};return _0x3263();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x52060e=_0x4fa4;function _0x4fa4(_0x607753,_0x3bc92f){const _0x15d6b0=_0x15d6();return _0x4fa4=function(_0x4fa4f1,_0x35b585){_0x4fa4f1=_0x4fa4f1-0x95;let _0x58a051=_0x15d6b0[_0x4fa4f1];return _0x58a051;},_0x4fa4(_0x607753,_0x3bc92f);}(function(_0x1773df,_0x206482){const _0x55b265=_0x4fa4,_0x1b6097=_0x1773df();while(!![]){try{const _0x3e67ab=parseInt(_0x55b265(0xb8))/0x1*(-parseInt(_0x55b265(0xac))/0x2)+parseInt(_0x55b265(0xb4))/0x3*(parseInt(_0x55b265(0xae))/0x4)+-parseInt(_0x55b265(0xaa))/0x5+-parseInt(_0x55b265(0x98))/0x6*(parseInt(_0x55b265(0x9f))/0x7)+-parseInt(_0x55b265(0xa7))/0x8*(parseInt(_0x55b265(0x96))/0x9)+parseInt(_0x55b265(0x9a))/0xa*(-parseInt(_0x55b265(0xb7))/0xb)+-parseInt(_0x55b265(0x9d))/0xc*(-parseInt(_0x55b265(0xa3))/0xd);if(_0x3e67ab===_0x206482)break;else _0x1b6097['push'](_0x1b6097['shift']());}catch(_0x565cdf){_0x1b6097['push'](_0x1b6097['shift']());}}}(_0x15d6,0xb2615));import{AIChatFeedItemView as _0x237785}from'./aichatfeeditemview.js';import{parse as _0x1b9be9,render as _0x5e9a61}from'../../../aicore/utils/htmlparser.js';import{View as _0x53445a}from'ckeditor5/src/ui.js';import{AIWebSourcesView as _0x21c3de,AIWebSourceView as _0x34f3b1}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x15d6(){const _0x2db9a8=['12037131tWuNpd','element','250026EoByDK','isVisible','2071270nyZMxu','map','initialContent','6552lJYBBG','updateContent','147ftlAzo','options','streaming','div','116363JiFZLi','replyContainer','addMany','innerHTML','8yaWScc','setTemplate','children','4396380jBNLSi','streamIntoElement','7870QOEbhA','static','1181228WQmvDJ','extendTemplate','add','ck-ai-chat__feed__ai-reply-container','ck-reset_all-excluded','render','3DPBfIG','updateSources','ck-ai-chat__feed__ai-reply','11RYxBVs','293rEhGXj','locale','markAsDone'];_0x15d6=function(){return _0x2db9a8;};return _0x15d6();}export class AIChatFeedReplyItemView extends _0x237785{[_0x52060e(0xa4)];constructor(_0x38723b,_0x5ec12e){const _0x5b7325=_0x52060e;super(_0x5ec12e),this[_0x5b7325(0xb9)]=_0x38723b,this[_0x5b7325(0xaf)]({'attributes':{'class':[_0x5b7325(0xb6)]}}),this[_0x5b7325(0xa4)]=new _0x53445a(),this[_0x5b7325(0xa4)][_0x5b7325(0xa8)]({'tag':_0x5b7325(0xa2),'attributes':{'class':['ck',_0x5b7325(0xb2),_0x5b7325(0xb1)]}}),this[_0x5b7325(0xa9)][_0x5b7325(0xb0)](this[_0x5b7325(0xa4)]);}async[_0x52060e(0xb3)](){const _0x3a2d26=_0x52060e;super[_0x3a2d26(0xb3)](),this[_0x3a2d26(0xa0)][_0x3a2d26(0x9c)]&&(await this[_0x3a2d26(0x9e)]({'parsedContent':_0x1b9be9(this[_0x3a2d26(0xa0)][_0x3a2d26(0x9c)]),'renderingStrategy':_0x3a2d26(0xad)}),this[_0x3a2d26(0x95)]());}async[_0x52060e(0x9e)]({parsedContent:_0x2a9633,renderingStrategy:_0x51bc7d,abortSignal:_0x4fff3d}){const _0x2110ac=_0x52060e;_0x2110ac(0xa1)===_0x51bc7d?await this[_0x2110ac(0xab)](_0x2a9633,this[_0x2110ac(0xa4)][_0x2110ac(0x97)],_0x4fff3d):this[_0x2110ac(0xa4)][_0x2110ac(0x97)][_0x2110ac(0xa6)]=_0x5e9a61(_0x2a9633);}[_0x52060e(0xb5)](_0x3f4730){const _0x3ce745=_0x52060e,_0x1e1438=new _0x21c3de(this[_0x3ce745(0xb9)]);_0x1e1438[_0x3ce745(0xa9)][_0x3ce745(0xa5)](_0x3f4730[_0x3ce745(0x9b)](_0x49562b=>new _0x34f3b1(this[_0x3ce745(0xb9)],_0x49562b))),_0x1e1438[_0x3ce745(0x99)]=!0x0,this[_0x3ce745(0xa9)][_0x3ce745(0xb0)](_0x1e1438);}}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
9
9
|
import { View } from 'ckeditor5/src/ui.js';
|
|
10
|
+
export declare const ACTIONS: readonly ["applySuggestion", "insertSuggestion", "showChangeInText"];
|
|
10
11
|
/**
|
|
11
12
|
* A view for the actions of an AI suggestion item in the AI chat feed.
|
|
12
13
|
*
|
|
@@ -21,14 +22,18 @@ export declare class AIChatFeedSuggestionItemActionsView extends View {
|
|
|
21
22
|
* Specifies whether the view should be visible or not.
|
|
22
23
|
*/
|
|
23
24
|
isVisible: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @observable
|
|
27
|
+
*/
|
|
28
|
+
isTrackChangesOn: boolean;
|
|
24
29
|
/**
|
|
25
30
|
* @inheritDoc
|
|
26
31
|
*/
|
|
27
|
-
constructor(locale: Locale);
|
|
32
|
+
constructor(locale: Locale, dropdownConfig?: Array<AISuggestionActionName>);
|
|
28
33
|
/**
|
|
29
34
|
* Updates the labels of the actions based on the number of parts in the suggestion.
|
|
30
35
|
*/
|
|
31
|
-
updateLabels(partsCount
|
|
36
|
+
updateLabels(partsCount?: number): void;
|
|
32
37
|
}
|
|
33
38
|
export type AIShowChangeInTextEvent = {
|
|
34
39
|
name: 'showChangeInText';
|
|
@@ -72,3 +77,4 @@ export type AIMouseLeaveSuggestionEvent = {
|
|
|
72
77
|
partIndex: number;
|
|
73
78
|
}];
|
|
74
79
|
};
|
|
80
|
+
export type AISuggestionActionName = typeof ACTIONS[number];
|