@ckeditor/ckeditor5-ai 47.2.0-alpha.5 → 47.2.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x366aa9=_0x1396;(function(_0x3ba379,_0x514907){const _0x3f90c2=_0x1396,_0x3876a0=_0x3ba379();while(!![]){try{const _0x4b3595=parseInt(_0x3f90c2(0x1f9))/0x1*(parseInt(_0x3f90c2(0x1eb))/0x2)+parseInt(_0x3f90c2(0x1e4))/0x3+-parseInt(_0x3f90c2(0x1d7))/0x4*(-parseInt(_0x3f90c2(0x1ea))/0x5)+parseInt(_0x3f90c2(0x1f3))/0x6*(-parseInt(_0x3f90c2(0x1fb))/0x7)+parseInt(_0x3f90c2(0x1d0))/0x8+-parseInt(_0x3f90c2(0x1d8))/0x9+parseInt(_0x3f90c2(0x1f7))/0xa*(-parseInt(_0x3f90c2(0x1f5))/0xb);if(_0x4b3595===_0x514907)break;else _0x3876a0['push'](_0x3876a0['shift']());}catch(_0x4fee71){_0x3876a0['push'](_0x3876a0['shift']());}}}(_0x5415,0xbc14a));import{ContextPlugin as _0x6b9092}from'ckeditor5/src/core.js';import{AITabs as _0x4cea1f}from'../aitabs/aitabs.js';import{IconAIHistory as _0x18cee4}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0xe49e17}from'./ui/aichathistoryview.js';import{getTranslation as _0x2ba199}from'../aicore/utils/common-translations.js';function _0x1396(_0x25da60,_0x3832fd){const _0x541521=_0x5415();return _0x1396=function(_0x1396e4,_0x24cf0f){_0x1396e4=_0x1396e4-0x1ce;let _0x20dfa6=_0x541521[_0x1396e4];return _0x20dfa6;},_0x1396(_0x25da60,_0x3832fd);}import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x366aa9(0x1ec),_0x366aa9(0x1d5),_0x366aa9(0x1f8),_0x366aa9(0x1f0),_0x366aa9(0x1ee),_0x366aa9(0x1de),_0x366aa9(0x1d2)];function _0x5415(){const _0x15a34d=['isLoading','486XoTsej','isMaximized','5173531ucHTcW','errorMessage','30OeWLTP','editConversationTitle','452361ecvvAz','context','51191wCxTUe','hideError','updateItemTitle','showError','8359688hlmfOf','delegate','resizeTabs','history','_historyView','removeConversation','updateItems','4SdQFsz','5877639SfWonN','showResizeButton','AIChatHistoryUI','isPremiumPlugin','pluginName','get','openChat','locale','isOfficialPlugin','requires','setLoadingSkeleton','removeHistoryItem','4240119knhpUO','updateItemLoadingState','plugins','view','AI_CHAT_HISTORY_HEADING','setIsMaximized','318545VQJUgQ','4kmwQdl','showConversationHistory','updateHistoryItemsWithCategories','selectConversation','addTab','setConversationPinned','AITabs'];_0x5415=function(){return _0x15a34d;};return _0x5415();}export class AIChatHistoryUI extends _0x6b9092{static get[_0x366aa9(0x1e1)](){return[_0x4cea1f];}[_0x366aa9(0x1d4)];static get[_0x366aa9(0x1dc)](){const _0xa96ac2=_0x366aa9;return _0xa96ac2(0x1da);}static get[_0x366aa9(0x1e0)](){return!0x0;}static get[_0x366aa9(0x1db)](){return!0x0;}constructor(_0x2e4be4){const _0x170595=_0x366aa9;super(_0x2e4be4);const _0x28c57e=this[_0x170595(0x1fa)][_0x170595(0x1e6)][_0x170595(0x1dd)](_0x170595(0x1f1));this[_0x170595(0x1d4)]=new _0xe49e17(this[_0x170595(0x1fa)][_0x170595(0x1df)],_0x28c57e[_0x170595(0x1d9)]),this[_0x170595(0x1d4)][_0x170595(0x1d1)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x28c57e[_0x170595(0x1e7)][_0x170595(0x1ef)]({'id':_0x170595(0x1d3),'buttonLabel':_0x2ba199(this[_0x170595(0x1fa)][_0x170595(0x1df)],_0x170595(0x1e8)),'buttonIcon':_0x18cee4,'order':0x0,'content':this[_0x170595(0x1d4)]});}[_0x366aa9(0x1e3)](_0x1e81a4){const _0x1a4cdb=_0x366aa9;this[_0x1a4cdb(0x1d4)][_0x1a4cdb(0x1e3)](_0x1e81a4);}[_0x366aa9(0x1d6)](_0x1a76e8){const _0x125e7c=_0x366aa9;this[_0x125e7c(0x1d4)][_0x125e7c(0x1ed)](_0x1a76e8);}[_0x366aa9(0x1ce)](_0xadbd2e,_0x477c49){const _0x2346f8=_0x366aa9;this[_0x2346f8(0x1d4)][_0x2346f8(0x1ce)](_0xadbd2e,_0x477c49);}[_0x366aa9(0x1e5)](_0x121015,_0x616a6f,_0x46054b){const _0x36884c=_0x366aa9;this[_0x36884c(0x1d4)][_0x36884c(0x1e5)](_0x121015,_0x616a6f,_0x46054b);}[_0x366aa9(0x1e2)](_0x1619f1){const _0x17463e=_0x366aa9;this[_0x17463e(0x1d4)][_0x17463e(0x1f2)]=_0x1619f1;}[_0x366aa9(0x1cf)](_0x27cfe0){const _0x297072=_0x366aa9;this[_0x297072(0x1d4)][_0x297072(0x1f6)]=_0x27cfe0;}[_0x366aa9(0x1fc)](){const _0x3145e0=_0x366aa9;this[_0x3145e0(0x1d4)][_0x3145e0(0x1f6)]='';}[_0x366aa9(0x1e9)](_0x4c3c2e){const _0x10973=_0x366aa9;this[_0x10973(0x1d4)][_0x10973(0x1f4)]=_0x4c3c2e;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45b21e=_0x49f5;function _0x22cb(){const _0x518b29=['itemsLoaded','updateItemTitle','init','updateItemPinned','getResult','1363088kwzppW','getMonth','getDate','loadItems','fire','getItem','group','execute','updateConversation','pinned','deleteConversation','splice','4074550EWIbsS','getItems','1622092MkSUBB','4188doTdQC','addItem','findIndex','from','5vpklOc','itemUpdated','connector','createdAt','push','removeItem','error','2887926HrvCvn','3593qoXblD','getTime','26iswXqY','1871202DShkoT','items','find','updateTitle','12331lVcsGk','getConversations','9sblKqo','getFullYear','filter','7FHbSEW','itemRemoved','updatePinned','map','fetchConversations'];_0x22cb=function(){return _0x518b29;};return _0x22cb();}(function(_0x584938,_0x4bab07){const _0x8797ec=_0x49f5,_0x500b6b=_0x584938();while(!![]){try{const _0x3be0d1=-parseInt(_0x8797ec(0x1cb))/0x1*(parseInt(_0x8797ec(0x1cd))/0x2)+parseInt(_0x8797ec(0x1ce))/0x3+parseInt(_0x8797ec(0x1be))/0x4*(parseInt(_0x8797ec(0x1c3))/0x5)+-parseInt(_0x8797ec(0x1ca))/0x6+-parseInt(_0x8797ec(0x1d7))/0x7*(parseInt(_0x8797ec(0x1b0))/0x8)+parseInt(_0x8797ec(0x1d4))/0x9*(parseInt(_0x8797ec(0x1bc))/0xa)+parseInt(_0x8797ec(0x1d2))/0xb*(-parseInt(_0x8797ec(0x1bf))/0xc);if(_0x3be0d1===_0x4bab07)break;else _0x500b6b['push'](_0x500b6b['shift']());}catch(_0x1d739d){_0x500b6b['push'](_0x500b6b['shift']());}}}(_0x22cb,0x54bbb));import{EmitterMixin as _0x237b7f}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x59cd43}from'./aichathistoryitem.js';function _0x49f5(_0x4c8814,_0x2ea132){const _0x22cb90=_0x22cb();return _0x49f5=function(_0x49f593,_0xcd4b3d){_0x49f593=_0x49f593-0x1a9;let _0x4ca832=_0x22cb90[_0x49f593];return _0x4ca832;},_0x49f5(_0x4c8814,_0x2ea132);}export class AIChatHistoryConversations extends _0x237b7f(){[_0x45b21e(0x1cf)]=[];[_0x45b21e(0x1c5)];[_0x45b21e(0x1b6)];constructor({connector:_0x1aa0d9,group:_0x419f13}){const _0x3f5383=_0x45b21e;super(),this[_0x3f5383(0x1c5)]=_0x1aa0d9,this[_0x3f5383(0x1b6)]=_0x419f13;}async[_0x45b21e(0x1ad)](){const _0x1af62c=_0x45b21e;try{const _0x1ddf70=this[_0x1af62c(0x1c5)][_0x1af62c(0x1aa)](this[_0x1af62c(0x1b6)]),_0x209e64=await _0x1ddf70[_0x1af62c(0x1d3)]();this[_0x1af62c(0x1b3)](_0x209e64);}catch(_0x32f70f){this[_0x1af62c(0x1b4)](_0x1af62c(0x1c9),{'error':_0x32f70f,'operation':_0x1af62c(0x1ad)});}}[_0x45b21e(0x1c0)](_0x33e1bd){const _0xd1d67d=_0x45b21e;this[_0xd1d67d(0x1cf)][_0xd1d67d(0x1c7)](_0x33e1bd);}async[_0x45b21e(0x1c8)](_0x56fbf0){const _0x210341=_0x45b21e,_0x1d0e36=this[_0x210341(0x1cf)][_0x210341(0x1c1)](_0x16696b=>_0x16696b['id']===_0x56fbf0);if(-0x1===_0x1d0e36)return!0x1;try{return await this[_0x210341(0x1c5)][_0x210341(0x1ba)](_0x56fbf0)[_0x210341(0x1b7)](),this[_0x210341(0x1cf)][_0x210341(0x1bb)](_0x1d0e36,0x1),this[_0x210341(0x1b4)](_0x210341(0x1d8),{'itemId':_0x56fbf0}),!0x0;}catch(_0x5d35b6){return this[_0x210341(0x1b4)](_0x210341(0x1c9),{'error':_0x5d35b6,'operation':_0x210341(0x1c8),'itemId':_0x56fbf0}),!0x1;}}[_0x45b21e(0x1b5)](_0x1eb9ee){const _0x42348f=_0x45b21e;return this[_0x42348f(0x1cf)][_0x42348f(0x1d0)](_0x245ebd=>_0x245ebd['id']===_0x1eb9ee);}async[_0x45b21e(0x1ac)](_0x16de34,_0x577069){const _0x5c6f57=_0x45b21e,_0x13322d=this[_0x5c6f57(0x1b5)](_0x16de34);if(!_0x13322d)return!0x1;try{return await this[_0x5c6f57(0x1c5)][_0x5c6f57(0x1b8)](_0x16de34,{'title':_0x577069})[_0x5c6f57(0x1af)](),_0x13322d[_0x5c6f57(0x1d1)](_0x577069),this[_0x5c6f57(0x1b4)](_0x5c6f57(0x1c4),{'itemId':_0x16de34,'updates':{'title':_0x577069}}),!0x0;}catch(_0x3f6942){return this[_0x5c6f57(0x1b4)](_0x5c6f57(0x1c9),{'error':_0x3f6942,'operation':_0x5c6f57(0x1ac),'itemId':_0x16de34}),!0x1;}}async[_0x45b21e(0x1ae)](_0x3757f3,_0x5a141f){const _0x17b708=_0x45b21e,_0x2e41ac=this[_0x17b708(0x1b5)](_0x3757f3);if(!_0x2e41ac)return!0x1;try{return await this[_0x17b708(0x1c5)][_0x17b708(0x1b8)](_0x3757f3,{'pinned':_0x5a141f})[_0x17b708(0x1af)](),_0x2e41ac[_0x17b708(0x1d9)](_0x5a141f),this[_0x17b708(0x1b4)](_0x17b708(0x1c4),{'itemId':_0x3757f3,'updates':{'pinned':_0x5a141f}}),!0x0;}catch(_0x222cae){return this[_0x17b708(0x1b4)](_0x17b708(0x1c9),{'error':_0x222cae,'operation':_0x17b708(0x1ae),'itemId':_0x3757f3}),!0x1;}}[_0x45b21e(0x1b3)](_0x3b3d70){const _0x1a1afd=_0x45b21e;try{this[_0x1a1afd(0x1cf)]=[],_0x3b3d70[_0x1a1afd(0x1a9)](_0x1a164d=>{const _0x43c419=_0x1a1afd;this[_0x43c419(0x1c0)](new _0x59cd43(_0x1a164d));}),this[_0x1a1afd(0x1b4)](_0x1a1afd(0x1ab),{'items':[...this[_0x1a1afd(0x1cf)]]});}catch(_0x4410f5){this[_0x1a1afd(0x1b4)](_0x1a1afd(0x1c9),{'error':_0x4410f5,'operation':_0x1a1afd(0x1b3)});}}[_0x45b21e(0x1bd)](_0xcd1f3b={}){const _0x537a6c=_0x45b21e,_0xe3c2dc=void 0x0!==_0xcd1f3b[_0x537a6c(0x1b9)]&&_0xcd1f3b[_0x537a6c(0x1b9)],_0x34120c=_0xcd1f3b[_0x537a6c(0x1c2)]?new Date(_0xcd1f3b[_0x537a6c(0x1c2)][_0x537a6c(0x1d5)](),_0xcd1f3b[_0x537a6c(0x1c2)][_0x537a6c(0x1b1)](),_0xcd1f3b[_0x537a6c(0x1c2)][_0x537a6c(0x1b2)]()):null,_0x3a82c8=_0xcd1f3b['to']?new Date(_0xcd1f3b['to'][_0x537a6c(0x1d5)](),_0xcd1f3b['to'][_0x537a6c(0x1b1)](),_0xcd1f3b['to'][_0x537a6c(0x1b2)]()):null;return this[_0x537a6c(0x1cf)][_0x537a6c(0x1d6)](_0x459b6e=>{const _0x3ffa34=_0x537a6c;if(_0x459b6e[_0x3ffa34(0x1b9)]!==_0xe3c2dc)return!0x1;if(_0x3a82c8){const _0x347c8c=new Date(_0x459b6e[_0x3ffa34(0x1c6)][_0x3ffa34(0x1d5)](),_0x459b6e[_0x3ffa34(0x1c6)][_0x3ffa34(0x1b1)](),_0x459b6e[_0x3ffa34(0x1c6)][_0x3ffa34(0x1b2)]());return _0x34120c?_0x34120c[_0x3ffa34(0x1cc)]()===_0x3a82c8[_0x3ffa34(0x1cc)]()?_0x347c8c[_0x3ffa34(0x1cc)]()===_0x34120c[_0x3ffa34(0x1cc)]():_0x347c8c<_0x3a82c8&&_0x347c8c>=_0x34120c:_0x347c8c<_0x3a82c8;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x855e6f=_0x7b90;(function(_0xad0eaf,_0xa1151e){var _0x59757a=_0x7b90,_0x29e19c=_0xad0eaf();while(!![]){try{var _0x56216e=parseInt(_0x59757a(0x1b5))/0x1*(-parseInt(_0x59757a(0x1c7))/0x2)+parseInt(_0x59757a(0x1c6))/0x3+parseInt(_0x59757a(0x1c1))/0x4*(-parseInt(_0x59757a(0x1bb))/0x5)+parseInt(_0x59757a(0x1b7))/0x6*(parseInt(_0x59757a(0x1bc))/0x7)+parseInt(_0x59757a(0x1bf))/0x8*(parseInt(_0x59757a(0x1ba))/0x9)+parseInt(_0x59757a(0x1c3))/0xa*(-parseInt(_0x59757a(0x1be))/0xb)+parseInt(_0x59757a(0x1b6))/0xc;if(_0x56216e===_0xa1151e)break;else _0x29e19c['push'](_0x29e19c['shift']());}catch(_0x38354d){_0x29e19c['push'](_0x29e19c['shift']());}}}(_0x4c19,0x98443));import{ObservableMixin as _0x35eb16}from'ckeditor5/src/utils.js';function _0x4c19(){var _0x5d53ec=['51880miEqKQ','updatePinned','createdAt','2245992qggRdC','6UFnMMk','318589pDHTOo','11136612VKhTIw','1737516ZIyAkm','set','pinned','6381nvUewc','5jeevPt','7CzoJET','updatedAt','1628noKYdf','10680KxMixU','updateTitle','2262168eCEeZJ','title'];_0x4c19=function(){return _0x5d53ec;};return _0x4c19();}import{escape as _0x51ecc9}from'es-toolkit/compat';function _0x7b90(_0x1ab92c,_0x4c289c){var _0x4c1966=_0x4c19();return _0x7b90=function(_0x7b901f,_0x2f5e02){_0x7b901f=_0x7b901f-0x1b5;var _0x5d5ceb=_0x4c1966[_0x7b901f];return _0x5d5ceb;},_0x7b90(_0x1ab92c,_0x4c289c);}export class AIChatHistoryItem extends _0x35eb16(){['id'];[_0x855e6f(0x1c5)];constructor({id:_0x22137e,title:_0x1862a6,createdAt:_0x14bef0,updatedAt:_0x59a084,pinned:_0x5d38d4}){var _0xb4b6a4=_0x855e6f;super(),this['id']=_0x22137e,this[_0xb4b6a4(0x1c5)]=new Date(_0x14bef0),this[_0xb4b6a4(0x1b8)](_0xb4b6a4(0x1c2),_0x1862a6),this[_0xb4b6a4(0x1b8)](_0xb4b6a4(0x1bd),_0x59a084?new Date(_0x59a084):null),this[_0xb4b6a4(0x1b8)](_0xb4b6a4(0x1b9),_0x5d38d4||!0x1);}[_0x855e6f(0x1c0)](_0x4956f6){var _0x373e64=_0x855e6f;this[_0x373e64(0x1b8)](_0x373e64(0x1c2),_0x51ecc9(_0x4956f6)),this[_0x373e64(0x1bd)]=new Date();}[_0x855e6f(0x1c4)](_0x4e7efa){var _0x4be2ee=_0x855e6f;this[_0x4be2ee(0x1b8)](_0x4be2ee(0x1b9),_0x4e7efa),this[_0x4be2ee(0x1bd)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x228cd2=_0x3348;(function(_0x4bf83a,_0x5b6bb4){const _0x329734=_0x3348,_0x36dda6=_0x4bf83a();while(!![]){try{const _0x41d3d0=parseInt(_0x329734(0xf7))/0x1+-parseInt(_0x329734(0xc2))/0x2+parseInt(_0x329734(0x109))/0x3+-parseInt(_0x329734(0xd5))/0x4*(-parseInt(_0x329734(0x105))/0x5)+-parseInt(_0x329734(0xfb))/0x6*(parseInt(_0x329734(0xf9))/0x7)+parseInt(_0x329734(0xcf))/0x8*(parseInt(_0x329734(0xbe))/0x9)+-parseInt(_0x329734(0x10a))/0xa;if(_0x41d3d0===_0x5b6bb4)break;else _0x36dda6['push'](_0x36dda6['shift']());}catch(_0x2bc443){_0x36dda6['push'](_0x36dda6['shift']());}}}(_0x5e1c,0x2e4f8));import{ListItemView as _0x194e85,HighlightedTextView as _0xda3256,ButtonView as _0x159628,ListView as _0x42a657,IconView as _0x51fa67,createDropdown as _0x20d389,InputTextView as _0x1ae4c8}from'ckeditor5/src/ui.js';function _0x3348(_0x5df4be,_0x4ce092){const _0x5e1cb9=_0x5e1c();return _0x3348=function(_0x334899,_0x5b7fbc){_0x334899=_0x334899-0xbe;let _0x234f5c=_0x5e1cb9[_0x334899];return _0x234f5c;},_0x3348(_0x5df4be,_0x4ce092);}import{IconThreeHorizontalDots as _0x5ab117,IconPin as _0x2bcffe,IconCheck as _0xc6bf78,IconCancel as _0x1832cb}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x53de8c,ConfirmMixin as _0x2fea3f}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4d0cd9}from'es-toolkit/compat';function _0x5e1c(){const _0xbf4da7=['24264oGNryy','listitem','withText','ck-ai-chat-history__item--edit','6268AdFTtB','clear','_createSpinnerView','ck-ai-chat-history__item-content','setTemplate','updateLoadingState','match','value','div','buttonView','panelView','AI_CHAT_HISTORY_ACCEPT','_titleView','1016Igmqix','isMatching','ck-ai-chat-history__item--active','label','focus','ck-ai-chat-history__item-main-content','412xTaKpp','_createEditInputView','isOn','_createMenuDropdownView','text','element','ck-confirm-view-cancel','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','actions','ck-hidden','click','LOADING_LABELS','children','panelPosition','AI_CHAT_HISTORY_LOADING_REMOVING','set','createCollection','showConfirm','AI_CHAT_HISTORY_LOADING_UNPINNING','mainContent','ck-ai-chat-history__item-actions','then','ck-ai-chat-history__item','items','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_LOADING_PINNING','highlightText','ck-ai-loader__text','locale','_createCancelEditButtonView','selectConversation','pinned','bind','tiny','239399RaNFMB','updateTitle','88291UewGYD','addMany','6lrRmmN','AI_CHAT_HISTORY_PIN_BUTTON','key','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item-check-container','_commitEditInputValue','edit:cancel','editConversationTitle','add','ck-ai-chat-history__item-check','15510LzKwGj','isVisible','removeConversation','isEdit','621369LdgxZt','9029850NgsxtI','_createAcceptEditButtonView','ck-ai-loader','setConversationPinned','bindTemplate','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item-date','ck-ai-chat-history__item-title','loadingState','span','execute','string','_createCheckView','ck-confirm-view-submit','AI_CHAT_HISTORY_REMOVE_CONFIRM','fire','AI_CHAT_HISTORY_LOADING_RENAMING','Enter','change:isEdit','_createPinButtonView','ck-ai-chat-history__item-row','extendTemplate'];_0x5e1c=function(){return _0xbf4da7;};return _0x5e1c();}import{AISpinnerView as _0x1544aa}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1c10e6}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2fea3f(_0x194e85){['id'];static [_0x228cd2(0xe0)]={'remove':_0x228cd2(0xe3),'rename':_0x228cd2(0x11a),'pin':_0x228cd2(0xee),'unpin':_0x228cd2(0xe7)};[_0x228cd2(0xdd)];[_0x228cd2(0xe8)];[_0x228cd2(0xce)];constructor(_0x2d10df,_0x541cc0){const _0x1c0983=_0x228cd2;super(_0x2d10df);const _0x29463b=this[_0x1c0983(0x10e)];this[_0x1c0983(0xe4)](_0x1c0983(0x108),!0x1),this[_0x1c0983(0xe4)](_0x1c0983(0x106),!0x0),this[_0x1c0983(0xe4)](_0x1c0983(0xf4),!!_0x541cc0[_0x1c0983(0xf4)]),this[_0x1c0983(0xe4)](_0x1c0983(0x112),null),this['id']=_0x541cc0['id'];const {title:_0x1015d2,createdAt:_0x3d2c75,active:_0x3fb883=!0x1}=_0x541cc0;this[_0x1c0983(0xce)]=new _0xda3256(),this[_0x1c0983(0xce)][_0x1c0983(0xd9)]=_0x1015d2,this[_0x1c0983(0xce)][_0x1c0983(0x11f)]({'attributes':{'class':[_0x1c0983(0x111)]}});const _0x81c62b=this[_0x1c0983(0x116)](),_0x3e91f5=this[_0x1c0983(0x11d)](_0x2d10df),_0x3add2e=this[_0x1c0983(0xd8)](),_0x5e9f63=this[_0x1c0983(0xd6)](_0x2d10df,_0x1015d2),_0xf0a981=this[_0x1c0983(0x10b)](_0x2d10df,_0x5e9f63),_0x37a81a=this[_0x1c0983(0xf2)](_0x2d10df,_0x5e9f63);this[_0x1c0983(0xdd)]=this[_0x1c0983(0xe5)](),this[_0x1c0983(0xe8)]=this[_0x1c0983(0xe5)](),this[_0x1c0983(0xe8)][_0x1c0983(0x103)](this[_0x1c0983(0xce)]),this[_0x1c0983(0xdd)][_0x1c0983(0x103)](_0x3e91f5),this[_0x1c0983(0xdd)][_0x1c0983(0x103)](_0x3add2e),this['on'](_0x1c0983(0x11c),(_0x436103,_0x477d21,_0x27a8e1)=>{const _0x4fc989=_0x1c0983;this[_0x4fc989(0xdd)][_0x4fc989(0xc3)](),this[_0x4fc989(0xe8)][_0x4fc989(0xc3)](),_0x27a8e1?(this[_0x4fc989(0xdd)][_0x4fc989(0x103)](_0xf0a981),this[_0x4fc989(0xdd)][_0x4fc989(0x103)](_0x37a81a),this[_0x4fc989(0xe8)][_0x4fc989(0x103)](_0x5e9f63),_0x5e9f63[_0x4fc989(0xda)][_0x4fc989(0xd3)]()):(this[_0x4fc989(0xdd)][_0x4fc989(0x103)](_0x3e91f5),this[_0x4fc989(0xdd)][_0x4fc989(0x103)](_0x3add2e),this[_0x4fc989(0xe8)][_0x4fc989(0x103)](this[_0x4fc989(0xce)]));}),this[_0x1c0983(0xc6)]({'tag':'li','attributes':{'class':[_0x1c0983(0xeb),_0x3fb883?_0x1c0983(0xd1):'',_0x29463b['if'](_0x1c0983(0x106),_0x1c0983(0xde),_0x46488c=>!_0x46488c),_0x29463b['if'](_0x1c0983(0x108),_0x1c0983(0xc1))],'role':_0x1c0983(0xbf)},'children':[{'tag':_0x1c0983(0x113),'attributes':{'class':[_0x1c0983(0xff)]},'children':[{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0x104),_0x29463b['if'](_0x1c0983(0x112),_0x1c0983(0xde),_0x514a2d=>!!_0x514a2d)]},'children':_0x3fb883?[_0x81c62b]:[]},{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0x10c),_0x29463b['if'](_0x1c0983(0x112),_0x1c0983(0xde),_0x2e69a1=>!_0x2e69a1)]},'children':[this[_0x1c0983(0xc4)]()]}]},{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0x11e)]},'children':[{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0xc5)]},'on':{'click':this[_0x1c0983(0x10e)]['to'](_0x1c0983(0xdf))},'children':[{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0xd4)]},'children':[{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0x111),_0x29463b['if'](_0x1c0983(0x112),_0x1c0983(0xde),_0x2d3382=>!!_0x2d3382)]},'children':this[_0x1c0983(0xe8)]},{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0xf0),_0x29463b['if'](_0x1c0983(0x112),_0x1c0983(0xde),_0x10f848=>!_0x10f848)]},'children':[{'text':_0x29463b['to'](_0x1c0983(0x112),_0x324acc=>_0x324acc?_0x1c10e6(this[_0x1c0983(0xf1)],AIChatHistoryListItemView[_0x1c0983(0xe0)][_0x324acc]):'')}]}]},{'tag':_0x1c0983(0x113),'attributes':{'class':[_0x1c0983(0x110)]},'children':[_0x3d2c75]}]},{'tag':_0x1c0983(0xca),'attributes':{'class':[_0x1c0983(0xe9)]},'children':this[_0x1c0983(0xdd)]}]}]}),this['on'](_0x1c0983(0xdf),()=>{const _0x199e1b=_0x1c0983;this[_0x199e1b(0x108)]||this[_0x199e1b(0x119)](_0x199e1b(0xf3),{'id':this['id']});});}[_0x228cd2(0xf8)](_0x3098fb){const _0x3647cd=_0x228cd2;this[_0x3647cd(0xce)][_0x3647cd(0xd9)]=_0x4d0cd9(_0x3098fb);}[_0x228cd2(0xc7)](_0x293560,_0x309fca){const _0x5ca0fc=_0x228cd2;this[_0x5ca0fc(0xe4)](_0x5ca0fc(0x112),_0x309fca?_0x293560:null);}[_0x228cd2(0x116)](){const _0xe54373=_0x228cd2,_0xae2f8=new _0x51fa67();return _0xae2f8[_0xe54373(0xe4)]({'content':_0xc6bf78}),_0xae2f8;}[_0x228cd2(0x11d)](_0x117a6e){const _0x35aa06=_0x228cd2,_0x30ff60=new _0x159628(_0x117a6e);return _0x30ff60[_0x35aa06(0xe4)]({'label':_0x1c10e6(_0x117a6e,_0x35aa06(0xfc)),'icon':_0x2bcffe,'withText':!0x1,'tooltip':!0x0}),_0x30ff60[_0x35aa06(0xf5)](_0x35aa06(0xd7))['to'](this,_0x35aa06(0xf4)),_0x30ff60['on'](_0x35aa06(0x114),()=>{const _0x8c77f4=_0x35aa06,_0x9722de=!this[_0x8c77f4(0xf4)];this[_0x8c77f4(0x119)](_0x8c77f4(0x10d),{'id':this['id'],'pinned':_0x9722de});}),_0x30ff60;}[_0x228cd2(0xd8)](){const _0x1ef9be=_0x228cd2,_0xa56b17=_0x20d389(this[_0x1ef9be(0xf1)],_0x53de8c),_0x401c44=_0xa56b17[_0x1ef9be(0xcc)][_0x1ef9be(0xe1)];_0xa56b17[_0x1ef9be(0xcb)][_0x1ef9be(0xe4)]({'label':_0x1c10e6(this[_0x1ef9be(0xf1)],_0x1ef9be(0xdc)),'icon':_0x5ab117}),_0xa56b17[_0x1ef9be(0xe2)]='sw';const _0x1e318f=new _0x159628(this[_0x1ef9be(0xf1)]);_0x1e318f[_0x1ef9be(0xd2)]=_0x1c10e6(this[_0x1ef9be(0xf1)],_0x1ef9be(0xfe)),_0x1e318f[_0x1ef9be(0xc0)]=!0x0,_0x1e318f['on'](_0x1ef9be(0x114),()=>{const _0x521c91=_0x1ef9be;this[_0x521c91(0x108)]=!0x0;});const _0x2ffacc=new _0x159628(this[_0x1ef9be(0xf1)]);_0x2ffacc[_0x1ef9be(0xd2)]=_0x1c10e6(this[_0x1ef9be(0xf1)],_0x1ef9be(0xed)),_0x2ffacc[_0x1ef9be(0xc0)]=!0x0,_0x2ffacc['on'](_0x1ef9be(0x114),()=>{const _0x4d7584=_0x1ef9be;this[_0x4d7584(0xe6)](_0x1c10e6(this[_0x4d7584(0xf1)],_0x4d7584(0x118)),this[_0x4d7584(0xda)])[_0x4d7584(0xea)](()=>{const _0x4df5f9=_0x4d7584;this[_0x4df5f9(0x119)](_0x4df5f9(0x107),{'id':this['id']});});});const _0xac87b1=new _0x42a657(this[_0x1ef9be(0xf1)]),_0x42773a=new _0x194e85(this[_0x1ef9be(0xf1)]);_0x42773a[_0x1ef9be(0xe1)][_0x1ef9be(0x103)](_0x1e318f);const _0x236e17=new _0x194e85(this[_0x1ef9be(0xf1)]);return _0x236e17[_0x1ef9be(0xe1)][_0x1ef9be(0x103)](_0x2ffacc),_0xac87b1[_0x1ef9be(0xec)][_0x1ef9be(0xfa)]([_0x42773a,_0x236e17]),_0x401c44[_0x1ef9be(0x103)](_0xac87b1),_0xa56b17;}[_0x228cd2(0xd6)](_0x1a17f3,_0x576c29){const _0x27171c=_0x228cd2,_0x2b3f44=new _0x1ae4c8(_0x1a17f3),_0x160fbc=_0x2b3f44[_0x27171c(0x10e)];return _0x2b3f44[_0x27171c(0xc9)]=_0x576c29,_0x2b3f44[_0x27171c(0x11f)]({'on':{'keydown':_0x160fbc['to'](_0x1e0cef=>{const _0x416018=_0x27171c;_0x416018(0x11b)==_0x1e0cef[_0x416018(0xfd)]&&this[_0x416018(0x100)](_0x2b3f44);})}}),_0x2b3f44;}[_0x228cd2(0x10b)](_0x4a2f24,_0x82510){const _0x2a4c2b=_0x228cd2,_0x56048b=new _0x159628(_0x4a2f24);return _0x56048b[_0x2a4c2b(0xe4)]({'icon':_0xc6bf78,'withText':!0x1,'tooltip':_0x1c10e6(_0x4a2f24,_0x2a4c2b(0xcd))}),_0x56048b[_0x2a4c2b(0x11f)]({'attributes':{'class':[_0x2a4c2b(0x117)]}}),_0x56048b['on'](_0x2a4c2b(0x114),()=>{const _0x4fea57=_0x2a4c2b;this[_0x4fea57(0x100)](_0x82510);}),_0x56048b;}[_0x228cd2(0x100)](_0x1c5e99){const _0xe81bf1=_0x228cd2,_0x355dfd=_0x1c5e99[_0xe81bf1(0xda)][_0xe81bf1(0xc9)]||'';this[_0xe81bf1(0xce)][_0xe81bf1(0xd9)]=_0x355dfd,this[_0xe81bf1(0x108)]=!0x1,this[_0xe81bf1(0x119)](_0xe81bf1(0x102),{'id':this['id'],'title':_0x355dfd});}[_0x228cd2(0xf2)](_0x5cff7b,_0xb368b5){const _0x24d6d1=_0x228cd2,_0x1530ca=new _0x159628(_0x5cff7b);return _0x1530ca[_0x24d6d1(0xe4)]({'icon':_0x1832cb,'withText':!0x1,'tooltip':_0x1c10e6(_0x5cff7b,_0x24d6d1(0x10f))}),_0x1530ca[_0x24d6d1(0x11f)]({'attributes':{'class':[_0x24d6d1(0xdb)]}}),_0x1530ca['on'](_0x24d6d1(0x114),()=>{const _0x2c8de8=_0x24d6d1;this[_0x2c8de8(0x108)]=!0x1,_0xb368b5[_0x2c8de8(0xc9)]=this[_0x2c8de8(0xce)][_0x2c8de8(0xd9)]||'',this[_0x2c8de8(0x119)](_0x2c8de8(0x101));}),_0x1530ca;}[_0x228cd2(0xc4)](){const _0x4a4c10=_0x228cd2,_0x4e87e0=new _0x1544aa(_0x4a4c10(0xf6));return _0x4e87e0[_0x4a4c10(0x106)]=!0x0,_0x4e87e0;}[_0x228cd2(0xd0)](_0x1660e2){const _0x5333ac=_0x228cd2;return this[_0x5333ac(0xce)]&&_0x5333ac(0x115)==typeof this[_0x5333ac(0xce)][_0x5333ac(0xd9)]&&this[_0x5333ac(0xce)][_0x5333ac(0xd9)][_0x5333ac(0xc8)](_0x1660e2)?{'title':!0x0}:null;}[_0x228cd2(0xef)](_0x28344d){const _0x275ab7=_0x228cd2;this[_0x275ab7(0xce)][_0x275ab7(0xef)](_0x28344d);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x4548(_0x186c95,_0x490ac4){const _0x4eae08=_0x4eae();return _0x4548=function(_0x454853,_0x50e17e){_0x454853=_0x454853-0xf8;let _0x4ddc56=_0x4eae08[_0x454853];return _0x4ddc56;},_0x4548(_0x186c95,_0x490ac4);}function _0x4eae(){const _0xfd630b=['isVisible','setTemplate','title','bindTemplate','24286frQNPr','indexOf','itemsViews','3916250mHMTDO','addMany','set','ck-ai-chat-history__section-title','remove','div','48SwtKuY','2215241rgqHcJ','970gZstXs','ck-ai-chat-history__section','length','items','1913142XpNobv','3468BgFPKt','231976OxAqXe','_itemsListView','splice','find','18ULNiwz','filter','removeItem','ck-hidden','632424MdeEKA','getItem','highlightText','isMatching'];_0x4eae=function(){return _0xfd630b;};return _0x4eae();}const _0x33ab48=_0x4548;(function(_0x1c355d,_0x5d06ea){const _0x4bf97b=_0x4548,_0x18f1ac=_0x1c355d();while(!![]){try{const _0x5c0861=parseInt(_0x4bf97b(0x102))/0x1+parseInt(_0x4bf97b(0x112))/0x2*(parseInt(_0x4bf97b(0xfa))/0x3)+parseInt(_0x4bf97b(0x101))/0x4*(-parseInt(_0x4bf97b(0xfc))/0x5)+-parseInt(_0x4bf97b(0x100))/0x6+-parseInt(_0x4bf97b(0xfb))/0x7+parseInt(_0x4bf97b(0x10a))/0x8*(parseInt(_0x4bf97b(0x106))/0x9)+parseInt(_0x4bf97b(0x115))/0xa;if(_0x5c0861===_0x5d06ea)break;else _0x18f1ac['push'](_0x18f1ac['shift']());}catch(_0x366369){_0x18f1ac['push'](_0x18f1ac['shift']());}}}(_0x4eae,0x2a1bd));import{ListItemView as _0xd7fb0a,View as _0x485141,ListView as _0x3df9fe}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0xd7fb0a{[_0x33ab48(0x110)];[_0x33ab48(0x114)];[_0x33ab48(0x103)];constructor(_0xccff0f,{title:_0x1795c8,items:_0x1de505}){const _0x3c5371=_0x33ab48;super(_0xccff0f);const _0x4fdd17=this[_0x3c5371(0x111)];this[_0x3c5371(0x117)](_0x3c5371(0x10e),!0x0),this[_0x3c5371(0x110)]=_0x1795c8,this[_0x3c5371(0x114)]=_0x1de505;const _0x561a39=new _0x485141(_0xccff0f);_0x561a39[_0x3c5371(0x10f)]({'tag':_0x3c5371(0xf9),'attributes':{'class':[_0x3c5371(0x118)]},'children':[this[_0x3c5371(0x110)]]}),this[_0x3c5371(0x103)]=new _0x3df9fe(_0xccff0f),this[_0x3c5371(0x103)][_0x3c5371(0xff)][_0x3c5371(0x116)](this[_0x3c5371(0x114)]),this[_0x3c5371(0x10f)]({'tag':'li','attributes':{'class':[_0x3c5371(0xfd),_0x4fdd17['if'](_0x3c5371(0x10e),_0x3c5371(0x109),_0x23cc0c=>!_0x23cc0c)]},'children':[_0x561a39,this[_0x3c5371(0x103)]]});}[_0x33ab48(0x107)](_0x463a85){const _0x4c44ce=_0x33ab48,_0x7ce78c=this[_0x4c44ce(0x114)][_0x4c44ce(0xfe)];let _0x508810=0x0;for(const _0x22a5c5 of this[_0x4c44ce(0x114)]){if(_0x463a85){const _0x466563=_0x22a5c5[_0x4c44ce(0x10d)](_0x463a85);_0x22a5c5[_0x4c44ce(0x10e)]=!!_0x466563,_0x22a5c5[_0x4c44ce(0x10c)](_0x463a85);}else _0x22a5c5[_0x4c44ce(0x10e)]=!0x0,_0x22a5c5[_0x4c44ce(0x10c)](null);_0x22a5c5[_0x4c44ce(0x10e)]&&_0x508810++;}return this[_0x4c44ce(0x10e)]=_0x508810>0x0,{'resultsCount':_0x508810,'totalItemsCount':_0x7ce78c};}[_0x33ab48(0x10b)](_0x36dd60){const _0x441e0a=_0x33ab48;return this[_0x441e0a(0x114)][_0x441e0a(0x105)](_0x24f74a=>_0x24f74a['id']===_0x36dd60);}[_0x33ab48(0x108)](_0x37032e){const _0x25fa28=_0x33ab48,_0x5ed89b=this[_0x25fa28(0x114)][_0x25fa28(0x113)](_0x37032e);-0x1!==_0x5ed89b&&(this[_0x25fa28(0x114)][_0x25fa28(0x104)](_0x5ed89b,0x1),this[_0x25fa28(0x103)][_0x25fa28(0xff)][_0x25fa28(0xf8)](_0x37032e));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ec6bc=_0x3b29;(function(_0x1b9722,_0x3cf94c){const _0x2a585d=_0x3b29,_0x2887f8=_0x1b9722();while(!![]){try{const _0x88be5b=-parseInt(_0x2a585d(0x12f))/0x1+-parseInt(_0x2a585d(0x120))/0x2+-parseInt(_0x2a585d(0x123))/0x3*(parseInt(_0x2a585d(0x128))/0x4)+parseInt(_0x2a585d(0x125))/0x5*(parseInt(_0x2a585d(0x121))/0x6)+parseInt(_0x2a585d(0x124))/0x7+-parseInt(_0x2a585d(0x12e))/0x8*(parseInt(_0x2a585d(0x129))/0x9)+-parseInt(_0x2a585d(0x127))/0xa*(-parseInt(_0x2a585d(0x12c))/0xb);if(_0x88be5b===_0x3cf94c)break;else _0x2887f8['push'](_0x2887f8['shift']());}catch(_0x46a0be){_0x2887f8['push'](_0x2887f8['shift']());}}}(_0xc14c,0xd4c7c));import{ListView as _0x53e55f}from'ckeditor5/src/ui.js';function _0x3b29(_0x4731c3,_0x3cad0c){const _0xc14cfd=_0xc14c();return _0x3b29=function(_0x3b29fa,_0x540fe3){_0x3b29fa=_0x3b29fa-0x120;let _0x58295f=_0xc14cfd[_0x3b29fa];return _0x58295f;},_0x3b29(_0x4731c3,_0x3cad0c);}function _0xc14c(){const _0x32bed2=['items','8yxCZLb','1633217GPOysO','ck-ai-chat-history__sections','1216516PeNiSO','138WPgVpT','addMany','393NWGuVS','90027xKuKFF','302555ZsBVoR','sections','43280090oqHiUh','51764TDrHkY','8318961VPkPju','filter','extendTemplate','11dqlyzf'];_0xc14c=function(){return _0x32bed2;};return _0xc14c();}export class AIChatHistorySectionListView extends _0x53e55f{[_0x3ec6bc(0x126)];constructor(_0x2075b7,_0x4b152e){const _0x169d0f=_0x3ec6bc;super(_0x2075b7),this[_0x169d0f(0x126)]=_0x4b152e,this[_0x169d0f(0x12d)][_0x169d0f(0x122)](this[_0x169d0f(0x126)]),this[_0x169d0f(0x12b)]({'attributes':{'class':[_0x169d0f(0x130)]}});}[_0x3ec6bc(0x12a)](_0x28a461){const _0x5d538b=_0x3ec6bc;let _0x417f28=0x0,_0x155d11=0x0;for(const _0x312859 of this[_0x5d538b(0x126)]){const {resultsCount:_0x341777,totalItemsCount:_0x3022d7}=_0x312859[_0x5d538b(0x12a)](_0x28a461);_0x417f28+=_0x341777,_0x155d11+=_0x3022d7;}return{'resultsCount':_0x417f28,'totalItemsCount':_0x155d11};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x130f5f=_0x3c5c;(function(_0x3e7499,_0x25b82a){const _0x3d521a=_0x3c5c,_0x23ad8d=_0x3e7499();while(!![]){try{const _0x532169=parseInt(_0x3d521a(0x15b))/0x1+-parseInt(_0x3d521a(0x178))/0x2+parseInt(_0x3d521a(0x174))/0x3*(-parseInt(_0x3d521a(0x156))/0x4)+-parseInt(_0x3d521a(0x159))/0x5+-parseInt(_0x3d521a(0x17f))/0x6*(parseInt(_0x3d521a(0x152))/0x7)+parseInt(_0x3d521a(0x151))/0x8+parseInt(_0x3d521a(0x171))/0x9*(parseInt(_0x3d521a(0x154))/0xa);if(_0x532169===_0x25b82a)break;else _0x23ad8d['push'](_0x23ad8d['shift']());}catch(_0x15122c){_0x23ad8d['push'](_0x23ad8d['shift']());}}}(_0x832f,0xae3dd));import{View as _0x292eba,SearchTextView as _0x34a98f,FormHeaderView as _0x116150,ButtonView as _0x4a24ce}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x5cd265,IconCancel as _0x3ae46c,IconPlus as _0x1e76ff}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x427576}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x226648}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0xa79066}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3823a1}from'../aichathistoryui.js';import{AISkeletonView as _0x20045d,SKELETON_DEFINITIONS as _0x103fd3}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x5747d7}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x369c53}from'../../aicore/utils/common-translations.js';function _0x832f(){const _0x23c919=['addMany','981AicYxg','clear','aiHistory','39927JgxFeP','skeletonView','locale','fire','1688870EWYYZN','remove','title','_createListItemViews','bind','element','bindTemplate','258CXuyaH','ck-ai-chat-history','isVisible','AI_CHAT_LABEL_NEW_CHAT','ck-hidden','ltr','ck-ai-chat-error__dismiss-button','change:isLoading','delegate','resizeButton','some','isSearchViewVisible','emptyView','AI_CHAT_HISTORY_SEARCH_LABEL','sections','updateTitle','ck-ai-chat-history__empty','queryView','openChat','set','search','_refreshSearch','_createSkeletonView','push','itemsViews','ck-reset_all','updateItemTitle','fieldView','ck-ai-chat-history__content','execute','_createEmptyStateView','change:hasItems','updateItemLoadingState','ck-ai-chat-error','_createSearchView','setTemplate','_updateViewVisibility','_createErrorView','isLoading','indexOf','div','value','ck-ai-chat__start-conversation','items','hasItems','6761136asUYBP','230104PZvpwA','splice','207050gosHxp','ck-ai-header\x20ck-ai-header_history','88kFNvie','change:errorMessage','updateHistoryItemsWithCategories','5757085slWZhI','length','1313852kpempg','isEmptyViewVisible','errorView','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__empty-message','updateLoadingState','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','render','children','getItem','removeItem','errorMessage','isMaximized','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_HEADING','add','searchView','sectionsView','removeHistoryItem','ck-rounded-corners','extendTemplate'];_0x832f=function(){return _0x23c919;};return _0x832f();}function _0x3c5c(_0x37e898,_0x2d589f){const _0x832fff=_0x832f();return _0x3c5c=function(_0x3c5c0a,_0x3118f5){_0x3c5c0a=_0x3c5c0a-0x13b;let _0x5d6322=_0x832fff[_0x3c5c0a];return _0x5d6322;},_0x3c5c(_0x37e898,_0x2d589f);}export class AIChatHistoryView extends _0x292eba{[_0x130f5f(0x16b)];[_0x130f5f(0x15d)];[_0x130f5f(0x175)];[_0x130f5f(0x18b)];[_0x130f5f(0x16c)];[_0x130f5f(0x188)];constructor(_0x58b235,_0xfa269a){const _0x58a158=_0x130f5f;super(_0x58b235),this[_0x58a158(0x192)](_0x58a158(0x150),!0x1),this[_0x58a158(0x192)](_0x58a158(0x14a),!0x0),this[_0x58a158(0x192)](_0x58a158(0x166),''),this[_0x58a158(0x192)](_0x58a158(0x167),!0x1),this[_0x58a158(0x192)](_0x58a158(0x18a),!0x1),this[_0x58a158(0x192)](_0x58a158(0x15c),!0x1);const _0x3e0bbf=new _0x116150(_0x58b235,{'label':_0x369c53(_0x58b235,_0x58a158(0x169)),'icon':_0x5cd265,'class':_0x58a158(0x155)});_0xfa269a&&(this[_0x58a158(0x188)]=_0x5747d7(_0x58b235,this),_0x3e0bbf[_0x58a158(0x163)][_0x58a158(0x16a)](this[_0x58a158(0x188)])),this[_0x58a158(0x16c)]=new _0x427576(_0x58b235,[]),this[_0x58a158(0x16c)][_0x58a158(0x187)](..._0x3823a1)['to'](this),this[_0x58a158(0x15d)]=this[_0x58a158(0x149)](),this[_0x58a158(0x175)]=this[_0x58a158(0x195)](),this[_0x58a158(0x18b)]=this[_0x58a158(0x142)](),this[_0x58a158(0x16b)]=this[_0x58a158(0x146)](),this['on'](_0x58a158(0x186),()=>this[_0x58a158(0x148)]()),this['on'](_0x58a158(0x143),()=>this[_0x58a158(0x148)]()),this['on'](_0x58a158(0x157),()=>this[_0x58a158(0x148)]()),this[_0x58a158(0x147)]({'tag':_0x58a158(0x14c),'attributes':{'class':['ck',_0x58a158(0x13d),_0x58a158(0x180),_0x58a158(0x16e)],'dir':_0x58a158(0x184)},'children':[_0x3e0bbf,{'tag':_0x58a158(0x14c),'attributes':{'class':[_0x58a158(0x140)]},'children':[this[_0x58a158(0x175)],this[_0x58a158(0x15d)],this[_0x58a158(0x18b)],this[_0x58a158(0x16b)]]}]});}[_0x130f5f(0x148)](){const _0x1930e3=_0x130f5f;this[_0x1930e3(0x18a)]=!this[_0x1930e3(0x14a)]&&this[_0x1930e3(0x150)]&&!this[_0x1930e3(0x166)],this[_0x1930e3(0x15c)]=!this[_0x1930e3(0x14a)]&&!this[_0x1930e3(0x150)]&&!this[_0x1930e3(0x166)];}[_0x130f5f(0x146)](){const _0x26c6e0=_0x130f5f,_0x4db855=new _0x34a98f(this[_0x26c6e0(0x176)],{'filteredView':this[_0x26c6e0(0x16c)],'queryView':{'label':_0x369c53(this[_0x26c6e0(0x176)],_0x26c6e0(0x18c))},'infoView':{'text':{'notFound':{'primary':_0x3ee061=>_0x369c53(this[_0x26c6e0(0x176)],_0x26c6e0(0x161),_0x3ee061),'secondary':_0x369c53(this[_0x26c6e0(0x176)],_0x26c6e0(0x168))}}}});return _0x4db855['on'](_0x26c6e0(0x162),()=>{const _0x2e295b=_0x26c6e0;this[_0x2e295b(0x16b)][_0x2e295b(0x163)][_0x2e295b(0x16a)](this[_0x2e295b(0x15d)],0x1);}),_0x4db855[_0x26c6e0(0x16f)]({'attributes':{'class':[this[_0x26c6e0(0x17e)]['if'](_0x26c6e0(0x18a),_0x26c6e0(0x183),_0x551b87=>!_0x551b87)]}}),_0x4db855;}[_0x130f5f(0x195)](){const _0x3c82da=_0x130f5f,_0xfb9bad=new _0x20045d(this[_0x3c82da(0x176)],_0x103fd3[_0x3c82da(0x173)]);return _0xfb9bad[_0x3c82da(0x16f)]({'attributes':{'class':[this[_0x3c82da(0x17e)]['if'](_0x3c82da(0x14a),_0x3c82da(0x183),_0x7cd568=>!_0x7cd568)]}}),_0xfb9bad;}[_0x130f5f(0x149)](){const _0x57a3f6=_0x130f5f,_0xabf114=new _0x292eba(this[_0x57a3f6(0x176)]),_0x164b30=new _0x4a24ce(this[_0x57a3f6(0x176)]);return _0x164b30[_0x57a3f6(0x192)]({'withText':!0x1,'icon':_0x3ae46c,'class':_0x57a3f6(0x185)}),_0x164b30[_0x57a3f6(0x17c)](_0x57a3f6(0x181))['to'](this,_0x57a3f6(0x150),_0x3d9385=>!!_0x3d9385),_0x164b30['on'](_0x57a3f6(0x141),()=>{const _0x2138fd=_0x57a3f6;this[_0x2138fd(0x166)]='';}),_0xabf114[_0x57a3f6(0x147)]({'tag':_0x57a3f6(0x14c),'attributes':{'class':['ck',_0x57a3f6(0x145),this[_0x57a3f6(0x17e)]['if'](_0x57a3f6(0x166),_0x57a3f6(0x183),_0x2ec8ed=>!_0x2ec8ed)]},'children':[{'tag':'p','children':[{'text':this[_0x57a3f6(0x17e)]['to'](_0x57a3f6(0x166))}]},_0x164b30]}),_0xabf114;}[_0x130f5f(0x142)](){const _0x5885d3=_0x130f5f,_0x35461c=new _0x4a24ce(this[_0x5885d3(0x176)]);_0x35461c[_0x5885d3(0x192)]({'label':_0x369c53(this[_0x5885d3(0x176)],_0x5885d3(0x182)),'withText':!0x0,'icon':_0x1e76ff,'class':_0x5885d3(0x14e)}),_0x35461c['on'](_0x5885d3(0x141),()=>{const _0x523f7a=_0x5885d3;this[_0x523f7a(0x177)](_0x523f7a(0x191));});const _0x20ed6a=new _0x292eba(this[_0x5885d3(0x176)]);return _0x20ed6a[_0x5885d3(0x147)]({'tag':_0x5885d3(0x14c),'attributes':{'class':[_0x5885d3(0x18f),this[_0x5885d3(0x17e)]['if'](_0x5885d3(0x15c),_0x5885d3(0x183),_0x3387f1=>!_0x3387f1)]},'children':[{'tag':'p','attributes':{'class':[_0x5885d3(0x15f)]},'children':[_0x369c53(this[_0x5885d3(0x176)],_0x5885d3(0x15e))]},_0x35461c]}),_0x20ed6a;}[_0x130f5f(0x17b)](_0x91b57,_0x1316f7){const _0x4e3505=_0x130f5f,_0x596e14=[];for(const _0x41d098 of _0x91b57){const _0x3688de=new _0xa79066(_0x1316f7,_0x41d098);_0x3688de[_0x4e3505(0x187)](..._0x3823a1)['to'](this),_0x596e14[_0x4e3505(0x13b)](_0x3688de);}return _0x596e14;}[_0x130f5f(0x158)](_0x426600){const _0x3f7995=_0x130f5f,_0x4fa7c9=this[_0x3f7995(0x176)]||'en',_0x3dc6ef=[];for(const _0x4419ae of _0x426600){const _0x83f607=this[_0x3f7995(0x17b)](_0x4419ae[_0x3f7995(0x14f)],_0x4fa7c9);_0x3dc6ef[_0x3f7995(0x13b)](new _0x226648(_0x4fa7c9,{'title':_0x4419ae[_0x3f7995(0x17a)],'items':_0x83f607}));}this[_0x3f7995(0x16c)][_0x3f7995(0x18d)]=_0x3dc6ef,this[_0x3f7995(0x16c)][_0x3f7995(0x14f)][_0x3f7995(0x172)](),this[_0x3f7995(0x16c)][_0x3f7995(0x14f)][_0x3f7995(0x170)](_0x3dc6ef),this[_0x3f7995(0x150)]=_0x426600[_0x3f7995(0x189)](_0x157190=>_0x157190[_0x3f7995(0x14f)][_0x3f7995(0x15a)]>0x0),this[_0x3f7995(0x194)]();}[_0x130f5f(0x16d)](_0x3bde8c){const _0x4acdf9=_0x130f5f;for(const _0x375211 of this[_0x4acdf9(0x16c)][_0x4acdf9(0x18d)]){const _0x49a860=_0x375211[_0x4acdf9(0x164)](_0x3bde8c);if(_0x49a860){if(_0x375211[_0x4acdf9(0x165)](_0x49a860),0x0===_0x375211[_0x4acdf9(0x13c)][_0x4acdf9(0x15a)]){const _0x4ca112=this[_0x4acdf9(0x16c)][_0x4acdf9(0x18d)][_0x4acdf9(0x14b)](_0x375211);-0x1!==_0x4ca112&&(this[_0x4acdf9(0x16c)][_0x4acdf9(0x18d)][_0x4acdf9(0x153)](_0x4ca112,0x1),this[_0x4acdf9(0x16c)][_0x4acdf9(0x14f)][_0x4acdf9(0x179)](_0x375211));}this[_0x4acdf9(0x150)]=this[_0x4acdf9(0x16c)][_0x4acdf9(0x18d)][_0x4acdf9(0x15a)]>0x0,this[_0x4acdf9(0x194)]();break;}}}[_0x130f5f(0x13e)](_0x4a9c57,_0x159d8b){const _0x3b0371=_0x130f5f;for(const _0x58479c of this[_0x3b0371(0x16c)][_0x3b0371(0x18d)]){const _0x2c8e21=_0x58479c[_0x3b0371(0x164)](_0x4a9c57);if(_0x2c8e21){_0x2c8e21[_0x3b0371(0x18e)](_0x159d8b);break;}}}[_0x130f5f(0x144)](_0xcd3843,_0x45af46,_0xc74a3d){const _0x14c1f7=_0x130f5f;for(const _0x14d6a0 of this[_0x14c1f7(0x16c)][_0x14c1f7(0x18d)]){const _0x8715d8=_0x14d6a0[_0x14c1f7(0x164)](_0xcd3843);if(_0x8715d8){_0x8715d8[_0x14c1f7(0x160)](_0x45af46,_0xc74a3d);break;}}}[_0x130f5f(0x194)](){const _0x31867a=_0x130f5f;if(this[_0x31867a(0x150)]){const _0x14fd82=this[_0x31867a(0x16b)][_0x31867a(0x190)][_0x31867a(0x13f)]?.[_0x31867a(0x17d)]?.[_0x31867a(0x14d)]||'';this[_0x31867a(0x16b)][_0x31867a(0x193)](_0x14fd82);}}}
|
|
@@ -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 _0x5e6912=_0xd176;(function(_0x4fb488,_0x35f540){const _0x5340aa=_0xd176,_0x76ca18=_0x4fb488();while(!![]){try{const _0x5cff3f=parseInt(_0x5340aa(0x223))/0x1*(-parseInt(_0x5340aa(0x243))/0x2)+parseInt(_0x5340aa(0x224))/0x3+parseInt(_0x5340aa(0x230))/0x4*(parseInt(_0x5340aa(0x234))/0x5)+-parseInt(_0x5340aa(0x1d8))/0x6*(-parseInt(_0x5340aa(0x22b))/0x7)+-parseInt(_0x5340aa(0x1fd))/0x8*(-parseInt(_0x5340aa(0x1dd))/0x9)+parseInt(_0x5340aa(0x1f2))/0xa*(parseInt(_0x5340aa(0x1f8))/0xb)+parseInt(_0x5340aa(0x1e4))/0xc*(-parseInt(_0x5340aa(0x1cc))/0xd);if(_0x5cff3f===_0x35f540)break;else _0x76ca18['push'](_0x76ca18['shift']());}catch(_0x15eec5){_0x76ca18['push'](_0x76ca18['shift']());}}}(_0x1e62,0x60d74));import{createParser as _0x29f899}from'eventsource-parser';import{ContextPlugin as _0x1f9265}from'ckeditor5/src/core.js';import{CKEditorError as _0xf2a25a}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x491e20){const _0xac07cd=_0xd176;_0x491e20[_0xac07cd(0x1f1)]=_0xac07cd(0x1f4),_0x491e20[_0xac07cd(0x240)]=_0xac07cd(0x233),_0x491e20[_0xac07cd(0x23b)]=_0xac07cd(0x23c),_0x491e20[_0xac07cd(0x205)]=_0xac07cd(0x200),_0x491e20[_0xac07cd(0x1f5)]=_0xac07cd(0x201),_0x491e20[_0xac07cd(0x232)]=_0xac07cd(0x1d3),_0x491e20[_0xac07cd(0x207)]=_0xac07cd(0x249),_0x491e20[_0xac07cd(0x239)]=_0xac07cd(0x1fb);}(AIActionsNames||(AIActionsNames={}));function _0xd176(_0x124f70,_0x1c7560){const _0x1e6208=_0x1e62();return _0xd176=function(_0xd17675,_0x3ad41b){_0xd17675=_0xd17675-0x1ca;let _0x2b872e=_0x1e6208[_0xd17675];return _0x2b872e;},_0xd176(_0x124f70,_0x1c7560);}export class AIConnector extends _0x1f9265{[_0x5e6912(0x21a)];[_0x5e6912(0x1e3)];[_0x5e6912(0x220)];static get[_0x5e6912(0x1d0)](){const _0x470adc=_0x5e6912;return[_0x470adc(0x23f)];}static get[_0x5e6912(0x1f9)](){const _0x3dc22c=_0x5e6912;return _0x3dc22c(0x242);}static get[_0x5e6912(0x210)](){return!0x0;}static get[_0x5e6912(0x22d)](){return!0x0;}constructor(_0x4fe247){const _0x47a1b0=_0x5e6912;super(_0x4fe247),this[_0x47a1b0(0x1e7)][_0x47a1b0(0x1ec)][_0x47a1b0(0x1f0)](_0x47a1b0(0x1dc),_0x47a1b0(0x1f3)),this[_0x47a1b0(0x21a)]=this[_0x47a1b0(0x1e7)][_0x47a1b0(0x1ec)][_0x47a1b0(0x219)](_0x47a1b0(0x1dc)),this[_0x47a1b0(0x1e3)]=null,this[_0x47a1b0(0x220)]=new TextDecoder();}[_0x5e6912(0x206)](){const _0x3e1b87=_0x5e6912,_0x5876e0=this[_0x3e1b87(0x1e7)][_0x3e1b87(0x250)][_0x3e1b87(0x219)](_0x3e1b87(0x23f));if(!_0x5876e0[_0x3e1b87(0x22f)])throw new _0xf2a25a(_0x3e1b87(0x221),this);this[_0x3e1b87(0x1e3)]=_0x5876e0[_0x3e1b87(0x22f)];}[_0x5e6912(0x24a)](_0x30884c,_0x5cc0c7){const _0x2fb453=_0x5e6912,_0x3a479e=this[_0x2fb453(0x244)](_0x2fb453(0x23d),_0x2fb453(0x246),{'id':_0x30884c,'group':_0x5cc0c7});return{'getConversation':async()=>(await _0x3a479e[_0x2fb453(0x256)])[_0x2fb453(0x235)](),'abortController':_0x3a479e[_0x2fb453(0x20b)]};}[_0x5e6912(0x218)]({message:_0x121548,conversationId:_0x2c8913,parts:_0x23085e,capabilities:_0xcdb4d7,model:_0x332369,quickActionData:_0x2491ce}){const _0xf6d857=_0x5e6912,_0xa42658={..._0x2491ce&&{'quickActionData':_0x2491ce}},_0x5071d7={'prompt':_0x121548,'content':_0x23085e,'model':_0x332369,..._0xcdb4d7&&{'capabilities':_0xcdb4d7},...Object[_0xf6d857(0x231)](_0xa42658)[_0xf6d857(0x1db)]>0x0&&{'attributes':_0xa42658}},_0x233bfe=this[_0xf6d857(0x244)](_0xf6d857(0x216)+_0x2c8913+_0xf6d857(0x21f),_0xf6d857(0x246),_0x5071d7);return{'getStream':async()=>{const _0x42e4c8=_0xf6d857,_0x5e8619=(await _0x233bfe[_0x42e4c8(0x256)])[_0x42e4c8(0x1fe)];return this[_0x42e4c8(0x257)](_0x5e8619);},'abortController':_0x233bfe[_0xf6d857(0x20b)]};}[_0x5e6912(0x1d2)]({content:_0x55bcd6,message:_0x2575d3,model:_0x46a1d2,outputFormat:_0x3333fa}){const _0x289bda=_0x5e6912,_0x6d4946={'content':[{'type':_0x289bda(0x1e5),'content':_0x55bcd6}],'prompt':_0x2575d3,'model':_0x46a1d2,'outputFormat':_0x3333fa},_0x451fe1=this[_0x289bda(0x244)](_0x289bda(0x1fa),_0x289bda(0x246),_0x6d4946);return{'getStream':async()=>{const _0x1afdfe=_0x289bda,_0x958200=(await _0x451fe1[_0x1afdfe(0x256)])[_0x1afdfe(0x1fe)];return this[_0x1afdfe(0x257)](_0x958200);},'abortController':_0x451fe1[_0x289bda(0x20b)]};}[_0x5e6912(0x21b)]({actionName:_0x899610,content:_0x1fb242,args:_0x3526a8}){const _0x544b5a=_0x5e6912,_0x13d93d={'content':[{'type':_0x544b5a(0x1e5),'content':_0x1fb242}],'args':_0x3526a8},_0x2dc75c=this[_0x544b5a(0x244)](_0x544b5a(0x254)+_0x899610+_0x544b5a(0x217),_0x544b5a(0x246),_0x13d93d);return{'getStream':async()=>{const _0x5cc3ef=_0x544b5a,_0x54b17c=(await _0x2dc75c[_0x5cc3ef(0x256)])[_0x5cc3ef(0x1fe)];return this[_0x5cc3ef(0x257)](_0x54b17c);},'abortController':_0x2dc75c[_0x544b5a(0x20b)]};}[_0x5e6912(0x1f6)](_0x3a54d3,_0x2da23c,_0x5f5c6e){const _0x4eb209=_0x5e6912,_0x327b7d=new FormData();_0x327b7d[_0x4eb209(0x228)](_0x4eb209(0x1e9),_0x2da23c,_0x2da23c[_0x4eb209(0x1d6)]),_0x5f5c6e&&_0x327b7d[_0x4eb209(0x228)](_0x4eb209(0x213),JSON[_0x4eb209(0x1e0)](_0x5f5c6e));const _0x5f316d=this[_0x4eb209(0x244)](_0x4eb209(0x216)+_0x3a54d3+_0x4eb209(0x1ca),_0x4eb209(0x246),_0x327b7d);return{'getId':async()=>(await _0x5f316d[_0x4eb209(0x256)])[_0x4eb209(0x235)](),'abortController':_0x5f316d[_0x4eb209(0x20b)]};}[_0x5e6912(0x1f7)](_0x2ba2d1,_0x5dd8cf){const _0xfc9c1c=_0x5e6912,_0x17530c=this[_0xfc9c1c(0x244)](_0xfc9c1c(0x216)+_0x2ba2d1+_0xfc9c1c(0x1fc)+_0x5dd8cf,_0xfc9c1c(0x20e));return{'getDocument':async()=>(await _0x17530c[_0xfc9c1c(0x256)])[_0xfc9c1c(0x235)](),'abortController':_0x17530c[_0xfc9c1c(0x20b)]};}[_0x5e6912(0x24d)](_0x57a2d0,_0x4a3e09,_0x2ca6c9){const _0x1865a0=_0x5e6912,_0x25d94d={'content':_0x4a3e09};_0x2ca6c9&&(_0x25d94d[_0x1865a0(0x213)]=_0x2ca6c9);const _0x1b7654=this[_0x1865a0(0x244)](_0x1865a0(0x216)+_0x57a2d0+_0x1865a0(0x245),_0x1865a0(0x246),_0x25d94d);return{'getId':async()=>(await _0x1b7654[_0x1865a0(0x256)])[_0x1865a0(0x235)](),'abortController':_0x1b7654[_0x1865a0(0x20b)]};}[_0x5e6912(0x212)](_0x33eef1,_0x5a6dbd){const _0x497bb9=_0x5e6912,_0x4c1d0f=new URLSearchParams();_0x4c1d0f[_0x497bb9(0x228)](_0x497bb9(0x1e2),_0x497bb9(0x1e6)),_0x4c1d0f[_0x497bb9(0x228)](_0x497bb9(0x251),_0x497bb9(0x222)),_0x4c1d0f[_0x497bb9(0x228)](_0x497bb9(0x23a),_0x33eef1),_0x5a6dbd&&_0x4c1d0f[_0x497bb9(0x228)](_0x497bb9(0x1d7),_0x5a6dbd);const _0x15cc31=this[_0x497bb9(0x244)](_0x497bb9(0x1e8)+_0x4c1d0f[_0x497bb9(0x24b)](),_0x497bb9(0x20e));return{'getConversations':async()=>{const _0x21841a=_0x497bb9,_0x4e6905=await _0x15cc31[_0x21841a(0x256)];return(await _0x4e6905[_0x21841a(0x235)]())[_0x21841a(0x214)];},'abortController':_0x15cc31[_0x497bb9(0x20b)]};}[_0x5e6912(0x20f)](_0x38f68c){const _0x3b556a=_0x5e6912,_0x165831=this[_0x3b556a(0x244)](_0x3b556a(0x216)+_0x38f68c,_0x3b556a(0x21d));return{'execute':async()=>{const _0x42deea=_0x3b556a;await _0x165831[_0x42deea(0x256)];},'abortController':_0x165831[_0x3b556a(0x20b)]};}[_0x5e6912(0x1d9)](_0x55f740,_0x2430f0){const _0x25a3a0=_0x5e6912,_0x5b3900=this[_0x25a3a0(0x244)](_0x25a3a0(0x216)+_0x55f740,_0x25a3a0(0x255),_0x2430f0);return{'getResult':async()=>(await _0x5b3900[_0x25a3a0(0x256)],_0x2430f0),'abortController':_0x5b3900[_0x25a3a0(0x20b)]};}[_0x5e6912(0x22c)](_0x19abcd){const _0x2e01ab=_0x5e6912,_0x36a9d0=this[_0x2e01ab(0x244)](_0x2e01ab(0x216)+_0x19abcd,_0x2e01ab(0x20e));return{'getConversation':async()=>(await _0x36a9d0[_0x2e01ab(0x256)])[_0x2e01ab(0x235)](),'abortController':_0x36a9d0[_0x2e01ab(0x20b)]};}[_0x5e6912(0x248)](_0x331a74){const _0x7f39c=_0x5e6912,_0x279fae=this[_0x7f39c(0x244)](_0x7f39c(0x216)+_0x331a74+_0x7f39c(0x21f),_0x7f39c(0x20e));return{'getMessages':async()=>{const _0x46a23d=_0x7f39c,_0x51421b=await _0x279fae[_0x46a23d(0x256)];return(await _0x51421b[_0x46a23d(0x235)]())[_0x46a23d(0x214)];},'abortController':_0x279fae[_0x7f39c(0x20b)]};}[_0x5e6912(0x1d4)](_0x2001e4,_0x3a7f81,_0xae79db){const _0x77b234=_0x5e6912,_0x17bfc7=this[_0x77b234(0x244)](_0x77b234(0x216)+_0x2001e4+_0x77b234(0x1d1),_0x77b234(0x246),{'url':_0x3a7f81,'attributes':_0xae79db});return{'getId':async()=>(await _0x17bfc7[_0x77b234(0x256)])[_0x77b234(0x235)](),'abortController':_0x17bfc7[_0x77b234(0x20b)]};}[_0x5e6912(0x24f)](){const _0x48a072=_0x5e6912,_0x3e8dda=this[_0x48a072(0x244)](_0x48a072(0x237),_0x48a072(0x20e));return{'list':async()=>await(await _0x3e8dda[_0x48a072(0x256)])[_0x48a072(0x235)](),'abortController':_0x3e8dda[_0x48a072(0x20b)]};}[_0x5e6912(0x1ee)](_0x502bf9,_0xb26a2){const _0x2a18e3=_0x5e6912,_0x2973ce=this[_0x2a18e3(0x244)](_0x2a18e3(0x216)+_0x502bf9+_0x2a18e3(0x24e)+_0xb26a2,_0x2a18e3(0x21d));return{'execute':async()=>{const _0xf0c4ff=_0x2a18e3;await _0x2973ce[_0xf0c4ff(0x256)];},'abortController':_0x2973ce[_0x2a18e3(0x20b)]};}[_0x5e6912(0x1cf)](_0x9196f3,_0x3c2ce0){const _0x2588d1=_0x5e6912,_0x2f3ca7=this[_0x2588d1(0x244)](_0x2588d1(0x216)+_0x9196f3+_0x2588d1(0x1fc)+_0x3c2ce0,_0x2588d1(0x21d));return{'execute':async()=>{const _0x207f02=_0x2588d1;await _0x2f3ca7[_0x207f02(0x256)];},'abortController':_0x2f3ca7[_0x2588d1(0x20b)]};}[_0x5e6912(0x204)](_0x2ab053,_0x10ec9e){const _0x534507=_0x5e6912,_0x37bb75=this[_0x534507(0x244)](_0x534507(0x216)+_0x2ab053+_0x534507(0x1ed)+_0x10ec9e,_0x534507(0x21d));return{'execute':async()=>{const _0x2fd228=_0x534507;await _0x37bb75[_0x2fd228(0x256)];},'abortController':_0x37bb75[_0x534507(0x20b)]};}[_0x5e6912(0x241)]({reviewName:_0x296e2a,content:_0xbee6ab,args:_0x1aaeb8}){const _0x4ce251=_0x5e6912,_0x368680=this[_0x4ce251(0x244)](_0x4ce251(0x22e)+_0x296e2a+_0x4ce251(0x217),_0x4ce251(0x246),{'content':[{'type':_0x4ce251(0x1e5),'content':_0xbee6ab}],'args':_0x1aaeb8});return{'getStream':async()=>{const _0x212333=_0x4ce251,_0x370e3b=(await _0x368680[_0x212333(0x256)])[_0x212333(0x1fe)];return this[_0x212333(0x257)](_0x370e3b);},'abortController':_0x368680[_0x4ce251(0x20b)]};}[_0x5e6912(0x1ff)]({content:_0x26290a,prompt:_0x33c513,model:_0x67a911}){const _0x1664e5=_0x5e6912,_0xd9bb91=this[_0x1664e5(0x244)](_0x1664e5(0x229),_0x1664e5(0x246),{'content':[{'type':_0x1664e5(0x1e5),'content':_0x26290a}],'prompt':_0x33c513,'model':_0x67a911});return{'getStream':async()=>{const _0x585b3b=_0x1664e5,_0x2fdf1a=(await _0xd9bb91[_0x585b3b(0x256)])[_0x585b3b(0x1fe)];return this[_0x585b3b(0x257)](_0x2fdf1a);},'abortController':_0xd9bb91[_0x1664e5(0x20b)]};}[_0x5e6912(0x24c)](_0x2db766,_0x22f540,_0x21651d){const _0x11dd18=_0x5e6912,_0x1d16d2=this[_0x11dd18(0x244)](_0x11dd18(0x216)+_0x2db766+_0x11dd18(0x236)+_0x22f540+_0x11dd18(0x1eb),_0x11dd18(0x20d),{'positiveCount':_0x21651d[_0x11dd18(0x208)],'totalCount':_0x21651d[_0x11dd18(0x1e1)],'modificationId':_0x21651d[_0x11dd18(0x252)]});return{'execute':async()=>{const _0x10ac00=_0x11dd18;await _0x1d16d2[_0x10ac00(0x256)];},'abortController':_0x1d16d2[_0x11dd18(0x20b)]};}[_0x5e6912(0x1cb)](_0x340bbb,_0xca2ecd,_0x5018c4){const _0x4317c3=_0x5e6912,_0x3cef63=this[_0x4317c3(0x244)](_0x4317c3(0x254)+_0x340bbb+_0x4317c3(0x215)+_0xca2ecd+_0x4317c3(0x1eb),_0x4317c3(0x20d),{'positiveCount':_0x5018c4[_0x4317c3(0x208)],'totalCount':_0x5018c4[_0x4317c3(0x1e1)]});return{'execute':async()=>{const _0x472bfe=_0x4317c3;await _0x3cef63[_0x472bfe(0x256)];},'abortController':_0x3cef63[_0x4317c3(0x20b)]};}[_0x5e6912(0x22a)](_0x5e4d31,_0x2dbd7b){const _0x2dff81=_0x5e6912,_0x294db6=this[_0x2dff81(0x244)](_0x2dff81(0x23e)+_0x5e4d31+_0x2dff81(0x1eb),_0x2dff81(0x20d),{'positiveCount':_0x2dbd7b[_0x2dff81(0x208)],'totalCount':_0x2dbd7b[_0x2dff81(0x1e1)]});return{'execute':async()=>{const _0x246db4=_0x2dff81;await _0x294db6[_0x246db4(0x256)];},'abortController':_0x294db6[_0x2dff81(0x20b)]};}[_0x5e6912(0x25a)](_0x2d2c88,_0xf9f7c6,_0x3631d0,_0x4e51c6){const _0x14868d=_0x5e6912,_0x258a49=this[_0x14868d(0x244)](_0x14868d(0x22e)+_0x2d2c88+_0x14868d(0x215)+_0xf9f7c6+_0x14868d(0x1eb),_0x14868d(0x20d),{'positiveCount':_0x3631d0[_0x14868d(0x208)],'totalCount':_0x3631d0[_0x14868d(0x1e1)],'dataId':_0x4e51c6});return{'execute':async()=>{const _0x5e70c3=_0x14868d;await _0x258a49[_0x5e70c3(0x256)];},'abortController':_0x258a49[_0x14868d(0x20b)]};}[_0x5e6912(0x226)](_0x276877,_0x474922,_0x24bf1a){const _0x3caacf=_0x5e6912,_0x4e9def=this[_0x3caacf(0x244)](_0x3caacf(0x247)+_0x276877+_0x3caacf(0x1eb),_0x3caacf(0x20d),{'positiveCount':_0x474922[_0x3caacf(0x208)],'totalCount':_0x474922[_0x3caacf(0x1e1)],'dataId':_0x24bf1a});return{'execute':async()=>{const _0x2b2f33=_0x3caacf;await _0x4e9def[_0x2b2f33(0x256)];},'abortController':_0x4e9def[_0x3caacf(0x20b)]};}[_0x5e6912(0x244)](_0x51487e,_0x3b1cbb,_0x30896c){const _0x396fd9=_0x5e6912,_0x54cc57=new AbortController(),_0x4793f6=_0x30896c instanceof FormData,_0x2f13db={'Authorization':_0x396fd9(0x253)+this[_0x396fd9(0x1e3)]?.[_0x396fd9(0x202)]};_0x30896c&&!_0x4793f6&&(_0x2f13db[_0x396fd9(0x1df)]=_0x396fd9(0x1ce));const _0x5bd07d={'method':_0x3b1cbb,'headers':_0x2f13db,'signal':_0x54cc57[_0x396fd9(0x1da)]};return _0x30896c&&(_0x5bd07d[_0x396fd9(0x1fe)]=_0x4793f6?_0x30896c:JSON[_0x396fd9(0x1e0)](_0x30896c)),{'request':fetch(''+this[_0x396fd9(0x21a)]+_0x51487e,_0x5bd07d)[_0x396fd9(0x1de)](_0x1d6dcc=>{const _0xc661d9=_0x396fd9;this[_0xc661d9(0x259)](_0x1d6dcc);})[_0x396fd9(0x258)](_0xbbe63e=>{const _0x3e588b=_0x396fd9;if(!_0xbbe63e['ok'])throw new _0xf2a25a(_0x3e588b(0x211),this,{'url':this[_0x3e588b(0x21a)],'path':_0x51487e,'method':_0x3b1cbb,'body':_0x30896c,'status':(_0xbbe63e||{})[_0x3e588b(0x21e)],'statusText':(_0xbbe63e||{})[_0x3e588b(0x1d5)]});return _0xbbe63e;}),'abortController':_0x54cc57};}async*[_0x5e6912(0x257)](_0x4debf7){const _0x5c360e=_0x5e6912,_0x1644a4=[],_0x4c0366=_0x4debf7[_0x5c360e(0x238)](),_0x5c91a6=_0x29f899({'onError':_0x306c66=>{const _0x56ca0f=_0x5c360e;this[_0x56ca0f(0x259)](_0x306c66);},'onEvent':_0x1826dd=>{const _0x32fd0b=_0x5c360e;_0x1826dd[_0x32fd0b(0x227)]=JSON[_0x32fd0b(0x20c)](_0x1826dd[_0x32fd0b(0x227)]),_0x1644a4[_0x32fd0b(0x225)](_0x1826dd);}});try{let _0x248327=!0x1;for(;!_0x248327;){const {done:_0x428073,value:_0x2a25e0}=await _0x4c0366[_0x5c360e(0x209)]();_0x428073&&(_0x248327=!0x0),_0x5c91a6[_0x5c360e(0x21c)](this[_0x5c360e(0x220)][_0x5c360e(0x203)](_0x2a25e0,{'stream':!0x0})),yield*_0x1644a4,_0x1644a4[_0x5c360e(0x1db)]=0x0;}}catch(_0x25eea7){this[_0x5c360e(0x259)](_0x25eea7);}finally{_0x4c0366[_0x5c360e(0x1cd)](),_0x5c91a6[_0x5c360e(0x20a)]();}}[_0x5e6912(0x259)](_0x185e7b){const _0x535c1f=_0x5e6912;if(_0x185e7b instanceof _0xf2a25a)throw _0x185e7b;if(_0x185e7b instanceof Error&&_0x535c1f(0x1ea)===_0x185e7b[_0x535c1f(0x1d6)])throw new _0xf2a25a(_0x535c1f(0x1ef),this,{'originalError':_0x185e7b});throw new _0xf2a25a(_0x535c1f(0x211),this,{'originalError':_0x185e7b});}}function _0x1e62(){const _0x1ed3c4=['Bearer\x20','/actions/system/','PATCH','request','_getStreamReader','then','_handleError','upsertAIReviewRating','/files','upsertAIActionRating','5768581xstjmt','releaseLock','application/json','deleteDocument','requires','/web-resources','executeCustomAction','make-tone-casual','uploadUrl','statusText','name','search','5100DryOsJ','updateConversation','signal','length','ai.serviceUrl','1234017cRofKK','catch','Content-Type','stringify','totalCount','excludeEmpty','_token','24VyoFNe','text','true','context','/conversations?','file','AbortError','/ratings','config','/web-resources/','deleteFile','ai-request-aborted','define','CONTINUE','20tcYVMl','https://ai.cke-cs.com/v1','continue','MAKE_SHORTER','uploadFile','fetchDocument','3512476AjBfOj','pluginName','/actions/custom/calls','translate','/documents/','32bpPGAX','body','callCustomReview','make-longer','make-shorter','value','decode','deleteWebResource','MAKE_LONGER','init','MAKE_TONE_FORMAL','positiveCount','read','reset','abortController','parse','PUT','GET','deleteConversation','isOfficialPlugin','ai-request-failed','fetchConversations','attributes','items','/calls/','/conversations/','/calls','queryAssistant','get','_apiUrl','executeAction','feed','DELETE','status','/messages','_decoder','ai-missing-token','100','4251TSGbZX','1201452uAYwYl','push','upsertCustomAIReviewRating','data','append','/reviews/custom/calls','upsertCustomAIActionRating','1708bwsiUT','fetchConversation','isPremiumPlugin','/reviews/system/','token','422244sIMrCr','keys','MAKE_TONE_CASUAL','fix-grammar','5BIzFhO','json','/messages/','/models/1','getReader','TRANSLATE','group','IMPROVE_WRITING','improve-writing','/conversations','/actions/custom/calls/','CloudServices','FIX_GRAMMAR','callSystemReview','AIConnector','290jlklpX','_sendApiRequest','/documents','POST','/reviews/custom/calls/','fetchConversationMessages','make-tone-formal','startConversation','toString','upsertAIChatRating','uploadDocument','/files/','getModels','plugins','limit','modificationId'];_0x1e62=function(){return _0x1ed3c4;};return _0x1e62();}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xf663(_0x258dda,_0x48ab4c){const _0x47aa03=_0x47aa();return _0xf663=function(_0xf66325,_0x1d4039){_0xf66325=_0xf66325-0x12e;let _0x13cad7=_0x47aa03[_0xf66325];return _0x13cad7;},_0xf663(_0x258dda,_0x48ab4c);}const _0x3f1f5a=_0xf663;(function(_0x4d11c5,_0x19fc13){const _0xcb923f=_0xf663,_0x5091cc=_0x4d11c5();while(!![]){try{const _0x2504ae=-parseInt(_0xcb923f(0x195))/0x1+parseInt(_0xcb923f(0x15b))/0x2+-parseInt(_0xcb923f(0x151))/0x3+-parseInt(_0xcb923f(0x163))/0x4*(-parseInt(_0xcb923f(0x15d))/0x5)+-parseInt(_0xcb923f(0x189))/0x6+parseInt(_0xcb923f(0x179))/0x7*(-parseInt(_0xcb923f(0x14b))/0x8)+parseInt(_0xcb923f(0x146))/0x9;if(_0x2504ae===_0x19fc13)break;else _0x5091cc['push'](_0x5091cc['shift']());}catch(_0x3750b9){_0x5091cc['push'](_0x5091cc['shift']());}}}(_0x47aa,0x64dc6));import{ViewDowncastWriter as _0x2c4917}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x592ad3,Editor as _0x22f9fa}from'ckeditor5/src/core.js';import{uid as _0x16f5c5}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x23be6d}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x3f1f5a(0x188);function _0x47aa(){const _0x5c5833=['1410138VcHnPr','addMarker','document','getSelection','hideFakeVisualSelection','schema','start','_displayedFakeSelectionLocked','emptyElement','isContent','24246MqNLJC','convertAiChatSelectionMarker','2812290WcXkxt','data','showFakeVisualSelection','markerName','createRangeIn','getWalker','4DjDdnE','createRange','toData','getDocumentData','has','add','listenTo','afterInit','version','ready','processor','editors','_integrateEditor','trim','length','editing','getRoot','indexOf','isOpening','_setDataIdsOnChildren','removeMarker','change','1918EnBIMP','isAtEnd','get','isPremiumPlugin','name','dataDowncast','for','markerToElement','random','RealTimeCollaborationClient','end',':end>','ck-fake-ai-selection','selection','getSelectedContent','ai-selection','1708320UmuWda','fromCharCode','view','_nextDataId','getChildren','removeAllRanges','floor','_sessionId','push',':start>','substring','data-id','387871oIChuC','containerElement','from','setAttribute','createUIElement','editingDowncast','getSelectionText','_getMarkersInDocumentOrder','_displayedFakeSelectionId','isAfter','markerToHighlight','toView','ai-selection:','isOfficialPlugin',':start></','$textProxy','isBefore',':end></','element','getStart','getMarkersGroup','sessionId','model','ck-ai-assistant-ui_theme','plugins','12586356qgAGOL','getLastMatchingPosition','conversion','pluginName','join','12184ZOoIkU','AIEditing','markers','modelToViewWithIds','sort','context'];_0x47aa=function(){return _0x5c5833;};return _0x47aa();}export class AIEditing extends _0x592ad3{[_0x3f1f5a(0x135)]=null;[_0x3f1f5a(0x158)]=!0x1;[_0x3f1f5a(0x190)];static get[_0x3f1f5a(0x149)](){const _0x25546f=_0x3f1f5a;return _0x25546f(0x14c);}static get[_0x3f1f5a(0x13a)](){return!0x0;}static get[_0x3f1f5a(0x17c)](){return!0x0;}get[_0x3f1f5a(0x142)](){const _0x23c7d8=_0x3f1f5a;if(!this[_0x23c7d8(0x190)]){const _0x53133a=_0x23be6d(this[_0x23c7d8(0x150)]),_0x360cb9=_0x53133a[_0x23c7d8(0x145)][_0x23c7d8(0x167)](_0x23c7d8(0x182))&&_0x53133a[_0x23c7d8(0x145)][_0x23c7d8(0x17b)](_0x23c7d8(0x182))[_0x23c7d8(0x142)];this[_0x23c7d8(0x190)]=_0x360cb9||_0x16f5c5();}return this[_0x23c7d8(0x190)];}[_0x3f1f5a(0x166)](){const _0x14b86c=_0x3f1f5a,_0x3cc4c7=_0x23be6d(this[_0x14b86c(0x150)]),_0x59707e=_0x3cc4c7[_0x14b86c(0x143)],_0x49fb82=_0x3cc4c7[_0x14b86c(0x15e)][_0x14b86c(0x138)](_0x59707e[_0x14b86c(0x153)][_0x14b86c(0x173)](),{'convertAiChatSelectionMarker':!0x0}),_0xbae5fc=new _0x2c4917(_0x3cc4c7[_0x14b86c(0x172)][_0x14b86c(0x18b)][_0x14b86c(0x153)]);this[_0x14b86c(0x176)](_0x49fb82,_0xbae5fc);let _0x23168f=_0x3cc4c7[_0x14b86c(0x15e)][_0x14b86c(0x16d)][_0x14b86c(0x165)](_0x49fb82);const _0xb22162=this[_0x14b86c(0x134)](),_0x4c1912=[];for(const _0x1369b2 of _0xb22162){const _0x31966f='<'+_0x1369b2[_0x14b86c(0x17d)]+_0x14b86c(0x13b)+_0x1369b2[_0x14b86c(0x17d)]+_0x14b86c(0x192),_0x387ad7=_0x23168f[_0x14b86c(0x174)](_0x31966f);_0x23168f=_0x23168f[_0x14b86c(0x193)](0x0,_0x387ad7)+_0x23168f[_0x14b86c(0x193)](_0x387ad7+_0x31966f[_0x14b86c(0x171)]);const _0x2479e2='<'+_0x1369b2[_0x14b86c(0x17d)]+_0x14b86c(0x13e)+_0x1369b2[_0x14b86c(0x17d)]+_0x14b86c(0x184),_0xfe5daf=_0x23168f[_0x14b86c(0x174)](_0x2479e2);_0x23168f=_0x23168f[_0x14b86c(0x193)](0x0,_0xfe5daf)+_0x23168f[_0x14b86c(0x193)](_0xfe5daf+_0x2479e2[_0x14b86c(0x171)]),_0x4c1912[_0x14b86c(0x191)]({'markerName':_0x1369b2[_0x14b86c(0x17d)],'start':_0x387ad7,'end':_0xfe5daf,'htmlFragment':_0x23168f[_0x14b86c(0x193)](_0x387ad7,_0xfe5daf)});}return{'content':_0x23168f,'version':_0x3cc4c7[_0x14b86c(0x143)][_0x14b86c(0x153)][_0x14b86c(0x16b)],'sessionId':this[_0x14b86c(0x142)],'selections':_0x4c1912};}async[_0x3f1f5a(0x16a)](){const _0x256302=_0x3f1f5a;this[_0x256302(0x150)]instanceof _0x22f9fa?this[_0x256302(0x16f)](this[_0x256302(0x150)]):this[_0x256302(0x169)](this[_0x256302(0x150)][_0x256302(0x16e)],_0x256302(0x168),(_0x1daab5,_0x3e91c1)=>{const _0x301b53=_0x256302;_0x3e91c1['on'](_0x301b53(0x16c),()=>{const _0x2225c5=_0x301b53;this[_0x2225c5(0x16f)](_0x3e91c1);});});}[_0x3f1f5a(0x16f)](_0x505ee2){const _0x19e5fe=_0x3f1f5a;_0x505ee2[_0x19e5fe(0x148)][_0x19e5fe(0x17f)](_0x19e5fe(0x132))[_0x19e5fe(0x137)]({'model':_0x19e5fe(0x188),'view':{'classes':[_0x19e5fe(0x185),_0x19e5fe(0x144)],'priority':0xc}}),_0x505ee2[_0x19e5fe(0x148)][_0x19e5fe(0x17f)](_0x19e5fe(0x17e))[_0x19e5fe(0x180)]({'model':_0x19e5fe(0x188),'view':(_0x2df701,{writer:_0x562f89,options:_0x2aa1de})=>_0x2aa1de[_0x19e5fe(0x15c)]?_0x562f89[_0x19e5fe(0x131)](_0x2df701[_0x19e5fe(0x160)]+':'+(_0x2df701[_0x19e5fe(0x175)]?_0x19e5fe(0x157):_0x19e5fe(0x183))):null});}[_0x3f1f5a(0x15f)](_0x471533,_0x291f29,_0x108a8e=!0x1,_0x13fc9e=!0x1){const _0x42a1a9=_0x3f1f5a;if(this[_0x42a1a9(0x158)]&&!_0x13fc9e)return!0x1;const _0x32dda6=_0x23be6d(this[_0x42a1a9(0x150)])[_0x42a1a9(0x143)];return _0x32dda6[_0x42a1a9(0x178)](_0x533ad9=>{const _0x55781c=_0x42a1a9;this[_0x55781c(0x135)]&&this[_0x55781c(0x155)](this[_0x55781c(0x135)]),this[_0x55781c(0x135)]=_0x291f29,this[_0x55781c(0x158)]=_0x108a8e;let _0x461332=0x0;for(let _0x19169e of _0x471533){const _0x3647b6=_0x55781c(0x139)+_0x461332;if(_0x19169e[_0x55781c(0x157)][_0x55781c(0x17a)]){const _0x4cdb3f=_0x19169e[_0x55781c(0x157)][_0x55781c(0x147)](({item:_0x4d0cf0})=>!_0x32dda6[_0x55781c(0x156)][_0x55781c(0x15a)](_0x4d0cf0),{'boundaries':_0x19169e});_0x19169e=_0x533ad9[_0x55781c(0x164)](_0x4cdb3f,_0x19169e[_0x55781c(0x183)]);}_0x533ad9[_0x55781c(0x152)](_0x3647b6,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x19169e}),_0x461332++;}}),window[_0x42a1a9(0x154)]()?.[_0x42a1a9(0x18e)](),!0x0;}[_0x3f1f5a(0x155)](_0x46dbf2){const _0x55c1da=_0x3f1f5a;if(this[_0x55c1da(0x135)]!=_0x46dbf2)return!0x1;this[_0x55c1da(0x135)]=null,this[_0x55c1da(0x158)]=!0x1;const _0x4878a9=_0x23be6d(this[_0x55c1da(0x150)]),_0x58aa00=_0x4878a9[_0x55c1da(0x143)][_0x55c1da(0x14d)][_0x55c1da(0x141)](_0x55c1da(0x188));return _0x4878a9[_0x55c1da(0x143)][_0x55c1da(0x178)](_0x16479a=>{const _0x2a6611=_0x55c1da;for(const _0x378532 of _0x58aa00)_0x16479a[_0x2a6611(0x177)](_0x378532);}),!0x0;}[_0x3f1f5a(0x14e)](_0x2efa09){const _0x1e5089=_0x3f1f5a,_0x4e65d4=_0x23be6d(this[_0x1e5089(0x150)]),_0x54c8e9=_0x4e65d4[_0x1e5089(0x15e)][_0x1e5089(0x138)](_0x2efa09),_0x15bbad=new _0x2c4917(_0x4e65d4[_0x1e5089(0x172)][_0x1e5089(0x18b)][_0x1e5089(0x153)]);return this[_0x1e5089(0x176)](_0x54c8e9,_0x15bbad),_0x54c8e9;}[_0x3f1f5a(0x176)](_0x48a2bb,_0xa5ddf2){const _0x5096c0=_0x3f1f5a;let _0x568e7e=!0x1;const _0x1a17de=new Set();for(const _0x2fb47f of _0x48a2bb[_0x5096c0(0x18d)]()){const _0x27aa20=_0x2fb47f['is'](_0x5096c0(0x159))||_0x2fb47f['is'](_0x5096c0(0x12e));if(!_0x2fb47f['is'](_0x5096c0(0x13f)))continue;(this[_0x5096c0(0x176)](_0x2fb47f,_0xa5ddf2)||_0x27aa20)&&(_0xa5ddf2[_0x5096c0(0x130)](_0x5096c0(0x194),this[_0x5096c0(0x18c)](_0x1a17de),_0x2fb47f),_0x568e7e=!0x0);}return _0x568e7e;}[_0x3f1f5a(0x18c)](_0x7f4878){const _0x376ee2=_0x3f1f5a;let _0x164234;do{_0x164234='';for(let _0x252a24=0x0;_0x252a24<0x4;_0x252a24++)_0x164234+=String[_0x376ee2(0x18a)](0x61+Math[_0x376ee2(0x18f)](0x1a*Math[_0x376ee2(0x181)]()));}while(_0x7f4878[_0x376ee2(0x167)](_0x164234));return _0x7f4878[_0x376ee2(0x168)](_0x164234),_0x164234;}[_0x3f1f5a(0x133)](){const _0x5b2280=_0x3f1f5a,{model:_0x4a5d87}=_0x23be6d(this[_0x5b2280(0x150)]),_0x563bd5=_0x4a5d87[_0x5b2280(0x153)][_0x5b2280(0x186)],_0x2c51fa=_0x4a5d87[_0x5b2280(0x187)](_0x563bd5),_0x25c358=[],_0x37073a=_0x4a5d87[_0x5b2280(0x161)](_0x2c51fa)[_0x5b2280(0x162)]();for(const {item:_0x37bd1e}of _0x37073a)_0x37bd1e['is'](_0x5b2280(0x13c))?_0x25c358[_0x5b2280(0x191)](_0x37bd1e[_0x5b2280(0x15e)]):_0x37bd1e['is'](_0x5b2280(0x13f))&&_0x25c358[_0x5b2280(0x171)]>0x0&&'\x20'!==_0x25c358[_0x25c358[_0x5b2280(0x171)]-0x1]&&_0x25c358[_0x5b2280(0x191)]('\x20');return'\x22'+_0x25c358[_0x5b2280(0x14a)]('')[_0x5b2280(0x170)]()+'\x22';}[_0x3f1f5a(0x134)](){const _0x4503a2=_0x3f1f5a,_0x5be977=_0x23be6d(this[_0x4503a2(0x150)])[_0x4503a2(0x143)];return Array[_0x4503a2(0x12f)](_0x5be977[_0x4503a2(0x14d)][_0x4503a2(0x141)](_0x4503a2(0x188)))[_0x4503a2(0x14f)]((_0x191aba,_0x18f05e)=>_0x191aba[_0x4503a2(0x140)]()[_0x4503a2(0x13d)](_0x18f05e[_0x4503a2(0x140)]())?-0x1:_0x191aba[_0x4503a2(0x140)]()[_0x4503a2(0x136)](_0x18f05e[_0x4503a2(0x140)]())?0x1:0x0);}}
|