@ckeditor/ckeditor5-ai 47.1.0-alpha.0 → 47.1.0-alpha.1
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 +4 -4
- 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/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/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- 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/aiinteraction.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/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/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/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/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.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/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/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x3876(){const _0x5f4f83=['getConversations','splice','from','getResult','getFullYear','updateItemPinned','findIndex','12474021xMCDbp','error','getItem','1456745pptPCM','connector','updateConversation','27078hpSxhL','fetchConversations','itemsLoaded','items','28114029OFeoVz','push','updatePinned','execute','deleteConversation','1580tMOQgW','filter','addItem','getDate','getItems','fire','itemRemoved','createdAt','146KApkwa','pinned','updateItemTitle','updateTitle','62043yazvkb','itemUpdated','map','init','579460JujtUo','getMonth','loadItems','7941272KwKQgI','find','getTime','removeItem','group'];_0x3876=function(){return _0x5f4f83;};return _0x3876();}const _0xff92db=_0x16d3;(function(_0x4c5639,_0x2bc249){const _0x526eac=_0x16d3,_0xb69d0a=_0x4c5639();while(!![]){try{const _0x29a306=-parseInt(_0x526eac(0xea))/0x1+-parseInt(_0x526eac(0xd0))/0x2*(parseInt(_0x526eac(0xd4))/0x3)+parseInt(_0x526eac(0xd8))/0x4+-parseInt(_0x526eac(0xc8))/0x5*(-parseInt(_0x526eac(0xed))/0x6)+-parseInt(_0x526eac(0xe7))/0x7+parseInt(_0x526eac(0xdb))/0x8+parseInt(_0x526eac(0xf1))/0x9;if(_0x29a306===_0x2bc249)break;else _0xb69d0a['push'](_0xb69d0a['shift']());}catch(_0x1569c3){_0xb69d0a['push'](_0xb69d0a['shift']());}}}(_0x3876,0xe53c8));import{EmitterMixin as _0x1cf9b5}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x1c2f8c}from'./aichathistoryitem.js';function _0x16d3(_0x12403d,_0x5eecb0){const _0x3876f0=_0x3876();return _0x16d3=function(_0x16d384,_0x29ccf9){_0x16d384=_0x16d384-0xc6;let _0x504632=_0x3876f0[_0x16d384];return _0x504632;},_0x16d3(_0x12403d,_0x5eecb0);}export class AIChatHistoryConversations extends _0x1cf9b5(){[_0xff92db(0xf0)]=[];[_0xff92db(0xeb)];[_0xff92db(0xdf)];constructor({connector:_0x77ffdc,group:_0x5ac84c}){const _0x27af36=_0xff92db;super(),this[_0x27af36(0xeb)]=_0x77ffdc,this[_0x27af36(0xdf)]=_0x5ac84c;}async[_0xff92db(0xd7)](){const _0x446b56=_0xff92db;try{const _0x4dc862=this[_0x446b56(0xeb)][_0x446b56(0xee)](this[_0x446b56(0xdf)]),_0x5f23b5=await _0x4dc862[_0x446b56(0xe0)]();this[_0x446b56(0xda)](_0x5f23b5);}catch(_0x48c839){this[_0x446b56(0xcd)](_0x446b56(0xe8),{'error':_0x48c839,'operation':_0x446b56(0xd7)});}}[_0xff92db(0xca)](_0x3ab1a6){const _0xe22cfa=_0xff92db;this[_0xe22cfa(0xf0)][_0xe22cfa(0xf2)](_0x3ab1a6);}async[_0xff92db(0xde)](_0xd7d48){const _0x34c975=_0xff92db,_0xf21c1c=this[_0x34c975(0xf0)][_0x34c975(0xe6)](_0x5c8950=>_0x5c8950['id']===_0xd7d48);if(-0x1===_0xf21c1c)return!0x1;try{return await this[_0x34c975(0xeb)][_0x34c975(0xc7)](_0xd7d48)[_0x34c975(0xc6)](),this[_0x34c975(0xf0)][_0x34c975(0xe1)](_0xf21c1c,0x1),this[_0x34c975(0xcd)](_0x34c975(0xce),{'itemId':_0xd7d48}),!0x0;}catch(_0xa7077a){return this[_0x34c975(0xcd)](_0x34c975(0xe8),{'error':_0xa7077a,'operation':_0x34c975(0xde),'itemId':_0xd7d48}),!0x1;}}[_0xff92db(0xe9)](_0x15c150){const _0x3562a8=_0xff92db;return this[_0x3562a8(0xf0)][_0x3562a8(0xdc)](_0x3a562d=>_0x3a562d['id']===_0x15c150);}async[_0xff92db(0xd2)](_0x486df5,_0x99417a){const _0x5d1d4d=_0xff92db,_0x386ea5=this[_0x5d1d4d(0xe9)](_0x486df5);if(!_0x386ea5)return!0x1;try{return await this[_0x5d1d4d(0xeb)][_0x5d1d4d(0xec)](_0x486df5,{'title':_0x99417a})[_0x5d1d4d(0xe3)](),_0x386ea5[_0x5d1d4d(0xd3)](_0x99417a),this[_0x5d1d4d(0xcd)](_0x5d1d4d(0xd5),{'itemId':_0x486df5,'updates':{'title':_0x99417a}}),!0x0;}catch(_0x226589){return this[_0x5d1d4d(0xcd)](_0x5d1d4d(0xe8),{'error':_0x226589,'operation':_0x5d1d4d(0xd2),'itemId':_0x486df5}),!0x1;}}async[_0xff92db(0xe5)](_0x44bcb2,_0x607946){const _0x313d75=_0xff92db,_0x429dad=this[_0x313d75(0xe9)](_0x44bcb2);if(!_0x429dad)return!0x1;try{return await this[_0x313d75(0xeb)][_0x313d75(0xec)](_0x44bcb2,{'pinned':_0x607946})[_0x313d75(0xe3)](),_0x429dad[_0x313d75(0xf3)](_0x607946),this[_0x313d75(0xcd)](_0x313d75(0xd5),{'itemId':_0x44bcb2,'updates':{'pinned':_0x607946}}),!0x0;}catch(_0x44750a){return this[_0x313d75(0xcd)](_0x313d75(0xe8),{'error':_0x44750a,'operation':_0x313d75(0xe5),'itemId':_0x44bcb2}),!0x1;}}[_0xff92db(0xda)](_0x3a578b){const _0x5dcd66=_0xff92db;try{this[_0x5dcd66(0xf0)]=[],_0x3a578b[_0x5dcd66(0xd6)](_0xee2754=>{const _0x5a8868=_0x5dcd66;this[_0x5a8868(0xca)](new _0x1c2f8c(_0xee2754));}),this[_0x5dcd66(0xcd)](_0x5dcd66(0xef),{'items':[...this[_0x5dcd66(0xf0)]]});}catch(_0x5215cb){this[_0x5dcd66(0xcd)](_0x5dcd66(0xe8),{'error':_0x5215cb,'operation':_0x5dcd66(0xda)});}}[_0xff92db(0xcc)](_0x2c9d41={}){const _0xca5b02=_0xff92db,_0x117986=void 0x0!==_0x2c9d41[_0xca5b02(0xd1)]&&_0x2c9d41[_0xca5b02(0xd1)],_0x5153a0=_0x2c9d41[_0xca5b02(0xe2)]?new Date(_0x2c9d41[_0xca5b02(0xe2)][_0xca5b02(0xe4)](),_0x2c9d41[_0xca5b02(0xe2)][_0xca5b02(0xd9)](),_0x2c9d41[_0xca5b02(0xe2)][_0xca5b02(0xcb)]()):null,_0x5afaf4=_0x2c9d41['to']?new Date(_0x2c9d41['to'][_0xca5b02(0xe4)](),_0x2c9d41['to'][_0xca5b02(0xd9)](),_0x2c9d41['to'][_0xca5b02(0xcb)]()):null;return this[_0xca5b02(0xf0)][_0xca5b02(0xc9)](_0x5db86d=>{const _0x3131df=_0xca5b02;if(_0x5db86d[_0x3131df(0xd1)]!==_0x117986)return!0x1;if(_0x5afaf4){const _0x178a20=new Date(_0x5db86d[_0x3131df(0xcf)][_0x3131df(0xe4)](),_0x5db86d[_0x3131df(0xcf)][_0x3131df(0xd9)](),_0x5db86d[_0x3131df(0xcf)][_0x3131df(0xcb)]());return _0x5153a0?_0x5153a0[_0x3131df(0xdd)]()===_0x5afaf4[_0x3131df(0xdd)]()?_0x178a20[_0x3131df(0xdd)]()===_0x5153a0[_0x3131df(0xdd)]():_0x178a20<_0x5afaf4&&_0x178a20>=_0x5153a0:_0x178a20<_0x5afaf4;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x534e25=_0x4209;(function(_0x43e582,_0x5c3454){var _0xbc4825=_0x4209,_0x41331b=_0x43e582();while(!![]){try{var _0x4f6ee6=parseInt(_0xbc4825(0xaf))/0x1*(parseInt(_0xbc4825(0xb4))/0x2)+parseInt(_0xbc4825(0xb1))/0x3*(parseInt(_0xbc4825(0xb7))/0x4)+-parseInt(_0xbc4825(0xb8))/0x5+-parseInt(_0xbc4825(0xb6))/0x6*(parseInt(_0xbc4825(0xaa))/0x7)+parseInt(_0xbc4825(0xae))/0x8+-parseInt(_0xbc4825(0xa9))/0x9+parseInt(_0xbc4825(0xac))/0xa;if(_0x4f6ee6===_0x5c3454)break;else _0x41331b['push'](_0x41331b['shift']());}catch(_0x5d9bbb){_0x41331b['push'](_0x41331b['shift']());}}}(_0x733b,0xdb469));import{ObservableMixin as _0x1d4873}from'ckeditor5/src/utils.js';function _0x4209(_0x114e6,_0x3cab00){var _0x733bc6=_0x733b();return _0x4209=function(_0x4209ed,_0x140c18){_0x4209ed=_0x4209ed-0xa9;var _0x1960fd=_0x733bc6[_0x4209ed];return _0x1960fd;},_0x4209(_0x114e6,_0x3cab00);}function _0x733b(){var _0x9165fe=['8fbIlur','3437845MXnHAy','updatedAt','2743173oXlcDA','21qLrPuZ','createdAt','14713930rURBgZ','title','8081864HmwZwY','74rtroal','updateTitle','131853iAQlNN','set','pinned','16196pYBrlw','updatePinned','2556522nVwQoI'];_0x733b=function(){return _0x9165fe;};return _0x733b();}import{escape as _0x4d1edd}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x1d4873(){['id'];[_0x534e25(0xab)];constructor({id:_0x1c2f3f,title:_0x25f88c,createdAt:_0xc53c58,updatedAt:_0x264e43,pinned:_0x318fb3}){var _0x3b4bc1=_0x534e25;super(),this['id']=_0x1c2f3f,this[_0x3b4bc1(0xab)]=new Date(_0xc53c58),this[_0x3b4bc1(0xb2)](_0x3b4bc1(0xad),_0x25f88c),this[_0x3b4bc1(0xb2)](_0x3b4bc1(0xb9),_0x264e43?new Date(_0x264e43):null),this[_0x3b4bc1(0xb2)](_0x3b4bc1(0xb3),_0x318fb3||!0x1);}[_0x534e25(0xb0)](_0x4591bf){var _0x1170fb=_0x534e25;this[_0x1170fb(0xb2)](_0x1170fb(0xad),_0x4d1edd(_0x4591bf)),this[_0x1170fb(0xb9)]=new Date();}[_0x534e25(0xb5)](_0x1673db){var _0x51a36c=_0x534e25;this[_0x51a36c(0xb2)](_0x51a36c(0xb3),_0x1673db),this[_0x51a36c(0xb9)]=new Date();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x37b60a=_0x1cab;(function(_0x3428c6,_0x54559a){const _0x1e4385=_0x1cab,_0x5af66e=_0x3428c6();while(!![]){try{const _0x1067d2=parseInt(_0x1e4385(0x1dc))/0x1*(-parseInt(_0x1e4385(0x1d2))/0x2)+parseInt(_0x1e4385(0x1c7))/0x3*(-parseInt(_0x1e4385(0x1d4))/0x4)+-parseInt(_0x1e4385(0x1a0))/0x5*(-parseInt(_0x1e4385(0x1ec))/0x6)+parseInt(_0x1e4385(0x1ba))/0x7*(-parseInt(_0x1e4385(0x1c4))/0x8)+parseInt(_0x1e4385(0x19f))/0x9+parseInt(_0x1e4385(0x1aa))/0xa*(parseInt(_0x1e4385(0x19e))/0xb)+parseInt(_0x1e4385(0x1c1))/0xc*(parseInt(_0x1e4385(0x1cb))/0xd);if(_0x1067d2===_0x54559a)break;else _0x5af66e['push'](_0x5af66e['shift']());}catch(_0x1184d5){_0x5af66e['push'](_0x5af66e['shift']());}}}(_0x39d3,0xd6f7f));import{ListItemView as _0x537c4e,HighlightedTextView as _0x61aa71,ButtonView as _0x17ebc1,ListView as _0x295738,IconView as _0x51a1cc,createDropdown as _0x273f3a,InputTextView as _0x14bac9}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x1b16d9,IconPin as _0x2433ba,IconCheck as _0x1d6ea9,IconCancel as _0x27deff}from'ckeditor5/src/icons.js';function _0x39d3(){const _0x353c78=['selectConversation','add','_commitEditInputValue','span','withText','execute','pinned','removeConversation','locale','panelView','edit:cancel','AI_CHAT_HISTORY_LOADING_REMOVING','1439368NwSJnu','tiny','ck-ai-chat-history__item','ck-ai-chat-history__item--edit','ck-ai-chat-history__item-title','ck-ai-chat-history__item-main-content','_createCheckView','6816aqqaoY','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','isEdit','56kAnsyO','set','change:isEdit','87SjDIPn','isMatching','ck-ai-chat-history__item-check-container','text','10504thMfKf','ck-ai-chat-history__item-content','LOADING_LABELS','_createCancelEditButtonView','buttonView','bindTemplate','ck-ai-chat-history__item-check','474pbixCg','div','51820RZCWAN','editConversationTitle','ck-ai-loader','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_LOADING_PINNING','highlightText','then','match','1934Bnouya','actions','key','ck-ai-loader__text','AI_CHAT_HISTORY_LOADING_RENAMING','ck-confirm-view-cancel','_createAcceptEditButtonView','listitem','_createMenuDropdownView','ck-hidden','_titleView','AI_CHAT_HISTORY_ACCEPT','updateTitle','children','isOn','isVisible','4509876YyAfKF','AI_CHAT_HISTORY_REMOVE','value','focus','items','bind','label','string','ck-confirm-view-submit','setConversationPinned','addMany','_createPinButtonView','ck-ai-chat-history__item-row','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_LOADING_UNPINNING','setTemplate','showConfirm','AI_CHAT_HISTORY_CANCEL','createCollection','updateLoadingState','click','AI_CHAT_HISTORY_PIN_BUTTON','panelPosition','14995013ybRKWh','5221431PqYkiO','5ocJybc','loadingState','Enter','_createSpinnerView','AI_CHAT_HISTORY_EDIT_NAME','element','ck-ai-chat-history__item--active','mainContent','_createEditInputView','clear','10OsCdtF','extendTemplate','AI_CHAT_HISTORY_REMOVE_CONFIRM','fire'];_0x39d3=function(){return _0x353c78;};return _0x39d3();}function _0x1cab(_0x43904e,_0x31ef0f){const _0x39d363=_0x39d3();return _0x1cab=function(_0x1cabb6,_0x1a1717){_0x1cabb6=_0x1cabb6-0x199;let _0x547ae7=_0x39d363[_0x1cabb6];return _0x547ae7;},_0x1cab(_0x43904e,_0x31ef0f);}import{LateFocusDropdownButtonView as _0x1a371b,ConfirmMixin as _0x2dc784}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x2154a3}from'es-toolkit/compat';import{AISpinnerView as _0xf58759}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1a3352}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x2dc784(_0x537c4e){['id'];static [_0x37b60a(0x1cd)]={'remove':_0x37b60a(0x1b9),'rename':_0x37b60a(0x1e0),'pin':_0x37b60a(0x1d8),'unpin':_0x37b60a(0x1fa)};[_0x37b60a(0x1dd)];[_0x37b60a(0x1a7)];[_0x37b60a(0x1e6)];constructor(_0x3109cc,_0x1124ae){const _0x168cf1=_0x37b60a;super(_0x3109cc);const _0x5d3fad=this[_0x168cf1(0x1d0)];this[_0x168cf1(0x1c5)](_0x168cf1(0x1c3),!0x1),this[_0x168cf1(0x1c5)](_0x168cf1(0x1eb),!0x0),this[_0x168cf1(0x1c5)](_0x168cf1(0x1b4),!!_0x1124ae[_0x168cf1(0x1b4)]),this[_0x168cf1(0x1c5)](_0x168cf1(0x1a1),null),this['id']=_0x1124ae['id'];const {title:_0x13bd75,createdAt:_0x32c106,active:_0xfe0e79=!0x1}=_0x1124ae;this[_0x168cf1(0x1e6)]=new _0x61aa71(),this[_0x168cf1(0x1e6)][_0x168cf1(0x1ca)]=_0x13bd75,this[_0x168cf1(0x1e6)][_0x168cf1(0x1ab)]({'attributes':{'class':[_0x168cf1(0x1be)]}});const _0x58ead2=this[_0x168cf1(0x1c0)](),_0x188bbf=this[_0x168cf1(0x1f7)](_0x3109cc),_0x2982b2=this[_0x168cf1(0x1e4)](),_0x1e843c=this[_0x168cf1(0x1a8)](_0x3109cc,_0x13bd75),_0x21e613=this[_0x168cf1(0x1e2)](_0x3109cc,_0x1e843c),_0x49d87c=this[_0x168cf1(0x1ce)](_0x3109cc,_0x1e843c);this[_0x168cf1(0x1dd)]=this[_0x168cf1(0x199)](),this[_0x168cf1(0x1a7)]=this[_0x168cf1(0x199)](),this[_0x168cf1(0x1a7)][_0x168cf1(0x1af)](this[_0x168cf1(0x1e6)]),this[_0x168cf1(0x1dd)][_0x168cf1(0x1af)](_0x188bbf),this[_0x168cf1(0x1dd)][_0x168cf1(0x1af)](_0x2982b2),this['on'](_0x168cf1(0x1c6),(_0x4b0a77,_0x3b3a9c,_0x4fb97d)=>{const _0x594bf6=_0x168cf1;this[_0x594bf6(0x1dd)][_0x594bf6(0x1a9)](),this[_0x594bf6(0x1a7)][_0x594bf6(0x1a9)](),_0x4fb97d?(this[_0x594bf6(0x1dd)][_0x594bf6(0x1af)](_0x21e613),this[_0x594bf6(0x1dd)][_0x594bf6(0x1af)](_0x49d87c),this[_0x594bf6(0x1a7)][_0x594bf6(0x1af)](_0x1e843c),_0x1e843c[_0x594bf6(0x1a5)][_0x594bf6(0x1ef)]()):(this[_0x594bf6(0x1dd)][_0x594bf6(0x1af)](_0x188bbf),this[_0x594bf6(0x1dd)][_0x594bf6(0x1af)](_0x2982b2),this[_0x594bf6(0x1a7)][_0x594bf6(0x1af)](this[_0x594bf6(0x1e6)]));}),this[_0x168cf1(0x1fb)]({'tag':'li','attributes':{'class':[_0x168cf1(0x1bc),_0xfe0e79?_0x168cf1(0x1a6):'',_0x5d3fad['if'](_0x168cf1(0x1eb),_0x168cf1(0x1e5),_0x41ae3b=>!_0x41ae3b),_0x5d3fad['if'](_0x168cf1(0x1c3),_0x168cf1(0x1bd))],'role':_0x168cf1(0x1e3)},'children':[{'tag':_0x168cf1(0x1b1),'attributes':{'class':[_0x168cf1(0x1c9)]},'children':[{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1d1),_0x5d3fad['if'](_0x168cf1(0x1a1),_0x168cf1(0x1e5),_0x307f6b=>!!_0x307f6b)]},'children':_0xfe0e79?[_0x58ead2]:[]},{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1d6),_0x5d3fad['if'](_0x168cf1(0x1a1),_0x168cf1(0x1e5),_0x4e311f=>!_0x4e311f)]},'children':[this[_0x168cf1(0x1a3)]()]}]},{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1f8)]},'children':[{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1cc)]},'on':{'click':this[_0x168cf1(0x1d0)]['to'](_0x168cf1(0x19b))},'children':[{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1bf)]},'children':[{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1be),_0x5d3fad['if'](_0x168cf1(0x1a1),_0x168cf1(0x1e5),_0x48dced=>!!_0x48dced)]},'children':this[_0x168cf1(0x1a7)]},{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1df),_0x5d3fad['if'](_0x168cf1(0x1a1),_0x168cf1(0x1e5),_0x2f354a=>!_0x2f354a)]},'children':[{'text':_0x5d3fad['to'](_0x168cf1(0x1a1),_0x3d2eaa=>_0x3d2eaa?_0x1a3352(this[_0x168cf1(0x1b6)],AIChatHistoryListItemView[_0x168cf1(0x1cd)][_0x3d2eaa]):'')}]}]},{'tag':_0x168cf1(0x1b1),'attributes':{'class':[_0x168cf1(0x1d7)]},'children':[_0x32c106]}]},{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1f9)]},'children':this[_0x168cf1(0x1dd)]}]}]}),this['on'](_0x168cf1(0x19b),()=>{const _0x258c00=_0x168cf1;this[_0x258c00(0x1c3)]||this[_0x258c00(0x1ad)](_0x258c00(0x1ae),{'id':this['id']});});}[_0x37b60a(0x1e8)](_0x550a2d){const _0x58858c=_0x37b60a;this[_0x58858c(0x1e6)][_0x58858c(0x1ca)]=_0x2154a3(_0x550a2d);}[_0x37b60a(0x19a)](_0x1146d5,_0x5dcf6c){const _0x19ebaa=_0x37b60a;this[_0x19ebaa(0x1c5)](_0x19ebaa(0x1a1),_0x5dcf6c?_0x1146d5:null);}[_0x37b60a(0x1c0)](){const _0xed3bc4=_0x37b60a,_0x330c70=new _0x51a1cc();return _0x330c70[_0xed3bc4(0x1c5)]({'content':_0x1d6ea9}),_0x330c70;}[_0x37b60a(0x1f7)](_0x5163d0){const _0x2f08ca=_0x37b60a,_0x218ec2=new _0x17ebc1(_0x5163d0);return _0x218ec2[_0x2f08ca(0x1c5)]({'label':_0x1a3352(_0x5163d0,_0x2f08ca(0x19c)),'icon':_0x2433ba,'withText':!0x1,'tooltip':!0x0}),_0x218ec2[_0x2f08ca(0x1f1)](_0x2f08ca(0x1ea))['to'](this,_0x2f08ca(0x1b4)),_0x218ec2['on'](_0x2f08ca(0x1b3),()=>{const _0x23cca6=_0x2f08ca,_0x124b26=!this[_0x23cca6(0x1b4)];this[_0x23cca6(0x1ad)](_0x23cca6(0x1f5),{'id':this['id'],'pinned':_0x124b26});}),_0x218ec2;}[_0x37b60a(0x1e4)](){const _0x4813f0=_0x37b60a,_0x5256a6=_0x273f3a(this[_0x4813f0(0x1b6)],_0x1a371b),_0x3d6a97=_0x5256a6[_0x4813f0(0x1b7)][_0x4813f0(0x1e9)];_0x5256a6[_0x4813f0(0x1cf)][_0x4813f0(0x1c5)]({'label':_0x1a3352(this[_0x4813f0(0x1b6)],_0x4813f0(0x1c2)),'icon':_0x1b16d9}),_0x5256a6[_0x4813f0(0x19d)]='sw';const _0xa18ed0=new _0x17ebc1(this[_0x4813f0(0x1b6)]);_0xa18ed0[_0x4813f0(0x1f2)]=_0x1a3352(this[_0x4813f0(0x1b6)],_0x4813f0(0x1a4)),_0xa18ed0[_0x4813f0(0x1b2)]=!0x0,_0xa18ed0['on'](_0x4813f0(0x1b3),()=>{const _0x5dbeef=_0x4813f0;this[_0x5dbeef(0x1c3)]=!0x0;});const _0x37acca=new _0x17ebc1(this[_0x4813f0(0x1b6)]);_0x37acca[_0x4813f0(0x1f2)]=_0x1a3352(this[_0x4813f0(0x1b6)],_0x4813f0(0x1ed)),_0x37acca[_0x4813f0(0x1b2)]=!0x0,_0x37acca['on'](_0x4813f0(0x1b3),()=>{const _0x3c6110=_0x4813f0;this[_0x3c6110(0x1fc)](_0x1a3352(this[_0x3c6110(0x1b6)],_0x3c6110(0x1ac)),this[_0x3c6110(0x1a5)])[_0x3c6110(0x1da)](()=>{const _0x560e69=_0x3c6110;this[_0x560e69(0x1ad)](_0x560e69(0x1b5),{'id':this['id']});});});const _0x2a227b=new _0x295738(this[_0x4813f0(0x1b6)]),_0x286ee6=new _0x537c4e(this[_0x4813f0(0x1b6)]);_0x286ee6[_0x4813f0(0x1e9)][_0x4813f0(0x1af)](_0xa18ed0);const _0x4dfaf1=new _0x537c4e(this[_0x4813f0(0x1b6)]);return _0x4dfaf1[_0x4813f0(0x1e9)][_0x4813f0(0x1af)](_0x37acca),_0x2a227b[_0x4813f0(0x1f0)][_0x4813f0(0x1f6)]([_0x286ee6,_0x4dfaf1]),_0x3d6a97[_0x4813f0(0x1af)](_0x2a227b),_0x5256a6;}[_0x37b60a(0x1a8)](_0x42775e,_0x329418){const _0x3db342=_0x37b60a,_0x23be09=new _0x14bac9(_0x42775e),_0xa37a21=_0x23be09[_0x3db342(0x1d0)];return _0x23be09[_0x3db342(0x1ee)]=_0x329418,_0x23be09[_0x3db342(0x1ab)]({'on':{'keydown':_0xa37a21['to'](_0xc8cdfe=>{const _0xab0f6=_0x3db342;_0xab0f6(0x1a2)==_0xc8cdfe[_0xab0f6(0x1de)]&&this[_0xab0f6(0x1b0)](_0x23be09);})}}),_0x23be09;}[_0x37b60a(0x1e2)](_0x4a0428,_0x4118fd){const _0x629e05=_0x37b60a,_0x4b9afb=new _0x17ebc1(_0x4a0428);return _0x4b9afb[_0x629e05(0x1c5)]({'icon':_0x1d6ea9,'withText':!0x1,'tooltip':_0x1a3352(_0x4a0428,_0x629e05(0x1e7))}),_0x4b9afb[_0x629e05(0x1ab)]({'attributes':{'class':[_0x629e05(0x1f4)]}}),_0x4b9afb['on'](_0x629e05(0x1b3),()=>{const _0x39b779=_0x629e05;this[_0x39b779(0x1b0)](_0x4118fd);}),_0x4b9afb;}[_0x37b60a(0x1b0)](_0x40a498){const _0x4ad765=_0x37b60a,_0x3b47c6=_0x40a498[_0x4ad765(0x1a5)][_0x4ad765(0x1ee)]||'';this[_0x4ad765(0x1e6)][_0x4ad765(0x1ca)]=_0x3b47c6,this[_0x4ad765(0x1c3)]=!0x1,this[_0x4ad765(0x1ad)](_0x4ad765(0x1d5),{'id':this['id'],'title':_0x3b47c6});}[_0x37b60a(0x1ce)](_0x5281b3,_0x449d36){const _0x490784=_0x37b60a,_0x340f2b=new _0x17ebc1(_0x5281b3);return _0x340f2b[_0x490784(0x1c5)]({'icon':_0x27deff,'withText':!0x1,'tooltip':_0x1a3352(_0x5281b3,_0x490784(0x1fd))}),_0x340f2b[_0x490784(0x1ab)]({'attributes':{'class':[_0x490784(0x1e1)]}}),_0x340f2b['on'](_0x490784(0x1b3),()=>{const _0x4b6f62=_0x490784;this[_0x4b6f62(0x1c3)]=!0x1,_0x449d36[_0x4b6f62(0x1ee)]=this[_0x4b6f62(0x1e6)][_0x4b6f62(0x1ca)]||'',this[_0x4b6f62(0x1ad)](_0x4b6f62(0x1b8));}),_0x340f2b;}[_0x37b60a(0x1a3)](){const _0x5b3d31=_0x37b60a,_0x1ff7ed=new _0xf58759(_0x5b3d31(0x1bb));return _0x1ff7ed[_0x5b3d31(0x1eb)]=!0x0,_0x1ff7ed;}[_0x37b60a(0x1c8)](_0x37fb0a){const _0xa36aaf=_0x37b60a;return this[_0xa36aaf(0x1e6)]&&_0xa36aaf(0x1f3)==typeof this[_0xa36aaf(0x1e6)][_0xa36aaf(0x1ca)]&&this[_0xa36aaf(0x1e6)][_0xa36aaf(0x1ca)][_0xa36aaf(0x1db)](_0x37fb0a)?{'title':!0x0}:null;}[_0x37b60a(0x1d9)](_0x44ed78){const _0x26e2ba=_0x37b60a;this[_0x26e2ba(0x1e6)][_0x26e2ba(0x1d9)](_0x44ed78);}}
|
|
23
|
+
const _0x28f5f3=_0x438d;(function(_0x1bc365,_0x4a4fce){const _0x5398a9=_0x438d,_0x390d56=_0x1bc365();while(!![]){try{const _0x2e6ba3=parseInt(_0x5398a9(0x132))/0x1+-parseInt(_0x5398a9(0x139))/0x2*(-parseInt(_0x5398a9(0x106))/0x3)+parseInt(_0x5398a9(0x11f))/0x4*(parseInt(_0x5398a9(0xf7))/0x5)+parseInt(_0x5398a9(0xfd))/0x6*(parseInt(_0x5398a9(0x136))/0x7)+parseInt(_0x5398a9(0x134))/0x8*(-parseInt(_0x5398a9(0x12c))/0x9)+-parseInt(_0x5398a9(0xe5))/0xa+parseInt(_0x5398a9(0xf8))/0xb*(-parseInt(_0x5398a9(0xff))/0xc);if(_0x2e6ba3===_0x4a4fce)break;else _0x390d56['push'](_0x390d56['shift']());}catch(_0x3ad9a7){_0x390d56['push'](_0x390d56['shift']());}}}(_0x5370,0xd4fc9));import{ListItemView as _0x4d680d,HighlightedTextView as _0x1d8b39,ButtonView as _0x39accb,ListView as _0x59f30d,IconView as _0x242918,createDropdown as _0x1c3571,InputTextView as _0x165543}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x4465ff,IconPin as _0x1e5508,IconCheck as _0x1c1c9a,IconCancel as _0x306445}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x1f83b3,ConfirmMixin as _0x3c8914}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x165488}from'es-toolkit/compat';function _0x5370(){const _0x495a98=['isEdit','editConversationTitle','AI_CHAT_HISTORY_LOADING_PINNING','_createMenuDropdownView','ck-ai-chat-history__item-actions','element','setTemplate','_createCheckView','LOADING_LABELS','addMany','ck-hidden','updateTitle','ck-ai-chat-history__item--edit','15256SxZxJF','isVisible','Enter','loadingState','_commitEditInputValue','tiny','_createSpinnerView','set','mainContent','bind','ck-ai-loader','extendTemplate','ck-ai-chat-history__item-content','297MsUazT','buttonView','panelView','selectConversation','ck-ai-loader__text','AI_CHAT_HISTORY_LOADING_UNPINNING','901858LvSqoG','fire','4752DsjCZh','bindTemplate','1973377XKhfdF','locale','change:isEdit','1166abMMYx','AI_CHAT_HISTORY_REMOVE_CONFIRM','createCollection','AI_CHAT_HISTORY_REMOVE','_createEditInputView','isMatching','focus','click','children','_titleView','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','add','value','ck-ai-chat-history__item--active','match','10893090cxhnKF','panelPosition','AI_CHAT_HISTORY_ACCEPT','withText','ck-ai-chat-history__item-check','removeConversation','key','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item-title','ck-confirm-view-cancel','AI_CHAT_HISTORY_CANCEL','edit:cancel','string','span','then','div','updateLoadingState','1585cPHuzc','165uyrPwO','AI_CHAT_HISTORY_LOADING_RENAMING','showConfirm','AI_CHAT_HISTORY_EDIT_NAME','pinned','30LgdKEe','ck-ai-chat-history__item-check-container','2472408gMrwqL','label','ck-ai-chat-history__item-row','text','items','_createCancelEditButtonView','listitem','7983pDqtyt','actions','setConversationPinned','_createPinButtonView','isOn','execute','_createAcceptEditButtonView','ck-ai-chat-history__item','clear','ck-ai-chat-history__item-main-content','ck-confirm-view-submit','highlightText'];_0x5370=function(){return _0x495a98;};return _0x5370();}function _0x438d(_0xe75de7,_0x560b37){const _0x5370bf=_0x5370();return _0x438d=function(_0x438d0f,_0x5ee648){_0x438d0f=_0x438d0f-0xd9;let _0x37b665=_0x5370bf[_0x438d0f];return _0x37b665;},_0x438d(_0xe75de7,_0x560b37);}import{AISpinnerView as _0x20027e}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x44d73d}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x3c8914(_0x4d680d){['id'];static [_0x28f5f3(0x11a)]={'remove':_0x28f5f3(0xdf),'rename':_0x28f5f3(0xf9),'pin':_0x28f5f3(0x114),'unpin':_0x28f5f3(0x131)};[_0x28f5f3(0x107)];[_0x28f5f3(0x127)];[_0x28f5f3(0xde)];constructor(_0x4384ce,_0x4c54c4){const _0x415b7c=_0x28f5f3;super(_0x4384ce);const _0x3968c0=this[_0x415b7c(0x135)];this[_0x415b7c(0x126)](_0x415b7c(0x112),!0x1),this[_0x415b7c(0x126)](_0x415b7c(0x120),!0x0),this[_0x415b7c(0x126)](_0x415b7c(0xfc),!!_0x4c54c4[_0x415b7c(0xfc)]),this[_0x415b7c(0x126)](_0x415b7c(0x122),null),this['id']=_0x4c54c4['id'];const {title:_0x506cc2,createdAt:_0x8b824c,active:_0x2af3da=!0x1}=_0x4c54c4;this[_0x415b7c(0xde)]=new _0x1d8b39(),this[_0x415b7c(0xde)][_0x415b7c(0x102)]=_0x506cc2,this[_0x415b7c(0xde)][_0x415b7c(0x12a)]({'attributes':{'class':[_0x415b7c(0xee)]}});const _0x80f903=this[_0x415b7c(0x119)](),_0x4c7a9c=this[_0x415b7c(0x109)](_0x4384ce),_0x150e1d=this[_0x415b7c(0x115)](),_0x1fe37a=this[_0x415b7c(0xd9)](_0x4384ce,_0x506cc2),_0x60b043=this[_0x415b7c(0x10c)](_0x4384ce,_0x1fe37a),_0x16abf5=this[_0x415b7c(0x104)](_0x4384ce,_0x1fe37a);this[_0x415b7c(0x107)]=this[_0x415b7c(0x13b)](),this[_0x415b7c(0x127)]=this[_0x415b7c(0x13b)](),this[_0x415b7c(0x127)][_0x415b7c(0xe1)](this[_0x415b7c(0xde)]),this[_0x415b7c(0x107)][_0x415b7c(0xe1)](_0x4c7a9c),this[_0x415b7c(0x107)][_0x415b7c(0xe1)](_0x150e1d),this['on'](_0x415b7c(0x138),(_0x7c8e5e,_0x1efb70,_0x3a8ece)=>{const _0x5e39e0=_0x415b7c;this[_0x5e39e0(0x107)][_0x5e39e0(0x10e)](),this[_0x5e39e0(0x127)][_0x5e39e0(0x10e)](),_0x3a8ece?(this[_0x5e39e0(0x107)][_0x5e39e0(0xe1)](_0x60b043),this[_0x5e39e0(0x107)][_0x5e39e0(0xe1)](_0x16abf5),this[_0x5e39e0(0x127)][_0x5e39e0(0xe1)](_0x1fe37a),_0x1fe37a[_0x5e39e0(0x117)][_0x5e39e0(0xdb)]()):(this[_0x5e39e0(0x107)][_0x5e39e0(0xe1)](_0x4c7a9c),this[_0x5e39e0(0x107)][_0x5e39e0(0xe1)](_0x150e1d),this[_0x5e39e0(0x127)][_0x5e39e0(0xe1)](this[_0x5e39e0(0xde)]));}),this[_0x415b7c(0x118)]({'tag':'li','attributes':{'class':[_0x415b7c(0x10d),_0x2af3da?_0x415b7c(0xe3):'',_0x3968c0['if'](_0x415b7c(0x120),_0x415b7c(0x11c),_0x152fa2=>!_0x152fa2),_0x3968c0['if'](_0x415b7c(0x112),_0x415b7c(0x11e))],'role':_0x415b7c(0x105)},'children':[{'tag':_0x415b7c(0xf3),'attributes':{'class':[_0x415b7c(0xfe)]},'children':[{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0xe9),_0x3968c0['if'](_0x415b7c(0x122),_0x415b7c(0x11c),_0x5160d2=>!!_0x5160d2)]},'children':_0x2af3da?[_0x80f903]:[]},{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0x129),_0x3968c0['if'](_0x415b7c(0x122),_0x415b7c(0x11c),_0x253db5=>!_0x253db5)]},'children':[this[_0x415b7c(0x125)]()]}]},{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0x101)]},'children':[{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0x12b)]},'on':{'click':this[_0x415b7c(0x135)]['to'](_0x415b7c(0xdc))},'children':[{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0x10f)]},'children':[{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0xee),_0x3968c0['if'](_0x415b7c(0x122),_0x415b7c(0x11c),_0x1747ed=>!!_0x1747ed)]},'children':this[_0x415b7c(0x127)]},{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0x130),_0x3968c0['if'](_0x415b7c(0x122),_0x415b7c(0x11c),_0x261dfe=>!_0x261dfe)]},'children':[{'text':_0x3968c0['to'](_0x415b7c(0x122),_0x3b7a76=>_0x3b7a76?_0x44d73d(this[_0x415b7c(0x137)],AIChatHistoryListItemView[_0x415b7c(0x11a)][_0x3b7a76]):'')}]}]},{'tag':_0x415b7c(0xf3),'attributes':{'class':[_0x415b7c(0xec)]},'children':[_0x8b824c]}]},{'tag':_0x415b7c(0xf5),'attributes':{'class':[_0x415b7c(0x116)]},'children':this[_0x415b7c(0x107)]}]}]}),this['on'](_0x415b7c(0xdc),()=>{const _0x4c8a3e=_0x415b7c;this[_0x4c8a3e(0x112)]||this[_0x4c8a3e(0x133)](_0x4c8a3e(0x12f),{'id':this['id']});});}[_0x28f5f3(0x11d)](_0x1aa6d3){const _0xaf7175=_0x28f5f3;this[_0xaf7175(0xde)][_0xaf7175(0x102)]=_0x165488(_0x1aa6d3);}[_0x28f5f3(0xf6)](_0x45bd7e,_0x1203c2){const _0x106543=_0x28f5f3;this[_0x106543(0x126)](_0x106543(0x122),_0x1203c2?_0x45bd7e:null);}[_0x28f5f3(0x119)](){const _0x494943=_0x28f5f3,_0x4eac30=new _0x242918();return _0x4eac30[_0x494943(0x126)]({'content':_0x1c1c9a}),_0x4eac30;}[_0x28f5f3(0x109)](_0x1d0275){const _0xb834a2=_0x28f5f3,_0x41d211=new _0x39accb(_0x1d0275);return _0x41d211[_0xb834a2(0x126)]({'label':_0x44d73d(_0x1d0275,_0xb834a2(0xed)),'icon':_0x1e5508,'withText':!0x1,'tooltip':!0x0}),_0x41d211[_0xb834a2(0x128)](_0xb834a2(0x10a))['to'](this,_0xb834a2(0xfc)),_0x41d211['on'](_0xb834a2(0x10b),()=>{const _0x31e964=_0xb834a2,_0x215ac5=!this[_0x31e964(0xfc)];this[_0x31e964(0x133)](_0x31e964(0x108),{'id':this['id'],'pinned':_0x215ac5});}),_0x41d211;}[_0x28f5f3(0x115)](){const _0x5ea715=_0x28f5f3,_0x20ab2d=_0x1c3571(this[_0x5ea715(0x137)],_0x1f83b3),_0x5d01b6=_0x20ab2d[_0x5ea715(0x12e)][_0x5ea715(0xdd)];_0x20ab2d[_0x5ea715(0x12d)][_0x5ea715(0x126)]({'label':_0x44d73d(this[_0x5ea715(0x137)],_0x5ea715(0xe0)),'icon':_0x4465ff}),_0x20ab2d[_0x5ea715(0xe6)]='sw';const _0xeff85c=new _0x39accb(this[_0x5ea715(0x137)]);_0xeff85c[_0x5ea715(0x100)]=_0x44d73d(this[_0x5ea715(0x137)],_0x5ea715(0xfb)),_0xeff85c[_0x5ea715(0xe8)]=!0x0,_0xeff85c['on'](_0x5ea715(0x10b),()=>{const _0x502e73=_0x5ea715;this[_0x502e73(0x112)]=!0x0;});const _0x17c941=new _0x39accb(this[_0x5ea715(0x137)]);_0x17c941[_0x5ea715(0x100)]=_0x44d73d(this[_0x5ea715(0x137)],_0x5ea715(0x13c)),_0x17c941[_0x5ea715(0xe8)]=!0x0,_0x17c941['on'](_0x5ea715(0x10b),()=>{const _0x4c7cea=_0x5ea715;this[_0x4c7cea(0xfa)](_0x44d73d(this[_0x4c7cea(0x137)],_0x4c7cea(0x13a)),this[_0x4c7cea(0x117)])[_0x4c7cea(0xf4)](()=>{const _0x492d03=_0x4c7cea;this[_0x492d03(0x133)](_0x492d03(0xea),{'id':this['id']});});});const _0x32ef86=new _0x59f30d(this[_0x5ea715(0x137)]),_0x49aaae=new _0x4d680d(this[_0x5ea715(0x137)]);_0x49aaae[_0x5ea715(0xdd)][_0x5ea715(0xe1)](_0xeff85c);const _0x1f843f=new _0x4d680d(this[_0x5ea715(0x137)]);return _0x1f843f[_0x5ea715(0xdd)][_0x5ea715(0xe1)](_0x17c941),_0x32ef86[_0x5ea715(0x103)][_0x5ea715(0x11b)]([_0x49aaae,_0x1f843f]),_0x5d01b6[_0x5ea715(0xe1)](_0x32ef86),_0x20ab2d;}[_0x28f5f3(0xd9)](_0x3c9c10,_0x1696a0){const _0x17b997=_0x28f5f3,_0x12985a=new _0x165543(_0x3c9c10),_0x33816b=_0x12985a[_0x17b997(0x135)];return _0x12985a[_0x17b997(0xe2)]=_0x1696a0,_0x12985a[_0x17b997(0x12a)]({'on':{'keydown':_0x33816b['to'](_0xce77d9=>{const _0x2f975f=_0x17b997;_0x2f975f(0x121)==_0xce77d9[_0x2f975f(0xeb)]&&this[_0x2f975f(0x123)](_0x12985a);})}}),_0x12985a;}[_0x28f5f3(0x10c)](_0x4994b4,_0x3ff4af){const _0x311d10=_0x28f5f3,_0x5b29d7=new _0x39accb(_0x4994b4);return _0x5b29d7[_0x311d10(0x126)]({'icon':_0x1c1c9a,'withText':!0x1,'tooltip':_0x44d73d(_0x4994b4,_0x311d10(0xe7))}),_0x5b29d7[_0x311d10(0x12a)]({'attributes':{'class':[_0x311d10(0x110)]}}),_0x5b29d7['on'](_0x311d10(0x10b),()=>{const _0x5663f7=_0x311d10;this[_0x5663f7(0x123)](_0x3ff4af);}),_0x5b29d7;}[_0x28f5f3(0x123)](_0x1e7018){const _0x4ed6aa=_0x28f5f3,_0x39d3bd=_0x1e7018[_0x4ed6aa(0x117)][_0x4ed6aa(0xe2)]||'';this[_0x4ed6aa(0xde)][_0x4ed6aa(0x102)]=_0x39d3bd,this[_0x4ed6aa(0x112)]=!0x1,this[_0x4ed6aa(0x133)](_0x4ed6aa(0x113),{'id':this['id'],'title':_0x39d3bd});}[_0x28f5f3(0x104)](_0x2ec673,_0x4377a4){const _0x5d17f4=_0x28f5f3,_0x2b9fc1=new _0x39accb(_0x2ec673);return _0x2b9fc1[_0x5d17f4(0x126)]({'icon':_0x306445,'withText':!0x1,'tooltip':_0x44d73d(_0x2ec673,_0x5d17f4(0xf0))}),_0x2b9fc1[_0x5d17f4(0x12a)]({'attributes':{'class':[_0x5d17f4(0xef)]}}),_0x2b9fc1['on'](_0x5d17f4(0x10b),()=>{const _0x1bdeb6=_0x5d17f4;this[_0x1bdeb6(0x112)]=!0x1,_0x4377a4[_0x1bdeb6(0xe2)]=this[_0x1bdeb6(0xde)][_0x1bdeb6(0x102)]||'',this[_0x1bdeb6(0x133)](_0x1bdeb6(0xf1));}),_0x2b9fc1;}[_0x28f5f3(0x125)](){const _0x2972b4=_0x28f5f3,_0x198ed8=new _0x20027e(_0x2972b4(0x124));return _0x198ed8[_0x2972b4(0x120)]=!0x0,_0x198ed8;}[_0x28f5f3(0xda)](_0x4a3808){const _0xdb5db6=_0x28f5f3;return this[_0xdb5db6(0xde)]&&_0xdb5db6(0xf2)==typeof this[_0xdb5db6(0xde)][_0xdb5db6(0x102)]&&this[_0xdb5db6(0xde)][_0xdb5db6(0x102)][_0xdb5db6(0xe4)](_0x4a3808)?{'title':!0x0}:null;}[_0x28f5f3(0x111)](_0x1048d2){const _0x144d4c=_0x28f5f3;this[_0x144d4c(0xde)][_0x144d4c(0x111)](_0x1048d2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26e5dd=_0x1c11;(function(_0x8196aa,_0x1d140c){const _0x2fcf58=_0x1c11,_0x28bbd9=_0x8196aa();while(!![]){try{const _0x33bff9=parseInt(_0x2fcf58(0xd1))/0x1*(-parseInt(_0x2fcf58(0xdc))/0x2)+-parseInt(_0x2fcf58(0xc4))/0x3+-parseInt(_0x2fcf58(0xc2))/0x4+parseInt(_0x2fcf58(0xd4))/0x5+parseInt(_0x2fcf58(0xd7))/0x6+parseInt(_0x2fcf58(0xd3))/0x7+parseInt(_0x2fcf58(0xc8))/0x8;if(_0x33bff9===_0x1d140c)break;else _0x28bbd9['push'](_0x28bbd9['shift']());}catch(_0x345ca8){_0x28bbd9['push'](_0x28bbd9['shift']());}}}(_0x4180,0xeb1e9));import{ListItemView as _0x50bae9,View as _0x49c377,ListView as _0x5d0713}from'ckeditor5/src/ui.js';function _0x4180(){const _0x277ba6=['11117920GvyloD','filter','itemsViews','removeItem','indexOf','remove','ck-ai-chat-history__section','title','addMany','1ilRscV','isMatching','5157313iGaqyL','1958055yoZzWE','setTemplate','length','3631794lLHRku','bindTemplate','div','splice','ck-ai-chat-history__section-title','3041498NfyMfS','ck-hidden','find','highlightText','getItem','1934720lmUYWn','set','467793cqXyCh','items','isVisible','_itemsListView'];_0x4180=function(){return _0x277ba6;};return _0x4180();}function _0x1c11(_0x5d8945,_0x4a86f8){const _0x41807c=_0x4180();return _0x1c11=function(_0x1c1135,_0x45e7b3){_0x1c1135=_0x1c1135-0xbf;let _0x555a33=_0x41807c[_0x1c1135];return _0x555a33;},_0x1c11(_0x5d8945,_0x4a86f8);}export class AIChatHistoryListView extends _0x50bae9{[_0x26e5dd(0xcf)];[_0x26e5dd(0xca)];[_0x26e5dd(0xc7)];constructor(_0x23f4c5,{title:_0x455359,items:_0x3a313f}){const _0x35d465=_0x26e5dd;super(_0x23f4c5);const _0x2e1378=this[_0x35d465(0xd8)];this[_0x35d465(0xc3)](_0x35d465(0xc6),!0x0),this[_0x35d465(0xcf)]=_0x455359,this[_0x35d465(0xca)]=_0x3a313f;const _0x2b49bf=new _0x49c377(_0x23f4c5);_0x2b49bf[_0x35d465(0xd5)]({'tag':_0x35d465(0xd9),'attributes':{'class':[_0x35d465(0xdb)]},'children':[this[_0x35d465(0xcf)]]}),this[_0x35d465(0xc7)]=new _0x5d0713(_0x23f4c5),this[_0x35d465(0xc7)][_0x35d465(0xc5)][_0x35d465(0xd0)](this[_0x35d465(0xca)]),this[_0x35d465(0xd5)]({'tag':'li','attributes':{'class':[_0x35d465(0xce),_0x2e1378['if'](_0x35d465(0xc6),_0x35d465(0xdd),_0x1b775c=>!_0x1b775c)]},'children':[_0x2b49bf,this[_0x35d465(0xc7)]]});}[_0x26e5dd(0xc9)](_0x1b39d9){const _0x1ca67a=_0x26e5dd,_0x126941=this[_0x1ca67a(0xca)][_0x1ca67a(0xd6)];let _0x57d37e=0x0;for(const _0x112caf of this[_0x1ca67a(0xca)]){if(_0x1b39d9){const _0x2086d7=_0x112caf[_0x1ca67a(0xd2)](_0x1b39d9);_0x112caf[_0x1ca67a(0xc6)]=!!_0x2086d7,_0x112caf[_0x1ca67a(0xc0)](_0x1b39d9);}else _0x112caf[_0x1ca67a(0xc6)]=!0x0,_0x112caf[_0x1ca67a(0xc0)](null);_0x112caf[_0x1ca67a(0xc6)]&&_0x57d37e++;}return this[_0x1ca67a(0xc6)]=_0x57d37e>0x0,{'resultsCount':_0x57d37e,'totalItemsCount':_0x126941};}[_0x26e5dd(0xc1)](_0x4da63b){const _0x1cdf61=_0x26e5dd;return this[_0x1cdf61(0xca)][_0x1cdf61(0xbf)](_0x417622=>_0x417622['id']===_0x4da63b);}[_0x26e5dd(0xcb)](_0x55fc01){const _0x438cc5=_0x26e5dd,_0x1fa2c1=this[_0x438cc5(0xca)][_0x438cc5(0xcc)](_0x55fc01);-0x1!==_0x1fa2c1&&(this[_0x438cc5(0xca)][_0x438cc5(0xda)](_0x1fa2c1,0x1),this[_0x438cc5(0xc7)][_0x438cc5(0xc5)][_0x438cc5(0xcd)](_0x55fc01));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x1a44f3=_0x1f49;(function(_0x565a1d,_0x2a43c3){const _0x43dd84=_0x1f49,_0x506314=_0x565a1d();while(!![]){try{const _0x5459d3=parseInt(_0x43dd84(0x1b8))/0x1*(parseInt(_0x43dd84(0x1bd))/0x2)+parseInt(_0x43dd84(0x1b5))/0x3+-parseInt(_0x43dd84(0x1b2))/0x4+parseInt(_0x43dd84(0x1b9))/0x5+parseInt(_0x43dd84(0x1b7))/0x6+parseInt(_0x43dd84(0x1c0))/0x7*(parseInt(_0x43dd84(0x1bb))/0x8)+parseInt(_0x43dd84(0x1be))/0x9*(-parseInt(_0x43dd84(0x1b4))/0xa);if(_0x5459d3===_0x2a43c3)break;else _0x506314['push'](_0x506314['shift']());}catch(_0x4847c1){_0x506314['push'](_0x506314['shift']());}}}(_0x16d3,0xde713));function _0x1f49(_0x91a65,_0x1fd77e){const _0x16d3f7=_0x16d3();return _0x1f49=function(_0x1f491f,_0x4fd8f3){_0x1f491f=_0x1f491f-0x1b2;let _0x2832b7=_0x16d3f7[_0x1f491f];return _0x2832b7;},_0x1f49(_0x91a65,_0x1fd77e);}function _0x16d3(){const _0x47e069=['addMany','10892rJJQtn','items','4838044sQrbPX','extendTemplate','1570XLRVRg','4572993AXkzhB','filter','10552692gNLGDc','54dINFcQ','162880YUKIvM','sections','4208ZKugud','ck-ai-chat-history__sections','33552rqxsHQ','167355hOxWqB'];_0x16d3=function(){return _0x47e069;};return _0x16d3();}import{ListView as _0x30bdd3}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x30bdd3{[_0x1a44f3(0x1ba)];constructor(_0x26251e,_0x3f1723){const _0x4932a6=_0x1a44f3;super(_0x26251e),this[_0x4932a6(0x1ba)]=_0x3f1723,this[_0x4932a6(0x1c1)][_0x4932a6(0x1bf)](this[_0x4932a6(0x1ba)]),this[_0x4932a6(0x1b3)]({'attributes':{'class':[_0x4932a6(0x1bc)]}});}[_0x1a44f3(0x1b6)](_0x129f07){const _0x39e6b4=_0x1a44f3;let _0xdc9c8=0x0,_0x241550=0x0;for(const _0x44ecfd of this[_0x39e6b4(0x1ba)]){const {resultsCount:_0x264467,totalItemsCount:_0x597538}=_0x44ecfd[_0x39e6b4(0x1b6)](_0x129f07);_0xdc9c8+=_0x264467,_0x241550+=_0x597538;}return{'resultsCount':_0xdc9c8,'totalItemsCount':_0x241550};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50d126=_0x56d4;(function(_0x400c35,_0x5aca0e){const _0x2eb7aa=_0x56d4,_0x244008=_0x400c35();while(!![]){try{const _0x5d2631=-parseInt(_0x2eb7aa(0x1cd))/0x1*(-parseInt(_0x2eb7aa(0x1e8))/0x2)+-parseInt(_0x2eb7aa(0x1e1))/0x3+parseInt(_0x2eb7aa(0x1ed))/0x4+-parseInt(_0x2eb7aa(0x1a9))/0x5+-parseInt(_0x2eb7aa(0x1e2))/0x6*(-parseInt(_0x2eb7aa(0x1bb))/0x7)+-parseInt(_0x2eb7aa(0x1ef))/0x8+parseInt(_0x2eb7aa(0x19c))/0x9*(parseInt(_0x2eb7aa(0x1da))/0xa);if(_0x5d2631===_0x5aca0e)break;else _0x244008['push'](_0x244008['shift']());}catch(_0x37f964){_0x244008['push'](_0x244008['shift']());}}}(_0x1830,0x86453));import{View as _0x48d92d,SearchTextView as _0x3f4f00,FormHeaderView as _0x355ca9,ButtonView as _0x1a4bac}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x128d9c,IconCancel as _0x4fcd8c,IconPlus as _0x46182d}from'ckeditor5/src/icons.js';function _0x56d4(_0xa0e86c,_0x3dfe1e){const _0x183044=_0x1830();return _0x56d4=function(_0x56d421,_0x4c4a80){_0x56d421=_0x56d421-0x19b;let _0x4158bc=_0x183044[_0x56d421];return _0x4158bc;},_0x56d4(_0xa0e86c,_0x3dfe1e);}import{AIChatHistorySectionListView as _0x2aa781}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x17c392}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x106232}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xb36d06}from'../aichathistoryui.js';function _0x1830(){const _0x32fc3b=['ck-ai-chat-history__empty-message','updateHistoryItemsWithCategories','some','ck-ai-chat-error','locale','AI_CHAT_HISTORY_SEARCH_LABEL','AI_CHAT_HISTORY_EMPTY_MESSAGE','fire','openChat','42qRTSam','change:isLoading','bind','removeItem','push','ck-ai-chat-history__content','ck-ai-chat-history','ck-ai-header\x20ck-ai-header_history','search','errorView','setTemplate','_createSkeletonView','fieldView','isVisible','element','set','_updateViewVisibility','errorMessage','37NFRmNn','_createEmptyStateView','children','splice','value','delegate','indexOf','render','add','div','bindTemplate','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat-history__empty','480bmIypK','items','ck-ai-chat-error__dismiss-button','sectionsView','resizeButton','aiHistory','updateLoadingState','417567txmHeY','430002rZiytW','removeHistoryItem','sections','updateItemTitle','getItem','ltr','39876ZdVzWO','updateItemLoadingState','isMaximized','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','title','2302840rINNzX','clear','6886640PwWpKY','itemsViews','ck-reset_all','updateTitle','addMany','ck-hidden','_createSearchView','change:errorMessage','47934GxFmqX','skeletonView','emptyView','hasItems','_createErrorView','AI_CHAT_HISTORY_HEADING','isEmptyViewVisible','_createListItemViews','isLoading','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_refreshSearch','ck-ai-chat__start-conversation','execute','2245380rYXnEu','length','isSearchViewVisible','extendTemplate','queryView','remove','ck-rounded-corners','change:hasItems','searchView'];_0x1830=function(){return _0x32fc3b;};return _0x1830();}import{AISkeletonView as _0x543b60,SKELETON_DEFINITIONS as _0x2f1045}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x2e13ee}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x26fa6e}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x48d92d{[_0x50d126(0x1b1)];[_0x50d126(0x1c4)];[_0x50d126(0x19d)];[_0x50d126(0x19e)];[_0x50d126(0x1dd)];[_0x50d126(0x1de)];constructor(_0x3006c7,_0x3fe43f){const _0x468611=_0x50d126;super(_0x3006c7),this[_0x468611(0x1ca)](_0x468611(0x19f),!0x1),this[_0x468611(0x1ca)](_0x468611(0x1a4),!0x0),this[_0x468611(0x1ca)](_0x468611(0x1cc),''),this[_0x468611(0x1ca)](_0x468611(0x1ea),!0x1),this[_0x468611(0x1ca)](_0x468611(0x1ab),!0x1),this[_0x468611(0x1ca)](_0x468611(0x1a2),!0x1);const _0x1d12fa=new _0x355ca9(_0x3006c7,{'label':_0x26fa6e(_0x3006c7,_0x468611(0x1a1)),'icon':_0x128d9c,'class':_0x468611(0x1c2)});_0x3fe43f&&(this[_0x468611(0x1de)]=_0x2e13ee(_0x3006c7,this),_0x1d12fa[_0x468611(0x1cf)][_0x468611(0x1d5)](this[_0x468611(0x1de)])),this[_0x468611(0x1dd)]=new _0x2aa781(_0x3006c7,[]),this[_0x468611(0x1dd)][_0x468611(0x1d2)](..._0xb36d06)['to'](this),this[_0x468611(0x1c4)]=this[_0x468611(0x1a0)](),this[_0x468611(0x19d)]=this[_0x468611(0x1c6)](),this[_0x468611(0x19e)]=this[_0x468611(0x1ce)](),this[_0x468611(0x1b1)]=this[_0x468611(0x1f5)](),this['on'](_0x468611(0x1bc),()=>this[_0x468611(0x1cb)]()),this['on'](_0x468611(0x1b0),()=>this[_0x468611(0x1cb)]()),this['on'](_0x468611(0x19b),()=>this[_0x468611(0x1cb)]()),this[_0x468611(0x1c5)]({'tag':_0x468611(0x1d6),'attributes':{'class':['ck',_0x468611(0x1f1),_0x468611(0x1c1),_0x468611(0x1af)],'dir':_0x468611(0x1e7)},'children':[_0x1d12fa,{'tag':_0x468611(0x1d6),'attributes':{'class':[_0x468611(0x1c0)]},'children':[this[_0x468611(0x19d)],this[_0x468611(0x1c4)],this[_0x468611(0x19e)],this[_0x468611(0x1b1)]]}]});}[_0x50d126(0x1cb)](){const _0x512eb9=_0x50d126;this[_0x512eb9(0x1ab)]=!this[_0x512eb9(0x1a4)]&&this[_0x512eb9(0x19f)]&&!this[_0x512eb9(0x1cc)],this[_0x512eb9(0x1a2)]=!this[_0x512eb9(0x1a4)]&&!this[_0x512eb9(0x19f)]&&!this[_0x512eb9(0x1cc)];}[_0x50d126(0x1f5)](){const _0x46d31e=_0x50d126,_0x22a81a=new _0x3f4f00(this[_0x46d31e(0x1b6)],{'filteredView':this[_0x46d31e(0x1dd)],'queryView':{'label':_0x26fa6e(this[_0x46d31e(0x1b6)],_0x46d31e(0x1b7))},'infoView':{'text':{'notFound':{'primary':_0x2f231f=>_0x26fa6e(this[_0x46d31e(0x1b6)],_0x46d31e(0x1eb),_0x2f231f),'secondary':_0x26fa6e(this[_0x46d31e(0x1b6)],_0x46d31e(0x1a5))}}}});return _0x22a81a['on'](_0x46d31e(0x1d4),()=>{const _0x3d3356=_0x46d31e;this[_0x3d3356(0x1b1)][_0x3d3356(0x1cf)][_0x3d3356(0x1d5)](this[_0x3d3356(0x1c4)],0x1);}),_0x22a81a[_0x46d31e(0x1ac)]({'attributes':{'class':[this[_0x46d31e(0x1d7)]['if'](_0x46d31e(0x1ab),_0x46d31e(0x1f4),_0x3d40e4=>!_0x3d40e4)]}}),_0x22a81a;}[_0x50d126(0x1c6)](){const _0x44e403=_0x50d126,_0x394053=new _0x543b60(this[_0x44e403(0x1b6)],_0x2f1045[_0x44e403(0x1df)]);return _0x394053[_0x44e403(0x1ac)]({'attributes':{'class':[this[_0x44e403(0x1d7)]['if'](_0x44e403(0x1a4),_0x44e403(0x1f4),_0x3012bc=>!_0x3012bc)]}}),_0x394053;}[_0x50d126(0x1a0)](){const _0x31623f=_0x50d126,_0x21d872=new _0x48d92d(this[_0x31623f(0x1b6)]),_0x6a2bd7=new _0x1a4bac(this[_0x31623f(0x1b6)]);return _0x6a2bd7[_0x31623f(0x1ca)]({'withText':!0x1,'icon':_0x4fcd8c,'class':_0x31623f(0x1dc)}),_0x6a2bd7[_0x31623f(0x1bd)](_0x31623f(0x1c8))['to'](this,_0x31623f(0x19f),_0x3f710f=>!!_0x3f710f),_0x6a2bd7['on'](_0x31623f(0x1a8),()=>{const _0x5b7589=_0x31623f;this[_0x5b7589(0x1cc)]='';}),_0x21d872[_0x31623f(0x1c5)]({'tag':_0x31623f(0x1d6),'attributes':{'class':['ck',_0x31623f(0x1b5),this[_0x31623f(0x1d7)]['if'](_0x31623f(0x1cc),_0x31623f(0x1f4),_0x2373c5=>!_0x2373c5)]},'children':[{'tag':'p','children':[{'text':this[_0x31623f(0x1d7)]['to'](_0x31623f(0x1cc))}]},_0x6a2bd7]}),_0x21d872;}[_0x50d126(0x1ce)](){const _0x3636f7=_0x50d126,_0x4f6337=new _0x1a4bac(this[_0x3636f7(0x1b6)]);_0x4f6337[_0x3636f7(0x1ca)]({'label':_0x26fa6e(this[_0x3636f7(0x1b6)],_0x3636f7(0x1d8)),'withText':!0x0,'icon':_0x46182d,'class':_0x3636f7(0x1a7)}),_0x4f6337['on'](_0x3636f7(0x1a8),()=>{const _0x17427e=_0x3636f7;this[_0x17427e(0x1b9)](_0x17427e(0x1ba));});const _0x384a0d=new _0x48d92d(this[_0x3636f7(0x1b6)]);return _0x384a0d[_0x3636f7(0x1c5)]({'tag':_0x3636f7(0x1d6),'attributes':{'class':[_0x3636f7(0x1d9),this[_0x3636f7(0x1d7)]['if'](_0x3636f7(0x1a2),_0x3636f7(0x1f4),_0x234683=>!_0x234683)]},'children':[{'tag':'p','attributes':{'class':[_0x3636f7(0x1b2)]},'children':[_0x26fa6e(this[_0x3636f7(0x1b6)],_0x3636f7(0x1b8))]},_0x4f6337]}),_0x384a0d;}[_0x50d126(0x1a3)](_0x2d86a5,_0x58b3e6){const _0x16ac79=_0x50d126,_0x2e2147=[];for(const _0x46050a of _0x2d86a5){const _0x1e15c3=new _0x106232(_0x58b3e6,_0x46050a);_0x1e15c3[_0x16ac79(0x1d2)](..._0xb36d06)['to'](this),_0x2e2147[_0x16ac79(0x1bf)](_0x1e15c3);}return _0x2e2147;}[_0x50d126(0x1b3)](_0x5bd522){const _0xebdc93=_0x50d126,_0x417bb7=this[_0xebdc93(0x1b6)]||'en',_0x3b63ca=[];for(const _0x1006ad of _0x5bd522){const _0x4e0781=this[_0xebdc93(0x1a3)](_0x1006ad[_0xebdc93(0x1db)],_0x417bb7);_0x3b63ca[_0xebdc93(0x1bf)](new _0x17c392(_0x417bb7,{'title':_0x1006ad[_0xebdc93(0x1ec)],'items':_0x4e0781}));}this[_0xebdc93(0x1dd)][_0xebdc93(0x1e4)]=_0x3b63ca,this[_0xebdc93(0x1dd)][_0xebdc93(0x1db)][_0xebdc93(0x1ee)](),this[_0xebdc93(0x1dd)][_0xebdc93(0x1db)][_0xebdc93(0x1f3)](_0x3b63ca),this[_0xebdc93(0x19f)]=_0x5bd522[_0xebdc93(0x1b4)](_0x3e9452=>_0x3e9452[_0xebdc93(0x1db)][_0xebdc93(0x1aa)]>0x0),this[_0xebdc93(0x1a6)]();}[_0x50d126(0x1e3)](_0x330c3e){const _0x1372b4=_0x50d126;for(const _0x29a35f of this[_0x1372b4(0x1dd)][_0x1372b4(0x1e4)]){const _0x25a63d=_0x29a35f[_0x1372b4(0x1e6)](_0x330c3e);if(_0x25a63d){if(_0x29a35f[_0x1372b4(0x1be)](_0x25a63d),0x0===_0x29a35f[_0x1372b4(0x1f0)][_0x1372b4(0x1aa)]){const _0x1d63c7=this[_0x1372b4(0x1dd)][_0x1372b4(0x1e4)][_0x1372b4(0x1d3)](_0x29a35f);-0x1!==_0x1d63c7&&(this[_0x1372b4(0x1dd)][_0x1372b4(0x1e4)][_0x1372b4(0x1d0)](_0x1d63c7,0x1),this[_0x1372b4(0x1dd)][_0x1372b4(0x1db)][_0x1372b4(0x1ae)](_0x29a35f));}this[_0x1372b4(0x19f)]=this[_0x1372b4(0x1dd)][_0x1372b4(0x1e4)][_0x1372b4(0x1aa)]>0x0,this[_0x1372b4(0x1a6)]();break;}}}[_0x50d126(0x1e5)](_0xd9edcc,_0x98f4ed){const _0x2846f6=_0x50d126;for(const _0x426003 of this[_0x2846f6(0x1dd)][_0x2846f6(0x1e4)]){const _0x40a674=_0x426003[_0x2846f6(0x1e6)](_0xd9edcc);if(_0x40a674){_0x40a674[_0x2846f6(0x1f2)](_0x98f4ed);break;}}}[_0x50d126(0x1e9)](_0x2d4648,_0x3ba735,_0xcd11bd){const _0x235cb0=_0x50d126;for(const _0x342f94 of this[_0x235cb0(0x1dd)][_0x235cb0(0x1e4)]){const _0x413bd2=_0x342f94[_0x235cb0(0x1e6)](_0x2d4648);if(_0x413bd2){_0x413bd2[_0x235cb0(0x1e0)](_0x3ba735,_0xcd11bd);break;}}}[_0x50d126(0x1a6)](){const _0x127a76=_0x50d126;if(this[_0x127a76(0x19f)]){const _0x202c5=this[_0x127a76(0x1b1)][_0x127a76(0x1ad)][_0x127a76(0x1c7)]?.[_0x127a76(0x1c9)]?.[_0x127a76(0x1d1)]||'';this[_0x127a76(0x1b1)][_0x127a76(0x1c3)](_0x202c5);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x38f9(){const _0x335aef=['AIConnector','updateConversation','fetchConversations','callSystemReview','append','fix-grammar','CloudServices','FIX_GRAMMAR','/files/','totalCount','upsertAIActionRating','uploadUrl','/files','/reviews/system/','/documents','https://ai.cke-cs.com/v1','uploadFile','deleteWebResource','requires','DELETE','PATCH','/documents/','/conversations?','upsertCustomAIActionRating','catch','plugins','positiveCount','true','fetchConversation','attributes','map','/ratings','status','MAKE_SHORTER','AbortError','statusText','define','make-tone-formal','upsertAIChatRating','continue','/reviews/custom/calls','1823530GYBEIU','uploadDocument','init','/calls','stringify','items','getModels','name','1034223UQZCXb','_getStreamReader','feed','91LpEyRn','read','queryAssistant','deleteConversation','then','1028890OEzWBU','upsertCustomAIReviewRating','get','make-shorter','TRANSLATE','1740180CxBuyE','CONTINUE','ai-request-aborted','/calls/','length','Bearer\x20','abortController','IMPROVE_WRITING','pluginName','limit','group','/reviews/custom/calls/','executeAction','4Zmrmjk','file','token','_sendApiRequest','MAKE_TONE_FORMAL','context','/models/1','callCustomReview','100','getReader','PUT','_apiUrl','/messages/','fetchConversationMessages','MAKE_TONE_CASUAL','Content-Type','_decoder','/conversations/','deleteDocument','executeCustomAction','_handleError','push','456928PyNHfA','182387KVVtVW','json','/actions/custom/calls/','/actions/system/','config','reset','make-tone-casual','improve-writing','translate','toString','keys','startConversation','138056uZVppL','signal','toUpperCase','GET','request','data','search','ai-request-failed','ai-missing-token','text','parse','18JRGuLa','isPremiumPlugin','upsertAIReviewRating','POST','application/json','value','AI_MODEL_DESCRIPTION_','excludeEmpty','decode','/messages','ai.serviceUrl','/web-resources/','releaseLock','make-longer','MAKE_LONGER','deleteFile','/conversations','locale','body','/web-resources','/actions/custom/calls','isOfficialPlugin','fetchDocument','_token'];_0x38f9=function(){return _0x335aef;};return _0x38f9();}const _0xf6fb7a=_0x5247;(function(_0x17bfbc,_0x422adb){const _0x13e9f3=_0x5247,_0x25fc9f=_0x17bfbc();while(!![]){try{const _0x5e80a6=-parseInt(_0x13e9f3(0xe4))/0x1+parseInt(_0x13e9f3(0xe3))/0x2+-parseInt(_0x13e9f3(0xb3))/0x3+parseInt(_0x13e9f3(0xcd))/0x4*(parseInt(_0x13e9f3(0xab))/0x5)+-parseInt(_0x13e9f3(0xc0))/0x6+-parseInt(_0x13e9f3(0xb6))/0x7*(-parseInt(_0x13e9f3(0xf0))/0x8)+-parseInt(_0x13e9f3(0xfb))/0x9*(-parseInt(_0x13e9f3(0xbb))/0xa);if(_0x5e80a6===_0x422adb)break;else _0x25fc9f['push'](_0x25fc9f['shift']());}catch(_0x3bfa62){_0x25fc9f['push'](_0x25fc9f['shift']());}}}(_0x38f9,0x32533));function _0x5247(_0xc98194,_0x6ff410){const _0x38f948=_0x38f9();return _0x5247=function(_0x5247cf,_0x39f7ab){_0x5247cf=_0x5247cf-0x78;let _0x258aa4=_0x38f948[_0x5247cf];return _0x258aa4;},_0x5247(_0xc98194,_0x6ff410);}import{createParser as _0x50347c}from'eventsource-parser';import{ContextPlugin as _0x46adb6}from'ckeditor5/src/core.js';import{CKEditorError as _0x415b3}from'ckeditor5/src/utils.js';import{getTranslation as _0x27c36e}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x3eab6e){const _0x3c0586=_0x5247;_0x3eab6e[_0x3c0586(0xc1)]=_0x3c0586(0xa9),_0x3eab6e[_0x3c0586(0x89)]=_0x3c0586(0x87),_0x3eab6e[_0x3c0586(0xc7)]=_0x3c0586(0xeb),_0x3eab6e[_0x3c0586(0x78)]=_0x3c0586(0x108),_0x3eab6e[_0x3c0586(0xa3)]=_0x3c0586(0xbe),_0x3eab6e[_0x3c0586(0xdb)]=_0x3c0586(0xea),_0x3eab6e[_0x3c0586(0xd1)]=_0x3c0586(0xa7),_0x3eab6e[_0x3c0586(0xbf)]=_0x3c0586(0xec);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x46adb6{[_0xf6fb7a(0xd8)];[_0xf6fb7a(0x81)];[_0xf6fb7a(0xdd)];static get[_0xf6fb7a(0x94)](){const _0x41beb1=_0xf6fb7a;return[_0x41beb1(0x88)];}static get[_0xf6fb7a(0xc8)](){const _0x2f1105=_0xf6fb7a;return _0x2f1105(0x82);}static get[_0xf6fb7a(0x7f)](){return!0x0;}static get[_0xf6fb7a(0xfc)](){return!0x0;}constructor(_0x264458){const _0x369808=_0xf6fb7a;super(_0x264458),this[_0x369808(0xd2)][_0x369808(0xe8)][_0x369808(0xa6)](_0x369808(0x105),_0x369808(0x91)),this[_0x369808(0xd8)]=this[_0x369808(0xd2)][_0x369808(0xe8)][_0x369808(0xbd)](_0x369808(0x105)),this[_0x369808(0x81)]=null,this[_0x369808(0xdd)]=new TextDecoder();}[_0xf6fb7a(0xad)](){const _0x4c67b9=_0xf6fb7a,_0x1ba4fa=this[_0x4c67b9(0xd2)][_0x4c67b9(0x9b)][_0x4c67b9(0xbd)](_0x4c67b9(0x88));if(!_0x1ba4fa[_0x4c67b9(0xcf)])throw new _0x415b3(_0x4c67b9(0xf8),this);this[_0x4c67b9(0x81)]=_0x1ba4fa[_0x4c67b9(0xcf)];}[_0xf6fb7a(0xef)](_0x23b98b,_0x5ca2c1){const _0x542853=_0xf6fb7a,_0x2a6802=this[_0x542853(0xd0)](_0x542853(0x7a),_0x542853(0xfe),{'id':_0x23b98b,'group':_0x5ca2c1});return{'getConversation':async()=>(await _0x2a6802[_0x542853(0xf4)])[_0x542853(0xe5)](),'abortController':_0x2a6802[_0x542853(0xc6)]};}[_0xf6fb7a(0xb8)]({message:_0x2c050c,conversationId:_0x122b6b,parts:_0x1b6bf3,capabilities:_0x20d1d1,model:_0x140115,quickActionData:_0x4bf15b}){const _0x2c451b=_0xf6fb7a,_0x251247={..._0x4bf15b&&{'quickActionData':_0x4bf15b}},_0x64f5b3={'prompt':_0x2c050c,'content':_0x1b6bf3,'model':_0x140115,..._0x20d1d1&&{'capabilities':_0x20d1d1},...Object[_0x2c451b(0xee)](_0x251247)[_0x2c451b(0xc4)]>0x0&&{'attributes':_0x251247}},_0x3a2c75=this[_0x2c451b(0xd0)](_0x2c451b(0xde)+_0x122b6b+_0x2c451b(0x104),_0x2c451b(0xfe),_0x64f5b3);return{'getStream':async()=>{const _0x5f4f4e=_0x2c451b,_0x3f0667=(await _0x3a2c75[_0x5f4f4e(0xf4)])[_0x5f4f4e(0x7c)];return this[_0x5f4f4e(0xb4)](_0x3f0667);},'abortController':_0x3a2c75[_0x2c451b(0xc6)]};}[_0xf6fb7a(0xe0)]({content:_0x2221e3,message:_0x3960a3,model:_0x205900,outputFormat:_0x362c4f}){const _0x51164f=_0xf6fb7a,_0x5c3b2f={'content':[{'type':_0x51164f(0xf9),'content':_0x2221e3}],'prompt':_0x3960a3,'model':_0x205900,'outputFormat':_0x362c4f},_0x2761b9=this[_0x51164f(0xd0)](_0x51164f(0x7e),_0x51164f(0xfe),_0x5c3b2f);return{'getStream':async()=>{const _0x4e4226=_0x51164f,_0x441c8b=(await _0x2761b9[_0x4e4226(0xf4)])[_0x4e4226(0x7c)];return this[_0x4e4226(0xb4)](_0x441c8b);},'abortController':_0x2761b9[_0x51164f(0xc6)]};}[_0xf6fb7a(0xcc)]({actionName:_0x4cc0d4,content:_0x1434bf,args:_0x43a0b4}){const _0x484d83=_0xf6fb7a,_0x4221f0={'content':[{'type':_0x484d83(0xf9),'content':_0x1434bf}],'args':_0x43a0b4},_0x3fac86=this[_0x484d83(0xd0)](_0x484d83(0xe7)+_0x4cc0d4+_0x484d83(0xae),_0x484d83(0xfe),_0x4221f0);return{'getStream':async()=>{const _0x20854f=_0x484d83,_0x2cf319=(await _0x3fac86[_0x20854f(0xf4)])[_0x20854f(0x7c)];return this[_0x20854f(0xb4)](_0x2cf319);},'abortController':_0x3fac86[_0x484d83(0xc6)]};}[_0xf6fb7a(0x92)](_0xa65dbf,_0x455ca8,_0x498212){const _0x3ad3ad=_0xf6fb7a,_0x57c60e=new FormData();_0x57c60e[_0x3ad3ad(0x86)](_0x3ad3ad(0xce),_0x455ca8,_0x455ca8[_0x3ad3ad(0xb2)]),_0x498212&&_0x57c60e[_0x3ad3ad(0x86)](_0x3ad3ad(0x9f),JSON[_0x3ad3ad(0xaf)](_0x498212));const _0x4459ca=this[_0x3ad3ad(0xd0)](_0x3ad3ad(0xde)+_0xa65dbf+_0x3ad3ad(0x8e),_0x3ad3ad(0xfe),_0x57c60e);return{'getId':async()=>(await _0x4459ca[_0x3ad3ad(0xf4)])[_0x3ad3ad(0xe5)](),'abortController':_0x4459ca[_0x3ad3ad(0xc6)]};}[_0xf6fb7a(0x80)](_0x11aad3,_0x21153b){const _0x1a7f7c=_0xf6fb7a,_0x4e8c28=this[_0x1a7f7c(0xd0)](_0x1a7f7c(0xde)+_0x11aad3+_0x1a7f7c(0x97)+_0x21153b,_0x1a7f7c(0xf3));return{'getDocument':async()=>(await _0x4e8c28[_0x1a7f7c(0xf4)])[_0x1a7f7c(0xe5)](),'abortController':_0x4e8c28[_0x1a7f7c(0xc6)]};}[_0xf6fb7a(0xac)](_0x4c20a7,_0x3522fe,_0x1cd7aa){const _0x2ebf8a=_0xf6fb7a,_0x33a269={'content':_0x3522fe};_0x1cd7aa&&(_0x33a269[_0x2ebf8a(0x9f)]=_0x1cd7aa);const _0x408923=this[_0x2ebf8a(0xd0)](_0x2ebf8a(0xde)+_0x4c20a7+_0x2ebf8a(0x90),_0x2ebf8a(0xfe),_0x33a269);return{'getId':async()=>(await _0x408923[_0x2ebf8a(0xf4)])[_0x2ebf8a(0xe5)](),'abortController':_0x408923[_0x2ebf8a(0xc6)]};}[_0xf6fb7a(0x84)](_0x19c41b,_0x540c4b){const _0x3558df=_0xf6fb7a,_0x35c39d=new URLSearchParams();_0x35c39d[_0x3558df(0x86)](_0x3558df(0x102),_0x3558df(0x9d)),_0x35c39d[_0x3558df(0x86)](_0x3558df(0xc9),_0x3558df(0xd5)),_0x35c39d[_0x3558df(0x86)](_0x3558df(0xca),_0x19c41b),_0x540c4b&&_0x35c39d[_0x3558df(0x86)](_0x3558df(0xf6),_0x540c4b);const _0x3d187f=this[_0x3558df(0xd0)](_0x3558df(0x98)+_0x35c39d[_0x3558df(0xed)](),_0x3558df(0xf3));return{'getConversations':async()=>{const _0x47858c=_0x3558df,_0x2121f2=await _0x3d187f[_0x47858c(0xf4)];return(await _0x2121f2[_0x47858c(0xe5)]())[_0x47858c(0xb0)];},'abortController':_0x3d187f[_0x3558df(0xc6)]};}[_0xf6fb7a(0xb9)](_0x18a058){const _0xe6358d=_0xf6fb7a,_0x182641=this[_0xe6358d(0xd0)](_0xe6358d(0xde)+_0x18a058,_0xe6358d(0x95));return{'execute':async()=>{const _0x1fd6a6=_0xe6358d;await _0x182641[_0x1fd6a6(0xf4)];},'abortController':_0x182641[_0xe6358d(0xc6)]};}[_0xf6fb7a(0x83)](_0x1c48bb,_0x38aaf0){const _0x11cdeb=_0xf6fb7a,_0x567139=this[_0x11cdeb(0xd0)](_0x11cdeb(0xde)+_0x1c48bb,_0x11cdeb(0x96),_0x38aaf0);return{'getResult':async()=>(await _0x567139[_0x11cdeb(0xf4)],_0x38aaf0),'abortController':_0x567139[_0x11cdeb(0xc6)]};}[_0xf6fb7a(0x9e)](_0x3dd5ab){const _0x49df94=_0xf6fb7a,_0x5381d9=this[_0x49df94(0xd0)](_0x49df94(0xde)+_0x3dd5ab,_0x49df94(0xf3));return{'getConversation':async()=>(await _0x5381d9[_0x49df94(0xf4)])[_0x49df94(0xe5)](),'abortController':_0x5381d9[_0x49df94(0xc6)]};}[_0xf6fb7a(0xda)](_0x35f183){const _0x386637=_0xf6fb7a,_0x738928=this[_0x386637(0xd0)](_0x386637(0xde)+_0x35f183+_0x386637(0x104),_0x386637(0xf3));return{'getMessages':async()=>{const _0x455b43=_0x386637,_0x42bda7=await _0x738928[_0x455b43(0xf4)];return(await _0x42bda7[_0x455b43(0xe5)]())[_0x455b43(0xb0)];},'abortController':_0x738928[_0x386637(0xc6)]};}[_0xf6fb7a(0x8d)](_0x6bf3e3,_0xca3d8a,_0xd0874){const _0x308fbc=_0xf6fb7a,_0x225e72=this[_0x308fbc(0xd0)](_0x308fbc(0xde)+_0x6bf3e3+_0x308fbc(0x7d),_0x308fbc(0xfe),{'url':_0xca3d8a,'attributes':_0xd0874});return{'getId':async()=>(await _0x225e72[_0x308fbc(0xf4)])[_0x308fbc(0xe5)](),'abortController':_0x225e72[_0x308fbc(0xc6)]};}[_0xf6fb7a(0xb1)](){const _0x276210=_0xf6fb7a,_0x5b37c6=this[_0x276210(0xd0)](_0x276210(0xd3),_0x276210(0xf3));return{'list':async()=>{const _0x513051=_0x276210,_0x456383=await(await _0x5b37c6[_0x513051(0xf4)])[_0x513051(0xe5)](),_0xd52cf2=_0x456383[_0x513051(0xb0)][_0x513051(0xa0)](_0x2f3c73=>({..._0x2f3c73,'description':_0x27c36e(this[_0x513051(0xd2)][_0x513051(0x7b)],_0x513051(0x101)+_0x2f3c73['id'][_0x513051(0xf2)]())}));return{..._0x456383,'items':_0xd52cf2};},'abortController':_0x5b37c6[_0x276210(0xc6)]};}[_0xf6fb7a(0x79)](_0xc30dbe,_0x180c5e){const _0x3582b4=_0xf6fb7a,_0x1af9cd=this[_0x3582b4(0xd0)](_0x3582b4(0xde)+_0xc30dbe+_0x3582b4(0x8a)+_0x180c5e,_0x3582b4(0x95));return{'execute':async()=>{const _0x131030=_0x3582b4;await _0x1af9cd[_0x131030(0xf4)];},'abortController':_0x1af9cd[_0x3582b4(0xc6)]};}[_0xf6fb7a(0xdf)](_0x5badd4,_0x4c98ec){const _0xd6f7aa=_0xf6fb7a,_0x1a874a=this[_0xd6f7aa(0xd0)](_0xd6f7aa(0xde)+_0x5badd4+_0xd6f7aa(0x97)+_0x4c98ec,_0xd6f7aa(0x95));return{'execute':async()=>{const _0x117395=_0xd6f7aa;await _0x1a874a[_0x117395(0xf4)];},'abortController':_0x1a874a[_0xd6f7aa(0xc6)]};}[_0xf6fb7a(0x93)](_0x336a8e,_0x29208e){const _0x577ddd=_0xf6fb7a,_0x29fea7=this[_0x577ddd(0xd0)](_0x577ddd(0xde)+_0x336a8e+_0x577ddd(0x106)+_0x29208e,_0x577ddd(0x95));return{'execute':async()=>{const _0x7548a=_0x577ddd;await _0x29fea7[_0x7548a(0xf4)];},'abortController':_0x29fea7[_0x577ddd(0xc6)]};}[_0xf6fb7a(0x85)]({reviewName:_0x4d0023,content:_0x575f02,args:_0x1de26b}){const _0x491cb8=_0xf6fb7a,_0x558833=this[_0x491cb8(0xd0)](_0x491cb8(0x8f)+_0x4d0023+_0x491cb8(0xae),_0x491cb8(0xfe),{'content':[{'type':_0x491cb8(0xf9),'content':_0x575f02}],'args':_0x1de26b});return{'getStream':async()=>{const _0x250b99=_0x491cb8,_0x198f37=(await _0x558833[_0x250b99(0xf4)])[_0x250b99(0x7c)];return this[_0x250b99(0xb4)](_0x198f37);},'abortController':_0x558833[_0x491cb8(0xc6)]};}[_0xf6fb7a(0xd4)]({content:_0xc936b5,prompt:_0xbbaa49,model:_0x4c87af}){const _0x1b82a5=_0xf6fb7a,_0x53fac1=this[_0x1b82a5(0xd0)](_0x1b82a5(0xaa),_0x1b82a5(0xfe),{'content':[{'type':_0x1b82a5(0xf9),'content':_0xc936b5}],'prompt':_0xbbaa49,'model':_0x4c87af});return{'getStream':async()=>{const _0x2df1df=_0x1b82a5,_0x402c07=(await _0x53fac1[_0x2df1df(0xf4)])[_0x2df1df(0x7c)];return this[_0x2df1df(0xb4)](_0x402c07);},'abortController':_0x53fac1[_0x1b82a5(0xc6)]};}[_0xf6fb7a(0xa8)](_0x2c4cd2,_0x5a8b67,_0x47eee4){const _0x33c089=_0xf6fb7a,_0x36a43b=this[_0x33c089(0xd0)](_0x33c089(0xde)+_0x2c4cd2+_0x33c089(0xd9)+_0x5a8b67+_0x33c089(0xa1),_0x33c089(0xd7),{'positiveCount':_0x47eee4[_0x33c089(0x9c)],'totalCount':_0x47eee4[_0x33c089(0x8b)]});return{'execute':async()=>{const _0x25008b=_0x33c089;await _0x36a43b[_0x25008b(0xf4)];},'abortController':_0x36a43b[_0x33c089(0xc6)]};}[_0xf6fb7a(0x8c)](_0x4f01a4,_0x20621b,_0x45205a){const _0x273e73=_0xf6fb7a,_0x2927a4=this[_0x273e73(0xd0)](_0x273e73(0xe7)+_0x4f01a4+_0x273e73(0xc3)+_0x20621b+_0x273e73(0xa1),_0x273e73(0xd7),{'positiveCount':_0x45205a[_0x273e73(0x9c)],'totalCount':_0x45205a[_0x273e73(0x8b)]});return{'execute':async()=>{const _0x16f105=_0x273e73;await _0x2927a4[_0x16f105(0xf4)];},'abortController':_0x2927a4[_0x273e73(0xc6)]};}[_0xf6fb7a(0x99)](_0x587d76,_0x359584){const _0x41682d=_0xf6fb7a,_0x41e9de=this[_0x41682d(0xd0)](_0x41682d(0xe6)+_0x587d76+_0x41682d(0xa1),_0x41682d(0xd7),{'positiveCount':_0x359584[_0x41682d(0x9c)],'totalCount':_0x359584[_0x41682d(0x8b)]});return{'execute':async()=>{const _0x457c11=_0x41682d;await _0x41e9de[_0x457c11(0xf4)];},'abortController':_0x41e9de[_0x41682d(0xc6)]};}[_0xf6fb7a(0xfd)](_0x572ea3,_0x44400d,_0x43f56a,_0x27ebfd){const _0x30b514=_0xf6fb7a,_0x284fd6=this[_0x30b514(0xd0)](_0x30b514(0x8f)+_0x572ea3+_0x30b514(0xc3)+_0x44400d+_0x30b514(0xa1),_0x30b514(0xd7),{'positiveCount':_0x43f56a[_0x30b514(0x9c)],'totalCount':_0x43f56a[_0x30b514(0x8b)],'dataId':_0x27ebfd});return{'execute':async()=>{const _0x5beaee=_0x30b514;await _0x284fd6[_0x5beaee(0xf4)];},'abortController':_0x284fd6[_0x30b514(0xc6)]};}[_0xf6fb7a(0xbc)](_0x181ad2,_0x2715fd,_0x258514){const _0x2aeb7a=_0xf6fb7a,_0xa40b5a=this[_0x2aeb7a(0xd0)](_0x2aeb7a(0xcb)+_0x181ad2+_0x2aeb7a(0xa1),_0x2aeb7a(0xd7),{'positiveCount':_0x2715fd[_0x2aeb7a(0x9c)],'totalCount':_0x2715fd[_0x2aeb7a(0x8b)],'dataId':_0x258514});return{'execute':async()=>{const _0x5f134c=_0x2aeb7a;await _0xa40b5a[_0x5f134c(0xf4)];},'abortController':_0xa40b5a[_0x2aeb7a(0xc6)]};}[_0xf6fb7a(0xd0)](_0x11fbc8,_0x1c90f9,_0xb0f6b0){const _0x4d2c54=_0xf6fb7a,_0x920c38=new AbortController(),_0x438007=_0xb0f6b0 instanceof FormData,_0x48881a={'Authorization':_0x4d2c54(0xc5)+this[_0x4d2c54(0x81)]?.[_0x4d2c54(0x100)]};_0xb0f6b0&&!_0x438007&&(_0x48881a[_0x4d2c54(0xdc)]=_0x4d2c54(0xff));const _0x4eda07={'method':_0x1c90f9,'headers':_0x48881a,'signal':_0x920c38[_0x4d2c54(0xf1)]};return _0xb0f6b0&&(_0x4eda07[_0x4d2c54(0x7c)]=_0x438007?_0xb0f6b0:JSON[_0x4d2c54(0xaf)](_0xb0f6b0)),{'request':fetch(''+this[_0x4d2c54(0xd8)]+_0x11fbc8,_0x4eda07)[_0x4d2c54(0x9a)](_0x432d49=>{const _0xce52a5=_0x4d2c54;this[_0xce52a5(0xe1)](_0x432d49);})[_0x4d2c54(0xba)](_0x2e2ef5=>{const _0x2dc88c=_0x4d2c54;if(!_0x2e2ef5['ok'])throw new _0x415b3(_0x2dc88c(0xf7),this,{'url':this[_0x2dc88c(0xd8)],'path':_0x11fbc8,'method':_0x1c90f9,'body':_0xb0f6b0,'status':(_0x2e2ef5||{})[_0x2dc88c(0xa2)],'statusText':(_0x2e2ef5||{})[_0x2dc88c(0xa5)]});return _0x2e2ef5;}),'abortController':_0x920c38};}async*[_0xf6fb7a(0xb4)](_0x215e26){const _0x28bad9=_0xf6fb7a,_0x1813b2=[],_0x429eb9=_0x215e26[_0x28bad9(0xd6)](),_0x576849=_0x50347c({'onError':_0x4a3460=>{const _0x3bd0a7=_0x28bad9;this[_0x3bd0a7(0xe1)](_0x4a3460);},'onEvent':_0x5b3ac7=>{const _0x5a758f=_0x28bad9;_0x5b3ac7[_0x5a758f(0xf5)]=JSON[_0x5a758f(0xfa)](_0x5b3ac7[_0x5a758f(0xf5)]),_0x1813b2[_0x5a758f(0xe2)](_0x5b3ac7);}});try{let _0x1b4702=!0x1;for(;!_0x1b4702;){const {done:_0x2765b9,value:_0x2c090c}=await _0x429eb9[_0x28bad9(0xb7)]();_0x2765b9&&(_0x1b4702=!0x0),_0x576849[_0x28bad9(0xb5)](this[_0x28bad9(0xdd)][_0x28bad9(0x103)](_0x2c090c,{'stream':!0x0})),yield*_0x1813b2,_0x1813b2[_0x28bad9(0xc4)]=0x0;}}catch(_0x508b51){this[_0x28bad9(0xe1)](_0x508b51);}finally{_0x429eb9[_0x28bad9(0x107)](),_0x576849[_0x28bad9(0xe9)]();}}[_0xf6fb7a(0xe1)](_0x1af9a1){const _0x1fe0ad=_0xf6fb7a;if(_0x1af9a1 instanceof _0x415b3)throw _0x1af9a1;if(_0x1af9a1 instanceof Error&&_0x1fe0ad(0xa4)===_0x1af9a1[_0x1fe0ad(0xb2)])throw new _0x415b3(_0x1fe0ad(0xc2),this,{'originalError':_0x1af9a1});throw new _0x415b3(_0x1fe0ad(0xf7),this,{'originalError':_0x1af9a1});}}
|
|
23
|
+
const _0x2698b4=_0x48c7;(function(_0x51c35c,_0x4e42fd){const _0x4bb3d5=_0x48c7,_0x1dcfbd=_0x51c35c();while(!![]){try{const _0x1dd364=-parseInt(_0x4bb3d5(0x18b))/0x1*(parseInt(_0x4bb3d5(0x1d5))/0x2)+parseInt(_0x4bb3d5(0x1bc))/0x3*(-parseInt(_0x4bb3d5(0x182))/0x4)+parseInt(_0x4bb3d5(0x1eb))/0x5+-parseInt(_0x4bb3d5(0x1cd))/0x6*(-parseInt(_0x4bb3d5(0x1f2))/0x7)+parseInt(_0x4bb3d5(0x1fd))/0x8*(-parseInt(_0x4bb3d5(0x18e))/0x9)+parseInt(_0x4bb3d5(0x19c))/0xa+-parseInt(_0x4bb3d5(0x1d8))/0xb*(-parseInt(_0x4bb3d5(0x19a))/0xc);if(_0x1dd364===_0x4e42fd)break;else _0x1dcfbd['push'](_0x1dcfbd['shift']());}catch(_0x2657b8){_0x1dcfbd['push'](_0x1dcfbd['shift']());}}}(_0x4e11,0x7ae62));import{createParser as _0x267904}from'eventsource-parser';import{ContextPlugin as _0x2d2561}from'ckeditor5/src/core.js';import{CKEditorError as _0x5665af}from'ckeditor5/src/utils.js';import{getTranslation as _0x3e794e}from'./utils/common-translations.js';export var AIActionsNames;function _0x48c7(_0x48d4f8,_0x5b545e){const _0x4e11a6=_0x4e11();return _0x48c7=function(_0x48c74e,_0x410e34){_0x48c74e=_0x48c74e-0x177;let _0x48cd84=_0x4e11a6[_0x48c74e];return _0x48cd84;},_0x48c7(_0x48d4f8,_0x5b545e);}!function(_0x22f145){const _0x31395f=_0x48c7;_0x22f145[_0x31395f(0x1a3)]=_0x31395f(0x189),_0x22f145[_0x31395f(0x1a0)]=_0x31395f(0x1fc),_0x22f145[_0x31395f(0x1bd)]=_0x31395f(0x195),_0x22f145[_0x31395f(0x194)]=_0x31395f(0x1be),_0x22f145[_0x31395f(0x1c8)]=_0x31395f(0x1da),_0x22f145[_0x31395f(0x17e)]=_0x31395f(0x204),_0x22f145[_0x31395f(0x19b)]=_0x31395f(0x1cf),_0x22f145[_0x31395f(0x18f)]=_0x31395f(0x1d0);}(AIActionsNames||(AIActionsNames={}));function _0x4e11(){const _0x2a4f27=['5699118IneUVk','upsertAIActionRating','make-tone-formal','translate','init','deleteConversation','reset','statusText','2UdtdGv','map','request','2371083cQJPEG','/messages','make-shorter','uploadUrl','_handleError','/calls','/ratings','updateConversation','/messages/','push','AbortError','token','plugins','positiveCount','search','/actions/system/','AI_MODEL_DESCRIPTION_','/reviews/system/','Content-Type','2044675yoJZRR','parse','https://ai.cke-cs.com/v1','fetchConversation','100','_decoder','fetchConversations','7VVGjfX','startConversation','/web-resources','config','attributes','/reviews/custom/calls/','getReader','/files/','ai-missing-token','limit','fix-grammar','90680XTEXLi','decode','PUT','GET','uploadFile','data','upsertCustomAIReviewRating','make-tone-casual','executeAction','/actions/custom/calls/','text','/calls/','AIConnector','callSystemReview','keys','excludeEmpty','_apiUrl','queryAssistant','/models/1','deleteWebResource','MAKE_TONE_CASUAL','toString','items','deleteDocument','2830924hzWGgn','/documents/','define','then','/conversations?','get','fetchConversationMessages','continue','_sendApiRequest','26637XWiVmw','executeCustomAction','/documents','432FiocWw','TRANSLATE','append','length','CloudServices','feed','MAKE_LONGER','improve-writing','PATCH','totalCount','upsertAIChatRating','requires','12qmFgcM','MAKE_TONE_FORMAL','2075010NISfOJ','pluginName','application/json','isPremiumPlugin','FIX_GRAMMAR','json','/files','CONTINUE','_token','getModels','isOfficialPlugin','upsertCustomAIActionRating','toUpperCase','/web-resources/','group','uploadDocument','status','_getStreamReader','catch','signal','true','/reviews/custom/calls','/conversations/','upsertAIReviewRating','locale','POST','name','body','/conversations','abortController','file','ai-request-failed','3OnoDEL','IMPROVE_WRITING','make-longer','Bearer\x20','read','ai-request-aborted','DELETE','value','/actions/custom/calls','context','fetchDocument','releaseLock','MAKE_SHORTER','ai.serviceUrl','deleteFile','stringify','callCustomReview'];_0x4e11=function(){return _0x2a4f27;};return _0x4e11();}export class AIConnector extends _0x2d2561{[_0x2698b4(0x17a)];[_0x2698b4(0x1a4)];[_0x2698b4(0x1f0)];static get[_0x2698b4(0x199)](){const _0x3a9d79=_0x2698b4;return[_0x3a9d79(0x192)];}static get[_0x2698b4(0x19d)](){const _0x53ff64=_0x2698b4;return _0x53ff64(0x209);}static get[_0x2698b4(0x1a6)](){return!0x0;}static get[_0x2698b4(0x19f)](){return!0x0;}constructor(_0x59939c){const _0x359944=_0x2698b4;super(_0x59939c),this[_0x359944(0x1c5)][_0x359944(0x1f5)][_0x359944(0x184)](_0x359944(0x1c9),_0x359944(0x1ed)),this[_0x359944(0x17a)]=this[_0x359944(0x1c5)][_0x359944(0x1f5)][_0x359944(0x187)](_0x359944(0x1c9)),this[_0x359944(0x1a4)]=null,this[_0x359944(0x1f0)]=new TextDecoder();}[_0x2698b4(0x1d1)](){const _0x1f9714=_0x2698b4,_0x51feca=this[_0x1f9714(0x1c5)][_0x1f9714(0x1e4)][_0x1f9714(0x187)](_0x1f9714(0x192));if(!_0x51feca[_0x1f9714(0x1e3)])throw new _0x5665af(_0x1f9714(0x1fa),this);this[_0x1f9714(0x1a4)]=_0x51feca[_0x1f9714(0x1e3)];}[_0x2698b4(0x1f3)](_0xf7b470,_0x15f357){const _0x913819=_0x2698b4,_0x4d52b3=this[_0x913819(0x18a)](_0x913819(0x1b8),_0x913819(0x1b5),{'id':_0xf7b470,'group':_0x15f357});return{'getConversation':async()=>(await _0x4d52b3[_0x913819(0x1d7)])[_0x913819(0x1a1)](),'abortController':_0x4d52b3[_0x913819(0x1b9)]};}[_0x2698b4(0x17b)]({message:_0x1e49e0,conversationId:_0x1be237,parts:_0x2664f8,capabilities:_0x35bd38,model:_0x39678d,quickActionData:_0x3c4351}){const _0x1e85c7=_0x2698b4,_0x5d722a={..._0x3c4351&&{'quickActionData':_0x3c4351}},_0x4bf759={'prompt':_0x1e49e0,'content':_0x2664f8,'model':_0x39678d,..._0x35bd38&&{'capabilities':_0x35bd38},...Object[_0x1e85c7(0x178)](_0x5d722a)[_0x1e85c7(0x191)]>0x0&&{'attributes':_0x5d722a}},_0x55bf22=this[_0x1e85c7(0x18a)](_0x1e85c7(0x1b2)+_0x1be237+_0x1e85c7(0x1d9),_0x1e85c7(0x1b5),_0x4bf759);return{'getStream':async()=>{const _0x5a08f1=_0x1e85c7,_0x370bf2=(await _0x55bf22[_0x5a08f1(0x1d7)])[_0x5a08f1(0x1b7)];return this[_0x5a08f1(0x1ad)](_0x370bf2);},'abortController':_0x55bf22[_0x1e85c7(0x1b9)]};}[_0x2698b4(0x18c)]({content:_0x3041c0,message:_0x2aaf52,model:_0x32e760,outputFormat:_0x526e66}){const _0x3f3ecd=_0x2698b4,_0xb5ec49={'content':[{'type':_0x3f3ecd(0x207),'content':_0x3041c0}],'prompt':_0x2aaf52,'model':_0x32e760,'outputFormat':_0x526e66},_0x2f36e7=this[_0x3f3ecd(0x18a)](_0x3f3ecd(0x1c4),_0x3f3ecd(0x1b5),_0xb5ec49);return{'getStream':async()=>{const _0x5d9c57=_0x3f3ecd,_0x24e572=(await _0x2f36e7[_0x5d9c57(0x1d7)])[_0x5d9c57(0x1b7)];return this[_0x5d9c57(0x1ad)](_0x24e572);},'abortController':_0x2f36e7[_0x3f3ecd(0x1b9)]};}[_0x2698b4(0x205)]({actionName:_0x3fe1ba,content:_0x278f00,args:_0x301b2a}){const _0x668ba1=_0x2698b4,_0x149eb5={'content':[{'type':_0x668ba1(0x207),'content':_0x278f00}],'args':_0x301b2a},_0x276ab6=this[_0x668ba1(0x18a)](_0x668ba1(0x1e7)+_0x3fe1ba+_0x668ba1(0x1dd),_0x668ba1(0x1b5),_0x149eb5);return{'getStream':async()=>{const _0x454882=_0x668ba1,_0x36c03f=(await _0x276ab6[_0x454882(0x1d7)])[_0x454882(0x1b7)];return this[_0x454882(0x1ad)](_0x36c03f);},'abortController':_0x276ab6[_0x668ba1(0x1b9)]};}[_0x2698b4(0x201)](_0x2edee9,_0x2ee1e7,_0x6eaf15){const _0x2791ff=_0x2698b4,_0x54e00e=new FormData();_0x54e00e[_0x2791ff(0x190)](_0x2791ff(0x1ba),_0x2ee1e7,_0x2ee1e7[_0x2791ff(0x1b6)]),_0x6eaf15&&_0x54e00e[_0x2791ff(0x190)](_0x2791ff(0x1f6),JSON[_0x2791ff(0x1cb)](_0x6eaf15));const _0x3f193a=this[_0x2791ff(0x18a)](_0x2791ff(0x1b2)+_0x2edee9+_0x2791ff(0x1a2),_0x2791ff(0x1b5),_0x54e00e);return{'getId':async()=>(await _0x3f193a[_0x2791ff(0x1d7)])[_0x2791ff(0x1a1)](),'abortController':_0x3f193a[_0x2791ff(0x1b9)]};}[_0x2698b4(0x1c6)](_0x401c70,_0x1c1a25){const _0x46aca3=_0x2698b4,_0x3dcfb1=this[_0x46aca3(0x18a)](_0x46aca3(0x1b2)+_0x401c70+_0x46aca3(0x183)+_0x1c1a25,_0x46aca3(0x200));return{'getDocument':async()=>(await _0x3dcfb1[_0x46aca3(0x1d7)])[_0x46aca3(0x1a1)](),'abortController':_0x3dcfb1[_0x46aca3(0x1b9)]};}[_0x2698b4(0x1ab)](_0xb84032,_0x15c66e,_0x139c01){const _0xa635a=_0x2698b4,_0x58cb1d={'content':_0x15c66e};_0x139c01&&(_0x58cb1d[_0xa635a(0x1f6)]=_0x139c01);const _0x5b4eef=this[_0xa635a(0x18a)](_0xa635a(0x1b2)+_0xb84032+_0xa635a(0x18d),_0xa635a(0x1b5),_0x58cb1d);return{'getId':async()=>(await _0x5b4eef[_0xa635a(0x1d7)])[_0xa635a(0x1a1)](),'abortController':_0x5b4eef[_0xa635a(0x1b9)]};}[_0x2698b4(0x1f1)](_0x52fe7e,_0x35ea91){const _0x30c56d=_0x2698b4,_0x39666c=new URLSearchParams();_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x179),_0x30c56d(0x1b0)),_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x1fb),_0x30c56d(0x1ef)),_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x1aa),_0x52fe7e),_0x35ea91&&_0x39666c[_0x30c56d(0x190)](_0x30c56d(0x1e6),_0x35ea91);const _0x1f6e15=this[_0x30c56d(0x18a)](_0x30c56d(0x186)+_0x39666c[_0x30c56d(0x17f)](),_0x30c56d(0x200));return{'getConversations':async()=>{const _0x24b1d8=_0x30c56d,_0x4769a0=await _0x1f6e15[_0x24b1d8(0x1d7)];return(await _0x4769a0[_0x24b1d8(0x1a1)]())[_0x24b1d8(0x180)];},'abortController':_0x1f6e15[_0x30c56d(0x1b9)]};}[_0x2698b4(0x1d2)](_0x1154f2){const _0x2a47f0=_0x2698b4,_0x175a0f=this[_0x2a47f0(0x18a)](_0x2a47f0(0x1b2)+_0x1154f2,_0x2a47f0(0x1c2));return{'execute':async()=>{const _0x5239cb=_0x2a47f0;await _0x175a0f[_0x5239cb(0x1d7)];},'abortController':_0x175a0f[_0x2a47f0(0x1b9)]};}[_0x2698b4(0x1df)](_0x46f44f,_0x215afe){const _0x40f5d9=_0x2698b4,_0x18ac3a=this[_0x40f5d9(0x18a)](_0x40f5d9(0x1b2)+_0x46f44f,_0x40f5d9(0x196),_0x215afe);return{'getResult':async()=>(await _0x18ac3a[_0x40f5d9(0x1d7)],_0x215afe),'abortController':_0x18ac3a[_0x40f5d9(0x1b9)]};}[_0x2698b4(0x1ee)](_0x4d7c59){const _0x4c2e3d=_0x2698b4,_0x1c5453=this[_0x4c2e3d(0x18a)](_0x4c2e3d(0x1b2)+_0x4d7c59,_0x4c2e3d(0x200));return{'getConversation':async()=>(await _0x1c5453[_0x4c2e3d(0x1d7)])[_0x4c2e3d(0x1a1)](),'abortController':_0x1c5453[_0x4c2e3d(0x1b9)]};}[_0x2698b4(0x188)](_0x5deaab){const _0x4ca5d2=_0x2698b4,_0x3c2406=this[_0x4ca5d2(0x18a)](_0x4ca5d2(0x1b2)+_0x5deaab+_0x4ca5d2(0x1d9),_0x4ca5d2(0x200));return{'getMessages':async()=>{const _0x23a6f1=_0x4ca5d2,_0x5820ec=await _0x3c2406[_0x23a6f1(0x1d7)];return(await _0x5820ec[_0x23a6f1(0x1a1)]())[_0x23a6f1(0x180)];},'abortController':_0x3c2406[_0x4ca5d2(0x1b9)]};}[_0x2698b4(0x1db)](_0x573ebf,_0x142791,_0x40f2e3){const _0x5c4756=_0x2698b4,_0x4b8206=this[_0x5c4756(0x18a)](_0x5c4756(0x1b2)+_0x573ebf+_0x5c4756(0x1f4),_0x5c4756(0x1b5),{'url':_0x142791,'attributes':_0x40f2e3});return{'getId':async()=>(await _0x4b8206[_0x5c4756(0x1d7)])[_0x5c4756(0x1a1)](),'abortController':_0x4b8206[_0x5c4756(0x1b9)]};}[_0x2698b4(0x1a5)](){const _0x17cb46=_0x2698b4,_0x1e5e69=this[_0x17cb46(0x18a)](_0x17cb46(0x17c),_0x17cb46(0x200));return{'list':async()=>{const _0x545483=_0x17cb46,_0x34d99e=await(await _0x1e5e69[_0x545483(0x1d7)])[_0x545483(0x1a1)](),_0x686371=_0x34d99e[_0x545483(0x180)][_0x545483(0x1d6)](_0x10a4ae=>({..._0x10a4ae,'description':_0x3e794e(this[_0x545483(0x1c5)][_0x545483(0x1b4)],_0x545483(0x1e8)+_0x10a4ae['id'][_0x545483(0x1a8)]())}));return{..._0x34d99e,'items':_0x686371};},'abortController':_0x1e5e69[_0x17cb46(0x1b9)]};}[_0x2698b4(0x1ca)](_0x3afb5a,_0x5eba34){const _0x401785=_0x2698b4,_0x584116=this[_0x401785(0x18a)](_0x401785(0x1b2)+_0x3afb5a+_0x401785(0x1f9)+_0x5eba34,_0x401785(0x1c2));return{'execute':async()=>{const _0x1ac85e=_0x401785;await _0x584116[_0x1ac85e(0x1d7)];},'abortController':_0x584116[_0x401785(0x1b9)]};}[_0x2698b4(0x181)](_0x3ee050,_0x2ea177){const _0x32ae69=_0x2698b4,_0x19e5b6=this[_0x32ae69(0x18a)](_0x32ae69(0x1b2)+_0x3ee050+_0x32ae69(0x183)+_0x2ea177,_0x32ae69(0x1c2));return{'execute':async()=>{const _0x4b521c=_0x32ae69;await _0x19e5b6[_0x4b521c(0x1d7)];},'abortController':_0x19e5b6[_0x32ae69(0x1b9)]};}[_0x2698b4(0x17d)](_0x1ee5e5,_0xd3a5bc){const _0x1e1ce9=_0x2698b4,_0x3090b9=this[_0x1e1ce9(0x18a)](_0x1e1ce9(0x1b2)+_0x1ee5e5+_0x1e1ce9(0x1a9)+_0xd3a5bc,_0x1e1ce9(0x1c2));return{'execute':async()=>{const _0x402ab3=_0x1e1ce9;await _0x3090b9[_0x402ab3(0x1d7)];},'abortController':_0x3090b9[_0x1e1ce9(0x1b9)]};}[_0x2698b4(0x177)]({reviewName:_0xb3f0e9,content:_0x16b840,args:_0x18375a}){const _0x53067b=_0x2698b4,_0x379ba7=this[_0x53067b(0x18a)](_0x53067b(0x1e9)+_0xb3f0e9+_0x53067b(0x1dd),_0x53067b(0x1b5),{'content':[{'type':_0x53067b(0x207),'content':_0x16b840}],'args':_0x18375a});return{'getStream':async()=>{const _0x269c04=_0x53067b,_0x4348df=(await _0x379ba7[_0x269c04(0x1d7)])[_0x269c04(0x1b7)];return this[_0x269c04(0x1ad)](_0x4348df);},'abortController':_0x379ba7[_0x53067b(0x1b9)]};}[_0x2698b4(0x1cc)]({content:_0x4661fa,prompt:_0x363a01,model:_0xc1de7f}){const _0x1c7e44=_0x2698b4,_0x2fa9ad=this[_0x1c7e44(0x18a)](_0x1c7e44(0x1b1),_0x1c7e44(0x1b5),{'content':[{'type':_0x1c7e44(0x207),'content':_0x4661fa}],'prompt':_0x363a01,'model':_0xc1de7f});return{'getStream':async()=>{const _0x4b1172=_0x1c7e44,_0x5357e8=(await _0x2fa9ad[_0x4b1172(0x1d7)])[_0x4b1172(0x1b7)];return this[_0x4b1172(0x1ad)](_0x5357e8);},'abortController':_0x2fa9ad[_0x1c7e44(0x1b9)]};}[_0x2698b4(0x198)](_0x10352b,_0x342189,_0x4b6720){const _0x26fcf5=_0x2698b4,_0x336012=this[_0x26fcf5(0x18a)](_0x26fcf5(0x1b2)+_0x10352b+_0x26fcf5(0x1e0)+_0x342189+_0x26fcf5(0x1de),_0x26fcf5(0x1ff),{'positiveCount':_0x4b6720[_0x26fcf5(0x1e5)],'totalCount':_0x4b6720[_0x26fcf5(0x197)]});return{'execute':async()=>{const _0x8f6659=_0x26fcf5;await _0x336012[_0x8f6659(0x1d7)];},'abortController':_0x336012[_0x26fcf5(0x1b9)]};}[_0x2698b4(0x1ce)](_0x5419e4,_0x992f37,_0x494e1d){const _0x5b9f0c=_0x2698b4,_0x3dffda=this[_0x5b9f0c(0x18a)](_0x5b9f0c(0x1e7)+_0x5419e4+_0x5b9f0c(0x208)+_0x992f37+_0x5b9f0c(0x1de),_0x5b9f0c(0x1ff),{'positiveCount':_0x494e1d[_0x5b9f0c(0x1e5)],'totalCount':_0x494e1d[_0x5b9f0c(0x197)]});return{'execute':async()=>{const _0x101f13=_0x5b9f0c;await _0x3dffda[_0x101f13(0x1d7)];},'abortController':_0x3dffda[_0x5b9f0c(0x1b9)]};}[_0x2698b4(0x1a7)](_0x11aa89,_0x35f401){const _0x52d5eb=_0x2698b4,_0x487f00=this[_0x52d5eb(0x18a)](_0x52d5eb(0x206)+_0x11aa89+_0x52d5eb(0x1de),_0x52d5eb(0x1ff),{'positiveCount':_0x35f401[_0x52d5eb(0x1e5)],'totalCount':_0x35f401[_0x52d5eb(0x197)]});return{'execute':async()=>{const _0x5f0455=_0x52d5eb;await _0x487f00[_0x5f0455(0x1d7)];},'abortController':_0x487f00[_0x52d5eb(0x1b9)]};}[_0x2698b4(0x1b3)](_0x1679f5,_0xe3323d,_0x50ef78,_0x1a000c){const _0x3ed70c=_0x2698b4,_0x58c67f=this[_0x3ed70c(0x18a)](_0x3ed70c(0x1e9)+_0x1679f5+_0x3ed70c(0x208)+_0xe3323d+_0x3ed70c(0x1de),_0x3ed70c(0x1ff),{'positiveCount':_0x50ef78[_0x3ed70c(0x1e5)],'totalCount':_0x50ef78[_0x3ed70c(0x197)],'dataId':_0x1a000c});return{'execute':async()=>{const _0x40ba01=_0x3ed70c;await _0x58c67f[_0x40ba01(0x1d7)];},'abortController':_0x58c67f[_0x3ed70c(0x1b9)]};}[_0x2698b4(0x203)](_0x16a0cd,_0x41c89c,_0x128af3){const _0x7b42cf=_0x2698b4,_0x3db690=this[_0x7b42cf(0x18a)](_0x7b42cf(0x1f7)+_0x16a0cd+_0x7b42cf(0x1de),_0x7b42cf(0x1ff),{'positiveCount':_0x41c89c[_0x7b42cf(0x1e5)],'totalCount':_0x41c89c[_0x7b42cf(0x197)],'dataId':_0x128af3});return{'execute':async()=>{const _0x4f7c2c=_0x7b42cf;await _0x3db690[_0x4f7c2c(0x1d7)];},'abortController':_0x3db690[_0x7b42cf(0x1b9)]};}[_0x2698b4(0x18a)](_0x39acbf,_0x43eaab,_0x16cbe7){const _0x21cb96=_0x2698b4,_0x3a1ef2=new AbortController(),_0x4cf80f=_0x16cbe7 instanceof FormData,_0x3a99ad={'Authorization':_0x21cb96(0x1bf)+this[_0x21cb96(0x1a4)]?.[_0x21cb96(0x1c3)]};_0x16cbe7&&!_0x4cf80f&&(_0x3a99ad[_0x21cb96(0x1ea)]=_0x21cb96(0x19e));const _0x5a8303={'method':_0x43eaab,'headers':_0x3a99ad,'signal':_0x3a1ef2[_0x21cb96(0x1af)]};return _0x16cbe7&&(_0x5a8303[_0x21cb96(0x1b7)]=_0x4cf80f?_0x16cbe7:JSON[_0x21cb96(0x1cb)](_0x16cbe7)),{'request':fetch(''+this[_0x21cb96(0x17a)]+_0x39acbf,_0x5a8303)[_0x21cb96(0x1ae)](_0x1cdc61=>{const _0x1a9570=_0x21cb96;this[_0x1a9570(0x1dc)](_0x1cdc61);})[_0x21cb96(0x185)](_0x4da6f1=>{const _0x5892e7=_0x21cb96;if(!_0x4da6f1['ok'])throw new _0x5665af(_0x5892e7(0x1bb),this,{'url':this[_0x5892e7(0x17a)],'path':_0x39acbf,'method':_0x43eaab,'body':_0x16cbe7,'status':(_0x4da6f1||{})[_0x5892e7(0x1ac)],'statusText':(_0x4da6f1||{})[_0x5892e7(0x1d4)]});return _0x4da6f1;}),'abortController':_0x3a1ef2};}async*[_0x2698b4(0x1ad)](_0x387b92){const _0x4c9168=_0x2698b4,_0x25ab35=[],_0x16dc6b=_0x387b92[_0x4c9168(0x1f8)](),_0x2ccdd6=_0x267904({'onError':_0x27b191=>{const _0x37a7a3=_0x4c9168;this[_0x37a7a3(0x1dc)](_0x27b191);},'onEvent':_0x26d457=>{const _0x42983c=_0x4c9168;_0x26d457[_0x42983c(0x202)]=JSON[_0x42983c(0x1ec)](_0x26d457[_0x42983c(0x202)]),_0x25ab35[_0x42983c(0x1e1)](_0x26d457);}});try{let _0x3a45fe=!0x1;for(;!_0x3a45fe;){const {done:_0x5495e7,value:_0x3d9681}=await _0x16dc6b[_0x4c9168(0x1c0)]();_0x5495e7&&(_0x3a45fe=!0x0),_0x2ccdd6[_0x4c9168(0x193)](this[_0x4c9168(0x1f0)][_0x4c9168(0x1fe)](_0x3d9681,{'stream':!0x0})),yield*_0x25ab35,_0x25ab35[_0x4c9168(0x191)]=0x0;}}catch(_0x403e61){this[_0x4c9168(0x1dc)](_0x403e61);}finally{_0x16dc6b[_0x4c9168(0x1c7)](),_0x2ccdd6[_0x4c9168(0x1d3)]();}}[_0x2698b4(0x1dc)](_0x50d8a5){const _0xc04a27=_0x2698b4;if(_0x50d8a5 instanceof _0x5665af)throw _0x50d8a5;if(_0x50d8a5 instanceof Error&&_0xc04a27(0x1e2)===_0x50d8a5[_0xc04a27(0x1b6)])throw new _0x5665af(_0xc04a27(0x1c1),this,{'originalError':_0x50d8a5});throw new _0x5665af(_0xc04a27(0x1bb),this,{'originalError':_0x50d8a5});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a2364=_0x4710;(function(_0x2c3008,_0x16adc0){const _0xa4f1ac=_0x4710,_0x2a4d1e=_0x2c3008();while(!![]){try{const _0x579fa6=parseInt(_0xa4f1ac(0x1c7))/0x1+parseInt(_0xa4f1ac(0x1c1))/0x2+-parseInt(_0xa4f1ac(0x184))/0x3*(parseInt(_0xa4f1ac(0x170))/0x4)+parseInt(_0xa4f1ac(0x162))/0x5+parseInt(_0xa4f1ac(0x16d))/0x6*(parseInt(_0xa4f1ac(0x177))/0x7)+-parseInt(_0xa4f1ac(0x1b4))/0x8*(parseInt(_0xa4f1ac(0x1c2))/0x9)+-parseInt(_0xa4f1ac(0x165))/0xa;if(_0x579fa6===_0x16adc0)break;else _0x2a4d1e['push'](_0x2a4d1e['shift']());}catch(_0x464d00){_0x2a4d1e['push'](_0x2a4d1e['shift']());}}}(_0x2460,0xf32fc));import{ViewDowncastWriter as _0x282ec4}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x4c0252,Editor as _0x36e808}from'ckeditor5/src/core.js';function _0x4710(_0x5ebe11,_0x1a6b15){const _0x24601e=_0x2460();return _0x4710=function(_0x4710a6,_0x22f58f){_0x4710a6=_0x4710a6-0x15f;let _0x6b40c8=_0x24601e[_0x4710a6];return _0x6b40c8;},_0x4710(_0x5ebe11,_0x1a6b15);}import{uid as _0x558e3a}from'ckeditor5/src/utils.js';function _0x2460(){const _0x86e802=['editors','_displayedFakeSelectionLocked','getDocumentData','2284470cIrbDg','name','getSelectedContent','22906260pSNtuh','emptyElement','data-id','AIEditing','markerName','processor','add','_integrateEditor','6ukuLMs','getSelectionText','_setDataIdsOnChildren','48804NehuLn','plugins','context','setAttribute','isAfter','isBefore',':start></','8900647zPhVxA',':start>','selection','ready','_sessionId','end','RealTimeCollaborationClient','containerElement','getMarkersGroup','removeMarker','substring','_nextDataId','afterInit','387nEWytz','data','for','_getMarkersInDocumentOrder','pluginName','getChildren','markers','start','join','modelToViewWithIds','_displayedFakeSelectionId','hideFakeVisualSelection','random','version','isOpening','schema','ai-selection:','length','editing','model',':end>','isPremiumPlugin','getLastMatchingPosition','getRoot','ck-ai-assistant-ui_theme','createUIElement','get','element','dataDowncast','$textProxy','getWalker','from','isAtEnd','convertAiChatSelectionMarker','getStart','document','fromCharCode','indexOf','getSelection','isOfficialPlugin','markerToElement','removeAllRanges','addMarker','view','push','change','sessionId','sort','416qWTCXD','isContent','toView','trim','has','markerToHighlight','ck-fake-ai-selection',':end></','toData','floor','editingDowncast','createRange','conversion','3962790urjaUK','79614XPMAOT','listenTo','ai-selection','showFakeVisualSelection','createRangeIn','1610829vTIUVg'];_0x2460=function(){return _0x86e802;};return _0x2460();}import{getEditorFromContext as _0x2ff175}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x4a2364(0x1c4);export class AIEditing extends _0x4c0252{[_0x4a2364(0x18e)]=null;[_0x4a2364(0x160)]=!0x1;[_0x4a2364(0x17b)];static get[_0x4a2364(0x188)](){const _0x1d929e=_0x4a2364;return _0x1d929e(0x168);}static get[_0x4a2364(0x1ab)](){return!0x0;}static get[_0x4a2364(0x199)](){return!0x0;}get[_0x4a2364(0x1b2)](){const _0x35212b=_0x4a2364;if(!this[_0x35212b(0x17b)]){const _0x8c9a4=_0x2ff175(this[_0x35212b(0x172)]),_0x521fc8=_0x8c9a4[_0x35212b(0x171)][_0x35212b(0x1b8)](_0x35212b(0x17d))&&_0x8c9a4[_0x35212b(0x171)][_0x35212b(0x19e)](_0x35212b(0x17d))[_0x35212b(0x1b2)];this[_0x35212b(0x17b)]=_0x521fc8||_0x558e3a();}return this[_0x35212b(0x17b)];}[_0x4a2364(0x161)](){const _0x362680=_0x4a2364,_0x1ff884=_0x2ff175(this[_0x362680(0x172)]),_0x1281df=_0x1ff884[_0x362680(0x197)],_0x3aa34f=_0x1ff884[_0x362680(0x185)][_0x362680(0x1b6)](_0x1281df[_0x362680(0x1a7)][_0x362680(0x19b)](),{'convertAiChatSelectionMarker':!0x0}),_0x5c1388=new _0x282ec4(_0x1ff884[_0x362680(0x196)][_0x362680(0x1af)][_0x362680(0x1a7)]);this[_0x362680(0x16f)](_0x3aa34f,_0x5c1388);let _0x258faf=_0x1ff884[_0x362680(0x185)][_0x362680(0x16a)][_0x362680(0x1bc)](_0x3aa34f);const _0x595571=this[_0x362680(0x187)](),_0x12d1cd=[];for(const _0x9754fd of _0x595571){const _0x403e8b='<'+_0x9754fd[_0x362680(0x163)]+_0x362680(0x176)+_0x9754fd[_0x362680(0x163)]+_0x362680(0x178),_0x446e3b=_0x258faf[_0x362680(0x1a9)](_0x403e8b);_0x258faf=_0x258faf[_0x362680(0x181)](0x0,_0x446e3b)+_0x258faf[_0x362680(0x181)](_0x446e3b+_0x403e8b[_0x362680(0x195)]);const _0x46fe58='<'+_0x9754fd[_0x362680(0x163)]+_0x362680(0x1bb)+_0x9754fd[_0x362680(0x163)]+_0x362680(0x198),_0x3e9beb=_0x258faf[_0x362680(0x1a9)](_0x46fe58);_0x258faf=_0x258faf[_0x362680(0x181)](0x0,_0x3e9beb)+_0x258faf[_0x362680(0x181)](_0x3e9beb+_0x46fe58[_0x362680(0x195)]),_0x12d1cd[_0x362680(0x1b0)]({'markerName':_0x9754fd[_0x362680(0x163)],'start':_0x446e3b,'end':_0x3e9beb,'htmlFragment':_0x258faf[_0x362680(0x181)](_0x446e3b,_0x3e9beb)});}return{'content':_0x258faf,'version':_0x1ff884[_0x362680(0x197)][_0x362680(0x1a7)][_0x362680(0x191)],'sessionId':this[_0x362680(0x1b2)],'selections':_0x12d1cd};}async[_0x4a2364(0x183)](){const _0x9f1754=_0x4a2364;this[_0x9f1754(0x172)]instanceof _0x36e808?this[_0x9f1754(0x16c)](this[_0x9f1754(0x172)]):this[_0x9f1754(0x1c3)](this[_0x9f1754(0x172)][_0x9f1754(0x15f)],_0x9f1754(0x16b),(_0x51d04d,_0x3ae18d)=>{const _0x1dc32d=_0x9f1754;_0x3ae18d['on'](_0x1dc32d(0x17a),()=>{const _0x1992ec=_0x1dc32d;this[_0x1992ec(0x16c)](_0x3ae18d);});});}[_0x4a2364(0x16c)](_0x2399d4){const _0x1d9b6d=_0x4a2364;_0x2399d4[_0x1d9b6d(0x1c0)][_0x1d9b6d(0x186)](_0x1d9b6d(0x1be))[_0x1d9b6d(0x1b9)]({'model':_0x1d9b6d(0x1c4),'view':{'classes':[_0x1d9b6d(0x1ba),_0x1d9b6d(0x19c)],'priority':0xc}}),_0x2399d4[_0x1d9b6d(0x1c0)][_0x1d9b6d(0x186)](_0x1d9b6d(0x1a0))[_0x1d9b6d(0x1ac)]({'model':_0x1d9b6d(0x1c4),'view':(_0x231def,{writer:_0x53f141,options:_0xd1deeb})=>_0xd1deeb[_0x1d9b6d(0x1a5)]?_0x53f141[_0x1d9b6d(0x19d)](_0x231def[_0x1d9b6d(0x169)]+':'+(_0x231def[_0x1d9b6d(0x192)]?_0x1d9b6d(0x18b):_0x1d9b6d(0x17c))):null});}[_0x4a2364(0x1c5)](_0x51a3d5,_0x3cb7d7,_0x39f3d1=!0x1,_0x550a18=!0x1){const _0x53ad50=_0x4a2364;if(this[_0x53ad50(0x160)]&&!_0x550a18)return!0x1;this[_0x53ad50(0x18e)]&&this[_0x53ad50(0x18f)](this[_0x53ad50(0x18e)]),this[_0x53ad50(0x18e)]=_0x3cb7d7,this[_0x53ad50(0x160)]=_0x39f3d1;const _0xd3ec23=_0x2ff175(this[_0x53ad50(0x172)])[_0x53ad50(0x197)];return _0xd3ec23[_0x53ad50(0x1b1)](_0x2dfe61=>{const _0x1c176f=_0x53ad50;let _0x2d6d7b=0x0;for(let _0x45d077 of _0x51a3d5){const _0x553bc6=_0x1c176f(0x194)+_0x2d6d7b;if(_0x45d077[_0x1c176f(0x18b)][_0x1c176f(0x1a4)]){const _0x1ba363=_0x45d077[_0x1c176f(0x18b)][_0x1c176f(0x19a)](({item:_0x37ed01})=>!_0xd3ec23[_0x1c176f(0x193)][_0x1c176f(0x1b5)](_0x37ed01),{'boundaries':_0x45d077});_0x45d077=_0x2dfe61[_0x1c176f(0x1bf)](_0x1ba363,_0x45d077[_0x1c176f(0x17c)]);}_0x2dfe61[_0x1c176f(0x1ae)](_0x553bc6,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x45d077}),_0x2d6d7b++;}}),window[_0x53ad50(0x1aa)]()?.[_0x53ad50(0x1ad)](),!0x0;}[_0x4a2364(0x18f)](_0x554f76){const _0x5d119d=_0x4a2364;if(this[_0x5d119d(0x18e)]!=_0x554f76)return!0x1;this[_0x5d119d(0x18e)]=null,this[_0x5d119d(0x160)]=!0x1;const _0x1c16ef=_0x2ff175(this[_0x5d119d(0x172)]),_0x29f28f=_0x1c16ef[_0x5d119d(0x197)][_0x5d119d(0x18a)][_0x5d119d(0x17f)](_0x5d119d(0x1c4));return _0x1c16ef[_0x5d119d(0x197)][_0x5d119d(0x1b1)](_0x4a7c83=>{const _0x26c8fd=_0x5d119d;for(const _0x1c6ec9 of _0x29f28f)_0x4a7c83[_0x26c8fd(0x180)](_0x1c6ec9);}),!0x0;}[_0x4a2364(0x18d)](_0x3c8883){const _0x17a032=_0x4a2364,_0x14d198=_0x2ff175(this[_0x17a032(0x172)]),_0x423439=_0x14d198[_0x17a032(0x185)][_0x17a032(0x1b6)](_0x3c8883),_0x1e38bd=new _0x282ec4(_0x14d198[_0x17a032(0x196)][_0x17a032(0x1af)][_0x17a032(0x1a7)]);return this[_0x17a032(0x16f)](_0x423439,_0x1e38bd),_0x423439;}[_0x4a2364(0x16f)](_0x3aed5f,_0x342bd1){const _0x58f001=_0x4a2364;let _0x448751=!0x1;const _0x1ff317=new Set();for(const _0x45ca11 of _0x3aed5f[_0x58f001(0x189)]()){const _0x1dc6b0=_0x45ca11['is'](_0x58f001(0x166))||_0x45ca11['is'](_0x58f001(0x17e));if(!_0x45ca11['is'](_0x58f001(0x19f)))continue;(this[_0x58f001(0x16f)](_0x45ca11,_0x342bd1)||_0x1dc6b0)&&(_0x342bd1[_0x58f001(0x173)](_0x58f001(0x167),this[_0x58f001(0x182)](_0x1ff317),_0x45ca11),_0x448751=!0x0);}return _0x448751;}[_0x4a2364(0x182)](_0x3ee783){const _0x1cc91b=_0x4a2364;let _0x199078;do{_0x199078='';for(let _0x47a228=0x0;_0x47a228<0x4;_0x47a228++)_0x199078+=String[_0x1cc91b(0x1a8)](0x61+Math[_0x1cc91b(0x1bd)](0x1a*Math[_0x1cc91b(0x190)]()));}while(_0x3ee783[_0x1cc91b(0x1b8)](_0x199078));return _0x3ee783[_0x1cc91b(0x16b)](_0x199078),_0x199078;}[_0x4a2364(0x16e)](){const _0x426f10=_0x4a2364,{model:_0x54d59e}=_0x2ff175(this[_0x426f10(0x172)]),_0x3a6e95=_0x54d59e[_0x426f10(0x1a7)][_0x426f10(0x179)],_0x356848=_0x54d59e[_0x426f10(0x164)](_0x3a6e95),_0x5ec3af=[],_0x1c857b=_0x54d59e[_0x426f10(0x1c6)](_0x356848)[_0x426f10(0x1a2)]();for(const {item:_0x470f3e}of _0x1c857b)_0x470f3e['is'](_0x426f10(0x1a1))?_0x5ec3af[_0x426f10(0x1b0)](_0x470f3e[_0x426f10(0x185)]):_0x470f3e['is'](_0x426f10(0x19f))&&_0x5ec3af[_0x426f10(0x195)]>0x0&&'\x20'!==_0x5ec3af[_0x5ec3af[_0x426f10(0x195)]-0x1]&&_0x5ec3af[_0x426f10(0x1b0)]('\x20');return'\x22'+_0x5ec3af[_0x426f10(0x18c)]('')[_0x426f10(0x1b7)]()+'\x22';}[_0x4a2364(0x187)](){const _0x1c6ba7=_0x4a2364,_0xb11b5d=_0x2ff175(this[_0x1c6ba7(0x172)])[_0x1c6ba7(0x197)];return Array[_0x1c6ba7(0x1a3)](_0xb11b5d[_0x1c6ba7(0x18a)][_0x1c6ba7(0x17f)](_0x1c6ba7(0x1c4)))[_0x1c6ba7(0x1b3)]((_0x5c1e57,_0x397da3)=>_0x5c1e57[_0x1c6ba7(0x1a6)]()[_0x1c6ba7(0x175)](_0x397da3[_0x1c6ba7(0x1a6)]())?-0x1:_0x5c1e57[_0x1c6ba7(0x1a6)]()[_0x1c6ba7(0x174)](_0x397da3[_0x1c6ba7(0x1a6)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x22091b=_0x19a9;(function(_0xb2378e,_0x481ef7){const _0x11f745=_0x19a9,_0xc8221f=_0xb2378e();while(!![]){try{const _0x47d179=parseInt(_0x11f745(0xee))/0x1+-parseInt(_0x11f745(0xf9))/0x2*(-parseInt(_0x11f745(0xea))/0x3)+parseInt(_0x11f745(0xe2))/0x4+parseInt(_0x11f745(0xf6))/0x5+-parseInt(_0x11f745(0xec))/0x6+-parseInt(_0x11f745(0xe5))/0x7+-parseInt(_0x11f745(0xf8))/0x8*(parseInt(_0x11f745(0xf4))/0x9);if(_0x47d179===_0x481ef7)break;else _0xc8221f['push'](_0xc8221f['shift']());}catch(_0x42f1b0){_0xc8221f['push'](_0xc8221f['shift']());}}}(_0x953c,0xd7684));function _0x19a9(_0x80e890,_0x241850){const _0x953c7e=_0x953c();return _0x19a9=function(_0x19a96c,_0x45862d){_0x19a96c=_0x19a96c-0xe1;let _0x520374=_0x953c7e[_0x19a96c];return _0x520374;},_0x19a9(_0x80e890,_0x241850);}import{EmitterMixin as _0x4ef163}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x22091b(0xe6)];export class AICapabilities extends _0x4ef163(){[_0x22091b(0xe3)];[_0x22091b(0xe8)];constructor(){const _0x6e81e5=_0x22091b;super(),this[_0x6e81e5(0xe3)]=!0x1,this[_0x6e81e5(0xe8)]=!0x1;}[_0x22091b(0xf5)](){const _0x14838b=_0x22091b;this[_0x14838b(0xeb)]();}[_0x22091b(0xeb)](){const _0xfc7402=_0x22091b;this[_0xfc7402(0xe7)](!0x1),this[_0xfc7402(0xf2)](!0x1);}[_0x22091b(0xed)](){const _0xfb0318=_0x22091b;return{'isWebSearchEnabled':this[_0xfb0318(0xe3)],'isReasoningEnabled':this[_0xfb0318(0xe8)]};}static[_0x22091b(0xe1)](_0x29de1d){const _0x3350b4=_0x22091b,_0x3a94fe={};return _0x29de1d&&_0x29de1d[_0x3350b4(0xf7)]&&(_0x3a94fe[_0x3350b4(0xf1)]={}),_0x29de1d&&_0x29de1d[_0x3350b4(0xe4)]&&(_0x3a94fe[_0x3350b4(0xf0)]={}),_0x3a94fe;}[_0x22091b(0xf3)](){const _0x5e1beb=_0x22091b;this[_0x5e1beb(0xe7)](!this[_0x5e1beb(0xe3)]);}[_0x22091b(0xe9)](){const _0x351e0b=_0x22091b;this[_0x351e0b(0xf2)](!this[_0x351e0b(0xe8)]);}[_0x22091b(0xe7)](_0xf0e88f){const _0x455756=_0x22091b;_0xf0e88f!==this[_0x455756(0xe3)]&&(this[_0x455756(0xe3)]=_0xf0e88f,this[_0x455756(0xef)](_0x455756(0xe6),this[_0x455756(0xed)]()));}[_0x22091b(0xf2)](_0x3df0b7){const _0x1f7711=_0x22091b;_0x3df0b7!==this[_0x1f7711(0xe8)]&&(this[_0x1f7711(0xe8)]=_0x3df0b7,this[_0x1f7711(0xef)](_0x1f7711(0xe6),this[_0x1f7711(0xed)]()));}}function _0x953c(){const _0x5b7755=['setWebSearch','_isReasoningEnabled','toggleReasoning','1119rcvZsa','reset','8672904byCIru','getCapabilitiesConfig','1068394KBoUEA','fire','reasoning','webSearch','setReasoning','toggleWebSearch','171QzJcse','init','6436270lykbCY','isWebSearchEnabled','695088LDwLib','9038TscXwH','getCapabilitiesRequestData','1468592zIKeEa','_isWebSearchEnabled','isReasoningEnabled','3008299sGEyol','capabilitiesUpdated'];_0x953c=function(){return _0x5b7755;};return _0x953c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5931fe=_0x493d;function _0x2491(){const _0x514190=['push','_isReasoning','interactionStarted','interactionStopped','interactionFinished','replyContentUpdated','messageId','error','action-metadata','replyCreated','webSearchStarted','getReply','textDelta','done','destroy','conversationTitle','data','stop','1510326SvqbIn','519PxVmfg','320642bkqamZ','fire','content','8SYoOxC','length','replyChangeGroupStateUpdated','editor','appendContent','web-search','reasoningStarted','_isWebSearching','761130sXbUqH','message-metadata','_finalizeInteraction','connector','reasoning','2011408biLiIK','splice','interactionDestroyed','ai-chat-interaction-error','sources','callId','currentRequest','start','forEach','setConversationTitle','10996KoXPtR','source','abort','replies','7250tsCLLf','reasoningFinished','delegate','getDocumentContext','webSearchFinished','2535035zhoLQe','isDestroyed','currentReply','abortController','interactionCreated','isStopped','sendRequest','stopListening','5533SfvWPg','6OZevwD','find','modification-delta','event','actionCallId','getStream','ai-interaction-invalid-event-type','createReply'];_0x2491=function(){return _0x514190;};return _0x2491();}(function(_0x1c6bc7,_0x448106){const _0x4b3030=_0x493d,_0x3dae4a=_0x1c6bc7();while(!![]){try{const _0x29b7e8=-parseInt(_0x4b3030(0xb4))/0x1+parseInt(_0x4b3030(0xb2))/0x2+parseInt(_0x4b3030(0xb3))/0x3*(-parseInt(_0x4b3030(0x86))/0x4)+-parseInt(_0x4b3030(0x8f))/0x5*(-parseInt(_0x4b3030(0x98))/0x6)+-parseInt(_0x4b3030(0xc4))/0x7*(parseInt(_0x4b3030(0xb7))/0x8)+-parseInt(_0x4b3030(0xbf))/0x9+-parseInt(_0x4b3030(0x8a))/0xa*(-parseInt(_0x4b3030(0x97))/0xb);if(_0x29b7e8===_0x448106)break;else _0x3dae4a['push'](_0x3dae4a['shift']());}catch(_0x3b18a5){_0x3dae4a['push'](_0x3dae4a['shift']());}}}(_0x2491,0x6ffd8));import{CKEditorError as _0x9ddcea,EmitterMixin as _0x4579a1,logWarning as _0x4d55f1,uid as _0x21b973}from'ckeditor5/src/utils.js';import{AIReply as _0x2bbf50,isIgnoredReplyType as _0x3000a3,isValidReplyType as _0x16855a,isReplyTitleType as _0x486251,isSourceType as _0x5d75da}from'./aireply.js';function _0x493d(_0x1c994e,_0x221da2){const _0x249114=_0x2491();return _0x493d=function(_0x493db0,_0x1007ef){_0x493db0=_0x493db0-0x7f;let _0x44226a=_0x249114[_0x493db0];return _0x44226a;},_0x493d(_0x1c994e,_0x221da2);}export const AI_MODEL_EVENT_NAMES=[_0x5931fe(0x93),_0x5931fe(0xa2),_0x5931fe(0xa3),_0x5931fe(0xa4),_0x5931fe(0xc6),_0x5931fe(0xa9),_0x5931fe(0xa5),_0x5931fe(0xb9),_0x5931fe(0x85),_0x5931fe(0xaa),_0x5931fe(0x8e),_0x5931fe(0xbd),_0x5931fe(0x8b),_0x5931fe(0xa7)];export class AIInteraction extends _0x4579a1(){['id'];[_0x5931fe(0x89)]=[];[_0x5931fe(0x91)];[_0x5931fe(0xa6)];[_0x5931fe(0x9c)];[_0x5931fe(0x82)];[_0x5931fe(0xc2)];[_0x5931fe(0x94)]=!0x1;[_0x5931fe(0x90)]=!0x1;[_0x5931fe(0xba)];[_0x5931fe(0xa1)]=!0x1;[_0x5931fe(0xbe)]=!0x1;constructor({connector:_0x15a336,editor:_0x1f7959}){const _0x12bf44=_0x5931fe;super(),this['id']=_0x21b973(),this[_0x12bf44(0xc2)]=_0x15a336,this[_0x12bf44(0x94)]=!0x0,this[_0x12bf44(0xba)]=_0x1f7959;}async[_0x5931fe(0x83)](){const _0x4e9360=_0x5931fe;let _0x126215;const _0x428d2a=[];this[_0x4e9360(0x94)]=!0x1;try{this[_0x4e9360(0x82)]=await this[_0x4e9360(0x95)](),this[_0x4e9360(0xb5)](_0x4e9360(0xa2),this);const _0x412010=await this[_0x4e9360(0x82)][_0x4e9360(0x9d)]();for await(const _0x2108d8 of _0x412010){if(this[_0x4e9360(0x94)])return;if(_0x4e9360(0xa7)===_0x2108d8[_0x4e9360(0x9b)])return void this[_0x4e9360(0xb5)](_0x4e9360(0xa7),{'error':new _0x9ddcea(_0x4e9360(0x7f),this)});if(_0x4e9360(0xc0)!==_0x2108d8[_0x4e9360(0x9b)]){if(_0x4e9360(0xa8)!==_0x2108d8[_0x4e9360(0x9b)]){if(_0x486251(_0x2108d8[_0x4e9360(0x9b)])&&this[_0x4e9360(0x85)](_0x2108d8[_0x4e9360(0xb0)][_0x4e9360(0xaf)],!0x0),_0x5d75da(_0x2108d8[_0x4e9360(0x9b)]))_0x428d2a[_0x4e9360(0xa0)](_0x2108d8[_0x4e9360(0xb0)][_0x4e9360(0x87)]);else{if(_0x16855a(_0x2108d8[_0x4e9360(0x9b)])){if(_0x2108d8[_0x4e9360(0x9b)]!==_0x126215){if(_0x126215=_0x2108d8[_0x4e9360(0x9b)],_0x4e9360(0xbc)===_0x2108d8[_0x4e9360(0x9b)]){this[_0x4e9360(0xbe)]||(this[_0x4e9360(0xbe)]=!0x0,this[_0x4e9360(0xb5)](_0x4e9360(0xaa),this));continue;}if(_0x4e9360(0xc3)===_0x2108d8[_0x4e9360(0x9b)]){this[_0x4e9360(0xa1)]||(this[_0x4e9360(0xa1)]=!0x0,this[_0x4e9360(0xb5)](_0x4e9360(0xbd),this));continue;}this[_0x4e9360(0xa1)]&&(this[_0x4e9360(0xa1)]=!0x1,this[_0x4e9360(0xb5)](_0x4e9360(0x8b),this)),this[_0x4e9360(0xbe)]&&(this[_0x4e9360(0xbe)]=!0x1,this[_0x4e9360(0xb5)](_0x4e9360(0x8e),this)),this[_0x4e9360(0x91)]&&this[_0x4e9360(0x91)][_0x4e9360(0xad)](),this[_0x4e9360(0x91)]=this[_0x4e9360(0x9f)]({'type':_0x2108d8[_0x4e9360(0x9b)],'interactionId':this['id']}),_0x428d2a[_0x4e9360(0xb8)]>0x0&&_0x4e9360(0x9a)===_0x2108d8[_0x4e9360(0x9b)]&&(this[_0x4e9360(0x91)][_0x4e9360(0x80)]=_0x428d2a[_0x4e9360(0xc5)](0x0));}_0x2108d8[_0x4e9360(0xb0)][_0x4e9360(0xac)]&&this[_0x4e9360(0x91)][_0x4e9360(0xbb)](_0x2108d8[_0x4e9360(0xb0)][_0x4e9360(0xac)]);}else _0x3000a3(_0x2108d8[_0x4e9360(0x9b)])||_0x4d55f1(_0x4e9360(0x9e),{'chunk':_0x2108d8});}}else this[_0x4e9360(0x9c)]=_0x2108d8[_0x4e9360(0xb0)][_0x4e9360(0x81)];}else this[_0x4e9360(0xa6)]=_0x2108d8[_0x4e9360(0xb0)]['id'];}}finally{this[_0x4e9360(0x94)]||(_0x428d2a[_0x4e9360(0xb8)]>0x0&&(this[_0x4e9360(0x91)][_0x4e9360(0x80)]=_0x428d2a[_0x4e9360(0xc5)](0x0)),this[_0x4e9360(0xc1)](),this[_0x4e9360(0xb5)](_0x4e9360(0xa4),this));}}[_0x5931fe(0xb1)](){const _0x830f6e=_0x5931fe;this[_0x830f6e(0x94)]||(this[_0x830f6e(0xc1)](),this[_0x830f6e(0xb5)](_0x830f6e(0xa3),this));}[_0x5931fe(0xab)](_0x26e703){const _0x421ccb=_0x5931fe;return this[_0x421ccb(0x89)][_0x421ccb(0x99)](_0x51bdff=>_0x51bdff['id']===_0x26e703);}[_0x5931fe(0xae)](){const _0x254a0b=_0x5931fe;this[_0x254a0b(0x90)]||(this[_0x254a0b(0xb1)](),this[_0x254a0b(0x89)][_0x254a0b(0x84)](_0x3a78f5=>_0x3a78f5[_0x254a0b(0xae)]()),this[_0x254a0b(0x89)]=[],this[_0x254a0b(0x90)]=!0x0,this[_0x254a0b(0xb5)](_0x254a0b(0xc6),this),this[_0x254a0b(0x96)]());}[_0x5931fe(0x9f)](_0x28b2e6){const _0x29fd9f=_0x5931fe,_0x3628ea=new _0x2bbf50({'editor':this[_0x29fd9f(0xba)],'documentContextContent':this[_0x29fd9f(0x8d)]()?.[_0x29fd9f(0xb6)],..._0x28b2e6});return this[_0x29fd9f(0x89)][_0x29fd9f(0xa0)](_0x3628ea),_0x3628ea[_0x29fd9f(0x8c)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x29fd9f(0xb5)](_0x29fd9f(0xa9),_0x3628ea),_0x3628ea;}[_0x5931fe(0x85)](_0x5795b0,_0x55248f=!0x1){const _0xa08846=_0x5931fe;this[_0xa08846(0xb5)](_0xa08846(0x85),_0x5795b0,_0x55248f);}[_0x5931fe(0xc1)](){const _0x363bfd=_0x5931fe;this[_0x363bfd(0x94)]=!0x0,this[_0x363bfd(0x82)]&&this[_0x363bfd(0x82)][_0x363bfd(0x92)][_0x363bfd(0x88)](),this[_0x363bfd(0x91)]&&this[_0x363bfd(0x91)][_0x363bfd(0xad)](),this[_0x363bfd(0x82)]=this[_0x363bfd(0x91)]=void 0x0;}}
|