@ckeditor/ckeditor5-ai 47.4.0-alpha.4 → 47.4.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/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/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/errorsmap.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21a2fe=_0x4a8e;(function(_0x1f2b8c,_0x2f2a2a){const _0x1a7fdb=_0x4a8e,_0x1ddf71=_0x1f2b8c();while(!![]){try{const _0x33e7f5=parseInt(_0x1a7fdb(0x11c))/0x1+parseInt(_0x1a7fdb(0x122))/0x2+parseInt(_0x1a7fdb(0x131))/0x3*(parseInt(_0x1a7fdb(0x118))/0x4)+parseInt(_0x1a7fdb(0x113))/0x5+parseInt(_0x1a7fdb(0x120))/0x6*(-parseInt(_0x1a7fdb(0x130))/0x7)+-parseInt(_0x1a7fdb(0x109))/0x8+parseInt(_0x1a7fdb(0x124))/0x9*(-parseInt(_0x1a7fdb(0x117))/0xa);if(_0x33e7f5===_0x2f2a2a)break;else _0x1ddf71['push'](_0x1ddf71['shift']());}catch(_0x3ac8f9){_0x1ddf71['push'](_0x1ddf71['shift']());}}}(_0x8a3f,0x2602e));function _0x4a8e(_0x39a51b,_0x356026){const _0x8a3f62=_0x8a3f();return _0x4a8e=function(_0x4a8e31,_0x545133){_0x4a8e31=_0x4a8e31-0x104;let _0x2d7514=_0x8a3f62[_0x4a8e31];return _0x2d7514;},_0x4a8e(_0x39a51b,_0x356026);}function _0x8a3f(){const _0x4112f0=['removeItem','map','error','find','getFullYear','829360BKcuGl','fetchConversations','updateTitle','fire','4390YrRZHL','4oNZaFd','itemRemoved','filter','group','184903SboQsq','itemUpdated','getDate','getTime','250362LTGerM','addItem','463648nQFVPL','from','2925bmJHGn','getResult','getMonth','connector','getItems','splice','push','getItem','init','deleteConversation','updatePinned','execute','35FsszZB','74580QxufnA','updateItemTitle','itemsLoaded','getConversations','createdAt','loadItems','findIndex','803640CKqSpO','updateConversation','items','updateItemPinned','pinned'];_0x8a3f=function(){return _0x4112f0;};return _0x8a3f();}import{EmitterMixin as _0x12dfd6}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x1df811}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x12dfd6(){[_0x21a2fe(0x10b)]=[];[_0x21a2fe(0x127)];[_0x21a2fe(0x11b)];constructor({connector:_0x4319b6,group:_0x33850d}){const _0x558301=_0x21a2fe;super(),this[_0x558301(0x127)]=_0x4319b6,this[_0x558301(0x11b)]=_0x33850d;}async[_0x21a2fe(0x12c)](){const _0xa964a0=_0x21a2fe;try{const _0x204e44=this[_0xa964a0(0x127)][_0xa964a0(0x114)](this[_0xa964a0(0x11b)]),_0x3e2f01=await _0x204e44[_0xa964a0(0x105)]();this[_0xa964a0(0x107)](_0x3e2f01);}catch(_0x894c9b){this[_0xa964a0(0x116)](_0xa964a0(0x110),{'error':_0x894c9b,'operation':_0xa964a0(0x12c)});}}[_0x21a2fe(0x121)](_0x517a29){const _0x38ef49=_0x21a2fe;this[_0x38ef49(0x10b)][_0x38ef49(0x12a)](_0x517a29);}async[_0x21a2fe(0x10e)](_0x20edd7){const _0x487d18=_0x21a2fe,_0x15a06c=this[_0x487d18(0x10b)][_0x487d18(0x108)](_0xdc8b50=>_0xdc8b50['id']===_0x20edd7);if(-0x1===_0x15a06c)return!0x1;try{return await this[_0x487d18(0x127)][_0x487d18(0x12d)](_0x20edd7)[_0x487d18(0x12f)](),this[_0x487d18(0x10b)][_0x487d18(0x129)](_0x15a06c,0x1),this[_0x487d18(0x116)](_0x487d18(0x119),{'itemId':_0x20edd7}),!0x0;}catch(_0x116e27){return this[_0x487d18(0x116)](_0x487d18(0x110),{'error':_0x116e27,'operation':_0x487d18(0x10e),'itemId':_0x20edd7}),!0x1;}}[_0x21a2fe(0x12b)](_0x41273e){const _0x74d45c=_0x21a2fe;return this[_0x74d45c(0x10b)][_0x74d45c(0x111)](_0x1c1d24=>_0x1c1d24['id']===_0x41273e);}async[_0x21a2fe(0x132)](_0x364db3,_0x4f3e4e){const _0x54bb4b=_0x21a2fe,_0xdcf150=this[_0x54bb4b(0x12b)](_0x364db3);if(!_0xdcf150)return!0x1;try{return await this[_0x54bb4b(0x127)][_0x54bb4b(0x10a)](_0x364db3,{'title':_0x4f3e4e})[_0x54bb4b(0x125)](),_0xdcf150[_0x54bb4b(0x115)](_0x4f3e4e),this[_0x54bb4b(0x116)](_0x54bb4b(0x11d),{'itemId':_0x364db3,'updates':{'title':_0x4f3e4e}}),!0x0;}catch(_0xb4981e){return this[_0x54bb4b(0x116)](_0x54bb4b(0x110),{'error':_0xb4981e,'operation':_0x54bb4b(0x132),'itemId':_0x364db3}),!0x1;}}async[_0x21a2fe(0x10c)](_0x2c4dc9,_0x28874d){const _0x5aa029=_0x21a2fe,_0x2e593c=this[_0x5aa029(0x12b)](_0x2c4dc9);if(!_0x2e593c)return!0x1;try{return await this[_0x5aa029(0x127)][_0x5aa029(0x10a)](_0x2c4dc9,{'pinned':_0x28874d})[_0x5aa029(0x125)](),_0x2e593c[_0x5aa029(0x12e)](_0x28874d),this[_0x5aa029(0x116)](_0x5aa029(0x11d),{'itemId':_0x2c4dc9,'updates':{'pinned':_0x28874d}}),!0x0;}catch(_0x2ccd3f){return this[_0x5aa029(0x116)](_0x5aa029(0x110),{'error':_0x2ccd3f,'operation':_0x5aa029(0x10c),'itemId':_0x2c4dc9}),!0x1;}}[_0x21a2fe(0x107)](_0x7a145e){const _0x3a7036=_0x21a2fe;try{this[_0x3a7036(0x10b)]=[],_0x7a145e[_0x3a7036(0x10f)](_0x26d195=>{const _0x39d16d=_0x3a7036;this[_0x39d16d(0x121)](new _0x1df811(_0x26d195));}),this[_0x3a7036(0x116)](_0x3a7036(0x104),{'items':[...this[_0x3a7036(0x10b)]]});}catch(_0x1dfc3b){this[_0x3a7036(0x116)](_0x3a7036(0x110),{'error':_0x1dfc3b,'operation':_0x3a7036(0x107)});}}[_0x21a2fe(0x128)](_0x10dcc8={}){const _0x18734c=_0x21a2fe,_0x35be41=void 0x0!==_0x10dcc8[_0x18734c(0x10d)]&&_0x10dcc8[_0x18734c(0x10d)],_0x465a9d=_0x10dcc8[_0x18734c(0x123)]?new Date(_0x10dcc8[_0x18734c(0x123)][_0x18734c(0x112)](),_0x10dcc8[_0x18734c(0x123)][_0x18734c(0x126)](),_0x10dcc8[_0x18734c(0x123)][_0x18734c(0x11e)]()):null,_0x186115=_0x10dcc8['to']?new Date(_0x10dcc8['to'][_0x18734c(0x112)](),_0x10dcc8['to'][_0x18734c(0x126)](),_0x10dcc8['to'][_0x18734c(0x11e)]()):null;return this[_0x18734c(0x10b)][_0x18734c(0x11a)](_0x3f6510=>{const _0x4de159=_0x18734c;if(_0x3f6510[_0x4de159(0x10d)]!==_0x35be41)return!0x1;if(_0x186115){const _0x346bbf=new Date(_0x3f6510[_0x4de159(0x106)][_0x4de159(0x112)](),_0x3f6510[_0x4de159(0x106)][_0x4de159(0x126)](),_0x3f6510[_0x4de159(0x106)][_0x4de159(0x11e)]());return _0x465a9d?_0x465a9d[_0x4de159(0x11f)]()===_0x186115[_0x4de159(0x11f)]()?_0x346bbf[_0x4de159(0x11f)]()===_0x465a9d[_0x4de159(0x11f)]():_0x346bbf<_0x186115&&_0x346bbf>=_0x465a9d:_0x346bbf<_0x186115;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
function _0x51bc(){var _0x267a63=['987630TeLZep','144683qyWPtF','updatePinned','pinned','2066049yeOIHR','2arfBci','5neJngB','updateTitle','1962444thkfve','title','422366WLHzNh','createdAt','3828488nAEEET','updatedAt','3849852fRNOQZ','set'];_0x51bc=function(){return _0x267a63;};return _0x51bc();}function _0x2628(_0x3b83fb,_0x24909c){var _0x51bce8=_0x51bc();return _0x2628=function(_0x2628f1,_0x23b62e){_0x2628f1=_0x2628f1-0x13a;var _0x2d8b29=_0x51bce8[_0x2628f1];return _0x2d8b29;},_0x2628(_0x3b83fb,_0x24909c);}var _0x568f88=_0x2628;(function(_0x297507,_0x2401b5){var _0x4dd2d9=_0x2628,_0x443ef7=_0x297507();while(!![]){try{var _0x3171e6=-parseInt(_0x4dd2d9(0x13e))/0x1*(-parseInt(_0x4dd2d9(0x143))/0x2)+-parseInt(_0x4dd2d9(0x149))/0x3+parseInt(_0x4dd2d9(0x141))/0x4+-parseInt(_0x4dd2d9(0x13f))/0x5*(-parseInt(_0x4dd2d9(0x147))/0x6)+parseInt(_0x4dd2d9(0x13a))/0x7+-parseInt(_0x4dd2d9(0x145))/0x8+-parseInt(_0x4dd2d9(0x13d))/0x9;if(_0x3171e6===_0x2401b5)break;else _0x443ef7['push'](_0x443ef7['shift']());}catch(_0x391216){_0x443ef7['push'](_0x443ef7['shift']());}}}(_0x51bc,0x83564));import{ObservableMixin as _0xf2030e}from'ckeditor5/src/utils.js';import{escape as _0x41e3b8}from'es-toolkit/compat';export class AIChatHistoryItem extends _0xf2030e(){['id'];[_0x568f88(0x144)];constructor({id:_0x39b2a3,title:_0x1647fb,createdAt:_0x159f22,updatedAt:_0x164898,pinned:_0x491509}){var _0xf28c72=_0x568f88;super(),this['id']=_0x39b2a3,this[_0xf28c72(0x144)]=new Date(_0x159f22),this[_0xf28c72(0x148)](_0xf28c72(0x142),_0x1647fb),this[_0xf28c72(0x148)](_0xf28c72(0x146),_0x164898?new Date(_0x164898):null),this[_0xf28c72(0x148)](_0xf28c72(0x13c),_0x491509||!0x1);}[_0x568f88(0x140)](_0x9e6139){var _0xa725bc=_0x568f88;this[_0xa725bc(0x148)](_0xa725bc(0x142),_0x41e3b8(_0x9e6139)),this[_0xa725bc(0x146)]=new Date();}[_0x568f88(0x13b)](_0x89a7ae){var _0x303862=_0x568f88;this[_0x303862(0x148)](_0x303862(0x13c),_0x89a7ae),this[_0x303862(0x146)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x4eb556=_0xb167;(function(_0x2f3f5c,_0xe3efa1){const _0x3099c7=_0xb167,_0x4c8163=_0x2f3f5c();while(!![]){try{const _0xca9728=parseInt(_0x3099c7(0xef))/0x1+-parseInt(_0x3099c7(0xed))/0x2*(parseInt(_0x3099c7(0x12a))/0x3)+parseInt(_0x3099c7(0x124))/0x4*(parseInt(_0x3099c7(0x113))/0x5)+parseInt(_0x3099c7(0xdb))/0x6*(-parseInt(_0x3099c7(0x12d))/0x7)+-parseInt(_0x3099c7(0x13a))/0x8*(parseInt(_0x3099c7(0x129))/0x9)+parseInt(_0x3099c7(0x109))/0xa+parseInt(_0x3099c7(0x115))/0xb*(parseInt(_0x3099c7(0x112))/0xc);if(_0xca9728===_0xe3efa1)break;else _0x4c8163['push'](_0x4c8163['shift']());}catch(_0x3f800a){_0x4c8163['push'](_0x4c8163['shift']());}}}(_0x32e7,0xd9842));function _0x32e7(){const _0x239aea=['61500KtCftV','4816555voLgVd','loadingState','869dBWZdJ','_createCancelEditButtonView','change:isEdit','isMatching','fire','AI_CHAT_HISTORY_LOADING_RENAMING','AI_CHAT_HISTORY_EDIT_NAME','editConversationTitle','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item-row','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item-actions','showConfirm','match','4hYgzZV','key','then','ck-ai-chat-history__item--active','element','1440VdKjkW','1563xjmZQX','AI_CHAT_HISTORY_LOADING_UNPINNING','highlightText','4571wDXJvu','buttonView','_createAcceptEditButtonView','updateLoadingState','_commitEditInputValue','_titleView','AI_CHAT_HISTORY_LOADING_REMOVING','selectConversation','text','setTemplate','addMany','set','ck-ai-chat-history__item','66240mtpide','span','listitem','pinned','withText','4926flsKnd','ck-ai-chat-history__item-date','string','ck-ai-chat-history__item-check','items','isOn','extendTemplate','createCollection','label','children','ck-hidden','clear','AI_CHAT_HISTORY_LOADING_PINNING','panelView','ck-ai-chat-history__item-title','panelPosition','_createSpinnerView','click','3646ZVAyKo','tiny','778126WfQZdz','value','ck-ai-chat-history__item-check-container','bindTemplate','ck-ai-chat-history__item--edit','ck-ai-loader__text','isVisible','updateTitle','ck-confirm-view-submit','isEdit','div','LOADING_LABELS','_createPinButtonView','ck-ai-chat-history__item-content','_createMenuDropdownView','bind','focus','ck-ai-chat-history__item-main-content','ck-ai-loader','setConversationPinned','Enter','removeConversation','AI_CHAT_HISTORY_REMOVE_CONFIRM','mainContent','add','actions','15553300oOwMea','_createEditInputView','edit:cancel','AI_CHAT_HISTORY_CANCEL','execute','_createCheckView','locale','ck-confirm-view-cancel','AI_CHAT_HISTORY_ACCEPT'];_0x32e7=function(){return _0x239aea;};return _0x32e7();}import{ListItemView as _0x330ce7,HighlightedTextView as _0x90e39f,ButtonView as _0x33161d,ListView as _0x4379d6,IconView as _0x12c042,createDropdown as _0x13319f,InputTextView as _0x5d20cc}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x41040e,IconPin as _0x2cedaa,IconCheck as _0x37f2b6,IconCancel as _0x56b2df}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x4756ad,ConfirmMixin as _0x486c81}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x1b9918}from'es-toolkit/compat';import{AISpinnerView as _0x575316}from'../../aicore/ui/aispinner.js';function _0xb167(_0x122ae2,_0x253874){const _0x32e727=_0x32e7();return _0xb167=function(_0xb1677b,_0x470a8a){_0xb1677b=_0xb1677b-0xd8;let _0xe0f981=_0x32e727[_0xb1677b];return _0xe0f981;},_0xb167(_0x122ae2,_0x253874);}import{getTranslation as _0x836b43}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x486c81(_0x330ce7){['id'];static [_0x4eb556(0xfa)]={'remove':_0x4eb556(0x133),'rename':_0x4eb556(0x11a),'pin':_0x4eb556(0xe7),'unpin':_0x4eb556(0x12b)};[_0x4eb556(0x108)];[_0x4eb556(0x106)];[_0x4eb556(0x132)];constructor(_0x276ede,_0x47ff38){const _0x5df28d=_0x4eb556;super(_0x276ede);const _0x48140b=this[_0x5df28d(0xf2)];this[_0x5df28d(0x138)](_0x5df28d(0xf8),!0x1),this[_0x5df28d(0x138)](_0x5df28d(0xf5),!0x0),this[_0x5df28d(0x138)](_0x5df28d(0xd9),!!_0x47ff38[_0x5df28d(0xd9)]),this[_0x5df28d(0x138)](_0x5df28d(0x114),null),this['id']=_0x47ff38['id'];const {title:_0xeb3a45,createdAt:_0x3b0da8,active:_0x328fb7=!0x1}=_0x47ff38;this[_0x5df28d(0x132)]=new _0x90e39f(),this[_0x5df28d(0x132)][_0x5df28d(0x135)]=_0xeb3a45,this[_0x5df28d(0x132)][_0x5df28d(0xe1)]({'attributes':{'class':[_0x5df28d(0xe9)]}});const _0x4eeeb5=this[_0x5df28d(0x10e)](),_0xd6d5c3=this[_0x5df28d(0xfb)](_0x276ede),_0x2b6145=this[_0x5df28d(0xfd)](),_0x346424=this[_0x5df28d(0x10a)](_0x276ede,_0xeb3a45),_0x19583a=this[_0x5df28d(0x12f)](_0x276ede,_0x346424),_0x2362df=this[_0x5df28d(0x116)](_0x276ede,_0x346424);this[_0x5df28d(0x108)]=this[_0x5df28d(0xe2)](),this[_0x5df28d(0x106)]=this[_0x5df28d(0xe2)](),this[_0x5df28d(0x106)][_0x5df28d(0x107)](this[_0x5df28d(0x132)]),this[_0x5df28d(0x108)][_0x5df28d(0x107)](_0xd6d5c3),this[_0x5df28d(0x108)][_0x5df28d(0x107)](_0x2b6145),this['on'](_0x5df28d(0x117),(_0x4543e6,_0x2be2e6,_0x31b14e)=>{const _0x226115=_0x5df28d;this[_0x226115(0x108)][_0x226115(0xe6)](),this[_0x226115(0x106)][_0x226115(0xe6)](),_0x31b14e?(this[_0x226115(0x108)][_0x226115(0x107)](_0x19583a),this[_0x226115(0x108)][_0x226115(0x107)](_0x2362df),this[_0x226115(0x106)][_0x226115(0x107)](_0x346424),_0x346424[_0x226115(0x128)][_0x226115(0xff)]()):(this[_0x226115(0x108)][_0x226115(0x107)](_0xd6d5c3),this[_0x226115(0x108)][_0x226115(0x107)](_0x2b6145),this[_0x226115(0x106)][_0x226115(0x107)](this[_0x226115(0x132)]));}),this[_0x5df28d(0x136)]({'tag':'li','attributes':{'class':[_0x5df28d(0x139),_0x328fb7?_0x5df28d(0x127):'',_0x48140b['if'](_0x5df28d(0xf5),_0x5df28d(0xe5),_0x234243=>!_0x234243),_0x48140b['if'](_0x5df28d(0xf8),_0x5df28d(0xf3))],'role':_0x5df28d(0xd8)},'children':[{'tag':_0x5df28d(0x13b),'attributes':{'class':[_0x5df28d(0xf1)]},'children':[{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0xde),_0x48140b['if'](_0x5df28d(0x114),_0x5df28d(0xe5),_0x51eccb=>!!_0x51eccb)]},'children':_0x328fb7?[_0x4eeeb5]:[]},{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0x101),_0x48140b['if'](_0x5df28d(0x114),_0x5df28d(0xe5),_0x1343ed=>!_0x1343ed)]},'children':[this[_0x5df28d(0xeb)]()]}]},{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0x11f)]},'children':[{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0xfc)]},'on':{'click':this[_0x5df28d(0xf2)]['to'](_0x5df28d(0xec))},'children':[{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0x100)]},'children':[{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0xe9),_0x48140b['if'](_0x5df28d(0x114),_0x5df28d(0xe5),_0x1c4465=>!!_0x1c4465)]},'children':this[_0x5df28d(0x106)]},{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0xf4),_0x48140b['if'](_0x5df28d(0x114),_0x5df28d(0xe5),_0x4e50ce=>!_0x4e50ce)]},'children':[{'text':_0x48140b['to'](_0x5df28d(0x114),_0x45b991=>_0x45b991?_0x836b43(this[_0x5df28d(0x10f)],AIChatHistoryListItemView[_0x5df28d(0xfa)][_0x45b991]):'')}]}]},{'tag':_0x5df28d(0x13b),'attributes':{'class':[_0x5df28d(0xdc)]},'children':[_0x3b0da8]}]},{'tag':_0x5df28d(0xf9),'attributes':{'class':[_0x5df28d(0x121)]},'children':this[_0x5df28d(0x108)]}]}]}),this['on'](_0x5df28d(0xec),()=>{const _0x7f4076=_0x5df28d;this[_0x7f4076(0xf8)]||this[_0x7f4076(0x119)](_0x7f4076(0x134),{'id':this['id']});});}[_0x4eb556(0xf6)](_0x3ca308){const _0x3f31d6=_0x4eb556;this[_0x3f31d6(0x132)][_0x3f31d6(0x135)]=_0x1b9918(_0x3ca308);}[_0x4eb556(0x130)](_0x4ee268,_0x392527){const _0x15cc32=_0x4eb556;this[_0x15cc32(0x138)](_0x15cc32(0x114),_0x392527?_0x4ee268:null);}[_0x4eb556(0x10e)](){const _0x4e9943=_0x4eb556,_0x1cf329=new _0x12c042();return _0x1cf329[_0x4e9943(0x138)]({'content':_0x37f2b6}),_0x1cf329;}[_0x4eb556(0xfb)](_0x5efe63){const _0x415b7c=_0x4eb556,_0xafd719=new _0x33161d(_0x5efe63);return _0xafd719[_0x415b7c(0x138)]({'label':_0x836b43(_0x5efe63,_0x415b7c(0x11e)),'icon':_0x2cedaa,'withText':!0x1,'tooltip':!0x0}),_0xafd719[_0x415b7c(0xfe)](_0x415b7c(0xe0))['to'](this,_0x415b7c(0xd9)),_0xafd719['on'](_0x415b7c(0x10d),()=>{const _0x2304bb=_0x415b7c,_0x180ff6=!this[_0x2304bb(0xd9)];this[_0x2304bb(0x119)](_0x2304bb(0x102),{'id':this['id'],'pinned':_0x180ff6});}),_0xafd719;}[_0x4eb556(0xfd)](){const _0x169e52=_0x4eb556,_0x1af86b=_0x13319f(this[_0x169e52(0x10f)],_0x4756ad),_0x2beacc=_0x1af86b[_0x169e52(0xe8)][_0x169e52(0xe4)];_0x1af86b[_0x169e52(0x12e)][_0x169e52(0x138)]({'label':_0x836b43(this[_0x169e52(0x10f)],_0x169e52(0x120)),'icon':_0x41040e}),_0x1af86b[_0x169e52(0xea)]='sw';const _0x6b2fee=new _0x33161d(this[_0x169e52(0x10f)]);_0x6b2fee[_0x169e52(0xe3)]=_0x836b43(this[_0x169e52(0x10f)],_0x169e52(0x11b)),_0x6b2fee[_0x169e52(0xda)]=!0x0,_0x6b2fee['on'](_0x169e52(0x10d),()=>{const _0x2c3efd=_0x169e52;this[_0x2c3efd(0xf8)]=!0x0;});const _0x1ddc53=new _0x33161d(this[_0x169e52(0x10f)]);_0x1ddc53[_0x169e52(0xe3)]=_0x836b43(this[_0x169e52(0x10f)],_0x169e52(0x11d)),_0x1ddc53[_0x169e52(0xda)]=!0x0,_0x1ddc53['on'](_0x169e52(0x10d),()=>{const _0x43453f=_0x169e52;this[_0x43453f(0x122)](_0x836b43(this[_0x43453f(0x10f)],_0x43453f(0x105)),this[_0x43453f(0x128)])[_0x43453f(0x126)](()=>{const _0x326a0d=_0x43453f;this[_0x326a0d(0x119)](_0x326a0d(0x104),{'id':this['id']});});});const _0x478849=new _0x4379d6(this[_0x169e52(0x10f)]),_0x5d846e=new _0x330ce7(this[_0x169e52(0x10f)]);_0x5d846e[_0x169e52(0xe4)][_0x169e52(0x107)](_0x6b2fee);const _0x1cb4ad=new _0x330ce7(this[_0x169e52(0x10f)]);return _0x1cb4ad[_0x169e52(0xe4)][_0x169e52(0x107)](_0x1ddc53),_0x478849[_0x169e52(0xdf)][_0x169e52(0x137)]([_0x5d846e,_0x1cb4ad]),_0x2beacc[_0x169e52(0x107)](_0x478849),_0x1af86b;}[_0x4eb556(0x10a)](_0x569c58,_0x5e3074){const _0x1a6178=_0x4eb556,_0xb5998c=new _0x5d20cc(_0x569c58),_0x12f1db=_0xb5998c[_0x1a6178(0xf2)];return _0xb5998c[_0x1a6178(0xf0)]=_0x5e3074,_0xb5998c[_0x1a6178(0xe1)]({'on':{'keydown':_0x12f1db['to'](_0x2e9e2f=>{const _0x4d31e6=_0x1a6178;_0x4d31e6(0x103)==_0x2e9e2f[_0x4d31e6(0x125)]&&this[_0x4d31e6(0x131)](_0xb5998c);})}}),_0xb5998c;}[_0x4eb556(0x12f)](_0x1a0029,_0xd8109){const _0x4b2462=_0x4eb556,_0x4019a7=new _0x33161d(_0x1a0029);return _0x4019a7[_0x4b2462(0x138)]({'icon':_0x37f2b6,'withText':!0x1,'tooltip':_0x836b43(_0x1a0029,_0x4b2462(0x111))}),_0x4019a7[_0x4b2462(0xe1)]({'attributes':{'class':[_0x4b2462(0xf7)]}}),_0x4019a7['on'](_0x4b2462(0x10d),()=>{const _0x1a1a01=_0x4b2462;this[_0x1a1a01(0x131)](_0xd8109);}),_0x4019a7;}[_0x4eb556(0x131)](_0x48cc9f){const _0x492733=_0x4eb556,_0xeab936=_0x48cc9f[_0x492733(0x128)][_0x492733(0xf0)]||'';this[_0x492733(0x132)][_0x492733(0x135)]=_0xeab936,this[_0x492733(0xf8)]=!0x1,this[_0x492733(0x119)](_0x492733(0x11c),{'id':this['id'],'title':_0xeab936});}[_0x4eb556(0x116)](_0x1b9e4f,_0x28a492){const _0x1a8b0e=_0x4eb556,_0x2ad58a=new _0x33161d(_0x1b9e4f);return _0x2ad58a[_0x1a8b0e(0x138)]({'icon':_0x56b2df,'withText':!0x1,'tooltip':_0x836b43(_0x1b9e4f,_0x1a8b0e(0x10c))}),_0x2ad58a[_0x1a8b0e(0xe1)]({'attributes':{'class':[_0x1a8b0e(0x110)]}}),_0x2ad58a['on'](_0x1a8b0e(0x10d),()=>{const _0x4eecd4=_0x1a8b0e;this[_0x4eecd4(0xf8)]=!0x1,_0x28a492[_0x4eecd4(0xf0)]=this[_0x4eecd4(0x132)][_0x4eecd4(0x135)]||'',this[_0x4eecd4(0x119)](_0x4eecd4(0x10b));}),_0x2ad58a;}[_0x4eb556(0xeb)](){const _0x512b61=_0x4eb556,_0x46a9e2=new _0x575316(_0x512b61(0xee));return _0x46a9e2[_0x512b61(0xf5)]=!0x0,_0x46a9e2;}[_0x4eb556(0x118)](_0xeb3080){const _0x1778b1=_0x4eb556;return this[_0x1778b1(0x132)]&&_0x1778b1(0xdd)==typeof this[_0x1778b1(0x132)][_0x1778b1(0x135)]&&this[_0x1778b1(0x132)][_0x1778b1(0x135)][_0x1778b1(0x123)](_0xeb3080)?{'title':!0x0}:null;}[_0x4eb556(0x12c)](_0x4706c7){const _0x4068ce=_0x4eb556;this[_0x4068ce(0x132)][_0x4068ce(0x12c)](_0x4706c7);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ef5fa=_0x140b;function _0x140b(_0x3f26a9,_0x3004ca){const _0x1f9040=_0x1f90();return _0x140b=function(_0x140bef,_0x52e0c1){_0x140bef=_0x140bef-0xca;let _0x209e08=_0x1f9040[_0x140bef];return _0x209e08;},_0x140b(_0x3f26a9,_0x3004ca);}(function(_0x2e608e,_0x7ffcb){const _0x44b7dc=_0x140b,_0x2ed209=_0x2e608e();while(!![]){try{const _0x10a341=parseInt(_0x44b7dc(0xdd))/0x1*(parseInt(_0x44b7dc(0xcf))/0x2)+parseInt(_0x44b7dc(0xdc))/0x3+-parseInt(_0x44b7dc(0xd0))/0x4+parseInt(_0x44b7dc(0xdb))/0x5+parseInt(_0x44b7dc(0xe1))/0x6+-parseInt(_0x44b7dc(0xe6))/0x7+parseInt(_0x44b7dc(0xe8))/0x8*(parseInt(_0x44b7dc(0xce))/0x9);if(_0x10a341===_0x7ffcb)break;else _0x2ed209['push'](_0x2ed209['shift']());}catch(_0x2f730f){_0x2ed209['push'](_0x2ed209['shift']());}}}(_0x1f90,0x7677c));import{ListItemView as _0x326373,View as _0x225755,ListView as _0x19a7db}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x326373{[_0x3ef5fa(0xe5)];[_0x3ef5fa(0xde)];[_0x3ef5fa(0xd9)];constructor(_0x2869b9,{title:_0x2164d1,items:_0x3bc826}){const _0x17f51d=_0x3ef5fa;super(_0x2869b9);const _0x2ca139=this[_0x17f51d(0xe2)];this[_0x17f51d(0xd4)](_0x17f51d(0xcd),!0x0),this[_0x17f51d(0xe5)]=_0x2164d1,this[_0x17f51d(0xde)]=_0x3bc826;const _0x49d1ec=new _0x225755(_0x2869b9);_0x49d1ec[_0x17f51d(0xe3)]({'tag':_0x17f51d(0xd5),'attributes':{'class':[_0x17f51d(0xe0)]},'children':[this[_0x17f51d(0xe5)]]}),this[_0x17f51d(0xd9)]=new _0x19a7db(_0x2869b9),this[_0x17f51d(0xd9)][_0x17f51d(0xd8)][_0x17f51d(0xdf)](this[_0x17f51d(0xde)]),this[_0x17f51d(0xe3)]({'tag':'li','attributes':{'class':[_0x17f51d(0xda),_0x2ca139['if'](_0x17f51d(0xcd),_0x17f51d(0xcb),_0x25c9af=>!_0x25c9af)]},'children':[_0x49d1ec,this[_0x17f51d(0xd9)]]});}[_0x3ef5fa(0xd6)](_0x49ac4c){const _0x4a334f=_0x3ef5fa,_0x1ef9a4=this[_0x4a334f(0xde)][_0x4a334f(0xe4)];let _0x39f00c=0x0;for(const _0xae2441 of this[_0x4a334f(0xde)]){if(_0x49ac4c){const _0x2a1bac=_0xae2441[_0x4a334f(0xcc)](_0x49ac4c);_0xae2441[_0x4a334f(0xcd)]=!!_0x2a1bac,_0xae2441[_0x4a334f(0xe7)](_0x49ac4c);}else _0xae2441[_0x4a334f(0xcd)]=!0x0,_0xae2441[_0x4a334f(0xe7)](null);_0xae2441[_0x4a334f(0xcd)]&&_0x39f00c++;}return this[_0x4a334f(0xcd)]=_0x39f00c>0x0,{'resultsCount':_0x39f00c,'totalItemsCount':_0x1ef9a4};}[_0x3ef5fa(0xd2)](_0x41abfa){const _0x38cdf0=_0x3ef5fa;return this[_0x38cdf0(0xde)][_0x38cdf0(0xd7)](_0x305ea9=>_0x305ea9['id']===_0x41abfa);}[_0x3ef5fa(0xca)](_0x1b3f2a){const _0x45362d=_0x3ef5fa,_0x25eb2a=this[_0x45362d(0xde)][_0x45362d(0xd3)](_0x1b3f2a);-0x1!==_0x25eb2a&&(this[_0x45362d(0xde)][_0x45362d(0xe9)](_0x25eb2a,0x1),this[_0x45362d(0xd9)][_0x45362d(0xd8)][_0x45362d(0xd1)](_0x1b3f2a));}}function _0x1f90(){const _0x444ff1=['38769vTxynf','2446ktEurg','itemsViews','addMany','ck-ai-chat-history__section-title','689406uwFwqc','bindTemplate','setTemplate','length','title','100310muGXJw','highlightText','518816qyQrWq','splice','removeItem','ck-hidden','isMatching','isVisible','27VDqWte','146MgFiCV','1412664pnuLOU','remove','getItem','indexOf','set','div','filter','find','items','_itemsListView','ck-ai-chat-history__section','1759010OAeQVp'];_0x1f90=function(){return _0x444ff1;};return _0x1f90();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x33e3d3=_0x326e;function _0x3ce3(){const _0x1fce58=['14814AKwgDw','1183PdDqKQ','items','addMany','35FNfRZL','850423ugUpHC','8554744nDXgKh','sections','152162NysINM','ck-ai-chat-history__sections','36xCINLM','18342027YCVthu','20694YiSZGF','6070qxdsLm','filter','extendTemplate','350420jVmAMt'];_0x3ce3=function(){return _0x1fce58;};return _0x3ce3();}function _0x326e(_0xede22e,_0x1003aa){const _0x3ce3aa=_0x3ce3();return _0x326e=function(_0x326e65,_0x191f5e){_0x326e65=_0x326e65-0x1df;let _0x3ab560=_0x3ce3aa[_0x326e65];return _0x3ab560;},_0x326e(_0xede22e,_0x1003aa);}(function(_0x51713b,_0x285d67){const _0x286dc3=_0x326e,_0x15e6be=_0x51713b();while(!![]){try{const _0x418847=-parseInt(_0x286dc3(0x1e9))/0x1+-parseInt(_0x286dc3(0x1ec))/0x2*(-parseInt(_0x286dc3(0x1ee))/0x3)+parseInt(_0x286dc3(0x1e3))/0x4*(-parseInt(_0x286dc3(0x1e8))/0x5)+parseInt(_0x286dc3(0x1df))/0x6*(-parseInt(_0x286dc3(0x1e5))/0x7)+parseInt(_0x286dc3(0x1ea))/0x8+-parseInt(_0x286dc3(0x1e4))/0x9*(parseInt(_0x286dc3(0x1e0))/0xa)+parseInt(_0x286dc3(0x1ef))/0xb;if(_0x418847===_0x285d67)break;else _0x15e6be['push'](_0x15e6be['shift']());}catch(_0x124a6f){_0x15e6be['push'](_0x15e6be['shift']());}}}(_0x3ce3,0x937cf));import{ListView as _0x3993db}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x3993db{[_0x33e3d3(0x1eb)];constructor(_0x4b91b8,_0x39a24d){const _0x3e12f4=_0x33e3d3;super(_0x4b91b8),this[_0x3e12f4(0x1eb)]=_0x39a24d,this[_0x3e12f4(0x1e6)][_0x3e12f4(0x1e7)](this[_0x3e12f4(0x1eb)]),this[_0x3e12f4(0x1e2)]({'attributes':{'class':[_0x3e12f4(0x1ed)]}});}[_0x33e3d3(0x1e1)](_0x525a72){const _0x1c4755=_0x33e3d3;let _0x5b4675=0x0,_0x3b2820=0x0;for(const _0x1766e1 of this[_0x1c4755(0x1eb)]){const {resultsCount:_0xcdc907,totalItemsCount:_0x5a2a0e}=_0x1766e1[_0x1c4755(0x1e1)](_0x525a72);_0x5b4675+=_0xcdc907,_0x3b2820+=_0x5a2a0e;}return{'resultsCount':_0x5b4675,'totalItemsCount':_0x3b2820};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x26d3e2=_0x132e;(function(_0x2b1275,_0x1d2ecf){const _0x282ef6=_0x132e,_0x5bb9c7=_0x2b1275();while(!![]){try{const _0x4242ec=parseInt(_0x282ef6(0x1e0))/0x1*(-parseInt(_0x282ef6(0x1c6))/0x2)+parseInt(_0x282ef6(0x1be))/0x3+-parseInt(_0x282ef6(0x1e5))/0x4+parseInt(_0x282ef6(0x1df))/0x5*(-parseInt(_0x282ef6(0x1ac))/0x6)+-parseInt(_0x282ef6(0x1fb))/0x7*(parseInt(_0x282ef6(0x1e1))/0x8)+parseInt(_0x282ef6(0x1c4))/0x9*(parseInt(_0x282ef6(0x1f1))/0xa)+parseInt(_0x282ef6(0x1d1))/0xb;if(_0x4242ec===_0x1d2ecf)break;else _0x5bb9c7['push'](_0x5bb9c7['shift']());}catch(_0x46bbfa){_0x5bb9c7['push'](_0x5bb9c7['shift']());}}}(_0x4591,0x3f678));import{View as _0x439b79,SearchTextView as _0x2cd949,FormHeaderView as _0x35bc8e,ButtonView as _0x4310ec}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3a209c,IconCancel as _0x4bc8f4,IconPlus as _0x263df9}from'ckeditor5/src/icons.js';function _0x4591(){const _0x120b5e=['isMainErrorViewVisible','ck-ai-chat-history__content','search','aiHistory','extendTemplate','removeItem','_createEmptyStateView','1596BQkgCP','isSearchViewVisible','set','isMaximized','ck-reset_all','fire','itemsViews','mainErrorView','_updateViewVisibility','ck-ai-chat-history__empty','execute','value','indexOf','addMany','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','2070LXRnuR','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','errorMessage','bind','ck-ai-header\x20ck-ai-header_history','isLoading','div','setTemplate','searchView','skeletonView','ck-ai-notification','openChat','_refreshSearch','_createSkeletonView','ck-ai-notification_error__dismiss-button','emptyView','children','1538076VbwzeH','change:hasItems','updateHistoryItemsWithCategories','splice','_createSearchView','remove','144rvorHs','queryView','2134Hdxkpr','ck-ai-chat__start-conversation','some','AI_CHAT_HISTORY_SEARCH_LABEL','getItem','sections','bindTemplate','_createErrorView','delegate','removeHistoryItem','clear','2956415ajrqrv','ck-ai-chat-history__empty-message','hasItems','ck-ai-notification_error','_createListItemViews','ck-rounded-corners','AI_CHAT_LABEL_NEW_CHAT','updateItemTitle','change:isLoading','AI_CHAT_HISTORY_EMPTY_MESSAGE','updateItemLoadingState','AI_CHAT_HISTORY_HEADING','push','render','3865RLhylY','9qqZlyw','1192okAyyk','element','ck-ai-chat-history','resizeButton','1171156NLVGHo','sectionsView','change:errorMessage','length','ltr','fieldView','add','updateLoadingState','isVisible','items','title','locale','50810UdaurK','isEmptyViewVisible','ck-hidden'];_0x4591=function(){return _0x120b5e;};return _0x4591();}import{AIChatHistorySectionListView as _0x4989f3}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xaa7f3d}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x17239a}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x393051}from'../aichathistoryui.js';import{AISkeletonView as _0x4f6855,SKELETON_DEFINITIONS as _0x2c0a35}from'../../aicore/ui/aiskeleton.js';function _0x132e(_0x62eb71,_0x3807f9){const _0x4591db=_0x4591();return _0x132e=function(_0x132ecd,_0x50f945){_0x132ecd=_0x132ecd-0x19e;let _0x10ca11=_0x4591db[_0x132ecd];return _0x10ca11;},_0x132e(_0x62eb71,_0x3807f9);}import{createResizeButton as _0xe026d2}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x26b0cf}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x439b79{[_0x26d3e2(0x1b5)];[_0x26d3e2(0x1a4)];[_0x26d3e2(0x1b6)];[_0x26d3e2(0x1bc)];[_0x26d3e2(0x1e6)];[_0x26d3e2(0x1e4)];constructor(_0x2633c1,_0x11d7d7){const _0x34776a=_0x26d3e2;super(_0x2633c1),this[_0x34776a(0x19f)](_0x34776a(0x1d3),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1b2),!0x0),this[_0x34776a(0x19f)](_0x34776a(0x1af),''),this[_0x34776a(0x19f)](_0x34776a(0x1a0),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x19e),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1f2),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1f4),!0x1);const _0x40b37e=new _0x35bc8e(_0x2633c1,{'label':_0x26b0cf(_0x2633c1,_0x34776a(0x1dc)),'icon':_0x3a209c,'class':_0x34776a(0x1b1)});_0x11d7d7&&(this[_0x34776a(0x1e4)]=_0xe026d2(_0x2633c1,this),_0x40b37e[_0x34776a(0x1bd)][_0x34776a(0x1eb)](this[_0x34776a(0x1e4)])),this[_0x34776a(0x1e6)]=new _0x4989f3(_0x2633c1,[]),this[_0x34776a(0x1e6)][_0x34776a(0x1ce)](..._0x393051)['to'](this),this[_0x34776a(0x1a4)]=this[_0x34776a(0x1cd)](),this[_0x34776a(0x1b6)]=this[_0x34776a(0x1ba)](),this[_0x34776a(0x1bc)]=this[_0x34776a(0x1fa)](),this[_0x34776a(0x1b5)]=this[_0x34776a(0x1c2)](),this[_0x34776a(0x1a4)][_0x34776a(0x1f8)]({'attributes':{'class':[this[_0x34776a(0x1cc)]['if'](_0x34776a(0x1f4),_0x34776a(0x1f3),_0x5828b8=>!_0x5828b8)]}}),this['on'](_0x34776a(0x1d9),()=>this[_0x34776a(0x1a5)]()),this['on'](_0x34776a(0x1bf),()=>this[_0x34776a(0x1a5)]()),this['on'](_0x34776a(0x1e7),()=>this[_0x34776a(0x1a5)]()),this[_0x34776a(0x1b4)]({'tag':_0x34776a(0x1b3),'attributes':{'class':['ck',_0x34776a(0x1a1),_0x34776a(0x1e3),_0x34776a(0x1d6)],'dir':_0x34776a(0x1e9)},'children':[_0x40b37e,{'tag':_0x34776a(0x1b3),'attributes':{'class':[_0x34776a(0x1f5)]},'children':[this[_0x34776a(0x1b6)],this[_0x34776a(0x1a4)],this[_0x34776a(0x1bc)],this[_0x34776a(0x1b5)]]}]});}[_0x26d3e2(0x1a5)](){const _0x1d54a7=_0x26d3e2;this[_0x1d54a7(0x19e)]=!this[_0x1d54a7(0x1b2)]&&this[_0x1d54a7(0x1d3)],this[_0x1d54a7(0x1f2)]=!this[_0x1d54a7(0x1b2)]&&!this[_0x1d54a7(0x1d3)]&&!this[_0x1d54a7(0x1af)],this[_0x1d54a7(0x1f4)]=!this[_0x1d54a7(0x19e)]&&!!this[_0x1d54a7(0x1af)];}[_0x26d3e2(0x1c2)](){const _0x3278b4=_0x26d3e2,_0x5ba7d5=new _0x2cd949(this[_0x3278b4(0x1f0)],{'filteredView':this[_0x3278b4(0x1e6)],'queryView':{'label':_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1c9))},'infoView':{'text':{'notFound':{'primary':_0x45110a=>_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1ae),_0x45110a),'secondary':_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1ab))}}}}),_0x416a30=this[_0x3278b4(0x1cd)]();return _0x416a30[_0x3278b4(0x1f8)]({'attributes':{'class':[this[_0x3278b4(0x1cc)]['if'](_0x3278b4(0x1af),_0x3278b4(0x1f3),_0x47bfde=>!_0x47bfde)]}}),_0x5ba7d5['on'](_0x3278b4(0x1de),()=>{const _0x4a8535=_0x3278b4;_0x5ba7d5[_0x4a8535(0x1bd)][_0x4a8535(0x1eb)](_0x416a30,0x1);}),_0x5ba7d5[_0x3278b4(0x1f8)]({'attributes':{'class':[this[_0x3278b4(0x1cc)]['if'](_0x3278b4(0x19e),_0x3278b4(0x1f3),_0x1e12d4=>!_0x1e12d4)]}}),_0x5ba7d5;}[_0x26d3e2(0x1ba)](){const _0x461056=_0x26d3e2,_0x11599b=new _0x4f6855(this[_0x461056(0x1f0)],_0x2c0a35[_0x461056(0x1f7)]);return _0x11599b[_0x461056(0x1f8)]({'attributes':{'class':[this[_0x461056(0x1cc)]['if'](_0x461056(0x1b2),_0x461056(0x1f3),_0x3d8fb0=>!_0x3d8fb0)]}}),_0x11599b;}[_0x26d3e2(0x1cd)](){const _0x1c9611=_0x26d3e2,_0xd64557=new _0x439b79(this[_0x1c9611(0x1f0)]),_0xbe79dd=new _0x4310ec(this[_0x1c9611(0x1f0)]);_0xbe79dd[_0x1c9611(0x19f)]({'withText':!0x1,'icon':_0x4bc8f4,'class':_0x1c9611(0x1bb)}),_0xbe79dd[_0x1c9611(0x1b0)](_0x1c9611(0x1ed))['to'](this,_0x1c9611(0x1d3),_0x5362ed=>!!_0x5362ed),_0xbe79dd['on'](_0x1c9611(0x1a7),()=>{const _0x2633ca=_0x1c9611;this[_0x2633ca(0x1af)]='';});const _0x45e432=this[_0x1c9611(0x1cc)];return _0xd64557[_0x1c9611(0x1b4)]({'tag':_0x1c9611(0x1b3),'attributes':{'class':['ck',_0x1c9611(0x1b7),_0x1c9611(0x1d4)]},'children':[{'tag':'p','children':[{'text':_0x45e432['to'](_0x1c9611(0x1af))}]},_0xbe79dd]}),_0xd64557;}[_0x26d3e2(0x1fa)](){const _0x20ead2=_0x26d3e2,_0x3bc61a=new _0x4310ec(this[_0x20ead2(0x1f0)]);_0x3bc61a[_0x20ead2(0x19f)]({'label':_0x26b0cf(this[_0x20ead2(0x1f0)],_0x20ead2(0x1d7)),'withText':!0x0,'icon':_0x263df9,'class':_0x20ead2(0x1c7)}),_0x3bc61a['on'](_0x20ead2(0x1a7),()=>{const _0x57ab82=_0x20ead2;this[_0x57ab82(0x1a2)](_0x57ab82(0x1b8));});const _0x3d9e96=new _0x439b79(this[_0x20ead2(0x1f0)]);return _0x3d9e96[_0x20ead2(0x1b4)]({'tag':_0x20ead2(0x1b3),'attributes':{'class':[_0x20ead2(0x1a6),this[_0x20ead2(0x1cc)]['if'](_0x20ead2(0x1f2),_0x20ead2(0x1f3),_0xd84573=>!_0xd84573)]},'children':[{'tag':'p','attributes':{'class':[_0x20ead2(0x1d2)]},'children':[_0x26b0cf(this[_0x20ead2(0x1f0)],_0x20ead2(0x1da))]},_0x3bc61a]}),_0x3d9e96;}[_0x26d3e2(0x1d5)](_0x452d85,_0x165bea){const _0x113265=_0x26d3e2,_0x3e85e9=[];for(const _0x504b10 of _0x452d85){const _0x265f7f=new _0x17239a(_0x165bea,_0x504b10);_0x265f7f[_0x113265(0x1ce)](..._0x393051)['to'](this),_0x3e85e9[_0x113265(0x1dd)](_0x265f7f);}return _0x3e85e9;}[_0x26d3e2(0x1c0)](_0x4abc3e){const _0x29883f=_0x26d3e2,_0x720b5b=this[_0x29883f(0x1f0)]||'en',_0x266bc1=[];for(const _0x1618a8 of _0x4abc3e){const _0xee1678=this[_0x29883f(0x1d5)](_0x1618a8[_0x29883f(0x1ee)],_0x720b5b);_0x266bc1[_0x29883f(0x1dd)](new _0xaa7f3d(_0x720b5b,{'title':_0x1618a8[_0x29883f(0x1ef)],'items':_0xee1678}));}this[_0x29883f(0x1e6)][_0x29883f(0x1cb)]=_0x266bc1,this[_0x29883f(0x1e6)][_0x29883f(0x1ee)][_0x29883f(0x1d0)](),this[_0x29883f(0x1e6)][_0x29883f(0x1ee)][_0x29883f(0x1aa)](_0x266bc1),this[_0x29883f(0x1d3)]=_0x4abc3e[_0x29883f(0x1c8)](_0x46d44f=>_0x46d44f[_0x29883f(0x1ee)][_0x29883f(0x1e8)]>0x0),this[_0x29883f(0x1b9)]();}[_0x26d3e2(0x1cf)](_0x49bf6d){const _0x418e71=_0x26d3e2;for(const _0x16e093 of this[_0x418e71(0x1e6)][_0x418e71(0x1cb)]){const _0x5c3fc4=_0x16e093[_0x418e71(0x1ca)](_0x49bf6d);if(_0x5c3fc4){if(_0x16e093[_0x418e71(0x1f9)](_0x5c3fc4),0x0===_0x16e093[_0x418e71(0x1a3)][_0x418e71(0x1e8)]){const _0x3f4f7b=this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1a9)](_0x16e093);-0x1!==_0x3f4f7b&&(this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1c1)](_0x3f4f7b,0x1),this[_0x418e71(0x1e6)][_0x418e71(0x1ee)][_0x418e71(0x1c3)](_0x16e093));}this[_0x418e71(0x1d3)]=this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1e8)]>0x0,this[_0x418e71(0x1b9)]();break;}}}[_0x26d3e2(0x1d8)](_0x4fce7b,_0x5a6f7e){const _0x530a69=_0x26d3e2;for(const _0x119426 of this[_0x530a69(0x1e6)][_0x530a69(0x1cb)]){const _0x292dbb=_0x119426[_0x530a69(0x1ca)](_0x4fce7b);if(_0x292dbb){_0x292dbb[_0x530a69(0x1ad)](_0x5a6f7e);break;}}}[_0x26d3e2(0x1db)](_0x320d6d,_0x2fb753,_0x2ba43a){const _0x4b5950=_0x26d3e2;for(const _0x4234a5 of this[_0x4b5950(0x1e6)][_0x4b5950(0x1cb)]){const _0x102128=_0x4234a5[_0x4b5950(0x1ca)](_0x320d6d);if(_0x102128){_0x102128[_0x4b5950(0x1ec)](_0x2fb753,_0x2ba43a);break;}}}[_0x26d3e2(0x1b9)](){const _0x2b0626=_0x26d3e2;if(this[_0x2b0626(0x1d3)]){const _0x5db5b1=this[_0x2b0626(0x1b5)][_0x2b0626(0x1c5)][_0x2b0626(0x1ea)]?.[_0x2b0626(0x1e2)]?.[_0x2b0626(0x1a8)]||'';this[_0x2b0626(0x1b5)][_0x2b0626(0x1f6)](_0x5db5b1);}}}
|
|
23
|
+
const _0x46a8d7=_0x510b;(function(_0x40899d,_0x5289a7){const _0x28fea0=_0x510b,_0xaeb2a=_0x40899d();while(!![]){try{const _0x55296b=parseInt(_0x28fea0(0x13d))/0x1*(parseInt(_0x28fea0(0x16c))/0x2)+parseInt(_0x28fea0(0x142))/0x3*(-parseInt(_0x28fea0(0x135))/0x4)+parseInt(_0x28fea0(0x183))/0x5*(-parseInt(_0x28fea0(0x173))/0x6)+parseInt(_0x28fea0(0x186))/0x7+parseInt(_0x28fea0(0x17f))/0x8*(-parseInt(_0x28fea0(0x15c))/0x9)+-parseInt(_0x28fea0(0x16b))/0xa*(parseInt(_0x28fea0(0x167))/0xb)+-parseInt(_0x28fea0(0x17a))/0xc*(-parseInt(_0x28fea0(0x175))/0xd);if(_0x55296b===_0x5289a7)break;else _0xaeb2a['push'](_0xaeb2a['shift']());}catch(_0x244bed){_0xaeb2a['push'](_0xaeb2a['shift']());}}}(_0x1e5e,0x9306b));import{View as _0x42c871,SearchTextView as _0x5cbc6b,FormHeaderView as _0x12f55b,ButtonView as _0x2e2985}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x16ee12,IconCancel as _0x5e8cb3,IconPlus as _0x5db4cf}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1819d8}from'./aichathistorysectionlistview.js';function _0x1e5e(){const _0x264847=['ck-ai-notification','div','title','updateHistoryItemsWithCategories','change:isLoading','push','17nFdChC','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-hidden','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','length','61365xEAbhD','openChat','change:errorMessage','items','updateTitle','errorMessage','ck-ai-chat-history__empty-message','isEmptyViewVisible','aiHistory','_createEmptyStateView','remove','children','_createListItemViews','ltr','set','fire','AI_CHAT_HISTORY_SEARCH_LABEL','ck-reset_all','execute','ck-ai-chat-history__empty','AI_CHAT_LABEL_NEW_CHAT','ck-ai-notification_error__dismiss-button','locale','isMainErrorViewVisible','_refreshSearch','add','18ZovAeN','value','sections','element','setTemplate','searchView','isSearchViewVisible','_createErrorView','fieldView','updateItemLoadingState','skeletonView','66473bhKTpG','updateLoadingState','ck-ai-chat__start-conversation','delegate','220EJygNb','110770EyezaV','hasItems','addMany','removeItem','_updateViewVisibility','ck-ai-chat-history__content','bindTemplate','811182GqQwNV','clear','13ALjOff','_createSearchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','emptyView','search','12973416MEtEJn','removeHistoryItem','updateItemTitle','_createSkeletonView','ck-rounded-corners','2679640ASnFYY','queryView','AI_CHAT_HISTORY_HEADING','indexOf','20MOhTmZ','sectionsView','isMaximized','1896545PBpjFz','getItem','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-history','change:hasItems','render','resizeButton','isVisible','isLoading','ck-ai-notification_error','extendTemplate','bind','itemsViews','splice','mainErrorView','68oPqWHN','some'];_0x1e5e=function(){return _0x264847;};return _0x1e5e();}import{AIChatHistoryListView as _0x4f2d60}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x53ad51}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x9c5e60}from'../aichathistoryui.js';import{AISkeletonView as _0x138d99,SKELETON_DEFINITIONS as _0x1d65e8}from'../../aicore/ui/aiskeleton.js';function _0x510b(_0x2dcecd,_0x30c876){const _0x1e5e23=_0x1e5e();return _0x510b=function(_0x510b91,_0x113a73){_0x510b91=_0x510b91-0x12d;let _0x3ecfca=_0x1e5e23[_0x510b91];return _0x3ecfca;},_0x510b(_0x2dcecd,_0x30c876);}import{createResizeButton as _0x2d18eb}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x31cd13}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x42c871{[_0x46a8d7(0x161)];[_0x46a8d7(0x134)];[_0x46a8d7(0x166)];[_0x46a8d7(0x178)];[_0x46a8d7(0x184)];[_0x46a8d7(0x18c)];constructor(_0x3df03d,_0x3a346b){const _0x302f6f=_0x46a8d7;super(_0x3df03d),this[_0x302f6f(0x150)](_0x302f6f(0x16d),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x12e),!0x0),this[_0x302f6f(0x150)](_0x302f6f(0x147),''),this[_0x302f6f(0x150)](_0x302f6f(0x185),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x162),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x149),!0x1),this[_0x302f6f(0x150)](_0x302f6f(0x159),!0x1);const _0x2f686b=new _0x12f55b(_0x3df03d,{'label':_0x31cd13(_0x3df03d,_0x302f6f(0x181)),'icon':_0x16ee12,'class':_0x302f6f(0x188)});_0x3a346b&&(this[_0x302f6f(0x18c)]=_0x2d18eb(_0x3df03d,this),_0x2f686b[_0x302f6f(0x14d)][_0x302f6f(0x15b)](this[_0x302f6f(0x18c)])),this[_0x302f6f(0x184)]=new _0x1819d8(_0x3df03d,[]),this[_0x302f6f(0x184)][_0x302f6f(0x16a)](..._0x9c5e60)['to'](this),this[_0x302f6f(0x134)]=this[_0x302f6f(0x163)](),this[_0x302f6f(0x166)]=this[_0x302f6f(0x17d)](),this[_0x302f6f(0x178)]=this[_0x302f6f(0x14b)](),this[_0x302f6f(0x161)]=this[_0x302f6f(0x176)](),this[_0x302f6f(0x134)][_0x302f6f(0x130)]({'attributes':{'class':[this[_0x302f6f(0x172)]['if'](_0x302f6f(0x159),_0x302f6f(0x13f),_0x58d88e=>!_0x58d88e)]}}),this['on'](_0x302f6f(0x13b),()=>this[_0x302f6f(0x170)]()),this['on'](_0x302f6f(0x18a),()=>this[_0x302f6f(0x170)]()),this['on'](_0x302f6f(0x144),()=>this[_0x302f6f(0x170)]()),this[_0x302f6f(0x160)]({'tag':_0x302f6f(0x138),'attributes':{'class':['ck',_0x302f6f(0x153),_0x302f6f(0x189),_0x302f6f(0x17e)],'dir':_0x302f6f(0x14f)},'children':[_0x2f686b,{'tag':_0x302f6f(0x138),'attributes':{'class':[_0x302f6f(0x171)]},'children':[this[_0x302f6f(0x166)],this[_0x302f6f(0x134)],this[_0x302f6f(0x178)],this[_0x302f6f(0x161)]]}]});}[_0x46a8d7(0x170)](){const _0x2237da=_0x46a8d7;this[_0x2237da(0x162)]=!this[_0x2237da(0x12e)]&&this[_0x2237da(0x16d)],this[_0x2237da(0x149)]=!this[_0x2237da(0x12e)]&&!this[_0x2237da(0x16d)]&&!this[_0x2237da(0x147)],this[_0x2237da(0x159)]=!this[_0x2237da(0x162)]&&!!this[_0x2237da(0x147)];}[_0x46a8d7(0x176)](){const _0x1f8936=_0x46a8d7,_0x22d35c=new _0x5cbc6b(this[_0x1f8936(0x158)],{'filteredView':this[_0x1f8936(0x184)],'queryView':{'label':_0x31cd13(this[_0x1f8936(0x158)],_0x1f8936(0x152))},'infoView':{'text':{'notFound':{'primary':_0x2991a6=>_0x31cd13(this[_0x1f8936(0x158)],_0x1f8936(0x140),_0x2991a6),'secondary':_0x31cd13(this[_0x1f8936(0x158)],_0x1f8936(0x177))}}}}),_0x58c7e4=this[_0x1f8936(0x163)]();return _0x58c7e4[_0x1f8936(0x130)]({'attributes':{'class':[this[_0x1f8936(0x172)]['if'](_0x1f8936(0x147),_0x1f8936(0x13f),_0x2286f6=>!_0x2286f6)]}}),_0x22d35c['on'](_0x1f8936(0x18b),()=>{const _0x56caf5=_0x1f8936;_0x22d35c[_0x56caf5(0x14d)][_0x56caf5(0x15b)](_0x58c7e4,0x1);}),_0x22d35c[_0x1f8936(0x130)]({'attributes':{'class':[this[_0x1f8936(0x172)]['if'](_0x1f8936(0x162),_0x1f8936(0x13f),_0x5d568e=>!_0x5d568e)]}}),_0x22d35c;}[_0x46a8d7(0x17d)](){const _0x4bd705=_0x46a8d7,_0x3aee0b=new _0x138d99(this[_0x4bd705(0x158)],_0x1d65e8[_0x4bd705(0x14a)]);return _0x3aee0b[_0x4bd705(0x130)]({'attributes':{'class':[this[_0x4bd705(0x172)]['if'](_0x4bd705(0x12e),_0x4bd705(0x13f),_0xf5e308=>!_0xf5e308)]}}),_0x3aee0b;}[_0x46a8d7(0x163)](){const _0x3ad9bf=_0x46a8d7,_0x745471=new _0x42c871(this[_0x3ad9bf(0x158)]),_0x33026d=new _0x2e2985(this[_0x3ad9bf(0x158)]);_0x33026d[_0x3ad9bf(0x150)]({'withText':!0x1,'icon':_0x5e8cb3,'class':_0x3ad9bf(0x157)}),_0x33026d[_0x3ad9bf(0x131)](_0x3ad9bf(0x12d))['to'](this,_0x3ad9bf(0x16d),_0x1fe281=>!!_0x1fe281),_0x33026d['on'](_0x3ad9bf(0x154),()=>{const _0x29f716=_0x3ad9bf;this[_0x29f716(0x147)]='';});const _0x4ddc07=this[_0x3ad9bf(0x172)];return _0x745471[_0x3ad9bf(0x160)]({'tag':_0x3ad9bf(0x138),'attributes':{'class':['ck',_0x3ad9bf(0x137),_0x3ad9bf(0x12f)]},'children':[{'tag':'p','children':[{'text':_0x4ddc07['to'](_0x3ad9bf(0x147))}]},_0x33026d]}),_0x745471;}[_0x46a8d7(0x14b)](){const _0x4521b1=_0x46a8d7,_0x41542a=new _0x2e2985(this[_0x4521b1(0x158)]);_0x41542a[_0x4521b1(0x150)]({'label':_0x31cd13(this[_0x4521b1(0x158)],_0x4521b1(0x156)),'withText':!0x0,'icon':_0x5db4cf,'class':_0x4521b1(0x169)}),_0x41542a['on'](_0x4521b1(0x154),()=>{const _0x1a2999=_0x4521b1;this[_0x1a2999(0x151)](_0x1a2999(0x143));});const _0x18a919=new _0x42c871(this[_0x4521b1(0x158)]);return _0x18a919[_0x4521b1(0x160)]({'tag':_0x4521b1(0x138),'attributes':{'class':[_0x4521b1(0x155),this[_0x4521b1(0x172)]['if'](_0x4521b1(0x149),_0x4521b1(0x13f),_0x59f06d=>!_0x59f06d)]},'children':[{'tag':'p','attributes':{'class':[_0x4521b1(0x148)]},'children':[_0x31cd13(this[_0x4521b1(0x158)],_0x4521b1(0x13e))]},_0x41542a]}),_0x18a919;}[_0x46a8d7(0x14e)](_0x7a7a89,_0x4bde28){const _0x5cd38c=_0x46a8d7,_0x286e67=[];for(const _0x3b2e26 of _0x7a7a89){const _0x1d23f9=new _0x53ad51(_0x4bde28,_0x3b2e26);_0x1d23f9[_0x5cd38c(0x16a)](..._0x9c5e60)['to'](this),_0x286e67[_0x5cd38c(0x13c)](_0x1d23f9);}return _0x286e67;}[_0x46a8d7(0x13a)](_0x451677){const _0x1d13ab=_0x46a8d7,_0x57687b=this[_0x1d13ab(0x158)]||'en',_0x15543c=[];for(const _0x51a71a of _0x451677){const _0x48bde8=this[_0x1d13ab(0x14e)](_0x51a71a[_0x1d13ab(0x145)],_0x57687b);_0x15543c[_0x1d13ab(0x13c)](new _0x4f2d60(_0x57687b,{'title':_0x51a71a[_0x1d13ab(0x139)],'items':_0x48bde8}));}this[_0x1d13ab(0x184)][_0x1d13ab(0x15e)]=_0x15543c,this[_0x1d13ab(0x184)][_0x1d13ab(0x145)][_0x1d13ab(0x174)](),this[_0x1d13ab(0x184)][_0x1d13ab(0x145)][_0x1d13ab(0x16e)](_0x15543c),this[_0x1d13ab(0x16d)]=_0x451677[_0x1d13ab(0x136)](_0x42410a=>_0x42410a[_0x1d13ab(0x145)][_0x1d13ab(0x141)]>0x0),this[_0x1d13ab(0x15a)]();}[_0x46a8d7(0x17b)](_0x3cbfda){const _0x175660=_0x46a8d7;for(const _0xd0ac0d of this[_0x175660(0x184)][_0x175660(0x15e)]){const _0x173cd1=_0xd0ac0d[_0x175660(0x187)](_0x3cbfda);if(_0x173cd1){if(_0xd0ac0d[_0x175660(0x16f)](_0x173cd1),0x0===_0xd0ac0d[_0x175660(0x132)][_0x175660(0x141)]){const _0x2f31b8=this[_0x175660(0x184)][_0x175660(0x15e)][_0x175660(0x182)](_0xd0ac0d);-0x1!==_0x2f31b8&&(this[_0x175660(0x184)][_0x175660(0x15e)][_0x175660(0x133)](_0x2f31b8,0x1),this[_0x175660(0x184)][_0x175660(0x145)][_0x175660(0x14c)](_0xd0ac0d));}this[_0x175660(0x16d)]=this[_0x175660(0x184)][_0x175660(0x15e)][_0x175660(0x141)]>0x0,this[_0x175660(0x15a)]();break;}}}[_0x46a8d7(0x17c)](_0x2f925d,_0x3effc2){const _0x49e4ba=_0x46a8d7;for(const _0x4f8f25 of this[_0x49e4ba(0x184)][_0x49e4ba(0x15e)]){const _0x10182c=_0x4f8f25[_0x49e4ba(0x187)](_0x2f925d);if(_0x10182c){_0x10182c[_0x49e4ba(0x146)](_0x3effc2);break;}}}[_0x46a8d7(0x165)](_0x211bbf,_0x293519,_0x522104){const _0x3c1f35=_0x46a8d7;for(const _0x4ba1f5 of this[_0x3c1f35(0x184)][_0x3c1f35(0x15e)]){const _0x5738b2=_0x4ba1f5[_0x3c1f35(0x187)](_0x211bbf);if(_0x5738b2){_0x5738b2[_0x3c1f35(0x168)](_0x293519,_0x522104);break;}}}[_0x46a8d7(0x15a)](){const _0x45b20a=_0x46a8d7;if(this[_0x45b20a(0x16d)]){const _0x386921=this[_0x45b20a(0x161)][_0x45b20a(0x180)][_0x45b20a(0x164)]?.[_0x45b20a(0x15f)]?.[_0x45b20a(0x15d)]||'';this[_0x45b20a(0x161)][_0x45b20a(0x179)](_0x386921);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x999e19=_0x45ba;function _0x45ba(_0x3e97b6,_0x507613){const _0x52cde1=_0x52cd();return _0x45ba=function(_0x45ba8b,_0xc44e02){_0x45ba8b=_0x45ba8b-0x15c;let _0x90f30a=_0x52cde1[_0x45ba8b];return _0x90f30a;},_0x45ba(_0x3e97b6,_0x507613);}(function(_0x257783,_0x16dc3a){const _0x2d269e=_0x45ba,_0x49e34d=_0x257783();while(!![]){try{const _0x550d3d=parseInt(_0x2d269e(0x19d))/0x1*(-parseInt(_0x2d269e(0x1d6))/0x2)+-parseInt(_0x2d269e(0x1b7))/0x3*(parseInt(_0x2d269e(0x1b8))/0x4)+-parseInt(_0x2d269e(0x15e))/0x5*(parseInt(_0x2d269e(0x164))/0x6)+-parseInt(_0x2d269e(0x1a5))/0x7*(-parseInt(_0x2d269e(0x19c))/0x8)+parseInt(_0x2d269e(0x1ef))/0x9*(parseInt(_0x2d269e(0x1b4))/0xa)+parseInt(_0x2d269e(0x199))/0xb*(-parseInt(_0x2d269e(0x178))/0xc)+parseInt(_0x2d269e(0x1bb))/0xd;if(_0x550d3d===_0x16dc3a)break;else _0x49e34d['push'](_0x49e34d['shift']());}catch(_0x3cc14c){_0x49e34d['push'](_0x49e34d['shift']());}}}(_0x52cd,0x79d02));import{createParser as _0x42e2dc}from'eventsource-parser';import{ContextPlugin as _0x267803}from'ckeditor5/src/core.js';import{CKEditorError as _0x13c841}from'ckeditor5/src/utils.js';function _0x52cd(){const _0x195e44=['data','9PQWAAg','value','getReader','fetchConversation','155gzhfyD','make-longer','upsertCustomAIReviewRating','releaseLock','fetchConversationMessages','uploadDocument','107334GRhFdM','DELETE','attributes','context','make-tone-formal','init','CloudServices','status','Bearer\x20','read','append','MAKE_TONE_CASUAL','feed','make-shorter','https://ai.cke-cs.com/v1','_decoder','limit','MAKE_TONE_FORMAL','fetchDocument','ai-request-aborted','85920FVVkeZ','text','group','isOfficialPlugin','plugins','/files','uploadUrl','deleteWebResource','AbortError','json','PUT','/reviews/system/','then','/actions/system/','config','MAKE_SHORTER','get','catch','ai-request-failed','parse','fetchConversations','FIX_GRAMMAR','/web-resources','CONTINUE','toString','stringify','decode','deleteConversation','queryAssistant','define','executeAction','/calls','Content-Type','638xXVYCo','pluginName','100','2457944cnEvhf','44FiovOH','positiveCount','token','GET','/web-resources/','message','/models/1?','/ratings','7EPniCm','upsertAIReviewRating','requires','/conversations?','deleteFile','/conversations','upsertAIActionRating','true','/messages/','excludeEmpty','PATCH','POST','fix-grammar','updateConversation','keys','5308690TQUham','body','MAKE_LONGER','3iJPAdD','3898292chTmHT','language','abortController','24446630rTCdTz','file','/reviews/custom/calls/','_handleError','request','upsertAIChatRating','startConversation','/conversations/','/documents/','code','continue','traceId','items','deleteDocument','AIConnector','callSystemReview','_getStreamReader','name','upsertCustomAIActionRating','executeCustomAction','TRANSLATE','signal','push','/files/','reset','_sendApiRequest','statusText','12512tMORQU','_apiUrl','ai.serviceUrl','modificationId','getModels','_token','/reviews/custom/calls','IMPROVE_WRITING','make-tone-casual','/documents','totalCount','uploadFile','/actions/custom/calls/','ai-missing-token','application/json','isPremiumPlugin','callCustomReview','/actions/custom/calls','search','translate','/messages','/calls/','length','improve-writing'];_0x52cd=function(){return _0x195e44;};return _0x52cd();}export var AIActionsNames;!function(_0x1507c1){const _0x4344eb=_0x45ba;_0x1507c1[_0x4344eb(0x18f)]=_0x4344eb(0x1c5),_0x1507c1[_0x4344eb(0x18d)]=_0x4344eb(0x1b1),_0x1507c1[_0x4344eb(0x1dd)]=_0x4344eb(0x1ed),_0x1507c1[_0x4344eb(0x1b6)]=_0x4344eb(0x15f),_0x1507c1[_0x4344eb(0x187)]=_0x4344eb(0x171),_0x1507c1[_0x4344eb(0x16f)]=_0x4344eb(0x1de),_0x1507c1[_0x4344eb(0x175)]=_0x4344eb(0x168),_0x1507c1[_0x4344eb(0x1cf)]=_0x4344eb(0x1e9);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x267803{[_0x999e19(0x1d7)];[_0x999e19(0x1db)];[_0x999e19(0x173)];static get[_0x999e19(0x1a7)](){const _0x40a448=_0x999e19;return[_0x40a448(0x16a)];}static get[_0x999e19(0x19a)](){const _0x3cb61d=_0x999e19;return _0x3cb61d(0x1c9);}static get[_0x999e19(0x17b)](){return!0x0;}static get[_0x999e19(0x1e5)](){return!0x0;}constructor(_0x526c1c){const _0x404b2f=_0x999e19;super(_0x526c1c),this[_0x404b2f(0x167)][_0x404b2f(0x186)][_0x404b2f(0x195)](_0x404b2f(0x1d8),_0x404b2f(0x172)),this[_0x404b2f(0x1d7)]=this[_0x404b2f(0x167)][_0x404b2f(0x186)][_0x404b2f(0x188)](_0x404b2f(0x1d8)),this[_0x404b2f(0x1db)]=null,this[_0x404b2f(0x173)]=new TextDecoder();}[_0x999e19(0x169)](){const _0x358109=_0x999e19,_0x4d58c5=this[_0x358109(0x167)][_0x358109(0x17c)][_0x358109(0x188)](_0x358109(0x16a));if(!_0x4d58c5[_0x358109(0x19f)])throw new _0x13c841(_0x358109(0x1e3),this);this[_0x358109(0x1db)]=_0x4d58c5[_0x358109(0x19f)];}[_0x999e19(0x1c1)](_0x4a8935,_0x39e632){const _0x2f33b3=_0x999e19,_0x1d624f=this[_0x2f33b3(0x1d4)](_0x2f33b3(0x1aa),_0x2f33b3(0x1b0),{'id':_0x4a8935,'group':_0x39e632});return{'getConversation':async()=>(await _0x1d624f[_0x2f33b3(0x1bf)])[_0x2f33b3(0x181)](),'abortController':_0x1d624f[_0x2f33b3(0x1ba)]};}[_0x999e19(0x194)]({message:_0xaae7a9,conversationId:_0x133b9e,parts:_0x1d69a9,capabilities:_0x34073c,model:_0x374672,quickActionData:_0x5904f9}){const _0x482af1=_0x999e19,_0x484560={..._0x5904f9&&{'quickActionData':_0x5904f9}},_0x394cb1={'prompt':_0xaae7a9,'content':_0x1d69a9,'model':_0x374672,..._0x34073c&&{'capabilities':_0x34073c},...Object[_0x482af1(0x1b3)](_0x484560)[_0x482af1(0x1ec)]>0x0&&{'attributes':_0x484560}},_0x4338e9=this[_0x482af1(0x1d4)](_0x482af1(0x1c2)+_0x133b9e+_0x482af1(0x1ea),_0x482af1(0x1b0),_0x394cb1);return{'getStream':async()=>{const _0x342ec1=_0x482af1,_0x270e3e=(await _0x4338e9[_0x342ec1(0x1bf)])[_0x342ec1(0x1b5)];return this[_0x342ec1(0x1cb)](_0x270e3e);},'abortController':_0x4338e9[_0x482af1(0x1ba)]};}[_0x999e19(0x1ce)]({content:_0x27d8b4,message:_0x3787e5,model:_0xd25eb1,outputFormat:_0x412f79}){const _0x2539c7=_0x999e19,_0x491d4d={'content':[{'type':_0x2539c7(0x179),'content':_0x27d8b4}],'prompt':_0x3787e5,'model':_0xd25eb1,'outputFormat':_0x412f79},_0x5a1f32=this[_0x2539c7(0x1d4)](_0x2539c7(0x1e7),_0x2539c7(0x1b0),_0x491d4d);return{'getStream':async()=>{const _0x4984f8=_0x2539c7,_0x907cb6=(await _0x5a1f32[_0x4984f8(0x1bf)])[_0x4984f8(0x1b5)];return this[_0x4984f8(0x1cb)](_0x907cb6);},'abortController':_0x5a1f32[_0x2539c7(0x1ba)]};}[_0x999e19(0x196)]({actionName:_0x5cce86,content:_0xce160f,args:_0x5e1aa2}){const _0x1d87d8=_0x999e19,_0x58828a={'content':[{'type':_0x1d87d8(0x179),'content':_0xce160f}],'args':_0x5e1aa2},_0x55d986=this[_0x1d87d8(0x1d4)](_0x1d87d8(0x185)+_0x5cce86+_0x1d87d8(0x197),_0x1d87d8(0x1b0),_0x58828a);return{'getStream':async()=>{const _0x97627c=_0x1d87d8,_0x5d628e=(await _0x55d986[_0x97627c(0x1bf)])[_0x97627c(0x1b5)];return this[_0x97627c(0x1cb)](_0x5d628e);},'abortController':_0x55d986[_0x1d87d8(0x1ba)]};}[_0x999e19(0x1e1)](_0x1345f1,_0x1089fe,_0xac7901){const _0x709ed1=_0x999e19,_0x8efb47=new FormData();_0x8efb47[_0x709ed1(0x16e)](_0x709ed1(0x1bc),_0x1089fe,_0x1089fe[_0x709ed1(0x1cc)]),_0xac7901&&_0x8efb47[_0x709ed1(0x16e)](_0x709ed1(0x166),JSON[_0x709ed1(0x191)](_0xac7901));const _0x387fac=this[_0x709ed1(0x1d4)](_0x709ed1(0x1c2)+_0x1345f1+_0x709ed1(0x17d),_0x709ed1(0x1b0),_0x8efb47);return{'getId':async()=>(await _0x387fac[_0x709ed1(0x1bf)])[_0x709ed1(0x181)](),'abortController':_0x387fac[_0x709ed1(0x1ba)]};}[_0x999e19(0x176)](_0x3e4eee,_0x2ec3c6){const _0x5ebcca=_0x999e19,_0x1de204=this[_0x5ebcca(0x1d4)](_0x5ebcca(0x1c2)+_0x3e4eee+_0x5ebcca(0x1c3)+_0x2ec3c6,_0x5ebcca(0x1a0));return{'getDocument':async()=>(await _0x1de204[_0x5ebcca(0x1bf)])[_0x5ebcca(0x181)](),'abortController':_0x1de204[_0x5ebcca(0x1ba)]};}[_0x999e19(0x163)](_0xa20387,_0x5c3e59,_0x3e51ba){const _0x578de7=_0x999e19,_0x1f15dc={'content':_0x5c3e59};_0x3e51ba&&(_0x1f15dc[_0x578de7(0x166)]=_0x3e51ba);const _0x9ea131=this[_0x578de7(0x1d4)](_0x578de7(0x1c2)+_0xa20387+_0x578de7(0x1df),_0x578de7(0x1b0),_0x1f15dc);return{'getId':async()=>(await _0x9ea131[_0x578de7(0x1bf)])[_0x578de7(0x181)](),'abortController':_0x9ea131[_0x578de7(0x1ba)]};}[_0x999e19(0x18c)](_0x3c48b4,_0x1da85c){const _0x404355=_0x999e19,_0x1a2942=new URLSearchParams();_0x1a2942[_0x404355(0x16e)](_0x404355(0x1ae),_0x404355(0x1ac)),_0x1a2942[_0x404355(0x16e)](_0x404355(0x174),_0x404355(0x19b)),_0x1a2942[_0x404355(0x16e)](_0x404355(0x17a),_0x3c48b4),_0x1da85c&&_0x1a2942[_0x404355(0x16e)](_0x404355(0x1e8),_0x1da85c);const _0x42495c=this[_0x404355(0x1d4)](_0x404355(0x1a8)+_0x1a2942[_0x404355(0x190)](),_0x404355(0x1a0));return{'getConversations':async()=>{const _0x28096c=_0x404355,_0x39b727=await _0x42495c[_0x28096c(0x1bf)];return(await _0x39b727[_0x28096c(0x181)]())[_0x28096c(0x1c7)];},'abortController':_0x42495c[_0x404355(0x1ba)]};}[_0x999e19(0x193)](_0xdca692){const _0x45d2c3=_0x999e19,_0x18f2ee=this[_0x45d2c3(0x1d4)](_0x45d2c3(0x1c2)+_0xdca692,_0x45d2c3(0x165));return{'execute':async()=>{const _0x29b535=_0x45d2c3;await _0x18f2ee[_0x29b535(0x1bf)];},'abortController':_0x18f2ee[_0x45d2c3(0x1ba)]};}[_0x999e19(0x1b2)](_0xec11a3,_0x4ff0c2){const _0x4aebd4=_0x999e19,_0x19908c=this[_0x4aebd4(0x1d4)](_0x4aebd4(0x1c2)+_0xec11a3,_0x4aebd4(0x1af),_0x4ff0c2);return{'getResult':async()=>(await _0x19908c[_0x4aebd4(0x1bf)],_0x4ff0c2),'abortController':_0x19908c[_0x4aebd4(0x1ba)]};}[_0x999e19(0x15d)](_0x43763b){const _0x587b98=_0x999e19,_0x16b3c4=this[_0x587b98(0x1d4)](_0x587b98(0x1c2)+_0x43763b,_0x587b98(0x1a0));return{'getConversation':async()=>(await _0x16b3c4[_0x587b98(0x1bf)])[_0x587b98(0x181)](),'abortController':_0x16b3c4[_0x587b98(0x1ba)]};}[_0x999e19(0x162)](_0x5538ef){const _0x5bfcb4=_0x999e19,_0x35b416=this[_0x5bfcb4(0x1d4)](_0x5bfcb4(0x1c2)+_0x5538ef+_0x5bfcb4(0x1ea),_0x5bfcb4(0x1a0));return{'getMessages':async()=>{const _0x43a775=_0x5bfcb4,_0x1969f1=await _0x35b416[_0x43a775(0x1bf)];return(await _0x1969f1[_0x43a775(0x181)]())[_0x43a775(0x1c7)];},'abortController':_0x35b416[_0x5bfcb4(0x1ba)]};}[_0x999e19(0x17e)](_0x2932fb,_0x2e35f8,_0x18638a){const _0x397e6a=_0x999e19,_0x5cfef5=this[_0x397e6a(0x1d4)](_0x397e6a(0x1c2)+_0x2932fb+_0x397e6a(0x18e),_0x397e6a(0x1b0),{'url':_0x2e35f8,'attributes':_0x18638a});return{'getId':async()=>(await _0x5cfef5[_0x397e6a(0x1bf)])[_0x397e6a(0x181)](),'abortController':_0x5cfef5[_0x397e6a(0x1ba)]};}[_0x999e19(0x1da)](_0x37a4a2='en'){const _0x4f764f=_0x999e19,_0x1cae19=new URLSearchParams();_0x1cae19[_0x4f764f(0x16e)](_0x4f764f(0x1b9),_0x37a4a2);const _0x461940=_0x4f764f(0x1a3)+_0x1cae19[_0x4f764f(0x190)](),_0x4d3e41=this[_0x4f764f(0x1d4)](_0x461940,_0x4f764f(0x1a0));return{'list':async()=>await(await _0x4d3e41[_0x4f764f(0x1bf)])[_0x4f764f(0x181)](),'abortController':_0x4d3e41[_0x4f764f(0x1ba)]};}[_0x999e19(0x1a9)](_0x19024d,_0x4cb4e2){const _0x23d999=_0x999e19,_0x2cf8ee=this[_0x23d999(0x1d4)](_0x23d999(0x1c2)+_0x19024d+_0x23d999(0x1d2)+_0x4cb4e2,_0x23d999(0x165));return{'execute':async()=>{const _0x578572=_0x23d999;await _0x2cf8ee[_0x578572(0x1bf)];},'abortController':_0x2cf8ee[_0x23d999(0x1ba)]};}[_0x999e19(0x1c8)](_0x5100c6,_0x9afb6d){const _0x5e0607=_0x999e19,_0x25219e=this[_0x5e0607(0x1d4)](_0x5e0607(0x1c2)+_0x5100c6+_0x5e0607(0x1c3)+_0x9afb6d,_0x5e0607(0x165));return{'execute':async()=>{const _0x1be8c2=_0x5e0607;await _0x25219e[_0x1be8c2(0x1bf)];},'abortController':_0x25219e[_0x5e0607(0x1ba)]};}[_0x999e19(0x17f)](_0x16858,_0x4b82e0){const _0x44fea=_0x999e19,_0x1c2875=this[_0x44fea(0x1d4)](_0x44fea(0x1c2)+_0x16858+_0x44fea(0x1a1)+_0x4b82e0,_0x44fea(0x165));return{'execute':async()=>{const _0x52472f=_0x44fea;await _0x1c2875[_0x52472f(0x1bf)];},'abortController':_0x1c2875[_0x44fea(0x1ba)]};}[_0x999e19(0x1ca)]({reviewName:_0x4da533,content:_0x5e26a5,args:_0x39dfcb}){const _0x1612c7=_0x999e19,_0x3c3674=this[_0x1612c7(0x1d4)](_0x1612c7(0x183)+_0x4da533+_0x1612c7(0x197),_0x1612c7(0x1b0),{'content':[{'type':_0x1612c7(0x179),'content':_0x5e26a5}],'args':_0x39dfcb});return{'getStream':async()=>{const _0x216410=_0x1612c7,_0x22fa5f=(await _0x3c3674[_0x216410(0x1bf)])[_0x216410(0x1b5)];return this[_0x216410(0x1cb)](_0x22fa5f);},'abortController':_0x3c3674[_0x1612c7(0x1ba)]};}[_0x999e19(0x1e6)]({content:_0x21bc01,prompt:_0x116dab,model:_0x1f4954}){const _0x4e5676=_0x999e19,_0x4b15e2=this[_0x4e5676(0x1d4)](_0x4e5676(0x1dc),_0x4e5676(0x1b0),{'content':[{'type':_0x4e5676(0x179),'content':_0x21bc01}],'prompt':_0x116dab,'model':_0x1f4954});return{'getStream':async()=>{const _0x1b5f1a=_0x4e5676,_0x4d97b8=(await _0x4b15e2[_0x1b5f1a(0x1bf)])[_0x1b5f1a(0x1b5)];return this[_0x1b5f1a(0x1cb)](_0x4d97b8);},'abortController':_0x4b15e2[_0x4e5676(0x1ba)]};}[_0x999e19(0x1c0)](_0xa48a06,_0x362375,_0x2b99f0){const _0x273f37=_0x999e19,_0x4ece05=this[_0x273f37(0x1d4)](_0x273f37(0x1c2)+_0xa48a06+_0x273f37(0x1ad)+_0x362375+_0x273f37(0x1a4),_0x273f37(0x182),{'positiveCount':_0x2b99f0[_0x273f37(0x19e)],'totalCount':_0x2b99f0[_0x273f37(0x1e0)],'modificationId':_0x2b99f0[_0x273f37(0x1d9)]});return{'execute':async()=>{const _0x5ef030=_0x273f37;await _0x4ece05[_0x5ef030(0x1bf)];},'abortController':_0x4ece05[_0x273f37(0x1ba)]};}[_0x999e19(0x1ab)](_0x3cd72e,_0x18f03f,_0x1f59d6){const _0x4a1b6f=_0x999e19,_0x50e197=this[_0x4a1b6f(0x1d4)](_0x4a1b6f(0x185)+_0x3cd72e+_0x4a1b6f(0x1eb)+_0x18f03f+_0x4a1b6f(0x1a4),_0x4a1b6f(0x182),{'positiveCount':_0x1f59d6[_0x4a1b6f(0x19e)],'totalCount':_0x1f59d6[_0x4a1b6f(0x1e0)]});return{'execute':async()=>{const _0x5f42c5=_0x4a1b6f;await _0x50e197[_0x5f42c5(0x1bf)];},'abortController':_0x50e197[_0x4a1b6f(0x1ba)]};}[_0x999e19(0x1cd)](_0x6dce0f,_0x5a60ec){const _0x498e2f=_0x999e19,_0x3406ae=this[_0x498e2f(0x1d4)](_0x498e2f(0x1e2)+_0x6dce0f+_0x498e2f(0x1a4),_0x498e2f(0x182),{'positiveCount':_0x5a60ec[_0x498e2f(0x19e)],'totalCount':_0x5a60ec[_0x498e2f(0x1e0)]});return{'execute':async()=>{const _0x3ff520=_0x498e2f;await _0x3406ae[_0x3ff520(0x1bf)];},'abortController':_0x3406ae[_0x498e2f(0x1ba)]};}[_0x999e19(0x1a6)](_0x2ce812,_0x1efe72,_0x369639,_0x5da46f){const _0x212197=_0x999e19,_0x319d30=this[_0x212197(0x1d4)](_0x212197(0x183)+_0x2ce812+_0x212197(0x1eb)+_0x1efe72+_0x212197(0x1a4),_0x212197(0x182),{'positiveCount':_0x369639[_0x212197(0x19e)],'totalCount':_0x369639[_0x212197(0x1e0)],'dataId':_0x5da46f});return{'execute':async()=>{const _0x51d011=_0x212197;await _0x319d30[_0x51d011(0x1bf)];},'abortController':_0x319d30[_0x212197(0x1ba)]};}[_0x999e19(0x160)](_0xeacabd,_0x35ea33,_0x3dd2f8){const _0x2bf5c1=_0x999e19,_0x54f489=this[_0x2bf5c1(0x1d4)](_0x2bf5c1(0x1bd)+_0xeacabd+_0x2bf5c1(0x1a4),_0x2bf5c1(0x182),{'positiveCount':_0x35ea33[_0x2bf5c1(0x19e)],'totalCount':_0x35ea33[_0x2bf5c1(0x1e0)],'dataId':_0x3dd2f8});return{'execute':async()=>{const _0x6be3b3=_0x2bf5c1;await _0x54f489[_0x6be3b3(0x1bf)];},'abortController':_0x54f489[_0x2bf5c1(0x1ba)]};}[_0x999e19(0x1d4)](_0x394025,_0x43ccd7,_0x5bc19d){const _0x20bb28=_0x999e19,_0xe8cc5=new AbortController(),_0x599cb3=_0x5bc19d instanceof FormData,_0x586e89={'Authorization':_0x20bb28(0x16c)+this[_0x20bb28(0x1db)]?.[_0x20bb28(0x1f0)]};_0x5bc19d&&!_0x599cb3&&(_0x586e89[_0x20bb28(0x198)]=_0x20bb28(0x1e4));const _0x32b2c3={'method':_0x43ccd7,'headers':_0x586e89,'signal':_0xe8cc5[_0x20bb28(0x1d0)]};return _0x5bc19d&&(_0x32b2c3[_0x20bb28(0x1b5)]=_0x599cb3?_0x5bc19d:JSON[_0x20bb28(0x191)](_0x5bc19d)),{'request':fetch(''+this[_0x20bb28(0x1d7)]+_0x394025,_0x32b2c3)[_0x20bb28(0x189)](_0xfdbd3a=>{const _0x3a60b7=_0x20bb28;this[_0x3a60b7(0x1be)](_0xfdbd3a);})[_0x20bb28(0x184)](_0xec1756=>_0xec1756['ok']?_0xec1756:_0xec1756[_0x20bb28(0x181)]()[_0x20bb28(0x184)](_0x44f358=>{const _0x527ab8=_0x20bb28;throw{'url':this[_0x527ab8(0x1d7)],'path':_0x394025,'method':_0x43ccd7,'body':_0x5bc19d,'status':(_0xec1756||{})[_0x527ab8(0x16b)],'statusText':(_0xec1756||{})[_0x527ab8(0x1d5)],'code':_0x44f358[_0x527ab8(0x1c4)],'message':_0x44f358[_0x527ab8(0x1a2)],'traceId':_0x44f358[_0x527ab8(0x1c6)]};})),'abortController':_0xe8cc5};}async*[_0x999e19(0x1cb)](_0x1ecf42){const _0x3761d0=_0x999e19,_0x14379a=[],_0x1b8e9f=_0x1ecf42[_0x3761d0(0x15c)](),_0x3ce99b=_0x42e2dc({'onError':_0x2ab245=>{const _0x103d05=_0x3761d0;this[_0x103d05(0x1be)](_0x2ab245);},'onEvent':_0x240ceb=>{const _0xca1376=_0x3761d0;_0x240ceb[_0xca1376(0x1ee)]=JSON[_0xca1376(0x18b)](_0x240ceb[_0xca1376(0x1ee)]),_0x14379a[_0xca1376(0x1d1)](_0x240ceb);}});try{let _0x100a88=!0x1;for(;!_0x100a88;){const {done:_0x102e4c,value:_0xdfc6a3}=await _0x1b8e9f[_0x3761d0(0x16d)]();_0x102e4c&&(_0x100a88=!0x0),_0x3ce99b[_0x3761d0(0x170)](this[_0x3761d0(0x173)][_0x3761d0(0x192)](_0xdfc6a3,{'stream':!0x0})),yield*_0x14379a,_0x14379a[_0x3761d0(0x1ec)]=0x0;}}catch(_0x43f139){this[_0x3761d0(0x1be)](_0x43f139);}finally{_0x1b8e9f[_0x3761d0(0x161)](),_0x3ce99b[_0x3761d0(0x1d3)]();}}[_0x999e19(0x1be)](_0x10068b){const _0x1ecfcf=_0x999e19;if(_0x10068b instanceof _0x13c841)throw _0x10068b;if(_0x10068b instanceof Error&&_0x1ecfcf(0x180)===_0x10068b[_0x1ecfcf(0x1cc)])throw new _0x13c841(_0x1ecfcf(0x177),this,{'originalError':_0x10068b});throw new _0x13c841(_0x1ecfcf(0x18a),this,{'originalError':_0x10068b});}}
|
|
23
|
+
function _0xcc6c(_0x533cdf,_0x2a7b4f){const _0xe57660=_0xe576();return _0xcc6c=function(_0xcc6c9b,_0x4f3d6b){_0xcc6c9b=_0xcc6c9b-0x18c;let _0x251e67=_0xe57660[_0xcc6c9b];return _0x251e67;},_0xcc6c(_0x533cdf,_0x2a7b4f);}const _0x3fcda4=_0xcc6c;(function(_0x343822,_0x52e222){const _0x579868=_0xcc6c,_0x40ec35=_0x343822();while(!![]){try{const _0x10e090=parseInt(_0x579868(0x1f8))/0x1*(parseInt(_0x579868(0x20c))/0x2)+parseInt(_0x579868(0x210))/0x3*(-parseInt(_0x579868(0x1e5))/0x4)+-parseInt(_0x579868(0x1dd))/0x5*(parseInt(_0x579868(0x21c))/0x6)+-parseInt(_0x579868(0x1d8))/0x7+-parseInt(_0x579868(0x21a))/0x8+-parseInt(_0x579868(0x1d1))/0x9+-parseInt(_0x579868(0x21d))/0xa*(-parseInt(_0x579868(0x1e1))/0xb);if(_0x10e090===_0x52e222)break;else _0x40ec35['push'](_0x40ec35['shift']());}catch(_0x2ef936){_0x40ec35['push'](_0x40ec35['shift']());}}}(_0xe576,0x25c01));import{createParser as _0x712941}from'eventsource-parser';import{ContextPlugin as _0x545529}from'ckeditor5/src/core.js';import{CKEditorError as _0x5c9a53}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x1cacfc){const _0x3f1fbb=_0xcc6c;_0x1cacfc[_0x3f1fbb(0x1aa)]=_0x3f1fbb(0x20d),_0x1cacfc[_0x3f1fbb(0x1ea)]=_0x3f1fbb(0x1d7),_0x1cacfc[_0x3f1fbb(0x18c)]=_0x3f1fbb(0x1c5),_0x1cacfc[_0x3f1fbb(0x19d)]=_0x3f1fbb(0x20b),_0x1cacfc[_0x3f1fbb(0x1ac)]=_0x3f1fbb(0x1f6),_0x1cacfc[_0x3f1fbb(0x1f0)]=_0x3f1fbb(0x1d2),_0x1cacfc[_0x3f1fbb(0x199)]=_0x3f1fbb(0x19f),_0x1cacfc[_0x3f1fbb(0x21e)]=_0x3f1fbb(0x1cd);}(AIActionsNames||(AIActionsNames={}));function _0xe576(){const _0x16ef0c=['request','/documents','group','upsertAIReviewRating','callSystemReview','isPremiumPlugin','language','search','upsertAIChatRating','make-longer','2bYVExH','continue','application/json','/web-resources/','33CkAZDz','deleteFile','upsertCustomAIReviewRating','uploadUrl','uploadFile','reset','_apiUrl','_getStreamReader','abortController','signal','999128EqWfbQ','/actions/custom/calls','343302Trlxon','370CIFDCF','TRANSLATE','IMPROVE_WRITING','100','push','name','feed','updateConversation','/ratings','upsertCustomAIActionRating','fetchDocument','releaseLock','/files/','callCustomReview','/conversations/','MAKE_TONE_FORMAL','_token','fetchConversations','/reviews/custom/calls','MAKE_LONGER','traceId','make-tone-formal','/models/1?','keys','GET','PATCH','config','context','totalCount','init','/messages','/conversations?','CONTINUE','_sendApiRequest','MAKE_SHORTER','status','/conversations','AbortError','/web-resources','modificationId','value','ai-missing-token','attributes','/files','pluginName','catch','get','/reviews/custom/calls/','decode','append','plugins','_handleError','ai-request-failed','/actions/system/','define','statusText','message','items','read','improve-writing','executeCustomAction','stringify','getReader','json','/reviews/system/','/calls/','file','translate','ai-request-aborted','Content-Type','token','1756224LevgEM','make-tone-casual','body','positiveCount','limit','POST','fix-grammar','595210ObCOso','ai.serviceUrl','_decoder','data','parse','25KPGdyY','https://ai.cke-cs.com/v1','toString','startConversation','296417zSxFfU','code','queryAssistant','PUT','59044QlpuHJ','/messages/','excludeEmpty','length','AIConnector','FIX_GRAMMAR','deleteConversation','upsertAIActionRating','requires','uploadDocument','deleteWebResource','MAKE_TONE_CASUAL','CloudServices','executeAction','DELETE','text','/calls','make-shorter','true','11099LMfsCk','fetchConversationMessages','Bearer\x20','/actions/custom/calls/','/documents/','fetchConversation','then','deleteDocument','getModels','isOfficialPlugin'];_0xe576=function(){return _0x16ef0c;};return _0xe576();}export class AIConnector extends _0x545529{[_0x3fcda4(0x216)];[_0x3fcda4(0x19a)];[_0x3fcda4(0x1da)];static get[_0x3fcda4(0x1ed)](){const _0x440d12=_0x3fcda4;return[_0x440d12(0x1f1)];}static get[_0x3fcda4(0x1b6)](){const _0x12f04c=_0x3fcda4;return _0x12f04c(0x1e9);}static get[_0x3fcda4(0x201)](){return!0x0;}static get[_0x3fcda4(0x207)](){return!0x0;}constructor(_0x102455){const _0x1c2c77=_0x3fcda4;super(_0x102455),this[_0x1c2c77(0x1a5)][_0x1c2c77(0x1a4)][_0x1c2c77(0x1c0)](_0x1c2c77(0x1d9),_0x1c2c77(0x1de)),this[_0x1c2c77(0x216)]=this[_0x1c2c77(0x1a5)][_0x1c2c77(0x1a4)][_0x1c2c77(0x1b8)](_0x1c2c77(0x1d9)),this[_0x1c2c77(0x19a)]=null,this[_0x1c2c77(0x1da)]=new TextDecoder();}[_0x3fcda4(0x1a7)](){const _0x25be29=_0x3fcda4,_0x2059f0=this[_0x25be29(0x1a5)][_0x25be29(0x1bc)][_0x25be29(0x1b8)](_0x25be29(0x1f1));if(!_0x2059f0[_0x25be29(0x1d0)])throw new _0x5c9a53(_0x25be29(0x1b3),this);this[_0x25be29(0x19a)]=_0x2059f0[_0x25be29(0x1d0)];}[_0x3fcda4(0x1e0)](_0x5c83f2,_0x3ed9f7){const _0x52138d=_0x3fcda4,_0x32e616=this[_0x52138d(0x1ab)](_0x52138d(0x1ae),_0x52138d(0x1d6),{'id':_0x5c83f2,'group':_0x3ed9f7});return{'getConversation':async()=>(await _0x32e616[_0x52138d(0x202)])[_0x52138d(0x1c9)](),'abortController':_0x32e616[_0x52138d(0x218)]};}[_0x3fcda4(0x1e3)]({message:_0x4f9daa,conversationId:_0x7396e1,parts:_0x3ec6bf,capabilities:_0x462bea,model:_0x19b006,quickActionData:_0x511e8a}){const _0x506642=_0x3fcda4,_0x2a58ff={..._0x511e8a&&{'quickActionData':_0x511e8a}},_0x325581={'prompt':_0x4f9daa,'content':_0x3ec6bf,'model':_0x19b006,..._0x462bea&&{'capabilities':_0x462bea},...Object[_0x506642(0x1a1)](_0x2a58ff)[_0x506642(0x1e8)]>0x0&&{'attributes':_0x2a58ff}},_0x596e8a=this[_0x506642(0x1ab)](_0x506642(0x198)+_0x7396e1+_0x506642(0x1a8),_0x506642(0x1d6),_0x325581);return{'getStream':async()=>{const _0x226dc0=_0x506642,_0x52fb66=(await _0x596e8a[_0x226dc0(0x202)])[_0x226dc0(0x1d3)];return this[_0x226dc0(0x217)](_0x52fb66);},'abortController':_0x596e8a[_0x506642(0x218)]};}[_0x3fcda4(0x1c6)]({content:_0x3250c0,message:_0x1247b3,model:_0x434aa0,outputFormat:_0x5cb3f5}){const _0x59795b=_0x3fcda4,_0x2b652f={'content':[{'type':_0x59795b(0x1f4),'content':_0x3250c0}],'prompt':_0x1247b3,'model':_0x434aa0,'outputFormat':_0x5cb3f5},_0x13edcb=this[_0x59795b(0x1ab)](_0x59795b(0x21b),_0x59795b(0x1d6),_0x2b652f);return{'getStream':async()=>{const _0x4e89e3=_0x59795b,_0x58d5a2=(await _0x13edcb[_0x4e89e3(0x202)])[_0x4e89e3(0x1d3)];return this[_0x4e89e3(0x217)](_0x58d5a2);},'abortController':_0x13edcb[_0x59795b(0x218)]};}[_0x3fcda4(0x1f2)]({actionName:_0x378935,content:_0x5323c0,args:_0x517f5b}){const _0x2932c4=_0x3fcda4,_0x20c4e7={'content':[{'type':_0x2932c4(0x1f4),'content':_0x5323c0}],'args':_0x517f5b},_0x541697=this[_0x2932c4(0x1ab)](_0x2932c4(0x1bf)+_0x378935+_0x2932c4(0x1f5),_0x2932c4(0x1d6),_0x20c4e7);return{'getStream':async()=>{const _0xedcd8d=_0x2932c4,_0x301ed2=(await _0x541697[_0xedcd8d(0x202)])[_0xedcd8d(0x1d3)];return this[_0xedcd8d(0x217)](_0x301ed2);},'abortController':_0x541697[_0x2932c4(0x218)]};}[_0x3fcda4(0x214)](_0x1bf4d3,_0x1ebeb3,_0x3c2418){const _0x20591d=_0x3fcda4,_0x537429=new FormData();_0x537429[_0x20591d(0x1bb)](_0x20591d(0x1cc),_0x1ebeb3,_0x1ebeb3[_0x20591d(0x18f)]),_0x3c2418&&_0x537429[_0x20591d(0x1bb)](_0x20591d(0x1b4),JSON[_0x20591d(0x1c7)](_0x3c2418));const _0x3950c6=this[_0x20591d(0x1ab)](_0x20591d(0x198)+_0x1bf4d3+_0x20591d(0x1b5),_0x20591d(0x1d6),_0x537429);return{'getId':async()=>(await _0x3950c6[_0x20591d(0x202)])[_0x20591d(0x1c9)](),'abortController':_0x3950c6[_0x20591d(0x218)]};}[_0x3fcda4(0x194)](_0x375cb9,_0x53b319){const _0x5aa21a=_0x3fcda4,_0x12e988=this[_0x5aa21a(0x1ab)](_0x5aa21a(0x198)+_0x375cb9+_0x5aa21a(0x1fc)+_0x53b319,_0x5aa21a(0x1a2));return{'getDocument':async()=>(await _0x12e988[_0x5aa21a(0x202)])[_0x5aa21a(0x1c9)](),'abortController':_0x12e988[_0x5aa21a(0x218)]};}[_0x3fcda4(0x1ee)](_0x3f05cf,_0x2b2f67,_0x5cd121){const _0x101130=_0x3fcda4,_0x4ddd47={'content':_0x2b2f67};_0x5cd121&&(_0x4ddd47[_0x101130(0x1b4)]=_0x5cd121);const _0x19c94d=this[_0x101130(0x1ab)](_0x101130(0x198)+_0x3f05cf+_0x101130(0x203),_0x101130(0x1d6),_0x4ddd47);return{'getId':async()=>(await _0x19c94d[_0x101130(0x202)])[_0x101130(0x1c9)](),'abortController':_0x19c94d[_0x101130(0x218)]};}[_0x3fcda4(0x19b)](_0x3746cb,_0x1685a1){const _0x15ba7b=_0x3fcda4,_0x35b473=new URLSearchParams();_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x1e7),_0x15ba7b(0x1f7)),_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x1d5),_0x15ba7b(0x18d)),_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x204),_0x3746cb),_0x1685a1&&_0x35b473[_0x15ba7b(0x1bb)](_0x15ba7b(0x209),_0x1685a1);const _0x55410b=this[_0x15ba7b(0x1ab)](_0x15ba7b(0x1a9)+_0x35b473[_0x15ba7b(0x1df)](),_0x15ba7b(0x1a2));return{'getConversations':async()=>{const _0x419357=_0x15ba7b,_0x559b71=await _0x55410b[_0x419357(0x202)];return(await _0x559b71[_0x419357(0x1c9)]())[_0x419357(0x1c3)];},'abortController':_0x55410b[_0x15ba7b(0x218)]};}[_0x3fcda4(0x1eb)](_0x2748ee){const _0x35aa46=_0x3fcda4,_0x2e5eba=this[_0x35aa46(0x1ab)](_0x35aa46(0x198)+_0x2748ee,_0x35aa46(0x1f3));return{'execute':async()=>{const _0x2c4678=_0x35aa46;await _0x2e5eba[_0x2c4678(0x202)];},'abortController':_0x2e5eba[_0x35aa46(0x218)]};}[_0x3fcda4(0x191)](_0x32682b,_0x1fba8e){const _0x317004=_0x3fcda4,_0x22103a=this[_0x317004(0x1ab)](_0x317004(0x198)+_0x32682b,_0x317004(0x1a3),_0x1fba8e);return{'getResult':async()=>(await _0x22103a[_0x317004(0x202)],_0x1fba8e),'abortController':_0x22103a[_0x317004(0x218)]};}[_0x3fcda4(0x1fd)](_0x4f3747){const _0x353e6a=_0x3fcda4,_0xbb7eaf=this[_0x353e6a(0x1ab)](_0x353e6a(0x198)+_0x4f3747,_0x353e6a(0x1a2));return{'getConversation':async()=>(await _0xbb7eaf[_0x353e6a(0x202)])[_0x353e6a(0x1c9)](),'abortController':_0xbb7eaf[_0x353e6a(0x218)]};}[_0x3fcda4(0x1f9)](_0x59aacd){const _0x540711=_0x3fcda4,_0x2258ed=this[_0x540711(0x1ab)](_0x540711(0x198)+_0x59aacd+_0x540711(0x1a8),_0x540711(0x1a2));return{'getMessages':async()=>{const _0x80edd8=_0x540711,_0x376846=await _0x2258ed[_0x80edd8(0x202)];return(await _0x376846[_0x80edd8(0x1c9)]())[_0x80edd8(0x1c3)];},'abortController':_0x2258ed[_0x540711(0x218)]};}[_0x3fcda4(0x213)](_0x10237e,_0x48ea1c,_0x39c5a3){const _0xdd0d57=_0x3fcda4,_0x349290=this[_0xdd0d57(0x1ab)](_0xdd0d57(0x198)+_0x10237e+_0xdd0d57(0x1b0),_0xdd0d57(0x1d6),{'url':_0x48ea1c,'attributes':_0x39c5a3});return{'getId':async()=>(await _0x349290[_0xdd0d57(0x202)])[_0xdd0d57(0x1c9)](),'abortController':_0x349290[_0xdd0d57(0x218)]};}[_0x3fcda4(0x200)](_0x4ee769='en'){const _0x53c2db=_0x3fcda4,_0x55b701=new URLSearchParams();_0x55b701[_0x53c2db(0x1bb)](_0x53c2db(0x208),_0x4ee769);const _0x40a7f8=_0x53c2db(0x1a0)+_0x55b701[_0x53c2db(0x1df)](),_0x38869d=this[_0x53c2db(0x1ab)](_0x40a7f8,_0x53c2db(0x1a2));return{'list':async()=>await(await _0x38869d[_0x53c2db(0x202)])[_0x53c2db(0x1c9)](),'abortController':_0x38869d[_0x53c2db(0x218)]};}[_0x3fcda4(0x211)](_0x290e4c,_0x2cbe30){const _0x2e182b=_0x3fcda4,_0x361337=this[_0x2e182b(0x1ab)](_0x2e182b(0x198)+_0x290e4c+_0x2e182b(0x196)+_0x2cbe30,_0x2e182b(0x1f3));return{'execute':async()=>{const _0x41bcee=_0x2e182b;await _0x361337[_0x41bcee(0x202)];},'abortController':_0x361337[_0x2e182b(0x218)]};}[_0x3fcda4(0x1ff)](_0x39fb82,_0x3e49f1){const _0x115eb5=_0x3fcda4,_0x30ab68=this[_0x115eb5(0x1ab)](_0x115eb5(0x198)+_0x39fb82+_0x115eb5(0x1fc)+_0x3e49f1,_0x115eb5(0x1f3));return{'execute':async()=>{const _0x4c8d34=_0x115eb5;await _0x30ab68[_0x4c8d34(0x202)];},'abortController':_0x30ab68[_0x115eb5(0x218)]};}[_0x3fcda4(0x1ef)](_0x86adee,_0x355a96){const _0x3fa88f=_0x3fcda4,_0x2617c7=this[_0x3fa88f(0x1ab)](_0x3fa88f(0x198)+_0x86adee+_0x3fa88f(0x20f)+_0x355a96,_0x3fa88f(0x1f3));return{'execute':async()=>{const _0x461ba8=_0x3fa88f;await _0x2617c7[_0x461ba8(0x202)];},'abortController':_0x2617c7[_0x3fa88f(0x218)]};}[_0x3fcda4(0x206)]({reviewName:_0x56c538,content:_0x1b0955,args:_0x4e5ab2}){const _0x3d260a=_0x3fcda4,_0x504aec=this[_0x3d260a(0x1ab)](_0x3d260a(0x1ca)+_0x56c538+_0x3d260a(0x1f5),_0x3d260a(0x1d6),{'content':[{'type':_0x3d260a(0x1f4),'content':_0x1b0955}],'args':_0x4e5ab2});return{'getStream':async()=>{const _0x5582e9=_0x3d260a,_0x548651=(await _0x504aec[_0x5582e9(0x202)])[_0x5582e9(0x1d3)];return this[_0x5582e9(0x217)](_0x548651);},'abortController':_0x504aec[_0x3d260a(0x218)]};}[_0x3fcda4(0x197)]({content:_0x2a5b66,prompt:_0x5e648a,model:_0x5d0e51}){const _0x58ba0c=_0x3fcda4,_0xf347e=this[_0x58ba0c(0x1ab)](_0x58ba0c(0x19c),_0x58ba0c(0x1d6),{'content':[{'type':_0x58ba0c(0x1f4),'content':_0x2a5b66}],'prompt':_0x5e648a,'model':_0x5d0e51});return{'getStream':async()=>{const _0x4eb444=_0x58ba0c,_0xba6589=(await _0xf347e[_0x4eb444(0x202)])[_0x4eb444(0x1d3)];return this[_0x4eb444(0x217)](_0xba6589);},'abortController':_0xf347e[_0x58ba0c(0x218)]};}[_0x3fcda4(0x20a)](_0x3f04e2,_0x441e1a,_0x3deb6d){const _0x432d7e=_0x3fcda4,_0x1026c7=this[_0x432d7e(0x1ab)](_0x432d7e(0x198)+_0x3f04e2+_0x432d7e(0x1e6)+_0x441e1a+_0x432d7e(0x192),_0x432d7e(0x1e4),{'positiveCount':_0x3deb6d[_0x432d7e(0x1d4)],'totalCount':_0x3deb6d[_0x432d7e(0x1a6)],'modificationId':_0x3deb6d[_0x432d7e(0x1b1)]});return{'execute':async()=>{const _0x2be726=_0x432d7e;await _0x1026c7[_0x2be726(0x202)];},'abortController':_0x1026c7[_0x432d7e(0x218)]};}[_0x3fcda4(0x1ec)](_0xf0905,_0x29a2cf,_0x3f637f){const _0x258d3f=_0x3fcda4,_0x4d425a=this[_0x258d3f(0x1ab)](_0x258d3f(0x1bf)+_0xf0905+_0x258d3f(0x1cb)+_0x29a2cf+_0x258d3f(0x192),_0x258d3f(0x1e4),{'positiveCount':_0x3f637f[_0x258d3f(0x1d4)],'totalCount':_0x3f637f[_0x258d3f(0x1a6)]});return{'execute':async()=>{const _0x1a9b7f=_0x258d3f;await _0x4d425a[_0x1a9b7f(0x202)];},'abortController':_0x4d425a[_0x258d3f(0x218)]};}[_0x3fcda4(0x193)](_0xf3bf8,_0x367722){const _0xd4f630=_0x3fcda4,_0x92a657=this[_0xd4f630(0x1ab)](_0xd4f630(0x1fb)+_0xf3bf8+_0xd4f630(0x192),_0xd4f630(0x1e4),{'positiveCount':_0x367722[_0xd4f630(0x1d4)],'totalCount':_0x367722[_0xd4f630(0x1a6)]});return{'execute':async()=>{const _0x35d2f2=_0xd4f630;await _0x92a657[_0x35d2f2(0x202)];},'abortController':_0x92a657[_0xd4f630(0x218)]};}[_0x3fcda4(0x205)](_0x2f107c,_0x5cb066,_0x45c23b,_0x309c3c){const _0x67ecec=_0x3fcda4,_0x2fe165=this[_0x67ecec(0x1ab)](_0x67ecec(0x1ca)+_0x2f107c+_0x67ecec(0x1cb)+_0x5cb066+_0x67ecec(0x192),_0x67ecec(0x1e4),{'positiveCount':_0x45c23b[_0x67ecec(0x1d4)],'totalCount':_0x45c23b[_0x67ecec(0x1a6)],'dataId':_0x309c3c});return{'execute':async()=>{const _0x592223=_0x67ecec;await _0x2fe165[_0x592223(0x202)];},'abortController':_0x2fe165[_0x67ecec(0x218)]};}[_0x3fcda4(0x212)](_0x6f7169,_0x2080d9,_0x4b14d3){const _0x5d29e2=_0x3fcda4,_0x48b752=this[_0x5d29e2(0x1ab)](_0x5d29e2(0x1b9)+_0x6f7169+_0x5d29e2(0x192),_0x5d29e2(0x1e4),{'positiveCount':_0x2080d9[_0x5d29e2(0x1d4)],'totalCount':_0x2080d9[_0x5d29e2(0x1a6)],'dataId':_0x4b14d3});return{'execute':async()=>{const _0x1c43fc=_0x5d29e2;await _0x48b752[_0x1c43fc(0x202)];},'abortController':_0x48b752[_0x5d29e2(0x218)]};}[_0x3fcda4(0x1ab)](_0x43a609,_0x121d0f,_0x3fa836){const _0x4e7679=_0x3fcda4,_0x2d2828=new AbortController(),_0x5e6775=_0x3fa836 instanceof FormData,_0x1b6f65={'Authorization':_0x4e7679(0x1fa)+this[_0x4e7679(0x19a)]?.[_0x4e7679(0x1b2)]};_0x3fa836&&!_0x5e6775&&(_0x1b6f65[_0x4e7679(0x1cf)]=_0x4e7679(0x20e));const _0x1c0f0b={'method':_0x121d0f,'headers':_0x1b6f65,'signal':_0x2d2828[_0x4e7679(0x219)]};return _0x3fa836&&(_0x1c0f0b[_0x4e7679(0x1d3)]=_0x5e6775?_0x3fa836:JSON[_0x4e7679(0x1c7)](_0x3fa836)),{'request':fetch(''+this[_0x4e7679(0x216)]+_0x43a609,_0x1c0f0b)[_0x4e7679(0x1b7)](_0x526907=>{const _0x2089a9=_0x4e7679;this[_0x2089a9(0x1bd)](_0x526907);})[_0x4e7679(0x1fe)](_0x18dc0b=>_0x18dc0b['ok']?_0x18dc0b:_0x18dc0b[_0x4e7679(0x1c9)]()[_0x4e7679(0x1fe)](_0x359d98=>{const _0xfbc43=_0x4e7679;throw{'url':this[_0xfbc43(0x216)],'path':_0x43a609,'method':_0x121d0f,'body':_0x3fa836,'status':(_0x18dc0b||{})[_0xfbc43(0x1ad)],'statusText':(_0x18dc0b||{})[_0xfbc43(0x1c1)],'code':_0x359d98[_0xfbc43(0x1e2)],'message':_0x359d98[_0xfbc43(0x1c2)],'traceId':_0x359d98[_0xfbc43(0x19e)]};})),'abortController':_0x2d2828};}async*[_0x3fcda4(0x217)](_0x343ee2){const _0x4ec2ad=_0x3fcda4,_0x259942=[],_0x256d09=_0x343ee2[_0x4ec2ad(0x1c8)](),_0x542edf=_0x712941({'onError':_0x143b3f=>{const _0x3b221d=_0x4ec2ad;this[_0x3b221d(0x1bd)](_0x143b3f);},'onEvent':_0x91b9fe=>{const _0x342022=_0x4ec2ad;_0x91b9fe[_0x342022(0x1db)]=JSON[_0x342022(0x1dc)](_0x91b9fe[_0x342022(0x1db)]),_0x259942[_0x342022(0x18e)](_0x91b9fe);}});try{let _0xa71a30=!0x1;for(;!_0xa71a30;){const {done:_0x51b449,value:_0x124da5}=await _0x256d09[_0x4ec2ad(0x1c4)]();_0x51b449&&(_0xa71a30=!0x0),_0x542edf[_0x4ec2ad(0x190)](this[_0x4ec2ad(0x1da)][_0x4ec2ad(0x1ba)](_0x124da5,{'stream':!0x0})),yield*_0x259942,_0x259942[_0x4ec2ad(0x1e8)]=0x0;}}catch(_0x3b9b76){this[_0x4ec2ad(0x1bd)](_0x3b9b76);}finally{_0x256d09[_0x4ec2ad(0x195)](),_0x542edf[_0x4ec2ad(0x215)]();}}[_0x3fcda4(0x1bd)](_0x4a53e7){const _0x19c68b=_0x3fcda4;if(_0x4a53e7 instanceof _0x5c9a53)throw _0x4a53e7;if(_0x4a53e7 instanceof Error&&_0x19c68b(0x1af)===_0x4a53e7[_0x19c68b(0x18f)])throw new _0x5c9a53(_0x19c68b(0x1ce),this,{'originalError':_0x4a53e7});throw new _0x5c9a53(_0x19c68b(0x1be),this,{'originalError':_0x4a53e7});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x27f1(){const _0x4a6b2f=['editors','conversion','substring','toView','element','getSelection','getSelectionText',':start>','sort','isContent','processor','722047RUzOjE','emptyElement','createUIElement','9482896YKhyqa','end','trim','_sessionId','convertAiChatSelectionMarker','getSelectedContent','isPremiumPlugin','pluginName','isBefore','listenTo','length','ai-selection:','getDocumentData','removeAllRanges','2SczDrS','createRange','_displayedFakeSelectionId','$textProxy','isOfficialPlugin','AIEditing','push','_displayedFakeSelectionLocked','dataDowncast','view',':start></','from','isAfter','markerName','ck-ai-assistant-ui_theme','start','157094lavePF','showFakeVisualSelection','RealTimeCollaborationClient','hideFakeVisualSelection','824510KnQjCT','data-id','12dXINhH','fromCharCode','sessionId','join','ck-fake-ai-selection','schema','2230944PSmicp','14003217jgeRNa','indexOf','getLastMatchingPosition','plugins','name','modelToViewWithIds','selection','removeMarker','getChildren','containerElement','get','model','data','change','getRoot','editing','markerToElement','isAtEnd','_nextDataId','version','ai-selection',':end></','getWalker','_integrateEditor','_setDataIdsOnChildren','toData','getMarkersGroup','random','ready','editingDowncast',':end>','context','add','floor','for','markerToHighlight','_getMarkersInDocumentOrder','afterInit','isOpening','createRangeIn','document','addMarker','setAttribute','markers','has','getStart','2574618theGRC'];_0x27f1=function(){return _0x4a6b2f;};return _0x27f1();}function _0x27dc(_0xfeee84,_0x198ebf){const _0x27f15d=_0x27f1();return _0x27dc=function(_0x27dc0a,_0x2d7128){_0x27dc0a=_0x27dc0a-0x118;let _0x433e59=_0x27f15d[_0x27dc0a];return _0x433e59;},_0x27dc(_0xfeee84,_0x198ebf);}const _0x4a9d56=_0x27dc;(function(_0x5d183b,_0xa977f2){const _0x3c1095=_0x27dc,_0x592dbf=_0x5d183b();while(!![]){try{const _0xb238d8=-parseInt(_0x3c1095(0x129))/0x1*(parseInt(_0x3c1095(0x13a))/0x2)+parseInt(_0x3c1095(0x11d))/0x3+-parseInt(_0x3c1095(0x150))/0x4*(-parseInt(_0x3c1095(0x14e))/0x5)+parseInt(_0x3c1095(0x156))/0x6+parseInt(_0x3c1095(0x14a))/0x7+parseInt(_0x3c1095(0x12c))/0x8+-parseInt(_0x3c1095(0x157))/0x9;if(_0xb238d8===_0xa977f2)break;else _0x592dbf['push'](_0x592dbf['shift']());}catch(_0x37c849){_0x592dbf['push'](_0x592dbf['shift']());}}}(_0x27f1,0x9fcf4));import{ViewDowncastWriter as _0x109300}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x54291a,Editor as _0x31893e}from'ckeditor5/src/core.js';import{uid as _0xf687ec}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0xce1eec}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4a9d56(0x16b);export class AIEditing extends _0x54291a{[_0x4a9d56(0x13c)]=null;[_0x4a9d56(0x141)]=!0x1;[_0x4a9d56(0x12f)];static get[_0x4a9d56(0x133)](){const _0x579072=_0x4a9d56;return _0x579072(0x13f);}static get[_0x4a9d56(0x13e)](){return!0x0;}static get[_0x4a9d56(0x132)](){return!0x0;}get[_0x4a9d56(0x152)](){const _0xbafdff=_0x4a9d56;if(!this[_0xbafdff(0x12f)]){const _0x1b368=_0xce1eec(this[_0xbafdff(0x176)]),_0x16f52d=_0x1b368[_0xbafdff(0x15a)][_0xbafdff(0x11b)](_0xbafdff(0x14c))&&_0x1b368[_0xbafdff(0x15a)][_0xbafdff(0x161)](_0xbafdff(0x14c))[_0xbafdff(0x152)];this[_0xbafdff(0x12f)]=_0x16f52d||_0xf687ec();}return this[_0xbafdff(0x12f)];}[_0x4a9d56(0x138)](){const _0x63f308=_0x4a9d56,_0x38f0c3=_0xce1eec(this[_0x63f308(0x176)]),_0xa3aab3=_0x38f0c3[_0x63f308(0x162)],_0x252ec2=_0x38f0c3[_0x63f308(0x163)][_0x63f308(0x121)](_0xa3aab3[_0x63f308(0x17f)][_0x63f308(0x165)](),{'convertAiChatSelectionMarker':!0x0}),_0x1c359a=new _0x109300(_0x38f0c3[_0x63f308(0x166)][_0x63f308(0x143)][_0x63f308(0x17f)]);this[_0x63f308(0x16f)](_0x252ec2,_0x1c359a);let _0x40e76c=_0x38f0c3[_0x63f308(0x163)][_0x63f308(0x128)][_0x63f308(0x170)](_0x252ec2);const _0x5d50fc=this[_0x63f308(0x17b)](),_0x5e306d=[];for(const _0x3613bc of _0x5d50fc){const _0x5521e2='<'+_0x3613bc[_0x63f308(0x15b)]+_0x63f308(0x144)+_0x3613bc[_0x63f308(0x15b)]+_0x63f308(0x125),_0x18c6f5=_0x40e76c[_0x63f308(0x158)](_0x5521e2);_0x40e76c=_0x40e76c[_0x63f308(0x120)](0x0,_0x18c6f5)+_0x40e76c[_0x63f308(0x120)](_0x18c6f5+_0x5521e2[_0x63f308(0x136)]);const _0x527704='<'+_0x3613bc[_0x63f308(0x15b)]+_0x63f308(0x16c)+_0x3613bc[_0x63f308(0x15b)]+_0x63f308(0x175),_0x2b5010=_0x40e76c[_0x63f308(0x158)](_0x527704);_0x40e76c=_0x40e76c[_0x63f308(0x120)](0x0,_0x2b5010)+_0x40e76c[_0x63f308(0x120)](_0x2b5010+_0x527704[_0x63f308(0x136)]),_0x5e306d[_0x63f308(0x140)]({'markerName':_0x3613bc[_0x63f308(0x15b)],'start':_0x18c6f5,'end':_0x2b5010,'htmlFragment':_0x40e76c[_0x63f308(0x120)](_0x18c6f5,_0x2b5010)});}return{'content':_0x40e76c,'version':_0x38f0c3[_0x63f308(0x162)][_0x63f308(0x17f)][_0x63f308(0x16a)],'sessionId':this[_0x63f308(0x152)],'selections':_0x5e306d};}async[_0x4a9d56(0x17c)](){const _0x542e9a=_0x4a9d56;this[_0x542e9a(0x176)]instanceof _0x31893e?this[_0x542e9a(0x16e)](this[_0x542e9a(0x176)]):this[_0x542e9a(0x135)](this[_0x542e9a(0x176)][_0x542e9a(0x11e)],_0x542e9a(0x177),(_0x3c7147,_0x36709e)=>{const _0x444727=_0x542e9a;_0x36709e['on'](_0x444727(0x173),()=>{const _0x11a247=_0x444727;this[_0x11a247(0x16e)](_0x36709e);});});}[_0x4a9d56(0x16e)](_0x7416be){const _0x1f94d0=_0x4a9d56;_0x7416be[_0x1f94d0(0x11f)][_0x1f94d0(0x179)](_0x1f94d0(0x174))[_0x1f94d0(0x17a)]({'model':_0x1f94d0(0x16b),'view':{'classes':[_0x1f94d0(0x154),_0x1f94d0(0x148)],'priority':0xc}}),_0x7416be[_0x1f94d0(0x11f)][_0x1f94d0(0x179)](_0x1f94d0(0x142))[_0x1f94d0(0x167)]({'model':_0x1f94d0(0x16b),'view':(_0x48777a,{writer:_0x2d9e09,options:_0x5e9682})=>_0x5e9682[_0x1f94d0(0x130)]?_0x2d9e09[_0x1f94d0(0x12b)](_0x48777a[_0x1f94d0(0x147)]+':'+(_0x48777a[_0x1f94d0(0x17d)]?_0x1f94d0(0x149):_0x1f94d0(0x12d))):null});}[_0x4a9d56(0x14b)](_0xb8b01c,_0x168ac8,_0x1b1dc6=!0x1,_0x430fff=!0x1){const _0x469307=_0x4a9d56;if(this[_0x469307(0x141)]&&!_0x430fff)return!0x1;const _0x2e91e0=_0xce1eec(this[_0x469307(0x176)])[_0x469307(0x162)];return _0x2e91e0[_0x469307(0x164)](_0x5587b7=>{const _0x3957c3=_0x469307;this[_0x3957c3(0x13c)]&&this[_0x3957c3(0x14d)](this[_0x3957c3(0x13c)]),this[_0x3957c3(0x13c)]=_0x168ac8,this[_0x3957c3(0x141)]=_0x1b1dc6;let _0x6f8d12=0x0;for(let _0x58b7c7 of _0xb8b01c){const _0x5ade9a=_0x3957c3(0x137)+_0x6f8d12;if(_0x58b7c7[_0x3957c3(0x149)][_0x3957c3(0x168)]){const _0x143a8d=_0x58b7c7[_0x3957c3(0x149)][_0x3957c3(0x159)](({item:_0x37ffe0})=>!_0x2e91e0[_0x3957c3(0x155)][_0x3957c3(0x127)](_0x37ffe0),{'boundaries':_0x58b7c7});_0x58b7c7=_0x5587b7[_0x3957c3(0x13b)](_0x143a8d,_0x58b7c7[_0x3957c3(0x12d)]);}_0x5587b7[_0x3957c3(0x118)](_0x5ade9a,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x58b7c7}),_0x6f8d12++;}}),window[_0x469307(0x123)]()?.[_0x469307(0x139)](),!0x0;}[_0x4a9d56(0x14d)](_0x3773a1){const _0x3b751e=_0x4a9d56;if(this[_0x3b751e(0x13c)]!=_0x3773a1)return!0x1;this[_0x3b751e(0x13c)]=null,this[_0x3b751e(0x141)]=!0x1;const _0x4aceac=_0xce1eec(this[_0x3b751e(0x176)]),_0x1f6d5d=_0x4aceac[_0x3b751e(0x162)][_0x3b751e(0x11a)][_0x3b751e(0x171)](_0x3b751e(0x16b));return _0x4aceac[_0x3b751e(0x162)][_0x3b751e(0x164)](_0x1a172b=>{const _0x5e601b=_0x3b751e;for(const _0x33e155 of _0x1f6d5d)_0x1a172b[_0x5e601b(0x15e)](_0x33e155);}),!0x0;}[_0x4a9d56(0x15c)](_0xee629f){const _0xafc825=_0x4a9d56,_0x4f7485=_0xce1eec(this[_0xafc825(0x176)]),_0x34188a=_0x4f7485[_0xafc825(0x163)][_0xafc825(0x121)](_0xee629f),_0x14e52a=new _0x109300(_0x4f7485[_0xafc825(0x166)][_0xafc825(0x143)][_0xafc825(0x17f)]);return this[_0xafc825(0x16f)](_0x34188a,_0x14e52a),_0x34188a;}[_0x4a9d56(0x16f)](_0x48e844,_0x536731){const _0x2827f0=_0x4a9d56;let _0x1a4995=!0x1;const _0x162546=new Set();for(const _0x137fc8 of _0x48e844[_0x2827f0(0x15f)]()){const _0x2ed194=_0x137fc8['is'](_0x2827f0(0x12a))||_0x137fc8['is'](_0x2827f0(0x160));if(!_0x137fc8['is'](_0x2827f0(0x122)))continue;(this[_0x2827f0(0x16f)](_0x137fc8,_0x536731)||_0x2ed194)&&(_0x536731[_0x2827f0(0x119)](_0x2827f0(0x14f),this[_0x2827f0(0x169)](_0x162546),_0x137fc8),_0x1a4995=!0x0);}return _0x1a4995;}[_0x4a9d56(0x169)](_0x4479f5){const _0x54c254=_0x4a9d56;let _0x4b1670;do{_0x4b1670='';for(let _0x1aaeda=0x0;_0x1aaeda<0x4;_0x1aaeda++)_0x4b1670+=String[_0x54c254(0x151)](0x61+Math[_0x54c254(0x178)](0x1a*Math[_0x54c254(0x172)]()));}while(_0x4479f5[_0x54c254(0x11b)](_0x4b1670));return _0x4479f5[_0x54c254(0x177)](_0x4b1670),_0x4b1670;}[_0x4a9d56(0x124)](){const _0x155b62=_0x4a9d56,{model:_0x59ae8b}=_0xce1eec(this[_0x155b62(0x176)]),_0x3e5801=_0x59ae8b[_0x155b62(0x17f)][_0x155b62(0x15d)],_0x395e8a=_0x59ae8b[_0x155b62(0x131)](_0x3e5801),_0x3ef01a=[],_0x5b7ddf=_0x59ae8b[_0x155b62(0x17e)](_0x395e8a)[_0x155b62(0x16d)]();for(const {item:_0x4377f7}of _0x5b7ddf)_0x4377f7['is'](_0x155b62(0x13d))?_0x3ef01a[_0x155b62(0x140)](_0x4377f7[_0x155b62(0x163)]):_0x4377f7['is'](_0x155b62(0x122))&&_0x3ef01a[_0x155b62(0x136)]>0x0&&'\x20'!==_0x3ef01a[_0x3ef01a[_0x155b62(0x136)]-0x1]&&_0x3ef01a[_0x155b62(0x140)]('\x20');return'\x22'+_0x3ef01a[_0x155b62(0x153)]('')[_0x155b62(0x12e)]()+'\x22';}[_0x4a9d56(0x17b)](){const _0xfb2eca=_0x4a9d56,_0x4f02f2=_0xce1eec(this[_0xfb2eca(0x176)])[_0xfb2eca(0x162)];return Array[_0xfb2eca(0x145)](_0x4f02f2[_0xfb2eca(0x11a)][_0xfb2eca(0x171)](_0xfb2eca(0x16b)))[_0xfb2eca(0x126)]((_0x1e6320,_0x58635b)=>_0x1e6320[_0xfb2eca(0x11c)]()[_0xfb2eca(0x134)](_0x58635b[_0xfb2eca(0x11c)]())?-0x1:_0x1e6320[_0xfb2eca(0x11c)]()[_0xfb2eca(0x146)](_0x58635b[_0xfb2eca(0x11c)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1626c2=_0x2cb1;(function(_0x483ab4,_0x57f457){const _0x47a1e6=_0x2cb1,_0x2262f7=_0x483ab4();while(!![]){try{const _0x3f81d3=-parseInt(_0x47a1e6(0x13b))/0x1+-parseInt(_0x47a1e6(0x12a))/0x2+parseInt(_0x47a1e6(0x132))/0x3*(parseInt(_0x47a1e6(0x12d))/0x4)+-parseInt(_0x47a1e6(0x129))/0x5*(-parseInt(_0x47a1e6(0x12b))/0x6)+-parseInt(_0x47a1e6(0x12e))/0x7*(-parseInt(_0x47a1e6(0x12f))/0x8)+parseInt(_0x47a1e6(0x127))/0x9+-parseInt(_0x47a1e6(0x126))/0xa*(-parseInt(_0x47a1e6(0x133))/0xb);if(_0x3f81d3===_0x57f457)break;else _0x2262f7['push'](_0x2262f7['shift']());}catch(_0x3d511d){_0x2262f7['push'](_0x2262f7['shift']());}}}(_0x4108,0x88b47));import{EmitterMixin as _0x1f0a35}from'ckeditor5/src/utils.js';function _0x2cb1(_0xfad502,_0x1af3f5){const _0x41086c=_0x4108();return _0x2cb1=function(_0x2cb16,_0x12deb8){_0x2cb16=_0x2cb16-0x126;let _0x230b98=_0x41086c[_0x2cb16];return _0x230b98;},_0x2cb1(_0xfad502,_0x1af3f5);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x1626c2(0x13f)];function _0x4108(){const _0x221063=['init','reset','setWebSearch','_isWebSearchEnabled','reasoning','isReasoningEnabled','318734OJdXlG','toggleWebSearch','fire','webSearch','capabilitiesUpdated','getCapabilitiesConfig','470RjPmAh','7012017tIibJH','getCapabilitiesRequestData','223865TPlihM','1788034xKvijy','12xzOGTV','_isReasoningEnabled','16gMwFgT','203PrbGNW','28312RMPNIO','isWebSearchEnabled','toggleReasoning','257718FaHaBe','107140TcEYTM','setReasoning'];_0x4108=function(){return _0x221063;};return _0x4108();}export class AICapabilities extends _0x1f0a35(){[_0x1626c2(0x138)];[_0x1626c2(0x12c)];constructor(){const _0xe165f4=_0x1626c2;super(),this[_0xe165f4(0x138)]=!0x1,this[_0xe165f4(0x12c)]=!0x1;}[_0x1626c2(0x135)](){const _0xf72761=_0x1626c2;this[_0xf72761(0x136)]();}[_0x1626c2(0x136)](){const _0x103fb9=_0x1626c2;this[_0x103fb9(0x137)](!0x1),this[_0x103fb9(0x134)](!0x1);}[_0x1626c2(0x140)](){const _0x17c860=_0x1626c2;return{'isWebSearchEnabled':this[_0x17c860(0x138)],'isReasoningEnabled':this[_0x17c860(0x12c)]};}static[_0x1626c2(0x128)](_0x14e171){const _0x4dc872=_0x1626c2,_0x4188cd={};return _0x14e171&&_0x14e171[_0x4dc872(0x130)]&&(_0x4188cd[_0x4dc872(0x13e)]={}),_0x14e171&&_0x14e171[_0x4dc872(0x13a)]&&(_0x4188cd[_0x4dc872(0x139)]={}),_0x4188cd;}[_0x1626c2(0x13c)](){const _0x1e189e=_0x1626c2;this[_0x1e189e(0x137)](!this[_0x1e189e(0x138)]);}[_0x1626c2(0x131)](){const _0x1e6bda=_0x1626c2;this[_0x1e6bda(0x134)](!this[_0x1e6bda(0x12c)]);}[_0x1626c2(0x137)](_0x3e22d7){const _0x1aaffc=_0x1626c2;_0x3e22d7!==this[_0x1aaffc(0x138)]&&(this[_0x1aaffc(0x138)]=_0x3e22d7,this[_0x1aaffc(0x13d)](_0x1aaffc(0x13f),this[_0x1aaffc(0x140)]()));}[_0x1626c2(0x134)](_0x452fe1){const _0x592d54=_0x1626c2;_0x452fe1!==this[_0x592d54(0x12c)]&&(this[_0x592d54(0x12c)]=_0x452fe1,this[_0x592d54(0x13d)](_0x592d54(0x13f),this[_0x592d54(0x140)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x26072d,_0x35da7a){var _0x2643d6=_0x7061,_0x43f516=_0x26072d();while(!![]){try{var _0x42ce18=-parseInt(_0x2643d6(0x1db))/0x1*(parseInt(_0x2643d6(0x1e7))/0x2)+-parseInt(_0x2643d6(0x1e6))/0x3+-parseInt(_0x2643d6(0x1e2))/0x4+-parseInt(_0x2643d6(0x1dd))/0x5*(-parseInt(_0x2643d6(0x1d5))/0x6)+-parseInt(_0x2643d6(0x1e8))/0x7+-parseInt(_0x2643d6(0x1d8))/0x8*(parseInt(_0x2643d6(0x1e5))/0x9)+-parseInt(_0x2643d6(0x1d7))/0xa*(-parseInt(_0x2643d6(0x1e3))/0xb);if(_0x42ce18===_0x35da7a)break;else _0x43f516['push'](_0x43f516['shift']());}catch(_0x45cd33){_0x43f516['push'](_0x43f516['shift']());}}}(_0xfc13,0x77c2d));export var AIContextItemType;!function(_0xac5c28){var _0x3c19c0=_0x7061;_0xac5c28[_0x3c19c0(0x1e9)]=_0x3c19c0(0x1d6),_0xac5c28[_0x3c19c0(0x1da)]=_0x3c19c0(0x1de),_0xac5c28[_0x3c19c0(0x1d3)]=_0x3c19c0(0x1e0),_0xac5c28[_0x3c19c0(0x1d4)]=_0x3c19c0(0x1e1),_0xac5c28[_0x3c19c0(0x1d2)]=_0x3c19c0(0x1dc);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x7061(_0x14ec51,_0x30fff1){var _0xfc1305=_0xfc13();return _0x7061=function(_0x7061f4,_0x2aa257){_0x7061f4=_0x7061f4-0x1d2;var _0x10a768=_0xfc1305[_0x7061f4];return _0x10a768;},_0x7061(_0x14ec51,_0x30fff1);}function _0xfc13(){var _0x4592ec=['web-resource','text','1496540SNbRTS','5104eXcXrN','MARKDOWN','81MZJpvI','1382346eSdRGZ','2hwumng','3559276inrmuE','FILE','HTML','SELECTION','URL','TEXT','102KpBBsd','file','55750tpBkre','515384qGeiCd','markdown','DOCUMENT','478931yImoVy','selection','89960DziUTN','document','html'];_0xfc13=function(){return _0x4592ec;};return _0xfc13();}!function(_0xd6fc07){var _0x4febff=_0x7061;_0xd6fc07[_0x4febff(0x1d4)]=_0x4febff(0x1e1),_0xd6fc07[_0x4febff(0x1e4)]=_0x4febff(0x1d9),_0xd6fc07[_0x4febff(0x1ea)]=_0x4febff(0x1df);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|