@ckeditor/ckeditor5-ai 47.2.0-alpha.2 → 47.2.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.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/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 +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/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.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/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/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x22d1df=_0x35a2;(function(_0x33e644,_0x5ee0bd){const _0x1dd3cc=_0x35a2,_0x343d95=_0x33e644();while(!![]){try{const _0x53b28c=-parseInt(_0x1dd3cc(0xd9))/0x1*(-parseInt(_0x1dd3cc(0xee))/0x2)+-parseInt(_0x1dd3cc(0xd6))/0x3+parseInt(_0x1dd3cc(0xde))/0x4*(parseInt(_0x1dd3cc(0xf2))/0x5)+-parseInt(_0x1dd3cc(0xe9))/0x6*(-parseInt(_0x1dd3cc(0xfd))/0x7)+-parseInt(_0x1dd3cc(0xd3))/0x8+-parseInt(_0x1dd3cc(0xf4))/0x9*(parseInt(_0x1dd3cc(0xff))/0xa)+parseInt(_0x1dd3cc(0xed))/0xb*(parseInt(_0x1dd3cc(0xf1))/0xc);if(_0x53b28c===_0x5ee0bd)break;else _0x343d95['push'](_0x343d95['shift']());}catch(_0x2c18a8){_0x343d95['push'](_0x343d95['shift']());}}}(_0x352e,0x92d18));import{ContextPlugin as _0x18b6ea}from'ckeditor5/src/core.js';import{AITabs as _0x314b2d}from'../aitabs/aitabs.js';function _0x352e(){const _0x46ee15=['14LLvOCY','view','470GPydVW','get','history','setLoadingSkeleton','9060280dhFXjv','errorMessage','isLoading','2997180ogUulh','selectConversation','updateItems','229vOOxHo','_historyView','plugins','isOfficialPlugin','removeHistoryItem','1164HTJCLx','updateHistoryItemsWithCategories','hideError','locale','requires','updateItemLoadingState','isMaximized','AI_CHAT_HISTORY_HEADING','editConversationTitle','resizeTabs','AIChatHistoryUI','648426xLrPha','setConversationPinned','showResizeButton','isPremiumPlugin','11jacxXU','2338eeIPUP','pluginName','removeConversation','14080092xlBExd','19555tkTmkJ','showError','11934YivIZb','setIsMaximized','AITabs','openChat','addTab','showConversationHistory','updateItemTitle','delegate','context'];_0x352e=function(){return _0x46ee15;};return _0x352e();}import{IconAIHistory as _0x50e2a4}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x53b930}from'./ui/aichathistoryview.js';import{getTranslation as _0x16cc9d}from'../aicore/utils/common-translations.js';function _0x35a2(_0x49d9b9,_0x1bcea7){const _0x352eed=_0x352e();return _0x35a2=function(_0x35a2c7,_0x457c34){_0x35a2c7=_0x35a2c7-0xd0;let _0x18240b=_0x352eed[_0x35a2c7];return _0x18240b;},_0x35a2(_0x49d9b9,_0x1bcea7);}import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x22d1df(0xf9),_0x22d1df(0xf0),_0x22d1df(0xe6),_0x22d1df(0xea),_0x22d1df(0xd7),_0x22d1df(0xf7),_0x22d1df(0xe7)];export class AIChatHistoryUI extends _0x18b6ea{static get[_0x22d1df(0xe2)](){return[_0x314b2d];}[_0x22d1df(0xda)];static get[_0x22d1df(0xef)](){const _0x50e0d0=_0x22d1df;return _0x50e0d0(0xe8);}static get[_0x22d1df(0xdc)](){return!0x0;}static get[_0x22d1df(0xec)](){return!0x0;}constructor(_0x2176cf){const _0x452264=_0x22d1df;super(_0x2176cf);const _0x4b907f=this[_0x452264(0xfc)][_0x452264(0xdb)][_0x452264(0xd0)](_0x452264(0xf6));this[_0x452264(0xda)]=new _0x53b930(this[_0x452264(0xfc)][_0x452264(0xe1)],_0x4b907f[_0x452264(0xeb)]),this[_0x452264(0xda)][_0x452264(0xfb)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x4b907f[_0x452264(0xfe)][_0x452264(0xf8)]({'id':_0x452264(0xd1),'buttonLabel':_0x16cc9d(this[_0x452264(0xfc)][_0x452264(0xe1)],_0x452264(0xe5)),'buttonIcon':_0x50e2a4,'order':0x0,'content':this[_0x452264(0xda)]});}[_0x22d1df(0xdd)](_0x48d61e){const _0x21822a=_0x22d1df;this[_0x21822a(0xda)][_0x21822a(0xdd)](_0x48d61e);}[_0x22d1df(0xd8)](_0xbe6cf8){const _0x2edcbd=_0x22d1df;this[_0x2edcbd(0xda)][_0x2edcbd(0xdf)](_0xbe6cf8);}[_0x22d1df(0xfa)](_0x5c5bab,_0x192971){const _0x109986=_0x22d1df;this[_0x109986(0xda)][_0x109986(0xfa)](_0x5c5bab,_0x192971);}[_0x22d1df(0xe3)](_0x109ddf,_0x828c50,_0x45e8b5){const _0x42792e=_0x22d1df;this[_0x42792e(0xda)][_0x42792e(0xe3)](_0x109ddf,_0x828c50,_0x45e8b5);}[_0x22d1df(0xd2)](_0x2f5483){const _0x569dea=_0x22d1df;this[_0x569dea(0xda)][_0x569dea(0xd5)]=_0x2f5483;}[_0x22d1df(0xf3)](_0x12d637){const _0x54f60f=_0x22d1df;this[_0x54f60f(0xda)][_0x54f60f(0xd4)]=_0x12d637;}[_0x22d1df(0xe0)](){const _0x43b52d=_0x22d1df;this[_0x43b52d(0xda)][_0x43b52d(0xd4)]='';}[_0x22d1df(0xf5)](_0x2e5219){const _0x14cb4d=_0x22d1df;this[_0x14cb4d(0xda)][_0x14cb4d(0xe4)]=_0x2e5219;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x221f(_0x6d33d9,_0x517af8){const _0x1a05e8=_0x1a05();return _0x221f=function(_0x221fa9,_0x39f010){_0x221fa9=_0x221fa9-0xa1;let _0x203cd5=_0x1a05e8[_0x221fa9];return _0x203cd5;},_0x221f(_0x6d33d9,_0x517af8);}const _0xb9e7cd=_0x221f;function _0x1a05(){const _0x53ef30=['getItem','3145648kjnrAu','createdAt','fire','filter','getMonth','getDate','fetchConversations','itemRemoved','getFullYear','1715931yCAlrI','map','updateConversation','splice','updateItemPinned','updateItemTitle','2236199LESqeX','items','itemsLoaded','getItems','1875269qWYfVj','getResult','84hZyErf','itemUpdated','findIndex','error','545995QkKgoh','init','group','updatePinned','30416560SXfSNC','from','loadItems','connector','pinned','removeItem','find','execute','getConversations','addItem','950062tlfPZr','getTime','deleteConversation','updateTitle','push'];_0x1a05=function(){return _0x53ef30;};return _0x1a05();}(function(_0x46c0e1,_0x1990a8){const _0xef0f9f=_0x221f,_0x5a1eff=_0x46c0e1();while(!![]){try{const _0x217d40=-parseInt(_0xef0f9f(0xa9))/0x1+parseInt(_0xef0f9f(0xbd))/0x2+parseInt(_0xef0f9f(0xcc))/0x3+-parseInt(_0xef0f9f(0xc3))/0x4+-parseInt(_0xef0f9f(0xaf))/0x5*(parseInt(_0xef0f9f(0xab))/0x6)+parseInt(_0xef0f9f(0xa5))/0x7+parseInt(_0xef0f9f(0xb3))/0x8;if(_0x217d40===_0x1990a8)break;else _0x5a1eff['push'](_0x5a1eff['shift']());}catch(_0x2db3ce){_0x5a1eff['push'](_0x5a1eff['shift']());}}}(_0x1a05,0xeec94));import{EmitterMixin as _0xb9b9d0}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x17e9d3}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0xb9b9d0(){[_0xb9e7cd(0xa6)]=[];[_0xb9e7cd(0xb6)];[_0xb9e7cd(0xb1)];constructor({connector:_0x460bb2,group:_0x46efb7}){const _0x1e3e6c=_0xb9e7cd;super(),this[_0x1e3e6c(0xb6)]=_0x460bb2,this[_0x1e3e6c(0xb1)]=_0x46efb7;}async[_0xb9e7cd(0xb0)](){const _0x4d2c0f=_0xb9e7cd;try{const _0x171292=this[_0x4d2c0f(0xb6)][_0x4d2c0f(0xc9)](this[_0x4d2c0f(0xb1)]),_0xdf9ce6=await _0x171292[_0x4d2c0f(0xbb)]();this[_0x4d2c0f(0xb5)](_0xdf9ce6);}catch(_0x132955){this[_0x4d2c0f(0xc5)](_0x4d2c0f(0xae),{'error':_0x132955,'operation':_0x4d2c0f(0xb0)});}}[_0xb9e7cd(0xbc)](_0x4285ff){const _0x29975d=_0xb9e7cd;this[_0x29975d(0xa6)][_0x29975d(0xc1)](_0x4285ff);}async[_0xb9e7cd(0xb8)](_0x228d1b){const _0x52b6ba=_0xb9e7cd,_0x5bad0a=this[_0x52b6ba(0xa6)][_0x52b6ba(0xad)](_0x34361e=>_0x34361e['id']===_0x228d1b);if(-0x1===_0x5bad0a)return!0x1;try{return await this[_0x52b6ba(0xb6)][_0x52b6ba(0xbf)](_0x228d1b)[_0x52b6ba(0xba)](),this[_0x52b6ba(0xa6)][_0x52b6ba(0xa2)](_0x5bad0a,0x1),this[_0x52b6ba(0xc5)](_0x52b6ba(0xca),{'itemId':_0x228d1b}),!0x0;}catch(_0x311a01){return this[_0x52b6ba(0xc5)](_0x52b6ba(0xae),{'error':_0x311a01,'operation':_0x52b6ba(0xb8),'itemId':_0x228d1b}),!0x1;}}[_0xb9e7cd(0xc2)](_0x4d179d){const _0x1097aa=_0xb9e7cd;return this[_0x1097aa(0xa6)][_0x1097aa(0xb9)](_0x473638=>_0x473638['id']===_0x4d179d);}async[_0xb9e7cd(0xa4)](_0x3bd758,_0x466114){const _0x1f6e0d=_0xb9e7cd,_0x5a81ab=this[_0x1f6e0d(0xc2)](_0x3bd758);if(!_0x5a81ab)return!0x1;try{return await this[_0x1f6e0d(0xb6)][_0x1f6e0d(0xa1)](_0x3bd758,{'title':_0x466114})[_0x1f6e0d(0xaa)](),_0x5a81ab[_0x1f6e0d(0xc0)](_0x466114),this[_0x1f6e0d(0xc5)](_0x1f6e0d(0xac),{'itemId':_0x3bd758,'updates':{'title':_0x466114}}),!0x0;}catch(_0x3359dc){return this[_0x1f6e0d(0xc5)](_0x1f6e0d(0xae),{'error':_0x3359dc,'operation':_0x1f6e0d(0xa4),'itemId':_0x3bd758}),!0x1;}}async[_0xb9e7cd(0xa3)](_0x3825e6,_0x44e318){const _0x4eca3d=_0xb9e7cd,_0x41a6dd=this[_0x4eca3d(0xc2)](_0x3825e6);if(!_0x41a6dd)return!0x1;try{return await this[_0x4eca3d(0xb6)][_0x4eca3d(0xa1)](_0x3825e6,{'pinned':_0x44e318})[_0x4eca3d(0xaa)](),_0x41a6dd[_0x4eca3d(0xb2)](_0x44e318),this[_0x4eca3d(0xc5)](_0x4eca3d(0xac),{'itemId':_0x3825e6,'updates':{'pinned':_0x44e318}}),!0x0;}catch(_0x4bddf0){return this[_0x4eca3d(0xc5)](_0x4eca3d(0xae),{'error':_0x4bddf0,'operation':_0x4eca3d(0xa3),'itemId':_0x3825e6}),!0x1;}}[_0xb9e7cd(0xb5)](_0x486833){const _0x3e840c=_0xb9e7cd;try{this[_0x3e840c(0xa6)]=[],_0x486833[_0x3e840c(0xcd)](_0x55c8b9=>{const _0x4732b4=_0x3e840c;this[_0x4732b4(0xbc)](new _0x17e9d3(_0x55c8b9));}),this[_0x3e840c(0xc5)](_0x3e840c(0xa7),{'items':[...this[_0x3e840c(0xa6)]]});}catch(_0x3c9600){this[_0x3e840c(0xc5)](_0x3e840c(0xae),{'error':_0x3c9600,'operation':_0x3e840c(0xb5)});}}[_0xb9e7cd(0xa8)](_0x2b7a27={}){const _0x1ee965=_0xb9e7cd,_0x4bbae7=void 0x0!==_0x2b7a27[_0x1ee965(0xb7)]&&_0x2b7a27[_0x1ee965(0xb7)],_0x5216ec=_0x2b7a27[_0x1ee965(0xb4)]?new Date(_0x2b7a27[_0x1ee965(0xb4)][_0x1ee965(0xcb)](),_0x2b7a27[_0x1ee965(0xb4)][_0x1ee965(0xc7)](),_0x2b7a27[_0x1ee965(0xb4)][_0x1ee965(0xc8)]()):null,_0x2a6ab3=_0x2b7a27['to']?new Date(_0x2b7a27['to'][_0x1ee965(0xcb)](),_0x2b7a27['to'][_0x1ee965(0xc7)](),_0x2b7a27['to'][_0x1ee965(0xc8)]()):null;return this[_0x1ee965(0xa6)][_0x1ee965(0xc6)](_0x237bf3=>{const _0x53d966=_0x1ee965;if(_0x237bf3[_0x53d966(0xb7)]!==_0x4bbae7)return!0x1;if(_0x2a6ab3){const _0x3a930e=new Date(_0x237bf3[_0x53d966(0xc4)][_0x53d966(0xcb)](),_0x237bf3[_0x53d966(0xc4)][_0x53d966(0xc7)](),_0x237bf3[_0x53d966(0xc4)][_0x53d966(0xc8)]());return _0x5216ec?_0x5216ec[_0x53d966(0xbe)]()===_0x2a6ab3[_0x53d966(0xbe)]()?_0x3a930e[_0x53d966(0xbe)]()===_0x5216ec[_0x53d966(0xbe)]():_0x3a930e<_0x2a6ab3&&_0x3a930e>=_0x5216ec:_0x3a930e<_0x2a6ab3;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x42beca=_0x2c27;(function(_0x5b65cc,_0x552be4){var _0x2488ed=_0x2c27,_0x20bc84=_0x5b65cc();while(!![]){try{var _0x4fced8=parseInt(_0x2488ed(0x19b))/0x1*(parseInt(_0x2488ed(0x1a6))/0x2)+-parseInt(_0x2488ed(0x1a5))/0x3*(parseInt(_0x2488ed(0x1a1))/0x4)+-parseInt(_0x2488ed(0x1a3))/0x5*(-parseInt(_0x2488ed(0x19f))/0x6)+parseInt(_0x2488ed(0x1a7))/0x7+parseInt(_0x2488ed(0x1a2))/0x8+parseInt(_0x2488ed(0x199))/0x9*(-parseInt(_0x2488ed(0x1a8))/0xa)+-parseInt(_0x2488ed(0x1aa))/0xb;if(_0x4fced8===_0x552be4)break;else _0x20bc84['push'](_0x20bc84['shift']());}catch(_0x86b69b){_0x20bc84['push'](_0x20bc84['shift']());}}}(_0x104b,0xaa29f));import{ObservableMixin as _0x1010ba}from'ckeditor5/src/utils.js';function _0x2c27(_0xd90de5,_0x3ac3f1){var _0x104b31=_0x104b();return _0x2c27=function(_0x2c278b,_0x351411){_0x2c278b=_0x2c278b-0x199;var _0x5dca5c=_0x104b31[_0x2c278b];return _0x5dca5c;},_0x2c27(_0xd90de5,_0x3ac3f1);}function _0x104b(){var _0x14fe25=['526842ZxuIDX','title','735409ZoRQoL','updatePinned','set','createdAt','12SQxNIn','updateTitle','28wmrgQT','5272824hgSTbV','575325ctWbuK','pinned','479421aZHpQu','2gwPlhS','8599087udDDXb','10PPgIIV','updatedAt','10767955ezljVR'];_0x104b=function(){return _0x14fe25;};return _0x104b();}import{escape as _0x2328b0}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x1010ba(){['id'];[_0x42beca(0x19e)];constructor({id:_0x526dea,title:_0x2078a3,createdAt:_0x34d513,updatedAt:_0x3e4adb,pinned:_0x54c135}){var _0x54d154=_0x42beca;super(),this['id']=_0x526dea,this[_0x54d154(0x19e)]=new Date(_0x34d513),this[_0x54d154(0x19d)](_0x54d154(0x19a),_0x2078a3),this[_0x54d154(0x19d)](_0x54d154(0x1a9),_0x3e4adb?new Date(_0x3e4adb):null),this[_0x54d154(0x19d)](_0x54d154(0x1a4),_0x54c135||!0x1);}[_0x42beca(0x1a0)](_0x3222c5){var _0x4911b5=_0x42beca;this[_0x4911b5(0x19d)](_0x4911b5(0x19a),_0x2328b0(_0x3222c5)),this[_0x4911b5(0x1a9)]=new Date();}[_0x42beca(0x19c)](_0x3e90fe){var _0x4ec78f=_0x42beca;this[_0x4ec78f(0x19d)](_0x4ec78f(0x1a4),_0x3e90fe),this[_0x4ec78f(0x1a9)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
const _0x1ee751=_0x39c2;(function(_0x2efe26,_0x9a33e7){const _0x54e30d=_0x39c2,_0x2d67f2=_0x2efe26();while(!![]){try{const _0x346ef5=parseInt(_0x54e30d(0x13b))/0x1+-parseInt(_0x54e30d(0xf6))/0x2*(parseInt(_0x54e30d(0x121))/0x3)+-parseInt(_0x54e30d(0x13e))/0x4+-parseInt(_0x54e30d(0x110))/0x5+parseInt(_0x54e30d(0x111))/0x6*(-parseInt(_0x54e30d(0xf8))/0x7)+-parseInt(_0x54e30d(0x12b))/0x8*(parseInt(_0x54e30d(0x10d))/0x9)+parseInt(_0x54e30d(0x114))/0xa;if(_0x346ef5===_0x9a33e7)break;else _0x2d67f2['push'](_0x2d67f2['shift']());}catch(_0x430650){_0x2d67f2['push'](_0x2d67f2['shift']());}}}(_0x2413,0x27110));function _0x39c2(_0x352c13,_0xca47bd){const _0x241354=_0x2413();return _0x39c2=function(_0x39c2d5,_0x17085c){_0x39c2d5=_0x39c2d5-0xe1;let _0x8ba6d=_0x241354[_0x39c2d5];return _0x8ba6d;},_0x39c2(_0x352c13,_0xca47bd);}import{ListItemView as _0x249edb,HighlightedTextView as _0x2ecfc4,ButtonView as _0x1c8378,ListView as _0x596afd,IconView as _0x1a655f,createDropdown as _0x440d9c,InputTextView as _0x5082bb}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x26482b,IconPin as _0x468eef,IconCheck as _0x57e9bc,IconCancel as _0x5c5e8a}from'ckeditor5/src/icons.js';function _0x2413(){const _0x4721c3=['value','_createMenuDropdownView','211722hvsvcW','_createCancelEditButtonView','isMatching','1145880RiZoUl','clear','ck-ai-loader','extendTemplate','AI_CHAT_HISTORY_ACCEPT','setTemplate','tiny','_createSpinnerView','pinned','_commitEditInputValue','ck-ai-chat-history__item-content','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item-check-container','listitem','edit:cancel','isVisible','_createAcceptEditButtonView','set','add','removeConversation','actions','AI_CHAT_HISTORY_CANCEL','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item-row','showConfirm','13730upOHut','AI_CHAT_HISTORY_REMOVE_CONFIRM','35GLLoHP','updateTitle','addMany','_titleView','highlightText','createCollection','label','ck-ai-chat-history__item-main-content','setConversationPinned','ck-ai-chat-history__item-date','buttonView','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_LOADING_PINNING','focus','isEdit','isOn','locale','_createEditInputView','ck-confirm-view-cancel','_createPinButtonView','updateLoadingState','9kkOCwd','match','_createCheckView','1029125KbTxcY','289290VvMmuN','ck-ai-loader__text','string','9540020BklwWl','element','bindTemplate','loadingState','selectConversation','ck-hidden','fire','bind','execute','ck-ai-chat-history__item','change:isEdit','ck-ai-chat-history__item-actions','children','63MtZogn','text','Enter','then','span','AI_CHAT_HISTORY_EDIT_NAME','panelPosition','ck-ai-chat-history__item-check','click','mainContent','1025384ZGknGX','key','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item--edit','items','ck-ai-chat-history__item--active','div','LOADING_LABELS','panelView','ck-confirm-view-submit','editConversationTitle','ck-ai-chat-history__item-title','withText','AI_CHAT_HISTORY_REMOVE'];_0x2413=function(){return _0x4721c3;};return _0x2413();}import{LateFocusDropdownButtonView as _0x2e248c,ConfirmMixin as _0x39a86b}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x25c8e1}from'es-toolkit/compat';import{AISpinnerView as _0xaa6bb1}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x544254}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x39a86b(_0x249edb){['id'];static [_0x1ee751(0x132)]={'remove':_0x1ee751(0xe7),'rename':_0x1ee751(0xf3),'pin':_0x1ee751(0x104),'unpin':_0x1ee751(0x103)};[_0x1ee751(0xf1)];[_0x1ee751(0x12a)];[_0x1ee751(0xfb)];constructor(_0x105a89,_0x137ca1){const _0x3a60f6=_0x1ee751;super(_0x105a89);const _0x4e3170=this[_0x3a60f6(0x116)];this[_0x3a60f6(0xee)](_0x3a60f6(0x106),!0x1),this[_0x3a60f6(0xee)](_0x3a60f6(0xec),!0x0),this[_0x3a60f6(0xee)](_0x3a60f6(0xe4),!!_0x137ca1[_0x3a60f6(0xe4)]),this[_0x3a60f6(0xee)](_0x3a60f6(0x117),null),this['id']=_0x137ca1['id'];const {title:_0x549b0e,createdAt:_0x597a32,active:_0x443794=!0x1}=_0x137ca1;this[_0x3a60f6(0xfb)]=new _0x2ecfc4(),this[_0x3a60f6(0xfb)][_0x3a60f6(0x122)]=_0x549b0e,this[_0x3a60f6(0xfb)][_0x3a60f6(0x141)]({'attributes':{'class':[_0x3a60f6(0x136)]}});const _0x2fb941=this[_0x3a60f6(0x10f)](),_0x3b0f0d=this[_0x3a60f6(0x10b)](_0x105a89),_0x534ec5=this[_0x3a60f6(0x13a)](),_0xd2d4d9=this[_0x3a60f6(0x109)](_0x105a89,_0x549b0e),_0x30bde5=this[_0x3a60f6(0xed)](_0x105a89,_0xd2d4d9),_0x3d79ee=this[_0x3a60f6(0x13c)](_0x105a89,_0xd2d4d9);this[_0x3a60f6(0xf1)]=this[_0x3a60f6(0xfd)](),this[_0x3a60f6(0x12a)]=this[_0x3a60f6(0xfd)](),this[_0x3a60f6(0x12a)][_0x3a60f6(0xef)](this[_0x3a60f6(0xfb)]),this[_0x3a60f6(0xf1)][_0x3a60f6(0xef)](_0x3b0f0d),this[_0x3a60f6(0xf1)][_0x3a60f6(0xef)](_0x534ec5),this['on'](_0x3a60f6(0x11e),(_0x3468cb,_0x4b394f,_0x48b9f9)=>{const _0x3ac689=_0x3a60f6;this[_0x3ac689(0xf1)][_0x3ac689(0x13f)](),this[_0x3ac689(0x12a)][_0x3ac689(0x13f)](),_0x48b9f9?(this[_0x3ac689(0xf1)][_0x3ac689(0xef)](_0x30bde5),this[_0x3ac689(0xf1)][_0x3ac689(0xef)](_0x3d79ee),this[_0x3ac689(0x12a)][_0x3ac689(0xef)](_0xd2d4d9),_0xd2d4d9[_0x3ac689(0x115)][_0x3ac689(0x105)]()):(this[_0x3ac689(0xf1)][_0x3ac689(0xef)](_0x3b0f0d),this[_0x3ac689(0xf1)][_0x3ac689(0xef)](_0x534ec5),this[_0x3ac689(0x12a)][_0x3ac689(0xef)](this[_0x3ac689(0xfb)]));}),this[_0x3a60f6(0xe1)]({'tag':'li','attributes':{'class':[_0x3a60f6(0x11d),_0x443794?_0x3a60f6(0x130):'',_0x4e3170['if'](_0x3a60f6(0xec),_0x3a60f6(0x119),_0x4a9d0c=>!_0x4a9d0c),_0x4e3170['if'](_0x3a60f6(0x106),_0x3a60f6(0x12e))],'role':_0x3a60f6(0xea)},'children':[{'tag':_0x3a60f6(0x125),'attributes':{'class':[_0x3a60f6(0xe9)]},'children':[{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x128),_0x4e3170['if'](_0x3a60f6(0x117),_0x3a60f6(0x119),_0x442057=>!!_0x442057)]},'children':_0x443794?[_0x2fb941]:[]},{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x140),_0x4e3170['if'](_0x3a60f6(0x117),_0x3a60f6(0x119),_0x2b2c61=>!_0x2b2c61)]},'children':[this[_0x3a60f6(0xe3)]()]}]},{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0xf4)]},'children':[{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0xe6)]},'on':{'click':this[_0x3a60f6(0x116)]['to'](_0x3a60f6(0x129))},'children':[{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0xff)]},'children':[{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x136),_0x4e3170['if'](_0x3a60f6(0x117),_0x3a60f6(0x119),_0x188af2=>!!_0x188af2)]},'children':this[_0x3a60f6(0x12a)]},{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x112),_0x4e3170['if'](_0x3a60f6(0x117),_0x3a60f6(0x119),_0x17925f=>!_0x17925f)]},'children':[{'text':_0x4e3170['to'](_0x3a60f6(0x117),_0x21fb19=>_0x21fb19?_0x544254(this[_0x3a60f6(0x108)],AIChatHistoryListItemView[_0x3a60f6(0x132)][_0x21fb19]):'')}]}]},{'tag':_0x3a60f6(0x125),'attributes':{'class':[_0x3a60f6(0x101)]},'children':[_0x597a32]}]},{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x11f)]},'children':this[_0x3a60f6(0xf1)]}]}]}),this['on'](_0x3a60f6(0x129),()=>{const _0x2145ee=_0x3a60f6;this[_0x2145ee(0x106)]||this[_0x2145ee(0x11a)](_0x2145ee(0x118),{'id':this['id']});});}[_0x1ee751(0xf9)](_0x363d99){const _0x36c696=_0x1ee751;this[_0x36c696(0xfb)][_0x36c696(0x122)]=_0x25c8e1(_0x363d99);}[_0x1ee751(0x10c)](_0x3491bd,_0x2e8e1b){const _0x15cb74=_0x1ee751;this[_0x15cb74(0xee)](_0x15cb74(0x117),_0x2e8e1b?_0x3491bd:null);}[_0x1ee751(0x10f)](){const _0x37a5e1=_0x1ee751,_0x9f1a6f=new _0x1a655f();return _0x9f1a6f[_0x37a5e1(0xee)]({'content':_0x57e9bc}),_0x9f1a6f;}[_0x1ee751(0x10b)](_0x9e5f6f){const _0x4bd316=_0x1ee751,_0x21032a=new _0x1c8378(_0x9e5f6f);return _0x21032a[_0x4bd316(0xee)]({'label':_0x544254(_0x9e5f6f,_0x4bd316(0xe8)),'icon':_0x468eef,'withText':!0x1,'tooltip':!0x0}),_0x21032a[_0x4bd316(0x11b)](_0x4bd316(0x107))['to'](this,_0x4bd316(0xe4)),_0x21032a['on'](_0x4bd316(0x11c),()=>{const _0x28cf68=_0x4bd316,_0x125120=!this[_0x28cf68(0xe4)];this[_0x28cf68(0x11a)](_0x28cf68(0x100),{'id':this['id'],'pinned':_0x125120});}),_0x21032a;}[_0x1ee751(0x13a)](){const _0x4359d3=_0x1ee751,_0x1a1728=_0x440d9c(this[_0x4359d3(0x108)],_0x2e248c),_0x269a85=_0x1a1728[_0x4359d3(0x133)][_0x4359d3(0x120)];_0x1a1728[_0x4359d3(0x102)][_0x4359d3(0xee)]({'label':_0x544254(this[_0x4359d3(0x108)],_0x4359d3(0x12d)),'icon':_0x26482b}),_0x1a1728[_0x4359d3(0x127)]='sw';const _0x58dadb=new _0x1c8378(this[_0x4359d3(0x108)]);_0x58dadb[_0x4359d3(0xfe)]=_0x544254(this[_0x4359d3(0x108)],_0x4359d3(0x126)),_0x58dadb[_0x4359d3(0x137)]=!0x0,_0x58dadb['on'](_0x4359d3(0x11c),()=>{const _0x1db1f4=_0x4359d3;this[_0x1db1f4(0x106)]=!0x0;});const _0x5134ad=new _0x1c8378(this[_0x4359d3(0x108)]);_0x5134ad[_0x4359d3(0xfe)]=_0x544254(this[_0x4359d3(0x108)],_0x4359d3(0x138)),_0x5134ad[_0x4359d3(0x137)]=!0x0,_0x5134ad['on'](_0x4359d3(0x11c),()=>{const _0x1b335f=_0x4359d3;this[_0x1b335f(0xf5)](_0x544254(this[_0x1b335f(0x108)],_0x1b335f(0xf7)),this[_0x1b335f(0x115)])[_0x1b335f(0x124)](()=>{const _0x5ae3ec=_0x1b335f;this[_0x5ae3ec(0x11a)](_0x5ae3ec(0xf0),{'id':this['id']});});});const _0x443572=new _0x596afd(this[_0x4359d3(0x108)]),_0x18285f=new _0x249edb(this[_0x4359d3(0x108)]);_0x18285f[_0x4359d3(0x120)][_0x4359d3(0xef)](_0x58dadb);const _0xe40128=new _0x249edb(this[_0x4359d3(0x108)]);return _0xe40128[_0x4359d3(0x120)][_0x4359d3(0xef)](_0x5134ad),_0x443572[_0x4359d3(0x12f)][_0x4359d3(0xfa)]([_0x18285f,_0xe40128]),_0x269a85[_0x4359d3(0xef)](_0x443572),_0x1a1728;}[_0x1ee751(0x109)](_0x3993f9,_0x2f91b5){const _0x5e616f=_0x1ee751,_0x5a8255=new _0x5082bb(_0x3993f9),_0x34f281=_0x5a8255[_0x5e616f(0x116)];return _0x5a8255[_0x5e616f(0x139)]=_0x2f91b5,_0x5a8255[_0x5e616f(0x141)]({'on':{'keydown':_0x34f281['to'](_0x371822=>{const _0x3608bc=_0x5e616f;_0x3608bc(0x123)==_0x371822[_0x3608bc(0x12c)]&&this[_0x3608bc(0xe5)](_0x5a8255);})}}),_0x5a8255;}[_0x1ee751(0xed)](_0x329912,_0x2463f9){const _0x480eb4=_0x1ee751,_0x23b5cd=new _0x1c8378(_0x329912);return _0x23b5cd[_0x480eb4(0xee)]({'icon':_0x57e9bc,'withText':!0x1,'tooltip':_0x544254(_0x329912,_0x480eb4(0x142))}),_0x23b5cd[_0x480eb4(0x141)]({'attributes':{'class':[_0x480eb4(0x134)]}}),_0x23b5cd['on'](_0x480eb4(0x11c),()=>{const _0x59d4f3=_0x480eb4;this[_0x59d4f3(0xe5)](_0x2463f9);}),_0x23b5cd;}[_0x1ee751(0xe5)](_0x14430c){const _0x174d3c=_0x1ee751,_0x44a279=_0x14430c[_0x174d3c(0x115)][_0x174d3c(0x139)]||'';this[_0x174d3c(0xfb)][_0x174d3c(0x122)]=_0x44a279,this[_0x174d3c(0x106)]=!0x1,this[_0x174d3c(0x11a)](_0x174d3c(0x135),{'id':this['id'],'title':_0x44a279});}[_0x1ee751(0x13c)](_0x43c594,_0x3e0295){const _0xae3a60=_0x1ee751,_0xcf3a01=new _0x1c8378(_0x43c594);return _0xcf3a01[_0xae3a60(0xee)]({'icon':_0x5c5e8a,'withText':!0x1,'tooltip':_0x544254(_0x43c594,_0xae3a60(0xf2))}),_0xcf3a01[_0xae3a60(0x141)]({'attributes':{'class':[_0xae3a60(0x10a)]}}),_0xcf3a01['on'](_0xae3a60(0x11c),()=>{const _0x3305eb=_0xae3a60;this[_0x3305eb(0x106)]=!0x1,_0x3e0295[_0x3305eb(0x139)]=this[_0x3305eb(0xfb)][_0x3305eb(0x122)]||'',this[_0x3305eb(0x11a)](_0x3305eb(0xeb));}),_0xcf3a01;}[_0x1ee751(0xe3)](){const _0x38c11f=_0x1ee751,_0x4d2ddd=new _0xaa6bb1(_0x38c11f(0xe2));return _0x4d2ddd[_0x38c11f(0xec)]=!0x0,_0x4d2ddd;}[_0x1ee751(0x13d)](_0x5882ea){const _0xb54bbb=_0x1ee751;return this[_0xb54bbb(0xfb)]&&_0xb54bbb(0x113)==typeof this[_0xb54bbb(0xfb)][_0xb54bbb(0x122)]&&this[_0xb54bbb(0xfb)][_0xb54bbb(0x122)][_0xb54bbb(0x10e)](_0x5882ea)?{'title':!0x0}:null;}[_0x1ee751(0xfc)](_0xf05e2c){const _0x5b84b3=_0x1ee751;this[_0x5b84b3(0xfb)][_0x5b84b3(0xfc)](_0xf05e2c);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xfa6376=_0x530b;(function(_0x1c0b7a,_0x1d582d){const _0x24d1bc=_0x530b,_0x126aa2=_0x1c0b7a();while(!![]){try{const _0xa216f8=parseInt(_0x24d1bc(0xe0))/0x1+-parseInt(_0x24d1bc(0xec))/0x2*(-parseInt(_0x24d1bc(0xf3))/0x3)+parseInt(_0x24d1bc(0xed))/0x4+-parseInt(_0x24d1bc(0xe3))/0x5*(parseInt(_0x24d1bc(0xef))/0x6)+-parseInt(_0x24d1bc(0xe5))/0x7+-parseInt(_0x24d1bc(0xea))/0x8+-parseInt(_0x24d1bc(0xe7))/0x9*(-parseInt(_0x24d1bc(0xe2))/0xa);if(_0xa216f8===_0x1d582d)break;else _0x126aa2['push'](_0x126aa2['shift']());}catch(_0x3df023){_0x126aa2['push'](_0x126aa2['shift']());}}}(_0x4ea6,0xecac2));function _0x530b(_0x4d23ac,_0x822b97){const _0x4ea6df=_0x4ea6();return _0x530b=function(_0x530b85,_0x5679cc){_0x530b85=_0x530b85-0xdc;let _0x2e042e=_0x4ea6df[_0x530b85];return _0x2e042e;},_0x530b(_0x4d23ac,_0x822b97);}function _0x4ea6(){const _0x1363cd=['isMatching','find','ck-ai-chat-history__section','addMany','ck-ai-chat-history__section-title','bindTemplate','indexOf','items','splice','div','140317kwugyp','itemsViews','10uqgXpz','19005EIVrpX','length','4923240iFKsZO','isVisible','33417387iVRynE','filter','set','14723648xDCGQu','highlightText','1746094UxYhom','2627484BycFHh','removeItem','2952fTuBmu','getItem','_itemsListView','setTemplate','3gmknYq','title','ck-hidden','remove'];_0x4ea6=function(){return _0x1363cd;};return _0x4ea6();}import{ListItemView as _0x45cc37,View as _0x34486f,ListView as _0x20e316}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x45cc37{[_0xfa6376(0xf4)];[_0xfa6376(0xe1)];[_0xfa6376(0xf1)];constructor(_0x1ac849,{title:_0xef8ca2,items:_0x377b38}){const _0x4d09ae=_0xfa6376;super(_0x1ac849);const _0x2dc839=this[_0x4d09ae(0xfc)];this[_0x4d09ae(0xe9)](_0x4d09ae(0xe6),!0x0),this[_0x4d09ae(0xf4)]=_0xef8ca2,this[_0x4d09ae(0xe1)]=_0x377b38;const _0x1b0115=new _0x34486f(_0x1ac849);_0x1b0115[_0x4d09ae(0xf2)]({'tag':_0x4d09ae(0xdf),'attributes':{'class':[_0x4d09ae(0xfb)]},'children':[this[_0x4d09ae(0xf4)]]}),this[_0x4d09ae(0xf1)]=new _0x20e316(_0x1ac849),this[_0x4d09ae(0xf1)][_0x4d09ae(0xdd)][_0x4d09ae(0xfa)](this[_0x4d09ae(0xe1)]),this[_0x4d09ae(0xf2)]({'tag':'li','attributes':{'class':[_0x4d09ae(0xf9),_0x2dc839['if'](_0x4d09ae(0xe6),_0x4d09ae(0xf5),_0x4dc18c=>!_0x4dc18c)]},'children':[_0x1b0115,this[_0x4d09ae(0xf1)]]});}[_0xfa6376(0xe8)](_0x341bae){const _0x127276=_0xfa6376,_0x2b5845=this[_0x127276(0xe1)][_0x127276(0xe4)];let _0x3be91a=0x0;for(const _0x4d632b of this[_0x127276(0xe1)]){if(_0x341bae){const _0x41f999=_0x4d632b[_0x127276(0xf7)](_0x341bae);_0x4d632b[_0x127276(0xe6)]=!!_0x41f999,_0x4d632b[_0x127276(0xeb)](_0x341bae);}else _0x4d632b[_0x127276(0xe6)]=!0x0,_0x4d632b[_0x127276(0xeb)](null);_0x4d632b[_0x127276(0xe6)]&&_0x3be91a++;}return this[_0x127276(0xe6)]=_0x3be91a>0x0,{'resultsCount':_0x3be91a,'totalItemsCount':_0x2b5845};}[_0xfa6376(0xf0)](_0x2fc34d){const _0x11b2e6=_0xfa6376;return this[_0x11b2e6(0xe1)][_0x11b2e6(0xf8)](_0x265d88=>_0x265d88['id']===_0x2fc34d);}[_0xfa6376(0xee)](_0x43a61c){const _0xf746d7=_0xfa6376,_0x44af22=this[_0xf746d7(0xe1)][_0xf746d7(0xdc)](_0x43a61c);-0x1!==_0x44af22&&(this[_0xf746d7(0xe1)][_0xf746d7(0xde)](_0x44af22,0x1),this[_0xf746d7(0xf1)][_0xf746d7(0xdd)][_0xf746d7(0xf6)](_0x43a61c));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1368(_0x432c23,_0x2a143d){const _0x3afa37=_0x3afa();return _0x1368=function(_0x1368aa,_0x107c14){_0x1368aa=_0x1368aa-0x1b6;let _0x21379f=_0x3afa37[_0x1368aa];return _0x21379f;},_0x1368(_0x432c23,_0x2a143d);}const _0x5d60ba=_0x1368;(function(_0x316bb1,_0x3a7c61){const _0x20b708=_0x1368,_0x5700df=_0x316bb1();while(!![]){try{const _0x3d0414=parseInt(_0x20b708(0x1bf))/0x1+parseInt(_0x20b708(0x1be))/0x2+parseInt(_0x20b708(0x1bc))/0x3+-parseInt(_0x20b708(0x1bb))/0x4+-parseInt(_0x20b708(0x1c2))/0x5+-parseInt(_0x20b708(0x1c3))/0x6+-parseInt(_0x20b708(0x1c1))/0x7*(-parseInt(_0x20b708(0x1b6))/0x8);if(_0x3d0414===_0x3a7c61)break;else _0x5700df['push'](_0x5700df['shift']());}catch(_0x4b20bc){_0x5700df['push'](_0x5700df['shift']());}}}(_0x3afa,0x36c5d));import{ListView as _0x27d8a1}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x27d8a1{[_0x5d60ba(0x1c0)];constructor(_0x5d4b28,_0xb08e05){const _0xcc15be=_0x5d60ba;super(_0x5d4b28),this[_0xcc15be(0x1c0)]=_0xb08e05,this[_0xcc15be(0x1bd)][_0xcc15be(0x1b9)](this[_0xcc15be(0x1c0)]),this[_0xcc15be(0x1ba)]({'attributes':{'class':[_0xcc15be(0x1b8)]}});}[_0x5d60ba(0x1b7)](_0x14aee2){const _0x5ceb8d=_0x5d60ba;let _0x2682ea=0x0,_0x54e370=0x0;for(const _0x4ad918 of this[_0x5ceb8d(0x1c0)]){const {resultsCount:_0x5e032e,totalItemsCount:_0x119f19}=_0x4ad918[_0x5ceb8d(0x1b7)](_0x14aee2);_0x2682ea+=_0x5e032e,_0x54e370+=_0x119f19;}return{'resultsCount':_0x2682ea,'totalItemsCount':_0x54e370};}}function _0x3afa(){const _0x313f0b=['240565wPLHTD','sections','1770797cxvONM','2113065rZBMJT','2643906QDRaId','24LfnGoC','filter','ck-ai-chat-history__sections','addMany','extendTemplate','665216oQizBl','743736RnskKM','items','13054klQtIR'];_0x3afa=function(){return _0x313f0b;};return _0x3afa();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2687f2=_0x2a94;(function(_0x33e177,_0x14472a){const _0x4b5457=_0x2a94,_0x353575=_0x33e177();while(!![]){try{const _0x3cf3ea=parseInt(_0x4b5457(0x181))/0x1+-parseInt(_0x4b5457(0x168))/0x2+-parseInt(_0x4b5457(0x17f))/0x3+parseInt(_0x4b5457(0x17c))/0x4+parseInt(_0x4b5457(0x18c))/0x5*(-parseInt(_0x4b5457(0x1a4))/0x6)+parseInt(_0x4b5457(0x14e))/0x7*(-parseInt(_0x4b5457(0x167))/0x8)+parseInt(_0x4b5457(0x18e))/0x9;if(_0x3cf3ea===_0x14472a)break;else _0x353575['push'](_0x353575['shift']());}catch(_0x2b140d){_0x353575['push'](_0x353575['shift']());}}}(_0x4aea,0x6772e));import{View as _0x36b455,SearchTextView as _0x276fa8,FormHeaderView as _0x2c3915,ButtonView as _0x308622}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x37fd09,IconCancel as _0x4d846a,IconPlus as _0x5d1582}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x36ebce}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x32c73a}from'./aichathistorylistview.js';function _0x2a94(_0x240b27,_0x15b18a){const _0x4aea60=_0x4aea();return _0x2a94=function(_0x2a947a,_0x187f4d){_0x2a947a=_0x2a947a-0x14e;let _0x30edbd=_0x4aea60[_0x2a947a];return _0x30edbd;},_0x2a94(_0x240b27,_0x15b18a);}import{AIChatHistoryListItemView as _0x28b94c}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x17b87c}from'../aichathistoryui.js';import{AISkeletonView as _0x5aa7bc,SKELETON_DEFINITIONS as _0x404e1a}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3ee0de}from'../../aicore/utils/createresizebutton.js';function _0x4aea(){const _0x4f1c44=['add','push','search','updateHistoryItemsWithCategories','1345772kKfbHZ','isMaximized','isLoading','1517040WlPgRK','change:errorMessage','599936VFsMUh','clear','aiHistory','hasItems','items','render','some','length','setTemplate','extendTemplate','change:hasItems','2020AeOoMi','delegate','6374322NUTGmg','ck-ai-chat__start-conversation','errorMessage','change:isLoading','removeItem','_createSkeletonView','div','AI_CHAT_HISTORY_HEADING','fieldView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_createErrorView','searchView','value','ck-ai-chat-history__empty','AI_CHAT_HISTORY_EMPTY_MESSAGE','skeletonView','bind','locale','emptyView','execute','indexOf','remove','3324XKveCE','getItem','ck-hidden','element','14BxEMSH','_createEmptyStateView','updateTitle','queryView','openChat','updateItemTitle','fire','sectionsView','errorView','updateLoadingState','ck-ai-chat-error__dismiss-button','ck-ai-chat-history','set','updateItemLoadingState','children','ck-reset_all','_refreshSearch','resizeButton','AI_CHAT_LABEL_NEW_CHAT','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createListItemViews','ck-ai-chat-history__empty-message','_createSearchView','isEmptyViewVisible','title','852360KMvmJR','556650OgPmFV','isSearchViewVisible','AI_CHAT_HISTORY_SEARCH_LABEL','ltr','splice','bindTemplate','ck-rounded-corners','isVisible','itemsViews','ck-ai-chat-error','ck-ai-header\x20ck-ai-header_history','sections','ck-ai-chat-history__content','_updateViewVisibility','removeHistoryItem','addMany'];_0x4aea=function(){return _0x4f1c44;};return _0x4aea();}import{getTranslation as _0x4fd4d7}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x36b455{[_0x2687f2(0x199)];[_0x2687f2(0x156)];[_0x2687f2(0x19d)];[_0x2687f2(0x1a0)];[_0x2687f2(0x155)];[_0x2687f2(0x15f)];constructor(_0x134f21,_0x139b86){const _0x3bd5b2=_0x2687f2;super(_0x134f21),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x184),!0x1),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x17e),!0x0),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x190),''),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x17d),!0x1),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x169),!0x1),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x165),!0x1);const _0x5de675=new _0x2c3915(_0x134f21,{'label':_0x4fd4d7(_0x134f21,_0x3bd5b2(0x195)),'icon':_0x37fd09,'class':_0x3bd5b2(0x172)});_0x139b86&&(this[_0x3bd5b2(0x15f)]=_0x3ee0de(_0x134f21,this),_0x5de675[_0x3bd5b2(0x15c)][_0x3bd5b2(0x178)](this[_0x3bd5b2(0x15f)])),this[_0x3bd5b2(0x155)]=new _0x36ebce(_0x134f21,[]),this[_0x3bd5b2(0x155)][_0x3bd5b2(0x18d)](..._0x17b87c)['to'](this),this[_0x3bd5b2(0x156)]=this[_0x3bd5b2(0x198)](),this[_0x3bd5b2(0x19d)]=this[_0x3bd5b2(0x193)](),this[_0x3bd5b2(0x1a0)]=this[_0x3bd5b2(0x14f)](),this[_0x3bd5b2(0x199)]=this[_0x3bd5b2(0x164)](),this['on'](_0x3bd5b2(0x191),()=>this[_0x3bd5b2(0x175)]()),this['on'](_0x3bd5b2(0x18b),()=>this[_0x3bd5b2(0x175)]()),this['on'](_0x3bd5b2(0x180),()=>this[_0x3bd5b2(0x175)]()),this[_0x3bd5b2(0x189)]({'tag':_0x3bd5b2(0x194),'attributes':{'class':['ck',_0x3bd5b2(0x15d),_0x3bd5b2(0x159),_0x3bd5b2(0x16e)],'dir':_0x3bd5b2(0x16b)},'children':[_0x5de675,{'tag':_0x3bd5b2(0x194),'attributes':{'class':[_0x3bd5b2(0x174)]},'children':[this[_0x3bd5b2(0x19d)],this[_0x3bd5b2(0x156)],this[_0x3bd5b2(0x1a0)],this[_0x3bd5b2(0x199)]]}]});}[_0x2687f2(0x175)](){const _0x3bed88=_0x2687f2;this[_0x3bed88(0x169)]=!this[_0x3bed88(0x17e)]&&this[_0x3bed88(0x184)]&&!this[_0x3bed88(0x190)],this[_0x3bed88(0x165)]=!this[_0x3bed88(0x17e)]&&!this[_0x3bed88(0x184)]&&!this[_0x3bed88(0x190)];}[_0x2687f2(0x164)](){const _0x2b9984=_0x2687f2,_0x13b526=new _0x276fa8(this[_0x2b9984(0x19f)],{'filteredView':this[_0x2b9984(0x155)],'queryView':{'label':_0x4fd4d7(this[_0x2b9984(0x19f)],_0x2b9984(0x16a))},'infoView':{'text':{'notFound':{'primary':_0x3fe1b2=>_0x4fd4d7(this[_0x2b9984(0x19f)],_0x2b9984(0x161),_0x3fe1b2),'secondary':_0x4fd4d7(this[_0x2b9984(0x19f)],_0x2b9984(0x197))}}}});return _0x13b526['on'](_0x2b9984(0x186),()=>{const _0x3136bf=_0x2b9984;this[_0x3136bf(0x199)][_0x3136bf(0x15c)][_0x3136bf(0x178)](this[_0x3136bf(0x156)],0x1);}),_0x13b526[_0x2b9984(0x18a)]({'attributes':{'class':[this[_0x2b9984(0x16d)]['if'](_0x2b9984(0x169),_0x2b9984(0x1a6),_0x26ad28=>!_0x26ad28)]}}),_0x13b526;}[_0x2687f2(0x193)](){const _0x2477a0=_0x2687f2,_0x3c8b07=new _0x5aa7bc(this[_0x2477a0(0x19f)],_0x404e1a[_0x2477a0(0x183)]);return _0x3c8b07[_0x2477a0(0x18a)]({'attributes':{'class':[this[_0x2477a0(0x16d)]['if'](_0x2477a0(0x17e),_0x2477a0(0x1a6),_0x3b330f=>!_0x3b330f)]}}),_0x3c8b07;}[_0x2687f2(0x198)](){const _0x1d4301=_0x2687f2,_0x54400c=new _0x36b455(this[_0x1d4301(0x19f)]),_0x5ac646=new _0x308622(this[_0x1d4301(0x19f)]);return _0x5ac646[_0x1d4301(0x15a)]({'withText':!0x1,'icon':_0x4d846a,'class':_0x1d4301(0x158)}),_0x5ac646[_0x1d4301(0x19e)](_0x1d4301(0x16f))['to'](this,_0x1d4301(0x184),_0x52318f=>!!_0x52318f),_0x5ac646['on'](_0x1d4301(0x1a1),()=>{const _0x1e22cb=_0x1d4301;this[_0x1e22cb(0x190)]='';}),_0x54400c[_0x1d4301(0x189)]({'tag':_0x1d4301(0x194),'attributes':{'class':['ck',_0x1d4301(0x171),this[_0x1d4301(0x16d)]['if'](_0x1d4301(0x190),_0x1d4301(0x1a6),_0x48862f=>!_0x48862f)]},'children':[{'tag':'p','children':[{'text':this[_0x1d4301(0x16d)]['to'](_0x1d4301(0x190))}]},_0x5ac646]}),_0x54400c;}[_0x2687f2(0x14f)](){const _0x51e9b9=_0x2687f2,_0x5d40ac=new _0x308622(this[_0x51e9b9(0x19f)]);_0x5d40ac[_0x51e9b9(0x15a)]({'label':_0x4fd4d7(this[_0x51e9b9(0x19f)],_0x51e9b9(0x160)),'withText':!0x0,'icon':_0x5d1582,'class':_0x51e9b9(0x18f)}),_0x5d40ac['on'](_0x51e9b9(0x1a1),()=>{const _0x204a92=_0x51e9b9;this[_0x204a92(0x154)](_0x204a92(0x152));});const _0x484336=new _0x36b455(this[_0x51e9b9(0x19f)]);return _0x484336[_0x51e9b9(0x189)]({'tag':_0x51e9b9(0x194),'attributes':{'class':[_0x51e9b9(0x19b),this[_0x51e9b9(0x16d)]['if'](_0x51e9b9(0x165),_0x51e9b9(0x1a6),_0x3efece=>!_0x3efece)]},'children':[{'tag':'p','attributes':{'class':[_0x51e9b9(0x163)]},'children':[_0x4fd4d7(this[_0x51e9b9(0x19f)],_0x51e9b9(0x19c))]},_0x5d40ac]}),_0x484336;}[_0x2687f2(0x162)](_0x9b9370,_0x3316b4){const _0x5ebe8b=_0x2687f2,_0x41e444=[];for(const _0x57fa26 of _0x9b9370){const _0x1fcfc4=new _0x28b94c(_0x3316b4,_0x57fa26);_0x1fcfc4[_0x5ebe8b(0x18d)](..._0x17b87c)['to'](this),_0x41e444[_0x5ebe8b(0x179)](_0x1fcfc4);}return _0x41e444;}[_0x2687f2(0x17b)](_0x3d7f5c){const _0x28b4e0=_0x2687f2,_0x53f874=this[_0x28b4e0(0x19f)]||'en',_0x50f0aa=[];for(const _0x1869ab of _0x3d7f5c){const _0x33a8e4=this[_0x28b4e0(0x162)](_0x1869ab[_0x28b4e0(0x185)],_0x53f874);_0x50f0aa[_0x28b4e0(0x179)](new _0x32c73a(_0x53f874,{'title':_0x1869ab[_0x28b4e0(0x166)],'items':_0x33a8e4}));}this[_0x28b4e0(0x155)][_0x28b4e0(0x173)]=_0x50f0aa,this[_0x28b4e0(0x155)][_0x28b4e0(0x185)][_0x28b4e0(0x182)](),this[_0x28b4e0(0x155)][_0x28b4e0(0x185)][_0x28b4e0(0x177)](_0x50f0aa),this[_0x28b4e0(0x184)]=_0x3d7f5c[_0x28b4e0(0x187)](_0x199f98=>_0x199f98[_0x28b4e0(0x185)][_0x28b4e0(0x188)]>0x0),this[_0x28b4e0(0x15e)]();}[_0x2687f2(0x176)](_0x2b57bb){const _0xb0abbf=_0x2687f2;for(const _0x4d0203 of this[_0xb0abbf(0x155)][_0xb0abbf(0x173)]){const _0x1477c2=_0x4d0203[_0xb0abbf(0x1a5)](_0x2b57bb);if(_0x1477c2){if(_0x4d0203[_0xb0abbf(0x192)](_0x1477c2),0x0===_0x4d0203[_0xb0abbf(0x170)][_0xb0abbf(0x188)]){const _0x2ffbd6=this[_0xb0abbf(0x155)][_0xb0abbf(0x173)][_0xb0abbf(0x1a2)](_0x4d0203);-0x1!==_0x2ffbd6&&(this[_0xb0abbf(0x155)][_0xb0abbf(0x173)][_0xb0abbf(0x16c)](_0x2ffbd6,0x1),this[_0xb0abbf(0x155)][_0xb0abbf(0x185)][_0xb0abbf(0x1a3)](_0x4d0203));}this[_0xb0abbf(0x184)]=this[_0xb0abbf(0x155)][_0xb0abbf(0x173)][_0xb0abbf(0x188)]>0x0,this[_0xb0abbf(0x15e)]();break;}}}[_0x2687f2(0x153)](_0x4becf9,_0x40334c){const _0x1eddc0=_0x2687f2;for(const _0x5b3748 of this[_0x1eddc0(0x155)][_0x1eddc0(0x173)]){const _0x3bea96=_0x5b3748[_0x1eddc0(0x1a5)](_0x4becf9);if(_0x3bea96){_0x3bea96[_0x1eddc0(0x150)](_0x40334c);break;}}}[_0x2687f2(0x15b)](_0x63856a,_0x25c027,_0x34d7f){const _0x177b45=_0x2687f2;for(const _0x22a195 of this[_0x177b45(0x155)][_0x177b45(0x173)]){const _0x84c171=_0x22a195[_0x177b45(0x1a5)](_0x63856a);if(_0x84c171){_0x84c171[_0x177b45(0x157)](_0x25c027,_0x34d7f);break;}}}[_0x2687f2(0x15e)](){const _0x52ac81=_0x2687f2;if(this[_0x52ac81(0x184)]){const _0x3754c1=this[_0x52ac81(0x199)][_0x52ac81(0x151)][_0x52ac81(0x196)]?.[_0x52ac81(0x1a7)]?.[_0x52ac81(0x19a)]||'';this[_0x52ac81(0x199)][_0x52ac81(0x17a)](_0x3754c1);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xa37214=_0x2270;(function(_0x1ca782,_0x1187f6){const _0x29acdb=_0x2270,_0x34eaa5=_0x1ca782();while(!![]){try{const _0xd1fcd8=-parseInt(_0x29acdb(0x132))/0x1+parseInt(_0x29acdb(0x152))/0x2*(-parseInt(_0x29acdb(0x160))/0x3)+-parseInt(_0x29acdb(0x142))/0x4+-parseInt(_0x29acdb(0x167))/0x5+-parseInt(_0x29acdb(0x198))/0x6*(parseInt(_0x29acdb(0x14a))/0x7)+-parseInt(_0x29acdb(0x16f))/0x8+parseInt(_0x29acdb(0x153))/0x9;if(_0xd1fcd8===_0x1187f6)break;else _0x34eaa5['push'](_0x34eaa5['shift']());}catch(_0x5b9f1b){_0x34eaa5['push'](_0x34eaa5['shift']());}}}(_0x573d,0x52203));function _0x2270(_0x21a44e,_0x14aeac){const _0x573d06=_0x573d();return _0x2270=function(_0x22704f,_0x1c3fc8){_0x22704f=_0x22704f-0x11f;let _0x4b69c3=_0x573d06[_0x22704f];return _0x4b69c3;},_0x2270(_0x21a44e,_0x14aeac);}import{createParser as _0x45f688}from'eventsource-parser';function _0x573d(){const _0x79d8c1=['50JaODgh','20415753HYwgIy','uploadDocument','executeAction','queryAssistant','FIX_GRAMMAR','group','/conversations?','/documents','uploadUrl','AbortError','/actions/custom/calls/','fetchConversationMessages','attributes','30036eyWbpV','/messages/','upsertAIChatRating','fetchDocument','executeCustomAction','excludeEmpty','length','588420mmSqmN','releaseLock','getReader','/ratings','ai-request-aborted','text','uploadFile','toString','4402856TnltIR','isOfficialPlugin','make-tone-formal','value','catch','name','define','ai-missing-token','append','totalCount','_sendApiRequest','keys','MAKE_LONGER','search','startConversation','callSystemReview','upsertAIReviewRating','/web-resources/','abortController','/reviews/system/','MAKE_TONE_CASUAL','https://ai.cke-cs.com/v1','_getStreamReader','AIConnector','updateConversation','MAKE_TONE_FORMAL','_handleError','fetchConversations','continue','deleteConversation','pluginName','/web-resources','callCustomReview','/reviews/custom/calls','request','ai-request-failed','POST','json','translate','100','/files','1974rjuDiF','Bearer\x20','file','true','/messages','/actions/system/','CloudServices','Content-Type','IMPROVE_WRITING','token','make-tone-casual','signal','stringify','/calls','parse','data','/reviews/custom/calls/','push','/documents/','limit','_decoder','getModels','/files/','plugins','_apiUrl','_token','upsertCustomAIActionRating','config','fetchConversation','PUT','PATCH','/actions/custom/calls','CONTINUE','make-longer','reset','upsertCustomAIReviewRating','upsertAIActionRating','make-shorter','TRANSLATE','162918zBJFOY','deleteDocument','GET','positiveCount','context','fix-grammar','body','application/json','ai.serviceUrl','modificationId','then','statusText','feed','isPremiumPlugin','deleteWebResource','improve-writing','1325120GBZKkr','/conversations/','/calls/','get','read','deleteFile','items','decode','11053rjnbNF','MAKE_SHORTER','init','/conversations','status','requires','/models/1','DELETE'];_0x573d=function(){return _0x79d8c1;};return _0x573d();}import{ContextPlugin as _0x38ad55}from'ckeditor5/src/core.js';import{CKEditorError as _0x5a2083}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x36ab73){const _0x1fe90f=_0x2270;_0x36ab73[_0x1fe90f(0x12b)]=_0x1fe90f(0x18b),_0x36ab73[_0x1fe90f(0x157)]=_0x1fe90f(0x137),_0x36ab73[_0x1fe90f(0x1a0)]=_0x1fe90f(0x141),_0x36ab73[_0x1fe90f(0x17b)]=_0x1fe90f(0x12c),_0x36ab73[_0x1fe90f(0x14b)]=_0x1fe90f(0x130),_0x36ab73[_0x1fe90f(0x183)]=_0x1fe90f(0x1a2),_0x36ab73[_0x1fe90f(0x188)]=_0x1fe90f(0x171),_0x36ab73[_0x1fe90f(0x131)]=_0x1fe90f(0x195);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x38ad55{[_0xa37214(0x123)];[_0xa37214(0x124)];[_0xa37214(0x11f)];static get[_0xa37214(0x14f)](){const _0x5ac90a=_0xa37214;return[_0x5ac90a(0x19e)];}static get[_0xa37214(0x18d)](){const _0x3b0c1f=_0xa37214;return _0x3b0c1f(0x186);}static get[_0xa37214(0x170)](){return!0x0;}static get[_0xa37214(0x13f)](){return!0x0;}constructor(_0x38e20b){const _0x54eb8e=_0xa37214;super(_0x38e20b),this[_0x54eb8e(0x136)][_0x54eb8e(0x126)][_0x54eb8e(0x175)](_0x54eb8e(0x13a),_0x54eb8e(0x184)),this[_0x54eb8e(0x123)]=this[_0x54eb8e(0x136)][_0x54eb8e(0x126)][_0x54eb8e(0x145)](_0x54eb8e(0x13a)),this[_0x54eb8e(0x124)]=null,this[_0x54eb8e(0x11f)]=new TextDecoder();}[_0xa37214(0x14c)](){const _0x1ea687=_0xa37214,_0x28155e=this[_0x1ea687(0x136)][_0x1ea687(0x122)][_0x1ea687(0x145)](_0x1ea687(0x19e));if(!_0x28155e[_0x1ea687(0x1a1)])throw new _0x5a2083(_0x1ea687(0x176),this);this[_0x1ea687(0x124)]=_0x28155e[_0x1ea687(0x1a1)];}[_0xa37214(0x17d)](_0x4db7fb,_0xa4ea43){const _0x1ffc07=_0xa37214,_0x32a4cd=this[_0x1ffc07(0x179)](_0x1ffc07(0x14d),_0x1ffc07(0x193),{'id':_0x4db7fb,'group':_0xa4ea43});return{'getConversation':async()=>(await _0x32a4cd[_0x1ffc07(0x191)])[_0x1ffc07(0x194)](),'abortController':_0x32a4cd[_0x1ffc07(0x181)]};}[_0xa37214(0x156)]({message:_0x3bfd41,conversationId:_0x5f2eb1,parts:_0x55211b,capabilities:_0x499447,model:_0x551032,quickActionData:_0x1b0c21}){const _0x46e3a1=_0xa37214,_0x30bd00={..._0x1b0c21&&{'quickActionData':_0x1b0c21}},_0x2d4d5c={'prompt':_0x3bfd41,'content':_0x55211b,'model':_0x551032,..._0x499447&&{'capabilities':_0x499447},...Object[_0x46e3a1(0x17a)](_0x30bd00)[_0x46e3a1(0x166)]>0x0&&{'attributes':_0x30bd00}},_0x144d47=this[_0x46e3a1(0x179)](_0x46e3a1(0x143)+_0x5f2eb1+_0x46e3a1(0x19c),_0x46e3a1(0x193),_0x2d4d5c);return{'getStream':async()=>{const _0x4462be=_0x46e3a1,_0x3fc177=(await _0x144d47[_0x4462be(0x191)])[_0x4462be(0x138)];return this[_0x4462be(0x185)](_0x3fc177);},'abortController':_0x144d47[_0x46e3a1(0x181)]};}[_0xa37214(0x164)]({content:_0x541fc4,message:_0xe7d835,model:_0x35dd4a,outputFormat:_0x264918}){const _0x1c5232=_0xa37214,_0x47f14b={'content':[{'type':_0x1c5232(0x16c),'content':_0x541fc4}],'prompt':_0xe7d835,'model':_0x35dd4a,'outputFormat':_0x264918},_0x5ba83c=this[_0x1c5232(0x179)](_0x1c5232(0x12a),_0x1c5232(0x193),_0x47f14b);return{'getStream':async()=>{const _0x3ad652=_0x1c5232,_0x2d2c66=(await _0x5ba83c[_0x3ad652(0x191)])[_0x3ad652(0x138)];return this[_0x3ad652(0x185)](_0x2d2c66);},'abortController':_0x5ba83c[_0x1c5232(0x181)]};}[_0xa37214(0x155)]({actionName:_0x3ae266,content:_0x260d44,args:_0x5faa48}){const _0x1ac8dd=_0xa37214,_0x31609e={'content':[{'type':_0x1ac8dd(0x16c),'content':_0x260d44}],'args':_0x5faa48},_0x2255f8=this[_0x1ac8dd(0x179)](_0x1ac8dd(0x19d)+_0x3ae266+_0x1ac8dd(0x1a5),_0x1ac8dd(0x193),_0x31609e);return{'getStream':async()=>{const _0x191183=_0x1ac8dd,_0x97f332=(await _0x2255f8[_0x191183(0x191)])[_0x191183(0x138)];return this[_0x191183(0x185)](_0x97f332);},'abortController':_0x2255f8[_0x1ac8dd(0x181)]};}[_0xa37214(0x16d)](_0x32a312,_0xe84774,_0x20465a){const _0x25e233=_0xa37214,_0x1f58d4=new FormData();_0x1f58d4[_0x25e233(0x177)](_0x25e233(0x19a),_0xe84774,_0xe84774[_0x25e233(0x174)]),_0x20465a&&_0x1f58d4[_0x25e233(0x177)](_0x25e233(0x15f),JSON[_0x25e233(0x1a4)](_0x20465a));const _0x45c661=this[_0x25e233(0x179)](_0x25e233(0x143)+_0x32a312+_0x25e233(0x197),_0x25e233(0x193),_0x1f58d4);return{'getId':async()=>(await _0x45c661[_0x25e233(0x191)])[_0x25e233(0x194)](),'abortController':_0x45c661[_0x25e233(0x181)]};}[_0xa37214(0x163)](_0x1211bc,_0x40aea1){const _0x57e1a1=_0xa37214,_0x34b5c6=this[_0x57e1a1(0x179)](_0x57e1a1(0x143)+_0x1211bc+_0x57e1a1(0x1aa)+_0x40aea1,_0x57e1a1(0x134));return{'getDocument':async()=>(await _0x34b5c6[_0x57e1a1(0x191)])[_0x57e1a1(0x194)](),'abortController':_0x34b5c6[_0x57e1a1(0x181)]};}[_0xa37214(0x154)](_0x5c35f4,_0x118cc3,_0x4e66d8){const _0x535d1c=_0xa37214,_0xc39e36={'content':_0x118cc3};_0x4e66d8&&(_0xc39e36[_0x535d1c(0x15f)]=_0x4e66d8);const _0x2dc571=this[_0x535d1c(0x179)](_0x535d1c(0x143)+_0x5c35f4+_0x535d1c(0x15a),_0x535d1c(0x193),_0xc39e36);return{'getId':async()=>(await _0x2dc571[_0x535d1c(0x191)])[_0x535d1c(0x194)](),'abortController':_0x2dc571[_0x535d1c(0x181)]};}[_0xa37214(0x18a)](_0x5ae149,_0xeb725){const _0x59afb8=_0xa37214,_0x4a5420=new URLSearchParams();_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x165),_0x59afb8(0x19b)),_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x1ab),_0x59afb8(0x196)),_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x158),_0x5ae149),_0xeb725&&_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x17c),_0xeb725);const _0x2e3c92=this[_0x59afb8(0x179)](_0x59afb8(0x159)+_0x4a5420[_0x59afb8(0x16e)](),_0x59afb8(0x134));return{'getConversations':async()=>{const _0x3f1e2d=_0x59afb8,_0x1e0574=await _0x2e3c92[_0x3f1e2d(0x191)];return(await _0x1e0574[_0x3f1e2d(0x194)]())[_0x3f1e2d(0x148)];},'abortController':_0x2e3c92[_0x59afb8(0x181)]};}[_0xa37214(0x18c)](_0x2fcd1b){const _0x5d6067=_0xa37214,_0x256a2f=this[_0x5d6067(0x179)](_0x5d6067(0x143)+_0x2fcd1b,_0x5d6067(0x151));return{'execute':async()=>{const _0x3e2254=_0x5d6067;await _0x256a2f[_0x3e2254(0x191)];},'abortController':_0x256a2f[_0x5d6067(0x181)]};}[_0xa37214(0x187)](_0x136f33,_0x51c162){const _0x3dc4ff=_0xa37214,_0x29ff9f=this[_0x3dc4ff(0x179)](_0x3dc4ff(0x143)+_0x136f33,_0x3dc4ff(0x129),_0x51c162);return{'getResult':async()=>(await _0x29ff9f[_0x3dc4ff(0x191)],_0x51c162),'abortController':_0x29ff9f[_0x3dc4ff(0x181)]};}[_0xa37214(0x127)](_0x1b213b){const _0x23d999=_0xa37214,_0x74738=this[_0x23d999(0x179)](_0x23d999(0x143)+_0x1b213b,_0x23d999(0x134));return{'getConversation':async()=>(await _0x74738[_0x23d999(0x191)])[_0x23d999(0x194)](),'abortController':_0x74738[_0x23d999(0x181)]};}[_0xa37214(0x15e)](_0x46748b){const _0x852819=_0xa37214,_0x538e8e=this[_0x852819(0x179)](_0x852819(0x143)+_0x46748b+_0x852819(0x19c),_0x852819(0x134));return{'getMessages':async()=>{const _0x366e9e=_0x852819,_0x1f8d31=await _0x538e8e[_0x366e9e(0x191)];return(await _0x1f8d31[_0x366e9e(0x194)]())[_0x366e9e(0x148)];},'abortController':_0x538e8e[_0x852819(0x181)]};}[_0xa37214(0x15b)](_0x3f8d27,_0x55a92c,_0x228e5c){const _0x4610c8=_0xa37214,_0x3f6426=this[_0x4610c8(0x179)](_0x4610c8(0x143)+_0x3f8d27+_0x4610c8(0x18e),_0x4610c8(0x193),{'url':_0x55a92c,'attributes':_0x228e5c});return{'getId':async()=>(await _0x3f6426[_0x4610c8(0x191)])[_0x4610c8(0x194)](),'abortController':_0x3f6426[_0x4610c8(0x181)]};}[_0xa37214(0x120)](){const _0x30f3b9=_0xa37214,_0x417a8b=this[_0x30f3b9(0x179)](_0x30f3b9(0x150),_0x30f3b9(0x134));return{'list':async()=>await(await _0x417a8b[_0x30f3b9(0x191)])[_0x30f3b9(0x194)](),'abortController':_0x417a8b[_0x30f3b9(0x181)]};}[_0xa37214(0x147)](_0x31d7fd,_0x378b9f){const _0x4f6350=_0xa37214,_0x36f25e=this[_0x4f6350(0x179)](_0x4f6350(0x143)+_0x31d7fd+_0x4f6350(0x121)+_0x378b9f,_0x4f6350(0x151));return{'execute':async()=>{const _0x32488f=_0x4f6350;await _0x36f25e[_0x32488f(0x191)];},'abortController':_0x36f25e[_0x4f6350(0x181)]};}[_0xa37214(0x133)](_0xea30ae,_0x36643f){const _0x283d19=_0xa37214,_0x32240c=this[_0x283d19(0x179)](_0x283d19(0x143)+_0xea30ae+_0x283d19(0x1aa)+_0x36643f,_0x283d19(0x151));return{'execute':async()=>{const _0x32c7f5=_0x283d19;await _0x32240c[_0x32c7f5(0x191)];},'abortController':_0x32240c[_0x283d19(0x181)]};}[_0xa37214(0x140)](_0x92bbe9,_0x3cde9f){const _0x375bb3=_0xa37214,_0x525491=this[_0x375bb3(0x179)](_0x375bb3(0x143)+_0x92bbe9+_0x375bb3(0x180)+_0x3cde9f,_0x375bb3(0x151));return{'execute':async()=>{const _0xcd8fde=_0x375bb3;await _0x525491[_0xcd8fde(0x191)];},'abortController':_0x525491[_0x375bb3(0x181)]};}[_0xa37214(0x17e)]({reviewName:_0x20c6b2,content:_0x23a74e,args:_0x4cbe45}){const _0x5a73dd=_0xa37214,_0x4ea7b5=this[_0x5a73dd(0x179)](_0x5a73dd(0x182)+_0x20c6b2+_0x5a73dd(0x1a5),_0x5a73dd(0x193),{'content':[{'type':_0x5a73dd(0x16c),'content':_0x23a74e}],'args':_0x4cbe45});return{'getStream':async()=>{const _0x42e123=_0x5a73dd,_0x19eaae=(await _0x4ea7b5[_0x42e123(0x191)])[_0x42e123(0x138)];return this[_0x42e123(0x185)](_0x19eaae);},'abortController':_0x4ea7b5[_0x5a73dd(0x181)]};}[_0xa37214(0x18f)]({content:_0x38e0c3,prompt:_0x673368,model:_0x264440}){const _0x2bf373=_0xa37214,_0x2037eb=this[_0x2bf373(0x179)](_0x2bf373(0x190),_0x2bf373(0x193),{'content':[{'type':_0x2bf373(0x16c),'content':_0x38e0c3}],'prompt':_0x673368,'model':_0x264440});return{'getStream':async()=>{const _0x5be7a5=_0x2bf373,_0x194909=(await _0x2037eb[_0x5be7a5(0x191)])[_0x5be7a5(0x138)];return this[_0x5be7a5(0x185)](_0x194909);},'abortController':_0x2037eb[_0x2bf373(0x181)]};}[_0xa37214(0x162)](_0x5ec74f,_0x3f7e39,_0x443112){const _0x319fa0=_0xa37214,_0x535120=this[_0x319fa0(0x179)](_0x319fa0(0x143)+_0x5ec74f+_0x319fa0(0x161)+_0x3f7e39+_0x319fa0(0x16a),_0x319fa0(0x128),{'positiveCount':_0x443112[_0x319fa0(0x135)],'totalCount':_0x443112[_0x319fa0(0x178)],'modificationId':_0x443112[_0x319fa0(0x13b)]});return{'execute':async()=>{const _0x46f027=_0x319fa0;await _0x535120[_0x46f027(0x191)];},'abortController':_0x535120[_0x319fa0(0x181)]};}[_0xa37214(0x12f)](_0x3b5b85,_0x5be6e2,_0x5159c8){const _0x2ddb3b=_0xa37214,_0x1cb9df=this[_0x2ddb3b(0x179)](_0x2ddb3b(0x19d)+_0x3b5b85+_0x2ddb3b(0x144)+_0x5be6e2+_0x2ddb3b(0x16a),_0x2ddb3b(0x128),{'positiveCount':_0x5159c8[_0x2ddb3b(0x135)],'totalCount':_0x5159c8[_0x2ddb3b(0x178)]});return{'execute':async()=>{const _0x271e57=_0x2ddb3b;await _0x1cb9df[_0x271e57(0x191)];},'abortController':_0x1cb9df[_0x2ddb3b(0x181)]};}[_0xa37214(0x125)](_0x1d6793,_0x24b445){const _0x1a9e36=_0xa37214,_0x5431ff=this[_0x1a9e36(0x179)](_0x1a9e36(0x15d)+_0x1d6793+_0x1a9e36(0x16a),_0x1a9e36(0x128),{'positiveCount':_0x24b445[_0x1a9e36(0x135)],'totalCount':_0x24b445[_0x1a9e36(0x178)]});return{'execute':async()=>{const _0x37a87e=_0x1a9e36;await _0x5431ff[_0x37a87e(0x191)];},'abortController':_0x5431ff[_0x1a9e36(0x181)]};}[_0xa37214(0x17f)](_0x3c7418,_0x3d33ba,_0x2e0759,_0x5d266f){const _0x1be42a=_0xa37214,_0x1417aa=this[_0x1be42a(0x179)](_0x1be42a(0x182)+_0x3c7418+_0x1be42a(0x144)+_0x3d33ba+_0x1be42a(0x16a),_0x1be42a(0x128),{'positiveCount':_0x2e0759[_0x1be42a(0x135)],'totalCount':_0x2e0759[_0x1be42a(0x178)],'dataId':_0x5d266f});return{'execute':async()=>{const _0x3359b1=_0x1be42a;await _0x1417aa[_0x3359b1(0x191)];},'abortController':_0x1417aa[_0x1be42a(0x181)]};}[_0xa37214(0x12e)](_0x6cbe24,_0x2998d3,_0x398e1e){const _0x586b23=_0xa37214,_0x2a42ea=this[_0x586b23(0x179)](_0x586b23(0x1a8)+_0x6cbe24+_0x586b23(0x16a),_0x586b23(0x128),{'positiveCount':_0x2998d3[_0x586b23(0x135)],'totalCount':_0x2998d3[_0x586b23(0x178)],'dataId':_0x398e1e});return{'execute':async()=>{const _0x5ee16d=_0x586b23;await _0x2a42ea[_0x5ee16d(0x191)];},'abortController':_0x2a42ea[_0x586b23(0x181)]};}[_0xa37214(0x179)](_0x5cbb42,_0x5f1b0f,_0x506316){const _0x1f8d47=_0xa37214,_0x348be5=new AbortController(),_0x406cd4=_0x506316 instanceof FormData,_0xa467c={'Authorization':_0x1f8d47(0x199)+this[_0x1f8d47(0x124)]?.[_0x1f8d47(0x172)]};_0x506316&&!_0x406cd4&&(_0xa467c[_0x1f8d47(0x19f)]=_0x1f8d47(0x139));const _0x3a9b99={'method':_0x5f1b0f,'headers':_0xa467c,'signal':_0x348be5[_0x1f8d47(0x1a3)]};return _0x506316&&(_0x3a9b99[_0x1f8d47(0x138)]=_0x406cd4?_0x506316:JSON[_0x1f8d47(0x1a4)](_0x506316)),{'request':fetch(''+this[_0x1f8d47(0x123)]+_0x5cbb42,_0x3a9b99)[_0x1f8d47(0x173)](_0x1c7b67=>{const _0x2a15fb=_0x1f8d47;this[_0x2a15fb(0x189)](_0x1c7b67);})[_0x1f8d47(0x13c)](_0x4e80a2=>{const _0x5bf6c9=_0x1f8d47;if(!_0x4e80a2['ok'])throw new _0x5a2083(_0x5bf6c9(0x192),this,{'url':this[_0x5bf6c9(0x123)],'path':_0x5cbb42,'method':_0x5f1b0f,'body':_0x506316,'status':(_0x4e80a2||{})[_0x5bf6c9(0x14e)],'statusText':(_0x4e80a2||{})[_0x5bf6c9(0x13d)]});return _0x4e80a2;}),'abortController':_0x348be5};}async*[_0xa37214(0x185)](_0x4519fa){const _0x275a60=_0xa37214,_0x345a91=[],_0x3e8e6b=_0x4519fa[_0x275a60(0x169)](),_0x52751d=_0x45f688({'onError':_0x275594=>{const _0x39808a=_0x275a60;this[_0x39808a(0x189)](_0x275594);},'onEvent':_0x211c1e=>{const _0x4528b2=_0x275a60;_0x211c1e[_0x4528b2(0x1a7)]=JSON[_0x4528b2(0x1a6)](_0x211c1e[_0x4528b2(0x1a7)]),_0x345a91[_0x4528b2(0x1a9)](_0x211c1e);}});try{let _0x1025e2=!0x1;for(;!_0x1025e2;){const {done:_0x49f2d5,value:_0x5552a9}=await _0x3e8e6b[_0x275a60(0x146)]();_0x49f2d5&&(_0x1025e2=!0x0),_0x52751d[_0x275a60(0x13e)](this[_0x275a60(0x11f)][_0x275a60(0x149)](_0x5552a9,{'stream':!0x0})),yield*_0x345a91,_0x345a91[_0x275a60(0x166)]=0x0;}}catch(_0x4b4c88){this[_0x275a60(0x189)](_0x4b4c88);}finally{_0x3e8e6b[_0x275a60(0x168)](),_0x52751d[_0x275a60(0x12d)]();}}[_0xa37214(0x189)](_0x156e35){const _0x2b3887=_0xa37214;if(_0x156e35 instanceof _0x5a2083)throw _0x156e35;if(_0x156e35 instanceof Error&&_0x2b3887(0x15c)===_0x156e35[_0x2b3887(0x174)])throw new _0x5a2083(_0x2b3887(0x16b),this,{'originalError':_0x156e35});throw new _0x5a2083(_0x2b3887(0x192),this,{'originalError':_0x156e35});}}
|
|
23
|
+
const _0x51e0ed=_0x515e;(function(_0x57ec7f,_0x3b6149){const _0x4068be=_0x515e,_0x41eda3=_0x57ec7f();while(!![]){try{const _0x3ca5cb=-parseInt(_0x4068be(0x1ee))/0x1+parseInt(_0x4068be(0x258))/0x2*(parseInt(_0x4068be(0x213))/0x3)+parseInt(_0x4068be(0x222))/0x4+-parseInt(_0x4068be(0x26f))/0x5+parseInt(_0x4068be(0x23e))/0x6*(-parseInt(_0x4068be(0x1f5))/0x7)+-parseInt(_0x4068be(0x262))/0x8+parseInt(_0x4068be(0x240))/0x9;if(_0x3ca5cb===_0x3b6149)break;else _0x41eda3['push'](_0x41eda3['shift']());}catch(_0x2d2a01){_0x41eda3['push'](_0x41eda3['shift']());}}}(_0x4bb9,0xd154b));import{createParser as _0x9dc336}from'eventsource-parser';function _0x4bb9(){const _0x2862ea=['/reviews/custom/calls/','make-shorter','then','continue','/ratings','file','config','abortController','group','getModels','queryAssistant','requires','push','PATCH','_decoder','MAKE_SHORTER','getReader','/messages/','plugins','_token','AbortError','token','FIX_GRAMMAR','make-tone-casual','AIConnector','upsertAIChatRating','/documents/','statusText','3kpwEXo','ai-request-failed','deleteDocument','define','DELETE','status','/reviews/system/','callCustomReview','feed','callSystemReview','deleteWebResource','ai.serviceUrl','attributes','Bearer\x20','/messages','5454736PqpEcq','Content-Type','executeAction','uploadUrl','init','text','decode','deleteConversation','CloudServices','true','ai-missing-token','/conversations/','fetchDocument','/files/','TRANSLATE','search','append','startConversation','ai-request-aborted','100','_sendApiRequest','upsertAIActionRating','translate','request','stringify','fetchConversationMessages','toString','/conversations?','6eAXxci','uploadFile','32157549UmShLx','/calls/','_apiUrl','body','data','upsertAIReviewRating','/reviews/custom/calls','fetchConversation','/models/1','isPremiumPlugin','fetchConversations','totalCount','executeCustomAction','isOfficialPlugin','upsertCustomAIReviewRating','CONTINUE','improve-writing','limit','IMPROVE_WRITING','/calls','reset','/actions/custom/calls/','name','releaseLock','807816TaLMYL','application/json','modificationId','value','fix-grammar','updateConversation','signal','catch','length','context','11894600oaHEzT','/conversations','MAKE_TONE_CASUAL','PUT','positiveCount','/documents','_handleError','excludeEmpty','GET','make-tone-formal','_getStreamReader','items','https://ai.cke-cs.com/v1','6698140ksOHBL','json','MAKE_LONGER','get','upsertCustomAIActionRating','keys','/web-resources','POST','uploadDocument','/actions/custom/calls','/files','parse','281565DDpaeS','/web-resources/','MAKE_TONE_FORMAL','read','deleteFile','make-longer','/actions/system/','9626512UMNHKm','pluginName'];_0x4bb9=function(){return _0x2862ea;};return _0x4bb9();}import{ContextPlugin as _0x35edf8}from'ckeditor5/src/core.js';import{CKEditorError as _0x349de8}from'ckeditor5/src/utils.js';export var AIActionsNames;function _0x515e(_0x1d9d4b,_0x2e1d22){const _0x4bb981=_0x4bb9();return _0x515e=function(_0x515ebc,_0x4f0358){_0x515ebc=_0x515ebc-0x1e7;let _0x1deab5=_0x4bb981[_0x515ebc];return _0x1deab5;},_0x515e(_0x1d9d4b,_0x2e1d22);}!function(_0x5036d3){const _0x1329cd=_0x515e;_0x5036d3[_0x1329cd(0x24f)]=_0x1329cd(0x1fa),_0x5036d3[_0x1329cd(0x20d)]=_0x1329cd(0x25c),_0x5036d3[_0x1329cd(0x252)]=_0x1329cd(0x250),_0x5036d3[_0x1329cd(0x271)]=_0x1329cd(0x1f3),_0x5036d3[_0x1329cd(0x206)]=_0x1329cd(0x1f8),_0x5036d3[_0x1329cd(0x264)]=_0x1329cd(0x20e),_0x5036d3[_0x1329cd(0x1f0)]=_0x1329cd(0x26b),_0x5036d3[_0x1329cd(0x230)]=_0x1329cd(0x238);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x35edf8{[_0x51e0ed(0x242)];[_0x51e0ed(0x20a)];[_0x51e0ed(0x205)];static get[_0x51e0ed(0x202)](){const _0x2cde27=_0x51e0ed;return[_0x2cde27(0x22a)];}static get[_0x51e0ed(0x1f6)](){const _0x149396=_0x51e0ed;return _0x149396(0x20f);}static get[_0x51e0ed(0x24d)](){return!0x0;}static get[_0x51e0ed(0x249)](){return!0x0;}constructor(_0x283da2){const _0x15c0d3=_0x51e0ed;super(_0x283da2),this[_0x15c0d3(0x261)][_0x15c0d3(0x1fd)][_0x15c0d3(0x216)](_0x15c0d3(0x21e),_0x15c0d3(0x26e)),this[_0x15c0d3(0x242)]=this[_0x15c0d3(0x261)][_0x15c0d3(0x1fd)][_0x15c0d3(0x272)](_0x15c0d3(0x21e)),this[_0x15c0d3(0x20a)]=null,this[_0x15c0d3(0x205)]=new TextDecoder();}[_0x51e0ed(0x226)](){const _0xc32aa0=_0x51e0ed,_0x4950a5=this[_0xc32aa0(0x261)][_0xc32aa0(0x209)][_0xc32aa0(0x272)](_0xc32aa0(0x22a));if(!_0x4950a5[_0xc32aa0(0x20c)])throw new _0x349de8(_0xc32aa0(0x22c),this);this[_0xc32aa0(0x20a)]=_0x4950a5[_0xc32aa0(0x20c)];}[_0x51e0ed(0x233)](_0x4df5a5,_0x4cef01){const _0x2c8c6f=_0x51e0ed,_0x320a0e=this[_0x2c8c6f(0x236)](_0x2c8c6f(0x263),_0x2c8c6f(0x1e9),{'id':_0x4df5a5,'group':_0x4cef01});return{'getConversation':async()=>(await _0x320a0e[_0x2c8c6f(0x239)])[_0x2c8c6f(0x270)](),'abortController':_0x320a0e[_0x2c8c6f(0x1fe)]};}[_0x51e0ed(0x201)]({message:_0x28765d,conversationId:_0x17fa4b,parts:_0x574f00,capabilities:_0x3ea7b2,model:_0x56de3d,quickActionData:_0x5aa6f2}){const _0x4a455e=_0x51e0ed,_0xc96158={..._0x5aa6f2&&{'quickActionData':_0x5aa6f2}},_0x1c566a={'prompt':_0x28765d,'content':_0x574f00,'model':_0x56de3d,..._0x3ea7b2&&{'capabilities':_0x3ea7b2},...Object[_0x4a455e(0x1e7)](_0xc96158)[_0x4a455e(0x260)]>0x0&&{'attributes':_0xc96158}},_0x55dc51=this[_0x4a455e(0x236)](_0x4a455e(0x22d)+_0x17fa4b+_0x4a455e(0x221),_0x4a455e(0x1e9),_0x1c566a);return{'getStream':async()=>{const _0x9b9642=_0x4a455e,_0x46948d=(await _0x55dc51[_0x9b9642(0x239)])[_0x9b9642(0x243)];return this[_0x9b9642(0x26c)](_0x46948d);},'abortController':_0x55dc51[_0x4a455e(0x1fe)]};}[_0x51e0ed(0x24c)]({content:_0xf823dd,message:_0x32cbba,model:_0x5b5a67,outputFormat:_0x297820}){const _0x53b71f=_0x51e0ed,_0x738cf4={'content':[{'type':_0x53b71f(0x227),'content':_0xf823dd}],'prompt':_0x32cbba,'model':_0x5b5a67,'outputFormat':_0x297820},_0x5ee86a=this[_0x53b71f(0x236)](_0x53b71f(0x1eb),_0x53b71f(0x1e9),_0x738cf4);return{'getStream':async()=>{const _0x58d60b=_0x53b71f,_0x289079=(await _0x5ee86a[_0x58d60b(0x239)])[_0x58d60b(0x243)];return this[_0x58d60b(0x26c)](_0x289079);},'abortController':_0x5ee86a[_0x53b71f(0x1fe)]};}[_0x51e0ed(0x224)]({actionName:_0x23d3dc,content:_0x534419,args:_0x532797}){const _0x45ebb3=_0x51e0ed,_0x5a55e2={'content':[{'type':_0x45ebb3(0x227),'content':_0x534419}],'args':_0x532797},_0x245bb2=this[_0x45ebb3(0x236)](_0x45ebb3(0x1f4)+_0x23d3dc+_0x45ebb3(0x253),_0x45ebb3(0x1e9),_0x5a55e2);return{'getStream':async()=>{const _0x536552=_0x45ebb3,_0x58a4d1=(await _0x245bb2[_0x536552(0x239)])[_0x536552(0x243)];return this[_0x536552(0x26c)](_0x58a4d1);},'abortController':_0x245bb2[_0x45ebb3(0x1fe)]};}[_0x51e0ed(0x23f)](_0x347a18,_0x953a3d,_0x3a8aaf){const _0x254bd0=_0x51e0ed,_0x586766=new FormData();_0x586766[_0x254bd0(0x232)](_0x254bd0(0x1fc),_0x953a3d,_0x953a3d[_0x254bd0(0x256)]),_0x3a8aaf&&_0x586766[_0x254bd0(0x232)](_0x254bd0(0x21f),JSON[_0x254bd0(0x23a)](_0x3a8aaf));const _0x508e3f=this[_0x254bd0(0x236)](_0x254bd0(0x22d)+_0x347a18+_0x254bd0(0x1ec),_0x254bd0(0x1e9),_0x586766);return{'getId':async()=>(await _0x508e3f[_0x254bd0(0x239)])[_0x254bd0(0x270)](),'abortController':_0x508e3f[_0x254bd0(0x1fe)]};}[_0x51e0ed(0x22e)](_0x23f324,_0x2f481d){const _0x1abf49=_0x51e0ed,_0x112052=this[_0x1abf49(0x236)](_0x1abf49(0x22d)+_0x23f324+_0x1abf49(0x211)+_0x2f481d,_0x1abf49(0x26a));return{'getDocument':async()=>(await _0x112052[_0x1abf49(0x239)])[_0x1abf49(0x270)](),'abortController':_0x112052[_0x1abf49(0x1fe)]};}[_0x51e0ed(0x1ea)](_0x4390b7,_0x4bc2b0,_0x83ac02){const _0x28ab75=_0x51e0ed,_0x46e4d6={'content':_0x4bc2b0};_0x83ac02&&(_0x46e4d6[_0x28ab75(0x21f)]=_0x83ac02);const _0x39a11f=this[_0x28ab75(0x236)](_0x28ab75(0x22d)+_0x4390b7+_0x28ab75(0x267),_0x28ab75(0x1e9),_0x46e4d6);return{'getId':async()=>(await _0x39a11f[_0x28ab75(0x239)])[_0x28ab75(0x270)](),'abortController':_0x39a11f[_0x28ab75(0x1fe)]};}[_0x51e0ed(0x24a)](_0x56a0d3,_0x1edc93){const _0x5ee1f8=_0x51e0ed,_0x1b7b83=new URLSearchParams();_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x269),_0x5ee1f8(0x22b)),_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x251),_0x5ee1f8(0x235)),_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x1ff),_0x56a0d3),_0x1edc93&&_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x231),_0x1edc93);const _0x1e6d74=this[_0x5ee1f8(0x236)](_0x5ee1f8(0x23d)+_0x1b7b83[_0x5ee1f8(0x23c)](),_0x5ee1f8(0x26a));return{'getConversations':async()=>{const _0x20e742=_0x5ee1f8,_0x4ba38e=await _0x1e6d74[_0x20e742(0x239)];return(await _0x4ba38e[_0x20e742(0x270)]())[_0x20e742(0x26d)];},'abortController':_0x1e6d74[_0x5ee1f8(0x1fe)]};}[_0x51e0ed(0x229)](_0x5cb549){const _0x1f6410=_0x51e0ed,_0x4eab71=this[_0x1f6410(0x236)](_0x1f6410(0x22d)+_0x5cb549,_0x1f6410(0x217));return{'execute':async()=>{const _0x4f9a0e=_0x1f6410;await _0x4eab71[_0x4f9a0e(0x239)];},'abortController':_0x4eab71[_0x1f6410(0x1fe)]};}[_0x51e0ed(0x25d)](_0xa9422a,_0x10110b){const _0x4613d1=_0x51e0ed,_0x26e3f2=this[_0x4613d1(0x236)](_0x4613d1(0x22d)+_0xa9422a,_0x4613d1(0x204),_0x10110b);return{'getResult':async()=>(await _0x26e3f2[_0x4613d1(0x239)],_0x10110b),'abortController':_0x26e3f2[_0x4613d1(0x1fe)]};}[_0x51e0ed(0x247)](_0x4c6746){const _0x2a6d18=_0x51e0ed,_0x34e455=this[_0x2a6d18(0x236)](_0x2a6d18(0x22d)+_0x4c6746,_0x2a6d18(0x26a));return{'getConversation':async()=>(await _0x34e455[_0x2a6d18(0x239)])[_0x2a6d18(0x270)](),'abortController':_0x34e455[_0x2a6d18(0x1fe)]};}[_0x51e0ed(0x23b)](_0x370d86){const _0x4cfc21=_0x51e0ed,_0x1466d9=this[_0x4cfc21(0x236)](_0x4cfc21(0x22d)+_0x370d86+_0x4cfc21(0x221),_0x4cfc21(0x26a));return{'getMessages':async()=>{const _0x41757b=_0x4cfc21,_0x51d33f=await _0x1466d9[_0x41757b(0x239)];return(await _0x51d33f[_0x41757b(0x270)]())[_0x41757b(0x26d)];},'abortController':_0x1466d9[_0x4cfc21(0x1fe)]};}[_0x51e0ed(0x225)](_0x17c219,_0x4d1516,_0x3c0b07){const _0x282b81=_0x51e0ed,_0x5169f0=this[_0x282b81(0x236)](_0x282b81(0x22d)+_0x17c219+_0x282b81(0x1e8),_0x282b81(0x1e9),{'url':_0x4d1516,'attributes':_0x3c0b07});return{'getId':async()=>(await _0x5169f0[_0x282b81(0x239)])[_0x282b81(0x270)](),'abortController':_0x5169f0[_0x282b81(0x1fe)]};}[_0x51e0ed(0x200)](){const _0x40cdd7=_0x51e0ed,_0x18c687=this[_0x40cdd7(0x236)](_0x40cdd7(0x248),_0x40cdd7(0x26a));return{'list':async()=>await(await _0x18c687[_0x40cdd7(0x239)])[_0x40cdd7(0x270)](),'abortController':_0x18c687[_0x40cdd7(0x1fe)]};}[_0x51e0ed(0x1f2)](_0x1f05cd,_0x887713){const _0x11de09=_0x51e0ed,_0x28b682=this[_0x11de09(0x236)](_0x11de09(0x22d)+_0x1f05cd+_0x11de09(0x22f)+_0x887713,_0x11de09(0x217));return{'execute':async()=>{const _0x547f64=_0x11de09;await _0x28b682[_0x547f64(0x239)];},'abortController':_0x28b682[_0x11de09(0x1fe)]};}[_0x51e0ed(0x215)](_0x320d1e,_0x4ab39c){const _0x1c08fb=_0x51e0ed,_0x161cd8=this[_0x1c08fb(0x236)](_0x1c08fb(0x22d)+_0x320d1e+_0x1c08fb(0x211)+_0x4ab39c,_0x1c08fb(0x217));return{'execute':async()=>{const _0x540ec5=_0x1c08fb;await _0x161cd8[_0x540ec5(0x239)];},'abortController':_0x161cd8[_0x1c08fb(0x1fe)]};}[_0x51e0ed(0x21d)](_0xbc6c5f,_0x2d8aed){const _0x3c6e14=_0x51e0ed,_0x33caa2=this[_0x3c6e14(0x236)](_0x3c6e14(0x22d)+_0xbc6c5f+_0x3c6e14(0x1ef)+_0x2d8aed,_0x3c6e14(0x217));return{'execute':async()=>{const _0x38ac38=_0x3c6e14;await _0x33caa2[_0x38ac38(0x239)];},'abortController':_0x33caa2[_0x3c6e14(0x1fe)]};}[_0x51e0ed(0x21c)]({reviewName:_0x32217d,content:_0x8d47bc,args:_0x394d1a}){const _0x4e2804=_0x51e0ed,_0x569b23=this[_0x4e2804(0x236)](_0x4e2804(0x219)+_0x32217d+_0x4e2804(0x253),_0x4e2804(0x1e9),{'content':[{'type':_0x4e2804(0x227),'content':_0x8d47bc}],'args':_0x394d1a});return{'getStream':async()=>{const _0x1ca8b5=_0x4e2804,_0x4a3c7d=(await _0x569b23[_0x1ca8b5(0x239)])[_0x1ca8b5(0x243)];return this[_0x1ca8b5(0x26c)](_0x4a3c7d);},'abortController':_0x569b23[_0x4e2804(0x1fe)]};}[_0x51e0ed(0x21a)]({content:_0x42b1cc,prompt:_0x2508e8,model:_0x568117}){const _0x6a9f70=_0x51e0ed,_0x5969ff=this[_0x6a9f70(0x236)](_0x6a9f70(0x246),_0x6a9f70(0x1e9),{'content':[{'type':_0x6a9f70(0x227),'content':_0x42b1cc}],'prompt':_0x2508e8,'model':_0x568117});return{'getStream':async()=>{const _0x1d00f4=_0x6a9f70,_0x4dc0ad=(await _0x5969ff[_0x1d00f4(0x239)])[_0x1d00f4(0x243)];return this[_0x1d00f4(0x26c)](_0x4dc0ad);},'abortController':_0x5969ff[_0x6a9f70(0x1fe)]};}[_0x51e0ed(0x210)](_0x5d41ac,_0x5a07df,_0x3acd3f){const _0x43fbc4=_0x51e0ed,_0x5ac81e=this[_0x43fbc4(0x236)](_0x43fbc4(0x22d)+_0x5d41ac+_0x43fbc4(0x208)+_0x5a07df+_0x43fbc4(0x1fb),_0x43fbc4(0x265),{'positiveCount':_0x3acd3f[_0x43fbc4(0x266)],'totalCount':_0x3acd3f[_0x43fbc4(0x24b)],'modificationId':_0x3acd3f[_0x43fbc4(0x25a)]});return{'execute':async()=>{const _0x9f99e6=_0x43fbc4;await _0x5ac81e[_0x9f99e6(0x239)];},'abortController':_0x5ac81e[_0x43fbc4(0x1fe)]};}[_0x51e0ed(0x237)](_0x527feb,_0x216b6a,_0xa09b07){const _0x4fff89=_0x51e0ed,_0x231ba5=this[_0x4fff89(0x236)](_0x4fff89(0x1f4)+_0x527feb+_0x4fff89(0x241)+_0x216b6a+_0x4fff89(0x1fb),_0x4fff89(0x265),{'positiveCount':_0xa09b07[_0x4fff89(0x266)],'totalCount':_0xa09b07[_0x4fff89(0x24b)]});return{'execute':async()=>{const _0x3a4e2e=_0x4fff89;await _0x231ba5[_0x3a4e2e(0x239)];},'abortController':_0x231ba5[_0x4fff89(0x1fe)]};}[_0x51e0ed(0x273)](_0x41e6c2,_0x3dd41e){const _0x4f6fcb=_0x51e0ed,_0x53aa23=this[_0x4f6fcb(0x236)](_0x4f6fcb(0x255)+_0x41e6c2+_0x4f6fcb(0x1fb),_0x4f6fcb(0x265),{'positiveCount':_0x3dd41e[_0x4f6fcb(0x266)],'totalCount':_0x3dd41e[_0x4f6fcb(0x24b)]});return{'execute':async()=>{const _0x2be315=_0x4f6fcb;await _0x53aa23[_0x2be315(0x239)];},'abortController':_0x53aa23[_0x4f6fcb(0x1fe)]};}[_0x51e0ed(0x245)](_0x1cc9ab,_0x258019,_0x1b6a2a,_0x1420a9){const _0x40dbfd=_0x51e0ed,_0x1eae76=this[_0x40dbfd(0x236)](_0x40dbfd(0x219)+_0x1cc9ab+_0x40dbfd(0x241)+_0x258019+_0x40dbfd(0x1fb),_0x40dbfd(0x265),{'positiveCount':_0x1b6a2a[_0x40dbfd(0x266)],'totalCount':_0x1b6a2a[_0x40dbfd(0x24b)],'dataId':_0x1420a9});return{'execute':async()=>{const _0x2b40d3=_0x40dbfd;await _0x1eae76[_0x2b40d3(0x239)];},'abortController':_0x1eae76[_0x40dbfd(0x1fe)]};}[_0x51e0ed(0x24e)](_0x4719ce,_0x455d13,_0x36ffb7){const _0x62d6dc=_0x51e0ed,_0x26dd1e=this[_0x62d6dc(0x236)](_0x62d6dc(0x1f7)+_0x4719ce+_0x62d6dc(0x1fb),_0x62d6dc(0x265),{'positiveCount':_0x455d13[_0x62d6dc(0x266)],'totalCount':_0x455d13[_0x62d6dc(0x24b)],'dataId':_0x36ffb7});return{'execute':async()=>{const _0x2e5271=_0x62d6dc;await _0x26dd1e[_0x2e5271(0x239)];},'abortController':_0x26dd1e[_0x62d6dc(0x1fe)]};}[_0x51e0ed(0x236)](_0x69655b,_0x63d4ed,_0x2bb954){const _0x578c60=_0x51e0ed,_0x11c32b=new AbortController(),_0x43d04a=_0x2bb954 instanceof FormData,_0x53ba43={'Authorization':_0x578c60(0x220)+this[_0x578c60(0x20a)]?.[_0x578c60(0x25b)]};_0x2bb954&&!_0x43d04a&&(_0x53ba43[_0x578c60(0x223)]=_0x578c60(0x259));const _0x3c3f08={'method':_0x63d4ed,'headers':_0x53ba43,'signal':_0x11c32b[_0x578c60(0x25e)]};return _0x2bb954&&(_0x3c3f08[_0x578c60(0x243)]=_0x43d04a?_0x2bb954:JSON[_0x578c60(0x23a)](_0x2bb954)),{'request':fetch(''+this[_0x578c60(0x242)]+_0x69655b,_0x3c3f08)[_0x578c60(0x25f)](_0x1b7de7=>{const _0x49cbc6=_0x578c60;this[_0x49cbc6(0x268)](_0x1b7de7);})[_0x578c60(0x1f9)](_0x3fcb74=>{const _0x41d6c9=_0x578c60;if(!_0x3fcb74['ok'])throw new _0x349de8(_0x41d6c9(0x214),this,{'url':this[_0x41d6c9(0x242)],'path':_0x69655b,'method':_0x63d4ed,'body':_0x2bb954,'status':(_0x3fcb74||{})[_0x41d6c9(0x218)],'statusText':(_0x3fcb74||{})[_0x41d6c9(0x212)]});return _0x3fcb74;}),'abortController':_0x11c32b};}async*[_0x51e0ed(0x26c)](_0x139431){const _0x8d6cd3=_0x51e0ed,_0x478c31=[],_0x4acdb6=_0x139431[_0x8d6cd3(0x207)](),_0x28a2c2=_0x9dc336({'onError':_0x54c766=>{const _0x4c0afd=_0x8d6cd3;this[_0x4c0afd(0x268)](_0x54c766);},'onEvent':_0xe51559=>{const _0x391f53=_0x8d6cd3;_0xe51559[_0x391f53(0x244)]=JSON[_0x391f53(0x1ed)](_0xe51559[_0x391f53(0x244)]),_0x478c31[_0x391f53(0x203)](_0xe51559);}});try{let _0x52c218=!0x1;for(;!_0x52c218;){const {done:_0x34d458,value:_0x36ead9}=await _0x4acdb6[_0x8d6cd3(0x1f1)]();_0x34d458&&(_0x52c218=!0x0),_0x28a2c2[_0x8d6cd3(0x21b)](this[_0x8d6cd3(0x205)][_0x8d6cd3(0x228)](_0x36ead9,{'stream':!0x0})),yield*_0x478c31,_0x478c31[_0x8d6cd3(0x260)]=0x0;}}catch(_0x2da931){this[_0x8d6cd3(0x268)](_0x2da931);}finally{_0x4acdb6[_0x8d6cd3(0x257)](),_0x28a2c2[_0x8d6cd3(0x254)]();}}[_0x51e0ed(0x268)](_0xbea7e){const _0x3bf90e=_0x51e0ed;if(_0xbea7e instanceof _0x349de8)throw _0xbea7e;if(_0xbea7e instanceof Error&&_0x3bf90e(0x20b)===_0xbea7e[_0x3bf90e(0x256)])throw new _0x349de8(_0x3bf90e(0x234),this,{'originalError':_0xbea7e});throw new _0x349de8(_0x3bf90e(0x214),this,{'originalError':_0xbea7e});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41b118=_0x2444;(function(_0x57255b,_0x1165ab){const _0x1b2f54=_0x2444,_0x4b2868=_0x57255b();while(!![]){try{const _0x5e8e84=parseInt(_0x1b2f54(0x12f))/0x1*(parseInt(_0x1b2f54(0x143))/0x2)+parseInt(_0x1b2f54(0x140))/0x3+-parseInt(_0x1b2f54(0x132))/0x4*(parseInt(_0x1b2f54(0xfe))/0x5)+parseInt(_0x1b2f54(0x138))/0x6*(parseInt(_0x1b2f54(0xea))/0x7)+parseInt(_0x1b2f54(0x106))/0x8*(-parseInt(_0x1b2f54(0x121))/0x9)+parseInt(_0x1b2f54(0xf9))/0xa*(-parseInt(_0x1b2f54(0x13d))/0xb)+parseInt(_0x1b2f54(0xfb))/0xc;if(_0x5e8e84===_0x1165ab)break;else _0x4b2868['push'](_0x4b2868['shift']());}catch(_0x386642){_0x4b2868['push'](_0x4b2868['shift']());}}}(_0x5ed2,0x22dc0));import{ViewDowncastWriter as _0x2d5255}from'ckeditor5/src/engine.js';function _0x2444(_0x2122b4,_0x4aa089){const _0x5ed210=_0x5ed2();return _0x2444=function(_0x24443e,_0x4081f7){_0x24443e=_0x24443e-0xe8;let _0x2ae5f4=_0x5ed210[_0x24443e];return _0x2ae5f4;},_0x2444(_0x2122b4,_0x4aa089);}import{ContextPlugin as _0x505b2a,Editor as _0x16745d}from'ckeditor5/src/core.js';import{uid as _0x169d4d}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3811f7}from'./utils/geteditorfromcontext.js';function _0x5ed2(){const _0x1e86e0=['length','11AWPTpM','editing','convertAiChatSelectionMarker','498192bCILKT','context','createUIElement','546338Aceabz','containerElement','modelToViewWithIds','end','emptyElement','getDocumentData',':end></','ai-selection','getWalker',':end>',':start>','getRoot','$textProxy','_nextDataId',':start></','toView','isOpening','toData','124747DOdubs','isContent','plugins','start','AIEditing','afterInit','processor','RealTimeCollaborationClient','removeAllRanges','schema','isOfficialPlugin','document','data-id','markerToHighlight','name','1907860wcdBsR','get','2347836BkiSWQ','from','add','214935dhVwzj','removeMarker','push','fromCharCode','pluginName','isBefore','element','createRangeIn','168ZOfNPx','markerName','_setDataIdsOnChildren','floor','getMarkersGroup','_getMarkersInDocumentOrder','version','sort','setAttribute','trim','ai-selection:','markers','getChildren','_sessionId','ck-fake-ai-selection','isPremiumPlugin','conversion','isAfter','_displayedFakeSelectionLocked','ck-ai-assistant-ui_theme','listenTo','sessionId','for','view','_displayedFakeSelectionId','getSelectedContent','selection','99927ztRiqe','data','_integrateEditor','change','getStart','editors','showFakeVisualSelection','editingDowncast','model','getSelection','addMarker','getLastMatchingPosition','has','markerToElement','1sUfVUL','substring','isAtEnd','8DSJpqv','dataDowncast','ready','indexOf','getSelectionText','hideFakeVisualSelection','6qReXTy','join','createRange','random'];_0x5ed2=function(){return _0x1e86e0;};return _0x5ed2();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x41b118(0x14a);export class AIEditing extends _0x505b2a{[_0x41b118(0x11e)]=null;[_0x41b118(0x118)]=!0x1;[_0x41b118(0x113)];static get[_0x41b118(0x102)](){const _0xad2f05=_0x41b118;return _0xad2f05(0xee);}static get[_0x41b118(0xf4)](){return!0x0;}static get[_0x41b118(0x115)](){return!0x0;}get[_0x41b118(0x11b)](){const _0x1ea9b0=_0x41b118;if(!this[_0x1ea9b0(0x113)]){const _0x1e9168=_0x3811f7(this[_0x1ea9b0(0x141)]),_0x239013=_0x1e9168[_0x1ea9b0(0xec)][_0x1ea9b0(0x12d)](_0x1ea9b0(0xf1))&&_0x1e9168[_0x1ea9b0(0xec)][_0x1ea9b0(0xfa)](_0x1ea9b0(0xf1))[_0x1ea9b0(0x11b)];this[_0x1ea9b0(0x113)]=_0x239013||_0x169d4d();}return this[_0x1ea9b0(0x113)];}[_0x41b118(0x148)](){const _0x3e318b=_0x41b118,_0x571cc8=_0x3811f7(this[_0x3e318b(0x141)]),_0x4bc312=_0x571cc8[_0x3e318b(0x129)],_0x2caac8=_0x571cc8[_0x3e318b(0x122)][_0x3e318b(0x152)](_0x4bc312[_0x3e318b(0xf5)][_0x3e318b(0x14e)](),{'convertAiChatSelectionMarker':!0x0}),_0x3969a9=new _0x2d5255(_0x571cc8[_0x3e318b(0x13e)][_0x3e318b(0x11d)][_0x3e318b(0xf5)]);this[_0x3e318b(0x108)](_0x2caac8,_0x3969a9);let _0x4127f2=_0x571cc8[_0x3e318b(0x122)][_0x3e318b(0xf0)][_0x3e318b(0xe9)](_0x2caac8);const _0x11f574=this[_0x3e318b(0x10b)](),_0x4fca79=[];for(const _0x435d29 of _0x11f574){const _0x5236f9='<'+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x151)+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x14d),_0x5f8613=_0x4127f2[_0x3e318b(0x135)](_0x5236f9);_0x4127f2=_0x4127f2[_0x3e318b(0x130)](0x0,_0x5f8613)+_0x4127f2[_0x3e318b(0x130)](_0x5f8613+_0x5236f9[_0x3e318b(0x13c)]);const _0x316543='<'+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x149)+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x14c),_0x5b5c64=_0x4127f2[_0x3e318b(0x135)](_0x316543);_0x4127f2=_0x4127f2[_0x3e318b(0x130)](0x0,_0x5b5c64)+_0x4127f2[_0x3e318b(0x130)](_0x5b5c64+_0x316543[_0x3e318b(0x13c)]),_0x4fca79[_0x3e318b(0x100)]({'markerName':_0x435d29[_0x3e318b(0xf8)],'start':_0x5f8613,'end':_0x5b5c64,'htmlFragment':_0x4127f2[_0x3e318b(0x130)](_0x5f8613,_0x5b5c64)});}return{'content':_0x4127f2,'version':_0x571cc8[_0x3e318b(0x129)][_0x3e318b(0xf5)][_0x3e318b(0x10c)],'sessionId':this[_0x3e318b(0x11b)],'selections':_0x4fca79};}async[_0x41b118(0xef)](){const _0x9101fb=_0x41b118;this[_0x9101fb(0x141)]instanceof _0x16745d?this[_0x9101fb(0x123)](this[_0x9101fb(0x141)]):this[_0x9101fb(0x11a)](this[_0x9101fb(0x141)][_0x9101fb(0x126)],_0x9101fb(0xfd),(_0x385ac4,_0x3c4fbf)=>{const _0x4ff0db=_0x9101fb;_0x3c4fbf['on'](_0x4ff0db(0x134),()=>{const _0x3869f4=_0x4ff0db;this[_0x3869f4(0x123)](_0x3c4fbf);});});}[_0x41b118(0x123)](_0x49778c){const _0xbddc48=_0x41b118;_0x49778c[_0xbddc48(0x116)][_0xbddc48(0x11c)](_0xbddc48(0x128))[_0xbddc48(0xf7)]({'model':_0xbddc48(0x14a),'view':{'classes':[_0xbddc48(0x114),_0xbddc48(0x119)],'priority':0xc}}),_0x49778c[_0xbddc48(0x116)][_0xbddc48(0x11c)](_0xbddc48(0x133))[_0xbddc48(0x12e)]({'model':_0xbddc48(0x14a),'view':(_0x1cdb77,{writer:_0x5697bc,options:_0xc6a05b})=>_0xc6a05b[_0xbddc48(0x13f)]?_0x5697bc[_0xbddc48(0x142)](_0x1cdb77[_0xbddc48(0x107)]+':'+(_0x1cdb77[_0xbddc48(0xe8)]?_0xbddc48(0xed):_0xbddc48(0x146))):null});}[_0x41b118(0x127)](_0x3e8d0b,_0x3eede9,_0x54d292=!0x1,_0x322efe=!0x1){const _0x296bc0=_0x41b118;if(this[_0x296bc0(0x118)]&&!_0x322efe)return!0x1;const _0x1814d0=_0x3811f7(this[_0x296bc0(0x141)])[_0x296bc0(0x129)];return _0x1814d0[_0x296bc0(0x124)](_0x248a17=>{const _0x3323fd=_0x296bc0;this[_0x3323fd(0x11e)]&&this[_0x3323fd(0x137)](this[_0x3323fd(0x11e)]),this[_0x3323fd(0x11e)]=_0x3eede9,this[_0x3323fd(0x118)]=_0x54d292;let _0x2a3aaf=0x0;for(let _0x625d9f of _0x3e8d0b){const _0x95a463=_0x3323fd(0x110)+_0x2a3aaf;if(_0x625d9f[_0x3323fd(0xed)][_0x3323fd(0x131)]){const _0x1d9dfc=_0x625d9f[_0x3323fd(0xed)][_0x3323fd(0x12c)](({item:_0x54a67b})=>!_0x1814d0[_0x3323fd(0xf3)][_0x3323fd(0xeb)](_0x54a67b),{'boundaries':_0x625d9f});_0x625d9f=_0x248a17[_0x3323fd(0x13a)](_0x1d9dfc,_0x625d9f[_0x3323fd(0x146)]);}_0x248a17[_0x3323fd(0x12b)](_0x95a463,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x625d9f}),_0x2a3aaf++;}}),window[_0x296bc0(0x12a)]()?.[_0x296bc0(0xf2)](),!0x0;}[_0x41b118(0x137)](_0x5e7485){const _0x4e5f1f=_0x41b118;if(this[_0x4e5f1f(0x11e)]!=_0x5e7485)return!0x1;this[_0x4e5f1f(0x11e)]=null,this[_0x4e5f1f(0x118)]=!0x1;const _0x354ad9=_0x3811f7(this[_0x4e5f1f(0x141)]),_0x16bb2c=_0x354ad9[_0x4e5f1f(0x129)][_0x4e5f1f(0x111)][_0x4e5f1f(0x10a)](_0x4e5f1f(0x14a));return _0x354ad9[_0x4e5f1f(0x129)][_0x4e5f1f(0x124)](_0x44ed94=>{const _0x1aa2ac=_0x4e5f1f;for(const _0x204c19 of _0x16bb2c)_0x44ed94[_0x1aa2ac(0xff)](_0x204c19);}),!0x0;}[_0x41b118(0x145)](_0x245ac7){const _0x227bdc=_0x41b118,_0x5ec312=_0x3811f7(this[_0x227bdc(0x141)]),_0x773e0f=_0x5ec312[_0x227bdc(0x122)][_0x227bdc(0x152)](_0x245ac7),_0x579f13=new _0x2d5255(_0x5ec312[_0x227bdc(0x13e)][_0x227bdc(0x11d)][_0x227bdc(0xf5)]);return this[_0x227bdc(0x108)](_0x773e0f,_0x579f13),_0x773e0f;}[_0x41b118(0x108)](_0x352037,_0x270ab7){const _0xb5df79=_0x41b118;let _0x359cb0=!0x1;const _0x50c38b=new Set();for(const _0x224c3 of _0x352037[_0xb5df79(0x112)]()){const _0x5992d3=_0x224c3['is'](_0xb5df79(0x147))||_0x224c3['is'](_0xb5df79(0x144));if(!_0x224c3['is'](_0xb5df79(0x104)))continue;(this[_0xb5df79(0x108)](_0x224c3,_0x270ab7)||_0x5992d3)&&(_0x270ab7[_0xb5df79(0x10e)](_0xb5df79(0xf6),this[_0xb5df79(0x150)](_0x50c38b),_0x224c3),_0x359cb0=!0x0);}return _0x359cb0;}[_0x41b118(0x150)](_0x5ef6a5){const _0x206054=_0x41b118;let _0x1436ac;do{_0x1436ac='';for(let _0x18eaab=0x0;_0x18eaab<0x4;_0x18eaab++)_0x1436ac+=String[_0x206054(0x101)](0x61+Math[_0x206054(0x109)](0x1a*Math[_0x206054(0x13b)]()));}while(_0x5ef6a5[_0x206054(0x12d)](_0x1436ac));return _0x5ef6a5[_0x206054(0xfd)](_0x1436ac),_0x1436ac;}[_0x41b118(0x136)](){const _0x515043=_0x41b118,{model:_0x5f0a69}=_0x3811f7(this[_0x515043(0x141)]),_0x269d9f=_0x5f0a69[_0x515043(0xf5)][_0x515043(0x120)],_0x2b1523=_0x5f0a69[_0x515043(0x11f)](_0x269d9f),_0x5c2bf6=[],_0x5388b0=_0x5f0a69[_0x515043(0x105)](_0x2b1523)[_0x515043(0x14b)]();for(const {item:_0x1045be}of _0x5388b0)_0x1045be['is'](_0x515043(0x14f))?_0x5c2bf6[_0x515043(0x100)](_0x1045be[_0x515043(0x122)]):_0x1045be['is'](_0x515043(0x104))&&_0x5c2bf6[_0x515043(0x13c)]>0x0&&'\x20'!==_0x5c2bf6[_0x5c2bf6[_0x515043(0x13c)]-0x1]&&_0x5c2bf6[_0x515043(0x100)]('\x20');return'\x22'+_0x5c2bf6[_0x515043(0x139)]('')[_0x515043(0x10f)]()+'\x22';}[_0x41b118(0x10b)](){const _0x327513=_0x41b118,_0x4372d4=_0x3811f7(this[_0x327513(0x141)])[_0x327513(0x129)];return Array[_0x327513(0xfc)](_0x4372d4[_0x327513(0x111)][_0x327513(0x10a)](_0x327513(0x14a)))[_0x327513(0x10d)]((_0x290c89,_0x4dc648)=>_0x290c89[_0x327513(0x125)]()[_0x327513(0x103)](_0x4dc648[_0x327513(0x125)]())?-0x1:_0x290c89[_0x327513(0x125)]()[_0x327513(0x117)](_0x4dc648[_0x327513(0x125)]())?0x1:0x0);}}
|