@ckeditor/ckeditor5-ai 47.4.0-alpha.2 → 47.4.0-alpha.4
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/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/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/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/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/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/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.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/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4233a1=_0x4ca7;function _0x4f13(){const _0x31d549=['pinned','updateTitle','65442gfQBGa','filter','getTime','itemsLoaded','getItems','from','getFullYear','11DGZtiA','deleteConversation','3681sUZpUJ','2241400CtlhCw','getConversations','fire','init','push','find','loadItems','removeItem','500838grMmwF','715280KnLBEd','57225OIyrDt','467114tFWnKy','161jiVwxZ','map','itemRemoved','items','error','1UOsDpc','splice','connector','8536eKrXKB','getMonth','getResult','getItem','fetchConversations','findIndex','updatePinned','group','36zfwMlL','addItem','updateConversation','76paKesl','execute','itemUpdated','getDate','createdAt','updateItemTitle','updateItemPinned'];_0x4f13=function(){return _0x31d549;};return _0x4f13();}(function(_0x5d95f1,_0x105e42){const _0x36edb9=_0x4ca7,_0x2e6d51=_0x5d95f1();while(!![]){try{const _0x2dc72d=-parseInt(_0x36edb9(0x16e))/0x1*(-parseInt(_0x36edb9(0x19a))/0x2)+-parseInt(_0x36edb9(0x199))/0x3*(parseInt(_0x36edb9(0x17c))/0x4)+-parseInt(_0x36edb9(0x198))/0x5+-parseInt(_0x36edb9(0x185))/0x6*(-parseInt(_0x36edb9(0x19b))/0x7)+parseInt(_0x36edb9(0x171))/0x8*(parseInt(_0x36edb9(0x18e))/0x9)+parseInt(_0x36edb9(0x18f))/0xa*(-parseInt(_0x36edb9(0x18c))/0xb)+-parseInt(_0x36edb9(0x179))/0xc*(-parseInt(_0x36edb9(0x197))/0xd);if(_0x2dc72d===_0x105e42)break;else _0x2e6d51['push'](_0x2e6d51['shift']());}catch(_0x3ffe29){_0x2e6d51['push'](_0x2e6d51['shift']());}}}(_0x4f13,0x4ae5a));import{EmitterMixin as _0x4ca3dc}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x3608ab}from'./aichathistoryitem.js';function _0x4ca7(_0x359837,_0x2ae46f){const _0x4f13db=_0x4f13();return _0x4ca7=function(_0x4ca7f3,_0x4ea995){_0x4ca7f3=_0x4ca7f3-0x16e;let _0xef0da2=_0x4f13db[_0x4ca7f3];return _0xef0da2;},_0x4ca7(_0x359837,_0x2ae46f);}export class AIChatHistoryConversations extends _0x4ca3dc(){[_0x4233a1(0x19e)]=[];[_0x4233a1(0x170)];[_0x4233a1(0x178)];constructor({connector:_0x5873f6,group:_0x5b3446}){const _0xd2a1b6=_0x4233a1;super(),this[_0xd2a1b6(0x170)]=_0x5873f6,this[_0xd2a1b6(0x178)]=_0x5b3446;}async[_0x4233a1(0x192)](){const _0x1043b4=_0x4233a1;try{const _0x1e2e7a=this[_0x1043b4(0x170)][_0x1043b4(0x175)](this[_0x1043b4(0x178)]),_0x428071=await _0x1e2e7a[_0x1043b4(0x190)]();this[_0x1043b4(0x195)](_0x428071);}catch(_0x2de85e){this[_0x1043b4(0x191)](_0x1043b4(0x19f),{'error':_0x2de85e,'operation':_0x1043b4(0x192)});}}[_0x4233a1(0x17a)](_0xa79c57){const _0x9c6387=_0x4233a1;this[_0x9c6387(0x19e)][_0x9c6387(0x193)](_0xa79c57);}async[_0x4233a1(0x196)](_0x369824){const _0x4896bc=_0x4233a1,_0x2778c3=this[_0x4896bc(0x19e)][_0x4896bc(0x176)](_0x38a9e2=>_0x38a9e2['id']===_0x369824);if(-0x1===_0x2778c3)return!0x1;try{return await this[_0x4896bc(0x170)][_0x4896bc(0x18d)](_0x369824)[_0x4896bc(0x17d)](),this[_0x4896bc(0x19e)][_0x4896bc(0x16f)](_0x2778c3,0x1),this[_0x4896bc(0x191)](_0x4896bc(0x19d),{'itemId':_0x369824}),!0x0;}catch(_0x1445bf){return this[_0x4896bc(0x191)](_0x4896bc(0x19f),{'error':_0x1445bf,'operation':_0x4896bc(0x196),'itemId':_0x369824}),!0x1;}}[_0x4233a1(0x174)](_0x3a7e16){const _0x585c71=_0x4233a1;return this[_0x585c71(0x19e)][_0x585c71(0x194)](_0x165f70=>_0x165f70['id']===_0x3a7e16);}async[_0x4233a1(0x181)](_0x24332c,_0x3b96af){const _0x5c286a=_0x4233a1,_0x2ae093=this[_0x5c286a(0x174)](_0x24332c);if(!_0x2ae093)return!0x1;try{return await this[_0x5c286a(0x170)][_0x5c286a(0x17b)](_0x24332c,{'title':_0x3b96af})[_0x5c286a(0x173)](),_0x2ae093[_0x5c286a(0x184)](_0x3b96af),this[_0x5c286a(0x191)](_0x5c286a(0x17e),{'itemId':_0x24332c,'updates':{'title':_0x3b96af}}),!0x0;}catch(_0x5be56e){return this[_0x5c286a(0x191)](_0x5c286a(0x19f),{'error':_0x5be56e,'operation':_0x5c286a(0x181),'itemId':_0x24332c}),!0x1;}}async[_0x4233a1(0x182)](_0xea933f,_0x23861e){const _0x2f190b=_0x4233a1,_0x43e136=this[_0x2f190b(0x174)](_0xea933f);if(!_0x43e136)return!0x1;try{return await this[_0x2f190b(0x170)][_0x2f190b(0x17b)](_0xea933f,{'pinned':_0x23861e})[_0x2f190b(0x173)](),_0x43e136[_0x2f190b(0x177)](_0x23861e),this[_0x2f190b(0x191)](_0x2f190b(0x17e),{'itemId':_0xea933f,'updates':{'pinned':_0x23861e}}),!0x0;}catch(_0xbb414e){return this[_0x2f190b(0x191)](_0x2f190b(0x19f),{'error':_0xbb414e,'operation':_0x2f190b(0x182),'itemId':_0xea933f}),!0x1;}}[_0x4233a1(0x195)](_0x1368af){const _0x14ca8d=_0x4233a1;try{this[_0x14ca8d(0x19e)]=[],_0x1368af[_0x14ca8d(0x19c)](_0x259f84=>{const _0x13afc0=_0x14ca8d;this[_0x13afc0(0x17a)](new _0x3608ab(_0x259f84));}),this[_0x14ca8d(0x191)](_0x14ca8d(0x188),{'items':[...this[_0x14ca8d(0x19e)]]});}catch(_0x55f570){this[_0x14ca8d(0x191)](_0x14ca8d(0x19f),{'error':_0x55f570,'operation':_0x14ca8d(0x195)});}}[_0x4233a1(0x189)](_0x3f4bdb={}){const _0x5deb59=_0x4233a1,_0x585838=void 0x0!==_0x3f4bdb[_0x5deb59(0x183)]&&_0x3f4bdb[_0x5deb59(0x183)],_0x5c7a2e=_0x3f4bdb[_0x5deb59(0x18a)]?new Date(_0x3f4bdb[_0x5deb59(0x18a)][_0x5deb59(0x18b)](),_0x3f4bdb[_0x5deb59(0x18a)][_0x5deb59(0x172)](),_0x3f4bdb[_0x5deb59(0x18a)][_0x5deb59(0x17f)]()):null,_0x33d9ae=_0x3f4bdb['to']?new Date(_0x3f4bdb['to'][_0x5deb59(0x18b)](),_0x3f4bdb['to'][_0x5deb59(0x172)](),_0x3f4bdb['to'][_0x5deb59(0x17f)]()):null;return this[_0x5deb59(0x19e)][_0x5deb59(0x186)](_0x458235=>{const _0x506f87=_0x5deb59;if(_0x458235[_0x506f87(0x183)]!==_0x585838)return!0x1;if(_0x33d9ae){const _0x63e7a1=new Date(_0x458235[_0x506f87(0x180)][_0x506f87(0x18b)](),_0x458235[_0x506f87(0x180)][_0x506f87(0x172)](),_0x458235[_0x506f87(0x180)][_0x506f87(0x17f)]());return _0x5c7a2e?_0x5c7a2e[_0x506f87(0x187)]()===_0x33d9ae[_0x506f87(0x187)]()?_0x63e7a1[_0x506f87(0x187)]()===_0x5c7a2e[_0x506f87(0x187)]():_0x63e7a1<_0x33d9ae&&_0x63e7a1>=_0x5c7a2e:_0x63e7a1<_0x33d9ae;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x275937=_0x4c0e;(function(_0x4ed17d,_0x3d3abb){var _0x2f1db8=_0x4c0e,_0xe2c3be=_0x4ed17d();while(!![]){try{var _0x52df82=parseInt(_0x2f1db8(0xbb))/0x1*(-parseInt(_0x2f1db8(0xc6))/0x2)+-parseInt(_0x2f1db8(0xbd))/0x3+parseInt(_0x2f1db8(0xc7))/0x4+parseInt(_0x2f1db8(0xc9))/0x5+parseInt(_0x2f1db8(0xc5))/0x6*(parseInt(_0x2f1db8(0xbc))/0x7)+-parseInt(_0x2f1db8(0xc8))/0x8+-parseInt(_0x2f1db8(0xc3))/0x9;if(_0x52df82===_0x3d3abb)break;else _0xe2c3be['push'](_0xe2c3be['shift']());}catch(_0x306d77){_0xe2c3be['push'](_0xe2c3be['shift']());}}}(_0x45c5,0x642dc));import{ObservableMixin as _0xcfc3e4}from'ckeditor5/src/utils.js';import{escape as _0x5098f2}from'es-toolkit/compat';export class AIChatHistoryItem extends _0xcfc3e4(){['id'];[_0x275937(0xba)];constructor({id:_0x2640e8,title:_0x4b0a94,createdAt:_0x4e9a74,updatedAt:_0x461676,pinned:_0x3edf65}){var _0x129c1e=_0x275937;super(),this['id']=_0x2640e8,this[_0x129c1e(0xba)]=new Date(_0x4e9a74),this[_0x129c1e(0xbf)](_0x129c1e(0xc2),_0x4b0a94),this[_0x129c1e(0xbf)](_0x129c1e(0xbe),_0x461676?new Date(_0x461676):null),this[_0x129c1e(0xbf)](_0x129c1e(0xc4),_0x3edf65||!0x1);}[_0x275937(0xc0)](_0x4752d6){var _0x34b709=_0x275937;this[_0x34b709(0xbf)](_0x34b709(0xc2),_0x5098f2(_0x4752d6)),this[_0x34b709(0xbe)]=new Date();}[_0x275937(0xc1)](_0x506335){var _0x34c8b3=_0x275937;this[_0x34c8b3(0xbf)](_0x34c8b3(0xc4),_0x506335),this[_0x34c8b3(0xbe)]=new Date();}}function _0x4c0e(_0x3ebf1d,_0xd5767a){var _0x45c5d1=_0x45c5();return _0x4c0e=function(_0x4c0ec5,_0x5dd671){_0x4c0ec5=_0x4c0ec5-0xba;var _0x383fa2=_0x45c5d1[_0x4c0ec5];return _0x383fa2;},_0x4c0e(_0x3ebf1d,_0xd5767a);}function _0x45c5(){var _0x2d4ab6=['updateTitle','updatePinned','title','121914cptvmR','pinned','264dDVMop','4XLLrEj','2351228QlMbQX','3013296GSBkRc','1634685nOnQIP','createdAt','63025ERjnVs','65933TgRJCr','1207770mJIJTP','updatedAt','set'];_0x45c5=function(){return _0x2d4ab6;};return _0x45c5();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x1f5a2c=_0x2a8b;(function(_0x55817d,_0x45649d){const _0x351982=_0x2a8b,_0x3f56b8=_0x55817d();while(!![]){try{const _0x51be1c=-parseInt(_0x351982(0x132))/0x1*(parseInt(_0x351982(0xf8))/0x2)+parseInt(_0x351982(0x11d))/0x3*(-parseInt(_0x351982(0xec))/0x4)+parseInt(_0x351982(0xdf))/0x5*(parseInt(_0x351982(0xe2))/0x6)+parseInt(_0x351982(0xed))/0x7+parseInt(_0x351982(0xf1))/0x8+parseInt(_0x351982(0xfc))/0x9+-parseInt(_0x351982(0xfd))/0xa;if(_0x51be1c===_0x45649d)break;else _0x3f56b8['push'](_0x3f56b8['shift']());}catch(_0xd60db5){_0x3f56b8['push'](_0x3f56b8['shift']());}}}(_0xa1e4,0xd4615));import{ListItemView as _0x1e2524,HighlightedTextView as _0x59a14b,ButtonView as _0x4dfcb9,ListView as _0x23f49e,IconView as _0x18b3cd,createDropdown as _0x3747c7,InputTextView as _0x322ec6}from'ckeditor5/src/ui.js';function _0xa1e4(){const _0x5e193e=['ck-ai-loader__text','_createPinButtonView','fire','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','570343ZIGukY','AI_CHAT_HISTORY_REMOVE','string','ck-ai-chat-history__item-content','children','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item-title','showConfirm','ck-ai-chat-history__item','then','items','Enter','selectConversation','_createEditInputView','updateLoadingState','5KHbFfz','ck-ai-chat-history__item-row','buttonView','9997902bQUtfn','AI_CHAT_HISTORY_PIN_BUTTON','add','withText','AI_CHAT_HISTORY_LOADING_RENAMING','div','value','setTemplate','isOn','clear','5925064ZGxwYF','3999681TMoxiO','focus','_createAcceptEditButtonView','edit:cancel','7398928XdgPIT','click','AI_CHAT_HISTORY_ACCEPT','bindTemplate','text','bind','mainContent','2oHuRud','isEdit','editConversationTitle','_createCheckView','9949167fQFJUo','13465110xsWffi','panelView','updateTitle','AI_CHAT_HISTORY_LOADING_PINNING','ck-ai-chat-history__item--edit','ck-ai-chat-history__item-actions','ck-ai-chat-history__item-check','loadingState','LOADING_LABELS','tiny','highlightText','isVisible','panelPosition','_createSpinnerView','_titleView','ck-ai-chat-history__item-main-content','setConversationPinned','ck-hidden','execute','locale','listitem','addMany','ck-confirm-view-cancel','_createMenuDropdownView','ck-ai-chat-history__item-date','ck-ai-chat-history__item-check-container','ck-ai-loader','key','label','AI_CHAT_HISTORY_LOADING_UNPINNING','match','createCollection','3sHqXot','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item--active','actions','pinned','ck-confirm-view-submit','isMatching','removeConversation','AI_CHAT_HISTORY_EDIT_NAME','change:isEdit','extendTemplate','_commitEditInputValue','span','set','_createCancelEditButtonView','element'];_0xa1e4=function(){return _0x5e193e;};return _0xa1e4();}import{IconThreeHorizontalDots as _0x1726f4,IconPin as _0x1633b8,IconCheck as _0x210647,IconCancel as _0x205267}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0xb0cd2,ConfirmMixin as _0x34d72f}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4dba52}from'es-toolkit/compat';import{AISpinnerView as _0xb9437e}from'../../aicore/ui/aispinner.js';function _0x2a8b(_0x335944,_0x3d32a7){const _0xa1e411=_0xa1e4();return _0x2a8b=function(_0x2a8b87,_0x3d0b91){_0x2a8b87=_0x2a8b87-0xdd;let _0x480a49=_0xa1e411[_0x2a8b87];return _0x480a49;},_0x2a8b(_0x335944,_0x3d32a7);}import{getTranslation as _0x4c0f49}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x34d72f(_0x1e2524){['id'];static [_0x1f5a2c(0x105)]={'remove':_0x1f5a2c(0x11e),'rename':_0x1f5a2c(0xe6),'pin':_0x1f5a2c(0x100),'unpin':_0x1f5a2c(0x11a)};[_0x1f5a2c(0x121)];[_0x1f5a2c(0xf7)];[_0x1f5a2c(0x10b)];constructor(_0x500304,_0x1b3800){const _0x334286=_0x1f5a2c;super(_0x500304);const _0x1fa23b=this[_0x334286(0xf4)];this[_0x334286(0x12b)](_0x334286(0xf9),!0x1),this[_0x334286(0x12b)](_0x334286(0x108),!0x0),this[_0x334286(0x12b)](_0x334286(0x122),!!_0x1b3800[_0x334286(0x122)]),this[_0x334286(0x12b)](_0x334286(0x104),null),this['id']=_0x1b3800['id'];const {title:_0x3040b1,createdAt:_0x530520,active:_0x411136=!0x1}=_0x1b3800;this[_0x334286(0x10b)]=new _0x59a14b(),this[_0x334286(0x10b)][_0x334286(0xf5)]=_0x3040b1,this[_0x334286(0x10b)][_0x334286(0x128)]({'attributes':{'class':[_0x334286(0x138)]}});const _0x1a0a4a=this[_0x334286(0xfb)](),_0x59173a=this[_0x334286(0x12f)](_0x500304),_0x22a083=this[_0x334286(0x114)](),_0x8ee843=this[_0x334286(0xdd)](_0x500304,_0x3040b1),_0x3f79a0=this[_0x334286(0xef)](_0x500304,_0x8ee843),_0x5b43da=this[_0x334286(0x12c)](_0x500304,_0x8ee843);this[_0x334286(0x121)]=this[_0x334286(0x11c)](),this[_0x334286(0xf7)]=this[_0x334286(0x11c)](),this[_0x334286(0xf7)][_0x334286(0xe4)](this[_0x334286(0x10b)]),this[_0x334286(0x121)][_0x334286(0xe4)](_0x59173a),this[_0x334286(0x121)][_0x334286(0xe4)](_0x22a083),this['on'](_0x334286(0x127),(_0x2d804b,_0xc2a5be,_0x183bfa)=>{const _0x21c23b=_0x334286;this[_0x21c23b(0x121)][_0x21c23b(0xeb)](),this[_0x21c23b(0xf7)][_0x21c23b(0xeb)](),_0x183bfa?(this[_0x21c23b(0x121)][_0x21c23b(0xe4)](_0x3f79a0),this[_0x21c23b(0x121)][_0x21c23b(0xe4)](_0x5b43da),this[_0x21c23b(0xf7)][_0x21c23b(0xe4)](_0x8ee843),_0x8ee843[_0x21c23b(0x12d)][_0x21c23b(0xee)]()):(this[_0x21c23b(0x121)][_0x21c23b(0xe4)](_0x59173a),this[_0x21c23b(0x121)][_0x21c23b(0xe4)](_0x22a083),this[_0x21c23b(0xf7)][_0x21c23b(0xe4)](this[_0x21c23b(0x10b)]));}),this[_0x334286(0xe9)]({'tag':'li','attributes':{'class':[_0x334286(0x13a),_0x411136?_0x334286(0x120):'',_0x1fa23b['if'](_0x334286(0x108),_0x334286(0x10e),_0x6f81e=>!_0x6f81e),_0x1fa23b['if'](_0x334286(0xf9),_0x334286(0x101))],'role':_0x334286(0x111)},'children':[{'tag':_0x334286(0x12a),'attributes':{'class':[_0x334286(0x116)]},'children':[{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x103),_0x1fa23b['if'](_0x334286(0x104),_0x334286(0x10e),_0x2bbebb=>!!_0x2bbebb)]},'children':_0x411136?[_0x1a0a4a]:[]},{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x117),_0x1fa23b['if'](_0x334286(0x104),_0x334286(0x10e),_0x4f8784=>!_0x4f8784)]},'children':[this[_0x334286(0x10a)]()]}]},{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0xe0)]},'children':[{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x135)]},'on':{'click':this[_0x334286(0xf4)]['to'](_0x334286(0xf2))},'children':[{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x10c)]},'children':[{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x138),_0x1fa23b['if'](_0x334286(0x104),_0x334286(0x10e),_0x470b08=>!!_0x470b08)]},'children':this[_0x334286(0xf7)]},{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x12e),_0x1fa23b['if'](_0x334286(0x104),_0x334286(0x10e),_0x51b3fe=>!_0x51b3fe)]},'children':[{'text':_0x1fa23b['to'](_0x334286(0x104),_0x1180da=>_0x1180da?_0x4c0f49(this[_0x334286(0x110)],AIChatHistoryListItemView[_0x334286(0x105)][_0x1180da]):'')}]}]},{'tag':_0x334286(0x12a),'attributes':{'class':[_0x334286(0x115)]},'children':[_0x530520]}]},{'tag':_0x334286(0xe7),'attributes':{'class':[_0x334286(0x102)]},'children':this[_0x334286(0x121)]}]}]}),this['on'](_0x334286(0xf2),()=>{const _0x4255fa=_0x334286;this[_0x4255fa(0xf9)]||this[_0x4255fa(0x130)](_0x4255fa(0x13e),{'id':this['id']});});}[_0x1f5a2c(0xff)](_0x2bf98b){const _0x35ccc8=_0x1f5a2c;this[_0x35ccc8(0x10b)][_0x35ccc8(0xf5)]=_0x4dba52(_0x2bf98b);}[_0x1f5a2c(0xde)](_0x1fca6f,_0x2596f7){const _0x22b4c3=_0x1f5a2c;this[_0x22b4c3(0x12b)](_0x22b4c3(0x104),_0x2596f7?_0x1fca6f:null);}[_0x1f5a2c(0xfb)](){const _0x26acd5=_0x1f5a2c,_0x5cd368=new _0x18b3cd();return _0x5cd368[_0x26acd5(0x12b)]({'content':_0x210647}),_0x5cd368;}[_0x1f5a2c(0x12f)](_0x419821){const _0x42ce20=_0x1f5a2c,_0x4bd6cf=new _0x4dfcb9(_0x419821);return _0x4bd6cf[_0x42ce20(0x12b)]({'label':_0x4c0f49(_0x419821,_0x42ce20(0xe3)),'icon':_0x1633b8,'withText':!0x1,'tooltip':!0x0}),_0x4bd6cf[_0x42ce20(0xf6)](_0x42ce20(0xea))['to'](this,_0x42ce20(0x122)),_0x4bd6cf['on'](_0x42ce20(0x10f),()=>{const _0xe9bf9d=_0x42ce20,_0x74aa1a=!this[_0xe9bf9d(0x122)];this[_0xe9bf9d(0x130)](_0xe9bf9d(0x10d),{'id':this['id'],'pinned':_0x74aa1a});}),_0x4bd6cf;}[_0x1f5a2c(0x114)](){const _0x43ca1a=_0x1f5a2c,_0x1db5bd=_0x3747c7(this[_0x43ca1a(0x110)],_0xb0cd2),_0x495220=_0x1db5bd[_0x43ca1a(0xfe)][_0x43ca1a(0x136)];_0x1db5bd[_0x43ca1a(0xe1)][_0x43ca1a(0x12b)]({'label':_0x4c0f49(this[_0x43ca1a(0x110)],_0x43ca1a(0x131)),'icon':_0x1726f4}),_0x1db5bd[_0x43ca1a(0x109)]='sw';const _0x5d8119=new _0x4dfcb9(this[_0x43ca1a(0x110)]);_0x5d8119[_0x43ca1a(0x119)]=_0x4c0f49(this[_0x43ca1a(0x110)],_0x43ca1a(0x126)),_0x5d8119[_0x43ca1a(0xe5)]=!0x0,_0x5d8119['on'](_0x43ca1a(0x10f),()=>{const _0x43a8bc=_0x43ca1a;this[_0x43a8bc(0xf9)]=!0x0;});const _0x1a0942=new _0x4dfcb9(this[_0x43ca1a(0x110)]);_0x1a0942[_0x43ca1a(0x119)]=_0x4c0f49(this[_0x43ca1a(0x110)],_0x43ca1a(0x133)),_0x1a0942[_0x43ca1a(0xe5)]=!0x0,_0x1a0942['on'](_0x43ca1a(0x10f),()=>{const _0xb5a800=_0x43ca1a;this[_0xb5a800(0x139)](_0x4c0f49(this[_0xb5a800(0x110)],_0xb5a800(0x11f)),this[_0xb5a800(0x12d)])[_0xb5a800(0x13b)](()=>{const _0xeda293=_0xb5a800;this[_0xeda293(0x130)](_0xeda293(0x125),{'id':this['id']});});});const _0x34d0ca=new _0x23f49e(this[_0x43ca1a(0x110)]),_0x353b0c=new _0x1e2524(this[_0x43ca1a(0x110)]);_0x353b0c[_0x43ca1a(0x136)][_0x43ca1a(0xe4)](_0x5d8119);const _0x570241=new _0x1e2524(this[_0x43ca1a(0x110)]);return _0x570241[_0x43ca1a(0x136)][_0x43ca1a(0xe4)](_0x1a0942),_0x34d0ca[_0x43ca1a(0x13c)][_0x43ca1a(0x112)]([_0x353b0c,_0x570241]),_0x495220[_0x43ca1a(0xe4)](_0x34d0ca),_0x1db5bd;}[_0x1f5a2c(0xdd)](_0x3291f2,_0x40981){const _0x171c93=_0x1f5a2c,_0x1d7ab4=new _0x322ec6(_0x3291f2),_0x55722f=_0x1d7ab4[_0x171c93(0xf4)];return _0x1d7ab4[_0x171c93(0xe8)]=_0x40981,_0x1d7ab4[_0x171c93(0x128)]({'on':{'keydown':_0x55722f['to'](_0x37f03f=>{const _0x3c79a6=_0x171c93;_0x3c79a6(0x13d)==_0x37f03f[_0x3c79a6(0x118)]&&this[_0x3c79a6(0x129)](_0x1d7ab4);})}}),_0x1d7ab4;}[_0x1f5a2c(0xef)](_0x311e31,_0x14df50){const _0x5b9e5f=_0x1f5a2c,_0x41ab26=new _0x4dfcb9(_0x311e31);return _0x41ab26[_0x5b9e5f(0x12b)]({'icon':_0x210647,'withText':!0x1,'tooltip':_0x4c0f49(_0x311e31,_0x5b9e5f(0xf3))}),_0x41ab26[_0x5b9e5f(0x128)]({'attributes':{'class':[_0x5b9e5f(0x123)]}}),_0x41ab26['on'](_0x5b9e5f(0x10f),()=>{const _0x3b0525=_0x5b9e5f;this[_0x3b0525(0x129)](_0x14df50);}),_0x41ab26;}[_0x1f5a2c(0x129)](_0x45f443){const _0x23f584=_0x1f5a2c,_0x595725=_0x45f443[_0x23f584(0x12d)][_0x23f584(0xe8)]||'';this[_0x23f584(0x10b)][_0x23f584(0xf5)]=_0x595725,this[_0x23f584(0xf9)]=!0x1,this[_0x23f584(0x130)](_0x23f584(0xfa),{'id':this['id'],'title':_0x595725});}[_0x1f5a2c(0x12c)](_0x2245c2,_0x55c681){const _0x5243a2=_0x1f5a2c,_0x1d1eda=new _0x4dfcb9(_0x2245c2);return _0x1d1eda[_0x5243a2(0x12b)]({'icon':_0x205267,'withText':!0x1,'tooltip':_0x4c0f49(_0x2245c2,_0x5243a2(0x137))}),_0x1d1eda[_0x5243a2(0x128)]({'attributes':{'class':[_0x5243a2(0x113)]}}),_0x1d1eda['on'](_0x5243a2(0x10f),()=>{const _0x3234a0=_0x5243a2;this[_0x3234a0(0xf9)]=!0x1,_0x55c681[_0x3234a0(0xe8)]=this[_0x3234a0(0x10b)][_0x3234a0(0xf5)]||'',this[_0x3234a0(0x130)](_0x3234a0(0xf0));}),_0x1d1eda;}[_0x1f5a2c(0x10a)](){const _0x43f2af=_0x1f5a2c,_0x3885b7=new _0xb9437e(_0x43f2af(0x106));return _0x3885b7[_0x43f2af(0x108)]=!0x0,_0x3885b7;}[_0x1f5a2c(0x124)](_0x5969af){const _0x142092=_0x1f5a2c;return this[_0x142092(0x10b)]&&_0x142092(0x134)==typeof this[_0x142092(0x10b)][_0x142092(0xf5)]&&this[_0x142092(0x10b)][_0x142092(0xf5)][_0x142092(0x11b)](_0x5969af)?{'title':!0x0}:null;}[_0x1f5a2c(0x107)](_0x120678){const _0xd82cb5=_0x1f5a2c;this[_0xd82cb5(0x10b)][_0xd82cb5(0x107)](_0x120678);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39b008=_0x3a31;function _0xf0a8(){const _0x330023=['title','ck-ai-chat-history__section-title','bindTemplate','ck-ai-chat-history__section','7176636GtbkLq','isVisible','removeItem','length','7QVHQkU','178340ysyNRI','ck-hidden','863528QSBxnd','_itemsListView','itemsViews','set','6688736CcqTGX','splice','setTemplate','isMatching','find','addMany','filter','9ZXZoNM','15VNcHgP','highlightText','remove','getItem','div','indexOf','15389630UyOSJU','items','788602cCERia','1278582BHTNrq'];_0xf0a8=function(){return _0x330023;};return _0xf0a8();}(function(_0x5bc353,_0xc98f98){const _0x5382de=_0x3a31,_0x4052a7=_0x5bc353();while(!![]){try{const _0x374e7b=-parseInt(_0x5382de(0x151))/0x1+parseInt(_0x5382de(0x152))/0x2+parseInt(_0x5382de(0x149))/0x3*(-parseInt(_0x5382de(0x13d))/0x4)+-parseInt(_0x5382de(0x13b))/0x5+parseInt(_0x5382de(0x157))/0x6+-parseInt(_0x5382de(0x13a))/0x7*(parseInt(_0x5382de(0x141))/0x8)+-parseInt(_0x5382de(0x148))/0x9*(-parseInt(_0x5382de(0x14f))/0xa);if(_0x374e7b===_0xc98f98)break;else _0x4052a7['push'](_0x4052a7['shift']());}catch(_0x3925c4){_0x4052a7['push'](_0x4052a7['shift']());}}}(_0xf0a8,0x9aedc));function _0x3a31(_0x43d621,_0x4bacff){const _0xf0a8c3=_0xf0a8();return _0x3a31=function(_0x3a310a,_0xc65ed2){_0x3a310a=_0x3a310a-0x138;let _0xe10198=_0xf0a8c3[_0x3a310a];return _0xe10198;},_0x3a31(_0x43d621,_0x4bacff);}import{ListItemView as _0x339733,View as _0x386806,ListView as _0x431b30}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x339733{[_0x39b008(0x153)];[_0x39b008(0x13f)];[_0x39b008(0x13e)];constructor(_0x1b91fe,{title:_0x27ed00,items:_0x512175}){const _0x25e48c=_0x39b008;super(_0x1b91fe);const _0x49f6ee=this[_0x25e48c(0x155)];this[_0x25e48c(0x140)](_0x25e48c(0x158),!0x0),this[_0x25e48c(0x153)]=_0x27ed00,this[_0x25e48c(0x13f)]=_0x512175;const _0x3cd265=new _0x386806(_0x1b91fe);_0x3cd265[_0x25e48c(0x143)]({'tag':_0x25e48c(0x14d),'attributes':{'class':[_0x25e48c(0x154)]},'children':[this[_0x25e48c(0x153)]]}),this[_0x25e48c(0x13e)]=new _0x431b30(_0x1b91fe),this[_0x25e48c(0x13e)][_0x25e48c(0x150)][_0x25e48c(0x146)](this[_0x25e48c(0x13f)]),this[_0x25e48c(0x143)]({'tag':'li','attributes':{'class':[_0x25e48c(0x156),_0x49f6ee['if'](_0x25e48c(0x158),_0x25e48c(0x13c),_0x5060c0=>!_0x5060c0)]},'children':[_0x3cd265,this[_0x25e48c(0x13e)]]});}[_0x39b008(0x147)](_0x4f77b0){const _0x1f323e=_0x39b008,_0xbd4a79=this[_0x1f323e(0x13f)][_0x1f323e(0x139)];let _0x3da7b5=0x0;for(const _0x3c69f3 of this[_0x1f323e(0x13f)]){if(_0x4f77b0){const _0x51df7c=_0x3c69f3[_0x1f323e(0x144)](_0x4f77b0);_0x3c69f3[_0x1f323e(0x158)]=!!_0x51df7c,_0x3c69f3[_0x1f323e(0x14a)](_0x4f77b0);}else _0x3c69f3[_0x1f323e(0x158)]=!0x0,_0x3c69f3[_0x1f323e(0x14a)](null);_0x3c69f3[_0x1f323e(0x158)]&&_0x3da7b5++;}return this[_0x1f323e(0x158)]=_0x3da7b5>0x0,{'resultsCount':_0x3da7b5,'totalItemsCount':_0xbd4a79};}[_0x39b008(0x14c)](_0x74fa4){const _0x20bfb0=_0x39b008;return this[_0x20bfb0(0x13f)][_0x20bfb0(0x145)](_0x19b27f=>_0x19b27f['id']===_0x74fa4);}[_0x39b008(0x138)](_0x5393e3){const _0x2bdce3=_0x39b008,_0x125635=this[_0x2bdce3(0x13f)][_0x2bdce3(0x14e)](_0x5393e3);-0x1!==_0x125635&&(this[_0x2bdce3(0x13f)][_0x2bdce3(0x142)](_0x125635,0x1),this[_0x2bdce3(0x13e)][_0x2bdce3(0x150)][_0x2bdce3(0x14b)](_0x5393e3));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x2c8501=_0x15b2;(function(_0x758495,_0x16f88a){const _0x73bea=_0x15b2,_0x18e027=_0x758495();while(!![]){try{const _0x3f36d5=-parseInt(_0x73bea(0xb4))/0x1*(-parseInt(_0x73bea(0xba))/0x2)+-parseInt(_0x73bea(0xb7))/0x3+parseInt(_0x73bea(0xb6))/0x4+-parseInt(_0x73bea(0xac))/0x5*(parseInt(_0x73bea(0xbb))/0x6)+-parseInt(_0x73bea(0xb0))/0x7*(parseInt(_0x73bea(0xb8))/0x8)+parseInt(_0x73bea(0xb1))/0x9*(parseInt(_0x73bea(0xae))/0xa)+-parseInt(_0x73bea(0xb5))/0xb*(-parseInt(_0x73bea(0xaa))/0xc);if(_0x3f36d5===_0x16f88a)break;else _0x18e027['push'](_0x18e027['shift']());}catch(_0x571cbb){_0x18e027['push'](_0x18e027['shift']());}}}(_0x246d,0x786c0));function _0x15b2(_0x59a624,_0xaf74ff){const _0x246d4a=_0x246d();return _0x15b2=function(_0x15b299,_0x3ce046){_0x15b299=_0x15b299-0xaa;let _0x46305d=_0x246d4a[_0x15b299];return _0x46305d;},_0x15b2(_0x59a624,_0xaf74ff);}import{ListView as _0x1ed90a}from'ckeditor5/src/ui.js';function _0x246d(){const _0x4b15db=['filter','10VleluF','extendTemplate','485198eIkjSB','7614756HTzfIQ','items','sections','76631CtTncO','2008369YmoPWq','69496LMPmRN','2166225EPFZVp','88lmpVln','ck-ai-chat-history__sections','20xmYFsb','636MJpGSm','84WSLuRL','addMany','43870kvcYdX'];_0x246d=function(){return _0x4b15db;};return _0x246d();}export class AIChatHistorySectionListView extends _0x1ed90a{[_0x2c8501(0xb3)];constructor(_0x39343d,_0x276f68){const _0x3a41ea=_0x2c8501;super(_0x39343d),this[_0x3a41ea(0xb3)]=_0x276f68,this[_0x3a41ea(0xb2)][_0x3a41ea(0xab)](this[_0x3a41ea(0xb3)]),this[_0x3a41ea(0xaf)]({'attributes':{'class':[_0x3a41ea(0xb9)]}});}[_0x2c8501(0xad)](_0x310c87){const _0x45829c=_0x2c8501;let _0x2a8272=0x0,_0x38cb16=0x0;for(const _0x1335b2 of this[_0x45829c(0xb3)]){const {resultsCount:_0x2b6c11,totalItemsCount:_0x32a1a1}=_0x1335b2[_0x45829c(0xad)](_0x310c87);_0x2a8272+=_0x2b6c11,_0x38cb16+=_0x32a1a1;}return{'resultsCount':_0x2a8272,'totalItemsCount':_0x38cb16};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x554cc1=_0x3a88;(function(_0x297c1a,_0x54363e){const _0xd9c3ff=_0x3a88,_0x1755ac=_0x297c1a();while(!![]){try{const _0x5c034f=parseInt(_0xd9c3ff(0xa5))/0x1*(parseInt(_0xd9c3ff(0xb2))/0x2)+parseInt(_0xd9c3ff(0xa1))/0x3*(-parseInt(_0xd9c3ff(0xf1))/0x4)+-parseInt(_0xd9c3ff(0xb0))/0x5+parseInt(_0xd9c3ff(0xf4))/0x6+parseInt(_0xd9c3ff(0xe9))/0x7*(-parseInt(_0xd9c3ff(0xf7))/0x8)+-parseInt(_0xd9c3ff(0xa3))/0x9*(-parseInt(_0xd9c3ff(0xbe))/0xa)+parseInt(_0xd9c3ff(0xf6))/0xb;if(_0x5c034f===_0x54363e)break;else _0x1755ac['push'](_0x1755ac['shift']());}catch(_0x272211){_0x1755ac['push'](_0x1755ac['shift']());}}}(_0x41fa,0xe7629));import{View as _0x54811b,SearchTextView as _0x594483,FormHeaderView as _0x2054e5,ButtonView as _0x11e64a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x53dc01,IconCancel as _0x4f6f59,IconPlus as _0x11777a}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x489a09}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x350d88}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x56e362}from'./aichathistorylistitemview.js';function _0x41fa(){const _0x5c4644=['searchView','56402VMCkRL','delegate','isMainErrorViewVisible','_createSkeletonView','queryView','execute','_createEmptyStateView','length','_createErrorView','removeHistoryItem','isMaximized','updateLoadingState','20EiduwC','fire','bind','itemsViews','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','updateTitle','ck-ai-chat-history__content','_createSearchView','sections','locale','remove','element','ck-ai-notification_error','skeletonView','items','removeItem','indexOf','ck-ai-notification_error__dismiss-button','ck-ai-chat__start-conversation','div','title','updateItemTitle','AI_CHAT_HISTORY_SEARCH_LABEL','_refreshSearch','mainErrorView','search','splice','some','isSearchViewVisible','fieldView','ltr','updateHistoryItemsWithCategories','ck-ai-chat-history__empty','change:isLoading','isEmptyViewVisible','getItem','ck-ai-chat-history__empty-message','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','set','hasItems','extendTemplate','ck-ai-header\x20ck-ai-header_history','ck-hidden','3455312cSwqiO','emptyView','sectionsView','add','aiHistory','_updateViewVisibility','isVisible','bindTemplate','8Mgvbab','render','errorMessage','7208226rcDTsv','updateItemLoadingState','4131402dVOdOc','8SzhjkL','value','isLoading','AI_CHAT_HISTORY_HEADING','ck-rounded-corners','change:hasItems','ck-ai-chat-history','addMany','1695612jbsdQz','ck-ai-notification','7362198iUOGgD','_createListItemViews','35GVIpej','ck-reset_all','AI_CHAT_LABEL_NEW_CHAT','AI_CHAT_HISTORY_EMPTY_MESSAGE','openChat','resizeButton','children','setTemplate','change:errorMessage','push','clear','8141275qgOOBt'];_0x41fa=function(){return _0x5c4644;};return _0x41fa();}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x377a16}from'../aichathistoryui.js';import{AISkeletonView as _0x132e79,SKELETON_DEFINITIONS as _0x222163}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x123693}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x49513d}from'../../aicore/utils/common-translations.js';function _0x3a88(_0x1d13f9,_0x5b4044){const _0x41fac6=_0x41fa();return _0x3a88=function(_0x3a880a,_0x49be3c){_0x3a880a=_0x3a880a-0x9d;let _0x5337ec=_0x41fac6[_0x3a880a];return _0x5337ec;},_0x3a88(_0x1d13f9,_0x5b4044);}export class AIChatHistoryView extends _0x54811b{[_0x554cc1(0xb1)];[_0x554cc1(0xd6)];[_0x554cc1(0xcb)];[_0x554cc1(0xea)];[_0x554cc1(0xeb)];[_0x554cc1(0xaa)];constructor(_0x499149,_0x2bf47b){const _0x20bbc5=_0x554cc1;super(_0x499149),this[_0x20bbc5(0xe4)](_0x20bbc5(0xe5),!0x1),this[_0x20bbc5(0xe4)](_0x20bbc5(0xf9),!0x0),this[_0x20bbc5(0xe4)](_0x20bbc5(0xf3),''),this[_0x20bbc5(0xe4)](_0x20bbc5(0xbc),!0x1),this[_0x20bbc5(0xe4)](_0x20bbc5(0xda),!0x1),this[_0x20bbc5(0xe4)](_0x20bbc5(0xe0),!0x1),this[_0x20bbc5(0xe4)](_0x20bbc5(0xb4),!0x1);const _0x35b6ed=new _0x2054e5(_0x499149,{'label':_0x49513d(_0x499149,_0x20bbc5(0xfa)),'icon':_0x53dc01,'class':_0x20bbc5(0xe7)});_0x2bf47b&&(this[_0x20bbc5(0xaa)]=_0x123693(_0x499149,this),_0x35b6ed[_0x20bbc5(0xab)][_0x20bbc5(0xec)](this[_0x20bbc5(0xaa)])),this[_0x20bbc5(0xeb)]=new _0x489a09(_0x499149,[]),this[_0x20bbc5(0xeb)][_0x20bbc5(0xb3)](..._0x377a16)['to'](this),this[_0x20bbc5(0xd6)]=this[_0x20bbc5(0xba)](),this[_0x20bbc5(0xcb)]=this[_0x20bbc5(0xb5)](),this[_0x20bbc5(0xea)]=this[_0x20bbc5(0xb8)](),this[_0x20bbc5(0xb1)]=this[_0x20bbc5(0xc5)](),this[_0x20bbc5(0xd6)][_0x20bbc5(0xe6)]({'attributes':{'class':[this[_0x20bbc5(0xf0)]['if'](_0x20bbc5(0xb4),_0x20bbc5(0xe8),_0x1dd89b=>!_0x1dd89b)]}}),this['on'](_0x20bbc5(0xdf),()=>this[_0x20bbc5(0xee)]()),this['on'](_0x20bbc5(0x9e),()=>this[_0x20bbc5(0xee)]()),this['on'](_0x20bbc5(0xad),()=>this[_0x20bbc5(0xee)]()),this[_0x20bbc5(0xac)]({'tag':_0x20bbc5(0xd1),'attributes':{'class':['ck',_0x20bbc5(0xa6),_0x20bbc5(0x9f),_0x20bbc5(0x9d)],'dir':_0x20bbc5(0xdc)},'children':[_0x35b6ed,{'tag':_0x20bbc5(0xd1),'attributes':{'class':[_0x20bbc5(0xc4)]},'children':[this[_0x20bbc5(0xcb)],this[_0x20bbc5(0xd6)],this[_0x20bbc5(0xea)],this[_0x20bbc5(0xb1)]]}]});}[_0x554cc1(0xee)](){const _0x5a5c2b=_0x554cc1;this[_0x5a5c2b(0xda)]=!this[_0x5a5c2b(0xf9)]&&this[_0x5a5c2b(0xe5)],this[_0x5a5c2b(0xe0)]=!this[_0x5a5c2b(0xf9)]&&!this[_0x5a5c2b(0xe5)]&&!this[_0x5a5c2b(0xf3)],this[_0x5a5c2b(0xb4)]=!this[_0x5a5c2b(0xda)]&&!!this[_0x5a5c2b(0xf3)];}[_0x554cc1(0xc5)](){const _0x5e7793=_0x554cc1,_0x3714ef=new _0x594483(this[_0x5e7793(0xc7)],{'filteredView':this[_0x5e7793(0xeb)],'queryView':{'label':_0x49513d(this[_0x5e7793(0xc7)],_0x5e7793(0xd4))},'infoView':{'text':{'notFound':{'primary':_0x5e88c6=>_0x49513d(this[_0x5e7793(0xc7)],_0x5e7793(0xe3),_0x5e88c6),'secondary':_0x49513d(this[_0x5e7793(0xc7)],_0x5e7793(0xc2))}}}}),_0x25aac1=this[_0x5e7793(0xba)]();return _0x25aac1[_0x5e7793(0xe6)]({'attributes':{'class':[this[_0x5e7793(0xf0)]['if'](_0x5e7793(0xf3),_0x5e7793(0xe8),_0x1dc583=>!_0x1dc583)]}}),_0x3714ef['on'](_0x5e7793(0xf2),()=>{const _0x58ff81=_0x5e7793;_0x3714ef[_0x58ff81(0xab)][_0x58ff81(0xec)](_0x25aac1,0x1);}),_0x3714ef[_0x5e7793(0xe6)]({'attributes':{'class':[this[_0x5e7793(0xf0)]['if'](_0x5e7793(0xda),_0x5e7793(0xe8),_0x4f3fff=>!_0x4f3fff)]}}),_0x3714ef;}[_0x554cc1(0xb5)](){const _0x559a8e=_0x554cc1,_0x12b0e1=new _0x132e79(this[_0x559a8e(0xc7)],_0x222163[_0x559a8e(0xed)]);return _0x12b0e1[_0x559a8e(0xe6)]({'attributes':{'class':[this[_0x559a8e(0xf0)]['if'](_0x559a8e(0xf9),_0x559a8e(0xe8),_0x280df0=>!_0x280df0)]}}),_0x12b0e1;}[_0x554cc1(0xba)](){const _0x563e94=_0x554cc1,_0x549f8f=new _0x54811b(this[_0x563e94(0xc7)]),_0x396227=new _0x11e64a(this[_0x563e94(0xc7)]);_0x396227[_0x563e94(0xe4)]({'withText':!0x1,'icon':_0x4f6f59,'class':_0x563e94(0xcf)}),_0x396227[_0x563e94(0xc0)](_0x563e94(0xef))['to'](this,_0x563e94(0xe5),_0x5588e2=>!!_0x5588e2),_0x396227['on'](_0x563e94(0xb7),()=>{const _0x55121e=_0x563e94;this[_0x55121e(0xf3)]='';});const _0x1b4aa0=this[_0x563e94(0xf0)];return _0x549f8f[_0x563e94(0xac)]({'tag':_0x563e94(0xd1),'attributes':{'class':['ck',_0x563e94(0xa2),_0x563e94(0xca)]},'children':[{'tag':'p','children':[{'text':_0x1b4aa0['to'](_0x563e94(0xf3))}]},_0x396227]}),_0x549f8f;}[_0x554cc1(0xb8)](){const _0x42dc66=_0x554cc1,_0x38eb6e=new _0x11e64a(this[_0x42dc66(0xc7)]);_0x38eb6e[_0x42dc66(0xe4)]({'label':_0x49513d(this[_0x42dc66(0xc7)],_0x42dc66(0xa7)),'withText':!0x0,'icon':_0x11777a,'class':_0x42dc66(0xd0)}),_0x38eb6e['on'](_0x42dc66(0xb7),()=>{const _0xf27d49=_0x42dc66;this[_0xf27d49(0xbf)](_0xf27d49(0xa9));});const _0x3d1bb8=new _0x54811b(this[_0x42dc66(0xc7)]);return _0x3d1bb8[_0x42dc66(0xac)]({'tag':_0x42dc66(0xd1),'attributes':{'class':[_0x42dc66(0xde),this[_0x42dc66(0xf0)]['if'](_0x42dc66(0xe0),_0x42dc66(0xe8),_0x2a6184=>!_0x2a6184)]},'children':[{'tag':'p','attributes':{'class':[_0x42dc66(0xe2)]},'children':[_0x49513d(this[_0x42dc66(0xc7)],_0x42dc66(0xa8))]},_0x38eb6e]}),_0x3d1bb8;}[_0x554cc1(0xa4)](_0x19f574,_0x2e2878){const _0x2b4b1e=_0x554cc1,_0x57c499=[];for(const _0x34389e of _0x19f574){const _0x18d1cf=new _0x56e362(_0x2e2878,_0x34389e);_0x18d1cf[_0x2b4b1e(0xb3)](..._0x377a16)['to'](this),_0x57c499[_0x2b4b1e(0xae)](_0x18d1cf);}return _0x57c499;}[_0x554cc1(0xdd)](_0x3c67dc){const _0x7def6e=_0x554cc1,_0x48e3d4=this[_0x7def6e(0xc7)]||'en',_0x1b174d=[];for(const _0x2e0e23 of _0x3c67dc){const _0x5473ee=this[_0x7def6e(0xa4)](_0x2e0e23[_0x7def6e(0xcc)],_0x48e3d4);_0x1b174d[_0x7def6e(0xae)](new _0x350d88(_0x48e3d4,{'title':_0x2e0e23[_0x7def6e(0xd2)],'items':_0x5473ee}));}this[_0x7def6e(0xeb)][_0x7def6e(0xc6)]=_0x1b174d,this[_0x7def6e(0xeb)][_0x7def6e(0xcc)][_0x7def6e(0xaf)](),this[_0x7def6e(0xeb)][_0x7def6e(0xcc)][_0x7def6e(0xa0)](_0x1b174d),this[_0x7def6e(0xe5)]=_0x3c67dc[_0x7def6e(0xd9)](_0x1e8f31=>_0x1e8f31[_0x7def6e(0xcc)][_0x7def6e(0xb9)]>0x0),this[_0x7def6e(0xd5)]();}[_0x554cc1(0xbb)](_0x257279){const _0x3fc359=_0x554cc1;for(const _0x5cea60 of this[_0x3fc359(0xeb)][_0x3fc359(0xc6)]){const _0x278bca=_0x5cea60[_0x3fc359(0xe1)](_0x257279);if(_0x278bca){if(_0x5cea60[_0x3fc359(0xcd)](_0x278bca),0x0===_0x5cea60[_0x3fc359(0xc1)][_0x3fc359(0xb9)]){const _0x37a3c6=this[_0x3fc359(0xeb)][_0x3fc359(0xc6)][_0x3fc359(0xce)](_0x5cea60);-0x1!==_0x37a3c6&&(this[_0x3fc359(0xeb)][_0x3fc359(0xc6)][_0x3fc359(0xd8)](_0x37a3c6,0x1),this[_0x3fc359(0xeb)][_0x3fc359(0xcc)][_0x3fc359(0xc8)](_0x5cea60));}this[_0x3fc359(0xe5)]=this[_0x3fc359(0xeb)][_0x3fc359(0xc6)][_0x3fc359(0xb9)]>0x0,this[_0x3fc359(0xd5)]();break;}}}[_0x554cc1(0xd3)](_0x5ab841,_0x202773){const _0x51d1fe=_0x554cc1;for(const _0x13f3b3 of this[_0x51d1fe(0xeb)][_0x51d1fe(0xc6)]){const _0x1ed997=_0x13f3b3[_0x51d1fe(0xe1)](_0x5ab841);if(_0x1ed997){_0x1ed997[_0x51d1fe(0xc3)](_0x202773);break;}}}[_0x554cc1(0xf5)](_0x285e62,_0x221b83,_0x1aa383){const _0x5ee07e=_0x554cc1;for(const _0x2b6112 of this[_0x5ee07e(0xeb)][_0x5ee07e(0xc6)]){const _0x44a879=_0x2b6112[_0x5ee07e(0xe1)](_0x285e62);if(_0x44a879){_0x44a879[_0x5ee07e(0xbd)](_0x221b83,_0x1aa383);break;}}}[_0x554cc1(0xd5)](){const _0x127999=_0x554cc1;if(this[_0x127999(0xe5)]){const _0x385069=this[_0x127999(0xb1)][_0x127999(0xb6)][_0x127999(0xdb)]?.[_0x127999(0xc9)]?.[_0x127999(0xf8)]||'';this[_0x127999(0xb1)][_0x127999(0xd7)](_0x385069);}}}
|
|
23
|
+
const _0x26d3e2=_0x132e;(function(_0x2b1275,_0x1d2ecf){const _0x282ef6=_0x132e,_0x5bb9c7=_0x2b1275();while(!![]){try{const _0x4242ec=parseInt(_0x282ef6(0x1e0))/0x1*(-parseInt(_0x282ef6(0x1c6))/0x2)+parseInt(_0x282ef6(0x1be))/0x3+-parseInt(_0x282ef6(0x1e5))/0x4+parseInt(_0x282ef6(0x1df))/0x5*(-parseInt(_0x282ef6(0x1ac))/0x6)+-parseInt(_0x282ef6(0x1fb))/0x7*(parseInt(_0x282ef6(0x1e1))/0x8)+parseInt(_0x282ef6(0x1c4))/0x9*(parseInt(_0x282ef6(0x1f1))/0xa)+parseInt(_0x282ef6(0x1d1))/0xb;if(_0x4242ec===_0x1d2ecf)break;else _0x5bb9c7['push'](_0x5bb9c7['shift']());}catch(_0x46bbfa){_0x5bb9c7['push'](_0x5bb9c7['shift']());}}}(_0x4591,0x3f678));import{View as _0x439b79,SearchTextView as _0x2cd949,FormHeaderView as _0x35bc8e,ButtonView as _0x4310ec}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3a209c,IconCancel as _0x4bc8f4,IconPlus as _0x263df9}from'ckeditor5/src/icons.js';function _0x4591(){const _0x120b5e=['isMainErrorViewVisible','ck-ai-chat-history__content','search','aiHistory','extendTemplate','removeItem','_createEmptyStateView','1596BQkgCP','isSearchViewVisible','set','isMaximized','ck-reset_all','fire','itemsViews','mainErrorView','_updateViewVisibility','ck-ai-chat-history__empty','execute','value','indexOf','addMany','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','2070LXRnuR','updateTitle','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','errorMessage','bind','ck-ai-header\x20ck-ai-header_history','isLoading','div','setTemplate','searchView','skeletonView','ck-ai-notification','openChat','_refreshSearch','_createSkeletonView','ck-ai-notification_error__dismiss-button','emptyView','children','1538076VbwzeH','change:hasItems','updateHistoryItemsWithCategories','splice','_createSearchView','remove','144rvorHs','queryView','2134Hdxkpr','ck-ai-chat__start-conversation','some','AI_CHAT_HISTORY_SEARCH_LABEL','getItem','sections','bindTemplate','_createErrorView','delegate','removeHistoryItem','clear','2956415ajrqrv','ck-ai-chat-history__empty-message','hasItems','ck-ai-notification_error','_createListItemViews','ck-rounded-corners','AI_CHAT_LABEL_NEW_CHAT','updateItemTitle','change:isLoading','AI_CHAT_HISTORY_EMPTY_MESSAGE','updateItemLoadingState','AI_CHAT_HISTORY_HEADING','push','render','3865RLhylY','9qqZlyw','1192okAyyk','element','ck-ai-chat-history','resizeButton','1171156NLVGHo','sectionsView','change:errorMessage','length','ltr','fieldView','add','updateLoadingState','isVisible','items','title','locale','50810UdaurK','isEmptyViewVisible','ck-hidden'];_0x4591=function(){return _0x120b5e;};return _0x4591();}import{AIChatHistorySectionListView as _0x4989f3}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xaa7f3d}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x17239a}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x393051}from'../aichathistoryui.js';import{AISkeletonView as _0x4f6855,SKELETON_DEFINITIONS as _0x2c0a35}from'../../aicore/ui/aiskeleton.js';function _0x132e(_0x62eb71,_0x3807f9){const _0x4591db=_0x4591();return _0x132e=function(_0x132ecd,_0x50f945){_0x132ecd=_0x132ecd-0x19e;let _0x10ca11=_0x4591db[_0x132ecd];return _0x10ca11;},_0x132e(_0x62eb71,_0x3807f9);}import{createResizeButton as _0xe026d2}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x26b0cf}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x439b79{[_0x26d3e2(0x1b5)];[_0x26d3e2(0x1a4)];[_0x26d3e2(0x1b6)];[_0x26d3e2(0x1bc)];[_0x26d3e2(0x1e6)];[_0x26d3e2(0x1e4)];constructor(_0x2633c1,_0x11d7d7){const _0x34776a=_0x26d3e2;super(_0x2633c1),this[_0x34776a(0x19f)](_0x34776a(0x1d3),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1b2),!0x0),this[_0x34776a(0x19f)](_0x34776a(0x1af),''),this[_0x34776a(0x19f)](_0x34776a(0x1a0),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x19e),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1f2),!0x1),this[_0x34776a(0x19f)](_0x34776a(0x1f4),!0x1);const _0x40b37e=new _0x35bc8e(_0x2633c1,{'label':_0x26b0cf(_0x2633c1,_0x34776a(0x1dc)),'icon':_0x3a209c,'class':_0x34776a(0x1b1)});_0x11d7d7&&(this[_0x34776a(0x1e4)]=_0xe026d2(_0x2633c1,this),_0x40b37e[_0x34776a(0x1bd)][_0x34776a(0x1eb)](this[_0x34776a(0x1e4)])),this[_0x34776a(0x1e6)]=new _0x4989f3(_0x2633c1,[]),this[_0x34776a(0x1e6)][_0x34776a(0x1ce)](..._0x393051)['to'](this),this[_0x34776a(0x1a4)]=this[_0x34776a(0x1cd)](),this[_0x34776a(0x1b6)]=this[_0x34776a(0x1ba)](),this[_0x34776a(0x1bc)]=this[_0x34776a(0x1fa)](),this[_0x34776a(0x1b5)]=this[_0x34776a(0x1c2)](),this[_0x34776a(0x1a4)][_0x34776a(0x1f8)]({'attributes':{'class':[this[_0x34776a(0x1cc)]['if'](_0x34776a(0x1f4),_0x34776a(0x1f3),_0x5828b8=>!_0x5828b8)]}}),this['on'](_0x34776a(0x1d9),()=>this[_0x34776a(0x1a5)]()),this['on'](_0x34776a(0x1bf),()=>this[_0x34776a(0x1a5)]()),this['on'](_0x34776a(0x1e7),()=>this[_0x34776a(0x1a5)]()),this[_0x34776a(0x1b4)]({'tag':_0x34776a(0x1b3),'attributes':{'class':['ck',_0x34776a(0x1a1),_0x34776a(0x1e3),_0x34776a(0x1d6)],'dir':_0x34776a(0x1e9)},'children':[_0x40b37e,{'tag':_0x34776a(0x1b3),'attributes':{'class':[_0x34776a(0x1f5)]},'children':[this[_0x34776a(0x1b6)],this[_0x34776a(0x1a4)],this[_0x34776a(0x1bc)],this[_0x34776a(0x1b5)]]}]});}[_0x26d3e2(0x1a5)](){const _0x1d54a7=_0x26d3e2;this[_0x1d54a7(0x19e)]=!this[_0x1d54a7(0x1b2)]&&this[_0x1d54a7(0x1d3)],this[_0x1d54a7(0x1f2)]=!this[_0x1d54a7(0x1b2)]&&!this[_0x1d54a7(0x1d3)]&&!this[_0x1d54a7(0x1af)],this[_0x1d54a7(0x1f4)]=!this[_0x1d54a7(0x19e)]&&!!this[_0x1d54a7(0x1af)];}[_0x26d3e2(0x1c2)](){const _0x3278b4=_0x26d3e2,_0x5ba7d5=new _0x2cd949(this[_0x3278b4(0x1f0)],{'filteredView':this[_0x3278b4(0x1e6)],'queryView':{'label':_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1c9))},'infoView':{'text':{'notFound':{'primary':_0x45110a=>_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1ae),_0x45110a),'secondary':_0x26b0cf(this[_0x3278b4(0x1f0)],_0x3278b4(0x1ab))}}}}),_0x416a30=this[_0x3278b4(0x1cd)]();return _0x416a30[_0x3278b4(0x1f8)]({'attributes':{'class':[this[_0x3278b4(0x1cc)]['if'](_0x3278b4(0x1af),_0x3278b4(0x1f3),_0x47bfde=>!_0x47bfde)]}}),_0x5ba7d5['on'](_0x3278b4(0x1de),()=>{const _0x4a8535=_0x3278b4;_0x5ba7d5[_0x4a8535(0x1bd)][_0x4a8535(0x1eb)](_0x416a30,0x1);}),_0x5ba7d5[_0x3278b4(0x1f8)]({'attributes':{'class':[this[_0x3278b4(0x1cc)]['if'](_0x3278b4(0x19e),_0x3278b4(0x1f3),_0x1e12d4=>!_0x1e12d4)]}}),_0x5ba7d5;}[_0x26d3e2(0x1ba)](){const _0x461056=_0x26d3e2,_0x11599b=new _0x4f6855(this[_0x461056(0x1f0)],_0x2c0a35[_0x461056(0x1f7)]);return _0x11599b[_0x461056(0x1f8)]({'attributes':{'class':[this[_0x461056(0x1cc)]['if'](_0x461056(0x1b2),_0x461056(0x1f3),_0x3d8fb0=>!_0x3d8fb0)]}}),_0x11599b;}[_0x26d3e2(0x1cd)](){const _0x1c9611=_0x26d3e2,_0xd64557=new _0x439b79(this[_0x1c9611(0x1f0)]),_0xbe79dd=new _0x4310ec(this[_0x1c9611(0x1f0)]);_0xbe79dd[_0x1c9611(0x19f)]({'withText':!0x1,'icon':_0x4bc8f4,'class':_0x1c9611(0x1bb)}),_0xbe79dd[_0x1c9611(0x1b0)](_0x1c9611(0x1ed))['to'](this,_0x1c9611(0x1d3),_0x5362ed=>!!_0x5362ed),_0xbe79dd['on'](_0x1c9611(0x1a7),()=>{const _0x2633ca=_0x1c9611;this[_0x2633ca(0x1af)]='';});const _0x45e432=this[_0x1c9611(0x1cc)];return _0xd64557[_0x1c9611(0x1b4)]({'tag':_0x1c9611(0x1b3),'attributes':{'class':['ck',_0x1c9611(0x1b7),_0x1c9611(0x1d4)]},'children':[{'tag':'p','children':[{'text':_0x45e432['to'](_0x1c9611(0x1af))}]},_0xbe79dd]}),_0xd64557;}[_0x26d3e2(0x1fa)](){const _0x20ead2=_0x26d3e2,_0x3bc61a=new _0x4310ec(this[_0x20ead2(0x1f0)]);_0x3bc61a[_0x20ead2(0x19f)]({'label':_0x26b0cf(this[_0x20ead2(0x1f0)],_0x20ead2(0x1d7)),'withText':!0x0,'icon':_0x263df9,'class':_0x20ead2(0x1c7)}),_0x3bc61a['on'](_0x20ead2(0x1a7),()=>{const _0x57ab82=_0x20ead2;this[_0x57ab82(0x1a2)](_0x57ab82(0x1b8));});const _0x3d9e96=new _0x439b79(this[_0x20ead2(0x1f0)]);return _0x3d9e96[_0x20ead2(0x1b4)]({'tag':_0x20ead2(0x1b3),'attributes':{'class':[_0x20ead2(0x1a6),this[_0x20ead2(0x1cc)]['if'](_0x20ead2(0x1f2),_0x20ead2(0x1f3),_0xd84573=>!_0xd84573)]},'children':[{'tag':'p','attributes':{'class':[_0x20ead2(0x1d2)]},'children':[_0x26b0cf(this[_0x20ead2(0x1f0)],_0x20ead2(0x1da))]},_0x3bc61a]}),_0x3d9e96;}[_0x26d3e2(0x1d5)](_0x452d85,_0x165bea){const _0x113265=_0x26d3e2,_0x3e85e9=[];for(const _0x504b10 of _0x452d85){const _0x265f7f=new _0x17239a(_0x165bea,_0x504b10);_0x265f7f[_0x113265(0x1ce)](..._0x393051)['to'](this),_0x3e85e9[_0x113265(0x1dd)](_0x265f7f);}return _0x3e85e9;}[_0x26d3e2(0x1c0)](_0x4abc3e){const _0x29883f=_0x26d3e2,_0x720b5b=this[_0x29883f(0x1f0)]||'en',_0x266bc1=[];for(const _0x1618a8 of _0x4abc3e){const _0xee1678=this[_0x29883f(0x1d5)](_0x1618a8[_0x29883f(0x1ee)],_0x720b5b);_0x266bc1[_0x29883f(0x1dd)](new _0xaa7f3d(_0x720b5b,{'title':_0x1618a8[_0x29883f(0x1ef)],'items':_0xee1678}));}this[_0x29883f(0x1e6)][_0x29883f(0x1cb)]=_0x266bc1,this[_0x29883f(0x1e6)][_0x29883f(0x1ee)][_0x29883f(0x1d0)](),this[_0x29883f(0x1e6)][_0x29883f(0x1ee)][_0x29883f(0x1aa)](_0x266bc1),this[_0x29883f(0x1d3)]=_0x4abc3e[_0x29883f(0x1c8)](_0x46d44f=>_0x46d44f[_0x29883f(0x1ee)][_0x29883f(0x1e8)]>0x0),this[_0x29883f(0x1b9)]();}[_0x26d3e2(0x1cf)](_0x49bf6d){const _0x418e71=_0x26d3e2;for(const _0x16e093 of this[_0x418e71(0x1e6)][_0x418e71(0x1cb)]){const _0x5c3fc4=_0x16e093[_0x418e71(0x1ca)](_0x49bf6d);if(_0x5c3fc4){if(_0x16e093[_0x418e71(0x1f9)](_0x5c3fc4),0x0===_0x16e093[_0x418e71(0x1a3)][_0x418e71(0x1e8)]){const _0x3f4f7b=this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1a9)](_0x16e093);-0x1!==_0x3f4f7b&&(this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1c1)](_0x3f4f7b,0x1),this[_0x418e71(0x1e6)][_0x418e71(0x1ee)][_0x418e71(0x1c3)](_0x16e093));}this[_0x418e71(0x1d3)]=this[_0x418e71(0x1e6)][_0x418e71(0x1cb)][_0x418e71(0x1e8)]>0x0,this[_0x418e71(0x1b9)]();break;}}}[_0x26d3e2(0x1d8)](_0x4fce7b,_0x5a6f7e){const _0x530a69=_0x26d3e2;for(const _0x119426 of this[_0x530a69(0x1e6)][_0x530a69(0x1cb)]){const _0x292dbb=_0x119426[_0x530a69(0x1ca)](_0x4fce7b);if(_0x292dbb){_0x292dbb[_0x530a69(0x1ad)](_0x5a6f7e);break;}}}[_0x26d3e2(0x1db)](_0x320d6d,_0x2fb753,_0x2ba43a){const _0x4b5950=_0x26d3e2;for(const _0x4234a5 of this[_0x4b5950(0x1e6)][_0x4b5950(0x1cb)]){const _0x102128=_0x4234a5[_0x4b5950(0x1ca)](_0x320d6d);if(_0x102128){_0x102128[_0x4b5950(0x1ec)](_0x2fb753,_0x2ba43a);break;}}}[_0x26d3e2(0x1b9)](){const _0x2b0626=_0x26d3e2;if(this[_0x2b0626(0x1d3)]){const _0x5db5b1=this[_0x2b0626(0x1b5)][_0x2b0626(0x1c5)][_0x2b0626(0x1ea)]?.[_0x2b0626(0x1e2)]?.[_0x2b0626(0x1a8)]||'';this[_0x2b0626(0x1b5)][_0x2b0626(0x1f6)](_0x5db5b1);}}}
|
package/src/aicore/aiediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xefcaca=_0xb995;function _0x532a(){const _0xaa3baf=['ai-selection:',':start>','getRoot','ai-selection','2127325uluFqr','13220298fyuHQR','has','_sessionId','55468XnctTV','conversion','editingDowncast','data-id','view','emptyElement','listenTo','isOfficialPlugin',':start></','createRange','from','isAtEnd','toView','trim','sort','containerElement','createUIElement','ck-fake-ai-selection','element','getMarkersGroup','112nbNpqD','getDocumentData','ready','processor','add','2311980tJCNwC','floor','push','markers','_setDataIdsOnChildren','$textProxy','isAfter','getSelectionText','schema',':end></','start','isOpening','getStart','convertAiChatSelectionMarker','getSelectedContent','hideFakeVisualSelection','isPremiumPlugin','getWalker','23292QAeNBV','_getMarkersInDocumentOrder','dataDowncast','isContent','835523BmyzrF','selection','afterInit','end','AIEditing','createRangeIn','change','removeMarker','plugins','markerName','get','getLastMatchingPosition','for','sessionId','markerToHighlight','length','indexOf','ck-ai-assistant-ui_theme','getSelection','_integrateEditor','_displayedFakeSelectionLocked',':end>','name','substring','pluginName','editors','random','isBefore','RealTimeCollaborationClient','fromCharCode','data','286072MtfQqD','context','addMarker','modelToViewWithIds','join','markerToElement','12ilxXSj','toData','showFakeVisualSelection','28gEgIyA','editing','removeAllRanges','document','getChildren','_displayedFakeSelectionId','setAttribute','version','model','_nextDataId'];_0x532a=function(){return _0xaa3baf;};return _0x532a();}(function(_0x1cb4e6,_0x31f6ac){const _0x5e0d3d=_0xb995,_0x3e865d=_0x1cb4e6();while(!![]){try{const _0x2010a1=-parseInt(_0x5e0d3d(0xf9))/0x1+parseInt(_0x5e0d3d(0x121))/0x2*(parseInt(_0x5e0d3d(0xf5))/0x3)+parseInt(_0x5e0d3d(0xca))/0x4+parseInt(_0x5e0d3d(0x12f))/0x5*(parseInt(_0x5e0d3d(0x11e))/0x6)+parseInt(_0x5e0d3d(0xde))/0x7*(-parseInt(_0x5e0d3d(0x118))/0x8)+parseInt(_0x5e0d3d(0xc7))/0x9+-parseInt(_0x5e0d3d(0xe3))/0xa;if(_0x2010a1===_0x31f6ac)break;else _0x3e865d['push'](_0x3e865d['shift']());}catch(_0x1e146f){_0x3e865d['push'](_0x3e865d['shift']());}}}(_0x532a,0xc42de));import{ViewDowncastWriter as _0xfcaa2d}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x4a4437,Editor as _0x448ee9}from'ckeditor5/src/core.js';function _0xb995(_0xd7d18d,_0x5bff28){const _0x532a0b=_0x532a();return _0xb995=function(_0xb995a8,_0x276876){_0xb995a8=_0xb995a8-0xc7;let _0x38cf1b=_0x532a0b[_0xb995a8];return _0x38cf1b;},_0xb995(_0xd7d18d,_0x5bff28);}import{uid as _0x4887ee}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x49ffdb}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0xefcaca(0x12e);export class AIEditing extends _0x4a4437{[_0xefcaca(0x126)]=null;[_0xefcaca(0x10d)]=!0x1;[_0xefcaca(0xc9)];static get[_0xefcaca(0x111)](){const _0x10d50c=_0xefcaca;return _0x10d50c(0xfd);}static get[_0xefcaca(0xd1)](){return!0x0;}static get[_0xefcaca(0xf3)](){return!0x0;}get[_0xefcaca(0x106)](){const _0x494a3f=_0xefcaca;if(!this[_0x494a3f(0xc9)]){const _0x1a29ac=_0x49ffdb(this[_0x494a3f(0x119)]),_0x40c60a=_0x1a29ac[_0x494a3f(0x101)][_0x494a3f(0xc8)](_0x494a3f(0x115))&&_0x1a29ac[_0x494a3f(0x101)][_0x494a3f(0x103)](_0x494a3f(0x115))[_0x494a3f(0x106)];this[_0x494a3f(0xc9)]=_0x40c60a||_0x4887ee();}return this[_0x494a3f(0xc9)];}[_0xefcaca(0xdf)](){const _0x3e817e=_0xefcaca,_0x18e97a=_0x49ffdb(this[_0x3e817e(0x119)]),_0x4c7c6b=_0x18e97a[_0x3e817e(0x129)],_0x3ce944=_0x18e97a[_0x3e817e(0x117)][_0x3e817e(0xd6)](_0x4c7c6b[_0x3e817e(0x124)][_0x3e817e(0x12d)](),{'convertAiChatSelectionMarker':!0x0}),_0x5100cc=new _0xfcaa2d(_0x18e97a[_0x3e817e(0x122)][_0x3e817e(0xce)][_0x3e817e(0x124)]);this[_0x3e817e(0xe7)](_0x3ce944,_0x5100cc);let _0xf14136=_0x18e97a[_0x3e817e(0x117)][_0x3e817e(0xe1)][_0x3e817e(0x11f)](_0x3ce944);const _0x517bc8=this[_0x3e817e(0xf6)](),_0x5c4076=[];for(const _0x255fb7 of _0x517bc8){const _0x4a493e='<'+_0x255fb7[_0x3e817e(0x10f)]+_0x3e817e(0xd2)+_0x255fb7[_0x3e817e(0x10f)]+_0x3e817e(0x12c),_0x5883eb=_0xf14136[_0x3e817e(0x109)](_0x4a493e);_0xf14136=_0xf14136[_0x3e817e(0x110)](0x0,_0x5883eb)+_0xf14136[_0x3e817e(0x110)](_0x5883eb+_0x4a493e[_0x3e817e(0x108)]);const _0x2228f1='<'+_0x255fb7[_0x3e817e(0x10f)]+_0x3e817e(0xec)+_0x255fb7[_0x3e817e(0x10f)]+_0x3e817e(0x10e),_0x152ed5=_0xf14136[_0x3e817e(0x109)](_0x2228f1);_0xf14136=_0xf14136[_0x3e817e(0x110)](0x0,_0x152ed5)+_0xf14136[_0x3e817e(0x110)](_0x152ed5+_0x2228f1[_0x3e817e(0x108)]),_0x5c4076[_0x3e817e(0xe5)]({'markerName':_0x255fb7[_0x3e817e(0x10f)],'start':_0x5883eb,'end':_0x152ed5,'htmlFragment':_0xf14136[_0x3e817e(0x110)](_0x5883eb,_0x152ed5)});}return{'content':_0xf14136,'version':_0x18e97a[_0x3e817e(0x129)][_0x3e817e(0x124)][_0x3e817e(0x128)],'sessionId':this[_0x3e817e(0x106)],'selections':_0x5c4076};}async[_0xefcaca(0xfb)](){const _0x4bb9d0=_0xefcaca;this[_0x4bb9d0(0x119)]instanceof _0x448ee9?this[_0x4bb9d0(0x10c)](this[_0x4bb9d0(0x119)]):this[_0x4bb9d0(0xd0)](this[_0x4bb9d0(0x119)][_0x4bb9d0(0x112)],_0x4bb9d0(0xe2),(_0x477707,_0x3e7516)=>{const _0x478c26=_0x4bb9d0;_0x3e7516['on'](_0x478c26(0xe0),()=>{const _0x14d0d8=_0x478c26;this[_0x14d0d8(0x10c)](_0x3e7516);});});}[_0xefcaca(0x10c)](_0x725eb){const _0x3a36aa=_0xefcaca;_0x725eb[_0x3a36aa(0xcb)][_0x3a36aa(0x105)](_0x3a36aa(0xcc))[_0x3a36aa(0x107)]({'model':_0x3a36aa(0x12e),'view':{'classes':[_0x3a36aa(0xdb),_0x3a36aa(0x10a)],'priority':0xc}}),_0x725eb[_0x3a36aa(0xcb)][_0x3a36aa(0x105)](_0x3a36aa(0xf7))[_0x3a36aa(0x11d)]({'model':_0x3a36aa(0x12e),'view':(_0x9098,{writer:_0x10eabc,options:_0x1cfcca})=>_0x1cfcca[_0x3a36aa(0xf0)]?_0x10eabc[_0x3a36aa(0xda)](_0x9098[_0x3a36aa(0x102)]+':'+(_0x9098[_0x3a36aa(0xee)]?_0x3a36aa(0xed):_0x3a36aa(0xfc))):null});}[_0xefcaca(0x120)](_0x3750e0,_0xbea206,_0x4857ce=!0x1,_0x156d91=!0x1){const _0x1b1287=_0xefcaca;if(this[_0x1b1287(0x10d)]&&!_0x156d91)return!0x1;const _0x3de6a8=_0x49ffdb(this[_0x1b1287(0x119)])[_0x1b1287(0x129)];return _0x3de6a8[_0x1b1287(0xff)](_0x3ace26=>{const _0xade842=_0x1b1287;this[_0xade842(0x126)]&&this[_0xade842(0xf2)](this[_0xade842(0x126)]),this[_0xade842(0x126)]=_0xbea206,this[_0xade842(0x10d)]=_0x4857ce;let _0x47a781=0x0;for(let _0x35b911 of _0x3750e0){const _0x557a34=_0xade842(0x12b)+_0x47a781;if(_0x35b911[_0xade842(0xed)][_0xade842(0xd5)]){const _0x53c6eb=_0x35b911[_0xade842(0xed)][_0xade842(0x104)](({item:_0x25b41c})=>!_0x3de6a8[_0xade842(0xeb)][_0xade842(0xf8)](_0x25b41c),{'boundaries':_0x35b911});_0x35b911=_0x3ace26[_0xade842(0xd3)](_0x53c6eb,_0x35b911[_0xade842(0xfc)]);}_0x3ace26[_0xade842(0x11a)](_0x557a34,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x35b911}),_0x47a781++;}}),window[_0x1b1287(0x10b)]()?.[_0x1b1287(0x123)](),!0x0;}[_0xefcaca(0xf2)](_0x15b1cd){const _0x224ac1=_0xefcaca;if(this[_0x224ac1(0x126)]!=_0x15b1cd)return!0x1;this[_0x224ac1(0x126)]=null,this[_0x224ac1(0x10d)]=!0x1;const _0xddb487=_0x49ffdb(this[_0x224ac1(0x119)]),_0x1e73ab=_0xddb487[_0x224ac1(0x129)][_0x224ac1(0xe6)][_0x224ac1(0xdd)](_0x224ac1(0x12e));return _0xddb487[_0x224ac1(0x129)][_0x224ac1(0xff)](_0x103789=>{const _0x25bbc2=_0x224ac1;for(const _0x55486e of _0x1e73ab)_0x103789[_0x25bbc2(0x100)](_0x55486e);}),!0x0;}[_0xefcaca(0x11b)](_0x68a270){const _0x185eb2=_0xefcaca,_0x434aec=_0x49ffdb(this[_0x185eb2(0x119)]),_0x2281de=_0x434aec[_0x185eb2(0x117)][_0x185eb2(0xd6)](_0x68a270),_0x333132=new _0xfcaa2d(_0x434aec[_0x185eb2(0x122)][_0x185eb2(0xce)][_0x185eb2(0x124)]);return this[_0x185eb2(0xe7)](_0x2281de,_0x333132),_0x2281de;}[_0xefcaca(0xe7)](_0x43e7d7,_0x4b2baf){const _0x1b12be=_0xefcaca;let _0x11c514=!0x1;const _0x426bc1=new Set();for(const _0x4b977a of _0x43e7d7[_0x1b12be(0x125)]()){const _0x26326f=_0x4b977a['is'](_0x1b12be(0xcf))||_0x4b977a['is'](_0x1b12be(0xd9));if(!_0x4b977a['is'](_0x1b12be(0xdc)))continue;(this[_0x1b12be(0xe7)](_0x4b977a,_0x4b2baf)||_0x26326f)&&(_0x4b2baf[_0x1b12be(0x127)](_0x1b12be(0xcd),this[_0x1b12be(0x12a)](_0x426bc1),_0x4b977a),_0x11c514=!0x0);}return _0x11c514;}[_0xefcaca(0x12a)](_0x466f63){const _0x32503b=_0xefcaca;let _0xffb91b;do{_0xffb91b='';for(let _0x202c2f=0x0;_0x202c2f<0x4;_0x202c2f++)_0xffb91b+=String[_0x32503b(0x116)](0x61+Math[_0x32503b(0xe4)](0x1a*Math[_0x32503b(0x113)]()));}while(_0x466f63[_0x32503b(0xc8)](_0xffb91b));return _0x466f63[_0x32503b(0xe2)](_0xffb91b),_0xffb91b;}[_0xefcaca(0xea)](){const _0x1dee55=_0xefcaca,{model:_0x2a63ff}=_0x49ffdb(this[_0x1dee55(0x119)]),_0x4e79cb=_0x2a63ff[_0x1dee55(0x124)][_0x1dee55(0xfa)],_0x4e7a6d=_0x2a63ff[_0x1dee55(0xf1)](_0x4e79cb),_0x36e7f4=[],_0x26c7ae=_0x2a63ff[_0x1dee55(0xfe)](_0x4e7a6d)[_0x1dee55(0xf4)]();for(const {item:_0x2f37e8}of _0x26c7ae)_0x2f37e8['is'](_0x1dee55(0xe8))?_0x36e7f4[_0x1dee55(0xe5)](_0x2f37e8[_0x1dee55(0x117)]):_0x2f37e8['is'](_0x1dee55(0xdc))&&_0x36e7f4[_0x1dee55(0x108)]>0x0&&'\x20'!==_0x36e7f4[_0x36e7f4[_0x1dee55(0x108)]-0x1]&&_0x36e7f4[_0x1dee55(0xe5)]('\x20');return'\x22'+_0x36e7f4[_0x1dee55(0x11c)]('')[_0x1dee55(0xd7)]()+'\x22';}[_0xefcaca(0xf6)](){const _0x336328=_0xefcaca,_0x3e7405=_0x49ffdb(this[_0x336328(0x119)])[_0x336328(0x129)];return Array[_0x336328(0xd4)](_0x3e7405[_0x336328(0xe6)][_0x336328(0xdd)](_0x336328(0x12e)))[_0x336328(0xd8)]((_0x283a68,_0x583750)=>_0x283a68[_0x336328(0xef)]()[_0x336328(0x114)](_0x583750[_0x336328(0xef)]())?-0x1:_0x283a68[_0x336328(0xef)]()[_0x336328(0xe9)](_0x583750[_0x336328(0xef)]())?0x1:0x0);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3fdbd0=_0x4771;(function(_0x2b060c,_0x1bf201){const _0x378212=_0x4771,_0x288a89=_0x2b060c();while(!![]){try{const _0x3cad30=parseInt(_0x378212(0xf4))/0x1+-parseInt(_0x378212(0xda))/0x2*(-parseInt(_0x378212(0xcf))/0x3)+-parseInt(_0x378212(0x110))/0x4*(parseInt(_0x378212(0xf1))/0x5)+-parseInt(_0x378212(0xe2))/0x6+parseInt(_0x378212(0x10c))/0x7*(parseInt(_0x378212(0xec))/0x8)+parseInt(_0x378212(0xd0))/0x9*(parseInt(_0x378212(0xf0))/0xa)+-parseInt(_0x378212(0xd6))/0xb;if(_0x3cad30===_0x1bf201)break;else _0x288a89['push'](_0x288a89['shift']());}catch(_0x2117db){_0x288a89['push'](_0x288a89['shift']());}}}(_0x2ceb,0x4a60a));function _0x2ceb(){const _0x32efd3=['reasoningFinished','splice','sendRequest','reasoningStarted','conversationTitle','connector','sources','getDocumentContext','_isWebSearching','content','callId','currentRequest','createReply','push','destroy','replyChangeGroupStateUpdated','interactionDestroyed','replies','42tGIaKV','web-search','reasoning','currentReply','4xftFiW','actionCallId','editor','getReply','abortController','stopListening','1340859iZGkKo','999wZdyxz','forEach','getStream','isDestroyed','webSearchFinished','start','3911248SeJwKp','modification-delta','data','messageId','2tJgBuk','textDelta','webSearchStarted','appendContent','setConversationTitle','ai-chat-interaction-error','stop','done','823944qRTHvR','event','_finalizeInteraction','interactionStarted','message-metadata','interactionCreated','interactionFinished','replyCreated','find','interactionStopped','525328nVffnJ','_isReasoning','source','abort','33560JnKXCZ','2540355KKeImS','isStopped','fire','92148bcNwar','length','replyContentUpdated','error','action-metadata','delegate'];_0x2ceb=function(){return _0x32efd3;};return _0x2ceb();}import{CKEditorError as _0x3d903a,EmitterMixin as _0x27f314,uid as _0x5b39b7}from'ckeditor5/src/utils.js';import{AIReply as _0x47ab16,isIgnoredReplyType as _0x462f32,isValidReplyType as _0x14bca1,isReplyTitleType as _0x3171bc,isSourceType as _0x1ce9cc}from'./aireply.js';function _0x4771(_0xa726f7,_0x57aefb){const _0x2ceb6d=_0x2ceb();return _0x4771=function(_0x47717e,_0xe0a680){_0x47717e=_0x47717e-0xce;let _0x4d8b2a=_0x2ceb6d[_0x47717e];return _0x4d8b2a;},_0x4771(_0xa726f7,_0x57aefb);}export const AI_MODEL_EVENT_NAMES=[_0x3fdbd0(0xe7),_0x3fdbd0(0xe5),_0x3fdbd0(0xeb),_0x3fdbd0(0xe8),_0x3fdbd0(0x10a),_0x3fdbd0(0xe9),_0x3fdbd0(0xf6),_0x3fdbd0(0x109),_0x3fdbd0(0xde),_0x3fdbd0(0xdc),_0x3fdbd0(0xd4),_0x3fdbd0(0xfd),_0x3fdbd0(0xfa),_0x3fdbd0(0xf7)];export class AIInteraction extends _0x27f314(){['id'];[_0x3fdbd0(0x10b)]=[];[_0x3fdbd0(0x10f)];[_0x3fdbd0(0xd9)];[_0x3fdbd0(0x111)];[_0x3fdbd0(0x105)];[_0x3fdbd0(0xff)];[_0x3fdbd0(0xf2)]=!0x1;[_0x3fdbd0(0xd3)]=!0x1;[_0x3fdbd0(0x112)];[_0x3fdbd0(0xed)]=!0x1;[_0x3fdbd0(0x102)]=!0x1;constructor({connector:_0x453e51,editor:_0xff832e}){const _0x2d972a=_0x3fdbd0;super(),this['id']=_0x5b39b7(),this[_0x2d972a(0xff)]=_0x453e51,this[_0x2d972a(0xf2)]=!0x0,this[_0x2d972a(0x112)]=_0xff832e;}async[_0x3fdbd0(0xd5)](){const _0x3e6e31=_0x3fdbd0;let _0x4f1f9d;const _0x2d585c=[];this[_0x3e6e31(0xf2)]=!0x1;try{this[_0x3e6e31(0x105)]=await this[_0x3e6e31(0xfc)](),this[_0x3e6e31(0xf3)](_0x3e6e31(0xe5),this);const _0xac3580=await this[_0x3e6e31(0x105)][_0x3e6e31(0xd2)]();for await(const _0x30bf7c of _0xac3580){if(this[_0x3e6e31(0xf2)])return;if(_0x3e6e31(0xf7)===_0x30bf7c[_0x3e6e31(0xe3)])return void this[_0x3e6e31(0xf3)](_0x3e6e31(0xf7),{'error':new _0x3d903a(_0x3e6e31(0xdf),this)});if(_0x3e6e31(0xe6)!==_0x30bf7c[_0x3e6e31(0xe3)]){if(_0x3e6e31(0xf8)!==_0x30bf7c[_0x3e6e31(0xe3)]){if(_0x3171bc(_0x30bf7c[_0x3e6e31(0xe3)])&&this[_0x3e6e31(0xde)](_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xfe)],!0x0),_0x1ce9cc(_0x30bf7c[_0x3e6e31(0xe3)]))_0x2d585c[_0x3e6e31(0x107)](_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xee)]);else{if(_0x14bca1(_0x30bf7c[_0x3e6e31(0xe3)])){if(_0x30bf7c[_0x3e6e31(0xe3)]!==_0x4f1f9d){if(_0x4f1f9d=_0x30bf7c[_0x3e6e31(0xe3)],_0x3e6e31(0x10d)===_0x30bf7c[_0x3e6e31(0xe3)]){this[_0x3e6e31(0x102)]||(this[_0x3e6e31(0x102)]=!0x0,this[_0x3e6e31(0xf3)](_0x3e6e31(0xdc),this));continue;}if(_0x3e6e31(0x10e)===_0x30bf7c[_0x3e6e31(0xe3)]){this[_0x3e6e31(0xed)]||(this[_0x3e6e31(0xed)]=!0x0,this[_0x3e6e31(0xf3)](_0x3e6e31(0xfd),this));continue;}this[_0x3e6e31(0xed)]&&(this[_0x3e6e31(0xed)]=!0x1,this[_0x3e6e31(0xf3)](_0x3e6e31(0xfa),this)),this[_0x3e6e31(0x102)]&&(this[_0x3e6e31(0x102)]=!0x1,this[_0x3e6e31(0xf3)](_0x3e6e31(0xd4),this)),this[_0x3e6e31(0x10f)]&&this[_0x3e6e31(0x10f)][_0x3e6e31(0xe1)](),this[_0x3e6e31(0x10f)]=this[_0x3e6e31(0x106)]({'type':_0x30bf7c[_0x3e6e31(0xe3)],'interactionId':this['id'],'id':_0x30bf7c[_0x3e6e31(0xd8)]?.['id']}),_0x2d585c[_0x3e6e31(0xf5)]>0x0&&_0x3e6e31(0xd7)===_0x30bf7c[_0x3e6e31(0xe3)]&&(this[_0x3e6e31(0x10f)][_0x3e6e31(0x100)]=_0x2d585c[_0x3e6e31(0xfb)](0x0));}_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xdb)]&&this[_0x3e6e31(0x10f)][_0x3e6e31(0xdd)](_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xdb)]);}else _0x462f32(_0x30bf7c[_0x3e6e31(0xe3)]);}}else this[_0x3e6e31(0x111)]=_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0x104)];}else this[_0x3e6e31(0xd9)]=_0x30bf7c[_0x3e6e31(0xd8)][_0x3e6e31(0xd9)];}}finally{this[_0x3e6e31(0xf2)]||(_0x2d585c[_0x3e6e31(0xf5)]>0x0&&(this[_0x3e6e31(0x10f)][_0x3e6e31(0x100)]=_0x2d585c[_0x3e6e31(0xfb)](0x0)),this[_0x3e6e31(0xe4)](),this[_0x3e6e31(0xf3)](_0x3e6e31(0xe8),this));}}[_0x3fdbd0(0xe0)](){const _0x44be56=_0x3fdbd0;this[_0x44be56(0xf2)]||(this[_0x44be56(0xe4)](),this[_0x44be56(0xf3)](_0x44be56(0xeb),this));}[_0x3fdbd0(0x113)](_0x58d430){const _0x4d84e7=_0x3fdbd0;return this[_0x4d84e7(0x10b)][_0x4d84e7(0xea)](_0x4db2a7=>_0x4db2a7['id']===_0x58d430);}[_0x3fdbd0(0x108)](){const _0x135920=_0x3fdbd0;this[_0x135920(0xd3)]||(this[_0x135920(0xe0)](),this[_0x135920(0x10b)][_0x135920(0xd1)](_0x1ba2b3=>_0x1ba2b3[_0x135920(0x108)]()),this[_0x135920(0x10b)]=[],this[_0x135920(0xd3)]=!0x0,this[_0x135920(0xf3)](_0x135920(0x10a),this),this[_0x135920(0xce)]());}[_0x3fdbd0(0x106)](_0x24f8ef){const _0x37d462=_0x3fdbd0,_0x436afb=new _0x47ab16({'editor':this[_0x37d462(0x112)],'documentContextContent':this[_0x37d462(0x101)]()?.[_0x37d462(0x103)],..._0x24f8ef});return this[_0x37d462(0x10b)][_0x37d462(0x107)](_0x436afb),_0x436afb[_0x37d462(0xf9)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x37d462(0xf3)](_0x37d462(0xe9),_0x436afb),_0x436afb;}[_0x3fdbd0(0xde)](_0x1b0e56,_0x5f18d7=!0x1){const _0x3b7f45=_0x3fdbd0;this[_0x3b7f45(0xf3)](_0x3b7f45(0xde),_0x1b0e56,_0x5f18d7);}[_0x3fdbd0(0xe4)](){const _0x13b417=_0x3fdbd0;this[_0x13b417(0xf2)]=!0x0,this[_0x13b417(0x105)]&&this[_0x13b417(0x105)][_0x13b417(0x114)][_0x13b417(0xef)](),this[_0x13b417(0x10f)]&&this[_0x13b417(0x10f)][_0x13b417(0xe1)](),this[_0x13b417(0x105)]=this[_0x13b417(0x10f)]=void 0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20d8b4=_0x50da;function _0x39a5(){const _0x200d3c=['708tAutcM','provider','_modelList','getDefault','380dKgscN','some','find','uiLanguage','list','isAvailable','AI_MODEL_NAME_AUTO','agent','_availableModels','710PJxLui','22425NRzkRu','getAvailableModels','length','_connector','36HNlNYu','getModels','_locale','getModel','82782RfFqWc','306738lmxByi','6ZqcuRP','startsWith','auto','items','map','304278HxqASh','_filterModels','ai-models-unable-to-retrieve','name','3219528JPkNmQ','_defaultModelId','ai-chat-default-model-id-unrecognized','249809qvEkoW','push','getAll','190861qAFSyU','toLocaleLowerCase','_getModelById','string','ai-chat-model-id-unrecognized'];_0x39a5=function(){return _0x200d3c;};return _0x39a5();}(function(_0x536018,_0x458d1d){const _0x39bffa=_0x50da,_0x5e5678=_0x536018();while(!![]){try{const _0x7babd=parseInt(_0x39bffa(0x192))/0x1+-parseInt(_0x39bffa(0x18c))/0x2*(-parseInt(_0x39bffa(0x18d))/0x3)+parseInt(_0x39bffa(0x179))/0x4*(-parseInt(_0x39bffa(0x183))/0x5)+parseInt(_0x39bffa(0x187))/0x6*(parseInt(_0x39bffa(0x199))/0x7)+-parseInt(_0x39bffa(0x196))/0x8+parseInt(_0x39bffa(0x18b))/0x9*(-parseInt(_0x39bffa(0x182))/0xa)+parseInt(_0x39bffa(0x19c))/0xb*(parseInt(_0x39bffa(0x175))/0xc);if(_0x7babd===_0x458d1d)break;else _0x5e5678['push'](_0x5e5678['shift']());}catch(_0x45c6d7){_0x5e5678['push'](_0x5e5678['shift']());}}}(_0x39a5,0x59aa9));function _0x50da(_0x1985ac,_0x2217e6){const _0x39a5fb=_0x39a5();return _0x50da=function(_0x50daa7,_0x5a86f4){_0x50daa7=_0x50daa7-0x174;let _0x185e5a=_0x39a5fb[_0x50daa7];return _0x185e5a;},_0x50da(_0x1985ac,_0x2217e6);}import{EmitterMixin as _0x3b22e9,logWarning as _0xf4a43f,logError as _0x56c4f0}from'ckeditor5/src/utils.js';import{getTranslation as _0x45f630}from'../utils/common-translations.js';export class AIModels extends _0x3b22e9(){[_0x20d8b4(0x186)];[_0x20d8b4(0x181)];[_0x20d8b4(0x197)];[_0x20d8b4(0x189)];[_0x20d8b4(0x177)]=[];constructor({connector:_0x52783e,availableModels:_0x277ed8,defaultModelId:_0x520ada,locale:_0x390ae6}){const _0x130e44=_0x20d8b4;super(),this[_0x130e44(0x186)]=_0x52783e,this[_0x130e44(0x181)]=_0x277ed8,this[_0x130e44(0x197)]=_0x520ada,this[_0x130e44(0x189)]=_0x390ae6;}async[_0x20d8b4(0x19b)](){const _0x427f1d=_0x20d8b4;if(!this[_0x427f1d(0x177)][_0x427f1d(0x185)])try{const _0x1930e3=this[_0x427f1d(0x189)][_0x427f1d(0x17c)]||'en',_0xb0fadc=this[_0x427f1d(0x186)][_0x427f1d(0x188)](_0x1930e3),_0x3f46bf=await _0xb0fadc[_0x427f1d(0x17d)]();this[_0x427f1d(0x177)]=_0x3f46bf[_0x427f1d(0x190)][_0x427f1d(0x191)](_0x54bba3=>$e(_0x54bba3)?{..._0x54bba3,'name':_0x45f630(this[_0x427f1d(0x189)],_0x427f1d(0x17f))}:_0x54bba3);}catch(_0xe4f73){throw _0x56c4f0(_0x427f1d(0x194),{'error':_0xe4f73}),_0xe4f73;}return[...this[_0x427f1d(0x177)]];}async[_0x20d8b4(0x184)](){const _0x21dea2=_0x20d8b4,_0x39dd44=await this[_0x21dea2(0x19b)]();return this[_0x21dea2(0x193)](_0x39dd44,this[_0x21dea2(0x181)]);}async[_0x20d8b4(0x18a)](_0x37a05f){const _0x74933=_0x20d8b4,_0x3b2060=await this[_0x74933(0x19b)]();if(!_0x3b2060[_0x74933(0x185)])return null;if(_0x37a05f){const _0x36a12a=this[_0x74933(0x19e)](_0x3b2060,_0x37a05f);if(_0x36a12a)return _0x36a12a;_0xf4a43f(_0x74933(0x174),{'modelId':_0x37a05f,'fallBackModelId':this[_0x74933(0x197)]});}return this[_0x74933(0x178)]();}async[_0x20d8b4(0x178)](){const _0x2c179a=_0x20d8b4,_0xa96fc6=await this[_0x2c179a(0x184)]();if(!_0xa96fc6[_0x2c179a(0x185)])return null;if(this[_0x2c179a(0x197)]){const _0x592ab3=this[_0x2c179a(0x19e)](_0xa96fc6,this[_0x2c179a(0x197)]);if(_0x592ab3)return _0x592ab3;_0xf4a43f(_0x2c179a(0x198),{'defaultModelId':this[_0x2c179a(0x197)],'fallBackModelId':_0xa96fc6[0x0]['id']});}return _0xa96fc6[0x0];}async[_0x20d8b4(0x17e)](_0x5da29b){const _0x358053=_0x20d8b4;return(await this[_0x358053(0x184)]())[_0x358053(0x17a)](_0x5b1e24=>_0x5b1e24[_0x358053(0x195)]===_0x5da29b[_0x358053(0x195)]&&_0x5b1e24[_0x358053(0x176)]===_0x5da29b[_0x358053(0x176)]);}[_0x20d8b4(0x193)](_0x24019c,_0x409555){const _0x396e85=_0x20d8b4;let _0x2d76f4;if(_0x409555){_0x2d76f4=[];const _0x220cc4=_0x396e85(0x19f)==typeof _0x409555?[_0x409555[_0x396e85(0x19d)]()]:_0x409555[_0x396e85(0x191)](_0x304b5f=>_0x304b5f[_0x396e85(0x19d)]());for(const _0x531a76 of _0x220cc4)for(const _0x2f5c7e of _0x24019c)(_0x2f5c7e['id'][_0x396e85(0x19d)]()===_0x531a76||_0x2f5c7e[_0x396e85(0x195)][_0x396e85(0x19d)]()===_0x531a76||$e(_0x2f5c7e)&&_0x396e85(0x18f)===_0x531a76||_0x2f5c7e[_0x396e85(0x176)][_0x396e85(0x19d)]()===_0x531a76||_0x2f5c7e['id'][_0x396e85(0x19d)]()[_0x396e85(0x18e)](_0x531a76))&&_0x2d76f4[_0x396e85(0x19a)](_0x2f5c7e);}else _0x2d76f4=_0x24019c;return _0x2d76f4;}[_0x20d8b4(0x19e)](_0x48f5e1,_0x4fb4eb){const _0x2d010b=_0x20d8b4;return _0x48f5e1[_0x2d010b(0x17b)](_0x323ee8=>$e(_0x323ee8)&&_0x2d010b(0x18f)===_0x4fb4eb?_0x323ee8:_0x323ee8['id']===_0x4fb4eb)||null;}}function $e(_0x2a4d7b){const _0x172c6f=_0x20d8b4;return _0x2a4d7b['id'][_0x172c6f(0x18e)](_0x172c6f(0x180));}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x4fdd(){const _0x4ed6e2=['span','areActionsDisabled','find','editor','node','fire','done','locale','2835329uVtbeV','modifiedNodeIds','documentContextContent','getContentParts','aiResponseApplier','260742xSIDGD','replyChangeGroupStateUpdated','ai-reply-get-content-parts-group-not-found','cloneNode','setChangeGroupState','onContentChange','convertMarkdownToHTML','length','state','217848lxUkPq','_getCachedContentParts','parsedContent','values','splice','17575HJNxdm','every','modification-delta','reasoning','set','isDone','conversation-title','306400pYnlql','data-unstable','replyContentUpdated','new','previousSibling','content','newNodeIds','includes','source','data-id','interactionId','changes','text-delta','parseAndNormalizeHTML','context','modified','parsedMergedContent','6xnBXLf','withDiff','_getDifferentChangeGroups','withoutDiff','nextSibling','sources','merge','pending','forEach','cachedSuggestionContentParts','removedNodeIds','stopListening','type','133432qWfArY','index','ai-get-editor-from-context-no-editor','web-search','updateChangeGroups','2231190JsgQPR','change:content','removed','changeGroups','_setCachedContentParts','aiResponseParser','AI_SUGGESTION_CONTENT_PART_REMOVED','map','unshift','indexOf','appendContent','filter','push','color:\x20#808080;\x20font-style:\x20italic','destroy'];_0x4fdd=function(){return _0x4ed6e2;};return _0x4fdd();}const _0x34aa9d=_0x139a;(function(_0x30f119,_0x563b7){const _0xe13c63=_0x139a,_0x26128b=_0x30f119();while(!![]){try{const _0x11afb9=parseInt(_0xe13c63(0x17c))/0x1+parseInt(_0xe13c63(0x12f))/0x2+parseInt(_0xe13c63(0x16e))/0x3+-parseInt(_0xe13c63(0x177))/0x4+parseInt(_0xe13c63(0x152))/0x5+parseInt(_0xe13c63(0x140))/0x6*(-parseInt(_0xe13c63(0x169))/0x7)+-parseInt(_0xe13c63(0x14d))/0x8;if(_0x11afb9===_0x563b7)break;else _0x26128b['push'](_0x26128b['shift']());}catch(_0x531406){_0x26128b['push'](_0x26128b['shift']());}}}(_0x4fdd,0x3799b));import{CKEditorError as _0x3a7765,ObservableMixin as _0x379d54,uid as _0x4e3800}from'ckeditor5/src/utils.js';import{Element as _0x5728e1,findAll as _0x32ec8a,getAttribute as _0x726156,getParents as _0x2a885b,Document as _0x4e3e91,parse as _0x2023fb,Text as _0x3f176e}from'../utils/htmlparser.js';import{AIResponseParser as _0x1c6eb5}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x50a62e}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x283b4e}from'../utils/getsuggestionpartsfromreply.js';function _0x139a(_0x1819ed,_0xc16901){const _0x4fdd70=_0x4fdd();return _0x139a=function(_0x139a77,_0x5c6a18){_0x139a77=_0x139a77-0x12e;let _0xb73b37=_0x4fdd70[_0x139a77];return _0xb73b37;},_0x139a(_0x1819ed,_0xc16901);}import{getTranslation as _0x529d2a}from'../utils/common-translations.js';import{cloneDeep as _0x4757c9}from'es-toolkit';export const AI_REPLY_TYPES=[_0x34aa9d(0x17e),_0x34aa9d(0x13b),_0x34aa9d(0x150),_0x34aa9d(0x17f)];export const AI_REPLY_TYPES_IGNORED=[_0x34aa9d(0x12e)];export const AI_REPLY_TITLE_TYPE=_0x34aa9d(0x12e);export class AIReply extends _0x379d54(){['id'];[_0x34aa9d(0x139)];[_0x34aa9d(0x14c)];[_0x34aa9d(0x145)]=[];[_0x34aa9d(0x179)]=new _0x4e3e91([]);[_0x34aa9d(0x13f)]=new _0x4e3e91([]);[_0x34aa9d(0x155)]=[];[_0x34aa9d(0x162)]=!0x1;[_0x34aa9d(0x16b)];[_0x34aa9d(0x157)];[_0x34aa9d(0x16d)];[_0x34aa9d(0x164)];[_0x34aa9d(0x149)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x204a01,content:_0x14198c='',isDone:_0x5e7eb0=!0x1,interactionId:_0x25f630,areActionsDisabled:_0x3b0018,documentContextContent:_0x31ca53,editor:_0x5b81bf,id:_0x3e3c20}){const _0x47a7cc=_0x34aa9d;super(),this['id']=_0x3e3c20||_0x4e3800(),this[_0x47a7cc(0x139)]=_0x25f630,this[_0x47a7cc(0x14c)]=_0x204a01,this[_0x47a7cc(0x162)]=!!_0x3b0018,this[_0x47a7cc(0x164)]=_0x5b81bf,this[_0x47a7cc(0x157)]=new _0x1c6eb5(),this[_0x47a7cc(0x16d)]=new _0x50a62e(),this[_0x47a7cc(0x16b)]=_0x2023fb(_0x31ca53||''),this[_0x47a7cc(0x180)](_0x47a7cc(0x181),_0x5e7eb0),this['on'](_0x47a7cc(0x153),()=>{const _0x4cfdf3=_0x47a7cc;this[_0x4cfdf3(0x173)]();}),this[_0x47a7cc(0x180)](_0x47a7cc(0x134),_0x14198c);}[_0x34aa9d(0x15c)](_0xf485d9){const _0x5bc322=_0x34aa9d;this[_0x5bc322(0x180)](_0x5bc322(0x134),this[_0x5bc322(0x134)]+_0xf485d9);}[_0x34aa9d(0x167)](){const _0x442788=_0x34aa9d;this[_0x442788(0x181)]||(this[_0x442788(0x180)](_0x442788(0x181),!0x0),this[_0x442788(0x173)]());}[_0x34aa9d(0x160)](){const _0x4d6aab=_0x34aa9d;this[_0x4d6aab(0x14b)]();}[_0x34aa9d(0x172)](_0x5ae2a3,_0x1f4fe3){const _0x419bdf=_0x34aa9d;this[_0x419bdf(0x155)][_0x5ae2a3][_0x419bdf(0x176)]=_0x1f4fe3,this[_0x419bdf(0x166)](_0x419bdf(0x16f),{'reply':this,'index':_0x5ae2a3,'state':_0x1f4fe3});}[_0x34aa9d(0x16c)]({showDiff:_0x121311,groupIndex:_0x956b8b}){const _0x11e703=_0x34aa9d;if(!this[_0x11e703(0x164)])throw new _0x3a7765(_0x11e703(0x14f),null,{'aiReply':this});const _0x18f496=this[_0x11e703(0x178)](_0x121311,_0x956b8b);if(_0x18f496)return _0x18f496;let _0x1ab0dc=[];if(void 0x0===_0x956b8b)_0x1ab0dc=this[_0x11e703(0x155)];else{const _0x5b3ebf=this[_0x11e703(0x155)][_0x11e703(0x163)](({index:_0x55d25f})=>_0x55d25f===_0x956b8b);if(!_0x5b3ebf)throw new _0x3a7765(_0x11e703(0x170),null,{'aiReply':this,'groupIndex':_0x956b8b});_0x1ab0dc=[_0x5b3ebf];}const _0x59c875=_0x283b4e({'editor':this[_0x11e703(0x164)],'showDiff':_0x121311,'changeGroups':_0x1ab0dc,'documentContextContent':this[_0x11e703(0x16b)]});return this[_0x11e703(0x156)](_0x121311,_0x59c875),_0x59c875;}[_0x34aa9d(0x178)](_0x5b5d28,_0x8d9b35){const _0x2b741c=_0x34aa9d,_0x35b424=_0x5b5d28?_0x2b741c(0x141):_0x2b741c(0x143);if(!this[_0x2b741c(0x149)][_0x35b424][_0x2b741c(0x175)])return null;const _0x3dbc8c=this[_0x2b741c(0x149)][_0x35b424];if(void 0x0===_0x8d9b35)return _0x4757c9(_0x3dbc8c);{const _0x58279c=_0x3dbc8c[_0x2b741c(0x163)](({index:_0x17b439})=>_0x17b439===_0x8d9b35);if(_0x58279c)return[_0x4757c9(_0x58279c)];}return null;}[_0x34aa9d(0x156)](_0x225a8b,_0x2da04c){const _0x558dc9=_0x34aa9d,_0x398fb5=_0x225a8b?_0x558dc9(0x141):_0x558dc9(0x143);_0x2da04c[_0x558dc9(0x148)](_0x4ee1e6=>{const _0x1b6c85=_0x558dc9,_0x24c5f1=this[_0x1b6c85(0x149)][_0x398fb5],_0x91b4d4=_0x24c5f1[_0x1b6c85(0x163)](({index:_0x1ebe6c})=>_0x1ebe6c===_0x4ee1e6[_0x1b6c85(0x14e)]);if(_0x91b4d4){const _0x526eb6=_0x24c5f1[_0x1b6c85(0x15b)](_0x91b4d4);_0x24c5f1[_0x1b6c85(0x17b)](_0x526eb6,0x1,_0x4ee1e6);}else _0x24c5f1[_0x1b6c85(0x15e)](_0x4ee1e6);});}[_0x34aa9d(0x173)](){const _0x1ca2ec=_0x34aa9d;if(_0x1ca2ec(0x17e)===this[_0x1ca2ec(0x14c)]){this[_0x1ca2ec(0x179)]=this[_0x1ca2ec(0x157)][_0x1ca2ec(0x13c)](this[_0x1ca2ec(0x134)]);const _0x4e0302=this[_0x1ca2ec(0x155)];this[_0x1ca2ec(0x151)]();const _0xaf78c5=this[_0x1ca2ec(0x142)](_0x4e0302,this[_0x1ca2ec(0x155)]);(_0xaf78c5[_0x1ca2ec(0x175)]||this[_0x1ca2ec(0x181)])&&(this[_0x1ca2ec(0x166)](_0x1ca2ec(0x131),this,_0xaf78c5),this[_0x1ca2ec(0x149)][_0x1ca2ec(0x141)][_0x1ca2ec(0x175)]=this[_0x1ca2ec(0x149)][_0x1ca2ec(0x143)][_0x1ca2ec(0x175)]=0x0);}else this[_0x1ca2ec(0x179)]=this[_0x1ca2ec(0x157)][_0x1ca2ec(0x174)](this[_0x1ca2ec(0x134)]),this[_0x1ca2ec(0x166)](_0x1ca2ec(0x131),this);}[_0x34aa9d(0x142)](_0x5ac38f,_0xd1f3cd){const _0x3bde44=_0x34aa9d,_0x15ce3c=[];for(const _0x56969e of _0xd1f3cd){const _0x472c9a=_0x5ac38f[_0x56969e[_0x3bde44(0x14e)]];_0x472c9a?_0x472c9a[_0x3bde44(0x13a)][_0x3bde44(0x175)]!==_0x56969e[_0x3bde44(0x13a)][_0x3bde44(0x175)]?_0x15ce3c[_0x3bde44(0x15e)](_0x56969e):_0x472c9a[_0x3bde44(0x13a)][_0x3bde44(0x148)]((_0x48be37,_0x46b941)=>{const _0x228711=_0x3bde44,_0x10f708=_0x56969e[_0x228711(0x13a)][_0x46b941];_0x48be37['id']!==_0x10f708['id']&&_0x15ce3c[_0x228711(0x15e)](_0x56969e);}):_0x15ce3c[_0x3bde44(0x15e)](_0x56969e);}return _0x15ce3c;}[_0x34aa9d(0x151)](){const _0x33e554=_0x34aa9d,_0x2b2233=new _0x5728e1('p',{},[new _0x5728e1(_0x33e554(0x161),{'style':_0x33e554(0x15f)},[new _0x3f176e(_0x529d2a(this[_0x33e554(0x164)][_0x33e554(0x168)],_0x33e554(0x158)))])]),_0xf8a2ff=this[_0x33e554(0x16d)][_0x33e554(0x146)](this[_0x33e554(0x179)],this[_0x33e554(0x16b)][_0x33e554(0x171)](!0x0),{'markUnstableElements':!this[_0x33e554(0x181)],'replaceRemovedWith':_0x2b2233,'cutAfterLastChange':!this[_0x33e554(0x181)]});if(!_0xf8a2ff[_0x33e554(0x16a)][_0x33e554(0x175)]&&!this[_0x33e554(0x181)])return;this[_0x33e554(0x13f)]=_0xf8a2ff[_0x33e554(0x179)];let _0x15ed41=[];if(_0x32ec8a(_0x34dc21=>{const _0x295a95=_0x33e554,_0x28703e=_0x726156(_0x34dc21,_0x295a95(0x138));if(!_0x28703e||!_0x14d7e7(_0x28703e))return!0x1;const _0x14a698=[_0x34dc21,..._0x2a885b(_0x34dc21)]['at'](-0x2);if(_0x34dc21!=_0x14a698){const _0x40cfa2=_0x726156(_0x14a698,_0x295a95(0x138));_0x14d7e7(_0x40cfa2)||(_0x15ed41[_0x295a95(0x15e)]({'node':_0x14a698,'id':_0x40cfa2,'type':_0x295a95(0x13e)}),_0xf8a2ff[_0x295a95(0x16a)][_0x295a95(0x15e)](_0x40cfa2));}else _0xf8a2ff[_0x295a95(0x16a)][_0x295a95(0x136)](_0x28703e)?_0x15ed41[_0x295a95(0x15e)]({'node':_0x34dc21,'type':_0x295a95(0x13e),'id':_0x28703e}):_0xf8a2ff[_0x295a95(0x135)][_0x295a95(0x136)](_0x28703e)?_0x15ed41[_0x295a95(0x15e)]({'node':_0x34dc21,'type':_0x295a95(0x132),'id':_0x28703e,'anchorId':_0x726156(_0x34dc21[_0x295a95(0x133)],_0x295a95(0x138))}):_0x15ed41[_0x295a95(0x15e)]({'node':_0x34dc21,'type':_0x295a95(0x154),'id':_0x28703e});return!0x0;},this[_0x33e554(0x13f)]),_0x15ed41=_0x15ed41[_0x33e554(0x15d)](({node:_0x28bbce})=>[..._0x2a885b(_0x28bbce),_0x28bbce][_0x33e554(0x17d)](_0x168f2a=>!_0x726156(_0x168f2a,_0x33e554(0x130)))),0x0==_0x15ed41[_0x33e554(0x175)])return;const _0x36c5f1=[[_0x15ed41[0x0]]];for(let _0x8f66c=0x1;_0x8f66c<_0x15ed41[_0x33e554(0x175)];_0x8f66c++){const _0xc992bb=_0x36c5f1[_0x36c5f1[_0x33e554(0x175)]-0x1],_0x232882=_0xc992bb[_0xc992bb[_0x33e554(0x175)]-0x1];_0x15ed41[_0x8f66c][_0x33e554(0x165)][_0x33e554(0x133)]==_0x232882[_0x33e554(0x165)]&&_0x33e554(0x13e)!=_0x15ed41[_0x8f66c][_0x33e554(0x14c)]&&_0x33e554(0x13e)!=_0x232882[_0x33e554(0x14c)]?_0xc992bb[_0x33e554(0x15e)](_0x15ed41[_0x8f66c]):_0x36c5f1[_0x33e554(0x15e)]([_0x15ed41[_0x8f66c]]);}for(const _0x1136b1 of _0x36c5f1){const _0x941fea=_0x1136b1[0x0],_0x3fcc9d=_0x1136b1[_0x1136b1[_0x33e554(0x175)]-0x1],_0x5cc39e=_0x4e4c34(_0x941fea[_0x33e554(0x165)][_0x33e554(0x133)]);_0x5cc39e&&_0x1136b1[_0x33e554(0x15a)](_0x5cc39e);const _0x54a098=_0x4e4c34(_0x3fcc9d[_0x33e554(0x165)][_0x33e554(0x144)]);_0x54a098&&_0x1136b1[_0x33e554(0x15e)](_0x54a098);}function _0x14d7e7(_0x4eaf15){const _0x3c247d=_0x33e554;return _0xf8a2ff[_0x3c247d(0x16a)][_0x3c247d(0x136)](_0x4eaf15)||_0xf8a2ff[_0x3c247d(0x135)][_0x3c247d(0x136)](_0x4eaf15)||_0xf8a2ff[_0x3c247d(0x14a)][_0x3c247d(0x136)](_0x4eaf15);}function _0x4e4c34(_0x52e679){const _0x4b4d1c=_0x33e554;if(_0x52e679&&_0x726156(_0x52e679,_0x4b4d1c(0x138))&&!_0x726156(_0x52e679,_0x4b4d1c(0x130))){const _0x492a67=_0x726156(_0x52e679,_0x4b4d1c(0x138));if(!_0x14d7e7(_0x492a67))return{'node':_0x52e679,'type':_0x4b4d1c(0x13d),'id':_0x492a67};}return null;}this[_0x33e554(0x155)]=_0x36c5f1[_0x33e554(0x159)]((_0x29e75c,_0x21f93f)=>({'changes':_0x29e75c,'state':_0x33e554(0x147),'index':_0x21f93f}));}}export function isValidReplyType(_0x503040){const _0x4282b9=_0x34aa9d;return Object[_0x4282b9(0x17a)](AI_REPLY_TYPES)[_0x4282b9(0x136)](_0x503040);}export function isIgnoredReplyType(_0x1cd39b){const _0x2867c0=_0x34aa9d;return AI_REPLY_TYPES_IGNORED[_0x2867c0(0x136)](_0x1cd39b);}export function isReplyTitleType(_0x21293b){return _0x21293b===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x33200d){const _0x2ceb2d=_0x34aa9d;return _0x2ceb2d(0x137)===_0x33200d;}
|
|
23
|
+
const _0x593493=_0x216a;(function(_0x22ad92,_0x4a8e5b){const _0x5e251c=_0x216a,_0x586e09=_0x22ad92();while(!![]){try{const _0x30b922=parseInt(_0x5e251c(0x1bb))/0x1*(-parseInt(_0x5e251c(0x1b4))/0x2)+-parseInt(_0x5e251c(0x1d4))/0x3*(parseInt(_0x5e251c(0x19f))/0x4)+parseInt(_0x5e251c(0x1dc))/0x5*(parseInt(_0x5e251c(0x1be))/0x6)+parseInt(_0x5e251c(0x1e5))/0x7+-parseInt(_0x5e251c(0x1ea))/0x8+-parseInt(_0x5e251c(0x1ca))/0x9*(parseInt(_0x5e251c(0x1c9))/0xa)+parseInt(_0x5e251c(0x1bf))/0xb*(parseInt(_0x5e251c(0x1cb))/0xc);if(_0x30b922===_0x4a8e5b)break;else _0x586e09['push'](_0x586e09['shift']());}catch(_0x3fb898){_0x586e09['push'](_0x586e09['shift']());}}}(_0x4f7c,0x51c92));import{CKEditorError as _0x1f2991,ObservableMixin as _0x522e51,uid as _0x36e269}from'ckeditor5/src/utils.js';import{Element as _0x316c3a,findAll as _0x10fc03,getAttribute as _0x350188,getParents as _0x514d4c,Document as _0x3753c9,parse as _0x51c887,Text as _0x29c142}from'../utils/htmlparser.js';import{AIResponseParser as _0x3a2ff9}from'../pipeline/airesponseparser.js';function _0x4f7c(){const _0x3245fa=['2779651guAixi','span','_getCachedContentParts','web-search','state','2572712oVSNAz','node','every','new','newNodeIds','cloneNode','values','_setCachedContentParts','nextSibling','data-unstable','content','includes','color:\x20#808080;\x20font-style:\x20italic','1287608hlzocv','removedNodeIds','changes','data-id','text-delta','splice','removed','ai-reply-get-content-parts-group-not-found','merge','find','stopListening','fire','parseAndNormalizeHTML','context','index','previousSibling','replyContentUpdated','reasoning','editor','appendContent','destroy','2IDDPbS','conversation-title','documentContextContent','withDiff','sources','areActionsDisabled','source','515640kDXfXQ','map','parsedContent','306VUEVuU','6815666QVPOeC','pending','replyChangeGroupStateUpdated','indexOf','convertMarkdownToHTML','setChangeGroupState','forEach','done','onContentChange','set','1548790uMCeuV','9odFAfs','24CtmBLr','ai-get-editor-from-context-no-editor','getContentParts','cachedSuggestionContentParts','filter','modifiedNodeIds','withoutDiff','unshift','AI_SUGGESTION_CONTENT_PART_REMOVED','3diHltx','push','isDone','type','updateChangeGroups','modification-delta','interactionId','aiResponseApplier','1245VXmwTX','changeGroups','parsedMergedContent','aiResponseParser','length','locale','change:content','_getDifferentChangeGroups','modified'];_0x4f7c=function(){return _0x3245fa;};return _0x4f7c();}import{AIResponseApplier as _0x519bc1}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x62f285}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x414239}from'../utils/common-translations.js';import{cloneDeep as _0x44f0b5}from'es-toolkit';export const AI_REPLY_TYPES=[_0x593493(0x1d9),_0x593493(0x1a3),_0x593493(0x1e8),_0x593493(0x1b0)];export const AI_REPLY_TYPES_IGNORED=[_0x593493(0x1b5)];export const AI_REPLY_TITLE_TYPE=_0x593493(0x1b5);export class AIReply extends _0x522e51(){['id'];[_0x593493(0x1da)];[_0x593493(0x1d7)];[_0x593493(0x1b8)]=[];[_0x593493(0x1bd)]=new _0x3753c9([]);[_0x593493(0x1de)]=new _0x3753c9([]);[_0x593493(0x1dd)]=[];[_0x593493(0x1b9)]=!0x1;[_0x593493(0x1b6)];[_0x593493(0x1df)];[_0x593493(0x1db)];[_0x593493(0x1b1)];[_0x593493(0x1ce)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x221d9a,content:_0x362e62='',isDone:_0x53d6d5=!0x1,interactionId:_0xa77fa3,areActionsDisabled:_0x4b07d0,documentContextContent:_0x45fa52,editor:_0x74d187,id:_0xbcdba6}){const _0x57febe=_0x593493;super(),this['id']=_0xbcdba6||_0x36e269(),this[_0x57febe(0x1da)]=_0xa77fa3,this[_0x57febe(0x1d7)]=_0x221d9a,this[_0x57febe(0x1b9)]=!!_0x4b07d0,this[_0x57febe(0x1b1)]=_0x74d187,this[_0x57febe(0x1df)]=new _0x3a2ff9(),this[_0x57febe(0x1db)]=new _0x519bc1(),this[_0x57febe(0x1b6)]=_0x51c887(_0x45fa52||''),this[_0x57febe(0x1c8)](_0x57febe(0x1d6),_0x53d6d5),this['on'](_0x57febe(0x1e2),()=>{const _0x27f38a=_0x57febe;this[_0x27f38a(0x1c7)]();}),this[_0x57febe(0x1c8)](_0x57febe(0x19c),_0x362e62);}[_0x593493(0x1b2)](_0x339226){const _0x762ec1=_0x593493;this[_0x762ec1(0x1c8)](_0x762ec1(0x19c),this[_0x762ec1(0x19c)]+_0x339226);}[_0x593493(0x1c6)](){const _0x21ca1f=_0x593493;this[_0x21ca1f(0x1d6)]||(this[_0x21ca1f(0x1c8)](_0x21ca1f(0x1d6),!0x0),this[_0x21ca1f(0x1c7)]());}[_0x593493(0x1b3)](){const _0x2cf336=_0x593493;this[_0x2cf336(0x1a9)]();}[_0x593493(0x1c4)](_0x4cb3e5,_0x56aa76){const _0x3db98f=_0x593493;this[_0x3db98f(0x1dd)][_0x4cb3e5][_0x3db98f(0x1e9)]=_0x56aa76,this[_0x3db98f(0x1aa)](_0x3db98f(0x1c1),{'reply':this,'index':_0x4cb3e5,'state':_0x56aa76});}[_0x593493(0x1cd)]({showDiff:_0x2c0d70,groupIndex:_0x29b6d3}){const _0x17b096=_0x593493;if(!this[_0x17b096(0x1b1)])throw new _0x1f2991(_0x17b096(0x1cc),null,{'aiReply':this});const _0x3f8302=this[_0x17b096(0x1e7)](_0x2c0d70,_0x29b6d3);if(_0x3f8302)return _0x3f8302;let _0x2fd6e2=[];if(void 0x0===_0x29b6d3)_0x2fd6e2=this[_0x17b096(0x1dd)];else{const _0x424a7f=this[_0x17b096(0x1dd)][_0x17b096(0x1a8)](({index:_0x451808})=>_0x451808===_0x29b6d3);if(!_0x424a7f)throw new _0x1f2991(_0x17b096(0x1a6),null,{'aiReply':this,'groupIndex':_0x29b6d3});_0x2fd6e2=[_0x424a7f];}const _0x2b262d=_0x62f285({'editor':this[_0x17b096(0x1b1)],'showDiff':_0x2c0d70,'changeGroups':_0x2fd6e2,'documentContextContent':this[_0x17b096(0x1b6)]});return this[_0x17b096(0x1f1)](_0x2c0d70,_0x2b262d),_0x2b262d;}[_0x593493(0x1e7)](_0xdbc3d0,_0x48013a){const _0x154fe1=_0x593493,_0x29abff=_0xdbc3d0?_0x154fe1(0x1b7):_0x154fe1(0x1d1);if(!this[_0x154fe1(0x1ce)][_0x29abff][_0x154fe1(0x1e0)])return null;const _0x436c7c=this[_0x154fe1(0x1ce)][_0x29abff];if(void 0x0===_0x48013a)return _0x44f0b5(_0x436c7c);{const _0x4b5e97=_0x436c7c[_0x154fe1(0x1a8)](({index:_0xe21fd5})=>_0xe21fd5===_0x48013a);if(_0x4b5e97)return[_0x44f0b5(_0x4b5e97)];}return null;}[_0x593493(0x1f1)](_0x174ce6,_0x40dbe2){const _0x43b0a5=_0x593493,_0xf913af=_0x174ce6?_0x43b0a5(0x1b7):_0x43b0a5(0x1d1);_0x40dbe2[_0x43b0a5(0x1c5)](_0x188593=>{const _0x578d2b=_0x43b0a5,_0x5ca1cd=this[_0x578d2b(0x1ce)][_0xf913af],_0x2bdb61=_0x5ca1cd[_0x578d2b(0x1a8)](({index:_0x34f130})=>_0x34f130===_0x188593[_0x578d2b(0x1ad)]);if(_0x2bdb61){const _0x5e37d0=_0x5ca1cd[_0x578d2b(0x1c2)](_0x2bdb61);_0x5ca1cd[_0x578d2b(0x1a4)](_0x5e37d0,0x1,_0x188593);}else _0x5ca1cd[_0x578d2b(0x1d5)](_0x188593);});}[_0x593493(0x1c7)](){const _0x3872df=_0x593493;if(_0x3872df(0x1d9)===this[_0x3872df(0x1d7)]){this[_0x3872df(0x1bd)]=this[_0x3872df(0x1df)][_0x3872df(0x1ab)](this[_0x3872df(0x19c)]);const _0x3b2b2d=this[_0x3872df(0x1dd)];this[_0x3872df(0x1d8)]();const _0x16d646=this[_0x3872df(0x1e3)](_0x3b2b2d,this[_0x3872df(0x1dd)]);(_0x16d646[_0x3872df(0x1e0)]||this[_0x3872df(0x1d6)])&&(this[_0x3872df(0x1aa)](_0x3872df(0x1af),this,_0x16d646),this[_0x3872df(0x1ce)][_0x3872df(0x1b7)][_0x3872df(0x1e0)]=this[_0x3872df(0x1ce)][_0x3872df(0x1d1)][_0x3872df(0x1e0)]=0x0);}else this[_0x3872df(0x1bd)]=this[_0x3872df(0x1df)][_0x3872df(0x1c3)](this[_0x3872df(0x19c)]),this[_0x3872df(0x1aa)](_0x3872df(0x1af),this);}[_0x593493(0x1e3)](_0x40c25f,_0xc337e7){const _0x385a2c=_0x593493,_0x10cfd7=[];for(const _0x224a1e of _0xc337e7){const _0x2b996d=_0x40c25f[_0x224a1e[_0x385a2c(0x1ad)]];_0x2b996d?_0x2b996d[_0x385a2c(0x1a1)][_0x385a2c(0x1e0)]!==_0x224a1e[_0x385a2c(0x1a1)][_0x385a2c(0x1e0)]?_0x10cfd7[_0x385a2c(0x1d5)](_0x224a1e):_0x2b996d[_0x385a2c(0x1a1)][_0x385a2c(0x1c5)]((_0x49c3a9,_0x55fbb2)=>{const _0x107da8=_0x385a2c,_0xec1622=_0x224a1e[_0x107da8(0x1a1)][_0x55fbb2];_0x49c3a9['id']!==_0xec1622['id']&&_0x10cfd7[_0x107da8(0x1d5)](_0x224a1e);}):_0x10cfd7[_0x385a2c(0x1d5)](_0x224a1e);}return _0x10cfd7;}[_0x593493(0x1d8)](){const _0x1d588a=_0x593493,_0x10253b=new _0x316c3a('p',{},[new _0x316c3a(_0x1d588a(0x1e6),{'style':_0x1d588a(0x19e)},[new _0x29c142(_0x414239(this[_0x1d588a(0x1b1)][_0x1d588a(0x1e1)],_0x1d588a(0x1d3)))])]),_0x54d8e2=this[_0x1d588a(0x1db)][_0x1d588a(0x1a7)](this[_0x1d588a(0x1bd)],this[_0x1d588a(0x1b6)][_0x1d588a(0x1ef)](!0x0),{'markUnstableElements':!this[_0x1d588a(0x1d6)],'replaceRemovedWith':_0x10253b,'cutAfterLastChange':!this[_0x1d588a(0x1d6)]});if(!_0x54d8e2[_0x1d588a(0x1d0)][_0x1d588a(0x1e0)]&&!this[_0x1d588a(0x1d6)])return;this[_0x1d588a(0x1de)]=_0x54d8e2[_0x1d588a(0x1bd)];let _0x45caa1=[];if(_0x10fc03(_0x54982a=>{const _0x1d8c80=_0x1d588a,_0x3ca72a=_0x350188(_0x54982a,_0x1d8c80(0x1a2));if(!_0x3ca72a||!_0x21a51a(_0x3ca72a))return!0x1;const _0x41197e=[_0x54982a,..._0x514d4c(_0x54982a)]['at'](-0x2);if(_0x54982a!=_0x41197e){const _0x95e03f=_0x350188(_0x41197e,_0x1d8c80(0x1a2));_0x21a51a(_0x95e03f)||(_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x41197e,'id':_0x95e03f,'type':_0x1d8c80(0x1e4)}),_0x54d8e2[_0x1d8c80(0x1d0)][_0x1d8c80(0x1d5)](_0x95e03f));}else _0x54d8e2[_0x1d8c80(0x1d0)][_0x1d8c80(0x19d)](_0x3ca72a)?_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x54982a,'type':_0x1d8c80(0x1e4),'id':_0x3ca72a}):_0x54d8e2[_0x1d8c80(0x1ee)][_0x1d8c80(0x19d)](_0x3ca72a)?_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x54982a,'type':_0x1d8c80(0x1ed),'id':_0x3ca72a,'anchorId':_0x350188(_0x54982a[_0x1d8c80(0x1ae)],_0x1d8c80(0x1a2))}):_0x45caa1[_0x1d8c80(0x1d5)]({'node':_0x54982a,'type':_0x1d8c80(0x1a5),'id':_0x3ca72a});return!0x0;},this[_0x1d588a(0x1de)]),_0x45caa1=_0x45caa1[_0x1d588a(0x1cf)](({node:_0x1348a7})=>[..._0x514d4c(_0x1348a7),_0x1348a7][_0x1d588a(0x1ec)](_0x1c8a26=>!_0x350188(_0x1c8a26,_0x1d588a(0x19b)))),0x0==_0x45caa1[_0x1d588a(0x1e0)])return;const _0x5ad8e1=[[_0x45caa1[0x0]]];for(let _0x1cb294=0x1;_0x1cb294<_0x45caa1[_0x1d588a(0x1e0)];_0x1cb294++){const _0x9de08=_0x5ad8e1[_0x5ad8e1[_0x1d588a(0x1e0)]-0x1],_0xddc12=_0x9de08[_0x9de08[_0x1d588a(0x1e0)]-0x1];_0x45caa1[_0x1cb294][_0x1d588a(0x1eb)][_0x1d588a(0x1ae)]==_0xddc12[_0x1d588a(0x1eb)]&&_0x1d588a(0x1e4)!=_0x45caa1[_0x1cb294][_0x1d588a(0x1d7)]&&_0x1d588a(0x1e4)!=_0xddc12[_0x1d588a(0x1d7)]?_0x9de08[_0x1d588a(0x1d5)](_0x45caa1[_0x1cb294]):_0x5ad8e1[_0x1d588a(0x1d5)]([_0x45caa1[_0x1cb294]]);}for(const _0x246721 of _0x5ad8e1){const _0x599533=_0x246721[0x0],_0x1dabb0=_0x246721[_0x246721[_0x1d588a(0x1e0)]-0x1],_0x917677=_0x923aac(_0x599533[_0x1d588a(0x1eb)][_0x1d588a(0x1ae)]);_0x917677&&_0x246721[_0x1d588a(0x1d2)](_0x917677);const _0x42a338=_0x923aac(_0x1dabb0[_0x1d588a(0x1eb)][_0x1d588a(0x19a)]);_0x42a338&&_0x246721[_0x1d588a(0x1d5)](_0x42a338);}function _0x21a51a(_0x1aefe9){const _0x5145dc=_0x1d588a;return _0x54d8e2[_0x5145dc(0x1d0)][_0x5145dc(0x19d)](_0x1aefe9)||_0x54d8e2[_0x5145dc(0x1ee)][_0x5145dc(0x19d)](_0x1aefe9)||_0x54d8e2[_0x5145dc(0x1a0)][_0x5145dc(0x19d)](_0x1aefe9);}function _0x923aac(_0x2f0667){const _0x3e8bd6=_0x1d588a;if(_0x2f0667&&_0x350188(_0x2f0667,_0x3e8bd6(0x1a2))&&!_0x350188(_0x2f0667,_0x3e8bd6(0x19b))){const _0xb44fa4=_0x350188(_0x2f0667,_0x3e8bd6(0x1a2));if(!_0x21a51a(_0xb44fa4))return{'node':_0x2f0667,'type':_0x3e8bd6(0x1ac),'id':_0xb44fa4};}return null;}this[_0x1d588a(0x1dd)]=_0x5ad8e1[_0x1d588a(0x1bc)]((_0x2c1394,_0x2df253)=>({'changes':_0x2c1394,'state':_0x1d588a(0x1c0),'index':_0x2df253}));}}function _0x216a(_0x1df85c,_0x49cc84){const _0x4f7ca5=_0x4f7c();return _0x216a=function(_0x216a25,_0x19c05f){_0x216a25=_0x216a25-0x19a;let _0x3f094c=_0x4f7ca5[_0x216a25];return _0x3f094c;},_0x216a(_0x1df85c,_0x49cc84);}export function isValidReplyType(_0xe06df2){const _0x53c996=_0x593493;return Object[_0x53c996(0x1f0)](AI_REPLY_TYPES)[_0x53c996(0x19d)](_0xe06df2);}export function isIgnoredReplyType(_0x5255ec){const _0x4dd88e=_0x593493;return AI_REPLY_TYPES_IGNORED[_0x4dd88e(0x19d)](_0x5255ec);}export function isReplyTitleType(_0x1c5b82){return _0x1c5b82===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0xa74a4c){const _0x49bc2a=_0x593493;return _0x49bc2a(0x1ba)===_0xa74a4c;}
|