@ckeditor/ckeditor5-ai 47.4.0-alpha.1 → 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
|
-
const
|
|
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 _0x5d04(_0x2ee0c7,_0x50deb9){const _0x105998=_0x1059();return _0x5d04=function(_0x5d0404,_0x4a67ea){_0x5d0404=_0x5d0404-0x16e;let _0xe27c7b=_0x105998[_0x5d0404];return _0xe27c7b;},_0x5d04(_0x2ee0c7,_0x50deb9);}const _0x672c73=_0x5d04;(function(_0x490ce3,_0x7414b4){const _0x284ecb=_0x5d04,_0x9befb6=_0x490ce3();while(!![]){try{const _0x221c17=-parseInt(_0x284ecb(0x199))/0x1*(-parseInt(_0x284ecb(0x173))/0x2)+parseInt(_0x284ecb(0x191))/0x3*(parseInt(_0x284ecb(0x18e))/0x4)+-parseInt(_0x284ecb(0x19b))/0x5*(-parseInt(_0x284ecb(0x1bd))/0x6)+parseInt(_0x284ecb(0x190))/0x7+parseInt(_0x284ecb(0x19c))/0x8*(-parseInt(_0x284ecb(0x183))/0x9)+-parseInt(_0x284ecb(0x187))/0xa*(-parseInt(_0x284ecb(0x193))/0xb)+-parseInt(_0x284ecb(0x1a3))/0xc;if(_0x221c17===_0x7414b4)break;else _0x9befb6['push'](_0x9befb6['shift']());}catch(_0x361752){_0x9befb6['push'](_0x9befb6['shift']());}}}(_0x1059,0xa87dd));function _0x1059(){const _0x5da5cd=['ck-ai-chat-history','isVisible','ck-reset_all','div','ck-ai-header\x20ck-ai-header_history','indexOf','execute','1193054UbELRw','_createEmptyStateView','ck-ai-chat-history__empty','sectionsView','element','_createSearchView','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat-history__empty-message','_refreshSearch','remove','getItem','resizeButton','isMainErrorViewVisible','sections','render','children','9xEQtDu','extendTemplate','errorMessage','_createListItemViews','123590bbQMuV','value','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','aiHistory','removeHistoryItem','AI_CHAT_HISTORY_SEARCH_LABEL','fire','304hhEmCb','bind','366296QJuUcv','46437cZQbxV','_updateViewVisibility','825NFvnJo','ck-ai-notification_error','emptyView','updateHistoryItemsWithCategories','set','isMaximized','2NlOsQT','openChat','7355SbrCMg','1838648TaohXP','locale','ck-ai-chat__start-conversation','removeItem','fieldView','searchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','37211832uTnAlz','length','isSearchViewVisible','skeletonView','title','AI_CHAT_HISTORY_HEADING','search','splice','setTemplate','change:isLoading','_createSkeletonView','updateItemLoadingState','items','change:hasItems','some','hasItems','clear','ck-ai-notification_error__dismiss-button','push','updateTitle','updateLoadingState','bindTemplate','ck-hidden','ck-ai-notification','itemsViews','change:errorMessage','2742MHSVKn','isEmptyViewVisible','AI_CHAT_HISTORY_EMPTY_MESSAGE','isLoading','add','ltr','updateItemTitle','ck-rounded-corners','_createErrorView','delegate','ck-ai-chat-history__content','queryView','mainErrorView','addMany'];_0x1059=function(){return _0x5da5cd;};return _0x1059();}import{View as _0x571dd0,SearchTextView as _0xb8d54b,FormHeaderView as _0x3481e3,ButtonView as _0x2e279d}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xebd9ca,IconCancel as _0x3c9bed,IconPlus as _0x559173}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x25bdce}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x5ca701}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2431f8}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3652fd}from'../aichathistoryui.js';import{AISkeletonView as _0x1fcf0b,SKELETON_DEFINITIONS as _0x478f69}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x183b08}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x230756}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x571dd0{[_0x672c73(0x1a1)];[_0x672c73(0x1c9)];[_0x672c73(0x1a6)];[_0x672c73(0x195)];[_0x672c73(0x176)];[_0x672c73(0x17e)];constructor(_0x2b289c,_0x3bb352){const _0x5f2e0f=_0x672c73;super(_0x2b289c),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x1b2),!0x1),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x1c0),!0x0),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x185),''),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x198),!0x1),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x1a5),!0x1),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x1be),!0x1),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x17f),!0x1);const _0x412396=new _0x3481e3(_0x2b289c,{'label':_0x230756(_0x2b289c,_0x5f2e0f(0x1a8)),'icon':_0xebd9ca,'class':_0x5f2e0f(0x170)});_0x3bb352&&(this[_0x5f2e0f(0x17e)]=_0x183b08(_0x2b289c,this),_0x412396[_0x5f2e0f(0x182)][_0x5f2e0f(0x1c1)](this[_0x5f2e0f(0x17e)])),this[_0x5f2e0f(0x176)]=new _0x25bdce(_0x2b289c,[]),this[_0x5f2e0f(0x176)][_0x5f2e0f(0x1c6)](..._0x3652fd)['to'](this),this[_0x5f2e0f(0x1c9)]=this[_0x5f2e0f(0x1c5)](),this[_0x5f2e0f(0x1a6)]=this[_0x5f2e0f(0x1ad)](),this[_0x5f2e0f(0x195)]=this[_0x5f2e0f(0x174)](),this[_0x5f2e0f(0x1a1)]=this[_0x5f2e0f(0x178)](),this[_0x5f2e0f(0x1c9)][_0x5f2e0f(0x184)]({'attributes':{'class':[this[_0x5f2e0f(0x1b8)]['if'](_0x5f2e0f(0x17f),_0x5f2e0f(0x1b9),_0x131ff9=>!_0x131ff9)]}}),this['on'](_0x5f2e0f(0x1ac),()=>this[_0x5f2e0f(0x192)]()),this['on'](_0x5f2e0f(0x1b0),()=>this[_0x5f2e0f(0x192)]()),this['on'](_0x5f2e0f(0x1bc),()=>this[_0x5f2e0f(0x192)]()),this[_0x5f2e0f(0x1ab)]({'tag':_0x5f2e0f(0x16f),'attributes':{'class':['ck',_0x5f2e0f(0x16e),_0x5f2e0f(0x1cb),_0x5f2e0f(0x1c4)],'dir':_0x5f2e0f(0x1c2)},'children':[_0x412396,{'tag':_0x5f2e0f(0x16f),'attributes':{'class':[_0x5f2e0f(0x1c7)]},'children':[this[_0x5f2e0f(0x1a6)],this[_0x5f2e0f(0x1c9)],this[_0x5f2e0f(0x195)],this[_0x5f2e0f(0x1a1)]]}]});}[_0x672c73(0x192)](){const _0x4d017c=_0x672c73;this[_0x4d017c(0x1a5)]=!this[_0x4d017c(0x1c0)]&&this[_0x4d017c(0x1b2)],this[_0x4d017c(0x1be)]=!this[_0x4d017c(0x1c0)]&&!this[_0x4d017c(0x1b2)]&&!this[_0x4d017c(0x185)],this[_0x4d017c(0x17f)]=!this[_0x4d017c(0x1a5)]&&!!this[_0x4d017c(0x185)];}[_0x672c73(0x178)](){const _0x1869dc=_0x672c73,_0x563bea=new _0xb8d54b(this[_0x1869dc(0x19d)],{'filteredView':this[_0x1869dc(0x176)],'queryView':{'label':_0x230756(this[_0x1869dc(0x19d)],_0x1869dc(0x18c))},'infoView':{'text':{'notFound':{'primary':_0x34d594=>_0x230756(this[_0x1869dc(0x19d)],_0x1869dc(0x189),_0x34d594),'secondary':_0x230756(this[_0x1869dc(0x19d)],_0x1869dc(0x1a2))}}}}),_0x436524=this[_0x1869dc(0x1c5)]();return _0x436524[_0x1869dc(0x184)]({'attributes':{'class':[this[_0x1869dc(0x1b8)]['if'](_0x1869dc(0x185),_0x1869dc(0x1b9),_0x16cb40=>!_0x16cb40)]}}),_0x563bea['on'](_0x1869dc(0x181),()=>{const _0x339e3b=_0x1869dc;_0x563bea[_0x339e3b(0x182)][_0x339e3b(0x1c1)](_0x436524,0x1);}),_0x563bea[_0x1869dc(0x184)]({'attributes':{'class':[this[_0x1869dc(0x1b8)]['if'](_0x1869dc(0x1a5),_0x1869dc(0x1b9),_0x5482f8=>!_0x5482f8)]}}),_0x563bea;}[_0x672c73(0x1ad)](){const _0x1d6ab2=_0x672c73,_0x5139b2=new _0x1fcf0b(this[_0x1d6ab2(0x19d)],_0x478f69[_0x1d6ab2(0x18a)]);return _0x5139b2[_0x1d6ab2(0x184)]({'attributes':{'class':[this[_0x1d6ab2(0x1b8)]['if'](_0x1d6ab2(0x1c0),_0x1d6ab2(0x1b9),_0x190196=>!_0x190196)]}}),_0x5139b2;}[_0x672c73(0x1c5)](){const _0x2c4a98=_0x672c73,_0x5a7f71=new _0x571dd0(this[_0x2c4a98(0x19d)]),_0x21d9be=new _0x2e279d(this[_0x2c4a98(0x19d)]);_0x21d9be[_0x2c4a98(0x197)]({'withText':!0x1,'icon':_0x3c9bed,'class':_0x2c4a98(0x1b4)}),_0x21d9be[_0x2c4a98(0x18f)](_0x2c4a98(0x1cc))['to'](this,_0x2c4a98(0x1b2),_0x33f068=>!!_0x33f068),_0x21d9be['on'](_0x2c4a98(0x172),()=>{const _0x41ba62=_0x2c4a98;this[_0x41ba62(0x185)]='';});const _0x5b4a6b=this[_0x2c4a98(0x1b8)];return _0x5a7f71[_0x2c4a98(0x1ab)]({'tag':_0x2c4a98(0x16f),'attributes':{'class':['ck',_0x2c4a98(0x1ba),_0x2c4a98(0x194)]},'children':[{'tag':'p','children':[{'text':_0x5b4a6b['to'](_0x2c4a98(0x185))}]},_0x21d9be]}),_0x5a7f71;}[_0x672c73(0x174)](){const _0x1b7c52=_0x672c73,_0x2700e0=new _0x2e279d(this[_0x1b7c52(0x19d)]);_0x2700e0[_0x1b7c52(0x197)]({'label':_0x230756(this[_0x1b7c52(0x19d)],_0x1b7c52(0x179)),'withText':!0x0,'icon':_0x559173,'class':_0x1b7c52(0x19e)}),_0x2700e0['on'](_0x1b7c52(0x172),()=>{const _0x5ed4be=_0x1b7c52;this[_0x5ed4be(0x18d)](_0x5ed4be(0x19a));});const _0x70d218=new _0x571dd0(this[_0x1b7c52(0x19d)]);return _0x70d218[_0x1b7c52(0x1ab)]({'tag':_0x1b7c52(0x16f),'attributes':{'class':[_0x1b7c52(0x175),this[_0x1b7c52(0x1b8)]['if'](_0x1b7c52(0x1be),_0x1b7c52(0x1b9),_0x61011e=>!_0x61011e)]},'children':[{'tag':'p','attributes':{'class':[_0x1b7c52(0x17a)]},'children':[_0x230756(this[_0x1b7c52(0x19d)],_0x1b7c52(0x1bf))]},_0x2700e0]}),_0x70d218;}[_0x672c73(0x186)](_0x4a40fa,_0x48c6fa){const _0x588a54=_0x672c73,_0x4cb9df=[];for(const _0x370474 of _0x4a40fa){const _0x503326=new _0x2431f8(_0x48c6fa,_0x370474);_0x503326[_0x588a54(0x1c6)](..._0x3652fd)['to'](this),_0x4cb9df[_0x588a54(0x1b5)](_0x503326);}return _0x4cb9df;}[_0x672c73(0x196)](_0x29909a){const _0x2d5cfd=_0x672c73,_0x3a41b4=this[_0x2d5cfd(0x19d)]||'en',_0x22a04f=[];for(const _0x310c47 of _0x29909a){const _0x226660=this[_0x2d5cfd(0x186)](_0x310c47[_0x2d5cfd(0x1af)],_0x3a41b4);_0x22a04f[_0x2d5cfd(0x1b5)](new _0x5ca701(_0x3a41b4,{'title':_0x310c47[_0x2d5cfd(0x1a7)],'items':_0x226660}));}this[_0x2d5cfd(0x176)][_0x2d5cfd(0x180)]=_0x22a04f,this[_0x2d5cfd(0x176)][_0x2d5cfd(0x1af)][_0x2d5cfd(0x1b3)](),this[_0x2d5cfd(0x176)][_0x2d5cfd(0x1af)][_0x2d5cfd(0x1ca)](_0x22a04f),this[_0x2d5cfd(0x1b2)]=_0x29909a[_0x2d5cfd(0x1b1)](_0x57f71f=>_0x57f71f[_0x2d5cfd(0x1af)][_0x2d5cfd(0x1a4)]>0x0),this[_0x2d5cfd(0x17b)]();}[_0x672c73(0x18b)](_0x2bf2e0){const _0x39d014=_0x672c73;for(const _0x1c4e93 of this[_0x39d014(0x176)][_0x39d014(0x180)]){const _0x41641f=_0x1c4e93[_0x39d014(0x17d)](_0x2bf2e0);if(_0x41641f){if(_0x1c4e93[_0x39d014(0x19f)](_0x41641f),0x0===_0x1c4e93[_0x39d014(0x1bb)][_0x39d014(0x1a4)]){const _0x55eb47=this[_0x39d014(0x176)][_0x39d014(0x180)][_0x39d014(0x171)](_0x1c4e93);-0x1!==_0x55eb47&&(this[_0x39d014(0x176)][_0x39d014(0x180)][_0x39d014(0x1aa)](_0x55eb47,0x1),this[_0x39d014(0x176)][_0x39d014(0x1af)][_0x39d014(0x17c)](_0x1c4e93));}this[_0x39d014(0x1b2)]=this[_0x39d014(0x176)][_0x39d014(0x180)][_0x39d014(0x1a4)]>0x0,this[_0x39d014(0x17b)]();break;}}}[_0x672c73(0x1c3)](_0x4e2dd4,_0x2fe0e5){const _0x51d6a0=_0x672c73;for(const _0x469a3a of this[_0x51d6a0(0x176)][_0x51d6a0(0x180)]){const _0x3dc04d=_0x469a3a[_0x51d6a0(0x17d)](_0x4e2dd4);if(_0x3dc04d){_0x3dc04d[_0x51d6a0(0x1b6)](_0x2fe0e5);break;}}}[_0x672c73(0x1ae)](_0x4020f7,_0x36fb8f,_0x515bd2){const _0xd213d2=_0x672c73;for(const _0x12692a of this[_0xd213d2(0x176)][_0xd213d2(0x180)]){const _0x55882d=_0x12692a[_0xd213d2(0x17d)](_0x4020f7);if(_0x55882d){_0x55882d[_0xd213d2(0x1b7)](_0x36fb8f,_0x515bd2);break;}}}[_0x672c73(0x17b)](){const _0x2e1780=_0x672c73;if(this[_0x2e1780(0x1b2)]){const _0x16e67e=this[_0x2e1780(0x1a1)][_0x2e1780(0x1c8)][_0x2e1780(0x1a0)]?.[_0x2e1780(0x177)]?.[_0x2e1780(0x188)]||'';this[_0x2e1780(0x1a1)][_0x2e1780(0x1a9)](_0x16e67e);}}}
|
|
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 _0x434aec=_0x4ed9;(function(_0x43d24f,_0x395c7c){const _0x5eb627=_0x4ed9,_0x1daccb=_0x43d24f();while(!![]){try{const _0x44300e=-parseInt(_0x5eb627(0x1fa))/0x1*(-parseInt(_0x5eb627(0x22c))/0x2)+-parseInt(_0x5eb627(0x205))/0x3*(-parseInt(_0x5eb627(0x1da))/0x4)+-parseInt(_0x5eb627(0x207))/0x5*(parseInt(_0x5eb627(0x1b7))/0x6)+parseInt(_0x5eb627(0x219))/0x7+parseInt(_0x5eb627(0x1b2))/0x8*(parseInt(_0x5eb627(0x239))/0x9)+-parseInt(_0x5eb627(0x1be))/0xa*(parseInt(_0x5eb627(0x213))/0xb)+-parseInt(_0x5eb627(0x1ce))/0xc*(parseInt(_0x5eb627(0x229))/0xd);if(_0x44300e===_0x395c7c)break;else _0x1daccb['push'](_0x1daccb['shift']());}catch(_0x1fd9b1){_0x1daccb['push'](_0x1daccb['shift']());}}}(_0x1420,0x75fbe));import{createParser as _0x370d58}from'eventsource-parser';import{ContextPlugin as _0x707907}from'ckeditor5/src/core.js';function _0x4ed9(_0x3a62d3,_0x3010a6){const _0x142087=_0x1420();return _0x4ed9=function(_0x4ed922,_0x596f50){_0x4ed922=_0x4ed922-0x1b2;let _0x4d5a8b=_0x142087[_0x4ed922];return _0x4d5a8b;},_0x4ed9(_0x3a62d3,_0x3010a6);}import{CKEditorError as _0x5e2134}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2e7659){const _0x16221f=_0x4ed9;_0x2e7659[_0x16221f(0x1e1)]=_0x16221f(0x21e),_0x2e7659[_0x16221f(0x1dd)]=_0x16221f(0x22b),_0x2e7659[_0x16221f(0x234)]=_0x16221f(0x221),_0x2e7659[_0x16221f(0x1b8)]=_0x16221f(0x240),_0x2e7659[_0x16221f(0x231)]=_0x16221f(0x1ff),_0x2e7659[_0x16221f(0x246)]=_0x16221f(0x1ef),_0x2e7659[_0x16221f(0x23e)]=_0x16221f(0x23f),_0x2e7659[_0x16221f(0x233)]=_0x16221f(0x1f7);}(AIActionsNames||(AIActionsNames={}));function _0x1420(){const _0x3d2890=['value','totalCount','get','_apiUrl','language','/reviews/custom/calls/','PATCH','isOfficialPlugin','upsertCustomAIReviewRating','_sendApiRequest','decode','getModels','920796lcksrH','ai.serviceUrl','/actions/custom/calls/','executeCustomAction','data','excludeEmpty','message','/files/','updateConversation','getReader','GET','Bearer\x20','4mdAIEQ','request','/messages','FIX_GRAMMAR','fetchConversationMessages','fetchDocument','deleteConversation','CONTINUE','file','name','requires','token','length','reset','items','/documents/','uploadDocument','true','callCustomReview','json','search','make-tone-casual','100','fetchConversations','fetchConversation','/ratings','releaseLock','abortController','/web-resources/','translate','keys','/models/1?','757Jlvvyx','ai-missing-token','/conversations','body','attributes','make-shorter','init','uploadFile','/calls','isPremiumPlugin','CloudServices','33591cKNoeo','/actions/custom/calls','549150VABKHH','deleteDocument','define','deleteWebResource','/reviews/custom/calls','/actions/system/','_token','upsertAIActionRating','signal','AbortError','upsertCustomAIActionRating','application/json','6127lerqpN','DELETE','stringify','feed','config','callSystemReview','4293296bZGITe','toString','queryAssistant','text','uploadUrl','continue','upsertAIChatRating','parse','improve-writing','/files','then','/conversations/','startConversation','pluginName','_decoder','code','13ejmbCC','append','fix-grammar','146wHcGmE','context','/reviews/system/','/conversations?','push','MAKE_SHORTER','https://ai.cke-cs.com/v1','TRANSLATE','IMPROVE_WRITING','/messages/','_getStreamReader','ai-request-failed','/documents','2727drFsDc','group','positiveCount','modificationId','_handleError','MAKE_TONE_FORMAL','make-tone-formal','make-longer','traceId','status','/calls/','PUT','POST','MAKE_TONE_CASUAL','16696tLVIzV','limit','ai-request-aborted','plugins','catch','12GpQJpK','MAKE_LONGER','read','/web-resources','Content-Type','executeAction','AIConnector','9560gDmBNS','statusText','deleteFile','upsertAIReviewRating'];_0x1420=function(){return _0x3d2890;};return _0x1420();}export class AIConnector extends _0x707907{[_0x434aec(0x1c5)];[_0x434aec(0x20d)];[_0x434aec(0x227)];static get[_0x434aec(0x1e4)](){const _0x3f9585=_0x434aec;return[_0x3f9585(0x204)];}static get[_0x434aec(0x226)](){const _0x56d23d=_0x434aec;return _0x56d23d(0x1bd);}static get[_0x434aec(0x1c9)](){return!0x0;}static get[_0x434aec(0x203)](){return!0x0;}constructor(_0x4cdf72){const _0x157b74=_0x434aec;super(_0x4cdf72),this[_0x157b74(0x22d)][_0x157b74(0x217)][_0x157b74(0x209)](_0x157b74(0x1cf),_0x157b74(0x232)),this[_0x157b74(0x1c5)]=this[_0x157b74(0x22d)][_0x157b74(0x217)][_0x157b74(0x1c4)](_0x157b74(0x1cf)),this[_0x157b74(0x20d)]=null,this[_0x157b74(0x227)]=new TextDecoder();}[_0x434aec(0x200)](){const _0x3960e9=_0x434aec,_0x3d8893=this[_0x3960e9(0x22d)][_0x3960e9(0x1b5)][_0x3960e9(0x1c4)](_0x3960e9(0x204));if(!_0x3d8893[_0x3960e9(0x1e5)])throw new _0x5e2134(_0x3960e9(0x1fb),this);this[_0x3960e9(0x20d)]=_0x3d8893[_0x3960e9(0x1e5)];}[_0x434aec(0x225)](_0x5d152,_0x45e30c){const _0x5b94f6=_0x434aec,_0x556cf3=this[_0x5b94f6(0x1cb)](_0x5b94f6(0x1fc),_0x5b94f6(0x245),{'id':_0x5d152,'group':_0x45e30c});return{'getConversation':async()=>(await _0x556cf3[_0x5b94f6(0x1db)])[_0x5b94f6(0x1ed)](),'abortController':_0x556cf3[_0x5b94f6(0x1f5)]};}[_0x434aec(0x21b)]({message:_0x210714,conversationId:_0x123c8e,parts:_0x54950c,capabilities:_0xd5149c,model:_0x2536b0,quickActionData:_0x49b04d}){const _0xcd49a0=_0x434aec,_0xc00178={..._0x49b04d&&{'quickActionData':_0x49b04d}},_0x57478e={'prompt':_0x210714,'content':_0x54950c,'model':_0x2536b0,..._0xd5149c&&{'capabilities':_0xd5149c},...Object[_0xcd49a0(0x1f8)](_0xc00178)[_0xcd49a0(0x1e6)]>0x0&&{'attributes':_0xc00178}},_0x3fc8ab=this[_0xcd49a0(0x1cb)](_0xcd49a0(0x224)+_0x123c8e+_0xcd49a0(0x1dc),_0xcd49a0(0x245),_0x57478e);return{'getStream':async()=>{const _0xd6f34c=_0xcd49a0,_0x20eac9=(await _0x3fc8ab[_0xd6f34c(0x1db)])[_0xd6f34c(0x1fd)];return this[_0xd6f34c(0x236)](_0x20eac9);},'abortController':_0x3fc8ab[_0xcd49a0(0x1f5)]};}[_0x434aec(0x1d1)]({content:_0x243694,message:_0x74b251,model:_0x35be41,outputFormat:_0xf60c16}){const _0x2bb081=_0x434aec,_0x27a0b1={'content':[{'type':_0x2bb081(0x21c),'content':_0x243694}],'prompt':_0x74b251,'model':_0x35be41,'outputFormat':_0xf60c16},_0x2c2644=this[_0x2bb081(0x1cb)](_0x2bb081(0x206),_0x2bb081(0x245),_0x27a0b1);return{'getStream':async()=>{const _0x3ed843=_0x2bb081,_0x3ccb4a=(await _0x2c2644[_0x3ed843(0x1db)])[_0x3ed843(0x1fd)];return this[_0x3ed843(0x236)](_0x3ccb4a);},'abortController':_0x2c2644[_0x2bb081(0x1f5)]};}[_0x434aec(0x1bc)]({actionName:_0x342824,content:_0x5e1f26,args:_0x38f652}){const _0x41c243=_0x434aec,_0x1d7588={'content':[{'type':_0x41c243(0x21c),'content':_0x5e1f26}],'args':_0x38f652},_0x22b49c=this[_0x41c243(0x1cb)](_0x41c243(0x20c)+_0x342824+_0x41c243(0x202),_0x41c243(0x245),_0x1d7588);return{'getStream':async()=>{const _0x34bba8=_0x41c243,_0x2e96f7=(await _0x22b49c[_0x34bba8(0x1db)])[_0x34bba8(0x1fd)];return this[_0x34bba8(0x236)](_0x2e96f7);},'abortController':_0x22b49c[_0x41c243(0x1f5)]};}[_0x434aec(0x201)](_0x58a15e,_0xc2dd36,_0x1d1482){const _0x4ef8b2=_0x434aec,_0x19151d=new FormData();_0x19151d[_0x4ef8b2(0x22a)](_0x4ef8b2(0x1e2),_0xc2dd36,_0xc2dd36[_0x4ef8b2(0x1e3)]),_0x1d1482&&_0x19151d[_0x4ef8b2(0x22a)](_0x4ef8b2(0x1fe),JSON[_0x4ef8b2(0x215)](_0x1d1482));const _0x234b66=this[_0x4ef8b2(0x1cb)](_0x4ef8b2(0x224)+_0x58a15e+_0x4ef8b2(0x222),_0x4ef8b2(0x245),_0x19151d);return{'getId':async()=>(await _0x234b66[_0x4ef8b2(0x1db)])[_0x4ef8b2(0x1ed)](),'abortController':_0x234b66[_0x4ef8b2(0x1f5)]};}[_0x434aec(0x1df)](_0x2ad0e8,_0x1228d1){const _0x3a5e25=_0x434aec,_0xa17e4b=this[_0x3a5e25(0x1cb)](_0x3a5e25(0x224)+_0x2ad0e8+_0x3a5e25(0x1e9)+_0x1228d1,_0x3a5e25(0x1d8));return{'getDocument':async()=>(await _0xa17e4b[_0x3a5e25(0x1db)])[_0x3a5e25(0x1ed)](),'abortController':_0xa17e4b[_0x3a5e25(0x1f5)]};}[_0x434aec(0x1ea)](_0x3edfdd,_0x2e676c,_0x408dba){const _0x46c281=_0x434aec,_0x59ca8f={'content':_0x2e676c};_0x408dba&&(_0x59ca8f[_0x46c281(0x1fe)]=_0x408dba);const _0x49b343=this[_0x46c281(0x1cb)](_0x46c281(0x224)+_0x3edfdd+_0x46c281(0x238),_0x46c281(0x245),_0x59ca8f);return{'getId':async()=>(await _0x49b343[_0x46c281(0x1db)])[_0x46c281(0x1ed)](),'abortController':_0x49b343[_0x46c281(0x1f5)]};}[_0x434aec(0x1f1)](_0x18b5d4,_0x129101){const _0x41a6c3=_0x434aec,_0xfd9f3f=new URLSearchParams();_0xfd9f3f[_0x41a6c3(0x22a)](_0x41a6c3(0x1d3),_0x41a6c3(0x1eb)),_0xfd9f3f[_0x41a6c3(0x22a)](_0x41a6c3(0x1b3),_0x41a6c3(0x1f0)),_0xfd9f3f[_0x41a6c3(0x22a)](_0x41a6c3(0x23a),_0x18b5d4),_0x129101&&_0xfd9f3f[_0x41a6c3(0x22a)](_0x41a6c3(0x1ee),_0x129101);const _0x18fadd=this[_0x41a6c3(0x1cb)](_0x41a6c3(0x22f)+_0xfd9f3f[_0x41a6c3(0x21a)](),_0x41a6c3(0x1d8));return{'getConversations':async()=>{const _0xf51b54=_0x41a6c3,_0x4a537c=await _0x18fadd[_0xf51b54(0x1db)];return(await _0x4a537c[_0xf51b54(0x1ed)]())[_0xf51b54(0x1e8)];},'abortController':_0x18fadd[_0x41a6c3(0x1f5)]};}[_0x434aec(0x1e0)](_0x47eb3f){const _0x72baa6=_0x434aec,_0x4dd250=this[_0x72baa6(0x1cb)](_0x72baa6(0x224)+_0x47eb3f,_0x72baa6(0x214));return{'execute':async()=>{const _0x30b513=_0x72baa6;await _0x4dd250[_0x30b513(0x1db)];},'abortController':_0x4dd250[_0x72baa6(0x1f5)]};}[_0x434aec(0x1d6)](_0x11c2d3,_0x7e5ac9){const _0x4ba3f9=_0x434aec,_0x454477=this[_0x4ba3f9(0x1cb)](_0x4ba3f9(0x224)+_0x11c2d3,_0x4ba3f9(0x1c8),_0x7e5ac9);return{'getResult':async()=>(await _0x454477[_0x4ba3f9(0x1db)],_0x7e5ac9),'abortController':_0x454477[_0x4ba3f9(0x1f5)]};}[_0x434aec(0x1f2)](_0x361e23){const _0x58afc1=_0x434aec,_0x37cb9d=this[_0x58afc1(0x1cb)](_0x58afc1(0x224)+_0x361e23,_0x58afc1(0x1d8));return{'getConversation':async()=>(await _0x37cb9d[_0x58afc1(0x1db)])[_0x58afc1(0x1ed)](),'abortController':_0x37cb9d[_0x58afc1(0x1f5)]};}[_0x434aec(0x1de)](_0x31dce1){const _0x4eff3a=_0x434aec,_0x547898=this[_0x4eff3a(0x1cb)](_0x4eff3a(0x224)+_0x31dce1+_0x4eff3a(0x1dc),_0x4eff3a(0x1d8));return{'getMessages':async()=>{const _0x1acf03=_0x4eff3a,_0x4f44bc=await _0x547898[_0x1acf03(0x1db)];return(await _0x4f44bc[_0x1acf03(0x1ed)]())[_0x1acf03(0x1e8)];},'abortController':_0x547898[_0x4eff3a(0x1f5)]};}[_0x434aec(0x21d)](_0x21765f,_0x561040,_0x578aab){const _0x5df51f=_0x434aec,_0x4c0f2c=this[_0x5df51f(0x1cb)](_0x5df51f(0x224)+_0x21765f+_0x5df51f(0x1ba),_0x5df51f(0x245),{'url':_0x561040,'attributes':_0x578aab});return{'getId':async()=>(await _0x4c0f2c[_0x5df51f(0x1db)])[_0x5df51f(0x1ed)](),'abortController':_0x4c0f2c[_0x5df51f(0x1f5)]};}[_0x434aec(0x1cd)](_0x3a6d26='en'){const _0x2f043f=_0x434aec,_0x4d1f3b=new URLSearchParams();_0x4d1f3b[_0x2f043f(0x22a)](_0x2f043f(0x1c6),_0x3a6d26);const _0x427bfd=_0x2f043f(0x1f9)+_0x4d1f3b[_0x2f043f(0x21a)](),_0x22dc84=this[_0x2f043f(0x1cb)](_0x427bfd,_0x2f043f(0x1d8));return{'list':async()=>await(await _0x22dc84[_0x2f043f(0x1db)])[_0x2f043f(0x1ed)](),'abortController':_0x22dc84[_0x2f043f(0x1f5)]};}[_0x434aec(0x1c0)](_0x3307cb,_0x9fdcf9){const _0x2fac29=_0x434aec,_0x98ace5=this[_0x2fac29(0x1cb)](_0x2fac29(0x224)+_0x3307cb+_0x2fac29(0x1d5)+_0x9fdcf9,_0x2fac29(0x214));return{'execute':async()=>{const _0x152594=_0x2fac29;await _0x98ace5[_0x152594(0x1db)];},'abortController':_0x98ace5[_0x2fac29(0x1f5)]};}[_0x434aec(0x208)](_0x56f7da,_0x1beb1b){const _0x2f985e=_0x434aec,_0x546896=this[_0x2f985e(0x1cb)](_0x2f985e(0x224)+_0x56f7da+_0x2f985e(0x1e9)+_0x1beb1b,_0x2f985e(0x214));return{'execute':async()=>{const _0x170bba=_0x2f985e;await _0x546896[_0x170bba(0x1db)];},'abortController':_0x546896[_0x2f985e(0x1f5)]};}[_0x434aec(0x20a)](_0x5f4d74,_0x215a97){const _0x1b3c64=_0x434aec,_0x19c627=this[_0x1b3c64(0x1cb)](_0x1b3c64(0x224)+_0x5f4d74+_0x1b3c64(0x1f6)+_0x215a97,_0x1b3c64(0x214));return{'execute':async()=>{const _0x4ab993=_0x1b3c64;await _0x19c627[_0x4ab993(0x1db)];},'abortController':_0x19c627[_0x1b3c64(0x1f5)]};}[_0x434aec(0x218)]({reviewName:_0x570e0d,content:_0x31d2dd,args:_0x319f87}){const _0x45ecaa=_0x434aec,_0x449dcf=this[_0x45ecaa(0x1cb)](_0x45ecaa(0x22e)+_0x570e0d+_0x45ecaa(0x202),_0x45ecaa(0x245),{'content':[{'type':_0x45ecaa(0x21c),'content':_0x31d2dd}],'args':_0x319f87});return{'getStream':async()=>{const _0x220bfa=_0x45ecaa,_0x3feecc=(await _0x449dcf[_0x220bfa(0x1db)])[_0x220bfa(0x1fd)];return this[_0x220bfa(0x236)](_0x3feecc);},'abortController':_0x449dcf[_0x45ecaa(0x1f5)]};}[_0x434aec(0x1ec)]({content:_0x162166,prompt:_0x7f6bbe,model:_0x12d6ce}){const _0x11502e=_0x434aec,_0x33a6ff=this[_0x11502e(0x1cb)](_0x11502e(0x20b),_0x11502e(0x245),{'content':[{'type':_0x11502e(0x21c),'content':_0x162166}],'prompt':_0x7f6bbe,'model':_0x12d6ce});return{'getStream':async()=>{const _0x2b57fc=_0x11502e,_0x1de921=(await _0x33a6ff[_0x2b57fc(0x1db)])[_0x2b57fc(0x1fd)];return this[_0x2b57fc(0x236)](_0x1de921);},'abortController':_0x33a6ff[_0x11502e(0x1f5)]};}[_0x434aec(0x21f)](_0x45dc2d,_0x3b3f15,_0xf49826){const _0x494b1d=_0x434aec,_0x45da3a=this[_0x494b1d(0x1cb)](_0x494b1d(0x224)+_0x45dc2d+_0x494b1d(0x235)+_0x3b3f15+_0x494b1d(0x1f3),_0x494b1d(0x244),{'positiveCount':_0xf49826[_0x494b1d(0x23b)],'totalCount':_0xf49826[_0x494b1d(0x1c3)],'modificationId':_0xf49826[_0x494b1d(0x23c)]});return{'execute':async()=>{const _0x2ff74d=_0x494b1d;await _0x45da3a[_0x2ff74d(0x1db)];},'abortController':_0x45da3a[_0x494b1d(0x1f5)]};}[_0x434aec(0x20e)](_0xfca40e,_0x5d49d1,_0x593824){const _0x195105=_0x434aec,_0x75a94b=this[_0x195105(0x1cb)](_0x195105(0x20c)+_0xfca40e+_0x195105(0x243)+_0x5d49d1+_0x195105(0x1f3),_0x195105(0x244),{'positiveCount':_0x593824[_0x195105(0x23b)],'totalCount':_0x593824[_0x195105(0x1c3)]});return{'execute':async()=>{const _0x3e2513=_0x195105;await _0x75a94b[_0x3e2513(0x1db)];},'abortController':_0x75a94b[_0x195105(0x1f5)]};}[_0x434aec(0x211)](_0xbef930,_0x30bf65){const _0xd1d20a=_0x434aec,_0x49460a=this[_0xd1d20a(0x1cb)](_0xd1d20a(0x1d0)+_0xbef930+_0xd1d20a(0x1f3),_0xd1d20a(0x244),{'positiveCount':_0x30bf65[_0xd1d20a(0x23b)],'totalCount':_0x30bf65[_0xd1d20a(0x1c3)]});return{'execute':async()=>{const _0x259541=_0xd1d20a;await _0x49460a[_0x259541(0x1db)];},'abortController':_0x49460a[_0xd1d20a(0x1f5)]};}[_0x434aec(0x1c1)](_0x27352a,_0x24eae1,_0x35700c,_0x409c4b){const _0xa6c1dd=_0x434aec,_0x1befe6=this[_0xa6c1dd(0x1cb)](_0xa6c1dd(0x22e)+_0x27352a+_0xa6c1dd(0x243)+_0x24eae1+_0xa6c1dd(0x1f3),_0xa6c1dd(0x244),{'positiveCount':_0x35700c[_0xa6c1dd(0x23b)],'totalCount':_0x35700c[_0xa6c1dd(0x1c3)],'dataId':_0x409c4b});return{'execute':async()=>{const _0xeffd=_0xa6c1dd;await _0x1befe6[_0xeffd(0x1db)];},'abortController':_0x1befe6[_0xa6c1dd(0x1f5)]};}[_0x434aec(0x1ca)](_0x252e7b,_0x435b30,_0x1edd04){const _0x514eba=_0x434aec,_0x14be86=this[_0x514eba(0x1cb)](_0x514eba(0x1c7)+_0x252e7b+_0x514eba(0x1f3),_0x514eba(0x244),{'positiveCount':_0x435b30[_0x514eba(0x23b)],'totalCount':_0x435b30[_0x514eba(0x1c3)],'dataId':_0x1edd04});return{'execute':async()=>{const _0x303f4b=_0x514eba;await _0x14be86[_0x303f4b(0x1db)];},'abortController':_0x14be86[_0x514eba(0x1f5)]};}[_0x434aec(0x1cb)](_0x2ed347,_0x2a1876,_0x1476da){const _0x509983=_0x434aec,_0x305aaf=new AbortController(),_0x155ed2=_0x1476da instanceof FormData,_0xf9714b={'Authorization':_0x509983(0x1d9)+this[_0x509983(0x20d)]?.[_0x509983(0x1c2)]};_0x1476da&&!_0x155ed2&&(_0xf9714b[_0x509983(0x1bb)]=_0x509983(0x212));const _0x9b9d26={'method':_0x2a1876,'headers':_0xf9714b,'signal':_0x305aaf[_0x509983(0x20f)]};return _0x1476da&&(_0x9b9d26[_0x509983(0x1fd)]=_0x155ed2?_0x1476da:JSON[_0x509983(0x215)](_0x1476da)),{'request':fetch(''+this[_0x509983(0x1c5)]+_0x2ed347,_0x9b9d26)[_0x509983(0x1b6)](_0x4d1aeb=>{const _0x26fa3d=_0x509983;this[_0x26fa3d(0x23d)](_0x4d1aeb);})[_0x509983(0x223)](_0x1fc697=>_0x1fc697['ok']?_0x1fc697:_0x1fc697[_0x509983(0x1ed)]()[_0x509983(0x223)](_0x3f3c1d=>{const _0x2d93dc=_0x509983;throw{'url':this[_0x2d93dc(0x1c5)],'path':_0x2ed347,'method':_0x2a1876,'body':_0x1476da,'status':(_0x1fc697||{})[_0x2d93dc(0x242)],'statusText':(_0x1fc697||{})[_0x2d93dc(0x1bf)],'code':_0x3f3c1d[_0x2d93dc(0x228)],'message':_0x3f3c1d[_0x2d93dc(0x1d4)],'traceId':_0x3f3c1d[_0x2d93dc(0x241)]};})),'abortController':_0x305aaf};}async*[_0x434aec(0x236)](_0x3438e0){const _0x3faedc=_0x434aec,_0x539703=[],_0x5d257d=_0x3438e0[_0x3faedc(0x1d7)](),_0x94f51c=_0x370d58({'onError':_0x1b057d=>{const _0x1d912b=_0x3faedc;this[_0x1d912b(0x23d)](_0x1b057d);},'onEvent':_0x40f1ee=>{const _0x23ae60=_0x3faedc;_0x40f1ee[_0x23ae60(0x1d2)]=JSON[_0x23ae60(0x220)](_0x40f1ee[_0x23ae60(0x1d2)]),_0x539703[_0x23ae60(0x230)](_0x40f1ee);}});try{let _0x38a868=!0x1;for(;!_0x38a868;){const {done:_0x8fc58a,value:_0x402d05}=await _0x5d257d[_0x3faedc(0x1b9)]();_0x8fc58a&&(_0x38a868=!0x0),_0x94f51c[_0x3faedc(0x216)](this[_0x3faedc(0x227)][_0x3faedc(0x1cc)](_0x402d05,{'stream':!0x0})),yield*_0x539703,_0x539703[_0x3faedc(0x1e6)]=0x0;}}catch(_0x4e752e){this[_0x3faedc(0x23d)](_0x4e752e);}finally{_0x5d257d[_0x3faedc(0x1f4)](),_0x94f51c[_0x3faedc(0x1e7)]();}}[_0x434aec(0x23d)](_0x311563){const _0x3c3e6a=_0x434aec;if(_0x311563 instanceof _0x5e2134)throw _0x311563;if(_0x311563 instanceof Error&&_0x3c3e6a(0x210)===_0x311563[_0x3c3e6a(0x1e3)])throw new _0x5e2134(_0x3c3e6a(0x1b4),this,{'originalError':_0x311563});throw new _0x5e2134(_0x3c3e6a(0x237),this,{'originalError':_0x311563});}}
|
|
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={}));
|