@ckeditor/ckeditor5-ai 47.4.0-alpha.0 → 47.4.0-alpha.2
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
|
-
|
|
23
|
+
const _0x46e6e3=_0x13c0;(function(_0x14676e,_0x34f1e6){const _0x23ca83=_0x13c0,_0x3e7af6=_0x14676e();while(!![]){try{const _0x5070f0=parseInt(_0x23ca83(0xaa))/0x1+-parseInt(_0x23ca83(0x92))/0x2*(-parseInt(_0x23ca83(0xa7))/0x3)+-parseInt(_0x23ca83(0xb6))/0x4*(-parseInt(_0x23ca83(0xa8))/0x5)+-parseInt(_0x23ca83(0x8a))/0x6*(-parseInt(_0x23ca83(0xac))/0x7)+parseInt(_0x23ca83(0x87))/0x8*(parseInt(_0x23ca83(0xa1))/0x9)+parseInt(_0x23ca83(0x90))/0xa*(-parseInt(_0x23ca83(0x8f))/0xb)+-parseInt(_0x23ca83(0x8e))/0xc;if(_0x5070f0===_0x34f1e6)break;else _0x3e7af6['push'](_0x3e7af6['shift']());}catch(_0x1b5f56){_0x3e7af6['push'](_0x3e7af6['shift']());}}}(_0x3f98,0x1a2ef));import{EmitterMixin as _0x275ba7}from'ckeditor5/src/utils.js';function _0x13c0(_0xf6b0bb,_0x4b4feb){const _0x3f98b7=_0x3f98();return _0x13c0=function(_0x13c0d6,_0x51bbe1){_0x13c0d6=_0x13c0d6-0x86;let _0x8f3937=_0x3f98b7[_0x13c0d6];return _0x8f3937;},_0x13c0(_0xf6b0bb,_0x4b4feb);}import{AIChatHistoryItem as _0x5b3824}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x275ba7(){[_0x46e6e3(0x9d)]=[];[_0x46e6e3(0xb5)];[_0x46e6e3(0xa3)];constructor({connector:_0x50e8a1,group:_0x110cd4}){const _0x13c958=_0x46e6e3;super(),this[_0x13c958(0xb5)]=_0x50e8a1,this[_0x13c958(0xa3)]=_0x110cd4;}async[_0x46e6e3(0x8b)](){const _0x17a6df=_0x46e6e3;try{const _0x5dfdad=this[_0x17a6df(0xb5)][_0x17a6df(0x9b)](this[_0x17a6df(0xa3)]),_0x147fa1=await _0x5dfdad[_0x17a6df(0x97)]();this[_0x17a6df(0xb2)](_0x147fa1);}catch(_0xe39848){this[_0x17a6df(0x88)](_0x17a6df(0xb4),{'error':_0xe39848,'operation':_0x17a6df(0x8b)});}}[_0x46e6e3(0x8c)](_0x1ed1cb){const _0x480a28=_0x46e6e3;this[_0x480a28(0x9d)][_0x480a28(0xa4)](_0x1ed1cb);}async[_0x46e6e3(0xa5)](_0x24702b){const _0x56c064=_0x46e6e3,_0x3e4abe=this[_0x56c064(0x9d)][_0x56c064(0x9f)](_0x257698=>_0x257698['id']===_0x24702b);if(-0x1===_0x3e4abe)return!0x1;try{return await this[_0x56c064(0xb5)][_0x56c064(0xad)](_0x24702b)[_0x56c064(0x86)](),this[_0x56c064(0x9d)][_0x56c064(0xb0)](_0x3e4abe,0x1),this[_0x56c064(0x88)](_0x56c064(0x91),{'itemId':_0x24702b}),!0x0;}catch(_0x47520f){return this[_0x56c064(0x88)](_0x56c064(0xb4),{'error':_0x47520f,'operation':_0x56c064(0xa5),'itemId':_0x24702b}),!0x1;}}[_0x46e6e3(0x99)](_0x106d9c){const _0x9b3ed=_0x46e6e3;return this[_0x9b3ed(0x9d)][_0x9b3ed(0x9c)](_0x46c2ce=>_0x46c2ce['id']===_0x106d9c);}async[_0x46e6e3(0x9e)](_0x110005,_0x2a0e8e){const _0x28d742=_0x46e6e3,_0x50fb2e=this[_0x28d742(0x99)](_0x110005);if(!_0x50fb2e)return!0x1;try{return await this[_0x28d742(0xb5)][_0x28d742(0x93)](_0x110005,{'title':_0x2a0e8e})[_0x28d742(0xa2)](),_0x50fb2e[_0x28d742(0xb3)](_0x2a0e8e),this[_0x28d742(0x88)](_0x28d742(0x95),{'itemId':_0x110005,'updates':{'title':_0x2a0e8e}}),!0x0;}catch(_0x3b85e7){return this[_0x28d742(0x88)](_0x28d742(0xb4),{'error':_0x3b85e7,'operation':_0x28d742(0x9e),'itemId':_0x110005}),!0x1;}}async[_0x46e6e3(0x96)](_0xcc75a0,_0x2578b7){const _0x4325e1=_0x46e6e3,_0x40dbd7=this[_0x4325e1(0x99)](_0xcc75a0);if(!_0x40dbd7)return!0x1;try{return await this[_0x4325e1(0xb5)][_0x4325e1(0x93)](_0xcc75a0,{'pinned':_0x2578b7})[_0x4325e1(0xa2)](),_0x40dbd7[_0x4325e1(0x9a)](_0x2578b7),this[_0x4325e1(0x88)](_0x4325e1(0x95),{'itemId':_0xcc75a0,'updates':{'pinned':_0x2578b7}}),!0x0;}catch(_0x5cc7bc){return this[_0x4325e1(0x88)](_0x4325e1(0xb4),{'error':_0x5cc7bc,'operation':_0x4325e1(0x96),'itemId':_0xcc75a0}),!0x1;}}[_0x46e6e3(0xb2)](_0x5be63d){const _0x38e406=_0x46e6e3;try{this[_0x38e406(0x9d)]=[],_0x5be63d[_0x38e406(0xab)](_0x303385=>{const _0x4d3302=_0x38e406;this[_0x4d3302(0x8c)](new _0x5b3824(_0x303385));}),this[_0x38e406(0x88)](_0x38e406(0xb1),{'items':[...this[_0x38e406(0x9d)]]});}catch(_0x771303){this[_0x38e406(0x88)](_0x38e406(0xb4),{'error':_0x771303,'operation':_0x38e406(0xb2)});}}[_0x46e6e3(0xaf)](_0x29930b={}){const _0x4d989d=_0x46e6e3,_0x1f58b7=void 0x0!==_0x29930b[_0x4d989d(0x94)]&&_0x29930b[_0x4d989d(0x94)],_0x2267c2=_0x29930b[_0x4d989d(0xa9)]?new Date(_0x29930b[_0x4d989d(0xa9)][_0x4d989d(0xa6)](),_0x29930b[_0x4d989d(0xa9)][_0x4d989d(0x8d)](),_0x29930b[_0x4d989d(0xa9)][_0x4d989d(0x89)]()):null,_0xb90772=_0x29930b['to']?new Date(_0x29930b['to'][_0x4d989d(0xa6)](),_0x29930b['to'][_0x4d989d(0x8d)](),_0x29930b['to'][_0x4d989d(0x89)]()):null;return this[_0x4d989d(0x9d)][_0x4d989d(0xae)](_0x2708d3=>{const _0x9c77a6=_0x4d989d;if(_0x2708d3[_0x9c77a6(0x94)]!==_0x1f58b7)return!0x1;if(_0xb90772){const _0x4d4774=new Date(_0x2708d3[_0x9c77a6(0xa0)][_0x9c77a6(0xa6)](),_0x2708d3[_0x9c77a6(0xa0)][_0x9c77a6(0x8d)](),_0x2708d3[_0x9c77a6(0xa0)][_0x9c77a6(0x89)]());return _0x2267c2?_0x2267c2[_0x9c77a6(0x98)]()===_0xb90772[_0x9c77a6(0x98)]()?_0x4d4774[_0x9c77a6(0x98)]()===_0x2267c2[_0x9c77a6(0x98)]():_0x4d4774<_0xb90772&&_0x4d4774>=_0x2267c2:_0x4d4774<_0xb90772;}return!0x0;});}}function _0x3f98(){const _0xd9e8f5=['updateTitle','error','connector','8dXneKh','execute','29856GDxGwv','fire','getDate','559590tmunzJ','init','addItem','getMonth','6783444kAyBKW','142043BycfCN','90ScZzIu','itemRemoved','191848bvdQvj','updateConversation','pinned','itemUpdated','updateItemPinned','getConversations','getTime','getItem','updatePinned','fetchConversations','find','items','updateItemTitle','findIndex','createdAt','297fQYNgu','getResult','group','push','removeItem','getFullYear','3tcAKuG','486515YOAfUB','from','188535gFWAiC','map','14QDriAO','deleteConversation','filter','getItems','splice','itemsLoaded','loadItems'];_0x3f98=function(){return _0xd9e8f5;};return _0x3f98();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1100f3=_0x3da2;(function(_0x2305fb,_0x3b2ac1){var _0x159031=_0x3da2,_0x3d8217=_0x2305fb();while(!![]){try{var _0x2d7cb3=parseInt(_0x159031(0x1c4))/0x1+-parseInt(_0x159031(0x1bb))/0x2*(-parseInt(_0x159031(0x1b9))/0x3)+parseInt(_0x159031(0x1b4))/0x4*(parseInt(_0x159031(0x1bc))/0x5)+-parseInt(_0x159031(0x1b3))/0x6+parseInt(_0x159031(0x1c2))/0x7+parseInt(_0x159031(0x1bf))/0x8*(parseInt(_0x159031(0x1b8))/0x9)+parseInt(_0x159031(0x1b7))/0xa*(-parseInt(_0x159031(0x1ba))/0xb);if(_0x2d7cb3===_0x3b2ac1)break;else _0x3d8217['push'](_0x3d8217['shift']());}catch(_0x1c9fa5){_0x3d8217['push'](_0x3d8217['shift']());}}}(_0x4224,0x9f06a));import{ObservableMixin as _0x252a5a}from'ckeditor5/src/utils.js';function _0x4224(){var _0x5e5c65=['2vtBrAo','653680uWObSe','title','updatePinned','16xsiYEL','createdAt','updateTitle','8737148JJPFmn','set','340079fvQFOQ','783888jWwaDm','4gjxXpl','pinned','updatedAt','26230NdpfYU','1301229GlHWvH','3041757RktucB','9394dvzfRX'];_0x4224=function(){return _0x5e5c65;};return _0x4224();}function _0x3da2(_0x51949c,_0x25f13e){var _0x422478=_0x4224();return _0x3da2=function(_0x3da2af,_0x3a3a2a){_0x3da2af=_0x3da2af-0x1b3;var _0x868807=_0x422478[_0x3da2af];return _0x868807;},_0x3da2(_0x51949c,_0x25f13e);}import{escape as _0x595e17}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x252a5a(){['id'];[_0x1100f3(0x1c0)];constructor({id:_0x1de9a5,title:_0x386e4e,createdAt:_0x298b87,updatedAt:_0x693abe,pinned:_0x3631d3}){var _0x194c29=_0x1100f3;super(),this['id']=_0x1de9a5,this[_0x194c29(0x1c0)]=new Date(_0x298b87),this[_0x194c29(0x1c3)](_0x194c29(0x1bd),_0x386e4e),this[_0x194c29(0x1c3)](_0x194c29(0x1b6),_0x693abe?new Date(_0x693abe):null),this[_0x194c29(0x1c3)](_0x194c29(0x1b5),_0x3631d3||!0x1);}[_0x1100f3(0x1c1)](_0x5a9be4){var _0x2a664e=_0x1100f3;this[_0x2a664e(0x1c3)](_0x2a664e(0x1bd),_0x595e17(_0x5a9be4)),this[_0x2a664e(0x1b6)]=new Date();}[_0x1100f3(0x1be)](_0x47179c){var _0x292bb8=_0x1100f3;this[_0x292bb8(0x1c3)](_0x292bb8(0x1b5),_0x47179c),this[_0x292bb8(0x1b6)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const _0xb4da1e=_0x3f9b;(function(_0x40e179,_0x7fbd56){const _0x281a7f=_0x3f9b,_0x45e4f5=_0x40e179();while(!![]){try{const _0x4c788a=parseInt(_0x281a7f(0xa3))/0x1+-parseInt(_0x281a7f(0xd3))/0x2*(-parseInt(_0x281a7f(0xb2))/0x3)+parseInt(_0x281a7f(0xa5))/0x4*(-parseInt(_0x281a7f(0x9d))/0x5)+-parseInt(_0x281a7f(0x91))/0x6+-parseInt(_0x281a7f(0x7e))/0x7*(parseInt(_0x281a7f(0x8b))/0x8)+parseInt(_0x281a7f(0xc3))/0x9*(-parseInt(_0x281a7f(0x99))/0xa)+parseInt(_0x281a7f(0x98))/0xb;if(_0x4c788a===_0x7fbd56)break;else _0x45e4f5['push'](_0x45e4f5['shift']());}catch(_0x8e48ae){_0x45e4f5['push'](_0x45e4f5['shift']());}}}(_0x300e,0x67605));import{ListItemView as _0x2012ed,HighlightedTextView as _0x57f401,ButtonView as _0x2edaf2,ListView as _0x28adcf,IconView as _0x136709,createDropdown as _0x534829,InputTextView as _0x1fa1a9}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x5d19d0,IconPin as _0x4068c5,IconCheck as _0x512e20,IconCancel as _0x232200}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x18e1aa,ConfirmMixin as _0x43a411}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x19174d}from'es-toolkit/compat';import{AISpinnerView as _0x57c652}from'../../aicore/ui/aispinner.js';function _0x3f9b(_0x4a5ede,_0xf91981){const _0x300e28=_0x300e();return _0x3f9b=function(_0x3f9b7f,_0x397b0c){_0x3f9b7f=_0x3f9b7f-0x76;let _0x537bbd=_0x300e28[_0x3f9b7f];return _0x537bbd;},_0x3f9b(_0x4a5ede,_0xf91981);}import{getTranslation as _0x5ac6af}from'../../aicore/utils/common-translations.js';function _0x300e(){const _0x2d2058=['ck-ai-chat-history__item-date','AI_CHAT_HISTORY_ACCEPT','focus','setConversationPinned','ck-ai-chat-history__item-actions','bindTemplate','17693819TbXoWg','67910dkDMGq','isEdit','bind','setTemplate','155bvyoHE','updateTitle','ck-ai-chat-history__item--edit','showConfirm','buttonView','editConversationTitle','45407nWOUyP','clear','16716QhNSjm','highlightText','ck-ai-loader','AI_CHAT_HISTORY_REMOVE_CONFIRM','_createSpinnerView','label','ck-confirm-view-cancel','match','_createPinButtonView','AI_CHAT_HISTORY_LOADING_RENAMING','span','_createMenuDropdownView','AI_CHAT_HISTORY_LOADING_REMOVING','1937868DDKkWi','add','AI_CHAT_HISTORY_LOADING_PINNING','ck-ai-chat-history__item-content','addMany','isOn','panelView','extendTemplate','ck-ai-chat-history__item-check','change:isEdit','removeConversation','selectConversation','ck-ai-chat-history__item-row','Enter','_commitEditInputValue','isVisible','set','450bselfx','ck-ai-chat-history__item','ck-ai-chat-history__item-title','ck-hidden','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item-main-content','text','_createCancelEditButtonView','string','items','AI_CHAT_HISTORY_PIN_BUTTON','edit:cancel','listitem','then','execute','isMatching','2YvczpZ','_createEditInputView','div','tiny','pinned','_createCheckView','element','click','panelPosition','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_REMOVE','locale','ck-confirm-view-submit','updateLoadingState','56sIQFwz','value','children','_createAcceptEditButtonView','ck-ai-loader__text','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','createCollection','AI_CHAT_HISTORY_CANCEL','_titleView','loadingState','actions','key','ck-ai-chat-history__item--active','711704meWYDc','AI_CHAT_HISTORY_LOADING_UNPINNING','withText','LOADING_LABELS','mainContent','fire','4173960slPVrO'];_0x300e=function(){return _0x2d2058;};return _0x300e();}export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x43a411(_0x2012ed){['id'];static [_0xb4da1e(0x8e)]={'remove':_0xb4da1e(0xb1),'rename':_0xb4da1e(0xae),'pin':_0xb4da1e(0xb4),'unpin':_0xb4da1e(0x8c)};[_0xb4da1e(0x88)];[_0xb4da1e(0x8f)];[_0xb4da1e(0x86)];constructor(_0x5afbcd,_0x58d9ff){const _0xeff1c=_0xb4da1e;super(_0x5afbcd);const _0x2ff8da=this[_0xeff1c(0x97)];this[_0xeff1c(0xc2)](_0xeff1c(0x9a),!0x1),this[_0xeff1c(0xc2)](_0xeff1c(0xc1),!0x0),this[_0xeff1c(0xc2)](_0xeff1c(0xd7),!!_0x58d9ff[_0xeff1c(0xd7)]),this[_0xeff1c(0xc2)](_0xeff1c(0x87),null),this['id']=_0x58d9ff['id'];const {title:_0x1f758c,createdAt:_0x3e49db,active:_0x1f25fb=!0x1}=_0x58d9ff;this[_0xeff1c(0x86)]=new _0x57f401(),this[_0xeff1c(0x86)][_0xeff1c(0xc9)]=_0x1f758c,this[_0xeff1c(0x86)][_0xeff1c(0xb9)]({'attributes':{'class':[_0xeff1c(0xc5)]}});const _0x411de0=this[_0xeff1c(0xd8)](),_0x37f684=this[_0xeff1c(0xad)](_0x5afbcd),_0x3ec07f=this[_0xeff1c(0xb0)](),_0xe99f37=this[_0xeff1c(0xd4)](_0x5afbcd,_0x1f758c),_0x485732=this[_0xeff1c(0x81)](_0x5afbcd,_0xe99f37),_0x337c39=this[_0xeff1c(0xca)](_0x5afbcd,_0xe99f37);this[_0xeff1c(0x88)]=this[_0xeff1c(0x84)](),this[_0xeff1c(0x8f)]=this[_0xeff1c(0x84)](),this[_0xeff1c(0x8f)][_0xeff1c(0xb3)](this[_0xeff1c(0x86)]),this[_0xeff1c(0x88)][_0xeff1c(0xb3)](_0x37f684),this[_0xeff1c(0x88)][_0xeff1c(0xb3)](_0x3ec07f),this['on'](_0xeff1c(0xbb),(_0x32b794,_0x469fe3,_0x13208b)=>{const _0xf47b2=_0xeff1c;this[_0xf47b2(0x88)][_0xf47b2(0xa4)](),this[_0xf47b2(0x8f)][_0xf47b2(0xa4)](),_0x13208b?(this[_0xf47b2(0x88)][_0xf47b2(0xb3)](_0x485732),this[_0xf47b2(0x88)][_0xf47b2(0xb3)](_0x337c39),this[_0xf47b2(0x8f)][_0xf47b2(0xb3)](_0xe99f37),_0xe99f37[_0xf47b2(0x76)][_0xf47b2(0x94)]()):(this[_0xf47b2(0x88)][_0xf47b2(0xb3)](_0x37f684),this[_0xf47b2(0x88)][_0xf47b2(0xb3)](_0x3ec07f),this[_0xf47b2(0x8f)][_0xf47b2(0xb3)](this[_0xf47b2(0x86)]));}),this[_0xeff1c(0x9c)]({'tag':'li','attributes':{'class':[_0xeff1c(0xc4),_0x1f25fb?_0xeff1c(0x8a):'',_0x2ff8da['if'](_0xeff1c(0xc1),_0xeff1c(0xc6),_0x19f5cd=>!_0x19f5cd),_0x2ff8da['if'](_0xeff1c(0x9a),_0xeff1c(0x9f))],'role':_0xeff1c(0xcf)},'children':[{'tag':_0xeff1c(0xaf),'attributes':{'class':[_0xeff1c(0x79)]},'children':[{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xba),_0x2ff8da['if'](_0xeff1c(0x87),_0xeff1c(0xc6),_0x153ca8=>!!_0x153ca8)]},'children':_0x1f25fb?[_0x411de0]:[]},{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xa7),_0x2ff8da['if'](_0xeff1c(0x87),_0xeff1c(0xc6),_0x16d97=>!_0x16d97)]},'children':[this[_0xeff1c(0xa9)]()]}]},{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xbe)]},'children':[{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xb5)]},'on':{'click':this[_0xeff1c(0x97)]['to'](_0xeff1c(0x77))},'children':[{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xc8)]},'children':[{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0xc5),_0x2ff8da['if'](_0xeff1c(0x87),_0xeff1c(0xc6),_0x952471=>!!_0x952471)]},'children':this[_0xeff1c(0x8f)]},{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0x82),_0x2ff8da['if'](_0xeff1c(0x87),_0xeff1c(0xc6),_0x3c7640=>!_0x3c7640)]},'children':[{'text':_0x2ff8da['to'](_0xeff1c(0x87),_0x3ce6da=>_0x3ce6da?_0x5ac6af(this[_0xeff1c(0x7b)],AIChatHistoryListItemView[_0xeff1c(0x8e)][_0x3ce6da]):'')}]}]},{'tag':_0xeff1c(0xaf),'attributes':{'class':[_0xeff1c(0x92)]},'children':[_0x3e49db]}]},{'tag':_0xeff1c(0xd5),'attributes':{'class':[_0xeff1c(0x96)]},'children':this[_0xeff1c(0x88)]}]}]}),this['on'](_0xeff1c(0x77),()=>{const _0x4fb3d6=_0xeff1c;this[_0x4fb3d6(0x9a)]||this[_0x4fb3d6(0x90)](_0x4fb3d6(0xbd),{'id':this['id']});});}[_0xb4da1e(0x9e)](_0x143a18){const _0x57d2fe=_0xb4da1e;this[_0x57d2fe(0x86)][_0x57d2fe(0xc9)]=_0x19174d(_0x143a18);}[_0xb4da1e(0x7d)](_0x38b9d8,_0x4d292c){const _0x12e65c=_0xb4da1e;this[_0x12e65c(0xc2)](_0x12e65c(0x87),_0x4d292c?_0x38b9d8:null);}[_0xb4da1e(0xd8)](){const _0x55373a=_0xb4da1e,_0xa7ef13=new _0x136709();return _0xa7ef13[_0x55373a(0xc2)]({'content':_0x512e20}),_0xa7ef13;}[_0xb4da1e(0xad)](_0x1ac73d){const _0x167e44=_0xb4da1e,_0x335b89=new _0x2edaf2(_0x1ac73d);return _0x335b89[_0x167e44(0xc2)]({'label':_0x5ac6af(_0x1ac73d,_0x167e44(0xcd)),'icon':_0x4068c5,'withText':!0x1,'tooltip':!0x0}),_0x335b89[_0x167e44(0x9b)](_0x167e44(0xb7))['to'](this,_0x167e44(0xd7)),_0x335b89['on'](_0x167e44(0xd1),()=>{const _0x10ce2a=_0x167e44,_0x5884fe=!this[_0x10ce2a(0xd7)];this[_0x10ce2a(0x90)](_0x10ce2a(0x95),{'id':this['id'],'pinned':_0x5884fe});}),_0x335b89;}[_0xb4da1e(0xb0)](){const _0x1e7b79=_0xb4da1e,_0xc8b702=_0x534829(this[_0x1e7b79(0x7b)],_0x18e1aa),_0x10b859=_0xc8b702[_0x1e7b79(0xb8)][_0x1e7b79(0x80)];_0xc8b702[_0x1e7b79(0xa1)][_0x1e7b79(0xc2)]({'label':_0x5ac6af(this[_0x1e7b79(0x7b)],_0x1e7b79(0x83)),'icon':_0x5d19d0}),_0xc8b702[_0x1e7b79(0x78)]='sw';const _0x1273b1=new _0x2edaf2(this[_0x1e7b79(0x7b)]);_0x1273b1[_0x1e7b79(0xaa)]=_0x5ac6af(this[_0x1e7b79(0x7b)],_0x1e7b79(0xc7)),_0x1273b1[_0x1e7b79(0x8d)]=!0x0,_0x1273b1['on'](_0x1e7b79(0xd1),()=>{const _0x12b8c3=_0x1e7b79;this[_0x12b8c3(0x9a)]=!0x0;});const _0x354ce1=new _0x2edaf2(this[_0x1e7b79(0x7b)]);_0x354ce1[_0x1e7b79(0xaa)]=_0x5ac6af(this[_0x1e7b79(0x7b)],_0x1e7b79(0x7a)),_0x354ce1[_0x1e7b79(0x8d)]=!0x0,_0x354ce1['on'](_0x1e7b79(0xd1),()=>{const _0x5ec2d3=_0x1e7b79;this[_0x5ec2d3(0xa0)](_0x5ac6af(this[_0x5ec2d3(0x7b)],_0x5ec2d3(0xa8)),this[_0x5ec2d3(0x76)])[_0x5ec2d3(0xd0)](()=>{const _0x31f26c=_0x5ec2d3;this[_0x31f26c(0x90)](_0x31f26c(0xbc),{'id':this['id']});});});const _0x5bb17c=new _0x28adcf(this[_0x1e7b79(0x7b)]),_0x3292f5=new _0x2012ed(this[_0x1e7b79(0x7b)]);_0x3292f5[_0x1e7b79(0x80)][_0x1e7b79(0xb3)](_0x1273b1);const _0x5a49ac=new _0x2012ed(this[_0x1e7b79(0x7b)]);return _0x5a49ac[_0x1e7b79(0x80)][_0x1e7b79(0xb3)](_0x354ce1),_0x5bb17c[_0x1e7b79(0xcc)][_0x1e7b79(0xb6)]([_0x3292f5,_0x5a49ac]),_0x10b859[_0x1e7b79(0xb3)](_0x5bb17c),_0xc8b702;}[_0xb4da1e(0xd4)](_0x39eb54,_0x485260){const _0x536661=_0xb4da1e,_0x40b974=new _0x1fa1a9(_0x39eb54),_0x46153f=_0x40b974[_0x536661(0x97)];return _0x40b974[_0x536661(0x7f)]=_0x485260,_0x40b974[_0x536661(0xb9)]({'on':{'keydown':_0x46153f['to'](_0x5cb0d1=>{const _0x4304ca=_0x536661;_0x4304ca(0xbf)==_0x5cb0d1[_0x4304ca(0x89)]&&this[_0x4304ca(0xc0)](_0x40b974);})}}),_0x40b974;}[_0xb4da1e(0x81)](_0x327ca1,_0x1599bd){const _0x1cb00b=_0xb4da1e,_0x45258d=new _0x2edaf2(_0x327ca1);return _0x45258d[_0x1cb00b(0xc2)]({'icon':_0x512e20,'withText':!0x1,'tooltip':_0x5ac6af(_0x327ca1,_0x1cb00b(0x93))}),_0x45258d[_0x1cb00b(0xb9)]({'attributes':{'class':[_0x1cb00b(0x7c)]}}),_0x45258d['on'](_0x1cb00b(0xd1),()=>{const _0x4f1e24=_0x1cb00b;this[_0x4f1e24(0xc0)](_0x1599bd);}),_0x45258d;}[_0xb4da1e(0xc0)](_0x156a7d){const _0x575a0d=_0xb4da1e,_0x45abc1=_0x156a7d[_0x575a0d(0x76)][_0x575a0d(0x7f)]||'';this[_0x575a0d(0x86)][_0x575a0d(0xc9)]=_0x45abc1,this[_0x575a0d(0x9a)]=!0x1,this[_0x575a0d(0x90)](_0x575a0d(0xa2),{'id':this['id'],'title':_0x45abc1});}[_0xb4da1e(0xca)](_0x3bd095,_0x3dead2){const _0x3e95a3=_0xb4da1e,_0x2b4553=new _0x2edaf2(_0x3bd095);return _0x2b4553[_0x3e95a3(0xc2)]({'icon':_0x232200,'withText':!0x1,'tooltip':_0x5ac6af(_0x3bd095,_0x3e95a3(0x85))}),_0x2b4553[_0x3e95a3(0xb9)]({'attributes':{'class':[_0x3e95a3(0xab)]}}),_0x2b4553['on'](_0x3e95a3(0xd1),()=>{const _0x4d4834=_0x3e95a3;this[_0x4d4834(0x9a)]=!0x1,_0x3dead2[_0x4d4834(0x7f)]=this[_0x4d4834(0x86)][_0x4d4834(0xc9)]||'',this[_0x4d4834(0x90)](_0x4d4834(0xce));}),_0x2b4553;}[_0xb4da1e(0xa9)](){const _0x4309ae=_0xb4da1e,_0x228d2d=new _0x57c652(_0x4309ae(0xd6));return _0x228d2d[_0x4309ae(0xc1)]=!0x0,_0x228d2d;}[_0xb4da1e(0xd2)](_0x50ac03){const _0x27211f=_0xb4da1e;return this[_0x27211f(0x86)]&&_0x27211f(0xcb)==typeof this[_0x27211f(0x86)][_0x27211f(0xc9)]&&this[_0x27211f(0x86)][_0x27211f(0xc9)][_0x27211f(0xac)](_0x50ac03)?{'title':!0x0}:null;}[_0xb4da1e(0xa6)](_0x162751){const _0x2a1944=_0xb4da1e;this[_0x2a1944(0x86)][_0x2a1944(0xa6)](_0x162751);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x32f32e=_0x30a5;function _0x30a5(_0x223b29,_0x436bbf){const _0x5d0ebf=_0x5d0e();return _0x30a5=function(_0x30a53d,_0x3ce7da){_0x30a53d=_0x30a53d-0x117;let _0x40de36=_0x5d0ebf[_0x30a53d];return _0x40de36;},_0x30a5(_0x223b29,_0x436bbf);}(function(_0x2dfca9,_0x18b4af){const _0xbf911e=_0x30a5,_0x3905d7=_0x2dfca9();while(!![]){try{const _0xcf8e9e=parseInt(_0xbf911e(0x11d))/0x1+-parseInt(_0xbf911e(0x135))/0x2+-parseInt(_0xbf911e(0x124))/0x3*(parseInt(_0xbf911e(0x131))/0x4)+parseInt(_0xbf911e(0x12a))/0x5*(-parseInt(_0xbf911e(0x120))/0x6)+-parseInt(_0xbf911e(0x129))/0x7*(parseInt(_0xbf911e(0x12b))/0x8)+parseInt(_0xbf911e(0x133))/0x9+parseInt(_0xbf911e(0x11f))/0xa;if(_0xcf8e9e===_0x18b4af)break;else _0x3905d7['push'](_0x3905d7['shift']());}catch(_0x4a31fe){_0x3905d7['push'](_0x3905d7['shift']());}}}(_0x5d0e,0xa2052));import{ListItemView as _0x348241,View as _0x566b1d,ListView as _0x193cbf}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x348241{[_0x32f32e(0x136)];[_0x32f32e(0x118)];[_0x32f32e(0x11a)];constructor(_0x20a960,{title:_0x475967,items:_0x4309f2}){const _0x2ba67b=_0x32f32e;super(_0x20a960);const _0x538bd6=this[_0x2ba67b(0x132)];this[_0x2ba67b(0x12e)](_0x2ba67b(0x12c),!0x0),this[_0x2ba67b(0x136)]=_0x475967,this[_0x2ba67b(0x118)]=_0x4309f2;const _0x421d26=new _0x566b1d(_0x20a960);_0x421d26[_0x2ba67b(0x123)]({'tag':_0x2ba67b(0x11c),'attributes':{'class':[_0x2ba67b(0x12d)]},'children':[this[_0x2ba67b(0x136)]]}),this[_0x2ba67b(0x11a)]=new _0x193cbf(_0x20a960),this[_0x2ba67b(0x11a)][_0x2ba67b(0x127)][_0x2ba67b(0x12f)](this[_0x2ba67b(0x118)]),this[_0x2ba67b(0x123)]({'tag':'li','attributes':{'class':[_0x2ba67b(0x11e),_0x538bd6['if'](_0x2ba67b(0x12c),_0x2ba67b(0x119),_0x34d423=>!_0x34d423)]},'children':[_0x421d26,this[_0x2ba67b(0x11a)]]});}[_0x32f32e(0x122)](_0x554af9){const _0x3be5ec=_0x32f32e,_0x4d9e59=this[_0x3be5ec(0x118)][_0x3be5ec(0x126)];let _0x518ec0=0x0;for(const _0x1110d2 of this[_0x3be5ec(0x118)]){if(_0x554af9){const _0x1bf714=_0x1110d2[_0x3be5ec(0x130)](_0x554af9);_0x1110d2[_0x3be5ec(0x12c)]=!!_0x1bf714,_0x1110d2[_0x3be5ec(0x128)](_0x554af9);}else _0x1110d2[_0x3be5ec(0x12c)]=!0x0,_0x1110d2[_0x3be5ec(0x128)](null);_0x1110d2[_0x3be5ec(0x12c)]&&_0x518ec0++;}return this[_0x3be5ec(0x12c)]=_0x518ec0>0x0,{'resultsCount':_0x518ec0,'totalItemsCount':_0x4d9e59};}[_0x32f32e(0x11b)](_0x1d8e7b){const _0x1f2a5a=_0x32f32e;return this[_0x1f2a5a(0x118)][_0x1f2a5a(0x117)](_0x1d555c=>_0x1d555c['id']===_0x1d8e7b);}[_0x32f32e(0x125)](_0xe3792d){const _0x367ac8=_0x32f32e,_0x2368cd=this[_0x367ac8(0x118)][_0x367ac8(0x134)](_0xe3792d);-0x1!==_0x2368cd&&(this[_0x367ac8(0x118)][_0x367ac8(0x121)](_0x2368cd,0x1),this[_0x367ac8(0x11a)][_0x367ac8(0x127)][_0x367ac8(0x137)](_0xe3792d));}}function _0x5d0e(){const _0x228a68=['5718627gUyTGX','indexOf','783042Ddjtqb','title','remove','find','itemsViews','ck-hidden','_itemsListView','getItem','div','869588ldrsyA','ck-ai-chat-history__section','7481200tjXWRv','12TCVwil','splice','filter','setTemplate','3Ydkoys','removeItem','length','items','highlightText','6972cCxCAg','645085XWihdm','5480WMbjcD','isVisible','ck-ai-chat-history__section-title','set','addMany','isMatching','1030648RMxDSp','bindTemplate'];_0x5d0e=function(){return _0x228a68;};return _0x5d0e();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3bdd(){const _0x4c6834=['sections','689406DKtxdx','2959475fTFdvn','788071bpAoRi','11987208MtBpRQ','2877350GtLsyR','addMany','extendTemplate','items','filter','2DhbNwQ','ck-ai-chat-history__sections','1944123eeelND','1573164LUysQr'];_0x3bdd=function(){return _0x4c6834;};return _0x3bdd();}const _0x332d20=_0x32bd;(function(_0x4c484b,_0x5ea329){const _0x560e20=_0x32bd,_0x2842b4=_0x4c484b();while(!![]){try{const _0x347782=parseInt(_0x560e20(0x1f3))/0x1+-parseInt(_0x560e20(0x1fa))/0x2*(-parseInt(_0x560e20(0x1fc))/0x3)+parseInt(_0x560e20(0x1fd))/0x4+parseInt(_0x560e20(0x1f2))/0x5+-parseInt(_0x560e20(0x1ff))/0x6+-parseInt(_0x560e20(0x1f5))/0x7+-parseInt(_0x560e20(0x1f4))/0x8;if(_0x347782===_0x5ea329)break;else _0x2842b4['push'](_0x2842b4['shift']());}catch(_0x409844){_0x2842b4['push'](_0x2842b4['shift']());}}}(_0x3bdd,0x60e92));import{ListView as _0x3e73c9}from'ckeditor5/src/ui.js';function _0x32bd(_0x5373e8,_0x25bc87){const _0x3bdd52=_0x3bdd();return _0x32bd=function(_0x32bd82,_0x5ee61b){_0x32bd82=_0x32bd82-0x1f2;let _0x47d11=_0x3bdd52[_0x32bd82];return _0x47d11;},_0x32bd(_0x5373e8,_0x25bc87);}export class AIChatHistorySectionListView extends _0x3e73c9{[_0x332d20(0x1fe)];constructor(_0x48edf4,_0x5019e8){const _0x3632d1=_0x332d20;super(_0x48edf4),this[_0x3632d1(0x1fe)]=_0x5019e8,this[_0x3632d1(0x1f8)][_0x3632d1(0x1f6)](this[_0x3632d1(0x1fe)]),this[_0x3632d1(0x1f7)]({'attributes':{'class':[_0x3632d1(0x1fb)]}});}[_0x332d20(0x1f9)](_0x329798){const _0x3f6ba9=_0x332d20;let _0x5c3e41=0x0,_0x4e34da=0x0;for(const _0x543ff7 of this[_0x3f6ba9(0x1fe)]){const {resultsCount:_0x298c25,totalItemsCount:_0x371c0f}=_0x543ff7[_0x3f6ba9(0x1f9)](_0x329798);_0x5c3e41+=_0x298c25,_0x4e34da+=_0x371c0f;}return{'resultsCount':_0x5c3e41,'totalItemsCount':_0x4e34da};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x202f(_0x568317,_0x1beed5){const _0xde87fd=_0xde87();return _0x202f=function(_0x202fbb,_0x372e4c){_0x202fbb=_0x202fbb-0xc7;let _0x36ea1d=_0xde87fd[_0x202fbb];return _0x36ea1d;},_0x202f(_0x568317,_0x1beed5);}const _0x28129d=_0x202f;function _0xde87(){const _0x3a9b00=['push','getItem','skeletonView','value','updateItemTitle','ck-ai-chat-history__content','_createListItemViews','itemsViews','sectionsView','_createSearchView','change:isLoading','ck-ai-chat-history','addMany','ck-rounded-corners','updateLoadingState','ck-ai-chat__start-conversation','render','items','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','set','openChat','queryView','children','delegate','2DiMXxe','searchView','remove','fire','ck-ai-notification','aiHistory','_updateViewVisibility','search','locale','309897DYBLgS','indexOf','updateItemLoadingState','457815BOaSao','fieldView','clear','change:hasItems','ck-ai-notification_error__dismiss-button','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','isMaximized','ltr','388196qHLsOL','extendTemplate','div','title','emptyView','ck-ai-notification_error','isVisible','isMainErrorViewVisible','AI_CHAT_HISTORY_EMPTY_MESSAGE','isLoading','updateTitle','ck-ai-chat-history__empty','1786419bKHGgy','length','hasItems','sections','change:errorMessage','10nUmvrt','ck-hidden','isEmptyViewVisible','element','add','bind','bindTemplate','removeHistoryItem','ck-ai-header\x20ck-ai-header_history','removeItem','AI_CHAT_HISTORY_SEARCH_LABEL','_createSkeletonView','execute','332PLTRAB','AI_CHAT_HISTORY_HEADING','setTemplate','_createErrorView','_refreshSearch','_createEmptyStateView','errorMessage','305100dxlzVQ','resizeButton','mainErrorView','splice','ck-reset_all','AI_CHAT_LABEL_NEW_CHAT','updateHistoryItemsWithCategories','ck-ai-chat-history__empty-message','979768AWPCob','some','11004zxgHul','isSearchViewVisible'];_0xde87=function(){return _0x3a9b00;};return _0xde87();}(function(_0x1c3909,_0x1080d5){const _0x199eaa=_0x202f,_0x382962=_0x1c3909();while(!![]){try{const _0x4896e3=parseInt(_0x199eaa(0xec))/0x1*(-parseInt(_0x199eaa(0xd8))/0x2)+parseInt(_0x199eaa(0x11b))/0x3*(parseInt(_0x199eaa(0x10a))/0x4)+-parseInt(_0x199eaa(0xe4))/0x5+parseInt(_0x199eaa(0x111))/0x6+parseInt(_0x199eaa(0xe1))/0x7+parseInt(_0x199eaa(0x119))/0x8+parseInt(_0x199eaa(0xf8))/0x9*(parseInt(_0x199eaa(0xfd))/0xa);if(_0x4896e3===_0x1080d5)break;else _0x382962['push'](_0x382962['shift']());}catch(_0x3ce966){_0x382962['push'](_0x382962['shift']());}}}(_0xde87,0x3ac80));import{View as _0x5ead2f,SearchTextView as _0xcd61ab,FormHeaderView as _0x50727c,ButtonView as _0x4b0c45}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x57b25c,IconCancel as _0xb887a7,IconPlus as _0x121003}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x52262d}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xf5e360}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x1a534a}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x4b4c81}from'../aichathistoryui.js';import{AISkeletonView as _0x6d91dc,SKELETON_DEFINITIONS as _0x23b896}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x126284}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x59e1b4}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5ead2f{[_0x28129d(0xd9)];[_0x28129d(0x113)];[_0x28129d(0x11f)];[_0x28129d(0xf0)];[_0x28129d(0xc8)];[_0x28129d(0x112)];constructor(_0x47e5ff,_0x523b8e){const _0x2d7181=_0x28129d;super(_0x47e5ff),this[_0x2d7181(0xd3)](_0x2d7181(0xfa),!0x1),this[_0x2d7181(0xd3)](_0x2d7181(0xf5),!0x0),this[_0x2d7181(0xd3)](_0x2d7181(0x110),''),this[_0x2d7181(0xd3)](_0x2d7181(0xea),!0x1),this[_0x2d7181(0xd3)](_0x2d7181(0x11c),!0x1),this[_0x2d7181(0xd3)](_0x2d7181(0xff),!0x1),this[_0x2d7181(0xd3)](_0x2d7181(0xf3),!0x1);const _0x3807f1=new _0x50727c(_0x47e5ff,{'label':_0x59e1b4(_0x47e5ff,_0x2d7181(0x10b)),'icon':_0x57b25c,'class':_0x2d7181(0x105)});_0x523b8e&&(this[_0x2d7181(0x112)]=_0x126284(_0x47e5ff,this),_0x3807f1[_0x2d7181(0xd6)][_0x2d7181(0x101)](this[_0x2d7181(0x112)])),this[_0x2d7181(0xc8)]=new _0x52262d(_0x47e5ff,[]),this[_0x2d7181(0xc8)][_0x2d7181(0xd7)](..._0x4b4c81)['to'](this),this[_0x2d7181(0x113)]=this[_0x2d7181(0x10d)](),this[_0x2d7181(0x11f)]=this[_0x2d7181(0x108)](),this[_0x2d7181(0xf0)]=this[_0x2d7181(0x10f)](),this[_0x2d7181(0xd9)]=this[_0x2d7181(0xc9)](),this[_0x2d7181(0x113)][_0x2d7181(0xed)]({'attributes':{'class':[this[_0x2d7181(0x103)]['if'](_0x2d7181(0xf3),_0x2d7181(0xfe),_0x28fcc3=>!_0x28fcc3)]}}),this['on'](_0x2d7181(0xca),()=>this[_0x2d7181(0xde)]()),this['on'](_0x2d7181(0xe7),()=>this[_0x2d7181(0xde)]()),this['on'](_0x2d7181(0xfc),()=>this[_0x2d7181(0xde)]()),this[_0x2d7181(0x10c)]({'tag':_0x2d7181(0xee),'attributes':{'class':['ck',_0x2d7181(0x115),_0x2d7181(0xcb),_0x2d7181(0xcd)],'dir':_0x2d7181(0xeb)},'children':[_0x3807f1,{'tag':_0x2d7181(0xee),'attributes':{'class':[_0x2d7181(0x122)]},'children':[this[_0x2d7181(0x11f)],this[_0x2d7181(0x113)],this[_0x2d7181(0xf0)],this[_0x2d7181(0xd9)]]}]});}[_0x28129d(0xde)](){const _0x1dad52=_0x28129d;this[_0x1dad52(0x11c)]=!this[_0x1dad52(0xf5)]&&this[_0x1dad52(0xfa)],this[_0x1dad52(0xff)]=!this[_0x1dad52(0xf5)]&&!this[_0x1dad52(0xfa)]&&!this[_0x1dad52(0x110)],this[_0x1dad52(0xf3)]=!this[_0x1dad52(0x11c)]&&!!this[_0x1dad52(0x110)];}[_0x28129d(0xc9)](){const _0x3287ab=_0x28129d,_0xc1c52e=new _0xcd61ab(this[_0x3287ab(0xe0)],{'filteredView':this[_0x3287ab(0xc8)],'queryView':{'label':_0x59e1b4(this[_0x3287ab(0xe0)],_0x3287ab(0x107))},'infoView':{'text':{'notFound':{'primary':_0xf0e46e=>_0x59e1b4(this[_0x3287ab(0xe0)],_0x3287ab(0xe9),_0xf0e46e),'secondary':_0x59e1b4(this[_0x3287ab(0xe0)],_0x3287ab(0xd2))}}}}),_0xcc5462=this[_0x3287ab(0x10d)]();return _0xcc5462[_0x3287ab(0xed)]({'attributes':{'class':[this[_0x3287ab(0x103)]['if'](_0x3287ab(0x110),_0x3287ab(0xfe),_0x2da75c=>!_0x2da75c)]}}),_0xc1c52e['on'](_0x3287ab(0xd0),()=>{const _0x31c322=_0x3287ab;_0xc1c52e[_0x31c322(0xd6)][_0x31c322(0x101)](_0xcc5462,0x1);}),_0xc1c52e[_0x3287ab(0xed)]({'attributes':{'class':[this[_0x3287ab(0x103)]['if'](_0x3287ab(0x11c),_0x3287ab(0xfe),_0x47498f=>!_0x47498f)]}}),_0xc1c52e;}[_0x28129d(0x108)](){const _0x1f861f=_0x28129d,_0x221065=new _0x6d91dc(this[_0x1f861f(0xe0)],_0x23b896[_0x1f861f(0xdd)]);return _0x221065[_0x1f861f(0xed)]({'attributes':{'class':[this[_0x1f861f(0x103)]['if'](_0x1f861f(0xf5),_0x1f861f(0xfe),_0x286413=>!_0x286413)]}}),_0x221065;}[_0x28129d(0x10d)](){const _0x2bed7a=_0x28129d,_0x30c1bb=new _0x5ead2f(this[_0x2bed7a(0xe0)]),_0x2e81ba=new _0x4b0c45(this[_0x2bed7a(0xe0)]);_0x2e81ba[_0x2bed7a(0xd3)]({'withText':!0x1,'icon':_0xb887a7,'class':_0x2bed7a(0xe8)}),_0x2e81ba[_0x2bed7a(0x102)](_0x2bed7a(0xf2))['to'](this,_0x2bed7a(0xfa),_0x5ce9ab=>!!_0x5ce9ab),_0x2e81ba['on'](_0x2bed7a(0x109),()=>{const _0xc6b6e0=_0x2bed7a;this[_0xc6b6e0(0x110)]='';});const _0x1d57d5=this[_0x2bed7a(0x103)];return _0x30c1bb[_0x2bed7a(0x10c)]({'tag':_0x2bed7a(0xee),'attributes':{'class':['ck',_0x2bed7a(0xdc),_0x2bed7a(0xf1)]},'children':[{'tag':'p','children':[{'text':_0x1d57d5['to'](_0x2bed7a(0x110))}]},_0x2e81ba]}),_0x30c1bb;}[_0x28129d(0x10f)](){const _0x3e291c=_0x28129d,_0x5152d3=new _0x4b0c45(this[_0x3e291c(0xe0)]);_0x5152d3[_0x3e291c(0xd3)]({'label':_0x59e1b4(this[_0x3e291c(0xe0)],_0x3e291c(0x116)),'withText':!0x0,'icon':_0x121003,'class':_0x3e291c(0xcf)}),_0x5152d3['on'](_0x3e291c(0x109),()=>{const _0x195cff=_0x3e291c;this[_0x195cff(0xdb)](_0x195cff(0xd4));});const _0x4b1719=new _0x5ead2f(this[_0x3e291c(0xe0)]);return _0x4b1719[_0x3e291c(0x10c)]({'tag':_0x3e291c(0xee),'attributes':{'class':[_0x3e291c(0xf7),this[_0x3e291c(0x103)]['if'](_0x3e291c(0xff),_0x3e291c(0xfe),_0x10700f=>!_0x10700f)]},'children':[{'tag':'p','attributes':{'class':[_0x3e291c(0x118)]},'children':[_0x59e1b4(this[_0x3e291c(0xe0)],_0x3e291c(0xf4))]},_0x5152d3]}),_0x4b1719;}[_0x28129d(0x123)](_0x58fa24,_0xc6eaf8){const _0x2ece63=_0x28129d,_0x559768=[];for(const _0x1e9abe of _0x58fa24){const _0x3fe988=new _0x1a534a(_0xc6eaf8,_0x1e9abe);_0x3fe988[_0x2ece63(0xd7)](..._0x4b4c81)['to'](this),_0x559768[_0x2ece63(0x11d)](_0x3fe988);}return _0x559768;}[_0x28129d(0x117)](_0x5cb0c2){const _0x35a297=_0x28129d,_0x8f57a3=this[_0x35a297(0xe0)]||'en',_0x45ee1f=[];for(const _0x456023 of _0x5cb0c2){const _0x1e7820=this[_0x35a297(0x123)](_0x456023[_0x35a297(0xd1)],_0x8f57a3);_0x45ee1f[_0x35a297(0x11d)](new _0xf5e360(_0x8f57a3,{'title':_0x456023[_0x35a297(0xef)],'items':_0x1e7820}));}this[_0x35a297(0xc8)][_0x35a297(0xfb)]=_0x45ee1f,this[_0x35a297(0xc8)][_0x35a297(0xd1)][_0x35a297(0xe6)](),this[_0x35a297(0xc8)][_0x35a297(0xd1)][_0x35a297(0xcc)](_0x45ee1f),this[_0x35a297(0xfa)]=_0x5cb0c2[_0x35a297(0x11a)](_0x38d117=>_0x38d117[_0x35a297(0xd1)][_0x35a297(0xf9)]>0x0),this[_0x35a297(0x10e)]();}[_0x28129d(0x104)](_0x417e2f){const _0x56a042=_0x28129d;for(const _0x7d5dab of this[_0x56a042(0xc8)][_0x56a042(0xfb)]){const _0x20ca6e=_0x7d5dab[_0x56a042(0x11e)](_0x417e2f);if(_0x20ca6e){if(_0x7d5dab[_0x56a042(0x106)](_0x20ca6e),0x0===_0x7d5dab[_0x56a042(0xc7)][_0x56a042(0xf9)]){const _0x1cf1c2=this[_0x56a042(0xc8)][_0x56a042(0xfb)][_0x56a042(0xe2)](_0x7d5dab);-0x1!==_0x1cf1c2&&(this[_0x56a042(0xc8)][_0x56a042(0xfb)][_0x56a042(0x114)](_0x1cf1c2,0x1),this[_0x56a042(0xc8)][_0x56a042(0xd1)][_0x56a042(0xda)](_0x7d5dab));}this[_0x56a042(0xfa)]=this[_0x56a042(0xc8)][_0x56a042(0xfb)][_0x56a042(0xf9)]>0x0,this[_0x56a042(0x10e)]();break;}}}[_0x28129d(0x121)](_0x3bd5ba,_0x598828){const _0x308734=_0x28129d;for(const _0x203f69 of this[_0x308734(0xc8)][_0x308734(0xfb)]){const _0x5b1d4a=_0x203f69[_0x308734(0x11e)](_0x3bd5ba);if(_0x5b1d4a){_0x5b1d4a[_0x308734(0xf6)](_0x598828);break;}}}[_0x28129d(0xe3)](_0x6ad632,_0x4b93b6,_0x32c515){const _0x1e5276=_0x28129d;for(const _0x49de02 of this[_0x1e5276(0xc8)][_0x1e5276(0xfb)]){const _0x11b196=_0x49de02[_0x1e5276(0x11e)](_0x6ad632);if(_0x11b196){_0x11b196[_0x1e5276(0xce)](_0x4b93b6,_0x32c515);break;}}}[_0x28129d(0x10e)](){const _0x3a5b98=_0x28129d;if(this[_0x3a5b98(0xfa)]){const _0x8b38d1=this[_0x3a5b98(0xd9)][_0x3a5b98(0xd5)][_0x3a5b98(0xe5)]?.[_0x3a5b98(0x100)]?.[_0x3a5b98(0x120)]||'';this[_0x3a5b98(0xd9)][_0x3a5b98(0xdf)](_0x8b38d1);}}}
|
|
23
|
+
const _0x554cc1=_0x3a88;(function(_0x297c1a,_0x54363e){const _0xd9c3ff=_0x3a88,_0x1755ac=_0x297c1a();while(!![]){try{const _0x5c034f=parseInt(_0xd9c3ff(0xa5))/0x1*(parseInt(_0xd9c3ff(0xb2))/0x2)+parseInt(_0xd9c3ff(0xa1))/0x3*(-parseInt(_0xd9c3ff(0xf1))/0x4)+-parseInt(_0xd9c3ff(0xb0))/0x5+parseInt(_0xd9c3ff(0xf4))/0x6+parseInt(_0xd9c3ff(0xe9))/0x7*(-parseInt(_0xd9c3ff(0xf7))/0x8)+-parseInt(_0xd9c3ff(0xa3))/0x9*(-parseInt(_0xd9c3ff(0xbe))/0xa)+parseInt(_0xd9c3ff(0xf6))/0xb;if(_0x5c034f===_0x54363e)break;else _0x1755ac['push'](_0x1755ac['shift']());}catch(_0x272211){_0x1755ac['push'](_0x1755ac['shift']());}}}(_0x41fa,0xe7629));import{View as _0x54811b,SearchTextView as _0x594483,FormHeaderView as _0x2054e5,ButtonView as _0x11e64a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x53dc01,IconCancel as _0x4f6f59,IconPlus as _0x11777a}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x489a09}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x350d88}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x56e362}from'./aichathistorylistitemview.js';function _0x41fa(){const _0x5c4644=['searchView','56402VMCkRL','delegate','isMainErrorViewVisible','_createSkeletonView','queryView','execute','_createEmptyStateView','length','_createErrorView','removeHistoryItem','isMaximized','updateLoadingState','20EiduwC','fire','bind','itemsViews','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','updateTitle','ck-ai-chat-history__content','_createSearchView','sections','locale','remove','element','ck-ai-notification_error','skeletonView','items','removeItem','indexOf','ck-ai-notification_error__dismiss-button','ck-ai-chat__start-conversation','div','title','updateItemTitle','AI_CHAT_HISTORY_SEARCH_LABEL','_refreshSearch','mainErrorView','search','splice','some','isSearchViewVisible','fieldView','ltr','updateHistoryItemsWithCategories','ck-ai-chat-history__empty','change:isLoading','isEmptyViewVisible','getItem','ck-ai-chat-history__empty-message','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','set','hasItems','extendTemplate','ck-ai-header\x20ck-ai-header_history','ck-hidden','3455312cSwqiO','emptyView','sectionsView','add','aiHistory','_updateViewVisibility','isVisible','bindTemplate','8Mgvbab','render','errorMessage','7208226rcDTsv','updateItemLoadingState','4131402dVOdOc','8SzhjkL','value','isLoading','AI_CHAT_HISTORY_HEADING','ck-rounded-corners','change:hasItems','ck-ai-chat-history','addMany','1695612jbsdQz','ck-ai-notification','7362198iUOGgD','_createListItemViews','35GVIpej','ck-reset_all','AI_CHAT_LABEL_NEW_CHAT','AI_CHAT_HISTORY_EMPTY_MESSAGE','openChat','resizeButton','children','setTemplate','change:errorMessage','push','clear','8141275qgOOBt'];_0x41fa=function(){return _0x5c4644;};return _0x41fa();}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x377a16}from'../aichathistoryui.js';import{AISkeletonView as _0x132e79,SKELETON_DEFINITIONS as _0x222163}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x123693}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x49513d}from'../../aicore/utils/common-translations.js';function _0x3a88(_0x1d13f9,_0x5b4044){const _0x41fac6=_0x41fa();return _0x3a88=function(_0x3a880a,_0x49be3c){_0x3a880a=_0x3a880a-0x9d;let _0x5337ec=_0x41fac6[_0x3a880a];return _0x5337ec;},_0x3a88(_0x1d13f9,_0x5b4044);}export class AIChatHistoryView extends _0x54811b{[_0x554cc1(0xb1)];[_0x554cc1(0xd6)];[_0x554cc1(0xcb)];[_0x554cc1(0xea)];[_0x554cc1(0xeb)];[_0x554cc1(0xaa)];constructor(_0x499149,_0x2bf47b){const _0x20bbc5=_0x554cc1;super(_0x499149),this[_0x20bbc5(0xe4)](_0x20bbc5(0xe5),!0x1),this[_0x20bbc5(0xe4)](_0x20bbc5(0xf9),!0x0),this[_0x20bbc5(0xe4)](_0x20bbc5(0xf3),''),this[_0x20bbc5(0xe4)](_0x20bbc5(0xbc),!0x1),this[_0x20bbc5(0xe4)](_0x20bbc5(0xda),!0x1),this[_0x20bbc5(0xe4)](_0x20bbc5(0xe0),!0x1),this[_0x20bbc5(0xe4)](_0x20bbc5(0xb4),!0x1);const _0x35b6ed=new _0x2054e5(_0x499149,{'label':_0x49513d(_0x499149,_0x20bbc5(0xfa)),'icon':_0x53dc01,'class':_0x20bbc5(0xe7)});_0x2bf47b&&(this[_0x20bbc5(0xaa)]=_0x123693(_0x499149,this),_0x35b6ed[_0x20bbc5(0xab)][_0x20bbc5(0xec)](this[_0x20bbc5(0xaa)])),this[_0x20bbc5(0xeb)]=new _0x489a09(_0x499149,[]),this[_0x20bbc5(0xeb)][_0x20bbc5(0xb3)](..._0x377a16)['to'](this),this[_0x20bbc5(0xd6)]=this[_0x20bbc5(0xba)](),this[_0x20bbc5(0xcb)]=this[_0x20bbc5(0xb5)](),this[_0x20bbc5(0xea)]=this[_0x20bbc5(0xb8)](),this[_0x20bbc5(0xb1)]=this[_0x20bbc5(0xc5)](),this[_0x20bbc5(0xd6)][_0x20bbc5(0xe6)]({'attributes':{'class':[this[_0x20bbc5(0xf0)]['if'](_0x20bbc5(0xb4),_0x20bbc5(0xe8),_0x1dd89b=>!_0x1dd89b)]}}),this['on'](_0x20bbc5(0xdf),()=>this[_0x20bbc5(0xee)]()),this['on'](_0x20bbc5(0x9e),()=>this[_0x20bbc5(0xee)]()),this['on'](_0x20bbc5(0xad),()=>this[_0x20bbc5(0xee)]()),this[_0x20bbc5(0xac)]({'tag':_0x20bbc5(0xd1),'attributes':{'class':['ck',_0x20bbc5(0xa6),_0x20bbc5(0x9f),_0x20bbc5(0x9d)],'dir':_0x20bbc5(0xdc)},'children':[_0x35b6ed,{'tag':_0x20bbc5(0xd1),'attributes':{'class':[_0x20bbc5(0xc4)]},'children':[this[_0x20bbc5(0xcb)],this[_0x20bbc5(0xd6)],this[_0x20bbc5(0xea)],this[_0x20bbc5(0xb1)]]}]});}[_0x554cc1(0xee)](){const _0x5a5c2b=_0x554cc1;this[_0x5a5c2b(0xda)]=!this[_0x5a5c2b(0xf9)]&&this[_0x5a5c2b(0xe5)],this[_0x5a5c2b(0xe0)]=!this[_0x5a5c2b(0xf9)]&&!this[_0x5a5c2b(0xe5)]&&!this[_0x5a5c2b(0xf3)],this[_0x5a5c2b(0xb4)]=!this[_0x5a5c2b(0xda)]&&!!this[_0x5a5c2b(0xf3)];}[_0x554cc1(0xc5)](){const _0x5e7793=_0x554cc1,_0x3714ef=new _0x594483(this[_0x5e7793(0xc7)],{'filteredView':this[_0x5e7793(0xeb)],'queryView':{'label':_0x49513d(this[_0x5e7793(0xc7)],_0x5e7793(0xd4))},'infoView':{'text':{'notFound':{'primary':_0x5e88c6=>_0x49513d(this[_0x5e7793(0xc7)],_0x5e7793(0xe3),_0x5e88c6),'secondary':_0x49513d(this[_0x5e7793(0xc7)],_0x5e7793(0xc2))}}}}),_0x25aac1=this[_0x5e7793(0xba)]();return _0x25aac1[_0x5e7793(0xe6)]({'attributes':{'class':[this[_0x5e7793(0xf0)]['if'](_0x5e7793(0xf3),_0x5e7793(0xe8),_0x1dc583=>!_0x1dc583)]}}),_0x3714ef['on'](_0x5e7793(0xf2),()=>{const _0x58ff81=_0x5e7793;_0x3714ef[_0x58ff81(0xab)][_0x58ff81(0xec)](_0x25aac1,0x1);}),_0x3714ef[_0x5e7793(0xe6)]({'attributes':{'class':[this[_0x5e7793(0xf0)]['if'](_0x5e7793(0xda),_0x5e7793(0xe8),_0x4f3fff=>!_0x4f3fff)]}}),_0x3714ef;}[_0x554cc1(0xb5)](){const _0x559a8e=_0x554cc1,_0x12b0e1=new _0x132e79(this[_0x559a8e(0xc7)],_0x222163[_0x559a8e(0xed)]);return _0x12b0e1[_0x559a8e(0xe6)]({'attributes':{'class':[this[_0x559a8e(0xf0)]['if'](_0x559a8e(0xf9),_0x559a8e(0xe8),_0x280df0=>!_0x280df0)]}}),_0x12b0e1;}[_0x554cc1(0xba)](){const _0x563e94=_0x554cc1,_0x549f8f=new _0x54811b(this[_0x563e94(0xc7)]),_0x396227=new _0x11e64a(this[_0x563e94(0xc7)]);_0x396227[_0x563e94(0xe4)]({'withText':!0x1,'icon':_0x4f6f59,'class':_0x563e94(0xcf)}),_0x396227[_0x563e94(0xc0)](_0x563e94(0xef))['to'](this,_0x563e94(0xe5),_0x5588e2=>!!_0x5588e2),_0x396227['on'](_0x563e94(0xb7),()=>{const _0x55121e=_0x563e94;this[_0x55121e(0xf3)]='';});const _0x1b4aa0=this[_0x563e94(0xf0)];return _0x549f8f[_0x563e94(0xac)]({'tag':_0x563e94(0xd1),'attributes':{'class':['ck',_0x563e94(0xa2),_0x563e94(0xca)]},'children':[{'tag':'p','children':[{'text':_0x1b4aa0['to'](_0x563e94(0xf3))}]},_0x396227]}),_0x549f8f;}[_0x554cc1(0xb8)](){const _0x42dc66=_0x554cc1,_0x38eb6e=new _0x11e64a(this[_0x42dc66(0xc7)]);_0x38eb6e[_0x42dc66(0xe4)]({'label':_0x49513d(this[_0x42dc66(0xc7)],_0x42dc66(0xa7)),'withText':!0x0,'icon':_0x11777a,'class':_0x42dc66(0xd0)}),_0x38eb6e['on'](_0x42dc66(0xb7),()=>{const _0xf27d49=_0x42dc66;this[_0xf27d49(0xbf)](_0xf27d49(0xa9));});const _0x3d1bb8=new _0x54811b(this[_0x42dc66(0xc7)]);return _0x3d1bb8[_0x42dc66(0xac)]({'tag':_0x42dc66(0xd1),'attributes':{'class':[_0x42dc66(0xde),this[_0x42dc66(0xf0)]['if'](_0x42dc66(0xe0),_0x42dc66(0xe8),_0x2a6184=>!_0x2a6184)]},'children':[{'tag':'p','attributes':{'class':[_0x42dc66(0xe2)]},'children':[_0x49513d(this[_0x42dc66(0xc7)],_0x42dc66(0xa8))]},_0x38eb6e]}),_0x3d1bb8;}[_0x554cc1(0xa4)](_0x19f574,_0x2e2878){const _0x2b4b1e=_0x554cc1,_0x57c499=[];for(const _0x34389e of _0x19f574){const _0x18d1cf=new _0x56e362(_0x2e2878,_0x34389e);_0x18d1cf[_0x2b4b1e(0xb3)](..._0x377a16)['to'](this),_0x57c499[_0x2b4b1e(0xae)](_0x18d1cf);}return _0x57c499;}[_0x554cc1(0xdd)](_0x3c67dc){const _0x7def6e=_0x554cc1,_0x48e3d4=this[_0x7def6e(0xc7)]||'en',_0x1b174d=[];for(const _0x2e0e23 of _0x3c67dc){const _0x5473ee=this[_0x7def6e(0xa4)](_0x2e0e23[_0x7def6e(0xcc)],_0x48e3d4);_0x1b174d[_0x7def6e(0xae)](new _0x350d88(_0x48e3d4,{'title':_0x2e0e23[_0x7def6e(0xd2)],'items':_0x5473ee}));}this[_0x7def6e(0xeb)][_0x7def6e(0xc6)]=_0x1b174d,this[_0x7def6e(0xeb)][_0x7def6e(0xcc)][_0x7def6e(0xaf)](),this[_0x7def6e(0xeb)][_0x7def6e(0xcc)][_0x7def6e(0xa0)](_0x1b174d),this[_0x7def6e(0xe5)]=_0x3c67dc[_0x7def6e(0xd9)](_0x1e8f31=>_0x1e8f31[_0x7def6e(0xcc)][_0x7def6e(0xb9)]>0x0),this[_0x7def6e(0xd5)]();}[_0x554cc1(0xbb)](_0x257279){const _0x3fc359=_0x554cc1;for(const _0x5cea60 of this[_0x3fc359(0xeb)][_0x3fc359(0xc6)]){const _0x278bca=_0x5cea60[_0x3fc359(0xe1)](_0x257279);if(_0x278bca){if(_0x5cea60[_0x3fc359(0xcd)](_0x278bca),0x0===_0x5cea60[_0x3fc359(0xc1)][_0x3fc359(0xb9)]){const _0x37a3c6=this[_0x3fc359(0xeb)][_0x3fc359(0xc6)][_0x3fc359(0xce)](_0x5cea60);-0x1!==_0x37a3c6&&(this[_0x3fc359(0xeb)][_0x3fc359(0xc6)][_0x3fc359(0xd8)](_0x37a3c6,0x1),this[_0x3fc359(0xeb)][_0x3fc359(0xcc)][_0x3fc359(0xc8)](_0x5cea60));}this[_0x3fc359(0xe5)]=this[_0x3fc359(0xeb)][_0x3fc359(0xc6)][_0x3fc359(0xb9)]>0x0,this[_0x3fc359(0xd5)]();break;}}}[_0x554cc1(0xd3)](_0x5ab841,_0x202773){const _0x51d1fe=_0x554cc1;for(const _0x13f3b3 of this[_0x51d1fe(0xeb)][_0x51d1fe(0xc6)]){const _0x1ed997=_0x13f3b3[_0x51d1fe(0xe1)](_0x5ab841);if(_0x1ed997){_0x1ed997[_0x51d1fe(0xc3)](_0x202773);break;}}}[_0x554cc1(0xf5)](_0x285e62,_0x221b83,_0x1aa383){const _0x5ee07e=_0x554cc1;for(const _0x2b6112 of this[_0x5ee07e(0xeb)][_0x5ee07e(0xc6)]){const _0x44a879=_0x2b6112[_0x5ee07e(0xe1)](_0x285e62);if(_0x44a879){_0x44a879[_0x5ee07e(0xbd)](_0x221b83,_0x1aa383);break;}}}[_0x554cc1(0xd5)](){const _0x127999=_0x554cc1;if(this[_0x127999(0xe5)]){const _0x385069=this[_0x127999(0xb1)][_0x127999(0xb6)][_0x127999(0xdb)]?.[_0x127999(0xc9)]?.[_0x127999(0xf8)]||'';this[_0x127999(0xb1)][_0x127999(0xd7)](_0x385069);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x94e41e=_0x2b34;function _0x16c8(){const _0x3daec7=['DELETE','/conversations?','/actions/custom/calls/','read','requires','MAKE_TONE_CASUAL','callCustomReview','TRANSLATE','uploadFile','659440cyHTPY','fetchConversationMessages','upsertAIChatRating','message','reset','ai-request-aborted','4183938EjaIBv','isOfficialPlugin','context','AIConnector','items','make-longer','attributes','/documents','abortController','upsertAIActionRating','get','_decoder','stringify','isPremiumPlugin','CloudServices','/models/1?','search','toString','/actions/system/','AbortError','catch','positiveCount','feed','/ratings','fix-grammar','Content-Type','status','uploadUrl','/reviews/custom/calls','body','token','then','pluginName','executeCustomAction','IMPROVE_WRITING','ai.serviceUrl','deleteWebResource','json','request','PATCH','/reviews/custom/calls/','/calls/','27cotegD','/conversations','startConversation','updateConversation','862UxoYiO','_getStreamReader','797816QQcZXj','78YMZFZI','3455770smPbSk','100','/messages','GET','config','/actions/custom/calls','name','fetchConversations','decode','/web-resources','Bearer\x20','value','63rbieNL','keys','make-shorter','upsertCustomAIReviewRating','statusText','signal','data','make-tone-formal','/conversations/','_token','code','define','upsertCustomAIActionRating','/files','/messages/','getReader','parse','deleteDocument','/files/','fetchDocument','PUT','improve-writing','file','executeAction','_apiUrl','CONTINUE','true','group','make-tone-casual','text','ai-missing-token','POST','traceId','callSystemReview','MAKE_SHORTER','append','/web-resources/','translate','deleteFile','https://ai.cke-cs.com/v1','_sendApiRequest','_handleError','upsertAIReviewRating','FIX_GRAMMAR','excludeEmpty','application/json','ai-request-failed','modificationId','uploadDocument','9373752rNrDiU','releaseLock','49ZEKcmT','continue','fetchConversation','MAKE_TONE_FORMAL','/reviews/system/','language','plugins','push','62532oNaNvL','init','length','queryAssistant','deleteConversation','getModels','totalCount','/documents/','limit','/calls','MAKE_LONGER','1840cDAoIc'];_0x16c8=function(){return _0x3daec7;};return _0x16c8();}(function(_0x3a9a27,_0x5d10b7){const _0x1835be=_0x2b34,_0x3bee46=_0x3a9a27();while(!![]){try{const _0x5c6612=-parseInt(_0x1835be(0x1ee))/0x1*(-parseInt(_0x1835be(0x244))/0x2)+-parseInt(_0x1835be(0x1fe))/0x3*(-parseInt(_0x1835be(0x239))/0x4)+-parseInt(_0x1835be(0x24e))/0x5*(parseInt(_0x1835be(0x1f1))/0x6)+-parseInt(_0x1835be(0x231))/0x7*(parseInt(_0x1835be(0x1f0))/0x8)+parseInt(_0x1835be(0x1ea))/0x9*(parseInt(_0x1835be(0x1f2))/0xa)+parseInt(_0x1835be(0x254))/0xb+parseInt(_0x1835be(0x22f))/0xc;if(_0x5c6612===_0x5d10b7)break;else _0x3bee46['push'](_0x3bee46['shift']());}catch(_0x39ba7e){_0x3bee46['push'](_0x3bee46['shift']());}}}(_0x16c8,0xdd6b7));import{createParser as _0x278be9}from'eventsource-parser';import{ContextPlugin as _0x233cac}from'ckeditor5/src/core.js';import{CKEditorError as _0x582f2c}from'ckeditor5/src/utils.js';function _0x2b34(_0x46ba5,_0x516e9a){const _0x16c8b3=_0x16c8();return _0x2b34=function(_0x2b3430,_0x357221){_0x2b3430=_0x2b3430-0x1c4;let _0x231238=_0x16c8b3[_0x2b3430];return _0x231238;},_0x2b34(_0x46ba5,_0x516e9a);}export var AIActionsNames;!function(_0x4e3a92){const _0x3b16db=_0x2b34;_0x4e3a92[_0x3b16db(0x217)]=_0x3b16db(0x232),_0x4e3a92[_0x3b16db(0x229)]=_0x3b16db(0x1d8),_0x4e3a92[_0x3b16db(0x1e2)]=_0x3b16db(0x213),_0x4e3a92[_0x3b16db(0x243)]=_0x3b16db(0x1c5),_0x4e3a92[_0x3b16db(0x220)]=_0x3b16db(0x200),_0x4e3a92[_0x3b16db(0x24a)]=_0x3b16db(0x21a),_0x4e3a92[_0x3b16db(0x234)]=_0x3b16db(0x205),_0x4e3a92[_0x3b16db(0x24c)]=_0x3b16db(0x223);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x233cac{[_0x94e41e(0x216)];[_0x94e41e(0x207)];[_0x94e41e(0x1cb)];static get[_0x94e41e(0x249)](){const _0x396b84=_0x94e41e;return[_0x396b84(0x1ce)];}static get[_0x94e41e(0x1e0)](){const _0x18fad7=_0x94e41e;return _0x18fad7(0x257);}static get[_0x94e41e(0x255)](){return!0x0;}static get[_0x94e41e(0x1cd)](){return!0x0;}constructor(_0x7d87b2){const _0x247376=_0x94e41e;super(_0x7d87b2),this[_0x247376(0x256)][_0x247376(0x1f6)][_0x247376(0x209)](_0x247376(0x1e3),_0x247376(0x225)),this[_0x247376(0x216)]=this[_0x247376(0x256)][_0x247376(0x1f6)][_0x247376(0x1ca)](_0x247376(0x1e3)),this[_0x247376(0x207)]=null,this[_0x247376(0x1cb)]=new TextDecoder();}[_0x94e41e(0x23a)](){const _0x66bb6c=_0x94e41e,_0x5ad57f=this[_0x66bb6c(0x256)][_0x66bb6c(0x237)][_0x66bb6c(0x1ca)](_0x66bb6c(0x1ce));if(!_0x5ad57f[_0x66bb6c(0x1de)])throw new _0x582f2c(_0x66bb6c(0x21c),this);this[_0x66bb6c(0x207)]=_0x5ad57f[_0x66bb6c(0x1de)];}[_0x94e41e(0x1ec)](_0x589aa0,_0x51d2f1){const _0x1bd19f=_0x94e41e,_0x362298=this[_0x1bd19f(0x226)](_0x1bd19f(0x1eb),_0x1bd19f(0x21d),{'id':_0x589aa0,'group':_0x51d2f1});return{'getConversation':async()=>(await _0x362298[_0x1bd19f(0x1e6)])[_0x1bd19f(0x1e5)](),'abortController':_0x362298[_0x1bd19f(0x1c8)]};}[_0x94e41e(0x23c)]({message:_0x982da2,conversationId:_0x26070a,parts:_0x2958da,capabilities:_0xae84f8,model:_0x241730,quickActionData:_0x22f5d4}){const _0xca727e=_0x94e41e,_0x4d5d42={..._0x22f5d4&&{'quickActionData':_0x22f5d4}},_0x403396={'prompt':_0x982da2,'content':_0x2958da,'model':_0x241730,..._0xae84f8&&{'capabilities':_0xae84f8},...Object[_0xca727e(0x1ff)](_0x4d5d42)[_0xca727e(0x23b)]>0x0&&{'attributes':_0x4d5d42}},_0x5726d8=this[_0xca727e(0x226)](_0xca727e(0x206)+_0x26070a+_0xca727e(0x1f4),_0xca727e(0x21d),_0x403396);return{'getStream':async()=>{const _0x8a2d34=_0xca727e,_0x341df3=(await _0x5726d8[_0x8a2d34(0x1e6)])[_0x8a2d34(0x1dd)];return this[_0x8a2d34(0x1ef)](_0x341df3);},'abortController':_0x5726d8[_0xca727e(0x1c8)]};}[_0x94e41e(0x1e1)]({content:_0x5353f2,message:_0x32af84,model:_0xfdce3b,outputFormat:_0x596e44}){const _0x53dc03=_0x94e41e,_0xbf5aa7={'content':[{'type':_0x53dc03(0x21b),'content':_0x5353f2}],'prompt':_0x32af84,'model':_0xfdce3b,'outputFormat':_0x596e44},_0x49af13=this[_0x53dc03(0x226)](_0x53dc03(0x1f7),_0x53dc03(0x21d),_0xbf5aa7);return{'getStream':async()=>{const _0x5723df=_0x53dc03,_0x52859b=(await _0x49af13[_0x5723df(0x1e6)])[_0x5723df(0x1dd)];return this[_0x5723df(0x1ef)](_0x52859b);},'abortController':_0x49af13[_0x53dc03(0x1c8)]};}[_0x94e41e(0x215)]({actionName:_0x286aa6,content:_0x342cb4,args:_0x447e96}){const _0x41a538=_0x94e41e,_0x135ba2={'content':[{'type':_0x41a538(0x21b),'content':_0x342cb4}],'args':_0x447e96},_0x5a59fe=this[_0x41a538(0x226)](_0x41a538(0x1d2)+_0x286aa6+_0x41a538(0x242),_0x41a538(0x21d),_0x135ba2);return{'getStream':async()=>{const _0x385305=_0x41a538,_0xa2bbd3=(await _0x5a59fe[_0x385305(0x1e6)])[_0x385305(0x1dd)];return this[_0x385305(0x1ef)](_0xa2bbd3);},'abortController':_0x5a59fe[_0x41a538(0x1c8)]};}[_0x94e41e(0x24d)](_0x2a00ce,_0x59978f,_0x31629e){const _0xe22b08=_0x94e41e,_0x2e00c7=new FormData();_0x2e00c7[_0xe22b08(0x221)](_0xe22b08(0x214),_0x59978f,_0x59978f[_0xe22b08(0x1f8)]),_0x31629e&&_0x2e00c7[_0xe22b08(0x221)](_0xe22b08(0x1c6),JSON[_0xe22b08(0x1cc)](_0x31629e));const _0x248a1e=this[_0xe22b08(0x226)](_0xe22b08(0x206)+_0x2a00ce+_0xe22b08(0x20b),_0xe22b08(0x21d),_0x2e00c7);return{'getId':async()=>(await _0x248a1e[_0xe22b08(0x1e6)])[_0xe22b08(0x1e5)](),'abortController':_0x248a1e[_0xe22b08(0x1c8)]};}[_0x94e41e(0x211)](_0x1cbda2,_0x9036c8){const _0x3237b3=_0x94e41e,_0x860dc=this[_0x3237b3(0x226)](_0x3237b3(0x206)+_0x1cbda2+_0x3237b3(0x240)+_0x9036c8,_0x3237b3(0x1f5));return{'getDocument':async()=>(await _0x860dc[_0x3237b3(0x1e6)])[_0x3237b3(0x1e5)](),'abortController':_0x860dc[_0x3237b3(0x1c8)]};}[_0x94e41e(0x22e)](_0x36a1ff,_0x29bac6,_0x396074){const _0x289fbb=_0x94e41e,_0x34fc64={'content':_0x29bac6};_0x396074&&(_0x34fc64[_0x289fbb(0x1c6)]=_0x396074);const _0x1a490b=this[_0x289fbb(0x226)](_0x289fbb(0x206)+_0x36a1ff+_0x289fbb(0x1c7),_0x289fbb(0x21d),_0x34fc64);return{'getId':async()=>(await _0x1a490b[_0x289fbb(0x1e6)])[_0x289fbb(0x1e5)](),'abortController':_0x1a490b[_0x289fbb(0x1c8)]};}[_0x94e41e(0x1f9)](_0x254885,_0x31f95e){const _0x4dd177=_0x94e41e,_0x2e271b=new URLSearchParams();_0x2e271b[_0x4dd177(0x221)](_0x4dd177(0x22a),_0x4dd177(0x218)),_0x2e271b[_0x4dd177(0x221)](_0x4dd177(0x241),_0x4dd177(0x1f3)),_0x2e271b[_0x4dd177(0x221)](_0x4dd177(0x219),_0x254885),_0x31f95e&&_0x2e271b[_0x4dd177(0x221)](_0x4dd177(0x1d0),_0x31f95e);const _0x197642=this[_0x4dd177(0x226)](_0x4dd177(0x246)+_0x2e271b[_0x4dd177(0x1d1)](),_0x4dd177(0x1f5));return{'getConversations':async()=>{const _0x58dc8e=_0x4dd177,_0x3d94f6=await _0x197642[_0x58dc8e(0x1e6)];return(await _0x3d94f6[_0x58dc8e(0x1e5)]())[_0x58dc8e(0x1c4)];},'abortController':_0x197642[_0x4dd177(0x1c8)]};}[_0x94e41e(0x23d)](_0x3880cf){const _0x52b245=_0x94e41e,_0x3ccacc=this[_0x52b245(0x226)](_0x52b245(0x206)+_0x3880cf,_0x52b245(0x245));return{'execute':async()=>{const _0x539f25=_0x52b245;await _0x3ccacc[_0x539f25(0x1e6)];},'abortController':_0x3ccacc[_0x52b245(0x1c8)]};}[_0x94e41e(0x1ed)](_0xc9a5d4,_0x5957f5){const _0x3cf4d5=_0x94e41e,_0x27143d=this[_0x3cf4d5(0x226)](_0x3cf4d5(0x206)+_0xc9a5d4,_0x3cf4d5(0x1e7),_0x5957f5);return{'getResult':async()=>(await _0x27143d[_0x3cf4d5(0x1e6)],_0x5957f5),'abortController':_0x27143d[_0x3cf4d5(0x1c8)]};}[_0x94e41e(0x233)](_0x3f215c){const _0x19ffb6=_0x94e41e,_0x4a85de=this[_0x19ffb6(0x226)](_0x19ffb6(0x206)+_0x3f215c,_0x19ffb6(0x1f5));return{'getConversation':async()=>(await _0x4a85de[_0x19ffb6(0x1e6)])[_0x19ffb6(0x1e5)](),'abortController':_0x4a85de[_0x19ffb6(0x1c8)]};}[_0x94e41e(0x24f)](_0x5a4a11){const _0x121505=_0x94e41e,_0x599ed1=this[_0x121505(0x226)](_0x121505(0x206)+_0x5a4a11+_0x121505(0x1f4),_0x121505(0x1f5));return{'getMessages':async()=>{const _0x306ad9=_0x121505,_0x199dbb=await _0x599ed1[_0x306ad9(0x1e6)];return(await _0x199dbb[_0x306ad9(0x1e5)]())[_0x306ad9(0x1c4)];},'abortController':_0x599ed1[_0x121505(0x1c8)]};}[_0x94e41e(0x1db)](_0x2f7029,_0x4278fb,_0x2c9490){const _0x370507=_0x94e41e,_0x423127=this[_0x370507(0x226)](_0x370507(0x206)+_0x2f7029+_0x370507(0x1fb),_0x370507(0x21d),{'url':_0x4278fb,'attributes':_0x2c9490});return{'getId':async()=>(await _0x423127[_0x370507(0x1e6)])[_0x370507(0x1e5)](),'abortController':_0x423127[_0x370507(0x1c8)]};}[_0x94e41e(0x23e)](_0x80eb6c='en'){const _0x5d4f92=_0x94e41e,_0x3bef70=new URLSearchParams();_0x3bef70[_0x5d4f92(0x221)](_0x5d4f92(0x236),_0x80eb6c);const _0x50ebac=_0x5d4f92(0x1cf)+_0x3bef70[_0x5d4f92(0x1d1)](),_0x4a4987=this[_0x5d4f92(0x226)](_0x50ebac,_0x5d4f92(0x1f5));return{'list':async()=>await(await _0x4a4987[_0x5d4f92(0x1e6)])[_0x5d4f92(0x1e5)](),'abortController':_0x4a4987[_0x5d4f92(0x1c8)]};}[_0x94e41e(0x224)](_0x317235,_0x5b4226){const _0x4e8629=_0x94e41e,_0x585d76=this[_0x4e8629(0x226)](_0x4e8629(0x206)+_0x317235+_0x4e8629(0x210)+_0x5b4226,_0x4e8629(0x245));return{'execute':async()=>{const _0x5e6d43=_0x4e8629;await _0x585d76[_0x5e6d43(0x1e6)];},'abortController':_0x585d76[_0x4e8629(0x1c8)]};}[_0x94e41e(0x20f)](_0x37c2fb,_0x21156a){const _0x287ef9=_0x94e41e,_0x16b0c8=this[_0x287ef9(0x226)](_0x287ef9(0x206)+_0x37c2fb+_0x287ef9(0x240)+_0x21156a,_0x287ef9(0x245));return{'execute':async()=>{const _0x45fbf7=_0x287ef9;await _0x16b0c8[_0x45fbf7(0x1e6)];},'abortController':_0x16b0c8[_0x287ef9(0x1c8)]};}[_0x94e41e(0x1e4)](_0x194722,_0x31f84c){const _0x28aa95=_0x94e41e,_0x46ee0b=this[_0x28aa95(0x226)](_0x28aa95(0x206)+_0x194722+_0x28aa95(0x222)+_0x31f84c,_0x28aa95(0x245));return{'execute':async()=>{const _0x259344=_0x28aa95;await _0x46ee0b[_0x259344(0x1e6)];},'abortController':_0x46ee0b[_0x28aa95(0x1c8)]};}[_0x94e41e(0x21f)]({reviewName:_0x1bc7ea,content:_0x2212df,args:_0xeea46b}){const _0x5a575e=_0x94e41e,_0x5b6139=this[_0x5a575e(0x226)](_0x5a575e(0x235)+_0x1bc7ea+_0x5a575e(0x242),_0x5a575e(0x21d),{'content':[{'type':_0x5a575e(0x21b),'content':_0x2212df}],'args':_0xeea46b});return{'getStream':async()=>{const _0x16d3cb=_0x5a575e,_0x113efd=(await _0x5b6139[_0x16d3cb(0x1e6)])[_0x16d3cb(0x1dd)];return this[_0x16d3cb(0x1ef)](_0x113efd);},'abortController':_0x5b6139[_0x5a575e(0x1c8)]};}[_0x94e41e(0x24b)]({content:_0x507248,prompt:_0x297bff,model:_0x30151b}){const _0x254285=_0x94e41e,_0x36d2a5=this[_0x254285(0x226)](_0x254285(0x1dc),_0x254285(0x21d),{'content':[{'type':_0x254285(0x21b),'content':_0x507248}],'prompt':_0x297bff,'model':_0x30151b});return{'getStream':async()=>{const _0x25287e=_0x254285,_0x455e77=(await _0x36d2a5[_0x25287e(0x1e6)])[_0x25287e(0x1dd)];return this[_0x25287e(0x1ef)](_0x455e77);},'abortController':_0x36d2a5[_0x254285(0x1c8)]};}[_0x94e41e(0x250)](_0x1f6652,_0x18db91,_0x4ea778){const _0x36a4f9=_0x94e41e,_0x5d36a0=this[_0x36a4f9(0x226)](_0x36a4f9(0x206)+_0x1f6652+_0x36a4f9(0x20c)+_0x18db91+_0x36a4f9(0x1d7),_0x36a4f9(0x212),{'positiveCount':_0x4ea778[_0x36a4f9(0x1d5)],'totalCount':_0x4ea778[_0x36a4f9(0x23f)],'modificationId':_0x4ea778[_0x36a4f9(0x22d)]});return{'execute':async()=>{const _0x297d1d=_0x36a4f9;await _0x5d36a0[_0x297d1d(0x1e6)];},'abortController':_0x5d36a0[_0x36a4f9(0x1c8)]};}[_0x94e41e(0x1c9)](_0x37fbd8,_0x4f0ec4,_0x18ebaf){const _0xcbc553=_0x94e41e,_0xa5dea8=this[_0xcbc553(0x226)](_0xcbc553(0x1d2)+_0x37fbd8+_0xcbc553(0x1e9)+_0x4f0ec4+_0xcbc553(0x1d7),_0xcbc553(0x212),{'positiveCount':_0x18ebaf[_0xcbc553(0x1d5)],'totalCount':_0x18ebaf[_0xcbc553(0x23f)]});return{'execute':async()=>{const _0x5881d1=_0xcbc553;await _0xa5dea8[_0x5881d1(0x1e6)];},'abortController':_0xa5dea8[_0xcbc553(0x1c8)]};}[_0x94e41e(0x20a)](_0x574b14,_0x5624e1){const _0x4b284d=_0x94e41e,_0x223513=this[_0x4b284d(0x226)](_0x4b284d(0x247)+_0x574b14+_0x4b284d(0x1d7),_0x4b284d(0x212),{'positiveCount':_0x5624e1[_0x4b284d(0x1d5)],'totalCount':_0x5624e1[_0x4b284d(0x23f)]});return{'execute':async()=>{const _0x1f24ff=_0x4b284d;await _0x223513[_0x1f24ff(0x1e6)];},'abortController':_0x223513[_0x4b284d(0x1c8)]};}[_0x94e41e(0x228)](_0x5096ad,_0x4a5c32,_0x7e9169,_0x526a1a){const _0x2453ae=_0x94e41e,_0x17e9a0=this[_0x2453ae(0x226)](_0x2453ae(0x235)+_0x5096ad+_0x2453ae(0x1e9)+_0x4a5c32+_0x2453ae(0x1d7),_0x2453ae(0x212),{'positiveCount':_0x7e9169[_0x2453ae(0x1d5)],'totalCount':_0x7e9169[_0x2453ae(0x23f)],'dataId':_0x526a1a});return{'execute':async()=>{const _0x24f39f=_0x2453ae;await _0x17e9a0[_0x24f39f(0x1e6)];},'abortController':_0x17e9a0[_0x2453ae(0x1c8)]};}[_0x94e41e(0x201)](_0x5d098f,_0x1467f1,_0x3bdaa9){const _0x46f8e8=_0x94e41e,_0x36ef6a=this[_0x46f8e8(0x226)](_0x46f8e8(0x1e8)+_0x5d098f+_0x46f8e8(0x1d7),_0x46f8e8(0x212),{'positiveCount':_0x1467f1[_0x46f8e8(0x1d5)],'totalCount':_0x1467f1[_0x46f8e8(0x23f)],'dataId':_0x3bdaa9});return{'execute':async()=>{const _0x3b5451=_0x46f8e8;await _0x36ef6a[_0x3b5451(0x1e6)];},'abortController':_0x36ef6a[_0x46f8e8(0x1c8)]};}[_0x94e41e(0x226)](_0x1cc2a2,_0x2cdd61,_0x1b1f54){const _0x36ce52=_0x94e41e,_0x1f3e1d=new AbortController(),_0x160a49=_0x1b1f54 instanceof FormData,_0x46b825={'Authorization':_0x36ce52(0x1fc)+this[_0x36ce52(0x207)]?.[_0x36ce52(0x1fd)]};_0x1b1f54&&!_0x160a49&&(_0x46b825[_0x36ce52(0x1d9)]=_0x36ce52(0x22b));const _0x5e4190={'method':_0x2cdd61,'headers':_0x46b825,'signal':_0x1f3e1d[_0x36ce52(0x203)]};return _0x1b1f54&&(_0x5e4190[_0x36ce52(0x1dd)]=_0x160a49?_0x1b1f54:JSON[_0x36ce52(0x1cc)](_0x1b1f54)),{'request':fetch(''+this[_0x36ce52(0x216)]+_0x1cc2a2,_0x5e4190)[_0x36ce52(0x1d4)](_0x1f40e7=>{const _0x43e771=_0x36ce52;this[_0x43e771(0x227)](_0x1f40e7);})[_0x36ce52(0x1df)](_0x2c8f24=>_0x2c8f24['ok']?_0x2c8f24:_0x2c8f24[_0x36ce52(0x1e5)]()[_0x36ce52(0x1df)](_0x373bc1=>{const _0x4cec27=_0x36ce52;throw{'url':this[_0x4cec27(0x216)],'path':_0x1cc2a2,'method':_0x2cdd61,'body':_0x1b1f54,'status':(_0x2c8f24||{})[_0x4cec27(0x1da)],'statusText':(_0x2c8f24||{})[_0x4cec27(0x202)],'code':_0x373bc1[_0x4cec27(0x208)],'message':_0x373bc1[_0x4cec27(0x251)],'traceId':_0x373bc1[_0x4cec27(0x21e)]};})),'abortController':_0x1f3e1d};}async*[_0x94e41e(0x1ef)](_0x23d887){const _0x42e0fd=_0x94e41e,_0xe89704=[],_0x52af4a=_0x23d887[_0x42e0fd(0x20d)](),_0x10e4a8=_0x278be9({'onError':_0x25b856=>{const _0x16bf6b=_0x42e0fd;this[_0x16bf6b(0x227)](_0x25b856);},'onEvent':_0x55a527=>{const _0x3c6ea4=_0x42e0fd;_0x55a527[_0x3c6ea4(0x204)]=JSON[_0x3c6ea4(0x20e)](_0x55a527[_0x3c6ea4(0x204)]),_0xe89704[_0x3c6ea4(0x238)](_0x55a527);}});try{let _0x5eeeaf=!0x1;for(;!_0x5eeeaf;){const {done:_0x524770,value:_0x4ee419}=await _0x52af4a[_0x42e0fd(0x248)]();_0x524770&&(_0x5eeeaf=!0x0),_0x10e4a8[_0x42e0fd(0x1d6)](this[_0x42e0fd(0x1cb)][_0x42e0fd(0x1fa)](_0x4ee419,{'stream':!0x0})),yield*_0xe89704,_0xe89704[_0x42e0fd(0x23b)]=0x0;}}catch(_0x388844){this[_0x42e0fd(0x227)](_0x388844);}finally{_0x52af4a[_0x42e0fd(0x230)](),_0x10e4a8[_0x42e0fd(0x252)]();}}[_0x94e41e(0x227)](_0x260e99){const _0x45a189=_0x94e41e;if(_0x260e99 instanceof _0x582f2c)throw _0x260e99;if(_0x260e99 instanceof Error&&_0x45a189(0x1d3)===_0x260e99[_0x45a189(0x1f8)])throw new _0x582f2c(_0x45a189(0x253),this,{'originalError':_0x260e99});throw new _0x582f2c(_0x45a189(0x22c),this,{'originalError':_0x260e99});}}
|
|
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});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ebb94=_0x359d;(function(_0x5c35c3,_0x3d88bd){const _0x4778df=_0x359d,_0x29ee0f=_0x5c35c3();while(!![]){try{const _0x29c55d=parseInt(_0x4778df(0x89))/0x1*(-parseInt(_0x4778df(0xc0))/0x2)+-parseInt(_0x4778df(0x9a))/0x3*(-parseInt(_0x4778df(0xdd))/0x4)+parseInt(_0x4778df(0xce))/0x5+parseInt(_0x4778df(0xb6))/0x6+parseInt(_0x4778df(0xc8))/0x7*(-parseInt(_0x4778df(0xa0))/0x8)+parseInt(_0x4778df(0xcb))/0x9*(-parseInt(_0x4778df(0xc1))/0xa)+-parseInt(_0x4778df(0x80))/0xb;if(_0x29c55d===_0x3d88bd)break;else _0x29ee0f['push'](_0x29ee0f['shift']());}catch(_0x19a0b7){_0x29ee0f['push'](_0x29ee0f['shift']());}}}(_0xb1fc,0xdccee));import{ViewDowncastWriter as _0x2ec56f}from'ckeditor5/src/engine.js';import{ContextPlugin as _0xed08e0,Editor as _0x4e292f}from'ckeditor5/src/core.js';import{uid as _0x56212e}from'ckeditor5/src/utils.js';function _0x359d(_0xef9f59,_0x43b2cc){const _0xb1fc65=_0xb1fc();return _0x359d=function(_0x359d5c,_0x3d7d33){_0x359d5c=_0x359d5c-0x77;let _0x50688=_0xb1fc65[_0x359d5c];return _0x50688;},_0x359d(_0xef9f59,_0x43b2cc);}import{getEditorFromContext as _0x3ad0a5}from'./utils/geteditorfromcontext.js';function _0xb1fc(){const _0xfcd257=['427838uLAPQC','100PgTSEM','hideFakeVisualSelection','markerName','floor','markers','getRoot','createRange','3634351Hevcsr','_getMarkersInDocumentOrder','markerToHighlight','269406rJBCkN','editors','isContent','929365lhjVMe','processor','push','ai-selection','_displayedFakeSelectionId','editingDowncast','afterInit','from','isBefore',':start>','modelToViewWithIds','RealTimeCollaborationClient','ai-selection:','getWalker','isAfter','5235452LMJhYu','editing','removeAllRanges',':end>','_integrateEditor','model',':end></','createRangeIn','fromCharCode','getMarkersGroup','createUIElement','conversion','emptyElement','479468aVdWEq','element','end','document','isOfficialPlugin','getStart','listenTo','dataDowncast','pluginName','1GFwswq','view','getSelection','join','length','sort','removeMarker','toView','has','sessionId','getDocumentData','substring','selection','isPremiumPlugin','$textProxy','trim','data','3YtLjwA','change','isAtEnd','getLastMatchingPosition','getChildren',':start></','24FZCJDJ','schema','setAttribute','context','getSelectionText','version','get','add','_setDataIdsOnChildren','_sessionId','indexOf','showFakeVisualSelection','start','data-id','for','convertAiChatSelectionMarker','random','ready','isOpening','_nextDataId','getSelectedContent','name','9144720QkZNvS','containerElement','addMarker','_displayedFakeSelectionLocked','AIEditing','ck-fake-ai-selection','toData','ck-ai-assistant-ui_theme','plugins','markerToElement'];_0xb1fc=function(){return _0xfcd257;};return _0xb1fc();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2ebb94(0xd1);export class AIEditing extends _0xed08e0{[_0x2ebb94(0xd2)]=null;[_0x2ebb94(0xb9)]=!0x1;[_0x2ebb94(0xa9)];static get[_0x2ebb94(0x88)](){const _0x2de4ed=_0x2ebb94;return _0x2de4ed(0xba);}static get[_0x2ebb94(0x84)](){return!0x0;}static get[_0x2ebb94(0x96)](){return!0x0;}get[_0x2ebb94(0x92)](){const _0x3d24b9=_0x2ebb94;if(!this[_0x3d24b9(0xa9)]){const _0x1ee097=_0x3ad0a5(this[_0x3d24b9(0xa3)]),_0x13ee2a=_0x1ee097[_0x3d24b9(0xbe)][_0x3d24b9(0x91)](_0x3d24b9(0xd9))&&_0x1ee097[_0x3d24b9(0xbe)][_0x3d24b9(0xa6)](_0x3d24b9(0xd9))[_0x3d24b9(0x92)];this[_0x3d24b9(0xa9)]=_0x13ee2a||_0x56212e();}return this[_0x3d24b9(0xa9)];}[_0x2ebb94(0x93)](){const _0x2cd9fb=_0x2ebb94,_0x189de2=_0x3ad0a5(this[_0x2cd9fb(0xa3)]),_0x5ac6f0=_0x189de2[_0x2cd9fb(0x78)],_0x3dfc7d=_0x189de2[_0x2cd9fb(0x99)][_0x2cd9fb(0x90)](_0x5ac6f0[_0x2cd9fb(0x83)][_0x2cd9fb(0xc6)](),{'convertAiChatSelectionMarker':!0x0}),_0x5a2462=new _0x2ec56f(_0x189de2[_0x2cd9fb(0xde)][_0x2cd9fb(0x8a)][_0x2cd9fb(0x83)]);this[_0x2cd9fb(0xa8)](_0x3dfc7d,_0x5a2462);let _0x4c8a11=_0x189de2[_0x2cd9fb(0x99)][_0x2cd9fb(0xcf)][_0x2cd9fb(0xbc)](_0x3dfc7d);const _0x870bed=this[_0x2cd9fb(0xc9)](),_0x5628da=[];for(const _0x4b5c0d of _0x870bed){const _0x1c9baf='<'+_0x4b5c0d[_0x2cd9fb(0xb5)]+_0x2cd9fb(0x9f)+_0x4b5c0d[_0x2cd9fb(0xb5)]+_0x2cd9fb(0xd7),_0x8dc159=_0x4c8a11[_0x2cd9fb(0xaa)](_0x1c9baf);_0x4c8a11=_0x4c8a11[_0x2cd9fb(0x94)](0x0,_0x8dc159)+_0x4c8a11[_0x2cd9fb(0x94)](_0x8dc159+_0x1c9baf[_0x2cd9fb(0x8d)]);const _0x152a84='<'+_0x4b5c0d[_0x2cd9fb(0xb5)]+_0x2cd9fb(0x79)+_0x4b5c0d[_0x2cd9fb(0xb5)]+_0x2cd9fb(0xe0),_0x28c77d=_0x4c8a11[_0x2cd9fb(0xaa)](_0x152a84);_0x4c8a11=_0x4c8a11[_0x2cd9fb(0x94)](0x0,_0x28c77d)+_0x4c8a11[_0x2cd9fb(0x94)](_0x28c77d+_0x152a84[_0x2cd9fb(0x8d)]),_0x5628da[_0x2cd9fb(0xd0)]({'markerName':_0x4b5c0d[_0x2cd9fb(0xb5)],'start':_0x8dc159,'end':_0x28c77d,'htmlFragment':_0x4c8a11[_0x2cd9fb(0x94)](_0x8dc159,_0x28c77d)});}return{'content':_0x4c8a11,'version':_0x189de2[_0x2cd9fb(0x78)][_0x2cd9fb(0x83)][_0x2cd9fb(0xa5)],'sessionId':this[_0x2cd9fb(0x92)],'selections':_0x5628da};}async[_0x2ebb94(0xd4)](){const _0x215bd7=_0x2ebb94;this[_0x215bd7(0xa3)]instanceof _0x4e292f?this[_0x215bd7(0x77)](this[_0x215bd7(0xa3)]):this[_0x215bd7(0x86)](this[_0x215bd7(0xa3)][_0x215bd7(0xcc)],_0x215bd7(0xa7),(_0x4d4835,_0x597313)=>{const _0x11ecbd=_0x215bd7;_0x597313['on'](_0x11ecbd(0xb1),()=>{const _0x29cce6=_0x11ecbd;this[_0x29cce6(0x77)](_0x597313);});});}[_0x2ebb94(0x77)](_0x347755){const _0x2f6311=_0x2ebb94;_0x347755[_0x2f6311(0x7e)][_0x2f6311(0xae)](_0x2f6311(0xd3))[_0x2f6311(0xca)]({'model':_0x2f6311(0xd1),'view':{'classes':[_0x2f6311(0xbb),_0x2f6311(0xbd)],'priority':0xc}}),_0x347755[_0x2f6311(0x7e)][_0x2f6311(0xae)](_0x2f6311(0x87))[_0x2f6311(0xbf)]({'model':_0x2f6311(0xd1),'view':(_0x35e75c,{writer:_0x558ca5,options:_0x3e82f7})=>_0x3e82f7[_0x2f6311(0xaf)]?_0x558ca5[_0x2f6311(0x7d)](_0x35e75c[_0x2f6311(0xc3)]+':'+(_0x35e75c[_0x2f6311(0xb2)]?_0x2f6311(0xac):_0x2f6311(0x82))):null});}[_0x2ebb94(0xab)](_0x369762,_0xf88805,_0x5e8539=!0x1,_0x26840b=!0x1){const _0x3543e4=_0x2ebb94;if(this[_0x3543e4(0xb9)]&&!_0x26840b)return!0x1;const _0x10300d=_0x3ad0a5(this[_0x3543e4(0xa3)])[_0x3543e4(0x78)];return _0x10300d[_0x3543e4(0x9b)](_0x465517=>{const _0x262310=_0x3543e4;this[_0x262310(0xd2)]&&this[_0x262310(0xc2)](this[_0x262310(0xd2)]),this[_0x262310(0xd2)]=_0xf88805,this[_0x262310(0xb9)]=_0x5e8539;let _0x37b169=0x0;for(let _0x1c490d of _0x369762){const _0x4ba7f1=_0x262310(0xda)+_0x37b169;if(_0x1c490d[_0x262310(0xac)][_0x262310(0x9c)]){const _0x2e416f=_0x1c490d[_0x262310(0xac)][_0x262310(0x9d)](({item:_0x4a0754})=>!_0x10300d[_0x262310(0xa1)][_0x262310(0xcd)](_0x4a0754),{'boundaries':_0x1c490d});_0x1c490d=_0x465517[_0x262310(0xc7)](_0x2e416f,_0x1c490d[_0x262310(0x82)]);}_0x465517[_0x262310(0xb8)](_0x4ba7f1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x1c490d}),_0x37b169++;}}),window[_0x3543e4(0x8b)]()?.[_0x3543e4(0xdf)](),!0x0;}[_0x2ebb94(0xc2)](_0x2807d9){const _0x1816d4=_0x2ebb94;if(this[_0x1816d4(0xd2)]!=_0x2807d9)return!0x1;this[_0x1816d4(0xd2)]=null,this[_0x1816d4(0xb9)]=!0x1;const _0x28c166=_0x3ad0a5(this[_0x1816d4(0xa3)]),_0x44ee0b=_0x28c166[_0x1816d4(0x78)][_0x1816d4(0xc5)][_0x1816d4(0x7c)](_0x1816d4(0xd1));return _0x28c166[_0x1816d4(0x78)][_0x1816d4(0x9b)](_0x29b16b=>{const _0x190f95=_0x1816d4;for(const _0x25463d of _0x44ee0b)_0x29b16b[_0x190f95(0x8f)](_0x25463d);}),!0x0;}[_0x2ebb94(0xd8)](_0x3a08ed){const _0x32626e=_0x2ebb94,_0x244e5d=_0x3ad0a5(this[_0x32626e(0xa3)]),_0x519ac4=_0x244e5d[_0x32626e(0x99)][_0x32626e(0x90)](_0x3a08ed),_0x598dcc=new _0x2ec56f(_0x244e5d[_0x32626e(0xde)][_0x32626e(0x8a)][_0x32626e(0x83)]);return this[_0x32626e(0xa8)](_0x519ac4,_0x598dcc),_0x519ac4;}[_0x2ebb94(0xa8)](_0x581f29,_0x27188a){const _0x419eb8=_0x2ebb94;let _0x4c0dd6=!0x1;const _0x1a0b8e=new Set();for(const _0x14b6cd of _0x581f29[_0x419eb8(0x9e)]()){const _0x31e795=_0x14b6cd['is'](_0x419eb8(0x7f))||_0x14b6cd['is'](_0x419eb8(0xb7));if(!_0x14b6cd['is'](_0x419eb8(0x81)))continue;(this[_0x419eb8(0xa8)](_0x14b6cd,_0x27188a)||_0x31e795)&&(_0x27188a[_0x419eb8(0xa2)](_0x419eb8(0xad),this[_0x419eb8(0xb3)](_0x1a0b8e),_0x14b6cd),_0x4c0dd6=!0x0);}return _0x4c0dd6;}[_0x2ebb94(0xb3)](_0x58109c){const _0x36afcc=_0x2ebb94;let _0x151699;do{_0x151699='';for(let _0x158ec6=0x0;_0x158ec6<0x4;_0x158ec6++)_0x151699+=String[_0x36afcc(0x7b)](0x61+Math[_0x36afcc(0xc4)](0x1a*Math[_0x36afcc(0xb0)]()));}while(_0x58109c[_0x36afcc(0x91)](_0x151699));return _0x58109c[_0x36afcc(0xa7)](_0x151699),_0x151699;}[_0x2ebb94(0xa4)](){const _0x342924=_0x2ebb94,{model:_0x4e80cf}=_0x3ad0a5(this[_0x342924(0xa3)]),_0x4b7e37=_0x4e80cf[_0x342924(0x83)][_0x342924(0x95)],_0x3ed363=_0x4e80cf[_0x342924(0xb4)](_0x4b7e37),_0x5911c9=[],_0x23a574=_0x4e80cf[_0x342924(0x7a)](_0x3ed363)[_0x342924(0xdb)]();for(const {item:_0x4d78ea}of _0x23a574)_0x4d78ea['is'](_0x342924(0x97))?_0x5911c9[_0x342924(0xd0)](_0x4d78ea[_0x342924(0x99)]):_0x4d78ea['is'](_0x342924(0x81))&&_0x5911c9[_0x342924(0x8d)]>0x0&&'\x20'!==_0x5911c9[_0x5911c9[_0x342924(0x8d)]-0x1]&&_0x5911c9[_0x342924(0xd0)]('\x20');return'\x22'+_0x5911c9[_0x342924(0x8c)]('')[_0x342924(0x98)]()+'\x22';}[_0x2ebb94(0xc9)](){const _0x544072=_0x2ebb94,_0x157764=_0x3ad0a5(this[_0x544072(0xa3)])[_0x544072(0x78)];return Array[_0x544072(0xd5)](_0x157764[_0x544072(0xc5)][_0x544072(0x7c)](_0x544072(0xd1)))[_0x544072(0x8e)]((_0x2615a6,_0x100e3c)=>_0x2615a6[_0x544072(0x85)]()[_0x544072(0xd6)](_0x100e3c[_0x544072(0x85)]())?-0x1:_0x2615a6[_0x544072(0x85)]()[_0x544072(0xdc)](_0x100e3c[_0x544072(0x85)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0xe879(_0x2781b2,_0x58aa01){const _0x275b29=_0x275b();return _0xe879=function(_0xe879bc,_0x1aceb0){_0xe879bc=_0xe879bc-0xd3;let _0x50553c=_0x275b29[_0xe879bc];return _0x50553c;},_0xe879(_0x2781b2,_0x58aa01);}const _0x426adb=_0xe879;(function(_0x4577c3,_0x1a1f9b){const _0x101beb=_0xe879,_0x2ed346=_0x4577c3();while(!![]){try{const _0x46bee2=parseInt(_0x101beb(0xde))/0x1*(-parseInt(_0x101beb(0xe6))/0x2)+parseInt(_0x101beb(0xd3))/0x3*(-parseInt(_0x101beb(0xec))/0x4)+parseInt(_0x101beb(0xe1))/0x5*(parseInt(_0x101beb(0xd4))/0x6)+parseInt(_0x101beb(0xdb))/0x7+parseInt(_0x101beb(0xe8))/0x8*(-parseInt(_0x101beb(0xea))/0x9)+-parseInt(_0x101beb(0xd7))/0xa+-parseInt(_0x101beb(0xe7))/0xb*(-parseInt(_0x101beb(0xd5))/0xc);if(_0x46bee2===_0x1a1f9b)break;else _0x2ed346['push'](_0x2ed346['shift']());}catch(_0x5ca1cd){_0x2ed346['push'](_0x2ed346['shift']());}}}(_0x275b,0x84a09));import{EmitterMixin as _0x4a7c8a}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x426adb(0xe9)];function _0x275b(){const _0x4c9c9e=['_isWebSearchEnabled','2403642uaTVYU','1068WjztcH','22692696QFKQnq','setWebSearch','8816430Cvzvly','setReasoning','fire','toggleWebSearch','6189456JkisHs','reasoning','webSearch','113kZCHzM','getCapabilitiesConfig','init','15635oCCvUz','isWebSearchEnabled','_isReasoningEnabled','getCapabilitiesRequestData','reset','17684XZjktR','11upkCju','6992AnQOJw','capabilitiesUpdated','1098JUSepo','toggleReasoning','4PWClMw','isReasoningEnabled'];_0x275b=function(){return _0x4c9c9e;};return _0x275b();}export class AICapabilities extends _0x4a7c8a(){[_0x426adb(0xee)];[_0x426adb(0xe3)];constructor(){const _0x3aab3d=_0x426adb;super(),this[_0x3aab3d(0xee)]=!0x1,this[_0x3aab3d(0xe3)]=!0x1;}[_0x426adb(0xe0)](){const _0x181678=_0x426adb;this[_0x181678(0xe5)]();}[_0x426adb(0xe5)](){const _0x5e28d7=_0x426adb;this[_0x5e28d7(0xd6)](!0x1),this[_0x5e28d7(0xd8)](!0x1);}[_0x426adb(0xdf)](){const _0x33aeed=_0x426adb;return{'isWebSearchEnabled':this[_0x33aeed(0xee)],'isReasoningEnabled':this[_0x33aeed(0xe3)]};}static[_0x426adb(0xe4)](_0x3de93d){const _0x251ee5=_0x426adb,_0x4f2594={};return _0x3de93d&&_0x3de93d[_0x251ee5(0xe2)]&&(_0x4f2594[_0x251ee5(0xdd)]={}),_0x3de93d&&_0x3de93d[_0x251ee5(0xed)]&&(_0x4f2594[_0x251ee5(0xdc)]={}),_0x4f2594;}[_0x426adb(0xda)](){const _0x29a6e8=_0x426adb;this[_0x29a6e8(0xd6)](!this[_0x29a6e8(0xee)]);}[_0x426adb(0xeb)](){const _0xadf8a7=_0x426adb;this[_0xadf8a7(0xd8)](!this[_0xadf8a7(0xe3)]);}[_0x426adb(0xd6)](_0x193e14){const _0x238c19=_0x426adb;_0x193e14!==this[_0x238c19(0xee)]&&(this[_0x238c19(0xee)]=_0x193e14,this[_0x238c19(0xd9)](_0x238c19(0xe9),this[_0x238c19(0xdf)]()));}[_0x426adb(0xd8)](_0x52d6a7){const _0x3723fe=_0x426adb;_0x52d6a7!==this[_0x3723fe(0xe3)]&&(this[_0x3723fe(0xe3)]=_0x52d6a7,this[_0x3723fe(0xd9)](_0x3723fe(0xe9),this[_0x3723fe(0xdf)]()));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x152c45,_0x37e6fb){var _0x5d4db1=_0x3c7e,_0x57ab6d=_0x152c45();while(!![]){try{var _0x1ce045=parseInt(_0x5d4db1(0x1cd))/0x1*(-parseInt(_0x5d4db1(0x1c2))/0x2)+parseInt(_0x5d4db1(0x1cf))/0x3+parseInt(_0x5d4db1(0x1d3))/0x4*(-parseInt(_0x5d4db1(0x1cc))/0x5)+-parseInt(_0x5d4db1(0x1c3))/0x6*(-parseInt(_0x5d4db1(0x1bd))/0x7)+-parseInt(_0x5d4db1(0x1c5))/0x8*(-parseInt(_0x5d4db1(0x1cb))/0x9)+-parseInt(_0x5d4db1(0x1d2))/0xa+-parseInt(_0x5d4db1(0x1c7))/0xb*(-parseInt(_0x5d4db1(0x1ce))/0xc);if(_0x1ce045===_0x37e6fb)break;else _0x57ab6d['push'](_0x57ab6d['shift']());}catch(_0x28515b){_0x57ab6d['push'](_0x57ab6d['shift']());}}}(_0x4f45,0x9aacb));function _0x3c7e(_0x34b96d,_0x14c49a){var _0x4f451a=_0x4f45();return _0x3c7e=function(_0x3c7e87,_0x1bc20d){_0x3c7e87=_0x3c7e87-0x1ba;var _0x1bef73=_0x4f451a[_0x3c7e87];return _0x1bef73;},_0x3c7e(_0x34b96d,_0x14c49a);}export var AIContextItemType;function _0x4f45(){var _0x541ede=['2537944WjXFBS','SELECTION','5588YCemlm','markdown','URL','TEXT','9QvcNyz','2580cVnqOB','285031ieYctj','22452jLFJkR','2494005PvHiZR','file','selection','2459220zwNChR','2984VQdjiS','document','html','FILE','7PLKtNf','text','HTML','DOCUMENT','MARKDOWN','8UGkUgR','1832898Qqdtjk','web-resource'];_0x4f45=function(){return _0x541ede;};return _0x4f45();}!function(_0x4cd8c7){var _0x48dba0=_0x3c7e;_0x4cd8c7[_0x48dba0(0x1bc)]=_0x48dba0(0x1d0),_0x4cd8c7[_0x48dba0(0x1c0)]=_0x48dba0(0x1ba),_0x4cd8c7[_0x48dba0(0x1c9)]=_0x48dba0(0x1c4),_0x4cd8c7[_0x48dba0(0x1ca)]=_0x48dba0(0x1be),_0x4cd8c7[_0x48dba0(0x1c6)]=_0x48dba0(0x1d1);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x7a86c9){var _0x21fadf=_0x3c7e;_0x7a86c9[_0x21fadf(0x1ca)]=_0x21fadf(0x1be),_0x7a86c9[_0x21fadf(0x1c1)]=_0x21fadf(0x1c8),_0x7a86c9[_0x21fadf(0x1bf)]=_0x21fadf(0x1bb);}(AIContextTextResourceType||(AIContextTextResourceType={}));
|