@ckeditor/ckeditor5-ai 47.3.0-alpha.3 → 47.3.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/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/aiassistantediting.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/aiformview.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/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/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/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/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/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.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/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/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b5902=_0x15ff;(function(_0x1ca992,_0x177c26){const _0x56eead=_0x15ff,_0x3fe670=_0x1ca992();while(!![]){try{const _0x52bbe8=parseInt(_0x56eead(0xc9))/0x1*(-parseInt(_0x56eead(0xa6))/0x2)+parseInt(_0x56eead(0xac))/0x3*(parseInt(_0x56eead(0xad))/0x4)+-parseInt(_0x56eead(0xba))/0x5+-parseInt(_0x56eead(0xa5))/0x6+-parseInt(_0x56eead(0xaf))/0x7*(parseInt(_0x56eead(0xb6))/0x8)+-parseInt(_0x56eead(0xa2))/0x9*(-parseInt(_0x56eead(0xc3))/0xa)+parseInt(_0x56eead(0xb9))/0xb*(parseInt(_0x56eead(0xbb))/0xc);if(_0x52bbe8===_0x177c26)break;else _0x3fe670['push'](_0x3fe670['shift']());}catch(_0x7c0ab9){_0x3fe670['push'](_0x3fe670['shift']());}}}(_0x57f3,0x1885e));function _0x15ff(_0x31f0b8,_0x3be960){const _0x57f3e1=_0x57f3();return _0x15ff=function(_0x15ff65,_0x2b38d1){_0x15ff65=_0x15ff65-0x9a;let _0x156b02=_0x57f3e1[_0x15ff65];return _0x156b02;},_0x15ff(_0x31f0b8,_0x3be960);}function _0x57f3(){const _0x575d31=['164796jOMYrm','8VVePhl','loadItems','210665qvTdAW','pinned','getItem','updateConversation','items','updateTitle','getResult','24ySYjTD','updateItemTitle','find','218416ghcXxo','848090MuozxV','204Xeqbzy','getItems','itemsLoaded','createdAt','fire','getConversations','itemRemoved','itemUpdated','271430meOZTW','push','execute','getTime','map','splice','739NldIGh','group','from','updatePinned','error','filter','removeItem','getMonth','getDate','connector','36fCfnRQ','fetchConversations','getFullYear','433356labEvC','334RqoywL','addItem','deleteConversation','init','updateItemPinned','findIndex'];_0x57f3=function(){return _0x575d31;};return _0x57f3();}import{EmitterMixin as _0xb984eb}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x591e59}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0xb984eb(){[_0x5b5902(0xb3)]=[];[_0x5b5902(0xa1)];[_0x5b5902(0xca)];constructor({connector:_0x225de2,group:_0x26ea83}){const _0x39c152=_0x5b5902;super(),this[_0x39c152(0xa1)]=_0x225de2,this[_0x39c152(0xca)]=_0x26ea83;}async[_0x5b5902(0xa9)](){const _0x2a5f00=_0x5b5902;try{const _0xeff9a1=this[_0x2a5f00(0xa1)][_0x2a5f00(0xa3)](this[_0x2a5f00(0xca)]),_0x5d797b=await _0xeff9a1[_0x2a5f00(0xc0)]();this[_0x2a5f00(0xae)](_0x5d797b);}catch(_0x3ce05b){this[_0x2a5f00(0xbf)](_0x2a5f00(0x9c),{'error':_0x3ce05b,'operation':_0x2a5f00(0xa9)});}}[_0x5b5902(0xa7)](_0x341fc6){const _0x52417d=_0x5b5902;this[_0x52417d(0xb3)][_0x52417d(0xc4)](_0x341fc6);}async[_0x5b5902(0x9e)](_0x699962){const _0x428d64=_0x5b5902,_0x14362a=this[_0x428d64(0xb3)][_0x428d64(0xab)](_0x2270c9=>_0x2270c9['id']===_0x699962);if(-0x1===_0x14362a)return!0x1;try{return await this[_0x428d64(0xa1)][_0x428d64(0xa8)](_0x699962)[_0x428d64(0xc5)](),this[_0x428d64(0xb3)][_0x428d64(0xc8)](_0x14362a,0x1),this[_0x428d64(0xbf)](_0x428d64(0xc1),{'itemId':_0x699962}),!0x0;}catch(_0x4073d0){return this[_0x428d64(0xbf)](_0x428d64(0x9c),{'error':_0x4073d0,'operation':_0x428d64(0x9e),'itemId':_0x699962}),!0x1;}}[_0x5b5902(0xb1)](_0x299f75){const _0x28efae=_0x5b5902;return this[_0x28efae(0xb3)][_0x28efae(0xb8)](_0x252eee=>_0x252eee['id']===_0x299f75);}async[_0x5b5902(0xb7)](_0x59348e,_0x1305e3){const _0x335ae3=_0x5b5902,_0x546491=this[_0x335ae3(0xb1)](_0x59348e);if(!_0x546491)return!0x1;try{return await this[_0x335ae3(0xa1)][_0x335ae3(0xb2)](_0x59348e,{'title':_0x1305e3})[_0x335ae3(0xb5)](),_0x546491[_0x335ae3(0xb4)](_0x1305e3),this[_0x335ae3(0xbf)](_0x335ae3(0xc2),{'itemId':_0x59348e,'updates':{'title':_0x1305e3}}),!0x0;}catch(_0x1ae78d){return this[_0x335ae3(0xbf)](_0x335ae3(0x9c),{'error':_0x1ae78d,'operation':_0x335ae3(0xb7),'itemId':_0x59348e}),!0x1;}}async[_0x5b5902(0xaa)](_0x531713,_0x3f049a){const _0x1250ce=_0x5b5902,_0x5d094e=this[_0x1250ce(0xb1)](_0x531713);if(!_0x5d094e)return!0x1;try{return await this[_0x1250ce(0xa1)][_0x1250ce(0xb2)](_0x531713,{'pinned':_0x3f049a})[_0x1250ce(0xb5)](),_0x5d094e[_0x1250ce(0x9b)](_0x3f049a),this[_0x1250ce(0xbf)](_0x1250ce(0xc2),{'itemId':_0x531713,'updates':{'pinned':_0x3f049a}}),!0x0;}catch(_0x39b8af){return this[_0x1250ce(0xbf)](_0x1250ce(0x9c),{'error':_0x39b8af,'operation':_0x1250ce(0xaa),'itemId':_0x531713}),!0x1;}}[_0x5b5902(0xae)](_0x33559a){const _0x49ad61=_0x5b5902;try{this[_0x49ad61(0xb3)]=[],_0x33559a[_0x49ad61(0xc7)](_0x3ff9d4=>{const _0x3442a6=_0x49ad61;this[_0x3442a6(0xa7)](new _0x591e59(_0x3ff9d4));}),this[_0x49ad61(0xbf)](_0x49ad61(0xbd),{'items':[...this[_0x49ad61(0xb3)]]});}catch(_0x18433e){this[_0x49ad61(0xbf)](_0x49ad61(0x9c),{'error':_0x18433e,'operation':_0x49ad61(0xae)});}}[_0x5b5902(0xbc)](_0x3cb3f6={}){const _0x5a33cf=_0x5b5902,_0x5d944d=void 0x0!==_0x3cb3f6[_0x5a33cf(0xb0)]&&_0x3cb3f6[_0x5a33cf(0xb0)],_0x52c4b4=_0x3cb3f6[_0x5a33cf(0x9a)]?new Date(_0x3cb3f6[_0x5a33cf(0x9a)][_0x5a33cf(0xa4)](),_0x3cb3f6[_0x5a33cf(0x9a)][_0x5a33cf(0x9f)](),_0x3cb3f6[_0x5a33cf(0x9a)][_0x5a33cf(0xa0)]()):null,_0x4cb187=_0x3cb3f6['to']?new Date(_0x3cb3f6['to'][_0x5a33cf(0xa4)](),_0x3cb3f6['to'][_0x5a33cf(0x9f)](),_0x3cb3f6['to'][_0x5a33cf(0xa0)]()):null;return this[_0x5a33cf(0xb3)][_0x5a33cf(0x9d)](_0x120a01=>{const _0xb2f6ca=_0x5a33cf;if(_0x120a01[_0xb2f6ca(0xb0)]!==_0x5d944d)return!0x1;if(_0x4cb187){const _0x206ba5=new Date(_0x120a01[_0xb2f6ca(0xbe)][_0xb2f6ca(0xa4)](),_0x120a01[_0xb2f6ca(0xbe)][_0xb2f6ca(0x9f)](),_0x120a01[_0xb2f6ca(0xbe)][_0xb2f6ca(0xa0)]());return _0x52c4b4?_0x52c4b4[_0xb2f6ca(0xc6)]()===_0x4cb187[_0xb2f6ca(0xc6)]()?_0x206ba5[_0xb2f6ca(0xc6)]()===_0x52c4b4[_0xb2f6ca(0xc6)]():_0x206ba5<_0x4cb187&&_0x206ba5>=_0x52c4b4:_0x206ba5<_0x4cb187;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1c39ef=_0x17c5;(function(_0x6d95ab,_0x459d9f){var _0x560929=_0x17c5,_0x45b2dc=_0x6d95ab();while(!![]){try{var _0x273f6a=parseInt(_0x560929(0x1ce))/0x1*(parseInt(_0x560929(0x1cc))/0x2)+parseInt(_0x560929(0x1c0))/0x3+-parseInt(_0x560929(0x1c7))/0x4*(-parseInt(_0x560929(0x1c6))/0x5)+-parseInt(_0x560929(0x1cb))/0x6*(-parseInt(_0x560929(0x1bd))/0x7)+-parseInt(_0x560929(0x1be))/0x8*(-parseInt(_0x560929(0x1bf))/0x9)+-parseInt(_0x560929(0x1c9))/0xa+-parseInt(_0x560929(0x1c1))/0xb*(parseInt(_0x560929(0x1cf))/0xc);if(_0x273f6a===_0x459d9f)break;else _0x45b2dc['push'](_0x45b2dc['shift']());}catch(_0x189617){_0x45b2dc['push'](_0x45b2dc['shift']());}}}(_0x19e5,0x90081));function _0x19e5(){var _0x1d8aaa=['17648dDpZXP','2061MFSxoU','1245357sTEFzV','319inDGta','createdAt','pinned','updatePinned','set','30365PDooIQ','668gEDVZG','updateTitle','2259770OpCCbr','title','2134812MKsZfa','2PEwDTC','updatedAt','885575ByyCby','1270980dJroYb','21JRREBN'];_0x19e5=function(){return _0x1d8aaa;};return _0x19e5();}function _0x17c5(_0x571b08,_0x24ebb0){var _0x19e581=_0x19e5();return _0x17c5=function(_0x17c5ac,_0x5411b1){_0x17c5ac=_0x17c5ac-0x1bd;var _0x476ce4=_0x19e581[_0x17c5ac];return _0x476ce4;},_0x17c5(_0x571b08,_0x24ebb0);}import{ObservableMixin as _0x43ec92}from'ckeditor5/src/utils.js';import{escape as _0x23b34c}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x43ec92(){['id'];[_0x1c39ef(0x1c2)];constructor({id:_0x4ffbb3,title:_0x5e3925,createdAt:_0x1a2750,updatedAt:_0x51a47d,pinned:_0x3b96c5}){var _0x3c5c50=_0x1c39ef;super(),this['id']=_0x4ffbb3,this[_0x3c5c50(0x1c2)]=new Date(_0x1a2750),this[_0x3c5c50(0x1c5)](_0x3c5c50(0x1ca),_0x5e3925),this[_0x3c5c50(0x1c5)](_0x3c5c50(0x1cd),_0x51a47d?new Date(_0x51a47d):null),this[_0x3c5c50(0x1c5)](_0x3c5c50(0x1c3),_0x3b96c5||!0x1);}[_0x1c39ef(0x1c8)](_0xd581c7){var _0x4ad883=_0x1c39ef;this[_0x4ad883(0x1c5)](_0x4ad883(0x1ca),_0x23b34c(_0xd581c7)),this[_0x4ad883(0x1cd)]=new Date();}[_0x1c39ef(0x1c4)](_0xadd3fb){var _0x141cd9=_0x1c39ef;this[_0x141cd9(0x1c5)](_0x141cd9(0x1c3),_0xadd3fb),this[_0x141cd9(0x1cd)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x5ac2(_0x3c4e0a,_0x8e5d0b){const _0x4cface=_0x4cfa();return _0x5ac2=function(_0x5ac211,_0x2ffbbb){_0x5ac211=_0x5ac211-0x1bb;let _0x2d7290=_0x4cface[_0x5ac211];return _0x2d7290;},_0x5ac2(_0x3c4e0a,_0x8e5d0b);}const _0x55b91c=_0x5ac2;function _0x4cfa(){const _0xce949f=['ck-ai-chat-history__item-main-content','match','pinned','listitem','panelView','ck-confirm-view-submit','3668110dLvSDs','ck-ai-chat-history__item-check','extendTemplate','_createAcceptEditButtonView','ck-hidden','AI_CHAT_HISTORY_PIN_BUTTON','isMatching','ck-ai-chat-history__item--edit','children','ck-ai-chat-history__item','locale','ck-ai-chat-history__item-row','_commitEditInputValue','updateTitle','_createCancelEditButtonView','div','12FyrlDk','ck-ai-chat-history__item--active','loadingState','value','bindTemplate','_createCheckView','editConversationTitle','6OHCyEG','ck-ai-loader','selectConversation','click','AI_CHAT_HISTORY_LOADING_PINNING','bind','change:isEdit','key','AI_CHAT_HISTORY_LOADING_UNPINNING','523leDOWS','AI_CHAT_HISTORY_REMOVE_CONFIRM','10169190lbEHeN','1465404TFRkTn','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','highlightText','AI_CHAT_HISTORY_EDIT_NAME','focus','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-loader__text','_createMenuDropdownView','AI_CHAT_HISTORY_ACCEPT','clear','ck-confirm-view-cancel','span','152596rinBIY','updateLoadingState','element','isEdit','AI_CHAT_HISTORY_CANCEL','addMany','187XUBkkp','mainContent','Enter','2830736foYIIq','set','actions','string','1782istJNL','AI_CHAT_HISTORY_LOADING_REMOVING','fire','LOADING_LABELS','buttonView','ck-ai-chat-history__item-date','_titleView','panelPosition','text','ck-ai-chat-history__item-content','setTemplate','isVisible','tiny','9pjOtdz','createCollection','items','ck-ai-chat-history__item-title','setConversationPinned','_createPinButtonView','showConfirm','_createSpinnerView','edit:cancel','_createEditInputView','ck-ai-chat-history__item-actions','add','then','1816948vxmArP','label','AI_CHAT_HISTORY_REMOVE','execute','removeConversation','withText','isOn'];_0x4cfa=function(){return _0xce949f;};return _0x4cfa();}(function(_0x583eab,_0x141e69){const _0xa48eed=_0x5ac2,_0x3b452b=_0x583eab();while(!![]){try{const _0x22cc1d=-parseInt(_0xa48eed(0x1f7))/0x1*(parseInt(_0xa48eed(0x214))/0x2)+parseInt(_0xa48eed(0x1e7))/0x3*(-parseInt(_0xa48eed(0x207))/0x4)+parseInt(_0xa48eed(0x1d7))/0x5*(parseInt(_0xa48eed(0x1ee))/0x6)+-parseInt(_0xa48eed(0x1ca))/0x7+-parseInt(_0xa48eed(0x210))/0x8*(parseInt(_0xa48eed(0x1bd))/0x9)+-parseInt(_0xa48eed(0x1f9))/0xa+parseInt(_0xa48eed(0x20d))/0xb*(parseInt(_0xa48eed(0x1fa))/0xc);if(_0x22cc1d===_0x141e69)break;else _0x3b452b['push'](_0x3b452b['shift']());}catch(_0x1457b5){_0x3b452b['push'](_0x3b452b['shift']());}}}(_0x4cfa,0x88e39));import{ListItemView as _0x7c850e,HighlightedTextView as _0x33c8d7,ButtonView as _0x55e785,ListView as _0x4c8032,IconView as _0x1bcf08,createDropdown as _0x24a436,InputTextView as _0x161a2e}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x39825d,IconPin as _0xdef448,IconCheck as _0x114a55,IconCancel as _0x84d5b3}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x59aca1,ConfirmMixin as _0x483394}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4f5f55}from'es-toolkit/compat';import{AISpinnerView as _0x53e6a8}from'../../aicore/ui/aispinner.js';import{getTranslation as _0xdd0230}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x483394(_0x7c850e){['id'];static [_0x55b91c(0x217)]={'remove':_0x55b91c(0x215),'rename':_0x55b91c(0x200),'pin':_0x55b91c(0x1f2),'unpin':_0x55b91c(0x1f6)};[_0x55b91c(0x212)];[_0x55b91c(0x20e)];[_0x55b91c(0x21a)];constructor(_0x3d5348,_0x39e8ac){const _0x3f9df4=_0x55b91c;super(_0x3d5348);const _0x4d988d=this[_0x3f9df4(0x1eb)];this[_0x3f9df4(0x211)](_0x3f9df4(0x20a),!0x1),this[_0x3f9df4(0x211)](_0x3f9df4(0x1bb),!0x0),this[_0x3f9df4(0x211)](_0x3f9df4(0x1d3),!!_0x39e8ac[_0x3f9df4(0x1d3)]),this[_0x3f9df4(0x211)](_0x3f9df4(0x1e9),null),this['id']=_0x39e8ac['id'];const {title:_0x2014a1,createdAt:_0x3a7e9a,active:_0x30cb71=!0x1}=_0x39e8ac;this[_0x3f9df4(0x21a)]=new _0x33c8d7(),this[_0x3f9df4(0x21a)][_0x3f9df4(0x21c)]=_0x2014a1,this[_0x3f9df4(0x21a)][_0x3f9df4(0x1d9)]({'attributes':{'class':[_0x3f9df4(0x1c0)]}});const _0x1c0d6b=this[_0x3f9df4(0x1ec)](),_0x4463ef=this[_0x3f9df4(0x1c2)](_0x3d5348),_0x223949=this[_0x3f9df4(0x202)](),_0x3c7d47=this[_0x3f9df4(0x1c6)](_0x3d5348,_0x2014a1),_0x453d7c=this[_0x3f9df4(0x1da)](_0x3d5348,_0x3c7d47),_0xe63e7f=this[_0x3f9df4(0x1e5)](_0x3d5348,_0x3c7d47);this[_0x3f9df4(0x212)]=this[_0x3f9df4(0x1be)](),this[_0x3f9df4(0x20e)]=this[_0x3f9df4(0x1be)](),this[_0x3f9df4(0x20e)][_0x3f9df4(0x1c8)](this[_0x3f9df4(0x21a)]),this[_0x3f9df4(0x212)][_0x3f9df4(0x1c8)](_0x4463ef),this[_0x3f9df4(0x212)][_0x3f9df4(0x1c8)](_0x223949),this['on'](_0x3f9df4(0x1f4),(_0x4b7715,_0x19e87a,_0x5bd390)=>{const _0x471793=_0x3f9df4;this[_0x471793(0x212)][_0x471793(0x204)](),this[_0x471793(0x20e)][_0x471793(0x204)](),_0x5bd390?(this[_0x471793(0x212)][_0x471793(0x1c8)](_0x453d7c),this[_0x471793(0x212)][_0x471793(0x1c8)](_0xe63e7f),this[_0x471793(0x20e)][_0x471793(0x1c8)](_0x3c7d47),_0x3c7d47[_0x471793(0x209)][_0x471793(0x1ff)]()):(this[_0x471793(0x212)][_0x471793(0x1c8)](_0x4463ef),this[_0x471793(0x212)][_0x471793(0x1c8)](_0x223949),this[_0x471793(0x20e)][_0x471793(0x1c8)](this[_0x471793(0x21a)]));}),this[_0x3f9df4(0x21e)]({'tag':'li','attributes':{'class':[_0x3f9df4(0x1e0),_0x30cb71?_0x3f9df4(0x1e8):'',_0x4d988d['if'](_0x3f9df4(0x1bb),_0x3f9df4(0x1db),_0x5e7d67=>!_0x5e7d67),_0x4d988d['if'](_0x3f9df4(0x20a),_0x3f9df4(0x1de))],'role':_0x3f9df4(0x1d4)},'children':[{'tag':_0x3f9df4(0x206),'attributes':{'class':[_0x3f9df4(0x1fb)]},'children':[{'tag':_0x3f9df4(0x1e6),'attributes':{'class':[_0x3f9df4(0x1d8),_0x4d988d['if'](_0x3f9df4(0x1e9),_0x3f9df4(0x1db),_0x42a226=>!!_0x42a226)]},'children':_0x30cb71?[_0x1c0d6b]:[]},{'tag':_0x3f9df4(0x1e6),'attributes':{'class':[_0x3f9df4(0x1ef),_0x4d988d['if'](_0x3f9df4(0x1e9),_0x3f9df4(0x1db),_0x364383=>!_0x364383)]},'children':[this[_0x3f9df4(0x1c4)]()]}]},{'tag':_0x3f9df4(0x1e6),'attributes':{'class':[_0x3f9df4(0x1e2)]},'children':[{'tag':_0x3f9df4(0x1e6),'attributes':{'class':[_0x3f9df4(0x21d)]},'on':{'click':this[_0x3f9df4(0x1eb)]['to'](_0x3f9df4(0x1f1))},'children':[{'tag':_0x3f9df4(0x1e6),'attributes':{'class':[_0x3f9df4(0x1d1)]},'children':[{'tag':_0x3f9df4(0x1e6),'attributes':{'class':[_0x3f9df4(0x1c0),_0x4d988d['if'](_0x3f9df4(0x1e9),_0x3f9df4(0x1db),_0x3651cf=>!!_0x3651cf)]},'children':this[_0x3f9df4(0x20e)]},{'tag':_0x3f9df4(0x1e6),'attributes':{'class':[_0x3f9df4(0x201),_0x4d988d['if'](_0x3f9df4(0x1e9),_0x3f9df4(0x1db),_0x1a0dd5=>!_0x1a0dd5)]},'children':[{'text':_0x4d988d['to'](_0x3f9df4(0x1e9),_0x4c08b7=>_0x4c08b7?_0xdd0230(this[_0x3f9df4(0x1e1)],AIChatHistoryListItemView[_0x3f9df4(0x217)][_0x4c08b7]):'')}]}]},{'tag':_0x3f9df4(0x206),'attributes':{'class':[_0x3f9df4(0x219)]},'children':[_0x3a7e9a]}]},{'tag':_0x3f9df4(0x1e6),'attributes':{'class':[_0x3f9df4(0x1c7)]},'children':this[_0x3f9df4(0x212)]}]}]}),this['on'](_0x3f9df4(0x1f1),()=>{const _0x13fb19=_0x3f9df4;this[_0x13fb19(0x20a)]||this[_0x13fb19(0x216)](_0x13fb19(0x1f0),{'id':this['id']});});}[_0x55b91c(0x1e4)](_0x3842a4){const _0x2d8851=_0x55b91c;this[_0x2d8851(0x21a)][_0x2d8851(0x21c)]=_0x4f5f55(_0x3842a4);}[_0x55b91c(0x208)](_0x5cd2be,_0x4d94e6){const _0x23b68b=_0x55b91c;this[_0x23b68b(0x211)](_0x23b68b(0x1e9),_0x4d94e6?_0x5cd2be:null);}[_0x55b91c(0x1ec)](){const _0x27bf38=_0x55b91c,_0x161b58=new _0x1bcf08();return _0x161b58[_0x27bf38(0x211)]({'content':_0x114a55}),_0x161b58;}[_0x55b91c(0x1c2)](_0x32eef8){const _0x253f09=_0x55b91c,_0x2615b4=new _0x55e785(_0x32eef8);return _0x2615b4[_0x253f09(0x211)]({'label':_0xdd0230(_0x32eef8,_0x253f09(0x1dc)),'icon':_0xdef448,'withText':!0x1,'tooltip':!0x0}),_0x2615b4[_0x253f09(0x1f3)](_0x253f09(0x1d0))['to'](this,_0x253f09(0x1d3)),_0x2615b4['on'](_0x253f09(0x1cd),()=>{const _0xd62d82=_0x253f09,_0x171ecd=!this[_0xd62d82(0x1d3)];this[_0xd62d82(0x216)](_0xd62d82(0x1c1),{'id':this['id'],'pinned':_0x171ecd});}),_0x2615b4;}[_0x55b91c(0x202)](){const _0x3ffb03=_0x55b91c,_0x4cb4db=_0x24a436(this[_0x3ffb03(0x1e1)],_0x59aca1),_0x13235=_0x4cb4db[_0x3ffb03(0x1d5)][_0x3ffb03(0x1df)];_0x4cb4db[_0x3ffb03(0x218)][_0x3ffb03(0x211)]({'label':_0xdd0230(this[_0x3ffb03(0x1e1)],_0x3ffb03(0x1fc)),'icon':_0x39825d}),_0x4cb4db[_0x3ffb03(0x21b)]='sw';const _0x375d1d=new _0x55e785(this[_0x3ffb03(0x1e1)]);_0x375d1d[_0x3ffb03(0x1cb)]=_0xdd0230(this[_0x3ffb03(0x1e1)],_0x3ffb03(0x1fe)),_0x375d1d[_0x3ffb03(0x1cf)]=!0x0,_0x375d1d['on'](_0x3ffb03(0x1cd),()=>{const _0x48a2d6=_0x3ffb03;this[_0x48a2d6(0x20a)]=!0x0;});const _0x4908e5=new _0x55e785(this[_0x3ffb03(0x1e1)]);_0x4908e5[_0x3ffb03(0x1cb)]=_0xdd0230(this[_0x3ffb03(0x1e1)],_0x3ffb03(0x1cc)),_0x4908e5[_0x3ffb03(0x1cf)]=!0x0,_0x4908e5['on'](_0x3ffb03(0x1cd),()=>{const _0x40fb65=_0x3ffb03;this[_0x40fb65(0x1c3)](_0xdd0230(this[_0x40fb65(0x1e1)],_0x40fb65(0x1f8)),this[_0x40fb65(0x209)])[_0x40fb65(0x1c9)](()=>{const _0x486c7a=_0x40fb65;this[_0x486c7a(0x216)](_0x486c7a(0x1ce),{'id':this['id']});});});const _0x3f10d1=new _0x4c8032(this[_0x3ffb03(0x1e1)]),_0x4c90a2=new _0x7c850e(this[_0x3ffb03(0x1e1)]);_0x4c90a2[_0x3ffb03(0x1df)][_0x3ffb03(0x1c8)](_0x375d1d);const _0x4a38af=new _0x7c850e(this[_0x3ffb03(0x1e1)]);return _0x4a38af[_0x3ffb03(0x1df)][_0x3ffb03(0x1c8)](_0x4908e5),_0x3f10d1[_0x3ffb03(0x1bf)][_0x3ffb03(0x20c)]([_0x4c90a2,_0x4a38af]),_0x13235[_0x3ffb03(0x1c8)](_0x3f10d1),_0x4cb4db;}[_0x55b91c(0x1c6)](_0x35d000,_0x31f1a7){const _0x4d1615=_0x55b91c,_0x1abe94=new _0x161a2e(_0x35d000),_0x156ea1=_0x1abe94[_0x4d1615(0x1eb)];return _0x1abe94[_0x4d1615(0x1ea)]=_0x31f1a7,_0x1abe94[_0x4d1615(0x1d9)]({'on':{'keydown':_0x156ea1['to'](_0x3397a9=>{const _0x392a77=_0x4d1615;_0x392a77(0x20f)==_0x3397a9[_0x392a77(0x1f5)]&&this[_0x392a77(0x1e3)](_0x1abe94);})}}),_0x1abe94;}[_0x55b91c(0x1da)](_0x112c73,_0x510923){const _0x5aea04=_0x55b91c,_0x5f4813=new _0x55e785(_0x112c73);return _0x5f4813[_0x5aea04(0x211)]({'icon':_0x114a55,'withText':!0x1,'tooltip':_0xdd0230(_0x112c73,_0x5aea04(0x203))}),_0x5f4813[_0x5aea04(0x1d9)]({'attributes':{'class':[_0x5aea04(0x1d6)]}}),_0x5f4813['on'](_0x5aea04(0x1cd),()=>{const _0x2b947d=_0x5aea04;this[_0x2b947d(0x1e3)](_0x510923);}),_0x5f4813;}[_0x55b91c(0x1e3)](_0x7cce11){const _0x2d106c=_0x55b91c,_0x2309ea=_0x7cce11[_0x2d106c(0x209)][_0x2d106c(0x1ea)]||'';this[_0x2d106c(0x21a)][_0x2d106c(0x21c)]=_0x2309ea,this[_0x2d106c(0x20a)]=!0x1,this[_0x2d106c(0x216)](_0x2d106c(0x1ed),{'id':this['id'],'title':_0x2309ea});}[_0x55b91c(0x1e5)](_0x1c8b13,_0x36a1f7){const _0x5e9756=_0x55b91c,_0x4fee01=new _0x55e785(_0x1c8b13);return _0x4fee01[_0x5e9756(0x211)]({'icon':_0x84d5b3,'withText':!0x1,'tooltip':_0xdd0230(_0x1c8b13,_0x5e9756(0x20b))}),_0x4fee01[_0x5e9756(0x1d9)]({'attributes':{'class':[_0x5e9756(0x205)]}}),_0x4fee01['on'](_0x5e9756(0x1cd),()=>{const _0x1104e6=_0x5e9756;this[_0x1104e6(0x20a)]=!0x1,_0x36a1f7[_0x1104e6(0x1ea)]=this[_0x1104e6(0x21a)][_0x1104e6(0x21c)]||'',this[_0x1104e6(0x216)](_0x1104e6(0x1c5));}),_0x4fee01;}[_0x55b91c(0x1c4)](){const _0x229ba5=_0x55b91c,_0x321464=new _0x53e6a8(_0x229ba5(0x1bc));return _0x321464[_0x229ba5(0x1bb)]=!0x0,_0x321464;}[_0x55b91c(0x1dd)](_0x15f095){const _0xc37adb=_0x55b91c;return this[_0xc37adb(0x21a)]&&_0xc37adb(0x213)==typeof this[_0xc37adb(0x21a)][_0xc37adb(0x21c)]&&this[_0xc37adb(0x21a)][_0xc37adb(0x21c)][_0xc37adb(0x1d2)](_0x15f095)?{'title':!0x0}:null;}[_0x55b91c(0x1fd)](_0x393904){const _0x1a4dac=_0x55b91c;this[_0x1a4dac(0x21a)][_0x1a4dac(0x1fd)](_0x393904);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20b978=_0x44f1;(function(_0x3d8566,_0x29e498){const _0x3c795a=_0x44f1,_0x18b220=_0x3d8566();while(!![]){try{const _0x4e2349=-parseInt(_0x3c795a(0xec))/0x1+-parseInt(_0x3c795a(0xe5))/0x2+-parseInt(_0x3c795a(0xf9))/0x3*(parseInt(_0x3c795a(0xef))/0x4)+-parseInt(_0x3c795a(0xee))/0x5*(-parseInt(_0x3c795a(0xf8))/0x6)+parseInt(_0x3c795a(0xfa))/0x7+parseInt(_0x3c795a(0xfb))/0x8+parseInt(_0x3c795a(0xfd))/0x9;if(_0x4e2349===_0x29e498)break;else _0x18b220['push'](_0x18b220['shift']());}catch(_0x367349){_0x18b220['push'](_0x18b220['shift']());}}}(_0x2d7c,0xbe9e0));function _0x44f1(_0x28b426,_0x1ee35d){const _0x2d7c27=_0x2d7c();return _0x44f1=function(_0x44f1d1,_0xd7162a){_0x44f1d1=_0x44f1d1-0xe3;let _0x3d25a1=_0x2d7c27[_0x44f1d1];return _0x3d25a1;},_0x44f1(_0x28b426,_0x1ee35d);}import{ListItemView as _0x56ace3,View as _0x2185ed,ListView as _0x56667f}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x56ace3{[_0x20b978(0xed)];[_0x20b978(0xfe)];[_0x20b978(0xe3)];constructor(_0x479d6c,{title:_0x322294,items:_0x4771c8}){const _0x196038=_0x20b978;super(_0x479d6c);const _0x2ff117=this[_0x196038(0xf6)];this[_0x196038(0x102)](_0x196038(0xf2),!0x0),this[_0x196038(0xed)]=_0x322294,this[_0x196038(0xfe)]=_0x4771c8;const _0xdd0218=new _0x2185ed(_0x479d6c);_0xdd0218[_0x196038(0xeb)]({'tag':_0x196038(0xf7),'attributes':{'class':[_0x196038(0x100)]},'children':[this[_0x196038(0xed)]]}),this[_0x196038(0xe3)]=new _0x56667f(_0x479d6c),this[_0x196038(0xe3)][_0x196038(0xf4)][_0x196038(0xfc)](this[_0x196038(0xfe)]),this[_0x196038(0xeb)]({'tag':'li','attributes':{'class':[_0x196038(0xff),_0x2ff117['if'](_0x196038(0xf2),_0x196038(0xe9),_0x4d6293=>!_0x4d6293)]},'children':[_0xdd0218,this[_0x196038(0xe3)]]});}[_0x20b978(0xf0)](_0x18221e){const _0x1c98c5=_0x20b978,_0x3c896c=this[_0x1c98c5(0xfe)][_0x1c98c5(0xf1)];let _0x5b4fe8=0x0;for(const _0x194433 of this[_0x1c98c5(0xfe)]){if(_0x18221e){const _0x1f3de0=_0x194433[_0x1c98c5(0xf3)](_0x18221e);_0x194433[_0x1c98c5(0xf2)]=!!_0x1f3de0,_0x194433[_0x1c98c5(0xe8)](_0x18221e);}else _0x194433[_0x1c98c5(0xf2)]=!0x0,_0x194433[_0x1c98c5(0xe8)](null);_0x194433[_0x1c98c5(0xf2)]&&_0x5b4fe8++;}return this[_0x1c98c5(0xf2)]=_0x5b4fe8>0x0,{'resultsCount':_0x5b4fe8,'totalItemsCount':_0x3c896c};}[_0x20b978(0xe6)](_0x15fd4c){const _0x54f7c7=_0x20b978;return this[_0x54f7c7(0xfe)][_0x54f7c7(0xe7)](_0x529bfe=>_0x529bfe['id']===_0x15fd4c);}[_0x20b978(0xe4)](_0xdbea30){const _0x52bfa9=_0x20b978,_0x4241b7=this[_0x52bfa9(0xfe)][_0x52bfa9(0xf5)](_0xdbea30);-0x1!==_0x4241b7&&(this[_0x52bfa9(0xfe)][_0x52bfa9(0x101)](_0x4241b7,0x1),this[_0x52bfa9(0xe3)][_0x52bfa9(0xf4)][_0x52bfa9(0xea)](_0xdbea30));}}function _0x2d7c(){const _0x3137c3=['removeItem','1133714RXeynO','getItem','find','highlightText','ck-hidden','remove','setTemplate','941172dwVulX','title','59765yxRmOH','1613756FcoCEv','filter','length','isVisible','isMatching','items','indexOf','bindTemplate','div','468DaWJlJ','9TFcdKU','871815xOljWy','10225280SrzBJm','addMany','10476675dJflOl','itemsViews','ck-ai-chat-history__section','ck-ai-chat-history__section-title','splice','set','_itemsListView'];_0x2d7c=function(){return _0x3137c3;};return _0x2d7c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x50a9b6=_0x18ba;(function(_0x49fc3d,_0x38fe8c){const _0x434b56=_0x18ba,_0x54c74e=_0x49fc3d();while(!![]){try{const _0x2cfd8a=-parseInt(_0x434b56(0x1ad))/0x1*(parseInt(_0x434b56(0x197))/0x2)+parseInt(_0x434b56(0x19e))/0x3+parseInt(_0x434b56(0x16d))/0x4+-parseInt(_0x434b56(0x190))/0x5+parseInt(_0x434b56(0x196))/0x6+-parseInt(_0x434b56(0x164))/0x7+parseInt(_0x434b56(0x18a))/0x8;if(_0x2cfd8a===_0x38fe8c)break;else _0x54c74e['push'](_0x54c74e['shift']());}catch(_0x15f593){_0x54c74e['push'](_0x54c74e['shift']());}}}(_0x470e,0x447c7));import{View as _0x2e48c5,SearchTextView as _0x431960,FormHeaderView as _0x15d32c,ButtonView as _0x49b2b0}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3ecfe6,IconCancel as _0x2bc25e,IconPlus as _0x4fe8e6}from'ckeditor5/src/icons.js';function _0x470e(){const _0xd7720e=['searchView','_createErrorView','_createSearchView','144464DKCcZa','change:hasItems','getItem','isMaximized','children','addMany','2360540iDhDcE','updateItemLoadingState','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','openChat','sectionsView','updateLoadingState','1849020cyJBNW','4uHisrF','value','render','change:errorMessage','ck-rounded-corners','itemsViews','isSearchViewVisible','597423fESHXd','add','isEmptyViewVisible','_refreshSearch','indexOf','isMainErrorViewVisible','resizeButton','execute','setTemplate','ck-ai-chat-history','set','_createSkeletonView','ck-ai-chat__start-conversation','ck-ai-notification_error','bindTemplate','5296kYFjwE','AI_CHAT_HISTORY_HEADING','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__content','fire','aiHistory','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_LABEL','removeItem','skeletonView','remove','change:isLoading','ck-ai-notification_error__dismiss-button','splice','bind','updateHistoryItemsWithCategories','errorMessage','length','2148825hoAVhz','ck-hidden','some','title','ltr','updateTitle','_updateViewVisibility','isVisible','extendTemplate','2179300idiaKh','removeHistoryItem','ck-ai-notification','sections','_createEmptyStateView','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-history__empty','locale','AI_CHAT_LABEL_NEW_CHAT','queryView','mainErrorView','delegate','clear','items','ck-reset_all','updateItemTitle','ck-ai-chat-history__empty-message','div','emptyView','push','element','isLoading','search','fieldView','_createListItemViews','hasItems'];_0x470e=function(){return _0xd7720e;};return _0x470e();}import{AIChatHistorySectionListView as _0x3bc6a6}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x229c06}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x517fc1}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5baa29}from'../aichathistoryui.js';import{AISkeletonView as _0x273ba4,SKELETON_DEFINITIONS as _0x3cb277}from'../../aicore/ui/aiskeleton.js';function _0x18ba(_0x2ca29f,_0x35451a){const _0x470e6c=_0x470e();return _0x18ba=function(_0x18ba26,_0x146ed4){_0x18ba26=_0x18ba26-0x157;let _0x9f250c=_0x470e6c[_0x18ba26];return _0x9f250c;},_0x18ba(_0x2ca29f,_0x35451a);}import{createResizeButton as _0x279e1a}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x12d9fa}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2e48c5{[_0x50a9b6(0x187)];[_0x50a9b6(0x177)];[_0x50a9b6(0x15b)];[_0x50a9b6(0x17f)];[_0x50a9b6(0x194)];[_0x50a9b6(0x1a4)];constructor(_0x3f9370,_0x59fc57){const _0x477f18=_0x50a9b6;super(_0x3f9370),this[_0x477f18(0x1a8)](_0x477f18(0x186),!0x1),this[_0x477f18(0x1a8)](_0x477f18(0x182),!0x0),this[_0x477f18(0x1a8)](_0x477f18(0x162),''),this[_0x477f18(0x1a8)](_0x477f18(0x18d),!0x1),this[_0x477f18(0x1a8)](_0x477f18(0x19d),!0x1),this[_0x477f18(0x1a8)](_0x477f18(0x1a0),!0x1),this[_0x477f18(0x1a8)](_0x477f18(0x1a3),!0x1);const _0x33cb5b=new _0x15d32c(_0x3f9370,{'label':_0x12d9fa(_0x3f9370,_0x477f18(0x1ae)),'icon':_0x3ecfe6,'class':_0x477f18(0x172)});_0x59fc57&&(this[_0x477f18(0x1a4)]=_0x279e1a(_0x3f9370,this),_0x33cb5b[_0x477f18(0x18e)][_0x477f18(0x19f)](this[_0x477f18(0x1a4)])),this[_0x477f18(0x194)]=new _0x3bc6a6(_0x3f9370,[]),this[_0x477f18(0x194)][_0x477f18(0x178)](..._0x5baa29)['to'](this),this[_0x477f18(0x177)]=this[_0x477f18(0x188)](),this[_0x477f18(0x15b)]=this[_0x477f18(0x1a9)](),this[_0x477f18(0x17f)]=this[_0x477f18(0x171)](),this[_0x477f18(0x187)]=this[_0x477f18(0x189)](),this[_0x477f18(0x177)][_0x477f18(0x16c)]({'attributes':{'class':[this[_0x477f18(0x1ac)]['if'](_0x477f18(0x1a3),_0x477f18(0x165),_0x59fe80=>!_0x59fe80)]}}),this['on'](_0x477f18(0x15d),()=>this[_0x477f18(0x16a)]()),this['on'](_0x477f18(0x18b),()=>this[_0x477f18(0x16a)]()),this['on'](_0x477f18(0x19a),()=>this[_0x477f18(0x16a)]()),this[_0x477f18(0x1a6)]({'tag':_0x477f18(0x17e),'attributes':{'class':['ck',_0x477f18(0x17b),_0x477f18(0x1a7),_0x477f18(0x19b)],'dir':_0x477f18(0x168)},'children':[_0x33cb5b,{'tag':_0x477f18(0x17e),'attributes':{'class':[_0x477f18(0x1b0)]},'children':[this[_0x477f18(0x15b)],this[_0x477f18(0x177)],this[_0x477f18(0x17f)],this[_0x477f18(0x187)]]}]});}[_0x50a9b6(0x16a)](){const _0x22f86b=_0x50a9b6;this[_0x22f86b(0x19d)]=!this[_0x22f86b(0x182)]&&this[_0x22f86b(0x186)],this[_0x22f86b(0x1a0)]=!this[_0x22f86b(0x182)]&&!this[_0x22f86b(0x186)]&&!this[_0x22f86b(0x162)],this[_0x22f86b(0x1a3)]=!this[_0x22f86b(0x19d)]&&!!this[_0x22f86b(0x162)];}[_0x50a9b6(0x189)](){const _0x45a099=_0x50a9b6,_0x4a310e=new _0x431960(this[_0x45a099(0x174)],{'filteredView':this[_0x45a099(0x194)],'queryView':{'label':_0x12d9fa(this[_0x45a099(0x174)],_0x45a099(0x159))},'infoView':{'text':{'notFound':{'primary':_0x3b7f37=>_0x12d9fa(this[_0x45a099(0x174)],_0x45a099(0x192),_0x3b7f37),'secondary':_0x12d9fa(this[_0x45a099(0x174)],_0x45a099(0x158))}}}}),_0x3b2fb3=this[_0x45a099(0x188)]();return _0x3b2fb3[_0x45a099(0x16c)]({'attributes':{'class':[this[_0x45a099(0x1ac)]['if'](_0x45a099(0x162),_0x45a099(0x165),_0x263205=>!_0x263205)]}}),_0x4a310e['on'](_0x45a099(0x199),()=>{const _0x2beaee=_0x45a099;_0x4a310e[_0x2beaee(0x18e)][_0x2beaee(0x19f)](_0x3b2fb3,0x1);}),_0x4a310e[_0x45a099(0x16c)]({'attributes':{'class':[this[_0x45a099(0x1ac)]['if'](_0x45a099(0x19d),_0x45a099(0x165),_0x51301b=>!_0x51301b)]}}),_0x4a310e;}[_0x50a9b6(0x1a9)](){const _0x40e67c=_0x50a9b6,_0x360c85=new _0x273ba4(this[_0x40e67c(0x174)],_0x3cb277[_0x40e67c(0x157)]);return _0x360c85[_0x40e67c(0x16c)]({'attributes':{'class':[this[_0x40e67c(0x1ac)]['if'](_0x40e67c(0x182),_0x40e67c(0x165),_0x414cd7=>!_0x414cd7)]}}),_0x360c85;}[_0x50a9b6(0x188)](){const _0x1c5394=_0x50a9b6,_0x1c5324=new _0x2e48c5(this[_0x1c5394(0x174)]),_0x502ace=new _0x49b2b0(this[_0x1c5394(0x174)]);_0x502ace[_0x1c5394(0x1a8)]({'withText':!0x1,'icon':_0x2bc25e,'class':_0x1c5394(0x15e)}),_0x502ace[_0x1c5394(0x160)](_0x1c5394(0x16b))['to'](this,_0x1c5394(0x186),_0x2f4b06=>!!_0x2f4b06),_0x502ace['on'](_0x1c5394(0x1a5),()=>{const _0x31ea5c=_0x1c5394;this[_0x31ea5c(0x162)]='';});const _0x1fd288=this[_0x1c5394(0x1ac)];return _0x1c5324[_0x1c5394(0x1a6)]({'tag':_0x1c5394(0x17e),'attributes':{'class':['ck',_0x1c5394(0x16f),_0x1c5394(0x1ab)]},'children':[{'tag':'p','children':[{'text':_0x1fd288['to'](_0x1c5394(0x162))}]},_0x502ace]}),_0x1c5324;}[_0x50a9b6(0x171)](){const _0x9310a2=_0x50a9b6,_0x5cd263=new _0x49b2b0(this[_0x9310a2(0x174)]);_0x5cd263[_0x9310a2(0x1a8)]({'label':_0x12d9fa(this[_0x9310a2(0x174)],_0x9310a2(0x175)),'withText':!0x0,'icon':_0x4fe8e6,'class':_0x9310a2(0x1aa)}),_0x5cd263['on'](_0x9310a2(0x1a5),()=>{const _0x26c294=_0x9310a2;this[_0x26c294(0x1b1)](_0x26c294(0x193));});const _0x1fb7d1=new _0x2e48c5(this[_0x9310a2(0x174)]);return _0x1fb7d1[_0x9310a2(0x1a6)]({'tag':_0x9310a2(0x17e),'attributes':{'class':[_0x9310a2(0x173),this[_0x9310a2(0x1ac)]['if'](_0x9310a2(0x1a0),_0x9310a2(0x165),_0x475ce1=>!_0x475ce1)]},'children':[{'tag':'p','attributes':{'class':[_0x9310a2(0x17d)]},'children':[_0x12d9fa(this[_0x9310a2(0x174)],_0x9310a2(0x1af))]},_0x5cd263]}),_0x1fb7d1;}[_0x50a9b6(0x185)](_0x18c565,_0xa3c028){const _0x36ab58=_0x50a9b6,_0x15f79a=[];for(const _0x37996a of _0x18c565){const _0x25780f=new _0x517fc1(_0xa3c028,_0x37996a);_0x25780f[_0x36ab58(0x178)](..._0x5baa29)['to'](this),_0x15f79a[_0x36ab58(0x180)](_0x25780f);}return _0x15f79a;}[_0x50a9b6(0x161)](_0x1fad38){const _0x1b0f4f=_0x50a9b6,_0x2963f1=this[_0x1b0f4f(0x174)]||'en',_0x30b4ec=[];for(const _0x3a96ea of _0x1fad38){const _0xd85450=this[_0x1b0f4f(0x185)](_0x3a96ea[_0x1b0f4f(0x17a)],_0x2963f1);_0x30b4ec[_0x1b0f4f(0x180)](new _0x229c06(_0x2963f1,{'title':_0x3a96ea[_0x1b0f4f(0x167)],'items':_0xd85450}));}this[_0x1b0f4f(0x194)][_0x1b0f4f(0x170)]=_0x30b4ec,this[_0x1b0f4f(0x194)][_0x1b0f4f(0x17a)][_0x1b0f4f(0x179)](),this[_0x1b0f4f(0x194)][_0x1b0f4f(0x17a)][_0x1b0f4f(0x18f)](_0x30b4ec),this[_0x1b0f4f(0x186)]=_0x1fad38[_0x1b0f4f(0x166)](_0xcfe906=>_0xcfe906[_0x1b0f4f(0x17a)][_0x1b0f4f(0x163)]>0x0),this[_0x1b0f4f(0x1a1)]();}[_0x50a9b6(0x16e)](_0x1f8c33){const _0x2fa2b5=_0x50a9b6;for(const _0x233bbb of this[_0x2fa2b5(0x194)][_0x2fa2b5(0x170)]){const _0x2056dd=_0x233bbb[_0x2fa2b5(0x18c)](_0x1f8c33);if(_0x2056dd){if(_0x233bbb[_0x2fa2b5(0x15a)](_0x2056dd),0x0===_0x233bbb[_0x2fa2b5(0x19c)][_0x2fa2b5(0x163)]){const _0x2a42e6=this[_0x2fa2b5(0x194)][_0x2fa2b5(0x170)][_0x2fa2b5(0x1a2)](_0x233bbb);-0x1!==_0x2a42e6&&(this[_0x2fa2b5(0x194)][_0x2fa2b5(0x170)][_0x2fa2b5(0x15f)](_0x2a42e6,0x1),this[_0x2fa2b5(0x194)][_0x2fa2b5(0x17a)][_0x2fa2b5(0x15c)](_0x233bbb));}this[_0x2fa2b5(0x186)]=this[_0x2fa2b5(0x194)][_0x2fa2b5(0x170)][_0x2fa2b5(0x163)]>0x0,this[_0x2fa2b5(0x1a1)]();break;}}}[_0x50a9b6(0x17c)](_0x4e8a63,_0x35a022){const _0x7782a2=_0x50a9b6;for(const _0x2356ff of this[_0x7782a2(0x194)][_0x7782a2(0x170)]){const _0x1049a6=_0x2356ff[_0x7782a2(0x18c)](_0x4e8a63);if(_0x1049a6){_0x1049a6[_0x7782a2(0x169)](_0x35a022);break;}}}[_0x50a9b6(0x191)](_0x41c9e2,_0x1c3cba,_0x2dc957){const _0x505bc8=_0x50a9b6;for(const _0x4296e6 of this[_0x505bc8(0x194)][_0x505bc8(0x170)]){const _0x5b6a60=_0x4296e6[_0x505bc8(0x18c)](_0x41c9e2);if(_0x5b6a60){_0x5b6a60[_0x505bc8(0x195)](_0x1c3cba,_0x2dc957);break;}}}[_0x50a9b6(0x1a1)](){const _0x445655=_0x50a9b6;if(this[_0x445655(0x186)]){const _0x1b0ffd=this[_0x445655(0x187)][_0x445655(0x176)][_0x445655(0x184)]?.[_0x445655(0x181)]?.[_0x445655(0x198)]||'';this[_0x445655(0x187)][_0x445655(0x183)](_0x1b0ffd);}}}
|
|
23
|
+
const _0x3638f2=_0x4627;(function(_0x1a6d39,_0x4f3e6b){const _0x3de284=_0x4627,_0x5ef57a=_0x1a6d39();while(!![]){try{const _0x548e64=-parseInt(_0x3de284(0x1b6))/0x1+-parseInt(_0x3de284(0x1b4))/0x2*(-parseInt(_0x3de284(0x1d4))/0x3)+parseInt(_0x3de284(0x199))/0x4*(-parseInt(_0x3de284(0x1e2))/0x5)+-parseInt(_0x3de284(0x1c3))/0x6+-parseInt(_0x3de284(0x1d7))/0x7*(parseInt(_0x3de284(0x1ba))/0x8)+parseInt(_0x3de284(0x1cd))/0x9+parseInt(_0x3de284(0x19c))/0xa;if(_0x548e64===_0x4f3e6b)break;else _0x5ef57a['push'](_0x5ef57a['shift']());}catch(_0x4e9c92){_0x5ef57a['push'](_0x5ef57a['shift']());}}}(_0x4c2d,0x4cbb3));import{View as _0x150ad0,SearchTextView as _0x3b2dad,FormHeaderView as _0x5b2a9d,ButtonView as _0x2c6ab4}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xd1706a,IconCancel as _0x44d81b,IconPlus as _0x548678}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2d33a9}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x3d0584}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2490ad}from'./aichathistorylistitemview.js';function _0x4627(_0x4665f6,_0x2823b2){const _0x4c2de5=_0x4c2d();return _0x4627=function(_0x462753,_0x1ea645){_0x462753=_0x462753-0x189;let _0xdeb31c=_0x4c2de5[_0x462753];return _0xdeb31c;},_0x4627(_0x4665f6,_0x2823b2);}function _0x4c2d(){const _0x486162=['AI_CHAT_HISTORY_EMPTY_MESSAGE','_refreshSearch','setTemplate','1085LTvXzt','AI_CHAT_HISTORY_SEARCH_LABEL','bindTemplate','mainErrorView','ck-reset_all','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','isLoading','ck-hidden','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','ck-ai-chat-history__content','updateTitle','removeHistoryItem','isMaximized','ck-rounded-corners','fire','remove','ck-ai-chat-history','getItem','element','isEmptyViewVisible','11036EAyFkB','AI_CHAT_LABEL_NEW_CHAT','children','9269680DMULec','updateItemLoadingState','errorMessage','ck-ai-notification_error__dismiss-button','isVisible','itemsViews','openChat','title','updateLoadingState','clear','some','push','AI_CHAT_HISTORY_HEADING','queryView','aiHistory','searchView','addMany','change:errorMessage','ck-ai-chat-history__empty','emptyView','sectionsView','change:isLoading','isMainErrorViewVisible','resizeButton','4aKvZZY','set','397142mFfFis','ck-ai-chat__start-conversation','ck-ai-notification_error','_createListItemViews','24GpHMuk','value','_updateViewVisibility','fieldView','updateItemTitle','splice','div','locale','ltr','3317298swSJOI','removeItem','sections','_createErrorView','isSearchViewVisible','_createSearchView','length','items','search','change:hasItems','4847472vkeKkf','_createSkeletonView','ck-ai-chat-history__empty-message','hasItems','ck-ai-notification','delegate','indexOf','880254ymaQIx','updateHistoryItemsWithCategories','add','441917nacfug','bind','skeletonView','render','execute','extendTemplate','_createEmptyStateView','ck-ai-header\x20ck-ai-header_history'];_0x4c2d=function(){return _0x486162;};return _0x4c2d();}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x1af161}from'../aichathistoryui.js';import{AISkeletonView as _0x2c3e80,SKELETON_DEFINITIONS as _0x14d5c9}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x303b5e}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x639742}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x150ad0{[_0x3638f2(0x1ab)];[_0x3638f2(0x1e5)];[_0x3638f2(0x1d9)];[_0x3638f2(0x1af)];[_0x3638f2(0x1b0)];[_0x3638f2(0x1b3)];constructor(_0x238815,_0x2f8181){const _0x2d7abd=_0x3638f2;super(_0x238815),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x1d0),!0x1),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x18b),!0x0),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x19e),''),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x191),!0x1),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x1c7),!0x1),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x198),!0x1),this[_0x2d7abd(0x1b5)](_0x2d7abd(0x1b2),!0x1);const _0x41d386=new _0x5b2a9d(_0x238815,{'label':_0x639742(_0x238815,_0x2d7abd(0x1a8)),'icon':_0xd1706a,'class':_0x2d7abd(0x1de)});_0x2f8181&&(this[_0x2d7abd(0x1b3)]=_0x303b5e(_0x238815,this),_0x41d386[_0x2d7abd(0x19b)][_0x2d7abd(0x1d6)](this[_0x2d7abd(0x1b3)])),this[_0x2d7abd(0x1b0)]=new _0x2d33a9(_0x238815,[]),this[_0x2d7abd(0x1b0)][_0x2d7abd(0x1d2)](..._0x1af161)['to'](this),this[_0x2d7abd(0x1e5)]=this[_0x2d7abd(0x1c6)](),this[_0x2d7abd(0x1d9)]=this[_0x2d7abd(0x1ce)](),this[_0x2d7abd(0x1af)]=this[_0x2d7abd(0x1dd)](),this[_0x2d7abd(0x1ab)]=this[_0x2d7abd(0x1c8)](),this[_0x2d7abd(0x1e5)][_0x2d7abd(0x1dc)]({'attributes':{'class':[this[_0x2d7abd(0x1e4)]['if'](_0x2d7abd(0x1b2),_0x2d7abd(0x18c),_0x5dd3d2=>!_0x5dd3d2)]}}),this['on'](_0x2d7abd(0x1b1),()=>this[_0x2d7abd(0x1bc)]()),this['on'](_0x2d7abd(0x1cc),()=>this[_0x2d7abd(0x1bc)]()),this['on'](_0x2d7abd(0x1ad),()=>this[_0x2d7abd(0x1bc)]()),this[_0x2d7abd(0x1e1)]({'tag':_0x2d7abd(0x1c0),'attributes':{'class':['ck',_0x2d7abd(0x189),_0x2d7abd(0x195),_0x2d7abd(0x192)],'dir':_0x2d7abd(0x1c2)},'children':[_0x41d386,{'tag':_0x2d7abd(0x1c0),'attributes':{'class':[_0x2d7abd(0x18e)]},'children':[this[_0x2d7abd(0x1d9)],this[_0x2d7abd(0x1e5)],this[_0x2d7abd(0x1af)],this[_0x2d7abd(0x1ab)]]}]});}[_0x3638f2(0x1bc)](){const _0x17ee5d=_0x3638f2;this[_0x17ee5d(0x1c7)]=!this[_0x17ee5d(0x18b)]&&this[_0x17ee5d(0x1d0)],this[_0x17ee5d(0x198)]=!this[_0x17ee5d(0x18b)]&&!this[_0x17ee5d(0x1d0)]&&!this[_0x17ee5d(0x19e)],this[_0x17ee5d(0x1b2)]=!this[_0x17ee5d(0x1c7)]&&!!this[_0x17ee5d(0x19e)];}[_0x3638f2(0x1c8)](){const _0x4836c2=_0x3638f2,_0x45fc24=new _0x3b2dad(this[_0x4836c2(0x1c1)],{'filteredView':this[_0x4836c2(0x1b0)],'queryView':{'label':_0x639742(this[_0x4836c2(0x1c1)],_0x4836c2(0x1e3))},'infoView':{'text':{'notFound':{'primary':_0x1294f5=>_0x639742(this[_0x4836c2(0x1c1)],_0x4836c2(0x18a),_0x1294f5),'secondary':_0x639742(this[_0x4836c2(0x1c1)],_0x4836c2(0x18d))}}}}),_0x4ec474=this[_0x4836c2(0x1c6)]();return _0x4ec474[_0x4836c2(0x1dc)]({'attributes':{'class':[this[_0x4836c2(0x1e4)]['if'](_0x4836c2(0x19e),_0x4836c2(0x18c),_0x3cab72=>!_0x3cab72)]}}),_0x45fc24['on'](_0x4836c2(0x1da),()=>{const _0x9a4c72=_0x4836c2;_0x45fc24[_0x9a4c72(0x19b)][_0x9a4c72(0x1d6)](_0x4ec474,0x1);}),_0x45fc24[_0x4836c2(0x1dc)]({'attributes':{'class':[this[_0x4836c2(0x1e4)]['if'](_0x4836c2(0x1c7),_0x4836c2(0x18c),_0x1b6dc4=>!_0x1b6dc4)]}}),_0x45fc24;}[_0x3638f2(0x1ce)](){const _0x278e52=_0x3638f2,_0x184d6d=new _0x2c3e80(this[_0x278e52(0x1c1)],_0x14d5c9[_0x278e52(0x1aa)]);return _0x184d6d[_0x278e52(0x1dc)]({'attributes':{'class':[this[_0x278e52(0x1e4)]['if'](_0x278e52(0x18b),_0x278e52(0x18c),_0x3575a4=>!_0x3575a4)]}}),_0x184d6d;}[_0x3638f2(0x1c6)](){const _0xeae7f0=_0x3638f2,_0xfcd4c6=new _0x150ad0(this[_0xeae7f0(0x1c1)]),_0x210f77=new _0x2c6ab4(this[_0xeae7f0(0x1c1)]);_0x210f77[_0xeae7f0(0x1b5)]({'withText':!0x1,'icon':_0x44d81b,'class':_0xeae7f0(0x19f)}),_0x210f77[_0xeae7f0(0x1d8)](_0xeae7f0(0x1a0))['to'](this,_0xeae7f0(0x1d0),_0x2b17e1=>!!_0x2b17e1),_0x210f77['on'](_0xeae7f0(0x1db),()=>{const _0x1a804f=_0xeae7f0;this[_0x1a804f(0x19e)]='';});const _0xa2e43=this[_0xeae7f0(0x1e4)];return _0xfcd4c6[_0xeae7f0(0x1e1)]({'tag':_0xeae7f0(0x1c0),'attributes':{'class':['ck',_0xeae7f0(0x1d1),_0xeae7f0(0x1b8)]},'children':[{'tag':'p','children':[{'text':_0xa2e43['to'](_0xeae7f0(0x19e))}]},_0x210f77]}),_0xfcd4c6;}[_0x3638f2(0x1dd)](){const _0x2cd046=_0x3638f2,_0x2f5ab9=new _0x2c6ab4(this[_0x2cd046(0x1c1)]);_0x2f5ab9[_0x2cd046(0x1b5)]({'label':_0x639742(this[_0x2cd046(0x1c1)],_0x2cd046(0x19a)),'withText':!0x0,'icon':_0x548678,'class':_0x2cd046(0x1b7)}),_0x2f5ab9['on'](_0x2cd046(0x1db),()=>{const _0x1b1465=_0x2cd046;this[_0x1b1465(0x193)](_0x1b1465(0x1a2));});const _0x5234a5=new _0x150ad0(this[_0x2cd046(0x1c1)]);return _0x5234a5[_0x2cd046(0x1e1)]({'tag':_0x2cd046(0x1c0),'attributes':{'class':[_0x2cd046(0x1ae),this[_0x2cd046(0x1e4)]['if'](_0x2cd046(0x198),_0x2cd046(0x18c),_0x5c25c9=>!_0x5c25c9)]},'children':[{'tag':'p','attributes':{'class':[_0x2cd046(0x1cf)]},'children':[_0x639742(this[_0x2cd046(0x1c1)],_0x2cd046(0x1df))]},_0x2f5ab9]}),_0x5234a5;}[_0x3638f2(0x1b9)](_0x108853,_0x1bdfc2){const _0x505e60=_0x3638f2,_0xb24b7c=[];for(const _0x499759 of _0x108853){const _0x19201f=new _0x2490ad(_0x1bdfc2,_0x499759);_0x19201f[_0x505e60(0x1d2)](..._0x1af161)['to'](this),_0xb24b7c[_0x505e60(0x1a7)](_0x19201f);}return _0xb24b7c;}[_0x3638f2(0x1d5)](_0xb11da0){const _0x5a6346=_0x3638f2,_0x11ea8e=this[_0x5a6346(0x1c1)]||'en',_0x4bc918=[];for(const _0x8861c5 of _0xb11da0){const _0x3df94d=this[_0x5a6346(0x1b9)](_0x8861c5[_0x5a6346(0x1ca)],_0x11ea8e);_0x4bc918[_0x5a6346(0x1a7)](new _0x3d0584(_0x11ea8e,{'title':_0x8861c5[_0x5a6346(0x1a3)],'items':_0x3df94d}));}this[_0x5a6346(0x1b0)][_0x5a6346(0x1c5)]=_0x4bc918,this[_0x5a6346(0x1b0)][_0x5a6346(0x1ca)][_0x5a6346(0x1a5)](),this[_0x5a6346(0x1b0)][_0x5a6346(0x1ca)][_0x5a6346(0x1ac)](_0x4bc918),this[_0x5a6346(0x1d0)]=_0xb11da0[_0x5a6346(0x1a6)](_0x3428fa=>_0x3428fa[_0x5a6346(0x1ca)][_0x5a6346(0x1c9)]>0x0),this[_0x5a6346(0x1e0)]();}[_0x3638f2(0x190)](_0x1b00e5){const _0x508c82=_0x3638f2;for(const _0x398d13 of this[_0x508c82(0x1b0)][_0x508c82(0x1c5)]){const _0x41de29=_0x398d13[_0x508c82(0x196)](_0x1b00e5);if(_0x41de29){if(_0x398d13[_0x508c82(0x1c4)](_0x41de29),0x0===_0x398d13[_0x508c82(0x1a1)][_0x508c82(0x1c9)]){const _0x35ff57=this[_0x508c82(0x1b0)][_0x508c82(0x1c5)][_0x508c82(0x1d3)](_0x398d13);-0x1!==_0x35ff57&&(this[_0x508c82(0x1b0)][_0x508c82(0x1c5)][_0x508c82(0x1bf)](_0x35ff57,0x1),this[_0x508c82(0x1b0)][_0x508c82(0x1ca)][_0x508c82(0x194)](_0x398d13));}this[_0x508c82(0x1d0)]=this[_0x508c82(0x1b0)][_0x508c82(0x1c5)][_0x508c82(0x1c9)]>0x0,this[_0x508c82(0x1e0)]();break;}}}[_0x3638f2(0x1be)](_0x1c1730,_0x509ef4){const _0x1b9db1=_0x3638f2;for(const _0x28fda8 of this[_0x1b9db1(0x1b0)][_0x1b9db1(0x1c5)]){const _0x3c1c49=_0x28fda8[_0x1b9db1(0x196)](_0x1c1730);if(_0x3c1c49){_0x3c1c49[_0x1b9db1(0x18f)](_0x509ef4);break;}}}[_0x3638f2(0x19d)](_0x5af566,_0x3e4e9e,_0x7598cb){const _0x3003c0=_0x3638f2;for(const _0x26f430 of this[_0x3003c0(0x1b0)][_0x3003c0(0x1c5)]){const _0x2b30eb=_0x26f430[_0x3003c0(0x196)](_0x5af566);if(_0x2b30eb){_0x2b30eb[_0x3003c0(0x1a4)](_0x3e4e9e,_0x7598cb);break;}}}[_0x3638f2(0x1e0)](){const _0x2fe395=_0x3638f2;if(this[_0x2fe395(0x1d0)]){const _0x4d0289=this[_0x2fe395(0x1ab)][_0x2fe395(0x1a9)][_0x2fe395(0x1bd)]?.[_0x2fe395(0x197)]?.[_0x2fe395(0x1bb)]||'';this[_0x2fe395(0x1ab)][_0x2fe395(0x1cb)](_0x4d0289);}}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1d51b9=_0x3d41;function _0x4a7e(){const _0x11d39e=['callCustomReview','pluginName','json','signal','/documents','https://ai.cke-cs.com/v1','ai-request-failed','application/json','fix-grammar','uploadDocument','MAKE_LONGER','isOfficialPlugin','reset','continue','/files','/calls/','PUT','upsertAIActionRating','toString','releaseLock','PATCH','/models/1','define','make-longer','stringify','ai-request-aborted','IMPROVE_WRITING','callSystemReview','executeAction','statusText','deleteDocument','init','traceId','queryAssistant','_decoder','MAKE_SHORTER','24ksjEZN','TRANSLATE','212iJtlsw','MAKE_TONE_FORMAL','true','requires','config','deleteFile','group','make-shorter','fetchConversationMessages','GET','get','make-tone-casual','length','executeCustomAction','push','excludeEmpty','_getStreamReader','30jnJOtI','positiveCount','MAKE_TONE_CASUAL','body','ai-missing-token','DELETE','/calls','file','then','Content-Type','AIConnector','translate','CONTINUE','search','deleteWebResource','deleteConversation','items','/conversations','token','limit','/conversations/','catch','improve-writing','100','fetchConversations','message','7739721TRohUT','5443208ymlSAp','/ratings','upsertAIReviewRating','getReader','fetchDocument','decode','updateConversation','upsertAIChatRating','_handleError','read','_token','/messages','/actions/system/','feed','totalCount','/web-resources','keys','/reviews/custom/calls/','attributes','FIX_GRAMMAR','/reviews/system/','58680VRvKVc','2818242KtVhHI','/reviews/custom/calls','context','/actions/custom/calls/','uploadFile','modificationId','/documents/','ai.serviceUrl','Bearer\x20','/messages/','2748pFxHCE','_apiUrl','data','code','/web-resources/','startConversation','name','fetchConversation','append','value','text','abortController','AbortError','getModels','isPremiumPlugin','/conversations?','679803Gcgrwl','upsertCustomAIActionRating','status','request','plugins','uploadUrl','make-tone-formal','40705WZHZxj','777wplGZT','POST','upsertCustomAIReviewRating','parse','CloudServices','/files/','/actions/custom/calls','_sendApiRequest'];_0x4a7e=function(){return _0x11d39e;};return _0x4a7e();}(function(_0x4d11ab,_0x6c9dc){const _0x4aba88=_0x3d41,_0xd3c7cb=_0x4d11ab();while(!![]){try{const _0x15708a=parseInt(_0x4aba88(0x198))/0x1*(-parseInt(_0x4aba88(0x133))/0x2)+-parseInt(_0x4aba88(0x191))/0x3+parseInt(_0x4aba88(0x135))/0x4*(-parseInt(_0x4aba88(0x176))/0x5)+parseInt(_0x4aba88(0x181))/0x6*(parseInt(_0x4aba88(0x199))/0x7)+-parseInt(_0x4aba88(0x161))/0x8+parseInt(_0x4aba88(0x177))/0x9+parseInt(_0x4aba88(0x146))/0xa*(parseInt(_0x4aba88(0x160))/0xb);if(_0x15708a===_0x6c9dc)break;else _0xd3c7cb['push'](_0xd3c7cb['shift']());}catch(_0x3f597c){_0xd3c7cb['push'](_0xd3c7cb['shift']());}}}(_0x4a7e,0x6fa7b));import{createParser as _0x34775d}from'eventsource-parser';import{ContextPlugin as _0x498ac0}from'ckeditor5/src/core.js';import{CKEditorError as _0xc91ee9}from'ckeditor5/src/utils.js';function _0x3d41(_0x2bb8f9,_0x4561d8){const _0x4a7e28=_0x4a7e();return _0x3d41=function(_0x3d41d7,_0x27c71e){_0x3d41d7=_0x3d41d7-0x132;let _0x32e1e7=_0x4a7e28[_0x3d41d7];return _0x32e1e7;},_0x3d41(_0x2bb8f9,_0x4561d8);}export var AIActionsNames;!function(_0x39f7ab){const _0x4514e9=_0x3d41;_0x39f7ab[_0x4514e9(0x152)]=_0x4514e9(0x1ae),_0x39f7ab[_0x4514e9(0x174)]=_0x4514e9(0x1a9),_0x39f7ab[_0x4514e9(0x1bb)]=_0x4514e9(0x15c),_0x39f7ab[_0x4514e9(0x1ab)]=_0x4514e9(0x1b8),_0x39f7ab[_0x4514e9(0x132)]=_0x4514e9(0x13c),_0x39f7ab[_0x4514e9(0x148)]=_0x4514e9(0x140),_0x39f7ab[_0x4514e9(0x136)]=_0x4514e9(0x197),_0x39f7ab[_0x4514e9(0x134)]=_0x4514e9(0x151);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x498ac0{[_0x1d51b9(0x182)];[_0x1d51b9(0x16b)];[_0x1d51b9(0x1c3)];static get[_0x1d51b9(0x138)](){const _0x44b864=_0x1d51b9;return[_0x44b864(0x19d)];}static get[_0x1d51b9(0x1a2)](){const _0x3d5e7e=_0x1d51b9;return _0x3d5e7e(0x150);}static get[_0x1d51b9(0x1ac)](){return!0x0;}static get[_0x1d51b9(0x18f)](){return!0x0;}constructor(_0x5ef50c){const _0x3fbb04=_0x1d51b9;super(_0x5ef50c),this[_0x3fbb04(0x179)][_0x3fbb04(0x139)][_0x3fbb04(0x1b7)](_0x3fbb04(0x17e),_0x3fbb04(0x1a6)),this[_0x3fbb04(0x182)]=this[_0x3fbb04(0x179)][_0x3fbb04(0x139)][_0x3fbb04(0x13f)](_0x3fbb04(0x17e)),this[_0x3fbb04(0x16b)]=null,this[_0x3fbb04(0x1c3)]=new TextDecoder();}[_0x1d51b9(0x1c0)](){const _0x82e936=_0x1d51b9,_0x159925=this[_0x82e936(0x179)][_0x82e936(0x195)][_0x82e936(0x13f)](_0x82e936(0x19d));if(!_0x159925[_0x82e936(0x158)])throw new _0xc91ee9(_0x82e936(0x14a),this);this[_0x82e936(0x16b)]=_0x159925[_0x82e936(0x158)];}[_0x1d51b9(0x186)](_0x508d01,_0xffce2c){const _0xf05e86=_0x1d51b9,_0x17b939=this[_0xf05e86(0x1a0)](_0xf05e86(0x157),_0xf05e86(0x19a),{'id':_0x508d01,'group':_0xffce2c});return{'getConversation':async()=>(await _0x17b939[_0xf05e86(0x194)])[_0xf05e86(0x1a3)](),'abortController':_0x17b939[_0xf05e86(0x18c)]};}[_0x1d51b9(0x1c2)]({message:_0x2d21c,conversationId:_0x44a677,parts:_0x1a9664,capabilities:_0x24c2e6,model:_0x186769,quickActionData:_0x3d6d3d}){const _0x38f20d=_0x1d51b9,_0x451277={..._0x3d6d3d&&{'quickActionData':_0x3d6d3d}},_0x3c0183={'prompt':_0x2d21c,'content':_0x1a9664,'model':_0x186769,..._0x24c2e6&&{'capabilities':_0x24c2e6},...Object[_0x38f20d(0x171)](_0x451277)[_0x38f20d(0x141)]>0x0&&{'attributes':_0x451277}},_0x147639=this[_0x38f20d(0x1a0)](_0x38f20d(0x15a)+_0x44a677+_0x38f20d(0x16c),_0x38f20d(0x19a),_0x3c0183);return{'getStream':async()=>{const _0x37e203=_0x38f20d,_0x5358b9=(await _0x147639[_0x37e203(0x194)])[_0x37e203(0x149)];return this[_0x37e203(0x145)](_0x5358b9);},'abortController':_0x147639[_0x38f20d(0x18c)]};}[_0x1d51b9(0x142)]({content:_0x12eaaf,message:_0x49338b,model:_0x317741,outputFormat:_0x56a5a5}){const _0x373f1c=_0x1d51b9,_0x3faed3={'content':[{'type':_0x373f1c(0x18b),'content':_0x12eaaf}],'prompt':_0x49338b,'model':_0x317741,'outputFormat':_0x56a5a5},_0x393ca6=this[_0x373f1c(0x1a0)](_0x373f1c(0x19f),_0x373f1c(0x19a),_0x3faed3);return{'getStream':async()=>{const _0x8a97e5=_0x373f1c,_0x353220=(await _0x393ca6[_0x8a97e5(0x194)])[_0x8a97e5(0x149)];return this[_0x8a97e5(0x145)](_0x353220);},'abortController':_0x393ca6[_0x373f1c(0x18c)]};}[_0x1d51b9(0x1bd)]({actionName:_0x5c3c82,content:_0x4eedc5,args:_0x8162ba}){const _0x108bab=_0x1d51b9,_0x3dc443={'content':[{'type':_0x108bab(0x18b),'content':_0x4eedc5}],'args':_0x8162ba},_0x3a50d4=this[_0x108bab(0x1a0)](_0x108bab(0x16d)+_0x5c3c82+_0x108bab(0x14c),_0x108bab(0x19a),_0x3dc443);return{'getStream':async()=>{const _0x41adf5=_0x108bab,_0x1ebe3b=(await _0x3a50d4[_0x41adf5(0x194)])[_0x41adf5(0x149)];return this[_0x41adf5(0x145)](_0x1ebe3b);},'abortController':_0x3a50d4[_0x108bab(0x18c)]};}[_0x1d51b9(0x17b)](_0x3ffaf8,_0x2bf640,_0x3bdd4f){const _0x2a2929=_0x1d51b9,_0xb7e0a2=new FormData();_0xb7e0a2[_0x2a2929(0x189)](_0x2a2929(0x14d),_0x2bf640,_0x2bf640[_0x2a2929(0x187)]),_0x3bdd4f&&_0xb7e0a2[_0x2a2929(0x189)](_0x2a2929(0x173),JSON[_0x2a2929(0x1b9)](_0x3bdd4f));const _0x12f7f1=this[_0x2a2929(0x1a0)](_0x2a2929(0x15a)+_0x3ffaf8+_0x2a2929(0x1af),_0x2a2929(0x19a),_0xb7e0a2);return{'getId':async()=>(await _0x12f7f1[_0x2a2929(0x194)])[_0x2a2929(0x1a3)](),'abortController':_0x12f7f1[_0x2a2929(0x18c)]};}[_0x1d51b9(0x165)](_0xe53136,_0x1b999a){const _0x3c2442=_0x1d51b9,_0x384ea0=this[_0x3c2442(0x1a0)](_0x3c2442(0x15a)+_0xe53136+_0x3c2442(0x17d)+_0x1b999a,_0x3c2442(0x13e));return{'getDocument':async()=>(await _0x384ea0[_0x3c2442(0x194)])[_0x3c2442(0x1a3)](),'abortController':_0x384ea0[_0x3c2442(0x18c)]};}[_0x1d51b9(0x1aa)](_0x277985,_0x53aebf,_0x19c987){const _0x4b719e=_0x1d51b9,_0x3a5324={'content':_0x53aebf};_0x19c987&&(_0x3a5324[_0x4b719e(0x173)]=_0x19c987);const _0x5125fa=this[_0x4b719e(0x1a0)](_0x4b719e(0x15a)+_0x277985+_0x4b719e(0x1a5),_0x4b719e(0x19a),_0x3a5324);return{'getId':async()=>(await _0x5125fa[_0x4b719e(0x194)])[_0x4b719e(0x1a3)](),'abortController':_0x5125fa[_0x4b719e(0x18c)]};}[_0x1d51b9(0x15e)](_0x216a38,_0x2b612f){const _0x1eb831=_0x1d51b9,_0x36c124=new URLSearchParams();_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x144),_0x1eb831(0x137)),_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x159),_0x1eb831(0x15d)),_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x13b),_0x216a38),_0x2b612f&&_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x153),_0x2b612f);const _0x455c2f=this[_0x1eb831(0x1a0)](_0x1eb831(0x190)+_0x36c124[_0x1eb831(0x1b3)](),_0x1eb831(0x13e));return{'getConversations':async()=>{const _0x5b10fb=_0x1eb831,_0x4374f7=await _0x455c2f[_0x5b10fb(0x194)];return(await _0x4374f7[_0x5b10fb(0x1a3)]())[_0x5b10fb(0x156)];},'abortController':_0x455c2f[_0x1eb831(0x18c)]};}[_0x1d51b9(0x155)](_0x264c14){const _0xbfbb90=_0x1d51b9,_0x1a91ef=this[_0xbfbb90(0x1a0)](_0xbfbb90(0x15a)+_0x264c14,_0xbfbb90(0x14b));return{'execute':async()=>{const _0x355d07=_0xbfbb90;await _0x1a91ef[_0x355d07(0x194)];},'abortController':_0x1a91ef[_0xbfbb90(0x18c)]};}[_0x1d51b9(0x167)](_0x41472f,_0x52e173){const _0x403867=_0x1d51b9,_0x5b684f=this[_0x403867(0x1a0)](_0x403867(0x15a)+_0x41472f,_0x403867(0x1b5),_0x52e173);return{'getResult':async()=>(await _0x5b684f[_0x403867(0x194)],_0x52e173),'abortController':_0x5b684f[_0x403867(0x18c)]};}[_0x1d51b9(0x188)](_0x2fd4a2){const _0x28cb08=_0x1d51b9,_0x46d627=this[_0x28cb08(0x1a0)](_0x28cb08(0x15a)+_0x2fd4a2,_0x28cb08(0x13e));return{'getConversation':async()=>(await _0x46d627[_0x28cb08(0x194)])[_0x28cb08(0x1a3)](),'abortController':_0x46d627[_0x28cb08(0x18c)]};}[_0x1d51b9(0x13d)](_0xa5b6a1){const _0x18e577=_0x1d51b9,_0x56ff16=this[_0x18e577(0x1a0)](_0x18e577(0x15a)+_0xa5b6a1+_0x18e577(0x16c),_0x18e577(0x13e));return{'getMessages':async()=>{const _0x338a7f=_0x18e577,_0x4f29b6=await _0x56ff16[_0x338a7f(0x194)];return(await _0x4f29b6[_0x338a7f(0x1a3)]())[_0x338a7f(0x156)];},'abortController':_0x56ff16[_0x18e577(0x18c)]};}[_0x1d51b9(0x196)](_0x1527fe,_0x58123b,_0x1cc05f){const _0x4601bb=_0x1d51b9,_0x28a886=this[_0x4601bb(0x1a0)](_0x4601bb(0x15a)+_0x1527fe+_0x4601bb(0x170),_0x4601bb(0x19a),{'url':_0x58123b,'attributes':_0x1cc05f});return{'getId':async()=>(await _0x28a886[_0x4601bb(0x194)])[_0x4601bb(0x1a3)](),'abortController':_0x28a886[_0x4601bb(0x18c)]};}[_0x1d51b9(0x18e)](){const _0x5e3939=_0x1d51b9,_0x5ae95e=this[_0x5e3939(0x1a0)](_0x5e3939(0x1b6),_0x5e3939(0x13e));return{'list':async()=>await(await _0x5ae95e[_0x5e3939(0x194)])[_0x5e3939(0x1a3)](),'abortController':_0x5ae95e[_0x5e3939(0x18c)]};}[_0x1d51b9(0x13a)](_0x1ac123,_0x2698a2){const _0x4c5350=_0x1d51b9,_0x158517=this[_0x4c5350(0x1a0)](_0x4c5350(0x15a)+_0x1ac123+_0x4c5350(0x19e)+_0x2698a2,_0x4c5350(0x14b));return{'execute':async()=>{const _0x1b7191=_0x4c5350;await _0x158517[_0x1b7191(0x194)];},'abortController':_0x158517[_0x4c5350(0x18c)]};}[_0x1d51b9(0x1bf)](_0x204cb2,_0x1a7b26){const _0x5ec68c=_0x1d51b9,_0x2e934a=this[_0x5ec68c(0x1a0)](_0x5ec68c(0x15a)+_0x204cb2+_0x5ec68c(0x17d)+_0x1a7b26,_0x5ec68c(0x14b));return{'execute':async()=>{const _0x3391e0=_0x5ec68c;await _0x2e934a[_0x3391e0(0x194)];},'abortController':_0x2e934a[_0x5ec68c(0x18c)]};}[_0x1d51b9(0x154)](_0x112343,_0x2a399f){const _0xe3cb7e=_0x1d51b9,_0x514194=this[_0xe3cb7e(0x1a0)](_0xe3cb7e(0x15a)+_0x112343+_0xe3cb7e(0x185)+_0x2a399f,_0xe3cb7e(0x14b));return{'execute':async()=>{const _0x458e38=_0xe3cb7e;await _0x514194[_0x458e38(0x194)];},'abortController':_0x514194[_0xe3cb7e(0x18c)]};}[_0x1d51b9(0x1bc)]({reviewName:_0x3826e4,content:_0x5bc974,args:_0x45b7e3}){const _0x4c5932=_0x1d51b9,_0x2fc13b=this[_0x4c5932(0x1a0)](_0x4c5932(0x175)+_0x3826e4+_0x4c5932(0x14c),_0x4c5932(0x19a),{'content':[{'type':_0x4c5932(0x18b),'content':_0x5bc974}],'args':_0x45b7e3});return{'getStream':async()=>{const _0x3dad5a=_0x4c5932,_0x3da2ea=(await _0x2fc13b[_0x3dad5a(0x194)])[_0x3dad5a(0x149)];return this[_0x3dad5a(0x145)](_0x3da2ea);},'abortController':_0x2fc13b[_0x4c5932(0x18c)]};}[_0x1d51b9(0x1a1)]({content:_0x108ace,prompt:_0x1afd70,model:_0x55cc18}){const _0x48c152=_0x1d51b9,_0x4a05ac=this[_0x48c152(0x1a0)](_0x48c152(0x178),_0x48c152(0x19a),{'content':[{'type':_0x48c152(0x18b),'content':_0x108ace}],'prompt':_0x1afd70,'model':_0x55cc18});return{'getStream':async()=>{const _0x458ee0=_0x48c152,_0x2912ab=(await _0x4a05ac[_0x458ee0(0x194)])[_0x458ee0(0x149)];return this[_0x458ee0(0x145)](_0x2912ab);},'abortController':_0x4a05ac[_0x48c152(0x18c)]};}[_0x1d51b9(0x168)](_0x10c0a3,_0x2656f1,_0x17d706){const _0x4fd35e=_0x1d51b9,_0x32827b=this[_0x4fd35e(0x1a0)](_0x4fd35e(0x15a)+_0x10c0a3+_0x4fd35e(0x180)+_0x2656f1+_0x4fd35e(0x162),_0x4fd35e(0x1b1),{'positiveCount':_0x17d706[_0x4fd35e(0x147)],'totalCount':_0x17d706[_0x4fd35e(0x16f)],'modificationId':_0x17d706[_0x4fd35e(0x17c)]});return{'execute':async()=>{const _0x49d8e2=_0x4fd35e;await _0x32827b[_0x49d8e2(0x194)];},'abortController':_0x32827b[_0x4fd35e(0x18c)]};}[_0x1d51b9(0x1b2)](_0x22c3d0,_0x1b15cf,_0x300930){const _0x42ce57=_0x1d51b9,_0x166f99=this[_0x42ce57(0x1a0)](_0x42ce57(0x16d)+_0x22c3d0+_0x42ce57(0x1b0)+_0x1b15cf+_0x42ce57(0x162),_0x42ce57(0x1b1),{'positiveCount':_0x300930[_0x42ce57(0x147)],'totalCount':_0x300930[_0x42ce57(0x16f)]});return{'execute':async()=>{const _0x4b4c67=_0x42ce57;await _0x166f99[_0x4b4c67(0x194)];},'abortController':_0x166f99[_0x42ce57(0x18c)]};}[_0x1d51b9(0x192)](_0x3d0338,_0x1bbb07){const _0x4324ab=_0x1d51b9,_0x823b56=this[_0x4324ab(0x1a0)](_0x4324ab(0x17a)+_0x3d0338+_0x4324ab(0x162),_0x4324ab(0x1b1),{'positiveCount':_0x1bbb07[_0x4324ab(0x147)],'totalCount':_0x1bbb07[_0x4324ab(0x16f)]});return{'execute':async()=>{const _0x42c841=_0x4324ab;await _0x823b56[_0x42c841(0x194)];},'abortController':_0x823b56[_0x4324ab(0x18c)]};}[_0x1d51b9(0x163)](_0x2f2b40,_0x11f74f,_0x226366,_0x47a706){const _0x28edac=_0x1d51b9,_0x83c6ee=this[_0x28edac(0x1a0)](_0x28edac(0x175)+_0x2f2b40+_0x28edac(0x1b0)+_0x11f74f+_0x28edac(0x162),_0x28edac(0x1b1),{'positiveCount':_0x226366[_0x28edac(0x147)],'totalCount':_0x226366[_0x28edac(0x16f)],'dataId':_0x47a706});return{'execute':async()=>{const _0x11c062=_0x28edac;await _0x83c6ee[_0x11c062(0x194)];},'abortController':_0x83c6ee[_0x28edac(0x18c)]};}[_0x1d51b9(0x19b)](_0x2a1f0d,_0xd1ffc5,_0x16d7c7){const _0x14abb3=_0x1d51b9,_0x25c4c2=this[_0x14abb3(0x1a0)](_0x14abb3(0x172)+_0x2a1f0d+_0x14abb3(0x162),_0x14abb3(0x1b1),{'positiveCount':_0xd1ffc5[_0x14abb3(0x147)],'totalCount':_0xd1ffc5[_0x14abb3(0x16f)],'dataId':_0x16d7c7});return{'execute':async()=>{const _0x2eb069=_0x14abb3;await _0x25c4c2[_0x2eb069(0x194)];},'abortController':_0x25c4c2[_0x14abb3(0x18c)]};}[_0x1d51b9(0x1a0)](_0x23fe7f,_0x1911be,_0x4c59ae){const _0x26317a=_0x1d51b9,_0x1a18f2=new AbortController(),_0x29177b=_0x4c59ae instanceof FormData,_0x40dd70={'Authorization':_0x26317a(0x17f)+this[_0x26317a(0x16b)]?.[_0x26317a(0x18a)]};_0x4c59ae&&!_0x29177b&&(_0x40dd70[_0x26317a(0x14f)]=_0x26317a(0x1a8));const _0x4c6b63={'method':_0x1911be,'headers':_0x40dd70,'signal':_0x1a18f2[_0x26317a(0x1a4)]};return _0x4c59ae&&(_0x4c6b63[_0x26317a(0x149)]=_0x29177b?_0x4c59ae:JSON[_0x26317a(0x1b9)](_0x4c59ae)),{'request':fetch(''+this[_0x26317a(0x182)]+_0x23fe7f,_0x4c6b63)[_0x26317a(0x15b)](_0xc6c613=>{const _0x434d29=_0x26317a;this[_0x434d29(0x169)](_0xc6c613);})[_0x26317a(0x14e)](_0x5c63a6=>_0x5c63a6['ok']?_0x5c63a6:_0x5c63a6[_0x26317a(0x1a3)]()[_0x26317a(0x14e)](_0x2926fe=>{const _0x2f3887=_0x26317a;throw{'url':this[_0x2f3887(0x182)],'path':_0x23fe7f,'method':_0x1911be,'body':_0x4c59ae,'status':(_0x5c63a6||{})[_0x2f3887(0x193)],'statusText':(_0x5c63a6||{})[_0x2f3887(0x1be)],'code':_0x2926fe[_0x2f3887(0x184)],'message':_0x2926fe[_0x2f3887(0x15f)],'traceId':_0x2926fe[_0x2f3887(0x1c1)]};})),'abortController':_0x1a18f2};}async*[_0x1d51b9(0x145)](_0x535db4){const _0x46fbfd=_0x1d51b9,_0x16b97f=[],_0x12dbfa=_0x535db4[_0x46fbfd(0x164)](),_0x6f8d2d=_0x34775d({'onError':_0x28896f=>{const _0x20c338=_0x46fbfd;this[_0x20c338(0x169)](_0x28896f);},'onEvent':_0x1ffd12=>{const _0x443399=_0x46fbfd;_0x1ffd12[_0x443399(0x183)]=JSON[_0x443399(0x19c)](_0x1ffd12[_0x443399(0x183)]),_0x16b97f[_0x443399(0x143)](_0x1ffd12);}});try{let _0xd60158=!0x1;for(;!_0xd60158;){const {done:_0xad78b4,value:_0x4a4ff5}=await _0x12dbfa[_0x46fbfd(0x16a)]();_0xad78b4&&(_0xd60158=!0x0),_0x6f8d2d[_0x46fbfd(0x16e)](this[_0x46fbfd(0x1c3)][_0x46fbfd(0x166)](_0x4a4ff5,{'stream':!0x0})),yield*_0x16b97f,_0x16b97f[_0x46fbfd(0x141)]=0x0;}}catch(_0x2b31e2){this[_0x46fbfd(0x169)](_0x2b31e2);}finally{_0x12dbfa[_0x46fbfd(0x1b4)](),_0x6f8d2d[_0x46fbfd(0x1ad)]();}}[_0x1d51b9(0x169)](_0x4a4bdc){const _0x23e474=_0x1d51b9;if(_0x4a4bdc instanceof _0xc91ee9)throw _0x4a4bdc;if(_0x4a4bdc instanceof Error&&_0x23e474(0x18d)===_0x4a4bdc[_0x23e474(0x187)])throw new _0xc91ee9(_0x23e474(0x1ba),this,{'originalError':_0x4a4bdc});throw new _0xc91ee9(_0x23e474(0x1a7),this,{'originalError':_0x4a4bdc});}}
|
|
23
|
+
const _0x5c68a1=_0x1bc5;(function(_0x2c9030,_0x4baa8f){const _0xd0e1d9=_0x1bc5,_0x32d557=_0x2c9030();while(!![]){try{const _0x1f2278=parseInt(_0xd0e1d9(0x16c))/0x1*(-parseInt(_0xd0e1d9(0x125))/0x2)+parseInt(_0xd0e1d9(0x167))/0x3*(parseInt(_0xd0e1d9(0x12b))/0x4)+parseInt(_0xd0e1d9(0x172))/0x5*(parseInt(_0xd0e1d9(0x12e))/0x6)+parseInt(_0xd0e1d9(0x119))/0x7+-parseInt(_0xd0e1d9(0x16a))/0x8*(-parseInt(_0xd0e1d9(0x13f))/0x9)+-parseInt(_0xd0e1d9(0x182))/0xa*(parseInt(_0xd0e1d9(0x122))/0xb)+-parseInt(_0xd0e1d9(0x18b))/0xc*(parseInt(_0xd0e1d9(0x12d))/0xd);if(_0x1f2278===_0x4baa8f)break;else _0x32d557['push'](_0x32d557['shift']());}catch(_0x471247){_0x32d557['push'](_0x32d557['shift']());}}}(_0x323b,0xb39c9));import{createParser as _0x34a277}from'eventsource-parser';import{ContextPlugin as _0x32a72e}from'ckeditor5/src/core.js';import{CKEditorError as _0x15786f}from'ckeditor5/src/utils.js';function _0x323b(){const _0xad27fb=['fix-grammar','traceId','_sendApiRequest','100','push','IMPROVE_WRITING','true','deleteFile','DELETE','make-shorter','executeAction','CloudServices','upsertCustomAIActionRating','PATCH','feed','make-tone-casual','fetchConversation','make-tone-formal','requires','AbortError','plugins','pluginName','/calls/','queryAssistant','/documents/','decode','/actions/custom/calls','ai-request-aborted','3JSEYvQ','/documents','/messages/','2936BQrWPJ','keys','1513UFsAiE','GET','/conversations/','MAKE_TONE_FORMAL','/files/','ai.serviceUrl','10JHyYfn','/actions/system/','then','/reviews/custom/calls','PUT','/web-resources/','positiveCount','getModels','message','search','CONTINUE','modificationId','attributes','deleteDocument','request','context','10IySUWb','make-longer','toString','improve-writing','/files','excludeEmpty','code','executeCustomAction','TRANSLATE','144IIZcRN','ai-missing-token','items','file','/ratings','upsertAIReviewRating','data','text','ai-request-failed','upsertCustomAIReviewRating','config','_token','/conversations','limit','/reviews/system/','application/json','value','updateConversation','_apiUrl','startConversation','FIX_GRAMMAR','/conversations?','callCustomReview','token','https://ai.cke-cs.com/v1','init','/models/1','status','MAKE_TONE_CASUAL','callSystemReview','_decoder','catch','Content-Type','POST','363573wuGOmF','_handleError','get','/reviews/custom/calls/','fetchConversations','/web-resources','isPremiumPlugin','uploadUrl','define','806344ULkyQm','reset','_getStreamReader','178MIeyOp','MAKE_LONGER','upsertAIChatRating','AIConnector','statusText','upsertAIActionRating','1506616NGTnkO','translate','583622QhmgDv','1799418CWuGrU','MAKE_SHORTER','/messages','getReader','Bearer\x20','json','uploadDocument','fetchConversationMessages','totalCount','/calls','stringify','body','name','uploadFile','signal','deleteWebResource','continue','11133jSdVNa','group','read','length','deleteConversation','isOfficialPlugin','/actions/custom/calls/','abortController','append','releaseLock','fetchDocument','parse'];_0x323b=function(){return _0xad27fb;};return _0x323b();}export var AIActionsNames;!function(_0x431ad2){const _0x5c89f6=_0x1bc5;_0x431ad2[_0x5c89f6(0x17c)]=_0x5c89f6(0x13e),_0x431ad2[_0x5c89f6(0x19f)]=_0x5c89f6(0x14b),_0x431ad2[_0x5c89f6(0x150)]=_0x5c89f6(0x185),_0x431ad2[_0x5c89f6(0x126)]=_0x5c89f6(0x183),_0x431ad2[_0x5c89f6(0x12f)]=_0x5c89f6(0x154),_0x431ad2[_0x5c89f6(0x1a7)]=_0x5c89f6(0x15a),_0x431ad2[_0x5c89f6(0x16f)]=_0x5c89f6(0x15c),_0x431ad2[_0x5c89f6(0x18a)]=_0x5c89f6(0x12c);}(AIActionsNames||(AIActionsNames={}));function _0x1bc5(_0xa5b955,_0x284337){const _0x323b5b=_0x323b();return _0x1bc5=function(_0x1bc508,_0x3f6ea4){_0x1bc508=_0x1bc508-0x117;let _0x271bec=_0x323b5b[_0x1bc508];return _0x271bec;},_0x1bc5(_0xa5b955,_0x284337);}export class AIConnector extends _0x32a72e{[_0x5c68a1(0x19d)];[_0x5c68a1(0x196)];[_0x5c68a1(0x1a9)];static get[_0x5c68a1(0x15d)](){const _0x1d45f1=_0x5c68a1;return[_0x1d45f1(0x156)];}static get[_0x5c68a1(0x160)](){const _0x2e43f7=_0x5c68a1;return _0x2e43f7(0x128);}static get[_0x5c68a1(0x144)](){return!0x0;}static get[_0x5c68a1(0x11f)](){return!0x0;}constructor(_0x2e243c){const _0x180e79=_0x5c68a1;super(_0x2e243c),this[_0x180e79(0x181)][_0x180e79(0x195)][_0x180e79(0x121)](_0x180e79(0x171),_0x180e79(0x1a3)),this[_0x180e79(0x19d)]=this[_0x180e79(0x181)][_0x180e79(0x195)][_0x180e79(0x11b)](_0x180e79(0x171)),this[_0x180e79(0x196)]=null,this[_0x180e79(0x1a9)]=new TextDecoder();}[_0x5c68a1(0x1a4)](){const _0x44a586=_0x5c68a1,_0x37d6c2=this[_0x44a586(0x181)][_0x44a586(0x15f)][_0x44a586(0x11b)](_0x44a586(0x156));if(!_0x37d6c2[_0x44a586(0x1a2)])throw new _0x15786f(_0x44a586(0x18c),this);this[_0x44a586(0x196)]=_0x37d6c2[_0x44a586(0x1a2)];}[_0x5c68a1(0x19e)](_0x1ef217,_0x11a54e){const _0x5af426=_0x5c68a1,_0x40770b=this[_0x5af426(0x14d)](_0x5af426(0x197),_0x5af426(0x118),{'id':_0x1ef217,'group':_0x11a54e});return{'getConversation':async()=>(await _0x40770b[_0x5af426(0x180)])[_0x5af426(0x133)](),'abortController':_0x40770b[_0x5af426(0x146)]};}[_0x5c68a1(0x162)]({message:_0x780169,conversationId:_0x265bad,parts:_0x46bba6,capabilities:_0x59aa86,model:_0x53bd04,quickActionData:_0x5a41a3}){const _0xc0ec37=_0x5c68a1,_0xa05830={..._0x5a41a3&&{'quickActionData':_0x5a41a3}},_0x1962e5={'prompt':_0x780169,'content':_0x46bba6,'model':_0x53bd04,..._0x59aa86&&{'capabilities':_0x59aa86},...Object[_0xc0ec37(0x16b)](_0xa05830)[_0xc0ec37(0x142)]>0x0&&{'attributes':_0xa05830}},_0xc14139=this[_0xc0ec37(0x14d)](_0xc0ec37(0x16e)+_0x265bad+_0xc0ec37(0x130),_0xc0ec37(0x118),_0x1962e5);return{'getStream':async()=>{const _0x2b121a=_0xc0ec37,_0x437390=(await _0xc14139[_0x2b121a(0x180)])[_0x2b121a(0x139)];return this[_0x2b121a(0x124)](_0x437390);},'abortController':_0xc14139[_0xc0ec37(0x146)]};}[_0x5c68a1(0x189)]({content:_0x1f26ee,message:_0x13417d,model:_0x275b59,outputFormat:_0x451551}){const _0x3588f9=_0x5c68a1,_0x5c5ac9={'content':[{'type':_0x3588f9(0x192),'content':_0x1f26ee}],'prompt':_0x13417d,'model':_0x275b59,'outputFormat':_0x451551},_0x377eb9=this[_0x3588f9(0x14d)](_0x3588f9(0x165),_0x3588f9(0x118),_0x5c5ac9);return{'getStream':async()=>{const _0x4c728e=_0x3588f9,_0x2de063=(await _0x377eb9[_0x4c728e(0x180)])[_0x4c728e(0x139)];return this[_0x4c728e(0x124)](_0x2de063);},'abortController':_0x377eb9[_0x3588f9(0x146)]};}[_0x5c68a1(0x155)]({actionName:_0x3f3631,content:_0x588fc4,args:_0x3a0687}){const _0xf2cf4=_0x5c68a1,_0x41c05a={'content':[{'type':_0xf2cf4(0x192),'content':_0x588fc4}],'args':_0x3a0687},_0x12b99b=this[_0xf2cf4(0x14d)](_0xf2cf4(0x173)+_0x3f3631+_0xf2cf4(0x137),_0xf2cf4(0x118),_0x41c05a);return{'getStream':async()=>{const _0xcc85cf=_0xf2cf4,_0x2f9e7e=(await _0x12b99b[_0xcc85cf(0x180)])[_0xcc85cf(0x139)];return this[_0xcc85cf(0x124)](_0x2f9e7e);},'abortController':_0x12b99b[_0xf2cf4(0x146)]};}[_0x5c68a1(0x13b)](_0x5a634c,_0x5171bf,_0x125f19){const _0x5ce4b9=_0x5c68a1,_0x486d66=new FormData();_0x486d66[_0x5ce4b9(0x147)](_0x5ce4b9(0x18e),_0x5171bf,_0x5171bf[_0x5ce4b9(0x13a)]),_0x125f19&&_0x486d66[_0x5ce4b9(0x147)](_0x5ce4b9(0x17e),JSON[_0x5ce4b9(0x138)](_0x125f19));const _0x2c8caf=this[_0x5ce4b9(0x14d)](_0x5ce4b9(0x16e)+_0x5a634c+_0x5ce4b9(0x186),_0x5ce4b9(0x118),_0x486d66);return{'getId':async()=>(await _0x2c8caf[_0x5ce4b9(0x180)])[_0x5ce4b9(0x133)](),'abortController':_0x2c8caf[_0x5ce4b9(0x146)]};}[_0x5c68a1(0x149)](_0x1d32c1,_0x53a647){const _0xe4a70c=_0x5c68a1,_0x14335d=this[_0xe4a70c(0x14d)](_0xe4a70c(0x16e)+_0x1d32c1+_0xe4a70c(0x163)+_0x53a647,_0xe4a70c(0x16d));return{'getDocument':async()=>(await _0x14335d[_0xe4a70c(0x180)])[_0xe4a70c(0x133)](),'abortController':_0x14335d[_0xe4a70c(0x146)]};}[_0x5c68a1(0x134)](_0x274cc1,_0x3c8d59,_0x2406e2){const _0x1527d8=_0x5c68a1,_0x223452={'content':_0x3c8d59};_0x2406e2&&(_0x223452[_0x1527d8(0x17e)]=_0x2406e2);const _0x15c038=this[_0x1527d8(0x14d)](_0x1527d8(0x16e)+_0x274cc1+_0x1527d8(0x168),_0x1527d8(0x118),_0x223452);return{'getId':async()=>(await _0x15c038[_0x1527d8(0x180)])[_0x1527d8(0x133)](),'abortController':_0x15c038[_0x1527d8(0x146)]};}[_0x5c68a1(0x11d)](_0x411e2e,_0x5c241d){const _0x4ba9dd=_0x5c68a1,_0x542071=new URLSearchParams();_0x542071[_0x4ba9dd(0x147)](_0x4ba9dd(0x187),_0x4ba9dd(0x151)),_0x542071[_0x4ba9dd(0x147)](_0x4ba9dd(0x198),_0x4ba9dd(0x14e)),_0x542071[_0x4ba9dd(0x147)](_0x4ba9dd(0x140),_0x411e2e),_0x5c241d&&_0x542071[_0x4ba9dd(0x147)](_0x4ba9dd(0x17b),_0x5c241d);const _0x4e79ff=this[_0x4ba9dd(0x14d)](_0x4ba9dd(0x1a0)+_0x542071[_0x4ba9dd(0x184)](),_0x4ba9dd(0x16d));return{'getConversations':async()=>{const _0x5d0d0d=_0x4ba9dd,_0x5b78c8=await _0x4e79ff[_0x5d0d0d(0x180)];return(await _0x5b78c8[_0x5d0d0d(0x133)]())[_0x5d0d0d(0x18d)];},'abortController':_0x4e79ff[_0x4ba9dd(0x146)]};}[_0x5c68a1(0x143)](_0x456e17){const _0x497d18=_0x5c68a1,_0x3f3f34=this[_0x497d18(0x14d)](_0x497d18(0x16e)+_0x456e17,_0x497d18(0x153));return{'execute':async()=>{const _0x720f1=_0x497d18;await _0x3f3f34[_0x720f1(0x180)];},'abortController':_0x3f3f34[_0x497d18(0x146)]};}[_0x5c68a1(0x19c)](_0x346cbb,_0x5ecb0d){const _0x56b1fc=_0x5c68a1,_0x5bee81=this[_0x56b1fc(0x14d)](_0x56b1fc(0x16e)+_0x346cbb,_0x56b1fc(0x158),_0x5ecb0d);return{'getResult':async()=>(await _0x5bee81[_0x56b1fc(0x180)],_0x5ecb0d),'abortController':_0x5bee81[_0x56b1fc(0x146)]};}[_0x5c68a1(0x15b)](_0x10532e){const _0x33ea1=_0x5c68a1,_0x4d442f=this[_0x33ea1(0x14d)](_0x33ea1(0x16e)+_0x10532e,_0x33ea1(0x16d));return{'getConversation':async()=>(await _0x4d442f[_0x33ea1(0x180)])[_0x33ea1(0x133)](),'abortController':_0x4d442f[_0x33ea1(0x146)]};}[_0x5c68a1(0x135)](_0xcf8fa3){const _0x55d281=_0x5c68a1,_0x5d869e=this[_0x55d281(0x14d)](_0x55d281(0x16e)+_0xcf8fa3+_0x55d281(0x130),_0x55d281(0x16d));return{'getMessages':async()=>{const _0x4d16c3=_0x55d281,_0x1f7908=await _0x5d869e[_0x4d16c3(0x180)];return(await _0x1f7908[_0x4d16c3(0x133)]())[_0x4d16c3(0x18d)];},'abortController':_0x5d869e[_0x55d281(0x146)]};}[_0x5c68a1(0x120)](_0x5912ac,_0xc30c33,_0x5a5869){const _0x4ee8d3=_0x5c68a1,_0x3040ad=this[_0x4ee8d3(0x14d)](_0x4ee8d3(0x16e)+_0x5912ac+_0x4ee8d3(0x11e),_0x4ee8d3(0x118),{'url':_0xc30c33,'attributes':_0x5a5869});return{'getId':async()=>(await _0x3040ad[_0x4ee8d3(0x180)])[_0x4ee8d3(0x133)](),'abortController':_0x3040ad[_0x4ee8d3(0x146)]};}[_0x5c68a1(0x179)](){const _0x338c4f=_0x5c68a1,_0x1bde10=this[_0x338c4f(0x14d)](_0x338c4f(0x1a5),_0x338c4f(0x16d));return{'list':async()=>await(await _0x1bde10[_0x338c4f(0x180)])[_0x338c4f(0x133)](),'abortController':_0x1bde10[_0x338c4f(0x146)]};}[_0x5c68a1(0x152)](_0x545ca1,_0x34add1){const _0x110d8a=_0x5c68a1,_0x2fe368=this[_0x110d8a(0x14d)](_0x110d8a(0x16e)+_0x545ca1+_0x110d8a(0x170)+_0x34add1,_0x110d8a(0x153));return{'execute':async()=>{const _0x5b5e46=_0x110d8a;await _0x2fe368[_0x5b5e46(0x180)];},'abortController':_0x2fe368[_0x110d8a(0x146)]};}[_0x5c68a1(0x17f)](_0x2762f5,_0x5502f7){const _0x1b4c4c=_0x5c68a1,_0x58439b=this[_0x1b4c4c(0x14d)](_0x1b4c4c(0x16e)+_0x2762f5+_0x1b4c4c(0x163)+_0x5502f7,_0x1b4c4c(0x153));return{'execute':async()=>{const _0x15bba0=_0x1b4c4c;await _0x58439b[_0x15bba0(0x180)];},'abortController':_0x58439b[_0x1b4c4c(0x146)]};}[_0x5c68a1(0x13d)](_0x383eea,_0x28ff59){const _0x414570=_0x5c68a1,_0x3f6db0=this[_0x414570(0x14d)](_0x414570(0x16e)+_0x383eea+_0x414570(0x177)+_0x28ff59,_0x414570(0x153));return{'execute':async()=>{const _0x452612=_0x414570;await _0x3f6db0[_0x452612(0x180)];},'abortController':_0x3f6db0[_0x414570(0x146)]};}[_0x5c68a1(0x1a8)]({reviewName:_0x5399cf,content:_0x12f31f,args:_0x43b9a5}){const _0x53abea=_0x5c68a1,_0x3adc14=this[_0x53abea(0x14d)](_0x53abea(0x199)+_0x5399cf+_0x53abea(0x137),_0x53abea(0x118),{'content':[{'type':_0x53abea(0x192),'content':_0x12f31f}],'args':_0x43b9a5});return{'getStream':async()=>{const _0x318759=_0x53abea,_0x5a1af3=(await _0x3adc14[_0x318759(0x180)])[_0x318759(0x139)];return this[_0x318759(0x124)](_0x5a1af3);},'abortController':_0x3adc14[_0x53abea(0x146)]};}[_0x5c68a1(0x1a1)]({content:_0x25eda9,prompt:_0xe9ebb1,model:_0x8a085d}){const _0x1b996e=_0x5c68a1,_0x4e7930=this[_0x1b996e(0x14d)](_0x1b996e(0x175),_0x1b996e(0x118),{'content':[{'type':_0x1b996e(0x192),'content':_0x25eda9}],'prompt':_0xe9ebb1,'model':_0x8a085d});return{'getStream':async()=>{const _0x10a8fa=_0x1b996e,_0x38b56c=(await _0x4e7930[_0x10a8fa(0x180)])[_0x10a8fa(0x139)];return this[_0x10a8fa(0x124)](_0x38b56c);},'abortController':_0x4e7930[_0x1b996e(0x146)]};}[_0x5c68a1(0x127)](_0x2b5cbe,_0x3bbb2d,_0x390fc1){const _0x5c381a=_0x5c68a1,_0x4b9fc6=this[_0x5c381a(0x14d)](_0x5c381a(0x16e)+_0x2b5cbe+_0x5c381a(0x169)+_0x3bbb2d+_0x5c381a(0x18f),_0x5c381a(0x176),{'positiveCount':_0x390fc1[_0x5c381a(0x178)],'totalCount':_0x390fc1[_0x5c381a(0x136)],'modificationId':_0x390fc1[_0x5c381a(0x17d)]});return{'execute':async()=>{const _0x546c72=_0x5c381a;await _0x4b9fc6[_0x546c72(0x180)];},'abortController':_0x4b9fc6[_0x5c381a(0x146)]};}[_0x5c68a1(0x12a)](_0x1f6a0f,_0x1d70a9,_0x26acd7){const _0x434939=_0x5c68a1,_0x149f89=this[_0x434939(0x14d)](_0x434939(0x173)+_0x1f6a0f+_0x434939(0x161)+_0x1d70a9+_0x434939(0x18f),_0x434939(0x176),{'positiveCount':_0x26acd7[_0x434939(0x178)],'totalCount':_0x26acd7[_0x434939(0x136)]});return{'execute':async()=>{const _0x288b64=_0x434939;await _0x149f89[_0x288b64(0x180)];},'abortController':_0x149f89[_0x434939(0x146)]};}[_0x5c68a1(0x157)](_0x52e3eb,_0x32affd){const _0x31d43f=_0x5c68a1,_0x1897d7=this[_0x31d43f(0x14d)](_0x31d43f(0x145)+_0x52e3eb+_0x31d43f(0x18f),_0x31d43f(0x176),{'positiveCount':_0x32affd[_0x31d43f(0x178)],'totalCount':_0x32affd[_0x31d43f(0x136)]});return{'execute':async()=>{const _0x1af47d=_0x31d43f;await _0x1897d7[_0x1af47d(0x180)];},'abortController':_0x1897d7[_0x31d43f(0x146)]};}[_0x5c68a1(0x190)](_0x340a57,_0x27a932,_0x372e04,_0x5e3afc){const _0x286ea1=_0x5c68a1,_0x57e73b=this[_0x286ea1(0x14d)](_0x286ea1(0x199)+_0x340a57+_0x286ea1(0x161)+_0x27a932+_0x286ea1(0x18f),_0x286ea1(0x176),{'positiveCount':_0x372e04[_0x286ea1(0x178)],'totalCount':_0x372e04[_0x286ea1(0x136)],'dataId':_0x5e3afc});return{'execute':async()=>{const _0xe24f6b=_0x286ea1;await _0x57e73b[_0xe24f6b(0x180)];},'abortController':_0x57e73b[_0x286ea1(0x146)]};}[_0x5c68a1(0x194)](_0x3ce7ae,_0x24c9f4,_0x2a59b1){const _0x28c1e6=_0x5c68a1,_0x4aaeec=this[_0x28c1e6(0x14d)](_0x28c1e6(0x11c)+_0x3ce7ae+_0x28c1e6(0x18f),_0x28c1e6(0x176),{'positiveCount':_0x24c9f4[_0x28c1e6(0x178)],'totalCount':_0x24c9f4[_0x28c1e6(0x136)],'dataId':_0x2a59b1});return{'execute':async()=>{const _0x5b210e=_0x28c1e6;await _0x4aaeec[_0x5b210e(0x180)];},'abortController':_0x4aaeec[_0x28c1e6(0x146)]};}[_0x5c68a1(0x14d)](_0xb10ab8,_0xaf5ed2,_0x320d34){const _0x52f2e7=_0x5c68a1,_0x1718fe=new AbortController(),_0x7471a6=_0x320d34 instanceof FormData,_0x495087={'Authorization':_0x52f2e7(0x132)+this[_0x52f2e7(0x196)]?.[_0x52f2e7(0x19b)]};_0x320d34&&!_0x7471a6&&(_0x495087[_0x52f2e7(0x117)]=_0x52f2e7(0x19a));const _0x5139db={'method':_0xaf5ed2,'headers':_0x495087,'signal':_0x1718fe[_0x52f2e7(0x13c)]};return _0x320d34&&(_0x5139db[_0x52f2e7(0x139)]=_0x7471a6?_0x320d34:JSON[_0x52f2e7(0x138)](_0x320d34)),{'request':fetch(''+this[_0x52f2e7(0x19d)]+_0xb10ab8,_0x5139db)[_0x52f2e7(0x1aa)](_0x394db7=>{const _0x10d6bc=_0x52f2e7;this[_0x10d6bc(0x11a)](_0x394db7);})[_0x52f2e7(0x174)](_0x3096db=>_0x3096db['ok']?_0x3096db:_0x3096db[_0x52f2e7(0x133)]()[_0x52f2e7(0x174)](_0x2a92cd=>{const _0x40691f=_0x52f2e7;throw{'url':this[_0x40691f(0x19d)],'path':_0xb10ab8,'method':_0xaf5ed2,'body':_0x320d34,'status':(_0x3096db||{})[_0x40691f(0x1a6)],'statusText':(_0x3096db||{})[_0x40691f(0x129)],'code':_0x2a92cd[_0x40691f(0x188)],'message':_0x2a92cd[_0x40691f(0x17a)],'traceId':_0x2a92cd[_0x40691f(0x14c)]};})),'abortController':_0x1718fe};}async*[_0x5c68a1(0x124)](_0x49ffba){const _0x44da72=_0x5c68a1,_0x3c55ff=[],_0x76f5b8=_0x49ffba[_0x44da72(0x131)](),_0x9de6ac=_0x34a277({'onError':_0x56f4d3=>{const _0x1dd9a0=_0x44da72;this[_0x1dd9a0(0x11a)](_0x56f4d3);},'onEvent':_0x523d69=>{const _0x4bbf21=_0x44da72;_0x523d69[_0x4bbf21(0x191)]=JSON[_0x4bbf21(0x14a)](_0x523d69[_0x4bbf21(0x191)]),_0x3c55ff[_0x4bbf21(0x14f)](_0x523d69);}});try{let _0x33328b=!0x1;for(;!_0x33328b;){const {done:_0xd9e817,value:_0x2d90d7}=await _0x76f5b8[_0x44da72(0x141)]();_0xd9e817&&(_0x33328b=!0x0),_0x9de6ac[_0x44da72(0x159)](this[_0x44da72(0x1a9)][_0x44da72(0x164)](_0x2d90d7,{'stream':!0x0})),yield*_0x3c55ff,_0x3c55ff[_0x44da72(0x142)]=0x0;}}catch(_0x5e6747){this[_0x44da72(0x11a)](_0x5e6747);}finally{_0x76f5b8[_0x44da72(0x148)](),_0x9de6ac[_0x44da72(0x123)]();}}[_0x5c68a1(0x11a)](_0x11eb92){const _0x38e747=_0x5c68a1;if(_0x11eb92 instanceof _0x15786f)throw _0x11eb92;if(_0x11eb92 instanceof Error&&_0x38e747(0x15e)===_0x11eb92[_0x38e747(0x13a)])throw new _0x15786f(_0x38e747(0x166),this,{'originalError':_0x11eb92});throw new _0x15786f(_0x38e747(0x193),this,{'originalError':_0x11eb92});}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d166d=_0x25db;(function(_0x3f47dd,_0x310242){const _0x54fa75=_0x25db,_0x15c71d=_0x3f47dd();while(!![]){try{const _0xb495ea=parseInt(_0x54fa75(0x196))/0x1*(parseInt(_0x54fa75(0x1a5))/0x2)+-parseInt(_0x54fa75(0x1d8))/0x3*(-parseInt(_0x54fa75(0x1ac))/0x4)+parseInt(_0x54fa75(0x1b5))/0x5+parseInt(_0x54fa75(0x1a9))/0x6+parseInt(_0x54fa75(0x1cc))/0x7*(parseInt(_0x54fa75(0x1c1))/0x8)+parseInt(_0x54fa75(0x19b))/0x9+parseInt(_0x54fa75(0x1b9))/0xa*(-parseInt(_0x54fa75(0x1c7))/0xb);if(_0xb495ea===_0x310242)break;else _0x15c71d['push'](_0x15c71d['shift']());}catch(_0x43e954){_0x15c71d['push'](_0x15c71d['shift']());}}}(_0x4fc5,0xb79d8));import{ViewDowncastWriter as _0x50caa1}from'ckeditor5/src/engine.js';import{ContextPlugin as _0xc0446e,Editor as _0x4d1243}from'ckeditor5/src/core.js';import{uid as _0x4714dc}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3ab8a8}from'./utils/geteditorfromcontext.js';function _0x25db(_0x1bf558,_0xfe3955){const _0x4fc50d=_0x4fc5();return _0x25db=function(_0x25dbcd,_0x5e7cf7){_0x25dbcd=_0x25dbcd-0x189;let _0x249f98=_0x4fc50d[_0x25dbcd];return _0x249f98;},_0x25db(_0x1bf558,_0xfe3955);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1d166d(0x18c);export class AIEditing extends _0xc0446e{[_0x1d166d(0x1ab)]=null;[_0x1d166d(0x1af)]=!0x1;[_0x1d166d(0x1e9)];static get[_0x1d166d(0x1ed)](){const _0x2bb737=_0x1d166d;return _0x2bb737(0x19f);}static get[_0x1d166d(0x1c5)](){return!0x0;}static get[_0x1d166d(0x1ee)](){return!0x0;}get[_0x1d166d(0x193)](){const _0x41d06c=_0x1d166d;if(!this[_0x41d06c(0x1e9)]){const _0x322917=_0x3ab8a8(this[_0x41d06c(0x1f1)]),_0x21cab4=_0x322917[_0x41d06c(0x1dd)][_0x41d06c(0x1f0)](_0x41d06c(0x1cd))&&_0x322917[_0x41d06c(0x1dd)][_0x41d06c(0x1e5)](_0x41d06c(0x1cd))[_0x41d06c(0x193)];this[_0x41d06c(0x1e9)]=_0x21cab4||_0x4714dc();}return this[_0x41d06c(0x1e9)];}[_0x1d166d(0x1d3)](){const _0x1192fa=_0x1d166d,_0x3cd46b=_0x3ab8a8(this[_0x1192fa(0x1f1)]),_0x4e4c12=_0x3cd46b[_0x1192fa(0x1e8)],_0x3427d3=_0x3cd46b[_0x1192fa(0x1c9)][_0x1192fa(0x1c0)](_0x4e4c12[_0x1192fa(0x198)][_0x1192fa(0x1d0)](),{'convertAiChatSelectionMarker':!0x0}),_0x5d2e4e=new _0x50caa1(_0x3cd46b[_0x1192fa(0x1a2)][_0x1192fa(0x18a)][_0x1192fa(0x198)]);this[_0x1192fa(0x194)](_0x3427d3,_0x5d2e4e);let _0x32605b=_0x3cd46b[_0x1192fa(0x1c9)][_0x1192fa(0x1b4)][_0x1192fa(0x1bc)](_0x3427d3);const _0x4263be=this[_0x1192fa(0x1b8)](),_0x3b187e=[];for(const _0x47d231 of _0x4263be){const _0x552130='<'+_0x47d231[_0x1192fa(0x1e0)]+_0x1192fa(0x1f2)+_0x47d231[_0x1192fa(0x1e0)]+_0x1192fa(0x1b3),_0x57b463=_0x32605b[_0x1192fa(0x1c3)](_0x552130);_0x32605b=_0x32605b[_0x1192fa(0x1eb)](0x0,_0x57b463)+_0x32605b[_0x1192fa(0x1eb)](_0x57b463+_0x552130[_0x1192fa(0x1a0)]);const _0x3522dd='<'+_0x47d231[_0x1192fa(0x1e0)]+_0x1192fa(0x19a)+_0x47d231[_0x1192fa(0x1e0)]+_0x1192fa(0x1d4),_0x43e352=_0x32605b[_0x1192fa(0x1c3)](_0x3522dd);_0x32605b=_0x32605b[_0x1192fa(0x1eb)](0x0,_0x43e352)+_0x32605b[_0x1192fa(0x1eb)](_0x43e352+_0x3522dd[_0x1192fa(0x1a0)]),_0x3b187e[_0x1192fa(0x1bf)]({'markerName':_0x47d231[_0x1192fa(0x1e0)],'start':_0x57b463,'end':_0x43e352,'htmlFragment':_0x32605b[_0x1192fa(0x1eb)](_0x57b463,_0x43e352)});}return{'content':_0x32605b,'version':_0x3cd46b[_0x1192fa(0x1e8)][_0x1192fa(0x198)][_0x1192fa(0x19d)],'sessionId':this[_0x1192fa(0x193)],'selections':_0x3b187e};}async[_0x1d166d(0x1ae)](){const _0x1859ad=_0x1d166d;this[_0x1859ad(0x1f1)]instanceof _0x4d1243?this[_0x1859ad(0x1ea)](this[_0x1859ad(0x1f1)]):this[_0x1859ad(0x1e4)](this[_0x1859ad(0x1f1)][_0x1859ad(0x195)],_0x1859ad(0x1b2),(_0x36d321,_0x1e2036)=>{const _0x51d9ed=_0x1859ad;_0x1e2036['on'](_0x51d9ed(0x1cb),()=>{const _0x54dff1=_0x51d9ed;this[_0x54dff1(0x1ea)](_0x1e2036);});});}[_0x1d166d(0x1ea)](_0x44df2f){const _0x2ca054=_0x1d166d;_0x44df2f[_0x2ca054(0x1c4)][_0x2ca054(0x1d7)](_0x2ca054(0x1c2))[_0x2ca054(0x1bb)]({'model':_0x2ca054(0x18c),'view':{'classes':[_0x2ca054(0x1ec),_0x2ca054(0x1d1)],'priority':0xc}}),_0x44df2f[_0x2ca054(0x1c4)][_0x2ca054(0x1d7)](_0x2ca054(0x19e))[_0x2ca054(0x18f)]({'model':_0x2ca054(0x18c),'view':(_0x5994f3,{writer:_0x49549d,options:_0x40bc67})=>_0x40bc67[_0x2ca054(0x1e2)]?_0x49549d[_0x2ca054(0x1b7)](_0x5994f3[_0x2ca054(0x1b0)]+':'+(_0x5994f3[_0x2ca054(0x192)]?_0x2ca054(0x1e6):_0x2ca054(0x1ef))):null});}[_0x1d166d(0x1aa)](_0x370c5a,_0x8548f7,_0x328da8=!0x1,_0x3ca8a6=!0x1){const _0x4bcaa9=_0x1d166d;if(this[_0x4bcaa9(0x1af)]&&!_0x3ca8a6)return!0x1;const _0x262c8a=_0x3ab8a8(this[_0x4bcaa9(0x1f1)])[_0x4bcaa9(0x1e8)];return _0x262c8a[_0x4bcaa9(0x1d6)](_0x40d573=>{const _0x5092f9=_0x4bcaa9;this[_0x5092f9(0x1ab)]&&this[_0x5092f9(0x1a6)](this[_0x5092f9(0x1ab)]),this[_0x5092f9(0x1ab)]=_0x8548f7,this[_0x5092f9(0x1af)]=_0x328da8;let _0xca9c08=0x0;for(let _0x32b4e6 of _0x370c5a){const _0x2ccf65=_0x5092f9(0x1b1)+_0xca9c08;if(_0x32b4e6[_0x5092f9(0x1e6)][_0x5092f9(0x197)]){const _0x21e367=_0x32b4e6[_0x5092f9(0x1e6)][_0x5092f9(0x1e7)](({item:_0x5e5367})=>!_0x262c8a[_0x5092f9(0x1e3)][_0x5092f9(0x1a7)](_0x5e5367),{'boundaries':_0x32b4e6});_0x32b4e6=_0x40d573[_0x5092f9(0x190)](_0x21e367,_0x32b4e6[_0x5092f9(0x1ef)]);}_0x40d573[_0x5092f9(0x1cf)](_0x2ccf65,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x32b4e6}),_0xca9c08++;}}),window[_0x4bcaa9(0x1ba)]()?.[_0x4bcaa9(0x1d2)](),!0x0;}[_0x1d166d(0x1a6)](_0x2d72c1){const _0x1f3988=_0x1d166d;if(this[_0x1f3988(0x1ab)]!=_0x2d72c1)return!0x1;this[_0x1f3988(0x1ab)]=null,this[_0x1f3988(0x1af)]=!0x1;const _0x2d3308=_0x3ab8a8(this[_0x1f3988(0x1f1)]),_0x41fbd8=_0x2d3308[_0x1f3988(0x1e8)][_0x1f3988(0x1a4)][_0x1f3988(0x1b6)](_0x1f3988(0x18c));return _0x2d3308[_0x1f3988(0x1e8)][_0x1f3988(0x1d6)](_0x3effd1=>{const _0x2a3976=_0x1f3988;for(const _0x498b09 of _0x41fbd8)_0x3effd1[_0x2a3976(0x18e)](_0x498b09);}),!0x0;}[_0x1d166d(0x19c)](_0x2b69f6){const _0x4b17c5=_0x1d166d,_0x214d92=_0x3ab8a8(this[_0x4b17c5(0x1f1)]),_0x29bd57=_0x214d92[_0x4b17c5(0x1c9)][_0x4b17c5(0x1c0)](_0x2b69f6),_0x26e79c=new _0x50caa1(_0x214d92[_0x4b17c5(0x1a2)][_0x4b17c5(0x18a)][_0x4b17c5(0x198)]);return this[_0x4b17c5(0x194)](_0x29bd57,_0x26e79c),_0x29bd57;}[_0x1d166d(0x194)](_0x41144c,_0x532753){const _0x256e76=_0x1d166d;let _0x33e5a3=!0x1;const _0x457cfc=new Set();for(const _0x457f25 of _0x41144c[_0x256e76(0x1ce)]()){const _0x875255=_0x457f25['is'](_0x256e76(0x1ad))||_0x457f25['is'](_0x256e76(0x1de));if(!_0x457f25['is'](_0x256e76(0x1db)))continue;(this[_0x256e76(0x194)](_0x457f25,_0x532753)||_0x875255)&&(_0x532753[_0x256e76(0x1df)](_0x256e76(0x1ca),this[_0x256e76(0x1a1)](_0x457cfc),_0x457f25),_0x33e5a3=!0x0);}return _0x33e5a3;}[_0x1d166d(0x1a1)](_0x3855ed){const _0x6b47af=_0x1d166d;let _0x62bffc;do{_0x62bffc='';for(let _0x2da1c4=0x0;_0x2da1c4<0x4;_0x2da1c4++)_0x62bffc+=String[_0x6b47af(0x199)](0x61+Math[_0x6b47af(0x18b)](0x1a*Math[_0x6b47af(0x1a3)]()));}while(_0x3855ed[_0x6b47af(0x1f0)](_0x62bffc));return _0x3855ed[_0x6b47af(0x1b2)](_0x62bffc),_0x62bffc;}[_0x1d166d(0x1e1)](){const _0x5b1fba=_0x1d166d,{model:_0x4a1845}=_0x3ab8a8(this[_0x5b1fba(0x1f1)]),_0x56cfac=_0x4a1845[_0x5b1fba(0x198)][_0x5b1fba(0x1a8)],_0x5ce97b=_0x4a1845[_0x5b1fba(0x1d9)](_0x56cfac),_0x1acf51=[],_0x160076=_0x4a1845[_0x5b1fba(0x191)](_0x5ce97b)[_0x5b1fba(0x1d5)]();for(const {item:_0x487b9d}of _0x160076)_0x487b9d['is'](_0x5b1fba(0x1bd))?_0x1acf51[_0x5b1fba(0x1bf)](_0x487b9d[_0x5b1fba(0x1c9)]):_0x487b9d['is'](_0x5b1fba(0x1db))&&_0x1acf51[_0x5b1fba(0x1a0)]>0x0&&'\x20'!==_0x1acf51[_0x1acf51[_0x5b1fba(0x1a0)]-0x1]&&_0x1acf51[_0x5b1fba(0x1bf)]('\x20');return'\x22'+_0x1acf51[_0x5b1fba(0x189)]('')[_0x5b1fba(0x1c6)]()+'\x22';}[_0x1d166d(0x1b8)](){const _0x242715=_0x1d166d,_0x18c2db=_0x3ab8a8(this[_0x242715(0x1f1)])[_0x242715(0x1e8)];return Array[_0x242715(0x18d)](_0x18c2db[_0x242715(0x1a4)][_0x242715(0x1b6)](_0x242715(0x18c)))[_0x242715(0x1be)]((_0x42f032,_0x1bb6e8)=>_0x42f032[_0x242715(0x1c8)]()[_0x242715(0x1da)](_0x1bb6e8[_0x242715(0x1c8)]())?-0x1:_0x42f032[_0x242715(0x1c8)]()[_0x242715(0x1dc)](_0x1bb6e8[_0x242715(0x1c8)]())?0x1:0x0);}}function _0x4fc5(){const _0x1491fd=['indexOf','conversion','isOfficialPlugin','trim','880sTtKze','getStart','data','data-id','ready','217aFAuca','RealTimeCollaborationClient','getChildren','addMarker','getRoot','ck-ai-assistant-ui_theme','removeAllRanges','getDocumentData',':end>','getWalker','change','for','4097991MmjAFh','getSelectedContent','isBefore','element','isAfter','plugins','containerElement','setAttribute','name','getSelectionText','convertAiChatSelectionMarker','schema','listenTo','get','start','getLastMatchingPosition','model','_sessionId','_integrateEditor','substring','ck-fake-ai-selection','pluginName','isPremiumPlugin','end','has','context',':start></','join','view','floor','ai-selection','from','removeMarker','markerToElement','createRange','createRangeIn','isOpening','sessionId','_setDataIdsOnChildren','editors','3844ZDsHKo','isAtEnd','document','fromCharCode',':end></','13508307PZQSiw','modelToViewWithIds','version','dataDowncast','AIEditing','length','_nextDataId','editing','random','markers','272JQTekJ','hideFakeVisualSelection','isContent','selection','1947210KwmJMq','showFakeVisualSelection','_displayedFakeSelectionId','4aYvdhK','emptyElement','afterInit','_displayedFakeSelectionLocked','markerName','ai-selection:','add',':start>','processor','4069620coPiQI','getMarkersGroup','createUIElement','_getMarkersInDocumentOrder','514770Cmhbla','getSelection','markerToHighlight','toData','$textProxy','sort','push','toView','88280gnZUzM','editingDowncast'];_0x4fc5=function(){return _0x1491fd;};return _0x4fc5();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x85d4(_0xd02536,_0x4360b5){const _0x36ff55=_0x36ff();return _0x85d4=function(_0x85d415,_0x1c151f){_0x85d415=_0x85d415-0x19b;let _0x5d66cf=_0x36ff55[_0x85d415];return _0x5d66cf;},_0x85d4(_0xd02536,_0x4360b5);}const _0x11a5db=_0x85d4;function _0x36ff(){const _0x588f2f=['source','200345XMwzwB','stop','7YqFMPD','getDocumentContext','reasoningStarted','6kkSFXN','message-metadata','data','modification-delta','start','delegate','isStopped','828261ntemRo','find','replyContentUpdated','createReply','webSearchFinished','interactionCreated','appendContent','web-search','sources','content','messageId','setConversationTitle','forEach','splice','getReply','383944rxXdhy','actionCallId','180mCMPHL','_finalizeInteraction','getStream','sendRequest','replies','interactionDestroyed','abort','currentReply','length','33046zPTIge','_isReasoning','160JDGAwC','abortController','currentRequest','action-metadata','4yPhaDO','conversationTitle','740982XzActZ','fire','reasoningFinished','interactionStopped','error','reasoning','replyChangeGroupStateUpdated','_isWebSearching','2437896owNEdg','isDestroyed','done','connector','push','webSearchStarted','interactionFinished','editor','interactionStarted','callId','event','destroy','stopListening','replyCreated','6849fEFlmJ','textDelta','ai-chat-interaction-error'];_0x36ff=function(){return _0x588f2f;};return _0x36ff();}(function(_0x3cdfe6,_0x2973a6){const _0x5990c5=_0x85d4,_0x23dbd3=_0x3cdfe6();while(!![]){try{const _0x415155=parseInt(_0x5990c5(0x19f))/0x1+-parseInt(_0x5990c5(0x1a7))/0x2+-parseInt(_0x5990c5(0x1cd))/0x3*(-parseInt(_0x5990c5(0x1a5))/0x4)+-parseInt(_0x5990c5(0x1c1))/0x5*(-parseInt(_0x5990c5(0x1c6))/0x6)+-parseInt(_0x5990c5(0x1c3))/0x7*(parseInt(_0x5990c5(0x1af))/0x8)+parseInt(_0x5990c5(0x1bd))/0x9*(-parseInt(_0x5990c5(0x1a1))/0xa)+-parseInt(_0x5990c5(0x1dc))/0xb*(-parseInt(_0x5990c5(0x1de))/0xc);if(_0x415155===_0x2973a6)break;else _0x23dbd3['push'](_0x23dbd3['shift']());}catch(_0x514fa5){_0x23dbd3['push'](_0x23dbd3['shift']());}}}(_0x36ff,0x2d40e));import{CKEditorError as _0x38f97e,EmitterMixin as _0x2c395f,uid as _0x57fd98}from'ckeditor5/src/utils.js';import{AIReply as _0xee6382,isIgnoredReplyType as _0x831e6e,isValidReplyType as _0x263e11,isReplyTitleType as _0x4963b8,isSourceType as _0x1aa9aa}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x11a5db(0x1d2),_0x11a5db(0x1b7),_0x11a5db(0x1aa),_0x11a5db(0x1b5),_0x11a5db(0x19b),_0x11a5db(0x1bc),_0x11a5db(0x1cf),_0x11a5db(0x1ad),_0x11a5db(0x1d8),_0x11a5db(0x1b4),_0x11a5db(0x1d1),_0x11a5db(0x1c5),_0x11a5db(0x1a9),_0x11a5db(0x1ab)];export class AIInteraction extends _0x2c395f(){['id'];[_0x11a5db(0x1e2)]=[];[_0x11a5db(0x19d)];[_0x11a5db(0x1d7)];[_0x11a5db(0x1dd)];[_0x11a5db(0x1a3)];[_0x11a5db(0x1b2)];[_0x11a5db(0x1cc)]=!0x1;[_0x11a5db(0x1b0)]=!0x1;[_0x11a5db(0x1b6)];[_0x11a5db(0x1a0)]=!0x1;[_0x11a5db(0x1ae)]=!0x1;constructor({connector:_0x33c565,editor:_0x4ee72d}){const _0xcc463d=_0x11a5db;super(),this['id']=_0x57fd98(),this[_0xcc463d(0x1b2)]=_0x33c565,this[_0xcc463d(0x1cc)]=!0x0,this[_0xcc463d(0x1b6)]=_0x4ee72d;}async[_0x11a5db(0x1ca)](){const _0x235f82=_0x11a5db;let _0x5e2e47;const _0x14847a=[];this[_0x235f82(0x1cc)]=!0x1;try{this[_0x235f82(0x1a3)]=await this[_0x235f82(0x1e1)](),this[_0x235f82(0x1a8)](_0x235f82(0x1b7),this);const _0x421a98=await this[_0x235f82(0x1a3)][_0x235f82(0x1e0)]();for await(const _0x5b1364 of _0x421a98){if(this[_0x235f82(0x1cc)])return;if(_0x235f82(0x1ab)===_0x5b1364[_0x235f82(0x1b9)])return void this[_0x235f82(0x1a8)](_0x235f82(0x1ab),{'error':new _0x38f97e(_0x235f82(0x1bf),this)});if(_0x235f82(0x1c7)!==_0x5b1364[_0x235f82(0x1b9)]){if(_0x235f82(0x1a4)!==_0x5b1364[_0x235f82(0x1b9)]){if(_0x4963b8(_0x5b1364[_0x235f82(0x1b9)])&&this[_0x235f82(0x1d8)](_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1a6)],!0x0),_0x1aa9aa(_0x5b1364[_0x235f82(0x1b9)]))_0x14847a[_0x235f82(0x1b3)](_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1c0)]);else{if(_0x263e11(_0x5b1364[_0x235f82(0x1b9)])){if(_0x5b1364[_0x235f82(0x1b9)]!==_0x5e2e47){if(_0x5e2e47=_0x5b1364[_0x235f82(0x1b9)],_0x235f82(0x1d4)===_0x5b1364[_0x235f82(0x1b9)]){this[_0x235f82(0x1ae)]||(this[_0x235f82(0x1ae)]=!0x0,this[_0x235f82(0x1a8)](_0x235f82(0x1b4),this));continue;}if(_0x235f82(0x1ac)===_0x5b1364[_0x235f82(0x1b9)]){this[_0x235f82(0x1a0)]||(this[_0x235f82(0x1a0)]=!0x0,this[_0x235f82(0x1a8)](_0x235f82(0x1c5),this));continue;}this[_0x235f82(0x1a0)]&&(this[_0x235f82(0x1a0)]=!0x1,this[_0x235f82(0x1a8)](_0x235f82(0x1a9),this)),this[_0x235f82(0x1ae)]&&(this[_0x235f82(0x1ae)]=!0x1,this[_0x235f82(0x1a8)](_0x235f82(0x1d1),this)),this[_0x235f82(0x19d)]&&this[_0x235f82(0x19d)][_0x235f82(0x1b1)](),this[_0x235f82(0x19d)]=this[_0x235f82(0x1d0)]({'type':_0x5b1364[_0x235f82(0x1b9)],'interactionId':this['id'],'id':_0x5b1364[_0x235f82(0x1c8)]?.['id']}),_0x14847a[_0x235f82(0x19e)]>0x0&&_0x235f82(0x1c9)===_0x5b1364[_0x235f82(0x1b9)]&&(this[_0x235f82(0x19d)][_0x235f82(0x1d5)]=_0x14847a[_0x235f82(0x1da)](0x0));}_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1be)]&&this[_0x235f82(0x19d)][_0x235f82(0x1d3)](_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1be)]);}else _0x831e6e(_0x5b1364[_0x235f82(0x1b9)]);}}else this[_0x235f82(0x1dd)]=_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1b8)];}else this[_0x235f82(0x1d7)]=_0x5b1364[_0x235f82(0x1c8)][_0x235f82(0x1d7)];}}finally{this[_0x235f82(0x1cc)]||(_0x14847a[_0x235f82(0x19e)]>0x0&&(this[_0x235f82(0x19d)][_0x235f82(0x1d5)]=_0x14847a[_0x235f82(0x1da)](0x0)),this[_0x235f82(0x1df)](),this[_0x235f82(0x1a8)](_0x235f82(0x1b5),this));}}[_0x11a5db(0x1c2)](){const _0x487c3b=_0x11a5db;this[_0x487c3b(0x1cc)]||(this[_0x487c3b(0x1df)](),this[_0x487c3b(0x1a8)](_0x487c3b(0x1aa),this));}[_0x11a5db(0x1db)](_0xe9b4dd){const _0x5877fa=_0x11a5db;return this[_0x5877fa(0x1e2)][_0x5877fa(0x1ce)](_0x465447=>_0x465447['id']===_0xe9b4dd);}[_0x11a5db(0x1ba)](){const _0x5c5009=_0x11a5db;this[_0x5c5009(0x1b0)]||(this[_0x5c5009(0x1c2)](),this[_0x5c5009(0x1e2)][_0x5c5009(0x1d9)](_0x1e8161=>_0x1e8161[_0x5c5009(0x1ba)]()),this[_0x5c5009(0x1e2)]=[],this[_0x5c5009(0x1b0)]=!0x0,this[_0x5c5009(0x1a8)](_0x5c5009(0x19b),this),this[_0x5c5009(0x1bb)]());}[_0x11a5db(0x1d0)](_0x2de4aa){const _0x4b676e=_0x11a5db,_0x349aad=new _0xee6382({'editor':this[_0x4b676e(0x1b6)],'documentContextContent':this[_0x4b676e(0x1c4)]()?.[_0x4b676e(0x1d6)],..._0x2de4aa});return this[_0x4b676e(0x1e2)][_0x4b676e(0x1b3)](_0x349aad),_0x349aad[_0x4b676e(0x1cb)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x4b676e(0x1a8)](_0x4b676e(0x1bc),_0x349aad),_0x349aad;}[_0x11a5db(0x1d8)](_0x147633,_0xd2edd3=!0x1){const _0x5ebcb6=_0x11a5db;this[_0x5ebcb6(0x1a8)](_0x5ebcb6(0x1d8),_0x147633,_0xd2edd3);}[_0x11a5db(0x1df)](){const _0x213ce8=_0x11a5db;this[_0x213ce8(0x1cc)]=!0x0,this[_0x213ce8(0x1a3)]&&this[_0x213ce8(0x1a3)][_0x213ce8(0x1a2)][_0x213ce8(0x19c)](),this[_0x213ce8(0x19d)]&&this[_0x213ce8(0x19d)][_0x213ce8(0x1b1)](),this[_0x213ce8(0x1a3)]=this[_0x213ce8(0x19d)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x42ae93=_0xd66a;(function(_0x3222b2,_0x30a2d2){const _0x5f3021=_0xd66a,_0x21bf60=_0x3222b2();while(!![]){try{const _0x3c39b6=-parseInt(_0x5f3021(0x156))/0x1+parseInt(_0x5f3021(0x13f))/0x2*(parseInt(_0x5f3021(0x134))/0x3)+-parseInt(_0x5f3021(0x142))/0x4+-parseInt(_0x5f3021(0x15c))/0x5+-parseInt(_0x5f3021(0x136))/0x6+-parseInt(_0x5f3021(0x137))/0x7*(-parseInt(_0x5f3021(0x15d))/0x8)+parseInt(_0x5f3021(0x155))/0x9*(parseInt(_0x5f3021(0x14a))/0xa);if(_0x3c39b6===_0x30a2d2)break;else _0x21bf60['push'](_0x21bf60['shift']());}catch(_0x3bb520){_0x21bf60['push'](_0x21bf60['shift']());}}}(_0x3ad0,0x7943d));import{EmitterMixin as _0x4522f7,logWarning as _0xacc0af,logError as _0x9c1618}from'ckeditor5/src/utils.js';function _0xd66a(_0x73d962,_0x5293b3){const _0x3ad08e=_0x3ad0();return _0xd66a=function(_0xd66a11,_0x48d4d1){_0xd66a11=_0xd66a11-0x133;let _0x17e094=_0x3ad08e[_0xd66a11];return _0x17e094;},_0xd66a(_0x73d962,_0x5293b3);}import{getTranslation as _0x3c2065}from'../utils/common-translations.js';export class AIModels extends _0x4522f7(){[_0x42ae93(0x150)];[_0x42ae93(0x154)];[_0x42ae93(0x138)];[_0x42ae93(0x13d)]=[];constructor({connector:_0x6e974e,availableModels:_0x510b25,defaultModelId:_0x1f470d}){const _0xd6a80b=_0x42ae93;super(),this[_0xd6a80b(0x150)]=_0x6e974e,this[_0xd6a80b(0x154)]=_0x510b25,this[_0xd6a80b(0x138)]=_0x1f470d;}async[_0x42ae93(0x153)](){const _0x6a1202=_0x42ae93;if(!this[_0x6a1202(0x13d)][_0x6a1202(0x143)])try{const _0x251243=this[_0x6a1202(0x150)][_0x6a1202(0x13b)](),_0x452eef=await _0x251243[_0x6a1202(0x148)]();this[_0x6a1202(0x13d)]=_0x452eef[_0x6a1202(0x157)];}catch(_0x544cf6){throw _0x9c1618(_0x6a1202(0x14c),{'error':_0x544cf6}),_0x544cf6;}return[...this[_0x6a1202(0x13d)]];}async[_0x42ae93(0x146)](){const _0x3f1dd6=_0x42ae93,_0x5c4946=await this[_0x3f1dd6(0x153)]();return this[_0x3f1dd6(0x14d)](_0x5c4946,this[_0x3f1dd6(0x154)]);}async[_0x42ae93(0x133)](_0x12195f){const _0x33f5f0=_0x42ae93,_0x266248=await this[_0x33f5f0(0x153)]();if(!_0x266248[_0x33f5f0(0x143)])return null;if(_0x12195f){const _0x2f1831=this[_0x33f5f0(0x159)](_0x266248,_0x12195f);if(_0x2f1831)return _0x2f1831;_0xacc0af(_0x33f5f0(0x15b),{'modelId':_0x12195f,'fallBackModelId':this[_0x33f5f0(0x138)]});}return this[_0x33f5f0(0x147)]();}async[_0x42ae93(0x147)](){const _0x1f72df=_0x42ae93,_0x56c97f=await this[_0x1f72df(0x146)]();if(!_0x56c97f[_0x1f72df(0x143)])return null;if(this[_0x1f72df(0x138)]){const _0x13ff45=this[_0x1f72df(0x159)](_0x56c97f,this[_0x1f72df(0x138)]);if(_0x13ff45)return _0x13ff45;_0xacc0af(_0x1f72df(0x15e),{'defaultModelId':this[_0x1f72df(0x138)],'fallBackModelId':_0x56c97f[0x0]['id']});}return _0x56c97f[0x0];}async[_0x42ae93(0x151)](_0x4987c4){const _0x3568dd=_0x42ae93;return(await this[_0x3568dd(0x146)]())[_0x3568dd(0x135)](_0x306c3d=>_0x306c3d[_0x3568dd(0x144)]===_0x4987c4[_0x3568dd(0x144)]&&_0x306c3d[_0x3568dd(0x14f)]===_0x4987c4[_0x3568dd(0x14f)]);}[_0x42ae93(0x14d)](_0x9ff5cc,_0x4e0064){const _0x1219e5=_0x42ae93;let _0x1d9184;if(_0x4e0064){_0x1d9184=[];const _0x17d315=_0x1219e5(0x139)==typeof _0x4e0064?[_0x4e0064[_0x1219e5(0x140)]()]:_0x4e0064[_0x1219e5(0x158)](_0x53b392=>_0x53b392[_0x1219e5(0x140)]());for(const _0x5c1f40 of _0x17d315)for(const _0x3b3e50 of _0x9ff5cc)(_0x3b3e50['id'][_0x1219e5(0x140)]()===_0x5c1f40||_0x3b3e50[_0x1219e5(0x144)][_0x1219e5(0x140)]()===_0x5c1f40||ze(_0x3b3e50)&&_0x1219e5(0x13c)===_0x5c1f40||_0x3b3e50[_0x1219e5(0x14f)][_0x1219e5(0x140)]()===_0x5c1f40||_0x3b3e50['id'][_0x1219e5(0x140)]()[_0x1219e5(0x14b)](_0x5c1f40))&&_0x1d9184[_0x1219e5(0x149)](_0x3b3e50);}else _0x1d9184=_0x9ff5cc;return _0x1d9184;}[_0x42ae93(0x159)](_0x548d6b,_0x39ddbc){const _0xe96f4d=_0x42ae93;return _0x548d6b[_0xe96f4d(0x13e)](_0x8a2a5e=>ze(_0x8a2a5e)&&_0xe96f4d(0x13c)===_0x39ddbc?_0x8a2a5e:_0x8a2a5e['id']===_0x39ddbc)||null;}static[_0x42ae93(0x15a)](_0x3971ee,_0x340caf){const _0x584e55=_0x42ae93;return _0x340caf[_0x584e55(0x158)](_0x5527e9=>{const _0x1ddb74=_0x584e55;if(ze(_0x5527e9))_0x5527e9[_0x1ddb74(0x144)]=_0x3c2065(_0x3971ee,_0x1ddb74(0x152)),_0x5527e9[_0x1ddb74(0x13a)]=_0x3c2065(_0x3971ee,_0x1ddb74(0x15f));else _0x3c2065(_0x3971ee,_0x1ddb74(0x145)+_0x5527e9['id'][_0x1ddb74(0x141)]())[_0x1ddb74(0x14b)](_0x1ddb74(0x145))||(_0x5527e9[_0x1ddb74(0x13a)]=_0x3c2065(_0x3971ee,_0x1ddb74(0x145)+_0x5527e9['id'][_0x1ddb74(0x141)]()));return _0x5527e9;});}}function ze(_0x10d94c){const _0x25aa58=_0x42ae93;return _0x10d94c['id'][_0x25aa58(0x14b)](_0x25aa58(0x14e));}function _0x3ad0(){const _0xfbdab6=['some','2952624JnRvqG','5369dHIgSt','_defaultModelId','string','description','getModels','auto','_modelList','find','148jBprkF','toLocaleLowerCase','toUpperCase','625636GNEXeJ','length','name','AI_MODEL_DESCRIPTION_','getAvailableModels','getDefault','list','push','1270jnYaYP','startsWith','ai-models-unable-to-retrieve','_filterModels','agent','provider','_connector','isAvailable','AI_MODEL_NAME_AUTO','getAll','_availableModels','71703eKbLgM','840286vpNTfw','items','map','_getModelById','getLocalized','ai-chat-model-id-unrecognized','3259750oNKldr','9672fDlMcl','ai-chat-default-model-id-unrecognized','AI_MODEL_DESCRIPTION_AUTO','getModel','28311cDjhwP'];_0x3ad0=function(){return _0xfbdab6;};return _0x3ad0();}
|