@ckeditor/ckeditor5-ai 47.2.0-alpha.5 → 47.2.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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.d.ts +10 -2
- 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 _0x2413e6=_0x122c;(function(_0x34b60c,_0x5133a2){const _0x546f94=_0x122c,_0x363945=_0x34b60c();while(!![]){try{const _0x925111=parseInt(_0x546f94(0x105))/0x1+-parseInt(_0x546f94(0x103))/0x2*(-parseInt(_0x546f94(0xfe))/0x3)+parseInt(_0x546f94(0xdf))/0x4+-parseInt(_0x546f94(0xef))/0x5*(-parseInt(_0x546f94(0xe1))/0x6)+-parseInt(_0x546f94(0xe2))/0x7*(parseInt(_0x546f94(0xeb))/0x8)+parseInt(_0x546f94(0xea))/0x9*(parseInt(_0x546f94(0xdc))/0xa)+-parseInt(_0x546f94(0xe5))/0xb;if(_0x925111===_0x5133a2)break;else _0x363945['push'](_0x363945['shift']());}catch(_0x5f0fcb){_0x363945['push'](_0x363945['shift']());}}}(_0x5137,0xe890d));import{ContextPlugin as _0x7ecb39}from'ckeditor5/src/core.js';function _0x122c(_0x5033c4,_0x3497b8){const _0x5137cb=_0x5137();return _0x122c=function(_0x122cc6,_0x2893bb){_0x122cc6=_0x122cc6-0xd9;let _0x2020ae=_0x5137cb[_0x122cc6];return _0x2020ae;},_0x122c(_0x5033c4,_0x3497b8);}import{AITabs as _0xfd065d}from'../aitabs/aitabs.js';import{IconAIHistory as _0x4f4bee}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0xa3a738}from'./ui/aichathistoryview.js';import{getTranslation as _0x1e28e0}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x2413e6(0xf1),_0x2413e6(0xed),_0x2413e6(0xf3),_0x2413e6(0xd9),_0x2413e6(0xe8),_0x2413e6(0xe9),_0x2413e6(0xdd)];function _0x5137(){const _0x19b41b=['history','setConversationPinned','isOfficialPlugin','addTab','10EkeNfy','resizeTabs','setLoadingSkeleton','725708CKwChi','AI_CHAT_HISTORY_HEADING','193026knEjCh','1611239PXsovA','requires','view','40813619BMDaCc','removeHistoryItem','isPremiumPlugin','selectConversation','openChat','4756626PrXxme','16hiLRJj','updateItemTitle','removeConversation','updateItems','245DDXOaf','updateHistoryItemsWithCategories','showConversationHistory','isLoading','editConversationTitle','_historyView','plugins','updateItemLoadingState','hideError','pluginName','showError','delegate','showResizeButton','locale','context','4357383iTOckC','setIsMaximized','errorMessage','AITabs','isMaximized','2qKYMTH','AIChatHistoryUI','1384491gjYcOv','get'];_0x5137=function(){return _0x19b41b;};return _0x5137();}export class AIChatHistoryUI extends _0x7ecb39{static get[_0x2413e6(0xe3)](){return[_0xfd065d];}[_0x2413e6(0xf4)];static get[_0x2413e6(0xf8)](){const _0x14d463=_0x2413e6;return _0x14d463(0x104);}static get[_0x2413e6(0xda)](){return!0x0;}static get[_0x2413e6(0xe7)](){return!0x0;}constructor(_0x91f6e5){const _0x11fa17=_0x2413e6;super(_0x91f6e5);const _0x255efe=this[_0x11fa17(0xfd)][_0x11fa17(0xf5)][_0x11fa17(0x106)](_0x11fa17(0x101));this[_0x11fa17(0xf4)]=new _0xa3a738(this[_0x11fa17(0xfd)][_0x11fa17(0xfc)],_0x255efe[_0x11fa17(0xfb)]),this[_0x11fa17(0xf4)][_0x11fa17(0xfa)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x255efe[_0x11fa17(0xe4)][_0x11fa17(0xdb)]({'id':_0x11fa17(0x107),'buttonLabel':_0x1e28e0(this[_0x11fa17(0xfd)][_0x11fa17(0xfc)],_0x11fa17(0xe0)),'buttonIcon':_0x4f4bee,'order':0x0,'content':this[_0x11fa17(0xf4)]});}[_0x2413e6(0xe6)](_0x428435){const _0x4abac7=_0x2413e6;this[_0x4abac7(0xf4)][_0x4abac7(0xe6)](_0x428435);}[_0x2413e6(0xee)](_0x25056c){const _0xd1d513=_0x2413e6;this[_0xd1d513(0xf4)][_0xd1d513(0xf0)](_0x25056c);}[_0x2413e6(0xec)](_0x2c549a,_0x1b2c27){const _0x290553=_0x2413e6;this[_0x290553(0xf4)][_0x290553(0xec)](_0x2c549a,_0x1b2c27);}[_0x2413e6(0xf6)](_0x1d47fb,_0x2535a7,_0x702ac8){const _0x447326=_0x2413e6;this[_0x447326(0xf4)][_0x447326(0xf6)](_0x1d47fb,_0x2535a7,_0x702ac8);}[_0x2413e6(0xde)](_0x48146d){const _0x49ef87=_0x2413e6;this[_0x49ef87(0xf4)][_0x49ef87(0xf2)]=_0x48146d;}[_0x2413e6(0xf9)](_0x27f0e1){const _0x49d3e0=_0x2413e6;this[_0x49d3e0(0xf4)][_0x49d3e0(0x100)]=_0x27f0e1;}[_0x2413e6(0xf7)](){const _0x980c31=_0x2413e6;this[_0x980c31(0xf4)][_0x980c31(0x100)]='';}[_0x2413e6(0xff)](_0x3230dd){const _0x3fc6b5=_0x2413e6;this[_0x3fc6b5(0xf4)][_0x3fc6b5(0x102)]=_0x3230dd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4440(_0x473d00,_0x1ed90b){const _0x25f733=_0x25f7();return _0x4440=function(_0x444091,_0x1cf0bc){_0x444091=_0x444091-0xdc;let _0x5de148=_0x25f733[_0x444091];return _0x5de148;},_0x4440(_0x473d00,_0x1ed90b);}function _0x25f7(){const _0x3c794f=['filter','updateItemTitle','pinned','fetchConversations','193482nGPVek','from','find','group','getFullYear','init','408840IQDJgr','updatePinned','getTime','error','removeItem','getMonth','10msYqaq','getItem','loadItems','createdAt','updateItemPinned','7384fAdwuo','3vkJIdR','getItems','itemRemoved','6822zmMcKs','items','1519996mmeYIn','getDate','getResult','fire','2604855DKpZMg','connector','itemUpdated','splice','getConversations','1400856daElvL','addItem','push','itemsLoaded','findIndex','execute','2667660PLNHNH','map','deleteConversation','updateConversation','updateTitle','49EUaLWc'];_0x25f7=function(){return _0x3c794f;};return _0x25f7();}const _0x17cc99=_0x4440;(function(_0x27ddc2,_0x272152){const _0x22106d=_0x4440,_0x4dcbd1=_0x27ddc2();while(!![]){try{const _0x32c380=parseInt(_0x22106d(0xe6))/0x1+-parseInt(_0x22106d(0x106))/0x2+parseInt(_0x22106d(0xf8))/0x3*(parseInt(_0x22106d(0xfd))/0x4)+parseInt(_0x22106d(0xdc))/0x5+-parseInt(_0x22106d(0xec))/0x6*(parseInt(_0x22106d(0xe1))/0x7)+parseInt(_0x22106d(0xf7))/0x8*(parseInt(_0x22106d(0xfb))/0x9)+-parseInt(_0x22106d(0xf2))/0xa*(parseInt(_0x22106d(0x101))/0xb);if(_0x32c380===_0x272152)break;else _0x4dcbd1['push'](_0x4dcbd1['shift']());}catch(_0x638e0c){_0x4dcbd1['push'](_0x4dcbd1['shift']());}}}(_0x25f7,0x5fcf2));import{EmitterMixin as _0x3aeb46}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x4a258f}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x3aeb46(){[_0x17cc99(0xfc)]=[];[_0x17cc99(0x102)];[_0x17cc99(0xe9)];constructor({connector:_0x428c0d,group:_0x57bb77}){const _0x1606ac=_0x17cc99;super(),this[_0x1606ac(0x102)]=_0x428c0d,this[_0x1606ac(0xe9)]=_0x57bb77;}async[_0x17cc99(0xeb)](){const _0x133b00=_0x17cc99;try{const _0x375d9b=this[_0x133b00(0x102)][_0x133b00(0xe5)](this[_0x133b00(0xe9)]),_0xa3c8b6=await _0x375d9b[_0x133b00(0x105)]();this[_0x133b00(0xf4)](_0xa3c8b6);}catch(_0x72ab54){this[_0x133b00(0x100)](_0x133b00(0xef),{'error':_0x72ab54,'operation':_0x133b00(0xeb)});}}[_0x17cc99(0x107)](_0x5218da){const _0x23b449=_0x17cc99;this[_0x23b449(0xfc)][_0x23b449(0x108)](_0x5218da);}async[_0x17cc99(0xf0)](_0x25beef){const _0x387643=_0x17cc99,_0x3cf465=this[_0x387643(0xfc)][_0x387643(0x10a)](_0x3bae28=>_0x3bae28['id']===_0x25beef);if(-0x1===_0x3cf465)return!0x1;try{return await this[_0x387643(0x102)][_0x387643(0xde)](_0x25beef)[_0x387643(0x10b)](),this[_0x387643(0xfc)][_0x387643(0x104)](_0x3cf465,0x1),this[_0x387643(0x100)](_0x387643(0xfa),{'itemId':_0x25beef}),!0x0;}catch(_0x42ebeb){return this[_0x387643(0x100)](_0x387643(0xef),{'error':_0x42ebeb,'operation':_0x387643(0xf0),'itemId':_0x25beef}),!0x1;}}[_0x17cc99(0xf3)](_0x2bbeaf){const _0x24b051=_0x17cc99;return this[_0x24b051(0xfc)][_0x24b051(0xe8)](_0x2f48b8=>_0x2f48b8['id']===_0x2bbeaf);}async[_0x17cc99(0xe3)](_0x2be074,_0x4d3ace){const _0x5d2d20=_0x17cc99,_0x1de7ad=this[_0x5d2d20(0xf3)](_0x2be074);if(!_0x1de7ad)return!0x1;try{return await this[_0x5d2d20(0x102)][_0x5d2d20(0xdf)](_0x2be074,{'title':_0x4d3ace})[_0x5d2d20(0xff)](),_0x1de7ad[_0x5d2d20(0xe0)](_0x4d3ace),this[_0x5d2d20(0x100)](_0x5d2d20(0x103),{'itemId':_0x2be074,'updates':{'title':_0x4d3ace}}),!0x0;}catch(_0x5e699e){return this[_0x5d2d20(0x100)](_0x5d2d20(0xef),{'error':_0x5e699e,'operation':_0x5d2d20(0xe3),'itemId':_0x2be074}),!0x1;}}async[_0x17cc99(0xf6)](_0x52b0c0,_0x4e6d0c){const _0x263cde=_0x17cc99,_0x24eb40=this[_0x263cde(0xf3)](_0x52b0c0);if(!_0x24eb40)return!0x1;try{return await this[_0x263cde(0x102)][_0x263cde(0xdf)](_0x52b0c0,{'pinned':_0x4e6d0c})[_0x263cde(0xff)](),_0x24eb40[_0x263cde(0xed)](_0x4e6d0c),this[_0x263cde(0x100)](_0x263cde(0x103),{'itemId':_0x52b0c0,'updates':{'pinned':_0x4e6d0c}}),!0x0;}catch(_0x3e51d3){return this[_0x263cde(0x100)](_0x263cde(0xef),{'error':_0x3e51d3,'operation':_0x263cde(0xf6),'itemId':_0x52b0c0}),!0x1;}}[_0x17cc99(0xf4)](_0x1f7d63){const _0x3947f2=_0x17cc99;try{this[_0x3947f2(0xfc)]=[],_0x1f7d63[_0x3947f2(0xdd)](_0x5c7362=>{const _0xe3fd8a=_0x3947f2;this[_0xe3fd8a(0x107)](new _0x4a258f(_0x5c7362));}),this[_0x3947f2(0x100)](_0x3947f2(0x109),{'items':[...this[_0x3947f2(0xfc)]]});}catch(_0x3cc351){this[_0x3947f2(0x100)](_0x3947f2(0xef),{'error':_0x3cc351,'operation':_0x3947f2(0xf4)});}}[_0x17cc99(0xf9)](_0x41ae15={}){const _0x4bc50a=_0x17cc99,_0x13c1bf=void 0x0!==_0x41ae15[_0x4bc50a(0xe4)]&&_0x41ae15[_0x4bc50a(0xe4)],_0x3bd6a9=_0x41ae15[_0x4bc50a(0xe7)]?new Date(_0x41ae15[_0x4bc50a(0xe7)][_0x4bc50a(0xea)](),_0x41ae15[_0x4bc50a(0xe7)][_0x4bc50a(0xf1)](),_0x41ae15[_0x4bc50a(0xe7)][_0x4bc50a(0xfe)]()):null,_0x5808ba=_0x41ae15['to']?new Date(_0x41ae15['to'][_0x4bc50a(0xea)](),_0x41ae15['to'][_0x4bc50a(0xf1)](),_0x41ae15['to'][_0x4bc50a(0xfe)]()):null;return this[_0x4bc50a(0xfc)][_0x4bc50a(0xe2)](_0x54d2ef=>{const _0x36550f=_0x4bc50a;if(_0x54d2ef[_0x36550f(0xe4)]!==_0x13c1bf)return!0x1;if(_0x5808ba){const _0x33007f=new Date(_0x54d2ef[_0x36550f(0xf5)][_0x36550f(0xea)](),_0x54d2ef[_0x36550f(0xf5)][_0x36550f(0xf1)](),_0x54d2ef[_0x36550f(0xf5)][_0x36550f(0xfe)]());return _0x3bd6a9?_0x3bd6a9[_0x36550f(0xee)]()===_0x5808ba[_0x36550f(0xee)]()?_0x33007f[_0x36550f(0xee)]()===_0x3bd6a9[_0x36550f(0xee)]():_0x33007f<_0x5808ba&&_0x33007f>=_0x3bd6a9:_0x33007f<_0x5808ba;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5ecd00=_0x512d;(function(_0x4cf2a0,_0x46cb43){var _0x3eb229=_0x512d,_0x4bdf1c=_0x4cf2a0();while(!![]){try{var _0x393857=-parseInt(_0x3eb229(0xe4))/0x1+-parseInt(_0x3eb229(0xdd))/0x2*(-parseInt(_0x3eb229(0xe1))/0x3)+parseInt(_0x3eb229(0xda))/0x4*(-parseInt(_0x3eb229(0xd9))/0x5)+-parseInt(_0x3eb229(0xe8))/0x6+parseInt(_0x3eb229(0xe0))/0x7+-parseInt(_0x3eb229(0xd8))/0x8*(-parseInt(_0x3eb229(0xe6))/0x9)+-parseInt(_0x3eb229(0xdc))/0xa;if(_0x393857===_0x46cb43)break;else _0x4bdf1c['push'](_0x4bdf1c['shift']());}catch(_0xf5ed60){_0x4bdf1c['push'](_0x4bdf1c['shift']());}}}(_0x1314,0x2f0b2));import{ObservableMixin as _0x3873b9}from'ckeditor5/src/utils.js';import{escape as _0x16c45f}from'es-toolkit/compat';function _0x512d(_0x280042,_0x13675e){var _0x1314b3=_0x1314();return _0x512d=function(_0x512d3e,_0x14c0b2){_0x512d3e=_0x512d3e-0xd8;var _0x389c30=_0x1314b3[_0x512d3e];return _0x389c30;},_0x512d(_0x280042,_0x13675e);}export class AIChatHistoryItem extends _0x3873b9(){['id'];[_0x5ecd00(0xe3)];constructor({id:_0x285e72,title:_0x5643f6,createdAt:_0x21e038,updatedAt:_0x66c7f4,pinned:_0x5d8adf}){var _0x1191e2=_0x5ecd00;super(),this['id']=_0x285e72,this[_0x1191e2(0xe3)]=new Date(_0x21e038),this[_0x1191e2(0xdf)](_0x1191e2(0xde),_0x5643f6),this[_0x1191e2(0xdf)](_0x1191e2(0xe5),_0x66c7f4?new Date(_0x66c7f4):null),this[_0x1191e2(0xdf)](_0x1191e2(0xe2),_0x5d8adf||!0x1);}[_0x5ecd00(0xe7)](_0x58b831){var _0x2d97ea=_0x5ecd00;this[_0x2d97ea(0xdf)](_0x2d97ea(0xde),_0x16c45f(_0x58b831)),this[_0x2d97ea(0xe5)]=new Date();}[_0x5ecd00(0xdb)](_0x439473){var _0x4de3e4=_0x5ecd00;this[_0x4de3e4(0xdf)](_0x4de3e4(0xe2),_0x439473),this[_0x4de3e4(0xe5)]=new Date();}}function _0x1314(){var _0x4d9a65=['446vwGCBK','title','set','2070047vAXGnk','501DlEnAQ','pinned','createdAt','2235UazQJa','updatedAt','22689ItPzqH','updateTitle','564870kqvIbg','1096xbPDgC','23255WvoCCe','212AszSXU','updatePinned','1427660RSkGCk'];_0x1314=function(){return _0x4d9a65;};return _0x1314();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x1ef9b7=_0x7eb6;(function(_0x26a1a6,_0x2d5e94){const _0x3bc7b9=_0x7eb6,_0x1f46c9=_0x26a1a6();while(!![]){try{const _0x41b56f=-parseInt(_0x3bc7b9(0x112))/0x1+parseInt(_0x3bc7b9(0xcd))/0x2+parseInt(_0x3bc7b9(0xbb))/0x3*(parseInt(_0x3bc7b9(0xd3))/0x4)+-parseInt(_0x3bc7b9(0xee))/0x5+parseInt(_0x3bc7b9(0xfd))/0x6*(parseInt(_0x3bc7b9(0xdc))/0x7)+-parseInt(_0x3bc7b9(0x11a))/0x8+parseInt(_0x3bc7b9(0xbe))/0x9;if(_0x41b56f===_0x2d5e94)break;else _0x1f46c9['push'](_0x1f46c9['shift']());}catch(_0x55a7f6){_0x1f46c9['push'](_0x1f46c9['shift']());}}}(_0x2f68,0x6527d));import{ListItemView as _0x52f368,HighlightedTextView as _0x140ec7,ButtonView as _0xea4b7d,ListView as _0xc3a31f,IconView as _0x5b7cc0,createDropdown as _0x4c1ede,InputTextView as _0x247e86}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x31b554,IconPin as _0x3e919d,IconCheck as _0x6ae6e0,IconCancel as _0x9e8743}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x50c805,ConfirmMixin as _0xb82181}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x2f68(){const _0x35b18e=['createCollection','items','_commitEditInputValue','editConversationTitle','bindTemplate','_createMenuDropdownView','_createSpinnerView','2231536OjAZLS','isMatching','21528PQXlOu','_createCancelEditButtonView','pinned','674631gjcKYk','Enter','setConversationPinned','key','execute','_titleView','_createPinButtonView','fire','isOn','AI_CHAT_HISTORY_PIN_BUTTON','ck-confirm-view-cancel','click','ck-ai-loader','ck-ai-chat-history__item--edit','children','737958KOiTFF','label','ck-ai-loader__text','isEdit','ck-ai-chat-history__item-row','setTemplate','104hwwHAM','span','AI_CHAT_HISTORY_LOADING_PINNING','showConfirm','loadingState','actions','AI_CHAT_HISTORY_LOADING_REMOVING','change:isEdit','focus','28PLyJGC','updateLoadingState','extendTemplate','updateTitle','withText','clear','removeConversation','locale','element','ck-ai-chat-history__item-date','_createCheckView','then','panelPosition','value','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_LOADING_RENAMING','addMany','listitem','114770xSNmWU','ck-ai-chat-history__item-check-container','highlightText','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_REMOVE','ck-confirm-view-submit','isVisible','ck-hidden','bind','ck-ai-chat-history__item-check','text','add','mainContent','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','edit:cancel','901188YYwHyG','AI_CHAT_HISTORY_REMOVE_CONFIRM','match','ck-ai-chat-history__item-title','ck-ai-chat-history__item-main-content','AI_CHAT_HISTORY_LOADING_UNPINNING','ck-ai-chat-history__item--active','ck-ai-chat-history__item-content','buttonView','panelView','set','string','AI_CHAT_HISTORY_CANCEL','selectConversation','_createAcceptEditButtonView','ck-ai-chat-history__item','tiny','_createEditInputView','AI_CHAT_HISTORY_EDIT_NAME','LOADING_LABELS','div','515077ePWOZk'];_0x2f68=function(){return _0x35b18e;};return _0x2f68();}import{escape as _0x1b0366}from'es-toolkit/compat';function _0x7eb6(_0x1c8838,_0x4dc623){const _0x2f680c=_0x2f68();return _0x7eb6=function(_0x7eb6be,_0x1e2171){_0x7eb6be=_0x7eb6be-0xba;let _0x4f73f7=_0x2f680c[_0x7eb6be];return _0x4f73f7;},_0x7eb6(_0x1c8838,_0x4dc623);}import{AISpinnerView as _0x2368d4}from'../../aicore/ui/aispinner.js';import{getTranslation as _0xd1da1f}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xb82181(_0x52f368){['id'];static [_0x1ef9b7(0x110)]={'remove':_0x1ef9b7(0xd9),'rename':_0x1ef9b7(0xeb),'pin':_0x1ef9b7(0xd5),'unpin':_0x1ef9b7(0x102)};[_0x1ef9b7(0xd8)];[_0x1ef9b7(0xfa)];[_0x1ef9b7(0xc3)];constructor(_0x1b704c,_0x1e467a){const _0xd6e089=_0x1ef9b7;super(_0x1b704c);const _0x3bceb5=this[_0xd6e089(0x117)];this[_0xd6e089(0x107)](_0xd6e089(0xd0),!0x1),this[_0xd6e089(0x107)](_0xd6e089(0xf4),!0x0),this[_0xd6e089(0x107)](_0xd6e089(0xbd),!!_0x1e467a[_0xd6e089(0xbd)]),this[_0xd6e089(0x107)](_0xd6e089(0xd7),null),this['id']=_0x1e467a['id'];const {title:_0x12e9ec,createdAt:_0x4d7c7a,active:_0x5de58b=!0x1}=_0x1e467a;this[_0xd6e089(0xc3)]=new _0x140ec7(),this[_0xd6e089(0xc3)][_0xd6e089(0xf8)]=_0x12e9ec,this[_0xd6e089(0xc3)][_0xd6e089(0xde)]({'attributes':{'class':[_0xd6e089(0x100)]}});const _0x21476d=this[_0xd6e089(0xe6)](),_0x23c210=this[_0xd6e089(0xc4)](_0x1b704c),_0x127a06=this[_0xd6e089(0x118)](),_0x4d122c=this[_0xd6e089(0x10e)](_0x1b704c,_0x12e9ec),_0x1d9e96=this[_0xd6e089(0x10b)](_0x1b704c,_0x4d122c),_0x4a071c=this[_0xd6e089(0xbc)](_0x1b704c,_0x4d122c);this[_0xd6e089(0xd8)]=this[_0xd6e089(0x113)](),this[_0xd6e089(0xfa)]=this[_0xd6e089(0x113)](),this[_0xd6e089(0xfa)][_0xd6e089(0xf9)](this[_0xd6e089(0xc3)]),this[_0xd6e089(0xd8)][_0xd6e089(0xf9)](_0x23c210),this[_0xd6e089(0xd8)][_0xd6e089(0xf9)](_0x127a06),this['on'](_0xd6e089(0xda),(_0x1ad3b8,_0xff12b3,_0x68c68f)=>{const _0x4bc424=_0xd6e089;this[_0x4bc424(0xd8)][_0x4bc424(0xe1)](),this[_0x4bc424(0xfa)][_0x4bc424(0xe1)](),_0x68c68f?(this[_0x4bc424(0xd8)][_0x4bc424(0xf9)](_0x1d9e96),this[_0x4bc424(0xd8)][_0x4bc424(0xf9)](_0x4a071c),this[_0x4bc424(0xfa)][_0x4bc424(0xf9)](_0x4d122c),_0x4d122c[_0x4bc424(0xe4)][_0x4bc424(0xdb)]()):(this[_0x4bc424(0xd8)][_0x4bc424(0xf9)](_0x23c210),this[_0x4bc424(0xd8)][_0x4bc424(0xf9)](_0x127a06),this[_0x4bc424(0xfa)][_0x4bc424(0xf9)](this[_0x4bc424(0xc3)]));}),this[_0xd6e089(0xd2)]({'tag':'li','attributes':{'class':[_0xd6e089(0x10c),_0x5de58b?_0xd6e089(0x103):'',_0x3bceb5['if'](_0xd6e089(0xf4),_0xd6e089(0xf5),_0x1598e6=>!_0x1598e6),_0x3bceb5['if'](_0xd6e089(0xd0),_0xd6e089(0xcb))],'role':_0xd6e089(0xed)},'children':[{'tag':_0xd6e089(0xd4),'attributes':{'class':[_0xd6e089(0xef)]},'children':[{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0xf7),_0x3bceb5['if'](_0xd6e089(0xd7),_0xd6e089(0xf5),_0x2c4f61=>!!_0x2c4f61)]},'children':_0x5de58b?[_0x21476d]:[]},{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0xca),_0x3bceb5['if'](_0xd6e089(0xd7),_0xd6e089(0xf5),_0x3a06b5=>!_0x3a06b5)]},'children':[this[_0xd6e089(0x119)]()]}]},{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0xd1)]},'children':[{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0x104)]},'on':{'click':this[_0xd6e089(0x117)]['to'](_0xd6e089(0xc9))},'children':[{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0x101)]},'children':[{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0x100),_0x3bceb5['if'](_0xd6e089(0xd7),_0xd6e089(0xf5),_0x57416a=>!!_0x57416a)]},'children':this[_0xd6e089(0xfa)]},{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0xcf),_0x3bceb5['if'](_0xd6e089(0xd7),_0xd6e089(0xf5),_0x3ca758=>!_0x3ca758)]},'children':[{'text':_0x3bceb5['to'](_0xd6e089(0xd7),_0x3fdc8f=>_0x3fdc8f?_0xd1da1f(this[_0xd6e089(0xe3)],AIChatHistoryListItemView[_0xd6e089(0x110)][_0x3fdc8f]):'')}]}]},{'tag':_0xd6e089(0xd4),'attributes':{'class':[_0xd6e089(0xe5)]},'children':[_0x4d7c7a]}]},{'tag':_0xd6e089(0x111),'attributes':{'class':[_0xd6e089(0xf1)]},'children':this[_0xd6e089(0xd8)]}]}]}),this['on'](_0xd6e089(0xc9),()=>{const _0xd7a23=_0xd6e089;this[_0xd7a23(0xd0)]||this[_0xd7a23(0xc5)](_0xd7a23(0x10a),{'id':this['id']});});}[_0x1ef9b7(0xdf)](_0x37a1f8){const _0x5a73ba=_0x1ef9b7;this[_0x5a73ba(0xc3)][_0x5a73ba(0xf8)]=_0x1b0366(_0x37a1f8);}[_0x1ef9b7(0xdd)](_0x292801,_0x3d5545){const _0x16901e=_0x1ef9b7;this[_0x16901e(0x107)](_0x16901e(0xd7),_0x3d5545?_0x292801:null);}[_0x1ef9b7(0xe6)](){const _0x4ec505=_0x1ef9b7,_0x14f17b=new _0x5b7cc0();return _0x14f17b[_0x4ec505(0x107)]({'content':_0x6ae6e0}),_0x14f17b;}[_0x1ef9b7(0xc4)](_0x45a7ef){const _0x50a09f=_0x1ef9b7,_0x24dbc5=new _0xea4b7d(_0x45a7ef);return _0x24dbc5[_0x50a09f(0x107)]({'label':_0xd1da1f(_0x45a7ef,_0x50a09f(0xc7)),'icon':_0x3e919d,'withText':!0x1,'tooltip':!0x0}),_0x24dbc5[_0x50a09f(0xf6)](_0x50a09f(0xc6))['to'](this,_0x50a09f(0xbd)),_0x24dbc5['on'](_0x50a09f(0xc2),()=>{const _0x1132f3=_0x50a09f,_0xc0538c=!this[_0x1132f3(0xbd)];this[_0x1132f3(0xc5)](_0x1132f3(0xc0),{'id':this['id'],'pinned':_0xc0538c});}),_0x24dbc5;}[_0x1ef9b7(0x118)](){const _0x583083=_0x1ef9b7,_0x1c6cbf=_0x4c1ede(this[_0x583083(0xe3)],_0x50c805),_0x2ff449=_0x1c6cbf[_0x583083(0x106)][_0x583083(0xcc)];_0x1c6cbf[_0x583083(0x105)][_0x583083(0x107)]({'label':_0xd1da1f(this[_0x583083(0xe3)],_0x583083(0xfb)),'icon':_0x31b554}),_0x1c6cbf[_0x583083(0xe8)]='sw';const _0x5a0601=new _0xea4b7d(this[_0x583083(0xe3)]);_0x5a0601[_0x583083(0xce)]=_0xd1da1f(this[_0x583083(0xe3)],_0x583083(0x10f)),_0x5a0601[_0x583083(0xe0)]=!0x0,_0x5a0601['on'](_0x583083(0xc2),()=>{const _0xf19454=_0x583083;this[_0xf19454(0xd0)]=!0x0;});const _0x3ef0c8=new _0xea4b7d(this[_0x583083(0xe3)]);_0x3ef0c8[_0x583083(0xce)]=_0xd1da1f(this[_0x583083(0xe3)],_0x583083(0xf2)),_0x3ef0c8[_0x583083(0xe0)]=!0x0,_0x3ef0c8['on'](_0x583083(0xc2),()=>{const _0x52d78d=_0x583083;this[_0x52d78d(0xd6)](_0xd1da1f(this[_0x52d78d(0xe3)],_0x52d78d(0xfe)),this[_0x52d78d(0xe4)])[_0x52d78d(0xe7)](()=>{const _0x54d991=_0x52d78d;this[_0x54d991(0xc5)](_0x54d991(0xe2),{'id':this['id']});});});const _0x113a03=new _0xc3a31f(this[_0x583083(0xe3)]),_0x1ce082=new _0x52f368(this[_0x583083(0xe3)]);_0x1ce082[_0x583083(0xcc)][_0x583083(0xf9)](_0x5a0601);const _0xf38e46=new _0x52f368(this[_0x583083(0xe3)]);return _0xf38e46[_0x583083(0xcc)][_0x583083(0xf9)](_0x3ef0c8),_0x113a03[_0x583083(0x114)][_0x583083(0xec)]([_0x1ce082,_0xf38e46]),_0x2ff449[_0x583083(0xf9)](_0x113a03),_0x1c6cbf;}[_0x1ef9b7(0x10e)](_0x145c78,_0x32b802){const _0x3755b1=_0x1ef9b7,_0x186c66=new _0x247e86(_0x145c78),_0x4f6fbe=_0x186c66[_0x3755b1(0x117)];return _0x186c66[_0x3755b1(0xe9)]=_0x32b802,_0x186c66[_0x3755b1(0xde)]({'on':{'keydown':_0x4f6fbe['to'](_0x5dd6ae=>{const _0x425c8f=_0x3755b1;_0x425c8f(0xbf)==_0x5dd6ae[_0x425c8f(0xc1)]&&this[_0x425c8f(0x115)](_0x186c66);})}}),_0x186c66;}[_0x1ef9b7(0x10b)](_0x4aec0f,_0x5bd1ed){const _0xceca16=_0x1ef9b7,_0x244f3d=new _0xea4b7d(_0x4aec0f);return _0x244f3d[_0xceca16(0x107)]({'icon':_0x6ae6e0,'withText':!0x1,'tooltip':_0xd1da1f(_0x4aec0f,_0xceca16(0xea))}),_0x244f3d[_0xceca16(0xde)]({'attributes':{'class':[_0xceca16(0xf3)]}}),_0x244f3d['on'](_0xceca16(0xc2),()=>{const _0x3f3ee0=_0xceca16;this[_0x3f3ee0(0x115)](_0x5bd1ed);}),_0x244f3d;}[_0x1ef9b7(0x115)](_0x3589fb){const _0x4d61a7=_0x1ef9b7,_0x24bf49=_0x3589fb[_0x4d61a7(0xe4)][_0x4d61a7(0xe9)]||'';this[_0x4d61a7(0xc3)][_0x4d61a7(0xf8)]=_0x24bf49,this[_0x4d61a7(0xd0)]=!0x1,this[_0x4d61a7(0xc5)](_0x4d61a7(0x116),{'id':this['id'],'title':_0x24bf49});}[_0x1ef9b7(0xbc)](_0x1b4ee6,_0x5200ca){const _0x4c2413=_0x1ef9b7,_0x183901=new _0xea4b7d(_0x1b4ee6);return _0x183901[_0x4c2413(0x107)]({'icon':_0x9e8743,'withText':!0x1,'tooltip':_0xd1da1f(_0x1b4ee6,_0x4c2413(0x109))}),_0x183901[_0x4c2413(0xde)]({'attributes':{'class':[_0x4c2413(0xc8)]}}),_0x183901['on'](_0x4c2413(0xc2),()=>{const _0x40dcfb=_0x4c2413;this[_0x40dcfb(0xd0)]=!0x1,_0x5200ca[_0x40dcfb(0xe9)]=this[_0x40dcfb(0xc3)][_0x40dcfb(0xf8)]||'',this[_0x40dcfb(0xc5)](_0x40dcfb(0xfc));}),_0x183901;}[_0x1ef9b7(0x119)](){const _0x165c38=_0x1ef9b7,_0xd0f2e=new _0x2368d4(_0x165c38(0x10d));return _0xd0f2e[_0x165c38(0xf4)]=!0x0,_0xd0f2e;}[_0x1ef9b7(0xba)](_0x3fd821){const _0x30fa50=_0x1ef9b7;return this[_0x30fa50(0xc3)]&&_0x30fa50(0x108)==typeof this[_0x30fa50(0xc3)][_0x30fa50(0xf8)]&&this[_0x30fa50(0xc3)][_0x30fa50(0xf8)][_0x30fa50(0xff)](_0x3fd821)?{'title':!0x0}:null;}[_0x1ef9b7(0xf0)](_0x4d59e4){const _0x25195d=_0x1ef9b7;this[_0x25195d(0xc3)][_0x25195d(0xf0)](_0x4d59e4);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x7ae9(){const _0x50c360=['1598821yRwiDF','317540cTUSPB','splice','1368402OJBUyO','remove','2251920RkYGcF','16daUxXG','isVisible','10Nbflhh','highlightText','1kuYWXd','set','10158467ijKHmQ','find','2051793sfIGds','setTemplate','bindTemplate','ck-ai-chat-history__section-title','addMany','div','filter','indexOf','items','ck-ai-chat-history__section','isMatching','length','4GuMDoH','1897290HdqZeY','getItem','ck-hidden','itemsViews','removeItem','title','_itemsListView'];_0x7ae9=function(){return _0x50c360;};return _0x7ae9();}const _0x2b852f=_0x1b5a;(function(_0x4fe852,_0x1248ac){const _0x26fcd7=_0x1b5a,_0x1412c1=_0x4fe852();while(!![]){try{const _0x300245=parseInt(_0x26fcd7(0x8f))/0x1*(-parseInt(_0x26fcd7(0x86))/0x2)+-parseInt(_0x26fcd7(0x88))/0x3*(-parseInt(_0x26fcd7(0x9f))/0x4)+-parseInt(_0x26fcd7(0xa0))/0x5+-parseInt(_0x26fcd7(0x8a))/0x6+parseInt(_0x26fcd7(0xa7))/0x7*(-parseInt(_0x26fcd7(0x8b))/0x8)+-parseInt(_0x26fcd7(0x93))/0x9*(-parseInt(_0x26fcd7(0x8d))/0xa)+parseInt(_0x26fcd7(0x91))/0xb;if(_0x300245===_0x1248ac)break;else _0x1412c1['push'](_0x1412c1['shift']());}catch(_0x5e2713){_0x1412c1['push'](_0x1412c1['shift']());}}}(_0x7ae9,0x39ec6));import{ListItemView as _0x138a71,View as _0x105697,ListView as _0x467ac6}from'ckeditor5/src/ui.js';function _0x1b5a(_0x2e65a5,_0x34f010){const _0x7ae971=_0x7ae9();return _0x1b5a=function(_0x1b5a8b,_0x1caa9b){_0x1b5a8b=_0x1b5a8b-0x86;let _0x5d314c=_0x7ae971[_0x1b5a8b];return _0x5d314c;},_0x1b5a(_0x2e65a5,_0x34f010);}export class AIChatHistoryListView extends _0x138a71{[_0x2b852f(0xa5)];[_0x2b852f(0xa3)];[_0x2b852f(0xa6)];constructor(_0x913474,{title:_0x5d7e26,items:_0x414bdc}){const _0x207ee1=_0x2b852f;super(_0x913474);const _0x34b308=this[_0x207ee1(0x95)];this[_0x207ee1(0x90)](_0x207ee1(0x8c),!0x0),this[_0x207ee1(0xa5)]=_0x5d7e26,this[_0x207ee1(0xa3)]=_0x414bdc;const _0x25063e=new _0x105697(_0x913474);_0x25063e[_0x207ee1(0x94)]({'tag':_0x207ee1(0x98),'attributes':{'class':[_0x207ee1(0x96)]},'children':[this[_0x207ee1(0xa5)]]}),this[_0x207ee1(0xa6)]=new _0x467ac6(_0x913474),this[_0x207ee1(0xa6)][_0x207ee1(0x9b)][_0x207ee1(0x97)](this[_0x207ee1(0xa3)]),this[_0x207ee1(0x94)]({'tag':'li','attributes':{'class':[_0x207ee1(0x9c),_0x34b308['if'](_0x207ee1(0x8c),_0x207ee1(0xa2),_0x416fea=>!_0x416fea)]},'children':[_0x25063e,this[_0x207ee1(0xa6)]]});}[_0x2b852f(0x99)](_0x3ea029){const _0x1d37f7=_0x2b852f,_0x1a8798=this[_0x1d37f7(0xa3)][_0x1d37f7(0x9e)];let _0x5c6e28=0x0;for(const _0x1798b3 of this[_0x1d37f7(0xa3)]){if(_0x3ea029){const _0xd9920c=_0x1798b3[_0x1d37f7(0x9d)](_0x3ea029);_0x1798b3[_0x1d37f7(0x8c)]=!!_0xd9920c,_0x1798b3[_0x1d37f7(0x8e)](_0x3ea029);}else _0x1798b3[_0x1d37f7(0x8c)]=!0x0,_0x1798b3[_0x1d37f7(0x8e)](null);_0x1798b3[_0x1d37f7(0x8c)]&&_0x5c6e28++;}return this[_0x1d37f7(0x8c)]=_0x5c6e28>0x0,{'resultsCount':_0x5c6e28,'totalItemsCount':_0x1a8798};}[_0x2b852f(0xa1)](_0x2049be){const _0x28a91f=_0x2b852f;return this[_0x28a91f(0xa3)][_0x28a91f(0x92)](_0x512281=>_0x512281['id']===_0x2049be);}[_0x2b852f(0xa4)](_0x19c66b){const _0x58ad5b=_0x2b852f,_0x2ddaae=this[_0x58ad5b(0xa3)][_0x58ad5b(0x9a)](_0x19c66b);-0x1!==_0x2ddaae&&(this[_0x58ad5b(0xa3)][_0x58ad5b(0x87)](_0x2ddaae,0x1),this[_0x58ad5b(0xa6)][_0x58ad5b(0x9b)][_0x58ad5b(0x89)](_0x19c66b));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16712f=_0xdcbf;function _0xdcbf(_0x81888b,_0x1aa49a){const _0x454828=_0x4548();return _0xdcbf=function(_0xdcbf0e,_0x2d3cc0){_0xdcbf0e=_0xdcbf0e-0x1a6;let _0x788c98=_0x454828[_0xdcbf0e];return _0x788c98;},_0xdcbf(_0x81888b,_0x1aa49a);}(function(_0x316e1b,_0x3e0675){const _0x480b4e=_0xdcbf,_0x47cde5=_0x316e1b();while(!![]){try{const _0x1cf663=parseInt(_0x480b4e(0x1ac))/0x1*(-parseInt(_0x480b4e(0x1ad))/0x2)+-parseInt(_0x480b4e(0x1a9))/0x3+-parseInt(_0x480b4e(0x1b0))/0x4*(parseInt(_0x480b4e(0x1b2))/0x5)+-parseInt(_0x480b4e(0x1b3))/0x6+parseInt(_0x480b4e(0x1ae))/0x7+parseInt(_0x480b4e(0x1b1))/0x8+-parseInt(_0x480b4e(0x1b4))/0x9*(-parseInt(_0x480b4e(0x1af))/0xa);if(_0x1cf663===_0x3e0675)break;else _0x47cde5['push'](_0x47cde5['shift']());}catch(_0x423650){_0x47cde5['push'](_0x47cde5['shift']());}}}(_0x4548,0x280f2));import{ListView as _0x18c30f}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x18c30f{[_0x16712f(0x1ab)];constructor(_0x342be8,_0x2cc391){const _0x423382=_0x16712f;super(_0x342be8),this[_0x423382(0x1ab)]=_0x2cc391,this[_0x423382(0x1a6)][_0x423382(0x1a8)](this[_0x423382(0x1ab)]),this[_0x423382(0x1aa)]({'attributes':{'class':[_0x423382(0x1b5)]}});}[_0x16712f(0x1a7)](_0x320b2e){const _0x26bb02=_0x16712f;let _0x42791f=0x0,_0x1c3a02=0x0;for(const _0xfdb101 of this[_0x26bb02(0x1ab)]){const {resultsCount:_0x1acd5e,totalItemsCount:_0x26d7e0}=_0xfdb101[_0x26bb02(0x1a7)](_0x320b2e);_0x42791f+=_0x1acd5e,_0x1c3a02+=_0x26d7e0;}return{'resultsCount':_0x42791f,'totalItemsCount':_0x1c3a02};}}function _0x4548(){const _0x50895f=['ck-ai-chat-history__sections','items','filter','addMany','18330dzwvHZ','extendTemplate','sections','5381RzBBVN','118AGJGmk','1893255bUqwZQ','104080Wgyxwy','408616QDduwr','1255488OJGauq','5eDwaFo','211968IDdPGN','171hRhHAz'];_0x4548=function(){return _0x50895f;};return _0x4548();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3369d1=_0x5558;(function(_0x445e61,_0x23a4bd){const _0xc05601=_0x5558,_0x464fbd=_0x445e61();while(!![]){try{const _0x31f234=parseInt(_0xc05601(0x20b))/0x1*(parseInt(_0xc05601(0x220))/0x2)+-parseInt(_0xc05601(0x219))/0x3*(parseInt(_0xc05601(0x22d))/0x4)+-parseInt(_0xc05601(0x1e4))/0x5+-parseInt(_0xc05601(0x228))/0x6+-parseInt(_0xc05601(0x201))/0x7+-parseInt(_0xc05601(0x1ec))/0x8*(parseInt(_0xc05601(0x204))/0x9)+parseInt(_0xc05601(0x1d8))/0xa;if(_0x31f234===_0x23a4bd)break;else _0x464fbd['push'](_0x464fbd['shift']());}catch(_0x44145c){_0x464fbd['push'](_0x464fbd['shift']());}}}(_0x19f6,0x88e62));function _0x19f6(){const _0x165cad=['fieldView','errorMessage','7725620kuwAfF','aiHistory','items','45acNXBn','_updateViewVisibility','add','search','set','change:hasItems','change:errorMessage','9CGnnon','ltr','isMaximized','removeHistoryItem','skeletonView','ck-ai-chat-history','resizeButton','updateTitle','hasItems','sectionsView','ck-ai-chat-history__empty','AI_CHAT_LABEL_NEW_CHAT','updateLoadingState','isEmptyViewVisible','3DEwTmF','execute','isVisible','bindTemplate','setTemplate','updateItemLoadingState','ck-ai-chat-error__dismiss-button','42954EpHXIP','delegate','_createListItemViews','extendTemplate','splice','fire','indexOf','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','6592062JtHRSw','itemsViews','_createEmptyStateView','emptyView','updateHistoryItemsWithCategories','1933404WZwJTm','render','title','isSearchViewVisible','change:isLoading','removeItem','42055720IievdX','ck-ai-chat-history__empty-message','div','ck-ai-chat__start-conversation','_createErrorView','_createSkeletonView','sections','length','locale','AI_CHAT_HISTORY_EMPTY_MESSAGE','isLoading','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','2793520MsKutK','ck-ai-chat-error','ck-rounded-corners','ck-hidden','bind','updateItemTitle','ck-reset_all','remove','949976EyyVrm','_refreshSearch','clear','AI_CHAT_HISTORY_SEARCH_LABEL','openChat','children','errorView','some','ck-ai-chat-history__content','getItem','addMany','push','value','AI_CHAT_HISTORY_HEADING','element','ck-ai-header\x20ck-ai-header_history','searchView','_createSearchView','queryView'];_0x19f6=function(){return _0x165cad;};return _0x19f6();}import{View as _0x4bd8e1,SearchTextView as _0x2bb5f2,FormHeaderView as _0x2972d4,ButtonView as _0x1f5e4b}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x290677,IconCancel as _0x85bba5,IconPlus as _0x2cee74}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x45d1af}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x5c9c56}from'./aichathistorylistview.js';function _0x5558(_0x16cde5,_0x2620b2){const _0x19f645=_0x19f6();return _0x5558=function(_0x55583f,_0xdd2a50){_0x55583f=_0x55583f-0x1d6;let _0x1a427e=_0x19f645[_0x55583f];return _0x1a427e;},_0x5558(_0x16cde5,_0x2620b2);}import{AIChatHistoryListItemView as _0x114dbf}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5d69d2}from'../aichathistoryui.js';import{AISkeletonView as _0x4e73ea,SKELETON_DEFINITIONS as _0x1d6d28}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4d3259}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4c6d61}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x4bd8e1{[_0x3369d1(0x1fc)];[_0x3369d1(0x1f2)];[_0x3369d1(0x20f)];[_0x3369d1(0x22b)];[_0x3369d1(0x214)];[_0x3369d1(0x211)];constructor(_0x2d7ba6,_0xd84b9e){const _0x55d46e=_0x3369d1;super(_0x2d7ba6),this[_0x55d46e(0x208)](_0x55d46e(0x213),!0x1),this[_0x55d46e(0x208)](_0x55d46e(0x1e2),!0x0),this[_0x55d46e(0x208)](_0x55d46e(0x200),''),this[_0x55d46e(0x208)](_0x55d46e(0x20d),!0x1),this[_0x55d46e(0x208)](_0x55d46e(0x230),!0x1),this[_0x55d46e(0x208)](_0x55d46e(0x218),!0x1);const _0x2a9956=new _0x2972d4(_0x2d7ba6,{'label':_0x4c6d61(_0x2d7ba6,_0x55d46e(0x1f9)),'icon':_0x290677,'class':_0x55d46e(0x1fb)});_0xd84b9e&&(this[_0x55d46e(0x211)]=_0x4d3259(_0x2d7ba6,this),_0x2a9956[_0x55d46e(0x1f1)][_0x55d46e(0x206)](this[_0x55d46e(0x211)])),this[_0x55d46e(0x214)]=new _0x45d1af(_0x2d7ba6,[]),this[_0x55d46e(0x214)][_0x55d46e(0x221)](..._0x5d69d2)['to'](this),this[_0x55d46e(0x1f2)]=this[_0x55d46e(0x1dc)](),this[_0x55d46e(0x20f)]=this[_0x55d46e(0x1dd)](),this[_0x55d46e(0x22b)]=this[_0x55d46e(0x22a)](),this[_0x55d46e(0x1fc)]=this[_0x55d46e(0x1fd)](),this['on'](_0x55d46e(0x1d6),()=>this[_0x55d46e(0x205)]()),this['on'](_0x55d46e(0x209),()=>this[_0x55d46e(0x205)]()),this['on'](_0x55d46e(0x20a),()=>this[_0x55d46e(0x205)]()),this[_0x55d46e(0x21d)]({'tag':_0x55d46e(0x1da),'attributes':{'class':['ck',_0x55d46e(0x1ea),_0x55d46e(0x210),_0x55d46e(0x1e6)],'dir':_0x55d46e(0x20c)},'children':[_0x2a9956,{'tag':_0x55d46e(0x1da),'attributes':{'class':[_0x55d46e(0x1f4)]},'children':[this[_0x55d46e(0x20f)],this[_0x55d46e(0x1f2)],this[_0x55d46e(0x22b)],this[_0x55d46e(0x1fc)]]}]});}[_0x3369d1(0x205)](){const _0x700008=_0x3369d1;this[_0x700008(0x230)]=!this[_0x700008(0x1e2)]&&this[_0x700008(0x213)]&&!this[_0x700008(0x200)],this[_0x700008(0x218)]=!this[_0x700008(0x1e2)]&&!this[_0x700008(0x213)]&&!this[_0x700008(0x200)];}[_0x3369d1(0x1fd)](){const _0x2b6268=_0x3369d1,_0x3e2d4f=new _0x2bb5f2(this[_0x2b6268(0x1e0)],{'filteredView':this[_0x2b6268(0x214)],'queryView':{'label':_0x4c6d61(this[_0x2b6268(0x1e0)],_0x2b6268(0x1ef))},'infoView':{'text':{'notFound':{'primary':_0x375ed7=>_0x4c6d61(this[_0x2b6268(0x1e0)],_0x2b6268(0x1e3),_0x375ed7),'secondary':_0x4c6d61(this[_0x2b6268(0x1e0)],_0x2b6268(0x227))}}}});return _0x3e2d4f['on'](_0x2b6268(0x22e),()=>{const _0x4d5f35=_0x2b6268;this[_0x4d5f35(0x1fc)][_0x4d5f35(0x1f1)][_0x4d5f35(0x206)](this[_0x4d5f35(0x1f2)],0x1);}),_0x3e2d4f[_0x2b6268(0x223)]({'attributes':{'class':[this[_0x2b6268(0x21c)]['if'](_0x2b6268(0x230),_0x2b6268(0x1e7),_0x2f2fdc=>!_0x2f2fdc)]}}),_0x3e2d4f;}[_0x3369d1(0x1dd)](){const _0x30ae1c=_0x3369d1,_0x3f52c9=new _0x4e73ea(this[_0x30ae1c(0x1e0)],_0x1d6d28[_0x30ae1c(0x202)]);return _0x3f52c9[_0x30ae1c(0x223)]({'attributes':{'class':[this[_0x30ae1c(0x21c)]['if'](_0x30ae1c(0x1e2),_0x30ae1c(0x1e7),_0x1413c5=>!_0x1413c5)]}}),_0x3f52c9;}[_0x3369d1(0x1dc)](){const _0x2e1347=_0x3369d1,_0x582601=new _0x4bd8e1(this[_0x2e1347(0x1e0)]),_0xc8d1a8=new _0x1f5e4b(this[_0x2e1347(0x1e0)]);return _0xc8d1a8[_0x2e1347(0x208)]({'withText':!0x1,'icon':_0x85bba5,'class':_0x2e1347(0x21f)}),_0xc8d1a8[_0x2e1347(0x1e8)](_0x2e1347(0x21b))['to'](this,_0x2e1347(0x213),_0xbaeee0=>!!_0xbaeee0),_0xc8d1a8['on'](_0x2e1347(0x21a),()=>{const _0x3e524d=_0x2e1347;this[_0x3e524d(0x200)]='';}),_0x582601[_0x2e1347(0x21d)]({'tag':_0x2e1347(0x1da),'attributes':{'class':['ck',_0x2e1347(0x1e5),this[_0x2e1347(0x21c)]['if'](_0x2e1347(0x200),_0x2e1347(0x1e7),_0x169d25=>!_0x169d25)]},'children':[{'tag':'p','children':[{'text':this[_0x2e1347(0x21c)]['to'](_0x2e1347(0x200))}]},_0xc8d1a8]}),_0x582601;}[_0x3369d1(0x22a)](){const _0x49ff7e=_0x3369d1,_0x41b48c=new _0x1f5e4b(this[_0x49ff7e(0x1e0)]);_0x41b48c[_0x49ff7e(0x208)]({'label':_0x4c6d61(this[_0x49ff7e(0x1e0)],_0x49ff7e(0x216)),'withText':!0x0,'icon':_0x2cee74,'class':_0x49ff7e(0x1db)}),_0x41b48c['on'](_0x49ff7e(0x21a),()=>{const _0x2a14e6=_0x49ff7e;this[_0x2a14e6(0x225)](_0x2a14e6(0x1f0));});const _0x18a232=new _0x4bd8e1(this[_0x49ff7e(0x1e0)]);return _0x18a232[_0x49ff7e(0x21d)]({'tag':_0x49ff7e(0x1da),'attributes':{'class':[_0x49ff7e(0x215),this[_0x49ff7e(0x21c)]['if'](_0x49ff7e(0x218),_0x49ff7e(0x1e7),_0x1c7e85=>!_0x1c7e85)]},'children':[{'tag':'p','attributes':{'class':[_0x49ff7e(0x1d9)]},'children':[_0x4c6d61(this[_0x49ff7e(0x1e0)],_0x49ff7e(0x1e1))]},_0x41b48c]}),_0x18a232;}[_0x3369d1(0x222)](_0x39bdb2,_0x370bc6){const _0x303d97=_0x3369d1,_0xfb523=[];for(const _0x43c583 of _0x39bdb2){const _0x5aebb5=new _0x114dbf(_0x370bc6,_0x43c583);_0x5aebb5[_0x303d97(0x221)](..._0x5d69d2)['to'](this),_0xfb523[_0x303d97(0x1f7)](_0x5aebb5);}return _0xfb523;}[_0x3369d1(0x22c)](_0x135f38){const _0x552a78=_0x3369d1,_0x165844=this[_0x552a78(0x1e0)]||'en',_0x51352e=[];for(const _0x435314 of _0x135f38){const _0x3d007a=this[_0x552a78(0x222)](_0x435314[_0x552a78(0x203)],_0x165844);_0x51352e[_0x552a78(0x1f7)](new _0x5c9c56(_0x165844,{'title':_0x435314[_0x552a78(0x22f)],'items':_0x3d007a}));}this[_0x552a78(0x214)][_0x552a78(0x1de)]=_0x51352e,this[_0x552a78(0x214)][_0x552a78(0x203)][_0x552a78(0x1ee)](),this[_0x552a78(0x214)][_0x552a78(0x203)][_0x552a78(0x1f6)](_0x51352e),this[_0x552a78(0x213)]=_0x135f38[_0x552a78(0x1f3)](_0x51d493=>_0x51d493[_0x552a78(0x203)][_0x552a78(0x1df)]>0x0),this[_0x552a78(0x1ed)]();}[_0x3369d1(0x20e)](_0x5958b3){const _0x41458f=_0x3369d1;for(const _0x1b35d8 of this[_0x41458f(0x214)][_0x41458f(0x1de)]){const _0xb43581=_0x1b35d8[_0x41458f(0x1f5)](_0x5958b3);if(_0xb43581){if(_0x1b35d8[_0x41458f(0x1d7)](_0xb43581),0x0===_0x1b35d8[_0x41458f(0x229)][_0x41458f(0x1df)]){const _0x23fdd0=this[_0x41458f(0x214)][_0x41458f(0x1de)][_0x41458f(0x226)](_0x1b35d8);-0x1!==_0x23fdd0&&(this[_0x41458f(0x214)][_0x41458f(0x1de)][_0x41458f(0x224)](_0x23fdd0,0x1),this[_0x41458f(0x214)][_0x41458f(0x203)][_0x41458f(0x1eb)](_0x1b35d8));}this[_0x41458f(0x213)]=this[_0x41458f(0x214)][_0x41458f(0x1de)][_0x41458f(0x1df)]>0x0,this[_0x41458f(0x1ed)]();break;}}}[_0x3369d1(0x1e9)](_0x2a2a4b,_0x22ccd2){const _0x52a562=_0x3369d1;for(const _0x4c80fc of this[_0x52a562(0x214)][_0x52a562(0x1de)]){const _0x2a987b=_0x4c80fc[_0x52a562(0x1f5)](_0x2a2a4b);if(_0x2a987b){_0x2a987b[_0x52a562(0x212)](_0x22ccd2);break;}}}[_0x3369d1(0x21e)](_0x159463,_0x13d173,_0x8c56e5){const _0x13028a=_0x3369d1;for(const _0xb843b0 of this[_0x13028a(0x214)][_0x13028a(0x1de)]){const _0x13b066=_0xb843b0[_0x13028a(0x1f5)](_0x159463);if(_0x13b066){_0x13b066[_0x13028a(0x217)](_0x13d173,_0x8c56e5);break;}}}[_0x3369d1(0x1ed)](){const _0x48e4a9=_0x3369d1;if(this[_0x48e4a9(0x213)]){const _0x3b7431=this[_0x48e4a9(0x1fc)][_0x48e4a9(0x1fe)][_0x48e4a9(0x1ff)]?.[_0x48e4a9(0x1fa)]?.[_0x48e4a9(0x1f8)]||'';this[_0x48e4a9(0x1fc)][_0x48e4a9(0x207)](_0x3b7431);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x3e03(){const _0x42bfbf=['make-longer','true','attributes','callCustomReview','improve-writing','upsertCustomAIActionRating','json','CONTINUE','uploadUrl','10732238PVDinz','MAKE_SHORTER','/web-resources','_handleError','/reviews/system/','ai-request-failed','/ratings','deleteWebResource','translate','application/json','file','reset','pluginName','fetchDocument','fetchConversationMessages','deleteConversation','define','MAKE_TONE_CASUAL','decode','executeAction','continue','deleteFile','1079869HOiInY','statusText','push','126964etddVH','_token','upsertAIChatRating','group','/calls/','status','search','get','stringify','897624OfhwfC','PUT','/files/','fix-grammar','upsertAIReviewRating','FIX_GRAMMAR','_apiUrl','/conversations/','ai.serviceUrl','_sendApiRequest','IMPROVE_WRITING','releaseLock','20vXlWdU','data','fetchConversations','requires','/messages/','2RjHSmC','/calls','parse','totalCount','Bearer\x20','8zjeoaa','callSystemReview','/documents/','/web-resources/','name','executeCustomAction','MAKE_LONGER','catch','body','/documents','toString','read','TRANSLATE','https://ai.cke-cs.com/v1','POST','100','abortController','/messages','init','then','_decoder','ai-missing-token','/reviews/custom/calls','config','request','/actions/custom/calls/','text','CloudServices','updateConversation','ai-request-aborted','/conversations?','make-tone-casual','items','95334CgteLs','token','_getStreamReader','plugins','GET','deleteDocument','append','excludeEmpty','/models/1','/actions/custom/calls','Content-Type','1059KhYATj','feed','AbortError','/actions/system/','queryAssistant','uploadFile','modificationId','1516lzYYjR','make-tone-formal','upsertCustomAIReviewRating','value','limit','isOfficialPlugin','MAKE_TONE_FORMAL','upsertAIActionRating','/files','isPremiumPlugin','getReader','AIConnector','/conversations','2392570MeKeuM','fetchConversation','uploadDocument','PATCH','make-shorter','context','keys','getModels','length','startConversation','/reviews/custom/calls/','signal','positiveCount','DELETE'];_0x3e03=function(){return _0x42bfbf;};return _0x3e03();}const _0x1a3699=_0x4d7c;function _0x4d7c(_0x443cc1,_0x392415){const _0x3e0322=_0x3e03();return _0x4d7c=function(_0x4d7c71,_0x4f5f2b){_0x4d7c71=_0x4d7c71-0x1d7;let _0x1912db=_0x3e0322[_0x4d7c71];return _0x1912db;},_0x4d7c(_0x443cc1,_0x392415);}(function(_0x373d56,_0x5e834f){const _0x53d794=_0x4d7c,_0xfa20ef=_0x373d56();while(!![]){try{const _0x56d32e=-parseInt(_0x53d794(0x1d7))/0x1*(parseInt(_0x53d794(0x1f1))/0x2)+parseInt(_0x53d794(0x222))/0x3*(-parseInt(_0x53d794(0x229))/0x4)+-parseInt(_0x53d794(0x1ec))/0x5*(parseInt(_0x53d794(0x217))/0x6)+parseInt(_0x53d794(0x263))/0x7*(-parseInt(_0x53d794(0x1f6))/0x8)+-parseInt(_0x53d794(0x1e0))/0x9+-parseInt(_0x53d794(0x236))/0xa+parseInt(_0x53d794(0x24d))/0xb;if(_0x56d32e===_0x5e834f)break;else _0xfa20ef['push'](_0xfa20ef['shift']());}catch(_0x38bee7){_0xfa20ef['push'](_0xfa20ef['shift']());}}}(_0x3e03,0x2698b));import{createParser as _0x4667e8}from'eventsource-parser';import{ContextPlugin as _0x21198d}from'ckeditor5/src/core.js';import{CKEditorError as _0x4e7388}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x390990){const _0x59998a=_0x4d7c;_0x390990[_0x59998a(0x24b)]=_0x59998a(0x261),_0x390990[_0x59998a(0x1e5)]=_0x59998a(0x1e3),_0x390990[_0x59998a(0x1ea)]=_0x59998a(0x248),_0x390990[_0x59998a(0x1fc)]=_0x59998a(0x244),_0x390990[_0x59998a(0x24e)]=_0x59998a(0x23a),_0x390990[_0x59998a(0x25e)]=_0x59998a(0x215),_0x390990[_0x59998a(0x22f)]=_0x59998a(0x22a),_0x390990[_0x59998a(0x202)]=_0x59998a(0x255);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x21198d{[_0x1a3699(0x1e6)];[_0x1a3699(0x1d8)];[_0x1a3699(0x20a)];static get[_0x1a3699(0x1ef)](){const _0x137f02=_0x1a3699;return[_0x137f02(0x211)];}static get[_0x1a3699(0x259)](){const _0x515e1e=_0x1a3699;return _0x515e1e(0x234);}static get[_0x1a3699(0x22e)](){return!0x0;}static get[_0x1a3699(0x232)](){return!0x0;}constructor(_0x170990){const _0x355a4e=_0x1a3699;super(_0x170990),this[_0x355a4e(0x23b)][_0x355a4e(0x20d)][_0x355a4e(0x25d)](_0x355a4e(0x1e8),_0x355a4e(0x203)),this[_0x355a4e(0x1e6)]=this[_0x355a4e(0x23b)][_0x355a4e(0x20d)][_0x355a4e(0x1de)](_0x355a4e(0x1e8)),this[_0x355a4e(0x1d8)]=null,this[_0x355a4e(0x20a)]=new TextDecoder();}[_0x1a3699(0x208)](){const _0x412280=_0x1a3699,_0x6a76e6=this[_0x412280(0x23b)][_0x412280(0x21a)][_0x412280(0x1de)](_0x412280(0x211));if(!_0x6a76e6[_0x412280(0x218)])throw new _0x4e7388(_0x412280(0x20b),this);this[_0x412280(0x1d8)]=_0x6a76e6[_0x412280(0x218)];}[_0x1a3699(0x23f)](_0x137258,_0x481077){const _0x458e9b=_0x1a3699,_0x1bdc3f=this[_0x458e9b(0x1e9)](_0x458e9b(0x235),_0x458e9b(0x204),{'id':_0x137258,'group':_0x481077});return{'getConversation':async()=>(await _0x1bdc3f[_0x458e9b(0x20e)])[_0x458e9b(0x24a)](),'abortController':_0x1bdc3f[_0x458e9b(0x206)]};}[_0x1a3699(0x226)]({message:_0x63500a,conversationId:_0x2b3ca7,parts:_0x1082bc,capabilities:_0x3d6e33,model:_0x46990d,quickActionData:_0x20800c}){const _0x5c53c3=_0x1a3699,_0x2e4dfb={..._0x20800c&&{'quickActionData':_0x20800c}},_0x1ae1f6={'prompt':_0x63500a,'content':_0x1082bc,'model':_0x46990d,..._0x3d6e33&&{'capabilities':_0x3d6e33},...Object[_0x5c53c3(0x23c)](_0x2e4dfb)[_0x5c53c3(0x23e)]>0x0&&{'attributes':_0x2e4dfb}},_0xd5b349=this[_0x5c53c3(0x1e9)](_0x5c53c3(0x1e7)+_0x2b3ca7+_0x5c53c3(0x207),_0x5c53c3(0x204),_0x1ae1f6);return{'getStream':async()=>{const _0x15b54b=_0x5c53c3,_0x555d1e=(await _0xd5b349[_0x15b54b(0x20e)])[_0x15b54b(0x1fe)];return this[_0x15b54b(0x219)](_0x555d1e);},'abortController':_0xd5b349[_0x5c53c3(0x206)]};}[_0x1a3699(0x1fb)]({content:_0x58c21,message:_0x30072c,model:_0x27dd0b,outputFormat:_0x590c67}){const _0xe08504=_0x1a3699,_0xdef959={'content':[{'type':_0xe08504(0x210),'content':_0x58c21}],'prompt':_0x30072c,'model':_0x27dd0b,'outputFormat':_0x590c67},_0x191136=this[_0xe08504(0x1e9)](_0xe08504(0x220),_0xe08504(0x204),_0xdef959);return{'getStream':async()=>{const _0xc1673e=_0xe08504,_0x94091e=(await _0x191136[_0xc1673e(0x20e)])[_0xc1673e(0x1fe)];return this[_0xc1673e(0x219)](_0x94091e);},'abortController':_0x191136[_0xe08504(0x206)]};}[_0x1a3699(0x260)]({actionName:_0x3c5940,content:_0x10ecb7,args:_0x573998}){const _0x284049=_0x1a3699,_0x3b8413={'content':[{'type':_0x284049(0x210),'content':_0x10ecb7}],'args':_0x573998},_0x26244c=this[_0x284049(0x1e9)](_0x284049(0x225)+_0x3c5940+_0x284049(0x1f2),_0x284049(0x204),_0x3b8413);return{'getStream':async()=>{const _0x5aaa77=_0x284049,_0x334ac9=(await _0x26244c[_0x5aaa77(0x20e)])[_0x5aaa77(0x1fe)];return this[_0x5aaa77(0x219)](_0x334ac9);},'abortController':_0x26244c[_0x284049(0x206)]};}[_0x1a3699(0x227)](_0x23047c,_0x4a6cb1,_0x296ca2){const _0x27d4f0=_0x1a3699,_0x33fb9b=new FormData();_0x33fb9b[_0x27d4f0(0x21d)](_0x27d4f0(0x257),_0x4a6cb1,_0x4a6cb1[_0x27d4f0(0x1fa)]),_0x296ca2&&_0x33fb9b[_0x27d4f0(0x21d)](_0x27d4f0(0x246),JSON[_0x27d4f0(0x1df)](_0x296ca2));const _0x7bef8=this[_0x27d4f0(0x1e9)](_0x27d4f0(0x1e7)+_0x23047c+_0x27d4f0(0x231),_0x27d4f0(0x204),_0x33fb9b);return{'getId':async()=>(await _0x7bef8[_0x27d4f0(0x20e)])[_0x27d4f0(0x24a)](),'abortController':_0x7bef8[_0x27d4f0(0x206)]};}[_0x1a3699(0x25a)](_0x382aef,_0x1fc62e){const _0x1aa564=_0x1a3699,_0x734212=this[_0x1aa564(0x1e9)](_0x1aa564(0x1e7)+_0x382aef+_0x1aa564(0x1f8)+_0x1fc62e,_0x1aa564(0x21b));return{'getDocument':async()=>(await _0x734212[_0x1aa564(0x20e)])[_0x1aa564(0x24a)](),'abortController':_0x734212[_0x1aa564(0x206)]};}[_0x1a3699(0x238)](_0x4a5995,_0x4257be,_0x3a3645){const _0x44c99f=_0x1a3699,_0x609ba={'content':_0x4257be};_0x3a3645&&(_0x609ba[_0x44c99f(0x246)]=_0x3a3645);const _0x5aedb4=this[_0x44c99f(0x1e9)](_0x44c99f(0x1e7)+_0x4a5995+_0x44c99f(0x1ff),_0x44c99f(0x204),_0x609ba);return{'getId':async()=>(await _0x5aedb4[_0x44c99f(0x20e)])[_0x44c99f(0x24a)](),'abortController':_0x5aedb4[_0x44c99f(0x206)]};}[_0x1a3699(0x1ee)](_0x5d25cc,_0x14f8d0){const _0x11584b=_0x1a3699,_0x48ce3e=new URLSearchParams();_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x21e),_0x11584b(0x245)),_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x22d),_0x11584b(0x205)),_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x1da),_0x5d25cc),_0x14f8d0&&_0x48ce3e[_0x11584b(0x21d)](_0x11584b(0x1dd),_0x14f8d0);const _0x2ec911=this[_0x11584b(0x1e9)](_0x11584b(0x214)+_0x48ce3e[_0x11584b(0x200)](),_0x11584b(0x21b));return{'getConversations':async()=>{const _0x411cfe=_0x11584b,_0x10b574=await _0x2ec911[_0x411cfe(0x20e)];return(await _0x10b574[_0x411cfe(0x24a)]())[_0x411cfe(0x216)];},'abortController':_0x2ec911[_0x11584b(0x206)]};}[_0x1a3699(0x25c)](_0x53cd8b){const _0x2bf93a=_0x1a3699,_0xcfb4a4=this[_0x2bf93a(0x1e9)](_0x2bf93a(0x1e7)+_0x53cd8b,_0x2bf93a(0x243));return{'execute':async()=>{const _0x1e9217=_0x2bf93a;await _0xcfb4a4[_0x1e9217(0x20e)];},'abortController':_0xcfb4a4[_0x2bf93a(0x206)]};}[_0x1a3699(0x212)](_0x47c1ac,_0x54ac52){const _0x4f5f6e=_0x1a3699,_0x225386=this[_0x4f5f6e(0x1e9)](_0x4f5f6e(0x1e7)+_0x47c1ac,_0x4f5f6e(0x239),_0x54ac52);return{'getResult':async()=>(await _0x225386[_0x4f5f6e(0x20e)],_0x54ac52),'abortController':_0x225386[_0x4f5f6e(0x206)]};}[_0x1a3699(0x237)](_0xfbe31f){const _0x242841=_0x1a3699,_0x3a72c2=this[_0x242841(0x1e9)](_0x242841(0x1e7)+_0xfbe31f,_0x242841(0x21b));return{'getConversation':async()=>(await _0x3a72c2[_0x242841(0x20e)])[_0x242841(0x24a)](),'abortController':_0x3a72c2[_0x242841(0x206)]};}[_0x1a3699(0x25b)](_0x72b7cc){const _0x8055ae=_0x1a3699,_0x1b726c=this[_0x8055ae(0x1e9)](_0x8055ae(0x1e7)+_0x72b7cc+_0x8055ae(0x207),_0x8055ae(0x21b));return{'getMessages':async()=>{const _0x3eab8f=_0x8055ae,_0x546008=await _0x1b726c[_0x3eab8f(0x20e)];return(await _0x546008[_0x3eab8f(0x24a)]())[_0x3eab8f(0x216)];},'abortController':_0x1b726c[_0x8055ae(0x206)]};}[_0x1a3699(0x24c)](_0x253ec7,_0xb8e556,_0x274abf){const _0xe48567=_0x1a3699,_0x2aeae2=this[_0xe48567(0x1e9)](_0xe48567(0x1e7)+_0x253ec7+_0xe48567(0x24f),_0xe48567(0x204),{'url':_0xb8e556,'attributes':_0x274abf});return{'getId':async()=>(await _0x2aeae2[_0xe48567(0x20e)])[_0xe48567(0x24a)](),'abortController':_0x2aeae2[_0xe48567(0x206)]};}[_0x1a3699(0x23d)](){const _0x5ab174=_0x1a3699,_0x3e109a=this[_0x5ab174(0x1e9)](_0x5ab174(0x21f),_0x5ab174(0x21b));return{'list':async()=>await(await _0x3e109a[_0x5ab174(0x20e)])[_0x5ab174(0x24a)](),'abortController':_0x3e109a[_0x5ab174(0x206)]};}[_0x1a3699(0x262)](_0x2f7d4a,_0x1c269e){const _0x1c3607=_0x1a3699,_0x5d0254=this[_0x1c3607(0x1e9)](_0x1c3607(0x1e7)+_0x2f7d4a+_0x1c3607(0x1e2)+_0x1c269e,_0x1c3607(0x243));return{'execute':async()=>{const _0x3400a8=_0x1c3607;await _0x5d0254[_0x3400a8(0x20e)];},'abortController':_0x5d0254[_0x1c3607(0x206)]};}[_0x1a3699(0x21c)](_0x1c0760,_0x499827){const _0x151bef=_0x1a3699,_0x6e38af=this[_0x151bef(0x1e9)](_0x151bef(0x1e7)+_0x1c0760+_0x151bef(0x1f8)+_0x499827,_0x151bef(0x243));return{'execute':async()=>{const _0x48aac5=_0x151bef;await _0x6e38af[_0x48aac5(0x20e)];},'abortController':_0x6e38af[_0x151bef(0x206)]};}[_0x1a3699(0x254)](_0x44ca89,_0x573aea){const _0x3a154b=_0x1a3699,_0x3fdd80=this[_0x3a154b(0x1e9)](_0x3a154b(0x1e7)+_0x44ca89+_0x3a154b(0x1f9)+_0x573aea,_0x3a154b(0x243));return{'execute':async()=>{const _0xd470f4=_0x3a154b;await _0x3fdd80[_0xd470f4(0x20e)];},'abortController':_0x3fdd80[_0x3a154b(0x206)]};}[_0x1a3699(0x1f7)]({reviewName:_0x3d7eb2,content:_0x208ae5,args:_0x3771c4}){const _0x179664=_0x1a3699,_0x31ec84=this[_0x179664(0x1e9)](_0x179664(0x251)+_0x3d7eb2+_0x179664(0x1f2),_0x179664(0x204),{'content':[{'type':_0x179664(0x210),'content':_0x208ae5}],'args':_0x3771c4});return{'getStream':async()=>{const _0x19c72d=_0x179664,_0x2d9092=(await _0x31ec84[_0x19c72d(0x20e)])[_0x19c72d(0x1fe)];return this[_0x19c72d(0x219)](_0x2d9092);},'abortController':_0x31ec84[_0x179664(0x206)]};}[_0x1a3699(0x247)]({content:_0x36e0cd,prompt:_0x456f15,model:_0x43d248}){const _0x3c9db4=_0x1a3699,_0x55f879=this[_0x3c9db4(0x1e9)](_0x3c9db4(0x20c),_0x3c9db4(0x204),{'content':[{'type':_0x3c9db4(0x210),'content':_0x36e0cd}],'prompt':_0x456f15,'model':_0x43d248});return{'getStream':async()=>{const _0x44cd2c=_0x3c9db4,_0x4626ae=(await _0x55f879[_0x44cd2c(0x20e)])[_0x44cd2c(0x1fe)];return this[_0x44cd2c(0x219)](_0x4626ae);},'abortController':_0x55f879[_0x3c9db4(0x206)]};}[_0x1a3699(0x1d9)](_0x557fb1,_0x4b3139,_0x1eb06e){const _0x2d0eae=_0x1a3699,_0x172af7=this[_0x2d0eae(0x1e9)](_0x2d0eae(0x1e7)+_0x557fb1+_0x2d0eae(0x1f0)+_0x4b3139+_0x2d0eae(0x253),_0x2d0eae(0x1e1),{'positiveCount':_0x1eb06e[_0x2d0eae(0x242)],'totalCount':_0x1eb06e[_0x2d0eae(0x1f4)],'modificationId':_0x1eb06e[_0x2d0eae(0x228)]});return{'execute':async()=>{const _0x5f08eb=_0x2d0eae;await _0x172af7[_0x5f08eb(0x20e)];},'abortController':_0x172af7[_0x2d0eae(0x206)]};}[_0x1a3699(0x230)](_0x448853,_0x34d7d1,_0x21c3c0){const _0x3858f8=_0x1a3699,_0x16c297=this[_0x3858f8(0x1e9)](_0x3858f8(0x225)+_0x448853+_0x3858f8(0x1db)+_0x34d7d1+_0x3858f8(0x253),_0x3858f8(0x1e1),{'positiveCount':_0x21c3c0[_0x3858f8(0x242)],'totalCount':_0x21c3c0[_0x3858f8(0x1f4)]});return{'execute':async()=>{const _0x14b895=_0x3858f8;await _0x16c297[_0x14b895(0x20e)];},'abortController':_0x16c297[_0x3858f8(0x206)]};}[_0x1a3699(0x249)](_0x3aafe0,_0x460f0b){const _0x42755a=_0x1a3699,_0x2d160d=this[_0x42755a(0x1e9)](_0x42755a(0x20f)+_0x3aafe0+_0x42755a(0x253),_0x42755a(0x1e1),{'positiveCount':_0x460f0b[_0x42755a(0x242)],'totalCount':_0x460f0b[_0x42755a(0x1f4)]});return{'execute':async()=>{const _0x2dcfb3=_0x42755a;await _0x2d160d[_0x2dcfb3(0x20e)];},'abortController':_0x2d160d[_0x42755a(0x206)]};}[_0x1a3699(0x1e4)](_0x1215a3,_0x1c6069,_0x26292d,_0x296cbf){const _0x660b06=_0x1a3699,_0x12ebe9=this[_0x660b06(0x1e9)](_0x660b06(0x251)+_0x1215a3+_0x660b06(0x1db)+_0x1c6069+_0x660b06(0x253),_0x660b06(0x1e1),{'positiveCount':_0x26292d[_0x660b06(0x242)],'totalCount':_0x26292d[_0x660b06(0x1f4)],'dataId':_0x296cbf});return{'execute':async()=>{const _0x201a28=_0x660b06;await _0x12ebe9[_0x201a28(0x20e)];},'abortController':_0x12ebe9[_0x660b06(0x206)]};}[_0x1a3699(0x22b)](_0x3cc7f8,_0x4699cd,_0x55d1f2){const _0x3cccc4=_0x1a3699,_0x540886=this[_0x3cccc4(0x1e9)](_0x3cccc4(0x240)+_0x3cc7f8+_0x3cccc4(0x253),_0x3cccc4(0x1e1),{'positiveCount':_0x4699cd[_0x3cccc4(0x242)],'totalCount':_0x4699cd[_0x3cccc4(0x1f4)],'dataId':_0x55d1f2});return{'execute':async()=>{const _0x5a487b=_0x3cccc4;await _0x540886[_0x5a487b(0x20e)];},'abortController':_0x540886[_0x3cccc4(0x206)]};}[_0x1a3699(0x1e9)](_0x3d7d35,_0x2db849,_0xfd982d){const _0x55abcf=_0x1a3699,_0x56572b=new AbortController(),_0x22a123=_0xfd982d instanceof FormData,_0x4cb67e={'Authorization':_0x55abcf(0x1f5)+this[_0x55abcf(0x1d8)]?.[_0x55abcf(0x22c)]};_0xfd982d&&!_0x22a123&&(_0x4cb67e[_0x55abcf(0x221)]=_0x55abcf(0x256));const _0x1c15ac={'method':_0x2db849,'headers':_0x4cb67e,'signal':_0x56572b[_0x55abcf(0x241)]};return _0xfd982d&&(_0x1c15ac[_0x55abcf(0x1fe)]=_0x22a123?_0xfd982d:JSON[_0x55abcf(0x1df)](_0xfd982d)),{'request':fetch(''+this[_0x55abcf(0x1e6)]+_0x3d7d35,_0x1c15ac)[_0x55abcf(0x1fd)](_0x10014e=>{const _0x2601bb=_0x55abcf;this[_0x2601bb(0x250)](_0x10014e);})[_0x55abcf(0x209)](_0x2a4764=>{const _0x4c51a8=_0x55abcf;if(!_0x2a4764['ok'])throw new _0x4e7388(_0x4c51a8(0x252),this,{'url':this[_0x4c51a8(0x1e6)],'path':_0x3d7d35,'method':_0x2db849,'body':_0xfd982d,'status':(_0x2a4764||{})[_0x4c51a8(0x1dc)],'statusText':(_0x2a4764||{})[_0x4c51a8(0x264)]});return _0x2a4764;}),'abortController':_0x56572b};}async*[_0x1a3699(0x219)](_0x4853e5){const _0x557b15=_0x1a3699,_0x452eca=[],_0x3d59dc=_0x4853e5[_0x557b15(0x233)](),_0xb16dd1=_0x4667e8({'onError':_0x459b73=>{const _0x3bea02=_0x557b15;this[_0x3bea02(0x250)](_0x459b73);},'onEvent':_0x5c191e=>{const _0x2340d9=_0x557b15;_0x5c191e[_0x2340d9(0x1ed)]=JSON[_0x2340d9(0x1f3)](_0x5c191e[_0x2340d9(0x1ed)]),_0x452eca[_0x2340d9(0x265)](_0x5c191e);}});try{let _0x5446aa=!0x1;for(;!_0x5446aa;){const {done:_0x2fe5c4,value:_0x362494}=await _0x3d59dc[_0x557b15(0x201)]();_0x2fe5c4&&(_0x5446aa=!0x0),_0xb16dd1[_0x557b15(0x223)](this[_0x557b15(0x20a)][_0x557b15(0x25f)](_0x362494,{'stream':!0x0})),yield*_0x452eca,_0x452eca[_0x557b15(0x23e)]=0x0;}}catch(_0xeb219f){this[_0x557b15(0x250)](_0xeb219f);}finally{_0x3d59dc[_0x557b15(0x1eb)](),_0xb16dd1[_0x557b15(0x258)]();}}[_0x1a3699(0x250)](_0x5784f7){const _0xad509=_0x1a3699;if(_0x5784f7 instanceof _0x4e7388)throw _0x5784f7;if(_0x5784f7 instanceof Error&&_0xad509(0x224)===_0x5784f7[_0xad509(0x1fa)])throw new _0x4e7388(_0xad509(0x213),this,{'originalError':_0x5784f7});throw new _0x4e7388(_0xad509(0x252),this,{'originalError':_0x5784f7});}}
|
|
23
|
+
const _0x1e4e03=_0x2d2b;(function(_0x3cc99c,_0x405601){const _0x2bba6b=_0x2d2b,_0x5a6816=_0x3cc99c();while(!![]){try{const _0x2e7132=-parseInt(_0x2bba6b(0x17a))/0x1+-parseInt(_0x2bba6b(0x1d4))/0x2*(parseInt(_0x2bba6b(0x188))/0x3)+parseInt(_0x2bba6b(0x1da))/0x4+-parseInt(_0x2bba6b(0x1d0))/0x5*(parseInt(_0x2bba6b(0x1a6))/0x6)+-parseInt(_0x2bba6b(0x1b9))/0x7*(-parseInt(_0x2bba6b(0x1b8))/0x8)+parseInt(_0x2bba6b(0x19f))/0x9*(parseInt(_0x2bba6b(0x178))/0xa)+parseInt(_0x2bba6b(0x1a8))/0xb*(-parseInt(_0x2bba6b(0x170))/0xc);if(_0x2e7132===_0x405601)break;else _0x5a6816['push'](_0x5a6816['shift']());}catch(_0x2a8c9f){_0x5a6816['push'](_0x5a6816['shift']());}}}(_0xfc73,0x4bc50));function _0x2d2b(_0x46fa22,_0x2bd1c4){const _0xfc7337=_0xfc73();return _0x2d2b=function(_0x2d2b2a,_0x2c71ef){_0x2d2b2a=_0x2d2b2a-0x16b;let _0x439739=_0xfc7337[_0x2d2b2a];return _0x439739;},_0x2d2b(_0x46fa22,_0x2bd1c4);}import{createParser as _0x5d19c9}from'eventsource-parser';import{ContextPlugin as _0x26f066}from'ckeditor5/src/core.js';function _0xfc73(){const _0x2e16f9=['reset','make-tone-casual','_apiUrl','/calls','PATCH','excludeEmpty','/actions/custom/calls','/conversations/','MAKE_TONE_FORMAL','/reviews/system/','deleteConversation','4360LhTFvO','keys','init','updateConversation','184jZteSD','/web-resources','releaseLock','upsertCustomAIActionRating','text','DELETE','1769548aFiPSl','callSystemReview','read','decode','CONTINUE','attributes','ai-request-aborted','catch','fix-grammar','TRANSLATE','continue','uploadDocument','_sendApiRequest','getReader','/actions/system/','MAKE_TONE_CASUAL','/messages','then','Content-Type','/actions/custom/calls/','executeCustomAction','toString','isOfficialPlugin','improve-writing','stringify','MAKE_LONGER','uploadFile','push','token','limit','make-tone-formal','deleteDocument','feed','fetchDocument','request','make-longer','/messages/','define','525036nCnAEk','/ratings','fetchConversations','translate','append','/conversations?','fetchConversation','value','3714110lMZAgo','POST','12340fSMEmq','parse','/documents/','signal','IMPROVE_WRITING','/files','GET','abortController','ai-missing-token','data','ai-request-failed','isPremiumPlugin','upsertAIReviewRating','ai.serviceUrl','11967WOVjif','_token','totalCount','upsertAIChatRating','positiveCount','length','_decoder','application/json','status','upsertCustomAIReviewRating','startConversation','/reviews/custom/calls','modificationId','body','_handleError','get','context','AIConnector','/reviews/custom/calls/','/conversations','executeAction','Bearer\x20','FIX_GRAMMAR','9NFVaOC','json','group','callCustomReview','AbortError','/calls/','pluginName','1284AcNBiS','file','44rozYdx','MAKE_SHORTER','uploadUrl','name','CloudServices','/documents','config','upsertAIActionRating','make-shorter','queryAssistant','statusText','getModels','100','/web-resources/','plugins','true','16aJTQnq','831257AjrtmG','/files/','deleteWebResource','requires','search','deleteFile','/models/1','items','fetchConversationMessages','PUT','_getStreamReader','https://ai.cke-cs.com/v1'];_0xfc73=function(){return _0x2e16f9;};return _0xfc73();}import{CKEditorError as _0x3962b6}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2f156f){const _0x433208=_0x2d2b;_0x2f156f[_0x433208(0x1de)]=_0x433208(0x1e4),_0x2f156f[_0x433208(0x19e)]=_0x433208(0x1e2),_0x2f156f[_0x433208(0x17e)]=_0x433208(0x1f1),_0x2f156f[_0x433208(0x1f3)]=_0x433208(0x16d),_0x2f156f[_0x433208(0x1a9)]=_0x433208(0x1b0),_0x2f156f[_0x433208(0x1e9)]=_0x433208(0x1c6),_0x2f156f[_0x433208(0x1cd)]=_0x433208(0x1f8),_0x2f156f[_0x433208(0x1e3)]=_0x433208(0x173);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x26f066{[_0x1e4e03(0x1c7)];[_0x1e4e03(0x189)];[_0x1e4e03(0x18e)];static get[_0x1e4e03(0x1bc)](){const _0x446101=_0x1e4e03;return[_0x446101(0x1ac)];}static get[_0x1e4e03(0x1a5)](){const _0x4f8903=_0x1e4e03;return _0x4f8903(0x199);}static get[_0x1e4e03(0x1f0)](){return!0x0;}static get[_0x1e4e03(0x185)](){return!0x0;}constructor(_0x14202d){const _0x45786a=_0x1e4e03;super(_0x14202d),this[_0x45786a(0x198)][_0x45786a(0x1ae)][_0x45786a(0x16f)](_0x45786a(0x187),_0x45786a(0x1c4)),this[_0x45786a(0x1c7)]=this[_0x45786a(0x198)][_0x45786a(0x1ae)][_0x45786a(0x197)](_0x45786a(0x187)),this[_0x45786a(0x189)]=null,this[_0x45786a(0x18e)]=new TextDecoder();}[_0x1e4e03(0x1d2)](){const _0x38975a=_0x1e4e03,_0x4623c0=this[_0x38975a(0x198)][_0x38975a(0x1b6)][_0x38975a(0x197)](_0x38975a(0x1ac));if(!_0x4623c0[_0x38975a(0x1f6)])throw new _0x3962b6(_0x38975a(0x182),this);this[_0x38975a(0x189)]=_0x4623c0[_0x38975a(0x1f6)];}[_0x1e4e03(0x192)](_0x14ffcb,_0x5dc3b1){const _0x41cde7=_0x1e4e03,_0xee386d=this[_0x41cde7(0x1e6)](_0x41cde7(0x19b),_0x41cde7(0x179),{'id':_0x14ffcb,'group':_0x5dc3b1});return{'getConversation':async()=>(await _0xee386d[_0x41cde7(0x16c)])[_0x41cde7(0x1a0)](),'abortController':_0xee386d[_0x41cde7(0x181)]};}[_0x1e4e03(0x1b1)]({message:_0x5ec475,conversationId:_0x22b354,parts:_0x48676e,capabilities:_0x5d1edd,model:_0x3dcc0a,quickActionData:_0x2780d9}){const _0x25aa08=_0x1e4e03,_0x312b65={..._0x2780d9&&{'quickActionData':_0x2780d9}},_0x156841={'prompt':_0x5ec475,'content':_0x48676e,'model':_0x3dcc0a,..._0x5d1edd&&{'capabilities':_0x5d1edd},...Object[_0x25aa08(0x1d1)](_0x312b65)[_0x25aa08(0x18d)]>0x0&&{'attributes':_0x312b65}},_0x5eead9=this[_0x25aa08(0x1e6)](_0x25aa08(0x1cc)+_0x22b354+_0x25aa08(0x1ea),_0x25aa08(0x179),_0x156841);return{'getStream':async()=>{const _0xe5d0f3=_0x25aa08,_0x547279=(await _0x5eead9[_0xe5d0f3(0x16c)])[_0xe5d0f3(0x195)];return this[_0xe5d0f3(0x1c3)](_0x547279);},'abortController':_0x5eead9[_0x25aa08(0x181)]};}[_0x1e4e03(0x1ee)]({content:_0x5c5ad1,message:_0x22f559,model:_0x40e948,outputFormat:_0x56537f}){const _0xc3fa3c=_0x1e4e03,_0xad9ef9={'content':[{'type':_0xc3fa3c(0x1d8),'content':_0x5c5ad1}],'prompt':_0x22f559,'model':_0x40e948,'outputFormat':_0x56537f},_0x4dc9a8=this[_0xc3fa3c(0x1e6)](_0xc3fa3c(0x1cb),_0xc3fa3c(0x179),_0xad9ef9);return{'getStream':async()=>{const _0x4b22d2=_0xc3fa3c,_0x524a44=(await _0x4dc9a8[_0x4b22d2(0x16c)])[_0x4b22d2(0x195)];return this[_0x4b22d2(0x1c3)](_0x524a44);},'abortController':_0x4dc9a8[_0xc3fa3c(0x181)]};}[_0x1e4e03(0x19c)]({actionName:_0x1ecc13,content:_0x54f003,args:_0xd63c03}){const _0x36b0b9=_0x1e4e03,_0x10cc7d={'content':[{'type':_0x36b0b9(0x1d8),'content':_0x54f003}],'args':_0xd63c03},_0x1d8194=this[_0x36b0b9(0x1e6)](_0x36b0b9(0x1e8)+_0x1ecc13+_0x36b0b9(0x1c8),_0x36b0b9(0x179),_0x10cc7d);return{'getStream':async()=>{const _0x542cde=_0x36b0b9,_0x374a2c=(await _0x1d8194[_0x542cde(0x16c)])[_0x542cde(0x195)];return this[_0x542cde(0x1c3)](_0x374a2c);},'abortController':_0x1d8194[_0x36b0b9(0x181)]};}[_0x1e4e03(0x1f4)](_0x9b6745,_0x334514,_0x28b493){const _0x4ca496=_0x1e4e03,_0x106352=new FormData();_0x106352[_0x4ca496(0x174)](_0x4ca496(0x1a7),_0x334514,_0x334514[_0x4ca496(0x1ab)]),_0x28b493&&_0x106352[_0x4ca496(0x174)](_0x4ca496(0x1df),JSON[_0x4ca496(0x1f2)](_0x28b493));const _0x36711f=this[_0x4ca496(0x1e6)](_0x4ca496(0x1cc)+_0x9b6745+_0x4ca496(0x17f),_0x4ca496(0x179),_0x106352);return{'getId':async()=>(await _0x36711f[_0x4ca496(0x16c)])[_0x4ca496(0x1a0)](),'abortController':_0x36711f[_0x4ca496(0x181)]};}[_0x1e4e03(0x16b)](_0x861829,_0x2c72da){const _0x2d8b0d=_0x1e4e03,_0x39e4bf=this[_0x2d8b0d(0x1e6)](_0x2d8b0d(0x1cc)+_0x861829+_0x2d8b0d(0x17c)+_0x2c72da,_0x2d8b0d(0x180));return{'getDocument':async()=>(await _0x39e4bf[_0x2d8b0d(0x16c)])[_0x2d8b0d(0x1a0)](),'abortController':_0x39e4bf[_0x2d8b0d(0x181)]};}[_0x1e4e03(0x1e5)](_0x59904a,_0x2f3e04,_0x428433){const _0x3314a7=_0x1e4e03,_0x4e376b={'content':_0x2f3e04};_0x428433&&(_0x4e376b[_0x3314a7(0x1df)]=_0x428433);const _0x4d3995=this[_0x3314a7(0x1e6)](_0x3314a7(0x1cc)+_0x59904a+_0x3314a7(0x1ad),_0x3314a7(0x179),_0x4e376b);return{'getId':async()=>(await _0x4d3995[_0x3314a7(0x16c)])[_0x3314a7(0x1a0)](),'abortController':_0x4d3995[_0x3314a7(0x181)]};}[_0x1e4e03(0x172)](_0x2d0e7f,_0x443084){const _0x1850aa=_0x1e4e03,_0x43db84=new URLSearchParams();_0x43db84[_0x1850aa(0x174)](_0x1850aa(0x1ca),_0x1850aa(0x1b7)),_0x43db84[_0x1850aa(0x174)](_0x1850aa(0x1f7),_0x1850aa(0x1b4)),_0x43db84[_0x1850aa(0x174)](_0x1850aa(0x1a1),_0x2d0e7f),_0x443084&&_0x43db84[_0x1850aa(0x174)](_0x1850aa(0x1bd),_0x443084);const _0x2627e6=this[_0x1850aa(0x1e6)](_0x1850aa(0x175)+_0x43db84[_0x1850aa(0x1ef)](),_0x1850aa(0x180));return{'getConversations':async()=>{const _0x588e99=_0x1850aa,_0x2386c5=await _0x2627e6[_0x588e99(0x16c)];return(await _0x2386c5[_0x588e99(0x1a0)]())[_0x588e99(0x1c0)];},'abortController':_0x2627e6[_0x1850aa(0x181)]};}[_0x1e4e03(0x1cf)](_0x321d99){const _0x4adcac=_0x1e4e03,_0x4ad12c=this[_0x4adcac(0x1e6)](_0x4adcac(0x1cc)+_0x321d99,_0x4adcac(0x1d9));return{'execute':async()=>{const _0x1d06b6=_0x4adcac;await _0x4ad12c[_0x1d06b6(0x16c)];},'abortController':_0x4ad12c[_0x4adcac(0x181)]};}[_0x1e4e03(0x1d3)](_0xa0a488,_0x1b3c66){const _0x5773df=_0x1e4e03,_0x405145=this[_0x5773df(0x1e6)](_0x5773df(0x1cc)+_0xa0a488,_0x5773df(0x1c9),_0x1b3c66);return{'getResult':async()=>(await _0x405145[_0x5773df(0x16c)],_0x1b3c66),'abortController':_0x405145[_0x5773df(0x181)]};}[_0x1e4e03(0x176)](_0x24201e){const _0x451fb2=_0x1e4e03,_0x5481ec=this[_0x451fb2(0x1e6)](_0x451fb2(0x1cc)+_0x24201e,_0x451fb2(0x180));return{'getConversation':async()=>(await _0x5481ec[_0x451fb2(0x16c)])[_0x451fb2(0x1a0)](),'abortController':_0x5481ec[_0x451fb2(0x181)]};}[_0x1e4e03(0x1c1)](_0x3aa8a4){const _0x50cc15=_0x1e4e03,_0x51b69a=this[_0x50cc15(0x1e6)](_0x50cc15(0x1cc)+_0x3aa8a4+_0x50cc15(0x1ea),_0x50cc15(0x180));return{'getMessages':async()=>{const _0x51233a=_0x50cc15,_0x3c593c=await _0x51b69a[_0x51233a(0x16c)];return(await _0x3c593c[_0x51233a(0x1a0)]())[_0x51233a(0x1c0)];},'abortController':_0x51b69a[_0x50cc15(0x181)]};}[_0x1e4e03(0x1aa)](_0x32d74c,_0x321ddc,_0x3318a0){const _0x1c9211=_0x1e4e03,_0x460b1d=this[_0x1c9211(0x1e6)](_0x1c9211(0x1cc)+_0x32d74c+_0x1c9211(0x1d5),_0x1c9211(0x179),{'url':_0x321ddc,'attributes':_0x3318a0});return{'getId':async()=>(await _0x460b1d[_0x1c9211(0x16c)])[_0x1c9211(0x1a0)](),'abortController':_0x460b1d[_0x1c9211(0x181)]};}[_0x1e4e03(0x1b3)](){const _0x1109cf=_0x1e4e03,_0x141279=this[_0x1109cf(0x1e6)](_0x1109cf(0x1bf),_0x1109cf(0x180));return{'list':async()=>await(await _0x141279[_0x1109cf(0x16c)])[_0x1109cf(0x1a0)](),'abortController':_0x141279[_0x1109cf(0x181)]};}[_0x1e4e03(0x1be)](_0x1f820d,_0x57bc8d){const _0x108c6c=_0x1e4e03,_0x56001c=this[_0x108c6c(0x1e6)](_0x108c6c(0x1cc)+_0x1f820d+_0x108c6c(0x1ba)+_0x57bc8d,_0x108c6c(0x1d9));return{'execute':async()=>{const _0x10e9d4=_0x108c6c;await _0x56001c[_0x10e9d4(0x16c)];},'abortController':_0x56001c[_0x108c6c(0x181)]};}[_0x1e4e03(0x1f9)](_0x3c858f,_0xc0328c){const _0x2a2553=_0x1e4e03,_0x459aca=this[_0x2a2553(0x1e6)](_0x2a2553(0x1cc)+_0x3c858f+_0x2a2553(0x17c)+_0xc0328c,_0x2a2553(0x1d9));return{'execute':async()=>{const _0x22c68a=_0x2a2553;await _0x459aca[_0x22c68a(0x16c)];},'abortController':_0x459aca[_0x2a2553(0x181)]};}[_0x1e4e03(0x1bb)](_0x26e515,_0x40d5ea){const _0x28ff6c=_0x1e4e03,_0x3ab6e8=this[_0x28ff6c(0x1e6)](_0x28ff6c(0x1cc)+_0x26e515+_0x28ff6c(0x1b5)+_0x40d5ea,_0x28ff6c(0x1d9));return{'execute':async()=>{const _0x1d66d6=_0x28ff6c;await _0x3ab6e8[_0x1d66d6(0x16c)];},'abortController':_0x3ab6e8[_0x28ff6c(0x181)]};}[_0x1e4e03(0x1db)]({reviewName:_0x3cf8d4,content:_0x5a1f60,args:_0x57ae03}){const _0x2c8de3=_0x1e4e03,_0x22cfb3=this[_0x2c8de3(0x1e6)](_0x2c8de3(0x1ce)+_0x3cf8d4+_0x2c8de3(0x1c8),_0x2c8de3(0x179),{'content':[{'type':_0x2c8de3(0x1d8),'content':_0x5a1f60}],'args':_0x57ae03});return{'getStream':async()=>{const _0x3d02d6=_0x2c8de3,_0x9a9859=(await _0x22cfb3[_0x3d02d6(0x16c)])[_0x3d02d6(0x195)];return this[_0x3d02d6(0x1c3)](_0x9a9859);},'abortController':_0x22cfb3[_0x2c8de3(0x181)]};}[_0x1e4e03(0x1a2)]({content:_0x3e6e1b,prompt:_0xdfc6a4,model:_0x4004cb}){const _0x3d7ac3=_0x1e4e03,_0x44d4d9=this[_0x3d7ac3(0x1e6)](_0x3d7ac3(0x193),_0x3d7ac3(0x179),{'content':[{'type':_0x3d7ac3(0x1d8),'content':_0x3e6e1b}],'prompt':_0xdfc6a4,'model':_0x4004cb});return{'getStream':async()=>{const _0x1e705c=_0x3d7ac3,_0x4ddd6e=(await _0x44d4d9[_0x1e705c(0x16c)])[_0x1e705c(0x195)];return this[_0x1e705c(0x1c3)](_0x4ddd6e);},'abortController':_0x44d4d9[_0x3d7ac3(0x181)]};}[_0x1e4e03(0x18b)](_0x264d02,_0x32226c,_0x5348c3){const _0x5e5581=_0x1e4e03,_0x50fc78=this[_0x5e5581(0x1e6)](_0x5e5581(0x1cc)+_0x264d02+_0x5e5581(0x16e)+_0x32226c+_0x5e5581(0x171),_0x5e5581(0x1c2),{'positiveCount':_0x5348c3[_0x5e5581(0x18c)],'totalCount':_0x5348c3[_0x5e5581(0x18a)],'modificationId':_0x5348c3[_0x5e5581(0x194)]});return{'execute':async()=>{const _0x4c79d1=_0x5e5581;await _0x50fc78[_0x4c79d1(0x16c)];},'abortController':_0x50fc78[_0x5e5581(0x181)]};}[_0x1e4e03(0x1af)](_0x384244,_0x5aa71d,_0x42cd34){const _0x2c83ed=_0x1e4e03,_0x41902f=this[_0x2c83ed(0x1e6)](_0x2c83ed(0x1e8)+_0x384244+_0x2c83ed(0x1a4)+_0x5aa71d+_0x2c83ed(0x171),_0x2c83ed(0x1c2),{'positiveCount':_0x42cd34[_0x2c83ed(0x18c)],'totalCount':_0x42cd34[_0x2c83ed(0x18a)]});return{'execute':async()=>{const _0x1eba17=_0x2c83ed;await _0x41902f[_0x1eba17(0x16c)];},'abortController':_0x41902f[_0x2c83ed(0x181)]};}[_0x1e4e03(0x1d7)](_0x2b05b7,_0x4f8dc3){const _0x54c459=_0x1e4e03,_0x417736=this[_0x54c459(0x1e6)](_0x54c459(0x1ed)+_0x2b05b7+_0x54c459(0x171),_0x54c459(0x1c2),{'positiveCount':_0x4f8dc3[_0x54c459(0x18c)],'totalCount':_0x4f8dc3[_0x54c459(0x18a)]});return{'execute':async()=>{const _0x29e39f=_0x54c459;await _0x417736[_0x29e39f(0x16c)];},'abortController':_0x417736[_0x54c459(0x181)]};}[_0x1e4e03(0x186)](_0x4a9526,_0x4a2ee8,_0x4df61c,_0x30dd0f){const _0x4999f0=_0x1e4e03,_0x58bea8=this[_0x4999f0(0x1e6)](_0x4999f0(0x1ce)+_0x4a9526+_0x4999f0(0x1a4)+_0x4a2ee8+_0x4999f0(0x171),_0x4999f0(0x1c2),{'positiveCount':_0x4df61c[_0x4999f0(0x18c)],'totalCount':_0x4df61c[_0x4999f0(0x18a)],'dataId':_0x30dd0f});return{'execute':async()=>{const _0x4b2a09=_0x4999f0;await _0x58bea8[_0x4b2a09(0x16c)];},'abortController':_0x58bea8[_0x4999f0(0x181)]};}[_0x1e4e03(0x191)](_0x3e16d5,_0x329b38,_0x1ebcc7){const _0x198e55=_0x1e4e03,_0x209d82=this[_0x198e55(0x1e6)](_0x198e55(0x19a)+_0x3e16d5+_0x198e55(0x171),_0x198e55(0x1c2),{'positiveCount':_0x329b38[_0x198e55(0x18c)],'totalCount':_0x329b38[_0x198e55(0x18a)],'dataId':_0x1ebcc7});return{'execute':async()=>{const _0x73eaad=_0x198e55;await _0x209d82[_0x73eaad(0x16c)];},'abortController':_0x209d82[_0x198e55(0x181)]};}[_0x1e4e03(0x1e6)](_0x283127,_0x5f55dc,_0x4031a1){const _0xdf33ea=_0x1e4e03,_0x8587aa=new AbortController(),_0x2a0858=_0x4031a1 instanceof FormData,_0x497251={'Authorization':_0xdf33ea(0x19d)+this[_0xdf33ea(0x189)]?.[_0xdf33ea(0x177)]};_0x4031a1&&!_0x2a0858&&(_0x497251[_0xdf33ea(0x1ec)]=_0xdf33ea(0x18f));const _0x2df3e1={'method':_0x5f55dc,'headers':_0x497251,'signal':_0x8587aa[_0xdf33ea(0x17d)]};return _0x4031a1&&(_0x2df3e1[_0xdf33ea(0x195)]=_0x2a0858?_0x4031a1:JSON[_0xdf33ea(0x1f2)](_0x4031a1)),{'request':fetch(''+this[_0xdf33ea(0x1c7)]+_0x283127,_0x2df3e1)[_0xdf33ea(0x1e1)](_0x1e9ff2=>{const _0x417c3b=_0xdf33ea;this[_0x417c3b(0x196)](_0x1e9ff2);})[_0xdf33ea(0x1eb)](_0x5d59af=>{const _0x3de9bf=_0xdf33ea;if(!_0x5d59af['ok'])throw new _0x3962b6(_0x3de9bf(0x184),this,{'url':this[_0x3de9bf(0x1c7)],'path':_0x283127,'method':_0x5f55dc,'body':_0x4031a1,'status':(_0x5d59af||{})[_0x3de9bf(0x190)],'statusText':(_0x5d59af||{})[_0x3de9bf(0x1b2)]});return _0x5d59af;}),'abortController':_0x8587aa};}async*[_0x1e4e03(0x1c3)](_0x13de0e){const _0x3d2bab=_0x1e4e03,_0x5574ab=[],_0x2a240c=_0x13de0e[_0x3d2bab(0x1e7)](),_0x143cbd=_0x5d19c9({'onError':_0x4e8282=>{const _0x4d4051=_0x3d2bab;this[_0x4d4051(0x196)](_0x4e8282);},'onEvent':_0x4b5ca0=>{const _0x5305dd=_0x3d2bab;_0x4b5ca0[_0x5305dd(0x183)]=JSON[_0x5305dd(0x17b)](_0x4b5ca0[_0x5305dd(0x183)]),_0x5574ab[_0x5305dd(0x1f5)](_0x4b5ca0);}});try{let _0x54b6b8=!0x1;for(;!_0x54b6b8;){const {done:_0x44ce2f,value:_0x515ff3}=await _0x2a240c[_0x3d2bab(0x1dc)]();_0x44ce2f&&(_0x54b6b8=!0x0),_0x143cbd[_0x3d2bab(0x1fa)](this[_0x3d2bab(0x18e)][_0x3d2bab(0x1dd)](_0x515ff3,{'stream':!0x0})),yield*_0x5574ab,_0x5574ab[_0x3d2bab(0x18d)]=0x0;}}catch(_0x3ee2ee){this[_0x3d2bab(0x196)](_0x3ee2ee);}finally{_0x2a240c[_0x3d2bab(0x1d6)](),_0x143cbd[_0x3d2bab(0x1c5)]();}}[_0x1e4e03(0x196)](_0x5cbdad){const _0x34be11=_0x1e4e03;if(_0x5cbdad instanceof _0x3962b6)throw _0x5cbdad;if(_0x5cbdad instanceof Error&&_0x34be11(0x1a3)===_0x5cbdad[_0x34be11(0x1ab)])throw new _0x3962b6(_0x34be11(0x1e0),this,{'originalError':_0x5cbdad});throw new _0x3962b6(_0x34be11(0x184),this,{'originalError':_0x5cbdad});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x5154(_0xee5812,_0x5edd34){const _0x5df90e=_0x5df9();return _0x5154=function(_0x5154a1,_0x48a13e){_0x5154a1=_0x5154a1-0x12f;let _0x12718d=_0x5df90e[_0x5154a1];return _0x12718d;},_0x5154(_0xee5812,_0x5edd34);}const _0x42a3e7=_0x5154;(function(_0x1cc92a,_0x39df42){const _0x4d6adb=_0x5154,_0xbecf1a=_0x1cc92a();while(!![]){try{const _0xf2a426=parseInt(_0x4d6adb(0x15a))/0x1+parseInt(_0x4d6adb(0x15e))/0x2+-parseInt(_0x4d6adb(0x194))/0x3*(-parseInt(_0x4d6adb(0x189))/0x4)+-parseInt(_0x4d6adb(0x179))/0x5*(-parseInt(_0x4d6adb(0x154))/0x6)+-parseInt(_0x4d6adb(0x191))/0x7*(parseInt(_0x4d6adb(0x16c))/0x8)+-parseInt(_0x4d6adb(0x18d))/0x9+-parseInt(_0x4d6adb(0x163))/0xa;if(_0xf2a426===_0x39df42)break;else _0xbecf1a['push'](_0xbecf1a['shift']());}catch(_0x58b870){_0xbecf1a['push'](_0xbecf1a['shift']());}}}(_0x5df9,0xc7b37));import{ViewDowncastWriter as _0x391cd5}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x36a858,Editor as _0x2175c5}from'ckeditor5/src/core.js';import{uid as _0x1179b5}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3ebfa4}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x42a3e7(0x165);export class AIEditing extends _0x36a858{[_0x42a3e7(0x14b)]=null;[_0x42a3e7(0x13c)]=!0x1;[_0x42a3e7(0x141)];static get[_0x42a3e7(0x18b)](){const _0x154b67=_0x42a3e7;return _0x154b67(0x14e);}static get[_0x42a3e7(0x157)](){return!0x0;}static get[_0x42a3e7(0x164)](){return!0x0;}get[_0x42a3e7(0x13f)](){const _0x39559f=_0x42a3e7;if(!this[_0x39559f(0x141)]){const _0x18792f=_0x3ebfa4(this[_0x39559f(0x196)]),_0x4af5d1=_0x18792f[_0x39559f(0x16e)][_0x39559f(0x17e)](_0x39559f(0x130))&&_0x18792f[_0x39559f(0x16e)][_0x39559f(0x169)](_0x39559f(0x130))[_0x39559f(0x13f)];this[_0x39559f(0x141)]=_0x4af5d1||_0x1179b5();}return this[_0x39559f(0x141)];}[_0x42a3e7(0x14f)](){const _0x2df148=_0x42a3e7,_0x41a035=_0x3ebfa4(this[_0x2df148(0x196)]),_0x56c8bf=_0x41a035[_0x2df148(0x16d)],_0x4f6f63=_0x41a035[_0x2df148(0x197)][_0x2df148(0x15c)](_0x56c8bf[_0x2df148(0x14a)][_0x2df148(0x13b)](),{'convertAiChatSelectionMarker':!0x0}),_0x35c5d1=new _0x391cd5(_0x41a035[_0x2df148(0x173)][_0x2df148(0x162)][_0x2df148(0x14a)]);this[_0x2df148(0x17b)](_0x4f6f63,_0x35c5d1);let _0x3a7266=_0x41a035[_0x2df148(0x197)][_0x2df148(0x153)][_0x2df148(0x16a)](_0x4f6f63);const _0x4d9a56=this[_0x2df148(0x134)](),_0x201ea4=[];for(const _0x3eac03 of _0x4d9a56){const _0x27edda='<'+_0x3eac03[_0x2df148(0x155)]+_0x2df148(0x192)+_0x3eac03[_0x2df148(0x155)]+_0x2df148(0x147),_0x553573=_0x3a7266[_0x2df148(0x138)](_0x27edda);_0x3a7266=_0x3a7266[_0x2df148(0x14c)](0x0,_0x553573)+_0x3a7266[_0x2df148(0x14c)](_0x553573+_0x27edda[_0x2df148(0x184)]);const _0x57a1ef='<'+_0x3eac03[_0x2df148(0x155)]+_0x2df148(0x150)+_0x3eac03[_0x2df148(0x155)]+_0x2df148(0x15f),_0x15842b=_0x3a7266[_0x2df148(0x138)](_0x57a1ef);_0x3a7266=_0x3a7266[_0x2df148(0x14c)](0x0,_0x15842b)+_0x3a7266[_0x2df148(0x14c)](_0x15842b+_0x57a1ef[_0x2df148(0x184)]),_0x201ea4[_0x2df148(0x132)]({'markerName':_0x3eac03[_0x2df148(0x155)],'start':_0x553573,'end':_0x15842b,'htmlFragment':_0x3a7266[_0x2df148(0x14c)](_0x553573,_0x15842b)});}return{'content':_0x3a7266,'version':_0x41a035[_0x2df148(0x16d)][_0x2df148(0x14a)][_0x2df148(0x152)],'sessionId':this[_0x2df148(0x13f)],'selections':_0x201ea4};}async[_0x42a3e7(0x17d)](){const _0x1ba958=_0x42a3e7;this[_0x1ba958(0x196)]instanceof _0x2175c5?this[_0x1ba958(0x18f)](this[_0x1ba958(0x196)]):this[_0x1ba958(0x172)](this[_0x1ba958(0x196)][_0x1ba958(0x185)],_0x1ba958(0x18c),(_0x3e49ae,_0x8b5419)=>{const _0x1962da=_0x1ba958;_0x8b5419['on'](_0x1962da(0x183),()=>{const _0x4f1265=_0x1962da;this[_0x4f1265(0x18f)](_0x8b5419);});});}[_0x42a3e7(0x18f)](_0x566e07){const _0x17c517=_0x42a3e7;_0x566e07[_0x17c517(0x158)][_0x17c517(0x15d)](_0x17c517(0x177))[_0x17c517(0x168)]({'model':_0x17c517(0x165),'view':{'classes':[_0x17c517(0x142),_0x17c517(0x17c)],'priority':0xc}}),_0x566e07[_0x17c517(0x158)][_0x17c517(0x15d)](_0x17c517(0x166))[_0x17c517(0x135)]({'model':_0x17c517(0x165),'view':(_0x4bb661,{writer:_0x562f43,options:_0x3ef6})=>_0x3ef6[_0x17c517(0x175)]?_0x562f43[_0x17c517(0x143)](_0x4bb661[_0x17c517(0x148)]+':'+(_0x4bb661[_0x17c517(0x17f)]?_0x17c517(0x180):_0x17c517(0x18e))):null});}[_0x42a3e7(0x161)](_0x4bda8d,_0x413449,_0x30bd67=!0x1,_0x558b46=!0x1){const _0x58a9f5=_0x42a3e7;if(this[_0x58a9f5(0x13c)]&&!_0x558b46)return!0x1;const _0x5d0cab=_0x3ebfa4(this[_0x58a9f5(0x196)])[_0x58a9f5(0x16d)];return _0x5d0cab[_0x58a9f5(0x15b)](_0x405f96=>{const _0x42246d=_0x58a9f5;this[_0x42246d(0x14b)]&&this[_0x42246d(0x159)](this[_0x42246d(0x14b)]),this[_0x42246d(0x14b)]=_0x413449,this[_0x42246d(0x13c)]=_0x30bd67;let _0x4ebf58=0x0;for(let _0x6d9221 of _0x4bda8d){const _0x3d5354=_0x42246d(0x16f)+_0x4ebf58;if(_0x6d9221[_0x42246d(0x180)][_0x42246d(0x188)]){const _0x387bd3=_0x6d9221[_0x42246d(0x180)][_0x42246d(0x14d)](({item:_0x26aba9})=>!_0x5d0cab[_0x42246d(0x176)][_0x42246d(0x193)](_0x26aba9),{'boundaries':_0x6d9221});_0x6d9221=_0x405f96[_0x42246d(0x178)](_0x387bd3,_0x6d9221[_0x42246d(0x18e)]);}_0x405f96[_0x42246d(0x13a)](_0x3d5354,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x6d9221}),_0x4ebf58++;}}),window[_0x58a9f5(0x186)]()?.[_0x58a9f5(0x160)](),!0x0;}[_0x42a3e7(0x159)](_0x545728){const _0x26d509=_0x42a3e7;if(this[_0x26d509(0x14b)]!=_0x545728)return!0x1;this[_0x26d509(0x14b)]=null,this[_0x26d509(0x13c)]=!0x1;const _0x4bd2d3=_0x3ebfa4(this[_0x26d509(0x196)]),_0x4877ee=_0x4bd2d3[_0x26d509(0x16d)][_0x26d509(0x18a)][_0x26d509(0x151)](_0x26d509(0x165));return _0x4bd2d3[_0x26d509(0x16d)][_0x26d509(0x15b)](_0x2a30e4=>{const _0x12bef8=_0x26d509;for(const _0x132543 of _0x4877ee)_0x2a30e4[_0x12bef8(0x144)](_0x132543);}),!0x0;}[_0x42a3e7(0x140)](_0x1590da){const _0x22c8c1=_0x42a3e7,_0x4fba58=_0x3ebfa4(this[_0x22c8c1(0x196)]),_0x2feac4=_0x4fba58[_0x22c8c1(0x197)][_0x22c8c1(0x15c)](_0x1590da),_0x38c62f=new _0x391cd5(_0x4fba58[_0x22c8c1(0x173)][_0x22c8c1(0x162)][_0x22c8c1(0x14a)]);return this[_0x22c8c1(0x17b)](_0x2feac4,_0x38c62f),_0x2feac4;}[_0x42a3e7(0x17b)](_0x49de5c,_0x3aa8d0){const _0x290557=_0x42a3e7;let _0x59cbc6=!0x1;const _0x1da49f=new Set();for(const _0x23ab9c of _0x49de5c[_0x290557(0x136)]()){const _0x6c080=_0x23ab9c['is'](_0x290557(0x195))||_0x23ab9c['is'](_0x290557(0x17a));if(!_0x23ab9c['is'](_0x290557(0x133)))continue;(this[_0x290557(0x17b)](_0x23ab9c,_0x3aa8d0)||_0x6c080)&&(_0x3aa8d0[_0x290557(0x146)](_0x290557(0x174),this[_0x290557(0x13e)](_0x1da49f),_0x23ab9c),_0x59cbc6=!0x0);}return _0x59cbc6;}[_0x42a3e7(0x13e)](_0x5f365e){const _0x403167=_0x42a3e7;let _0x3fd625;do{_0x3fd625='';for(let _0x1ec550=0x0;_0x1ec550<0x4;_0x1ec550++)_0x3fd625+=String[_0x403167(0x139)](0x61+Math[_0x403167(0x190)](0x1a*Math[_0x403167(0x171)]()));}while(_0x5f365e[_0x403167(0x17e)](_0x3fd625));return _0x5f365e[_0x403167(0x18c)](_0x3fd625),_0x3fd625;}[_0x42a3e7(0x137)](){const _0x1d3790=_0x42a3e7,{model:_0x98d60d}=_0x3ebfa4(this[_0x1d3790(0x196)]),_0x2a76ad=_0x98d60d[_0x1d3790(0x14a)][_0x1d3790(0x12f)],_0x3600df=_0x98d60d[_0x1d3790(0x182)](_0x2a76ad),_0x4f8fe0=[],_0x7a100=_0x98d60d[_0x1d3790(0x145)](_0x3600df)[_0x1d3790(0x167)]();for(const {item:_0x2ba256}of _0x7a100)_0x2ba256['is'](_0x1d3790(0x181))?_0x4f8fe0[_0x1d3790(0x132)](_0x2ba256[_0x1d3790(0x197)]):_0x2ba256['is'](_0x1d3790(0x133))&&_0x4f8fe0[_0x1d3790(0x184)]>0x0&&'\x20'!==_0x4f8fe0[_0x4f8fe0[_0x1d3790(0x184)]-0x1]&&_0x4f8fe0[_0x1d3790(0x132)]('\x20');return'\x22'+_0x4f8fe0[_0x1d3790(0x16b)]('')[_0x1d3790(0x13d)]()+'\x22';}[_0x42a3e7(0x134)](){const _0x554a93=_0x42a3e7,_0x4f8d08=_0x3ebfa4(this[_0x554a93(0x196)])[_0x554a93(0x16d)];return Array[_0x554a93(0x187)](_0x4f8d08[_0x554a93(0x18a)][_0x554a93(0x151)](_0x554a93(0x165)))[_0x554a93(0x149)]((_0x5a2710,_0x55b2b9)=>_0x5a2710[_0x554a93(0x156)]()[_0x554a93(0x131)](_0x55b2b9[_0x554a93(0x156)]())?-0x1:_0x5a2710[_0x554a93(0x156)]()[_0x554a93(0x170)](_0x55b2b9[_0x554a93(0x156)]())?0x1:0x0);}}function _0x5df9(){const _0x3869d7=['version','processor','12vmblHh','name','getStart','isOfficialPlugin','conversion','hideFakeVisualSelection','1329579etWOFe','change','toView','for','2977224UEenmi',':end>','removeAllRanges','showFakeVisualSelection','view','35039380DIgVvA','isPremiumPlugin','ai-selection','dataDowncast','getWalker','markerToHighlight','get','toData','join','568BPYwYq','model','plugins','ai-selection:','isAfter','random','listenTo','editing','data-id','convertAiChatSelectionMarker','schema','editingDowncast','createRange','3561340VcJvcx','containerElement','_setDataIdsOnChildren','ck-ai-assistant-ui_theme','afterInit','has','isOpening','start','$textProxy','getSelectedContent','ready','length','editors','getSelection','from','isAtEnd','8GLydNn','markers','pluginName','add','3091149vPmpgG','end','_integrateEditor','floor','28959wszZWl',':start></','isContent','1074561IGcWts','emptyElement','context','data','selection','RealTimeCollaborationClient','isBefore','push','element','_getMarkersInDocumentOrder','markerToElement','getChildren','getSelectionText','indexOf','fromCharCode','addMarker','getRoot','_displayedFakeSelectionLocked','trim','_nextDataId','sessionId','modelToViewWithIds','_sessionId','ck-fake-ai-selection','createUIElement','removeMarker','createRangeIn','setAttribute',':start>','markerName','sort','document','_displayedFakeSelectionId','substring','getLastMatchingPosition','AIEditing','getDocumentData',':end></','getMarkersGroup'];_0x5df9=function(){return _0x3869d7;};return _0x5df9();}
|