@ckeditor/ckeditor5-ai 47.4.0-alpha.0 → 47.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x248ba5=_0x4607;(function(_0x51b72d,_0x508cae){var _0x1dacfa=_0x4607,_0x1a03d6=_0x51b72d();while(!![]){try{var _0x3524b5=-parseInt(_0x1dacfa(0xea))/0x1*(parseInt(_0x1dacfa(0xdc))/0x2)+-parseInt(_0x1dacfa(0xc9))/0x3+-parseInt(_0x1dacfa(0xc6))/0x4*(parseInt(_0x1dacfa(0xe1))/0x5)+-parseInt(_0x1dacfa(0xe7))/0x6*(-parseInt(_0x1dacfa(0xd7))/0x7)+parseInt(_0x1dacfa(0xd8))/0x8+parseInt(_0x1dacfa(0xe4))/0x9*(-parseInt(_0x1dacfa(0xc5))/0xa)+parseInt(_0x1dacfa(0xe2))/0xb;if(_0x3524b5===_0x508cae)break;else _0x1a03d6['push'](_0x1a03d6['shift']());}catch(_0x3e89e4){_0x1a03d6['push'](_0x1a03d6['shift']());}}}(_0x257c,0xbd0b1));import{AIChatFeedItemView as _0x32630c}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x3fcff1}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x4607(_0x34bcb4,_0x53a1b8){var _0x257c1d=_0x257c();return _0x4607=function(_0x46075b,_0x3064f5){_0x46075b=_0x46075b-0xc1;var _0x3c18d0=_0x257c1d[_0x46075b];return _0x3c18d0;},_0x4607(_0x34bcb4,_0x53a1b8);}import{AIChatFeedSuggestionItemActionsView as _0x318f70}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x32630c{[_0x248ba5(0xd4)];[_0x248ba5(0xc8)];constructor(_0x1074a3,_0x14e22d,_0x4211fa){var _0x1c9a8d=_0x248ba5;super(_0x14e22d),this[_0x1c9a8d(0xec)](_0x1c9a8d(0xcd),!0x1),this[_0x1c9a8d(0xd4)]=new _0x3fcff1(_0x1074a3,{'showDiff':_0x14e22d[_0x1c9a8d(0xe3)],'areActionsDisabled':_0x14e22d[_0x1c9a8d(0xc4)],'availableActions':_0x14e22d[_0x1c9a8d(0xed)]},_0x4211fa),this[_0x1c9a8d(0xd4)]['on'](_0x1c9a8d(0xe0),(_0x4fc88a,_0x498f47)=>{var _0x21bde1=_0x1c9a8d;this[_0x21bde1(0xd1)](_0x21bde1(0xe0),{'replyId':this[_0x21bde1(0xce)]['id'],'showDiff':_0x498f47[_0x21bde1(0xe3)]});}),this[_0x1c9a8d(0xd4)]['on'](_0x1c9a8d(0xd2),()=>{var _0x71efe7=_0x1c9a8d;this[_0x71efe7(0xd1)](_0x71efe7(0xd2),{'replyId':this[_0x71efe7(0xce)]['id']});}),this[_0x1c9a8d(0xd4)]['on'](_0x1c9a8d(0xe6),()=>{var _0x53fdc3=_0x1c9a8d;this[_0x53fdc3(0xd1)](_0x53fdc3(0xe6),{'replyId':this[_0x53fdc3(0xce)]['id']});}),this[_0x1c9a8d(0xd4)]['on'](_0x1c9a8d(0xde),(_0x1f6045,{index:_0x5474a0})=>{var _0x288897=_0x1c9a8d;this[_0x288897(0xd1)](_0x288897(0xde),{'replyId':this[_0x288897(0xce)]['id'],'partIndex':_0x5474a0});}),this[_0x1c9a8d(0xd4)]['on'](_0x1c9a8d(0xd0),(_0x77ab1f,{index:_0x12341b})=>{var _0x24138b=_0x1c9a8d;this[_0x24138b(0xd1)](_0x24138b(0xd0),{'replyId':this[_0x24138b(0xce)]['id'],'partIndex':_0x12341b});}),this[_0x1c9a8d(0xd4)]['on'](_0x1c9a8d(0xd3),(_0x4de283,{index:_0xba1d2b})=>{var _0x3c920b=_0x1c9a8d;this[_0x3c920b(0xd1)](_0x3c920b(0xd3),{'replyId':this[_0x3c920b(0xce)]['id'],'partIndex':_0xba1d2b});}),this[_0x1c9a8d(0xd4)]['on'](_0x1c9a8d(0xd5),(_0x2c5da4,{index:_0xf9b633})=>{var _0x15e1b7=_0x1c9a8d;this[_0x15e1b7(0xd1)](_0x15e1b7(0xd5),{'replyId':this[_0x15e1b7(0xce)]['id'],'partIndex':_0xf9b633});}),this[_0x1c9a8d(0xd4)]['on'](_0x1c9a8d(0xd9),(_0x3ba05d,{index:_0x2a442e})=>{var _0x557ddb=_0x1c9a8d;this[_0x557ddb(0xd1)](_0x557ddb(0xd9),{'replyId':this[_0x557ddb(0xce)]['id'],'partIndex':_0x2a442e});}),this[_0x1c9a8d(0xc8)]=new _0x318f70(_0x1074a3,this[_0x1c9a8d(0xce)][_0x1c9a8d(0xed)]),this[_0x1c9a8d(0xc8)][_0x1c9a8d(0xdf)](_0x1c9a8d(0xcd))['to'](this,_0x1c9a8d(0xcd)),this[_0x1c9a8d(0xc8)]['on'](_0x1c9a8d(0xde),()=>{var _0x56676f=_0x1c9a8d;this[_0x56676f(0xd1)](_0x56676f(0xde),{'replyId':this[_0x56676f(0xce)]['id']});}),this[_0x1c9a8d(0xc8)]['on'](_0x1c9a8d(0xd0),()=>{var _0x43a78f=_0x1c9a8d;this[_0x43a78f(0xd1)](_0x43a78f(0xd0),{'replyId':this[_0x43a78f(0xce)]['id']});}),this[_0x1c9a8d(0xc8)]['on'](_0x1c9a8d(0xda),()=>{var _0x2ac1c3=_0x1c9a8d;this[_0x2ac1c3(0xd1)](_0x2ac1c3(0xda),{'replyId':this[_0x2ac1c3(0xce)]['id']});}),_0x14e22d[_0x1c9a8d(0xc4)]?this[_0x1c9a8d(0xc8)][_0x1c9a8d(0xc2)]=!0x1:this[_0x1c9a8d(0xc8)][_0x1c9a8d(0xdf)](_0x1c9a8d(0xc2))['to'](this[_0x1c9a8d(0xd4)][_0x1c9a8d(0xcc)],_0x1c9a8d(0xc7)),this[_0x1c9a8d(0xd6)][_0x1c9a8d(0xeb)]([this[_0x1c9a8d(0xd4)],this[_0x1c9a8d(0xc8)]]),this[_0x1c9a8d(0xee)]({'attributes':{'class':[_0x1c9a8d(0xe9)]}});}async[_0x248ba5(0xdb)](_0x28f7dd){var _0x1ae8e9=_0x248ba5;await this[_0x1ae8e9(0xd4)][_0x1ae8e9(0xdb)](_0x28f7dd),this[_0x1ae8e9(0xc8)][_0x1ae8e9(0xc1)](this[_0x1ae8e9(0xd4)][_0x1ae8e9(0xcc)][_0x1ae8e9(0xcf)]);}[_0x248ba5(0xcb)](_0x15b172,_0x1518ee){var _0x5efa19=_0x248ba5;this[_0x5efa19(0xd4)][_0x5efa19(0xcc)][_0x5efa19(0xcb)](_0x15b172,_0x1518ee);}[_0x248ba5(0xe8)](_0x5a5136){var _0x34337d=_0x248ba5;this[_0x34337d(0xd4)][_0x34337d(0xe8)](_0x5a5136);}[_0x248ba5(0xdd)](_0x15a6a5){var _0x339fbe=_0x248ba5;return this[_0x339fbe(0xd4)][_0x339fbe(0xcc)][_0x339fbe(0xdd)](_0x15a6a5);}[_0x248ba5(0xca)](){var _0x4394de=_0x248ba5;super[_0x4394de(0xca)](),this[_0x4394de(0xd4)][_0x4394de(0xca)](),this[_0x4394de(0xc8)][_0x4394de(0xe5)]=this[_0x4394de(0xd4)][_0x4394de(0xcc)][_0x4394de(0xc3)];}}function _0x257c(){var _0x58159e=['applySuggestion','updateContent','2VJIoMd','getPartView','showChangeInText','bind','toggleSuggestionDisplayMode','55OklXfH','29716005UjpRSt','showDiff','1053MLlRrg','isVisible','dislike','84ZUvyfq','updateSources','ck-ai-chat__feed__ai-suggestion','591837mGHiOl','addMany','set','availableActions','extendTemplate','updateLabels','isEnabled','hasNonEmptyParts','areActionsDisabled','40410fTDpYO','402616zQaHXv','hasPendingParts','actionsView','3513219sXAIML','markAsDone','updatePartState','bodyView','isTrackChangesOn','options','partsCount','insertSuggestion','fire','like','rejectSuggestion','containerView','mouseOverSuggestion','children','437759GohFoY','4321992nVKWDF','mouseLeaveSuggestion'];_0x257c=function(){return _0x58159e;};return _0x257c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x348b(_0x45fc57,_0x54b42d){var _0x2b6d00=_0x2b6d();return _0x348b=function(_0x348b7b,_0x2b14a5){_0x348b7b=_0x348b7b-0xd5;var _0x1366ad=_0x2b6d00[_0x348b7b];return _0x1366ad;},_0x348b(_0x45fc57,_0x54b42d);}var _0x4f0143=_0x348b;(function(_0x129f81,_0x38a3c2){var _0x4c35ed=_0x348b,_0x5aabfa=_0x129f81();while(!![]){try{var _0x26080c=parseInt(_0x4c35ed(0xd5))/0x1*(-parseInt(_0x4c35ed(0xe5))/0x2)+-parseInt(_0x4c35ed(0xe7))/0x3+-parseInt(_0x4c35ed(0xee))/0x4*(-parseInt(_0x4c35ed(0xf2))/0x5)+parseInt(_0x4c35ed(0xe3))/0x6+-parseInt(_0x4c35ed(0xeb))/0x7+-parseInt(_0x4c35ed(0xe9))/0x8+parseInt(_0x4c35ed(0xe1))/0x9;if(_0x26080c===_0x38a3c2)break;else _0x5aabfa['push'](_0x5aabfa['shift']());}catch(_0x540a04){_0x5aabfa['push'](_0x5aabfa['shift']());}}}(_0x2b6d,0x8ad44));import{AIChatFeedItemView as _0x28dd2b}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x1bcd17}from'./aichatfeedcontextchipsview.js';import{View as _0xc9cc40}from'ckeditor5/src/ui.js';function _0x2b6d(){var _0x382cf3=['2wuyKJd','_messageContentView','328086dMNKeY','add','7622128OjNvRo','_createContextChipsView','2135413vFCPZx','ck-ai-chat__feed__message-content','filter','120860HGwBRA','options','innerHTML','ck-ai-chat__feed__context-chips','10UOmppU','initialContent','extendTemplate','_contextChipsView','60602XUfuea','length','element','markAsDone','_bodyCollection','setTemplate','div','_createMessageContentView','render','children','_locale','contextItems','7892541mbcycw','hidden','6354324ytwkub','ck-ai-chat__feed__user-message'];_0x2b6d=function(){return _0x382cf3;};return _0x2b6d();}export class AIChatFeedUserMessageItemView extends _0x28dd2b{[_0x4f0143(0xf5)]=null;[_0x4f0143(0xdf)];[_0x4f0143(0xd9)];[_0x4f0143(0xe6)];constructor(_0x4cbd98,_0x1a31c9,_0x2ed197){var _0x430219=_0x4f0143;super(_0x1a31c9),this[_0x430219(0xdf)]=_0x4cbd98,this[_0x430219(0xd9)]=_0x2ed197,this[_0x430219(0xea)](),this[_0x430219(0xdc)](),this[_0x430219(0xf4)]({'attributes':{'class':[_0x430219(0xe4)]}});}[_0x4f0143(0xea)](){var _0x3cd9e8=_0x4f0143;this[_0x3cd9e8(0xef)][_0x3cd9e8(0xe0)]&&this[_0x3cd9e8(0xef)][_0x3cd9e8(0xe0)][_0x3cd9e8(0xd6)]>0x0&&(this[_0x3cd9e8(0xf5)]=new _0x1bcd17(this[_0x3cd9e8(0xdf)],this[_0x3cd9e8(0xef)][_0x3cd9e8(0xe0)][_0x3cd9e8(0xed)](_0x196016=>!_0x196016[_0x3cd9e8(0xe2)]),this[_0x3cd9e8(0xd9)]),this[_0x3cd9e8(0xf5)][_0x3cd9e8(0xf4)]({'attributes':{'class':_0x3cd9e8(0xf1)}}),this[_0x3cd9e8(0xde)][_0x3cd9e8(0xe8)](this[_0x3cd9e8(0xf5)]));}[_0x4f0143(0xdc)](){var _0x152c2c=_0x4f0143;this[_0x152c2c(0xe6)]=new _0xc9cc40(this[_0x152c2c(0xdf)]),this[_0x152c2c(0xe6)][_0x152c2c(0xda)]({'tag':_0x152c2c(0xdb),'attributes':{'class':_0x152c2c(0xec)}}),this[_0x152c2c(0xde)][_0x152c2c(0xe8)](this[_0x152c2c(0xe6)]);}[_0x4f0143(0xdd)](){var _0x44993a=_0x4f0143;super[_0x44993a(0xdd)](),this[_0x44993a(0xe6)][_0x44993a(0xd7)][_0x44993a(0xf0)]=this[_0x44993a(0xef)][_0x44993a(0xf3)],this[_0x44993a(0xd8)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x1813(_0x5c8318,_0x20e1a7){const _0x2937e7=_0x2937();return _0x1813=function(_0x1813a6,_0x4ba196){_0x1813a6=_0x1813a6-0x1a2;let _0x212385=_0x2937e7[_0x1813a6];return _0x212385;},_0x1813(_0x5c8318,_0x20e1a7);}const _0x240eff=_0x1813;(function(_0x4d1418,_0x285993){const _0xb4c18=_0x1813,_0x47c24c=_0x4d1418();while(!![]){try{const _0x1b7344=-parseInt(_0xb4c18(0x1bb))/0x1+parseInt(_0xb4c18(0x1b6))/0x2*(-parseInt(_0xb4c18(0x1bc))/0x3)+-parseInt(_0xb4c18(0x1aa))/0x4+-parseInt(_0xb4c18(0x1bf))/0x5+-parseInt(_0xb4c18(0x1a2))/0x6*(parseInt(_0xb4c18(0x1b3))/0x7)+-parseInt(_0xb4c18(0x1ab))/0x8*(-parseInt(_0xb4c18(0x1b0))/0x9)+-parseInt(_0xb4c18(0x1b5))/0xa*(-parseInt(_0xb4c18(0x1a6))/0xb);if(_0x1b7344===_0x285993)break;else _0x47c24c['push'](_0x47c24c['shift']());}catch(_0x39d16d){_0x47c24c['push'](_0x47c24c['shift']());}}}(_0x2937,0x4af3a));import{EmitterMixin as _0xcb5f5d}from'ckeditor5/src/utils.js';function _0x2937(){const _0x2036c3=['callback','884890unhKka','708888ocgTNt','queueEmptyPromise','reject','shift','16310591rhSiTL','push','_processQueue','enqueue','1955944kfNgts','456ZSqSPv','_abortController','fire','signal','once','35037pPPPTd','queue','length','7iICCCP','createTask','10VscfbA','486646RlXBCW','completePromise','resolve','isProcessing','abort','126922pUfohs','6LwPgjU','_queueEmpty'];_0x2937=function(){return _0x2036c3;};return _0x2937();}export class PromiseQueue extends _0xcb5f5d(){[_0x240eff(0x1b1)]=[];[_0x240eff(0x1b9)]=!0x1;[_0x240eff(0x1ac)];async[_0x240eff(0x1a9)](_0x437f46){const _0x3b1ee4=_0x240eff,_0x56aae1=this[_0x3b1ee4(0x1b4)](_0x437f46);return this[_0x3b1ee4(0x1b1)][_0x3b1ee4(0x1a7)](_0x56aae1),this[_0x3b1ee4(0x1a8)](),_0x56aae1[_0x3b1ee4(0x1b7)];}[_0x240eff(0x1ba)](){const _0x2303d2=_0x240eff;this[_0x2303d2(0x1b9)]&&(this[_0x2303d2(0x1ac)][_0x2303d2(0x1ba)](),this[_0x2303d2(0x1ac)]=void 0x0,this[_0x2303d2(0x1b1)]=[],this[_0x2303d2(0x1ad)](_0x2303d2(0x1bd)),this[_0x2303d2(0x1b9)]=!0x1);}get[_0x240eff(0x1a3)](){const _0x11126f=_0x240eff;return this[_0x11126f(0x1b1)][_0x11126f(0x1b2)]||this[_0x11126f(0x1b9)]?new Promise(_0x42939a=>{const _0x1c4635=_0x11126f;this[_0x1c4635(0x1af)](_0x1c4635(0x1bd),()=>{_0x42939a();});}):Promise[_0x11126f(0x1b8)]();}async[_0x240eff(0x1a8)](){const _0x43b056=_0x240eff;if(!this[_0x43b056(0x1b9)]){this[_0x43b056(0x1ac)]=new AbortController(),this[_0x43b056(0x1b9)]=!0x0;try{for(;this[_0x43b056(0x1b1)][_0x43b056(0x1b2)]&&this[_0x43b056(0x1b9)];){const _0x13a8e0=this[_0x43b056(0x1b1)][_0x43b056(0x1a5)]();try{await _0x13a8e0[_0x43b056(0x1be)](this[_0x43b056(0x1ac)][_0x43b056(0x1ae)]),_0x13a8e0[_0x43b056(0x1b8)]();}catch(_0xb2806e){_0x13a8e0[_0x43b056(0x1a4)](_0xb2806e);}}}finally{this[_0x43b056(0x1b9)]=!0x1,this[_0x43b056(0x1ac)]=void 0x0;}this[_0x43b056(0x1ad)](_0x43b056(0x1bd));}}[_0x240eff(0x1b4)](_0x5140aa){let _0x46bb11,_0x1431bd;const _0x50dac1=new Promise((_0x3bf71a,_0xaaf5cf)=>{_0x46bb11=_0x3bf71a,_0x1431bd=_0xaaf5cf;});return{'callback':_0x5140aa,'resolve':_0x46bb11,'reject':_0x1431bd,'completePromise':_0x50dac1};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2165e1=_0x15c4;(function(_0x8a3045,_0x186f3d){var _0x52cb86=_0x15c4,_0x3a77be=_0x8a3045();while(!![]){try{var _0x2af9aa=parseInt(_0x52cb86(0x17a))/0x1*(parseInt(_0x52cb86(0x178))/0x2)+-parseInt(_0x52cb86(0x181))/0x3*(-parseInt(_0x52cb86(0x17f))/0x4)+parseInt(_0x52cb86(0x183))/0x5*(parseInt(_0x52cb86(0x179))/0x6)+-parseInt(_0x52cb86(0x176))/0x7+-parseInt(_0x52cb86(0x17d))/0x8*(-parseInt(_0x52cb86(0x185))/0x9)+-parseInt(_0x52cb86(0x17c))/0xa+parseInt(_0x52cb86(0x184))/0xb;if(_0x2af9aa===_0x186f3d)break;else _0x3a77be['push'](_0x3a77be['shift']());}catch(_0x115aa1){_0x3a77be['push'](_0x3a77be['shift']());}}}(_0x3841,0xe91dc));function _0x15c4(_0x134ac7,_0xf30be6){var _0x384123=_0x3841();return _0x15c4=function(_0x15c476,_0x39e61f){_0x15c476=_0x15c476-0x176;var _0x48228f=_0x384123[_0x15c476];return _0x48228f;},_0x15c4(_0x134ac7,_0xf30be6);}import{ContextPlugin as _0x381a2a}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x4f86d4}from'./aichathistorycontroller.js';function _0x3841(){var _0x4d7900=['9kwMAzt','8426026XRKbBD','AIChatHistory','12wpippb','10299012mliKVK','156971maIgoz','pluginName','18055750efvWmT','407464oHDZJw','requires','41176cYcyhD','isPremiumPlugin','279yPpljU','isOfficialPlugin','5foNkWO','3272874mwyyCB'];_0x3841=function(){return _0x4d7900;};return _0x3841();}import{AIChatHistoryUI as _0x192f1f}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x381a2a{static get[_0x2165e1(0x17e)](){return[_0x4f86d4,_0x192f1f];}static get[_0x2165e1(0x17b)](){var _0x2ebb1a=_0x2165e1;return _0x2ebb1a(0x177);}static get[_0x2165e1(0x182)](){return!0x0;}static get[_0x2165e1(0x180)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x50d66a=_0x5c85;(function(_0x5987f1,_0x20d393){const _0x8af01=_0x5c85,_0x8e9aaf=_0x5987f1();while(!![]){try{const _0xe6474d=parseInt(_0x8af01(0xc7))/0x1+-parseInt(_0x8af01(0xf9))/0x2+-parseInt(_0x8af01(0xe1))/0x3*(parseInt(_0x8af01(0xbe))/0x4)+-parseInt(_0x8af01(0x107))/0x5+-parseInt(_0x8af01(0xd8))/0x6*(parseInt(_0x8af01(0xd6))/0x7)+parseInt(_0x8af01(0xb2))/0x8+parseInt(_0x8af01(0xd4))/0x9;if(_0xe6474d===_0x20d393)break;else _0x8e9aaf['push'](_0x8e9aaf['shift']());}catch(_0x231c1f){_0x8e9aaf['push'](_0x8e9aaf['shift']());}}}(_0x110f,0x60dab));import{ContextPlugin as _0x57c978}from'ckeditor5/src/core.js';import{AIConnector as _0x189a96}from'../aicore/aiconnector.js';import{AIChatController as _0x1bf3cb}from'../aichat/aichatcontroller.js';import{AITabs as _0x23870b}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x481498}from'./aichathistoryui.js';function _0x110f(){const _0x327227=['_handleSelectConversation','itemRemoved','resizeTabs','156765RhhvFj','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','context','getFullYear','pinned','rename','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','resizedTabs','getMonth','updates','plugins','_handleRemove','requires','length','operation','error','6312912eeGnSr','activateTab:history','showError','activateTab','_handleTogglePin','unpin','openChat','getGroupId','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','push','setLoadingSkeleton','selectConversation','806984KxOZJE','AI_CHAT_HISTORY_CATEGORY_PINNED','items','editConversationTitle','_aiConnector','getItem','AIChatHistoryController','itemUpdated','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','504055BAZqXj','setIsMaximized','_getCategorizedItems','remove','removeConversation','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','init','updateItemLoadingState','itemsLoaded','pin','listenTo','_updateHistoryItemsUI','getDate','1359000PohstX','title','21WepbIm','activeConversation','609942GIVtSm','_generateErrorMessage','_setItemLoading','removeItem','isPremiumPlugin','get','resize','createdAt','loadConversation','3JIzTnB','_clearItemLoading','change:activeConversation','pluginName','_aiChatHistoryUi','chat','AI_CHAT_HISTORY_ERROR_GENERIC','AI_CHAT_HISTORY_UNPIN_ACTION','handleRemovedConversation','_handleHistoryErrorUI','map','_showConversationHistory','loadItems','view','AI_CHAT_HISTORY_CATEGORY_TODAY','AI_CHAT_HISTORY_CATEGORY_LATER','_setIsMaximized','removeHistoryItem','AI_CHAT_HISTORY_PIN_ACTION','itemId','_aiChatController','isOfficialPlugin','toLocaleDateString','updateItemPinned','1018768aEVFzy','updateItems','_handleEditTitle','getItems','locale','setConversationPinned','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','AI_CHAT_UNTITLED_CONVERSATION','updateItemTitle','setDate','history'];_0x110f=function(){return _0x327227;};return _0x110f();}import{AIChatHistoryConversations as _0x3f569d}from'./model/aichathistoryconversations.js';function _0x5c85(_0x49402a,_0x5bbfc7){const _0x110f76=_0x110f();return _0x5c85=function(_0x5c8578,_0x39f593){_0x5c8578=_0x5c8578-0xa9;let _0x1f301b=_0x110f76[_0x5c8578];return _0x1f301b;},_0x5c85(_0x49402a,_0x5bbfc7);}import{getTranslation as _0x3f10d4}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x57c978{[_0x50d66a(0xc2)];[_0x50d66a(0xe5)];[_0x50d66a(0xf5)];static get[_0x50d66a(0xae)](){return[_0x189a96,_0x1bf3cb,_0x481498,_0x23870b];}static get[_0x50d66a(0xe4)](){const _0x59f2ce=_0x50d66a;return _0x59f2ce(0xc4);}static get[_0x50d66a(0xf6)](){return!0x0;}static get[_0x50d66a(0xdc)](){return!0x0;}[_0x50d66a(0xcd)](){const _0x3aae0c=_0x50d66a;this[_0x3aae0c(0xc2)]=this[_0x3aae0c(0x109)][_0x3aae0c(0xac)][_0x3aae0c(0xdd)](_0x189a96),this[_0x3aae0c(0xe5)]=this[_0x3aae0c(0x109)][_0x3aae0c(0xac)][_0x3aae0c(0xdd)](_0x481498),this[_0x3aae0c(0xf5)]=this[_0x3aae0c(0x109)][_0x3aae0c(0xac)][_0x3aae0c(0xdd)](_0x1bf3cb);const _0x14cb8d=this[_0x3aae0c(0x109)][_0x3aae0c(0xac)][_0x3aae0c(0xdd)](_0x23870b);try{const _0x2ba34d=this[_0x3aae0c(0xf5)][_0x3aae0c(0xb9)]();this[_0x3aae0c(0x103)]=new _0x3f569d({'connector':this[_0x3aae0c(0xc2)],'group':_0x2ba34d}),this[_0x3aae0c(0xd1)](this[_0x3aae0c(0xe5)],_0x3aae0c(0xcb),(_0x535a76,_0x5f4a00)=>{const _0x39dca8=_0x3aae0c;this[_0x39dca8(0xda)](_0x5f4a00['id'],_0x39dca8(0xca)),this[_0x39dca8(0xad)](_0x5f4a00['id']);}),this[_0x3aae0c(0xd1)](this[_0x3aae0c(0xe5)],_0x3aae0c(0xc1),(_0x3fd3e2,_0x5d8fe7)=>{const _0x5e36ed=_0x3aae0c;this[_0x5e36ed(0xda)](_0x5d8fe7['id'],_0x5e36ed(0x10c)),this[_0x5e36ed(0xfb)](_0x5d8fe7['id'],_0x5d8fe7[_0x5e36ed(0xd5)]);}),this[_0x3aae0c(0xd1)](this[_0x3aae0c(0x103)],_0x3aae0c(0xc5),(_0x591061,_0x5c68b0)=>{const _0x5cd04a=_0x3aae0c;void 0x0!==_0x5c68b0[_0x5cd04a(0xab)][_0x5cd04a(0xd5)]&&this[_0x5cd04a(0xe5)][_0x5cd04a(0x101)](_0x5c68b0[_0x5cd04a(0xf4)],_0x5c68b0[_0x5cd04a(0xab)][_0x5cd04a(0xd5)]),void 0x0!==_0x5c68b0[_0x5cd04a(0xab)][_0x5cd04a(0x10b)]&&this[_0x5cd04a(0xd2)](),this[_0x5cd04a(0xe2)](_0x5c68b0[_0x5cd04a(0xf4)]);}),this[_0x3aae0c(0xd1)](this[_0x3aae0c(0x103)],_0x3aae0c(0x105),(_0x465f90,_0x355f61)=>{const _0xeb6695=_0x3aae0c;this[_0xeb6695(0xf5)][_0xeb6695(0xe9)](_0x355f61[_0xeb6695(0xf4)]),this[_0xeb6695(0xe5)][_0xeb6695(0xf2)](_0x355f61[_0xeb6695(0xf4)]),this[_0xeb6695(0xe2)](_0x355f61[_0xeb6695(0xf4)]);}),this[_0x3aae0c(0xd1)](this[_0x3aae0c(0x103)],_0x3aae0c(0xcf),()=>{const _0x23ded0=_0x3aae0c;this[_0x23ded0(0xd2)]();}),this[_0x3aae0c(0xd1)](this[_0x3aae0c(0x103)],_0x3aae0c(0xb1),(_0xb6b257,_0xf2da99)=>{const _0x4b731d=_0x3aae0c;this[_0x4b731d(0xea)](_0xf2da99[_0x4b731d(0xb1)],_0xf2da99[_0x4b731d(0xb0)],_0xf2da99[_0x4b731d(0xf4)]);}),this[_0x3aae0c(0xd1)](this[_0x3aae0c(0xe5)],_0x3aae0c(0xbd),(_0x3e8026,_0x250bb4)=>{const _0x598c7b=_0x3aae0c;this[_0x598c7b(0x104)](_0x250bb4['id']);}),this[_0x3aae0c(0xd1)](this[_0x3aae0c(0xe5)],_0x3aae0c(0xfe),(_0x37c6eb,_0x7d4469)=>{const _0x1e986f=_0x3aae0c,_0x2e07f1=_0x7d4469[_0x1e986f(0x10b)]?_0x1e986f(0xd0):_0x1e986f(0xb7);this[_0x1e986f(0xda)](_0x7d4469['id'],_0x2e07f1),this[_0x1e986f(0xb6)](_0x7d4469['id'],_0x7d4469[_0x1e986f(0x10b)]);}),this[_0x3aae0c(0xd1)](this[_0x3aae0c(0xe5)],_0x3aae0c(0xb8),()=>{const _0x228b18=_0x3aae0c;_0x14cb8d[_0x228b18(0xee)][_0x228b18(0xb5)](_0x228b18(0xe6));}),this[_0x3aae0c(0xd1)](this[_0x3aae0c(0xf5)],_0x3aae0c(0xe3),()=>{const _0x4193c9=_0x3aae0c;this[_0x4193c9(0xd2)]();}),_0x14cb8d[_0x3aae0c(0xee)]['on'](_0x3aae0c(0xb3),()=>{const _0xcdb1c2=_0x3aae0c;this[_0xcdb1c2(0xec)]();}),this[_0x3aae0c(0xd1)](_0x14cb8d,_0x3aae0c(0xa9),(_0x12c7d3,_0x490150)=>{const _0x4041dc=_0x3aae0c;this[_0x4041dc(0xf1)](_0x490150);}),this[_0x3aae0c(0xd1)](this[_0x3aae0c(0xe5)],_0x3aae0c(0x106),()=>{const _0x40f682=_0x3aae0c;_0x14cb8d[_0x40f682(0xde)]();});}catch(_0x47e448){this[_0x3aae0c(0xea)](_0x47e448,_0x3aae0c(0xcd));}}async[_0x50d66a(0xfb)](_0x3f255b,_0x2b7fd9){const _0x1564fb=_0x50d66a;await this[_0x1564fb(0x103)][_0x1564fb(0x101)](_0x3f255b,_0x2b7fd9);}async[_0x50d66a(0xb6)](_0x5da787,_0x46c92b){const _0x4a78d4=_0x50d66a;await this[_0x4a78d4(0x103)][_0x4a78d4(0xf8)](_0x5da787,_0x46c92b);}async[_0x50d66a(0xad)](_0x5d9ca7){const _0x2913ef=_0x50d66a;await this[_0x2913ef(0x103)][_0x2913ef(0xdb)](_0x5d9ca7);}async[_0x50d66a(0x104)](_0x351837){const _0x5298f0=_0x50d66a;await this[_0x5298f0(0xf5)][_0x5298f0(0xe0)](_0x351837);}async[_0x50d66a(0xec)](){const _0x88c4db=_0x50d66a;this[_0x88c4db(0xe5)][_0x88c4db(0xb4)](''),this[_0x88c4db(0xe5)][_0x88c4db(0xbc)](!0x0),await this[_0x88c4db(0x103)][_0x88c4db(0xcd)](),this[_0x88c4db(0xe5)][_0x88c4db(0xbc)](!0x1);}[_0x50d66a(0xd2)](){const _0x3e94ff=_0x50d66a,_0x3c6da8=this[_0x3e94ff(0xf5)][_0x3e94ff(0xd7)]?.['id'],_0x5875d8=this[_0x3e94ff(0xc9)]()[_0x3e94ff(0xeb)](_0x4b1230=>({'title':_0x4b1230[_0x3e94ff(0xd5)],'items':_0x4b1230[_0x3e94ff(0xc0)][_0x3e94ff(0xeb)](_0x2e2173=>({'id':_0x2e2173['id'],'title':_0x2e2173[_0x3e94ff(0xd5)]||_0x3f10d4(this[_0x3e94ff(0x109)][_0x3e94ff(0xfd)],_0x3e94ff(0x100)),'createdAt':new Date(_0x2e2173[_0x3e94ff(0xdf)])[_0x3e94ff(0xf7)](),'active':_0x2e2173['id']===_0x3c6da8,'pinned':_0x2e2173[_0x3e94ff(0x10b)]}))}));this[_0x3e94ff(0xe5)][_0x3e94ff(0xfa)](_0x5875d8);}[_0x50d66a(0xda)](_0x2c038a,_0x2ebed8){const _0x2d6381=_0x50d66a;this[_0x2d6381(0xe5)][_0x2d6381(0xce)](_0x2c038a,_0x2ebed8,!0x0);}[_0x50d66a(0xe2)](_0x49537f){const _0xccffef=_0x50d66a;this[_0xccffef(0xe5)][_0xccffef(0xce)](_0x49537f,null,!0x1);}[_0x50d66a(0xea)](_0x113f17,_0x100b9d,_0x1788da){const _0x3c663e=_0x50d66a,_0x50a3ee=this[_0x3c663e(0xd9)](_0x100b9d,_0x1788da);this[_0x3c663e(0xe5)][_0x3c663e(0xb4)](_0x50a3ee),_0x1788da&&this[_0x3c663e(0xe2)](_0x1788da),this[_0x3c663e(0xe5)][_0x3c663e(0xbc)](!0x1);}[_0x50d66a(0xd9)](_0x3a915f,_0x2f85f9){const _0x28c7a2=_0x50d66a,_0x2d8294=_0x2f85f9?this[_0x28c7a2(0x103)][_0x28c7a2(0xc3)](_0x2f85f9):null,_0x151b65=_0x2d8294?.[_0x28c7a2(0xd5)]||_0x3f10d4(this[_0x28c7a2(0x109)][_0x28c7a2(0xfd)],_0x28c7a2(0x100));switch(_0x3a915f){case _0x28c7a2(0x101):return _0x3f10d4(this[_0x28c7a2(0x109)][_0x28c7a2(0xfd)],_0x28c7a2(0xba),_0x151b65);case _0x28c7a2(0xf8):{const _0x11646a=_0x3f10d4(this[_0x28c7a2(0x109)][_0x28c7a2(0xfd)],_0x2d8294?.[_0x28c7a2(0x10b)]?_0x28c7a2(0xe8):_0x28c7a2(0xf3));return _0x3f10d4(this[_0x28c7a2(0x109)][_0x28c7a2(0xfd)],_0x28c7a2(0xc6),[_0x11646a,_0x151b65]);}case _0x28c7a2(0xdb):return _0x3f10d4(this[_0x28c7a2(0x109)][_0x28c7a2(0xfd)],_0x28c7a2(0x108),_0x151b65);case _0x28c7a2(0xcd):case _0x28c7a2(0xed):return _0x3f10d4(this[_0x28c7a2(0x109)][_0x28c7a2(0xfd)],_0x28c7a2(0x10d));default:return _0x3f10d4(this[_0x28c7a2(0x109)][_0x28c7a2(0xfd)],_0x28c7a2(0xe7));}}[_0x50d66a(0xc9)](){const _0x287db7=_0x50d66a,_0x1fd5e9=new Date(),_0x5ee045=new Date(_0x1fd5e9[_0x287db7(0x10a)](),_0x1fd5e9[_0x287db7(0xaa)](),_0x1fd5e9[_0x287db7(0xd3)]()),_0x1d9233=new Date(_0x5ee045);_0x1d9233[_0x287db7(0x102)](_0x1d9233[_0x287db7(0xd3)]()-0x1);const _0x323c55=new Date(_0x5ee045);_0x323c55[_0x287db7(0x102)](_0x323c55[_0x287db7(0xd3)]()-0xe);const _0x2d6ccc=this[_0x287db7(0x103)][_0x287db7(0xfc)]({'pinned':!0x0}),_0x1feea=this[_0x287db7(0x103)][_0x287db7(0xfc)]({'from':_0x5ee045,'to':_0x5ee045}),_0x2b3d73=this[_0x287db7(0x103)][_0x287db7(0xfc)]({'from':_0x1d9233,'to':_0x1d9233}),_0x5e3717=this[_0x287db7(0x103)][_0x287db7(0xfc)]({'from':_0x323c55,'to':_0x1d9233}),_0x4d5e8e=this[_0x287db7(0x103)][_0x287db7(0xfc)]({'to':_0x323c55}),_0x99108=[];return _0x2d6ccc[_0x287db7(0xaf)]>0x0&&_0x99108[_0x287db7(0xbb)]({'title':_0x3f10d4(this[_0x287db7(0x109)][_0x287db7(0xfd)],_0x287db7(0xbf)),'items':_0x2d6ccc}),_0x1feea[_0x287db7(0xaf)]>0x0&&_0x99108[_0x287db7(0xbb)]({'title':_0x3f10d4(this[_0x287db7(0x109)][_0x287db7(0xfd)],_0x287db7(0xef)),'items':_0x1feea}),_0x2b3d73[_0x287db7(0xaf)]>0x0&&_0x99108[_0x287db7(0xbb)]({'title':_0x3f10d4(this[_0x287db7(0x109)][_0x287db7(0xfd)],_0x287db7(0xff)),'items':_0x2b3d73}),_0x5e3717[_0x287db7(0xaf)]>0x0&&_0x99108[_0x287db7(0xbb)]({'title':_0x3f10d4(this[_0x287db7(0x109)][_0x287db7(0xfd)],_0x287db7(0xcc)),'items':_0x5e3717}),_0x4d5e8e[_0x287db7(0xaf)]>0x0&&_0x99108[_0x287db7(0xbb)]({'title':_0x3f10d4(this[_0x287db7(0x109)][_0x287db7(0xfd)],_0x287db7(0xf0)),'items':_0x4d5e8e}),_0x99108;}[_0x50d66a(0xf1)](_0x420674){const _0x421a19=_0x50d66a;this[_0x421a19(0xe5)][_0x421a19(0xc8)](_0x420674);}}
|
|
23
|
+
const _0x1e5ecd=_0xeeed;(function(_0x4138ed,_0x4ebfa0){const _0x48d02c=_0xeeed,_0x2eecc7=_0x4138ed();while(!![]){try{const _0x1d6458=-parseInt(_0x48d02c(0x1e0))/0x1*(-parseInt(_0x48d02c(0x1b6))/0x2)+-parseInt(_0x48d02c(0x185))/0x3*(-parseInt(_0x48d02c(0x1de))/0x4)+-parseInt(_0x48d02c(0x1c4))/0x5+-parseInt(_0x48d02c(0x18b))/0x6+-parseInt(_0x48d02c(0x1a9))/0x7+-parseInt(_0x48d02c(0x1c6))/0x8+parseInt(_0x48d02c(0x1a3))/0x9;if(_0x1d6458===_0x4ebfa0)break;else _0x2eecc7['push'](_0x2eecc7['shift']());}catch(_0x343b21){_0x2eecc7['push'](_0x2eecc7['shift']());}}}(_0x3c0b,0x365b1));import{ContextPlugin as _0x1237da}from'ckeditor5/src/core.js';import{AIConnector as _0x174dc8}from'../aicore/aiconnector.js';import{AIChatController as _0x4f64c8}from'../aichat/aichatcontroller.js';import{AITabs as _0x27cff4}from'../aitabs/aitabs.js';function _0xeeed(_0x274495,_0x33c4a8){const _0x3c0b43=_0x3c0b();return _0xeeed=function(_0xeeed65,_0xf5ca15){_0xeeed65=_0xeeed65-0x180;let _0x43dc5e=_0x3c0b43[_0xeeed65];return _0x43dc5e;},_0xeeed(_0x274495,_0x33c4a8);}function _0x3c0b(){const _0x3ebe86=['showError','history','operation','_handleRemove','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','updateItemTitle','11162tRUyAA','error','setIsMaximized','selectConversation','_aiConnector','rename','_aiChatHistoryUi','resize','editConversationTitle','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','toLocaleDateString','setDate','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','AIChatHistoryController','1510385JZPsoJ','get','378392KWOOMA','unpin','AI_CHAT_HISTORY_ERROR_GENERIC','setConversationPinned','_updateHistoryItemsUI','itemsLoaded','getItem','_setIsMaximized','activateTab','_generateErrorMessage','updateItemPinned','pinned','init','AI_CHAT_HISTORY_CATEGORY_PINNED','removeConversation','removeHistoryItem','removeItem','activeConversation','isPremiumPlugin','_setItemLoading','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','_handleHistoryErrorUI','loadItems','items','8XvLzcQ','AI_CHAT_HISTORY_CATEGORY_LATER','16VkhsAA','listenTo','updateItemLoadingState','view','AI_CHAT_HISTORY_CATEGORY_TODAY','length','_handleSelectConversation','AI_CHAT_UNTITLED_CONVERSATION','_clearItemLoading','pin','127821EInmtw','context','updates','_aiChatController','resizeTabs','remove','1461138GxLntV','updateItems','getGroupId','handleRemovedConversation','_handleEditTitle','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','resizedTabs','requires','setLoadingSkeleton','_showConversationHistory','createdAt','AI_CHAT_HISTORY_UNPIN_ACTION','getFullYear','title','locale','activateTab:history','map','getMonth','_getCategorizedItems','chat','_handleTogglePin','itemRemoved','push','pluginName','6296310ZtcEwr','openChat','isOfficialPlugin','getDate','itemId','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','409920sTmHri','change:activeConversation','plugins','itemUpdated','getItems','loadConversation','AI_CHAT_HISTORY_PIN_ACTION'];_0x3c0b=function(){return _0x3ebe86;};return _0x3c0b();}import{AIChatHistoryUI as _0x67c2d3}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x278f54}from'./model/aichathistoryconversations.js';import{getTranslation as _0x31297c}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x1237da{[_0x1e5ecd(0x1ba)];[_0x1e5ecd(0x1bc)];[_0x1e5ecd(0x188)];static get[_0x1e5ecd(0x192)](){return[_0x174dc8,_0x4f64c8,_0x67c2d3,_0x27cff4];}static get[_0x1e5ecd(0x1a2)](){const _0x16d63c=_0x1e5ecd;return _0x16d63c(0x1c3);}static get[_0x1e5ecd(0x1a5)](){return!0x0;}static get[_0x1e5ecd(0x1d8)](){return!0x0;}[_0x1e5ecd(0x1d2)](){const _0x1553ef=_0x1e5ecd;this[_0x1553ef(0x1ba)]=this[_0x1553ef(0x186)][_0x1553ef(0x1ab)][_0x1553ef(0x1c5)](_0x174dc8),this[_0x1553ef(0x1bc)]=this[_0x1553ef(0x186)][_0x1553ef(0x1ab)][_0x1553ef(0x1c5)](_0x67c2d3),this[_0x1553ef(0x188)]=this[_0x1553ef(0x186)][_0x1553ef(0x1ab)][_0x1553ef(0x1c5)](_0x4f64c8);const _0x3f85c4=this[_0x1553ef(0x186)][_0x1553ef(0x1ab)][_0x1553ef(0x1c5)](_0x27cff4);try{const _0x3ed921=this[_0x1553ef(0x188)][_0x1553ef(0x18d)]();this[_0x1553ef(0x1b1)]=new _0x278f54({'connector':this[_0x1553ef(0x1ba)],'group':_0x3ed921}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1bc)],_0x1553ef(0x1d4),(_0x4def8f,_0x24c1b8)=>{const _0x129fb8=_0x1553ef;this[_0x129fb8(0x1d9)](_0x24c1b8['id'],_0x129fb8(0x18a)),this[_0x129fb8(0x1b3)](_0x24c1b8['id']);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1bc)],_0x1553ef(0x1be),(_0x1571c6,_0x3560cd)=>{const _0x172e5d=_0x1553ef;this[_0x172e5d(0x1d9)](_0x3560cd['id'],_0x172e5d(0x1bb)),this[_0x172e5d(0x18f)](_0x3560cd['id'],_0x3560cd[_0x172e5d(0x198)]);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1b1)],_0x1553ef(0x1ac),(_0x327b55,_0x57cb72)=>{const _0x41ec55=_0x1553ef;void 0x0!==_0x57cb72[_0x41ec55(0x187)][_0x41ec55(0x198)]&&this[_0x41ec55(0x1bc)][_0x41ec55(0x1b5)](_0x57cb72[_0x41ec55(0x1a7)],_0x57cb72[_0x41ec55(0x187)][_0x41ec55(0x198)]),void 0x0!==_0x57cb72[_0x41ec55(0x187)][_0x41ec55(0x1d1)]&&this[_0x41ec55(0x1ca)](),this[_0x41ec55(0x183)](_0x57cb72[_0x41ec55(0x1a7)]);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1b1)],_0x1553ef(0x1a0),(_0x216705,_0x33ab59)=>{const _0x524443=_0x1553ef;this[_0x524443(0x188)][_0x524443(0x18e)](_0x33ab59[_0x524443(0x1a7)]),this[_0x524443(0x1bc)][_0x524443(0x1d5)](_0x33ab59[_0x524443(0x1a7)]),this[_0x524443(0x183)](_0x33ab59[_0x524443(0x1a7)]);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1b1)],_0x1553ef(0x1cb),()=>{const _0x58b020=_0x1553ef;this[_0x58b020(0x1ca)]();}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1b1)],_0x1553ef(0x1b7),(_0x30fa5b,_0x567e03)=>{const _0xfd79e9=_0x1553ef;this[_0xfd79e9(0x1db)](_0x567e03[_0xfd79e9(0x1b7)],_0x567e03[_0xfd79e9(0x1b2)],_0x567e03[_0xfd79e9(0x1a7)]);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1bc)],_0x1553ef(0x1b9),(_0x159d2c,_0xdb6c3a)=>{const _0x598ae8=_0x1553ef;this[_0x598ae8(0x181)](_0xdb6c3a['id']);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1bc)],_0x1553ef(0x1c9),(_0x268faf,_0x4533df)=>{const _0x5974ac=_0x1553ef,_0x5ce262=_0x4533df[_0x5974ac(0x1d1)]?_0x5974ac(0x184):_0x5974ac(0x1c7);this[_0x5974ac(0x1d9)](_0x4533df['id'],_0x5ce262),this[_0x5974ac(0x19f)](_0x4533df['id'],_0x4533df[_0x5974ac(0x1d1)]);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1bc)],_0x1553ef(0x1a4),()=>{const _0x4cba9d=_0x1553ef;_0x3f85c4[_0x4cba9d(0x1e3)][_0x4cba9d(0x1ce)](_0x4cba9d(0x19e));}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x188)],_0x1553ef(0x1aa),()=>{const _0x5609a9=_0x1553ef;this[_0x5609a9(0x1ca)]();}),_0x3f85c4[_0x1553ef(0x1e3)]['on'](_0x1553ef(0x19a),()=>{const _0x1f3d36=_0x1553ef;this[_0x1f3d36(0x194)]();}),this[_0x1553ef(0x1e1)](_0x3f85c4,_0x1553ef(0x191),(_0x214adb,_0x578030)=>{const _0x259a4e=_0x1553ef;this[_0x259a4e(0x1cd)](_0x578030);}),this[_0x1553ef(0x1e1)](this[_0x1553ef(0x1bc)],_0x1553ef(0x189),()=>{const _0x6a735e=_0x1553ef;_0x3f85c4[_0x6a735e(0x1bd)]();});}catch(_0x43073a){this[_0x1553ef(0x1db)](_0x43073a,_0x1553ef(0x1d2));}}async[_0x1e5ecd(0x18f)](_0x5ccb67,_0x3f1cf1){const _0x1b2eb9=_0x1e5ecd;await this[_0x1b2eb9(0x1b1)][_0x1b2eb9(0x1b5)](_0x5ccb67,_0x3f1cf1);}async[_0x1e5ecd(0x19f)](_0xf4ae4e,_0x43135f){const _0x308d12=_0x1e5ecd;await this[_0x308d12(0x1b1)][_0x308d12(0x1d0)](_0xf4ae4e,_0x43135f);}async[_0x1e5ecd(0x1b3)](_0x3ebc96){const _0x49ce64=_0x1e5ecd;await this[_0x49ce64(0x1b1)][_0x49ce64(0x1d6)](_0x3ebc96);}async[_0x1e5ecd(0x181)](_0x43edb0){const _0x426fb3=_0x1e5ecd;await this[_0x426fb3(0x188)][_0x426fb3(0x1ae)](_0x43edb0);}async[_0x1e5ecd(0x194)](){const _0x56985e=_0x1e5ecd;this[_0x56985e(0x1bc)][_0x56985e(0x1b0)](''),this[_0x56985e(0x1bc)][_0x56985e(0x193)](!0x0),await this[_0x56985e(0x1b1)][_0x56985e(0x1d2)](),this[_0x56985e(0x1bc)][_0x56985e(0x193)](!0x1);}[_0x1e5ecd(0x1ca)](){const _0x571d68=_0x1e5ecd,_0x31009f=this[_0x571d68(0x188)][_0x571d68(0x1d7)]?.['id'],_0x197e94=this[_0x571d68(0x19d)]()[_0x571d68(0x19b)](_0x2fed4c=>({'title':_0x2fed4c[_0x571d68(0x198)],'items':_0x2fed4c[_0x571d68(0x1dd)][_0x571d68(0x19b)](_0x599cad=>({'id':_0x599cad['id'],'title':_0x599cad[_0x571d68(0x198)]||_0x31297c(this[_0x571d68(0x186)][_0x571d68(0x199)],_0x571d68(0x182)),'createdAt':new Date(_0x599cad[_0x571d68(0x195)])[_0x571d68(0x1c0)](),'active':_0x599cad['id']===_0x31009f,'pinned':_0x599cad[_0x571d68(0x1d1)]}))}));this[_0x571d68(0x1bc)][_0x571d68(0x18c)](_0x197e94);}[_0x1e5ecd(0x1d9)](_0x3f5109,_0x23fede){const _0x597dee=_0x1e5ecd;this[_0x597dee(0x1bc)][_0x597dee(0x1e2)](_0x3f5109,_0x23fede,!0x0);}[_0x1e5ecd(0x183)](_0x5516fc){const _0x50a26a=_0x1e5ecd;this[_0x50a26a(0x1bc)][_0x50a26a(0x1e2)](_0x5516fc,null,!0x1);}[_0x1e5ecd(0x1db)](_0x13c6e2,_0x388135,_0x18efea){const _0x46d6f1=_0x1e5ecd,_0x12b250=this[_0x46d6f1(0x1cf)](_0x388135,_0x18efea);this[_0x46d6f1(0x1bc)][_0x46d6f1(0x1b0)](_0x12b250),_0x18efea&&this[_0x46d6f1(0x183)](_0x18efea),this[_0x46d6f1(0x1bc)][_0x46d6f1(0x193)](!0x1);}[_0x1e5ecd(0x1cf)](_0x1abf21,_0x1544b0){const _0x29f367=_0x1e5ecd,_0xfb7453=_0x1544b0?this[_0x29f367(0x1b1)][_0x29f367(0x1cc)](_0x1544b0):null,_0x1ed256=_0xfb7453?.[_0x29f367(0x198)]||_0x31297c(this[_0x29f367(0x186)][_0x29f367(0x199)],_0x29f367(0x182));switch(_0x1abf21){case _0x29f367(0x1b5):return _0x31297c(this[_0x29f367(0x186)][_0x29f367(0x199)],_0x29f367(0x190),_0x1ed256);case _0x29f367(0x1d0):{const _0x1bee94=_0x31297c(this[_0x29f367(0x186)][_0x29f367(0x199)],_0xfb7453?.[_0x29f367(0x1d1)]?_0x29f367(0x196):_0x29f367(0x1af));return _0x31297c(this[_0x29f367(0x186)][_0x29f367(0x199)],_0x29f367(0x1da),[_0x1bee94,_0x1ed256]);}case _0x29f367(0x1d6):return _0x31297c(this[_0x29f367(0x186)][_0x29f367(0x199)],_0x29f367(0x1b4),_0x1ed256);case _0x29f367(0x1d2):case _0x29f367(0x1dc):return _0x31297c(this[_0x29f367(0x186)][_0x29f367(0x199)],_0x29f367(0x1a8));default:return _0x31297c(this[_0x29f367(0x186)][_0x29f367(0x199)],_0x29f367(0x1c8));}}[_0x1e5ecd(0x19d)](){const _0x5d9f17=_0x1e5ecd,_0x40f720=new Date(),_0x675dd6=new Date(_0x40f720[_0x5d9f17(0x197)](),_0x40f720[_0x5d9f17(0x19c)](),_0x40f720[_0x5d9f17(0x1a6)]()),_0x1c510b=new Date(_0x675dd6);_0x1c510b[_0x5d9f17(0x1c1)](_0x1c510b[_0x5d9f17(0x1a6)]()-0x1);const _0x5b7062=new Date(_0x675dd6);_0x5b7062[_0x5d9f17(0x1c1)](_0x5b7062[_0x5d9f17(0x1a6)]()-0xe);const _0xaf41f8=this[_0x5d9f17(0x1b1)][_0x5d9f17(0x1ad)]({'pinned':!0x0}),_0x231b01=this[_0x5d9f17(0x1b1)][_0x5d9f17(0x1ad)]({'from':_0x675dd6,'to':_0x675dd6}),_0x1209fa=this[_0x5d9f17(0x1b1)][_0x5d9f17(0x1ad)]({'from':_0x1c510b,'to':_0x1c510b}),_0x2c7f2c=this[_0x5d9f17(0x1b1)][_0x5d9f17(0x1ad)]({'from':_0x5b7062,'to':_0x1c510b}),_0x24acae=this[_0x5d9f17(0x1b1)][_0x5d9f17(0x1ad)]({'to':_0x5b7062}),_0x401276=[];return _0xaf41f8[_0x5d9f17(0x180)]>0x0&&_0x401276[_0x5d9f17(0x1a1)]({'title':_0x31297c(this[_0x5d9f17(0x186)][_0x5d9f17(0x199)],_0x5d9f17(0x1d3)),'items':_0xaf41f8}),_0x231b01[_0x5d9f17(0x180)]>0x0&&_0x401276[_0x5d9f17(0x1a1)]({'title':_0x31297c(this[_0x5d9f17(0x186)][_0x5d9f17(0x199)],_0x5d9f17(0x1e4)),'items':_0x231b01}),_0x1209fa[_0x5d9f17(0x180)]>0x0&&_0x401276[_0x5d9f17(0x1a1)]({'title':_0x31297c(this[_0x5d9f17(0x186)][_0x5d9f17(0x199)],_0x5d9f17(0x1c2)),'items':_0x1209fa}),_0x2c7f2c[_0x5d9f17(0x180)]>0x0&&_0x401276[_0x5d9f17(0x1a1)]({'title':_0x31297c(this[_0x5d9f17(0x186)][_0x5d9f17(0x199)],_0x5d9f17(0x1bf)),'items':_0x2c7f2c}),_0x24acae[_0x5d9f17(0x180)]>0x0&&_0x401276[_0x5d9f17(0x1a1)]({'title':_0x31297c(this[_0x5d9f17(0x186)][_0x5d9f17(0x199)],_0x5d9f17(0x1df)),'items':_0x24acae}),_0x401276;}[_0x1e5ecd(0x1cd)](_0x33903a){const _0x177e12=_0x1e5ecd;this[_0x177e12(0x1bc)][_0x177e12(0x1b8)](_0x33903a);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ec01e=_0x1b47;(function(_0x2d4e9b,_0x3c6460){const _0x4d8e52=_0x1b47,_0x5da0fb=_0x2d4e9b();while(!![]){try{const _0x108ff2=-parseInt(_0x4d8e52(0xbd))/0x1*(-parseInt(_0x4d8e52(0xac))/0x2)+-parseInt(_0x4d8e52(0xc6))/0x3*(-parseInt(_0x4d8e52(0xab))/0x4)+parseInt(_0x4d8e52(0xc2))/0x5*(-parseInt(_0x4d8e52(0xaf))/0x6)+parseInt(_0x4d8e52(0xa4))/0x7*(-parseInt(_0x4d8e52(0xad))/0x8)+parseInt(_0x4d8e52(0xa8))/0x9+-parseInt(_0x4d8e52(0xb4))/0xa+parseInt(_0x4d8e52(0xaa))/0xb;if(_0x108ff2===_0x3c6460)break;else _0x5da0fb['push'](_0x5da0fb['shift']());}catch(_0x3fa7d1){_0x5da0fb['push'](_0x5da0fb['shift']());}}}(_0x3fe3,0x648a5));import{ContextPlugin as _0x78e163}from'ckeditor5/src/core.js';import{AITabs as _0x40e406}from'../aitabs/aitabs.js';import{IconAIHistory as _0xd7c59a}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x2f2e8f}from'./ui/aichathistoryview.js';import{getTranslation as _0x542a5c}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x2ec01e(0xb5),_0x2ec01e(0xb3),_0x2ec01e(0xc8),_0x2ec01e(0xca),_0x2ec01e(0xb8),_0x2ec01e(0xc3),_0x2ec01e(0xb9)];function _0x3fe3(){const _0x4affdd=['AIChatHistoryUI','77214dEceHO','AI_CHAT_HISTORY_HEADING','updateItemTitle','history','removeConversation','4826190NowQBc','showConversationHistory','showError','updateHistoryItemsWithCategories','selectConversation','resizeTabs','delegate','showResizeButton','get','8273SzKBGL','AITabs','hideError','pluginName','setLoadingSkeleton','255fLlkZI','openChat','requires','updateItems','3xsxDkz','updateItemLoadingState','editConversationTitle','plugins','setConversationPinned','isOfficialPlugin','view','locale','setIsMaximized','errorMessage','isLoading','_historyView','addTab','124537zHDiQL','isPremiumPlugin','removeHistoryItem','context','6756588JBKOZB','isMaximized','2826758NpPCnV','1551932zoacAc','102iXDOcW','120tXzWCV'];_0x3fe3=function(){return _0x4affdd;};return _0x3fe3();}function _0x1b47(_0x2f8cef,_0x3fe698){const _0x3fe3e0=_0x3fe3();return _0x1b47=function(_0x1b4730,_0x31a5a4){_0x1b4730=_0x1b4730-0x9c;let _0x813839=_0x3fe3e0[_0x1b4730];return _0x813839;},_0x1b47(_0x2f8cef,_0x3fe698);}export class AIChatHistoryUI extends _0x78e163{static get[_0x2ec01e(0xc4)](){return[_0x40e406];}[_0x2ec01e(0xa2)];static get[_0x2ec01e(0xc0)](){const _0x57019b=_0x2ec01e;return _0x57019b(0xae);}static get[_0x2ec01e(0x9c)](){return!0x0;}static get[_0x2ec01e(0xa5)](){return!0x0;}constructor(_0x5a008c){const _0x18b1f1=_0x2ec01e;super(_0x5a008c);const _0x49e730=this[_0x18b1f1(0xa7)][_0x18b1f1(0xc9)][_0x18b1f1(0xbc)](_0x18b1f1(0xbe));this[_0x18b1f1(0xa2)]=new _0x2f2e8f(this[_0x18b1f1(0xa7)][_0x18b1f1(0x9e)],_0x49e730[_0x18b1f1(0xbb)]),this[_0x18b1f1(0xa2)][_0x18b1f1(0xba)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x49e730[_0x18b1f1(0x9d)][_0x18b1f1(0xa3)]({'id':_0x18b1f1(0xb2),'buttonLabel':_0x542a5c(this[_0x18b1f1(0xa7)][_0x18b1f1(0x9e)],_0x18b1f1(0xb0)),'buttonIcon':_0xd7c59a,'order':0x0,'content':this[_0x18b1f1(0xa2)]});}[_0x2ec01e(0xa6)](_0x4f2f0e){const _0x1f5f68=_0x2ec01e;this[_0x1f5f68(0xa2)][_0x1f5f68(0xa6)](_0x4f2f0e);}[_0x2ec01e(0xc5)](_0x3a9baa){const _0x4642e8=_0x2ec01e;this[_0x4642e8(0xa2)][_0x4642e8(0xb7)](_0x3a9baa);}[_0x2ec01e(0xb1)](_0xa3ff99,_0x4638f2){const _0x24da87=_0x2ec01e;this[_0x24da87(0xa2)][_0x24da87(0xb1)](_0xa3ff99,_0x4638f2);}[_0x2ec01e(0xc7)](_0x310d38,_0x4a159b,_0x1957e8){const _0x42244d=_0x2ec01e;this[_0x42244d(0xa2)][_0x42244d(0xc7)](_0x310d38,_0x4a159b,_0x1957e8);}[_0x2ec01e(0xc1)](_0x4c37b5){const _0x27941f=_0x2ec01e;this[_0x27941f(0xa2)][_0x27941f(0xa1)]=_0x4c37b5;}[_0x2ec01e(0xb6)](_0x1ee96b){const _0x24f933=_0x2ec01e;this[_0x24f933(0xa2)][_0x24f933(0xa0)]=_0x1ee96b;}[_0x2ec01e(0xbf)](){const _0x8b76af=_0x2ec01e;this[_0x8b76af(0xa2)][_0x8b76af(0xa0)]='';}[_0x2ec01e(0x9f)](_0x436611){const _0x214fc7=_0x2ec01e;this[_0x214fc7(0xa2)][_0x214fc7(0xa9)]=_0x436611;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x40f3(_0x888762,_0x1fabd3){const _0x3c60a9=_0x3c60();return _0x40f3=function(_0x40f36a,_0x5c2d11){_0x40f36a=_0x40f36a-0x1f1;let _0x7140d6=_0x3c60a9[_0x40f36a];return _0x7140d6;},_0x40f3(_0x888762,_0x1fabd3);}const _0xcc3213=_0x40f3;(function(_0xb85d5,_0xa33b91){const _0x34859c=_0x40f3,_0x2ddcbf=_0xb85d5();while(!![]){try{const _0xe1a312=-parseInt(_0x34859c(0x20b))/0x1*(parseInt(_0x34859c(0x213))/0x2)+parseInt(_0x34859c(0x210))/0x3*(parseInt(_0x34859c(0x212))/0x4)+-parseInt(_0x34859c(0x214))/0x5*(-parseInt(_0x34859c(0x1ff))/0x6)+-parseInt(_0x34859c(0x203))/0x7*(parseInt(_0x34859c(0x201))/0x8)+-parseInt(_0x34859c(0x1f5))/0x9*(-parseInt(_0x34859c(0x20e))/0xa)+parseInt(_0x34859c(0x222))/0xb*(parseInt(_0x34859c(0x209))/0xc)+-parseInt(_0x34859c(0x20c))/0xd;if(_0xe1a312===_0xa33b91)break;else _0x2ddcbf['push'](_0x2ddcbf['shift']());}catch(_0x5231a7){_0x2ddcbf['push'](_0x2ddcbf['shift']());}}}(_0x3c60,0x29abc));import{EmitterMixin as _0x3f1131}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x40e843}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x3f1131(){[_0xcc3213(0x208)]=[];[_0xcc3213(0x215)];[_0xcc3213(0x20f)];constructor({connector:_0x5c2511,group:_0x955a3d}){const _0x797324=_0xcc3213;super(),this[_0x797324(0x215)]=_0x5c2511,this[_0x797324(0x20f)]=_0x955a3d;}async[_0xcc3213(0x21c)](){const _0x26ed85=_0xcc3213;try{const _0x5ce746=this[_0x26ed85(0x215)][_0x26ed85(0x1f1)](this[_0x26ed85(0x20f)]),_0x3a0726=await _0x5ce746[_0x26ed85(0x216)]();this[_0x26ed85(0x204)](_0x3a0726);}catch(_0x81aec2){this[_0x26ed85(0x1f3)](_0x26ed85(0x1fa),{'error':_0x81aec2,'operation':_0x26ed85(0x21c)});}}[_0xcc3213(0x21f)](_0x2e5b39){const _0x2932ac=_0xcc3213;this[_0x2932ac(0x208)][_0x2932ac(0x1f6)](_0x2e5b39);}async[_0xcc3213(0x21b)](_0x4083a1){const _0x313a18=_0xcc3213,_0x1bd5c0=this[_0x313a18(0x208)][_0x313a18(0x1fb)](_0x2c9014=>_0x2c9014['id']===_0x4083a1);if(-0x1===_0x1bd5c0)return!0x1;try{return await this[_0x313a18(0x215)][_0x313a18(0x21a)](_0x4083a1)[_0x313a18(0x1f4)](),this[_0x313a18(0x208)][_0x313a18(0x21e)](_0x1bd5c0,0x1),this[_0x313a18(0x1f3)](_0x313a18(0x1fd),{'itemId':_0x4083a1}),!0x0;}catch(_0x193f05){return this[_0x313a18(0x1f3)](_0x313a18(0x1fa),{'error':_0x193f05,'operation':_0x313a18(0x21b),'itemId':_0x4083a1}),!0x1;}}[_0xcc3213(0x1f2)](_0x345a42){const _0x1b406a=_0xcc3213;return this[_0x1b406a(0x208)][_0x1b406a(0x202)](_0xb86855=>_0xb86855['id']===_0x345a42);}async[_0xcc3213(0x221)](_0x535afd,_0x2bcc5e){const _0x3aa9d8=_0xcc3213,_0x446ea8=this[_0x3aa9d8(0x1f2)](_0x535afd);if(!_0x446ea8)return!0x1;try{return await this[_0x3aa9d8(0x215)][_0x3aa9d8(0x20d)](_0x535afd,{'title':_0x2bcc5e})[_0x3aa9d8(0x205)](),_0x446ea8[_0x3aa9d8(0x217)](_0x2bcc5e),this[_0x3aa9d8(0x1f3)](_0x3aa9d8(0x206),{'itemId':_0x535afd,'updates':{'title':_0x2bcc5e}}),!0x0;}catch(_0x16da5f){return this[_0x3aa9d8(0x1f3)](_0x3aa9d8(0x1fa),{'error':_0x16da5f,'operation':_0x3aa9d8(0x221),'itemId':_0x535afd}),!0x1;}}async[_0xcc3213(0x1f7)](_0x539f8d,_0x5c89db){const _0x71c432=_0xcc3213,_0x5bb542=this[_0x71c432(0x1f2)](_0x539f8d);if(!_0x5bb542)return!0x1;try{return await this[_0x71c432(0x215)][_0x71c432(0x20d)](_0x539f8d,{'pinned':_0x5c89db})[_0x71c432(0x205)](),_0x5bb542[_0x71c432(0x200)](_0x5c89db),this[_0x71c432(0x1f3)](_0x71c432(0x206),{'itemId':_0x539f8d,'updates':{'pinned':_0x5c89db}}),!0x0;}catch(_0x363f8f){return this[_0x71c432(0x1f3)](_0x71c432(0x1fa),{'error':_0x363f8f,'operation':_0x71c432(0x1f7),'itemId':_0x539f8d}),!0x1;}}[_0xcc3213(0x204)](_0xc689c5){const _0x5468e0=_0xcc3213;try{this[_0x5468e0(0x208)]=[],_0xc689c5[_0x5468e0(0x1f8)](_0x3760c9=>{const _0x30c897=_0x5468e0;this[_0x30c897(0x21f)](new _0x40e843(_0x3760c9));}),this[_0x5468e0(0x1f3)](_0x5468e0(0x220),{'items':[...this[_0x5468e0(0x208)]]});}catch(_0x48772c){this[_0x5468e0(0x1f3)](_0x5468e0(0x1fa),{'error':_0x48772c,'operation':_0x5468e0(0x204)});}}[_0xcc3213(0x1f9)](_0x5acb83={}){const _0x36d025=_0xcc3213,_0x55a07c=void 0x0!==_0x5acb83[_0x36d025(0x20a)]&&_0x5acb83[_0x36d025(0x20a)],_0x329f7d=_0x5acb83[_0x36d025(0x218)]?new Date(_0x5acb83[_0x36d025(0x218)][_0x36d025(0x211)](),_0x5acb83[_0x36d025(0x218)][_0x36d025(0x1fc)](),_0x5acb83[_0x36d025(0x218)][_0x36d025(0x1fe)]()):null,_0xd88d77=_0x5acb83['to']?new Date(_0x5acb83['to'][_0x36d025(0x211)](),_0x5acb83['to'][_0x36d025(0x1fc)](),_0x5acb83['to'][_0x36d025(0x1fe)]()):null;return this[_0x36d025(0x208)][_0x36d025(0x207)](_0x565455=>{const _0xa44b6d=_0x36d025;if(_0x565455[_0xa44b6d(0x20a)]!==_0x55a07c)return!0x1;if(_0xd88d77){const _0x190a30=new Date(_0x565455[_0xa44b6d(0x21d)][_0xa44b6d(0x211)](),_0x565455[_0xa44b6d(0x21d)][_0xa44b6d(0x1fc)](),_0x565455[_0xa44b6d(0x21d)][_0xa44b6d(0x1fe)]());return _0x329f7d?_0x329f7d[_0xa44b6d(0x219)]()===_0xd88d77[_0xa44b6d(0x219)]()?_0x190a30[_0xa44b6d(0x219)]()===_0x329f7d[_0xa44b6d(0x219)]():_0x190a30<_0xd88d77&&_0x190a30>=_0x329f7d:_0x190a30<_0xd88d77;}return!0x0;});}}function _0x3c60(){const _0x4d98e6=['228eunQrd','updatePinned','16Xyrtud','find','625541UeRUxH','loadItems','getResult','itemUpdated','filter','items','12mtfXRU','pinned','326563hDBEKu','916136WEtgxW','updateConversation','523490QHQjuJ','group','16170twypIP','getFullYear','176PkJMSm','2OcwCyS','3675kMuClE','connector','getConversations','updateTitle','from','getTime','deleteConversation','removeItem','init','createdAt','splice','addItem','itemsLoaded','updateItemTitle','1839871keZcub','fetchConversations','getItem','fire','execute','54NDVbkV','push','updateItemPinned','map','getItems','error','findIndex','getMonth','itemRemoved','getDate'];_0x3c60=function(){return _0x4d98e6;};return _0x3c60();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x34cef6=_0x230c;(function(_0x2c241c,_0x5c2863){var _0x2b89a3=_0x230c,_0x181e7a=_0x2c241c();while(!![]){try{var _0x2cd211=parseInt(_0x2b89a3(0xdc))/0x1*(-parseInt(_0x2b89a3(0xde))/0x2)+-parseInt(_0x2b89a3(0xe9))/0x3*(parseInt(_0x2b89a3(0xe2))/0x4)+-parseInt(_0x2b89a3(0xe3))/0x5*(parseInt(_0x2b89a3(0xe1))/0x6)+-parseInt(_0x2b89a3(0xdd))/0x7+parseInt(_0x2b89a3(0xed))/0x8*(parseInt(_0x2b89a3(0xe5))/0x9)+-parseInt(_0x2b89a3(0xe0))/0xa+parseInt(_0x2b89a3(0xeb))/0xb;if(_0x2cd211===_0x5c2863)break;else _0x181e7a['push'](_0x181e7a['shift']());}catch(_0x54048a){_0x181e7a['push'](_0x181e7a['shift']());}}}(_0x2afa,0x68749));function _0x2afa(){var _0x49db1e=['281488KJMjSS','141595AxqSVu','updatePinned','234QIAmjl','pinned','updatedAt','set','21ZaguLi','title','13069573goAdoz','updateTitle','205336wKhlsw','2dTiPBx','591794AiYtuD','241622rCvpmR','createdAt','5805490kBwkla','6YlSjXq'];_0x2afa=function(){return _0x49db1e;};return _0x2afa();}function _0x230c(_0x5a5ba4,_0x58c4d4){var _0x2afaef=_0x2afa();return _0x230c=function(_0x230c6f,_0x2bacdd){_0x230c6f=_0x230c6f-0xdc;var _0x200f1f=_0x2afaef[_0x230c6f];return _0x200f1f;},_0x230c(_0x5a5ba4,_0x58c4d4);}import{ObservableMixin as _0x2379a4}from'ckeditor5/src/utils.js';import{escape as _0x5ccbbc}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x2379a4(){['id'];[_0x34cef6(0xdf)];constructor({id:_0x5a47b2,title:_0x7e647b,createdAt:_0x16cd66,updatedAt:_0x51fa4b,pinned:_0x57c952}){var _0x6c9546=_0x34cef6;super(),this['id']=_0x5a47b2,this[_0x6c9546(0xdf)]=new Date(_0x16cd66),this[_0x6c9546(0xe8)](_0x6c9546(0xea),_0x7e647b),this[_0x6c9546(0xe8)](_0x6c9546(0xe7),_0x51fa4b?new Date(_0x51fa4b):null),this[_0x6c9546(0xe8)](_0x6c9546(0xe6),_0x57c952||!0x1);}[_0x34cef6(0xec)](_0x301f79){var _0x2a0dbe=_0x34cef6;this[_0x2a0dbe(0xe8)](_0x2a0dbe(0xea),_0x5ccbbc(_0x301f79)),this[_0x2a0dbe(0xe7)]=new Date();}[_0x34cef6(0xe4)](_0x4e52e8){var _0xefd1bd=_0x34cef6;this[_0xefd1bd(0xe8)](_0xefd1bd(0xe6),_0x4e52e8),this[_0xefd1bd(0xe7)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
const _0x5158fd=_0x576e;(function(_0x34bee7,_0x251c64){const _0x3e6b47=_0x576e,_0x17abcc=_0x34bee7();while(!![]){try{const _0x14820f=parseInt(_0x3e6b47(0xad))/0x1*(-parseInt(_0x3e6b47(0xf0))/0x2)+parseInt(_0x3e6b47(0xe4))/0x3+-parseInt(_0x3e6b47(0xc4))/0x4+-parseInt(_0x3e6b47(0xcd))/0x5+-parseInt(_0x3e6b47(0xfe))/0x6*(-parseInt(_0x3e6b47(0xae))/0x7)+-parseInt(_0x3e6b47(0xb7))/0x8*(-parseInt(_0x3e6b47(0x100))/0x9)+-parseInt(_0x3e6b47(0xd5))/0xa*(-parseInt(_0x3e6b47(0xbc))/0xb);if(_0x14820f===_0x251c64)break;else _0x17abcc['push'](_0x17abcc['shift']());}catch(_0x55d326){_0x17abcc['push'](_0x17abcc['shift']());}}}(_0x595b,0x232a3));import{ListItemView as _0x5a40a2,HighlightedTextView as _0x132711,ButtonView as _0x13984a,ListView as _0x39aa33,IconView as _0x1a0f3d,createDropdown as _0x1668e1,InputTextView as _0x27379c}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x3a7e51,IconPin as _0x17d5fa,IconCheck as _0x3ced18,IconCancel as _0x362ca7}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x3fe623,ConfirmMixin as _0xb407a6}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x595b(){const _0x52e6a9=['isEdit','Enter','loadingState','element','AI_CHAT_HISTORY_REMOVE','panelPosition','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item-main-content','3436fAdpUW','124341fOUgBU','locale','ck-ai-chat-history__item','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','removeConversation','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item-check-container','label','8cfGDSF','AI_CHAT_HISTORY_LOADING_PINNING','ck-ai-chat-history__item--edit','_createPinButtonView','addMany','407VhllJL','AI_CHAT_HISTORY_LOADING_REMOVING','match','execute','value','bind','_createCheckView','ck-ai-loader','57476vqvIvB','fire','children','span','isOn','ck-ai-chat-history__item-row','text','listitem','updateTitle','1253095Adxgvt','ck-confirm-view-cancel','add','pinned','AI_CHAT_HISTORY_ACCEPT','extendTemplate','focus','AI_CHAT_HISTORY_REMOVE_CONFIRM','116430WUDYez','_createCancelEditButtonView','isVisible','then','ck-ai-chat-history__item-content','buttonView','showConfirm','bindTemplate','_createSpinnerView','ck-ai-chat-history__item-title','isMatching','AI_CHAT_HISTORY_LOADING_UNPINNING','withText','_createEditInputView','tiny','201774bMOwvN','ck-ai-loader__text','LOADING_LABELS','editConversationTitle','ck-ai-chat-history__item-check','createCollection','highlightText','items','change:isEdit','_createAcceptEditButtonView','div','actions','156ATUugV','key','ck-hidden','_titleView','panelView','selectConversation','edit:cancel','_createMenuDropdownView','ck-confirm-view-submit','click','clear','setTemplate','updateLoadingState','AI_CHAT_HISTORY_PIN_BUTTON','24ONnRrF','string','971370ibZpcB','ck-ai-chat-history__item-actions','mainContent','_commitEditInputValue','set','AI_CHAT_HISTORY_CANCEL','ck-ai-chat-history__item--active','setConversationPinned'];_0x595b=function(){return _0x52e6a9;};return _0x595b();}import{escape as _0x401c36}from'es-toolkit/compat';function _0x576e(_0x344a6f,_0x3eb969){const _0x595ba1=_0x595b();return _0x576e=function(_0x576ec0,_0x3d919e){_0x576ec0=_0x576ec0-0xab;let _0x11fbd4=_0x595ba1[_0x576ec0];return _0x11fbd4;},_0x576e(_0x344a6f,_0x3eb969);}import{AISpinnerView as _0x4d404f}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x3cda29}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xb407a6(_0x5a40a2){['id'];static [_0x5158fd(0xe6)]={'remove':_0x5158fd(0xbd),'rename':_0x5158fd(0xab),'pin':_0x5158fd(0xb8),'unpin':_0x5158fd(0xe0)};[_0x5158fd(0xef)];[_0x5158fd(0x102)];[_0x5158fd(0xf3)];constructor(_0x5eb0ce,_0x22385f){const _0x34b041=_0x5158fd;super(_0x5eb0ce);const _0x3ea9f3=this[_0x34b041(0xdc)];this[_0x34b041(0x104)](_0x34b041(0x108),!0x1),this[_0x34b041(0x104)](_0x34b041(0xd7),!0x0),this[_0x34b041(0x104)](_0x34b041(0xd0),!!_0x22385f[_0x34b041(0xd0)]),this[_0x34b041(0x104)](_0x34b041(0x10a),null),this['id']=_0x22385f['id'];const {title:_0x217ac7,createdAt:_0x344942,active:_0x47393b=!0x1}=_0x22385f;this[_0x34b041(0xf3)]=new _0x132711(),this[_0x34b041(0xf3)][_0x34b041(0xca)]=_0x217ac7,this[_0x34b041(0xf3)][_0x34b041(0xd2)]({'attributes':{'class':[_0x34b041(0xde)]}});const _0x2fc821=this[_0x34b041(0xc2)](),_0x5c58e6=this[_0x34b041(0xba)](_0x5eb0ce),_0x2ef236=this[_0x34b041(0xf7)](),_0x4748af=this[_0x34b041(0xe2)](_0x5eb0ce,_0x217ac7),_0x1d7aec=this[_0x34b041(0xed)](_0x5eb0ce,_0x4748af),_0x3b23dc=this[_0x34b041(0xd6)](_0x5eb0ce,_0x4748af);this[_0x34b041(0xef)]=this[_0x34b041(0xe9)](),this[_0x34b041(0x102)]=this[_0x34b041(0xe9)](),this[_0x34b041(0x102)][_0x34b041(0xcf)](this[_0x34b041(0xf3)]),this[_0x34b041(0xef)][_0x34b041(0xcf)](_0x5c58e6),this[_0x34b041(0xef)][_0x34b041(0xcf)](_0x2ef236),this['on'](_0x34b041(0xec),(_0x49ded2,_0x3fb08f,_0x4567de)=>{const _0x2d9a9d=_0x34b041;this[_0x2d9a9d(0xef)][_0x2d9a9d(0xfa)](),this[_0x2d9a9d(0x102)][_0x2d9a9d(0xfa)](),_0x4567de?(this[_0x2d9a9d(0xef)][_0x2d9a9d(0xcf)](_0x1d7aec),this[_0x2d9a9d(0xef)][_0x2d9a9d(0xcf)](_0x3b23dc),this[_0x2d9a9d(0x102)][_0x2d9a9d(0xcf)](_0x4748af),_0x4748af[_0x2d9a9d(0x10b)][_0x2d9a9d(0xd3)]()):(this[_0x2d9a9d(0xef)][_0x2d9a9d(0xcf)](_0x5c58e6),this[_0x2d9a9d(0xef)][_0x2d9a9d(0xcf)](_0x2ef236),this[_0x2d9a9d(0x102)][_0x2d9a9d(0xcf)](this[_0x2d9a9d(0xf3)]));}),this[_0x34b041(0xfb)]({'tag':'li','attributes':{'class':[_0x34b041(0xb0),_0x47393b?_0x34b041(0x106):'',_0x3ea9f3['if'](_0x34b041(0xd7),_0x34b041(0xf2),_0xef314a=>!_0xef314a),_0x3ea9f3['if'](_0x34b041(0x108),_0x34b041(0xb9))],'role':_0x34b041(0xcb)},'children':[{'tag':_0x34b041(0xc7),'attributes':{'class':[_0x34b041(0xb5)]},'children':[{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0xe8),_0x3ea9f3['if'](_0x34b041(0x10a),_0x34b041(0xf2),_0x3f9e0f=>!!_0x3f9e0f)]},'children':_0x47393b?[_0x2fc821]:[]},{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0xc3),_0x3ea9f3['if'](_0x34b041(0x10a),_0x34b041(0xf2),_0x296a21=>!_0x296a21)]},'children':[this[_0x34b041(0xdd)]()]}]},{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0xc9)]},'children':[{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0xd9)]},'on':{'click':this[_0x34b041(0xdc)]['to'](_0x34b041(0xf9))},'children':[{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0xac)]},'children':[{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0xde),_0x3ea9f3['if'](_0x34b041(0x10a),_0x34b041(0xf2),_0x5aed81=>!!_0x5aed81)]},'children':this[_0x34b041(0x102)]},{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0xe5),_0x3ea9f3['if'](_0x34b041(0x10a),_0x34b041(0xf2),_0x2c4fa2=>!_0x2c4fa2)]},'children':[{'text':_0x3ea9f3['to'](_0x34b041(0x10a),_0x274ad1=>_0x274ad1?_0x3cda29(this[_0x34b041(0xaf)],AIChatHistoryListItemView[_0x34b041(0xe6)][_0x274ad1]):'')}]}]},{'tag':_0x34b041(0xc7),'attributes':{'class':[_0x34b041(0xb1)]},'children':[_0x344942]}]},{'tag':_0x34b041(0xee),'attributes':{'class':[_0x34b041(0x101)]},'children':this[_0x34b041(0xef)]}]}]}),this['on'](_0x34b041(0xf9),()=>{const _0x16afc8=_0x34b041;this[_0x16afc8(0x108)]||this[_0x16afc8(0xc5)](_0x16afc8(0xf5),{'id':this['id']});});}[_0x5158fd(0xcc)](_0x1b9673){const _0x37c8ce=_0x5158fd;this[_0x37c8ce(0xf3)][_0x37c8ce(0xca)]=_0x401c36(_0x1b9673);}[_0x5158fd(0xfc)](_0x2f2201,_0x3e6de8){const _0x3a9fb3=_0x5158fd;this[_0x3a9fb3(0x104)](_0x3a9fb3(0x10a),_0x3e6de8?_0x2f2201:null);}[_0x5158fd(0xc2)](){const _0x3cc388=_0x5158fd,_0x322f74=new _0x1a0f3d();return _0x322f74[_0x3cc388(0x104)]({'content':_0x3ced18}),_0x322f74;}[_0x5158fd(0xba)](_0x512570){const _0xfe2d57=_0x5158fd,_0x1570f1=new _0x13984a(_0x512570);return _0x1570f1[_0xfe2d57(0x104)]({'label':_0x3cda29(_0x512570,_0xfe2d57(0xfd)),'icon':_0x17d5fa,'withText':!0x1,'tooltip':!0x0}),_0x1570f1[_0xfe2d57(0xc1)](_0xfe2d57(0xc8))['to'](this,_0xfe2d57(0xd0)),_0x1570f1['on'](_0xfe2d57(0xbf),()=>{const _0x36387f=_0xfe2d57,_0x563522=!this[_0x36387f(0xd0)];this[_0x36387f(0xc5)](_0x36387f(0x107),{'id':this['id'],'pinned':_0x563522});}),_0x1570f1;}[_0x5158fd(0xf7)](){const _0x5e15d0=_0x5158fd,_0x309340=_0x1668e1(this[_0x5e15d0(0xaf)],_0x3fe623),_0x51bd4c=_0x309340[_0x5e15d0(0xf4)][_0x5e15d0(0xc6)];_0x309340[_0x5e15d0(0xda)][_0x5e15d0(0x104)]({'label':_0x3cda29(this[_0x5e15d0(0xaf)],_0x5e15d0(0xb2)),'icon':_0x3a7e51}),_0x309340[_0x5e15d0(0x10d)]='sw';const _0x23d57e=new _0x13984a(this[_0x5e15d0(0xaf)]);_0x23d57e[_0x5e15d0(0xb6)]=_0x3cda29(this[_0x5e15d0(0xaf)],_0x5e15d0(0xb4)),_0x23d57e[_0x5e15d0(0xe1)]=!0x0,_0x23d57e['on'](_0x5e15d0(0xbf),()=>{const _0x219567=_0x5e15d0;this[_0x219567(0x108)]=!0x0;});const _0x2e32fc=new _0x13984a(this[_0x5e15d0(0xaf)]);_0x2e32fc[_0x5e15d0(0xb6)]=_0x3cda29(this[_0x5e15d0(0xaf)],_0x5e15d0(0x10c)),_0x2e32fc[_0x5e15d0(0xe1)]=!0x0,_0x2e32fc['on'](_0x5e15d0(0xbf),()=>{const _0x9958be=_0x5e15d0;this[_0x9958be(0xdb)](_0x3cda29(this[_0x9958be(0xaf)],_0x9958be(0xd4)),this[_0x9958be(0x10b)])[_0x9958be(0xd8)](()=>{const _0x27242e=_0x9958be;this[_0x27242e(0xc5)](_0x27242e(0xb3),{'id':this['id']});});});const _0x43b7a5=new _0x39aa33(this[_0x5e15d0(0xaf)]),_0x235ef=new _0x5a40a2(this[_0x5e15d0(0xaf)]);_0x235ef[_0x5e15d0(0xc6)][_0x5e15d0(0xcf)](_0x23d57e);const _0x44348c=new _0x5a40a2(this[_0x5e15d0(0xaf)]);return _0x44348c[_0x5e15d0(0xc6)][_0x5e15d0(0xcf)](_0x2e32fc),_0x43b7a5[_0x5e15d0(0xeb)][_0x5e15d0(0xbb)]([_0x235ef,_0x44348c]),_0x51bd4c[_0x5e15d0(0xcf)](_0x43b7a5),_0x309340;}[_0x5158fd(0xe2)](_0x4f86c5,_0x194042){const _0x43a19a=_0x5158fd,_0x337887=new _0x27379c(_0x4f86c5),_0x3e699a=_0x337887[_0x43a19a(0xdc)];return _0x337887[_0x43a19a(0xc0)]=_0x194042,_0x337887[_0x43a19a(0xd2)]({'on':{'keydown':_0x3e699a['to'](_0x1fd8b9=>{const _0x2255a=_0x43a19a;_0x2255a(0x109)==_0x1fd8b9[_0x2255a(0xf1)]&&this[_0x2255a(0x103)](_0x337887);})}}),_0x337887;}[_0x5158fd(0xed)](_0x94d04e,_0x360e65){const _0x3a0645=_0x5158fd,_0x27fd63=new _0x13984a(_0x94d04e);return _0x27fd63[_0x3a0645(0x104)]({'icon':_0x3ced18,'withText':!0x1,'tooltip':_0x3cda29(_0x94d04e,_0x3a0645(0xd1))}),_0x27fd63[_0x3a0645(0xd2)]({'attributes':{'class':[_0x3a0645(0xf8)]}}),_0x27fd63['on'](_0x3a0645(0xbf),()=>{const _0x3c4cbd=_0x3a0645;this[_0x3c4cbd(0x103)](_0x360e65);}),_0x27fd63;}[_0x5158fd(0x103)](_0x50acde){const _0x5153cb=_0x5158fd,_0x2e6434=_0x50acde[_0x5153cb(0x10b)][_0x5153cb(0xc0)]||'';this[_0x5153cb(0xf3)][_0x5153cb(0xca)]=_0x2e6434,this[_0x5153cb(0x108)]=!0x1,this[_0x5153cb(0xc5)](_0x5153cb(0xe7),{'id':this['id'],'title':_0x2e6434});}[_0x5158fd(0xd6)](_0x107f48,_0x33816c){const _0x2db9fd=_0x5158fd,_0x337bcc=new _0x13984a(_0x107f48);return _0x337bcc[_0x2db9fd(0x104)]({'icon':_0x362ca7,'withText':!0x1,'tooltip':_0x3cda29(_0x107f48,_0x2db9fd(0x105))}),_0x337bcc[_0x2db9fd(0xd2)]({'attributes':{'class':[_0x2db9fd(0xce)]}}),_0x337bcc['on'](_0x2db9fd(0xbf),()=>{const _0x22383c=_0x2db9fd;this[_0x22383c(0x108)]=!0x1,_0x33816c[_0x22383c(0xc0)]=this[_0x22383c(0xf3)][_0x22383c(0xca)]||'',this[_0x22383c(0xc5)](_0x22383c(0xf6));}),_0x337bcc;}[_0x5158fd(0xdd)](){const _0x276145=_0x5158fd,_0x11bd4a=new _0x4d404f(_0x276145(0xe3));return _0x11bd4a[_0x276145(0xd7)]=!0x0,_0x11bd4a;}[_0x5158fd(0xdf)](_0x219082){const _0x3aea29=_0x5158fd;return this[_0x3aea29(0xf3)]&&_0x3aea29(0xff)==typeof this[_0x3aea29(0xf3)][_0x3aea29(0xca)]&&this[_0x3aea29(0xf3)][_0x3aea29(0xca)][_0x3aea29(0xbe)](_0x219082)?{'title':!0x0}:null;}[_0x5158fd(0xea)](_0x3b0069){const _0x21aeb6=_0x5158fd;this[_0x21aeb6(0xf3)][_0x21aeb6(0xea)](_0x3b0069);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x124bac=_0x33a0;function _0x5e69(){const _0x59c4e1=['removeItem','splice','12SotjGW','6349616aJQBqX','ck-hidden','bindTemplate','length','9130902gepHUB','addMany','getItem','items','5229diZaZr','find','title','3472640umgVli','_itemsListView','ck-ai-chat-history__section','isMatching','filter','165981bioAKk','370828kGvmIL','setTemplate','div','set','highlightText','60BXKSuc','ck-ai-chat-history__section-title','remove','3491703qsMvxn','12472PISvXv','itemsViews','isVisible','indexOf'];_0x5e69=function(){return _0x59c4e1;};return _0x5e69();}function _0x33a0(_0x656cc8,_0x52308b){const _0x5e69a1=_0x5e69();return _0x33a0=function(_0x33a015,_0x18d824){_0x33a015=_0x33a015-0xbd;let _0xd37553=_0x5e69a1[_0x33a015];return _0xd37553;},_0x33a0(_0x656cc8,_0x52308b);}(function(_0x5190af,_0x5cc550){const _0x41db29=_0x33a0,_0x7ae521=_0x5190af();while(!![]){try{const _0x2dd871=parseInt(_0x41db29(0xcb))/0x1*(parseInt(_0x41db29(0xdb))/0x2)+parseInt(_0x41db29(0xd4))/0x3+parseInt(_0x41db29(0xcc))/0x4*(-parseInt(_0x41db29(0xd1))/0x5)+-parseInt(_0x41db29(0xbf))/0x6+parseInt(_0x41db29(0xdc))/0x7+-parseInt(_0x41db29(0xd5))/0x8*(-parseInt(_0x41db29(0xc3))/0x9)+-parseInt(_0x41db29(0xc6))/0xa;if(_0x2dd871===_0x5cc550)break;else _0x7ae521['push'](_0x7ae521['shift']());}catch(_0x3ea66a){_0x7ae521['push'](_0x7ae521['shift']());}}}(_0x5e69,0xf1f71));import{ListItemView as _0xa3760b,View as _0x397147,ListView as _0x5077e2}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0xa3760b{[_0x124bac(0xc5)];[_0x124bac(0xd6)];[_0x124bac(0xc7)];constructor(_0x4c9ceb,{title:_0x5794f9,items:_0x228dc3}){const _0xb8aecd=_0x124bac;super(_0x4c9ceb);const _0x175ed5=this[_0xb8aecd(0xbd)];this[_0xb8aecd(0xcf)](_0xb8aecd(0xd7),!0x0),this[_0xb8aecd(0xc5)]=_0x5794f9,this[_0xb8aecd(0xd6)]=_0x228dc3;const _0x44e8f7=new _0x397147(_0x4c9ceb);_0x44e8f7[_0xb8aecd(0xcd)]({'tag':_0xb8aecd(0xce),'attributes':{'class':[_0xb8aecd(0xd2)]},'children':[this[_0xb8aecd(0xc5)]]}),this[_0xb8aecd(0xc7)]=new _0x5077e2(_0x4c9ceb),this[_0xb8aecd(0xc7)][_0xb8aecd(0xc2)][_0xb8aecd(0xc0)](this[_0xb8aecd(0xd6)]),this[_0xb8aecd(0xcd)]({'tag':'li','attributes':{'class':[_0xb8aecd(0xc8),_0x175ed5['if'](_0xb8aecd(0xd7),_0xb8aecd(0xdd),_0xa6a09f=>!_0xa6a09f)]},'children':[_0x44e8f7,this[_0xb8aecd(0xc7)]]});}[_0x124bac(0xca)](_0x40521b){const _0x41f77d=_0x124bac,_0x4bf6f4=this[_0x41f77d(0xd6)][_0x41f77d(0xbe)];let _0x1dc9fe=0x0;for(const _0x53126c of this[_0x41f77d(0xd6)]){if(_0x40521b){const _0x281a59=_0x53126c[_0x41f77d(0xc9)](_0x40521b);_0x53126c[_0x41f77d(0xd7)]=!!_0x281a59,_0x53126c[_0x41f77d(0xd0)](_0x40521b);}else _0x53126c[_0x41f77d(0xd7)]=!0x0,_0x53126c[_0x41f77d(0xd0)](null);_0x53126c[_0x41f77d(0xd7)]&&_0x1dc9fe++;}return this[_0x41f77d(0xd7)]=_0x1dc9fe>0x0,{'resultsCount':_0x1dc9fe,'totalItemsCount':_0x4bf6f4};}[_0x124bac(0xc1)](_0xc877ad){const _0x315a1b=_0x124bac;return this[_0x315a1b(0xd6)][_0x315a1b(0xc4)](_0x438eae=>_0x438eae['id']===_0xc877ad);}[_0x124bac(0xd9)](_0x4b3f43){const _0x24fc9a=_0x124bac,_0x4b56e4=this[_0x24fc9a(0xd6)][_0x24fc9a(0xd8)](_0x4b3f43);-0x1!==_0x4b56e4&&(this[_0x24fc9a(0xd6)][_0x24fc9a(0xda)](_0x4b56e4,0x1),this[_0x24fc9a(0xc7)][_0x24fc9a(0xc2)][_0x24fc9a(0xd3)](_0x4b3f43));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x202f(_0x568317,_0x1beed5){const _0xde87fd=_0xde87();return _0x202f=function(_0x202fbb,_0x372e4c){_0x202fbb=_0x202fbb-0xc7;let _0x36ea1d=_0xde87fd[_0x202fbb];return _0x36ea1d;},_0x202f(_0x568317,_0x1beed5);}const _0x28129d=_0x202f;function _0xde87(){const _0x3a9b00=['push','getItem','skeletonView','value','updateItemTitle','ck-ai-chat-history__content','_createListItemViews','itemsViews','sectionsView','_createSearchView','change:isLoading','ck-ai-chat-history','addMany','ck-rounded-corners','updateLoadingState','ck-ai-chat__start-conversation','render','items','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','set','openChat','queryView','children','delegate','2DiMXxe','searchView','remove','fire','ck-ai-notification','aiHistory','_updateViewVisibility','search','locale','309897DYBLgS','indexOf','updateItemLoadingState','457815BOaSao','fieldView','clear','change:hasItems','ck-ai-notification_error__dismiss-button','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','isMaximized','ltr','388196qHLsOL','extendTemplate','div','title','emptyView','ck-ai-notification_error','isVisible','isMainErrorViewVisible','AI_CHAT_HISTORY_EMPTY_MESSAGE','isLoading','updateTitle','ck-ai-chat-history__empty','1786419bKHGgy','length','hasItems','sections','change:errorMessage','10nUmvrt','ck-hidden','isEmptyViewVisible','element','add','bind','bindTemplate','removeHistoryItem','ck-ai-header\x20ck-ai-header_history','removeItem','AI_CHAT_HISTORY_SEARCH_LABEL','_createSkeletonView','execute','332PLTRAB','AI_CHAT_HISTORY_HEADING','setTemplate','_createErrorView','_refreshSearch','_createEmptyStateView','errorMessage','305100dxlzVQ','resizeButton','mainErrorView','splice','ck-reset_all','AI_CHAT_LABEL_NEW_CHAT','updateHistoryItemsWithCategories','ck-ai-chat-history__empty-message','979768AWPCob','some','11004zxgHul','isSearchViewVisible'];_0xde87=function(){return _0x3a9b00;};return _0xde87();}(function(_0x1c3909,_0x1080d5){const _0x199eaa=_0x202f,_0x382962=_0x1c3909();while(!![]){try{const _0x4896e3=parseInt(_0x199eaa(0xec))/0x1*(-parseInt(_0x199eaa(0xd8))/0x2)+parseInt(_0x199eaa(0x11b))/0x3*(parseInt(_0x199eaa(0x10a))/0x4)+-parseInt(_0x199eaa(0xe4))/0x5+parseInt(_0x199eaa(0x111))/0x6+parseInt(_0x199eaa(0xe1))/0x7+parseInt(_0x199eaa(0x119))/0x8+parseInt(_0x199eaa(0xf8))/0x9*(parseInt(_0x199eaa(0xfd))/0xa);if(_0x4896e3===_0x1080d5)break;else _0x382962['push'](_0x382962['shift']());}catch(_0x3ce966){_0x382962['push'](_0x382962['shift']());}}}(_0xde87,0x3ac80));import{View as _0x5ead2f,SearchTextView as _0xcd61ab,FormHeaderView as _0x50727c,ButtonView as _0x4b0c45}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x57b25c,IconCancel as _0xb887a7,IconPlus as _0x121003}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x52262d}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xf5e360}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x1a534a}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x4b4c81}from'../aichathistoryui.js';import{AISkeletonView as _0x6d91dc,SKELETON_DEFINITIONS as _0x23b896}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x126284}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x59e1b4}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5ead2f{[_0x28129d(0xd9)];[_0x28129d(0x113)];[_0x28129d(0x11f)];[_0x28129d(0xf0)];[_0x28129d(0xc8)];[_0x28129d(0x112)];constructor(_0x47e5ff,_0x523b8e){const _0x2d7181=_0x28129d;super(_0x47e5ff),this[_0x2d7181(0xd3)](_0x2d7181(0xfa),!0x1),this[_0x2d7181(0xd3)](_0x2d7181(0xf5),!0x0),this[_0x2d7181(0xd3)](_0x2d7181(0x110),''),this[_0x2d7181(0xd3)](_0x2d7181(0xea),!0x1),this[_0x2d7181(0xd3)](_0x2d7181(0x11c),!0x1),this[_0x2d7181(0xd3)](_0x2d7181(0xff),!0x1),this[_0x2d7181(0xd3)](_0x2d7181(0xf3),!0x1);const _0x3807f1=new _0x50727c(_0x47e5ff,{'label':_0x59e1b4(_0x47e5ff,_0x2d7181(0x10b)),'icon':_0x57b25c,'class':_0x2d7181(0x105)});_0x523b8e&&(this[_0x2d7181(0x112)]=_0x126284(_0x47e5ff,this),_0x3807f1[_0x2d7181(0xd6)][_0x2d7181(0x101)](this[_0x2d7181(0x112)])),this[_0x2d7181(0xc8)]=new _0x52262d(_0x47e5ff,[]),this[_0x2d7181(0xc8)][_0x2d7181(0xd7)](..._0x4b4c81)['to'](this),this[_0x2d7181(0x113)]=this[_0x2d7181(0x10d)](),this[_0x2d7181(0x11f)]=this[_0x2d7181(0x108)](),this[_0x2d7181(0xf0)]=this[_0x2d7181(0x10f)](),this[_0x2d7181(0xd9)]=this[_0x2d7181(0xc9)](),this[_0x2d7181(0x113)][_0x2d7181(0xed)]({'attributes':{'class':[this[_0x2d7181(0x103)]['if'](_0x2d7181(0xf3),_0x2d7181(0xfe),_0x28fcc3=>!_0x28fcc3)]}}),this['on'](_0x2d7181(0xca),()=>this[_0x2d7181(0xde)]()),this['on'](_0x2d7181(0xe7),()=>this[_0x2d7181(0xde)]()),this['on'](_0x2d7181(0xfc),()=>this[_0x2d7181(0xde)]()),this[_0x2d7181(0x10c)]({'tag':_0x2d7181(0xee),'attributes':{'class':['ck',_0x2d7181(0x115),_0x2d7181(0xcb),_0x2d7181(0xcd)],'dir':_0x2d7181(0xeb)},'children':[_0x3807f1,{'tag':_0x2d7181(0xee),'attributes':{'class':[_0x2d7181(0x122)]},'children':[this[_0x2d7181(0x11f)],this[_0x2d7181(0x113)],this[_0x2d7181(0xf0)],this[_0x2d7181(0xd9)]]}]});}[_0x28129d(0xde)](){const _0x1dad52=_0x28129d;this[_0x1dad52(0x11c)]=!this[_0x1dad52(0xf5)]&&this[_0x1dad52(0xfa)],this[_0x1dad52(0xff)]=!this[_0x1dad52(0xf5)]&&!this[_0x1dad52(0xfa)]&&!this[_0x1dad52(0x110)],this[_0x1dad52(0xf3)]=!this[_0x1dad52(0x11c)]&&!!this[_0x1dad52(0x110)];}[_0x28129d(0xc9)](){const _0x3287ab=_0x28129d,_0xc1c52e=new _0xcd61ab(this[_0x3287ab(0xe0)],{'filteredView':this[_0x3287ab(0xc8)],'queryView':{'label':_0x59e1b4(this[_0x3287ab(0xe0)],_0x3287ab(0x107))},'infoView':{'text':{'notFound':{'primary':_0xf0e46e=>_0x59e1b4(this[_0x3287ab(0xe0)],_0x3287ab(0xe9),_0xf0e46e),'secondary':_0x59e1b4(this[_0x3287ab(0xe0)],_0x3287ab(0xd2))}}}}),_0xcc5462=this[_0x3287ab(0x10d)]();return _0xcc5462[_0x3287ab(0xed)]({'attributes':{'class':[this[_0x3287ab(0x103)]['if'](_0x3287ab(0x110),_0x3287ab(0xfe),_0x2da75c=>!_0x2da75c)]}}),_0xc1c52e['on'](_0x3287ab(0xd0),()=>{const _0x31c322=_0x3287ab;_0xc1c52e[_0x31c322(0xd6)][_0x31c322(0x101)](_0xcc5462,0x1);}),_0xc1c52e[_0x3287ab(0xed)]({'attributes':{'class':[this[_0x3287ab(0x103)]['if'](_0x3287ab(0x11c),_0x3287ab(0xfe),_0x47498f=>!_0x47498f)]}}),_0xc1c52e;}[_0x28129d(0x108)](){const _0x1f861f=_0x28129d,_0x221065=new _0x6d91dc(this[_0x1f861f(0xe0)],_0x23b896[_0x1f861f(0xdd)]);return _0x221065[_0x1f861f(0xed)]({'attributes':{'class':[this[_0x1f861f(0x103)]['if'](_0x1f861f(0xf5),_0x1f861f(0xfe),_0x286413=>!_0x286413)]}}),_0x221065;}[_0x28129d(0x10d)](){const _0x2bed7a=_0x28129d,_0x30c1bb=new _0x5ead2f(this[_0x2bed7a(0xe0)]),_0x2e81ba=new _0x4b0c45(this[_0x2bed7a(0xe0)]);_0x2e81ba[_0x2bed7a(0xd3)]({'withText':!0x1,'icon':_0xb887a7,'class':_0x2bed7a(0xe8)}),_0x2e81ba[_0x2bed7a(0x102)](_0x2bed7a(0xf2))['to'](this,_0x2bed7a(0xfa),_0x5ce9ab=>!!_0x5ce9ab),_0x2e81ba['on'](_0x2bed7a(0x109),()=>{const _0xc6b6e0=_0x2bed7a;this[_0xc6b6e0(0x110)]='';});const _0x1d57d5=this[_0x2bed7a(0x103)];return _0x30c1bb[_0x2bed7a(0x10c)]({'tag':_0x2bed7a(0xee),'attributes':{'class':['ck',_0x2bed7a(0xdc),_0x2bed7a(0xf1)]},'children':[{'tag':'p','children':[{'text':_0x1d57d5['to'](_0x2bed7a(0x110))}]},_0x2e81ba]}),_0x30c1bb;}[_0x28129d(0x10f)](){const _0x3e291c=_0x28129d,_0x5152d3=new _0x4b0c45(this[_0x3e291c(0xe0)]);_0x5152d3[_0x3e291c(0xd3)]({'label':_0x59e1b4(this[_0x3e291c(0xe0)],_0x3e291c(0x116)),'withText':!0x0,'icon':_0x121003,'class':_0x3e291c(0xcf)}),_0x5152d3['on'](_0x3e291c(0x109),()=>{const _0x195cff=_0x3e291c;this[_0x195cff(0xdb)](_0x195cff(0xd4));});const _0x4b1719=new _0x5ead2f(this[_0x3e291c(0xe0)]);return _0x4b1719[_0x3e291c(0x10c)]({'tag':_0x3e291c(0xee),'attributes':{'class':[_0x3e291c(0xf7),this[_0x3e291c(0x103)]['if'](_0x3e291c(0xff),_0x3e291c(0xfe),_0x10700f=>!_0x10700f)]},'children':[{'tag':'p','attributes':{'class':[_0x3e291c(0x118)]},'children':[_0x59e1b4(this[_0x3e291c(0xe0)],_0x3e291c(0xf4))]},_0x5152d3]}),_0x4b1719;}[_0x28129d(0x123)](_0x58fa24,_0xc6eaf8){const _0x2ece63=_0x28129d,_0x559768=[];for(const _0x1e9abe of _0x58fa24){const _0x3fe988=new _0x1a534a(_0xc6eaf8,_0x1e9abe);_0x3fe988[_0x2ece63(0xd7)](..._0x4b4c81)['to'](this),_0x559768[_0x2ece63(0x11d)](_0x3fe988);}return _0x559768;}[_0x28129d(0x117)](_0x5cb0c2){const _0x35a297=_0x28129d,_0x8f57a3=this[_0x35a297(0xe0)]||'en',_0x45ee1f=[];for(const _0x456023 of _0x5cb0c2){const _0x1e7820=this[_0x35a297(0x123)](_0x456023[_0x35a297(0xd1)],_0x8f57a3);_0x45ee1f[_0x35a297(0x11d)](new _0xf5e360(_0x8f57a3,{'title':_0x456023[_0x35a297(0xef)],'items':_0x1e7820}));}this[_0x35a297(0xc8)][_0x35a297(0xfb)]=_0x45ee1f,this[_0x35a297(0xc8)][_0x35a297(0xd1)][_0x35a297(0xe6)](),this[_0x35a297(0xc8)][_0x35a297(0xd1)][_0x35a297(0xcc)](_0x45ee1f),this[_0x35a297(0xfa)]=_0x5cb0c2[_0x35a297(0x11a)](_0x38d117=>_0x38d117[_0x35a297(0xd1)][_0x35a297(0xf9)]>0x0),this[_0x35a297(0x10e)]();}[_0x28129d(0x104)](_0x417e2f){const _0x56a042=_0x28129d;for(const _0x7d5dab of this[_0x56a042(0xc8)][_0x56a042(0xfb)]){const _0x20ca6e=_0x7d5dab[_0x56a042(0x11e)](_0x417e2f);if(_0x20ca6e){if(_0x7d5dab[_0x56a042(0x106)](_0x20ca6e),0x0===_0x7d5dab[_0x56a042(0xc7)][_0x56a042(0xf9)]){const _0x1cf1c2=this[_0x56a042(0xc8)][_0x56a042(0xfb)][_0x56a042(0xe2)](_0x7d5dab);-0x1!==_0x1cf1c2&&(this[_0x56a042(0xc8)][_0x56a042(0xfb)][_0x56a042(0x114)](_0x1cf1c2,0x1),this[_0x56a042(0xc8)][_0x56a042(0xd1)][_0x56a042(0xda)](_0x7d5dab));}this[_0x56a042(0xfa)]=this[_0x56a042(0xc8)][_0x56a042(0xfb)][_0x56a042(0xf9)]>0x0,this[_0x56a042(0x10e)]();break;}}}[_0x28129d(0x121)](_0x3bd5ba,_0x598828){const _0x308734=_0x28129d;for(const _0x203f69 of this[_0x308734(0xc8)][_0x308734(0xfb)]){const _0x5b1d4a=_0x203f69[_0x308734(0x11e)](_0x3bd5ba);if(_0x5b1d4a){_0x5b1d4a[_0x308734(0xf6)](_0x598828);break;}}}[_0x28129d(0xe3)](_0x6ad632,_0x4b93b6,_0x32c515){const _0x1e5276=_0x28129d;for(const _0x49de02 of this[_0x1e5276(0xc8)][_0x1e5276(0xfb)]){const _0x11b196=_0x49de02[_0x1e5276(0x11e)](_0x6ad632);if(_0x11b196){_0x11b196[_0x1e5276(0xce)](_0x4b93b6,_0x32c515);break;}}}[_0x28129d(0x10e)](){const _0x3a5b98=_0x28129d;if(this[_0x3a5b98(0xfa)]){const _0x8b38d1=this[_0x3a5b98(0xd9)][_0x3a5b98(0xd5)][_0x3a5b98(0xe5)]?.[_0x3a5b98(0x100)]?.[_0x3a5b98(0x120)]||'';this[_0x3a5b98(0xd9)][_0x3a5b98(0xdf)](_0x8b38d1);}}}
|
|
23
|
+
function _0x5d04(_0x2ee0c7,_0x50deb9){const _0x105998=_0x1059();return _0x5d04=function(_0x5d0404,_0x4a67ea){_0x5d0404=_0x5d0404-0x16e;let _0xe27c7b=_0x105998[_0x5d0404];return _0xe27c7b;},_0x5d04(_0x2ee0c7,_0x50deb9);}const _0x672c73=_0x5d04;(function(_0x490ce3,_0x7414b4){const _0x284ecb=_0x5d04,_0x9befb6=_0x490ce3();while(!![]){try{const _0x221c17=-parseInt(_0x284ecb(0x199))/0x1*(-parseInt(_0x284ecb(0x173))/0x2)+parseInt(_0x284ecb(0x191))/0x3*(parseInt(_0x284ecb(0x18e))/0x4)+-parseInt(_0x284ecb(0x19b))/0x5*(-parseInt(_0x284ecb(0x1bd))/0x6)+parseInt(_0x284ecb(0x190))/0x7+parseInt(_0x284ecb(0x19c))/0x8*(-parseInt(_0x284ecb(0x183))/0x9)+-parseInt(_0x284ecb(0x187))/0xa*(-parseInt(_0x284ecb(0x193))/0xb)+-parseInt(_0x284ecb(0x1a3))/0xc;if(_0x221c17===_0x7414b4)break;else _0x9befb6['push'](_0x9befb6['shift']());}catch(_0x361752){_0x9befb6['push'](_0x9befb6['shift']());}}}(_0x1059,0xa87dd));function _0x1059(){const _0x5da5cd=['ck-ai-chat-history','isVisible','ck-reset_all','div','ck-ai-header\x20ck-ai-header_history','indexOf','execute','1193054UbELRw','_createEmptyStateView','ck-ai-chat-history__empty','sectionsView','element','_createSearchView','AI_CHAT_LABEL_NEW_CHAT','ck-ai-chat-history__empty-message','_refreshSearch','remove','getItem','resizeButton','isMainErrorViewVisible','sections','render','children','9xEQtDu','extendTemplate','errorMessage','_createListItemViews','123590bbQMuV','value','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','aiHistory','removeHistoryItem','AI_CHAT_HISTORY_SEARCH_LABEL','fire','304hhEmCb','bind','366296QJuUcv','46437cZQbxV','_updateViewVisibility','825NFvnJo','ck-ai-notification_error','emptyView','updateHistoryItemsWithCategories','set','isMaximized','2NlOsQT','openChat','7355SbrCMg','1838648TaohXP','locale','ck-ai-chat__start-conversation','removeItem','fieldView','searchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','37211832uTnAlz','length','isSearchViewVisible','skeletonView','title','AI_CHAT_HISTORY_HEADING','search','splice','setTemplate','change:isLoading','_createSkeletonView','updateItemLoadingState','items','change:hasItems','some','hasItems','clear','ck-ai-notification_error__dismiss-button','push','updateTitle','updateLoadingState','bindTemplate','ck-hidden','ck-ai-notification','itemsViews','change:errorMessage','2742MHSVKn','isEmptyViewVisible','AI_CHAT_HISTORY_EMPTY_MESSAGE','isLoading','add','ltr','updateItemTitle','ck-rounded-corners','_createErrorView','delegate','ck-ai-chat-history__content','queryView','mainErrorView','addMany'];_0x1059=function(){return _0x5da5cd;};return _0x1059();}import{View as _0x571dd0,SearchTextView as _0xb8d54b,FormHeaderView as _0x3481e3,ButtonView as _0x2e279d}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xebd9ca,IconCancel as _0x3c9bed,IconPlus as _0x559173}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x25bdce}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x5ca701}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2431f8}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3652fd}from'../aichathistoryui.js';import{AISkeletonView as _0x1fcf0b,SKELETON_DEFINITIONS as _0x478f69}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x183b08}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x230756}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x571dd0{[_0x672c73(0x1a1)];[_0x672c73(0x1c9)];[_0x672c73(0x1a6)];[_0x672c73(0x195)];[_0x672c73(0x176)];[_0x672c73(0x17e)];constructor(_0x2b289c,_0x3bb352){const _0x5f2e0f=_0x672c73;super(_0x2b289c),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x1b2),!0x1),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x1c0),!0x0),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x185),''),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x198),!0x1),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x1a5),!0x1),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x1be),!0x1),this[_0x5f2e0f(0x197)](_0x5f2e0f(0x17f),!0x1);const _0x412396=new _0x3481e3(_0x2b289c,{'label':_0x230756(_0x2b289c,_0x5f2e0f(0x1a8)),'icon':_0xebd9ca,'class':_0x5f2e0f(0x170)});_0x3bb352&&(this[_0x5f2e0f(0x17e)]=_0x183b08(_0x2b289c,this),_0x412396[_0x5f2e0f(0x182)][_0x5f2e0f(0x1c1)](this[_0x5f2e0f(0x17e)])),this[_0x5f2e0f(0x176)]=new _0x25bdce(_0x2b289c,[]),this[_0x5f2e0f(0x176)][_0x5f2e0f(0x1c6)](..._0x3652fd)['to'](this),this[_0x5f2e0f(0x1c9)]=this[_0x5f2e0f(0x1c5)](),this[_0x5f2e0f(0x1a6)]=this[_0x5f2e0f(0x1ad)](),this[_0x5f2e0f(0x195)]=this[_0x5f2e0f(0x174)](),this[_0x5f2e0f(0x1a1)]=this[_0x5f2e0f(0x178)](),this[_0x5f2e0f(0x1c9)][_0x5f2e0f(0x184)]({'attributes':{'class':[this[_0x5f2e0f(0x1b8)]['if'](_0x5f2e0f(0x17f),_0x5f2e0f(0x1b9),_0x131ff9=>!_0x131ff9)]}}),this['on'](_0x5f2e0f(0x1ac),()=>this[_0x5f2e0f(0x192)]()),this['on'](_0x5f2e0f(0x1b0),()=>this[_0x5f2e0f(0x192)]()),this['on'](_0x5f2e0f(0x1bc),()=>this[_0x5f2e0f(0x192)]()),this[_0x5f2e0f(0x1ab)]({'tag':_0x5f2e0f(0x16f),'attributes':{'class':['ck',_0x5f2e0f(0x16e),_0x5f2e0f(0x1cb),_0x5f2e0f(0x1c4)],'dir':_0x5f2e0f(0x1c2)},'children':[_0x412396,{'tag':_0x5f2e0f(0x16f),'attributes':{'class':[_0x5f2e0f(0x1c7)]},'children':[this[_0x5f2e0f(0x1a6)],this[_0x5f2e0f(0x1c9)],this[_0x5f2e0f(0x195)],this[_0x5f2e0f(0x1a1)]]}]});}[_0x672c73(0x192)](){const _0x4d017c=_0x672c73;this[_0x4d017c(0x1a5)]=!this[_0x4d017c(0x1c0)]&&this[_0x4d017c(0x1b2)],this[_0x4d017c(0x1be)]=!this[_0x4d017c(0x1c0)]&&!this[_0x4d017c(0x1b2)]&&!this[_0x4d017c(0x185)],this[_0x4d017c(0x17f)]=!this[_0x4d017c(0x1a5)]&&!!this[_0x4d017c(0x185)];}[_0x672c73(0x178)](){const _0x1869dc=_0x672c73,_0x563bea=new _0xb8d54b(this[_0x1869dc(0x19d)],{'filteredView':this[_0x1869dc(0x176)],'queryView':{'label':_0x230756(this[_0x1869dc(0x19d)],_0x1869dc(0x18c))},'infoView':{'text':{'notFound':{'primary':_0x34d594=>_0x230756(this[_0x1869dc(0x19d)],_0x1869dc(0x189),_0x34d594),'secondary':_0x230756(this[_0x1869dc(0x19d)],_0x1869dc(0x1a2))}}}}),_0x436524=this[_0x1869dc(0x1c5)]();return _0x436524[_0x1869dc(0x184)]({'attributes':{'class':[this[_0x1869dc(0x1b8)]['if'](_0x1869dc(0x185),_0x1869dc(0x1b9),_0x16cb40=>!_0x16cb40)]}}),_0x563bea['on'](_0x1869dc(0x181),()=>{const _0x339e3b=_0x1869dc;_0x563bea[_0x339e3b(0x182)][_0x339e3b(0x1c1)](_0x436524,0x1);}),_0x563bea[_0x1869dc(0x184)]({'attributes':{'class':[this[_0x1869dc(0x1b8)]['if'](_0x1869dc(0x1a5),_0x1869dc(0x1b9),_0x5482f8=>!_0x5482f8)]}}),_0x563bea;}[_0x672c73(0x1ad)](){const _0x1d6ab2=_0x672c73,_0x5139b2=new _0x1fcf0b(this[_0x1d6ab2(0x19d)],_0x478f69[_0x1d6ab2(0x18a)]);return _0x5139b2[_0x1d6ab2(0x184)]({'attributes':{'class':[this[_0x1d6ab2(0x1b8)]['if'](_0x1d6ab2(0x1c0),_0x1d6ab2(0x1b9),_0x190196=>!_0x190196)]}}),_0x5139b2;}[_0x672c73(0x1c5)](){const _0x2c4a98=_0x672c73,_0x5a7f71=new _0x571dd0(this[_0x2c4a98(0x19d)]),_0x21d9be=new _0x2e279d(this[_0x2c4a98(0x19d)]);_0x21d9be[_0x2c4a98(0x197)]({'withText':!0x1,'icon':_0x3c9bed,'class':_0x2c4a98(0x1b4)}),_0x21d9be[_0x2c4a98(0x18f)](_0x2c4a98(0x1cc))['to'](this,_0x2c4a98(0x1b2),_0x33f068=>!!_0x33f068),_0x21d9be['on'](_0x2c4a98(0x172),()=>{const _0x41ba62=_0x2c4a98;this[_0x41ba62(0x185)]='';});const _0x5b4a6b=this[_0x2c4a98(0x1b8)];return _0x5a7f71[_0x2c4a98(0x1ab)]({'tag':_0x2c4a98(0x16f),'attributes':{'class':['ck',_0x2c4a98(0x1ba),_0x2c4a98(0x194)]},'children':[{'tag':'p','children':[{'text':_0x5b4a6b['to'](_0x2c4a98(0x185))}]},_0x21d9be]}),_0x5a7f71;}[_0x672c73(0x174)](){const _0x1b7c52=_0x672c73,_0x2700e0=new _0x2e279d(this[_0x1b7c52(0x19d)]);_0x2700e0[_0x1b7c52(0x197)]({'label':_0x230756(this[_0x1b7c52(0x19d)],_0x1b7c52(0x179)),'withText':!0x0,'icon':_0x559173,'class':_0x1b7c52(0x19e)}),_0x2700e0['on'](_0x1b7c52(0x172),()=>{const _0x5ed4be=_0x1b7c52;this[_0x5ed4be(0x18d)](_0x5ed4be(0x19a));});const _0x70d218=new _0x571dd0(this[_0x1b7c52(0x19d)]);return _0x70d218[_0x1b7c52(0x1ab)]({'tag':_0x1b7c52(0x16f),'attributes':{'class':[_0x1b7c52(0x175),this[_0x1b7c52(0x1b8)]['if'](_0x1b7c52(0x1be),_0x1b7c52(0x1b9),_0x61011e=>!_0x61011e)]},'children':[{'tag':'p','attributes':{'class':[_0x1b7c52(0x17a)]},'children':[_0x230756(this[_0x1b7c52(0x19d)],_0x1b7c52(0x1bf))]},_0x2700e0]}),_0x70d218;}[_0x672c73(0x186)](_0x4a40fa,_0x48c6fa){const _0x588a54=_0x672c73,_0x4cb9df=[];for(const _0x370474 of _0x4a40fa){const _0x503326=new _0x2431f8(_0x48c6fa,_0x370474);_0x503326[_0x588a54(0x1c6)](..._0x3652fd)['to'](this),_0x4cb9df[_0x588a54(0x1b5)](_0x503326);}return _0x4cb9df;}[_0x672c73(0x196)](_0x29909a){const _0x2d5cfd=_0x672c73,_0x3a41b4=this[_0x2d5cfd(0x19d)]||'en',_0x22a04f=[];for(const _0x310c47 of _0x29909a){const _0x226660=this[_0x2d5cfd(0x186)](_0x310c47[_0x2d5cfd(0x1af)],_0x3a41b4);_0x22a04f[_0x2d5cfd(0x1b5)](new _0x5ca701(_0x3a41b4,{'title':_0x310c47[_0x2d5cfd(0x1a7)],'items':_0x226660}));}this[_0x2d5cfd(0x176)][_0x2d5cfd(0x180)]=_0x22a04f,this[_0x2d5cfd(0x176)][_0x2d5cfd(0x1af)][_0x2d5cfd(0x1b3)](),this[_0x2d5cfd(0x176)][_0x2d5cfd(0x1af)][_0x2d5cfd(0x1ca)](_0x22a04f),this[_0x2d5cfd(0x1b2)]=_0x29909a[_0x2d5cfd(0x1b1)](_0x57f71f=>_0x57f71f[_0x2d5cfd(0x1af)][_0x2d5cfd(0x1a4)]>0x0),this[_0x2d5cfd(0x17b)]();}[_0x672c73(0x18b)](_0x2bf2e0){const _0x39d014=_0x672c73;for(const _0x1c4e93 of this[_0x39d014(0x176)][_0x39d014(0x180)]){const _0x41641f=_0x1c4e93[_0x39d014(0x17d)](_0x2bf2e0);if(_0x41641f){if(_0x1c4e93[_0x39d014(0x19f)](_0x41641f),0x0===_0x1c4e93[_0x39d014(0x1bb)][_0x39d014(0x1a4)]){const _0x55eb47=this[_0x39d014(0x176)][_0x39d014(0x180)][_0x39d014(0x171)](_0x1c4e93);-0x1!==_0x55eb47&&(this[_0x39d014(0x176)][_0x39d014(0x180)][_0x39d014(0x1aa)](_0x55eb47,0x1),this[_0x39d014(0x176)][_0x39d014(0x1af)][_0x39d014(0x17c)](_0x1c4e93));}this[_0x39d014(0x1b2)]=this[_0x39d014(0x176)][_0x39d014(0x180)][_0x39d014(0x1a4)]>0x0,this[_0x39d014(0x17b)]();break;}}}[_0x672c73(0x1c3)](_0x4e2dd4,_0x2fe0e5){const _0x51d6a0=_0x672c73;for(const _0x469a3a of this[_0x51d6a0(0x176)][_0x51d6a0(0x180)]){const _0x3dc04d=_0x469a3a[_0x51d6a0(0x17d)](_0x4e2dd4);if(_0x3dc04d){_0x3dc04d[_0x51d6a0(0x1b6)](_0x2fe0e5);break;}}}[_0x672c73(0x1ae)](_0x4020f7,_0x36fb8f,_0x515bd2){const _0xd213d2=_0x672c73;for(const _0x12692a of this[_0xd213d2(0x176)][_0xd213d2(0x180)]){const _0x55882d=_0x12692a[_0xd213d2(0x17d)](_0x4020f7);if(_0x55882d){_0x55882d[_0xd213d2(0x1b7)](_0x36fb8f,_0x515bd2);break;}}}[_0x672c73(0x17b)](){const _0x2e1780=_0x672c73;if(this[_0x2e1780(0x1b2)]){const _0x16e67e=this[_0x2e1780(0x1a1)][_0x2e1780(0x1c8)][_0x2e1780(0x1a0)]?.[_0x2e1780(0x177)]?.[_0x2e1780(0x188)]||'';this[_0x2e1780(0x1a1)][_0x2e1780(0x1a9)](_0x16e67e);}}}
|