@ckeditor/ckeditor5-ai 47.4.0-alpha.6 → 47.4.0
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/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/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/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/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aicore/utils/scrollmanager.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/aiquickactionsfilteredlistview.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/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.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
|
-
const _0x55ef17=_0x1367;function _0x1367(_0x434ab4,_0x359c4f){const _0xc4abf2=_0xc4ab();return _0x1367=function(_0x1367d0,_0x4546bd){_0x1367d0=_0x1367d0-0x9a;let _0x2b1c47=_0xc4abf2[_0x1367d0];return _0x2b1c47;},_0x1367(_0x434ab4,_0x359c4f);}function _0xc4ab(){const _0xbce5e8=['AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','showChangeInTextModel','ck-ai-chat__feed__ai-suggestion__actions--no-animation','isEnabled','listView','listenTo','updateLabels','locale','ck-ai-chat__feed__ai-suggestion__actions__balloon','arrowless','unbind','hide','280647VeGaYC','element','filter','insertSuggestionModel','length','insertSuggestion','attachToDom','children','add','42BXRmfS','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','_createActionsDropdown','content','_firstRender','arrowView','ck-ai-chat__feed__ai-suggestion__actions','set','325505AvGmcj','delegate','fire','44GOczrg','change:isTrackChangesOn','items','div','1656354HGncBL','label','balloonPanelClass','applySuggestion','ltr','_dropdownCurrentConfig','7654096SfgqnN','ck-ai-button-primary','source','left','actionName','createCollection','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','_createActionsDropdownOrButton','1796847asfczL','pin','applySuggestionModel','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','bindTemplate','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','31629yjnhud','isTrackChangesOn','balloonPanelView','3734932DsyYKL','ck-hidden','detachFromDom','actionsButton','open','listItemModels','destroy','showChangeInText','width','_dropdownOriginalConfig','isVisible','keys','button','uiLanguageDirection','bottom','remove','class','ck-ai-chat__feed__ai-suggestion__actions\x20','tooltip','has','esc','_setUpKeystrokes','_setUpList','focus','slice','bind','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','_createActionsButton','keystrokeHandler','setTemplate','_partsCount','execute','map','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','bodyCollection','_updateDropdownActions','1010IKSEgP'];_0xc4ab=function(){return _0xbce5e8;};return _0xc4ab();}(function(_0xf3433e,_0x34c407){const _0x1ba66e=_0x1367,_0x47ffb0=_0xf3433e();while(!![]){try{const _0x1988bf=-parseInt(_0x1ba66e(0xc0))/0x1+parseInt(_0x1ba66e(0xae))/0x2*(parseInt(_0x1ba66e(0xc6))/0x3)+-parseInt(_0x1ba66e(0xc9))/0x4+parseInt(_0x1ba66e(0xab))/0x5*(-parseInt(_0x1ba66e(0xa3))/0x6)+-parseInt(_0x1ba66e(0xb2))/0x7+parseInt(_0x1ba66e(0xb8))/0x8+-parseInt(_0x1ba66e(0x9a))/0x9*(-parseInt(_0x1ba66e(0xed))/0xa);if(_0x1988bf===_0x34c407)break;else _0x47ffb0['push'](_0x47ffb0['shift']());}catch(_0x5f5cd7){_0x47ffb0['push'](_0x47ffb0['shift']());}}}(_0xc4ab,0xdf752));import{KeystrokeHandler as _0xa72274}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x9b58c5,BodyCollection as _0x76d23c,ButtonView as _0x2c6490,clickOutsideHandler as _0x119957,ListItemButtonView as _0x68714,ListItemView as _0x123447,ListView as _0x467c9a,SplitButtonView as _0x3b8690,UIModel as _0x953fc6,View as _0x3c9f3e}from'ckeditor5/src/ui.js';import{IconCheck as _0x259b02,IconAddComment as _0x2809d9,IconDocumentWithLoupe as _0x58aa5e}from'ckeditor5/src/icons.js';import{getTranslation as _0xa3aa7e}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x55ef17(0xb5),_0x55ef17(0x9f),_0x55ef17(0xd0)];export class AIChatFeedSuggestionItemActionsView extends _0x3c9f3e{[_0x55ef17(0xcc)];[_0x55ef17(0xa1)];[_0x55ef17(0xc2)];[_0x55ef17(0xef)];[_0x55ef17(0x9d)];[_0x55ef17(0xe7)]=0x1;[_0x55ef17(0xd2)];[_0x55ef17(0xb7)];[_0x55ef17(0xa7)]=!0x0;constructor(_0x245993,_0x19e090){const _0x467535=_0x55ef17;super(_0x245993),this[_0x467535(0xd2)]=_0x19e090||[...AI_REPLY_ACTIONS],this[_0x467535(0xb7)]=[...this[_0x467535(0xd2)]];const _0x7810a=this[_0x467535(0xc4)];this[_0x467535(0xaa)](_0x467535(0xf1),!0x0),this[_0x467535(0xaa)](_0x467535(0xd3),!0x0),this[_0x467535(0xaa)](_0x467535(0xc7),!0x1),this[_0x467535(0xc2)]=new _0x953fc6({'label':Nn(_0x467535(0xb5),_0x245993,this[_0x467535(0xe7)]),'icon':_0x259b02,'withText':!0x0,'type':_0x467535(0xd5),'actionName':_0x467535(0xb5)}),this[_0x467535(0xef)]=new _0x953fc6({'label':Nn(_0x467535(0xd0),_0x245993,this[_0x467535(0xe7)]),'icon':_0x58aa5e,'withText':!0x0,'type':_0x467535(0xd5),'actionName':_0x467535(0xd0)}),this[_0x467535(0x9d)]=new _0x953fc6({'label':Nn(_0x467535(0x9f),_0x245993,this[_0x467535(0xe7)]),'icon':_0x2809d9,'withText':!0x0,'type':_0x467535(0xd5),'actionName':_0x467535(0x9f)}),this[_0x467535(0xcc)]=this[_0x467535(0xbf)](_0x245993),this[_0x467535(0xa1)]=this[_0x467535(0xbd)](),this[_0x467535(0xcc)]&&this[_0x467535(0xa1)][_0x467535(0xa2)](this[_0x467535(0xcc)]),this[_0x467535(0xe6)]({'tag':_0x467535(0xb1),'attributes':{'class':['ck',_0x467535(0xa9),_0x7810a['if'](_0x467535(0xd3),_0x467535(0xca),_0x31c194=>!_0x31c194)]},'children':this[_0x467535(0xa1)]}),this['on'](_0x467535(0xaf),()=>{const _0x51e28e=_0x467535;this[_0x51e28e(0xb7)]=this[_0x51e28e(0xc7)]?this[_0x51e28e(0xd2)][_0x51e28e(0x9c)](_0x43b7d0=>_0x51e28e(0xb5)!==_0x43b7d0):[...this[_0x51e28e(0xd2)]],this[_0x51e28e(0xec)](_0x245993);});}[_0x55ef17(0xec)](_0x4c1a16){const _0x2125e=_0x55ef17;this[_0x2125e(0xcc)]&&this[_0x2125e(0xa1)][_0x2125e(0xdc)](this[_0x2125e(0xcc)])&&(this[_0x2125e(0xa1)][_0x2125e(0xd8)](this[_0x2125e(0xcc)]),this[_0x2125e(0xcc)][_0x2125e(0xcf)]()),this[_0x2125e(0xcc)]=this[_0x2125e(0xbf)](_0x4c1a16),this[_0x2125e(0xcc)]&&this[_0x2125e(0xa1)][_0x2125e(0xa2)](this[_0x2125e(0xcc)]);}[_0x55ef17(0xbf)](_0x39a01e){const _0x40a8bd=_0x55ef17;if(0x0==this[_0x40a8bd(0xb7)][_0x40a8bd(0x9e)])return null;const _0x2f98e2=0x1===this[_0x40a8bd(0xb7)][_0x40a8bd(0x9e)]?this[_0x40a8bd(0xe4)](_0x39a01e):this[_0x40a8bd(0xa5)](_0x39a01e),_0xb94661=this[_0x40a8bd(0xa7)]?'':_0x40a8bd(0xf0);_0x2f98e2[_0x40a8bd(0xaa)]({'label':Nn(this[_0x40a8bd(0xb7)][0x0],_0x39a01e,this[_0x40a8bd(0xe7)]),'tooltip':fn(this[_0x40a8bd(0xb7)][0x0],_0x39a01e,this[_0x40a8bd(0xe7)]),'withText':!0x0,'class':_0x40a8bd(0xda)+_0xb94661});for(const _0x96c11a of this[_0x40a8bd(0xb7)])_0x2f98e2['on'](_0x96c11a,()=>{const _0x21d190=_0x40a8bd;this[_0x21d190(0xad)](_0x96c11a);});return this[_0x40a8bd(0xa7)]=!0x1,_0x2f98e2;}[_0x55ef17(0xe4)](_0x2246c5){const _0x5c0834=_0x55ef17,_0x1613b0=new _0x2c6490(_0x2246c5);return _0x1613b0[_0x5c0834(0xaa)]({'class':_0x5c0834(0xb9),'withText':!0x0}),_0x1613b0['on'](_0x5c0834(0xe8),()=>{const _0x6e6ada=_0x5c0834;_0x1613b0[_0x6e6ada(0xad)](this[_0x6e6ada(0xb7)][0x0]);}),_0x1613b0;}[_0x55ef17(0xa5)](_0x2f58c6){const _0x585ca4=_0x55ef17,_0x5143cf=new An(_0x2f58c6,{'listItemModels':this[_0x585ca4(0xb7)][_0x585ca4(0xe9)](_0x4abf22=>{const _0xd4654d=_0x585ca4;switch(_0x4abf22){case _0xd4654d(0xb5):return this[_0xd4654d(0xc2)];case _0xd4654d(0xd0):return this[_0xd4654d(0xef)];case _0xd4654d(0x9f):return this[_0xd4654d(0x9d)];}})});return _0x5143cf[_0x585ca4(0xaa)]({'label':Nn(this[_0x585ca4(0xb7)][0x0],_0x2f58c6,this[_0x585ca4(0xe7)]),'tooltip':fn(this[_0x585ca4(0xb7)][0x0],_0x2f58c6,this[_0x585ca4(0xe7)]),'withText':!0x0,'class':_0x585ca4(0xa9),'balloonPanelClass':_0x585ca4(0xf6)}),_0x5143cf[_0x585ca4(0xe2)](_0x585ca4(0xf1))['to'](this),_0x5143cf;}[_0x55ef17(0xf4)](_0x4265a9){const _0x159dad=_0x55ef17,_0x8bf84=this[_0x159dad(0xf5)];this[_0x159dad(0xe7)]=_0x4265a9||this[_0x159dad(0xe7)],this[_0x159dad(0xcc)][_0x159dad(0xaa)]({'label':Nn(this[_0x159dad(0xb7)][0x0],_0x8bf84,this[_0x159dad(0xe7)]),'tooltip':fn(this[_0x159dad(0xb7)][0x0],_0x8bf84,this[_0x159dad(0xe7)])}),this[_0x159dad(0xc2)][_0x159dad(0xb3)]=Nn(_0x159dad(0xb5),_0x8bf84,this[_0x159dad(0xe7)]),this[_0x159dad(0xef)][_0x159dad(0xb3)]=Nn(_0x159dad(0xd0),_0x8bf84,this[_0x159dad(0xe7)]),this[_0x159dad(0x9d)][_0x159dad(0xb3)]=Nn(_0x159dad(0x9f),_0x8bf84,this[_0x159dad(0xe7)]);}}class An extends _0x3b8690{[_0x55ef17(0xeb)];[_0x55ef17(0xc8)];[_0x55ef17(0xf2)];[_0x55ef17(0xe5)];constructor(_0x353740,_0x2a3b79){const _0x3af767=_0x55ef17;super(_0x353740),this[_0x3af767(0xc8)]=new _0x9b58c5(this[_0x3af767(0xf5)]),this[_0x3af767(0xeb)]=new _0x76d23c(this[_0x3af767(0xf5)]),this[_0x3af767(0xeb)][_0x3af767(0xa0)](),this[_0x3af767(0xaa)](_0x3af767(0xb4),''),this[_0x3af767(0xc8)][_0x3af767(0xe2)](_0x3af767(0xd9))['to'](this,_0x3af767(0xb4)),this[_0x3af767(0xf2)]=this[_0x3af767(0xdf)](_0x2a3b79[_0x3af767(0xce)][_0x3af767(0xe1)](0x1)),this[_0x3af767(0xeb)][_0x3af767(0xa2)](this[_0x3af767(0xc8)]),this[_0x3af767(0xc8)][_0x3af767(0xa6)][_0x3af767(0xa2)](this[_0x3af767(0xf2)]),this[_0x3af767(0xa8)][_0x3af767(0xf8)](_0x3af767(0xdb)),this[_0x3af767(0xa8)][_0x3af767(0xaa)](_0x3af767(0xdb),_0xa3aa7e(this[_0x3af767(0xf5)],_0x3af767(0xee))),this[_0x3af767(0xde)](),this['on'](_0x3af767(0xe8),()=>{const _0x1df390=_0x3af767,_0xac6212=_0x2a3b79[_0x1df390(0xce)][0x0][_0x1df390(0xbc)];this[_0x1df390(0xad)](_0xac6212),this[_0x1df390(0xc8)][_0x1df390(0xf9)](),this[_0x1df390(0xa8)][_0x1df390(0xe0)]();}),this['on'](_0x3af767(0xcd),()=>{const _0x50a152=_0x3af767;this[_0x50a152(0xc8)][_0x50a152(0xd3)]?(this[_0x50a152(0xc8)][_0x50a152(0xf9)](),this[_0x50a152(0xa8)][_0x50a152(0xe0)]()):(this[_0x50a152(0xc8)][_0x50a152(0xc1)]({'target':this[_0x50a152(0x9b)],'positions':[_0x50a152(0xb6)===this[_0x50a152(0xf5)][_0x50a152(0xd6)]?Cn:On]}),this[_0x50a152(0xf2)][_0x50a152(0xe0)]());}),_0x119957({'emitter':this[_0x3af767(0xc8)],'callback':()=>{const _0x21e2d1=_0x3af767;this[_0x21e2d1(0xc8)][_0x21e2d1(0xf9)]();},'activator':()=>this[_0x3af767(0xc8)][_0x3af767(0xd3)],'contextElements':()=>[this[_0x3af767(0x9b)],this[_0x3af767(0xc8)][_0x3af767(0x9b)]]});}[_0x55ef17(0xdf)](_0x451f7d){const _0x278b53=_0x55ef17,_0x34b734=this[_0x278b53(0xf5)],_0x96c29b=new _0x467c9a(_0x34b734);for(const _0x232ef6 of _0x451f7d){const _0x264aa0=new _0x123447(_0x34b734),_0x42f2ac=new _0x68714(_0x34b734);_0x42f2ac[_0x278b53(0xe2)](...Object[_0x278b53(0xd4)](_0x232ef6))['to'](_0x232ef6),_0x42f2ac[_0x278b53(0xac)](_0x278b53(0xe8))['to'](_0x96c29b),_0x264aa0[_0x278b53(0xa1)][_0x278b53(0xa2)](_0x42f2ac),_0x96c29b[_0x278b53(0xb0)][_0x278b53(0xa2)](_0x264aa0);}return _0x96c29b[_0x278b53(0xb0)][_0x278b53(0xac)](_0x278b53(0xe8))['to'](this),_0x96c29b['on'](_0x278b53(0xe8),_0x1e8e49=>{const _0x32ea85=_0x278b53,_0x37697a=_0x1e8e49[_0x32ea85(0xba)];this[_0x32ea85(0xad)](_0x37697a[_0x32ea85(0xbc)]),this[_0x32ea85(0xc8)][_0x32ea85(0xf9)](),this[_0x32ea85(0xa8)][_0x32ea85(0xe0)]();}),_0x96c29b;}[_0x55ef17(0xde)](){const _0x28bdc3=_0x55ef17;this[_0x28bdc3(0xe5)]=new _0xa72274(),this[_0x28bdc3(0xe5)][_0x28bdc3(0xf3)](this[_0x28bdc3(0xc8)][_0x28bdc3(0x9b)]),this[_0x28bdc3(0xe5)][_0x28bdc3(0xaa)](_0x28bdc3(0xdd),(_0x3b72eb,_0x4dcf18)=>{const _0x367b72=_0x28bdc3;this[_0x367b72(0xc8)][_0x367b72(0xf9)](),this[_0x367b72(0xa8)][_0x367b72(0xe0)](),_0x4dcf18();});}[_0x55ef17(0xcf)](){const _0x3f2901=_0x55ef17;super[_0x3f2901(0xcf)](),this[_0x3f2901(0xe5)][_0x3f2901(0xcf)](),this[_0x3f2901(0xc8)][_0x3f2901(0xcf)](),this[_0x3f2901(0xeb)][_0x3f2901(0xcb)]();}}function Cn(_0x53798b){const _0x1dacfa=_0x55ef17;return{'top':_0x53798b[_0x1dacfa(0xd7)],'left':_0x53798b[_0x1dacfa(0xbb)],'name':_0x1dacfa(0xf7),'config':{'withArrow':!0x1}};}function On(_0x5baf6c,_0x19213b){const _0x14b447=_0x55ef17;return{'top':_0x5baf6c[_0x14b447(0xd7)],'left':_0x5baf6c[_0x14b447(0xbb)]-(_0x19213b[_0x14b447(0xd1)]-_0x5baf6c[_0x14b447(0xd1)]),'name':_0x14b447(0xf7),'config':{'withArrow':!0x1}};}function Nn(_0x1c97f3,_0x304d00,_0x37e2e4){const _0x224a4a=_0x55ef17;switch(_0x1c97f3){case _0x224a4a(0xb5):return _0xa3aa7e(_0x304d00,_0x224a4a(0xbe),_0x37e2e4);case _0x224a4a(0xd0):return _0xa3aa7e(_0x304d00,_0x224a4a(0xc3),_0x37e2e4);case _0x224a4a(0x9f):return _0xa3aa7e(_0x304d00,_0x224a4a(0xc5),_0x37e2e4);}}function fn(_0x43086a,_0x2a651a,_0x166386){const _0x539f88=_0x55ef17;switch(_0x43086a){case _0x539f88(0xb5):return _0xa3aa7e(_0x2a651a,_0x539f88(0xea),_0x166386);case _0x539f88(0xd0):return _0xa3aa7e(_0x2a651a,_0x539f88(0xa4),_0x166386);case _0x539f88(0x9f):return _0xa3aa7e(_0x2a651a,_0x539f88(0xe3),_0x166386);}}
|
|
23
|
+
function _0x3382(_0x1f1e2c,_0x8f0f5a){const _0xd6e727=_0xd6e7();return _0x3382=function(_0x3382c2,_0x1a1c67){_0x3382c2=_0x3382c2-0xce;let _0x43993a=_0xd6e727[_0x3382c2];return _0x43993a;},_0x3382(_0x1f1e2c,_0x8f0f5a);}const _0x568f77=_0x3382;(function(_0x116c90,_0x248094){const _0x11f130=_0x3382,_0x45d6cd=_0x116c90();while(!![]){try{const _0x40b7a0=-parseInt(_0x11f130(0xd1))/0x1*(parseInt(_0x11f130(0x128))/0x2)+-parseInt(_0x11f130(0x11b))/0x3+-parseInt(_0x11f130(0xfd))/0x4*(parseInt(_0x11f130(0x116))/0x5)+parseInt(_0x11f130(0xdb))/0x6*(parseInt(_0x11f130(0xda))/0x7)+-parseInt(_0x11f130(0x111))/0x8+-parseInt(_0x11f130(0xf2))/0x9*(-parseInt(_0x11f130(0x12d))/0xa)+parseInt(_0x11f130(0xf6))/0xb;if(_0x40b7a0===_0x248094)break;else _0x45d6cd['push'](_0x45d6cd['shift']());}catch(_0x325117){_0x45d6cd['push'](_0x45d6cd['shift']());}}}(_0xd6e7,0xa0436));import{KeystrokeHandler as _0x3024bb}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x4d23ed,BodyCollection as _0x3f5691,ButtonView as _0xaf1ea9,clickOutsideHandler as _0x1c1e64,ListItemButtonView as _0x42bde,ListItemView as _0x59c04a,ListView as _0x5d537a,SplitButtonView as _0x5b6b0b,UIModel as _0x184a60,View as _0x5b56b9}from'ckeditor5/src/ui.js';import{IconCheck as _0xabe52,IconAddComment as _0x454b61,IconDocumentWithLoupe as _0x576475}from'ckeditor5/src/icons.js';import{getTranslation as _0x5b3f11}from'../../../aicore/utils/common-translations.js';export const AI_REPLY_ACTIONS=[_0x568f77(0xe2),_0x568f77(0x11d),_0x568f77(0xf9)];export class AIChatFeedSuggestionItemActionsView extends _0x5b56b9{[_0x568f77(0xdc)];[_0x568f77(0x106)];[_0x568f77(0x10a)];[_0x568f77(0xfb)];[_0x568f77(0x124)];[_0x568f77(0x10c)]=0x1;[_0x568f77(0x117)];[_0x568f77(0xd8)];[_0x568f77(0x11c)]=!0x0;constructor(_0x22d614,_0x2e8a85){const _0x2dcc8a=_0x568f77;super(_0x22d614),this[_0x2dcc8a(0x117)]=_0x2e8a85||[...AI_REPLY_ACTIONS],this[_0x2dcc8a(0xd8)]=[...this[_0x2dcc8a(0x117)]];const _0x2054e7=this[_0x2dcc8a(0x10b)];this[_0x2dcc8a(0xd0)](_0x2dcc8a(0x115),!0x0),this[_0x2dcc8a(0xd0)](_0x2dcc8a(0xfa),!0x0),this[_0x2dcc8a(0xd0)](_0x2dcc8a(0x11e),!0x1),this[_0x2dcc8a(0x10a)]=new _0x184a60({'label':jn(_0x2dcc8a(0xe2),_0x22d614,this[_0x2dcc8a(0x10c)]),'icon':_0xabe52,'withText':!0x0,'type':_0x2dcc8a(0x11a),'actionName':_0x2dcc8a(0xe2)}),this[_0x2dcc8a(0xfb)]=new _0x184a60({'label':jn(_0x2dcc8a(0xf9),_0x22d614,this[_0x2dcc8a(0x10c)]),'icon':_0x576475,'withText':!0x0,'type':_0x2dcc8a(0x11a),'actionName':_0x2dcc8a(0xf9)}),this[_0x2dcc8a(0x124)]=new _0x184a60({'label':jn(_0x2dcc8a(0x11d),_0x22d614,this[_0x2dcc8a(0x10c)]),'icon':_0x454b61,'withText':!0x0,'type':_0x2dcc8a(0x11a),'actionName':_0x2dcc8a(0x11d)}),this[_0x2dcc8a(0xdc)]=this[_0x2dcc8a(0xf4)](_0x22d614),this[_0x2dcc8a(0x106)]=this[_0x2dcc8a(0x122)](),this[_0x2dcc8a(0xdc)]&&this[_0x2dcc8a(0x106)][_0x2dcc8a(0xff)](this[_0x2dcc8a(0xdc)]),this[_0x2dcc8a(0xdd)]({'tag':_0x2dcc8a(0xd6),'attributes':{'class':['ck',_0x2dcc8a(0xf7),_0x2054e7['if'](_0x2dcc8a(0xfa),_0x2dcc8a(0x12a),_0x3619a6=>!_0x3619a6)]},'children':this[_0x2dcc8a(0x106)]}),this['on'](_0x2dcc8a(0xf5),()=>{const _0x44dfba=_0x2dcc8a;this[_0x44dfba(0xd8)]=this[_0x44dfba(0x11e)]?this[_0x44dfba(0x117)][_0x44dfba(0xe4)](_0x461a77=>_0x44dfba(0xe2)!==_0x461a77):[...this[_0x44dfba(0x117)]],this[_0x44dfba(0x120)](_0x22d614);});}[_0x568f77(0x120)](_0x2d20a9){const _0x32b7ae=_0x568f77;this[_0x32b7ae(0xdc)]&&this[_0x32b7ae(0x106)][_0x32b7ae(0x126)](this[_0x32b7ae(0xdc)])&&(this[_0x32b7ae(0x106)][_0x32b7ae(0xd4)](this[_0x32b7ae(0xdc)]),this[_0x32b7ae(0xdc)][_0x32b7ae(0x110)]()),this[_0x32b7ae(0xdc)]=this[_0x32b7ae(0xf4)](_0x2d20a9),this[_0x32b7ae(0xdc)]&&this[_0x32b7ae(0x106)][_0x32b7ae(0xff)](this[_0x32b7ae(0xdc)]);}[_0x568f77(0xf4)](_0x193f19){const _0x6f50fb=_0x568f77;if(0x0==this[_0x6f50fb(0xd8)][_0x6f50fb(0x12b)])return null;const _0x268461=0x1===this[_0x6f50fb(0xd8)][_0x6f50fb(0x12b)]?this[_0x6f50fb(0x10f)](_0x193f19):this[_0x6f50fb(0x104)](_0x193f19),_0x2a13d4=this[_0x6f50fb(0x11c)]?'':_0x6f50fb(0x123);_0x268461[_0x6f50fb(0xd0)]({'label':jn(this[_0x6f50fb(0xd8)][0x0],_0x193f19,this[_0x6f50fb(0x10c)]),'tooltip':Mn(this[_0x6f50fb(0xd8)][0x0],_0x193f19,this[_0x6f50fb(0x10c)]),'withText':!0x0,'class':_0x6f50fb(0xce)+_0x2a13d4});for(const _0x1b754d of this[_0x6f50fb(0xd8)])_0x268461['on'](_0x1b754d,()=>{const _0x3577ad=_0x6f50fb;this[_0x3577ad(0xf3)](_0x1b754d);});return this[_0x6f50fb(0x11c)]=!0x1,_0x268461;}[_0x568f77(0x10f)](_0x1b263d){const _0x57ba2a=_0x568f77,_0x271f42=new _0xaf1ea9(_0x1b263d);return _0x271f42[_0x57ba2a(0xd0)]({'class':_0x57ba2a(0xe6),'withText':!0x0}),_0x271f42['on'](_0x57ba2a(0x12c),()=>{const _0x45d1b9=_0x57ba2a;_0x271f42[_0x45d1b9(0xf3)](this[_0x45d1b9(0xd8)][0x0]);}),_0x271f42;}[_0x568f77(0x104)](_0x4c9a9e){const _0x423a9a=_0x568f77,_0xb05465=new Pn(_0x4c9a9e,{'listItemModels':this[_0x423a9a(0xd8)][_0x423a9a(0xd5)](_0x49f351=>{const _0xd86eaf=_0x423a9a;switch(_0x49f351){case _0xd86eaf(0xe2):return this[_0xd86eaf(0x10a)];case _0xd86eaf(0xf9):return this[_0xd86eaf(0xfb)];case _0xd86eaf(0x11d):return this[_0xd86eaf(0x124)];}})});return _0xb05465[_0x423a9a(0xd0)]({'label':jn(this[_0x423a9a(0xd8)][0x0],_0x4c9a9e,this[_0x423a9a(0x10c)]),'tooltip':Mn(this[_0x423a9a(0xd8)][0x0],_0x4c9a9e,this[_0x423a9a(0x10c)]),'withText':!0x0,'class':_0x423a9a(0xf7),'balloonPanelClass':_0x423a9a(0xee)}),_0xb05465[_0x423a9a(0x105)](_0x423a9a(0x115))['to'](this),_0xb05465;}[_0x568f77(0x125)](_0x4e632a){const _0x24f474=_0x568f77,_0x3becae=this[_0x24f474(0x10d)];this[_0x24f474(0x10c)]=_0x4e632a||this[_0x24f474(0x10c)],this[_0x24f474(0xdc)][_0x24f474(0xd0)]({'label':jn(this[_0x24f474(0xd8)][0x0],_0x3becae,this[_0x24f474(0x10c)]),'tooltip':Mn(this[_0x24f474(0xd8)][0x0],_0x3becae,this[_0x24f474(0x10c)])}),this[_0x24f474(0x10a)][_0x24f474(0xe1)]=jn(_0x24f474(0xe2),_0x3becae,this[_0x24f474(0x10c)]),this[_0x24f474(0xfb)][_0x24f474(0xe1)]=jn(_0x24f474(0xf9),_0x3becae,this[_0x24f474(0x10c)]),this[_0x24f474(0x124)][_0x24f474(0xe1)]=jn(_0x24f474(0x11d),_0x3becae,this[_0x24f474(0x10c)]);}}class Pn extends _0x5b6b0b{[_0x568f77(0x127)];[_0x568f77(0xf8)];[_0x568f77(0xd7)];[_0x568f77(0xe7)];constructor(_0x3b4af2,_0x343a02){const _0x307e1d=_0x568f77;super(_0x3b4af2),this[_0x307e1d(0xf8)]=new _0x4d23ed(this[_0x307e1d(0x10d)]),this[_0x307e1d(0x127)]=new _0x3f5691(this[_0x307e1d(0x10d)]),this[_0x307e1d(0x127)][_0x307e1d(0xd2)](),this[_0x307e1d(0xd0)](_0x307e1d(0xed),''),this[_0x307e1d(0xf8)][_0x307e1d(0x105)](_0x307e1d(0xf1))['to'](this,_0x307e1d(0xed)),this[_0x307e1d(0xd7)]=this[_0x307e1d(0xe5)](_0x343a02[_0x307e1d(0x102)][_0x307e1d(0xeb)](0x1)),this[_0x307e1d(0x127)][_0x307e1d(0xff)](this[_0x307e1d(0xf8)]),this[_0x307e1d(0xf8)][_0x307e1d(0x118)][_0x307e1d(0xff)](this[_0x307e1d(0xd7)]),this[_0x307e1d(0x113)][_0x307e1d(0xe0)](_0x307e1d(0x112)),this[_0x307e1d(0x113)][_0x307e1d(0xd0)](_0x307e1d(0x112),_0x5b3f11(this[_0x307e1d(0x10d)],_0x307e1d(0x100))),this[_0x307e1d(0xcf)](),this['on'](_0x307e1d(0x12c),()=>{const _0x52072a=_0x307e1d,_0x2ccbf7=_0x343a02[_0x52072a(0x102)][0x0][_0x52072a(0xf0)];this[_0x52072a(0xf3)](_0x2ccbf7),this[_0x52072a(0xf8)][_0x52072a(0xe3)](),this[_0x52072a(0x113)][_0x52072a(0x129)]();}),this['on'](_0x307e1d(0xfc),()=>{const _0x360da9=_0x307e1d;this[_0x360da9(0xf8)][_0x360da9(0xfa)]?(this[_0x360da9(0xf8)][_0x360da9(0xe3)](),this[_0x360da9(0x113)][_0x360da9(0x129)]()):(this[_0x360da9(0xf8)][_0x360da9(0x109)]({'target':this[_0x360da9(0x114)],'positions':[_0x360da9(0xef)===this[_0x360da9(0x10d)][_0x360da9(0xd9)]?Hn:Un]}),this[_0x360da9(0xd7)][_0x360da9(0x129)]());}),_0x1c1e64({'emitter':this[_0x307e1d(0xf8)],'callback':()=>{const _0x5b2a96=_0x307e1d;this[_0x5b2a96(0xf8)][_0x5b2a96(0xe3)]();},'activator':()=>this[_0x307e1d(0xf8)][_0x307e1d(0xfa)],'contextElements':()=>[this[_0x307e1d(0x114)],this[_0x307e1d(0xf8)][_0x307e1d(0x114)]]});}[_0x568f77(0xe5)](_0x4b1eec){const _0x1e0550=_0x568f77,_0x63032d=this[_0x1e0550(0x10d)],_0x15ddb8=new _0x5d537a(_0x63032d);for(const _0x17ebe8 of _0x4b1eec){const _0x27cb62=new _0x59c04a(_0x63032d),_0x345e24=new _0x42bde(_0x63032d);_0x345e24[_0x1e0550(0x105)](...Object[_0x1e0550(0xdf)](_0x17ebe8))['to'](_0x17ebe8),_0x345e24[_0x1e0550(0xec)](_0x1e0550(0x12c))['to'](_0x15ddb8),_0x27cb62[_0x1e0550(0x106)][_0x1e0550(0xff)](_0x345e24),_0x15ddb8[_0x1e0550(0x108)][_0x1e0550(0xff)](_0x27cb62);}return _0x15ddb8[_0x1e0550(0x108)][_0x1e0550(0xec)](_0x1e0550(0x12c))['to'](this),_0x15ddb8['on'](_0x1e0550(0x12c),_0x4dd9f5=>{const _0x51c77a=_0x1e0550,_0x510779=_0x4dd9f5[_0x51c77a(0xe8)];this[_0x51c77a(0xf3)](_0x510779[_0x51c77a(0xf0)]),this[_0x51c77a(0xf8)][_0x51c77a(0xe3)](),this[_0x51c77a(0x113)][_0x51c77a(0x129)]();}),_0x15ddb8;}[_0x568f77(0xcf)](){const _0x4115a6=_0x568f77;this[_0x4115a6(0xe7)]=new _0x3024bb(),this[_0x4115a6(0xe7)][_0x4115a6(0x101)](this[_0x4115a6(0xf8)][_0x4115a6(0x114)]),this[_0x4115a6(0xe7)][_0x4115a6(0xd0)](_0x4115a6(0x121),(_0x189887,_0x4d8002)=>{const _0x1762d5=_0x4115a6;this[_0x1762d5(0xf8)][_0x1762d5(0xe3)](),this[_0x1762d5(0x113)][_0x1762d5(0x129)](),_0x4d8002();});}[_0x568f77(0x110)](){const _0x2194cf=_0x568f77;super[_0x2194cf(0x110)](),this[_0x2194cf(0xe7)][_0x2194cf(0x110)](),this[_0x2194cf(0xf8)][_0x2194cf(0x110)](),this[_0x2194cf(0x127)][_0x2194cf(0x119)]();}}function Hn(_0x3b58ce){const _0x2ae00c=_0x568f77;return{'top':_0x3b58ce[_0x2ae00c(0x11f)],'left':_0x3b58ce[_0x2ae00c(0xe9)],'name':_0x2ae00c(0x107),'config':{'withArrow':!0x1}};}function Un(_0x3acb7f,_0x3deb71){const _0x4fb513=_0x568f77;return{'top':_0x3acb7f[_0x4fb513(0x11f)],'left':_0x3acb7f[_0x4fb513(0xe9)]-(_0x3deb71[_0x4fb513(0xde)]-_0x3acb7f[_0x4fb513(0xde)]),'name':_0x4fb513(0x107),'config':{'withArrow':!0x1}};}function jn(_0x902752,_0x88124,_0x3f451c){const _0x3f0f03=_0x568f77;switch(_0x902752){case _0x3f0f03(0xe2):return _0x5b3f11(_0x88124,_0x3f0f03(0xea),_0x3f451c);case _0x3f0f03(0xf9):return _0x5b3f11(_0x88124,_0x3f0f03(0x103),_0x3f451c);case _0x3f0f03(0x11d):return _0x5b3f11(_0x88124,_0x3f0f03(0xfe),_0x3f451c);}}function _0xd6e7(){const _0x3751d7=['open','18412QyiwqV','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','add','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','listenTo','listItemModels','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','_createActionsDropdown','bind','children','arrowless','items','pin','applySuggestionModel','bindTemplate','_partsCount','locale','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','_createActionsButton','destroy','4905800BbzAgU','tooltip','arrowView','element','isEnabled','1305DLzvEO','_dropdownOriginalConfig','content','detachFromDom','button','717990KhKYLs','_firstRender','insertSuggestion','isTrackChangesOn','bottom','_updateDropdownActions','esc','createCollection','ck-ai-chat__feed__ai-suggestion__actions--no-animation','insertSuggestionModel','updateLabels','has','bodyCollection','2bjMlgR','focus','ck-hidden','length','execute','5990CuBTmg','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','ck-ai-chat__feed__ai-suggestion__actions\x20','_setUpKeystrokes','set','1262783ZSLXJO','attachToDom','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','remove','map','div','listView','_dropdownCurrentConfig','uiLanguageDirection','1997555ctQGiM','6LrLGgc','actionsButton','setTemplate','width','keys','unbind','label','applySuggestion','hide','filter','_setUpList','ck-ai-button-primary','keystrokeHandler','source','left','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','slice','delegate','balloonPanelClass','ck-ai-chat__feed__ai-suggestion__actions__balloon','ltr','actionName','class','11421CDtIdA','fire','_createActionsDropdownOrButton','change:isTrackChangesOn','32204293AhFXfn','ck-ai-chat__feed__ai-suggestion__actions','balloonPanelView','showChangeInText','isVisible','showChangeInTextModel'];_0xd6e7=function(){return _0x3751d7;};return _0xd6e7();}function Mn(_0x1444b1,_0xf15f08,_0x468685){const _0x3c4bff=_0x568f77;switch(_0x1444b1){case _0x3c4bff(0xe2):return _0x5b3f11(_0xf15f08,_0x3c4bff(0xd3),_0x468685);case _0x3c4bff(0xf9):return _0x5b3f11(_0xf15f08,_0x3c4bff(0x12e),_0x468685);case _0x3c4bff(0x11d):return _0x5b3f11(_0xf15f08,_0x3c4bff(0x10e),_0x468685);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3360(_0x1b7b31,_0x277289){var _0x2e990c=_0x2e99();return _0x3360=function(_0x3360cd,_0x4faa61){_0x3360cd=_0x3360cd-0x74;var _0x4427a3=_0x2e990c[_0x3360cd];return _0x4427a3;},_0x3360(_0x1b7b31,_0x277289);}var _0x55000c=_0x3360;(function(_0x4a1adf,_0x6214a5){var _0x3c5b3f=_0x3360,_0x2762ff=_0x4a1adf();while(!![]){try{var _0x5ef31b=parseInt(_0x3c5b3f(0x9e))/0x1*(parseInt(_0x3c5b3f(0x82))/0x2)+parseInt(_0x3c5b3f(0x97))/0x3*(parseInt(_0x3c5b3f(0x8d))/0x4)+-parseInt(_0x3c5b3f(0x77))/0x5*(parseInt(_0x3c5b3f(0x8c))/0x6)+-parseInt(_0x3c5b3f(0xa1))/0x7*(-parseInt(_0x3c5b3f(0x93))/0x8)+parseInt(_0x3c5b3f(0x96))/0x9+parseInt(_0x3c5b3f(0x89))/0xa+-parseInt(_0x3c5b3f(0x9c))/0xb;if(_0x5ef31b===_0x6214a5)break;else _0x2762ff['push'](_0x2762ff['shift']());}catch(_0x351a6f){_0x2762ff['push'](_0x2762ff['shift']());}}}(_0x2e99,0xbfe73));function _0x2e99(){var _0x5a2a88=['updateContent','isEnabled','2qblbkw','children','actionsView','updateSources','bodyView','isVisible','dislike','2499830yFdarJ','addMany','options','1734JyLUqV','24760JdbwLV','mouseOverSuggestion','hasNonEmptyParts','showDiff','insertSuggestion','markAsDone','3093056mggUod','extendTemplate','containerView','4484916XLqWGt','639rLMXBZ','fire','mouseLeaveSuggestion','ck-ai-chat__feed__ai-suggestion','rejectSuggestion','37753881MNXRbZ','isTrackChangesOn','1383367cCUvVU','set','like','14MQKunr','getPartView','hasPendingParts','updatePartState','90pnvIGq','availableActions','updateLabels','bind','toggleSuggestionDisplayMode','partsCount','applySuggestion','showChangeInText','areActionsDisabled'];_0x2e99=function(){return _0x5a2a88;};return _0x2e99();}import{AIChatFeedItemView as _0x60dd83}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x5321cf}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x2af55d}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x60dd83{[_0x55000c(0x95)];[_0x55000c(0x84)];constructor(_0x43bf6f,_0x54e54f,_0x1a4b80){var _0x559c9c=_0x55000c;super(_0x54e54f),this[_0x559c9c(0x9f)](_0x559c9c(0x9d),!0x1),this[_0x559c9c(0x95)]=new _0x5321cf(_0x43bf6f,{'showDiff':_0x54e54f[_0x559c9c(0x90)],'areActionsDisabled':_0x54e54f[_0x559c9c(0x7f)],'availableActions':_0x54e54f[_0x559c9c(0x78)]},_0x1a4b80),this[_0x559c9c(0x95)]['on'](_0x559c9c(0x7b),(_0xa710c,_0x3cb9a6)=>{var _0x9cddd6=_0x559c9c;this[_0x9cddd6(0x98)](_0x9cddd6(0x7b),{'replyId':this[_0x9cddd6(0x8b)]['id'],'showDiff':_0x3cb9a6[_0x9cddd6(0x90)]});}),this[_0x559c9c(0x95)]['on'](_0x559c9c(0xa0),()=>{var _0x167bca=_0x559c9c;this[_0x167bca(0x98)](_0x167bca(0xa0),{'replyId':this[_0x167bca(0x8b)]['id']});}),this[_0x559c9c(0x95)]['on'](_0x559c9c(0x88),()=>{var _0x1248d7=_0x559c9c;this[_0x1248d7(0x98)](_0x1248d7(0x88),{'replyId':this[_0x1248d7(0x8b)]['id']});}),this[_0x559c9c(0x95)]['on'](_0x559c9c(0x7e),(_0x24059a,{index:_0x52c3ec})=>{var _0x4b1d7b=_0x559c9c;this[_0x4b1d7b(0x98)](_0x4b1d7b(0x7e),{'replyId':this[_0x4b1d7b(0x8b)]['id'],'partIndex':_0x52c3ec});}),this[_0x559c9c(0x95)]['on'](_0x559c9c(0x91),(_0x2ed813,{index:_0x15fbe2})=>{var _0x4ea767=_0x559c9c;this[_0x4ea767(0x98)](_0x4ea767(0x91),{'replyId':this[_0x4ea767(0x8b)]['id'],'partIndex':_0x15fbe2});}),this[_0x559c9c(0x95)]['on'](_0x559c9c(0x9b),(_0x3f8c7f,{index:_0x8b9af1})=>{var _0x553965=_0x559c9c;this[_0x553965(0x98)](_0x553965(0x9b),{'replyId':this[_0x553965(0x8b)]['id'],'partIndex':_0x8b9af1});}),this[_0x559c9c(0x95)]['on'](_0x559c9c(0x8e),(_0x286e9c,{index:_0x22dbab})=>{var _0x9b5cd0=_0x559c9c;this[_0x9b5cd0(0x98)](_0x9b5cd0(0x8e),{'replyId':this[_0x9b5cd0(0x8b)]['id'],'partIndex':_0x22dbab});}),this[_0x559c9c(0x95)]['on'](_0x559c9c(0x99),(_0x44121e,{index:_0x56d17f})=>{var _0x2cd5da=_0x559c9c;this[_0x2cd5da(0x98)](_0x2cd5da(0x99),{'replyId':this[_0x2cd5da(0x8b)]['id'],'partIndex':_0x56d17f});}),this[_0x559c9c(0x84)]=new _0x2af55d(_0x43bf6f,this[_0x559c9c(0x8b)][_0x559c9c(0x78)]),this[_0x559c9c(0x84)][_0x559c9c(0x7a)](_0x559c9c(0x9d))['to'](this,_0x559c9c(0x9d)),this[_0x559c9c(0x84)]['on'](_0x559c9c(0x7e),()=>{var _0x340e03=_0x559c9c;this[_0x340e03(0x98)](_0x340e03(0x7e),{'replyId':this[_0x340e03(0x8b)]['id']});}),this[_0x559c9c(0x84)]['on'](_0x559c9c(0x91),()=>{var _0x1a6f53=_0x559c9c;this[_0x1a6f53(0x98)](_0x1a6f53(0x91),{'replyId':this[_0x1a6f53(0x8b)]['id']});}),this[_0x559c9c(0x84)]['on'](_0x559c9c(0x7d),()=>{var _0x25114f=_0x559c9c;this[_0x25114f(0x98)](_0x25114f(0x7d),{'replyId':this[_0x25114f(0x8b)]['id']});}),_0x54e54f[_0x559c9c(0x7f)]?this[_0x559c9c(0x84)][_0x559c9c(0x81)]=!0x1:this[_0x559c9c(0x84)][_0x559c9c(0x7a)](_0x559c9c(0x81))['to'](this[_0x559c9c(0x95)][_0x559c9c(0x86)],_0x559c9c(0x75)),this[_0x559c9c(0x83)][_0x559c9c(0x8a)]([this[_0x559c9c(0x95)],this[_0x559c9c(0x84)]]),this[_0x559c9c(0x94)]({'attributes':{'class':[_0x559c9c(0x9a)]}});}async[_0x55000c(0x80)](_0x4bb195){var _0x4dd39a=_0x55000c;await this[_0x4dd39a(0x95)][_0x4dd39a(0x80)](_0x4bb195),this[_0x4dd39a(0x84)][_0x4dd39a(0x79)](this[_0x4dd39a(0x95)][_0x4dd39a(0x86)][_0x4dd39a(0x7c)]);}[_0x55000c(0x76)](_0x27a6fe,_0x1cf830){var _0x147dba=_0x55000c;this[_0x147dba(0x95)][_0x147dba(0x86)][_0x147dba(0x76)](_0x27a6fe,_0x1cf830);}[_0x55000c(0x85)](_0x37f004){var _0x26d1c2=_0x55000c;this[_0x26d1c2(0x95)][_0x26d1c2(0x85)](_0x37f004);}[_0x55000c(0x74)](_0x4ea825){var _0x323835=_0x55000c;return this[_0x323835(0x95)][_0x323835(0x86)][_0x323835(0x74)](_0x4ea825);}[_0x55000c(0x92)](){var _0x961f5=_0x55000c;super[_0x961f5(0x92)](),this[_0x961f5(0x95)][_0x961f5(0x92)](),this[_0x961f5(0x84)][_0x961f5(0x87)]=this[_0x961f5(0x95)][_0x961f5(0x86)][_0x961f5(0x8f)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x3acd(_0x4b392c,_0x143a82){var _0x4f1d29=_0x4f1d();return _0x3acd=function(_0x3acd3c,_0xd42cb6){_0x3acd3c=_0x3acd3c-0xc4;var _0x358bed=_0x4f1d29[_0x3acd3c];return _0x358bed;},_0x3acd(_0x4b392c,_0x143a82);}var _0x3c9b0a=_0x3acd;(function(_0x1b6fda,_0x7602f5){var _0x1a528c=_0x3acd,_0x4ac2e0=_0x1b6fda();while(!![]){try{var _0x3342b0=parseInt(_0x1a528c(0xe3))/0x1+-parseInt(_0x1a528c(0xd1))/0x2*(parseInt(_0x1a528c(0xc8))/0x3)+-parseInt(_0x1a528c(0xc9))/0x4+-parseInt(_0x1a528c(0xca))/0x5*(-parseInt(_0x1a528c(0xdb))/0x6)+parseInt(_0x1a528c(0xd0))/0x7*(-parseInt(_0x1a528c(0xdd))/0x8)+-parseInt(_0x1a528c(0xd5))/0x9+parseInt(_0x1a528c(0xd7))/0xa;if(_0x3342b0===_0x7602f5)break;else _0x4ac2e0['push'](_0x4ac2e0['shift']());}catch(_0x369347){_0x4ac2e0['push'](_0x4ac2e0['shift']());}}}(_0x4f1d,0xa0a3f));function _0x4f1d(){var _0x226f7b=['_contextChipsView','extendTemplate','filter','innerHTML','667464VBWzwM','setTemplate','_createContextChipsView','hidden','element','_locale','_bodyCollection','149064CmEuWZ','5060568zhPcdg','1166970ShwRaQ','add','ck-ai-chat__feed__user-message','div','ck-ai-chat__feed__message-content','initialContent','330463QeQxHK','24cFetog','render','_messageContentView','markAsDone','6918480LlkXbW','_createMessageContentView','25315210IrVJNk','children','contextItems','ck-ai-chat__feed__context-chips','12iOedKC','options','64MYkaqX','length'];_0x4f1d=function(){return _0x226f7b;};return _0x4f1d();}import{AIChatFeedItemView as _0x52ef14}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x6a2b7}from'./aichatfeedcontextchipsview.js';import{View as _0x5dc2ee}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x52ef14{[_0x3c9b0a(0xdf)]=null;[_0x3c9b0a(0xc6)];[_0x3c9b0a(0xc7)];[_0x3c9b0a(0xd3)];constructor(_0x4c1003,_0x8e4a87,_0x5a4a4b){var _0x57d9b3=_0x3c9b0a;super(_0x8e4a87),this[_0x57d9b3(0xc6)]=_0x4c1003,this[_0x57d9b3(0xc7)]=_0x5a4a4b,this[_0x57d9b3(0xe5)](),this[_0x57d9b3(0xd6)](),this[_0x57d9b3(0xe0)]({'attributes':{'class':[_0x57d9b3(0xcc)]}});}[_0x3c9b0a(0xe5)](){var _0x401024=_0x3c9b0a;this[_0x401024(0xdc)][_0x401024(0xd9)]&&this[_0x401024(0xdc)][_0x401024(0xd9)][_0x401024(0xde)]>0x0&&(this[_0x401024(0xdf)]=new _0x6a2b7(this[_0x401024(0xc6)],this[_0x401024(0xdc)][_0x401024(0xd9)][_0x401024(0xe1)](_0x46eb53=>!_0x46eb53[_0x401024(0xc4)]),this[_0x401024(0xc7)]),this[_0x401024(0xdf)][_0x401024(0xe0)]({'attributes':{'class':_0x401024(0xda)}}),this[_0x401024(0xd8)][_0x401024(0xcb)](this[_0x401024(0xdf)]));}[_0x3c9b0a(0xd6)](){var _0x42e97c=_0x3c9b0a;this[_0x42e97c(0xd3)]=new _0x5dc2ee(this[_0x42e97c(0xc6)]),this[_0x42e97c(0xd3)][_0x42e97c(0xe4)]({'tag':_0x42e97c(0xcd),'attributes':{'class':_0x42e97c(0xce)}}),this[_0x42e97c(0xd8)][_0x42e97c(0xcb)](this[_0x42e97c(0xd3)]);}[_0x3c9b0a(0xd2)](){var _0x2e76d1=_0x3c9b0a;super[_0x2e76d1(0xd2)](),this[_0x2e76d1(0xd3)][_0x2e76d1(0xc5)][_0x2e76d1(0xe2)]=this[_0x2e76d1(0xdc)][_0x2e76d1(0xcf)],this[_0x2e76d1(0xd4)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29fc19=_0x575b;(function(_0x459d13,_0x375eab){const _0x383387=_0x575b,_0x41f27f=_0x459d13();while(!![]){try{const _0x2859c3=parseInt(_0x383387(0x185))/0x1*(parseInt(_0x383387(0x18d))/0x2)+-parseInt(_0x383387(0x187))/0x3*(parseInt(_0x383387(0x175))/0x4)+parseInt(_0x383387(0x179))/0x5*(-parseInt(_0x383387(0x182))/0x6)+parseInt(_0x383387(0x184))/0x7*(parseInt(_0x383387(0x18c))/0x8)+parseInt(_0x383387(0x174))/0x9*(-parseInt(_0x383387(0x18b))/0xa)+parseInt(_0x383387(0x183))/0xb*(parseInt(_0x383387(0x176))/0xc)+-parseInt(_0x383387(0x178))/0xd*(parseInt(_0x383387(0x186))/0xe);if(_0x2859c3===_0x375eab)break;else _0x41f27f['push'](_0x41f27f['shift']());}catch(_0x32b1b7){_0x41f27f['push'](_0x41f27f['shift']());}}}(_0x4074,0xbda26));function _0x575b(_0xad9a3b,_0x10211d){const _0x4074fe=_0x4074();return _0x575b=function(_0x575b4c,_0x2ad925){_0x575b4c=_0x575b4c-0x173;let _0x301057=_0x4074fe[_0x575b4c];return _0x301057;},_0x575b(_0xad9a3b,_0x10211d);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2b352f}from'../../aicore/utils/eventnames.js';export const AI_CHAT_UI_EVENT_NAMES=[..._0x2b352f,_0x29fc19(0x17e),_0x29fc19(0x181),_0x29fc19(0x17d),_0x29fc19(0x17b),_0x29fc19(0x177),_0x29fc19(0x17a),_0x29fc19(0x189),_0x29fc19(0x173),_0x29fc19(0x188),_0x29fc19(0x17c),_0x29fc19(0x17f),_0x29fc19(0x18a),_0x29fc19(0x180)];function _0x4074(){const _0xdcea7f=['4xmkVcW','12lbcsmL','addDocumentToContext','13BYjRCs','10HsTSMS','addFileToContext','abortPromptStream','loadSourceResources','sendUserMessage','startConversation','toggleWebSearch','selectModel','resizeTabs','1956246ODZUIa','15125781bMoxYS','2574418qBRjTC','10931PiJjnd','2329838PHpFzV','3344301bzUnMT','removeContextItem','addUrlToContext','toggleReasoning','5663480auXClK','24pRChxJ','146MWYqeB','addResourceToContext','9gXSUIi'];_0x4074=function(){return _0xdcea7f;};return _0x4074();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x391e(){const _0x314095=['shift','10692ITEztC','isProcessing','305fHehxP','length','resolve','_queueEmpty','queue','204194zNmiOi','fire','enqueue','3Zjvxdf','_processQueue','276038MXQAcA','1059240pOdxar','once','push','queueEmptyPromise','callback','70btJEee','createTask','abort','993896OGSLWR','149174DbHYKZ','completePromise','272421eHQFXF','signal','reject','_abortController'];_0x391e=function(){return _0x314095;};return _0x391e();}function _0x5011(_0x34a7b0,_0x79d00a){const _0x391ed5=_0x391e();return _0x5011=function(_0x501144,_0x3e1ff0){_0x501144=_0x501144-0x165;let _0x4cb1a7=_0x391ed5[_0x501144];return _0x4cb1a7;},_0x5011(_0x34a7b0,_0x79d00a);}const _0x336a46=_0x5011;(function(_0x50dc41,_0x38d8a8){const _0x229924=_0x5011,_0x4413ed=_0x50dc41();while(!![]){try{const _0x341027=-parseInt(_0x229924(0x170))/0x1+parseInt(_0x229924(0x17f))/0x2*(parseInt(_0x229924(0x173))/0x3)+parseInt(_0x229924(0x176))/0x4+-parseInt(_0x229924(0x16b))/0x5*(-parseInt(_0x229924(0x169))/0x6)+parseInt(_0x229924(0x175))/0x7+parseInt(_0x229924(0x17e))/0x8+-parseInt(_0x229924(0x181))/0x9*(parseInt(_0x229924(0x17b))/0xa);if(_0x341027===_0x38d8a8)break;else _0x4413ed['push'](_0x4413ed['shift']());}catch(_0x92457f){_0x4413ed['push'](_0x4413ed['shift']());}}}(_0x391e,0x2fc6d));import{EmitterMixin as _0x1d4b7e}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x1d4b7e(){[_0x336a46(0x16f)]=[];[_0x336a46(0x16a)]=!0x1;[_0x336a46(0x167)];async[_0x336a46(0x172)](_0x266a6a){const _0x450ba5=_0x336a46,_0x4f1821=this[_0x450ba5(0x17c)](_0x266a6a);return this[_0x450ba5(0x16f)][_0x450ba5(0x178)](_0x4f1821),this[_0x450ba5(0x174)](),_0x4f1821[_0x450ba5(0x180)];}[_0x336a46(0x17d)](){const _0x47f1d9=_0x336a46;this[_0x47f1d9(0x16a)]&&(this[_0x47f1d9(0x167)][_0x47f1d9(0x17d)](),this[_0x47f1d9(0x167)]=void 0x0,this[_0x47f1d9(0x16f)]=[],this[_0x47f1d9(0x171)](_0x47f1d9(0x16e)),this[_0x47f1d9(0x16a)]=!0x1);}get[_0x336a46(0x179)](){const _0x5ab070=_0x336a46;return this[_0x5ab070(0x16f)][_0x5ab070(0x16c)]||this[_0x5ab070(0x16a)]?new Promise(_0x4bc0f9=>{const _0x40dbd4=_0x5ab070;this[_0x40dbd4(0x177)](_0x40dbd4(0x16e),()=>{_0x4bc0f9();});}):Promise[_0x5ab070(0x16d)]();}async[_0x336a46(0x174)](){const _0x4c3e79=_0x336a46;if(!this[_0x4c3e79(0x16a)]){this[_0x4c3e79(0x167)]=new AbortController(),this[_0x4c3e79(0x16a)]=!0x0;try{for(;this[_0x4c3e79(0x16f)][_0x4c3e79(0x16c)]&&this[_0x4c3e79(0x16a)];){const _0x260a7f=this[_0x4c3e79(0x16f)][_0x4c3e79(0x168)]();try{await _0x260a7f[_0x4c3e79(0x17a)](this[_0x4c3e79(0x167)][_0x4c3e79(0x165)]),_0x260a7f[_0x4c3e79(0x16d)]();}catch(_0x318182){_0x260a7f[_0x4c3e79(0x166)](_0x318182);}}}finally{this[_0x4c3e79(0x16a)]=!0x1,this[_0x4c3e79(0x167)]=void 0x0;}this[_0x4c3e79(0x171)](_0x4c3e79(0x16e));}}[_0x336a46(0x17c)](_0x46bbe1){let _0x54a47e,_0x27e63f;const _0x13f900=new Promise((_0x1195e0,_0x1a195d)=>{_0x54a47e=_0x1195e0,_0x27e63f=_0x1a195d;});return{'callback':_0x46bbe1,'resolve':_0x54a47e,'reject':_0x27e63f,'completePromise':_0x13f900};}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xeda4cb=_0x2bc4;(function(_0x2775a6,_0x30dac3){var _0x554d5a=_0x2bc4,_0x35c260=_0x2775a6();while(!![]){try{var _0x4f0242=-parseInt(_0x554d5a(0x1c1))/0x1*(parseInt(_0x554d5a(0x1b3))/0x2)+-parseInt(_0x554d5a(0x1b8))/0x3*(parseInt(_0x554d5a(0x1b4))/0x4)+-parseInt(_0x554d5a(0x1bd))/0x5*(parseInt(_0x554d5a(0x1b9))/0x6)+parseInt(_0x554d5a(0x1bb))/0x7*(parseInt(_0x554d5a(0x1bc))/0x8)+-parseInt(_0x554d5a(0x1c3))/0x9+parseInt(_0x554d5a(0x1c0))/0xa+parseInt(_0x554d5a(0x1b7))/0xb*(parseInt(_0x554d5a(0x1be))/0xc);if(_0x4f0242===_0x30dac3)break;else _0x35c260['push'](_0x35c260['shift']());}catch(_0x1046f3){_0x35c260['push'](_0x35c260['shift']());}}}(_0xe86d,0x77a13));function _0x2bc4(_0x59f25b,_0x126a21){var _0xe86d45=_0xe86d();return _0x2bc4=function(_0x2bc4c7,_0xde7961){_0x2bc4c7=_0x2bc4c7-0x1b3;var _0x34e0cd=_0xe86d45[_0x2bc4c7];return _0x34e0cd;},_0x2bc4(_0x59f25b,_0x126a21);}import{ContextPlugin as _0xd78305}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x2cd88f}from'./aichathistorycontroller.js';import{AIChatHistoryUI as _0xbf7928}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0xd78305{static get[_0xeda4cb(0x1ba)](){return[_0x2cd88f,_0xbf7928];}static get[_0xeda4cb(0x1b6)](){var _0x280490=_0xeda4cb;return _0x280490(0x1b5);}static get[_0xeda4cb(0x1c2)](){return!0x0;}static get[_0xeda4cb(0x1bf)](){return!0x0;}}function _0xe86d(){var _0xbbe940=['7oHAUnj','1653592USJwbw','1315695WwNoLH','12tGsGua','isPremiumPlugin','8745960XGUsKe','93281PqUsom','isOfficialPlugin','3282840zmVpCL','6eZzwxD','118740UQfVoA','AIChatHistory','pluginName','10991255NhnYSD','69GynvMc','6NIarXA','requires'];_0xe86d=function(){return _0xbbe940;};return _0xe86d();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xbd3570=_0x5f40;(function(_0x3d71b9,_0x55b93a){const _0x2d83e7=_0x5f40,_0x4ef4fa=_0x3d71b9();while(!![]){try{const _0x1d6e4c=-parseInt(_0x2d83e7(0x1f7))/0x1+parseInt(_0x2d83e7(0x205))/0x2+parseInt(_0x2d83e7(0x213))/0x3*(-parseInt(_0x2d83e7(0x22e))/0x4)+-parseInt(_0x2d83e7(0x21c))/0x5+parseInt(_0x2d83e7(0x1e7))/0x6+parseInt(_0x2d83e7(0x22c))/0x7*(-parseInt(_0x2d83e7(0x202))/0x8)+parseInt(_0x2d83e7(0x1d9))/0x9;if(_0x1d6e4c===_0x55b93a)break;else _0x4ef4fa['push'](_0x4ef4fa['shift']());}catch(_0x2f8828){_0x4ef4fa['push'](_0x4ef4fa['shift']());}}}(_0x3f77,0x211fc));function _0x5f40(_0xda0c48,_0x1d4af0){const _0x3f7744=_0x3f77();return _0x5f40=function(_0x5f4018,_0x24e7d7){_0x5f4018=_0x5f4018-0x1cb;let _0x2cf52c=_0x3f7744[_0x5f4018];return _0x2cf52c;},_0x5f40(_0xda0c48,_0x1d4af0);}import{ContextPlugin as _0x48dda9}from'ckeditor5/src/core.js';import{AIConnector as _0x4605c7}from'../aicore/aiconnector.js';import{AIChatController as _0x4c2b61}from'../aichat/aichatcontroller.js';import{AITabs as _0x39f1de}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x5509c5}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x2f2506}from'./model/aichathistoryconversations.js';function _0x3f77(){const _0xce8b37=['getItems','listenTo','7QeIcet','title','46868hYZovd','items','_handleTogglePin','selectConversation','_showConversationHistory','updateItems','setConversationPinned','AI_CHAT_HISTORY_CATEGORY_PINNED','AI_CHAT_HISTORY_CATEGORY_LATER','change:activeConversation','_setItemLoading','isOfficialPlugin','_handleHistoryErrorUI','activateTab:history','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','_handleRemove','4791294lFwwYP','push','get','handleRemovedConversation','getFullYear','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','length','getGroupId','editConversationTitle','setIsMaximized','resize','itemId','AI_CHAT_HISTORY_UNPIN_ACTION','AIChatHistoryController','856974cBtdSD','itemUpdated','locale','itemsLoaded','_aiChatHistoryUi','remove','toLocaleDateString','view','error','_aiConnector','init','_clearItemLoading','removeHistoryItem','updateItemTitle','_handleSelectConversation','removeConversation','193001PMdaFF','plugins','getItem','getDate','requires','createdAt','_setIsMaximized','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','pluginName','itemRemoved','279944KPzGJM','openChat','updateItemLoadingState','413538ntCDoS','resizedTabs','activateTab','AI_CHAT_HISTORY_ERROR_GENERIC','loadItems','setDate','context','removeItem','setLoadingSkeleton','updateItemPinned','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','chat','activeConversation','updates','69zSUSkh','map','AI_CHAT_HISTORY_PIN_ACTION','_generateErrorMessage','rename','AI_CHAT_HISTORY_CATEGORY_TODAY','_updateHistoryItemsUI','_handleEditTitle','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','1244015TjRPhU','unpin','showError','history','_getCategorizedItems','_aiChatController','operation','getMonth','pinned','isPremiumPlugin','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','resizeTabs','loadConversation','pin'];_0x3f77=function(){return _0xce8b37;};return _0x3f77();}import{getTranslation as _0x3018d5}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x48dda9{[_0xbd3570(0x1f0)];[_0xbd3570(0x1eb)];[_0xbd3570(0x221)];static get[_0xbd3570(0x1fb)](){return[_0x4605c7,_0x4c2b61,_0x5509c5,_0x39f1de];}static get[_0xbd3570(0x200)](){const _0x298a9f=_0xbd3570;return _0x298a9f(0x1e6);}static get[_0xbd3570(0x1d4)](){return!0x0;}static get[_0xbd3570(0x225)](){return!0x0;}[_0xbd3570(0x1f1)](){const _0x4f6360=_0xbd3570;this[_0x4f6360(0x1f0)]=this[_0x4f6360(0x20b)][_0x4f6360(0x1f8)][_0x4f6360(0x1db)](_0x4605c7),this[_0x4f6360(0x1eb)]=this[_0x4f6360(0x20b)][_0x4f6360(0x1f8)][_0x4f6360(0x1db)](_0x5509c5),this[_0x4f6360(0x221)]=this[_0x4f6360(0x20b)][_0x4f6360(0x1f8)][_0x4f6360(0x1db)](_0x4c2b61);const _0x355511=this[_0x4f6360(0x20b)][_0x4f6360(0x1f8)][_0x4f6360(0x1db)](_0x39f1de);try{const _0x2dc0b8=this[_0x4f6360(0x221)][_0x4f6360(0x1e0)]();this[_0x4f6360(0x21f)]=new _0x2f2506({'connector':this[_0x4f6360(0x1f0)],'group':_0x2dc0b8}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x1eb)],_0x4f6360(0x1f6),(_0x2c1cda,_0x110e85)=>{const _0x37b0ba=_0x4f6360;this[_0x37b0ba(0x1d3)](_0x110e85['id'],_0x37b0ba(0x1ec)),this[_0x37b0ba(0x1d8)](_0x110e85['id']);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x1eb)],_0x4f6360(0x1e1),(_0x2977a9,_0x5cfc12)=>{const _0x47dacc=_0x4f6360;this[_0x47dacc(0x1d3)](_0x5cfc12['id'],_0x47dacc(0x217)),this[_0x47dacc(0x21a)](_0x5cfc12['id'],_0x5cfc12[_0x47dacc(0x22d)]);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x21f)],_0x4f6360(0x1e8),(_0x5c52d3,_0x24dd4c)=>{const _0x1c52d2=_0x4f6360;void 0x0!==_0x24dd4c[_0x1c52d2(0x212)][_0x1c52d2(0x22d)]&&this[_0x1c52d2(0x1eb)][_0x1c52d2(0x1f4)](_0x24dd4c[_0x1c52d2(0x1e4)],_0x24dd4c[_0x1c52d2(0x212)][_0x1c52d2(0x22d)]),void 0x0!==_0x24dd4c[_0x1c52d2(0x212)][_0x1c52d2(0x224)]&&this[_0x1c52d2(0x219)](),this[_0x1c52d2(0x1f2)](_0x24dd4c[_0x1c52d2(0x1e4)]);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x21f)],_0x4f6360(0x201),(_0x565e6e,_0x2a6edd)=>{const _0x4134e9=_0x4f6360;this[_0x4134e9(0x221)][_0x4134e9(0x1dc)](_0x2a6edd[_0x4134e9(0x1e4)]),this[_0x4134e9(0x1eb)][_0x4134e9(0x1f3)](_0x2a6edd[_0x4134e9(0x1e4)]),this[_0x4134e9(0x1f2)](_0x2a6edd[_0x4134e9(0x1e4)]);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x21f)],_0x4f6360(0x1ea),()=>{const _0x3329a5=_0x4f6360;this[_0x3329a5(0x219)]();}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x21f)],_0x4f6360(0x1ef),(_0xfa1099,_0x528142)=>{const _0x1cc978=_0x4f6360;this[_0x1cc978(0x1d5)](_0x528142[_0x1cc978(0x1ef)],_0x528142[_0x1cc978(0x222)],_0x528142[_0x1cc978(0x1e4)]);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x1eb)],_0x4f6360(0x1cc),(_0x3f7a1d,_0x3820bc)=>{const _0x52e5b0=_0x4f6360;this[_0x52e5b0(0x1f5)](_0x3820bc['id']);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x1eb)],_0x4f6360(0x1cf),(_0xc402b9,_0x29de1c)=>{const _0x332671=_0x4f6360,_0xe011d6=_0x29de1c[_0x332671(0x224)]?_0x332671(0x229):_0x332671(0x21d);this[_0x332671(0x1d3)](_0x29de1c['id'],_0xe011d6),this[_0x332671(0x1cb)](_0x29de1c['id'],_0x29de1c[_0x332671(0x224)]);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x1eb)],_0x4f6360(0x203),()=>{const _0x4719f5=_0x4f6360;_0x355511[_0x4719f5(0x1ee)][_0x4719f5(0x207)](_0x4719f5(0x210));}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x221)],_0x4f6360(0x1d2),()=>{const _0x10e0f2=_0x4f6360;this[_0x10e0f2(0x219)]();}),_0x355511[_0x4f6360(0x1ee)]['on'](_0x4f6360(0x1d6),()=>{const _0x232d8b=_0x4f6360;this[_0x232d8b(0x1cd)]();}),this[_0x4f6360(0x22b)](_0x355511,_0x4f6360(0x206),(_0x269e1e,_0x3c04b9)=>{const _0x3b6844=_0x4f6360;this[_0x3b6844(0x1fd)](_0x3c04b9);}),this[_0x4f6360(0x22b)](this[_0x4f6360(0x1eb)],_0x4f6360(0x227),()=>{const _0x222459=_0x4f6360;_0x355511[_0x222459(0x1e3)]();});}catch(_0x3c4045){this[_0x4f6360(0x1d5)](_0x3c4045,_0x4f6360(0x1f1));}}async[_0xbd3570(0x21a)](_0x4c50ba,_0x44bc70){const _0x12016e=_0xbd3570;await this[_0x12016e(0x21f)][_0x12016e(0x1f4)](_0x4c50ba,_0x44bc70);}async[_0xbd3570(0x1cb)](_0x247d89,_0x2dcee9){const _0x223cd7=_0xbd3570;await this[_0x223cd7(0x21f)][_0x223cd7(0x20e)](_0x247d89,_0x2dcee9);}async[_0xbd3570(0x1d8)](_0x4d14af){const _0x5d0be5=_0xbd3570;await this[_0x5d0be5(0x21f)][_0x5d0be5(0x20c)](_0x4d14af);}async[_0xbd3570(0x1f5)](_0x4faf40){const _0x1cd789=_0xbd3570;await this[_0x1cd789(0x221)][_0x1cd789(0x228)](_0x4faf40);}async[_0xbd3570(0x1cd)](){const _0x1a9562=_0xbd3570;this[_0x1a9562(0x1eb)][_0x1a9562(0x21e)](''),this[_0x1a9562(0x1eb)][_0x1a9562(0x20d)](!0x0),await this[_0x1a9562(0x21f)][_0x1a9562(0x1f1)](),this[_0x1a9562(0x1eb)][_0x1a9562(0x20d)](!0x1);}[_0xbd3570(0x219)](){const _0x2f15ff=_0xbd3570,_0xf19a11=this[_0x2f15ff(0x221)][_0x2f15ff(0x211)]?.['id'],_0x2816cb=this[_0x2f15ff(0x220)]()[_0x2f15ff(0x214)](_0x29841f=>({'title':_0x29841f[_0x2f15ff(0x22d)],'items':_0x29841f[_0x2f15ff(0x22f)][_0x2f15ff(0x214)](_0x28c0d2=>({'id':_0x28c0d2['id'],'title':_0x28c0d2[_0x2f15ff(0x22d)]||_0x3018d5(this[_0x2f15ff(0x20b)][_0x2f15ff(0x1e9)],_0x2f15ff(0x1fe)),'createdAt':new Date(_0x28c0d2[_0x2f15ff(0x1fc)])[_0x2f15ff(0x1ed)](),'active':_0x28c0d2['id']===_0xf19a11,'pinned':_0x28c0d2[_0x2f15ff(0x224)]}))}));this[_0x2f15ff(0x1eb)][_0x2f15ff(0x1ce)](_0x2816cb);}[_0xbd3570(0x1d3)](_0x3efc77,_0x5dcd80){const _0x40783d=_0xbd3570;this[_0x40783d(0x1eb)][_0x40783d(0x204)](_0x3efc77,_0x5dcd80,!0x0);}[_0xbd3570(0x1f2)](_0x36ca99){const _0x13ed2c=_0xbd3570;this[_0x13ed2c(0x1eb)][_0x13ed2c(0x204)](_0x36ca99,null,!0x1);}[_0xbd3570(0x1d5)](_0x362f25,_0x1287b7,_0x4d5bca){const _0x1a6d38=_0xbd3570,_0x929af0=this[_0x1a6d38(0x216)](_0x1287b7,_0x4d5bca);this[_0x1a6d38(0x1eb)][_0x1a6d38(0x21e)](_0x929af0),_0x4d5bca&&this[_0x1a6d38(0x1f2)](_0x4d5bca),this[_0x1a6d38(0x1eb)][_0x1a6d38(0x20d)](!0x1);}[_0xbd3570(0x216)](_0x5aeba0,_0x2ff64c){const _0x46429f=_0xbd3570,_0x2fe21c=_0x2ff64c?this[_0x46429f(0x21f)][_0x46429f(0x1f9)](_0x2ff64c):null,_0x4a1ef2=_0x2fe21c?.[_0x46429f(0x22d)]||_0x3018d5(this[_0x46429f(0x20b)][_0x46429f(0x1e9)],_0x46429f(0x1fe));switch(_0x5aeba0){case _0x46429f(0x1f4):return _0x3018d5(this[_0x46429f(0x20b)][_0x46429f(0x1e9)],_0x46429f(0x21b),_0x4a1ef2);case _0x46429f(0x20e):{const _0x45849a=_0x3018d5(this[_0x46429f(0x20b)][_0x46429f(0x1e9)],_0x2fe21c?.[_0x46429f(0x224)]?_0x46429f(0x1e5):_0x46429f(0x215));return _0x3018d5(this[_0x46429f(0x20b)][_0x46429f(0x1e9)],_0x46429f(0x20f),[_0x45849a,_0x4a1ef2]);}case _0x46429f(0x20c):return _0x3018d5(this[_0x46429f(0x20b)][_0x46429f(0x1e9)],_0x46429f(0x1d7),_0x4a1ef2);case _0x46429f(0x1f1):case _0x46429f(0x209):return _0x3018d5(this[_0x46429f(0x20b)][_0x46429f(0x1e9)],_0x46429f(0x1de));default:return _0x3018d5(this[_0x46429f(0x20b)][_0x46429f(0x1e9)],_0x46429f(0x208));}}[_0xbd3570(0x220)](){const _0x3d8e34=_0xbd3570,_0x47dab8=new Date(),_0x26df64=new Date(_0x47dab8[_0x3d8e34(0x1dd)](),_0x47dab8[_0x3d8e34(0x223)](),_0x47dab8[_0x3d8e34(0x1fa)]()),_0xbd5257=new Date(_0x26df64);_0xbd5257[_0x3d8e34(0x20a)](_0xbd5257[_0x3d8e34(0x1fa)]()-0x1);const _0xce8078=new Date(_0x26df64);_0xce8078[_0x3d8e34(0x20a)](_0xce8078[_0x3d8e34(0x1fa)]()-0xe);const _0x375ead=this[_0x3d8e34(0x21f)][_0x3d8e34(0x22a)]({'pinned':!0x0}),_0x3a532d=this[_0x3d8e34(0x21f)][_0x3d8e34(0x22a)]({'from':_0x26df64,'to':_0x26df64}),_0x4eed0a=this[_0x3d8e34(0x21f)][_0x3d8e34(0x22a)]({'from':_0xbd5257,'to':_0xbd5257}),_0x184be8=this[_0x3d8e34(0x21f)][_0x3d8e34(0x22a)]({'from':_0xce8078,'to':_0xbd5257}),_0x14746c=this[_0x3d8e34(0x21f)][_0x3d8e34(0x22a)]({'to':_0xce8078}),_0x1154b6=[];return _0x375ead[_0x3d8e34(0x1df)]>0x0&&_0x1154b6[_0x3d8e34(0x1da)]({'title':_0x3018d5(this[_0x3d8e34(0x20b)][_0x3d8e34(0x1e9)],_0x3d8e34(0x1d0)),'items':_0x375ead}),_0x3a532d[_0x3d8e34(0x1df)]>0x0&&_0x1154b6[_0x3d8e34(0x1da)]({'title':_0x3018d5(this[_0x3d8e34(0x20b)][_0x3d8e34(0x1e9)],_0x3d8e34(0x218)),'items':_0x3a532d}),_0x4eed0a[_0x3d8e34(0x1df)]>0x0&&_0x1154b6[_0x3d8e34(0x1da)]({'title':_0x3018d5(this[_0x3d8e34(0x20b)][_0x3d8e34(0x1e9)],_0x3d8e34(0x226)),'items':_0x4eed0a}),_0x184be8[_0x3d8e34(0x1df)]>0x0&&_0x1154b6[_0x3d8e34(0x1da)]({'title':_0x3018d5(this[_0x3d8e34(0x20b)][_0x3d8e34(0x1e9)],_0x3d8e34(0x1ff)),'items':_0x184be8}),_0x14746c[_0x3d8e34(0x1df)]>0x0&&_0x1154b6[_0x3d8e34(0x1da)]({'title':_0x3018d5(this[_0x3d8e34(0x20b)][_0x3d8e34(0x1e9)],_0x3d8e34(0x1d1)),'items':_0x14746c}),_0x1154b6;}[_0xbd3570(0x1fd)](_0x1a8400){const _0x4ecd35=_0xbd3570;this[_0x4ecd35(0x1eb)][_0x4ecd35(0x1e2)](_0x1a8400);}}
|
|
23
|
+
const _0x44ab07=_0x5392;(function(_0x279b7d,_0x510ecc){const _0x2b6533=_0x5392,_0x49763a=_0x279b7d();while(!![]){try{const _0x545165=-parseInt(_0x2b6533(0xa6))/0x1*(-parseInt(_0x2b6533(0xdb))/0x2)+parseInt(_0x2b6533(0xd5))/0x3*(parseInt(_0x2b6533(0x10a))/0x4)+parseInt(_0x2b6533(0xdd))/0x5+-parseInt(_0x2b6533(0xf0))/0x6*(-parseInt(_0x2b6533(0xe5))/0x7)+parseInt(_0x2b6533(0xf2))/0x8+-parseInt(_0x2b6533(0xa5))/0x9+-parseInt(_0x2b6533(0x107))/0xa*(parseInt(_0x2b6533(0xf8))/0xb);if(_0x545165===_0x510ecc)break;else _0x49763a['push'](_0x49763a['shift']());}catch(_0x44af84){_0x49763a['push'](_0x49763a['shift']());}}}(_0x1622,0x21c0d));import{ContextPlugin as _0x253896}from'ckeditor5/src/core.js';import{AIConnector as _0x36c84f}from'../aicore/aiconnector.js';function _0x1622(){const _0x4d1257=['setDate','_setIsMaximized','pluginName','_clearItemLoading','context','activeConversation','AI_CHAT_UNTITLED_CONVERSATION','view','operation','push','plugins','125570ZghcXq','chat','change:activeConversation','4csKaAK','updateItems','1777779TdTdwN','57136XVcExr','setConversationPinned','createdAt','AI_CHAT_HISTORY_CATEGORY_PINNED','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','resize','getItem','requires','map','removeItem','removeConversation','rename','itemsLoaded','toLocaleDateString','get','AI_CHAT_HISTORY_CATEGORY_LATER','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','_generateErrorMessage','getGroupId','_handleSelectConversation','_getCategorizedItems','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','itemRemoved','setIsMaximized','handleRemovedConversation','showError','updateItemTitle','isPremiumPlugin','getMonth','error','AI_CHAT_HISTORY_CATEGORY_TODAY','updateItemLoadingState','getDate','selectConversation','loadConversation','history','remove','isOfficialPlugin','loadItems','_aiChatController','activateTab:history','pinned','listenTo','pin','_handleHistoryErrorUI','_showConversationHistory','_handleEditTitle','73122vDIXfr','items','AI_CHAT_HISTORY_UNPIN_ACTION','_setItemLoading','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','_handleRemove','2LWhqPN','openChat','636530iwyBNX','unpin','_aiChatHistoryUi','locale','AIChatHistoryController','updates','itemId','init','21KSFIor','resizeTabs','updateItemPinned','editConversationTitle','AI_CHAT_HISTORY_PIN_ACTION','title','resizedTabs','getFullYear','getItems','activateTab','AI_CHAT_HISTORY_ERROR_GENERIC','507216qzTxfO','removeHistoryItem','795088NYdssF','itemUpdated','setLoadingSkeleton','length','_handleTogglePin','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','198yszDOD','_updateHistoryItemsUI','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','_aiConnector'];_0x1622=function(){return _0x4d1257;};return _0x1622();}import{AIChatController as _0x6a4dde}from'../aichat/aichatcontroller.js';import{AITabs as _0x326960}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x55bc4b}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x3a91cf}from'./model/aichathistoryconversations.js';function _0x5392(_0x5f08d6,_0x262ffd){const _0x162297=_0x1622();return _0x5392=function(_0x5392eb,_0x388481){_0x5392eb=_0x5392eb-0xa4;let _0x1472f9=_0x162297[_0x5392eb];return _0x1472f9;},_0x5392(_0x5f08d6,_0x262ffd);}import{getTranslation as _0x29396c}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x253896{[_0x44ab07(0xfb)];[_0x44ab07(0xdf)];[_0x44ab07(0xcd)];static get[_0x44ab07(0xad)](){return[_0x36c84f,_0x6a4dde,_0x55bc4b,_0x326960];}static get[_0x44ab07(0xfe)](){const _0x804b24=_0x44ab07;return _0x804b24(0xe1);}static get[_0x44ab07(0xcb)](){return!0x0;}static get[_0x44ab07(0xc1)](){return!0x0;}[_0x44ab07(0xe4)](){const _0x49c7ec=_0x44ab07;this[_0x49c7ec(0xfb)]=this[_0x49c7ec(0x100)][_0x49c7ec(0x106)][_0x49c7ec(0xb4)](_0x36c84f),this[_0x49c7ec(0xdf)]=this[_0x49c7ec(0x100)][_0x49c7ec(0x106)][_0x49c7ec(0xb4)](_0x55bc4b),this[_0x49c7ec(0xcd)]=this[_0x49c7ec(0x100)][_0x49c7ec(0x106)][_0x49c7ec(0xb4)](_0x6a4dde);const _0x30c1af=this[_0x49c7ec(0x100)][_0x49c7ec(0x106)][_0x49c7ec(0xb4)](_0x326960);try{const _0x482ef6=this[_0x49c7ec(0xcd)][_0x49c7ec(0xb8)]();this[_0x49c7ec(0xc9)]=new _0x3a91cf({'connector':this[_0x49c7ec(0xfb)],'group':_0x482ef6}),this[_0x49c7ec(0xd0)](this[_0x49c7ec(0xdf)],_0x49c7ec(0xb0),(_0x5378af,_0x2841a1)=>{const _0x343ef0=_0x49c7ec;this[_0x343ef0(0xd8)](_0x2841a1['id'],_0x343ef0(0xca)),this[_0x343ef0(0xda)](_0x2841a1['id']);}),this[_0x49c7ec(0xd0)](this[_0x49c7ec(0xdf)],_0x49c7ec(0xe8),(_0x366795,_0x4fe40a)=>{const _0x58b669=_0x49c7ec;this[_0x58b669(0xd8)](_0x4fe40a['id'],_0x58b669(0xb1)),this[_0x58b669(0xd4)](_0x4fe40a['id'],_0x4fe40a[_0x58b669(0xea)]);}),this[_0x49c7ec(0xd0)](this[_0x49c7ec(0xc9)],_0x49c7ec(0xf3),(_0x3bf6d0,_0x19110e)=>{const _0x54d35d=_0x49c7ec;void 0x0!==_0x19110e[_0x54d35d(0xe2)][_0x54d35d(0xea)]&&this[_0x54d35d(0xdf)][_0x54d35d(0xc0)](_0x19110e[_0x54d35d(0xe3)],_0x19110e[_0x54d35d(0xe2)][_0x54d35d(0xea)]),void 0x0!==_0x19110e[_0x54d35d(0xe2)][_0x54d35d(0xcf)]&&this[_0x54d35d(0xf9)](),this[_0x54d35d(0xff)](_0x19110e[_0x54d35d(0xe3)]);}),this[_0x49c7ec(0xd0)](this[_0x49c7ec(0xc9)],_0x49c7ec(0xbc),(_0x379763,_0x5bc07f)=>{const _0x4ed5b4=_0x49c7ec;this[_0x4ed5b4(0xcd)][_0x4ed5b4(0xbe)](_0x5bc07f[_0x4ed5b4(0xe3)]),this[_0x4ed5b4(0xdf)][_0x4ed5b4(0xf1)](_0x5bc07f[_0x4ed5b4(0xe3)]),this[_0x4ed5b4(0xff)](_0x5bc07f[_0x4ed5b4(0xe3)]);}),this[_0x49c7ec(0xd0)](this[_0x49c7ec(0xc9)],_0x49c7ec(0xb2),()=>{const _0x374379=_0x49c7ec;this[_0x374379(0xf9)]();}),this[_0x49c7ec(0xd0)](this[_0x49c7ec(0xc9)],_0x49c7ec(0xc3),(_0x5b56cf,_0x2229ae)=>{const _0x6d312c=_0x49c7ec;this[_0x6d312c(0xd2)](_0x2229ae[_0x6d312c(0xc3)],_0x2229ae[_0x6d312c(0x104)],_0x2229ae[_0x6d312c(0xe3)]);}),this[_0x49c7ec(0xd0)](this[_0x49c7ec(0xdf)],_0x49c7ec(0xc7),(_0x137415,_0x30f061)=>{const _0x4e5752=_0x49c7ec;this[_0x4e5752(0xb9)](_0x30f061['id']);}),this[_0x49c7ec(0xd0)](this[_0x49c7ec(0xdf)],_0x49c7ec(0xa7),(_0x53e5b4,_0xc8e4c6)=>{const _0x5a46d2=_0x49c7ec,_0x663bbf=_0xc8e4c6[_0x5a46d2(0xcf)]?_0x5a46d2(0xd1):_0x5a46d2(0xde);this[_0x5a46d2(0xd8)](_0xc8e4c6['id'],_0x663bbf),this[_0x5a46d2(0xf6)](_0xc8e4c6['id'],_0xc8e4c6[_0x5a46d2(0xcf)]);}),this[_0x49c7ec(0xd0)](this[_0x49c7ec(0xdf)],_0x49c7ec(0xdc),()=>{const _0xa3077=_0x49c7ec;_0x30c1af[_0xa3077(0x103)][_0xa3077(0xee)](_0xa3077(0x108));}),this[_0x49c7ec(0xd0)](this[_0x49c7ec(0xcd)],_0x49c7ec(0x109),()=>{const _0x2bc89b=_0x49c7ec;this[_0x2bc89b(0xf9)]();}),_0x30c1af[_0x49c7ec(0x103)]['on'](_0x49c7ec(0xce),()=>{const _0x17a974=_0x49c7ec;this[_0x17a974(0xd3)]();}),this[_0x49c7ec(0xd0)](_0x30c1af,_0x49c7ec(0xeb),(_0x58dded,_0x52ae86)=>{const _0x167a87=_0x49c7ec;this[_0x167a87(0xfd)](_0x52ae86);}),this[_0x49c7ec(0xd0)](this[_0x49c7ec(0xdf)],_0x49c7ec(0xe6),()=>{const _0x315dd1=_0x49c7ec;_0x30c1af[_0x315dd1(0xab)]();});}catch(_0x3adf06){this[_0x49c7ec(0xd2)](_0x3adf06,_0x49c7ec(0xe4));}}async[_0x44ab07(0xd4)](_0x2edd55,_0x559963){const _0x50b2f8=_0x44ab07;await this[_0x50b2f8(0xc9)][_0x50b2f8(0xc0)](_0x2edd55,_0x559963);}async[_0x44ab07(0xf6)](_0x3dfef3,_0x21009e){const _0x31de04=_0x44ab07;await this[_0x31de04(0xc9)][_0x31de04(0xe7)](_0x3dfef3,_0x21009e);}async[_0x44ab07(0xda)](_0x2f7c0f){const _0x5f21a5=_0x44ab07;await this[_0x5f21a5(0xc9)][_0x5f21a5(0xaf)](_0x2f7c0f);}async[_0x44ab07(0xb9)](_0x45b4d4){const _0x1b789c=_0x44ab07;await this[_0x1b789c(0xcd)][_0x1b789c(0xc8)](_0x45b4d4);}async[_0x44ab07(0xd3)](){const _0xa9604f=_0x44ab07;this[_0xa9604f(0xdf)][_0xa9604f(0xbf)](''),this[_0xa9604f(0xdf)][_0xa9604f(0xf4)](!0x0),await this[_0xa9604f(0xc9)][_0xa9604f(0xe4)](),this[_0xa9604f(0xdf)][_0xa9604f(0xf4)](!0x1);}[_0x44ab07(0xf9)](){const _0x4a1bb0=_0x44ab07,_0x16d064=this[_0x4a1bb0(0xcd)][_0x4a1bb0(0x101)]?.['id'],_0x5e8c3a=this[_0x4a1bb0(0xba)]()[_0x4a1bb0(0xae)](_0x191fcb=>({'title':_0x191fcb[_0x4a1bb0(0xea)],'items':_0x191fcb[_0x4a1bb0(0xd6)][_0x4a1bb0(0xae)](_0x34143d=>({'id':_0x34143d['id'],'title':_0x34143d[_0x4a1bb0(0xea)]||_0x29396c(this[_0x4a1bb0(0x100)][_0x4a1bb0(0xe0)],_0x4a1bb0(0x102)),'createdAt':new Date(_0x34143d[_0x4a1bb0(0xa8)])[_0x4a1bb0(0xb3)](),'active':_0x34143d['id']===_0x16d064,'pinned':_0x34143d[_0x4a1bb0(0xcf)]}))}));this[_0x4a1bb0(0xdf)][_0x4a1bb0(0xa4)](_0x5e8c3a);}[_0x44ab07(0xd8)](_0x41b555,_0x52007a){const _0x325c60=_0x44ab07;this[_0x325c60(0xdf)][_0x325c60(0xc5)](_0x41b555,_0x52007a,!0x0);}[_0x44ab07(0xff)](_0x3eefbb){const _0x52ecf2=_0x44ab07;this[_0x52ecf2(0xdf)][_0x52ecf2(0xc5)](_0x3eefbb,null,!0x1);}[_0x44ab07(0xd2)](_0x189051,_0x16ace2,_0x5cb83f){const _0x94bab=_0x44ab07,_0x4bbdef=this[_0x94bab(0xb7)](_0x16ace2,_0x5cb83f);this[_0x94bab(0xdf)][_0x94bab(0xbf)](_0x4bbdef),_0x5cb83f&&this[_0x94bab(0xff)](_0x5cb83f),this[_0x94bab(0xdf)][_0x94bab(0xf4)](!0x1);}[_0x44ab07(0xb7)](_0x329c58,_0x56a989){const _0x106c96=_0x44ab07,_0x4e9d47=_0x56a989?this[_0x106c96(0xc9)][_0x106c96(0xac)](_0x56a989):null,_0x588a8a=_0x4e9d47?.[_0x106c96(0xea)]||_0x29396c(this[_0x106c96(0x100)][_0x106c96(0xe0)],_0x106c96(0x102));switch(_0x329c58){case _0x106c96(0xc0):return _0x29396c(this[_0x106c96(0x100)][_0x106c96(0xe0)],_0x106c96(0xfa),_0x588a8a);case _0x106c96(0xe7):{const _0x446fce=_0x29396c(this[_0x106c96(0x100)][_0x106c96(0xe0)],_0x4e9d47?.[_0x106c96(0xcf)]?_0x106c96(0xd7):_0x106c96(0xe9));return _0x29396c(this[_0x106c96(0x100)][_0x106c96(0xe0)],_0x106c96(0xf7),[_0x446fce,_0x588a8a]);}case _0x106c96(0xaf):return _0x29396c(this[_0x106c96(0x100)][_0x106c96(0xe0)],_0x106c96(0xd9),_0x588a8a);case _0x106c96(0xe4):case _0x106c96(0xcc):return _0x29396c(this[_0x106c96(0x100)][_0x106c96(0xe0)],_0x106c96(0xbb));default:return _0x29396c(this[_0x106c96(0x100)][_0x106c96(0xe0)],_0x106c96(0xef));}}[_0x44ab07(0xba)](){const _0x2a880b=_0x44ab07,_0x27bdac=new Date(),_0x936eda=new Date(_0x27bdac[_0x2a880b(0xec)](),_0x27bdac[_0x2a880b(0xc2)](),_0x27bdac[_0x2a880b(0xc6)]()),_0x1113b1=new Date(_0x936eda);_0x1113b1[_0x2a880b(0xfc)](_0x1113b1[_0x2a880b(0xc6)]()-0x1);const _0x250734=new Date(_0x936eda);_0x250734[_0x2a880b(0xfc)](_0x250734[_0x2a880b(0xc6)]()-0xe);const _0x21b501=this[_0x2a880b(0xc9)][_0x2a880b(0xed)]({'pinned':!0x0}),_0x541c2a=this[_0x2a880b(0xc9)][_0x2a880b(0xed)]({'from':_0x936eda,'to':_0x936eda}),_0xa93471=this[_0x2a880b(0xc9)][_0x2a880b(0xed)]({'from':_0x1113b1,'to':_0x1113b1}),_0x965ba7=this[_0x2a880b(0xc9)][_0x2a880b(0xed)]({'from':_0x250734,'to':_0x1113b1}),_0x4bf66d=this[_0x2a880b(0xc9)][_0x2a880b(0xed)]({'to':_0x250734}),_0x481ecd=[];return _0x21b501[_0x2a880b(0xf5)]>0x0&&_0x481ecd[_0x2a880b(0x105)]({'title':_0x29396c(this[_0x2a880b(0x100)][_0x2a880b(0xe0)],_0x2a880b(0xa9)),'items':_0x21b501}),_0x541c2a[_0x2a880b(0xf5)]>0x0&&_0x481ecd[_0x2a880b(0x105)]({'title':_0x29396c(this[_0x2a880b(0x100)][_0x2a880b(0xe0)],_0x2a880b(0xc4)),'items':_0x541c2a}),_0xa93471[_0x2a880b(0xf5)]>0x0&&_0x481ecd[_0x2a880b(0x105)]({'title':_0x29396c(this[_0x2a880b(0x100)][_0x2a880b(0xe0)],_0x2a880b(0xaa)),'items':_0xa93471}),_0x965ba7[_0x2a880b(0xf5)]>0x0&&_0x481ecd[_0x2a880b(0x105)]({'title':_0x29396c(this[_0x2a880b(0x100)][_0x2a880b(0xe0)],_0x2a880b(0xb6)),'items':_0x965ba7}),_0x4bf66d[_0x2a880b(0xf5)]>0x0&&_0x481ecd[_0x2a880b(0x105)]({'title':_0x29396c(this[_0x2a880b(0x100)][_0x2a880b(0xe0)],_0x2a880b(0xb5)),'items':_0x4bf66d}),_0x481ecd;}[_0x44ab07(0xfd)](_0x182578){const _0x2e6b06=_0x44ab07;this[_0x2e6b06(0xdf)][_0x2e6b06(0xbd)](_0x182578);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x20c113=_0x544d;function _0x544d(_0x5be207,_0x2fabd8){const _0x1dcc97=_0x1dcc();return _0x544d=function(_0x544d81,_0x1455ae){_0x544d81=_0x544d81-0x73;let _0x5f2334=_0x1dcc97[_0x544d81];return _0x5f2334;},_0x544d(_0x5be207,_0x2fabd8);}(function(_0x168a4b,_0x9820dc){const _0x155607=_0x544d,_0x4dacc0=_0x168a4b();while(!![]){try{const _0x57b5b4=parseInt(_0x155607(0x8f))/0x1*(parseInt(_0x155607(0x94))/0x2)+-parseInt(_0x155607(0x8c))/0x3+-parseInt(_0x155607(0x9a))/0x4*(parseInt(_0x155607(0x88))/0x5)+parseInt(_0x155607(0x76))/0x6*(-parseInt(_0x155607(0x8a))/0x7)+-parseInt(_0x155607(0x8b))/0x8+parseInt(_0x155607(0x86))/0x9*(-parseInt(_0x155607(0x93))/0xa)+parseInt(_0x155607(0xa1))/0xb*(parseInt(_0x155607(0x97))/0xc);if(_0x57b5b4===_0x9820dc)break;else _0x4dacc0['push'](_0x4dacc0['shift']());}catch(_0x289dcd){_0x4dacc0['push'](_0x4dacc0['shift']());}}}(_0x1dcc,0xc90a2));import{ContextPlugin as _0x296533}from'ckeditor5/src/core.js';function _0x1dcc(){const _0x3cd9a7=['setIsMaximized','10zbDOPl','144588yUPLYf','view','updateHistoryItemsWithCategories','25779972ROAtyX','updateItemLoadingState','showConversationHistory','495404Zcbkhr','selectConversation','history','updateItems','delegate','setConversationPinned','AIChatHistoryUI','11EFgMyv','isMaximized','editConversationTitle','hideError','addTab','16584rUvMBz','showError','updateItemTitle','setLoadingSkeleton','get','requires','removeHistoryItem','resizeTabs','errorMessage','isPremiumPlugin','AITabs','AI_CHAT_HISTORY_HEADING','isLoading','_historyView','showResizeButton','pluginName','55323VUZAvy','plugins','5YZARkt','locale','3780ScoBIl','5338384gGFosS','358281nsvzDr','removeConversation','context','15AxbxOB','isOfficialPlugin','openChat'];_0x1dcc=function(){return _0x3cd9a7;};return _0x1dcc();}import{AITabs as _0x48d407}from'../aitabs/aitabs.js';import{IconAIHistory as _0xf14536}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x235557}from'./ui/aichathistoryview.js';import{getTranslation as _0x4a741f}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x20c113(0x99),_0x20c113(0x8d),_0x20c113(0x73),_0x20c113(0x9f),_0x20c113(0x9b),_0x20c113(0x91),_0x20c113(0x7d)];export class AIChatHistoryUI extends _0x296533{static get[_0x20c113(0x7b)](){return[_0x48d407];}[_0x20c113(0x83)];static get[_0x20c113(0x85)](){const _0x2e1cd4=_0x20c113;return _0x2e1cd4(0xa0);}static get[_0x20c113(0x90)](){return!0x0;}static get[_0x20c113(0x7f)](){return!0x0;}constructor(_0x114eff){const _0x22a22b=_0x20c113;super(_0x114eff);const _0x4bdc8e=this[_0x22a22b(0x8e)][_0x22a22b(0x87)][_0x22a22b(0x7a)](_0x22a22b(0x80));this[_0x22a22b(0x83)]=new _0x235557(this[_0x22a22b(0x8e)][_0x22a22b(0x89)],_0x4bdc8e[_0x22a22b(0x84)]),this[_0x22a22b(0x83)][_0x22a22b(0x9e)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x4bdc8e[_0x22a22b(0x95)][_0x22a22b(0x75)]({'id':_0x22a22b(0x9c),'buttonLabel':_0x4a741f(this[_0x22a22b(0x8e)][_0x22a22b(0x89)],_0x22a22b(0x81)),'buttonIcon':_0xf14536,'order':0x0,'content':this[_0x22a22b(0x83)]});}[_0x20c113(0x7c)](_0x36794d){const _0x58220d=_0x20c113;this[_0x58220d(0x83)][_0x58220d(0x7c)](_0x36794d);}[_0x20c113(0x9d)](_0x437578){const _0x5e281f=_0x20c113;this[_0x5e281f(0x83)][_0x5e281f(0x96)](_0x437578);}[_0x20c113(0x78)](_0x19e519,_0xd7fa30){const _0x9a690a=_0x20c113;this[_0x9a690a(0x83)][_0x9a690a(0x78)](_0x19e519,_0xd7fa30);}[_0x20c113(0x98)](_0x5b6df3,_0x535e1c,_0x518a56){const _0x5a6ddd=_0x20c113;this[_0x5a6ddd(0x83)][_0x5a6ddd(0x98)](_0x5b6df3,_0x535e1c,_0x518a56);}[_0x20c113(0x79)](_0x2f3d56){const _0x2d2754=_0x20c113;this[_0x2d2754(0x83)][_0x2d2754(0x82)]=_0x2f3d56;}[_0x20c113(0x77)](_0x126415){const _0x5655c5=_0x20c113;this[_0x5655c5(0x83)][_0x5655c5(0x7e)]=_0x126415;}[_0x20c113(0x74)](){const _0x23fcd2=_0x20c113;this[_0x23fcd2(0x83)][_0x23fcd2(0x7e)]='';}[_0x20c113(0x92)](_0xc313ba){const _0x2e9cbc=_0x20c113;this[_0x2e9cbc(0x83)][_0x2e9cbc(0xa2)]=_0xc313ba;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x50b8ec=_0x3b5a;function _0x3b5a(_0x41d332,_0x4f0961){const _0x4c5cc5=_0x4c5c();return _0x3b5a=function(_0x3b5a14,_0x4791c8){_0x3b5a14=_0x3b5a14-0x119;let _0x51065c=_0x4c5cc5[_0x3b5a14];return _0x51065c;},_0x3b5a(_0x41d332,_0x4f0961);}(function(_0x3bd3a7,_0x523f7a){const _0x1a33a7=_0x3b5a,_0x16fbcc=_0x3bd3a7();while(!![]){try{const _0xfa6942=parseInt(_0x1a33a7(0x11c))/0x1+parseInt(_0x1a33a7(0x121))/0x2+parseInt(_0x1a33a7(0x133))/0x3+parseInt(_0x1a33a7(0x139))/0x4*(parseInt(_0x1a33a7(0x137))/0x5)+-parseInt(_0x1a33a7(0x128))/0x6*(parseInt(_0x1a33a7(0x138))/0x7)+-parseInt(_0x1a33a7(0x141))/0x8+-parseInt(_0x1a33a7(0x135))/0x9;if(_0xfa6942===_0x523f7a)break;else _0x16fbcc['push'](_0x16fbcc['shift']());}catch(_0x257d66){_0x16fbcc['push'](_0x16fbcc['shift']());}}}(_0x4c5c,0x1e49f));import{EmitterMixin as _0x3e6ff0}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x229540}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x3e6ff0(){[_0x50b8ec(0x11f)]=[];[_0x50b8ec(0x131)];[_0x50b8ec(0x11a)];constructor({connector:_0x29dbb9,group:_0x15af5e}){const _0x29921b=_0x50b8ec;super(),this[_0x29921b(0x131)]=_0x29dbb9,this[_0x29921b(0x11a)]=_0x15af5e;}async[_0x50b8ec(0x145)](){const _0x3cdff5=_0x50b8ec;try{const _0x3d6902=this[_0x3cdff5(0x131)][_0x3cdff5(0x124)](this[_0x3cdff5(0x11a)]),_0x55964d=await _0x3d6902[_0x3cdff5(0x12b)]();this[_0x3cdff5(0x13e)](_0x55964d);}catch(_0x1f1a15){this[_0x3cdff5(0x122)](_0x3cdff5(0x142),{'error':_0x1f1a15,'operation':_0x3cdff5(0x145)});}}[_0x50b8ec(0x126)](_0x5afa58){const _0x4583a3=_0x50b8ec;this[_0x4583a3(0x11f)][_0x4583a3(0x130)](_0x5afa58);}async[_0x50b8ec(0x12c)](_0x44029e){const _0x2cbffe=_0x50b8ec,_0x41eef2=this[_0x2cbffe(0x11f)][_0x2cbffe(0x120)](_0x528115=>_0x528115['id']===_0x44029e);if(-0x1===_0x41eef2)return!0x1;try{return await this[_0x2cbffe(0x131)][_0x2cbffe(0x143)](_0x44029e)[_0x2cbffe(0x134)](),this[_0x2cbffe(0x11f)][_0x2cbffe(0x13d)](_0x41eef2,0x1),this[_0x2cbffe(0x122)](_0x2cbffe(0x119),{'itemId':_0x44029e}),!0x0;}catch(_0x226575){return this[_0x2cbffe(0x122)](_0x2cbffe(0x142),{'error':_0x226575,'operation':_0x2cbffe(0x12c),'itemId':_0x44029e}),!0x1;}}[_0x50b8ec(0x13c)](_0x5b2498){const _0x28f82e=_0x50b8ec;return this[_0x28f82e(0x11f)][_0x28f82e(0x13b)](_0x3cc05e=>_0x3cc05e['id']===_0x5b2498);}async[_0x50b8ec(0x11d)](_0x2cbad2,_0x4a21a6){const _0xf1b07e=_0x50b8ec,_0x18a5bc=this[_0xf1b07e(0x13c)](_0x2cbad2);if(!_0x18a5bc)return!0x1;try{return await this[_0xf1b07e(0x131)][_0xf1b07e(0x13a)](_0x2cbad2,{'title':_0x4a21a6})[_0xf1b07e(0x11b)](),_0x18a5bc[_0xf1b07e(0x129)](_0x4a21a6),this[_0xf1b07e(0x122)](_0xf1b07e(0x13f),{'itemId':_0x2cbad2,'updates':{'title':_0x4a21a6}}),!0x0;}catch(_0x3aa2f5){return this[_0xf1b07e(0x122)](_0xf1b07e(0x142),{'error':_0x3aa2f5,'operation':_0xf1b07e(0x11d),'itemId':_0x2cbad2}),!0x1;}}async[_0x50b8ec(0x125)](_0x5c0f6a,_0x55f04e){const _0x369d56=_0x50b8ec,_0x13caab=this[_0x369d56(0x13c)](_0x5c0f6a);if(!_0x13caab)return!0x1;try{return await this[_0x369d56(0x131)][_0x369d56(0x13a)](_0x5c0f6a,{'pinned':_0x55f04e})[_0x369d56(0x11b)](),_0x13caab[_0x369d56(0x12e)](_0x55f04e),this[_0x369d56(0x122)](_0x369d56(0x13f),{'itemId':_0x5c0f6a,'updates':{'pinned':_0x55f04e}}),!0x0;}catch(_0x76f48a){return this[_0x369d56(0x122)](_0x369d56(0x142),{'error':_0x76f48a,'operation':_0x369d56(0x125),'itemId':_0x5c0f6a}),!0x1;}}[_0x50b8ec(0x13e)](_0x32b67b){const _0xf1fb47=_0x50b8ec;try{this[_0xf1fb47(0x11f)]=[],_0x32b67b[_0xf1fb47(0x11e)](_0x4fd231=>{const _0x506b12=_0xf1fb47;this[_0x506b12(0x126)](new _0x229540(_0x4fd231));}),this[_0xf1fb47(0x122)](_0xf1fb47(0x12f),{'items':[...this[_0xf1fb47(0x11f)]]});}catch(_0x3ae83d){this[_0xf1fb47(0x122)](_0xf1fb47(0x142),{'error':_0x3ae83d,'operation':_0xf1fb47(0x13e)});}}[_0x50b8ec(0x136)](_0xf7a003={}){const _0x32b7c3=_0x50b8ec,_0x2dcb64=void 0x0!==_0xf7a003[_0x32b7c3(0x146)]&&_0xf7a003[_0x32b7c3(0x146)],_0x20495a=_0xf7a003[_0x32b7c3(0x127)]?new Date(_0xf7a003[_0x32b7c3(0x127)][_0x32b7c3(0x132)](),_0xf7a003[_0x32b7c3(0x127)][_0x32b7c3(0x12d)](),_0xf7a003[_0x32b7c3(0x127)][_0x32b7c3(0x144)]()):null,_0x2f3716=_0xf7a003['to']?new Date(_0xf7a003['to'][_0x32b7c3(0x132)](),_0xf7a003['to'][_0x32b7c3(0x12d)](),_0xf7a003['to'][_0x32b7c3(0x144)]()):null;return this[_0x32b7c3(0x11f)][_0x32b7c3(0x140)](_0x5b68a9=>{const _0x5ba99c=_0x32b7c3;if(_0x5b68a9[_0x5ba99c(0x146)]!==_0x2dcb64)return!0x1;if(_0x2f3716){const _0x5a962f=new Date(_0x5b68a9[_0x5ba99c(0x123)][_0x5ba99c(0x132)](),_0x5b68a9[_0x5ba99c(0x123)][_0x5ba99c(0x12d)](),_0x5b68a9[_0x5ba99c(0x123)][_0x5ba99c(0x144)]());return _0x20495a?_0x20495a[_0x5ba99c(0x12a)]()===_0x2f3716[_0x5ba99c(0x12a)]()?_0x5a962f[_0x5ba99c(0x12a)]()===_0x20495a[_0x5ba99c(0x12a)]():_0x5a962f<_0x2f3716&&_0x5a962f>=_0x20495a:_0x5a962f<_0x2f3716;}return!0x0;});}}function _0x4c5c(){const _0x247b9b=['updateTitle','getTime','getConversations','removeItem','getMonth','updatePinned','itemsLoaded','push','connector','getFullYear','556017VDvuDj','execute','2084175nFeROD','getItems','5645HXApyR','35AwZaZa','608cXqYeu','updateConversation','find','getItem','splice','loadItems','itemUpdated','filter','344152bhsQNI','error','deleteConversation','getDate','init','pinned','itemRemoved','group','getResult','9538vYUKIz','updateItemTitle','map','items','findIndex','272954LHFVWi','fire','createdAt','fetchConversations','updateItemPinned','addItem','from','125166oWWhla'];_0x4c5c=function(){return _0x247b9b;};return _0x4c5c();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3e9546=_0x3d2a;(function(_0x55b1ac,_0x11541d){var _0x23cdc4=_0x3d2a,_0x1c5963=_0x55b1ac();while(!![]){try{var _0x11a136=-parseInt(_0x23cdc4(0x107))/0x1*(parseInt(_0x23cdc4(0x100))/0x2)+-parseInt(_0x23cdc4(0x105))/0x3*(parseInt(_0x23cdc4(0x110))/0x4)+-parseInt(_0x23cdc4(0x106))/0x5*(-parseInt(_0x23cdc4(0x10c))/0x6)+-parseInt(_0x23cdc4(0x108))/0x7*(parseInt(_0x23cdc4(0x109))/0x8)+-parseInt(_0x23cdc4(0x10d))/0x9+-parseInt(_0x23cdc4(0x101))/0xa*(-parseInt(_0x23cdc4(0x112))/0xb)+parseInt(_0x23cdc4(0x10e))/0xc;if(_0x11a136===_0x11541d)break;else _0x1c5963['push'](_0x1c5963['shift']());}catch(_0x3b5d97){_0x1c5963['push'](_0x1c5963['shift']());}}}(_0x3090,0xdda64));import{ObservableMixin as _0x517f87}from'ckeditor5/src/utils.js';function _0x3090(){var _0x4e7ad0=['title','createdAt','set','3bcLdtC','18005zdDGtu','21HjCphs','139489OKiVcc','664vkDTnQ','updatedAt','updatePinned','6ULDuIU','884601rqKksB','46690224aMXoWq','pinned','4271604KDnAYR','updateTitle','486409zIEcer','104290wAtSTM','210EiaoVY'];_0x3090=function(){return _0x4e7ad0;};return _0x3090();}function _0x3d2a(_0x192ff7,_0x1dd998){var _0x309045=_0x3090();return _0x3d2a=function(_0x3d2a79,_0x228b4b){_0x3d2a79=_0x3d2a79-0x100;var _0x34daf9=_0x309045[_0x3d2a79];return _0x34daf9;},_0x3d2a(_0x192ff7,_0x1dd998);}import{escape as _0x36051d}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x517f87(){['id'];[_0x3e9546(0x103)];constructor({id:_0x336a73,title:_0x566bfa,createdAt:_0x48a879,updatedAt:_0x5d8c79,pinned:_0x32558b}){var _0x375de5=_0x3e9546;super(),this['id']=_0x336a73,this[_0x375de5(0x103)]=new Date(_0x48a879),this[_0x375de5(0x104)](_0x375de5(0x102),_0x566bfa),this[_0x375de5(0x104)](_0x375de5(0x10a),_0x5d8c79?new Date(_0x5d8c79):null),this[_0x375de5(0x104)](_0x375de5(0x10f),_0x32558b||!0x1);}[_0x3e9546(0x111)](_0x4caf01){var _0x20330d=_0x3e9546;this[_0x20330d(0x104)](_0x20330d(0x102),_0x36051d(_0x4caf01)),this[_0x20330d(0x10a)]=new Date();}[_0x3e9546(0x10b)](_0x30becc){var _0x549129=_0x3e9546;this[_0x549129(0x104)](_0x549129(0x10f),_0x30becc),this[_0x549129(0x10a)]=new Date();}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
const _0x3caa4b=_0x291a;function _0x5d16(){const _0x97d93f=['250165PASuSQ','AI_CHAT_HISTORY_PIN_BUTTON','_createPinButtonView','pinned','AI_CHAT_HISTORY_LOADING_UNPINNING','panelView','match','panelPosition','ck-confirm-view-cancel','clear','key','locale','ck-ai-chat-history__item-content','8seYwAB','LOADING_LABELS','3BxfgWu','div','_createEditInputView','AI_CHAT_HISTORY_EDIT_NAME','focus','loadingState','items','isVisible','mainContent','_commitEditInputValue','updateTitle','bindTemplate','removeConversation','string','ck-ai-chat-history__item-date','ck-ai-chat-history__item--active','9jSnNiS','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','edit:cancel','118063iFAvFS','ck-ai-chat-history__item--edit','isEdit','listitem','350CuXeoe','isMatching','highlightText','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_LOADING_REMOVING','children','then','ck-ai-chat-history__item-main-content','AI_CHAT_HISTORY_CANCEL','Enter','ck-ai-chat-history__item-actions','createCollection','674345DDlIMG','ck-ai-loader','_createSpinnerView','value','withText','addMany','click','actions','10317424bXQKol','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_REMOVE_CONFIRM','setConversationPinned','showConfirm','AI_CHAT_HISTORY_LOADING_RENAMING','editConversationTitle','5225877bznFMt','buttonView','_titleView','_createMenuDropdownView','updateLoadingState','12twVXHb','text','fire','ck-ai-chat-history__item-check','bind','label','isOn','span','ck-ai-chat-history__item-row','set','change:isEdit','selectConversation','execute','_createCancelEditButtonView','ck-ai-chat-history__item-title','_createAcceptEditButtonView','element','ck-hidden','162902KbhWSf','add','tiny','ck-confirm-view-submit','ck-ai-chat-history__item','extendTemplate','AI_CHAT_HISTORY_REMOVE','6ocMHNj','_createCheckView','AI_CHAT_HISTORY_LOADING_PINNING','ck-ai-loader__text','389968JVKHkh','setTemplate'];_0x5d16=function(){return _0x97d93f;};return _0x5d16();}(function(_0x29d66f,_0x1f12b8){const _0x38b334=_0x291a,_0x583765=_0x29d66f();while(!![]){try{const _0x5b6d96=-parseInt(_0x38b334(0x24e))/0x1*(parseInt(_0x38b334(0x232))/0x2)+-parseInt(_0x38b334(0x1f9))/0x3*(parseInt(_0x38b334(0x23d))/0x4)+-parseInt(_0x38b334(0x23f))/0x5*(parseInt(_0x38b334(0x239))/0x6)+-parseInt(_0x38b334(0x20c))/0x7*(parseInt(_0x38b334(0x24c))/0x8)+parseInt(_0x38b334(0x21b))/0x9+-parseInt(_0x38b334(0x200))/0xa*(parseInt(_0x38b334(0x1fc))/0xb)+parseInt(_0x38b334(0x220))/0xc*(parseInt(_0x38b334(0x214))/0xd);if(_0x5b6d96===_0x1f12b8)break;else _0x583765['push'](_0x583765['shift']());}catch(_0x21738d){_0x583765['push'](_0x583765['shift']());}}}(_0x5d16,0x4d039));import{ListItemView as _0x246d1e,HighlightedTextView as _0x12b4ce,ButtonView as _0x244c0f,ListView as _0x8c9f32,IconView as _0x62aba5,createDropdown as _0x42d921,InputTextView as _0x3c6cb8}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x3270aa,IconPin as _0x3c998b,IconCheck as _0x37bba6,IconCancel as _0x4c9e9e}from'ckeditor5/src/icons.js';function _0x291a(_0x4acf73,_0x383303){const _0x5d1619=_0x5d16();return _0x291a=function(_0x291a28,_0x242976){_0x291a28=_0x291a28-0x1f2;let _0x510450=_0x5d1619[_0x291a28];return _0x510450;},_0x291a(_0x4acf73,_0x383303);}import{LateFocusDropdownButtonView as _0x58750d,ConfirmMixin as _0x1c4991}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x4422e8}from'es-toolkit/compat';import{AISpinnerView as _0x50fe94}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x96e725}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1c4991(_0x246d1e){['id'];static [_0x3caa4b(0x24d)]={'remove':_0x3caa4b(0x204),'rename':_0x3caa4b(0x219),'pin':_0x3caa4b(0x23b),'unpin':_0x3caa4b(0x243)};[_0x3caa4b(0x213)];[_0x3caa4b(0x256)];[_0x3caa4b(0x21d)];constructor(_0x3a9073,_0x24da33){const _0xc405a8=_0x3caa4b;super(_0x3a9073);const _0x2aa00c=this[_0xc405a8(0x1f4)];this[_0xc405a8(0x229)](_0xc405a8(0x1fe),!0x1),this[_0xc405a8(0x229)](_0xc405a8(0x255),!0x0),this[_0xc405a8(0x229)](_0xc405a8(0x242),!!_0x24da33[_0xc405a8(0x242)]),this[_0xc405a8(0x229)](_0xc405a8(0x253),null),this['id']=_0x24da33['id'];const {title:_0x1bbabb,createdAt:_0x29e561,active:_0xd5116d=!0x1}=_0x24da33;this[_0xc405a8(0x21d)]=new _0x12b4ce(),this[_0xc405a8(0x21d)][_0xc405a8(0x221)]=_0x1bbabb,this[_0xc405a8(0x21d)][_0xc405a8(0x237)]({'attributes':{'class':[_0xc405a8(0x22e)]}});const _0x2b9050=this[_0xc405a8(0x23a)](),_0x204450=this[_0xc405a8(0x241)](_0x3a9073),_0x129d4b=this[_0xc405a8(0x21e)](),_0x211df8=this[_0xc405a8(0x250)](_0x3a9073,_0x1bbabb),_0x4a204a=this[_0xc405a8(0x22f)](_0x3a9073,_0x211df8),_0xcf26a9=this[_0xc405a8(0x22d)](_0x3a9073,_0x211df8);this[_0xc405a8(0x213)]=this[_0xc405a8(0x20b)](),this[_0xc405a8(0x256)]=this[_0xc405a8(0x20b)](),this[_0xc405a8(0x256)][_0xc405a8(0x233)](this[_0xc405a8(0x21d)]),this[_0xc405a8(0x213)][_0xc405a8(0x233)](_0x204450),this[_0xc405a8(0x213)][_0xc405a8(0x233)](_0x129d4b),this['on'](_0xc405a8(0x22a),(_0x488819,_0x5bab15,_0x3bf8bb)=>{const _0x2fecfc=_0xc405a8;this[_0x2fecfc(0x213)][_0x2fecfc(0x248)](),this[_0x2fecfc(0x256)][_0x2fecfc(0x248)](),_0x3bf8bb?(this[_0x2fecfc(0x213)][_0x2fecfc(0x233)](_0x4a204a),this[_0x2fecfc(0x213)][_0x2fecfc(0x233)](_0xcf26a9),this[_0x2fecfc(0x256)][_0x2fecfc(0x233)](_0x211df8),_0x211df8[_0x2fecfc(0x230)][_0x2fecfc(0x252)]()):(this[_0x2fecfc(0x213)][_0x2fecfc(0x233)](_0x204450),this[_0x2fecfc(0x213)][_0x2fecfc(0x233)](_0x129d4b),this[_0x2fecfc(0x256)][_0x2fecfc(0x233)](this[_0x2fecfc(0x21d)]));}),this[_0xc405a8(0x23e)]({'tag':'li','attributes':{'class':[_0xc405a8(0x236),_0xd5116d?_0xc405a8(0x1f8):'',_0x2aa00c['if'](_0xc405a8(0x255),_0xc405a8(0x231),_0x91c977=>!_0x91c977),_0x2aa00c['if'](_0xc405a8(0x1fe),_0xc405a8(0x1fd))],'role':_0xc405a8(0x1ff)},'children':[{'tag':_0xc405a8(0x227),'attributes':{'class':[_0xc405a8(0x203)]},'children':[{'tag':_0xc405a8(0x24f),'attributes':{'class':[_0xc405a8(0x223),_0x2aa00c['if'](_0xc405a8(0x253),_0xc405a8(0x231),_0x1d349c=>!!_0x1d349c)]},'children':_0xd5116d?[_0x2b9050]:[]},{'tag':_0xc405a8(0x24f),'attributes':{'class':[_0xc405a8(0x20d),_0x2aa00c['if'](_0xc405a8(0x253),_0xc405a8(0x231),_0x40f501=>!_0x40f501)]},'children':[this[_0xc405a8(0x20e)]()]}]},{'tag':_0xc405a8(0x24f),'attributes':{'class':[_0xc405a8(0x228)]},'children':[{'tag':_0xc405a8(0x24f),'attributes':{'class':[_0xc405a8(0x24b)]},'on':{'click':this[_0xc405a8(0x1f4)]['to'](_0xc405a8(0x212))},'children':[{'tag':_0xc405a8(0x24f),'attributes':{'class':[_0xc405a8(0x207)]},'children':[{'tag':_0xc405a8(0x24f),'attributes':{'class':[_0xc405a8(0x22e),_0x2aa00c['if'](_0xc405a8(0x253),_0xc405a8(0x231),_0xe0bba5=>!!_0xe0bba5)]},'children':this[_0xc405a8(0x256)]},{'tag':_0xc405a8(0x24f),'attributes':{'class':[_0xc405a8(0x23c),_0x2aa00c['if'](_0xc405a8(0x253),_0xc405a8(0x231),_0x50e9a7=>!_0x50e9a7)]},'children':[{'text':_0x2aa00c['to'](_0xc405a8(0x253),_0x453ea5=>_0x453ea5?_0x96e725(this[_0xc405a8(0x24a)],AIChatHistoryListItemView[_0xc405a8(0x24d)][_0x453ea5]):'')}]}]},{'tag':_0xc405a8(0x227),'attributes':{'class':[_0xc405a8(0x1f7)]},'children':[_0x29e561]}]},{'tag':_0xc405a8(0x24f),'attributes':{'class':[_0xc405a8(0x20a)]},'children':this[_0xc405a8(0x213)]}]}]}),this['on'](_0xc405a8(0x212),()=>{const _0x479cb7=_0xc405a8;this[_0x479cb7(0x1fe)]||this[_0x479cb7(0x222)](_0x479cb7(0x22b),{'id':this['id']});});}[_0x3caa4b(0x1f3)](_0x5df2bc){const _0x1419a6=_0x3caa4b;this[_0x1419a6(0x21d)][_0x1419a6(0x221)]=_0x4422e8(_0x5df2bc);}[_0x3caa4b(0x21f)](_0x35da00,_0x14862c){const _0x4093a4=_0x3caa4b;this[_0x4093a4(0x229)](_0x4093a4(0x253),_0x14862c?_0x35da00:null);}[_0x3caa4b(0x23a)](){const _0x141f5c=_0x3caa4b,_0x3ef385=new _0x62aba5();return _0x3ef385[_0x141f5c(0x229)]({'content':_0x37bba6}),_0x3ef385;}[_0x3caa4b(0x241)](_0x13721a){const _0x4c6b72=_0x3caa4b,_0x66e38d=new _0x244c0f(_0x13721a);return _0x66e38d[_0x4c6b72(0x229)]({'label':_0x96e725(_0x13721a,_0x4c6b72(0x240)),'icon':_0x3c998b,'withText':!0x1,'tooltip':!0x0}),_0x66e38d[_0x4c6b72(0x224)](_0x4c6b72(0x226))['to'](this,_0x4c6b72(0x242)),_0x66e38d['on'](_0x4c6b72(0x22c),()=>{const _0x8bdc73=_0x4c6b72,_0x5ad4b5=!this[_0x8bdc73(0x242)];this[_0x8bdc73(0x222)](_0x8bdc73(0x217),{'id':this['id'],'pinned':_0x5ad4b5});}),_0x66e38d;}[_0x3caa4b(0x21e)](){const _0xd7f20f=_0x3caa4b,_0x14049e=_0x42d921(this[_0xd7f20f(0x24a)],_0x58750d),_0x30785e=_0x14049e[_0xd7f20f(0x244)][_0xd7f20f(0x205)];_0x14049e[_0xd7f20f(0x21c)][_0xd7f20f(0x229)]({'label':_0x96e725(this[_0xd7f20f(0x24a)],_0xd7f20f(0x1fa)),'icon':_0x3270aa}),_0x14049e[_0xd7f20f(0x246)]='sw';const _0x2aa038=new _0x244c0f(this[_0xd7f20f(0x24a)]);_0x2aa038[_0xd7f20f(0x225)]=_0x96e725(this[_0xd7f20f(0x24a)],_0xd7f20f(0x251)),_0x2aa038[_0xd7f20f(0x210)]=!0x0,_0x2aa038['on'](_0xd7f20f(0x22c),()=>{const _0x3308e8=_0xd7f20f;this[_0x3308e8(0x1fe)]=!0x0;});const _0x262a20=new _0x244c0f(this[_0xd7f20f(0x24a)]);_0x262a20[_0xd7f20f(0x225)]=_0x96e725(this[_0xd7f20f(0x24a)],_0xd7f20f(0x238)),_0x262a20[_0xd7f20f(0x210)]=!0x0,_0x262a20['on'](_0xd7f20f(0x22c),()=>{const _0x58f4ce=_0xd7f20f;this[_0x58f4ce(0x218)](_0x96e725(this[_0x58f4ce(0x24a)],_0x58f4ce(0x216)),this[_0x58f4ce(0x230)])[_0x58f4ce(0x206)](()=>{const _0x2009f2=_0x58f4ce;this[_0x2009f2(0x222)](_0x2009f2(0x1f5),{'id':this['id']});});});const _0x47d757=new _0x8c9f32(this[_0xd7f20f(0x24a)]),_0x317d87=new _0x246d1e(this[_0xd7f20f(0x24a)]);_0x317d87[_0xd7f20f(0x205)][_0xd7f20f(0x233)](_0x2aa038);const _0x316e13=new _0x246d1e(this[_0xd7f20f(0x24a)]);return _0x316e13[_0xd7f20f(0x205)][_0xd7f20f(0x233)](_0x262a20),_0x47d757[_0xd7f20f(0x254)][_0xd7f20f(0x211)]([_0x317d87,_0x316e13]),_0x30785e[_0xd7f20f(0x233)](_0x47d757),_0x14049e;}[_0x3caa4b(0x250)](_0x4bea63,_0x1743b2){const _0x4b2be1=_0x3caa4b,_0x41bae1=new _0x3c6cb8(_0x4bea63),_0x511cc5=_0x41bae1[_0x4b2be1(0x1f4)];return _0x41bae1[_0x4b2be1(0x20f)]=_0x1743b2,_0x41bae1[_0x4b2be1(0x237)]({'on':{'keydown':_0x511cc5['to'](_0x385f18=>{const _0x2e9e16=_0x4b2be1;_0x2e9e16(0x209)==_0x385f18[_0x2e9e16(0x249)]&&this[_0x2e9e16(0x1f2)](_0x41bae1);})}}),_0x41bae1;}[_0x3caa4b(0x22f)](_0x20305e,_0x4181ab){const _0x1a14cf=_0x3caa4b,_0x406be9=new _0x244c0f(_0x20305e);return _0x406be9[_0x1a14cf(0x229)]({'icon':_0x37bba6,'withText':!0x1,'tooltip':_0x96e725(_0x20305e,_0x1a14cf(0x215))}),_0x406be9[_0x1a14cf(0x237)]({'attributes':{'class':[_0x1a14cf(0x235)]}}),_0x406be9['on'](_0x1a14cf(0x22c),()=>{const _0x574d0d=_0x1a14cf;this[_0x574d0d(0x1f2)](_0x4181ab);}),_0x406be9;}[_0x3caa4b(0x1f2)](_0x78a29a){const _0x190436=_0x3caa4b,_0x3210e4=_0x78a29a[_0x190436(0x230)][_0x190436(0x20f)]||'';this[_0x190436(0x21d)][_0x190436(0x221)]=_0x3210e4,this[_0x190436(0x1fe)]=!0x1,this[_0x190436(0x222)](_0x190436(0x21a),{'id':this['id'],'title':_0x3210e4});}[_0x3caa4b(0x22d)](_0x4cf3ec,_0x47b698){const _0x26ab9f=_0x3caa4b,_0x44de06=new _0x244c0f(_0x4cf3ec);return _0x44de06[_0x26ab9f(0x229)]({'icon':_0x4c9e9e,'withText':!0x1,'tooltip':_0x96e725(_0x4cf3ec,_0x26ab9f(0x208))}),_0x44de06[_0x26ab9f(0x237)]({'attributes':{'class':[_0x26ab9f(0x247)]}}),_0x44de06['on'](_0x26ab9f(0x22c),()=>{const _0x123eab=_0x26ab9f;this[_0x123eab(0x1fe)]=!0x1,_0x47b698[_0x123eab(0x20f)]=this[_0x123eab(0x21d)][_0x123eab(0x221)]||'',this[_0x123eab(0x222)](_0x123eab(0x1fb));}),_0x44de06;}[_0x3caa4b(0x20e)](){const _0x3f947f=_0x3caa4b,_0x37a9f4=new _0x50fe94(_0x3f947f(0x234));return _0x37a9f4[_0x3f947f(0x255)]=!0x0,_0x37a9f4;}[_0x3caa4b(0x201)](_0xf723e){const _0xb9d40d=_0x3caa4b;return this[_0xb9d40d(0x21d)]&&_0xb9d40d(0x1f6)==typeof this[_0xb9d40d(0x21d)][_0xb9d40d(0x221)]&&this[_0xb9d40d(0x21d)][_0xb9d40d(0x221)][_0xb9d40d(0x245)](_0xf723e)?{'title':!0x0}:null;}[_0x3caa4b(0x202)](_0x5a7280){const _0x318bd5=_0x3caa4b;this[_0x318bd5(0x21d)][_0x318bd5(0x202)](_0x5a7280);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x575e(_0x367590,_0x1833a3){const _0x1c9161=_0x1c91();return _0x575e=function(_0x575ea1,_0xcbf58a){_0x575ea1=_0x575ea1-0x15e;let _0x3e09f0=_0x1c9161[_0x575ea1];return _0x3e09f0;},_0x575e(_0x367590,_0x1833a3);}const _0x4e9342=_0x575e;(function(_0x3a4a93,_0x386c74){const _0x2392fa=_0x575e,_0x2fd0a1=_0x3a4a93();while(!![]){try{const _0x2cb34b=-parseInt(_0x2392fa(0x17e))/0x1*(-parseInt(_0x2392fa(0x16a))/0x2)+parseInt(_0x2392fa(0x173))/0x3+parseInt(_0x2392fa(0x16e))/0x4*(-parseInt(_0x2392fa(0x16d))/0x5)+-parseInt(_0x2392fa(0x17b))/0x6+parseInt(_0x2392fa(0x17a))/0x7+parseInt(_0x2392fa(0x175))/0x8*(parseInt(_0x2392fa(0x168))/0x9)+-parseInt(_0x2392fa(0x169))/0xa*(parseInt(_0x2392fa(0x164))/0xb);if(_0x2cb34b===_0x386c74)break;else _0x2fd0a1['push'](_0x2fd0a1['shift']());}catch(_0x575bdd){_0x2fd0a1['push'](_0x2fd0a1['shift']());}}}(_0x1c91,0xa43ba));import{ListItemView as _0x2c9594,View as _0xb0e293,ListView as _0xc19e16}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x2c9594{[_0x4e9342(0x163)];[_0x4e9342(0x172)];[_0x4e9342(0x161)];constructor(_0x520a83,{title:_0xefc1b8,items:_0x4336d9}){const _0x5323b3=_0x4e9342;super(_0x520a83);const _0x37a933=this[_0x5323b3(0x16f)];this[_0x5323b3(0x16b)](_0x5323b3(0x176),!0x0),this[_0x5323b3(0x163)]=_0xefc1b8,this[_0x5323b3(0x172)]=_0x4336d9;const _0x25692d=new _0xb0e293(_0x520a83);_0x25692d[_0x5323b3(0x17f)]({'tag':_0x5323b3(0x165),'attributes':{'class':[_0x5323b3(0x160)]},'children':[this[_0x5323b3(0x163)]]}),this[_0x5323b3(0x161)]=new _0xc19e16(_0x520a83),this[_0x5323b3(0x161)][_0x5323b3(0x15f)][_0x5323b3(0x17c)](this[_0x5323b3(0x172)]),this[_0x5323b3(0x17f)]({'tag':'li','attributes':{'class':[_0x5323b3(0x171),_0x37a933['if'](_0x5323b3(0x176),_0x5323b3(0x178),_0x5750e7=>!_0x5750e7)]},'children':[_0x25692d,this[_0x5323b3(0x161)]]});}[_0x4e9342(0x17d)](_0x1aa682){const _0x28047c=_0x4e9342,_0x5c1b54=this[_0x28047c(0x172)][_0x28047c(0x166)];let _0x1310c6=0x0;for(const _0x15bd2e of this[_0x28047c(0x172)]){if(_0x1aa682){const _0x15bc3d=_0x15bd2e[_0x28047c(0x170)](_0x1aa682);_0x15bd2e[_0x28047c(0x176)]=!!_0x15bc3d,_0x15bd2e[_0x28047c(0x15e)](_0x1aa682);}else _0x15bd2e[_0x28047c(0x176)]=!0x0,_0x15bd2e[_0x28047c(0x15e)](null);_0x15bd2e[_0x28047c(0x176)]&&_0x1310c6++;}return this[_0x28047c(0x176)]=_0x1310c6>0x0,{'resultsCount':_0x1310c6,'totalItemsCount':_0x5c1b54};}[_0x4e9342(0x162)](_0xc4f5b){const _0x3af9c3=_0x4e9342;return this[_0x3af9c3(0x172)][_0x3af9c3(0x174)](_0x3b9899=>_0x3b9899['id']===_0xc4f5b);}[_0x4e9342(0x167)](_0x385b60){const _0x6a78dd=_0x4e9342,_0x205716=this[_0x6a78dd(0x172)][_0x6a78dd(0x177)](_0x385b60);-0x1!==_0x205716&&(this[_0x6a78dd(0x172)][_0x6a78dd(0x16c)](_0x205716,0x1),this[_0x6a78dd(0x161)][_0x6a78dd(0x15f)][_0x6a78dd(0x179)](_0x385b60));}}function _0x1c91(){const _0x1a4b8a=['2823910aWkZas','4JqzCup','set','splice','270245AmcEan','52TLqIrb','bindTemplate','isMatching','ck-ai-chat-history__section','itemsViews','3488349LzBROm','find','8FFOZuo','isVisible','indexOf','ck-hidden','remove','2249093pQnHoM','8060220VVTsiD','addMany','filter','414361hBZGUW','setTemplate','highlightText','items','ck-ai-chat-history__section-title','_itemsListView','getItem','title','11fiWnhU','div','length','removeItem','6194628ONXaai'];_0x1c91=function(){return _0x1a4b8a;};return _0x1c91();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x16e4(_0x5561bd,_0x178bf2){const _0x3f80c1=_0x3f80();return _0x16e4=function(_0x16e481,_0x4d23f1){_0x16e481=_0x16e481-0x130;let _0x341b29=_0x3f80c1[_0x16e481];return _0x341b29;},_0x16e4(_0x5561bd,_0x178bf2);}const _0x50fa0a=_0x16e4;(function(_0x1220ce,_0x25dde3){const _0x1f6266=_0x16e4,_0x345dd7=_0x1220ce();while(!![]){try{const _0x41bef2=-parseInt(_0x1f6266(0x13e))/0x1*(-parseInt(_0x1f6266(0x133))/0x2)+parseInt(_0x1f6266(0x135))/0x3+-parseInt(_0x1f6266(0x137))/0x4+parseInt(_0x1f6266(0x131))/0x5+-parseInt(_0x1f6266(0x13f))/0x6*(-parseInt(_0x1f6266(0x13a))/0x7)+parseInt(_0x1f6266(0x13d))/0x8+parseInt(_0x1f6266(0x13c))/0x9*(-parseInt(_0x1f6266(0x130))/0xa);if(_0x41bef2===_0x25dde3)break;else _0x345dd7['push'](_0x345dd7['shift']());}catch(_0x20dd16){_0x345dd7['push'](_0x345dd7['shift']());}}}(_0x3f80,0xf3b12));import{ListView as _0x5df554}from'ckeditor5/src/ui.js';function _0x3f80(){const _0x5b84ec=['62vQOGjn','sections','3110823JUTYqL','extendTemplate','2207748yURVkP','items','ck-ai-chat-history__sections','1042062BpNelN','filter','76905aVmmCe','10563024FahRnc','56845DklWqQ','78zIPEQg','7390yZSlmv','9050410dUvVoz','addMany'];_0x3f80=function(){return _0x5b84ec;};return _0x3f80();}export class AIChatHistorySectionListView extends _0x5df554{[_0x50fa0a(0x134)];constructor(_0x4359a6,_0x16644b){const _0x27ef23=_0x50fa0a;super(_0x4359a6),this[_0x27ef23(0x134)]=_0x16644b,this[_0x27ef23(0x138)][_0x27ef23(0x132)](this[_0x27ef23(0x134)]),this[_0x27ef23(0x136)]({'attributes':{'class':[_0x27ef23(0x139)]}});}[_0x50fa0a(0x13b)](_0x7e48e7){const _0x4fad74=_0x50fa0a;let _0x203b87=0x0,_0x204dea=0x0;for(const _0x4227b9 of this[_0x4fad74(0x134)]){const {resultsCount:_0x2e616e,totalItemsCount:_0x3cc57f}=_0x4227b9[_0x4fad74(0x13b)](_0x7e48e7);_0x203b87+=_0x2e616e,_0x204dea+=_0x3cc57f;}return{'resultsCount':_0x203b87,'totalItemsCount':_0x204dea};}}
|