@ckeditor/ckeditor5-ai 47.5.0-alpha.7 → 47.5.0
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/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/ui/aichatballoonview.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/aichatfeedcustomelementview.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/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.d.ts +5 -2
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.d.ts +4 -2
- 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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.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/aicore/utils/scrollmanager.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/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/model/aireviewcheck.js +1 -1
- package/src/aireviewcore/model/aireviewchecklist.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
- package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
- package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.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/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodechecklist.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/aitranslate/aitranslate.js +1 -1
- package/src/aitranslate/aitranslatecontroller.js +1 -1
- package/src/aitranslate/aitranslateui.js +1 -1
- package/src/aitranslate/model/aitranslatecheck.js +1 -1
- package/src/aitranslate/model/aitranslatechecklist.js +1 -1
- package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
- package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
- package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2f4e7=_0x59e0;(function(_0x5b8045,_0x5dbb5c){const _0x53417f=_0x59e0,_0x4d819a=_0x5b8045();while(!![]){try{const _0x8a3f4c=parseInt(_0x53417f(0x116))/0x1*(parseInt(_0x53417f(0x106))/0x2)+-parseInt(_0x53417f(0x11f))/0x3*(parseInt(_0x53417f(0xff))/0x4)+parseInt(_0x53417f(0x12f))/0x5+parseInt(_0x53417f(0xdf))/0x6*(-parseInt(_0x53417f(0x11e))/0x7)+-parseInt(_0x53417f(0xeb))/0x8+-parseInt(_0x53417f(0x125))/0x9*(-parseInt(_0x53417f(0xd5))/0xa)+-parseInt(_0x53417f(0x10e))/0xb*(parseInt(_0x53417f(0xde))/0xc);if(_0x8a3f4c===_0x5dbb5c)break;else _0x4d819a['push'](_0x4d819a['shift']());}catch(_0x2819c1){_0x4d819a['push'](_0x4d819a['shift']());}}}(_0x420a,0x46809));import{ContextPlugin as _0x4d42a5}from'ckeditor5/src/core.js';import{AIConnector as _0x904f47}from'../aicore/aiconnector.js';import{AIChatController as _0x376689}from'../aichat/aichatcontroller.js';import{AITabs as _0x4e98c5}from'../aitabs/aitabs.js';function _0x59e0(_0x574787,_0xab1618){const _0x420a9f=_0x420a();return _0x59e0=function(_0x59e0d6,_0x5e1d50){_0x59e0d6=_0x59e0d6-0xcd;let _0x2b6ed5=_0x420a9f[_0x59e0d6];return _0x2b6ed5;},_0x59e0(_0x574787,_0xab1618);}import{AIChatHistoryUI as _0x80032c}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x3f0f1b}from'./model/aichathistoryconversations.js';import{getTranslation as _0x448881}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x4d42a5{[_0x2f4e7(0x113)];[_0x2f4e7(0xec)];[_0x2f4e7(0x134)];static get[_0x2f4e7(0x11a)](){return[_0x904f47,_0x376689,_0x80032c,_0x4e98c5];}static get[_0x2f4e7(0x117)](){const _0x1f54a3=_0x2f4e7;return _0x1f54a3(0xdc);}static get[_0x2f4e7(0xcf)](){return!0x0;}static get[_0x2f4e7(0xd4)](){return!0x0;}[_0x2f4e7(0x103)](){const _0x5e53a4=_0x2f4e7;this[_0x5e53a4(0x113)]=this[_0x5e53a4(0x119)][_0x5e53a4(0x10d)][_0x5e53a4(0xf3)](_0x904f47),this[_0x5e53a4(0xec)]=this[_0x5e53a4(0x119)][_0x5e53a4(0x10d)][_0x5e53a4(0xf3)](_0x80032c),this[_0x5e53a4(0x134)]=this[_0x5e53a4(0x119)][_0x5e53a4(0x10d)][_0x5e53a4(0xf3)](_0x376689);const _0x363d21=this[_0x5e53a4(0x119)][_0x5e53a4(0x10d)][_0x5e53a4(0xf3)](_0x4e98c5);try{const _0x4585e5=this[_0x5e53a4(0x134)][_0x5e53a4(0xfc)]();this[_0x5e53a4(0xf9)]=new _0x3f0f1b({'connector':this[_0x5e53a4(0x113)],'group':_0x4585e5}),this[_0x5e53a4(0x101)](this[_0x5e53a4(0xec)],_0x5e53a4(0xce),(_0x3412e6,_0x36f419)=>{const _0x207b85=_0x5e53a4;this[_0x207b85(0x131)](_0x36f419['id'],_0x207b85(0xe9)),this[_0x207b85(0xe7)](_0x36f419['id']);}),this[_0x5e53a4(0x101)](this[_0x5e53a4(0xec)],_0x5e53a4(0x12a),(_0x3bbd3a,_0x4fef45)=>{const _0x2bc1e=_0x5e53a4;this[_0x2bc1e(0x131)](_0x4fef45['id'],_0x2bc1e(0x105)),this[_0x2bc1e(0xe5)](_0x4fef45['id'],_0x4fef45[_0x2bc1e(0xd6)]);}),this[_0x5e53a4(0x101)](this[_0x5e53a4(0xf9)],_0x5e53a4(0xd9),(_0x32d142,_0x3c8ffe)=>{const _0x2d48fd=_0x5e53a4;void 0x0!==_0x3c8ffe[_0x2d48fd(0xe8)][_0x2d48fd(0xd6)]&&this[_0x2d48fd(0xec)][_0x2d48fd(0x133)](_0x3c8ffe[_0x2d48fd(0x110)],_0x3c8ffe[_0x2d48fd(0xe8)][_0x2d48fd(0xd6)]),void 0x0!==_0x3c8ffe[_0x2d48fd(0xe8)][_0x2d48fd(0xe2)]&&this[_0x2d48fd(0x10c)](),this[_0x2d48fd(0xd0)](_0x3c8ffe[_0x2d48fd(0x110)]);}),this[_0x5e53a4(0x101)](this[_0x5e53a4(0xf9)],_0x5e53a4(0xf5),(_0x3badd9,_0x3cf77d)=>{const _0x11c044=_0x5e53a4;this[_0x11c044(0x134)][_0x11c044(0x132)](_0x3cf77d[_0x11c044(0x110)]),this[_0x11c044(0xec)][_0x11c044(0x10b)](_0x3cf77d[_0x11c044(0x110)]),this[_0x11c044(0xd0)](_0x3cf77d[_0x11c044(0x110)]);}),this[_0x5e53a4(0x101)](this[_0x5e53a4(0xf9)],_0x5e53a4(0x121),()=>{const _0x52543a=_0x5e53a4;this[_0x52543a(0x10c)]();}),this[_0x5e53a4(0x101)](this[_0x5e53a4(0xf9)],_0x5e53a4(0x112),(_0x13bed9,_0x1f0c10)=>{const _0x303004=_0x5e53a4;this[_0x303004(0x10a)](_0x1f0c10[_0x303004(0x112)],_0x1f0c10[_0x303004(0xda)],_0x1f0c10[_0x303004(0x110)]);}),this[_0x5e53a4(0x101)](this[_0x5e53a4(0xec)],_0x5e53a4(0xf6),(_0x3b1e78,_0x48e5ee)=>{const _0x29eff2=_0x5e53a4;this[_0x29eff2(0xdd)](_0x48e5ee['id']);}),this[_0x5e53a4(0x101)](this[_0x5e53a4(0xec)],_0x5e53a4(0xea),(_0x7a25bb,_0x13da66)=>{const _0x2ca6ea=_0x5e53a4,_0x180f02=_0x13da66[_0x2ca6ea(0xe2)]?_0x2ca6ea(0x11c):_0x2ca6ea(0xf7);this[_0x2ca6ea(0x131)](_0x13da66['id'],_0x180f02),this[_0x2ca6ea(0xd7)](_0x13da66['id'],_0x13da66[_0x2ca6ea(0xe2)]);}),this[_0x5e53a4(0x101)](this[_0x5e53a4(0xec)],_0x5e53a4(0x130),()=>{const _0x3831e0=_0x5e53a4;_0x363d21[_0x3831e0(0x10f)][_0x3831e0(0x109)](_0x3831e0(0xcd));}),this[_0x5e53a4(0x101)](this[_0x5e53a4(0x134)],_0x5e53a4(0x12e),()=>{const _0xb1d9a4=_0x5e53a4;this[_0xb1d9a4(0x10c)]();}),_0x363d21[_0x5e53a4(0x10f)]['on'](_0x5e53a4(0xfb),()=>{const _0x5d688e=_0x5e53a4;this[_0x5d688e(0xe1)]();}),this[_0x5e53a4(0x101)](_0x363d21,_0x5e53a4(0x100),(_0x116b9b,_0x2cc3b5)=>{const _0x42be58=_0x5e53a4;this[_0x42be58(0x129)](_0x2cc3b5);}),this[_0x5e53a4(0x101)](this[_0x5e53a4(0xec)],_0x5e53a4(0x108),()=>{const _0x4510d9=_0x5e53a4;_0x363d21[_0x4510d9(0x11b)]();});}catch(_0x1e7fb9){this[_0x5e53a4(0x10a)](_0x1e7fb9,_0x5e53a4(0x103));}}async[_0x2f4e7(0xe5)](_0x221010,_0x334ae3){const _0x260530=_0x2f4e7;await this[_0x260530(0xf9)][_0x260530(0x133)](_0x221010,_0x334ae3);}async[_0x2f4e7(0xd7)](_0x4fe167,_0x19e726){const _0x16eab7=_0x2f4e7;await this[_0x16eab7(0xf9)][_0x16eab7(0xd8)](_0x4fe167,_0x19e726);}async[_0x2f4e7(0xe7)](_0x324140){const _0x1a5436=_0x2f4e7;await this[_0x1a5436(0xf9)][_0x1a5436(0x118)](_0x324140);}async[_0x2f4e7(0xdd)](_0x47a02b){const _0xc3a5bb=_0x2f4e7;await this[_0xc3a5bb(0x134)][_0xc3a5bb(0xd3)](_0x47a02b);}async[_0x2f4e7(0xe1)](){const _0x175aa7=_0x2f4e7;this[_0x175aa7(0xec)][_0x175aa7(0xe6)](''),this[_0x175aa7(0xec)][_0x175aa7(0x11d)](!0x0),await this[_0x175aa7(0xf9)][_0x175aa7(0x103)](),this[_0x175aa7(0xec)][_0x175aa7(0x11d)](!0x1);}[_0x2f4e7(0x10c)](){const _0x596b72=_0x2f4e7,_0x4b5eae=this[_0x596b72(0x134)][_0x596b72(0x126)]?.['id'],_0x2ef5d6=this[_0x596b72(0xd2)]()[_0x596b72(0x120)](_0x227329=>({'title':_0x227329[_0x596b72(0xd6)],'items':_0x227329[_0x596b72(0xef)][_0x596b72(0x120)](_0x53d014=>({'id':_0x53d014['id'],'title':_0x53d014[_0x596b72(0xd6)]||_0x448881(this[_0x596b72(0x119)][_0x596b72(0xed)],_0x596b72(0x12c)),'createdAt':new Date(_0x53d014[_0x596b72(0x104)])[_0x596b72(0xf4)](),'active':_0x53d014['id']===_0x4b5eae,'pinned':_0x53d014[_0x596b72(0xe2)]}))}));this[_0x596b72(0xec)][_0x596b72(0x127)](_0x2ef5d6);}[_0x2f4e7(0x131)](_0x4e1ff7,_0x176467){const _0x21dc9f=_0x2f4e7;this[_0x21dc9f(0xec)][_0x21dc9f(0x111)](_0x4e1ff7,_0x176467,!0x0);}[_0x2f4e7(0xd0)](_0x3b884a){const _0xa25b95=_0x2f4e7;this[_0xa25b95(0xec)][_0xa25b95(0x111)](_0x3b884a,null,!0x1);}[_0x2f4e7(0x10a)](_0x48f8f2,_0x472168,_0x33b34d){const _0x34f7e9=_0x2f4e7,_0x781efb=this[_0x34f7e9(0xe0)](_0x472168,_0x33b34d);this[_0x34f7e9(0xec)][_0x34f7e9(0xe6)](_0x781efb),_0x33b34d&&this[_0x34f7e9(0xd0)](_0x33b34d),this[_0x34f7e9(0xec)][_0x34f7e9(0x11d)](!0x1);}[_0x2f4e7(0xe0)](_0x2637eb,_0x4d4221){const _0x39f27a=_0x2f4e7,_0x4bdf18=_0x4d4221?this[_0x39f27a(0xf9)][_0x39f27a(0x124)](_0x4d4221):null,_0x291f23=_0x4bdf18?.[_0x39f27a(0xd6)]||_0x448881(this[_0x39f27a(0x119)][_0x39f27a(0xed)],_0x39f27a(0x12c));switch(_0x2637eb){case _0x39f27a(0x133):return _0x448881(this[_0x39f27a(0x119)][_0x39f27a(0xed)],_0x39f27a(0xf2),_0x291f23);case _0x39f27a(0xd8):{const _0x27a944=_0x448881(this[_0x39f27a(0x119)][_0x39f27a(0xed)],_0x4bdf18?.[_0x39f27a(0xe2)]?_0x39f27a(0xfa):_0x39f27a(0x102));return _0x448881(this[_0x39f27a(0x119)][_0x39f27a(0xed)],_0x39f27a(0x122),[_0x27a944,_0x291f23]);}case _0x39f27a(0x118):return _0x448881(this[_0x39f27a(0x119)][_0x39f27a(0xed)],_0x39f27a(0xf1),_0x291f23);case _0x39f27a(0x103):case _0x39f27a(0xfd):return _0x448881(this[_0x39f27a(0x119)][_0x39f27a(0xed)],_0x39f27a(0xfe));default:return _0x448881(this[_0x39f27a(0x119)][_0x39f27a(0xed)],_0x39f27a(0x107));}}[_0x2f4e7(0xd2)](){const _0x31de73=_0x2f4e7,_0x52d8b5=new Date(),_0x49e118=new Date(_0x52d8b5[_0x31de73(0x115)](),_0x52d8b5[_0x31de73(0xee)](),_0x52d8b5[_0x31de73(0x128)]()),_0x33ec5c=new Date(_0x49e118);_0x33ec5c[_0x31de73(0x12d)](_0x33ec5c[_0x31de73(0x128)]()-0x1);const _0x5e2e6c=new Date(_0x49e118);_0x5e2e6c[_0x31de73(0x12d)](_0x5e2e6c[_0x31de73(0x128)]()-0xe);const _0x28c962=this[_0x31de73(0xf9)][_0x31de73(0x12b)]({'pinned':!0x0}),_0x4caf99=this[_0x31de73(0xf9)][_0x31de73(0x12b)]({'from':_0x49e118,'to':_0x49e118}),_0x536737=this[_0x31de73(0xf9)][_0x31de73(0x12b)]({'from':_0x33ec5c,'to':_0x33ec5c}),_0x1f2259=this[_0x31de73(0xf9)][_0x31de73(0x12b)]({'from':_0x5e2e6c,'to':_0x33ec5c}),_0x100b4a=this[_0x31de73(0xf9)][_0x31de73(0x12b)]({'to':_0x5e2e6c}),_0x275577=[];return _0x28c962[_0x31de73(0xe4)]>0x0&&_0x275577[_0x31de73(0xf8)]({'title':_0x448881(this[_0x31de73(0x119)][_0x31de73(0xed)],_0x31de73(0xf0)),'items':_0x28c962}),_0x4caf99[_0x31de73(0xe4)]>0x0&&_0x275577[_0x31de73(0xf8)]({'title':_0x448881(this[_0x31de73(0x119)][_0x31de73(0xed)],_0x31de73(0x123)),'items':_0x4caf99}),_0x536737[_0x31de73(0xe4)]>0x0&&_0x275577[_0x31de73(0xf8)]({'title':_0x448881(this[_0x31de73(0x119)][_0x31de73(0xed)],_0x31de73(0xd1)),'items':_0x536737}),_0x1f2259[_0x31de73(0xe4)]>0x0&&_0x275577[_0x31de73(0xf8)]({'title':_0x448881(this[_0x31de73(0x119)][_0x31de73(0xed)],_0x31de73(0xe3)),'items':_0x1f2259}),_0x100b4a[_0x31de73(0xe4)]>0x0&&_0x275577[_0x31de73(0xf8)]({'title':_0x448881(this[_0x31de73(0x119)][_0x31de73(0xed)],_0x31de73(0x114)),'items':_0x100b4a}),_0x275577;}[_0x2f4e7(0x129)](_0x2fe74c){const _0x50e6bc=_0x2f4e7;this[_0x50e6bc(0xec)][_0x50e6bc(0xdb)](_0x2fe74c);}}function _0x420a(){const _0x5d1100=['_handleEditTitle','showError','_handleRemove','updates','remove','setConversationPinned','4331296tbrIDu','_aiChatHistoryUi','locale','getMonth','items','AI_CHAT_HISTORY_CATEGORY_PINNED','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','get','toLocaleDateString','itemRemoved','selectConversation','unpin','push','history','AI_CHAT_HISTORY_UNPIN_ACTION','activateTab:history','getGroupId','loadItems','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','119976lsmXEe','resizedTabs','listenTo','AI_CHAT_HISTORY_PIN_ACTION','init','createdAt','rename','12aOMxfD','AI_CHAT_HISTORY_ERROR_GENERIC','resizeTabs','activateTab','_handleHistoryErrorUI','removeHistoryItem','_updateHistoryItemsUI','plugins','506oCIWcj','view','itemId','updateItemLoadingState','error','_aiConnector','AI_CHAT_HISTORY_CATEGORY_LATER','getFullYear','74831lwJVln','pluginName','removeItem','context','requires','resize','pin','setLoadingSkeleton','364798NeCYkN','21sJfltO','map','itemsLoaded','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_CATEGORY_TODAY','getItem','2224485Ezwcpp','activeConversation','updateItems','getDate','_setIsMaximized','editConversationTitle','getItems','AI_CHAT_UNTITLED_CONVERSATION','setDate','change:activeConversation','2368310ozdQxm','openChat','_setItemLoading','handleRemovedConversation','updateItemTitle','_aiChatController','chat','removeConversation','isOfficialPlugin','_clearItemLoading','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','_getCategorizedItems','loadConversation','isPremiumPlugin','10oproGP','title','_handleTogglePin','updateItemPinned','itemUpdated','operation','setIsMaximized','AIChatHistoryController','_handleSelectConversation','6636QUWfKt','12jxOMOH','_generateErrorMessage','_showConversationHistory','pinned','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','length'];_0x420a=function(){return _0x5d1100;};return _0x420a();}
|
|
23
|
+
const _0x37d39d=_0x5a82;(function(_0x794c3d,_0x36fe15){const _0x4ef2e9=_0x5a82,_0x4321c8=_0x794c3d();while(!![]){try{const _0xecb842=parseInt(_0x4ef2e9(0x11c))/0x1+parseInt(_0x4ef2e9(0x126))/0x2*(parseInt(_0x4ef2e9(0x16c))/0x3)+parseInt(_0x4ef2e9(0x16b))/0x4+-parseInt(_0x4ef2e9(0x127))/0x5+parseInt(_0x4ef2e9(0x14e))/0x6*(parseInt(_0x4ef2e9(0x121))/0x7)+-parseInt(_0x4ef2e9(0x16f))/0x8*(-parseInt(_0x4ef2e9(0x14d))/0x9)+-parseInt(_0x4ef2e9(0x164))/0xa;if(_0xecb842===_0x36fe15)break;else _0x4321c8['push'](_0x4321c8['shift']());}catch(_0x49470f){_0x4321c8['push'](_0x4321c8['shift']());}}}(_0x4a42,0x3d338));import{ContextPlugin as _0x4c32ea}from'ckeditor5/src/core.js';function _0x4a42(){const _0x348dc1=['removeItem','editConversationTitle','AI_CHAT_HISTORY_CATEGORY_LATER','init','_generateErrorMessage','getGroupId','removeHistoryItem','remove','pinned','error','_clearItemLoading','listenTo','29668DShmpG','title','get','AI_CHAT_HISTORY_UNPIN_ACTION','updateItemLoadingState','241493pXEsQJ','chat','selectConversation','history','_updateHistoryItemsUI','322QSlAwI','252665nzkAev','items','AI_CHAT_HISTORY_CATEGORY_PINNED','_setIsMaximized','_aiChatHistoryUi','pin','_getCategorizedItems','change:activeConversation','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','view','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','itemUpdated','context','_handleHistoryErrorUI','resizedTabs','rename','AI_CHAT_HISTORY_ERROR_GENERIC','resize','loadItems','_showConversationHistory','resizeTabs','getMonth','AI_CHAT_HISTORY_CATEGORY_TODAY','itemId','isOfficialPlugin','handleRemovedConversation','length','isPremiumPlugin','push','locale','createdAt','getItems','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','getDate','_handleEditTitle','openChat','_setItemLoading','setLoadingSkeleton','9tBrRDU','66ZlDZbk','itemRemoved','pluginName','loadConversation','updates','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','setConversationPinned','_aiConnector','unpin','activateTab:history','setIsMaximized','map','getFullYear','activeConversation','_handleTogglePin','AIChatHistoryController','toLocaleDateString','plugins','setDate','itemsLoaded','AI_CHAT_HISTORY_PIN_ACTION','_handleRemove','12133980zLbtPH','_handleSelectConversation','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','activateTab','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','updateItemPinned','1323120adEuSr','5631QbZAUz','requires','showError','3779816gURfeC','operation','removeConversation','updateItemTitle','_aiChatController','getItem','updateItems'];_0x4a42=function(){return _0x348dc1;};return _0x4a42();}import{AIConnector as _0x2979bd}from'../aicore/aiconnector.js';import{AIChatController as _0x2b0acb}from'../aichat/aichatcontroller.js';import{AITabs as _0x55f83b}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x2f3ec5}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x463b79}from'./model/aichathistoryconversations.js';import{getTranslation as _0x2f031c}from'../aicore/utils/common-translations.js';function _0x5a82(_0x47801c,_0x326e75){const _0x4a4259=_0x4a42();return _0x5a82=function(_0x5a82ee,_0x23ec32){_0x5a82ee=_0x5a82ee-0x113;let _0x2bebf9=_0x4a4259[_0x5a82ee];return _0x2bebf9;},_0x5a82(_0x47801c,_0x326e75);}export class AIChatHistoryController extends _0x4c32ea{[_0x37d39d(0x155)];[_0x37d39d(0x12b)];[_0x37d39d(0x173)];static get[_0x37d39d(0x16d)](){return[_0x2979bd,_0x2b0acb,_0x2f3ec5,_0x55f83b];}static get[_0x37d39d(0x150)](){const _0x13dc54=_0x37d39d;return _0x13dc54(0x15d);}static get[_0x37d39d(0x13f)](){return!0x0;}static get[_0x37d39d(0x142)](){return!0x0;}[_0x37d39d(0x113)](){const _0x1d7963=_0x37d39d;this[_0x1d7963(0x155)]=this[_0x1d7963(0x133)][_0x1d7963(0x15f)][_0x1d7963(0x11e)](_0x2979bd),this[_0x1d7963(0x12b)]=this[_0x1d7963(0x133)][_0x1d7963(0x15f)][_0x1d7963(0x11e)](_0x2f3ec5),this[_0x1d7963(0x173)]=this[_0x1d7963(0x133)][_0x1d7963(0x15f)][_0x1d7963(0x11e)](_0x2b0acb);const _0x42f843=this[_0x1d7963(0x133)][_0x1d7963(0x15f)][_0x1d7963(0x11e)](_0x55f83b);try{const _0x5dc53f=this[_0x1d7963(0x173)][_0x1d7963(0x115)]();this[_0x1d7963(0x124)]=new _0x463b79({'connector':this[_0x1d7963(0x155)],'group':_0x5dc53f}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x12b)],_0x1d7963(0x171),(_0xc6b3ba,_0x47ece7)=>{const _0x1122dc=_0x1d7963;this[_0x1122dc(0x14b)](_0x47ece7['id'],_0x1122dc(0x117)),this[_0x1122dc(0x163)](_0x47ece7['id']);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x12b)],_0x1d7963(0x177),(_0x230d55,_0x10b8fc)=>{const _0x4d8364=_0x1d7963;this[_0x4d8364(0x14b)](_0x10b8fc['id'],_0x4d8364(0x136)),this[_0x4d8364(0x149)](_0x10b8fc['id'],_0x10b8fc[_0x4d8364(0x11d)]);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x124)],_0x1d7963(0x132),(_0x3e7140,_0x4af38e)=>{const _0x5f5554=_0x1d7963;void 0x0!==_0x4af38e[_0x5f5554(0x152)][_0x5f5554(0x11d)]&&this[_0x5f5554(0x12b)][_0x5f5554(0x172)](_0x4af38e[_0x5f5554(0x13e)],_0x4af38e[_0x5f5554(0x152)][_0x5f5554(0x11d)]),void 0x0!==_0x4af38e[_0x5f5554(0x152)][_0x5f5554(0x118)]&&this[_0x5f5554(0x125)](),this[_0x5f5554(0x11a)](_0x4af38e[_0x5f5554(0x13e)]);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x124)],_0x1d7963(0x14f),(_0x318253,_0x16aaea)=>{const _0x27d43f=_0x1d7963;this[_0x27d43f(0x173)][_0x27d43f(0x140)](_0x16aaea[_0x27d43f(0x13e)]),this[_0x27d43f(0x12b)][_0x27d43f(0x116)](_0x16aaea[_0x27d43f(0x13e)]),this[_0x27d43f(0x11a)](_0x16aaea[_0x27d43f(0x13e)]);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x124)],_0x1d7963(0x161),()=>{const _0x1873b5=_0x1d7963;this[_0x1873b5(0x125)]();}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x124)],_0x1d7963(0x119),(_0x1f8433,_0x43327f)=>{const _0x18c9e1=_0x1d7963;this[_0x18c9e1(0x134)](_0x43327f[_0x18c9e1(0x119)],_0x43327f[_0x18c9e1(0x170)],_0x43327f[_0x18c9e1(0x13e)]);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x12b)],_0x1d7963(0x123),(_0x564a99,_0x562799)=>{const _0x3bd419=_0x1d7963;this[_0x3bd419(0x165)](_0x562799['id']);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x12b)],_0x1d7963(0x154),(_0x593bb2,_0x4f1dec)=>{const _0x5a83b7=_0x1d7963,_0x1ab59a=_0x4f1dec[_0x5a83b7(0x118)]?_0x5a83b7(0x12c):_0x5a83b7(0x156);this[_0x5a83b7(0x14b)](_0x4f1dec['id'],_0x1ab59a),this[_0x5a83b7(0x15c)](_0x4f1dec['id'],_0x4f1dec[_0x5a83b7(0x118)]);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x12b)],_0x1d7963(0x14a),()=>{const _0x366d9f=_0x1d7963;_0x42f843[_0x366d9f(0x130)][_0x366d9f(0x167)](_0x366d9f(0x122));}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x173)],_0x1d7963(0x12e),()=>{const _0x217e5a=_0x1d7963;this[_0x217e5a(0x125)]();}),_0x42f843[_0x1d7963(0x130)]['on'](_0x1d7963(0x157),()=>{const _0x22d2ef=_0x1d7963;this[_0x22d2ef(0x13a)]();}),this[_0x1d7963(0x11b)](_0x42f843,_0x1d7963(0x135),(_0x97430e,_0x3d527a)=>{const _0x277b90=_0x1d7963;this[_0x277b90(0x12a)](_0x3d527a);}),this[_0x1d7963(0x11b)](this[_0x1d7963(0x12b)],_0x1d7963(0x13b),()=>{const _0x18fd1b=_0x1d7963;_0x42f843[_0x18fd1b(0x138)]();});}catch(_0x25ee2d){this[_0x1d7963(0x134)](_0x25ee2d,_0x1d7963(0x113));}}async[_0x37d39d(0x149)](_0x1c8d3c,_0x42e282){const _0x458799=_0x37d39d;await this[_0x458799(0x124)][_0x458799(0x172)](_0x1c8d3c,_0x42e282);}async[_0x37d39d(0x15c)](_0x331000,_0x3a5bda){const _0xc87515=_0x37d39d;await this[_0xc87515(0x124)][_0xc87515(0x16a)](_0x331000,_0x3a5bda);}async[_0x37d39d(0x163)](_0x2e7bb3){const _0x1464f3=_0x37d39d;await this[_0x1464f3(0x124)][_0x1464f3(0x176)](_0x2e7bb3);}async[_0x37d39d(0x165)](_0x5b1f3b){const _0x2ac807=_0x37d39d;await this[_0x2ac807(0x173)][_0x2ac807(0x151)](_0x5b1f3b);}async[_0x37d39d(0x13a)](){const _0x3a2078=_0x37d39d;this[_0x3a2078(0x12b)][_0x3a2078(0x16e)](''),this[_0x3a2078(0x12b)][_0x3a2078(0x14c)](!0x0),await this[_0x3a2078(0x124)][_0x3a2078(0x113)](),this[_0x3a2078(0x12b)][_0x3a2078(0x14c)](!0x1);}[_0x37d39d(0x125)](){const _0x515978=_0x37d39d,_0x1ef6f0=this[_0x515978(0x173)][_0x515978(0x15b)]?.['id'],_0x29841b=this[_0x515978(0x12d)]()[_0x515978(0x159)](_0x1a3469=>({'title':_0x1a3469[_0x515978(0x11d)],'items':_0x1a3469[_0x515978(0x128)][_0x515978(0x159)](_0x1f53a5=>({'id':_0x1f53a5['id'],'title':_0x1f53a5[_0x515978(0x11d)]||_0x2f031c(this[_0x515978(0x133)][_0x515978(0x144)],_0x515978(0x168)),'createdAt':new Date(_0x1f53a5[_0x515978(0x145)])[_0x515978(0x15e)](),'active':_0x1f53a5['id']===_0x1ef6f0,'pinned':_0x1f53a5[_0x515978(0x118)]}))}));this[_0x515978(0x12b)][_0x515978(0x175)](_0x29841b);}[_0x37d39d(0x14b)](_0x88738d,_0x154577){const _0x42e672=_0x37d39d;this[_0x42e672(0x12b)][_0x42e672(0x120)](_0x88738d,_0x154577,!0x0);}[_0x37d39d(0x11a)](_0x377a47){const _0x3db354=_0x37d39d;this[_0x3db354(0x12b)][_0x3db354(0x120)](_0x377a47,null,!0x1);}[_0x37d39d(0x134)](_0x46a323,_0x127c69,_0x464f05){const _0x19e203=_0x37d39d,_0x8e1c29=this[_0x19e203(0x114)](_0x127c69,_0x464f05);this[_0x19e203(0x12b)][_0x19e203(0x16e)](_0x8e1c29),_0x464f05&&this[_0x19e203(0x11a)](_0x464f05),this[_0x19e203(0x12b)][_0x19e203(0x14c)](!0x1);}[_0x37d39d(0x114)](_0x44a57f,_0x592e9e){const _0x44d1d1=_0x37d39d,_0x4e1304=_0x592e9e?this[_0x44d1d1(0x124)][_0x44d1d1(0x174)](_0x592e9e):null,_0x141e90=_0x4e1304?.[_0x44d1d1(0x11d)]||_0x2f031c(this[_0x44d1d1(0x133)][_0x44d1d1(0x144)],_0x44d1d1(0x168));switch(_0x44a57f){case _0x44d1d1(0x172):return _0x2f031c(this[_0x44d1d1(0x133)][_0x44d1d1(0x144)],_0x44d1d1(0x169),_0x141e90);case _0x44d1d1(0x16a):{const _0x541f5f=_0x2f031c(this[_0x44d1d1(0x133)][_0x44d1d1(0x144)],_0x4e1304?.[_0x44d1d1(0x118)]?_0x44d1d1(0x11f):_0x44d1d1(0x162));return _0x2f031c(this[_0x44d1d1(0x133)][_0x44d1d1(0x144)],_0x44d1d1(0x166),[_0x541f5f,_0x141e90]);}case _0x44d1d1(0x176):return _0x2f031c(this[_0x44d1d1(0x133)][_0x44d1d1(0x144)],_0x44d1d1(0x12f),_0x141e90);case _0x44d1d1(0x113):case _0x44d1d1(0x139):return _0x2f031c(this[_0x44d1d1(0x133)][_0x44d1d1(0x144)],_0x44d1d1(0x147));default:return _0x2f031c(this[_0x44d1d1(0x133)][_0x44d1d1(0x144)],_0x44d1d1(0x137));}}[_0x37d39d(0x12d)](){const _0x2e0b45=_0x37d39d,_0x560413=new Date(),_0x49e564=new Date(_0x560413[_0x2e0b45(0x15a)](),_0x560413[_0x2e0b45(0x13c)](),_0x560413[_0x2e0b45(0x148)]()),_0x32be19=new Date(_0x49e564);_0x32be19[_0x2e0b45(0x160)](_0x32be19[_0x2e0b45(0x148)]()-0x1);const _0xe111dc=new Date(_0x49e564);_0xe111dc[_0x2e0b45(0x160)](_0xe111dc[_0x2e0b45(0x148)]()-0xe);const _0x43dd5d=this[_0x2e0b45(0x124)][_0x2e0b45(0x146)]({'pinned':!0x0}),_0x504954=this[_0x2e0b45(0x124)][_0x2e0b45(0x146)]({'from':_0x49e564,'to':_0x49e564}),_0x34a05b=this[_0x2e0b45(0x124)][_0x2e0b45(0x146)]({'from':_0x32be19,'to':_0x32be19}),_0x874a3e=this[_0x2e0b45(0x124)][_0x2e0b45(0x146)]({'from':_0xe111dc,'to':_0x32be19}),_0x585bb1=this[_0x2e0b45(0x124)][_0x2e0b45(0x146)]({'to':_0xe111dc}),_0x19b743=[];return _0x43dd5d[_0x2e0b45(0x141)]>0x0&&_0x19b743[_0x2e0b45(0x143)]({'title':_0x2f031c(this[_0x2e0b45(0x133)][_0x2e0b45(0x144)],_0x2e0b45(0x129)),'items':_0x43dd5d}),_0x504954[_0x2e0b45(0x141)]>0x0&&_0x19b743[_0x2e0b45(0x143)]({'title':_0x2f031c(this[_0x2e0b45(0x133)][_0x2e0b45(0x144)],_0x2e0b45(0x13d)),'items':_0x504954}),_0x34a05b[_0x2e0b45(0x141)]>0x0&&_0x19b743[_0x2e0b45(0x143)]({'title':_0x2f031c(this[_0x2e0b45(0x133)][_0x2e0b45(0x144)],_0x2e0b45(0x153)),'items':_0x34a05b}),_0x874a3e[_0x2e0b45(0x141)]>0x0&&_0x19b743[_0x2e0b45(0x143)]({'title':_0x2f031c(this[_0x2e0b45(0x133)][_0x2e0b45(0x144)],_0x2e0b45(0x131)),'items':_0x874a3e}),_0x585bb1[_0x2e0b45(0x141)]>0x0&&_0x19b743[_0x2e0b45(0x143)]({'title':_0x2f031c(this[_0x2e0b45(0x133)][_0x2e0b45(0x144)],_0x2e0b45(0x178)),'items':_0x585bb1}),_0x19b743;}[_0x37d39d(0x12a)](_0x154503){const _0x356ffb=_0x37d39d;this[_0x356ffb(0x12b)][_0x356ffb(0x158)](_0x154503);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x43f4b7=_0xeca8;(function(_0x803bd9,_0x24871b){const _0x235cf2=_0xeca8,_0x48fab8=_0x803bd9();while(!![]){try{const _0x371c44=parseInt(_0x235cf2(0x1ae))/0x1+parseInt(_0x235cf2(0x19c))/0x2*(parseInt(_0x235cf2(0x1a4))/0x3)+-parseInt(_0x235cf2(0x18e))/0x4*(parseInt(_0x235cf2(0x18f))/0x5)+-parseInt(_0x235cf2(0x197))/0x6+-parseInt(_0x235cf2(0x199))/0x7+parseInt(_0x235cf2(0x1ac))/0x8*(-parseInt(_0x235cf2(0x1aa))/0x9)+parseInt(_0x235cf2(0x1a3))/0xa*(parseInt(_0x235cf2(0x1a2))/0xb);if(_0x371c44===_0x24871b)break;else _0x48fab8['push'](_0x48fab8['shift']());}catch(_0x1e1972){_0x48fab8['push'](_0x48fab8['shift']());}}}(_0x1030,0x43c75));import{ContextPlugin as _0x2c7016}from'ckeditor5/src/core.js';import{AITabs as _0xfd5362}from'../aitabs/aitabs.js';import{IconAIHistory as _0x55c17e}from'ckeditor5/src/icons.js';function _0xeca8(_0x5495e6,_0x288565){const _0x103056=_0x1030();return _0xeca8=function(_0xeca811,_0x4c21c2){_0xeca811=_0xeca811-0x18d;let _0x502b77=_0x103056[_0xeca811];return _0x502b77;},_0xeca8(_0x5495e6,_0x288565);}import{AIChatHistoryView as _0x489ee7}from'./ui/aichathistoryview.js';import{getTranslation as _0x525f78}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';function _0x1030(){const _0x284df1=['234MYLbuP','addTab','11360CrlNJv','updateItems','61901jAADbr','openChat','showError','showResizeButton','context','showConversationHistory','updateHistoryItemsWithCategories','editConversationTitle','AIChatHistoryUI','history','removeConversation','AITabs','pluginName','_historyView','isMaximized','4252XJEInZ','2455EAERbz','setConversationPinned','selectConversation','updateItemTitle','updateItemLoadingState','locale','view','resizeTabs','1291248qnAdmq','hideError','3062766NvMPTe','isLoading','plugins','951394jrsYKK','AI_CHAT_HISTORY_HEADING','delegate','isOfficialPlugin','get','setIsMaximized','1495406VnYqRV','70GcwwOJ','3eDPvAZ','errorMessage','removeHistoryItem','setLoadingSkeleton','requires','isPremiumPlugin'];_0x1030=function(){return _0x284df1;};return _0x1030();}export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x43f4b7(0x1b3),_0x43f4b7(0x1b8),_0x43f4b7(0x1b5),_0x43f4b7(0x190),_0x43f4b7(0x191),_0x43f4b7(0x1af),_0x43f4b7(0x196)];export class AIChatHistoryUI extends _0x2c7016{static get[_0x43f4b7(0x1a8)](){return[_0xfd5362];}[_0x43f4b7(0x1bb)];static get[_0x43f4b7(0x1ba)](){const _0x3957b5=_0x43f4b7;return _0x3957b5(0x1b6);}static get[_0x43f4b7(0x19f)](){return!0x0;}static get[_0x43f4b7(0x1a9)](){return!0x0;}constructor(_0x2e3cd9){const _0x3d3abf=_0x43f4b7;super(_0x2e3cd9);const _0x24c89b=this[_0x3d3abf(0x1b2)][_0x3d3abf(0x19b)][_0x3d3abf(0x1a0)](_0x3d3abf(0x1b9));this[_0x3d3abf(0x1bb)]=new _0x489ee7(this[_0x3d3abf(0x1b2)][_0x3d3abf(0x194)],_0x24c89b[_0x3d3abf(0x1b1)]),this[_0x3d3abf(0x1bb)][_0x3d3abf(0x19e)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x24c89b[_0x3d3abf(0x195)][_0x3d3abf(0x1ab)]({'id':_0x3d3abf(0x1b7),'buttonLabel':_0x525f78(this[_0x3d3abf(0x1b2)][_0x3d3abf(0x194)],_0x3d3abf(0x19d)),'buttonIcon':_0x55c17e,'order':0x0,'content':this[_0x3d3abf(0x1bb)]});}[_0x43f4b7(0x1a6)](_0xe23538){const _0xe8e949=_0x43f4b7;this[_0xe8e949(0x1bb)][_0xe8e949(0x1a6)](_0xe23538);}[_0x43f4b7(0x1ad)](_0x28ac4e){const _0x308a1c=_0x43f4b7;this[_0x308a1c(0x1bb)][_0x308a1c(0x1b4)](_0x28ac4e);}[_0x43f4b7(0x192)](_0x4f385f,_0x4d4f9c){const _0xbe641=_0x43f4b7;this[_0xbe641(0x1bb)][_0xbe641(0x192)](_0x4f385f,_0x4d4f9c);}[_0x43f4b7(0x193)](_0x24263d,_0x5776f2,_0xc43885){const _0x25d06e=_0x43f4b7;this[_0x25d06e(0x1bb)][_0x25d06e(0x193)](_0x24263d,_0x5776f2,_0xc43885);}[_0x43f4b7(0x1a7)](_0x37ddb5){const _0x4e21bf=_0x43f4b7;this[_0x4e21bf(0x1bb)][_0x4e21bf(0x19a)]=_0x37ddb5;}[_0x43f4b7(0x1b0)](_0x17d05b){const _0x3303b5=_0x43f4b7;this[_0x3303b5(0x1bb)][_0x3303b5(0x1a5)]=_0x17d05b;}[_0x43f4b7(0x198)](){const _0x538da3=_0x43f4b7;this[_0x538da3(0x1bb)][_0x538da3(0x1a5)]='';}[_0x43f4b7(0x1a1)](_0x5adfcd){const _0x2c9e80=_0x43f4b7;this[_0x2c9e80(0x1bb)][_0x2c9e80(0x18d)]=_0x5adfcd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x224b15=_0x4f37;(function(_0x11174f,_0x4b753f){const _0xb770c0=_0x4f37,_0x3cd8ea=_0x11174f();while(!![]){try{const _0x145972=parseInt(_0xb770c0(0xef))/0x1*(parseInt(_0xb770c0(0xc6))/0x2)+parseInt(_0xb770c0(0xd6))/0x3+parseInt(_0xb770c0(0xc3))/0x4+-parseInt(_0xb770c0(0xca))/0x5*(parseInt(_0xb770c0(0xdd))/0x6)+parseInt(_0xb770c0(0xdc))/0x7+parseInt(_0xb770c0(0xe2))/0x8*(-parseInt(_0xb770c0(0xd7))/0x9)+parseInt(_0xb770c0(0xce))/0xa*(-parseInt(_0xb770c0(0xd5))/0xb);if(_0x145972===_0x4b753f)break;else _0x3cd8ea['push'](_0x3cd8ea['shift']());}catch(_0x59ce6e){_0x3cd8ea['push'](_0x3cd8ea['shift']());}}}(_0x311e,0x1c119));import{EmitterMixin as _0x207839}from'ckeditor5/src/utils.js';function _0x4f37(_0x3c4971,_0x6eaab5){const _0x311e28=_0x311e();return _0x4f37=function(_0x4f37c4,_0x240650){_0x4f37c4=_0x4f37c4-0xc1;let _0x56582d=_0x311e28[_0x4f37c4];return _0x56582d;},_0x4f37(_0x3c4971,_0x6eaab5);}import{AIChatHistoryItem as _0x45e68b}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x207839(){[_0x224b15(0xdb)]=[];[_0x224b15(0xd0)];[_0x224b15(0xed)];constructor({connector:_0x1430d1,group:_0x31c38c}){const _0x215352=_0x224b15;super(),this[_0x215352(0xd0)]=_0x1430d1,this[_0x215352(0xed)]=_0x31c38c;}async[_0x224b15(0xc5)](){const _0x1b93bc=_0x224b15;try{const _0x4e0c21=this[_0x1b93bc(0xd0)][_0x1b93bc(0xcb)](this[_0x1b93bc(0xed)]),_0x487bf0=await _0x4e0c21[_0x1b93bc(0xeb)]();this[_0x1b93bc(0xc8)](_0x487bf0);}catch(_0x589948){this[_0x1b93bc(0xe0)](_0x1b93bc(0xde),{'error':_0x589948,'operation':_0x1b93bc(0xc5)});}}[_0x224b15(0xe5)](_0x502134){const _0x4bdea2=_0x224b15;this[_0x4bdea2(0xdb)][_0x4bdea2(0xec)](_0x502134);}async[_0x224b15(0xe1)](_0x5e9782){const _0x3db2d5=_0x224b15,_0x18204f=this[_0x3db2d5(0xdb)][_0x3db2d5(0xe4)](_0x54193c=>_0x54193c['id']===_0x5e9782);if(-0x1===_0x18204f)return!0x1;try{return await this[_0x3db2d5(0xd0)][_0x3db2d5(0xdf)](_0x5e9782)[_0x3db2d5(0xcc)](),this[_0x3db2d5(0xdb)][_0x3db2d5(0xda)](_0x18204f,0x1),this[_0x3db2d5(0xe0)](_0x3db2d5(0xea),{'itemId':_0x5e9782}),!0x0;}catch(_0x5ad244){return this[_0x3db2d5(0xe0)](_0x3db2d5(0xde),{'error':_0x5ad244,'operation':_0x3db2d5(0xe1),'itemId':_0x5e9782}),!0x1;}}[_0x224b15(0xd2)](_0x14e153){const _0x5dd867=_0x224b15;return this[_0x5dd867(0xdb)][_0x5dd867(0xe6)](_0x1b4e4c=>_0x1b4e4c['id']===_0x14e153);}async[_0x224b15(0xc9)](_0x114577,_0x1c00bf){const _0x330a11=_0x224b15,_0x57ba66=this[_0x330a11(0xd2)](_0x114577);if(!_0x57ba66)return!0x1;try{return await this[_0x330a11(0xd0)][_0x330a11(0xc1)](_0x114577,{'title':_0x1c00bf})[_0x330a11(0xc4)](),_0x57ba66[_0x330a11(0xd1)](_0x1c00bf),this[_0x330a11(0xe0)](_0x330a11(0xd3),{'itemId':_0x114577,'updates':{'title':_0x1c00bf}}),!0x0;}catch(_0x4dbc48){return this[_0x330a11(0xe0)](_0x330a11(0xde),{'error':_0x4dbc48,'operation':_0x330a11(0xc9),'itemId':_0x114577}),!0x1;}}async[_0x224b15(0xe9)](_0x1ced30,_0x5b1386){const _0x3f603b=_0x224b15,_0xc0e00a=this[_0x3f603b(0xd2)](_0x1ced30);if(!_0xc0e00a)return!0x1;try{return await this[_0x3f603b(0xd0)][_0x3f603b(0xc1)](_0x1ced30,{'pinned':_0x5b1386})[_0x3f603b(0xc4)](),_0xc0e00a[_0x3f603b(0xf0)](_0x5b1386),this[_0x3f603b(0xe0)](_0x3f603b(0xd3),{'itemId':_0x1ced30,'updates':{'pinned':_0x5b1386}}),!0x0;}catch(_0x51fcea){return this[_0x3f603b(0xe0)](_0x3f603b(0xde),{'error':_0x51fcea,'operation':_0x3f603b(0xe9),'itemId':_0x1ced30}),!0x1;}}[_0x224b15(0xc8)](_0xc70f34){const _0x2c543b=_0x224b15;try{this[_0x2c543b(0xdb)]=[],_0xc70f34[_0x2c543b(0xd9)](_0x31e623=>{const _0xb0f572=_0x2c543b;this[_0xb0f572(0xe5)](new _0x45e68b(_0x31e623));}),this[_0x2c543b(0xe0)](_0x2c543b(0xe8),{'items':[...this[_0x2c543b(0xdb)]]});}catch(_0x3f554a){this[_0x2c543b(0xe0)](_0x2c543b(0xde),{'error':_0x3f554a,'operation':_0x2c543b(0xc8)});}}[_0x224b15(0xcf)](_0x3f5d57={}){const _0x212a6d=_0x224b15,_0x287daf=void 0x0!==_0x3f5d57[_0x212a6d(0xc7)]&&_0x3f5d57[_0x212a6d(0xc7)],_0x36e8e3=_0x3f5d57[_0x212a6d(0xcd)]?new Date(_0x3f5d57[_0x212a6d(0xcd)][_0x212a6d(0xc2)](),_0x3f5d57[_0x212a6d(0xcd)][_0x212a6d(0xd4)](),_0x3f5d57[_0x212a6d(0xcd)][_0x212a6d(0xd8)]()):null,_0x5ceccf=_0x3f5d57['to']?new Date(_0x3f5d57['to'][_0x212a6d(0xc2)](),_0x3f5d57['to'][_0x212a6d(0xd4)](),_0x3f5d57['to'][_0x212a6d(0xd8)]()):null;return this[_0x212a6d(0xdb)][_0x212a6d(0xe7)](_0x45323c=>{const _0x5a38fc=_0x212a6d;if(_0x45323c[_0x5a38fc(0xc7)]!==_0x287daf)return!0x1;if(_0x5ceccf){const _0x1b1298=new Date(_0x45323c[_0x5a38fc(0xee)][_0x5a38fc(0xc2)](),_0x45323c[_0x5a38fc(0xee)][_0x5a38fc(0xd4)](),_0x45323c[_0x5a38fc(0xee)][_0x5a38fc(0xd8)]());return _0x36e8e3?_0x36e8e3[_0x5a38fc(0xe3)]()===_0x5ceccf[_0x5a38fc(0xe3)]()?_0x1b1298[_0x5a38fc(0xe3)]()===_0x36e8e3[_0x5a38fc(0xe3)]():_0x1b1298<_0x5ceccf&&_0x1b1298>=_0x36e8e3:_0x1b1298<_0x5ceccf;}return!0x0;});}}function _0x311e(){const _0x13e8ac=['getTime','findIndex','addItem','find','filter','itemsLoaded','updateItemPinned','itemRemoved','getConversations','push','group','createdAt','38156rKHeJz','updatePinned','updateConversation','getFullYear','877112nIZCoH','getResult','init','8SigGNa','pinned','loadItems','updateItemTitle','46505rLZLCA','fetchConversations','execute','from','2007730obTRef','getItems','connector','updateTitle','getItem','itemUpdated','getMonth','11BzQNoA','74223KtwYLc','36VJasdi','getDate','map','splice','items','1191050BZpJzp','114jEdZtD','error','deleteConversation','fire','removeItem','148664dMuTpE'];_0x311e=function(){return _0x13e8ac;};return _0x311e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2dcc25=_0x187d;(function(_0x51db8e,_0x5adade){var _0x316ac2=_0x187d,_0x182c8d=_0x51db8e();while(!![]){try{var _0x202119=-parseInt(_0x316ac2(0x143))/0x1+-parseInt(_0x316ac2(0x149))/0x2*(-parseInt(_0x316ac2(0x144))/0x3)+parseInt(_0x316ac2(0x141))/0x4+parseInt(_0x316ac2(0x140))/0x5+-parseInt(_0x316ac2(0x13d))/0x6+-parseInt(_0x316ac2(0x147))/0x7+parseInt(_0x316ac2(0x146))/0x8;if(_0x202119===_0x5adade)break;else _0x182c8d['push'](_0x182c8d['shift']());}catch(_0x2278d5){_0x182c8d['push'](_0x182c8d['shift']());}}}(_0x2d96,0xb5a31));import{ObservableMixin as _0x520e2c}from'ckeditor5/src/utils.js';function _0x187d(_0x4e34c0,_0x2bfde5){var _0x2d96e5=_0x2d96();return _0x187d=function(_0x187d55,_0x5579ab){_0x187d55=_0x187d55-0x13d;var _0x58cdb5=_0x2d96e5[_0x187d55];return _0x58cdb5;},_0x187d(_0x4e34c0,_0x2bfde5);}function _0x2d96(){var _0x4f8d73=['2BeVqbi','createdAt','title','3062388TchLRr','updatePinned','pinned','3167615LxVQLN','5607552ZxBwPZ','set','1419121lzcDsV','1216509IOXsAY','updatedAt','5595904HcOUFT','3268286gJQaIT','updateTitle'];_0x2d96=function(){return _0x4f8d73;};return _0x2d96();}import{escape as _0x5308ba}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x520e2c(){['id'];[_0x2dcc25(0x14a)];constructor({id:_0x4898bd,title:_0x5c3429,createdAt:_0x2f9a03,updatedAt:_0x5de851,pinned:_0x66d753}){var _0x57fed6=_0x2dcc25;super(),this['id']=_0x4898bd,this[_0x57fed6(0x14a)]=new Date(_0x2f9a03),this[_0x57fed6(0x142)](_0x57fed6(0x14b),_0x5c3429),this[_0x57fed6(0x142)](_0x57fed6(0x145),_0x5de851?new Date(_0x5de851):null),this[_0x57fed6(0x142)](_0x57fed6(0x13f),_0x66d753||!0x1);}[_0x2dcc25(0x148)](_0x54e792){var _0x2c511c=_0x2dcc25;this[_0x2c511c(0x142)](_0x2c511c(0x14b),_0x5308ba(_0x54e792)),this[_0x2c511c(0x145)]=new Date();}[_0x2dcc25(0x13e)](_0x390929){var _0x50767f=_0x2dcc25;this[_0x50767f(0x142)](_0x50767f(0x13f),_0x390929),this[_0x50767f(0x145)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x553997=_0x2f90;function _0x2972(){const _0x27bb7d=['ck-ai-chat-history__item-check','removeConversation','13797113dsrkLM','items','extendTemplate','buttonView','344UXfGjb','ck-ai-chat-history__item-main-content','isVisible','locale','ck-ai-chat-history__item--edit','editConversationTitle','_titleView','ck-ai-chat-history__item-actions','ck-ai-chat-history__item-date','children','value','bindTemplate','highlightText','panelView','_commitEditInputValue','26656UGeMNG','ck-hidden','div','addMany','fire','add','set','execute','updateLoadingState','8EDVzSA','match','AI_CHAT_HISTORY_LOADING_PINNING','515885LcWAFm','bind','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item-title','AI_CHAT_HISTORY_LOADING_UNPINNING','panelPosition','showConfirm','AI_CHAT_HISTORY_REMOVE','_createPinButtonView','pinned','AI_CHAT_HISTORY_LOADING_REMOVING','listitem','mainContent','actions','_createEditInputView','text','Enter','isMatching','ck-confirm-view-submit','element','createCollection','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item','setConversationPinned','ck-ai-chat-history__item-row','span','isEdit','updateTitle','tiny','1110530XuYVes','label','change:isEdit','click','AI_CHAT_HISTORY_EDIT_NAME','focus','2322006egucXd','AI_CHAT_HISTORY_LOADING_RENAMING','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_PIN_BUTTON','setTemplate','4QcQGSO','then','string','_createAcceptEditButtonView','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-loader__text','isOn','ck-confirm-view-cancel','withText','LOADING_LABELS','clear','ck-ai-loader','9tpdFrx','_createCheckView','selectConversation','ck-ai-chat-history__item-check-container','73639xJLrvO','695745KqcsBk','key','ck-ai-chat-history__item--active','loadingState','_createSpinnerView','_createCancelEditButtonView','_createMenuDropdownView','ck-ai-chat-history__item-content','edit:cancel'];_0x2972=function(){return _0x27bb7d;};return _0x2972();}(function(_0x3949b4,_0x470a21){const _0x194f16=_0x2f90,_0x451f8c=_0x3949b4();while(!![]){try{const _0x386771=-parseInt(_0x194f16(0x117))/0x1*(parseInt(_0x194f16(0x107))/0x2)+-parseInt(_0x194f16(0x118))/0x3+parseInt(_0x194f16(0xdc))/0x4*(-parseInt(_0x194f16(0xdf))/0x5)+-parseInt(_0x194f16(0x102))/0x6+parseInt(_0x194f16(0x136))/0x7*(-parseInt(_0x194f16(0x127))/0x8)+parseInt(_0x194f16(0x113))/0x9*(parseInt(_0x194f16(0xfc))/0xa)+parseInt(_0x194f16(0x123))/0xb;if(_0x386771===_0x470a21)break;else _0x451f8c['push'](_0x451f8c['shift']());}catch(_0x10323c){_0x451f8c['push'](_0x451f8c['shift']());}}}(_0x2972,0x37eb4));import{ListItemView as _0x302fbf,HighlightedTextView as _0x3b1193,ButtonView as _0x5ee210,ListView as _0x3a4eac,IconView as _0x50f5e8,createDropdown as _0x3e78cd,InputTextView as _0x490ba7}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x1ba7de,IconPin as _0x9a4c6f,IconCheck as _0x2db247,IconCancel as _0x3e4b92}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1ec615,ConfirmMixin as _0x23b4c4}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x2843e6}from'es-toolkit/compat';function _0x2f90(_0x471217,_0x3ed32b){const _0x29723b=_0x2972();return _0x2f90=function(_0x2f907a,_0x6c1a21){_0x2f907a=_0x2f907a-0xd7;let _0x2e0dd6=_0x29723b[_0x2f907a];return _0x2e0dd6;},_0x2f90(_0x471217,_0x3ed32b);}import{AISpinnerView as _0xe18f81}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x480ff1}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x23b4c4(_0x302fbf){['id'];static [_0x553997(0x110)]={'remove':_0x553997(0xe9),'rename':_0x553997(0x103),'pin':_0x553997(0xde),'unpin':_0x553997(0xe3)};[_0x553997(0xec)];[_0x553997(0xeb)];[_0x553997(0x12d)];constructor(_0x17c042,_0x532329){const _0x9c5efb=_0x553997;super(_0x17c042);const _0x3cde93=this[_0x9c5efb(0x132)];this[_0x9c5efb(0xd9)](_0x9c5efb(0xf9),!0x1),this[_0x9c5efb(0xd9)](_0x9c5efb(0x129),!0x0),this[_0x9c5efb(0xd9)](_0x9c5efb(0xe8),!!_0x532329[_0x9c5efb(0xe8)]),this[_0x9c5efb(0xd9)](_0x9c5efb(0x11b),null),this['id']=_0x532329['id'];const {title:_0x58dfe6,createdAt:_0x1eff18,active:_0x39e11a=!0x1}=_0x532329;this[_0x9c5efb(0x12d)]=new _0x3b1193(),this[_0x9c5efb(0x12d)][_0x9c5efb(0xee)]=_0x58dfe6,this[_0x9c5efb(0x12d)][_0x9c5efb(0x125)]({'attributes':{'class':[_0x9c5efb(0xe2)]}});const _0x3f93e3=this[_0x9c5efb(0x114)](),_0xf54bbd=this[_0x9c5efb(0xe7)](_0x17c042),_0x2e8db0=this[_0x9c5efb(0x11e)](),_0x2000ab=this[_0x9c5efb(0xed)](_0x17c042,_0x58dfe6),_0x32e587=this[_0x9c5efb(0x10a)](_0x17c042,_0x2000ab),_0x1cf223=this[_0x9c5efb(0x11d)](_0x17c042,_0x2000ab);this[_0x9c5efb(0xec)]=this[_0x9c5efb(0xf3)](),this[_0x9c5efb(0xeb)]=this[_0x9c5efb(0xf3)](),this[_0x9c5efb(0xeb)][_0x9c5efb(0xd8)](this[_0x9c5efb(0x12d)]),this[_0x9c5efb(0xec)][_0x9c5efb(0xd8)](_0xf54bbd),this[_0x9c5efb(0xec)][_0x9c5efb(0xd8)](_0x2e8db0),this['on'](_0x9c5efb(0xfe),(_0xf35a21,_0x4dc89d,_0x3a1cdf)=>{const _0xdb3a41=_0x9c5efb;this[_0xdb3a41(0xec)][_0xdb3a41(0x111)](),this[_0xdb3a41(0xeb)][_0xdb3a41(0x111)](),_0x3a1cdf?(this[_0xdb3a41(0xec)][_0xdb3a41(0xd8)](_0x32e587),this[_0xdb3a41(0xec)][_0xdb3a41(0xd8)](_0x1cf223),this[_0xdb3a41(0xeb)][_0xdb3a41(0xd8)](_0x2000ab),_0x2000ab[_0xdb3a41(0xf2)][_0xdb3a41(0x101)]()):(this[_0xdb3a41(0xec)][_0xdb3a41(0xd8)](_0xf54bbd),this[_0xdb3a41(0xec)][_0xdb3a41(0xd8)](_0x2e8db0),this[_0xdb3a41(0xeb)][_0xdb3a41(0xd8)](this[_0xdb3a41(0x12d)]));}),this[_0x9c5efb(0x106)]({'tag':'li','attributes':{'class':[_0x9c5efb(0xf5),_0x39e11a?_0x9c5efb(0x11a):'',_0x3cde93['if'](_0x9c5efb(0x129),_0x9c5efb(0x137),_0x334b32=>!_0x334b32),_0x3cde93['if'](_0x9c5efb(0xf9),_0x9c5efb(0x12b))],'role':_0x9c5efb(0xea)},'children':[{'tag':_0x9c5efb(0xf8),'attributes':{'class':[_0x9c5efb(0x116)]},'children':[{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0x121),_0x3cde93['if'](_0x9c5efb(0x11b),_0x9c5efb(0x137),_0x39045f=>!!_0x39045f)]},'children':_0x39e11a?[_0x3f93e3]:[]},{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0x112),_0x3cde93['if'](_0x9c5efb(0x11b),_0x9c5efb(0x137),_0x4c457b=>!_0x4c457b)]},'children':[this[_0x9c5efb(0x11c)]()]}]},{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0xf7)]},'children':[{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0x11f)]},'on':{'click':this[_0x9c5efb(0x132)]['to'](_0x9c5efb(0xff))},'children':[{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0x128)]},'children':[{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0xe2),_0x3cde93['if'](_0x9c5efb(0x11b),_0x9c5efb(0x137),_0xb06584=>!!_0xb06584)]},'children':this[_0x9c5efb(0xeb)]},{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0x10c),_0x3cde93['if'](_0x9c5efb(0x11b),_0x9c5efb(0x137),_0x5c84b5=>!_0x5c84b5)]},'children':[{'text':_0x3cde93['to'](_0x9c5efb(0x11b),_0x389549=>_0x389549?_0x480ff1(this[_0x9c5efb(0x12a)],AIChatHistoryListItemView[_0x9c5efb(0x110)][_0x389549]):'')}]}]},{'tag':_0x9c5efb(0xf8),'attributes':{'class':[_0x9c5efb(0x12f)]},'children':[_0x1eff18]}]},{'tag':_0x9c5efb(0x138),'attributes':{'class':[_0x9c5efb(0x12e)]},'children':this[_0x9c5efb(0xec)]}]}]}),this['on'](_0x9c5efb(0xff),()=>{const _0x23f225=_0x9c5efb;this[_0x23f225(0xf9)]||this[_0x23f225(0xd7)](_0x23f225(0x115),{'id':this['id']});});}[_0x553997(0xfa)](_0x559e3b){const _0x1d48dc=_0x553997;this[_0x1d48dc(0x12d)][_0x1d48dc(0xee)]=_0x2843e6(_0x559e3b);}[_0x553997(0xdb)](_0x537d1b,_0x728f01){const _0x5f443d=_0x553997;this[_0x5f443d(0xd9)](_0x5f443d(0x11b),_0x728f01?_0x537d1b:null);}[_0x553997(0x114)](){const _0x934201=_0x553997,_0x2fda1b=new _0x50f5e8();return _0x2fda1b[_0x934201(0xd9)]({'content':_0x2db247}),_0x2fda1b;}[_0x553997(0xe7)](_0x56efe1){const _0x422407=_0x553997,_0x712e81=new _0x5ee210(_0x56efe1);return _0x712e81[_0x422407(0xd9)]({'label':_0x480ff1(_0x56efe1,_0x422407(0x105)),'icon':_0x9a4c6f,'withText':!0x1,'tooltip':!0x0}),_0x712e81[_0x422407(0xe0)](_0x422407(0x10d))['to'](this,_0x422407(0xe8)),_0x712e81['on'](_0x422407(0xda),()=>{const _0x5c05bc=_0x422407,_0x10673e=!this[_0x5c05bc(0xe8)];this[_0x5c05bc(0xd7)](_0x5c05bc(0xf6),{'id':this['id'],'pinned':_0x10673e});}),_0x712e81;}[_0x553997(0x11e)](){const _0x2c911b=_0x553997,_0x20cae2=_0x3e78cd(this[_0x2c911b(0x12a)],_0x1ec615),_0x558c3c=_0x20cae2[_0x2c911b(0x134)][_0x2c911b(0x130)];_0x20cae2[_0x2c911b(0x126)][_0x2c911b(0xd9)]({'label':_0x480ff1(this[_0x2c911b(0x12a)],_0x2c911b(0x10b)),'icon':_0x1ba7de}),_0x20cae2[_0x2c911b(0xe4)]='sw';const _0x5d7f3f=new _0x5ee210(this[_0x2c911b(0x12a)]);_0x5d7f3f[_0x2c911b(0xfd)]=_0x480ff1(this[_0x2c911b(0x12a)],_0x2c911b(0x100)),_0x5d7f3f[_0x2c911b(0x10f)]=!0x0,_0x5d7f3f['on'](_0x2c911b(0xda),()=>{const _0x435105=_0x2c911b;this[_0x435105(0xf9)]=!0x0;});const _0x5915e2=new _0x5ee210(this[_0x2c911b(0x12a)]);_0x5915e2[_0x2c911b(0xfd)]=_0x480ff1(this[_0x2c911b(0x12a)],_0x2c911b(0xe6)),_0x5915e2[_0x2c911b(0x10f)]=!0x0,_0x5915e2['on'](_0x2c911b(0xda),()=>{const _0x2464ff=_0x2c911b;this[_0x2464ff(0xe5)](_0x480ff1(this[_0x2464ff(0x12a)],_0x2464ff(0xf4)),this[_0x2464ff(0xf2)])[_0x2464ff(0x108)](()=>{const _0x19c48a=_0x2464ff;this[_0x19c48a(0xd7)](_0x19c48a(0x122),{'id':this['id']});});});const _0x2185d7=new _0x3a4eac(this[_0x2c911b(0x12a)]),_0x573953=new _0x302fbf(this[_0x2c911b(0x12a)]);_0x573953[_0x2c911b(0x130)][_0x2c911b(0xd8)](_0x5d7f3f);const _0x1488ed=new _0x302fbf(this[_0x2c911b(0x12a)]);return _0x1488ed[_0x2c911b(0x130)][_0x2c911b(0xd8)](_0x5915e2),_0x2185d7[_0x2c911b(0x124)][_0x2c911b(0x139)]([_0x573953,_0x1488ed]),_0x558c3c[_0x2c911b(0xd8)](_0x2185d7),_0x20cae2;}[_0x553997(0xed)](_0x537ae7,_0x446030){const _0xf4877c=_0x553997,_0x2a2243=new _0x490ba7(_0x537ae7),_0x2df8de=_0x2a2243[_0xf4877c(0x132)];return _0x2a2243[_0xf4877c(0x131)]=_0x446030,_0x2a2243[_0xf4877c(0x125)]({'on':{'keydown':_0x2df8de['to'](_0x14ebd1=>{const _0x2509df=_0xf4877c;_0x2509df(0xef)==_0x14ebd1[_0x2509df(0x119)]&&this[_0x2509df(0x135)](_0x2a2243);})}}),_0x2a2243;}[_0x553997(0x10a)](_0x4b5fe2,_0x3ad561){const _0x35753c=_0x553997,_0x566d52=new _0x5ee210(_0x4b5fe2);return _0x566d52[_0x35753c(0xd9)]({'icon':_0x2db247,'withText':!0x1,'tooltip':_0x480ff1(_0x4b5fe2,_0x35753c(0x104))}),_0x566d52[_0x35753c(0x125)]({'attributes':{'class':[_0x35753c(0xf1)]}}),_0x566d52['on'](_0x35753c(0xda),()=>{const _0x48e6ff=_0x35753c;this[_0x48e6ff(0x135)](_0x3ad561);}),_0x566d52;}[_0x553997(0x135)](_0x435e9c){const _0xa5843c=_0x553997,_0x8772c8=_0x435e9c[_0xa5843c(0xf2)][_0xa5843c(0x131)]||'';this[_0xa5843c(0x12d)][_0xa5843c(0xee)]=_0x8772c8,this[_0xa5843c(0xf9)]=!0x1,this[_0xa5843c(0xd7)](_0xa5843c(0x12c),{'id':this['id'],'title':_0x8772c8});}[_0x553997(0x11d)](_0x2d7e2e,_0x210a49){const _0x526ec8=_0x553997,_0x4b901f=new _0x5ee210(_0x2d7e2e);return _0x4b901f[_0x526ec8(0xd9)]({'icon':_0x3e4b92,'withText':!0x1,'tooltip':_0x480ff1(_0x2d7e2e,_0x526ec8(0xe1))}),_0x4b901f[_0x526ec8(0x125)]({'attributes':{'class':[_0x526ec8(0x10e)]}}),_0x4b901f['on'](_0x526ec8(0xda),()=>{const _0x475319=_0x526ec8;this[_0x475319(0xf9)]=!0x1,_0x210a49[_0x475319(0x131)]=this[_0x475319(0x12d)][_0x475319(0xee)]||'',this[_0x475319(0xd7)](_0x475319(0x120));}),_0x4b901f;}[_0x553997(0x11c)](){const _0x1a9abf=_0x553997,_0xd1c9=new _0xe18f81(_0x1a9abf(0xfb));return _0xd1c9[_0x1a9abf(0x129)]=!0x0,_0xd1c9;}[_0x553997(0xf0)](_0x357bf2){const _0x23418b=_0x553997;return this[_0x23418b(0x12d)]&&_0x23418b(0x109)==typeof this[_0x23418b(0x12d)][_0x23418b(0xee)]&&this[_0x23418b(0x12d)][_0x23418b(0xee)][_0x23418b(0xdd)](_0x357bf2)?{'title':!0x0}:null;}[_0x553997(0x133)](_0x4029ee){const _0x4c9368=_0x553997;this[_0x4c9368(0x12d)][_0x4c9368(0x133)](_0x4029ee);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x425cb4=_0x5c60;function _0x5c60(_0x243311,_0xbbaa1e){const _0x2f5dee=_0x2f5d();return _0x5c60=function(_0x5c60f8,_0x455637){_0x5c60f8=_0x5c60f8-0xd4;let _0x260e69=_0x2f5dee[_0x5c60f8];return _0x260e69;},_0x5c60(_0x243311,_0xbbaa1e);}(function(_0x4b75c8,_0x302ac7){const _0x26eb0f=_0x5c60,_0x354e66=_0x4b75c8();while(!![]){try{const _0x50cadf=-parseInt(_0x26eb0f(0xeb))/0x1+-parseInt(_0x26eb0f(0xea))/0x2*(parseInt(_0x26eb0f(0xe8))/0x3)+-parseInt(_0x26eb0f(0xdc))/0x4+parseInt(_0x26eb0f(0xec))/0x5*(parseInt(_0x26eb0f(0xf3))/0x6)+-parseInt(_0x26eb0f(0xf4))/0x7*(-parseInt(_0x26eb0f(0xde))/0x8)+-parseInt(_0x26eb0f(0xed))/0x9+parseInt(_0x26eb0f(0xe1))/0xa;if(_0x50cadf===_0x302ac7)break;else _0x354e66['push'](_0x354e66['shift']());}catch(_0x166dca){_0x354e66['push'](_0x354e66['shift']());}}}(_0x2f5d,0x3d2cf));function _0x2f5d(){const _0x37c563=['417726hyIoqL','1086765doaImh','2180016FLwOtw','title','ck-ai-chat-history__section-title','addMany','length','setTemplate','12qHxBeG','583450LctEWg','find','ck-hidden','isMatching','removeItem','itemsViews','set','highlightText','div','170992CkgpTm','isVisible','24QeHAzI','getItem','indexOf','4134550AvawlU','remove','_itemsListView','bindTemplate','splice','filter','ck-ai-chat-history__section','217407zbxqvD','items','4VrTrEp'];_0x2f5d=function(){return _0x37c563;};return _0x2f5d();}import{ListItemView as _0x2d32b9,View as _0x3ebb94,ListView as _0x259c62}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x2d32b9{[_0x425cb4(0xee)];[_0x425cb4(0xd8)];[_0x425cb4(0xe3)];constructor(_0x32e85b,{title:_0x5939a4,items:_0x43baa4}){const _0x2befdb=_0x425cb4;super(_0x32e85b);const _0x38c0aa=this[_0x2befdb(0xe4)];this[_0x2befdb(0xd9)](_0x2befdb(0xdd),!0x0),this[_0x2befdb(0xee)]=_0x5939a4,this[_0x2befdb(0xd8)]=_0x43baa4;const _0x24bc32=new _0x3ebb94(_0x32e85b);_0x24bc32[_0x2befdb(0xf2)]({'tag':_0x2befdb(0xdb),'attributes':{'class':[_0x2befdb(0xef)]},'children':[this[_0x2befdb(0xee)]]}),this[_0x2befdb(0xe3)]=new _0x259c62(_0x32e85b),this[_0x2befdb(0xe3)][_0x2befdb(0xe9)][_0x2befdb(0xf0)](this[_0x2befdb(0xd8)]),this[_0x2befdb(0xf2)]({'tag':'li','attributes':{'class':[_0x2befdb(0xe7),_0x38c0aa['if'](_0x2befdb(0xdd),_0x2befdb(0xd5),_0x536672=>!_0x536672)]},'children':[_0x24bc32,this[_0x2befdb(0xe3)]]});}[_0x425cb4(0xe6)](_0x2817fd){const _0x18b197=_0x425cb4,_0x26b8b2=this[_0x18b197(0xd8)][_0x18b197(0xf1)];let _0x4e9590=0x0;for(const _0x369324 of this[_0x18b197(0xd8)]){if(_0x2817fd){const _0x3c86c8=_0x369324[_0x18b197(0xd6)](_0x2817fd);_0x369324[_0x18b197(0xdd)]=!!_0x3c86c8,_0x369324[_0x18b197(0xda)](_0x2817fd);}else _0x369324[_0x18b197(0xdd)]=!0x0,_0x369324[_0x18b197(0xda)](null);_0x369324[_0x18b197(0xdd)]&&_0x4e9590++;}return this[_0x18b197(0xdd)]=_0x4e9590>0x0,{'resultsCount':_0x4e9590,'totalItemsCount':_0x26b8b2};}[_0x425cb4(0xdf)](_0x28ac17){const _0x408d00=_0x425cb4;return this[_0x408d00(0xd8)][_0x408d00(0xd4)](_0x322e96=>_0x322e96['id']===_0x28ac17);}[_0x425cb4(0xd7)](_0x4eeb35){const _0x889e0e=_0x425cb4,_0x3d2b26=this[_0x889e0e(0xd8)][_0x889e0e(0xe0)](_0x4eeb35);-0x1!==_0x3d2b26&&(this[_0x889e0e(0xd8)][_0x889e0e(0xe5)](_0x3d2b26,0x1),this[_0x889e0e(0xe3)][_0x889e0e(0xe9)][_0x889e0e(0xe2)](_0x4eeb35));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5d27(_0x422404,_0x3a8f23){const _0x4640ac=_0x4640();return _0x5d27=function(_0x5d2726,_0x134d8d){_0x5d2726=_0x5d2726-0x1b9;let _0x25e859=_0x4640ac[_0x5d2726];return _0x25e859;},_0x5d27(_0x422404,_0x3a8f23);}const _0x5ce91b=_0x5d27;function _0x4640(){const _0x3496ca=['879083dNFOLK','2203258yydCHY','addMany','extendTemplate','sections','3638298YcVHRH','ck-ai-chat-history__sections','22610232MblCrQ','3aFyZIp','5dlqpnl','724692GCvHrl','3409016xedgRj','5486607eZSdyx','items','filter'];_0x4640=function(){return _0x3496ca;};return _0x4640();}(function(_0x41cb42,_0x249a9c){const _0x56881c=_0x5d27,_0x3af6a1=_0x41cb42();while(!![]){try{const _0x3b2682=-parseInt(_0x56881c(0x1be))/0x1+parseInt(_0x56881c(0x1bf))/0x2*(parseInt(_0x56881c(0x1c6))/0x3)+-parseInt(_0x56881c(0x1b9))/0x4+-parseInt(_0x56881c(0x1c7))/0x5*(parseInt(_0x56881c(0x1c3))/0x6)+-parseInt(_0x56881c(0x1bb))/0x7+-parseInt(_0x56881c(0x1ba))/0x8+parseInt(_0x56881c(0x1c5))/0x9;if(_0x3b2682===_0x249a9c)break;else _0x3af6a1['push'](_0x3af6a1['shift']());}catch(_0x37001f){_0x3af6a1['push'](_0x3af6a1['shift']());}}}(_0x4640,0xb401e));import{ListView as _0x4fe8c4}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x4fe8c4{[_0x5ce91b(0x1c2)];constructor(_0x3daa4c,_0x3bccc7){const _0x1fec11=_0x5ce91b;super(_0x3daa4c),this[_0x1fec11(0x1c2)]=_0x3bccc7,this[_0x1fec11(0x1bc)][_0x1fec11(0x1c0)](this[_0x1fec11(0x1c2)]),this[_0x1fec11(0x1c1)]({'attributes':{'class':[_0x1fec11(0x1c4)]}});}[_0x5ce91b(0x1bd)](_0xa9b04b){const _0x1c0d4b=_0x5ce91b;let _0xeb82c0=0x0,_0x13c17d=0x0;for(const _0xd63caf of this[_0x1c0d4b(0x1c2)]){const {resultsCount:_0x4832e6,totalItemsCount:_0x681a7f}=_0xd63caf[_0x1c0d4b(0x1bd)](_0xa9b04b);_0xeb82c0+=_0x4832e6,_0x13c17d+=_0x681a7f;}return{'resultsCount':_0xeb82c0,'totalItemsCount':_0x13c17d};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x98c61e=_0x5321;(function(_0x1bcf3c,_0x38ad59){const _0x11f2b7=_0x5321,_0x12db04=_0x1bcf3c();while(!![]){try{const _0x4a84f9=parseInt(_0x11f2b7(0x222))/0x1*(-parseInt(_0x11f2b7(0x20a))/0x2)+-parseInt(_0x11f2b7(0x1d9))/0x3+parseInt(_0x11f2b7(0x228))/0x4*(-parseInt(_0x11f2b7(0x1f5))/0x5)+-parseInt(_0x11f2b7(0x1ee))/0x6+-parseInt(_0x11f2b7(0x1fb))/0x7*(-parseInt(_0x11f2b7(0x21f))/0x8)+parseInt(_0x11f2b7(0x221))/0x9+parseInt(_0x11f2b7(0x1ef))/0xa;if(_0x4a84f9===_0x38ad59)break;else _0x12db04['push'](_0x12db04['shift']());}catch(_0x1b0dce){_0x12db04['push'](_0x12db04['shift']());}}}(_0x505c,0xe0ae2));import{View as _0x4bb06d,SearchTextView as _0x3f2d00,FormHeaderView as _0x59a7f4,ButtonView as _0x176f92}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x30203b,IconCancel as _0x5b142e,IconPlus as _0x4ef618}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x43bf6f}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x2be32b}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x54ef63}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x382877}from'../aichathistoryui.js';function _0x5321(_0x3aa9fb,_0x58a1f7){const _0x505c14=_0x505c();return _0x5321=function(_0x532121,_0x226fe8){_0x532121=_0x532121-0x1d0;let _0x1b2474=_0x505c14[_0x532121];return _0x1b2474;},_0x5321(_0x3aa9fb,_0x58a1f7);}function _0x505c(){const _0x1a38ba=['splice','isMaximized','searchView','div','bindTemplate','getItem','render','8OQGdIR','sectionsView','3850857rHYVmi','19ktDhgn','updateItemTitle','ck-ai-chat-history__content','skeletonView','AI_CHAT_HISTORY_SEARCH_LABEL','_updateViewVisibility','40108zzYlKN','value','isSearchViewVisible','resizeButton','children','remove','errorMessage','change:isLoading','items','indexOf','some','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','clear','ck-ai-header\x20ck-ai-header_history','2101371rBZCmJ','ck-ai-chat-history__empty-message','removeItem','_createEmptyStateView','itemsViews','change:errorMessage','isVisible','AI_CHAT_HISTORY_HEADING','ck-ai-chat-history','AI_CHAT_HISTORY_EMPTY_MESSAGE','isEmptyViewVisible','delegate','ck-hidden','AI_CHAT_LABEL_NEW_CHAT','isMainErrorViewVisible','_createListItemViews','openChat','addMany','setTemplate','ck-ai-notification_error','queryView','1893630EEtCVg','47217350xpIhTW','element','search','ck-ai-chat__start-conversation','ck-ai-notification_error__dismiss-button','_createSkeletonView','785cpWnFs','ck-ai-notification','push','removeHistoryItem','ck-reset_all','length','709681IBCcOw','aiHistory','updateTitle','set','sections','execute','updateHistoryItemsWithCategories','_createSearchView','locale','bind','hasItems','fire','extendTemplate','add','updateLoadingState','183200yilmpi','ck-rounded-corners','updateItemLoadingState','_createErrorView','isLoading','title','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','mainErrorView','_refreshSearch','emptyView','ck-ai-chat-history__empty','change:hasItems','ltr','fieldView'];_0x505c=function(){return _0x1a38ba;};return _0x505c();}import{AISkeletonView as _0x119358,SKELETON_DEFINITIONS as _0x29ceba}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4c0b6b}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x1627c7}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x4bb06d{[_0x98c61e(0x21a)];[_0x98c61e(0x211)];[_0x98c61e(0x225)];[_0x98c61e(0x213)];[_0x98c61e(0x220)];[_0x98c61e(0x22b)];constructor(_0x5d7d23,_0x13b9f4){const _0x4fa8a2=_0x98c61e;super(_0x5d7d23),this[_0x4fa8a2(0x1fe)](_0x4fa8a2(0x205),!0x1),this[_0x4fa8a2(0x1fe)](_0x4fa8a2(0x20e),!0x0),this[_0x4fa8a2(0x1fe)](_0x4fa8a2(0x1d1),''),this[_0x4fa8a2(0x1fe)](_0x4fa8a2(0x219),!0x1),this[_0x4fa8a2(0x1fe)](_0x4fa8a2(0x22a),!0x1),this[_0x4fa8a2(0x1fe)](_0x4fa8a2(0x1e3),!0x1),this[_0x4fa8a2(0x1fe)](_0x4fa8a2(0x1e7),!0x1);const _0xbcb5c1=new _0x59a7f4(_0x5d7d23,{'label':_0x1627c7(_0x5d7d23,_0x4fa8a2(0x1e0)),'icon':_0x30203b,'class':_0x4fa8a2(0x1d8)});_0x13b9f4&&(this[_0x4fa8a2(0x22b)]=_0x4c0b6b(_0x5d7d23,this),_0xbcb5c1[_0x4fa8a2(0x22c)][_0x4fa8a2(0x208)](this[_0x4fa8a2(0x22b)])),this[_0x4fa8a2(0x220)]=new _0x43bf6f(_0x5d7d23,[]),this[_0x4fa8a2(0x220)][_0x4fa8a2(0x1e4)](..._0x382877)['to'](this),this[_0x4fa8a2(0x211)]=this[_0x4fa8a2(0x20d)](),this[_0x4fa8a2(0x225)]=this[_0x4fa8a2(0x1f4)](),this[_0x4fa8a2(0x213)]=this[_0x4fa8a2(0x1dc)](),this[_0x4fa8a2(0x21a)]=this[_0x4fa8a2(0x202)](),this[_0x4fa8a2(0x211)][_0x4fa8a2(0x207)]({'attributes':{'class':[this[_0x4fa8a2(0x21c)]['if'](_0x4fa8a2(0x1e7),_0x4fa8a2(0x1e5),_0x245fe7=>!_0x245fe7)]}}),this['on'](_0x4fa8a2(0x1d2),()=>this[_0x4fa8a2(0x227)]()),this['on'](_0x4fa8a2(0x215),()=>this[_0x4fa8a2(0x227)]()),this['on'](_0x4fa8a2(0x1de),()=>this[_0x4fa8a2(0x227)]()),this[_0x4fa8a2(0x1eb)]({'tag':_0x4fa8a2(0x21b),'attributes':{'class':['ck',_0x4fa8a2(0x1f9),_0x4fa8a2(0x1e1),_0x4fa8a2(0x20b)],'dir':_0x4fa8a2(0x216)},'children':[_0xbcb5c1,{'tag':_0x4fa8a2(0x21b),'attributes':{'class':[_0x4fa8a2(0x224)]},'children':[this[_0x4fa8a2(0x225)],this[_0x4fa8a2(0x211)],this[_0x4fa8a2(0x213)],this[_0x4fa8a2(0x21a)]]}]});}[_0x98c61e(0x227)](){const _0x45bf65=_0x98c61e;this[_0x45bf65(0x22a)]=!this[_0x45bf65(0x20e)]&&this[_0x45bf65(0x205)],this[_0x45bf65(0x1e3)]=!this[_0x45bf65(0x20e)]&&!this[_0x45bf65(0x205)]&&!this[_0x45bf65(0x1d1)],this[_0x45bf65(0x1e7)]=!this[_0x45bf65(0x22a)]&&!!this[_0x45bf65(0x1d1)];}[_0x98c61e(0x202)](){const _0x5c0208=_0x98c61e,_0x41684e=new _0x3f2d00(this[_0x5c0208(0x203)],{'filteredView':this[_0x5c0208(0x220)],'queryView':{'label':_0x1627c7(this[_0x5c0208(0x203)],_0x5c0208(0x226))},'infoView':{'text':{'notFound':{'primary':_0x379b29=>_0x1627c7(this[_0x5c0208(0x203)],_0x5c0208(0x210),_0x379b29),'secondary':_0x1627c7(this[_0x5c0208(0x203)],_0x5c0208(0x1d6))}}}}),_0x5be4b4=this[_0x5c0208(0x20d)]();return _0x5be4b4[_0x5c0208(0x207)]({'attributes':{'class':[this[_0x5c0208(0x21c)]['if'](_0x5c0208(0x1d1),_0x5c0208(0x1e5),_0x4709a9=>!_0x4709a9)]}}),_0x41684e['on'](_0x5c0208(0x21e),()=>{const _0x48f08a=_0x5c0208;_0x41684e[_0x48f08a(0x22c)][_0x48f08a(0x208)](_0x5be4b4,0x1);}),_0x41684e[_0x5c0208(0x207)]({'attributes':{'class':[this[_0x5c0208(0x21c)]['if'](_0x5c0208(0x22a),_0x5c0208(0x1e5),_0x96c2bc=>!_0x96c2bc)]}}),_0x41684e;}[_0x98c61e(0x1f4)](){const _0x1bb8c9=_0x98c61e,_0x9bdd9b=new _0x119358(this[_0x1bb8c9(0x203)],_0x29ceba[_0x1bb8c9(0x1fc)]);return _0x9bdd9b[_0x1bb8c9(0x207)]({'attributes':{'class':[this[_0x1bb8c9(0x21c)]['if'](_0x1bb8c9(0x20e),_0x1bb8c9(0x1e5),_0x288933=>!_0x288933)]}}),_0x9bdd9b;}[_0x98c61e(0x20d)](){const _0x497b3d=_0x98c61e,_0x359e95=new _0x4bb06d(this[_0x497b3d(0x203)]),_0x3c6b72=new _0x176f92(this[_0x497b3d(0x203)]);_0x3c6b72[_0x497b3d(0x1fe)]({'withText':!0x1,'icon':_0x5b142e,'class':_0x497b3d(0x1f3)}),_0x3c6b72[_0x497b3d(0x204)](_0x497b3d(0x1df))['to'](this,_0x497b3d(0x205),_0x36fd7c=>!!_0x36fd7c),_0x3c6b72['on'](_0x497b3d(0x200),()=>{const _0x636ba1=_0x497b3d;this[_0x636ba1(0x1d1)]='';});const _0x362e24=this[_0x497b3d(0x21c)];return _0x359e95[_0x497b3d(0x1eb)]({'tag':_0x497b3d(0x21b),'attributes':{'class':['ck',_0x497b3d(0x1f6),_0x497b3d(0x1ec)]},'children':[{'tag':'p','children':[{'text':_0x362e24['to'](_0x497b3d(0x1d1))}]},_0x3c6b72]}),_0x359e95;}[_0x98c61e(0x1dc)](){const _0x3a8e42=_0x98c61e,_0xb86234=new _0x176f92(this[_0x3a8e42(0x203)]);_0xb86234[_0x3a8e42(0x1fe)]({'label':_0x1627c7(this[_0x3a8e42(0x203)],_0x3a8e42(0x1e6)),'withText':!0x0,'icon':_0x4ef618,'class':_0x3a8e42(0x1f2)}),_0xb86234['on'](_0x3a8e42(0x200),()=>{const _0x2ad503=_0x3a8e42;this[_0x2ad503(0x206)](_0x2ad503(0x1e9));});const _0x5b6e72=new _0x4bb06d(this[_0x3a8e42(0x203)]);return _0x5b6e72[_0x3a8e42(0x1eb)]({'tag':_0x3a8e42(0x21b),'attributes':{'class':[_0x3a8e42(0x214),this[_0x3a8e42(0x21c)]['if'](_0x3a8e42(0x1e3),_0x3a8e42(0x1e5),_0x57e1cf=>!_0x57e1cf)]},'children':[{'tag':'p','attributes':{'class':[_0x3a8e42(0x1da)]},'children':[_0x1627c7(this[_0x3a8e42(0x203)],_0x3a8e42(0x1e2))]},_0xb86234]}),_0x5b6e72;}[_0x98c61e(0x1e8)](_0x29b829,_0x3fd478){const _0x58606a=_0x98c61e,_0x4e9381=[];for(const _0x285449 of _0x29b829){const _0x57433d=new _0x54ef63(_0x3fd478,_0x285449);_0x57433d[_0x58606a(0x1e4)](..._0x382877)['to'](this),_0x4e9381[_0x58606a(0x1f7)](_0x57433d);}return _0x4e9381;}[_0x98c61e(0x201)](_0x1f7697){const _0x32eb60=_0x98c61e,_0x2a14ab=this[_0x32eb60(0x203)]||'en',_0x467788=[];for(const _0x41a96c of _0x1f7697){const _0x2518c4=this[_0x32eb60(0x1e8)](_0x41a96c[_0x32eb60(0x1d3)],_0x2a14ab);_0x467788[_0x32eb60(0x1f7)](new _0x2be32b(_0x2a14ab,{'title':_0x41a96c[_0x32eb60(0x20f)],'items':_0x2518c4}));}this[_0x32eb60(0x220)][_0x32eb60(0x1ff)]=_0x467788,this[_0x32eb60(0x220)][_0x32eb60(0x1d3)][_0x32eb60(0x1d7)](),this[_0x32eb60(0x220)][_0x32eb60(0x1d3)][_0x32eb60(0x1ea)](_0x467788),this[_0x32eb60(0x205)]=_0x1f7697[_0x32eb60(0x1d5)](_0x3badd0=>_0x3badd0[_0x32eb60(0x1d3)][_0x32eb60(0x1fa)]>0x0),this[_0x32eb60(0x212)]();}[_0x98c61e(0x1f8)](_0x3fd120){const _0x184e28=_0x98c61e;for(const _0x380c57 of this[_0x184e28(0x220)][_0x184e28(0x1ff)]){const _0x2fcddb=_0x380c57[_0x184e28(0x21d)](_0x3fd120);if(_0x2fcddb){if(_0x380c57[_0x184e28(0x1db)](_0x2fcddb),0x0===_0x380c57[_0x184e28(0x1dd)][_0x184e28(0x1fa)]){const _0x322dfd=this[_0x184e28(0x220)][_0x184e28(0x1ff)][_0x184e28(0x1d4)](_0x380c57);-0x1!==_0x322dfd&&(this[_0x184e28(0x220)][_0x184e28(0x1ff)][_0x184e28(0x218)](_0x322dfd,0x1),this[_0x184e28(0x220)][_0x184e28(0x1d3)][_0x184e28(0x1d0)](_0x380c57));}this[_0x184e28(0x205)]=this[_0x184e28(0x220)][_0x184e28(0x1ff)][_0x184e28(0x1fa)]>0x0,this[_0x184e28(0x212)]();break;}}}[_0x98c61e(0x223)](_0x5139c5,_0x42ab03){const _0x3d0087=_0x98c61e;for(const _0x694eb0 of this[_0x3d0087(0x220)][_0x3d0087(0x1ff)]){const _0x51f778=_0x694eb0[_0x3d0087(0x21d)](_0x5139c5);if(_0x51f778){_0x51f778[_0x3d0087(0x1fd)](_0x42ab03);break;}}}[_0x98c61e(0x20c)](_0x556f1f,_0x5de7b3,_0x5c5e6f){const _0x1ce6a2=_0x98c61e;for(const _0x5ce7a8 of this[_0x1ce6a2(0x220)][_0x1ce6a2(0x1ff)]){const _0x550bf0=_0x5ce7a8[_0x1ce6a2(0x21d)](_0x556f1f);if(_0x550bf0){_0x550bf0[_0x1ce6a2(0x209)](_0x5de7b3,_0x5c5e6f);break;}}}[_0x98c61e(0x212)](){const _0x5288f0=_0x98c61e;if(this[_0x5288f0(0x205)]){const _0x28ef00=this[_0x5288f0(0x21a)][_0x5288f0(0x1ed)][_0x5288f0(0x217)]?.[_0x5288f0(0x1f0)]?.[_0x5288f0(0x229)]||'';this[_0x5288f0(0x21a)][_0x5288f0(0x1f1)](_0x28ef00);}}}
|
|
23
|
+
const _0x553b28=_0x36ab;(function(_0x213bde,_0x31d657){const _0x37cdc6=_0x36ab,_0x5bbdda=_0x213bde();while(!![]){try{const _0x2da507=-parseInt(_0x37cdc6(0xf8))/0x1+parseInt(_0x37cdc6(0x113))/0x2*(-parseInt(_0x37cdc6(0xd0))/0x3)+-parseInt(_0x37cdc6(0xfc))/0x4+-parseInt(_0x37cdc6(0xf3))/0x5+-parseInt(_0x37cdc6(0xf2))/0x6*(parseInt(_0x37cdc6(0xd1))/0x7)+-parseInt(_0x37cdc6(0xe9))/0x8+parseInt(_0x37cdc6(0xd2))/0x9;if(_0x2da507===_0x31d657)break;else _0x5bbdda['push'](_0x5bbdda['shift']());}catch(_0x9e098c){_0x5bbdda['push'](_0x5bbdda['shift']());}}}(_0x2322,0xdf935));function _0x2322(){const _0x1e3b1e=['delegate','_createSkeletonView','isEmptyViewVisible','238379ubDDUY','div','ck-rounded-corners','itemsViews','710764xeRyNR','some','ck-ai-chat-history','AI_CHAT_HISTORY_EMPTY_MESSAGE','extendTemplate','AI_CHAT_LABEL_NEW_CHAT','AI_CHAT_HISTORY_SEARCH_LABEL','change:hasItems','getItem','ck-ai-notification_error__dismiss-button','addMany','removeHistoryItem','children','items','isMainErrorViewVisible','updateItemTitle','_updateViewVisibility','emptyView','removeItem','locale','searchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','updateTitle','1783534vTgRkf','resizeButton','sectionsView','length','_createErrorView','ck-ai-chat__start-conversation','search','title','mainErrorView','AI_CHAT_HISTORY_HEADING','indexOf','value','fire','fieldView','element','ck-hidden','isLoading','sections','queryView','isMaximized','set','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_refreshSearch','errorMessage','setTemplate','3NzpIny','7SCjkxO','48913839KZpECX','aiHistory','hasItems','ck-reset_all','bindTemplate','ck-ai-notification','openChat','change:isLoading','ck-ai-chat-history__empty','execute','render','splice','add','isVisible','remove','clear','change:errorMessage','ltr','isSearchViewVisible','_createSearchView','bind','skeletonView','_createListItemViews','3123544RvjLpc','updateLoadingState','push','updateHistoryItemsWithCategories','ck-ai-chat-history__content','ck-ai-header\x20ck-ai-header_history','_createEmptyStateView','ck-ai-chat-history__empty-message','updateItemLoadingState','10363194HvqemS','5468135sPwuwe','ck-ai-notification_error'];_0x2322=function(){return _0x1e3b1e;};return _0x2322();}import{View as _0x48b2d8,SearchTextView as _0x1ab128,FormHeaderView as _0x199888,ButtonView as _0x2fa184}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3c49b8,IconCancel as _0x31c827,IconPlus as _0x16c437}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x42be3}from'./aichathistorysectionlistview.js';function _0x36ab(_0x34ed0e,_0x3695a1){const _0x232231=_0x2322();return _0x36ab=function(_0x36ab5c,_0x549d76){_0x36ab5c=_0x36ab5c-0xba;let _0x542e47=_0x232231[_0x36ab5c];return _0x542e47;},_0x36ab(_0x34ed0e,_0x3695a1);}import{AIChatHistoryListView as _0x5cd017}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x53b7d6}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3f576f}from'../aichathistoryui.js';import{AISkeletonView as _0x17b369,SKELETON_DEFINITIONS as _0x18df14}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x448f46}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2c6206}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x48b2d8{[_0x553b28(0x110)];[_0x553b28(0xbf)];[_0x553b28(0xe7)];[_0x553b28(0x10d)];[_0x553b28(0x115)];[_0x553b28(0x114)];constructor(_0x46646d,_0x2022f6){const _0xb52310=_0x553b28;super(_0x46646d),this[_0xb52310(0xcb)](_0xb52310(0xd4),!0x1),this[_0xb52310(0xcb)](_0xb52310(0xc7),!0x0),this[_0xb52310(0xcb)](_0xb52310(0xce),''),this[_0xb52310(0xcb)](_0xb52310(0xca),!0x1),this[_0xb52310(0xcb)](_0xb52310(0xe4),!0x1),this[_0xb52310(0xcb)](_0xb52310(0xf7),!0x1),this[_0xb52310(0xcb)](_0xb52310(0x10a),!0x1);const _0x356f70=new _0x199888(_0x46646d,{'label':_0x2c6206(_0x46646d,_0xb52310(0xc0)),'icon':_0x3c49b8,'class':_0xb52310(0xee)});_0x2022f6&&(this[_0xb52310(0x114)]=_0x448f46(_0x46646d,this),_0x356f70[_0xb52310(0x108)][_0xb52310(0xde)](this[_0xb52310(0x114)])),this[_0xb52310(0x115)]=new _0x42be3(_0x46646d,[]),this[_0xb52310(0x115)][_0xb52310(0xf5)](..._0x3f576f)['to'](this),this[_0xb52310(0xbf)]=this[_0xb52310(0xbb)](),this[_0xb52310(0xe7)]=this[_0xb52310(0xf6)](),this[_0xb52310(0x10d)]=this[_0xb52310(0xef)](),this[_0xb52310(0x110)]=this[_0xb52310(0xe5)](),this[_0xb52310(0xbf)][_0xb52310(0x100)]({'attributes':{'class':[this[_0xb52310(0xd6)]['if'](_0xb52310(0x10a),_0xb52310(0xc6),_0x4d439b=>!_0x4d439b)]}}),this['on'](_0xb52310(0xd9),()=>this[_0xb52310(0x10c)]()),this['on'](_0xb52310(0x103),()=>this[_0xb52310(0x10c)]()),this['on'](_0xb52310(0xe2),()=>this[_0xb52310(0x10c)]()),this[_0xb52310(0xcf)]({'tag':_0xb52310(0xf9),'attributes':{'class':['ck',_0xb52310(0xd5),_0xb52310(0xfe),_0xb52310(0xfa)],'dir':_0xb52310(0xe3)},'children':[_0x356f70,{'tag':_0xb52310(0xf9),'attributes':{'class':[_0xb52310(0xed)]},'children':[this[_0xb52310(0xe7)],this[_0xb52310(0xbf)],this[_0xb52310(0x10d)],this[_0xb52310(0x110)]]}]});}[_0x553b28(0x10c)](){const _0x20d601=_0x553b28;this[_0x20d601(0xe4)]=!this[_0x20d601(0xc7)]&&this[_0x20d601(0xd4)],this[_0x20d601(0xf7)]=!this[_0x20d601(0xc7)]&&!this[_0x20d601(0xd4)]&&!this[_0x20d601(0xce)],this[_0x20d601(0x10a)]=!this[_0x20d601(0xe4)]&&!!this[_0x20d601(0xce)];}[_0x553b28(0xe5)](){const _0x3e6a88=_0x553b28,_0x5d9fa5=new _0x1ab128(this[_0x3e6a88(0x10f)],{'filteredView':this[_0x3e6a88(0x115)],'queryView':{'label':_0x2c6206(this[_0x3e6a88(0x10f)],_0x3e6a88(0x102))},'infoView':{'text':{'notFound':{'primary':_0x4bb328=>_0x2c6206(this[_0x3e6a88(0x10f)],_0x3e6a88(0xcc),_0x4bb328),'secondary':_0x2c6206(this[_0x3e6a88(0x10f)],_0x3e6a88(0x111))}}}}),_0x249a95=this[_0x3e6a88(0xbb)]();return _0x249a95[_0x3e6a88(0x100)]({'attributes':{'class':[this[_0x3e6a88(0xd6)]['if'](_0x3e6a88(0xce),_0x3e6a88(0xc6),_0x35b9da=>!_0x35b9da)]}}),_0x5d9fa5['on'](_0x3e6a88(0xdc),()=>{const _0x3821cf=_0x3e6a88;_0x5d9fa5[_0x3821cf(0x108)][_0x3821cf(0xde)](_0x249a95,0x1);}),_0x5d9fa5[_0x3e6a88(0x100)]({'attributes':{'class':[this[_0x3e6a88(0xd6)]['if'](_0x3e6a88(0xe4),_0x3e6a88(0xc6),_0x299a83=>!_0x299a83)]}}),_0x5d9fa5;}[_0x553b28(0xf6)](){const _0x5de911=_0x553b28,_0x2e4d7b=new _0x17b369(this[_0x5de911(0x10f)],_0x18df14[_0x5de911(0xd3)]);return _0x2e4d7b[_0x5de911(0x100)]({'attributes':{'class':[this[_0x5de911(0xd6)]['if'](_0x5de911(0xc7),_0x5de911(0xc6),_0x3033fc=>!_0x3033fc)]}}),_0x2e4d7b;}[_0x553b28(0xbb)](){const _0x506e1c=_0x553b28,_0x1b70e8=new _0x48b2d8(this[_0x506e1c(0x10f)]),_0xc738cf=new _0x2fa184(this[_0x506e1c(0x10f)]);_0xc738cf[_0x506e1c(0xcb)]({'withText':!0x1,'icon':_0x31c827,'class':_0x506e1c(0x105)}),_0xc738cf[_0x506e1c(0xe6)](_0x506e1c(0xdf))['to'](this,_0x506e1c(0xd4),_0x4cf1e1=>!!_0x4cf1e1),_0xc738cf['on'](_0x506e1c(0xdb),()=>{const _0x2e6e64=_0x506e1c;this[_0x2e6e64(0xce)]='';});const _0x2e512f=this[_0x506e1c(0xd6)];return _0x1b70e8[_0x506e1c(0xcf)]({'tag':_0x506e1c(0xf9),'attributes':{'class':['ck',_0x506e1c(0xd7),_0x506e1c(0xf4)]},'children':[{'tag':'p','children':[{'text':_0x2e512f['to'](_0x506e1c(0xce))}]},_0xc738cf]}),_0x1b70e8;}[_0x553b28(0xef)](){const _0x1ae3c8=_0x553b28,_0x46beb1=new _0x2fa184(this[_0x1ae3c8(0x10f)]);_0x46beb1[_0x1ae3c8(0xcb)]({'label':_0x2c6206(this[_0x1ae3c8(0x10f)],_0x1ae3c8(0x101)),'withText':!0x0,'icon':_0x16c437,'class':_0x1ae3c8(0xbc)}),_0x46beb1['on'](_0x1ae3c8(0xdb),()=>{const _0x2f7874=_0x1ae3c8;this[_0x2f7874(0xc3)](_0x2f7874(0xd8));});const _0x1c50ca=new _0x48b2d8(this[_0x1ae3c8(0x10f)]);return _0x1c50ca[_0x1ae3c8(0xcf)]({'tag':_0x1ae3c8(0xf9),'attributes':{'class':[_0x1ae3c8(0xda),this[_0x1ae3c8(0xd6)]['if'](_0x1ae3c8(0xf7),_0x1ae3c8(0xc6),_0x51de77=>!_0x51de77)]},'children':[{'tag':'p','attributes':{'class':[_0x1ae3c8(0xf0)]},'children':[_0x2c6206(this[_0x1ae3c8(0x10f)],_0x1ae3c8(0xff))]},_0x46beb1]}),_0x1c50ca;}[_0x553b28(0xe8)](_0x3f7e9a,_0xc5da99){const _0x10e960=_0x553b28,_0x50abfb=[];for(const _0x4e51a8 of _0x3f7e9a){const _0x5163d9=new _0x53b7d6(_0xc5da99,_0x4e51a8);_0x5163d9[_0x10e960(0xf5)](..._0x3f576f)['to'](this),_0x50abfb[_0x10e960(0xeb)](_0x5163d9);}return _0x50abfb;}[_0x553b28(0xec)](_0x7583f4){const _0x4f9f47=_0x553b28,_0x38e722=this[_0x4f9f47(0x10f)]||'en',_0x5022b3=[];for(const _0x4b47ce of _0x7583f4){const _0x57cfc5=this[_0x4f9f47(0xe8)](_0x4b47ce[_0x4f9f47(0x109)],_0x38e722);_0x5022b3[_0x4f9f47(0xeb)](new _0x5cd017(_0x38e722,{'title':_0x4b47ce[_0x4f9f47(0xbe)],'items':_0x57cfc5}));}this[_0x4f9f47(0x115)][_0x4f9f47(0xc8)]=_0x5022b3,this[_0x4f9f47(0x115)][_0x4f9f47(0x109)][_0x4f9f47(0xe1)](),this[_0x4f9f47(0x115)][_0x4f9f47(0x109)][_0x4f9f47(0x106)](_0x5022b3),this[_0x4f9f47(0xd4)]=_0x7583f4[_0x4f9f47(0xfd)](_0x1304d0=>_0x1304d0[_0x4f9f47(0x109)][_0x4f9f47(0xba)]>0x0),this[_0x4f9f47(0xcd)]();}[_0x553b28(0x107)](_0x53ce96){const _0x402cf2=_0x553b28;for(const _0x235504 of this[_0x402cf2(0x115)][_0x402cf2(0xc8)]){const _0x33ab89=_0x235504[_0x402cf2(0x104)](_0x53ce96);if(_0x33ab89){if(_0x235504[_0x402cf2(0x10e)](_0x33ab89),0x0===_0x235504[_0x402cf2(0xfb)][_0x402cf2(0xba)]){const _0x10c9c8=this[_0x402cf2(0x115)][_0x402cf2(0xc8)][_0x402cf2(0xc1)](_0x235504);-0x1!==_0x10c9c8&&(this[_0x402cf2(0x115)][_0x402cf2(0xc8)][_0x402cf2(0xdd)](_0x10c9c8,0x1),this[_0x402cf2(0x115)][_0x402cf2(0x109)][_0x402cf2(0xe0)](_0x235504));}this[_0x402cf2(0xd4)]=this[_0x402cf2(0x115)][_0x402cf2(0xc8)][_0x402cf2(0xba)]>0x0,this[_0x402cf2(0xcd)]();break;}}}[_0x553b28(0x10b)](_0x3fbbec,_0x596cac){const _0x5f2eae=_0x553b28;for(const _0x5efa2b of this[_0x5f2eae(0x115)][_0x5f2eae(0xc8)]){const _0x1a0909=_0x5efa2b[_0x5f2eae(0x104)](_0x3fbbec);if(_0x1a0909){_0x1a0909[_0x5f2eae(0x112)](_0x596cac);break;}}}[_0x553b28(0xf1)](_0x80f7a3,_0x1cf4fb,_0x2c6d7f){const _0x2bf68b=_0x553b28;for(const _0x5845d0 of this[_0x2bf68b(0x115)][_0x2bf68b(0xc8)]){const _0x2217a8=_0x5845d0[_0x2bf68b(0x104)](_0x80f7a3);if(_0x2217a8){_0x2217a8[_0x2bf68b(0xea)](_0x1cf4fb,_0x2c6d7f);break;}}}[_0x553b28(0xcd)](){const _0x17c0aa=_0x553b28;if(this[_0x17c0aa(0xd4)]){const _0x1b897c=this[_0x17c0aa(0x110)][_0x17c0aa(0xc9)][_0x17c0aa(0xc4)]?.[_0x17c0aa(0xc5)]?.[_0x17c0aa(0xc2)]||'';this[_0x17c0aa(0x110)][_0x17c0aa(0xbd)](_0x1b897c);}}}
|
|
@@ -204,10 +204,13 @@ export type AIMessageEventMcpToolResult = {
|
|
|
204
204
|
event: 'mcp-tool-result';
|
|
205
205
|
data: {
|
|
206
206
|
toolName: string;
|
|
207
|
-
|
|
208
|
-
attributes: Record<string, any>;
|
|
207
|
+
result: string;
|
|
209
208
|
};
|
|
210
209
|
};
|
|
210
|
+
export type AIMessageEventMcpToolResultData = {
|
|
211
|
+
data?: Record<string, any>;
|
|
212
|
+
attributes?: Record<string, any>;
|
|
213
|
+
};
|
|
211
214
|
export type AIMessageEvent = AIMessageEventError | AIMessageEventMessageMetadata | AIMessageEventActionMetadata | AIMessageEventConversationTitle | AIMessageEventSource | AIMessageEventWebSearch | AIMessageEventReasoning | AIMessageEventTextDelta | AIMessageEventModificationDelta | AIMessageEventMcpToolResult | AIMessageEventMcpToolNotification;
|
|
212
215
|
export type AIEventSourceMessageParsed = {
|
|
213
216
|
event: string;
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2fc197=_0x47a4;function _0x47a4(_0x47ebbd,_0x12c6b8){const _0x3fa36e=_0x3fa3();return _0x47a4=function(_0x47a44b,_0x216d9b){_0x47a44b=_0x47a44b-0x1dd;let _0x4364e4=_0x3fa36e[_0x47a44b];return _0x4364e4;},_0x47a4(_0x47ebbd,_0x12c6b8);}function _0x3fa3(){const _0x58952d=['order','upsertCustomAIReviewRating','/messages','updateConversation','6gtGjwb','isOfficialPlugin','Bearer\x20','deleteDocument','_decoder','reset','upsertAIActionRating','true','/actions/custom/calls','/documents/','application/json','file','/web-resources','make-tone-formal','fetchConversationMessages','Content-Type','abortController','deleteWebResource','_sendApiRequest','_token','modificationId','_getStreamReader','toString','/actions/system/','GET','body','AIConnector','357735HQUxJp','improve-writing','request','100','ai-request-failed','upsertAIChatRating','upsertCustomAIActionRating','items','https://ai.cke-cs.com/v1','/messages/','append','1649418KYsQYR','CloudServices','translate','FIX_GRAMMAR','totalCount','uploadFile','getModels','requires','PATCH','uploadDocument','desc','catch','feed','uploadUrl','fetchConversation','/documents','/conversations/','attributes','get','then','106300CpNqcR','/reviews/system/','message','make-tone-casual','status','upsertAIReviewRating','executeAction','json','fix-grammar','CONTINUE','/reviews/custom/calls','IMPROVE_WRITING','language','/files/','continue','name','text','AbortError','isPremiumPlugin','positiveCount','startConversation','1328HlxSdf','MAKE_TONE_FORMAL','/reviews/custom/calls/','read','fetchConversations','484246RQNBKn','pluginName','decode','1047668mnHTVr','context','code','plugins','TRANSLATE','stringify','releaseLock','make-shorter','MAKE_SHORTER','/conversations','ai-missing-token','54234EVEQnb','traceId','483017YGgdYS','false','limit','DELETE','ai-request-aborted','deleteFile','callSystemReview','_handleError','push','createdAt','/models/1?','data','parse','config','group','make-longer','getReader','fetchDocument','init','signal','/web-resources/','sortBy','MAKE_TONE_CASUAL','/calls/','define','value','/actions/custom/calls/','token','statusText','callCustomReview','length','/calls','_apiUrl','queryAssistant','executeCustomAction','PUT','POST','/files','/conversations?','ai.serviceUrl','deleteConversation','MAKE_LONGER','excludeEmpty','/ratings'];_0x3fa3=function(){return _0x58952d;};return _0x3fa3();}(function(_0x35a7fc,_0x3022ac){const _0x4fa4ff=_0x47a4,_0x4cb35b=_0x35a7fc();while(!![]){try{const _0x179cd9=-parseInt(_0x4fa4ff(0x203))/0x1+parseInt(_0x4fa4ff(0x26d))/0x2+-parseInt(_0x4fa4ff(0x259))/0x3+parseInt(_0x4fa4ff(0x1f6))/0x4+-parseInt(_0x4fa4ff(0x24e))/0x5+-parseInt(_0x4fa4ff(0x233))/0x6*(-parseInt(_0x4fa4ff(0x1f3))/0x7)+parseInt(_0x4fa4ff(0x1ee))/0x8*(parseInt(_0x4fa4ff(0x201))/0x9);if(_0x179cd9===_0x3022ac)break;else _0x4cb35b['push'](_0x4cb35b['shift']());}catch(_0x2b58e2){_0x4cb35b['push'](_0x4cb35b['shift']());}}}(_0x3fa3,0x4467f));import{createParser as _0x50924f}from'eventsource-parser';import{ContextPlugin as _0x3cf63b}from'ckeditor5/src/core.js';import{CKEditorError as _0x5988db}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x286ca9){const _0x1f6a67=_0x47a4;_0x286ca9[_0x1f6a67(0x1e2)]=_0x1f6a67(0x1e7),_0x286ca9[_0x1f6a67(0x25c)]=_0x1f6a67(0x1e1),_0x286ca9[_0x1f6a67(0x1e4)]=_0x1f6a67(0x24f),_0x286ca9[_0x1f6a67(0x22c)]=_0x1f6a67(0x212),_0x286ca9[_0x1f6a67(0x1fe)]=_0x1f6a67(0x1fd),_0x286ca9[_0x1f6a67(0x219)]=_0x1f6a67(0x270),_0x286ca9[_0x1f6a67(0x1ef)]=_0x1f6a67(0x240),_0x286ca9[_0x1f6a67(0x1fa)]=_0x1f6a67(0x25b);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x3cf63b{[_0x2fc197(0x223)];[_0x2fc197(0x246)];[_0x2fc197(0x237)];static get[_0x2fc197(0x260)](){const _0x4e7b82=_0x2fc197;return[_0x4e7b82(0x25a)];}static get[_0x2fc197(0x1f4)](){const _0xb15f93=_0x2fc197;return _0xb15f93(0x24d);}static get[_0x2fc197(0x234)](){return!0x0;}static get[_0x2fc197(0x1eb)](){return!0x0;}constructor(_0x4d8cb8){const _0x424a17=_0x2fc197;super(_0x4d8cb8),this[_0x424a17(0x1f7)][_0x424a17(0x210)][_0x424a17(0x21b)](_0x424a17(0x22a),_0x424a17(0x256)),this[_0x424a17(0x223)]=this[_0x424a17(0x1f7)][_0x424a17(0x210)][_0x424a17(0x26b)](_0x424a17(0x22a)),this[_0x424a17(0x246)]=null,this[_0x424a17(0x237)]=new TextDecoder();}[_0x2fc197(0x215)](){const _0x3e74ad=_0x2fc197,_0x1c654f=this[_0x3e74ad(0x1f7)][_0x3e74ad(0x1f9)][_0x3e74ad(0x26b)](_0x3e74ad(0x25a));if(!_0x1c654f[_0x3e74ad(0x21e)])throw new _0x5988db(_0x3e74ad(0x200),this);this[_0x3e74ad(0x246)]=_0x1c654f[_0x3e74ad(0x21e)];}[_0x2fc197(0x1ed)](_0xd04f11,_0x57c04e){const _0x24a492=_0x2fc197,_0x749ca7=this[_0x24a492(0x245)](_0x24a492(0x1ff),_0x24a492(0x227),{'id':_0xd04f11,'group':_0x57c04e});return{'getConversation':async()=>(await _0x749ca7[_0x24a492(0x250)])[_0x24a492(0x1e0)](),'abortController':_0x749ca7[_0x24a492(0x243)]};}[_0x2fc197(0x224)]({message:_0x4013ee,conversationId:_0x4f5776,parts:_0x1272e9,capabilities:_0x36ee15,model:_0x4aaaa0,attributes:_0x26e5c6}){const _0x4e9648=_0x2fc197,_0x232ec7={'prompt':_0x4013ee,'content':_0x1272e9,'model':_0x4aaaa0,..._0x36ee15&&{'capabilities':_0x36ee15},..._0x26e5c6&&{'attributes':_0x26e5c6}},_0x50d1a6=this[_0x4e9648(0x245)](_0x4e9648(0x269)+_0x4f5776+_0x4e9648(0x231),_0x4e9648(0x227),_0x232ec7);return{'getStream':async()=>{const _0x1886cb=_0x4e9648,_0x50f987=(await _0x50d1a6[_0x1886cb(0x250)])[_0x1886cb(0x24c)];return this[_0x1886cb(0x248)](_0x50f987);},'abortController':_0x50d1a6[_0x4e9648(0x243)]};}[_0x2fc197(0x225)]({content:_0x3e1085,message:_0x3fbf41,model:_0x4ca4e8,outputFormat:_0xa9dd31}){const _0x56a5da=_0x2fc197,_0x56a79c={'content':[{'type':_0x56a5da(0x1e9),'content':_0x3e1085}],'prompt':_0x3fbf41,'model':_0x4ca4e8,'outputFormat':_0xa9dd31},_0x574bd3=this[_0x56a5da(0x245)](_0x56a5da(0x23b),_0x56a5da(0x227),_0x56a79c);return{'getStream':async()=>{const _0x102aff=_0x56a5da,_0x5b2162=(await _0x574bd3[_0x102aff(0x250)])[_0x102aff(0x24c)];return this[_0x102aff(0x248)](_0x5b2162);},'abortController':_0x574bd3[_0x56a5da(0x243)]};}[_0x2fc197(0x1df)]({actionName:_0x475c95,content:_0x3911b5,args:_0x5a4ec3}){const _0x47fc44=_0x2fc197,_0x58dd1e={'content':[{'type':_0x47fc44(0x1e9),'content':_0x3911b5}],'args':_0x5a4ec3},_0x12ea82=this[_0x47fc44(0x245)](_0x47fc44(0x24a)+_0x475c95+_0x47fc44(0x222),_0x47fc44(0x227),_0x58dd1e);return{'getStream':async()=>{const _0x164fd9=_0x47fc44,_0x5e97b5=(await _0x12ea82[_0x164fd9(0x250)])[_0x164fd9(0x24c)];return this[_0x164fd9(0x248)](_0x5e97b5);},'abortController':_0x12ea82[_0x47fc44(0x243)]};}[_0x2fc197(0x25e)](_0x5c980c,_0x248efc,_0x2489a6){const _0xc45e5a=_0x2fc197,_0x1fc800=new FormData();_0x1fc800[_0xc45e5a(0x258)](_0xc45e5a(0x23e),_0x248efc,_0x248efc[_0xc45e5a(0x1e8)]),_0x2489a6&&_0x1fc800[_0xc45e5a(0x258)](_0xc45e5a(0x26a),JSON[_0xc45e5a(0x1fb)](_0x2489a6));const _0x44edc0=this[_0xc45e5a(0x245)](_0xc45e5a(0x269)+_0x5c980c+_0xc45e5a(0x228),_0xc45e5a(0x227),_0x1fc800);return{'getId':async()=>(await _0x44edc0[_0xc45e5a(0x250)])[_0xc45e5a(0x1e0)](),'abortController':_0x44edc0[_0xc45e5a(0x243)]};}[_0x2fc197(0x214)](_0xf1cb7c,_0x1de81a){const _0x55937a=_0x2fc197,_0x40bfeb=this[_0x55937a(0x245)](_0x55937a(0x269)+_0xf1cb7c+_0x55937a(0x23c)+_0x1de81a,_0x55937a(0x24b));return{'getDocument':async()=>(await _0x40bfeb[_0x55937a(0x250)])[_0x55937a(0x1e0)](),'abortController':_0x40bfeb[_0x55937a(0x243)]};}[_0x2fc197(0x262)](_0x546579,_0x4f5236,_0x23aaa9){const _0x540bba=_0x2fc197,_0x1e2e96={'content':_0x4f5236};_0x23aaa9&&(_0x1e2e96[_0x540bba(0x26a)]=_0x23aaa9);const _0x4e070f=this[_0x540bba(0x245)](_0x540bba(0x269)+_0x546579+_0x540bba(0x268),_0x540bba(0x227),_0x1e2e96);return{'getId':async()=>(await _0x4e070f[_0x540bba(0x250)])[_0x540bba(0x1e0)](),'abortController':_0x4e070f[_0x540bba(0x243)]};}[_0x2fc197(0x1f2)](_0x3efffe,_0xe154d6={}){const _0x35fa7a=_0x2fc197,_0x2d28f8=new URLSearchParams();_0x2d28f8[_0x35fa7a(0x258)](_0x35fa7a(0x211),_0x3efffe),_0x2d28f8[_0x35fa7a(0x258)](_0x35fa7a(0x22d),!0x1!==_0xe154d6[_0x35fa7a(0x22d)]?_0x35fa7a(0x23a):_0x35fa7a(0x204)),_0x2d28f8[_0x35fa7a(0x258)](_0x35fa7a(0x205),_0xe154d6[_0x35fa7a(0x205)]?_0xe154d6[_0x35fa7a(0x205)][_0x35fa7a(0x249)]():_0x35fa7a(0x251)),_0x2d28f8[_0x35fa7a(0x258)](_0x35fa7a(0x218),_0xe154d6[_0x35fa7a(0x218)]?_0xe154d6[_0x35fa7a(0x218)]:_0x35fa7a(0x20c)),_0x2d28f8[_0x35fa7a(0x258)](_0x35fa7a(0x22f),_0xe154d6[_0x35fa7a(0x22f)]?_0xe154d6[_0x35fa7a(0x22f)]:_0x35fa7a(0x263));const _0x23f3c8=this[_0x35fa7a(0x245)](_0x35fa7a(0x229)+_0x2d28f8[_0x35fa7a(0x249)](),_0x35fa7a(0x24b));return{'getConversations':async()=>{const _0x218e83=_0x35fa7a,_0x4ffd3c=await _0x23f3c8[_0x218e83(0x250)];return(await _0x4ffd3c[_0x218e83(0x1e0)]())[_0x218e83(0x255)];},'abortController':_0x23f3c8[_0x35fa7a(0x243)]};}[_0x2fc197(0x22b)](_0x1623d2){const _0x1a5e9a=_0x2fc197,_0x1f692c=this[_0x1a5e9a(0x245)](_0x1a5e9a(0x269)+_0x1623d2,_0x1a5e9a(0x206));return{'execute':async()=>{const _0x4940b0=_0x1a5e9a;await _0x1f692c[_0x4940b0(0x250)];},'abortController':_0x1f692c[_0x1a5e9a(0x243)]};}[_0x2fc197(0x232)](_0x26f584,_0x2080a4){const _0xcb37b=_0x2fc197,_0x5b5943=this[_0xcb37b(0x245)](_0xcb37b(0x269)+_0x26f584,_0xcb37b(0x261),_0x2080a4);return{'getResult':async()=>(await _0x5b5943[_0xcb37b(0x250)],_0x2080a4),'abortController':_0x5b5943[_0xcb37b(0x243)]};}[_0x2fc197(0x267)](_0x4731ee){const _0x1278b0=_0x2fc197,_0x7fb135=this[_0x1278b0(0x245)](_0x1278b0(0x269)+_0x4731ee,_0x1278b0(0x24b));return{'getConversation':async()=>(await _0x7fb135[_0x1278b0(0x250)])[_0x1278b0(0x1e0)](),'abortController':_0x7fb135[_0x1278b0(0x243)]};}[_0x2fc197(0x241)](_0x43451a){const _0x19703d=_0x2fc197,_0x4f9c36=this[_0x19703d(0x245)](_0x19703d(0x269)+_0x43451a+_0x19703d(0x231),_0x19703d(0x24b));return{'getMessages':async()=>{const _0x5b3dcc=_0x19703d,_0x4d2060=await _0x4f9c36[_0x5b3dcc(0x250)];return(await _0x4d2060[_0x5b3dcc(0x1e0)]())[_0x5b3dcc(0x255)];},'abortController':_0x4f9c36[_0x19703d(0x243)]};}[_0x2fc197(0x266)](_0x49b721,_0x160328,_0x38ddc7){const _0x5a1e8e=_0x2fc197,_0x5617b7=this[_0x5a1e8e(0x245)](_0x5a1e8e(0x269)+_0x49b721+_0x5a1e8e(0x23f),_0x5a1e8e(0x227),{'url':_0x160328,'attributes':_0x38ddc7});return{'getId':async()=>(await _0x5617b7[_0x5a1e8e(0x250)])[_0x5a1e8e(0x1e0)](),'abortController':_0x5617b7[_0x5a1e8e(0x243)]};}[_0x2fc197(0x25f)](_0xf863ea='en'){const _0x39f9f8=_0x2fc197,_0x45b570=new URLSearchParams();_0x45b570[_0x39f9f8(0x258)](_0x39f9f8(0x1e5),_0xf863ea);const _0x463788=_0x39f9f8(0x20d)+_0x45b570[_0x39f9f8(0x249)](),_0x69ba0d=this[_0x39f9f8(0x245)](_0x463788,_0x39f9f8(0x24b));return{'list':async()=>await(await _0x69ba0d[_0x39f9f8(0x250)])[_0x39f9f8(0x1e0)](),'abortController':_0x69ba0d[_0x39f9f8(0x243)]};}[_0x2fc197(0x208)](_0x569a1a,_0x3093bc){const _0x1d0f3d=_0x2fc197,_0x4bf816=this[_0x1d0f3d(0x245)](_0x1d0f3d(0x269)+_0x569a1a+_0x1d0f3d(0x1e6)+_0x3093bc,_0x1d0f3d(0x206));return{'execute':async()=>{const _0x48d841=_0x1d0f3d;await _0x4bf816[_0x48d841(0x250)];},'abortController':_0x4bf816[_0x1d0f3d(0x243)]};}[_0x2fc197(0x236)](_0x49cf44,_0x36402a){const _0x37c061=_0x2fc197,_0x209a19=this[_0x37c061(0x245)](_0x37c061(0x269)+_0x49cf44+_0x37c061(0x23c)+_0x36402a,_0x37c061(0x206));return{'execute':async()=>{const _0x420580=_0x37c061;await _0x209a19[_0x420580(0x250)];},'abortController':_0x209a19[_0x37c061(0x243)]};}[_0x2fc197(0x244)](_0x5406ad,_0x3fbc54){const _0x50dcd5=_0x2fc197,_0x3c84c6=this[_0x50dcd5(0x245)](_0x50dcd5(0x269)+_0x5406ad+_0x50dcd5(0x217)+_0x3fbc54,_0x50dcd5(0x206));return{'execute':async()=>{const _0x526764=_0x50dcd5;await _0x3c84c6[_0x526764(0x250)];},'abortController':_0x3c84c6[_0x50dcd5(0x243)]};}[_0x2fc197(0x209)]({reviewName:_0x3d3b25,content:_0x11555b,args:_0x45a781}){const _0x117c95=_0x2fc197,_0x56fca7=this[_0x117c95(0x245)](_0x117c95(0x26e)+_0x3d3b25+_0x117c95(0x222),_0x117c95(0x227),{'content':[{'type':_0x117c95(0x1e9),'content':_0x11555b}],'args':_0x45a781});return{'getStream':async()=>{const _0x35d5eb=_0x117c95,_0x33752a=(await _0x56fca7[_0x35d5eb(0x250)])[_0x35d5eb(0x24c)];return this[_0x35d5eb(0x248)](_0x33752a);},'abortController':_0x56fca7[_0x117c95(0x243)]};}[_0x2fc197(0x220)]({content:_0x58a427,prompt:_0x569e4e,model:_0x350d43}){const _0x1d524d=_0x2fc197,_0x2b505d=this[_0x1d524d(0x245)](_0x1d524d(0x1e3),_0x1d524d(0x227),{'content':[{'type':_0x1d524d(0x1e9),'content':_0x58a427}],'prompt':_0x569e4e,'model':_0x350d43});return{'getStream':async()=>{const _0x320ae4=_0x1d524d,_0x2b981b=(await _0x2b505d[_0x320ae4(0x250)])[_0x320ae4(0x24c)];return this[_0x320ae4(0x248)](_0x2b981b);},'abortController':_0x2b505d[_0x1d524d(0x243)]};}[_0x2fc197(0x253)](_0x21f7ea,_0x50b1b7,_0x150e7c){const _0x30f3f4=_0x2fc197,_0x5d1a71=this[_0x30f3f4(0x245)](_0x30f3f4(0x269)+_0x21f7ea+_0x30f3f4(0x257)+_0x50b1b7+_0x30f3f4(0x22e),_0x30f3f4(0x226),{'positiveCount':_0x150e7c[_0x30f3f4(0x1ec)],'totalCount':_0x150e7c[_0x30f3f4(0x25d)],'modificationId':_0x150e7c[_0x30f3f4(0x247)]});return{'execute':async()=>{const _0x3acc6b=_0x30f3f4;await _0x5d1a71[_0x3acc6b(0x250)];},'abortController':_0x5d1a71[_0x30f3f4(0x243)]};}[_0x2fc197(0x239)](_0x4aa26e,_0x57f938,_0x581326){const _0x26c955=_0x2fc197,_0x3f9c98=this[_0x26c955(0x245)](_0x26c955(0x24a)+_0x4aa26e+_0x26c955(0x21a)+_0x57f938+_0x26c955(0x22e),_0x26c955(0x226),{'positiveCount':_0x581326[_0x26c955(0x1ec)],'totalCount':_0x581326[_0x26c955(0x25d)]});return{'execute':async()=>{const _0x40d9ec=_0x26c955;await _0x3f9c98[_0x40d9ec(0x250)];},'abortController':_0x3f9c98[_0x26c955(0x243)]};}[_0x2fc197(0x254)](_0x37dce5,_0x5e54ae){const _0x2f3ac3=_0x2fc197,_0x2753d8=this[_0x2f3ac3(0x245)](_0x2f3ac3(0x21d)+_0x37dce5+_0x2f3ac3(0x22e),_0x2f3ac3(0x226),{'positiveCount':_0x5e54ae[_0x2f3ac3(0x1ec)],'totalCount':_0x5e54ae[_0x2f3ac3(0x25d)]});return{'execute':async()=>{const _0x59c966=_0x2f3ac3;await _0x2753d8[_0x59c966(0x250)];},'abortController':_0x2753d8[_0x2f3ac3(0x243)]};}[_0x2fc197(0x1de)](_0xdad44a,_0x49f802,_0x6b31ac,_0x143620){const _0x3243b9=_0x2fc197,_0x1ffeab=this[_0x3243b9(0x245)](_0x3243b9(0x26e)+_0xdad44a+_0x3243b9(0x21a)+_0x49f802+_0x3243b9(0x22e),_0x3243b9(0x226),{'positiveCount':_0x6b31ac[_0x3243b9(0x1ec)],'totalCount':_0x6b31ac[_0x3243b9(0x25d)],'dataId':_0x143620});return{'execute':async()=>{const _0x4d1d7a=_0x3243b9;await _0x1ffeab[_0x4d1d7a(0x250)];},'abortController':_0x1ffeab[_0x3243b9(0x243)]};}[_0x2fc197(0x230)](_0x29b5c4,_0x2dbc2c,_0x3cd700){const _0x1159e4=_0x2fc197,_0x318fd8=this[_0x1159e4(0x245)](_0x1159e4(0x1f0)+_0x29b5c4+_0x1159e4(0x22e),_0x1159e4(0x226),{'positiveCount':_0x2dbc2c[_0x1159e4(0x1ec)],'totalCount':_0x2dbc2c[_0x1159e4(0x25d)],'dataId':_0x3cd700});return{'execute':async()=>{const _0x28e293=_0x1159e4;await _0x318fd8[_0x28e293(0x250)];},'abortController':_0x318fd8[_0x1159e4(0x243)]};}[_0x2fc197(0x245)](_0x38f302,_0x1a64c9,_0x9bc05e){const _0x265a95=_0x2fc197,_0x236054=new AbortController(),_0x213e09=_0x9bc05e instanceof FormData,_0x419747={'Authorization':_0x265a95(0x235)+this[_0x265a95(0x246)]?.[_0x265a95(0x21c)]};_0x9bc05e&&!_0x213e09&&(_0x419747[_0x265a95(0x242)]=_0x265a95(0x23d));const _0x47d61c={'method':_0x1a64c9,'headers':_0x419747,'signal':_0x236054[_0x265a95(0x216)]};return _0x9bc05e&&(_0x47d61c[_0x265a95(0x24c)]=_0x213e09?_0x9bc05e:JSON[_0x265a95(0x1fb)](_0x9bc05e)),{'request':fetch(''+this[_0x265a95(0x223)]+_0x38f302,_0x47d61c)[_0x265a95(0x264)](_0x595a54=>{const _0x554a45=_0x265a95;this[_0x554a45(0x20a)](_0x595a54);})[_0x265a95(0x26c)](_0x2456ac=>_0x2456ac['ok']?_0x2456ac:_0x2456ac[_0x265a95(0x1e0)]()[_0x265a95(0x26c)](_0x164759=>{const _0x1bac99=_0x265a95;throw{'url':this[_0x1bac99(0x223)],'path':_0x38f302,'method':_0x1a64c9,'body':_0x9bc05e,'status':(_0x2456ac||{})[_0x1bac99(0x1dd)],'statusText':(_0x2456ac||{})[_0x1bac99(0x21f)],'code':_0x164759[_0x1bac99(0x1f8)],'message':_0x164759[_0x1bac99(0x26f)],'traceId':_0x164759[_0x1bac99(0x202)]};})),'abortController':_0x236054};}async*[_0x2fc197(0x248)](_0x458063){const _0x573100=_0x2fc197,_0x222dfe=[],_0x468f86=_0x458063[_0x573100(0x213)](),_0x365507=_0x50924f({'onError':_0x4a8e50=>{const _0x44ca95=_0x573100;this[_0x44ca95(0x20a)](_0x4a8e50);},'onEvent':_0x46f9c8=>{const _0x1c597b=_0x573100;_0x46f9c8[_0x1c597b(0x20e)]=JSON[_0x1c597b(0x20f)](_0x46f9c8[_0x1c597b(0x20e)]),_0x222dfe[_0x1c597b(0x20b)](_0x46f9c8);}});try{let _0x1a1dee=!0x1;for(;!_0x1a1dee;){const {done:_0xb8fd98,value:_0x2cfee5}=await _0x468f86[_0x573100(0x1f1)]();_0xb8fd98&&(_0x1a1dee=!0x0),_0x365507[_0x573100(0x265)](this[_0x573100(0x237)][_0x573100(0x1f5)](_0x2cfee5,{'stream':!0x0})),yield*_0x222dfe,_0x222dfe[_0x573100(0x221)]=0x0;}}catch(_0x161ce5){this[_0x573100(0x20a)](_0x161ce5);}finally{_0x468f86[_0x573100(0x1fc)](),_0x365507[_0x573100(0x238)]();}}[_0x2fc197(0x20a)](_0x4f565d){const _0x2d0386=_0x2fc197;if(_0x4f565d instanceof _0x5988db)throw _0x4f565d;if(_0x4f565d instanceof Error&&_0x2d0386(0x1ea)===_0x4f565d[_0x2d0386(0x1e8)])throw new _0x5988db(_0x2d0386(0x207),this,{'originalError':_0x4f565d});throw new _0x5988db(_0x2d0386(0x252),this,{'originalError':_0x4f565d});}}
|
|
23
|
+
function _0x1e4b(_0x310c47,_0x265b37){const _0x3a2a2f=_0x3a2a();return _0x1e4b=function(_0x1e4b85,_0x4a00c0){_0x1e4b85=_0x1e4b85-0x199;let _0x3584c2=_0x3a2a2f[_0x1e4b85];return _0x3584c2;},_0x1e4b(_0x310c47,_0x265b37);}const _0x46e6d8=_0x1e4b;(function(_0x4da3f8,_0x516074){const _0x416d5a=_0x1e4b,_0x5b088b=_0x4da3f8();while(!![]){try{const _0x2e7d1a=parseInt(_0x416d5a(0x1cf))/0x1+-parseInt(_0x416d5a(0x1d9))/0x2+parseInt(_0x416d5a(0x1a4))/0x3+-parseInt(_0x416d5a(0x221))/0x4*(parseInt(_0x416d5a(0x1b4))/0x5)+-parseInt(_0x416d5a(0x1bc))/0x6+parseInt(_0x416d5a(0x1ce))/0x7+parseInt(_0x416d5a(0x1f9))/0x8;if(_0x2e7d1a===_0x516074)break;else _0x5b088b['push'](_0x5b088b['shift']());}catch(_0xae1dda){_0x5b088b['push'](_0x5b088b['shift']());}}}(_0x3a2a,0xa2f3c));import{createParser as _0x14840d}from'eventsource-parser';function _0x3a2a(){const _0xe90459=['false','data','requires','startConversation','DELETE','length','statusText','config','json','continue','/messages','init','upsertAIChatRating','toString','_sendApiRequest','MAKE_SHORTER','desc','catch','POST','abortController','_decoder','upsertAIActionRating','order','19888856HHEkYa','/actions/custom/calls','CONTINUE','fetchConversations','read','100','callCustomReview','make-shorter','define','group','/actions/custom/calls/','uploadUrl','append','uploadDocument','/reviews/custom/calls','FIX_GRAMMAR','/calls/','ai-request-aborted','limit','GET','ai-missing-token','/calls','/files','PATCH','upsertCustomAIReviewRating','/models/1?','positiveCount','value','then','fix-grammar','true','uploadFile','/actions/system/','/web-resources','request','parse','AbortError','signal','fetchConversationMessages','make-tone-casual','4iKBtET','deleteDocument','createdAt','items','TRANSLATE','improve-writing','push','/conversations?','token','upsertAIReviewRating','/documents/','fetchConversation','_getStreamReader','plugins','sortBy','body','updateConversation','deleteConversation','excludeEmpty','MAKE_TONE_CASUAL','stringify','text','734034HXFhGn','feed','/conversations','file','decode','CloudServices','totalCount','language','MAKE_TONE_FORMAL','AIConnector','callSystemReview','executeAction','_token','pluginName','make-tone-formal','ai-request-failed','3713305DKZZic','get','context','make-longer','fetchDocument','/reviews/system/','upsertCustomAIActionRating','/web-resources/','5498148GYHZys','reset','translate','/messages/','Content-Type','isOfficialPlugin','releaseLock','attributes','/ratings','code','message','application/json','/documents','modificationId','ai.serviceUrl','MAKE_LONGER','/conversations/','Bearer\x20','2173143wWyLia','451042XvLAdg','/reviews/custom/calls/','PUT','deleteWebResource','traceId','queryAssistant','_handleError','getModels','deleteFile','/files/','2331610wBfsTk','name','_apiUrl','status','https://ai.cke-cs.com/v1','getReader','isPremiumPlugin','executeCustomAction','IMPROVE_WRITING'];_0x3a2a=function(){return _0xe90459;};return _0x3a2a();}import{ContextPlugin as _0x526ce6}from'ckeditor5/src/core.js';import{CKEditorError as _0x50b77d}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x49481d){const _0x1e7330=_0x1e4b;_0x49481d[_0x1e7330(0x1fb)]=_0x1e7330(0x1eb),_0x49481d[_0x1e7330(0x208)]=_0x1e7330(0x216),_0x49481d[_0x1e7330(0x1e1)]=_0x1e7330(0x226),_0x49481d[_0x1e7330(0x1cb)]=_0x1e7330(0x1b7),_0x49481d[_0x1e7330(0x1f1)]=_0x1e7330(0x200),_0x49481d[_0x1e7330(0x1a1)]=_0x1e7330(0x220),_0x49481d[_0x1e7330(0x1ac)]=_0x1e7330(0x1b2),_0x49481d[_0x1e7330(0x225)]=_0x1e7330(0x1be);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x526ce6{[_0x46e6d8(0x1db)];[_0x46e6d8(0x1b0)];[_0x46e6d8(0x1f6)];static get[_0x46e6d8(0x1e4)](){const _0x4fa720=_0x46e6d8;return[_0x4fa720(0x1a9)];}static get[_0x46e6d8(0x1b1)](){const _0x31a9e7=_0x46e6d8;return _0x31a9e7(0x1ad);}static get[_0x46e6d8(0x1c1)](){return!0x0;}static get[_0x46e6d8(0x1df)](){return!0x0;}constructor(_0x13572b){const _0x221327=_0x46e6d8;super(_0x13572b),this[_0x221327(0x1b6)][_0x221327(0x1e9)][_0x221327(0x201)](_0x221327(0x1ca),_0x221327(0x1dd)),this[_0x221327(0x1db)]=this[_0x221327(0x1b6)][_0x221327(0x1e9)][_0x221327(0x1b5)](_0x221327(0x1ca)),this[_0x221327(0x1b0)]=null,this[_0x221327(0x1f6)]=new TextDecoder();}[_0x46e6d8(0x1ed)](){const _0x980ab=_0x46e6d8,_0x3c1e7b=this[_0x980ab(0x1b6)][_0x980ab(0x19b)][_0x980ab(0x1b5)](_0x980ab(0x1a9));if(!_0x3c1e7b[_0x980ab(0x229)])throw new _0x50b77d(_0x980ab(0x20d),this);this[_0x980ab(0x1b0)]=_0x3c1e7b[_0x980ab(0x229)];}[_0x46e6d8(0x1e5)](_0x5331ff,_0x119bc6){const _0x51ac33=_0x46e6d8,_0x16e434=this[_0x51ac33(0x1f0)](_0x51ac33(0x1a6),_0x51ac33(0x1f4),{'id':_0x5331ff,'group':_0x119bc6});return{'getConversation':async()=>(await _0x16e434[_0x51ac33(0x21b)])[_0x51ac33(0x1ea)](),'abortController':_0x16e434[_0x51ac33(0x1f5)]};}[_0x46e6d8(0x1d4)]({message:_0x132af1,conversationId:_0x4e082e,parts:_0x4e2394,capabilities:_0x45df82,model:_0x3e077b,attributes:_0x30ca03}){const _0x2ff742=_0x46e6d8,_0x4ca59c={'prompt':_0x132af1,'content':_0x4e2394,'model':_0x3e077b,..._0x45df82&&{'capabilities':_0x45df82},..._0x30ca03&&{'attributes':_0x30ca03}},_0x5ad077=this[_0x2ff742(0x1f0)](_0x2ff742(0x1cc)+_0x4e082e+_0x2ff742(0x1ec),_0x2ff742(0x1f4),_0x4ca59c);return{'getStream':async()=>{const _0x3569cd=_0x2ff742,_0x3971ce=(await _0x5ad077[_0x3569cd(0x21b)])[_0x3569cd(0x19d)];return this[_0x3569cd(0x19a)](_0x3971ce);},'abortController':_0x5ad077[_0x2ff742(0x1f5)]};}[_0x46e6d8(0x1e0)]({content:_0x23298b,message:_0x52ddbf,model:_0x398332,outputFormat:_0x2a6d91}){const _0xc5bf66=_0x46e6d8,_0x408526={'content':[{'type':_0xc5bf66(0x1a3),'content':_0x23298b}],'prompt':_0x52ddbf,'model':_0x398332,'outputFormat':_0x2a6d91},_0x5ddaf5=this[_0xc5bf66(0x1f0)](_0xc5bf66(0x1fa),_0xc5bf66(0x1f4),_0x408526);return{'getStream':async()=>{const _0x4cb1e3=_0xc5bf66,_0x174c00=(await _0x5ddaf5[_0x4cb1e3(0x21b)])[_0x4cb1e3(0x19d)];return this[_0x4cb1e3(0x19a)](_0x174c00);},'abortController':_0x5ddaf5[_0xc5bf66(0x1f5)]};}[_0x46e6d8(0x1af)]({actionName:_0x5ed0f7,content:_0x340af1,args:_0x24dd09}){const _0x238646=_0x46e6d8,_0x4fd226={'content':[{'type':_0x238646(0x1a3),'content':_0x340af1}],'args':_0x24dd09},_0x5bbcaf=this[_0x238646(0x1f0)](_0x238646(0x219)+_0x5ed0f7+_0x238646(0x20e),_0x238646(0x1f4),_0x4fd226);return{'getStream':async()=>{const _0x3952ef=_0x238646,_0x5a69ea=(await _0x5bbcaf[_0x3952ef(0x21b)])[_0x3952ef(0x19d)];return this[_0x3952ef(0x19a)](_0x5a69ea);},'abortController':_0x5bbcaf[_0x238646(0x1f5)]};}[_0x46e6d8(0x218)](_0x4af6de,_0xc5545c,_0x724ae4){const _0x14d969=_0x46e6d8,_0x3e0527=new FormData();_0x3e0527[_0x14d969(0x205)](_0x14d969(0x1a7),_0xc5545c,_0xc5545c[_0x14d969(0x1da)]),_0x724ae4&&_0x3e0527[_0x14d969(0x205)](_0x14d969(0x1c3),JSON[_0x14d969(0x1a2)](_0x724ae4));const _0x5503f5=this[_0x14d969(0x1f0)](_0x14d969(0x1cc)+_0x4af6de+_0x14d969(0x20f),_0x14d969(0x1f4),_0x3e0527);return{'getId':async()=>(await _0x5503f5[_0x14d969(0x21b)])[_0x14d969(0x1ea)](),'abortController':_0x5503f5[_0x14d969(0x1f5)]};}[_0x46e6d8(0x1b8)](_0x57d8d3,_0x48c4c8){const _0x4890c6=_0x46e6d8,_0x357a4a=this[_0x4890c6(0x1f0)](_0x4890c6(0x1cc)+_0x57d8d3+_0x4890c6(0x22b)+_0x48c4c8,_0x4890c6(0x20c));return{'getDocument':async()=>(await _0x357a4a[_0x4890c6(0x21b)])[_0x4890c6(0x1ea)](),'abortController':_0x357a4a[_0x4890c6(0x1f5)]};}[_0x46e6d8(0x206)](_0x4ee4a3,_0x33080b,_0x1701b6){const _0xddc059=_0x46e6d8,_0x1e6ca8={'content':_0x33080b};_0x1701b6&&(_0x1e6ca8[_0xddc059(0x1c3)]=_0x1701b6);const _0x45bb37=this[_0xddc059(0x1f0)](_0xddc059(0x1cc)+_0x4ee4a3+_0xddc059(0x1c8),_0xddc059(0x1f4),_0x1e6ca8);return{'getId':async()=>(await _0x45bb37[_0xddc059(0x21b)])[_0xddc059(0x1ea)](),'abortController':_0x45bb37[_0xddc059(0x1f5)]};}[_0x46e6d8(0x1fc)](_0x792430,_0x1127d6={}){const _0x28072f=_0x46e6d8,_0x20de68=new URLSearchParams();_0x20de68[_0x28072f(0x205)](_0x28072f(0x202),_0x792430),_0x20de68[_0x28072f(0x205)](_0x28072f(0x1a0),!0x1!==_0x1127d6[_0x28072f(0x1a0)]?_0x28072f(0x217):_0x28072f(0x1e2)),_0x20de68[_0x28072f(0x205)](_0x28072f(0x20b),_0x1127d6[_0x28072f(0x20b)]?_0x1127d6[_0x28072f(0x20b)][_0x28072f(0x1ef)]():_0x28072f(0x1fe)),_0x20de68[_0x28072f(0x205)](_0x28072f(0x19c),_0x1127d6[_0x28072f(0x19c)]?_0x1127d6[_0x28072f(0x19c)]:_0x28072f(0x223)),_0x20de68[_0x28072f(0x205)](_0x28072f(0x1f8),_0x1127d6[_0x28072f(0x1f8)]?_0x1127d6[_0x28072f(0x1f8)]:_0x28072f(0x1f2));const _0x97623b=this[_0x28072f(0x1f0)](_0x28072f(0x228)+_0x20de68[_0x28072f(0x1ef)](),_0x28072f(0x20c));return{'getConversations':async()=>{const _0x4bae58=_0x28072f,_0x56afdf=await _0x97623b[_0x4bae58(0x21b)];return(await _0x56afdf[_0x4bae58(0x1ea)]())[_0x4bae58(0x224)];},'abortController':_0x97623b[_0x28072f(0x1f5)]};}[_0x46e6d8(0x19f)](_0x510582){const _0x2c0a72=_0x46e6d8,_0x189a0e=this[_0x2c0a72(0x1f0)](_0x2c0a72(0x1cc)+_0x510582,_0x2c0a72(0x1e6));return{'execute':async()=>{const _0x25c1b0=_0x2c0a72;await _0x189a0e[_0x25c1b0(0x21b)];},'abortController':_0x189a0e[_0x2c0a72(0x1f5)]};}[_0x46e6d8(0x19e)](_0x5bc24c,_0xfd5fbe){const _0x2a5b5d=_0x46e6d8,_0x545dd0=this[_0x2a5b5d(0x1f0)](_0x2a5b5d(0x1cc)+_0x5bc24c,_0x2a5b5d(0x210),_0xfd5fbe);return{'getResult':async()=>(await _0x545dd0[_0x2a5b5d(0x21b)],_0xfd5fbe),'abortController':_0x545dd0[_0x2a5b5d(0x1f5)]};}[_0x46e6d8(0x199)](_0x72d3c5){const _0x562187=_0x46e6d8,_0x57672f=this[_0x562187(0x1f0)](_0x562187(0x1cc)+_0x72d3c5,_0x562187(0x20c));return{'getConversation':async()=>(await _0x57672f[_0x562187(0x21b)])[_0x562187(0x1ea)](),'abortController':_0x57672f[_0x562187(0x1f5)]};}[_0x46e6d8(0x21f)](_0x31fabd){const _0x4d0c80=_0x46e6d8,_0x4d0451=this[_0x4d0c80(0x1f0)](_0x4d0c80(0x1cc)+_0x31fabd+_0x4d0c80(0x1ec),_0x4d0c80(0x20c));return{'getMessages':async()=>{const _0x4a1d88=_0x4d0c80,_0x5f3005=await _0x4d0451[_0x4a1d88(0x21b)];return(await _0x5f3005[_0x4a1d88(0x1ea)]())[_0x4a1d88(0x224)];},'abortController':_0x4d0451[_0x4d0c80(0x1f5)]};}[_0x46e6d8(0x204)](_0x470e4c,_0x1a9834,_0x3e78d9){const _0x408fb6=_0x46e6d8,_0x4fa427=this[_0x408fb6(0x1f0)](_0x408fb6(0x1cc)+_0x470e4c+_0x408fb6(0x21a),_0x408fb6(0x1f4),{'url':_0x1a9834,'attributes':_0x3e78d9});return{'getId':async()=>(await _0x4fa427[_0x408fb6(0x21b)])[_0x408fb6(0x1ea)](),'abortController':_0x4fa427[_0x408fb6(0x1f5)]};}[_0x46e6d8(0x1d6)](_0x35c65b='en'){const _0x266778=_0x46e6d8,_0x257cbe=new URLSearchParams();_0x257cbe[_0x266778(0x205)](_0x266778(0x1ab),_0x35c65b);const _0x2623d3=_0x266778(0x212)+_0x257cbe[_0x266778(0x1ef)](),_0x49b34e=this[_0x266778(0x1f0)](_0x2623d3,_0x266778(0x20c));return{'list':async()=>await(await _0x49b34e[_0x266778(0x21b)])[_0x266778(0x1ea)](),'abortController':_0x49b34e[_0x266778(0x1f5)]};}[_0x46e6d8(0x1d7)](_0x5704ca,_0x5e4943){const _0x322d40=_0x46e6d8,_0x1a020f=this[_0x322d40(0x1f0)](_0x322d40(0x1cc)+_0x5704ca+_0x322d40(0x1d8)+_0x5e4943,_0x322d40(0x1e6));return{'execute':async()=>{const _0x5d078a=_0x322d40;await _0x1a020f[_0x5d078a(0x21b)];},'abortController':_0x1a020f[_0x322d40(0x1f5)]};}[_0x46e6d8(0x222)](_0x4f6532,_0x15402a){const _0x4b3bfc=_0x46e6d8,_0x154be0=this[_0x4b3bfc(0x1f0)](_0x4b3bfc(0x1cc)+_0x4f6532+_0x4b3bfc(0x22b)+_0x15402a,_0x4b3bfc(0x1e6));return{'execute':async()=>{const _0x5b5931=_0x4b3bfc;await _0x154be0[_0x5b5931(0x21b)];},'abortController':_0x154be0[_0x4b3bfc(0x1f5)]};}[_0x46e6d8(0x1d2)](_0x4e2acd,_0x1fed44){const _0x2374b3=_0x46e6d8,_0x24b5ec=this[_0x2374b3(0x1f0)](_0x2374b3(0x1cc)+_0x4e2acd+_0x2374b3(0x1bb)+_0x1fed44,_0x2374b3(0x1e6));return{'execute':async()=>{const _0x17b9e0=_0x2374b3;await _0x24b5ec[_0x17b9e0(0x21b)];},'abortController':_0x24b5ec[_0x2374b3(0x1f5)]};}[_0x46e6d8(0x1ae)]({reviewName:_0x13542b,content:_0x18ac20,args:_0x3b2c5f}){const _0x1f713a=_0x46e6d8,_0xde2655=this[_0x1f713a(0x1f0)](_0x1f713a(0x1b9)+_0x13542b+_0x1f713a(0x20e),_0x1f713a(0x1f4),{'content':[{'type':_0x1f713a(0x1a3),'content':_0x18ac20}],'args':_0x3b2c5f});return{'getStream':async()=>{const _0x37b896=_0x1f713a,_0x488ba1=(await _0xde2655[_0x37b896(0x21b)])[_0x37b896(0x19d)];return this[_0x37b896(0x19a)](_0x488ba1);},'abortController':_0xde2655[_0x1f713a(0x1f5)]};}[_0x46e6d8(0x1ff)]({content:_0x212fa6,prompt:_0x2b350d,model:_0x502f03}){const _0x143c6e=_0x46e6d8,_0x4bd954=this[_0x143c6e(0x1f0)](_0x143c6e(0x207),_0x143c6e(0x1f4),{'content':[{'type':_0x143c6e(0x1a3),'content':_0x212fa6}],'prompt':_0x2b350d,'model':_0x502f03});return{'getStream':async()=>{const _0x534564=_0x143c6e,_0xa6ed35=(await _0x4bd954[_0x534564(0x21b)])[_0x534564(0x19d)];return this[_0x534564(0x19a)](_0xa6ed35);},'abortController':_0x4bd954[_0x143c6e(0x1f5)]};}[_0x46e6d8(0x1ee)](_0x2afc6d,_0x46b13b,_0x55559d){const _0x366dc8=_0x46e6d8,_0x1953f2=this[_0x366dc8(0x1f0)](_0x366dc8(0x1cc)+_0x2afc6d+_0x366dc8(0x1bf)+_0x46b13b+_0x366dc8(0x1c4),_0x366dc8(0x1d1),{'positiveCount':_0x55559d[_0x366dc8(0x213)],'totalCount':_0x55559d[_0x366dc8(0x1aa)],'modificationId':_0x55559d[_0x366dc8(0x1c9)]});return{'execute':async()=>{const _0x40f8fc=_0x366dc8;await _0x1953f2[_0x40f8fc(0x21b)];},'abortController':_0x1953f2[_0x366dc8(0x1f5)]};}[_0x46e6d8(0x1f7)](_0x2ab2b5,_0x39a6d1,_0x545b69){const _0x41b15a=_0x46e6d8,_0x19f4b6=this[_0x41b15a(0x1f0)](_0x41b15a(0x219)+_0x2ab2b5+_0x41b15a(0x209)+_0x39a6d1+_0x41b15a(0x1c4),_0x41b15a(0x1d1),{'positiveCount':_0x545b69[_0x41b15a(0x213)],'totalCount':_0x545b69[_0x41b15a(0x1aa)]});return{'execute':async()=>{const _0x52cf31=_0x41b15a;await _0x19f4b6[_0x52cf31(0x21b)];},'abortController':_0x19f4b6[_0x41b15a(0x1f5)]};}[_0x46e6d8(0x1ba)](_0x161da7,_0x2b456a){const _0xc22151=_0x46e6d8,_0x4cb104=this[_0xc22151(0x1f0)](_0xc22151(0x203)+_0x161da7+_0xc22151(0x1c4),_0xc22151(0x1d1),{'positiveCount':_0x2b456a[_0xc22151(0x213)],'totalCount':_0x2b456a[_0xc22151(0x1aa)]});return{'execute':async()=>{const _0x33ef29=_0xc22151;await _0x4cb104[_0x33ef29(0x21b)];},'abortController':_0x4cb104[_0xc22151(0x1f5)]};}[_0x46e6d8(0x22a)](_0x2215a1,_0x3bdad4,_0x14ac1b,_0x2633c3){const _0x2d9e79=_0x46e6d8,_0x59192a=this[_0x2d9e79(0x1f0)](_0x2d9e79(0x1b9)+_0x2215a1+_0x2d9e79(0x209)+_0x3bdad4+_0x2d9e79(0x1c4),_0x2d9e79(0x1d1),{'positiveCount':_0x14ac1b[_0x2d9e79(0x213)],'totalCount':_0x14ac1b[_0x2d9e79(0x1aa)],'dataId':_0x2633c3});return{'execute':async()=>{const _0x571af7=_0x2d9e79;await _0x59192a[_0x571af7(0x21b)];},'abortController':_0x59192a[_0x2d9e79(0x1f5)]};}[_0x46e6d8(0x211)](_0x1622fd,_0xb9b890,_0x4060e3){const _0x3bb0d1=_0x46e6d8,_0x16d661=this[_0x3bb0d1(0x1f0)](_0x3bb0d1(0x1d0)+_0x1622fd+_0x3bb0d1(0x1c4),_0x3bb0d1(0x1d1),{'positiveCount':_0xb9b890[_0x3bb0d1(0x213)],'totalCount':_0xb9b890[_0x3bb0d1(0x1aa)],'dataId':_0x4060e3});return{'execute':async()=>{const _0x4366ac=_0x3bb0d1;await _0x16d661[_0x4366ac(0x21b)];},'abortController':_0x16d661[_0x3bb0d1(0x1f5)]};}[_0x46e6d8(0x1f0)](_0x3dd1b1,_0x40d06b,_0x2534c5){const _0x5522f4=_0x46e6d8,_0x42a7d4=new AbortController(),_0xca360d=_0x2534c5 instanceof FormData,_0x261f97={'Authorization':_0x5522f4(0x1cd)+this[_0x5522f4(0x1b0)]?.[_0x5522f4(0x214)]};_0x2534c5&&!_0xca360d&&(_0x261f97[_0x5522f4(0x1c0)]=_0x5522f4(0x1c7));const _0x1c0893={'method':_0x40d06b,'headers':_0x261f97,'signal':_0x42a7d4[_0x5522f4(0x21e)]};return _0x2534c5&&(_0x1c0893[_0x5522f4(0x19d)]=_0xca360d?_0x2534c5:JSON[_0x5522f4(0x1a2)](_0x2534c5)),{'request':fetch(''+this[_0x5522f4(0x1db)]+_0x3dd1b1,_0x1c0893)[_0x5522f4(0x1f3)](_0x54ec93=>{const _0x9336c6=_0x5522f4;this[_0x9336c6(0x1d5)](_0x54ec93);})[_0x5522f4(0x215)](_0x306d0d=>_0x306d0d['ok']?_0x306d0d:_0x306d0d[_0x5522f4(0x1ea)]()[_0x5522f4(0x215)](_0x4712f4=>{const _0x4625e5=_0x5522f4;throw{'url':this[_0x4625e5(0x1db)],'path':_0x3dd1b1,'method':_0x40d06b,'body':_0x2534c5,'status':(_0x306d0d||{})[_0x4625e5(0x1dc)],'statusText':(_0x306d0d||{})[_0x4625e5(0x1e8)],'code':_0x4712f4[_0x4625e5(0x1c5)],'message':_0x4712f4[_0x4625e5(0x1c6)],'traceId':_0x4712f4[_0x4625e5(0x1d3)]};})),'abortController':_0x42a7d4};}async*[_0x46e6d8(0x19a)](_0x125e52){const _0x1e3ce3=_0x46e6d8,_0x114fe2=[],_0x12d54c=_0x125e52[_0x1e3ce3(0x1de)](),_0x41d84a=_0x14840d({'onError':_0x79c186=>{const _0x5cbd2f=_0x1e3ce3;this[_0x5cbd2f(0x1d5)](_0x79c186);},'onEvent':_0x222055=>{const _0x1ab06c=_0x1e3ce3;_0x222055[_0x1ab06c(0x1e3)]=JSON[_0x1ab06c(0x21c)](_0x222055[_0x1ab06c(0x1e3)]),_0x114fe2[_0x1ab06c(0x227)](_0x222055);}});try{let _0x581ab5=!0x1;for(;!_0x581ab5;){const {done:_0x27c410,value:_0x5a0f71}=await _0x12d54c[_0x1e3ce3(0x1fd)]();_0x27c410&&(_0x581ab5=!0x0),_0x41d84a[_0x1e3ce3(0x1a5)](this[_0x1e3ce3(0x1f6)][_0x1e3ce3(0x1a8)](_0x5a0f71,{'stream':!0x0})),yield*_0x114fe2,_0x114fe2[_0x1e3ce3(0x1e7)]=0x0;}}catch(_0x1bcd2e){this[_0x1e3ce3(0x1d5)](_0x1bcd2e);}finally{_0x12d54c[_0x1e3ce3(0x1c2)](),_0x41d84a[_0x1e3ce3(0x1bd)]();}}[_0x46e6d8(0x1d5)](_0x91c509){const _0x36e034=_0x46e6d8;if(_0x91c509 instanceof _0x50b77d)throw _0x91c509;if(_0x91c509 instanceof Error&&_0x36e034(0x21d)===_0x91c509[_0x36e034(0x1da)])throw new _0x50b77d(_0x36e034(0x20a),this,{'originalError':_0x91c509});throw new _0x50b77d(_0x36e034(0x1b3),this,{'originalError':_0x91c509});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3f7069=_0x2fdc;(function(_0x3f850f,_0x2e3a91){const _0x364f4c=_0x2fdc,_0x24b8c5=_0x3f850f();while(!![]){try{const _0x455d60=-parseInt(_0x364f4c(0x125))/0x1+parseInt(_0x364f4c(0x140))/0x2+parseInt(_0x364f4c(0x129))/0x3*(parseInt(_0x364f4c(0x100))/0x4)+parseInt(_0x364f4c(0x145))/0x5*(-parseInt(_0x364f4c(0x142))/0x6)+parseInt(_0x364f4c(0x10b))/0x7+-parseInt(_0x364f4c(0x147))/0x8+parseInt(_0x364f4c(0x107))/0x9*(-parseInt(_0x364f4c(0x159))/0xa);if(_0x455d60===_0x2e3a91)break;else _0x24b8c5['push'](_0x24b8c5['shift']());}catch(_0x555d15){_0x24b8c5['push'](_0x24b8c5['shift']());}}}(_0x5c44,0x2c52e));function _0x5c44(){const _0xd3226d=['convertAiChatSelectionMarker','ck-fake-ai-selection','_outputDataProcessor','showFakeVisualSelection','getStart','version','end','floor','markerToHighlight',':end>','getRoot','isAfter','change','createUIElement','has','_displayedFakeSelectionLocked','setAttribute','getLastMatchingPosition','getWalker','add','isOfficialPlugin','152205ZjJiDv','data-id','ck-ai-assistant-ui_theme','_integrateEditor','7872UUXeUU','isPremiumPlugin','getChildren','pluginName','removeMarker','getSelection','emptyElement','hideFakeVisualSelection','name','trim',':start>','sort','context','RealTimeCollaborationClient','substring',':end></','config','viewToDom','editing','get','_setDataIdsOnChildren','ai-selection:','ready','479934TJGkbn','getSelectionText','377334BnUtUr','sessionId','_displayedFakeSelectionId','10NWvHtg','markerToElement','1694880eDIeAl','AIEditing','for','getDocumentData','element','modelToDataWithIds','ai-selection','toView','length','addMarker','getHtml','isAtEnd','_sessionId','listenTo','processor','_getDocumentDataStringFromView','fromCharCode','join','88870VxOYFt','domConverter','isOpening','getSelectedContent','data','editors','_setOutputDataProcessor','push','$textProxy','document','from','afterInit','ai.models.showModelSelector','random','_nextDataId','createRangeIn','view','isContent','htmlWriter','createRange','_getMarkersInDocumentOrder','selection','isBefore','containerElement','getMarkersGroup',':start></','372wgtkqG','toData','indexOf','dataDowncast','plugins','schema','start','9jMXcTk','model','markers','conversion','1373967seIoPL','markerName','removeAllRanges','define','editingDowncast'];_0x5c44=function(){return _0xd3226d;};return _0x5c44();}function _0x2fdc(_0x547fc1,_0x1809be){const _0x5c44d1=_0x5c44();return _0x2fdc=function(_0x2fdc3b,_0xb0c2c3){_0x2fdc3b=_0x2fdc3b-0xf4;let _0x3775cd=_0x5c44d1[_0x2fdc3b];return _0x3775cd;},_0x2fdc(_0x547fc1,_0x1809be);}import{ViewDowncastWriter as _0x313ddb}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x214020,Editor as _0x49da74}from'ckeditor5/src/core.js';import{uid as _0x4cee25}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x1c618d}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x3f7069(0x14d);export class AIEditing extends _0x214020{constructor(_0x13bc11){const _0x21494f=_0x3f7069;super(_0x13bc11),this[_0x21494f(0x135)][_0x21494f(0x139)][_0x21494f(0x10e)](_0x21494f(0x165),!0x0);}[_0x3f7069(0x112)];[_0x3f7069(0x144)]=null;[_0x3f7069(0x11f)]=!0x1;[_0x3f7069(0x153)];static get[_0x3f7069(0x12c)](){const _0x1ddb67=_0x3f7069;return _0x1ddb67(0x148);}static get[_0x3f7069(0x124)](){return!0x0;}static get[_0x3f7069(0x12a)](){return!0x0;}get[_0x3f7069(0x143)](){const _0xc367be=_0x3f7069;if(!this[_0xc367be(0x153)]){const _0x25b2f1=_0x1c618d(this[_0xc367be(0x135)]),_0x352261=_0x25b2f1[_0xc367be(0x104)][_0xc367be(0x11e)](_0xc367be(0x136))&&_0x25b2f1[_0xc367be(0x104)][_0xc367be(0x13c)](_0xc367be(0x136))[_0xc367be(0x143)];this[_0xc367be(0x153)]=_0x352261||_0x4cee25();}return this[_0xc367be(0x153)];}async[_0x3f7069(0x14a)](){const _0x22f5b1=_0x3f7069,_0x2062ba=_0x1c618d(this[_0x22f5b1(0x135)]),_0x15e82f=_0x2062ba[_0x22f5b1(0x108)],_0x619216=_0x2062ba[_0x22f5b1(0x15d)][_0x22f5b1(0x14e)](_0x15e82f[_0x22f5b1(0x162)][_0x22f5b1(0x11a)](),{'convertAiChatSelectionMarker':!0x0}),_0x21d34d=new _0x313ddb(_0x2062ba[_0x22f5b1(0x13b)][_0x22f5b1(0xf6)][_0x22f5b1(0x162)]);this[_0x22f5b1(0x13d)](_0x619216,_0x21d34d);let _0x1810db=await this[_0x22f5b1(0x156)](_0x619216);const _0x5c8a8b=this[_0x22f5b1(0xfa)](),_0x17cd82=[];for(const _0x5182d2 of _0x5c8a8b){const _0x12c5d4='<'+_0x5182d2[_0x22f5b1(0x131)]+_0x22f5b1(0xff)+_0x5182d2[_0x22f5b1(0x131)]+_0x22f5b1(0x133),_0x3a3380=_0x1810db[_0x22f5b1(0x102)](_0x12c5d4);_0x1810db=_0x1810db[_0x22f5b1(0x137)](0x0,_0x3a3380)+_0x1810db[_0x22f5b1(0x137)](_0x3a3380+_0x12c5d4[_0x22f5b1(0x14f)]);const _0x17b2d7='<'+_0x5182d2[_0x22f5b1(0x131)]+_0x22f5b1(0x138)+_0x5182d2[_0x22f5b1(0x131)]+_0x22f5b1(0x119),_0x14bc4d=_0x1810db[_0x22f5b1(0x102)](_0x17b2d7);_0x1810db=_0x1810db[_0x22f5b1(0x137)](0x0,_0x14bc4d)+_0x1810db[_0x22f5b1(0x137)](_0x14bc4d+_0x17b2d7[_0x22f5b1(0x14f)]),_0x17cd82[_0x22f5b1(0x160)]({'markerName':_0x5182d2[_0x22f5b1(0x131)],'start':_0x3a3380,'end':_0x14bc4d,'htmlFragment':_0x1810db[_0x22f5b1(0x137)](_0x3a3380,_0x14bc4d)});}return{'content':_0x1810db,'version':_0x2062ba[_0x22f5b1(0x108)][_0x22f5b1(0x162)][_0x22f5b1(0x115)],'sessionId':this[_0x22f5b1(0x143)],'selections':_0x17cd82};}async[_0x3f7069(0x164)](){const _0x3b128a=_0x3f7069;this[_0x3b128a(0x135)]instanceof _0x49da74?this[_0x3b128a(0x128)](this[_0x3b128a(0x135)]):this[_0x3b128a(0x154)](this[_0x3b128a(0x135)][_0x3b128a(0x15e)],_0x3b128a(0x123),(_0x109e80,_0xa09782)=>{const _0x3c7e96=_0x3b128a;_0xa09782['on'](_0x3c7e96(0x13f),()=>{const _0x565456=_0x3c7e96;this[_0x565456(0x128)](_0xa09782);});});}[_0x3f7069(0x15f)](_0x38b55c){const _0xf638a0=_0x3f7069;this[_0xf638a0(0x112)]=_0x38b55c;}async[_0x3f7069(0x156)](_0x3979ee){const _0x3a7230=_0x3f7069;let _0x35a8e5;const _0x2d3663=_0x1c618d(this[_0x3a7230(0x135)]);if(this[_0x3a7230(0x112)]){const _0x42e41c=_0x2d3663[_0x3a7230(0x15d)][_0x3a7230(0x155)][_0x3a7230(0x15a)][_0x3a7230(0x13a)](_0x3979ee),_0x22fed8=await this[_0x3a7230(0x112)](_0x42e41c);_0x35a8e5=_0x2d3663[_0x3a7230(0x15d)][_0x3a7230(0x155)][_0x3a7230(0xf8)][_0x3a7230(0x151)](_0x22fed8);}else _0x35a8e5=_0x2d3663[_0x3a7230(0x15d)][_0x3a7230(0x155)][_0x3a7230(0x101)](_0x3979ee);return _0x35a8e5;}[_0x3f7069(0x128)](_0x34b7d7){const _0x3f24ef=_0x3f7069;_0x34b7d7[_0x3f24ef(0x10a)][_0x3f24ef(0x149)](_0x3f24ef(0x10f))[_0x3f24ef(0x118)]({'model':_0x3f24ef(0x14d),'view':{'classes':[_0x3f24ef(0x111),_0x3f24ef(0x127)],'priority':0xc}}),_0x34b7d7[_0x3f24ef(0x10a)][_0x3f24ef(0x149)](_0x3f24ef(0x103))[_0x3f24ef(0x146)]({'model':_0x3f24ef(0x14d),'view':(_0x557609,{writer:_0x5eb2a3,options:_0x4589eb})=>_0x4589eb[_0x3f24ef(0x110)]?_0x5eb2a3[_0x3f24ef(0x11d)](_0x557609[_0x3f24ef(0x10c)]+':'+(_0x557609[_0x3f24ef(0x15b)]?_0x3f24ef(0x106):_0x3f24ef(0x116))):null});}[_0x3f7069(0x113)](_0x5f5639,_0x13c290,_0x1f68e2=!0x1,_0x5f2394=!0x1){const _0x39e53f=_0x3f7069;if(this[_0x39e53f(0x11f)]&&!_0x5f2394)return!0x1;const _0x187ef4=_0x1c618d(this[_0x39e53f(0x135)])[_0x39e53f(0x108)];return _0x187ef4[_0x39e53f(0x11c)](_0x472ece=>{const _0x15292d=_0x39e53f;this[_0x15292d(0x144)]&&this[_0x15292d(0x130)](this[_0x15292d(0x144)]),this[_0x15292d(0x144)]=_0x13c290,this[_0x15292d(0x11f)]=_0x1f68e2;let _0xe1a2ef=0x0;for(let _0xe32362 of _0x5f5639){const _0x385b28=_0x15292d(0x13e)+_0xe1a2ef;if(_0xe32362[_0x15292d(0x106)][_0x15292d(0x152)]){const _0x1db458=_0xe32362[_0x15292d(0x106)][_0x15292d(0x121)](({item:_0x3dfdb4})=>!_0x187ef4[_0x15292d(0x105)][_0x15292d(0xf7)](_0x3dfdb4),{'boundaries':_0xe32362});_0xe32362=_0x472ece[_0x15292d(0xf9)](_0x1db458,_0xe32362[_0x15292d(0x116)]);}_0x472ece[_0x15292d(0x150)](_0x385b28,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0xe32362}),_0xe1a2ef++;}}),window[_0x39e53f(0x12e)]()?.[_0x39e53f(0x10d)](),!0x0;}[_0x3f7069(0x130)](_0x2f096b){const _0x2c470a=_0x3f7069;if(this[_0x2c470a(0x144)]!=_0x2f096b)return!0x1;this[_0x2c470a(0x144)]=null,this[_0x2c470a(0x11f)]=!0x1;const _0x1c92fa=_0x1c618d(this[_0x2c470a(0x135)]),_0x5b67f5=_0x1c92fa[_0x2c470a(0x108)][_0x2c470a(0x109)][_0x2c470a(0xfe)](_0x2c470a(0x14d));return _0x1c92fa[_0x2c470a(0x108)][_0x2c470a(0x11c)](_0x2e1f78=>{const _0x51ee6f=_0x2c470a;for(const _0x23ff49 of _0x5b67f5)_0x2e1f78[_0x51ee6f(0x12d)](_0x23ff49);}),!0x0;}async[_0x3f7069(0x14c)](_0x296759){const _0x2f2609=_0x3f7069,_0x557662=_0x1c618d(this[_0x2f2609(0x135)]),_0x9c2ca6=_0x557662[_0x2f2609(0x15d)][_0x2f2609(0x14e)](_0x296759),_0x462031=new _0x313ddb(_0x557662[_0x2f2609(0x13b)][_0x2f2609(0xf6)][_0x2f2609(0x162)]);return this[_0x2f2609(0x13d)](_0x9c2ca6,_0x462031),this[_0x2f2609(0x156)](_0x9c2ca6);}[_0x3f7069(0x13d)](_0x2b6d86,_0x3a7f48){const _0x312234=_0x3f7069;let _0x5af0ef=!0x1;const _0x3fcf2a=new Set();for(const _0xec6fb6 of _0x2b6d86[_0x312234(0x12b)]()){const _0x115fea=_0xec6fb6['is'](_0x312234(0x12f))||_0xec6fb6['is'](_0x312234(0xfd));if(!_0xec6fb6['is'](_0x312234(0x14b)))continue;(this[_0x312234(0x13d)](_0xec6fb6,_0x3a7f48)||_0x115fea)&&(_0x3a7f48[_0x312234(0x120)](_0x312234(0x126),this[_0x312234(0xf4)](_0x3fcf2a),_0xec6fb6),_0x5af0ef=!0x0);}return _0x5af0ef;}[_0x3f7069(0xf4)](_0x23b68d){const _0x4bdac0=_0x3f7069;let _0x404904;do{_0x404904='';for(let _0x4ddb4e=0x0;_0x4ddb4e<0x4;_0x4ddb4e++)_0x404904+=String[_0x4bdac0(0x157)](0x61+Math[_0x4bdac0(0x117)](0x1a*Math[_0x4bdac0(0x166)]()));}while(_0x23b68d[_0x4bdac0(0x11e)](_0x404904));return _0x23b68d[_0x4bdac0(0x123)](_0x404904),_0x404904;}[_0x3f7069(0x141)](){const _0x4a248d=_0x3f7069,{model:_0x49bf87}=_0x1c618d(this[_0x4a248d(0x135)]),_0x13c1bb=_0x49bf87[_0x4a248d(0x162)][_0x4a248d(0xfb)],_0xf8ff1c=_0x49bf87[_0x4a248d(0x15c)](_0x13c1bb),_0x1e4c42=[],_0x16dd0f=_0x49bf87[_0x4a248d(0xf5)](_0xf8ff1c)[_0x4a248d(0x122)]();for(const {item:_0x364d80}of _0x16dd0f)_0x364d80['is'](_0x4a248d(0x161))?_0x1e4c42[_0x4a248d(0x160)](_0x364d80[_0x4a248d(0x15d)]):_0x364d80['is'](_0x4a248d(0x14b))&&_0x1e4c42[_0x4a248d(0x14f)]>0x0&&'\x20'!==_0x1e4c42[_0x1e4c42[_0x4a248d(0x14f)]-0x1]&&_0x1e4c42[_0x4a248d(0x160)]('\x20');return'\x22'+_0x1e4c42[_0x4a248d(0x158)]('')[_0x4a248d(0x132)]()+'\x22';}[_0x3f7069(0xfa)](){const _0x54b565=_0x3f7069,_0x43ccc4=_0x1c618d(this[_0x54b565(0x135)])[_0x54b565(0x108)];return Array[_0x54b565(0x163)](_0x43ccc4[_0x54b565(0x109)][_0x54b565(0xfe)](_0x54b565(0x14d)))[_0x54b565(0x134)]((_0x4d4c3f,_0x4c4b84)=>_0x4d4c3f[_0x54b565(0x114)]()[_0x54b565(0xfc)](_0x4c4b84[_0x54b565(0x114)]())?-0x1:_0x4d4c3f[_0x54b565(0x114)]()[_0x54b565(0x11b)](_0x4c4b84[_0x54b565(0x114)]())?0x1:0x0);}}
|
|
23
|
+
const _0xaca29c=_0xc168;(function(_0x34d4ec,_0x4b106c){const _0x506535=_0xc168,_0x35765e=_0x34d4ec();while(!![]){try{const _0x1c084c=-parseInt(_0x506535(0x90))/0x1*(parseInt(_0x506535(0x7e))/0x2)+-parseInt(_0x506535(0xdb))/0x3*(parseInt(_0x506535(0x9b))/0x4)+parseInt(_0x506535(0x8e))/0x5+-parseInt(_0x506535(0x77))/0x6*(parseInt(_0x506535(0xda))/0x7)+parseInt(_0x506535(0xae))/0x8+parseInt(_0x506535(0xe6))/0x9*(-parseInt(_0x506535(0x86))/0xa)+parseInt(_0x506535(0x75))/0xb*(parseInt(_0x506535(0xc5))/0xc);if(_0x1c084c===_0x4b106c)break;else _0x35765e['push'](_0x35765e['shift']());}catch(_0x63c813){_0x35765e['push'](_0x35765e['shift']());}}}(_0x58a8,0xa3913));import{ViewDowncastWriter as _0x5eeb0f}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x3f2e8,Editor as _0x4a4c93}from'ckeditor5/src/core.js';import{uid as _0x9749f0}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x458989}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0xaca29c(0xd0);function _0x58a8(){const _0x20803a=['htmlWriter','4391416COytCl','markerToElement','listenTo','_getDocumentDataStringFromView','addMarker','getHtml','createUIElement','document','getLastMatchingPosition','for','_displayedFakeSelectionLocked','_nextDataId','data','modelToDataWithIds','define','_outputDataProcessor','indexOf','fromCharCode','ready','conversion','add','editors','markerName','204dMEzwZ','markers','substring','_sessionId','editing','isContent','getChildren','plugins','random','$textProxy','start','ai-selection','_setDataIdsOnChildren','config','_setOutputDataProcessor','_integrateEditor','dataDowncast','emptyElement','removeMarker','_getMarkersInDocumentOrder',':end></','6745571YjTeEk','3YteuJX','schema','name','createRange','isOfficialPlugin','sort','view','from','toData','viewToDom',':start></','5448717eRfRhL','removeAllRanges','containerElement','getDocumentData','1980473zLMyqu','end','6LPFscV','version','hideFakeVisualSelection','afterInit','data-id','ai.models.showModelSelector','isBefore','590ekEenj','createRangeIn','ck-fake-ai-selection','sessionId','getMarkersGroup','getWalker',':end>','editingDowncast','10orqFfF','floor','context','showFakeVisualSelection','isPremiumPlugin','getRoot','AIEditing','_displayedFakeSelectionId','280dWTpiG','change','3132jqBnSo','getSelectedContent','ck-ai-assistant-ui_theme','push',':start>','markerToHighlight','pluginName','model','get','getSelection','ai-selection:','1786948IoGKxq','domConverter','isAfter','setAttribute','convertAiChatSelectionMarker','element','isOpening','join','has','processor','getStart','toView','isAtEnd','RealTimeCollaborationClient','selection','getSelectionText','trim','length'];_0x58a8=function(){return _0x20803a;};return _0x58a8();}function _0xc168(_0xf29cac,_0x658efd){const _0x58a8ea=_0x58a8();return _0xc168=function(_0xc16843,_0x4b3619){_0xc16843=_0xc16843-0x73;let _0x443e3b=_0x58a8ea[_0xc16843];return _0x443e3b;},_0xc168(_0xf29cac,_0x658efd);}export class AIEditing extends _0x3f2e8{constructor(_0xeea677){const _0x322b3a=_0xaca29c;super(_0xeea677),this[_0x322b3a(0x88)][_0x322b3a(0xd2)][_0x322b3a(0xbc)](_0x322b3a(0x7c),!0x0);}[_0xaca29c(0xbd)];[_0xaca29c(0x8d)]=null;[_0xaca29c(0xb8)]=!0x1;[_0xaca29c(0xc8)];static get[_0xaca29c(0x96)](){const _0x20c6bd=_0xaca29c;return _0x20c6bd(0x8c);}static get[_0xaca29c(0xdf)](){return!0x0;}static get[_0xaca29c(0x8a)](){return!0x0;}get[_0xaca29c(0x81)](){const _0x1a0539=_0xaca29c;if(!this[_0x1a0539(0xc8)]){const _0x3f087f=_0x458989(this[_0x1a0539(0x88)]),_0x5786be=_0x3f087f[_0x1a0539(0xcc)][_0x1a0539(0xa3)](_0x1a0539(0xa8))&&_0x3f087f[_0x1a0539(0xcc)][_0x1a0539(0x98)](_0x1a0539(0xa8))[_0x1a0539(0x81)];this[_0x1a0539(0xc8)]=_0x5786be||_0x9749f0();}return this[_0x1a0539(0xc8)];}async[_0xaca29c(0x74)](){const _0x1d305a=_0xaca29c,_0x6432d4=_0x458989(this[_0x1d305a(0x88)]),_0x4a0c5c=_0x6432d4[_0x1d305a(0x97)],_0x232ba6=_0x6432d4[_0x1d305a(0xba)][_0x1d305a(0xa6)](_0x4a0c5c[_0x1d305a(0xb5)][_0x1d305a(0x8b)](),{'convertAiChatSelectionMarker':!0x0}),_0x162602=new _0x5eeb0f(_0x6432d4[_0x1d305a(0xc9)][_0x1d305a(0xe1)][_0x1d305a(0xb5)]);this[_0x1d305a(0xd1)](_0x232ba6,_0x162602);let _0x4f9ed3=await this[_0x1d305a(0xb1)](_0x232ba6);const _0x252a36=this[_0x1d305a(0xd8)](),_0x42c9cb=[];for(const _0x401cb0 of _0x252a36){const _0x3c9c3e='<'+_0x401cb0[_0x1d305a(0xdd)]+_0x1d305a(0xe5)+_0x401cb0[_0x1d305a(0xdd)]+_0x1d305a(0x94),_0x5600a6=_0x4f9ed3[_0x1d305a(0xbe)](_0x3c9c3e);_0x4f9ed3=_0x4f9ed3[_0x1d305a(0xc7)](0x0,_0x5600a6)+_0x4f9ed3[_0x1d305a(0xc7)](_0x5600a6+_0x3c9c3e[_0x1d305a(0xac)]);const _0x59421f='<'+_0x401cb0[_0x1d305a(0xdd)]+_0x1d305a(0xd9)+_0x401cb0[_0x1d305a(0xdd)]+_0x1d305a(0x84),_0x51b1e1=_0x4f9ed3[_0x1d305a(0xbe)](_0x59421f);_0x4f9ed3=_0x4f9ed3[_0x1d305a(0xc7)](0x0,_0x51b1e1)+_0x4f9ed3[_0x1d305a(0xc7)](_0x51b1e1+_0x59421f[_0x1d305a(0xac)]),_0x42c9cb[_0x1d305a(0x93)]({'markerName':_0x401cb0[_0x1d305a(0xdd)],'start':_0x5600a6,'end':_0x51b1e1,'htmlFragment':_0x4f9ed3[_0x1d305a(0xc7)](_0x5600a6,_0x51b1e1)});}return{'content':_0x4f9ed3,'version':_0x6432d4[_0x1d305a(0x97)][_0x1d305a(0xb5)][_0x1d305a(0x78)],'sessionId':this[_0x1d305a(0x81)],'selections':_0x42c9cb};}async[_0xaca29c(0x7a)](){const _0xb178c5=_0xaca29c;this[_0xb178c5(0x88)]instanceof _0x4a4c93?this[_0xb178c5(0xd4)](this[_0xb178c5(0x88)]):this[_0xb178c5(0xb0)](this[_0xb178c5(0x88)][_0xb178c5(0xc3)],_0xb178c5(0xc2),(_0x2ac322,_0x448c3a)=>{const _0x2b11f9=_0xb178c5;_0x448c3a['on'](_0x2b11f9(0xc0),()=>{const _0x2c0009=_0x2b11f9;this[_0x2c0009(0xd4)](_0x448c3a);});});}[_0xaca29c(0xd3)](_0x15b0ff){const _0x48b409=_0xaca29c;this[_0x48b409(0xbd)]=_0x15b0ff;}async[_0xaca29c(0xb1)](_0x5c606b){const _0xed3f7f=_0xaca29c;let _0x40e8ae;const _0x538dc4=_0x458989(this[_0xed3f7f(0x88)]);if(this[_0xed3f7f(0xbd)]){const _0x480712=_0x538dc4[_0xed3f7f(0xba)][_0xed3f7f(0xa4)][_0xed3f7f(0x9c)][_0xed3f7f(0xe4)](_0x5c606b),_0x10f778=await this[_0xed3f7f(0xbd)](_0x480712);_0x40e8ae=_0x538dc4[_0xed3f7f(0xba)][_0xed3f7f(0xa4)][_0xed3f7f(0xad)][_0xed3f7f(0xb3)](_0x10f778);}else _0x40e8ae=_0x538dc4[_0xed3f7f(0xba)][_0xed3f7f(0xa4)][_0xed3f7f(0xe3)](_0x5c606b);return _0x40e8ae;}[_0xaca29c(0xd4)](_0x608050){const _0x103b3a=_0xaca29c;_0x608050[_0x103b3a(0xc1)][_0x103b3a(0xb7)](_0x103b3a(0x85))[_0x103b3a(0x95)]({'model':_0x103b3a(0xd0),'view':{'classes':[_0x103b3a(0x80),_0x103b3a(0x92)],'priority':0xc}}),_0x608050[_0x103b3a(0xc1)][_0x103b3a(0xb7)](_0x103b3a(0xd5))[_0x103b3a(0xaf)]({'model':_0x103b3a(0xd0),'view':(_0x83998e,{writer:_0x4218d3,options:_0x34ed0c})=>_0x34ed0c[_0x103b3a(0x9f)]?_0x4218d3[_0x103b3a(0xb4)](_0x83998e[_0x103b3a(0xc4)]+':'+(_0x83998e[_0x103b3a(0xa1)]?_0x103b3a(0xcf):_0x103b3a(0x76))):null});}[_0xaca29c(0x89)](_0x6c50bd,_0x4b6aec,_0x54e26a=!0x1,_0x584f79=!0x1){const _0xb81d4=_0xaca29c;if(this[_0xb81d4(0xb8)]&&!_0x584f79)return!0x1;const _0x548ff7=_0x458989(this[_0xb81d4(0x88)])[_0xb81d4(0x97)];return _0x548ff7[_0xb81d4(0x8f)](_0x2b3880=>{const _0x1cde19=_0xb81d4;this[_0x1cde19(0x8d)]&&this[_0x1cde19(0x79)](this[_0x1cde19(0x8d)]),this[_0x1cde19(0x8d)]=_0x4b6aec,this[_0x1cde19(0xb8)]=_0x54e26a;let _0x3f1bc3=0x0;for(let _0x5c16a6 of _0x6c50bd){const _0x3ff20d=_0x1cde19(0x9a)+_0x3f1bc3;if(_0x5c16a6[_0x1cde19(0xcf)][_0x1cde19(0xa7)]){const _0xbabf4=_0x5c16a6[_0x1cde19(0xcf)][_0x1cde19(0xb6)](({item:_0x4d32dd})=>!_0x548ff7[_0x1cde19(0xdc)][_0x1cde19(0xca)](_0x4d32dd),{'boundaries':_0x5c16a6});_0x5c16a6=_0x2b3880[_0x1cde19(0xde)](_0xbabf4,_0x5c16a6[_0x1cde19(0x76)]);}_0x2b3880[_0x1cde19(0xb2)](_0x3ff20d,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5c16a6}),_0x3f1bc3++;}}),window[_0xb81d4(0x99)]()?.[_0xb81d4(0xe7)](),!0x0;}[_0xaca29c(0x79)](_0x39c7ad){const _0x27aeeb=_0xaca29c;if(this[_0x27aeeb(0x8d)]!=_0x39c7ad)return!0x1;this[_0x27aeeb(0x8d)]=null,this[_0x27aeeb(0xb8)]=!0x1;const _0x5757eb=_0x458989(this[_0x27aeeb(0x88)]),_0x134c20=_0x5757eb[_0x27aeeb(0x97)][_0x27aeeb(0xc6)][_0x27aeeb(0x82)](_0x27aeeb(0xd0));return _0x5757eb[_0x27aeeb(0x97)][_0x27aeeb(0x8f)](_0x5782ff=>{const _0xc89bd1=_0x27aeeb;for(const _0x2524cf of _0x134c20)_0x5782ff[_0xc89bd1(0xd7)](_0x2524cf);}),!0x0;}async[_0xaca29c(0xbb)](_0x1ffa24){const _0x453300=_0xaca29c,_0x11e881=_0x458989(this[_0x453300(0x88)]),_0xf98091=_0x11e881[_0x453300(0xba)][_0x453300(0xa6)](_0x1ffa24),_0x37cf2e=new _0x5eeb0f(_0x11e881[_0x453300(0xc9)][_0x453300(0xe1)][_0x453300(0xb5)]);return this[_0x453300(0xd1)](_0xf98091,_0x37cf2e),this[_0x453300(0xb1)](_0xf98091);}[_0xaca29c(0xd1)](_0x1792a8,_0x3943f4){const _0x191cdb=_0xaca29c;let _0x1b887d=!0x1;const _0x45f8fd=new Set();for(const _0x1146ef of _0x1792a8[_0x191cdb(0xcb)]()){const _0x25c028=_0x1146ef['is'](_0x191cdb(0xd6))||_0x1146ef['is'](_0x191cdb(0x73));if(!_0x1146ef['is'](_0x191cdb(0xa0)))continue;(this[_0x191cdb(0xd1)](_0x1146ef,_0x3943f4)||_0x25c028)&&(_0x3943f4[_0x191cdb(0x9e)](_0x191cdb(0x7b),this[_0x191cdb(0xb9)](_0x45f8fd),_0x1146ef),_0x1b887d=!0x0);}return _0x1b887d;}[_0xaca29c(0xb9)](_0x443072){const _0x3f8226=_0xaca29c;let _0x2d9b78;do{_0x2d9b78='';for(let _0x125fec=0x0;_0x125fec<0x4;_0x125fec++)_0x2d9b78+=String[_0x3f8226(0xbf)](0x61+Math[_0x3f8226(0x87)](0x1a*Math[_0x3f8226(0xcd)]()));}while(_0x443072[_0x3f8226(0xa3)](_0x2d9b78));return _0x443072[_0x3f8226(0xc2)](_0x2d9b78),_0x2d9b78;}[_0xaca29c(0xaa)](){const _0x311f59=_0xaca29c,{model:_0x4998e0}=_0x458989(this[_0x311f59(0x88)]),_0x541d2e=_0x4998e0[_0x311f59(0xb5)][_0x311f59(0xa9)],_0x4f686a=_0x4998e0[_0x311f59(0x91)](_0x541d2e),_0x25b601=[],_0x7fff16=_0x4998e0[_0x311f59(0x7f)](_0x4f686a)[_0x311f59(0x83)]();for(const {item:_0x4246ae}of _0x7fff16)_0x4246ae['is'](_0x311f59(0xce))?_0x25b601[_0x311f59(0x93)](_0x4246ae[_0x311f59(0xba)]):_0x4246ae['is'](_0x311f59(0xa0))&&_0x25b601[_0x311f59(0xac)]>0x0&&'\x20'!==_0x25b601[_0x25b601[_0x311f59(0xac)]-0x1]&&_0x25b601[_0x311f59(0x93)]('\x20');return'\x22'+_0x25b601[_0x311f59(0xa2)]('')[_0x311f59(0xab)]()+'\x22';}[_0xaca29c(0xd8)](){const _0x4dd0ec=_0xaca29c,_0x2ff89c=_0x458989(this[_0x4dd0ec(0x88)])[_0x4dd0ec(0x97)];return Array[_0x4dd0ec(0xe2)](_0x2ff89c[_0x4dd0ec(0xc6)][_0x4dd0ec(0x82)](_0x4dd0ec(0xd0)))[_0x4dd0ec(0xe0)]((_0xd6a430,_0x1385f2)=>_0xd6a430[_0x4dd0ec(0xa5)]()[_0x4dd0ec(0x7d)](_0x1385f2[_0x4dd0ec(0xa5)]())?-0x1:_0xd6a430[_0x4dd0ec(0xa5)]()[_0x4dd0ec(0x9d)](_0x1385f2[_0x4dd0ec(0xa5)]())?0x1:0x0);}}
|