@ckeditor/ckeditor5-ai 47.2.0-alpha.2 → 47.2.0-alpha.3
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 _0x17c45f=_0x2354;(function(_0x4973e9,_0x359c40){const _0x5279dc=_0x2354,_0x5f2b5d=_0x4973e9();while(!![]){try{const _0x322ada=parseInt(_0x5279dc(0x1d6))/0x1*(-parseInt(_0x5279dc(0x1ea))/0x2)+parseInt(_0x5279dc(0x1cb))/0x3+-parseInt(_0x5279dc(0x1eb))/0x4+-parseInt(_0x5279dc(0x1e5))/0x5*(parseInt(_0x5279dc(0x1cc))/0x6)+parseInt(_0x5279dc(0x1ef))/0x7+-parseInt(_0x5279dc(0x1d0))/0x8*(parseInt(_0x5279dc(0x1c7))/0x9)+parseInt(_0x5279dc(0x1df))/0xa;if(_0x322ada===_0x359c40)break;else _0x5f2b5d['push'](_0x5f2b5d['shift']());}catch(_0x220188){_0x5f2b5d['push'](_0x5f2b5d['shift']());}}}(_0x243d,0x647e6));import{ContextPlugin as _0x7f068b}from'ckeditor5/src/core.js';import{AITabs as _0x3006fe}from'../aitabs/aitabs.js';import{IconAIHistory as _0x3772ff}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x489fe4}from'./ui/aichathistoryview.js';import{getTranslation as _0x24c8dc}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';function _0x243d(){const _0x39f381=['updateItemLoadingState','showResizeButton','updateItemTitle','delegate','hideError','errorMessage','removeConversation','_historyView','11369920roZtFK','resizeTabs','setLoadingSkeleton','removeHistoryItem','isMaximized','isPremiumPlugin','30KVDOtJ','get','history','updateHistoryItemsWithCategories','selectConversation','1009846eoGMae','749376QhrscU','AITabs','pluginName','AI_CHAT_HISTORY_HEADING','989191zqPpYb','requires','updateItems','addTab','locale','AIChatHistoryUI','18pPSxKQ','isLoading','openChat','context','1049070YSCVDU','482286TKYpzw','plugins','isOfficialPlugin','editConversationTitle','167280SPXatY','setIsMaximized','view','setConversationPinned','showError','showConversationHistory','1mZaFmF'];_0x243d=function(){return _0x39f381;};return _0x243d();}function _0x2354(_0xadf7de,_0x4f9ed0){const _0x243d18=_0x243d();return _0x2354=function(_0x2354a8,_0x4b319f){_0x2354a8=_0x2354a8-0x1c6;let _0x32a66b=_0x243d18[_0x2354a8];return _0x32a66b;},_0x2354(_0xadf7de,_0x4f9ed0);}export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x17c45f(0x1d5),_0x17c45f(0x1dd),_0x17c45f(0x1cf),_0x17c45f(0x1d3),_0x17c45f(0x1e9),_0x17c45f(0x1c9),_0x17c45f(0x1e0)];export class AIChatHistoryUI extends _0x7f068b{static get[_0x17c45f(0x1f0)](){return[_0x3006fe];}[_0x17c45f(0x1de)];static get[_0x17c45f(0x1ed)](){const _0x189c42=_0x17c45f;return _0x189c42(0x1c6);}static get[_0x17c45f(0x1ce)](){return!0x0;}static get[_0x17c45f(0x1e4)](){return!0x0;}constructor(_0x5a58d){const _0x250692=_0x17c45f;super(_0x5a58d);const _0x25ed66=this[_0x250692(0x1ca)][_0x250692(0x1cd)][_0x250692(0x1e6)](_0x250692(0x1ec));this[_0x250692(0x1de)]=new _0x489fe4(this[_0x250692(0x1ca)][_0x250692(0x1f3)],_0x25ed66[_0x250692(0x1d8)]),this[_0x250692(0x1de)][_0x250692(0x1da)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x25ed66[_0x250692(0x1d2)][_0x250692(0x1f2)]({'id':_0x250692(0x1e7),'buttonLabel':_0x24c8dc(this[_0x250692(0x1ca)][_0x250692(0x1f3)],_0x250692(0x1ee)),'buttonIcon':_0x3772ff,'order':0x0,'content':this[_0x250692(0x1de)]});}[_0x17c45f(0x1e2)](_0x2bda5d){const _0xafdb08=_0x17c45f;this[_0xafdb08(0x1de)][_0xafdb08(0x1e2)](_0x2bda5d);}[_0x17c45f(0x1f1)](_0x1b694c){const _0x14e5da=_0x17c45f;this[_0x14e5da(0x1de)][_0x14e5da(0x1e8)](_0x1b694c);}[_0x17c45f(0x1d9)](_0x129e17,_0x1049c0){const _0x20a6e2=_0x17c45f;this[_0x20a6e2(0x1de)][_0x20a6e2(0x1d9)](_0x129e17,_0x1049c0);}[_0x17c45f(0x1d7)](_0x48a7d0,_0x3ec844,_0x381c89){const _0x30fafe=_0x17c45f;this[_0x30fafe(0x1de)][_0x30fafe(0x1d7)](_0x48a7d0,_0x3ec844,_0x381c89);}[_0x17c45f(0x1e1)](_0x3acbb8){const _0x349b13=_0x17c45f;this[_0x349b13(0x1de)][_0x349b13(0x1c8)]=_0x3acbb8;}[_0x17c45f(0x1d4)](_0x4f3d63){const _0x1abbd3=_0x17c45f;this[_0x1abbd3(0x1de)][_0x1abbd3(0x1dc)]=_0x4f3d63;}[_0x17c45f(0x1db)](){const _0x32f3a4=_0x17c45f;this[_0x32f3a4(0x1de)][_0x32f3a4(0x1dc)]='';}[_0x17c45f(0x1d1)](_0x4a9619){const _0x3ac13f=_0x17c45f;this[_0x3ac13f(0x1de)][_0x3ac13f(0x1e3)]=_0x4a9619;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x4ece(_0x5ff4d,_0x5701de){const _0x18bd9d=_0x18bd();return _0x4ece=function(_0x4ece90,_0xa58355){_0x4ece90=_0x4ece90-0xf9;let _0x116592=_0x18bd9d[_0x4ece90];return _0x116592;},_0x4ece(_0x5ff4d,_0x5701de);}const _0x44d68c=_0x4ece;(function(_0xf93f3c,_0x33128e){const _0x4a6dca=_0x4ece,_0x180c5d=_0xf93f3c();while(!![]){try{const _0x44aa48=-parseInt(_0x4a6dca(0x126))/0x1*(-parseInt(_0x4a6dca(0x103))/0x2)+parseInt(_0x4a6dca(0x123))/0x3*(-parseInt(_0x4a6dca(0xfa))/0x4)+-parseInt(_0x4a6dca(0x125))/0x5+-parseInt(_0x4a6dca(0x11e))/0x6*(-parseInt(_0x4a6dca(0x124))/0x7)+parseInt(_0x4a6dca(0x108))/0x8*(parseInt(_0x4a6dca(0x127))/0x9)+parseInt(_0x4a6dca(0x111))/0xa+-parseInt(_0x4a6dca(0xfe))/0xb*(parseInt(_0x4a6dca(0x10f))/0xc);if(_0x44aa48===_0x33128e)break;else _0x180c5d['push'](_0x180c5d['shift']());}catch(_0xfa7e73){_0x180c5d['push'](_0x180c5d['shift']());}}}(_0x18bd,0x32241));import{EmitterMixin as _0x420a76}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x3bdcbf}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x420a76(){[_0x44d68c(0xff)]=[];[_0x44d68c(0x105)];[_0x44d68c(0x109)];constructor({connector:_0xc48e6c,group:_0x3bb75a}){const _0x3ab1d3=_0x44d68c;super(),this[_0x3ab1d3(0x105)]=_0xc48e6c,this[_0x3ab1d3(0x109)]=_0x3bb75a;}async[_0x44d68c(0xfb)](){const _0xfeae71=_0x44d68c;try{const _0xc1056f=this[_0xfeae71(0x105)][_0xfeae71(0x110)](this[_0xfeae71(0x109)]),_0x57422b=await _0xc1056f[_0xfeae71(0x128)]();this[_0xfeae71(0x121)](_0x57422b);}catch(_0xff0fb3){this[_0xfeae71(0x119)](_0xfeae71(0x116),{'error':_0xff0fb3,'operation':_0xfeae71(0xfb)});}}[_0x44d68c(0x117)](_0x4ed9f6){const _0x1de96f=_0x44d68c;this[_0x1de96f(0xff)][_0x1de96f(0x113)](_0x4ed9f6);}async[_0x44d68c(0xfc)](_0x3b8be0){const _0xb493e2=_0x44d68c,_0x9ab7a7=this[_0xb493e2(0xff)][_0xb493e2(0x120)](_0x675b83=>_0x675b83['id']===_0x3b8be0);if(-0x1===_0x9ab7a7)return!0x1;try{return await this[_0xb493e2(0x105)][_0xb493e2(0x101)](_0x3b8be0)[_0xb493e2(0x100)](),this[_0xb493e2(0xff)][_0xb493e2(0x11d)](_0x9ab7a7,0x1),this[_0xb493e2(0x119)](_0xb493e2(0x10d),{'itemId':_0x3b8be0}),!0x0;}catch(_0x16bf6e){return this[_0xb493e2(0x119)](_0xb493e2(0x116),{'error':_0x16bf6e,'operation':_0xb493e2(0xfc),'itemId':_0x3b8be0}),!0x1;}}[_0x44d68c(0x10c)](_0x3c85a7){const _0x357492=_0x44d68c;return this[_0x357492(0xff)][_0x357492(0x11f)](_0x196129=>_0x196129['id']===_0x3c85a7);}async[_0x44d68c(0x118)](_0x6038a2,_0x187d03){const _0x15701a=_0x44d68c,_0x4d4545=this[_0x15701a(0x10c)](_0x6038a2);if(!_0x4d4545)return!0x1;try{return await this[_0x15701a(0x105)][_0x15701a(0x10e)](_0x6038a2,{'title':_0x187d03})[_0x15701a(0x10b)](),_0x4d4545[_0x15701a(0x11c)](_0x187d03),this[_0x15701a(0x119)](_0x15701a(0x122),{'itemId':_0x6038a2,'updates':{'title':_0x187d03}}),!0x0;}catch(_0x2bebc5){return this[_0x15701a(0x119)](_0x15701a(0x116),{'error':_0x2bebc5,'operation':_0x15701a(0x118),'itemId':_0x6038a2}),!0x1;}}async[_0x44d68c(0x11a)](_0x29c6d9,_0x2333b4){const _0xb00a53=_0x44d68c,_0xc87df6=this[_0xb00a53(0x10c)](_0x29c6d9);if(!_0xc87df6)return!0x1;try{return await this[_0xb00a53(0x105)][_0xb00a53(0x10e)](_0x29c6d9,{'pinned':_0x2333b4})[_0xb00a53(0x10b)](),_0xc87df6[_0xb00a53(0x11b)](_0x2333b4),this[_0xb00a53(0x119)](_0xb00a53(0x122),{'itemId':_0x29c6d9,'updates':{'pinned':_0x2333b4}}),!0x0;}catch(_0x1b27f1){return this[_0xb00a53(0x119)](_0xb00a53(0x116),{'error':_0x1b27f1,'operation':_0xb00a53(0x11a),'itemId':_0x29c6d9}),!0x1;}}[_0x44d68c(0x121)](_0x284265){const _0x4b87ae=_0x44d68c;try{this[_0x4b87ae(0xff)]=[],_0x284265[_0x4b87ae(0x104)](_0x13ad9d=>{const _0x261697=_0x4b87ae;this[_0x261697(0x117)](new _0x3bdcbf(_0x13ad9d));}),this[_0x4b87ae(0x119)](_0x4b87ae(0xfd),{'items':[...this[_0x4b87ae(0xff)]]});}catch(_0x501a88){this[_0x4b87ae(0x119)](_0x4b87ae(0x116),{'error':_0x501a88,'operation':_0x4b87ae(0x121)});}}[_0x44d68c(0x102)](_0x447d73={}){const _0x24d493=_0x44d68c,_0x3da162=void 0x0!==_0x447d73[_0x24d493(0x115)]&&_0x447d73[_0x24d493(0x115)],_0xd8b672=_0x447d73[_0x24d493(0x114)]?new Date(_0x447d73[_0x24d493(0x114)][_0x24d493(0x129)](),_0x447d73[_0x24d493(0x114)][_0x24d493(0xf9)](),_0x447d73[_0x24d493(0x114)][_0x24d493(0x10a)]()):null,_0xd0411d=_0x447d73['to']?new Date(_0x447d73['to'][_0x24d493(0x129)](),_0x447d73['to'][_0x24d493(0xf9)](),_0x447d73['to'][_0x24d493(0x10a)]()):null;return this[_0x24d493(0xff)][_0x24d493(0x112)](_0x52af4e=>{const _0x3b19e5=_0x24d493;if(_0x52af4e[_0x3b19e5(0x115)]!==_0x3da162)return!0x1;if(_0xd0411d){const _0x5c62df=new Date(_0x52af4e[_0x3b19e5(0x107)][_0x3b19e5(0x129)](),_0x52af4e[_0x3b19e5(0x107)][_0x3b19e5(0xf9)](),_0x52af4e[_0x3b19e5(0x107)][_0x3b19e5(0x10a)]());return _0xd8b672?_0xd8b672[_0x3b19e5(0x106)]()===_0xd0411d[_0x3b19e5(0x106)]()?_0x5c62df[_0x3b19e5(0x106)]()===_0xd8b672[_0x3b19e5(0x106)]():_0x5c62df<_0xd0411d&&_0x5c62df>=_0xd8b672:_0x5c62df<_0xd0411d;}return!0x0;});}}function _0x18bd(){const _0xc3ac34=['getItem','itemRemoved','updateConversation','12ACrSBC','fetchConversations','2184090sNHKYa','filter','push','from','pinned','error','addItem','updateItemTitle','fire','updateItemPinned','updatePinned','updateTitle','splice','6dBClsi','find','findIndex','loadItems','itemUpdated','3pniNbz','1121771vPOYfX','1497025tljUIO','107OqkKbP','126783UXpjOQ','getConversations','getFullYear','getMonth','125456JNEuJt','init','removeItem','itemsLoaded','2688037tsFoYB','items','execute','deleteConversation','getItems','6458gdDabt','map','connector','getTime','createdAt','32evNPyd','group','getDate','getResult'];_0x18bd=function(){return _0xc3ac34;};return _0x18bd();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x2053a8=_0x3ace;function _0x3ace(_0x19a21e,_0x3c9d42){var _0x54a55b=_0x54a5();return _0x3ace=function(_0x3ace5a,_0x450419){_0x3ace5a=_0x3ace5a-0xf2;var _0x3b7e0c=_0x54a55b[_0x3ace5a];return _0x3b7e0c;},_0x3ace(_0x19a21e,_0x3c9d42);}(function(_0x24c672,_0x668e9d){var _0x212149=_0x3ace,_0x14c2d2=_0x24c672();while(!![]){try{var _0x32a620=-parseInt(_0x212149(0xfc))/0x1*(-parseInt(_0x212149(0x102))/0x2)+-parseInt(_0x212149(0xff))/0x3*(-parseInt(_0x212149(0xf8))/0x4)+parseInt(_0x212149(0xfe))/0x5+-parseInt(_0x212149(0xf4))/0x6+-parseInt(_0x212149(0x101))/0x7*(parseInt(_0x212149(0xf6))/0x8)+parseInt(_0x212149(0xf9))/0x9+-parseInt(_0x212149(0xf7))/0xa;if(_0x32a620===_0x668e9d)break;else _0x14c2d2['push'](_0x14c2d2['shift']());}catch(_0x423092){_0x14c2d2['push'](_0x14c2d2['shift']());}}}(_0x54a5,0x3cd59));import{ObservableMixin as _0x4c5e14}from'ckeditor5/src/utils.js';function _0x54a5(){var _0x31bec2=['2BOGFXG','updatePinned','createdAt','2062302Xzhjlm','title','8424AxniVY','4879050toikqe','1864684pQqKfq','1874736yfnKUw','updateTitle','set','443249GJFhOq','updatedAt','978940LpyyfL','3JajPVX','pinned','1547oboZAD'];_0x54a5=function(){return _0x31bec2;};return _0x54a5();}import{escape as _0x1b5d2f}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x4c5e14(){['id'];[_0x2053a8(0xf3)];constructor({id:_0x569e7b,title:_0x3f0d54,createdAt:_0x1b520f,updatedAt:_0x366b0c,pinned:_0x5dd220}){var _0x19850d=_0x2053a8;super(),this['id']=_0x569e7b,this[_0x19850d(0xf3)]=new Date(_0x1b520f),this[_0x19850d(0xfb)](_0x19850d(0xf5),_0x3f0d54),this[_0x19850d(0xfb)](_0x19850d(0xfd),_0x366b0c?new Date(_0x366b0c):null),this[_0x19850d(0xfb)](_0x19850d(0x100),_0x5dd220||!0x1);}[_0x2053a8(0xfa)](_0x3365b9){var _0x358214=_0x2053a8;this[_0x358214(0xfb)](_0x358214(0xf5),_0x1b5d2f(_0x3365b9)),this[_0x358214(0xfd)]=new Date();}[_0x2053a8(0xf2)](_0x2a106d){var _0x58b37b=_0x2053a8;this[_0x58b37b(0xfb)](_0x58b37b(0x100),_0x2a106d),this[_0x58b37b(0xfd)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
const _0x158bb8=_0x4b38;(function(_0x2dd537,_0x4f1273){const _0x45ac06=_0x4b38,_0xf27410=_0x2dd537();while(!![]){try{const _0x207b95=-parseInt(_0x45ac06(0x16d))/0x1+parseInt(_0x45ac06(0x12d))/0x2+-parseInt(_0x45ac06(0x11f))/0x3*(-parseInt(_0x45ac06(0x11a))/0x4)+-parseInt(_0x45ac06(0x129))/0x5*(-parseInt(_0x45ac06(0x13b))/0x6)+parseInt(_0x45ac06(0x14d))/0x7+-parseInt(_0x45ac06(0x136))/0x8+-parseInt(_0x45ac06(0x114))/0x9;if(_0x207b95===_0x4f1273)break;else _0xf27410['push'](_0xf27410['shift']());}catch(_0x25fff2){_0xf27410['push'](_0xf27410['shift']());}}}(_0x227a,0x4ce4e));import{ListItemView as _0x1a1800,HighlightedTextView as _0x24405f,ButtonView as _0x208e23,ListView as _0x3e7a48,IconView as _0x501852,createDropdown as _0x1a0779,InputTextView as _0x1b9a4c}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0xa3ed46,IconPin as _0x5f4df5,IconCheck as _0x2e8f8e,IconCancel as _0x23393c}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x377c7c,ConfirmMixin as _0x557f3c}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x4b38(_0x569372,_0x52f20b){const _0x227ac9=_0x227a();return _0x4b38=function(_0x4b3899,_0x27c757){_0x4b3899=_0x4b3899-0x112;let _0x429d33=_0x227ac9[_0x4b3899];return _0x429d33;},_0x4b38(_0x569372,_0x52f20b);}function _0x227a(){const _0x597d63=['ck-confirm-view-cancel','set','listitem','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','extendTemplate','addMany','buttonView','ck-confirm-view-submit','234005GfhhiA','edit:cancel','actions','setConversationPinned','571810WExkTv','_createPinButtonView','clear','_titleView','locale','label','isEdit','value','AI_CHAT_HISTORY_EDIT_NAME','219320tZcMWr','updateTitle','pinned','mainContent','showConfirm','12PhEEBb','AI_CHAT_HISTORY_LOADING_UNPINNING','text','loadingState','_createAcceptEditButtonView','change:isEdit','ck-ai-chat-history__item','then','AI_CHAT_HISTORY_REMOVE_CONFIRM','click','AI_CHAT_HISTORY_ACCEPT','updateLoadingState','match','removeConversation','isMatching','panelPosition','AI_CHAT_HISTORY_PIN_BUTTON','bindTemplate','3319547DSORwN','panelView','fire','key','ck-ai-chat-history__item-check-container','_createCheckView','createCollection','span','ck-ai-chat-history__item-content','ck-ai-chat-history__item-check','tiny','execute','children','AI_CHAT_HISTORY_LOADING_PINNING','element','ck-ai-chat-history__item-main-content','ck-ai-loader__text','ck-ai-chat-history__item--edit','AI_CHAT_HISTORY_LOADING_RENAMING','selectConversation','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_CANCEL','_createCancelEditButtonView','add','items','focus','bind','AI_CHAT_HISTORY_REMOVE','ck-ai-chat-history__item--active','setTemplate','editConversationTitle','withText','186294oKhBQe','ck-ai-chat-history__item-title','highlightText','string','isOn','ck-ai-loader','ck-ai-chat-history__item-actions','isVisible','4725918AuwvEJ','_createSpinnerView','Enter','_createMenuDropdownView','ck-ai-chat-history__item-row','LOADING_LABELS','800164qluUAp','_commitEditInputValue','div','ck-hidden','_createEditInputView','3xsWjfm','ck-ai-chat-history__item-date'];_0x227a=function(){return _0x597d63;};return _0x227a();}import{escape as _0x52d70d}from'es-toolkit/compat';import{AISpinnerView as _0x48fc87}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x46776e}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x557f3c(_0x1a1800){['id'];static [_0x158bb8(0x119)]={'remove':_0x158bb8(0x161),'rename':_0x158bb8(0x15f),'pin':_0x158bb8(0x15a),'unpin':_0x158bb8(0x13c)};[_0x158bb8(0x12b)];[_0x158bb8(0x139)];[_0x158bb8(0x130)];constructor(_0x4c7157,_0x2e91eb){const _0x1e9676=_0x158bb8;super(_0x4c7157);const _0xaa3b05=this[_0x1e9676(0x14c)];this[_0x1e9676(0x122)](_0x1e9676(0x133),!0x1),this[_0x1e9676(0x122)](_0x1e9676(0x113),!0x0),this[_0x1e9676(0x122)](_0x1e9676(0x138),!!_0x2e91eb[_0x1e9676(0x138)]),this[_0x1e9676(0x122)](_0x1e9676(0x13e),null),this['id']=_0x2e91eb['id'];const {title:_0x4102a3,createdAt:_0x3fe370,active:_0x4118d3=!0x1}=_0x2e91eb;this[_0x1e9676(0x130)]=new _0x24405f(),this[_0x1e9676(0x130)][_0x1e9676(0x13d)]=_0x4102a3,this[_0x1e9676(0x130)][_0x1e9676(0x125)]({'attributes':{'class':[_0x1e9676(0x16e)]}});const _0x5913b5=this[_0x1e9676(0x152)](),_0x15deba=this[_0x1e9676(0x12e)](_0x4c7157),_0x2c0808=this[_0x1e9676(0x117)](),_0x732e69=this[_0x1e9676(0x11e)](_0x4c7157,_0x4102a3),_0x4e147f=this[_0x1e9676(0x13f)](_0x4c7157,_0x732e69),_0x59c437=this[_0x1e9676(0x163)](_0x4c7157,_0x732e69);this[_0x1e9676(0x12b)]=this[_0x1e9676(0x153)](),this[_0x1e9676(0x139)]=this[_0x1e9676(0x153)](),this[_0x1e9676(0x139)][_0x1e9676(0x164)](this[_0x1e9676(0x130)]),this[_0x1e9676(0x12b)][_0x1e9676(0x164)](_0x15deba),this[_0x1e9676(0x12b)][_0x1e9676(0x164)](_0x2c0808),this['on'](_0x1e9676(0x140),(_0x38c041,_0x19e81e,_0x3b1562)=>{const _0x26cc4c=_0x1e9676;this[_0x26cc4c(0x12b)][_0x26cc4c(0x12f)](),this[_0x26cc4c(0x139)][_0x26cc4c(0x12f)](),_0x3b1562?(this[_0x26cc4c(0x12b)][_0x26cc4c(0x164)](_0x4e147f),this[_0x26cc4c(0x12b)][_0x26cc4c(0x164)](_0x59c437),this[_0x26cc4c(0x139)][_0x26cc4c(0x164)](_0x732e69),_0x732e69[_0x26cc4c(0x15b)][_0x26cc4c(0x166)]()):(this[_0x26cc4c(0x12b)][_0x26cc4c(0x164)](_0x15deba),this[_0x26cc4c(0x12b)][_0x26cc4c(0x164)](_0x2c0808),this[_0x26cc4c(0x139)][_0x26cc4c(0x164)](this[_0x26cc4c(0x130)]));}),this[_0x1e9676(0x16a)]({'tag':'li','attributes':{'class':[_0x1e9676(0x141),_0x4118d3?_0x1e9676(0x169):'',_0xaa3b05['if'](_0x1e9676(0x113),_0x1e9676(0x11d),_0x21608f=>!_0x21608f),_0xaa3b05['if'](_0x1e9676(0x133),_0x1e9676(0x15e))],'role':_0x1e9676(0x123)},'children':[{'tag':_0x1e9676(0x154),'attributes':{'class':[_0x1e9676(0x151)]},'children':[{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x156),_0xaa3b05['if'](_0x1e9676(0x13e),_0x1e9676(0x11d),_0x1c9fbd=>!!_0x1c9fbd)]},'children':_0x4118d3?[_0x5913b5]:[]},{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x172),_0xaa3b05['if'](_0x1e9676(0x13e),_0x1e9676(0x11d),_0x16e689=>!_0x16e689)]},'children':[this[_0x1e9676(0x115)]()]}]},{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x118)]},'children':[{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x155)]},'on':{'click':this[_0x1e9676(0x14c)]['to'](_0x1e9676(0x144))},'children':[{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x15c)]},'children':[{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x16e),_0xaa3b05['if'](_0x1e9676(0x13e),_0x1e9676(0x11d),_0x108c6d=>!!_0x108c6d)]},'children':this[_0x1e9676(0x139)]},{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x15d),_0xaa3b05['if'](_0x1e9676(0x13e),_0x1e9676(0x11d),_0x3a24d9=>!_0x3a24d9)]},'children':[{'text':_0xaa3b05['to'](_0x1e9676(0x13e),_0x2229ce=>_0x2229ce?_0x46776e(this[_0x1e9676(0x131)],AIChatHistoryListItemView[_0x1e9676(0x119)][_0x2229ce]):'')}]}]},{'tag':_0x1e9676(0x154),'attributes':{'class':[_0x1e9676(0x120)]},'children':[_0x3fe370]}]},{'tag':_0x1e9676(0x11c),'attributes':{'class':[_0x1e9676(0x112)]},'children':this[_0x1e9676(0x12b)]}]}]}),this['on'](_0x1e9676(0x144),()=>{const _0x504634=_0x1e9676;this[_0x504634(0x133)]||this[_0x504634(0x14f)](_0x504634(0x160),{'id':this['id']});});}[_0x158bb8(0x137)](_0x2691c0){const _0x5cc3a9=_0x158bb8;this[_0x5cc3a9(0x130)][_0x5cc3a9(0x13d)]=_0x52d70d(_0x2691c0);}[_0x158bb8(0x146)](_0x29c3b6,_0x2be0ff){const _0x56eaed=_0x158bb8;this[_0x56eaed(0x122)](_0x56eaed(0x13e),_0x2be0ff?_0x29c3b6:null);}[_0x158bb8(0x152)](){const _0x197b35=_0x158bb8,_0x51036c=new _0x501852();return _0x51036c[_0x197b35(0x122)]({'content':_0x2e8f8e}),_0x51036c;}[_0x158bb8(0x12e)](_0x1f41bb){const _0x4af001=_0x158bb8,_0x9b3f24=new _0x208e23(_0x1f41bb);return _0x9b3f24[_0x4af001(0x122)]({'label':_0x46776e(_0x1f41bb,_0x4af001(0x14b)),'icon':_0x5f4df5,'withText':!0x1,'tooltip':!0x0}),_0x9b3f24[_0x4af001(0x167)](_0x4af001(0x171))['to'](this,_0x4af001(0x138)),_0x9b3f24['on'](_0x4af001(0x158),()=>{const _0x5473f9=_0x4af001,_0x20b143=!this[_0x5473f9(0x138)];this[_0x5473f9(0x14f)](_0x5473f9(0x12c),{'id':this['id'],'pinned':_0x20b143});}),_0x9b3f24;}[_0x158bb8(0x117)](){const _0x4c0272=_0x158bb8,_0x112491=_0x1a0779(this[_0x4c0272(0x131)],_0x377c7c),_0x1b3ed4=_0x112491[_0x4c0272(0x14e)][_0x4c0272(0x159)];_0x112491[_0x4c0272(0x127)][_0x4c0272(0x122)]({'label':_0x46776e(this[_0x4c0272(0x131)],_0x4c0272(0x124)),'icon':_0xa3ed46}),_0x112491[_0x4c0272(0x14a)]='sw';const _0x4b3ded=new _0x208e23(this[_0x4c0272(0x131)]);_0x4b3ded[_0x4c0272(0x132)]=_0x46776e(this[_0x4c0272(0x131)],_0x4c0272(0x135)),_0x4b3ded[_0x4c0272(0x16c)]=!0x0,_0x4b3ded['on'](_0x4c0272(0x158),()=>{const _0x5e8bd7=_0x4c0272;this[_0x5e8bd7(0x133)]=!0x0;});const _0x8abc64=new _0x208e23(this[_0x4c0272(0x131)]);_0x8abc64[_0x4c0272(0x132)]=_0x46776e(this[_0x4c0272(0x131)],_0x4c0272(0x168)),_0x8abc64[_0x4c0272(0x16c)]=!0x0,_0x8abc64['on'](_0x4c0272(0x158),()=>{const _0x407462=_0x4c0272;this[_0x407462(0x13a)](_0x46776e(this[_0x407462(0x131)],_0x407462(0x143)),this[_0x407462(0x15b)])[_0x407462(0x142)](()=>{const _0x23688b=_0x407462;this[_0x23688b(0x14f)](_0x23688b(0x148),{'id':this['id']});});});const _0xf801b8=new _0x3e7a48(this[_0x4c0272(0x131)]),_0x4d3c6a=new _0x1a1800(this[_0x4c0272(0x131)]);_0x4d3c6a[_0x4c0272(0x159)][_0x4c0272(0x164)](_0x4b3ded);const _0x4cb516=new _0x1a1800(this[_0x4c0272(0x131)]);return _0x4cb516[_0x4c0272(0x159)][_0x4c0272(0x164)](_0x8abc64),_0xf801b8[_0x4c0272(0x165)][_0x4c0272(0x126)]([_0x4d3c6a,_0x4cb516]),_0x1b3ed4[_0x4c0272(0x164)](_0xf801b8),_0x112491;}[_0x158bb8(0x11e)](_0x2e4c83,_0x12821e){const _0x4ba200=_0x158bb8,_0x444344=new _0x1b9a4c(_0x2e4c83),_0x3014df=_0x444344[_0x4ba200(0x14c)];return _0x444344[_0x4ba200(0x134)]=_0x12821e,_0x444344[_0x4ba200(0x125)]({'on':{'keydown':_0x3014df['to'](_0x1ac703=>{const _0x3ab2a1=_0x4ba200;_0x3ab2a1(0x116)==_0x1ac703[_0x3ab2a1(0x150)]&&this[_0x3ab2a1(0x11b)](_0x444344);})}}),_0x444344;}[_0x158bb8(0x13f)](_0x165831,_0x1885df){const _0x2d903c=_0x158bb8,_0x68ce23=new _0x208e23(_0x165831);return _0x68ce23[_0x2d903c(0x122)]({'icon':_0x2e8f8e,'withText':!0x1,'tooltip':_0x46776e(_0x165831,_0x2d903c(0x145))}),_0x68ce23[_0x2d903c(0x125)]({'attributes':{'class':[_0x2d903c(0x128)]}}),_0x68ce23['on'](_0x2d903c(0x158),()=>{const _0x4d285e=_0x2d903c;this[_0x4d285e(0x11b)](_0x1885df);}),_0x68ce23;}[_0x158bb8(0x11b)](_0x168c08){const _0x459a48=_0x158bb8,_0x5c9e70=_0x168c08[_0x459a48(0x15b)][_0x459a48(0x134)]||'';this[_0x459a48(0x130)][_0x459a48(0x13d)]=_0x5c9e70,this[_0x459a48(0x133)]=!0x1,this[_0x459a48(0x14f)](_0x459a48(0x16b),{'id':this['id'],'title':_0x5c9e70});}[_0x158bb8(0x163)](_0x1f4aba,_0x3a2916){const _0x1e4ab3=_0x158bb8,_0x1c0f1d=new _0x208e23(_0x1f4aba);return _0x1c0f1d[_0x1e4ab3(0x122)]({'icon':_0x23393c,'withText':!0x1,'tooltip':_0x46776e(_0x1f4aba,_0x1e4ab3(0x162))}),_0x1c0f1d[_0x1e4ab3(0x125)]({'attributes':{'class':[_0x1e4ab3(0x121)]}}),_0x1c0f1d['on'](_0x1e4ab3(0x158),()=>{const _0xd3cd14=_0x1e4ab3;this[_0xd3cd14(0x133)]=!0x1,_0x3a2916[_0xd3cd14(0x134)]=this[_0xd3cd14(0x130)][_0xd3cd14(0x13d)]||'',this[_0xd3cd14(0x14f)](_0xd3cd14(0x12a));}),_0x1c0f1d;}[_0x158bb8(0x115)](){const _0x33e7e4=_0x158bb8,_0x57f074=new _0x48fc87(_0x33e7e4(0x157));return _0x57f074[_0x33e7e4(0x113)]=!0x0,_0x57f074;}[_0x158bb8(0x149)](_0x2dac56){const _0x2a010b=_0x158bb8;return this[_0x2a010b(0x130)]&&_0x2a010b(0x170)==typeof this[_0x2a010b(0x130)][_0x2a010b(0x13d)]&&this[_0x2a010b(0x130)][_0x2a010b(0x13d)][_0x2a010b(0x147)](_0x2dac56)?{'title':!0x0}:null;}[_0x158bb8(0x16f)](_0x56bbef){const _0x1e6a6e=_0x158bb8;this[_0x1e6a6e(0x130)][_0x1e6a6e(0x16f)](_0x56bbef);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4403(_0x3d2bf8,_0x5c8c29){const _0x43ba9d=_0x43ba();return _0x4403=function(_0x44032e,_0x85f4ef){_0x44032e=_0x44032e-0x10c;let _0x2499d5=_0x43ba9d[_0x44032e];return _0x2499d5;},_0x4403(_0x3d2bf8,_0x5c8c29);}const _0x378abb=_0x4403;function _0x43ba(){const _0x1fb99f=['474XLgLEB','241836yGNeVw','915663nCgmpy','title','isVisible','highlightText','length','_itemsListView','180ecSxeR','getItem','items','3130804phTUIr','set','remove','addMany','splice','7599AShlXW','setTemplate','69183EmPWli','ck-hidden','isMatching','ck-ai-chat-history__section','24eZLyOj','find','1094470bctkEe','div','indexOf','33wcRRSz','itemsViews','24KGcDAf','10750380ggMIdD','ck-ai-chat-history__section-title','bindTemplate','filter','removeItem'];_0x43ba=function(){return _0x1fb99f;};return _0x43ba();}(function(_0x3524d7,_0x53752e){const _0x32f698=_0x4403,_0x89719a=_0x3524d7();while(!![]){try{const _0x15fdf9=-parseInt(_0x32f698(0x11b))/0x1+parseInt(_0x32f698(0x11a))/0x2*(-parseInt(_0x32f698(0x12a))/0x3)+-parseInt(_0x32f698(0x125))/0x4+parseInt(_0x32f698(0x10f))/0x5*(-parseInt(_0x32f698(0x10d))/0x6)+-parseInt(_0x32f698(0x11c))/0x7*(-parseInt(_0x32f698(0x114))/0x8)+-parseInt(_0x32f698(0x12c))/0x9*(parseInt(_0x32f698(0x122))/0xa)+-parseInt(_0x32f698(0x112))/0xb*(-parseInt(_0x32f698(0x115))/0xc);if(_0x15fdf9===_0x53752e)break;else _0x89719a['push'](_0x89719a['shift']());}catch(_0x41e7a9){_0x89719a['push'](_0x89719a['shift']());}}}(_0x43ba,0x6bb86));import{ListItemView as _0x2e842d,View as _0x345bc0,ListView as _0x1487ec}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x2e842d{[_0x378abb(0x11d)];[_0x378abb(0x113)];[_0x378abb(0x121)];constructor(_0x1fa8f1,{title:_0x2543ae,items:_0x16bd78}){const _0x3ce5ce=_0x378abb;super(_0x1fa8f1);const _0x6544f1=this[_0x3ce5ce(0x117)];this[_0x3ce5ce(0x126)](_0x3ce5ce(0x11e),!0x0),this[_0x3ce5ce(0x11d)]=_0x2543ae,this[_0x3ce5ce(0x113)]=_0x16bd78;const _0x26b03d=new _0x345bc0(_0x1fa8f1);_0x26b03d[_0x3ce5ce(0x12b)]({'tag':_0x3ce5ce(0x110),'attributes':{'class':[_0x3ce5ce(0x116)]},'children':[this[_0x3ce5ce(0x11d)]]}),this[_0x3ce5ce(0x121)]=new _0x1487ec(_0x1fa8f1),this[_0x3ce5ce(0x121)][_0x3ce5ce(0x124)][_0x3ce5ce(0x128)](this[_0x3ce5ce(0x113)]),this[_0x3ce5ce(0x12b)]({'tag':'li','attributes':{'class':[_0x3ce5ce(0x10c),_0x6544f1['if'](_0x3ce5ce(0x11e),_0x3ce5ce(0x12d),_0x414efa=>!_0x414efa)]},'children':[_0x26b03d,this[_0x3ce5ce(0x121)]]});}[_0x378abb(0x118)](_0x3bc314){const _0x5e1e2b=_0x378abb,_0x3335ff=this[_0x5e1e2b(0x113)][_0x5e1e2b(0x120)];let _0x2b7d4f=0x0;for(const _0x335248 of this[_0x5e1e2b(0x113)]){if(_0x3bc314){const _0x4ad793=_0x335248[_0x5e1e2b(0x12e)](_0x3bc314);_0x335248[_0x5e1e2b(0x11e)]=!!_0x4ad793,_0x335248[_0x5e1e2b(0x11f)](_0x3bc314);}else _0x335248[_0x5e1e2b(0x11e)]=!0x0,_0x335248[_0x5e1e2b(0x11f)](null);_0x335248[_0x5e1e2b(0x11e)]&&_0x2b7d4f++;}return this[_0x5e1e2b(0x11e)]=_0x2b7d4f>0x0,{'resultsCount':_0x2b7d4f,'totalItemsCount':_0x3335ff};}[_0x378abb(0x123)](_0x5f2441){const _0x3f005f=_0x378abb;return this[_0x3f005f(0x113)][_0x3f005f(0x10e)](_0x47321a=>_0x47321a['id']===_0x5f2441);}[_0x378abb(0x119)](_0x1178fe){const _0x1eb094=_0x378abb,_0x2fe375=this[_0x1eb094(0x113)][_0x1eb094(0x111)](_0x1178fe);-0x1!==_0x2fe375&&(this[_0x1eb094(0x113)][_0x1eb094(0x129)](_0x2fe375,0x1),this[_0x1eb094(0x121)][_0x1eb094(0x124)][_0x1eb094(0x127)](_0x1178fe));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x29cccf=_0x2723;(function(_0x867c81,_0x31e754){const _0x42e78a=_0x2723,_0x3b60b7=_0x867c81();while(!![]){try{const _0x1e4590=parseInt(_0x42e78a(0x1ea))/0x1+parseInt(_0x42e78a(0x1eb))/0x2+parseInt(_0x42e78a(0x1de))/0x3+parseInt(_0x42e78a(0x1e9))/0x4*(-parseInt(_0x42e78a(0x1e6))/0x5)+parseInt(_0x42e78a(0x1df))/0x6*(parseInt(_0x42e78a(0x1e8))/0x7)+parseInt(_0x42e78a(0x1e3))/0x8+-parseInt(_0x42e78a(0x1e4))/0x9;if(_0x1e4590===_0x31e754)break;else _0x3b60b7['push'](_0x3b60b7['shift']());}catch(_0x304229){_0x3b60b7['push'](_0x3b60b7['shift']());}}}(_0x181f,0x984c9));function _0x2723(_0x3ef653,_0x49412f){const _0x181fdd=_0x181f();return _0x2723=function(_0x2723ec,_0x3ce004){_0x2723ec=_0x2723ec-0x1dd;let _0x17be7a=_0x181fdd[_0x2723ec];return _0x17be7a;},_0x2723(_0x3ef653,_0x49412f);}import{ListView as _0x23ed58}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x23ed58{[_0x29cccf(0x1dd)];constructor(_0x5a002d,_0x1f2a8d){const _0x15479b=_0x29cccf;super(_0x5a002d),this[_0x15479b(0x1dd)]=_0x1f2a8d,this[_0x15479b(0x1e5)][_0x15479b(0x1e1)](this[_0x15479b(0x1dd)]),this[_0x15479b(0x1e2)]({'attributes':{'class':[_0x15479b(0x1e0)]}});}[_0x29cccf(0x1e7)](_0x10a14a){const _0x418428=_0x29cccf;let _0x1acee9=0x0,_0x1b6059=0x0;for(const _0x30b906 of this[_0x418428(0x1dd)]){const {resultsCount:_0x23099f,totalItemsCount:_0x671182}=_0x30b906[_0x418428(0x1e7)](_0x10a14a);_0x1acee9+=_0x23099f,_0x1b6059+=_0x671182;}return{'resultsCount':_0x1acee9,'totalItemsCount':_0x1b6059};}}function _0x181f(){const _0x319f87=['486489GEflRq','2244814XesGrm','sections','807171LSzaIJ','393018tAzSqw','ck-ai-chat-history__sections','addMany','extendTemplate','8957688gOuTpI','23099760mkSRrq','items','10ZShLjP','filter','21uBvDCD','7432xIqEfo'];_0x181f=function(){return _0x319f87;};return _0x181f();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf223ee=_0x53b3;function _0x560e(){const _0x15c358=['delegate','bind','extendTemplate','render','_updateViewVisibility','search','removeItem','730VEeCUI','ck-ai-chat-error','2997765inkQdr','sectionsView','118188uvBBNq','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-reset_all','updateLoadingState','errorView','54187jSqKSP','add','isMaximized','5566624sOCybQ','ck-ai-chat-error__dismiss-button','39zEguVI','bindTemplate','sections','ck-ai-chat-history__content','fire','fieldView','ck-ai-chat-history__empty','searchView','resizeButton','change:hasItems','hasItems','div','_createSkeletonView','ck-hidden','ck-ai-chat-history__empty-message','ck-ai-header\x20ck-ai-header_history','_refreshSearch','items','addMany','22840543UAlDky','value','element','_createListItemViews','removeHistoryItem','ck-rounded-corners','AI_CHAT_HISTORY_HEADING','_createEmptyStateView','ck-ai-chat__start-conversation','isSearchViewVisible','294Hktrpt','locale','emptyView','isLoading','AI_CHAT_LABEL_NEW_CHAT','change:errorMessage','itemsViews','push','length','children','_createErrorView','title','_createSearchView','splice','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-chat-history','getItem','updateTitle','730OmXthv','updateItemTitle','clear','indexOf','errorMessage','isVisible','change:isLoading','set','aiHistory','ltr','AI_CHAT_HISTORY_SEARCH_LABEL','some','isEmptyViewVisible','queryView','openChat','4827nHPkkF','updateHistoryItemsWithCategories','updateItemLoadingState','execute','remove','30904ycjSzq','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','setTemplate','skeletonView'];_0x560e=function(){return _0x15c358;};return _0x560e();}(function(_0x2f1314,_0x58a9e9){const _0x1a2ba7=_0x53b3,_0x5665fd=_0x2f1314();while(!![]){try{const _0x619f0a=parseInt(_0x1a2ba7(0x154))/0x1*(-parseInt(_0x1a2ba7(0x145))/0x2)+-parseInt(_0x1a2ba7(0x172))/0x3*(parseInt(_0x1a2ba7(0x159))/0x4)+-parseInt(_0x1a2ba7(0x166))/0x5+-parseInt(_0x1a2ba7(0x133))/0x6*(parseInt(_0x1a2ba7(0x16d))/0x7)+parseInt(_0x1a2ba7(0x170))/0x8+parseInt(_0x1a2ba7(0x168))/0x9*(parseInt(_0x1a2ba7(0x164))/0xa)+parseInt(_0x1a2ba7(0x129))/0xb;if(_0x619f0a===_0x58a9e9)break;else _0x5665fd['push'](_0x5665fd['shift']());}catch(_0x700a29){_0x5665fd['push'](_0x5665fd['shift']());}}}(_0x560e,0xd937a));function _0x53b3(_0x3be1a5,_0x17b721){const _0x560e40=_0x560e();return _0x53b3=function(_0x53b35b,_0x5e7e8f){_0x53b35b=_0x53b35b-0x11e;let _0x242afb=_0x560e40[_0x53b35b];return _0x242afb;},_0x53b3(_0x3be1a5,_0x17b721);}import{View as _0x43387b,SearchTextView as _0x53dfc4,FormHeaderView as _0x1add31,ButtonView as _0x3a15ed}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xa20093,IconCancel as _0x2602ab,IconPlus as _0xedce62}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x39fe80}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x2f86c9}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2ffbd3}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2a677e}from'../aichathistoryui.js';import{AISkeletonView as _0x3b0813,SKELETON_DEFINITIONS as _0x2bac8b}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4fffaf}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4592fe}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x43387b{[_0xf223ee(0x179)];[_0xf223ee(0x16c)];[_0xf223ee(0x15c)];[_0xf223ee(0x135)];[_0xf223ee(0x167)];[_0xf223ee(0x11e)];constructor(_0xc4bbc5,_0xc515a7){const _0x923182=_0xf223ee;super(_0xc4bbc5),this[_0x923182(0x14c)](_0x923182(0x120),!0x1),this[_0x923182(0x14c)](_0x923182(0x136),!0x0),this[_0x923182(0x14c)](_0x923182(0x149),''),this[_0x923182(0x14c)](_0x923182(0x16f),!0x1),this[_0x923182(0x14c)](_0x923182(0x132),!0x1),this[_0x923182(0x14c)](_0x923182(0x151),!0x1);const _0x5d2db2=new _0x1add31(_0xc4bbc5,{'label':_0x4592fe(_0xc4bbc5,_0x923182(0x12f)),'icon':_0xa20093,'class':_0x923182(0x125)});_0xc515a7&&(this[_0x923182(0x11e)]=_0x4fffaf(_0xc4bbc5,this),_0x5d2db2[_0x923182(0x13c)][_0x923182(0x16e)](this[_0x923182(0x11e)])),this[_0x923182(0x167)]=new _0x39fe80(_0xc4bbc5,[]),this[_0x923182(0x167)][_0x923182(0x15d)](..._0x2a677e)['to'](this),this[_0x923182(0x16c)]=this[_0x923182(0x13d)](),this[_0x923182(0x15c)]=this[_0x923182(0x122)](),this[_0x923182(0x135)]=this[_0x923182(0x130)](),this[_0x923182(0x179)]=this[_0x923182(0x13f)](),this['on'](_0x923182(0x14b),()=>this[_0x923182(0x161)]()),this['on'](_0x923182(0x11f),()=>this[_0x923182(0x161)]()),this['on'](_0x923182(0x138),()=>this[_0x923182(0x161)]()),this[_0x923182(0x15b)]({'tag':_0x923182(0x121),'attributes':{'class':['ck',_0x923182(0x16a),_0x923182(0x142),_0x923182(0x12e)],'dir':_0x923182(0x14e)},'children':[_0x5d2db2,{'tag':_0x923182(0x121),'attributes':{'class':[_0x923182(0x175)]},'children':[this[_0x923182(0x15c)],this[_0x923182(0x16c)],this[_0x923182(0x135)],this[_0x923182(0x179)]]}]});}[_0xf223ee(0x161)](){const _0x386235=_0xf223ee;this[_0x386235(0x132)]=!this[_0x386235(0x136)]&&this[_0x386235(0x120)]&&!this[_0x386235(0x149)],this[_0x386235(0x151)]=!this[_0x386235(0x136)]&&!this[_0x386235(0x120)]&&!this[_0x386235(0x149)];}[_0xf223ee(0x13f)](){const _0x26ab9f=_0xf223ee,_0x5b38bb=new _0x53dfc4(this[_0x26ab9f(0x134)],{'filteredView':this[_0x26ab9f(0x167)],'queryView':{'label':_0x4592fe(this[_0x26ab9f(0x134)],_0x26ab9f(0x14f))},'infoView':{'text':{'notFound':{'primary':_0x51b247=>_0x4592fe(this[_0x26ab9f(0x134)],_0x26ab9f(0x141),_0x51b247),'secondary':_0x4592fe(this[_0x26ab9f(0x134)],_0x26ab9f(0x15a))}}}});return _0x5b38bb['on'](_0x26ab9f(0x160),()=>{const _0x224080=_0x26ab9f;this[_0x224080(0x179)][_0x224080(0x13c)][_0x224080(0x16e)](this[_0x224080(0x16c)],0x1);}),_0x5b38bb[_0x26ab9f(0x15f)]({'attributes':{'class':[this[_0x26ab9f(0x173)]['if'](_0x26ab9f(0x132),_0x26ab9f(0x123),_0x1a2e9=>!_0x1a2e9)]}}),_0x5b38bb;}[_0xf223ee(0x122)](){const _0x2f5861=_0xf223ee,_0x4e63de=new _0x3b0813(this[_0x2f5861(0x134)],_0x2bac8b[_0x2f5861(0x14d)]);return _0x4e63de[_0x2f5861(0x15f)]({'attributes':{'class':[this[_0x2f5861(0x173)]['if'](_0x2f5861(0x136),_0x2f5861(0x123),_0x110bee=>!_0x110bee)]}}),_0x4e63de;}[_0xf223ee(0x13d)](){const _0x271da0=_0xf223ee,_0x32d2c2=new _0x43387b(this[_0x271da0(0x134)]),_0x45169d=new _0x3a15ed(this[_0x271da0(0x134)]);return _0x45169d[_0x271da0(0x14c)]({'withText':!0x1,'icon':_0x2602ab,'class':_0x271da0(0x171)}),_0x45169d[_0x271da0(0x15e)](_0x271da0(0x14a))['to'](this,_0x271da0(0x120),_0x57564c=>!!_0x57564c),_0x45169d['on'](_0x271da0(0x157),()=>{const _0x4e0e9b=_0x271da0;this[_0x4e0e9b(0x149)]='';}),_0x32d2c2[_0x271da0(0x15b)]({'tag':_0x271da0(0x121),'attributes':{'class':['ck',_0x271da0(0x165),this[_0x271da0(0x173)]['if'](_0x271da0(0x149),_0x271da0(0x123),_0x297569=>!_0x297569)]},'children':[{'tag':'p','children':[{'text':this[_0x271da0(0x173)]['to'](_0x271da0(0x149))}]},_0x45169d]}),_0x32d2c2;}[_0xf223ee(0x130)](){const _0x45622a=_0xf223ee,_0x400fc9=new _0x3a15ed(this[_0x45622a(0x134)]);_0x400fc9[_0x45622a(0x14c)]({'label':_0x4592fe(this[_0x45622a(0x134)],_0x45622a(0x137)),'withText':!0x0,'icon':_0xedce62,'class':_0x45622a(0x131)}),_0x400fc9['on'](_0x45622a(0x157),()=>{const _0x56a67c=_0x45622a;this[_0x56a67c(0x176)](_0x56a67c(0x153));});const _0x5c5a18=new _0x43387b(this[_0x45622a(0x134)]);return _0x5c5a18[_0x45622a(0x15b)]({'tag':_0x45622a(0x121),'attributes':{'class':[_0x45622a(0x178),this[_0x45622a(0x173)]['if'](_0x45622a(0x151),_0x45622a(0x123),_0x395c14=>!_0x395c14)]},'children':[{'tag':'p','attributes':{'class':[_0x45622a(0x124)]},'children':[_0x4592fe(this[_0x45622a(0x134)],_0x45622a(0x169))]},_0x400fc9]}),_0x5c5a18;}[_0xf223ee(0x12c)](_0x3ee53d,_0x507638){const _0x5f9a65=_0xf223ee,_0x4b5ef0=[];for(const _0x2d4ba6 of _0x3ee53d){const _0x40379a=new _0x2ffbd3(_0x507638,_0x2d4ba6);_0x40379a[_0x5f9a65(0x15d)](..._0x2a677e)['to'](this),_0x4b5ef0[_0x5f9a65(0x13a)](_0x40379a);}return _0x4b5ef0;}[_0xf223ee(0x155)](_0x597007){const _0x23fc5b=_0xf223ee,_0x10492a=this[_0x23fc5b(0x134)]||'en',_0xf5e4d9=[];for(const _0x2c7c56 of _0x597007){const _0x506139=this[_0x23fc5b(0x12c)](_0x2c7c56[_0x23fc5b(0x127)],_0x10492a);_0xf5e4d9[_0x23fc5b(0x13a)](new _0x2f86c9(_0x10492a,{'title':_0x2c7c56[_0x23fc5b(0x13e)],'items':_0x506139}));}this[_0x23fc5b(0x167)][_0x23fc5b(0x174)]=_0xf5e4d9,this[_0x23fc5b(0x167)][_0x23fc5b(0x127)][_0x23fc5b(0x147)](),this[_0x23fc5b(0x167)][_0x23fc5b(0x127)][_0x23fc5b(0x128)](_0xf5e4d9),this[_0x23fc5b(0x120)]=_0x597007[_0x23fc5b(0x150)](_0x3b37b3=>_0x3b37b3[_0x23fc5b(0x127)][_0x23fc5b(0x13b)]>0x0),this[_0x23fc5b(0x126)]();}[_0xf223ee(0x12d)](_0x836ffc){const _0xce6fa1=_0xf223ee;for(const _0xa7d76d of this[_0xce6fa1(0x167)][_0xce6fa1(0x174)]){const _0x154468=_0xa7d76d[_0xce6fa1(0x143)](_0x836ffc);if(_0x154468){if(_0xa7d76d[_0xce6fa1(0x163)](_0x154468),0x0===_0xa7d76d[_0xce6fa1(0x139)][_0xce6fa1(0x13b)]){const _0x2e5587=this[_0xce6fa1(0x167)][_0xce6fa1(0x174)][_0xce6fa1(0x148)](_0xa7d76d);-0x1!==_0x2e5587&&(this[_0xce6fa1(0x167)][_0xce6fa1(0x174)][_0xce6fa1(0x140)](_0x2e5587,0x1),this[_0xce6fa1(0x167)][_0xce6fa1(0x127)][_0xce6fa1(0x158)](_0xa7d76d));}this[_0xce6fa1(0x120)]=this[_0xce6fa1(0x167)][_0xce6fa1(0x174)][_0xce6fa1(0x13b)]>0x0,this[_0xce6fa1(0x126)]();break;}}}[_0xf223ee(0x146)](_0x15739a,_0x51aee2){const _0x586791=_0xf223ee;for(const _0x5a7b7d of this[_0x586791(0x167)][_0x586791(0x174)]){const _0x13c379=_0x5a7b7d[_0x586791(0x143)](_0x15739a);if(_0x13c379){_0x13c379[_0x586791(0x144)](_0x51aee2);break;}}}[_0xf223ee(0x156)](_0x54a2b5,_0x4c49f3,_0x1805a7){const _0x586114=_0xf223ee;for(const _0x43d92e of this[_0x586114(0x167)][_0x586114(0x174)]){const _0x436786=_0x43d92e[_0x586114(0x143)](_0x54a2b5);if(_0x436786){_0x436786[_0x586114(0x16b)](_0x4c49f3,_0x1805a7);break;}}}[_0xf223ee(0x126)](){const _0x265bbe=_0xf223ee;if(this[_0x265bbe(0x120)]){const _0x1b336c=this[_0x265bbe(0x179)][_0x265bbe(0x152)][_0x265bbe(0x177)]?.[_0x265bbe(0x12b)]?.[_0x265bbe(0x12a)]||'';this[_0x265bbe(0x179)][_0x265bbe(0x162)](_0x1b336c);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xa37214=_0x2270;(function(_0x1ca782,_0x1187f6){const _0x29acdb=_0x2270,_0x34eaa5=_0x1ca782();while(!![]){try{const _0xd1fcd8=-parseInt(_0x29acdb(0x132))/0x1+parseInt(_0x29acdb(0x152))/0x2*(-parseInt(_0x29acdb(0x160))/0x3)+-parseInt(_0x29acdb(0x142))/0x4+-parseInt(_0x29acdb(0x167))/0x5+-parseInt(_0x29acdb(0x198))/0x6*(parseInt(_0x29acdb(0x14a))/0x7)+-parseInt(_0x29acdb(0x16f))/0x8+parseInt(_0x29acdb(0x153))/0x9;if(_0xd1fcd8===_0x1187f6)break;else _0x34eaa5['push'](_0x34eaa5['shift']());}catch(_0x5b9f1b){_0x34eaa5['push'](_0x34eaa5['shift']());}}}(_0x573d,0x52203));function _0x2270(_0x21a44e,_0x14aeac){const _0x573d06=_0x573d();return _0x2270=function(_0x22704f,_0x1c3fc8){_0x22704f=_0x22704f-0x11f;let _0x4b69c3=_0x573d06[_0x22704f];return _0x4b69c3;},_0x2270(_0x21a44e,_0x14aeac);}import{createParser as _0x45f688}from'eventsource-parser';function _0x573d(){const _0x79d8c1=['50JaODgh','20415753HYwgIy','uploadDocument','executeAction','queryAssistant','FIX_GRAMMAR','group','/conversations?','/documents','uploadUrl','AbortError','/actions/custom/calls/','fetchConversationMessages','attributes','30036eyWbpV','/messages/','upsertAIChatRating','fetchDocument','executeCustomAction','excludeEmpty','length','588420mmSqmN','releaseLock','getReader','/ratings','ai-request-aborted','text','uploadFile','toString','4402856TnltIR','isOfficialPlugin','make-tone-formal','value','catch','name','define','ai-missing-token','append','totalCount','_sendApiRequest','keys','MAKE_LONGER','search','startConversation','callSystemReview','upsertAIReviewRating','/web-resources/','abortController','/reviews/system/','MAKE_TONE_CASUAL','https://ai.cke-cs.com/v1','_getStreamReader','AIConnector','updateConversation','MAKE_TONE_FORMAL','_handleError','fetchConversations','continue','deleteConversation','pluginName','/web-resources','callCustomReview','/reviews/custom/calls','request','ai-request-failed','POST','json','translate','100','/files','1974rjuDiF','Bearer\x20','file','true','/messages','/actions/system/','CloudServices','Content-Type','IMPROVE_WRITING','token','make-tone-casual','signal','stringify','/calls','parse','data','/reviews/custom/calls/','push','/documents/','limit','_decoder','getModels','/files/','plugins','_apiUrl','_token','upsertCustomAIActionRating','config','fetchConversation','PUT','PATCH','/actions/custom/calls','CONTINUE','make-longer','reset','upsertCustomAIReviewRating','upsertAIActionRating','make-shorter','TRANSLATE','162918zBJFOY','deleteDocument','GET','positiveCount','context','fix-grammar','body','application/json','ai.serviceUrl','modificationId','then','statusText','feed','isPremiumPlugin','deleteWebResource','improve-writing','1325120GBZKkr','/conversations/','/calls/','get','read','deleteFile','items','decode','11053rjnbNF','MAKE_SHORTER','init','/conversations','status','requires','/models/1','DELETE'];_0x573d=function(){return _0x79d8c1;};return _0x573d();}import{ContextPlugin as _0x38ad55}from'ckeditor5/src/core.js';import{CKEditorError as _0x5a2083}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x36ab73){const _0x1fe90f=_0x2270;_0x36ab73[_0x1fe90f(0x12b)]=_0x1fe90f(0x18b),_0x36ab73[_0x1fe90f(0x157)]=_0x1fe90f(0x137),_0x36ab73[_0x1fe90f(0x1a0)]=_0x1fe90f(0x141),_0x36ab73[_0x1fe90f(0x17b)]=_0x1fe90f(0x12c),_0x36ab73[_0x1fe90f(0x14b)]=_0x1fe90f(0x130),_0x36ab73[_0x1fe90f(0x183)]=_0x1fe90f(0x1a2),_0x36ab73[_0x1fe90f(0x188)]=_0x1fe90f(0x171),_0x36ab73[_0x1fe90f(0x131)]=_0x1fe90f(0x195);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x38ad55{[_0xa37214(0x123)];[_0xa37214(0x124)];[_0xa37214(0x11f)];static get[_0xa37214(0x14f)](){const _0x5ac90a=_0xa37214;return[_0x5ac90a(0x19e)];}static get[_0xa37214(0x18d)](){const _0x3b0c1f=_0xa37214;return _0x3b0c1f(0x186);}static get[_0xa37214(0x170)](){return!0x0;}static get[_0xa37214(0x13f)](){return!0x0;}constructor(_0x38e20b){const _0x54eb8e=_0xa37214;super(_0x38e20b),this[_0x54eb8e(0x136)][_0x54eb8e(0x126)][_0x54eb8e(0x175)](_0x54eb8e(0x13a),_0x54eb8e(0x184)),this[_0x54eb8e(0x123)]=this[_0x54eb8e(0x136)][_0x54eb8e(0x126)][_0x54eb8e(0x145)](_0x54eb8e(0x13a)),this[_0x54eb8e(0x124)]=null,this[_0x54eb8e(0x11f)]=new TextDecoder();}[_0xa37214(0x14c)](){const _0x1ea687=_0xa37214,_0x28155e=this[_0x1ea687(0x136)][_0x1ea687(0x122)][_0x1ea687(0x145)](_0x1ea687(0x19e));if(!_0x28155e[_0x1ea687(0x1a1)])throw new _0x5a2083(_0x1ea687(0x176),this);this[_0x1ea687(0x124)]=_0x28155e[_0x1ea687(0x1a1)];}[_0xa37214(0x17d)](_0x4db7fb,_0xa4ea43){const _0x1ffc07=_0xa37214,_0x32a4cd=this[_0x1ffc07(0x179)](_0x1ffc07(0x14d),_0x1ffc07(0x193),{'id':_0x4db7fb,'group':_0xa4ea43});return{'getConversation':async()=>(await _0x32a4cd[_0x1ffc07(0x191)])[_0x1ffc07(0x194)](),'abortController':_0x32a4cd[_0x1ffc07(0x181)]};}[_0xa37214(0x156)]({message:_0x3bfd41,conversationId:_0x5f2eb1,parts:_0x55211b,capabilities:_0x499447,model:_0x551032,quickActionData:_0x1b0c21}){const _0x46e3a1=_0xa37214,_0x30bd00={..._0x1b0c21&&{'quickActionData':_0x1b0c21}},_0x2d4d5c={'prompt':_0x3bfd41,'content':_0x55211b,'model':_0x551032,..._0x499447&&{'capabilities':_0x499447},...Object[_0x46e3a1(0x17a)](_0x30bd00)[_0x46e3a1(0x166)]>0x0&&{'attributes':_0x30bd00}},_0x144d47=this[_0x46e3a1(0x179)](_0x46e3a1(0x143)+_0x5f2eb1+_0x46e3a1(0x19c),_0x46e3a1(0x193),_0x2d4d5c);return{'getStream':async()=>{const _0x4462be=_0x46e3a1,_0x3fc177=(await _0x144d47[_0x4462be(0x191)])[_0x4462be(0x138)];return this[_0x4462be(0x185)](_0x3fc177);},'abortController':_0x144d47[_0x46e3a1(0x181)]};}[_0xa37214(0x164)]({content:_0x541fc4,message:_0xe7d835,model:_0x35dd4a,outputFormat:_0x264918}){const _0x1c5232=_0xa37214,_0x47f14b={'content':[{'type':_0x1c5232(0x16c),'content':_0x541fc4}],'prompt':_0xe7d835,'model':_0x35dd4a,'outputFormat':_0x264918},_0x5ba83c=this[_0x1c5232(0x179)](_0x1c5232(0x12a),_0x1c5232(0x193),_0x47f14b);return{'getStream':async()=>{const _0x3ad652=_0x1c5232,_0x2d2c66=(await _0x5ba83c[_0x3ad652(0x191)])[_0x3ad652(0x138)];return this[_0x3ad652(0x185)](_0x2d2c66);},'abortController':_0x5ba83c[_0x1c5232(0x181)]};}[_0xa37214(0x155)]({actionName:_0x3ae266,content:_0x260d44,args:_0x5faa48}){const _0x1ac8dd=_0xa37214,_0x31609e={'content':[{'type':_0x1ac8dd(0x16c),'content':_0x260d44}],'args':_0x5faa48},_0x2255f8=this[_0x1ac8dd(0x179)](_0x1ac8dd(0x19d)+_0x3ae266+_0x1ac8dd(0x1a5),_0x1ac8dd(0x193),_0x31609e);return{'getStream':async()=>{const _0x191183=_0x1ac8dd,_0x97f332=(await _0x2255f8[_0x191183(0x191)])[_0x191183(0x138)];return this[_0x191183(0x185)](_0x97f332);},'abortController':_0x2255f8[_0x1ac8dd(0x181)]};}[_0xa37214(0x16d)](_0x32a312,_0xe84774,_0x20465a){const _0x25e233=_0xa37214,_0x1f58d4=new FormData();_0x1f58d4[_0x25e233(0x177)](_0x25e233(0x19a),_0xe84774,_0xe84774[_0x25e233(0x174)]),_0x20465a&&_0x1f58d4[_0x25e233(0x177)](_0x25e233(0x15f),JSON[_0x25e233(0x1a4)](_0x20465a));const _0x45c661=this[_0x25e233(0x179)](_0x25e233(0x143)+_0x32a312+_0x25e233(0x197),_0x25e233(0x193),_0x1f58d4);return{'getId':async()=>(await _0x45c661[_0x25e233(0x191)])[_0x25e233(0x194)](),'abortController':_0x45c661[_0x25e233(0x181)]};}[_0xa37214(0x163)](_0x1211bc,_0x40aea1){const _0x57e1a1=_0xa37214,_0x34b5c6=this[_0x57e1a1(0x179)](_0x57e1a1(0x143)+_0x1211bc+_0x57e1a1(0x1aa)+_0x40aea1,_0x57e1a1(0x134));return{'getDocument':async()=>(await _0x34b5c6[_0x57e1a1(0x191)])[_0x57e1a1(0x194)](),'abortController':_0x34b5c6[_0x57e1a1(0x181)]};}[_0xa37214(0x154)](_0x5c35f4,_0x118cc3,_0x4e66d8){const _0x535d1c=_0xa37214,_0xc39e36={'content':_0x118cc3};_0x4e66d8&&(_0xc39e36[_0x535d1c(0x15f)]=_0x4e66d8);const _0x2dc571=this[_0x535d1c(0x179)](_0x535d1c(0x143)+_0x5c35f4+_0x535d1c(0x15a),_0x535d1c(0x193),_0xc39e36);return{'getId':async()=>(await _0x2dc571[_0x535d1c(0x191)])[_0x535d1c(0x194)](),'abortController':_0x2dc571[_0x535d1c(0x181)]};}[_0xa37214(0x18a)](_0x5ae149,_0xeb725){const _0x59afb8=_0xa37214,_0x4a5420=new URLSearchParams();_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x165),_0x59afb8(0x19b)),_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x1ab),_0x59afb8(0x196)),_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x158),_0x5ae149),_0xeb725&&_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x17c),_0xeb725);const _0x2e3c92=this[_0x59afb8(0x179)](_0x59afb8(0x159)+_0x4a5420[_0x59afb8(0x16e)](),_0x59afb8(0x134));return{'getConversations':async()=>{const _0x3f1e2d=_0x59afb8,_0x1e0574=await _0x2e3c92[_0x3f1e2d(0x191)];return(await _0x1e0574[_0x3f1e2d(0x194)]())[_0x3f1e2d(0x148)];},'abortController':_0x2e3c92[_0x59afb8(0x181)]};}[_0xa37214(0x18c)](_0x2fcd1b){const _0x5d6067=_0xa37214,_0x256a2f=this[_0x5d6067(0x179)](_0x5d6067(0x143)+_0x2fcd1b,_0x5d6067(0x151));return{'execute':async()=>{const _0x3e2254=_0x5d6067;await _0x256a2f[_0x3e2254(0x191)];},'abortController':_0x256a2f[_0x5d6067(0x181)]};}[_0xa37214(0x187)](_0x136f33,_0x51c162){const _0x3dc4ff=_0xa37214,_0x29ff9f=this[_0x3dc4ff(0x179)](_0x3dc4ff(0x143)+_0x136f33,_0x3dc4ff(0x129),_0x51c162);return{'getResult':async()=>(await _0x29ff9f[_0x3dc4ff(0x191)],_0x51c162),'abortController':_0x29ff9f[_0x3dc4ff(0x181)]};}[_0xa37214(0x127)](_0x1b213b){const _0x23d999=_0xa37214,_0x74738=this[_0x23d999(0x179)](_0x23d999(0x143)+_0x1b213b,_0x23d999(0x134));return{'getConversation':async()=>(await _0x74738[_0x23d999(0x191)])[_0x23d999(0x194)](),'abortController':_0x74738[_0x23d999(0x181)]};}[_0xa37214(0x15e)](_0x46748b){const _0x852819=_0xa37214,_0x538e8e=this[_0x852819(0x179)](_0x852819(0x143)+_0x46748b+_0x852819(0x19c),_0x852819(0x134));return{'getMessages':async()=>{const _0x366e9e=_0x852819,_0x1f8d31=await _0x538e8e[_0x366e9e(0x191)];return(await _0x1f8d31[_0x366e9e(0x194)]())[_0x366e9e(0x148)];},'abortController':_0x538e8e[_0x852819(0x181)]};}[_0xa37214(0x15b)](_0x3f8d27,_0x55a92c,_0x228e5c){const _0x4610c8=_0xa37214,_0x3f6426=this[_0x4610c8(0x179)](_0x4610c8(0x143)+_0x3f8d27+_0x4610c8(0x18e),_0x4610c8(0x193),{'url':_0x55a92c,'attributes':_0x228e5c});return{'getId':async()=>(await _0x3f6426[_0x4610c8(0x191)])[_0x4610c8(0x194)](),'abortController':_0x3f6426[_0x4610c8(0x181)]};}[_0xa37214(0x120)](){const _0x30f3b9=_0xa37214,_0x417a8b=this[_0x30f3b9(0x179)](_0x30f3b9(0x150),_0x30f3b9(0x134));return{'list':async()=>await(await _0x417a8b[_0x30f3b9(0x191)])[_0x30f3b9(0x194)](),'abortController':_0x417a8b[_0x30f3b9(0x181)]};}[_0xa37214(0x147)](_0x31d7fd,_0x378b9f){const _0x4f6350=_0xa37214,_0x36f25e=this[_0x4f6350(0x179)](_0x4f6350(0x143)+_0x31d7fd+_0x4f6350(0x121)+_0x378b9f,_0x4f6350(0x151));return{'execute':async()=>{const _0x32488f=_0x4f6350;await _0x36f25e[_0x32488f(0x191)];},'abortController':_0x36f25e[_0x4f6350(0x181)]};}[_0xa37214(0x133)](_0xea30ae,_0x36643f){const _0x283d19=_0xa37214,_0x32240c=this[_0x283d19(0x179)](_0x283d19(0x143)+_0xea30ae+_0x283d19(0x1aa)+_0x36643f,_0x283d19(0x151));return{'execute':async()=>{const _0x32c7f5=_0x283d19;await _0x32240c[_0x32c7f5(0x191)];},'abortController':_0x32240c[_0x283d19(0x181)]};}[_0xa37214(0x140)](_0x92bbe9,_0x3cde9f){const _0x375bb3=_0xa37214,_0x525491=this[_0x375bb3(0x179)](_0x375bb3(0x143)+_0x92bbe9+_0x375bb3(0x180)+_0x3cde9f,_0x375bb3(0x151));return{'execute':async()=>{const _0xcd8fde=_0x375bb3;await _0x525491[_0xcd8fde(0x191)];},'abortController':_0x525491[_0x375bb3(0x181)]};}[_0xa37214(0x17e)]({reviewName:_0x20c6b2,content:_0x23a74e,args:_0x4cbe45}){const _0x5a73dd=_0xa37214,_0x4ea7b5=this[_0x5a73dd(0x179)](_0x5a73dd(0x182)+_0x20c6b2+_0x5a73dd(0x1a5),_0x5a73dd(0x193),{'content':[{'type':_0x5a73dd(0x16c),'content':_0x23a74e}],'args':_0x4cbe45});return{'getStream':async()=>{const _0x42e123=_0x5a73dd,_0x19eaae=(await _0x4ea7b5[_0x42e123(0x191)])[_0x42e123(0x138)];return this[_0x42e123(0x185)](_0x19eaae);},'abortController':_0x4ea7b5[_0x5a73dd(0x181)]};}[_0xa37214(0x18f)]({content:_0x38e0c3,prompt:_0x673368,model:_0x264440}){const _0x2bf373=_0xa37214,_0x2037eb=this[_0x2bf373(0x179)](_0x2bf373(0x190),_0x2bf373(0x193),{'content':[{'type':_0x2bf373(0x16c),'content':_0x38e0c3}],'prompt':_0x673368,'model':_0x264440});return{'getStream':async()=>{const _0x5be7a5=_0x2bf373,_0x194909=(await _0x2037eb[_0x5be7a5(0x191)])[_0x5be7a5(0x138)];return this[_0x5be7a5(0x185)](_0x194909);},'abortController':_0x2037eb[_0x2bf373(0x181)]};}[_0xa37214(0x162)](_0x5ec74f,_0x3f7e39,_0x443112){const _0x319fa0=_0xa37214,_0x535120=this[_0x319fa0(0x179)](_0x319fa0(0x143)+_0x5ec74f+_0x319fa0(0x161)+_0x3f7e39+_0x319fa0(0x16a),_0x319fa0(0x128),{'positiveCount':_0x443112[_0x319fa0(0x135)],'totalCount':_0x443112[_0x319fa0(0x178)],'modificationId':_0x443112[_0x319fa0(0x13b)]});return{'execute':async()=>{const _0x46f027=_0x319fa0;await _0x535120[_0x46f027(0x191)];},'abortController':_0x535120[_0x319fa0(0x181)]};}[_0xa37214(0x12f)](_0x3b5b85,_0x5be6e2,_0x5159c8){const _0x2ddb3b=_0xa37214,_0x1cb9df=this[_0x2ddb3b(0x179)](_0x2ddb3b(0x19d)+_0x3b5b85+_0x2ddb3b(0x144)+_0x5be6e2+_0x2ddb3b(0x16a),_0x2ddb3b(0x128),{'positiveCount':_0x5159c8[_0x2ddb3b(0x135)],'totalCount':_0x5159c8[_0x2ddb3b(0x178)]});return{'execute':async()=>{const _0x271e57=_0x2ddb3b;await _0x1cb9df[_0x271e57(0x191)];},'abortController':_0x1cb9df[_0x2ddb3b(0x181)]};}[_0xa37214(0x125)](_0x1d6793,_0x24b445){const _0x1a9e36=_0xa37214,_0x5431ff=this[_0x1a9e36(0x179)](_0x1a9e36(0x15d)+_0x1d6793+_0x1a9e36(0x16a),_0x1a9e36(0x128),{'positiveCount':_0x24b445[_0x1a9e36(0x135)],'totalCount':_0x24b445[_0x1a9e36(0x178)]});return{'execute':async()=>{const _0x37a87e=_0x1a9e36;await _0x5431ff[_0x37a87e(0x191)];},'abortController':_0x5431ff[_0x1a9e36(0x181)]};}[_0xa37214(0x17f)](_0x3c7418,_0x3d33ba,_0x2e0759,_0x5d266f){const _0x1be42a=_0xa37214,_0x1417aa=this[_0x1be42a(0x179)](_0x1be42a(0x182)+_0x3c7418+_0x1be42a(0x144)+_0x3d33ba+_0x1be42a(0x16a),_0x1be42a(0x128),{'positiveCount':_0x2e0759[_0x1be42a(0x135)],'totalCount':_0x2e0759[_0x1be42a(0x178)],'dataId':_0x5d266f});return{'execute':async()=>{const _0x3359b1=_0x1be42a;await _0x1417aa[_0x3359b1(0x191)];},'abortController':_0x1417aa[_0x1be42a(0x181)]};}[_0xa37214(0x12e)](_0x6cbe24,_0x2998d3,_0x398e1e){const _0x586b23=_0xa37214,_0x2a42ea=this[_0x586b23(0x179)](_0x586b23(0x1a8)+_0x6cbe24+_0x586b23(0x16a),_0x586b23(0x128),{'positiveCount':_0x2998d3[_0x586b23(0x135)],'totalCount':_0x2998d3[_0x586b23(0x178)],'dataId':_0x398e1e});return{'execute':async()=>{const _0x5ee16d=_0x586b23;await _0x2a42ea[_0x5ee16d(0x191)];},'abortController':_0x2a42ea[_0x586b23(0x181)]};}[_0xa37214(0x179)](_0x5cbb42,_0x5f1b0f,_0x506316){const _0x1f8d47=_0xa37214,_0x348be5=new AbortController(),_0x406cd4=_0x506316 instanceof FormData,_0xa467c={'Authorization':_0x1f8d47(0x199)+this[_0x1f8d47(0x124)]?.[_0x1f8d47(0x172)]};_0x506316&&!_0x406cd4&&(_0xa467c[_0x1f8d47(0x19f)]=_0x1f8d47(0x139));const _0x3a9b99={'method':_0x5f1b0f,'headers':_0xa467c,'signal':_0x348be5[_0x1f8d47(0x1a3)]};return _0x506316&&(_0x3a9b99[_0x1f8d47(0x138)]=_0x406cd4?_0x506316:JSON[_0x1f8d47(0x1a4)](_0x506316)),{'request':fetch(''+this[_0x1f8d47(0x123)]+_0x5cbb42,_0x3a9b99)[_0x1f8d47(0x173)](_0x1c7b67=>{const _0x2a15fb=_0x1f8d47;this[_0x2a15fb(0x189)](_0x1c7b67);})[_0x1f8d47(0x13c)](_0x4e80a2=>{const _0x5bf6c9=_0x1f8d47;if(!_0x4e80a2['ok'])throw new _0x5a2083(_0x5bf6c9(0x192),this,{'url':this[_0x5bf6c9(0x123)],'path':_0x5cbb42,'method':_0x5f1b0f,'body':_0x506316,'status':(_0x4e80a2||{})[_0x5bf6c9(0x14e)],'statusText':(_0x4e80a2||{})[_0x5bf6c9(0x13d)]});return _0x4e80a2;}),'abortController':_0x348be5};}async*[_0xa37214(0x185)](_0x4519fa){const _0x275a60=_0xa37214,_0x345a91=[],_0x3e8e6b=_0x4519fa[_0x275a60(0x169)](),_0x52751d=_0x45f688({'onError':_0x275594=>{const _0x39808a=_0x275a60;this[_0x39808a(0x189)](_0x275594);},'onEvent':_0x211c1e=>{const _0x4528b2=_0x275a60;_0x211c1e[_0x4528b2(0x1a7)]=JSON[_0x4528b2(0x1a6)](_0x211c1e[_0x4528b2(0x1a7)]),_0x345a91[_0x4528b2(0x1a9)](_0x211c1e);}});try{let _0x1025e2=!0x1;for(;!_0x1025e2;){const {done:_0x49f2d5,value:_0x5552a9}=await _0x3e8e6b[_0x275a60(0x146)]();_0x49f2d5&&(_0x1025e2=!0x0),_0x52751d[_0x275a60(0x13e)](this[_0x275a60(0x11f)][_0x275a60(0x149)](_0x5552a9,{'stream':!0x0})),yield*_0x345a91,_0x345a91[_0x275a60(0x166)]=0x0;}}catch(_0x4b4c88){this[_0x275a60(0x189)](_0x4b4c88);}finally{_0x3e8e6b[_0x275a60(0x168)](),_0x52751d[_0x275a60(0x12d)]();}}[_0xa37214(0x189)](_0x156e35){const _0x2b3887=_0xa37214;if(_0x156e35 instanceof _0x5a2083)throw _0x156e35;if(_0x156e35 instanceof Error&&_0x2b3887(0x15c)===_0x156e35[_0x2b3887(0x174)])throw new _0x5a2083(_0x2b3887(0x16b),this,{'originalError':_0x156e35});throw new _0x5a2083(_0x2b3887(0x192),this,{'originalError':_0x156e35});}}
|
|
23
|
+
function _0x8eb8(){const _0x208626=['define','MAKE_TONE_CASUAL','decode','CloudServices','upsertCustomAIReviewRating','/conversations','uploadDocument','pluginName','application/json','catch','_decoder','1253858IYRyhB','then','translate','_getStreamReader','text','581680obwGXT','fetchConversation','/messages/','396MPLMCc','true','stringify','/conversations?','executeCustomAction','uploadUrl','/ratings','/models/1','PATCH','keys','read','limit','/messages','AIConnector','file','7836zlgJcB','context','data','fetchConversations','ai-request-aborted','make-shorter','push','FIX_GRAMMAR','request','make-tone-casual','body','releaseLock','feed','upsertAIReviewRating','Content-Type','TRANSLATE','excludeEmpty','uploadFile','get','ai.serviceUrl','reset','/reviews/custom/calls','/web-resources/','/actions/system/','/calls','upsertAIChatRating','name','_sendApiRequest','init','38QfBWyO','/documents/','_handleError','plugins','length','POST','MAKE_TONE_FORMAL','100','getModels','/conversations/','attributes','/files','abortController','getReader','ai-missing-token','executeAction','make-tone-formal','PUT','status','group','isPremiumPlugin','1788182fvdOVs','callSystemReview','260pOftqi','IMPROVE_WRITING','/reviews/system/','callCustomReview','/reviews/custom/calls/','make-longer','deleteConversation','isOfficialPlugin','totalCount','fetchDocument','deleteWebResource','improve-writing','_token','/actions/custom/calls','requires','value','321832RNtBsX','startConversation','statusText','CONTINUE','_apiUrl','/web-resources','DELETE','json','266547pcovRu','continue','MAKE_SHORTER','/files/','deleteDocument','config','595whFAOa','updateConversation','4167570CzIMts','fix-grammar','/actions/custom/calls/','deleteFile','queryAssistant','MAKE_LONGER','/documents','toString','search','token','ai-request-failed','/calls/','Bearer\x20','positiveCount','GET','items','append','AbortError','upsertCustomAIActionRating','modificationId','fetchConversationMessages','upsertAIActionRating','parse','https://ai.cke-cs.com/v1','signal'];_0x8eb8=function(){return _0x208626;};return _0x8eb8();}const _0x26b8d3=_0x3589;(function(_0x3e4c2a,_0x99bc4){const _0x20f7ac=_0x3589,_0x36e64f=_0x3e4c2a();while(!![]){try{const _0x17f672=parseInt(_0x20f7ac(0x23c))/0x1+-parseInt(_0x20f7ac(0x1e1))/0x2*(parseInt(_0x20f7ac(0x210))/0x3)+-parseInt(_0x20f7ac(0x1b2))/0x4+-parseInt(_0x20f7ac(0x218))/0x5+-parseInt(_0x20f7ac(0x1c4))/0x6*(parseInt(_0x20f7ac(0x216))/0x7)+parseInt(_0x20f7ac(0x208))/0x8*(-parseInt(_0x20f7ac(0x1b5))/0x9)+parseInt(_0x20f7ac(0x1f8))/0xa*(parseInt(_0x20f7ac(0x1f6))/0xb);if(_0x17f672===_0x99bc4)break;else _0x36e64f['push'](_0x36e64f['shift']());}catch(_0x4bc88f){_0x36e64f['push'](_0x36e64f['shift']());}}}(_0x8eb8,0xe39df));import{createParser as _0xeac24c}from'eventsource-parser';function _0x3589(_0x5a0878,_0x392b4a){const _0x8eb82f=_0x8eb8();return _0x3589=function(_0x3589e9,_0x4dc704){_0x3589e9=_0x3589e9-0x1b0;let _0xe35a70=_0x8eb82f[_0x3589e9];return _0xe35a70;},_0x3589(_0x5a0878,_0x392b4a);}import{ContextPlugin as _0x323787}from'ckeditor5/src/core.js';import{CKEditorError as _0x4d585d}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2b0c2e){const _0x54968e=_0x3589;_0x2b0c2e[_0x54968e(0x20b)]=_0x54968e(0x211),_0x2b0c2e[_0x54968e(0x1cb)]=_0x54968e(0x219),_0x2b0c2e[_0x54968e(0x1f9)]=_0x54968e(0x203),_0x2b0c2e[_0x54968e(0x21d)]=_0x54968e(0x1fd),_0x2b0c2e[_0x54968e(0x212)]=_0x54968e(0x1c9),_0x2b0c2e[_0x54968e(0x232)]=_0x54968e(0x1cd),_0x2b0c2e[_0x54968e(0x1e7)]=_0x54968e(0x1f1),_0x2b0c2e[_0x54968e(0x1d3)]=_0x54968e(0x23e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x323787{[_0x26b8d3(0x20c)];[_0x26b8d3(0x204)];[_0x26b8d3(0x23b)];static get[_0x26b8d3(0x206)](){const _0x362510=_0x26b8d3;return[_0x362510(0x234)];}static get[_0x26b8d3(0x238)](){const _0x3d3e8b=_0x26b8d3;return _0x3d3e8b(0x1c2);}static get[_0x26b8d3(0x1ff)](){return!0x0;}static get[_0x26b8d3(0x1f5)](){return!0x0;}constructor(_0x334ca6){const _0x23d888=_0x26b8d3;super(_0x334ca6),this[_0x23d888(0x1c5)][_0x23d888(0x215)][_0x23d888(0x231)](_0x23d888(0x1d7),_0x23d888(0x22f)),this[_0x23d888(0x20c)]=this[_0x23d888(0x1c5)][_0x23d888(0x215)][_0x23d888(0x1d6)](_0x23d888(0x1d7)),this[_0x23d888(0x204)]=null,this[_0x23d888(0x23b)]=new TextDecoder();}[_0x26b8d3(0x1e0)](){const _0x11a9fb=_0x26b8d3,_0x2c4541=this[_0x11a9fb(0x1c5)][_0x11a9fb(0x1e4)][_0x11a9fb(0x1d6)](_0x11a9fb(0x234));if(!_0x2c4541[_0x11a9fb(0x221)])throw new _0x4d585d(_0x11a9fb(0x1ef),this);this[_0x11a9fb(0x204)]=_0x2c4541[_0x11a9fb(0x221)];}[_0x26b8d3(0x209)](_0x43132f,_0x46692d){const _0x55ca94=_0x26b8d3,_0x288dca=this[_0x55ca94(0x1df)](_0x55ca94(0x236),_0x55ca94(0x1e6),{'id':_0x43132f,'group':_0x46692d});return{'getConversation':async()=>(await _0x288dca[_0x55ca94(0x1cc)])[_0x55ca94(0x20f)](),'abortController':_0x288dca[_0x55ca94(0x1ed)]};}[_0x26b8d3(0x21c)]({message:_0x822647,conversationId:_0x1e12a4,parts:_0x59e0de,capabilities:_0xc369e7,model:_0x5345d1,quickActionData:_0x560f89}){const _0xa5ac78=_0x26b8d3,_0x215e75={..._0x560f89&&{'quickActionData':_0x560f89}},_0x5841b4={'prompt':_0x822647,'content':_0x59e0de,'model':_0x5345d1,..._0xc369e7&&{'capabilities':_0xc369e7},...Object[_0xa5ac78(0x1be)](_0x215e75)[_0xa5ac78(0x1e5)]>0x0&&{'attributes':_0x215e75}},_0x47e085=this[_0xa5ac78(0x1df)](_0xa5ac78(0x1ea)+_0x1e12a4+_0xa5ac78(0x1c1),_0xa5ac78(0x1e6),_0x5841b4);return{'getStream':async()=>{const _0x64b8b7=_0xa5ac78,_0x24d56b=(await _0x47e085[_0x64b8b7(0x1cc)])[_0x64b8b7(0x1ce)];return this[_0x64b8b7(0x1b0)](_0x24d56b);},'abortController':_0x47e085[_0xa5ac78(0x1ed)]};}[_0x26b8d3(0x1b9)]({content:_0x13e804,message:_0x30a99e,model:_0x23983b,outputFormat:_0x40d130}){const _0x4575fa=_0x26b8d3,_0x45ff2a={'content':[{'type':_0x4575fa(0x1b1),'content':_0x13e804}],'prompt':_0x30a99e,'model':_0x23983b,'outputFormat':_0x40d130},_0x5194b7=this[_0x4575fa(0x1df)](_0x4575fa(0x205),_0x4575fa(0x1e6),_0x45ff2a);return{'getStream':async()=>{const _0x28a36f=_0x4575fa,_0x5561fe=(await _0x5194b7[_0x28a36f(0x1cc)])[_0x28a36f(0x1ce)];return this[_0x28a36f(0x1b0)](_0x5561fe);},'abortController':_0x5194b7[_0x4575fa(0x1ed)]};}[_0x26b8d3(0x1f0)]({actionName:_0x4d9f46,content:_0x52b9a3,args:_0x5b7703}){const _0x11b09e=_0x26b8d3,_0x22dd22={'content':[{'type':_0x11b09e(0x1b1),'content':_0x52b9a3}],'args':_0x5b7703},_0x561b0b=this[_0x11b09e(0x1df)](_0x11b09e(0x1db)+_0x4d9f46+_0x11b09e(0x1dc),_0x11b09e(0x1e6),_0x22dd22);return{'getStream':async()=>{const _0x1e2548=_0x11b09e,_0xfed2c9=(await _0x561b0b[_0x1e2548(0x1cc)])[_0x1e2548(0x1ce)];return this[_0x1e2548(0x1b0)](_0xfed2c9);},'abortController':_0x561b0b[_0x11b09e(0x1ed)]};}[_0x26b8d3(0x1d5)](_0x9a892a,_0x36bded,_0x2fcdd2){const _0x1f4b9a=_0x26b8d3,_0x15c343=new FormData();_0x15c343[_0x1f4b9a(0x228)](_0x1f4b9a(0x1c3),_0x36bded,_0x36bded[_0x1f4b9a(0x1de)]),_0x2fcdd2&&_0x15c343[_0x1f4b9a(0x228)](_0x1f4b9a(0x1eb),JSON[_0x1f4b9a(0x1b7)](_0x2fcdd2));const _0x1c0b97=this[_0x1f4b9a(0x1df)](_0x1f4b9a(0x1ea)+_0x9a892a+_0x1f4b9a(0x1ec),_0x1f4b9a(0x1e6),_0x15c343);return{'getId':async()=>(await _0x1c0b97[_0x1f4b9a(0x1cc)])[_0x1f4b9a(0x20f)](),'abortController':_0x1c0b97[_0x1f4b9a(0x1ed)]};}[_0x26b8d3(0x201)](_0x48a4e3,_0x34a47c){const _0x32332b=_0x26b8d3,_0x28e71b=this[_0x32332b(0x1df)](_0x32332b(0x1ea)+_0x48a4e3+_0x32332b(0x1e2)+_0x34a47c,_0x32332b(0x226));return{'getDocument':async()=>(await _0x28e71b[_0x32332b(0x1cc)])[_0x32332b(0x20f)](),'abortController':_0x28e71b[_0x32332b(0x1ed)]};}[_0x26b8d3(0x237)](_0x529d61,_0x55a3df,_0x118e2c){const _0x107dc7=_0x26b8d3,_0x592a1c={'content':_0x55a3df};_0x118e2c&&(_0x592a1c[_0x107dc7(0x1eb)]=_0x118e2c);const _0x2c165b=this[_0x107dc7(0x1df)](_0x107dc7(0x1ea)+_0x529d61+_0x107dc7(0x21e),_0x107dc7(0x1e6),_0x592a1c);return{'getId':async()=>(await _0x2c165b[_0x107dc7(0x1cc)])[_0x107dc7(0x20f)](),'abortController':_0x2c165b[_0x107dc7(0x1ed)]};}[_0x26b8d3(0x1c7)](_0x97182f,_0x5b7266){const _0x18c3b8=_0x26b8d3,_0x33c6c4=new URLSearchParams();_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1d4),_0x18c3b8(0x1b6)),_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1c0),_0x18c3b8(0x1e8)),_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1f4),_0x97182f),_0x5b7266&&_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x220),_0x5b7266);const _0x1e65ac=this[_0x18c3b8(0x1df)](_0x18c3b8(0x1b8)+_0x33c6c4[_0x18c3b8(0x21f)](),_0x18c3b8(0x226));return{'getConversations':async()=>{const _0x9f8b25=_0x18c3b8,_0x5ab564=await _0x1e65ac[_0x9f8b25(0x1cc)];return(await _0x5ab564[_0x9f8b25(0x20f)]())[_0x9f8b25(0x227)];},'abortController':_0x1e65ac[_0x18c3b8(0x1ed)]};}[_0x26b8d3(0x1fe)](_0xedc134){const _0x466c37=_0x26b8d3,_0xa8c2c0=this[_0x466c37(0x1df)](_0x466c37(0x1ea)+_0xedc134,_0x466c37(0x20e));return{'execute':async()=>{const _0x47f242=_0x466c37;await _0xa8c2c0[_0x47f242(0x1cc)];},'abortController':_0xa8c2c0[_0x466c37(0x1ed)]};}[_0x26b8d3(0x217)](_0x3af564,_0x20f025){const _0x1bcd63=_0x26b8d3,_0x5dd6f2=this[_0x1bcd63(0x1df)](_0x1bcd63(0x1ea)+_0x3af564,_0x1bcd63(0x1bd),_0x20f025);return{'getResult':async()=>(await _0x5dd6f2[_0x1bcd63(0x1cc)],_0x20f025),'abortController':_0x5dd6f2[_0x1bcd63(0x1ed)]};}[_0x26b8d3(0x1b3)](_0x4e675a){const _0x41afaa=_0x26b8d3,_0x576fa1=this[_0x41afaa(0x1df)](_0x41afaa(0x1ea)+_0x4e675a,_0x41afaa(0x226));return{'getConversation':async()=>(await _0x576fa1[_0x41afaa(0x1cc)])[_0x41afaa(0x20f)](),'abortController':_0x576fa1[_0x41afaa(0x1ed)]};}[_0x26b8d3(0x22c)](_0x4c0891){const _0x5404b8=_0x26b8d3,_0x1d8895=this[_0x5404b8(0x1df)](_0x5404b8(0x1ea)+_0x4c0891+_0x5404b8(0x1c1),_0x5404b8(0x226));return{'getMessages':async()=>{const _0x1a31f7=_0x5404b8,_0x59ff35=await _0x1d8895[_0x1a31f7(0x1cc)];return(await _0x59ff35[_0x1a31f7(0x20f)]())[_0x1a31f7(0x227)];},'abortController':_0x1d8895[_0x5404b8(0x1ed)]};}[_0x26b8d3(0x1ba)](_0x309806,_0x2a78e5,_0x62a3f0){const _0x3d55cb=_0x26b8d3,_0x58b8fa=this[_0x3d55cb(0x1df)](_0x3d55cb(0x1ea)+_0x309806+_0x3d55cb(0x20d),_0x3d55cb(0x1e6),{'url':_0x2a78e5,'attributes':_0x62a3f0});return{'getId':async()=>(await _0x58b8fa[_0x3d55cb(0x1cc)])[_0x3d55cb(0x20f)](),'abortController':_0x58b8fa[_0x3d55cb(0x1ed)]};}[_0x26b8d3(0x1e9)](){const _0x2dbacb=_0x26b8d3,_0x2ad60b=this[_0x2dbacb(0x1df)](_0x2dbacb(0x1bc),_0x2dbacb(0x226));return{'list':async()=>await(await _0x2ad60b[_0x2dbacb(0x1cc)])[_0x2dbacb(0x20f)](),'abortController':_0x2ad60b[_0x2dbacb(0x1ed)]};}[_0x26b8d3(0x21b)](_0x304825,_0x2117c2){const _0x43fbbc=_0x26b8d3,_0xabfb=this[_0x43fbbc(0x1df)](_0x43fbbc(0x1ea)+_0x304825+_0x43fbbc(0x213)+_0x2117c2,_0x43fbbc(0x20e));return{'execute':async()=>{const _0x8c77ae=_0x43fbbc;await _0xabfb[_0x8c77ae(0x1cc)];},'abortController':_0xabfb[_0x43fbbc(0x1ed)]};}[_0x26b8d3(0x214)](_0x44136c,_0x19e60c){const _0x26c090=_0x26b8d3,_0xd6205e=this[_0x26c090(0x1df)](_0x26c090(0x1ea)+_0x44136c+_0x26c090(0x1e2)+_0x19e60c,_0x26c090(0x20e));return{'execute':async()=>{const _0x31217c=_0x26c090;await _0xd6205e[_0x31217c(0x1cc)];},'abortController':_0xd6205e[_0x26c090(0x1ed)]};}[_0x26b8d3(0x202)](_0x133e29,_0x3d0bc6){const _0x442535=_0x26b8d3,_0x303aa5=this[_0x442535(0x1df)](_0x442535(0x1ea)+_0x133e29+_0x442535(0x1da)+_0x3d0bc6,_0x442535(0x20e));return{'execute':async()=>{const _0x3f4cae=_0x442535;await _0x303aa5[_0x3f4cae(0x1cc)];},'abortController':_0x303aa5[_0x442535(0x1ed)]};}[_0x26b8d3(0x1f7)]({reviewName:_0x265a88,content:_0x12514c,args:_0x53a4a7}){const _0x5f429a=_0x26b8d3,_0x4610cb=this[_0x5f429a(0x1df)](_0x5f429a(0x1fa)+_0x265a88+_0x5f429a(0x1dc),_0x5f429a(0x1e6),{'content':[{'type':_0x5f429a(0x1b1),'content':_0x12514c}],'args':_0x53a4a7});return{'getStream':async()=>{const _0x3024a7=_0x5f429a,_0x42fb03=(await _0x4610cb[_0x3024a7(0x1cc)])[_0x3024a7(0x1ce)];return this[_0x3024a7(0x1b0)](_0x42fb03);},'abortController':_0x4610cb[_0x5f429a(0x1ed)]};}[_0x26b8d3(0x1fb)]({content:_0x17e280,prompt:_0x4ee538,model:_0x4fc200}){const _0x236aa4=_0x26b8d3,_0x2f1ac1=this[_0x236aa4(0x1df)](_0x236aa4(0x1d9),_0x236aa4(0x1e6),{'content':[{'type':_0x236aa4(0x1b1),'content':_0x17e280}],'prompt':_0x4ee538,'model':_0x4fc200});return{'getStream':async()=>{const _0x4805b1=_0x236aa4,_0x22f8f8=(await _0x2f1ac1[_0x4805b1(0x1cc)])[_0x4805b1(0x1ce)];return this[_0x4805b1(0x1b0)](_0x22f8f8);},'abortController':_0x2f1ac1[_0x236aa4(0x1ed)]};}[_0x26b8d3(0x1dd)](_0x4c3ec0,_0x1304c4,_0x1bdbcc){const _0x539faa=_0x26b8d3,_0x4d56de=this[_0x539faa(0x1df)](_0x539faa(0x1ea)+_0x4c3ec0+_0x539faa(0x1b4)+_0x1304c4+_0x539faa(0x1bb),_0x539faa(0x1f2),{'positiveCount':_0x1bdbcc[_0x539faa(0x225)],'totalCount':_0x1bdbcc[_0x539faa(0x200)],'modificationId':_0x1bdbcc[_0x539faa(0x22b)]});return{'execute':async()=>{const _0x88dd9=_0x539faa;await _0x4d56de[_0x88dd9(0x1cc)];},'abortController':_0x4d56de[_0x539faa(0x1ed)]};}[_0x26b8d3(0x22d)](_0x4a708,_0x3b5779,_0x36ceec){const _0x3d515a=_0x26b8d3,_0x37866b=this[_0x3d515a(0x1df)](_0x3d515a(0x1db)+_0x4a708+_0x3d515a(0x223)+_0x3b5779+_0x3d515a(0x1bb),_0x3d515a(0x1f2),{'positiveCount':_0x36ceec[_0x3d515a(0x225)],'totalCount':_0x36ceec[_0x3d515a(0x200)]});return{'execute':async()=>{const _0x5e87a2=_0x3d515a;await _0x37866b[_0x5e87a2(0x1cc)];},'abortController':_0x37866b[_0x3d515a(0x1ed)]};}[_0x26b8d3(0x22a)](_0x1252bd,_0x50991d){const _0x24aad1=_0x26b8d3,_0x516a2f=this[_0x24aad1(0x1df)](_0x24aad1(0x21a)+_0x1252bd+_0x24aad1(0x1bb),_0x24aad1(0x1f2),{'positiveCount':_0x50991d[_0x24aad1(0x225)],'totalCount':_0x50991d[_0x24aad1(0x200)]});return{'execute':async()=>{const _0x17a7bb=_0x24aad1;await _0x516a2f[_0x17a7bb(0x1cc)];},'abortController':_0x516a2f[_0x24aad1(0x1ed)]};}[_0x26b8d3(0x1d1)](_0x88ebca,_0x419aa0,_0x235ba3,_0x5d2502){const _0x152831=_0x26b8d3,_0x583c93=this[_0x152831(0x1df)](_0x152831(0x1fa)+_0x88ebca+_0x152831(0x223)+_0x419aa0+_0x152831(0x1bb),_0x152831(0x1f2),{'positiveCount':_0x235ba3[_0x152831(0x225)],'totalCount':_0x235ba3[_0x152831(0x200)],'dataId':_0x5d2502});return{'execute':async()=>{const _0x577b06=_0x152831;await _0x583c93[_0x577b06(0x1cc)];},'abortController':_0x583c93[_0x152831(0x1ed)]};}[_0x26b8d3(0x235)](_0x34dfb9,_0xc94e1,_0x424abb){const _0x1bc873=_0x26b8d3,_0x5240e5=this[_0x1bc873(0x1df)](_0x1bc873(0x1fc)+_0x34dfb9+_0x1bc873(0x1bb),_0x1bc873(0x1f2),{'positiveCount':_0xc94e1[_0x1bc873(0x225)],'totalCount':_0xc94e1[_0x1bc873(0x200)],'dataId':_0x424abb});return{'execute':async()=>{const _0x2d03dd=_0x1bc873;await _0x5240e5[_0x2d03dd(0x1cc)];},'abortController':_0x5240e5[_0x1bc873(0x1ed)]};}[_0x26b8d3(0x1df)](_0x34f5b3,_0x5192aa,_0x9d1ac7){const _0x470b3c=_0x26b8d3,_0x2c9be3=new AbortController(),_0x1150d3=_0x9d1ac7 instanceof FormData,_0x1e1778={'Authorization':_0x470b3c(0x224)+this[_0x470b3c(0x204)]?.[_0x470b3c(0x207)]};_0x9d1ac7&&!_0x1150d3&&(_0x1e1778[_0x470b3c(0x1d2)]=_0x470b3c(0x239));const _0x2723be={'method':_0x5192aa,'headers':_0x1e1778,'signal':_0x2c9be3[_0x470b3c(0x230)]};return _0x9d1ac7&&(_0x2723be[_0x470b3c(0x1ce)]=_0x1150d3?_0x9d1ac7:JSON[_0x470b3c(0x1b7)](_0x9d1ac7)),{'request':fetch(''+this[_0x470b3c(0x20c)]+_0x34f5b3,_0x2723be)[_0x470b3c(0x23a)](_0x8b9fee=>{const _0x5252fd=_0x470b3c;this[_0x5252fd(0x1e3)](_0x8b9fee);})[_0x470b3c(0x23d)](_0x51237=>{const _0x203274=_0x470b3c;if(!_0x51237['ok'])throw new _0x4d585d(_0x203274(0x222),this,{'url':this[_0x203274(0x20c)],'path':_0x34f5b3,'method':_0x5192aa,'body':_0x9d1ac7,'status':(_0x51237||{})[_0x203274(0x1f3)],'statusText':(_0x51237||{})[_0x203274(0x20a)]});return _0x51237;}),'abortController':_0x2c9be3};}async*[_0x26b8d3(0x1b0)](_0x3b68ea){const _0x5b630b=_0x26b8d3,_0x535c73=[],_0x4b811f=_0x3b68ea[_0x5b630b(0x1ee)](),_0x52508f=_0xeac24c({'onError':_0x1f848e=>{const _0x59d7ba=_0x5b630b;this[_0x59d7ba(0x1e3)](_0x1f848e);},'onEvent':_0x306717=>{const _0x3b5568=_0x5b630b;_0x306717[_0x3b5568(0x1c6)]=JSON[_0x3b5568(0x22e)](_0x306717[_0x3b5568(0x1c6)]),_0x535c73[_0x3b5568(0x1ca)](_0x306717);}});try{let _0x2bdb19=!0x1;for(;!_0x2bdb19;){const {done:_0x5943c0,value:_0xa84f3b}=await _0x4b811f[_0x5b630b(0x1bf)]();_0x5943c0&&(_0x2bdb19=!0x0),_0x52508f[_0x5b630b(0x1d0)](this[_0x5b630b(0x23b)][_0x5b630b(0x233)](_0xa84f3b,{'stream':!0x0})),yield*_0x535c73,_0x535c73[_0x5b630b(0x1e5)]=0x0;}}catch(_0x3ee495){this[_0x5b630b(0x1e3)](_0x3ee495);}finally{_0x4b811f[_0x5b630b(0x1cf)](),_0x52508f[_0x5b630b(0x1d8)]();}}[_0x26b8d3(0x1e3)](_0x14a1de){const _0x4209b9=_0x26b8d3;if(_0x14a1de instanceof _0x4d585d)throw _0x14a1de;if(_0x14a1de instanceof Error&&_0x4209b9(0x229)===_0x14a1de[_0x4209b9(0x1de)])throw new _0x4d585d(_0x4209b9(0x1c8),this,{'originalError':_0x14a1de});throw new _0x4d585d(_0x4209b9(0x222),this,{'originalError':_0x14a1de});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x53ce06=_0x15c9;(function(_0x380086,_0x52226d){const _0x44b487=_0x15c9,_0x63bfa0=_0x380086();while(!![]){try{const _0x58c527=-parseInt(_0x44b487(0x102))/0x1+parseInt(_0x44b487(0xeb))/0x2*(parseInt(_0x44b487(0x12b))/0x3)+-parseInt(_0x44b487(0x11f))/0x4+parseInt(_0x44b487(0x104))/0x5*(parseInt(_0x44b487(0xf2))/0x6)+parseInt(_0x44b487(0xfd))/0x7+-parseInt(_0x44b487(0xe4))/0x8*(-parseInt(_0x44b487(0x10a))/0x9)+parseInt(_0x44b487(0xd8))/0xa*(-parseInt(_0x44b487(0xc8))/0xb);if(_0x58c527===_0x52226d)break;else _0x63bfa0['push'](_0x63bfa0['shift']());}catch(_0x1de1e4){_0x63bfa0['push'](_0x63bfa0['shift']());}}}(_0x17d3,0x543a6));import{ViewDowncastWriter as _0x270c4e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2feff5,Editor as _0x1ded02}from'ckeditor5/src/core.js';import{uid as _0x2ce3e3}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x385df4}from'./utils/geteditorfromcontext.js';function _0x15c9(_0x1c8147,_0x561758){const _0x17d36f=_0x17d3();return _0x15c9=function(_0x15c9be,_0x2277a9){_0x15c9be=_0x15c9be-0xc7;let _0x44c98b=_0x17d36f[_0x15c9be];return _0x44c98b;},_0x15c9(_0x1c8147,_0x561758);}function _0x17d3(){const _0x5f209b=['246085AbjYaA','ready','3655cSkdCj',':start></','join','get','emptyElement','view','100881cGishA','isPremiumPlugin',':end></','ck-ai-assistant-ui_theme','containerElement','random','listenTo','ai-selection','ai-selection:','createRange','start','modelToViewWithIds','getLastMatchingPosition','isOpening','getStart','dataDowncast','hideFakeVisualSelection','getChildren','isContent','getWalker','getSelectionText','923956TsCnap','_setDataIdsOnChildren','ck-fake-ai-selection','add','_integrateEditor','removeMarker','document','selection','markerToHighlight','pluginName','name','AIEditing','56043EGhPIn','removeAllRanges',':end>','data-id','processor','data','getSelection','462803VcoGJE','element','addMarker','getDocumentData','markerToElement','getMarkersGroup','end','fromCharCode','markerName','_nextDataId','createUIElement','push','convertAiChatSelectionMarker','$textProxy','isAtEnd','substring','60pupAUO','change','isBefore','editing','_displayedFakeSelectionId','trim','markers',':start>','getRoot','sort','editingDowncast','for','56MXDhQd','version','isOfficialPlugin','conversion','sessionId','RealTimeCollaborationClient','setAttribute','46YgFogf','schema','has','editors','showFakeVisualSelection','afterInit','length','4638YXOsOW','plugins','_getMarkersInDocumentOrder','floor','isAfter','toView','from','_displayedFakeSelectionLocked','toData','createRangeIn','context','9247BvGXYg','model','getSelectedContent','indexOf','_sessionId'];_0x17d3=function(){return _0x5f209b;};return _0x17d3();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x53ce06(0x111);export class AIEditing extends _0x2feff5{[_0x53ce06(0xdc)]=null;[_0x53ce06(0xf9)]=!0x1;[_0x53ce06(0x101)];static get[_0x53ce06(0x128)](){const _0x45f111=_0x53ce06;return _0x45f111(0x12a);}static get[_0x53ce06(0xe6)](){return!0x0;}static get[_0x53ce06(0x10b)](){return!0x0;}get[_0x53ce06(0xe8)](){const _0x4df52b=_0x53ce06;if(!this[_0x4df52b(0x101)]){const _0x32b217=_0x385df4(this[_0x4df52b(0xfc)]),_0x45cfe5=_0x32b217[_0x4df52b(0xf3)][_0x4df52b(0xed)](_0x4df52b(0xe9))&&_0x32b217[_0x4df52b(0xf3)][_0x4df52b(0x107)](_0x4df52b(0xe9))[_0x4df52b(0xe8)];this[_0x4df52b(0x101)]=_0x45cfe5||_0x2ce3e3();}return this[_0x4df52b(0x101)];}[_0x53ce06(0xcb)](){const _0x251a76=_0x53ce06,_0x4c7f30=_0x385df4(this[_0x251a76(0xfc)]),_0x2e27e5=_0x4c7f30[_0x251a76(0xfe)],_0x49a67b=_0x4c7f30[_0x251a76(0x130)][_0x251a76(0xf7)](_0x2e27e5[_0x251a76(0x125)][_0x251a76(0xe0)](),{'convertAiChatSelectionMarker':!0x0}),_0x5d8827=new _0x270c4e(_0x4c7f30[_0x251a76(0xdb)][_0x251a76(0x109)][_0x251a76(0x125)]);this[_0x251a76(0x120)](_0x49a67b,_0x5d8827);let _0x42d590=_0x4c7f30[_0x251a76(0x130)][_0x251a76(0x12f)][_0x251a76(0xfa)](_0x49a67b);const _0x5455e9=this[_0x251a76(0xf4)](),_0x418a13=[];for(const _0x30bc60 of _0x5455e9){const _0x1b5e48='<'+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0x105)+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0xdf),_0x4a5e07=_0x42d590[_0x251a76(0x100)](_0x1b5e48);_0x42d590=_0x42d590[_0x251a76(0xd7)](0x0,_0x4a5e07)+_0x42d590[_0x251a76(0xd7)](_0x4a5e07+_0x1b5e48[_0x251a76(0xf1)]);const _0x45e8b6='<'+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0x10c)+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0x12d),_0x250eb=_0x42d590[_0x251a76(0x100)](_0x45e8b6);_0x42d590=_0x42d590[_0x251a76(0xd7)](0x0,_0x250eb)+_0x42d590[_0x251a76(0xd7)](_0x250eb+_0x45e8b6[_0x251a76(0xf1)]),_0x418a13[_0x251a76(0xd3)]({'markerName':_0x30bc60[_0x251a76(0x129)],'start':_0x4a5e07,'end':_0x250eb,'htmlFragment':_0x42d590[_0x251a76(0xd7)](_0x4a5e07,_0x250eb)});}return{'content':_0x42d590,'version':_0x4c7f30[_0x251a76(0xfe)][_0x251a76(0x125)][_0x251a76(0xe5)],'sessionId':this[_0x251a76(0xe8)],'selections':_0x418a13};}async[_0x53ce06(0xf0)](){const _0x178a20=_0x53ce06;this[_0x178a20(0xfc)]instanceof _0x1ded02?this[_0x178a20(0x123)](this[_0x178a20(0xfc)]):this[_0x178a20(0x110)](this[_0x178a20(0xfc)][_0x178a20(0xee)],_0x178a20(0x122),(_0x246630,_0x17a326)=>{const _0x5ad924=_0x178a20;_0x17a326['on'](_0x5ad924(0x103),()=>{const _0x5bf5e5=_0x5ad924;this[_0x5bf5e5(0x123)](_0x17a326);});});}[_0x53ce06(0x123)](_0x26b041){const _0xdbf3f4=_0x53ce06;_0x26b041[_0xdbf3f4(0xe7)][_0xdbf3f4(0xe3)](_0xdbf3f4(0xe2))[_0xdbf3f4(0x127)]({'model':_0xdbf3f4(0x111),'view':{'classes':[_0xdbf3f4(0x121),_0xdbf3f4(0x10d)],'priority':0xc}}),_0x26b041[_0xdbf3f4(0xe7)][_0xdbf3f4(0xe3)](_0xdbf3f4(0x119))[_0xdbf3f4(0xcc)]({'model':_0xdbf3f4(0x111),'view':(_0xd2399f,{writer:_0x37b90f,options:_0x2d8ff5})=>_0x2d8ff5[_0xdbf3f4(0xd4)]?_0x37b90f[_0xdbf3f4(0xd2)](_0xd2399f[_0xdbf3f4(0xd0)]+':'+(_0xd2399f[_0xdbf3f4(0x117)]?_0xdbf3f4(0x114):_0xdbf3f4(0xce))):null});}[_0x53ce06(0xef)](_0x2ed295,_0x2353e9,_0x2f53b2=!0x1,_0x500a70=!0x1){const _0x438f7d=_0x53ce06;if(this[_0x438f7d(0xf9)]&&!_0x500a70)return!0x1;const _0x5fa5c1=_0x385df4(this[_0x438f7d(0xfc)])[_0x438f7d(0xfe)];return _0x5fa5c1[_0x438f7d(0xd9)](_0x45d36c=>{const _0x2f3d2b=_0x438f7d;this[_0x2f3d2b(0xdc)]&&this[_0x2f3d2b(0x11a)](this[_0x2f3d2b(0xdc)]),this[_0x2f3d2b(0xdc)]=_0x2353e9,this[_0x2f3d2b(0xf9)]=_0x2f53b2;let _0x35a2ad=0x0;for(let _0x45bc9b of _0x2ed295){const _0x1892d2=_0x2f3d2b(0x112)+_0x35a2ad;if(_0x45bc9b[_0x2f3d2b(0x114)][_0x2f3d2b(0xd6)]){const _0x23c4db=_0x45bc9b[_0x2f3d2b(0x114)][_0x2f3d2b(0x116)](({item:_0x3833f6})=>!_0x5fa5c1[_0x2f3d2b(0xec)][_0x2f3d2b(0x11c)](_0x3833f6),{'boundaries':_0x45bc9b});_0x45bc9b=_0x45d36c[_0x2f3d2b(0x113)](_0x23c4db,_0x45bc9b[_0x2f3d2b(0xce)]);}_0x45d36c[_0x2f3d2b(0xca)](_0x1892d2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x45bc9b}),_0x35a2ad++;}}),window[_0x438f7d(0xc7)]()?.[_0x438f7d(0x12c)](),!0x0;}[_0x53ce06(0x11a)](_0x5820de){const _0x1fad7f=_0x53ce06;if(this[_0x1fad7f(0xdc)]!=_0x5820de)return!0x1;this[_0x1fad7f(0xdc)]=null,this[_0x1fad7f(0xf9)]=!0x1;const _0x3fa174=_0x385df4(this[_0x1fad7f(0xfc)]),_0x22509f=_0x3fa174[_0x1fad7f(0xfe)][_0x1fad7f(0xde)][_0x1fad7f(0xcd)](_0x1fad7f(0x111));return _0x3fa174[_0x1fad7f(0xfe)][_0x1fad7f(0xd9)](_0x19c85a=>{const _0x21165=_0x1fad7f;for(const _0x16262d of _0x22509f)_0x19c85a[_0x21165(0x124)](_0x16262d);}),!0x0;}[_0x53ce06(0x115)](_0x298fd0){const _0x4e1df7=_0x53ce06,_0x5abc43=_0x385df4(this[_0x4e1df7(0xfc)]),_0x26fd78=_0x5abc43[_0x4e1df7(0x130)][_0x4e1df7(0xf7)](_0x298fd0),_0x1ce153=new _0x270c4e(_0x5abc43[_0x4e1df7(0xdb)][_0x4e1df7(0x109)][_0x4e1df7(0x125)]);return this[_0x4e1df7(0x120)](_0x26fd78,_0x1ce153),_0x26fd78;}[_0x53ce06(0x120)](_0x50d40d,_0x5301fa){const _0x4549b4=_0x53ce06;let _0x24f472=!0x1;const _0x123548=new Set();for(const _0x52cf88 of _0x50d40d[_0x4549b4(0x11b)]()){const _0x13e684=_0x52cf88['is'](_0x4549b4(0x108))||_0x52cf88['is'](_0x4549b4(0x10e));if(!_0x52cf88['is'](_0x4549b4(0xc9)))continue;(this[_0x4549b4(0x120)](_0x52cf88,_0x5301fa)||_0x13e684)&&(_0x5301fa[_0x4549b4(0xea)](_0x4549b4(0x12e),this[_0x4549b4(0xd1)](_0x123548),_0x52cf88),_0x24f472=!0x0);}return _0x24f472;}[_0x53ce06(0xd1)](_0x27bef4){const _0x2b0358=_0x53ce06;let _0x646bd;do{_0x646bd='';for(let _0x58034e=0x0;_0x58034e<0x4;_0x58034e++)_0x646bd+=String[_0x2b0358(0xcf)](0x61+Math[_0x2b0358(0xf5)](0x1a*Math[_0x2b0358(0x10f)]()));}while(_0x27bef4[_0x2b0358(0xed)](_0x646bd));return _0x27bef4[_0x2b0358(0x122)](_0x646bd),_0x646bd;}[_0x53ce06(0x11e)](){const _0x2c4f1d=_0x53ce06,{model:_0x502579}=_0x385df4(this[_0x2c4f1d(0xfc)]),_0x132906=_0x502579[_0x2c4f1d(0x125)][_0x2c4f1d(0x126)],_0x2f614c=_0x502579[_0x2c4f1d(0xff)](_0x132906),_0x35f7f3=[],_0x5d9ba2=_0x502579[_0x2c4f1d(0xfb)](_0x2f614c)[_0x2c4f1d(0x11d)]();for(const {item:_0x40bb1d}of _0x5d9ba2)_0x40bb1d['is'](_0x2c4f1d(0xd5))?_0x35f7f3[_0x2c4f1d(0xd3)](_0x40bb1d[_0x2c4f1d(0x130)]):_0x40bb1d['is'](_0x2c4f1d(0xc9))&&_0x35f7f3[_0x2c4f1d(0xf1)]>0x0&&'\x20'!==_0x35f7f3[_0x35f7f3[_0x2c4f1d(0xf1)]-0x1]&&_0x35f7f3[_0x2c4f1d(0xd3)]('\x20');return'\x22'+_0x35f7f3[_0x2c4f1d(0x106)]('')[_0x2c4f1d(0xdd)]()+'\x22';}[_0x53ce06(0xf4)](){const _0x4d2b42=_0x53ce06,_0x367254=_0x385df4(this[_0x4d2b42(0xfc)])[_0x4d2b42(0xfe)];return Array[_0x4d2b42(0xf8)](_0x367254[_0x4d2b42(0xde)][_0x4d2b42(0xcd)](_0x4d2b42(0x111)))[_0x4d2b42(0xe1)]((_0x2d1693,_0x442329)=>_0x2d1693[_0x4d2b42(0x118)]()[_0x4d2b42(0xda)](_0x442329[_0x4d2b42(0x118)]())?-0x1:_0x2d1693[_0x4d2b42(0x118)]()[_0x4d2b42(0xf6)](_0x442329[_0x4d2b42(0x118)]())?0x1:0x0);}}
|