@ckeditor/ckeditor5-ai 47.7.2-alpha.0 → 47.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +5 -5
- package/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/awstextadapter.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/showaiassistantcommand.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatballoon.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/aichatballoonview.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/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aichatshortcuts/aichatshortcuts.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
- package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aimodels.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/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/aisuggestioncontentpartheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
- package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
- package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
- package/src/aireviewcore/aireviewcorecontroller.js +1 -1
- package/src/aireviewcore/aireviewcoreediting.js +1 -1
- package/src/aireviewcore/aireviewcoreui.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
- package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
- package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
- package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitranslate/aitranslate.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x210d1b=_0x5e66;(function(_0x47252d,_0x4a218c){var _0x3d401a=_0x5e66,_0x332cc7=_0x47252d();while(!![]){try{var _0x48abf6=parseInt(_0x3d401a(0x198))/0x1+-parseInt(_0x3d401a(0x192))/0x2+parseInt(_0x3d401a(0x17e))/0x3*(-parseInt(_0x3d401a(0x191))/0x4)+parseInt(_0x3d401a(0x18d))/0x5*(parseInt(_0x3d401a(0x19b))/0x6)+parseInt(_0x3d401a(0x19f))/0x7*(-parseInt(_0x3d401a(0x1a3))/0x8)+parseInt(_0x3d401a(0x19c))/0x9+parseInt(_0x3d401a(0x1a0))/0xa;if(_0x48abf6===_0x4a218c)break;else _0x332cc7['push'](_0x332cc7['shift']());}catch(_0x4292a5){_0x332cc7['push'](_0x332cc7['shift']());}}}(_0x4655,0xa7602));import{AIChatFeedItemView as _0x46adb0}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x504176}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x4655(){var _0x5c1d3d=['131964FtydEx','ck-ai-chat__feed__ai-suggestion','isTrackChangesOn','updateContent','children','addMany','markAsDone','updatePartState','setPartActive','applySuggestion','fire','set','toggleSuggestionDisplayMode','areActionsDisabled','getPartView','5odJbbm','dislike','rejectSuggestion','insertSuggestion','60rPIpvb','2412122XuldpW','showChangeInText','mouseLeaveSuggestion','bodyView','availableActions','showDiff','661904EKWpAo','containerView','mouseOverSuggestion','2339130GtbzQs','11126808SGGpGX','bind','updateSources','189MacrmL','9828760oBxNza','like','extendTemplate','213184fDhvUx','options'];_0x4655=function(){return _0x5c1d3d;};return _0x4655();}function _0x5e66(_0x2918e2,_0x1f5087){var _0x4655da=_0x4655();return _0x5e66=function(_0x5e665a,_0x16848e){_0x5e665a=_0x5e665a-0x17d;var _0x58692b=_0x4655da[_0x5e665a];return _0x58692b;},_0x5e66(_0x2918e2,_0x1f5087);}export class AIChatFeedSuggestionItemView extends _0x46adb0{[_0x210d1b(0x199)];constructor(_0x219d01,_0x4955da,_0xbad348){var _0x20d7a0=_0x210d1b;super(_0x4955da),this[_0x20d7a0(0x189)](_0x20d7a0(0x180),!0x1),this[_0x20d7a0(0x199)]=new _0x504176(_0x219d01,{'showDiff':_0x4955da[_0x20d7a0(0x197)],'areActionsDisabled':_0x4955da[_0x20d7a0(0x18b)],'availableActions':_0x4955da[_0x20d7a0(0x196)]},_0xbad348),this[_0x20d7a0(0x199)]['on'](_0x20d7a0(0x18a),(_0x18af0a,_0x5ba589)=>{var _0x992635=_0x20d7a0;this[_0x992635(0x188)](_0x992635(0x18a),{'replyId':this[_0x992635(0x17d)]['id'],'showDiff':_0x5ba589[_0x992635(0x197)]});}),this[_0x20d7a0(0x199)][_0x20d7a0(0x19d)](_0x20d7a0(0x180))['to'](this),this[_0x20d7a0(0x199)]['on'](_0x20d7a0(0x1a1),()=>{var _0x85c0ba=_0x20d7a0;this[_0x85c0ba(0x188)](_0x85c0ba(0x1a1),{'replyId':this[_0x85c0ba(0x17d)]['id']});}),this[_0x20d7a0(0x199)]['on'](_0x20d7a0(0x18e),()=>{var _0x4ab649=_0x20d7a0;this[_0x4ab649(0x188)](_0x4ab649(0x18e),{'replyId':this[_0x4ab649(0x17d)]['id']});}),this[_0x20d7a0(0x199)]['on'](_0x20d7a0(0x193),(_0x521592,{index:_0x3c6a07})=>{var _0x5d6f65=_0x20d7a0;this[_0x5d6f65(0x188)](_0x5d6f65(0x193),{'replyId':this[_0x5d6f65(0x17d)]['id'],'partIndex':_0x3c6a07});}),this[_0x20d7a0(0x199)]['on'](_0x20d7a0(0x187),(_0xdbe021,{index:_0x5ed580}={})=>{var _0x139e35=_0x20d7a0;this[_0x139e35(0x188)](_0x139e35(0x187),{'replyId':this[_0x139e35(0x17d)]['id'],'partIndex':_0x5ed580});}),this[_0x20d7a0(0x199)]['on'](_0x20d7a0(0x190),(_0x284339,{index:_0x386653}={})=>{var _0x3814d6=_0x20d7a0;this[_0x3814d6(0x188)](_0x3814d6(0x190),{'replyId':this[_0x3814d6(0x17d)]['id'],'partIndex':_0x386653});}),this[_0x20d7a0(0x199)]['on'](_0x20d7a0(0x18f),(_0x398a7f,{index:_0x30814f})=>{var _0x38e841=_0x20d7a0;this[_0x38e841(0x188)](_0x38e841(0x18f),{'replyId':this[_0x38e841(0x17d)]['id'],'partIndex':_0x30814f});}),this[_0x20d7a0(0x199)]['on'](_0x20d7a0(0x19a),(_0x3bd50b,{index:_0x2b8712})=>{var _0x24bca6=_0x20d7a0;this[_0x24bca6(0x188)](_0x24bca6(0x19a),{'replyId':this[_0x24bca6(0x17d)]['id'],'partIndex':_0x2b8712});}),this[_0x20d7a0(0x199)]['on'](_0x20d7a0(0x194),(_0x7e71bb,{index:_0x19daf3})=>{var _0x45bc4a=_0x20d7a0;this[_0x45bc4a(0x188)](_0x45bc4a(0x194),{'replyId':this[_0x45bc4a(0x17d)]['id'],'partIndex':_0x19daf3});}),this[_0x20d7a0(0x182)][_0x20d7a0(0x183)]([this[_0x20d7a0(0x199)]]),this[_0x20d7a0(0x1a2)]({'attributes':{'class':[_0x20d7a0(0x17f)]}});}async[_0x210d1b(0x181)](_0x362557){var _0x5611d3=_0x210d1b;await this[_0x5611d3(0x199)][_0x5611d3(0x181)](_0x362557);}[_0x210d1b(0x185)](_0x3b6011,_0x4c38b5){var _0x56c2f3=_0x210d1b;this[_0x56c2f3(0x199)][_0x56c2f3(0x195)][_0x56c2f3(0x185)](_0x3b6011,_0x4c38b5);}[_0x210d1b(0x186)](_0x45de32,_0x54d35a){var _0x14e409=_0x210d1b;!0x1===_0x45de32?this[_0x14e409(0x199)][_0x14e409(0x195)][_0x14e409(0x186)](!0x1):this[_0x14e409(0x199)][_0x14e409(0x195)][_0x14e409(0x186)](_0x45de32,_0x54d35a);}[_0x210d1b(0x19e)](_0x2d1afa){var _0x38ede8=_0x210d1b;this[_0x38ede8(0x199)][_0x38ede8(0x19e)](_0x2d1afa);}[_0x210d1b(0x18c)](_0x4b1e8d){var _0x533c79=_0x210d1b;return this[_0x533c79(0x199)][_0x533c79(0x195)][_0x533c79(0x18c)](_0x4b1e8d);}[_0x210d1b(0x184)](){var _0x58a19e=_0x210d1b;super[_0x58a19e(0x184)](),this[_0x58a19e(0x199)][_0x58a19e(0x184)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x33effd=_0x38d1;function _0x5f51(){var _0x3a7c87=['ck-ai-chat__feed__user-message','innerHTML','16540SGJCno','hidden','57idLXDM','80980DYEuzw','ck-ai-chat__feed__context-chips','440EawHke','contextItems','_createMessageContentView','1942520GcSMRH','extendTemplate','setTemplate','initialContent','markAsDone','add','283514bCgGvQ','1659231pabbgb','element','_contextChipsView','243184bYMYCO','7ewKfEo','_messageContentView','_locale','514685JjOoAN','filter','children','length','render','_createContextChipsView','6VIvFNy','div','ck-ai-chat__feed__message-content','_bodyCollection','options'];_0x5f51=function(){return _0x3a7c87;};return _0x5f51();}(function(_0x545ab3,_0x17b6f6){var _0xea0f04=_0x38d1,_0x41eae4=_0x545ab3();while(!![]){try{var _0x196a1b=-parseInt(_0xea0f04(0x1a1))/0x1+-parseInt(_0xea0f04(0x19d))/0x2+-parseInt(_0xea0f04(0x191))/0x3*(-parseInt(_0xea0f04(0x18f))/0x4)+parseInt(_0xea0f04(0x1a5))/0x5*(parseInt(_0xea0f04(0x1ab))/0x6)+-parseInt(_0xea0f04(0x1a2))/0x7*(-parseInt(_0xea0f04(0x197))/0x8)+-parseInt(_0xea0f04(0x19e))/0x9+parseInt(_0xea0f04(0x192))/0xa*(parseInt(_0xea0f04(0x194))/0xb);if(_0x196a1b===_0x17b6f6)break;else _0x41eae4['push'](_0x41eae4['shift']());}catch(_0x113024){_0x41eae4['push'](_0x41eae4['shift']());}}}(_0x5f51,0x2baf9));import{AIChatFeedItemView as _0x3a1eb5}from'./aichatfeeditemview.js';function _0x38d1(_0x3f5283,_0x2bd650){var _0x5f5183=_0x5f51();return _0x38d1=function(_0x38d12d,_0x244979){_0x38d12d=_0x38d12d-0x18b;var _0x37b685=_0x5f5183[_0x38d12d];return _0x37b685;},_0x38d1(_0x3f5283,_0x2bd650);}import{AIChatFeedContextChipsView as _0x2308bb}from'./aichatfeedcontextchipsview.js';import{View as _0x4b5a74}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x3a1eb5{[_0x33effd(0x1a0)]=null;[_0x33effd(0x1a4)];[_0x33effd(0x18b)];[_0x33effd(0x1a3)];constructor(_0x42a5e5,_0x6772d0,_0x1f2e03){var _0x38f125=_0x33effd;super(_0x6772d0),this[_0x38f125(0x1a4)]=_0x42a5e5,this[_0x38f125(0x18b)]=_0x1f2e03,this[_0x38f125(0x1aa)](),this[_0x38f125(0x196)](),this[_0x38f125(0x198)]({'attributes':{'class':[_0x38f125(0x18d)]}});}[_0x33effd(0x1aa)](){var _0x4d34c1=_0x33effd;this[_0x4d34c1(0x18c)][_0x4d34c1(0x195)]&&this[_0x4d34c1(0x18c)][_0x4d34c1(0x195)][_0x4d34c1(0x1a8)]>0x0&&(this[_0x4d34c1(0x1a0)]=new _0x2308bb(this[_0x4d34c1(0x1a4)],this[_0x4d34c1(0x18c)][_0x4d34c1(0x195)][_0x4d34c1(0x1a6)](_0x9ddc0=>!_0x9ddc0[_0x4d34c1(0x190)]),this[_0x4d34c1(0x18b)]),this[_0x4d34c1(0x1a0)][_0x4d34c1(0x198)]({'attributes':{'class':_0x4d34c1(0x193)}}),this[_0x4d34c1(0x1a7)][_0x4d34c1(0x19c)](this[_0x4d34c1(0x1a0)]));}[_0x33effd(0x196)](){var _0x57b1ab=_0x33effd;this[_0x57b1ab(0x1a3)]=new _0x4b5a74(this[_0x57b1ab(0x1a4)]),this[_0x57b1ab(0x1a3)][_0x57b1ab(0x199)]({'tag':_0x57b1ab(0x1ac),'attributes':{'class':_0x57b1ab(0x1ad)}}),this[_0x57b1ab(0x1a7)][_0x57b1ab(0x19c)](this[_0x57b1ab(0x1a3)]);}[_0x33effd(0x1a9)](){var _0x88450c=_0x33effd;super[_0x88450c(0x1a9)](),this[_0x88450c(0x1a3)][_0x88450c(0x19f)][_0x88450c(0x18e)]=this[_0x88450c(0x18c)][_0x88450c(0x19a)],this[_0x88450c(0x19b)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d19fc=_0xa027;(function(_0x52d153,_0x5111dd){const _0x527f10=_0xa027,_0xb9caea=_0x52d153();while(!![]){try{const _0x2fe11f=parseInt(_0x527f10(0x10c))/0x1+parseInt(_0x527f10(0xfa))/0x2+parseInt(_0x527f10(0xfe))/0x3*(-parseInt(_0x527f10(0x10a))/0x4)+parseInt(_0x527f10(0x10f))/0x5*(-parseInt(_0x527f10(0xfb))/0x6)+parseInt(_0x527f10(0x106))/0x7+-parseInt(_0x527f10(0xfd))/0x8+parseInt(_0x527f10(0xff))/0x9;if(_0x2fe11f===_0x5111dd)break;else _0xb9caea['push'](_0xb9caea['shift']());}catch(_0x5429ca){_0xb9caea['push'](_0xb9caea['shift']());}}}(_0x580a,0x4dc07));function _0xa027(_0x24ab98,_0x40b8f3){const _0x580a64=_0x580a();return _0xa027=function(_0xa027ff,_0x52d988){_0xa027ff=_0xa027ff-0xf9;let _0x437419=_0x580a64[_0xa027ff];return _0x437419;},_0xa027(_0x24ab98,_0x40b8f3);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4b1105}from'../../aicore/utils/eventnames.js';function _0x580a(){const _0x5e4bec=['abortPromptStream','executeCustomItemCallback','toggleWebSearch','startConversation','4146156DoxAgp','addDocumentToContext','resizeTabs','loadSourceResources','1599908QYtCyQ','selectModel','306652quwfYK','removeContextItem','sendUserMessage','31935MVsbUN','addUrlToContext','1131652vaQXuo','558sDWtMT','toggleReasoning','3787760yHXdmI','3jnKdOe','2890107BHmenZ','addFileToContext','addResourceToContext'];_0x580a=function(){return _0x5e4bec;};return _0x580a();}export const AI_CHAT_UI_EVENT_NAMES=[..._0x4b1105,_0x1d19fc(0x105),_0x1d19fc(0x108),_0x1d19fc(0x10e),_0x1d19fc(0x102),_0x1d19fc(0x107),_0x1d19fc(0x100),_0x1d19fc(0xf9),_0x1d19fc(0x103),_0x1d19fc(0x101),_0x1d19fc(0x10d),_0x1d19fc(0x109),_0x1d19fc(0x104),_0x1d19fc(0xfc),_0x1d19fc(0x10b)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x22c638=_0x2817;(function(_0x2a1581,_0x33fad5){var _0x2ec47e=_0x2817,_0xa9d21e=_0x2a1581();while(!![]){try{var _0x6a6767=parseInt(_0x2ec47e(0xa5))/0x1*(parseInt(_0x2ec47e(0xa0))/0x2)+-parseInt(_0x2ec47e(0xa1))/0x3*(-parseInt(_0x2ec47e(0xa8))/0x4)+-parseInt(_0x2ec47e(0xab))/0x5*(-parseInt(_0x2ec47e(0xa3))/0x6)+parseInt(_0x2ec47e(0xa7))/0x7+-parseInt(_0x2ec47e(0x9f))/0x8+parseInt(_0x2ec47e(0xa2))/0x9+-parseInt(_0x2ec47e(0x9e))/0xa;if(_0x6a6767===_0x33fad5)break;else _0xa9d21e['push'](_0xa9d21e['shift']());}catch(_0x4d12c2){_0xa9d21e['push'](_0xa9d21e['shift']());}}}(_0x5d2a,0xd1768));import{ContextPlugin as _0x1c0d75}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x19b72b}from'./aichathistorycontroller.js';function _0x2817(_0x3ee85f,_0x36e682){var _0x5d2a54=_0x5d2a();return _0x2817=function(_0x2817c5,_0x10ad19){_0x2817c5=_0x2817c5-0x9d;var _0xb5d02a=_0x5d2a54[_0x2817c5];return _0xb5d02a;},_0x2817(_0x3ee85f,_0x36e682);}import{AIChatHistoryUI as _0x2b3493}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x1c0d75{static get[_0x22c638(0xa9)](){return[_0x19b72b,_0x2b3493];}static get[_0x22c638(0xaa)](){var _0x44e174=_0x22c638;return _0x44e174(0xa4);}static get[_0x22c638(0xa6)](){return!0x0;}static get[_0x22c638(0x9d)](){return!0x0;}}function _0x5d2a(){var _0x112da9=['2760270HhRSEh','isPremiumPlugin','42883590pjliSt','10024488hhggUY','38qMzJjt','2181027eNVGbd','12974040hlihxt','12gPNodx','AIChatHistory','87068WFzbst','isOfficialPlugin','10306877YfaCph','4myjfSk','requires','pluginName'];_0x5d2a=function(){return _0x112da9;};return _0x5d2a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3e28b8=_0x1c24;function _0x1c24(_0x154457,_0x3003ad){const _0x13c0c=_0x13c0();return _0x1c24=function(_0x1c241a,_0x368235){_0x1c241a=_0x1c241a-0x92;let _0x434867=_0x13c0c[_0x1c241a];return _0x434867;},_0x1c24(_0x154457,_0x3003ad);}(function(_0x5f537a,_0x244933){const _0x58b3bd=_0x1c24,_0x12e678=_0x5f537a();while(!![]){try{const _0x278d65=-parseInt(_0x58b3bd(0xad))/0x1*(parseInt(_0x58b3bd(0x95))/0x2)+-parseInt(_0x58b3bd(0xa8))/0x3+parseInt(_0x58b3bd(0xce))/0x4+-parseInt(_0x58b3bd(0xf6))/0x5+parseInt(_0x58b3bd(0xb8))/0x6*(-parseInt(_0x58b3bd(0xba))/0x7)+parseInt(_0x58b3bd(0x98))/0x8+parseInt(_0x58b3bd(0xb4))/0x9;if(_0x278d65===_0x244933)break;else _0x12e678['push'](_0x12e678['shift']());}catch(_0x5b4036){_0x12e678['push'](_0x12e678['shift']());}}}(_0x13c0,0xe22c7));import{ContextPlugin as _0x6120c7}from'ckeditor5/src/core.js';import{AIConnector as _0x85af2d}from'../aicore/aiconnector.js';import{AIChatController as _0x249ef5}from'../aichat/aichatcontroller.js';import{AITabs as _0x480efc}from'../aitabs/aitabs.js';function _0x13c0(){const _0x51ccb1=['updateItemPinned','itemId','getItem','_clearItemLoading','remove','plugins','removeHistoryItem','AI_CHAT_HISTORY_CATEGORY_TODAY','view','activateTab','_generateErrorMessage','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','_setIsMaximized','rename','AI_CHAT_UNTITLED_CONVERSATION','itemRemoved','itemUpdated','_handleSelectConversation','loadConversation','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','3514690HNhhwl','resizeTabs','isOfficialPlugin','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','8714EktLhG','removeConversation','pin','4508992muvrlA','_handleHistoryErrorUI','items','_setItemLoading','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','setConversationPinned','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','AIChatHistoryController','error','resize','AI_CHAT_HISTORY_ERROR_GENERIC','getMonth','toLocaleDateString','locale','setLoadingSkeleton','_showConversationHistory','3686127AaPmjn','change:activeConversation','setDate','handleRemovedConversation','editConversationTitle','126VAkCvM','init','requires','activeConversation','getItems','createdAt','updateItemLoadingState','35317188AMoiIn','isPremiumPlugin','get','setIsMaximized','6618wvciUI','length','10997fdYqHP','chat','updateItems','listenTo','updateItemTitle','showError','_aiChatController','_aiConnector','title','AI_CHAT_HISTORY_UNPIN_ACTION','openChat','getFullYear','map','activateTab:history','_updateHistoryItemsUI','updates','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','pluginName','history','resizedTabs','2608372aNZBts','removeItem','getDate','selectConversation','AI_CHAT_HISTORY_CATEGORY_LATER','pinned','loadItems','context','_handleTogglePin','_handleEditTitle','AI_CHAT_HISTORY_CATEGORY_PINNED','_aiChatHistoryUi','operation','push','AI_CHAT_HISTORY_PIN_ACTION','getGroupId','unpin','_handleRemove','_getCategorizedItems','itemsLoaded'];_0x13c0=function(){return _0x51ccb1;};return _0x13c0();}import{AIChatHistoryUI as _0x2c16ae}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x1b0ebc}from'./model/aichathistoryconversations.js';import{getTranslation as _0xfe543e}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x6120c7{[_0x3e28b8(0xc1)];[_0x3e28b8(0xd9)];[_0x3e28b8(0xc0)];static get[_0x3e28b8(0xaf)](){return[_0x85af2d,_0x249ef5,_0x2c16ae,_0x480efc];}static get[_0x3e28b8(0xcb)](){const _0x40a721=_0x3e28b8;return _0x40a721(0x9f);}static get[_0x3e28b8(0x93)](){return!0x0;}static get[_0x3e28b8(0xb5)](){return!0x0;}[_0x3e28b8(0xae)](){const _0x40128e=_0x3e28b8;this[_0x40128e(0xc1)]=this[_0x40128e(0xd5)][_0x40128e(0xe7)][_0x40128e(0xb6)](_0x85af2d),this[_0x40128e(0xd9)]=this[_0x40128e(0xd5)][_0x40128e(0xe7)][_0x40128e(0xb6)](_0x2c16ae),this[_0x40128e(0xc0)]=this[_0x40128e(0xd5)][_0x40128e(0xe7)][_0x40128e(0xb6)](_0x249ef5);const _0x574bd1=this[_0x40128e(0xd5)][_0x40128e(0xe7)][_0x40128e(0xb6)](_0x480efc);try{const _0x8a25a8=this[_0x40128e(0xc0)][_0x40128e(0xdd)]();this[_0x40128e(0xcc)]=new _0x1b0ebc({'connector':this[_0x40128e(0xc1)],'group':_0x8a25a8}),this[_0x40128e(0xbd)](this[_0x40128e(0xd9)],_0x40128e(0x96),(_0x5ae338,_0x493148)=>{const _0xbaf49a=_0x40128e;this[_0xbaf49a(0x9b)](_0x493148['id'],_0xbaf49a(0xe6)),this[_0xbaf49a(0xdf)](_0x493148['id']);}),this[_0x40128e(0xbd)](this[_0x40128e(0xd9)],_0x40128e(0xac),(_0x42db6b,_0x11ee1a)=>{const _0x6c8dc1=_0x40128e;this[_0x6c8dc1(0x9b)](_0x11ee1a['id'],_0x6c8dc1(0xef)),this[_0x6c8dc1(0xd7)](_0x11ee1a['id'],_0x11ee1a[_0x6c8dc1(0xc2)]);}),this[_0x40128e(0xbd)](this[_0x40128e(0xcc)],_0x40128e(0xf2),(_0x564f00,_0x1e036b)=>{const _0xe2bf35=_0x40128e;void 0x0!==_0x1e036b[_0xe2bf35(0xc9)][_0xe2bf35(0xc2)]&&this[_0xe2bf35(0xd9)][_0xe2bf35(0xbe)](_0x1e036b[_0xe2bf35(0xe3)],_0x1e036b[_0xe2bf35(0xc9)][_0xe2bf35(0xc2)]),void 0x0!==_0x1e036b[_0xe2bf35(0xc9)][_0xe2bf35(0xd3)]&&this[_0xe2bf35(0xc8)](),this[_0xe2bf35(0xe5)](_0x1e036b[_0xe2bf35(0xe3)]);}),this[_0x40128e(0xbd)](this[_0x40128e(0xcc)],_0x40128e(0xf1),(_0x184d0f,_0x31383a)=>{const _0x4320de=_0x40128e;this[_0x4320de(0xc0)][_0x4320de(0xab)](_0x31383a[_0x4320de(0xe3)]),this[_0x4320de(0xd9)][_0x4320de(0xe8)](_0x31383a[_0x4320de(0xe3)]),this[_0x4320de(0xe5)](_0x31383a[_0x4320de(0xe3)]);}),this[_0x40128e(0xbd)](this[_0x40128e(0xcc)],_0x40128e(0xe1),()=>{const _0x1494eb=_0x40128e;this[_0x1494eb(0xc8)]();}),this[_0x40128e(0xbd)](this[_0x40128e(0xcc)],_0x40128e(0xa0),(_0x210060,_0x744628)=>{const _0x50f5a0=_0x40128e;this[_0x50f5a0(0x99)](_0x744628[_0x50f5a0(0xa0)],_0x744628[_0x50f5a0(0xda)],_0x744628[_0x50f5a0(0xe3)]);}),this[_0x40128e(0xbd)](this[_0x40128e(0xd9)],_0x40128e(0xd1),(_0x2bed7e,_0xfd4a1c)=>{const _0x15ee3c=_0x40128e;this[_0x15ee3c(0xf3)](_0xfd4a1c['id']);}),this[_0x40128e(0xbd)](this[_0x40128e(0xd9)],_0x40128e(0x9d),(_0x45cd52,_0x104b28)=>{const _0x17c3c9=_0x40128e,_0x102744=_0x104b28[_0x17c3c9(0xd3)]?_0x17c3c9(0x97):_0x17c3c9(0xde);this[_0x17c3c9(0x9b)](_0x104b28['id'],_0x102744),this[_0x17c3c9(0xd6)](_0x104b28['id'],_0x104b28[_0x17c3c9(0xd3)]);}),this[_0x40128e(0xbd)](this[_0x40128e(0xd9)],_0x40128e(0xc4),()=>{const _0x54457c=_0x40128e;_0x574bd1[_0x54457c(0xea)][_0x54457c(0xeb)](_0x54457c(0xbb));}),this[_0x40128e(0xbd)](this[_0x40128e(0xc0)],_0x40128e(0xa9),()=>{const _0x3fb885=_0x40128e;this[_0x3fb885(0xc8)]();}),_0x574bd1[_0x40128e(0xea)]['on'](_0x40128e(0xc7),()=>{const _0x6b9148=_0x40128e;this[_0x6b9148(0xa7)]();}),this[_0x40128e(0xbd)](_0x574bd1,_0x40128e(0xcd),(_0x6a9aed,_0x1bf90b)=>{const _0x14c579=_0x40128e;this[_0x14c579(0xee)](_0x1bf90b);}),this[_0x40128e(0xbd)](this[_0x40128e(0xd9)],_0x40128e(0x92),()=>{const _0x59209b=_0x40128e;_0x574bd1[_0x59209b(0xa1)]();});}catch(_0x214ec4){this[_0x40128e(0x99)](_0x214ec4,_0x40128e(0xae));}}async[_0x3e28b8(0xd7)](_0x486b4e,_0x4a245a){const _0x2d6308=_0x3e28b8;await this[_0x2d6308(0xcc)][_0x2d6308(0xbe)](_0x486b4e,_0x4a245a);}async[_0x3e28b8(0xd6)](_0x3a515a,_0x300f14){const _0x20d512=_0x3e28b8;await this[_0x20d512(0xcc)][_0x20d512(0xe2)](_0x3a515a,_0x300f14);}async[_0x3e28b8(0xdf)](_0x37af23){const _0x553789=_0x3e28b8;await this[_0x553789(0xcc)][_0x553789(0xcf)](_0x37af23);}async[_0x3e28b8(0xf3)](_0x1458f5){const _0x4e058c=_0x3e28b8;await this[_0x4e058c(0xc0)][_0x4e058c(0xf4)](_0x1458f5);}async[_0x3e28b8(0xa7)](){const _0x47c24e=_0x3e28b8;this[_0x47c24e(0xd9)][_0x47c24e(0xbf)](''),this[_0x47c24e(0xd9)][_0x47c24e(0xa6)](!0x0),await this[_0x47c24e(0xcc)][_0x47c24e(0xae)](),this[_0x47c24e(0xd9)][_0x47c24e(0xa6)](!0x1);}[_0x3e28b8(0xc8)](){const _0x4fde86=_0x3e28b8,_0x2c000f=this[_0x4fde86(0xc0)][_0x4fde86(0xb0)]?.['id'],_0x2344cf=this[_0x4fde86(0xe0)]()[_0x4fde86(0xc6)](_0x30c635=>({'title':_0x30c635[_0x4fde86(0xc2)],'items':_0x30c635[_0x4fde86(0x9a)][_0x4fde86(0xc6)](_0x1ed7aa=>({'id':_0x1ed7aa['id'],'title':_0x1ed7aa[_0x4fde86(0xc2)]||_0xfe543e(this[_0x4fde86(0xd5)][_0x4fde86(0xa5)],_0x4fde86(0xf0)),'createdAt':new Date(_0x1ed7aa[_0x4fde86(0xb2)])[_0x4fde86(0xa4)](),'active':_0x1ed7aa['id']===_0x2c000f,'pinned':_0x1ed7aa[_0x4fde86(0xd3)]}))}));this[_0x4fde86(0xd9)][_0x4fde86(0xbc)](_0x2344cf);}[_0x3e28b8(0x9b)](_0x1bfffb,_0x28b411){const _0x141011=_0x3e28b8;this[_0x141011(0xd9)][_0x141011(0xb3)](_0x1bfffb,_0x28b411,!0x0);}[_0x3e28b8(0xe5)](_0x29b965){const _0x51c648=_0x3e28b8;this[_0x51c648(0xd9)][_0x51c648(0xb3)](_0x29b965,null,!0x1);}[_0x3e28b8(0x99)](_0x4cc761,_0x5c82f9,_0x40f31){const _0x53ea24=_0x3e28b8,_0x2d1d31=this[_0x53ea24(0xec)](_0x5c82f9,_0x40f31);this[_0x53ea24(0xd9)][_0x53ea24(0xbf)](_0x2d1d31),_0x40f31&&this[_0x53ea24(0xe5)](_0x40f31),this[_0x53ea24(0xd9)][_0x53ea24(0xa6)](!0x1);}[_0x3e28b8(0xec)](_0x5d58e8,_0x49f2d3){const _0x5c1b90=_0x3e28b8,_0x15d5f6=_0x49f2d3?this[_0x5c1b90(0xcc)][_0x5c1b90(0xe4)](_0x49f2d3):null,_0x124661=_0x15d5f6?.[_0x5c1b90(0xc2)]||_0xfe543e(this[_0x5c1b90(0xd5)][_0x5c1b90(0xa5)],_0x5c1b90(0xf0));switch(_0x5d58e8){case _0x5c1b90(0xbe):return _0xfe543e(this[_0x5c1b90(0xd5)][_0x5c1b90(0xa5)],_0x5c1b90(0xed),_0x124661);case _0x5c1b90(0xe2):{const _0x34d674=_0xfe543e(this[_0x5c1b90(0xd5)][_0x5c1b90(0xa5)],_0x15d5f6?.[_0x5c1b90(0xd3)]?_0x5c1b90(0xc3):_0x5c1b90(0xdc));return _0xfe543e(this[_0x5c1b90(0xd5)][_0x5c1b90(0xa5)],_0x5c1b90(0xca),[_0x34d674,_0x124661]);}case _0x5c1b90(0xcf):return _0xfe543e(this[_0x5c1b90(0xd5)][_0x5c1b90(0xa5)],_0x5c1b90(0x94),_0x124661);case _0x5c1b90(0xae):case _0x5c1b90(0xd4):return _0xfe543e(this[_0x5c1b90(0xd5)][_0x5c1b90(0xa5)],_0x5c1b90(0x9e));default:return _0xfe543e(this[_0x5c1b90(0xd5)][_0x5c1b90(0xa5)],_0x5c1b90(0xa2));}}[_0x3e28b8(0xe0)](){const _0x2652b1=_0x3e28b8,_0x5c7a43=new Date(),_0x3e91de=new Date(_0x5c7a43[_0x2652b1(0xc5)](),_0x5c7a43[_0x2652b1(0xa3)](),_0x5c7a43[_0x2652b1(0xd0)]()),_0x4ce83a=new Date(_0x3e91de);_0x4ce83a[_0x2652b1(0xaa)](_0x4ce83a[_0x2652b1(0xd0)]()-0x1);const _0x10659f=new Date(_0x3e91de);_0x10659f[_0x2652b1(0xaa)](_0x10659f[_0x2652b1(0xd0)]()-0xe);const _0x1cf041=this[_0x2652b1(0xcc)][_0x2652b1(0xb1)]({'pinned':!0x0}),_0x23684d=this[_0x2652b1(0xcc)][_0x2652b1(0xb1)]({'from':_0x3e91de,'to':_0x3e91de}),_0x2b1b78=this[_0x2652b1(0xcc)][_0x2652b1(0xb1)]({'from':_0x4ce83a,'to':_0x4ce83a}),_0x57300b=this[_0x2652b1(0xcc)][_0x2652b1(0xb1)]({'from':_0x10659f,'to':_0x4ce83a}),_0x18892b=this[_0x2652b1(0xcc)][_0x2652b1(0xb1)]({'to':_0x10659f}),_0x4fd016=[];return _0x1cf041[_0x2652b1(0xb9)]>0x0&&_0x4fd016[_0x2652b1(0xdb)]({'title':_0xfe543e(this[_0x2652b1(0xd5)][_0x2652b1(0xa5)],_0x2652b1(0xd8)),'items':_0x1cf041}),_0x23684d[_0x2652b1(0xb9)]>0x0&&_0x4fd016[_0x2652b1(0xdb)]({'title':_0xfe543e(this[_0x2652b1(0xd5)][_0x2652b1(0xa5)],_0x2652b1(0xe9)),'items':_0x23684d}),_0x2b1b78[_0x2652b1(0xb9)]>0x0&&_0x4fd016[_0x2652b1(0xdb)]({'title':_0xfe543e(this[_0x2652b1(0xd5)][_0x2652b1(0xa5)],_0x2652b1(0xf5)),'items':_0x2b1b78}),_0x57300b[_0x2652b1(0xb9)]>0x0&&_0x4fd016[_0x2652b1(0xdb)]({'title':_0xfe543e(this[_0x2652b1(0xd5)][_0x2652b1(0xa5)],_0x2652b1(0x9c)),'items':_0x57300b}),_0x18892b[_0x2652b1(0xb9)]>0x0&&_0x4fd016[_0x2652b1(0xdb)]({'title':_0xfe543e(this[_0x2652b1(0xd5)][_0x2652b1(0xa5)],_0x2652b1(0xd2)),'items':_0x18892b}),_0x4fd016;}[_0x3e28b8(0xee)](_0x28cf94){const _0x3bbe4a=_0x3e28b8;this[_0x3bbe4a(0xd9)][_0x3bbe4a(0xb7)](_0x28cf94);}}
|
|
23
|
+
const _0x43ccf3=_0x4068;(function(_0x3a4669,_0xfe19ed){const _0x133e72=_0x4068,_0x1a18c2=_0x3a4669();while(!![]){try{const _0x464b23=parseInt(_0x133e72(0x126))/0x1+parseInt(_0x133e72(0x105))/0x2+parseInt(_0x133e72(0xf0))/0x3*(parseInt(_0x133e72(0xf1))/0x4)+parseInt(_0x133e72(0x134))/0x5+parseInt(_0x133e72(0x117))/0x6+parseInt(_0x133e72(0x148))/0x7*(-parseInt(_0x133e72(0x14e))/0x8)+parseInt(_0x133e72(0x138))/0x9*(-parseInt(_0x133e72(0x14f))/0xa);if(_0x464b23===_0xfe19ed)break;else _0x1a18c2['push'](_0x1a18c2['shift']());}catch(_0x3385ef){_0x1a18c2['push'](_0x1a18c2['shift']());}}}(_0x5adf,0x4631b));import{ContextPlugin as _0x22e6fe}from'ckeditor5/src/core.js';import{AIConnector as _0x3a6b7d}from'../aicore/aiconnector.js';function _0x5adf(){const _0x7c70a=['removeConversation','setConversationPinned','getItems','getFullYear','_setIsMaximized','_handleRemove','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','getMonth','119oqKITp','remove','items','operation','title','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','42424mmlLvi','10rAqwvf','isOfficialPlugin','AI_CHAT_HISTORY_CATEGORY_PINNED','editConversationTitle','_handleSelectConversation','AI_CHAT_HISTORY_PIN_ACTION','createdAt','18YUSxwy','242036TzeWiB','change:activeConversation','pinned','_updateHistoryItemsUI','chat','updates','setLoadingSkeleton','removeItem','_setItemLoading','plugins','isPremiumPlugin','_handleEditTitle','AI_CHAT_HISTORY_CATEGORY_TODAY','setDate','activateTab','rename','setIsMaximized','context','showError','length','321774PXYQUZ','_aiChatHistoryUi','activateTab:history','resizedTabs','getGroupId','updateItemLoadingState','activeConversation','itemsLoaded','AI_CHAT_HISTORY_UNPIN_ACTION','pin','updateItemTitle','_getCategorizedItems','requires','view','itemId','getItem','unpin','removeHistoryItem','1911600AxGJRB','updateItems','pluginName','init','_clearItemLoading','_showConversationHistory','selectConversation','push','AI_CHAT_HISTORY_CATEGORY_LATER','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','_aiConnector','locale','openChat','AIChatHistoryController','294088OnPxfa','itemRemoved','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','loadItems','_generateErrorMessage','error','AI_CHAT_UNTITLED_CONVERSATION','handleRemovedConversation','resize','toLocaleDateString','resizeTabs','history','get','itemUpdated','2294325IixfhR','map','listenTo','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','10960452wsahBO','_aiChatController','loadConversation','_handleTogglePin','updateItemPinned','getDate','_handleHistoryErrorUI','AI_CHAT_HISTORY_ERROR_GENERIC'];_0x5adf=function(){return _0x7c70a;};return _0x5adf();}import{AIChatController as _0x3555e6}from'../aichat/aichatcontroller.js';import{AITabs as _0x365a44}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x23f0d1}from'./aichathistoryui.js';function _0x4068(_0x1f0ee0,_0x4cb9e4){const _0x5adf29=_0x5adf();return _0x4068=function(_0x40681f,_0x3581d4){_0x40681f=_0x40681f-0xeb;let _0xca231=_0x5adf29[_0x40681f];return _0xca231;},_0x4068(_0x1f0ee0,_0x4cb9e4);}import{AIChatHistoryConversations as _0x48ce2b}from'./model/aichathistoryconversations.js';import{getTranslation as _0x25fd60}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x22e6fe{[_0x43ccf3(0x122)];[_0x43ccf3(0x106)];[_0x43ccf3(0x139)];static get[_0x43ccf3(0x111)](){return[_0x3a6b7d,_0x3555e6,_0x23f0d1,_0x365a44];}static get[_0x43ccf3(0x119)](){const _0x27e4e8=_0x43ccf3;return _0x27e4e8(0x125);}static get[_0x43ccf3(0x150)](){return!0x0;}static get[_0x43ccf3(0xfb)](){return!0x0;}[_0x43ccf3(0x11a)](){const _0x35937f=_0x43ccf3;this[_0x35937f(0x122)]=this[_0x35937f(0x102)][_0x35937f(0xfa)][_0x35937f(0x132)](_0x3a6b7d),this[_0x35937f(0x106)]=this[_0x35937f(0x102)][_0x35937f(0xfa)][_0x35937f(0x132)](_0x23f0d1),this[_0x35937f(0x139)]=this[_0x35937f(0x102)][_0x35937f(0xfa)][_0x35937f(0x132)](_0x3555e6);const _0x1dd485=this[_0x35937f(0x102)][_0x35937f(0xfa)][_0x35937f(0x132)](_0x365a44);try{const _0x4f79eb=this[_0x35937f(0x139)][_0x35937f(0x109)]();this[_0x35937f(0x131)]=new _0x48ce2b({'connector':this[_0x35937f(0x122)],'group':_0x4f79eb}),this[_0x35937f(0x136)](this[_0x35937f(0x106)],_0x35937f(0x140),(_0x585ae5,_0x458702)=>{const _0x180769=_0x35937f;this[_0x180769(0xf9)](_0x458702['id'],_0x180769(0x149)),this[_0x180769(0x145)](_0x458702['id']);}),this[_0x35937f(0x136)](this[_0x35937f(0x106)],_0x35937f(0xec),(_0x49dece,_0x557465)=>{const _0x2cc59e=_0x35937f;this[_0x2cc59e(0xf9)](_0x557465['id'],_0x2cc59e(0x100)),this[_0x2cc59e(0xfc)](_0x557465['id'],_0x557465[_0x2cc59e(0x14c)]);}),this[_0x35937f(0x136)](this[_0x35937f(0x131)],_0x35937f(0x133),(_0x323497,_0x56f25b)=>{const _0xde655e=_0x35937f;void 0x0!==_0x56f25b[_0xde655e(0xf6)][_0xde655e(0x14c)]&&this[_0xde655e(0x106)][_0xde655e(0x10f)](_0x56f25b[_0xde655e(0x113)],_0x56f25b[_0xde655e(0xf6)][_0xde655e(0x14c)]),void 0x0!==_0x56f25b[_0xde655e(0xf6)][_0xde655e(0xf3)]&&this[_0xde655e(0xf4)](),this[_0xde655e(0x11b)](_0x56f25b[_0xde655e(0x113)]);}),this[_0x35937f(0x136)](this[_0x35937f(0x131)],_0x35937f(0x127),(_0x7f2944,_0x124241)=>{const _0x3142d4=_0x35937f;this[_0x3142d4(0x139)][_0x3142d4(0x12d)](_0x124241[_0x3142d4(0x113)]),this[_0x3142d4(0x106)][_0x3142d4(0x116)](_0x124241[_0x3142d4(0x113)]),this[_0x3142d4(0x11b)](_0x124241[_0x3142d4(0x113)]);}),this[_0x35937f(0x136)](this[_0x35937f(0x131)],_0x35937f(0x10c),()=>{const _0x1fd783=_0x35937f;this[_0x1fd783(0xf4)]();}),this[_0x35937f(0x136)](this[_0x35937f(0x131)],_0x35937f(0x12b),(_0x46fd98,_0x3417d5)=>{const _0x42535c=_0x35937f;this[_0x42535c(0x13e)](_0x3417d5[_0x42535c(0x12b)],_0x3417d5[_0x42535c(0x14b)],_0x3417d5[_0x42535c(0x113)]);}),this[_0x35937f(0x136)](this[_0x35937f(0x106)],_0x35937f(0x11d),(_0x4e35d1,_0x53b17d)=>{const _0x162de7=_0x35937f;this[_0x162de7(0xed)](_0x53b17d['id']);}),this[_0x35937f(0x136)](this[_0x35937f(0x106)],_0x35937f(0x141),(_0x4ea95a,_0x421263)=>{const _0x58376b=_0x35937f,_0x5bc5be=_0x421263[_0x58376b(0xf3)]?_0x58376b(0x10e):_0x58376b(0x115);this[_0x58376b(0xf9)](_0x421263['id'],_0x5bc5be),this[_0x58376b(0x13b)](_0x421263['id'],_0x421263[_0x58376b(0xf3)]);}),this[_0x35937f(0x136)](this[_0x35937f(0x106)],_0x35937f(0x124),()=>{const _0x10b80d=_0x35937f;_0x1dd485[_0x10b80d(0x112)][_0x10b80d(0xff)](_0x10b80d(0xf5));}),this[_0x35937f(0x136)](this[_0x35937f(0x139)],_0x35937f(0xf2),()=>{const _0x265a2b=_0x35937f;this[_0x265a2b(0xf4)]();}),_0x1dd485[_0x35937f(0x112)]['on'](_0x35937f(0x107),()=>{const _0x4e0ef1=_0x35937f;this[_0x4e0ef1(0x11c)]();}),this[_0x35937f(0x136)](_0x1dd485,_0x35937f(0x108),(_0x9b221b,_0x36accd)=>{const _0xda6f45=_0x35937f;this[_0xda6f45(0x144)](_0x36accd);}),this[_0x35937f(0x136)](this[_0x35937f(0x106)],_0x35937f(0x130),()=>{const _0x5d02c0=_0x35937f;_0x1dd485[_0x5d02c0(0x12e)]();});}catch(_0x29f7ca){this[_0x35937f(0x13e)](_0x29f7ca,_0x35937f(0x11a));}}async[_0x43ccf3(0xfc)](_0x184eb7,_0x2a98ed){const _0x1f1da5=_0x43ccf3;await this[_0x1f1da5(0x131)][_0x1f1da5(0x10f)](_0x184eb7,_0x2a98ed);}async[_0x43ccf3(0x13b)](_0x479cd5,_0x4c120e){const _0x52eed0=_0x43ccf3;await this[_0x52eed0(0x131)][_0x52eed0(0x13c)](_0x479cd5,_0x4c120e);}async[_0x43ccf3(0x145)](_0x23a620){const _0x1a7a80=_0x43ccf3;await this[_0x1a7a80(0x131)][_0x1a7a80(0xf8)](_0x23a620);}async[_0x43ccf3(0xed)](_0x6d13af){const _0x41736a=_0x43ccf3;await this[_0x41736a(0x139)][_0x41736a(0x13a)](_0x6d13af);}async[_0x43ccf3(0x11c)](){const _0x75bd35=_0x43ccf3;this[_0x75bd35(0x106)][_0x75bd35(0x103)](''),this[_0x75bd35(0x106)][_0x75bd35(0xf7)](!0x0),await this[_0x75bd35(0x131)][_0x75bd35(0x11a)](),this[_0x75bd35(0x106)][_0x75bd35(0xf7)](!0x1);}[_0x43ccf3(0xf4)](){const _0x2105fb=_0x43ccf3,_0x390cd0=this[_0x2105fb(0x139)][_0x2105fb(0x10b)]?.['id'],_0x5629c8=this[_0x2105fb(0x110)]()[_0x2105fb(0x135)](_0x50f64c=>({'title':_0x50f64c[_0x2105fb(0x14c)],'items':_0x50f64c[_0x2105fb(0x14a)][_0x2105fb(0x135)](_0x30ec7a=>({'id':_0x30ec7a['id'],'title':_0x30ec7a[_0x2105fb(0x14c)]||_0x25fd60(this[_0x2105fb(0x102)][_0x2105fb(0x123)],_0x2105fb(0x12c)),'createdAt':new Date(_0x30ec7a[_0x2105fb(0xef)])[_0x2105fb(0x12f)](),'active':_0x30ec7a['id']===_0x390cd0,'pinned':_0x30ec7a[_0x2105fb(0xf3)]}))}));this[_0x2105fb(0x106)][_0x2105fb(0x118)](_0x5629c8);}[_0x43ccf3(0xf9)](_0x2712e1,_0x17e137){const _0x17baf4=_0x43ccf3;this[_0x17baf4(0x106)][_0x17baf4(0x10a)](_0x2712e1,_0x17e137,!0x0);}[_0x43ccf3(0x11b)](_0x4fd51b){const _0xfa8a77=_0x43ccf3;this[_0xfa8a77(0x106)][_0xfa8a77(0x10a)](_0x4fd51b,null,!0x1);}[_0x43ccf3(0x13e)](_0x479d1f,_0x5e3bdf,_0x119e07){const _0x4662d7=_0x43ccf3,_0x3c39dc=this[_0x4662d7(0x12a)](_0x5e3bdf,_0x119e07);this[_0x4662d7(0x106)][_0x4662d7(0x103)](_0x3c39dc),_0x119e07&&this[_0x4662d7(0x11b)](_0x119e07),this[_0x4662d7(0x106)][_0x4662d7(0xf7)](!0x1);}[_0x43ccf3(0x12a)](_0x34c460,_0x32f220){const _0x2e58ce=_0x43ccf3,_0x1589bb=_0x32f220?this[_0x2e58ce(0x131)][_0x2e58ce(0x114)](_0x32f220):null,_0x590f03=_0x1589bb?.[_0x2e58ce(0x14c)]||_0x25fd60(this[_0x2e58ce(0x102)][_0x2e58ce(0x123)],_0x2e58ce(0x12c));switch(_0x34c460){case _0x2e58ce(0x10f):return _0x25fd60(this[_0x2e58ce(0x102)][_0x2e58ce(0x123)],_0x2e58ce(0x121),_0x590f03);case _0x2e58ce(0x13c):{const _0xbc6cd9=_0x25fd60(this[_0x2e58ce(0x102)][_0x2e58ce(0x123)],_0x1589bb?.[_0x2e58ce(0xf3)]?_0x2e58ce(0x10d):_0x2e58ce(0xee));return _0x25fd60(this[_0x2e58ce(0x102)][_0x2e58ce(0x123)],_0x2e58ce(0x146),[_0xbc6cd9,_0x590f03]);}case _0x2e58ce(0xf8):return _0x25fd60(this[_0x2e58ce(0x102)][_0x2e58ce(0x123)],_0x2e58ce(0x137),_0x590f03);case _0x2e58ce(0x11a):case _0x2e58ce(0x129):return _0x25fd60(this[_0x2e58ce(0x102)][_0x2e58ce(0x123)],_0x2e58ce(0x14d));default:return _0x25fd60(this[_0x2e58ce(0x102)][_0x2e58ce(0x123)],_0x2e58ce(0x13f));}}[_0x43ccf3(0x110)](){const _0x4615b8=_0x43ccf3,_0x363aa4=new Date(),_0x5b4718=new Date(_0x363aa4[_0x4615b8(0x143)](),_0x363aa4[_0x4615b8(0x147)](),_0x363aa4[_0x4615b8(0x13d)]()),_0xbf55b8=new Date(_0x5b4718);_0xbf55b8[_0x4615b8(0xfe)](_0xbf55b8[_0x4615b8(0x13d)]()-0x1);const _0x1d0fc3=new Date(_0x5b4718);_0x1d0fc3[_0x4615b8(0xfe)](_0x1d0fc3[_0x4615b8(0x13d)]()-0xe);const _0x5c4335=this[_0x4615b8(0x131)][_0x4615b8(0x142)]({'pinned':!0x0}),_0x3eeebf=this[_0x4615b8(0x131)][_0x4615b8(0x142)]({'from':_0x5b4718,'to':_0x5b4718}),_0x115f8b=this[_0x4615b8(0x131)][_0x4615b8(0x142)]({'from':_0xbf55b8,'to':_0xbf55b8}),_0x46e89c=this[_0x4615b8(0x131)][_0x4615b8(0x142)]({'from':_0x1d0fc3,'to':_0xbf55b8}),_0x2a1b01=this[_0x4615b8(0x131)][_0x4615b8(0x142)]({'to':_0x1d0fc3}),_0x45bfad=[];return _0x5c4335[_0x4615b8(0x104)]>0x0&&_0x45bfad[_0x4615b8(0x11e)]({'title':_0x25fd60(this[_0x4615b8(0x102)][_0x4615b8(0x123)],_0x4615b8(0xeb)),'items':_0x5c4335}),_0x3eeebf[_0x4615b8(0x104)]>0x0&&_0x45bfad[_0x4615b8(0x11e)]({'title':_0x25fd60(this[_0x4615b8(0x102)][_0x4615b8(0x123)],_0x4615b8(0xfd)),'items':_0x3eeebf}),_0x115f8b[_0x4615b8(0x104)]>0x0&&_0x45bfad[_0x4615b8(0x11e)]({'title':_0x25fd60(this[_0x4615b8(0x102)][_0x4615b8(0x123)],_0x4615b8(0x128)),'items':_0x115f8b}),_0x46e89c[_0x4615b8(0x104)]>0x0&&_0x45bfad[_0x4615b8(0x11e)]({'title':_0x25fd60(this[_0x4615b8(0x102)][_0x4615b8(0x123)],_0x4615b8(0x120)),'items':_0x46e89c}),_0x2a1b01[_0x4615b8(0x104)]>0x0&&_0x45bfad[_0x4615b8(0x11e)]({'title':_0x25fd60(this[_0x4615b8(0x102)][_0x4615b8(0x123)],_0x4615b8(0x11f)),'items':_0x2a1b01}),_0x45bfad;}[_0x43ccf3(0x144)](_0x18eab1){const _0xb08ba7=_0x43ccf3;this[_0xb08ba7(0x106)][_0xb08ba7(0x101)](_0x18eab1);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x334673=_0x56f8;(function(_0x3f9d32,_0x192089){const _0x398ecc=_0x56f8,_0x35a91e=_0x3f9d32();while(!![]){try{const _0x2753a7=-parseInt(_0x398ecc(0x174))/0x1+parseInt(_0x398ecc(0x17e))/0x2*(parseInt(_0x398ecc(0x17a))/0x3)+-parseInt(_0x398ecc(0x186))/0x4+parseInt(_0x398ecc(0x190))/0x5*(parseInt(_0x398ecc(0x192))/0x6)+-parseInt(_0x398ecc(0x176))/0x7+parseInt(_0x398ecc(0x169))/0x8+parseInt(_0x398ecc(0x184))/0x9;if(_0x2753a7===_0x192089)break;else _0x35a91e['push'](_0x35a91e['shift']());}catch(_0x2b6785){_0x35a91e['push'](_0x35a91e['shift']());}}}(_0x5c89,0xa91f3));import{ContextPlugin as _0x1d1a08}from'ckeditor5/src/core.js';import{AITabs as _0x39073c}from'../aitabs/aitabs.js';function _0x5c89(){const _0x457b86=['history','3247266Whepce','isPremiumPlugin','openChat','plugins','375784cBXkRx','editConversationTitle','updateItemLoadingState','_historyView','updateItemTitle','setIsMaximized','removeConversation','delegate','isMaximized','requires','setConversationPinned','986899zBXFmX','addTab','2966173YdloIh','selectConversation','showConversationHistory','errorMessage','120942MVgkTx','updateItems','showError','setLoadingSkeleton','6vIzSua','AITabs','updateHistoryItemsWithCategories','AI_CHAT_HISTORY_HEADING','resizeTabs','AIChatHistoryUI','12745440CfSQmr','view','2252544MLwfyS','isLoading','get','locale','removeHistoryItem','context','pluginName','hideError','isOfficialPlugin','showResizeButton','10aPMzwv'];_0x5c89=function(){return _0x457b86;};return _0x5c89();}import{IconAIHistory as _0x555820}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x9f7a79}from'./ui/aichathistoryview.js';function _0x56f8(_0x3f5893,_0x1d6474){const _0x5c890e=_0x5c89();return _0x56f8=function(_0x56f8be,_0xb38561){_0x56f8be=_0x56f8be-0x168;let _0x58d40a=_0x5c890e[_0x56f8be];return _0x58d40a;},_0x56f8(_0x3f5893,_0x1d6474);}import{getTranslation as _0x17524e}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x334673(0x178),_0x334673(0x16f),_0x334673(0x16a),_0x334673(0x173),_0x334673(0x177),_0x334673(0x194),_0x334673(0x182)];export class AIChatHistoryUI extends _0x1d1a08{static get[_0x334673(0x172)](){return[_0x39073c];}[_0x334673(0x16c)];static get[_0x334673(0x18c)](){const _0x110e1e=_0x334673;return _0x110e1e(0x183);}static get[_0x334673(0x18e)](){return!0x0;}static get[_0x334673(0x193)](){return!0x0;}constructor(_0x332dde){const _0xf53576=_0x334673;super(_0x332dde);const _0x4ad18c=this[_0xf53576(0x18b)][_0xf53576(0x168)][_0xf53576(0x188)](_0xf53576(0x17f));this[_0xf53576(0x16c)]=new _0x9f7a79(this[_0xf53576(0x18b)][_0xf53576(0x189)],_0x4ad18c[_0xf53576(0x18f)]),this[_0xf53576(0x16c)][_0xf53576(0x170)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x4ad18c[_0xf53576(0x185)][_0xf53576(0x175)]({'id':_0xf53576(0x191),'buttonLabel':_0x17524e(this[_0xf53576(0x18b)][_0xf53576(0x189)],_0xf53576(0x181)),'buttonIcon':_0x555820,'order':0x0,'content':this[_0xf53576(0x16c)]});}[_0x334673(0x18a)](_0x39c273){const _0x114b95=_0x334673;this[_0x114b95(0x16c)][_0x114b95(0x18a)](_0x39c273);}[_0x334673(0x17b)](_0x1e166e){const _0x5a082b=_0x334673;this[_0x5a082b(0x16c)][_0x5a082b(0x180)](_0x1e166e);}[_0x334673(0x16d)](_0x4625b4,_0x2ef020){const _0x2b380c=_0x334673;this[_0x2b380c(0x16c)][_0x2b380c(0x16d)](_0x4625b4,_0x2ef020);}[_0x334673(0x16b)](_0x5bb59d,_0x1f79b9,_0xd825e8){const _0x26bda2=_0x334673;this[_0x26bda2(0x16c)][_0x26bda2(0x16b)](_0x5bb59d,_0x1f79b9,_0xd825e8);}[_0x334673(0x17d)](_0xb931dd){const _0x36b617=_0x334673;this[_0x36b617(0x16c)][_0x36b617(0x187)]=_0xb931dd;}[_0x334673(0x17c)](_0x931ebe){const _0x1bf89a=_0x334673;this[_0x1bf89a(0x16c)][_0x1bf89a(0x179)]=_0x931ebe;}[_0x334673(0x18d)](){const _0x4d26a9=_0x334673;this[_0x4d26a9(0x16c)][_0x4d26a9(0x179)]='';}[_0x334673(0x16e)](_0x4cb983){const _0x4765f1=_0x334673;this[_0x4765f1(0x16c)][_0x4765f1(0x171)]=_0x4cb983;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57e6b6=_0x4199;function _0x4199(_0x10f52d,_0x528042){const _0x90a354=_0x90a3();return _0x4199=function(_0x4199c1,_0x8cf98b){_0x4199c1=_0x4199c1-0x1cc;let _0x2b675e=_0x90a354[_0x4199c1];return _0x2b675e;},_0x4199(_0x10f52d,_0x528042);}(function(_0x5c3967,_0xbf5681){const _0x1ec830=_0x4199,_0x1d4a3b=_0x5c3967();while(!![]){try{const _0x597e99=parseInt(_0x1ec830(0x1f9))/0x1+-parseInt(_0x1ec830(0x1f6))/0x2*(parseInt(_0x1ec830(0x1de))/0x3)+-parseInt(_0x1ec830(0x1f1))/0x4+parseInt(_0x1ec830(0x1e5))/0x5+parseInt(_0x1ec830(0x1ec))/0x6+parseInt(_0x1ec830(0x1cf))/0x7*(-parseInt(_0x1ec830(0x1e1))/0x8)+parseInt(_0x1ec830(0x1e3))/0x9;if(_0x597e99===_0xbf5681)break;else _0x1d4a3b['push'](_0x1d4a3b['shift']());}catch(_0x45f4cf){_0x1d4a3b['push'](_0x1d4a3b['shift']());}}}(_0x90a3,0xddbc8));function _0x90a3(){const _0xb45d8d=['getConversations','getTime','deleteConversation','updateItemPinned','pinned','3oNPZCw','updateConversation','itemRemoved','120tnBsBZ','group','1978506oNTEne','getItem','9031800DoxpWf','getItems','map','itemsLoaded','getResult','fire','loadItems','9173508qEuUKq','find','push','execute','getDate','3834628XkRsfG','updateTitle','getMonth','fetchConversations','itemUpdated','53714ekuczl','findIndex','error','22369zGLRQZ','addItem','removeItem','createdAt','785743xUtxBa','from','filter','init','splice','updateItemTitle','updatePinned','connector','items','getFullYear'];_0x90a3=function(){return _0xb45d8d;};return _0x90a3();}import{EmitterMixin as _0x6d0b11}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x29d2a2}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x6d0b11(){[_0x57e6b6(0x1d7)]=[];[_0x57e6b6(0x1d6)];[_0x57e6b6(0x1e2)];constructor({connector:_0x2b9ceb,group:_0x42fe57}){const _0x1b639a=_0x57e6b6;super(),this[_0x1b639a(0x1d6)]=_0x2b9ceb,this[_0x1b639a(0x1e2)]=_0x42fe57;}async[_0x57e6b6(0x1d2)](){const _0x6958a2=_0x57e6b6;try{const _0x676c58=this[_0x6958a2(0x1d6)][_0x6958a2(0x1f4)](this[_0x6958a2(0x1e2)]),_0x3c8cdc=await _0x676c58[_0x6958a2(0x1d9)]();this[_0x6958a2(0x1eb)](_0x3c8cdc);}catch(_0xd661f2){this[_0x6958a2(0x1ea)](_0x6958a2(0x1f8),{'error':_0xd661f2,'operation':_0x6958a2(0x1d2)});}}[_0x57e6b6(0x1cc)](_0x28b46d){const _0x3aa9b3=_0x57e6b6;this[_0x3aa9b3(0x1d7)][_0x3aa9b3(0x1ee)](_0x28b46d);}async[_0x57e6b6(0x1cd)](_0x360fbb){const _0xb146c6=_0x57e6b6,_0x26f4b8=this[_0xb146c6(0x1d7)][_0xb146c6(0x1f7)](_0xb3ff8=>_0xb3ff8['id']===_0x360fbb);if(-0x1===_0x26f4b8)return!0x1;try{return await this[_0xb146c6(0x1d6)][_0xb146c6(0x1db)](_0x360fbb)[_0xb146c6(0x1ef)](),this[_0xb146c6(0x1d7)][_0xb146c6(0x1d3)](_0x26f4b8,0x1),this[_0xb146c6(0x1ea)](_0xb146c6(0x1e0),{'itemId':_0x360fbb}),!0x0;}catch(_0x3c006e){return this[_0xb146c6(0x1ea)](_0xb146c6(0x1f8),{'error':_0x3c006e,'operation':_0xb146c6(0x1cd),'itemId':_0x360fbb}),!0x1;}}[_0x57e6b6(0x1e4)](_0x3413a5){const _0x3dfae2=_0x57e6b6;return this[_0x3dfae2(0x1d7)][_0x3dfae2(0x1ed)](_0x6911da=>_0x6911da['id']===_0x3413a5);}async[_0x57e6b6(0x1d4)](_0x5f5d7c,_0x5f559b){const _0x58fd3f=_0x57e6b6,_0x46d1ba=this[_0x58fd3f(0x1e4)](_0x5f5d7c);if(!_0x46d1ba)return!0x1;try{return await this[_0x58fd3f(0x1d6)][_0x58fd3f(0x1df)](_0x5f5d7c,{'title':_0x5f559b})[_0x58fd3f(0x1e9)](),_0x46d1ba[_0x58fd3f(0x1f2)](_0x5f559b),this[_0x58fd3f(0x1ea)](_0x58fd3f(0x1f5),{'itemId':_0x5f5d7c,'updates':{'title':_0x5f559b}}),!0x0;}catch(_0x52d630){return this[_0x58fd3f(0x1ea)](_0x58fd3f(0x1f8),{'error':_0x52d630,'operation':_0x58fd3f(0x1d4),'itemId':_0x5f5d7c}),!0x1;}}async[_0x57e6b6(0x1dc)](_0x324029,_0x587c63){const _0x3b1314=_0x57e6b6,_0x23c680=this[_0x3b1314(0x1e4)](_0x324029);if(!_0x23c680)return!0x1;try{return await this[_0x3b1314(0x1d6)][_0x3b1314(0x1df)](_0x324029,{'pinned':_0x587c63})[_0x3b1314(0x1e9)](),_0x23c680[_0x3b1314(0x1d5)](_0x587c63),this[_0x3b1314(0x1ea)](_0x3b1314(0x1f5),{'itemId':_0x324029,'updates':{'pinned':_0x587c63}}),!0x0;}catch(_0xc55e68){return this[_0x3b1314(0x1ea)](_0x3b1314(0x1f8),{'error':_0xc55e68,'operation':_0x3b1314(0x1dc),'itemId':_0x324029}),!0x1;}}[_0x57e6b6(0x1eb)](_0x44c519){const _0x496ff5=_0x57e6b6;try{this[_0x496ff5(0x1d7)]=[],_0x44c519[_0x496ff5(0x1e7)](_0x14e4f2=>{const _0x5c2608=_0x496ff5;this[_0x5c2608(0x1cc)](new _0x29d2a2(_0x14e4f2));}),this[_0x496ff5(0x1ea)](_0x496ff5(0x1e8),{'items':[...this[_0x496ff5(0x1d7)]]});}catch(_0x2268a8){this[_0x496ff5(0x1ea)](_0x496ff5(0x1f8),{'error':_0x2268a8,'operation':_0x496ff5(0x1eb)});}}[_0x57e6b6(0x1e6)](_0x32f01e={}){const _0x307b1d=_0x57e6b6,_0x34a692=void 0x0!==_0x32f01e[_0x307b1d(0x1dd)]&&_0x32f01e[_0x307b1d(0x1dd)],_0x327179=_0x32f01e[_0x307b1d(0x1d0)]?new Date(_0x32f01e[_0x307b1d(0x1d0)][_0x307b1d(0x1d8)](),_0x32f01e[_0x307b1d(0x1d0)][_0x307b1d(0x1f3)](),_0x32f01e[_0x307b1d(0x1d0)][_0x307b1d(0x1f0)]()):null,_0xeb0a23=_0x32f01e['to']?new Date(_0x32f01e['to'][_0x307b1d(0x1d8)](),_0x32f01e['to'][_0x307b1d(0x1f3)](),_0x32f01e['to'][_0x307b1d(0x1f0)]()):null;return this[_0x307b1d(0x1d7)][_0x307b1d(0x1d1)](_0x5dbd41=>{const _0x33ea0f=_0x307b1d;if(_0x5dbd41[_0x33ea0f(0x1dd)]!==_0x34a692)return!0x1;if(_0xeb0a23){const _0x3347d0=new Date(_0x5dbd41[_0x33ea0f(0x1ce)][_0x33ea0f(0x1d8)](),_0x5dbd41[_0x33ea0f(0x1ce)][_0x33ea0f(0x1f3)](),_0x5dbd41[_0x33ea0f(0x1ce)][_0x33ea0f(0x1f0)]());return _0x327179?_0x327179[_0x33ea0f(0x1da)]()===_0xeb0a23[_0x33ea0f(0x1da)]()?_0x3347d0[_0x33ea0f(0x1da)]()===_0x327179[_0x33ea0f(0x1da)]():_0x3347d0<_0xeb0a23&&_0x3347d0>=_0x327179:_0x3347d0<_0xeb0a23;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5604be=_0x46b3;function _0x46b3(_0x147a0d,_0xf817a2){var _0x597cb1=_0x597c();return _0x46b3=function(_0x46b369,_0x4d116c){_0x46b369=_0x46b369-0x156;var _0x47dafa=_0x597cb1[_0x46b369];return _0x47dafa;},_0x46b3(_0x147a0d,_0xf817a2);}(function(_0x5789bd,_0x544b0a){var _0x3321a5=_0x46b3,_0x1de151=_0x5789bd();while(!![]){try{var _0x424ff7=-parseInt(_0x3321a5(0x166))/0x1+-parseInt(_0x3321a5(0x159))/0x2*(parseInt(_0x3321a5(0x15e))/0x3)+parseInt(_0x3321a5(0x158))/0x4*(-parseInt(_0x3321a5(0x164))/0x5)+parseInt(_0x3321a5(0x156))/0x6+-parseInt(_0x3321a5(0x165))/0x7+parseInt(_0x3321a5(0x15d))/0x8*(parseInt(_0x3321a5(0x167))/0x9)+-parseInt(_0x3321a5(0x15b))/0xa*(-parseInt(_0x3321a5(0x157))/0xb);if(_0x424ff7===_0x544b0a)break;else _0x1de151['push'](_0x1de151['shift']());}catch(_0x5f1baa){_0x1de151['push'](_0x1de151['shift']());}}}(_0x597c,0x1dc5f));function _0x597c(){var _0x6fd6db=['10Qihiyg','updateTitle','2840EqMsbP','5493mNeYCD','pinned','updatedAt','set','title','updatePinned','26635kgleHI','1655787nlwmkB','92598bpWvBZ','3789cQvZvO','1375824VRAhVg','4219721KXfCjr','88TKMeSL','212FUAiSS','createdAt'];_0x597c=function(){return _0x6fd6db;};return _0x597c();}import{ObservableMixin as _0x5dfae1}from'ckeditor5/src/utils.js';import{escape as _0x555e73}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x5dfae1(){['id'];[_0x5604be(0x15a)];constructor({id:_0x3df951,title:_0x1f328d,createdAt:_0x675d87,updatedAt:_0xc93d97,pinned:_0x6d3c46}){var _0x31445e=_0x5604be;super(),this['id']=_0x3df951,this[_0x31445e(0x15a)]=new Date(_0x675d87),this[_0x31445e(0x161)](_0x31445e(0x162),_0x1f328d),this[_0x31445e(0x161)](_0x31445e(0x160),_0xc93d97?new Date(_0xc93d97):null),this[_0x31445e(0x161)](_0x31445e(0x15f),_0x6d3c46||!0x1);}[_0x5604be(0x15c)](_0x4413e8){var _0x15fe7d=_0x5604be;this[_0x15fe7d(0x161)](_0x15fe7d(0x162),_0x555e73(_0x4413e8)),this[_0x15fe7d(0x160)]=new Date();}[_0x5604be(0x163)](_0x2318f4){var _0xf4d09a=_0x5604be;this[_0xf4d09a(0x161)](_0xf4d09a(0x15f),_0x2318f4),this[_0xf4d09a(0x160)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
function _0x4753(_0x388aed,_0x1d9bf6){const _0x312312=_0x3123();return _0x4753=function(_0x47538d,_0x4e5858){_0x47538d=_0x47538d-0x125;let _0x31d06c=_0x312312[_0x47538d];return _0x31d06c;},_0x4753(_0x388aed,_0x1d9bf6);}const _0x45e21a=_0x4753;(function(_0x9ffe9f,_0x4bd5ca){const _0x8c9060=_0x4753,_0x343612=_0x9ffe9f();while(!![]){try{const _0x58de8c=-parseInt(_0x8c9060(0x155))/0x1+parseInt(_0x8c9060(0x14b))/0x2+parseInt(_0x8c9060(0x12f))/0x3+-parseInt(_0x8c9060(0x132))/0x4+-parseInt(_0x8c9060(0x138))/0x5+-parseInt(_0x8c9060(0x158))/0x6*(parseInt(_0x8c9060(0x128))/0x7)+parseInt(_0x8c9060(0x14c))/0x8;if(_0x58de8c===_0x4bd5ca)break;else _0x343612['push'](_0x343612['shift']());}catch(_0x4c1f83){_0x343612['push'](_0x343612['shift']());}}}(_0x3123,0x80c6d));import{ListItemView as _0x5081b4,HighlightedTextView as _0x26bf05,ButtonView as _0x1b6385,ListView as _0x5076fc,IconView as _0x4c8f44,createDropdown as _0x4336f5,InputTextView as _0x2cef48}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x18be09,IconPin as _0x412a91,IconCheck as _0x427fd5,IconCancel as _0x14796f}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x27d014,ConfirmMixin as _0x2c9f6e}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0xdd1516}from'es-toolkit/compat';import{AISpinnerView as _0x60838}from'../../aicore/ui/aispinner.js';function _0x3123(){const _0x13ff56=['ck-ai-chat-history__item-title','key','removeConversation','text','ck-ai-chat-history__item-actions','items','setConversationPinned','AI_CHAT_HISTORY_REMOVE','loadingState','mainContent','panelView','ck-ai-chat-history__item-content','locale','element','string','change:isEdit','extendTemplate','showConfirm','AI_CHAT_HISTORY_CANCEL','isOn','AI_CHAT_HISTORY_PIN_BUTTON','isEdit','ck-hidden','selectConversation','execute','_createEditInputView','tiny','AI_CHAT_HISTORY_LOADING_RENAMING','AI_CHAT_HISTORY_LOADING_PINNING','_commitEditInputValue','_createCheckView','1729OwZTAH','panelPosition','ck-confirm-view-cancel','highlightText','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item--active','updateLoadingState','1799046FzCLqj','match','_createMenuDropdownView','3842412xOHETv','bind','_createSpinnerView','_createAcceptEditButtonView','ck-ai-chat-history__item-main-content','updateTitle','449085tfcwls','_createPinButtonView','div','AI_CHAT_HISTORY_LOADING_UNPINNING','ck-ai-loader','withText','AI_CHAT_HISTORY_EDIT_NAME','_titleView','ck-ai-chat-history__item-row','children','bindTemplate','Enter','ck-ai-chat-history__item-check','focus','ck-ai-chat-history__item--edit','then','label','ck-confirm-view-submit','ck-ai-chat-history__item-date','1273568PhjJIh','8441392EfBtZF','setTemplate','buttonView','LOADING_LABELS','value','add','clear','_createCancelEditButtonView','AI_CHAT_HISTORY_REMOVE_CONFIRM','495650eHPiSm','ck-ai-loader__text','set','5298BEZJgP','isVisible','fire','edit:cancel','pinned','ck-ai-chat-history__item','AI_CHAT_HISTORY_LOADING_REMOVING','span','editConversationTitle','ck-ai-chat-history__item-check-container','addMany','AI_CHAT_HISTORY_ACCEPT','isMatching','click','actions','createCollection','listitem'];_0x3123=function(){return _0x13ff56;};return _0x3123();}import{getTranslation as _0x1c67a9}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2c9f6e(_0x5081b4){['id'];static [_0x45e21a(0x14f)]={'remove':_0x45e21a(0x15e),'rename':_0x45e21a(0x184),'pin':_0x45e21a(0x125),'unpin':_0x45e21a(0x13b)};[_0x45e21a(0x166)];[_0x45e21a(0x172)];[_0x45e21a(0x13f)];constructor(_0x162f13,_0x56c9c8){const _0x3bf216=_0x45e21a;super(_0x162f13);const _0x5a44e4=this[_0x3bf216(0x142)];this[_0x3bf216(0x157)](_0x3bf216(0x17e),!0x1),this[_0x3bf216(0x157)](_0x3bf216(0x159),!0x0),this[_0x3bf216(0x157)](_0x3bf216(0x15c),!!_0x56c9c8[_0x3bf216(0x15c)]),this[_0x3bf216(0x157)](_0x3bf216(0x171),null),this['id']=_0x56c9c8['id'];const {title:_0x18f3e1,createdAt:_0xbfe8f6,active:_0x7572d3=!0x1}=_0x56c9c8;this[_0x3bf216(0x13f)]=new _0x26bf05(),this[_0x3bf216(0x13f)][_0x3bf216(0x16c)]=_0x18f3e1,this[_0x3bf216(0x13f)][_0x3bf216(0x179)]({'attributes':{'class':[_0x3bf216(0x169)]}});const _0x26e10f=this[_0x3bf216(0x127)](),_0xd7445d=this[_0x3bf216(0x139)](_0x162f13),_0x40cb5c=this[_0x3bf216(0x131)](),_0x357fc8=this[_0x3bf216(0x182)](_0x162f13,_0x18f3e1),_0x2f48ec=this[_0x3bf216(0x135)](_0x162f13,_0x357fc8),_0x4a82da=this[_0x3bf216(0x153)](_0x162f13,_0x357fc8);this[_0x3bf216(0x166)]=this[_0x3bf216(0x167)](),this[_0x3bf216(0x172)]=this[_0x3bf216(0x167)](),this[_0x3bf216(0x172)][_0x3bf216(0x151)](this[_0x3bf216(0x13f)]),this[_0x3bf216(0x166)][_0x3bf216(0x151)](_0xd7445d),this[_0x3bf216(0x166)][_0x3bf216(0x151)](_0x40cb5c),this['on'](_0x3bf216(0x178),(_0xdc7830,_0x5986e8,_0x4a2ae5)=>{const _0xfeeb35=_0x3bf216;this[_0xfeeb35(0x166)][_0xfeeb35(0x152)](),this[_0xfeeb35(0x172)][_0xfeeb35(0x152)](),_0x4a2ae5?(this[_0xfeeb35(0x166)][_0xfeeb35(0x151)](_0x2f48ec),this[_0xfeeb35(0x166)][_0xfeeb35(0x151)](_0x4a82da),this[_0xfeeb35(0x172)][_0xfeeb35(0x151)](_0x357fc8),_0x357fc8[_0xfeeb35(0x176)][_0xfeeb35(0x145)]()):(this[_0xfeeb35(0x166)][_0xfeeb35(0x151)](_0xd7445d),this[_0xfeeb35(0x166)][_0xfeeb35(0x151)](_0x40cb5c),this[_0xfeeb35(0x172)][_0xfeeb35(0x151)](this[_0xfeeb35(0x13f)]));}),this[_0x3bf216(0x14d)]({'tag':'li','attributes':{'class':[_0x3bf216(0x15d),_0x7572d3?_0x3bf216(0x12d):'',_0x5a44e4['if'](_0x3bf216(0x159),_0x3bf216(0x17f),_0xb39e6f=>!_0xb39e6f),_0x5a44e4['if'](_0x3bf216(0x17e),_0x3bf216(0x146))],'role':_0x3bf216(0x168)},'children':[{'tag':_0x3bf216(0x15f),'attributes':{'class':[_0x3bf216(0x161)]},'children':[{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x144),_0x5a44e4['if'](_0x3bf216(0x171),_0x3bf216(0x17f),_0x5a446d=>!!_0x5a446d)]},'children':_0x7572d3?[_0x26e10f]:[]},{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x13c),_0x5a44e4['if'](_0x3bf216(0x171),_0x3bf216(0x17f),_0x531aab=>!_0x531aab)]},'children':[this[_0x3bf216(0x134)]()]}]},{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x140)]},'children':[{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x174)]},'on':{'click':this[_0x3bf216(0x142)]['to'](_0x3bf216(0x165))},'children':[{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x136)]},'children':[{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x169),_0x5a44e4['if'](_0x3bf216(0x171),_0x3bf216(0x17f),_0x18cff5=>!!_0x18cff5)]},'children':this[_0x3bf216(0x172)]},{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x156),_0x5a44e4['if'](_0x3bf216(0x171),_0x3bf216(0x17f),_0x532a51=>!_0x532a51)]},'children':[{'text':_0x5a44e4['to'](_0x3bf216(0x171),_0x169b37=>_0x169b37?_0x1c67a9(this[_0x3bf216(0x175)],AIChatHistoryListItemView[_0x3bf216(0x14f)][_0x169b37]):'')}]}]},{'tag':_0x3bf216(0x15f),'attributes':{'class':[_0x3bf216(0x14a)]},'children':[_0xbfe8f6]}]},{'tag':_0x3bf216(0x13a),'attributes':{'class':[_0x3bf216(0x16d)]},'children':this[_0x3bf216(0x166)]}]}]}),this['on'](_0x3bf216(0x165),()=>{const _0x2914ec=_0x3bf216;this[_0x2914ec(0x17e)]||this[_0x2914ec(0x15a)](_0x2914ec(0x180),{'id':this['id']});});}[_0x45e21a(0x137)](_0x558601){const _0x4e4ed9=_0x45e21a;this[_0x4e4ed9(0x13f)][_0x4e4ed9(0x16c)]=_0xdd1516(_0x558601);}[_0x45e21a(0x12e)](_0x570a1d,_0x184204){const _0x5174ca=_0x45e21a;this[_0x5174ca(0x157)](_0x5174ca(0x171),_0x184204?_0x570a1d:null);}[_0x45e21a(0x127)](){const _0x5dc215=_0x45e21a,_0xb0a23c=new _0x4c8f44();return _0xb0a23c[_0x5dc215(0x157)]({'content':_0x427fd5}),_0xb0a23c;}[_0x45e21a(0x139)](_0x3bb1b2){const _0x4b333a=_0x45e21a,_0x3f5369=new _0x1b6385(_0x3bb1b2);return _0x3f5369[_0x4b333a(0x157)]({'label':_0x1c67a9(_0x3bb1b2,_0x4b333a(0x17d)),'icon':_0x412a91,'withText':!0x1,'tooltip':!0x0}),_0x3f5369[_0x4b333a(0x133)](_0x4b333a(0x17c))['to'](this,_0x4b333a(0x15c)),_0x3f5369['on'](_0x4b333a(0x181),()=>{const _0x105712=_0x4b333a,_0x372ff3=!this[_0x105712(0x15c)];this[_0x105712(0x15a)](_0x105712(0x16f),{'id':this['id'],'pinned':_0x372ff3});}),_0x3f5369;}[_0x45e21a(0x131)](){const _0x116417=_0x45e21a,_0xc6d749=_0x4336f5(this[_0x116417(0x175)],_0x27d014),_0x23bcdf=_0xc6d749[_0x116417(0x173)][_0x116417(0x141)];_0xc6d749[_0x116417(0x14e)][_0x116417(0x157)]({'label':_0x1c67a9(this[_0x116417(0x175)],_0x116417(0x12c)),'icon':_0x18be09}),_0xc6d749[_0x116417(0x129)]='sw';const _0x397700=new _0x1b6385(this[_0x116417(0x175)]);_0x397700[_0x116417(0x148)]=_0x1c67a9(this[_0x116417(0x175)],_0x116417(0x13e)),_0x397700[_0x116417(0x13d)]=!0x0,_0x397700['on'](_0x116417(0x181),()=>{const _0x44e10c=_0x116417;this[_0x44e10c(0x17e)]=!0x0;});const _0x343bd3=new _0x1b6385(this[_0x116417(0x175)]);_0x343bd3[_0x116417(0x148)]=_0x1c67a9(this[_0x116417(0x175)],_0x116417(0x170)),_0x343bd3[_0x116417(0x13d)]=!0x0,_0x343bd3['on'](_0x116417(0x181),()=>{const _0x423e9f=_0x116417;this[_0x423e9f(0x17a)](_0x1c67a9(this[_0x423e9f(0x175)],_0x423e9f(0x154)),this[_0x423e9f(0x176)])[_0x423e9f(0x147)](()=>{const _0x42de4c=_0x423e9f;this[_0x42de4c(0x15a)](_0x42de4c(0x16b),{'id':this['id']});});});const _0x27d717=new _0x5076fc(this[_0x116417(0x175)]),_0x596055=new _0x5081b4(this[_0x116417(0x175)]);_0x596055[_0x116417(0x141)][_0x116417(0x151)](_0x397700);const _0x81585e=new _0x5081b4(this[_0x116417(0x175)]);return _0x81585e[_0x116417(0x141)][_0x116417(0x151)](_0x343bd3),_0x27d717[_0x116417(0x16e)][_0x116417(0x162)]([_0x596055,_0x81585e]),_0x23bcdf[_0x116417(0x151)](_0x27d717),_0xc6d749;}[_0x45e21a(0x182)](_0x42938,_0x1ae60f){const _0x25d434=_0x45e21a,_0x3bcc56=new _0x2cef48(_0x42938),_0x437e3d=_0x3bcc56[_0x25d434(0x142)];return _0x3bcc56[_0x25d434(0x150)]=_0x1ae60f,_0x3bcc56[_0x25d434(0x179)]({'on':{'keydown':_0x437e3d['to'](_0x53b34a=>{const _0x10c454=_0x25d434;_0x10c454(0x143)==_0x53b34a[_0x10c454(0x16a)]&&this[_0x10c454(0x126)](_0x3bcc56);})}}),_0x3bcc56;}[_0x45e21a(0x135)](_0xb01ff8,_0x3437cd){const _0x191cb9=_0x45e21a,_0x5a5c30=new _0x1b6385(_0xb01ff8);return _0x5a5c30[_0x191cb9(0x157)]({'icon':_0x427fd5,'withText':!0x1,'tooltip':_0x1c67a9(_0xb01ff8,_0x191cb9(0x163))}),_0x5a5c30[_0x191cb9(0x179)]({'attributes':{'class':[_0x191cb9(0x149)]}}),_0x5a5c30['on'](_0x191cb9(0x181),()=>{const _0x326df3=_0x191cb9;this[_0x326df3(0x126)](_0x3437cd);}),_0x5a5c30;}[_0x45e21a(0x126)](_0x1d664b){const _0xafd767=_0x45e21a,_0x50bc9c=_0x1d664b[_0xafd767(0x176)][_0xafd767(0x150)]||'';this[_0xafd767(0x13f)][_0xafd767(0x16c)]=_0x50bc9c,this[_0xafd767(0x17e)]=!0x1,this[_0xafd767(0x15a)](_0xafd767(0x160),{'id':this['id'],'title':_0x50bc9c});}[_0x45e21a(0x153)](_0x5c45a0,_0x42fd7b){const _0x4eb34c=_0x45e21a,_0x86569c=new _0x1b6385(_0x5c45a0);return _0x86569c[_0x4eb34c(0x157)]({'icon':_0x14796f,'withText':!0x1,'tooltip':_0x1c67a9(_0x5c45a0,_0x4eb34c(0x17b))}),_0x86569c[_0x4eb34c(0x179)]({'attributes':{'class':[_0x4eb34c(0x12a)]}}),_0x86569c['on'](_0x4eb34c(0x181),()=>{const _0x1afda7=_0x4eb34c;this[_0x1afda7(0x17e)]=!0x1,_0x42fd7b[_0x1afda7(0x150)]=this[_0x1afda7(0x13f)][_0x1afda7(0x16c)]||'',this[_0x1afda7(0x15a)](_0x1afda7(0x15b));}),_0x86569c;}[_0x45e21a(0x134)](){const _0x4655b1=_0x45e21a,_0x39980a=new _0x60838(_0x4655b1(0x183));return _0x39980a[_0x4655b1(0x159)]=!0x0,_0x39980a;}[_0x45e21a(0x164)](_0x407e59){const _0x330576=_0x45e21a;return this[_0x330576(0x13f)]&&_0x330576(0x177)==typeof this[_0x330576(0x13f)][_0x330576(0x16c)]&&this[_0x330576(0x13f)][_0x330576(0x16c)][_0x330576(0x130)](_0x407e59)?{'title':!0x0}:null;}[_0x45e21a(0x12b)](_0x3af515){const _0x44b154=_0x45e21a;this[_0x44b154(0x13f)][_0x44b154(0x12b)](_0x3af515);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x384f97=_0x1b8a;(function(_0x244d18,_0x5e3fc3){const _0x509389=_0x1b8a,_0x2d781f=_0x244d18();while(!![]){try{const _0x5b1876=-parseInt(_0x509389(0xdd))/0x1*(-parseInt(_0x509389(0xbe))/0x2)+-parseInt(_0x509389(0xde))/0x3*(parseInt(_0x509389(0xdb))/0x4)+-parseInt(_0x509389(0xdc))/0x5*(-parseInt(_0x509389(0xd6))/0x6)+-parseInt(_0x509389(0xc9))/0x7*(parseInt(_0x509389(0xcd))/0x8)+-parseInt(_0x509389(0xe0))/0x9*(parseInt(_0x509389(0xc7))/0xa)+-parseInt(_0x509389(0xd1))/0xb+parseInt(_0x509389(0xd5))/0xc*(parseInt(_0x509389(0xc6))/0xd);if(_0x5b1876===_0x5e3fc3)break;else _0x2d781f['push'](_0x2d781f['shift']());}catch(_0x472a64){_0x2d781f['push'](_0x2d781f['shift']());}}}(_0x161a,0x2831c));function _0x1b8a(_0x39cb08,_0x3419fe){const _0x161a8d=_0x161a();return _0x1b8a=function(_0x1b8a4c,_0x5b2e67){_0x1b8a4c=_0x1b8a4c-0xbe;let _0x418c1f=_0x161a8d[_0x1b8a4c];return _0x418c1f;},_0x1b8a(_0x39cb08,_0x3419fe);}import{ListItemView as _0x1545a9,View as _0x548d8d,ListView as _0xcce3ed}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x1545a9{[_0x384f97(0xe1)];[_0x384f97(0xd0)];[_0x384f97(0xd3)];constructor(_0x5a7c77,{title:_0x143cd7,items:_0x574d14}){const _0xb746c=_0x384f97;super(_0x5a7c77);const _0x2202c0=this[_0xb746c(0xc2)];this[_0xb746c(0xca)](_0xb746c(0xc4),!0x0),this[_0xb746c(0xe1)]=_0x143cd7,this[_0xb746c(0xd0)]=_0x574d14;const _0x49f276=new _0x548d8d(_0x5a7c77);_0x49f276[_0xb746c(0xc3)]({'tag':_0xb746c(0xd8),'attributes':{'class':[_0xb746c(0xce)]},'children':[this[_0xb746c(0xe1)]]}),this[_0xb746c(0xd3)]=new _0xcce3ed(_0x5a7c77),this[_0xb746c(0xd3)][_0xb746c(0xc5)][_0xb746c(0xcb)](this[_0xb746c(0xd0)]),this[_0xb746c(0xc3)]({'tag':'li','attributes':{'class':[_0xb746c(0xcf),_0x2202c0['if'](_0xb746c(0xc4),_0xb746c(0xcc),_0x417690=>!_0x417690)]},'children':[_0x49f276,this[_0xb746c(0xd3)]]});}[_0x384f97(0xd7)](_0x3539b0){const _0x2c9889=_0x384f97,_0x8337ee=this[_0x2c9889(0xd0)][_0x2c9889(0xd4)];let _0x46466e=0x0;for(const _0x5ba0f3 of this[_0x2c9889(0xd0)]){if(_0x3539b0){const _0x56a2df=_0x5ba0f3[_0x2c9889(0xc1)](_0x3539b0);_0x5ba0f3[_0x2c9889(0xc4)]=!!_0x56a2df,_0x5ba0f3[_0x2c9889(0xc8)](_0x3539b0);}else _0x5ba0f3[_0x2c9889(0xc4)]=!0x0,_0x5ba0f3[_0x2c9889(0xc8)](null);_0x5ba0f3[_0x2c9889(0xc4)]&&_0x46466e++;}return this[_0x2c9889(0xc4)]=_0x46466e>0x0,{'resultsCount':_0x46466e,'totalItemsCount':_0x8337ee};}[_0x384f97(0xda)](_0xac62d4){const _0x812c9a=_0x384f97;return this[_0x812c9a(0xd0)][_0x812c9a(0xdf)](_0x2bba95=>_0x2bba95['id']===_0xac62d4);}[_0x384f97(0xd9)](_0x208dcf){const _0x40b574=_0x384f97,_0x427ff7=this[_0x40b574(0xd0)][_0x40b574(0xd2)](_0x208dcf);-0x1!==_0x427ff7&&(this[_0x40b574(0xd0)][_0x40b574(0xbf)](_0x427ff7,0x1),this[_0x40b574(0xd3)][_0x40b574(0xc5)][_0x40b574(0xc0)](_0x208dcf));}}function _0x161a(){const _0x3f8713=['filter','div','removeItem','getItem','4qIRrXg','320140ywPVNJ','213043mYFBWX','279771cpxPKL','find','459yMpvcf','title','2PGoBNn','splice','remove','isMatching','bindTemplate','setTemplate','isVisible','items','474071arPSOV','1720nAJEwn','highlightText','27153xMrPXi','set','addMany','ck-hidden','608MIZgYb','ck-ai-chat-history__section-title','ck-ai-chat-history__section','itemsViews','1792505pmSmDU','indexOf','_itemsListView','length','84JpLSnk','24QjvVVn'];_0x161a=function(){return _0x3f8713;};return _0x161a();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x38d1(_0x1b2d51,_0x4d57b1){const _0x3506c7=_0x3506();return _0x38d1=function(_0x38d140,_0x39bec2){_0x38d140=_0x38d140-0x1a4;let _0x598aa7=_0x3506c7[_0x38d140];return _0x598aa7;},_0x38d1(_0x1b2d51,_0x4d57b1);}function _0x3506(){const _0x1a196e=['filter','4111302IsnTVg','772758VQmcha','sections','5029780IAWLCg','1466424lGUgsT','extendTemplate','6179949NnTUMv','4hCQuYO','items','addMany','2146047zTtihC','ck-ai-chat-history__sections','2601035HIJYYq','24PaQvDe'];_0x3506=function(){return _0x1a196e;};return _0x3506();}const _0x5ae623=_0x38d1;(function(_0xc9988f,_0x491aac){const _0x35f619=_0x38d1,_0x1fdd98=_0xc9988f();while(!![]){try{const _0x3befe3=parseInt(_0x35f619(0x1a9))/0x1+parseInt(_0x35f619(0x1ac))/0x2+-parseInt(_0x35f619(0x1b2))/0x3*(-parseInt(_0x35f619(0x1af))/0x4)+parseInt(_0x35f619(0x1a5))/0x5+parseInt(_0x35f619(0x1a8))/0x6+-parseInt(_0x35f619(0x1ab))/0x7+parseInt(_0x35f619(0x1a6))/0x8*(-parseInt(_0x35f619(0x1ae))/0x9);if(_0x3befe3===_0x491aac)break;else _0x1fdd98['push'](_0x1fdd98['shift']());}catch(_0x64c9e4){_0x1fdd98['push'](_0x1fdd98['shift']());}}}(_0x3506,0x9e41c));import{ListView as _0xeb5215}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0xeb5215{[_0x5ae623(0x1aa)];constructor(_0xa70d00,_0x9da05d){const _0x124751=_0x5ae623;super(_0xa70d00),this[_0x124751(0x1aa)]=_0x9da05d,this[_0x124751(0x1b0)][_0x124751(0x1b1)](this[_0x124751(0x1aa)]),this[_0x124751(0x1ad)]({'attributes':{'class':[_0x124751(0x1a4)]}});}[_0x5ae623(0x1a7)](_0x3362f8){const _0x12f860=_0x5ae623;let _0x1f0a66=0x0,_0x3107ec=0x0;for(const _0x319fa4 of this[_0x12f860(0x1aa)]){const {resultsCount:_0x2d5db5,totalItemsCount:_0x491445}=_0x319fa4[_0x12f860(0x1a7)](_0x3362f8);_0x1f0a66+=_0x2d5db5,_0x3107ec+=_0x491445;}return{'resultsCount':_0x1f0a66,'totalItemsCount':_0x3107ec};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1afeb2=_0xf453;(function(_0x30b3ae,_0x5415b1){const _0x1a1e81=_0xf453,_0x306015=_0x30b3ae();while(!![]){try{const _0x212c78=-parseInt(_0x1a1e81(0x189))/0x1*(parseInt(_0x1a1e81(0x179))/0x2)+parseInt(_0x1a1e81(0x159))/0x3*(-parseInt(_0x1a1e81(0x15e))/0x4)+parseInt(_0x1a1e81(0x154))/0x5*(parseInt(_0x1a1e81(0x170))/0x6)+parseInt(_0x1a1e81(0x19d))/0x7*(-parseInt(_0x1a1e81(0x197))/0x8)+parseInt(_0x1a1e81(0x16b))/0x9*(parseInt(_0x1a1e81(0x177))/0xa)+-parseInt(_0x1a1e81(0x181))/0xb+parseInt(_0x1a1e81(0x151))/0xc*(parseInt(_0x1a1e81(0x1a4))/0xd);if(_0x212c78===_0x5415b1)break;else _0x306015['push'](_0x306015['shift']());}catch(_0x5d21cf){_0x306015['push'](_0x306015['shift']());}}}(_0xc547,0x1fe34));import{View as _0xe98905,SearchTextView as _0x4a9aa2,FormHeaderView as _0xc73299,ButtonView as _0x45ce3a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x38623b,IconCancel as _0x5eec41,IconPlus as _0x364955}from'ckeditor5/src/icons.js';function _0xf453(_0x315e86,_0x3dd474){const _0xc547a9=_0xc547();return _0xf453=function(_0xf4530,_0x1093f0){_0xf4530=_0xf4530-0x14f;let _0x22c71b=_0xc547a9[_0xf4530];return _0x22c71b;},_0xf453(_0x315e86,_0x3dd474);}import{AIChatHistorySectionListView as _0x5a0fac}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x2e2054}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x514225}from'./aichathistorylistitemview.js';function _0xc547(){const _0x35a80b=['sections','38653TBmNsi','updateTitle','items','search','isVisible','change:isLoading','updateLoadingState','extendTemplate','openChat','_createListItemViews','isEmptyViewVisible','resizeButton','_createEmptyStateView','title','3632AzQrim','addMany','AI_CHAT_HISTORY_SEARCH_LABEL','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__empty','render','875ZFgjQZ','some','removeItem','isSearchViewVisible','div','fire','length','52143oTyaJq','locale','ck-ai-chat-history__empty-message','add','fieldView','set','value','ck-ai-chat__start-conversation','change:hasItems','clear','isLoading','push','AI_CHAT_HISTORY_HEADING','1668pcEffs','_createSkeletonView','ck-ai-chat-history','5LtFFke','itemsViews','aiHistory','isMaximized','removeHistoryItem','414lwAOop','_createErrorView','children','_updateViewVisibility','queryView','5832Zrmklh','ck-ai-chat-history__content','ck-ai-header\x20ck-ai-header_history','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','change:errorMessage','_refreshSearch','indexOf','delegate','errorMessage','sectionsView','ck-ai-notification','emptyView','ltr','126ppwslW','execute','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','bind','updateItemLoadingState','315294NRqsEN','splice','ck-reset_all','mainErrorView','_createSearchView','isMainErrorViewVisible','hasItems','54490ugPfuq','getItem','4ncOvBQ','ck-hidden','ck-rounded-corners','bindTemplate','remove','element','updateItemTitle','AI_CHAT_LABEL_NEW_CHAT','2425412GXVFnJ','setTemplate','skeletonView','updateHistoryItemsWithCategories','ck-ai-notification_error','searchView','ck-ai-notification_error__dismiss-button'];_0xc547=function(){return _0x35a80b;};return _0xc547();}import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2df4e1}from'../aichathistoryui.js';import{AISkeletonView as _0x2e814b,SKELETON_DEFINITIONS as _0x51fd80}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x2cd12d}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x261629}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0xe98905{[_0x1afeb2(0x186)];[_0x1afeb2(0x173)];[_0x1afeb2(0x183)];[_0x1afeb2(0x169)];[_0x1afeb2(0x167)];[_0x1afeb2(0x194)];constructor(_0x4960c8,_0x32d5eb){const _0x1ad949=_0x1afeb2;super(_0x4960c8),this[_0x1ad949(0x1a9)](_0x1ad949(0x176),!0x1),this[_0x1ad949(0x1a9)](_0x1ad949(0x1ae),!0x0),this[_0x1ad949(0x1a9)](_0x1ad949(0x166),''),this[_0x1ad949(0x1a9)](_0x1ad949(0x157),!0x1),this[_0x1ad949(0x1a9)](_0x1ad949(0x1a0),!0x1),this[_0x1ad949(0x1a9)](_0x1ad949(0x193),!0x1),this[_0x1ad949(0x1a9)](_0x1ad949(0x175),!0x1);const _0x1b6f68=new _0xc73299(_0x4960c8,{'label':_0x261629(_0x4960c8,_0x1ad949(0x150)),'icon':_0x38623b,'class':_0x1ad949(0x160)});_0x32d5eb&&(this[_0x1ad949(0x194)]=_0x2cd12d(_0x4960c8,this),_0x1b6f68[_0x1ad949(0x15b)][_0x1ad949(0x1a7)](this[_0x1ad949(0x194)])),this[_0x1ad949(0x167)]=new _0x5a0fac(_0x4960c8,[]),this[_0x1ad949(0x167)][_0x1ad949(0x165)](..._0x2df4e1)['to'](this),this[_0x1ad949(0x173)]=this[_0x1ad949(0x15a)](),this[_0x1ad949(0x183)]=this[_0x1ad949(0x152)](),this[_0x1ad949(0x169)]=this[_0x1ad949(0x195)](),this[_0x1ad949(0x186)]=this[_0x1ad949(0x174)](),this[_0x1ad949(0x173)][_0x1ad949(0x190)]({'attributes':{'class':[this[_0x1ad949(0x17c)]['if'](_0x1ad949(0x175),_0x1ad949(0x17a),_0x3a4fab=>!_0x3a4fab)]}}),this['on'](_0x1ad949(0x18e),()=>this[_0x1ad949(0x15c)]()),this['on'](_0x1ad949(0x1ac),()=>this[_0x1ad949(0x15c)]()),this['on'](_0x1ad949(0x162),()=>this[_0x1ad949(0x15c)]()),this[_0x1ad949(0x182)]({'tag':_0x1ad949(0x1a1),'attributes':{'class':['ck',_0x1ad949(0x172),_0x1ad949(0x153),_0x1ad949(0x17b)],'dir':_0x1ad949(0x16a)},'children':[_0x1b6f68,{'tag':_0x1ad949(0x1a1),'attributes':{'class':[_0x1ad949(0x15f)]},'children':[this[_0x1ad949(0x183)],this[_0x1ad949(0x173)],this[_0x1ad949(0x169)],this[_0x1ad949(0x186)]]}]});}[_0x1afeb2(0x15c)](){const _0x53795c=_0x1afeb2;this[_0x53795c(0x1a0)]=!this[_0x53795c(0x1ae)]&&this[_0x53795c(0x176)],this[_0x53795c(0x193)]=!this[_0x53795c(0x1ae)]&&!this[_0x53795c(0x176)]&&!this[_0x53795c(0x166)],this[_0x53795c(0x175)]=!this[_0x53795c(0x1a0)]&&!!this[_0x53795c(0x166)];}[_0x1afeb2(0x174)](){const _0x91ba39=_0x1afeb2,_0x37a897=new _0x4a9aa2(this[_0x91ba39(0x1a5)],{'filteredView':this[_0x91ba39(0x167)],'queryView':{'label':_0x261629(this[_0x91ba39(0x1a5)],_0x91ba39(0x199))},'infoView':{'text':{'notFound':{'primary':_0x5c647a=>_0x261629(this[_0x91ba39(0x1a5)],_0x91ba39(0x161),_0x5c647a),'secondary':_0x261629(this[_0x91ba39(0x1a5)],_0x91ba39(0x16d))}}}}),_0x380a0f=this[_0x91ba39(0x15a)]();return _0x380a0f[_0x91ba39(0x190)]({'attributes':{'class':[this[_0x91ba39(0x17c)]['if'](_0x91ba39(0x166),_0x91ba39(0x17a),_0x2864e6=>!_0x2864e6)]}}),_0x37a897['on'](_0x91ba39(0x19c),()=>{const _0x5a20f4=_0x91ba39;_0x37a897[_0x5a20f4(0x15b)][_0x5a20f4(0x1a7)](_0x380a0f,0x1);}),_0x37a897[_0x91ba39(0x190)]({'attributes':{'class':[this[_0x91ba39(0x17c)]['if'](_0x91ba39(0x1a0),_0x91ba39(0x17a),_0x5b4815=>!_0x5b4815)]}}),_0x37a897;}[_0x1afeb2(0x152)](){const _0x1db218=_0x1afeb2,_0x113211=new _0x2e814b(this[_0x1db218(0x1a5)],_0x51fd80[_0x1db218(0x156)]);return _0x113211[_0x1db218(0x190)]({'attributes':{'class':[this[_0x1db218(0x17c)]['if'](_0x1db218(0x1ae),_0x1db218(0x17a),_0x4b9e8d=>!_0x4b9e8d)]}}),_0x113211;}[_0x1afeb2(0x15a)](){const _0x3fec94=_0x1afeb2,_0x52be2d=new _0xe98905(this[_0x3fec94(0x1a5)]),_0x35dcc4=new _0x45ce3a(this[_0x3fec94(0x1a5)]);_0x35dcc4[_0x3fec94(0x1a9)]({'withText':!0x1,'icon':_0x5eec41,'class':_0x3fec94(0x187)}),_0x35dcc4[_0x3fec94(0x16e)](_0x3fec94(0x18d))['to'](this,_0x3fec94(0x176),_0x458f65=>!!_0x458f65),_0x35dcc4['on'](_0x3fec94(0x16c),()=>{const _0x5980f5=_0x3fec94;this[_0x5980f5(0x166)]='';});const _0x73bf50=this[_0x3fec94(0x17c)];return _0x52be2d[_0x3fec94(0x182)]({'tag':_0x3fec94(0x1a1),'attributes':{'class':['ck',_0x3fec94(0x168),_0x3fec94(0x185)]},'children':[{'tag':'p','children':[{'text':_0x73bf50['to'](_0x3fec94(0x166))}]},_0x35dcc4]}),_0x52be2d;}[_0x1afeb2(0x195)](){const _0x2aff06=_0x1afeb2,_0x12792f=new _0x45ce3a(this[_0x2aff06(0x1a5)]);_0x12792f[_0x2aff06(0x1a9)]({'label':_0x261629(this[_0x2aff06(0x1a5)],_0x2aff06(0x180)),'withText':!0x0,'icon':_0x364955,'class':_0x2aff06(0x1ab)}),_0x12792f['on'](_0x2aff06(0x16c),()=>{const _0x5a90e1=_0x2aff06;this[_0x5a90e1(0x1a2)](_0x5a90e1(0x191));});const _0x24ff49=new _0xe98905(this[_0x2aff06(0x1a5)]);return _0x24ff49[_0x2aff06(0x182)]({'tag':_0x2aff06(0x1a1),'attributes':{'class':[_0x2aff06(0x19b),this[_0x2aff06(0x17c)]['if'](_0x2aff06(0x193),_0x2aff06(0x17a),_0x2c612c=>!_0x2c612c)]},'children':[{'tag':'p','attributes':{'class':[_0x2aff06(0x1a6)]},'children':[_0x261629(this[_0x2aff06(0x1a5)],_0x2aff06(0x19a))]},_0x12792f]}),_0x24ff49;}[_0x1afeb2(0x192)](_0x850757,_0x470691){const _0x3eaf3c=_0x1afeb2,_0xb422b3=[];for(const _0xa02c49 of _0x850757){const _0x42ceeb=new _0x514225(_0x470691,_0xa02c49);_0x42ceeb[_0x3eaf3c(0x165)](..._0x2df4e1)['to'](this),_0xb422b3[_0x3eaf3c(0x14f)](_0x42ceeb);}return _0xb422b3;}[_0x1afeb2(0x184)](_0x2e1e4c){const _0x125c0e=_0x1afeb2,_0xc4eb96=this[_0x125c0e(0x1a5)]||'en',_0x17a760=[];for(const _0x4da691 of _0x2e1e4c){const _0x149e7a=this[_0x125c0e(0x192)](_0x4da691[_0x125c0e(0x18b)],_0xc4eb96);_0x17a760[_0x125c0e(0x14f)](new _0x2e2054(_0xc4eb96,{'title':_0x4da691[_0x125c0e(0x196)],'items':_0x149e7a}));}this[_0x125c0e(0x167)][_0x125c0e(0x188)]=_0x17a760,this[_0x125c0e(0x167)][_0x125c0e(0x18b)][_0x125c0e(0x1ad)](),this[_0x125c0e(0x167)][_0x125c0e(0x18b)][_0x125c0e(0x198)](_0x17a760),this[_0x125c0e(0x176)]=_0x2e1e4c[_0x125c0e(0x19e)](_0x433aea=>_0x433aea[_0x125c0e(0x18b)][_0x125c0e(0x1a3)]>0x0),this[_0x125c0e(0x163)]();}[_0x1afeb2(0x158)](_0x7a07ef){const _0x1addc8=_0x1afeb2;for(const _0x51a558 of this[_0x1addc8(0x167)][_0x1addc8(0x188)]){const _0x469358=_0x51a558[_0x1addc8(0x178)](_0x7a07ef);if(_0x469358){if(_0x51a558[_0x1addc8(0x19f)](_0x469358),0x0===_0x51a558[_0x1addc8(0x155)][_0x1addc8(0x1a3)]){const _0x5a0e99=this[_0x1addc8(0x167)][_0x1addc8(0x188)][_0x1addc8(0x164)](_0x51a558);-0x1!==_0x5a0e99&&(this[_0x1addc8(0x167)][_0x1addc8(0x188)][_0x1addc8(0x171)](_0x5a0e99,0x1),this[_0x1addc8(0x167)][_0x1addc8(0x18b)][_0x1addc8(0x17d)](_0x51a558));}this[_0x1addc8(0x176)]=this[_0x1addc8(0x167)][_0x1addc8(0x188)][_0x1addc8(0x1a3)]>0x0,this[_0x1addc8(0x163)]();break;}}}[_0x1afeb2(0x17f)](_0x16a1eb,_0x55befa){const _0x1d1f2c=_0x1afeb2;for(const _0x4a4679 of this[_0x1d1f2c(0x167)][_0x1d1f2c(0x188)]){const _0x4153b4=_0x4a4679[_0x1d1f2c(0x178)](_0x16a1eb);if(_0x4153b4){_0x4153b4[_0x1d1f2c(0x18a)](_0x55befa);break;}}}[_0x1afeb2(0x16f)](_0xabf7ad,_0x53f5d5,_0x88038d){const _0x43e430=_0x1afeb2;for(const _0x37ce70 of this[_0x43e430(0x167)][_0x43e430(0x188)]){const _0xc3b1fc=_0x37ce70[_0x43e430(0x178)](_0xabf7ad);if(_0xc3b1fc){_0xc3b1fc[_0x43e430(0x18f)](_0x53f5d5,_0x88038d);break;}}}[_0x1afeb2(0x163)](){const _0x1d3b73=_0x1afeb2;if(this[_0x1d3b73(0x176)]){const _0x5aaa12=this[_0x1d3b73(0x186)][_0x1d3b73(0x15d)][_0x1d3b73(0x1a8)]?.[_0x1d3b73(0x17e)]?.[_0x1d3b73(0x1aa)]||'';this[_0x1d3b73(0x186)][_0x1d3b73(0x18c)](_0x5aaa12);}}}
|
|
23
|
+
const _0x3811f6=_0x4448;(function(_0x2f78de,_0x1135ec){const _0x3bafd3=_0x4448,_0x4478fd=_0x2f78de();while(!![]){try{const _0x2acc98=-parseInt(_0x3bafd3(0x1e9))/0x1+parseInt(_0x3bafd3(0x1c9))/0x2*(-parseInt(_0x3bafd3(0x1d9))/0x3)+-parseInt(_0x3bafd3(0x1bc))/0x4+-parseInt(_0x3bafd3(0x200))/0x5+parseInt(_0x3bafd3(0x1f7))/0x6*(parseInt(_0x3bafd3(0x1d0))/0x7)+parseInt(_0x3bafd3(0x1bd))/0x8*(-parseInt(_0x3bafd3(0x1e6))/0x9)+parseInt(_0x3bafd3(0x1e4))/0xa;if(_0x2acc98===_0x1135ec)break;else _0x4478fd['push'](_0x4478fd['shift']());}catch(_0x26fa6d){_0x4478fd['push'](_0x4478fd['shift']());}}}(_0x2e66,0x34e67));import{View as _0x35ee7e,SearchTextView as _0xd8b7ae,FormHeaderView as _0x18df13,ButtonView as _0x308e8c}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3963c0,IconCancel as _0x29f2d6,IconPlus as _0x581c2a}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x546df9}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x177fde}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x449a88}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2ec27f}from'../aichathistoryui.js';import{AISkeletonView as _0xf76c91,SKELETON_DEFINITIONS as _0x3bf8de}from'../../aicore/ui/aiskeleton.js';function _0x4448(_0x36435a,_0x1c77ad){const _0x2e6631=_0x2e66();return _0x4448=function(_0x444801,_0x1a6ce9){_0x444801=_0x444801-0x1a9;let _0x45b45e=_0x2e6631[_0x444801];return _0x45b45e;},_0x4448(_0x36435a,_0x1c77ad);}import{createResizeButton as _0x5cabbd}from'../../aicore/utils/createresizebutton.js';function _0x2e66(){const _0x5604fe=['set','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__empty-message','ck-ai-chat-history__content','errorMessage','removeItem','change:isLoading','438Izfrjk','updateHistoryItemsWithCategories','add','bindTemplate','ck-ai-chat-history','change:errorMessage','updateLoadingState','735721rpWNhH','searchView','emptyView','ck-reset_all','_updateViewVisibility','ck-ai-notification','updateItemLoadingState','splice','length','4815GSIBfs','addMany','ck-ai-chat-history__empty','value','resizeButton','delegate','getItem','sectionsView','isVisible','isMainErrorViewVisible','ltr','14610790xqvZeZ','itemsViews','52335wPKLFO','AI_CHAT_HISTORY_HEADING','element','69295hlclhj','isEmptyViewVisible','removeHistoryItem','AI_CHAT_LABEL_NEW_CHAT','ck-ai-notification_error','title','div','setTemplate','queryView','updateItemTitle','_createEmptyStateView','remove','fire','search','18VnQqZp','updateTitle','isMaximized','extendTemplate','aiHistory','sections','some','children','bind','2066095TSbmOM','render','_refreshSearch','fieldView','ck-ai-notification_error__dismiss-button','clear','locale','isLoading','push','indexOf','ck-rounded-corners','_createErrorView','ck-hidden','execute','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','AI_CHAT_HISTORY_SEARCH_LABEL','change:hasItems','skeletonView','items','ck-ai-chat__start-conversation','isSearchViewVisible','_createSearchView','hasItems','_createSkeletonView','1251340FRzSTC','568kFcHLn','openChat','_createListItemViews','ck-ai-header\x20ck-ai-header_history','mainErrorView'];_0x2e66=function(){return _0x5604fe;};return _0x2e66();}import{getTranslation as _0x10c7f0}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x35ee7e{[_0x3811f6(0x1d1)];[_0x3811f6(0x1c1)];[_0x3811f6(0x1b5)];[_0x3811f6(0x1d2)];[_0x3811f6(0x1e0)];[_0x3811f6(0x1dd)];constructor(_0xc1f7a0,_0x37fd66){const _0xc10e05=_0x3811f6;super(_0xc1f7a0),this[_0xc10e05(0x1c2)](_0xc10e05(0x1ba),!0x1),this[_0xc10e05(0x1c2)](_0xc10e05(0x1aa),!0x0),this[_0xc10e05(0x1c2)](_0xc10e05(0x1c6),''),this[_0xc10e05(0x1c2)](_0xc10e05(0x1f9),!0x1),this[_0xc10e05(0x1c2)](_0xc10e05(0x1b8),!0x1),this[_0xc10e05(0x1c2)](_0xc10e05(0x1ea),!0x1),this[_0xc10e05(0x1c2)](_0xc10e05(0x1e2),!0x1);const _0x58f52b=new _0x18df13(_0xc1f7a0,{'label':_0x10c7f0(_0xc1f7a0,_0xc10e05(0x1e7)),'icon':_0x3963c0,'class':_0xc10e05(0x1c0)});_0x37fd66&&(this[_0xc10e05(0x1dd)]=_0x5cabbd(_0xc1f7a0,this),_0x58f52b[_0xc10e05(0x1fe)][_0xc10e05(0x1cb)](this[_0xc10e05(0x1dd)])),this[_0xc10e05(0x1e0)]=new _0x546df9(_0xc1f7a0,[]),this[_0xc10e05(0x1e0)][_0xc10e05(0x1de)](..._0x2ec27f)['to'](this),this[_0xc10e05(0x1c1)]=this[_0xc10e05(0x1ae)](),this[_0xc10e05(0x1b5)]=this[_0xc10e05(0x1bb)](),this[_0xc10e05(0x1d2)]=this[_0xc10e05(0x1f3)](),this[_0xc10e05(0x1d1)]=this[_0xc10e05(0x1b9)](),this[_0xc10e05(0x1c1)][_0xc10e05(0x1fa)]({'attributes':{'class':[this[_0xc10e05(0x1cc)]['if'](_0xc10e05(0x1e2),_0xc10e05(0x1af),_0x2c1ca=>!_0x2c1ca)]}}),this['on'](_0xc10e05(0x1c8),()=>this[_0xc10e05(0x1d4)]()),this['on'](_0xc10e05(0x1b4),()=>this[_0xc10e05(0x1d4)]()),this['on'](_0xc10e05(0x1ce),()=>this[_0xc10e05(0x1d4)]()),this[_0xc10e05(0x1f0)]({'tag':_0xc10e05(0x1ef),'attributes':{'class':['ck',_0xc10e05(0x1d3),_0xc10e05(0x1cd),_0xc10e05(0x1ad)],'dir':_0xc10e05(0x1e3)},'children':[_0x58f52b,{'tag':_0xc10e05(0x1ef),'attributes':{'class':[_0xc10e05(0x1c5)]},'children':[this[_0xc10e05(0x1b5)],this[_0xc10e05(0x1c1)],this[_0xc10e05(0x1d2)],this[_0xc10e05(0x1d1)]]}]});}[_0x3811f6(0x1d4)](){const _0x998855=_0x3811f6;this[_0x998855(0x1b8)]=!this[_0x998855(0x1aa)]&&this[_0x998855(0x1ba)],this[_0x998855(0x1ea)]=!this[_0x998855(0x1aa)]&&!this[_0x998855(0x1ba)]&&!this[_0x998855(0x1c6)],this[_0x998855(0x1e2)]=!this[_0x998855(0x1b8)]&&!!this[_0x998855(0x1c6)];}[_0x3811f6(0x1b9)](){const _0x3dccde=_0x3811f6,_0x1916ca=new _0xd8b7ae(this[_0x3dccde(0x1a9)],{'filteredView':this[_0x3dccde(0x1e0)],'queryView':{'label':_0x10c7f0(this[_0x3dccde(0x1a9)],_0x3dccde(0x1b3))},'infoView':{'text':{'notFound':{'primary':_0xb54302=>_0x10c7f0(this[_0x3dccde(0x1a9)],_0x3dccde(0x1b2),_0xb54302),'secondary':_0x10c7f0(this[_0x3dccde(0x1a9)],_0x3dccde(0x1b1))}}}}),_0x4458ee=this[_0x3dccde(0x1ae)]();return _0x4458ee[_0x3dccde(0x1fa)]({'attributes':{'class':[this[_0x3dccde(0x1cc)]['if'](_0x3dccde(0x1c6),_0x3dccde(0x1af),_0x5c3cfa=>!_0x5c3cfa)]}}),_0x1916ca['on'](_0x3dccde(0x201),()=>{const _0xee03bf=_0x3dccde;_0x1916ca[_0xee03bf(0x1fe)][_0xee03bf(0x1cb)](_0x4458ee,0x1);}),_0x1916ca[_0x3dccde(0x1fa)]({'attributes':{'class':[this[_0x3dccde(0x1cc)]['if'](_0x3dccde(0x1b8),_0x3dccde(0x1af),_0x25c548=>!_0x25c548)]}}),_0x1916ca;}[_0x3811f6(0x1bb)](){const _0x5db565=_0x3811f6,_0x20f298=new _0xf76c91(this[_0x5db565(0x1a9)],_0x3bf8de[_0x5db565(0x1fb)]);return _0x20f298[_0x5db565(0x1fa)]({'attributes':{'class':[this[_0x5db565(0x1cc)]['if'](_0x5db565(0x1aa),_0x5db565(0x1af),_0x276c38=>!_0x276c38)]}}),_0x20f298;}[_0x3811f6(0x1ae)](){const _0x275779=_0x3811f6,_0x1fb622=new _0x35ee7e(this[_0x275779(0x1a9)]),_0xa27255=new _0x308e8c(this[_0x275779(0x1a9)]);_0xa27255[_0x275779(0x1c2)]({'withText':!0x1,'icon':_0x29f2d6,'class':_0x275779(0x204)}),_0xa27255[_0x275779(0x1ff)](_0x275779(0x1e1))['to'](this,_0x275779(0x1ba),_0x58aeb0=>!!_0x58aeb0),_0xa27255['on'](_0x275779(0x1b0),()=>{const _0x2067ae=_0x275779;this[_0x2067ae(0x1c6)]='';});const _0x33aec9=this[_0x275779(0x1cc)];return _0x1fb622[_0x275779(0x1f0)]({'tag':_0x275779(0x1ef),'attributes':{'class':['ck',_0x275779(0x1d5),_0x275779(0x1ed)]},'children':[{'tag':'p','children':[{'text':_0x33aec9['to'](_0x275779(0x1c6))}]},_0xa27255]}),_0x1fb622;}[_0x3811f6(0x1f3)](){const _0x5d93b2=_0x3811f6,_0x32939b=new _0x308e8c(this[_0x5d93b2(0x1a9)]);_0x32939b[_0x5d93b2(0x1c2)]({'label':_0x10c7f0(this[_0x5d93b2(0x1a9)],_0x5d93b2(0x1ec)),'withText':!0x0,'icon':_0x581c2a,'class':_0x5d93b2(0x1b7)}),_0x32939b['on'](_0x5d93b2(0x1b0),()=>{const _0x1c2db2=_0x5d93b2;this[_0x1c2db2(0x1f5)](_0x1c2db2(0x1be));});const _0x3c4383=new _0x35ee7e(this[_0x5d93b2(0x1a9)]);return _0x3c4383[_0x5d93b2(0x1f0)]({'tag':_0x5d93b2(0x1ef),'attributes':{'class':[_0x5d93b2(0x1db),this[_0x5d93b2(0x1cc)]['if'](_0x5d93b2(0x1ea),_0x5d93b2(0x1af),_0x240498=>!_0x240498)]},'children':[{'tag':'p','attributes':{'class':[_0x5d93b2(0x1c4)]},'children':[_0x10c7f0(this[_0x5d93b2(0x1a9)],_0x5d93b2(0x1c3))]},_0x32939b]}),_0x3c4383;}[_0x3811f6(0x1bf)](_0x573fdc,_0x58e383){const _0x40d5b4=_0x3811f6,_0x42ca38=[];for(const _0x2a56cb of _0x573fdc){const _0x33219f=new _0x449a88(_0x58e383,_0x2a56cb);_0x33219f[_0x40d5b4(0x1de)](..._0x2ec27f)['to'](this),_0x42ca38[_0x40d5b4(0x1ab)](_0x33219f);}return _0x42ca38;}[_0x3811f6(0x1ca)](_0x15c5e4){const _0x19a08a=_0x3811f6,_0x299ed7=this[_0x19a08a(0x1a9)]||'en',_0x31095b=[];for(const _0x10cf19 of _0x15c5e4){const _0x57cebc=this[_0x19a08a(0x1bf)](_0x10cf19[_0x19a08a(0x1b6)],_0x299ed7);_0x31095b[_0x19a08a(0x1ab)](new _0x177fde(_0x299ed7,{'title':_0x10cf19[_0x19a08a(0x1ee)],'items':_0x57cebc}));}this[_0x19a08a(0x1e0)][_0x19a08a(0x1fc)]=_0x31095b,this[_0x19a08a(0x1e0)][_0x19a08a(0x1b6)][_0x19a08a(0x205)](),this[_0x19a08a(0x1e0)][_0x19a08a(0x1b6)][_0x19a08a(0x1da)](_0x31095b),this[_0x19a08a(0x1ba)]=_0x15c5e4[_0x19a08a(0x1fd)](_0x452aec=>_0x452aec[_0x19a08a(0x1b6)][_0x19a08a(0x1d8)]>0x0),this[_0x19a08a(0x202)]();}[_0x3811f6(0x1eb)](_0x3ba585){const _0xa02a5f=_0x3811f6;for(const _0x45e314 of this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1fc)]){const _0x4932cc=_0x45e314[_0xa02a5f(0x1df)](_0x3ba585);if(_0x4932cc){if(_0x45e314[_0xa02a5f(0x1c7)](_0x4932cc),0x0===_0x45e314[_0xa02a5f(0x1e5)][_0xa02a5f(0x1d8)]){const _0x352f43=this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1fc)][_0xa02a5f(0x1ac)](_0x45e314);-0x1!==_0x352f43&&(this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1fc)][_0xa02a5f(0x1d7)](_0x352f43,0x1),this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1b6)][_0xa02a5f(0x1f4)](_0x45e314));}this[_0xa02a5f(0x1ba)]=this[_0xa02a5f(0x1e0)][_0xa02a5f(0x1fc)][_0xa02a5f(0x1d8)]>0x0,this[_0xa02a5f(0x202)]();break;}}}[_0x3811f6(0x1f2)](_0x5b5c95,_0x12d7e4){const _0x4afb30=_0x3811f6;for(const _0x166232 of this[_0x4afb30(0x1e0)][_0x4afb30(0x1fc)]){const _0x22fbba=_0x166232[_0x4afb30(0x1df)](_0x5b5c95);if(_0x22fbba){_0x22fbba[_0x4afb30(0x1f8)](_0x12d7e4);break;}}}[_0x3811f6(0x1d6)](_0x271a48,_0x4d4839,_0x3c24b1){const _0x2529cd=_0x3811f6;for(const _0x2df0db of this[_0x2529cd(0x1e0)][_0x2529cd(0x1fc)]){const _0x3809e2=_0x2df0db[_0x2529cd(0x1df)](_0x271a48);if(_0x3809e2){_0x3809e2[_0x2529cd(0x1cf)](_0x4d4839,_0x3c24b1);break;}}}[_0x3811f6(0x202)](){const _0x3a3646=_0x3811f6;if(this[_0x3a3646(0x1ba)]){const _0x2bcdaf=this[_0x3a3646(0x1d1)][_0x3a3646(0x1f1)][_0x3a3646(0x203)]?.[_0x3a3646(0x1e8)]?.[_0x3a3646(0x1dc)]||'';this[_0x3a3646(0x1d1)][_0x3a3646(0x1f6)](_0x2bcdaf);}}}
|