@ckeditor/ckeditor5-ai 47.4.0-alpha.5 → 47.4.0-alpha.6
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/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/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/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/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 _0x59c090=_0x1b28;(function(_0x43553d,_0x34189b){const _0x258702=_0x1b28,_0x5133ab=_0x43553d();while(!![]){try{const _0x59b6bc=parseInt(_0x258702(0xfb))/0x1+parseInt(_0x258702(0x11e))/0x2+parseInt(_0x258702(0xf1))/0x3*(parseInt(_0x258702(0x110))/0x4)+-parseInt(_0x258702(0x10c))/0x5+parseInt(_0x258702(0xf4))/0x6*(-parseInt(_0x258702(0x104))/0x7)+parseInt(_0x258702(0xdc))/0x8*(-parseInt(_0x258702(0xe7))/0x9)+-parseInt(_0x258702(0xdb))/0xa*(-parseInt(_0x258702(0xce))/0xb);if(_0x59b6bc===_0x34189b)break;else _0x5133ab['push'](_0x5133ab['shift']());}catch(_0x2bfc12){_0x5133ab['push'](_0x5133ab['shift']());}}}(_0x60cf,0xdec41));import{KeystrokeHandler as _0x2965e1}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x139a3c,BodyCollection as _0x53b843,ButtonView as _0xf1272f,clickOutsideHandler as _0x5e91a1,ListItemButtonView as _0x2bcbae,ListItemView as _0x227ac6,ListView as _0x44e250,SplitButtonView as _0x352f3a,UIModel as _0x6f7c05,View as _0x4cec0a}from'ckeditor5/src/ui.js';function _0x1b28(_0x5c15e0,_0x305dbf){const _0x60cf6f=_0x60cf();return _0x1b28=function(_0x1b28a3,_0xd20037){_0x1b28a3=_0x1b28a3-0xcd;let _0x39cd19=_0x60cf6f[_0x1b28a3];return _0x39cd19;},_0x1b28(_0x5c15e0,_0x305dbf);}import{IconCheck as _0x2d4903,IconAddComment as _0x2db48c,IconDocumentWithLoupe as _0x52e340}from'ckeditor5/src/icons.js';import{getTranslation as _0x5297aa}from'../../../aicore/utils/common-translations.js';function _0x60cf(){const _0x331bb2=['_createActionsButton','_dropdownCurrentConfig','_dropdownOriginalConfig','slice','339666gZCNDp','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','locale','6JOLjMd','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','set','arrowless','pin','uiLanguageDirection','destroy','283822WxLJhW','bottom','_updateDropdownActions','execute','hide','children','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','ck-ai-chat__feed__ai-suggestion__actions\x20','tooltip','11310215obhXPp','ck-ai-chat__feed__ai-suggestion__actions--no-animation','_setUpKeystrokes','bodyCollection','bind','delegate','_createActionsDropdown','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','5477860OoRXeo','ltr','detachFromDom','actionName','60FWJOFL','setTemplate','keystrokeHandler','_createActionsDropdownOrButton','fire','keys','open','content','actionsButton','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','_firstRender','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','width','class','1415736kPuNaO','isVisible','showChangeInTextModel','label','filter','applySuggestionModel','isEnabled','div','insertSuggestion','balloonPanelView','ck-ai-chat__feed__ai-suggestion__actions','change:isTrackChangesOn','arrowView','bindTemplate','items','has','source','2816hcAGJY','ck-hidden','ck-ai-chat__feed__ai-suggestion__actions__balloon','_partsCount','remove','attachToDom','_setUpList','listenTo','showChangeInText','esc','updateLabels','focus','createCollection','102610GOcRqp','6772280blmmOQ','element','length','listView','unbind','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','isTrackChangesOn','left','ck-ai-button-primary','map','button','18YaPQGk','listItemModels','balloonPanelClass','applySuggestion','add','insertSuggestionModel'];_0x60cf=function(){return _0x331bb2;};return _0x60cf();}export const AI_REPLY_ACTIONS=[_0x59c090(0xea),_0x59c090(0x126),_0x59c090(0xd6)];export class AIChatFeedSuggestionItemActionsView extends _0x4cec0a{[_0x59c090(0x118)];[_0x59c090(0x100)];[_0x59c090(0x123)];[_0x59c090(0x120)];[_0x59c090(0xec)];[_0x59c090(0xd1)]=0x1;[_0x59c090(0xef)];[_0x59c090(0xee)];[_0x59c090(0x11a)]=!0x0;constructor(_0x3c2f45,_0x415a4a){const _0x50068f=_0x59c090;super(_0x3c2f45),this[_0x50068f(0xef)]=_0x415a4a||[...AI_REPLY_ACTIONS],this[_0x50068f(0xee)]=[...this[_0x50068f(0xef)]];const _0x3c5c7a=this[_0x50068f(0x12b)];this[_0x50068f(0xf6)](_0x50068f(0x124),!0x0),this[_0x50068f(0xf6)](_0x50068f(0x11f),!0x0),this[_0x50068f(0xf6)](_0x50068f(0xe2),!0x1),this[_0x50068f(0x123)]=new _0x6f7c05({'label':Pn(_0x50068f(0xea),_0x3c2f45,this[_0x50068f(0xd1)]),'icon':_0x2d4903,'withText':!0x0,'type':_0x50068f(0xe6),'actionName':_0x50068f(0xea)}),this[_0x50068f(0x120)]=new _0x6f7c05({'label':Pn(_0x50068f(0xd6),_0x3c2f45,this[_0x50068f(0xd1)]),'icon':_0x52e340,'withText':!0x0,'type':_0x50068f(0xe6),'actionName':_0x50068f(0xd6)}),this[_0x50068f(0xec)]=new _0x6f7c05({'label':Pn(_0x50068f(0x126),_0x3c2f45,this[_0x50068f(0xd1)]),'icon':_0x2db48c,'withText':!0x0,'type':_0x50068f(0xe6),'actionName':_0x50068f(0x126)}),this[_0x50068f(0x118)]=this[_0x50068f(0x113)](_0x3c2f45),this[_0x50068f(0x100)]=this[_0x50068f(0xda)](),this[_0x50068f(0x118)]&&this[_0x50068f(0x100)][_0x50068f(0xeb)](this[_0x50068f(0x118)]),this[_0x50068f(0x111)]({'tag':_0x50068f(0x125),'attributes':{'class':['ck',_0x50068f(0x128),_0x3c5c7a['if'](_0x50068f(0x11f),_0x50068f(0xcf),_0x1b4f95=>!_0x1b4f95)]},'children':this[_0x50068f(0x100)]}),this['on'](_0x50068f(0x129),()=>{const _0x6c451b=_0x50068f;this[_0x6c451b(0xee)]=this[_0x6c451b(0xe2)]?this[_0x6c451b(0xef)][_0x6c451b(0x122)](_0x237ec6=>_0x6c451b(0xea)!==_0x237ec6):[...this[_0x6c451b(0xef)]],this[_0x6c451b(0xfd)](_0x3c2f45);});}[_0x59c090(0xfd)](_0x3e86f8){const _0x48ae34=_0x59c090;this[_0x48ae34(0x118)]&&this[_0x48ae34(0x100)][_0x48ae34(0x12d)](this[_0x48ae34(0x118)])&&(this[_0x48ae34(0x100)][_0x48ae34(0xd2)](this[_0x48ae34(0x118)]),this[_0x48ae34(0x118)][_0x48ae34(0xfa)]()),this[_0x48ae34(0x118)]=this[_0x48ae34(0x113)](_0x3e86f8),this[_0x48ae34(0x118)]&&this[_0x48ae34(0x100)][_0x48ae34(0xeb)](this[_0x48ae34(0x118)]);}[_0x59c090(0x113)](_0xbb130c){const _0x24a668=_0x59c090;if(0x0==this[_0x24a668(0xee)][_0x24a668(0xde)])return null;const _0x665b80=0x1===this[_0x24a668(0xee)][_0x24a668(0xde)]?this[_0x24a668(0xed)](_0xbb130c):this[_0x24a668(0x10a)](_0xbb130c),_0x5e71f9=this[_0x24a668(0x11a)]?'':_0x24a668(0x105);_0x665b80[_0x24a668(0xf6)]({'label':Pn(this[_0x24a668(0xee)][0x0],_0xbb130c,this[_0x24a668(0xd1)]),'tooltip':Hn(this[_0x24a668(0xee)][0x0],_0xbb130c,this[_0x24a668(0xd1)]),'withText':!0x0,'class':_0x24a668(0x102)+_0x5e71f9});for(const _0x2abb46 of this[_0x24a668(0xee)])_0x665b80['on'](_0x2abb46,()=>{const _0x5e27ca=_0x24a668;this[_0x5e27ca(0x114)](_0x2abb46);});return this[_0x24a668(0x11a)]=!0x1,_0x665b80;}[_0x59c090(0xed)](_0x9fcc2e){const _0x1dce63=_0x59c090,_0x3b8948=new _0xf1272f(_0x9fcc2e);return _0x3b8948[_0x1dce63(0xf6)]({'class':_0x1dce63(0xe4),'withText':!0x0}),_0x3b8948['on'](_0x1dce63(0xfe),()=>{const _0x34b817=_0x1dce63;_0x3b8948[_0x34b817(0x114)](this[_0x34b817(0xee)][0x0]);}),_0x3b8948;}[_0x59c090(0x10a)](_0x383f67){const _0x59ae77=_0x59c090,_0x9919b9=new Nn(_0x383f67,{'listItemModels':this[_0x59ae77(0xee)][_0x59ae77(0xe5)](_0x49a1c6=>{const _0x456848=_0x59ae77;switch(_0x49a1c6){case _0x456848(0xea):return this[_0x456848(0x123)];case _0x456848(0xd6):return this[_0x456848(0x120)];case _0x456848(0x126):return this[_0x456848(0xec)];}})});return _0x9919b9[_0x59ae77(0xf6)]({'label':Pn(this[_0x59ae77(0xee)][0x0],_0x383f67,this[_0x59ae77(0xd1)]),'tooltip':Hn(this[_0x59ae77(0xee)][0x0],_0x383f67,this[_0x59ae77(0xd1)]),'withText':!0x0,'class':_0x59ae77(0x128),'balloonPanelClass':_0x59ae77(0xd0)}),_0x9919b9[_0x59ae77(0x108)](_0x59ae77(0x124))['to'](this),_0x9919b9;}[_0x59c090(0xd8)](_0x4bc5a2){const _0x4c4097=_0x59c090,_0x18c7e0=this[_0x4c4097(0xf3)];this[_0x4c4097(0xd1)]=_0x4bc5a2||this[_0x4c4097(0xd1)],this[_0x4c4097(0x118)][_0x4c4097(0xf6)]({'label':Pn(this[_0x4c4097(0xee)][0x0],_0x18c7e0,this[_0x4c4097(0xd1)]),'tooltip':Hn(this[_0x4c4097(0xee)][0x0],_0x18c7e0,this[_0x4c4097(0xd1)])}),this[_0x4c4097(0x123)][_0x4c4097(0x121)]=Pn(_0x4c4097(0xea),_0x18c7e0,this[_0x4c4097(0xd1)]),this[_0x4c4097(0x120)][_0x4c4097(0x121)]=Pn(_0x4c4097(0xd6),_0x18c7e0,this[_0x4c4097(0xd1)]),this[_0x4c4097(0xec)][_0x4c4097(0x121)]=Pn(_0x4c4097(0x126),_0x18c7e0,this[_0x4c4097(0xd1)]);}}class Nn extends _0x352f3a{[_0x59c090(0x107)];[_0x59c090(0x127)];[_0x59c090(0xdf)];[_0x59c090(0x112)];constructor(_0x3bb295,_0x48cc47){const _0x37b90a=_0x59c090;super(_0x3bb295),this[_0x37b90a(0x127)]=new _0x139a3c(this[_0x37b90a(0xf3)]),this[_0x37b90a(0x107)]=new _0x53b843(this[_0x37b90a(0xf3)]),this[_0x37b90a(0x107)][_0x37b90a(0xd3)](),this[_0x37b90a(0xf6)](_0x37b90a(0xe9),''),this[_0x37b90a(0x127)][_0x37b90a(0x108)](_0x37b90a(0x11d))['to'](this,_0x37b90a(0xe9)),this[_0x37b90a(0xdf)]=this[_0x37b90a(0xd4)](_0x48cc47[_0x37b90a(0xe8)][_0x37b90a(0xf0)](0x1)),this[_0x37b90a(0x107)][_0x37b90a(0xeb)](this[_0x37b90a(0x127)]),this[_0x37b90a(0x127)][_0x37b90a(0x117)][_0x37b90a(0xeb)](this[_0x37b90a(0xdf)]),this[_0x37b90a(0x12a)][_0x37b90a(0xe0)](_0x37b90a(0x103)),this[_0x37b90a(0x12a)][_0x37b90a(0xf6)](_0x37b90a(0x103),_0x5297aa(this[_0x37b90a(0xf3)],_0x37b90a(0x11b))),this[_0x37b90a(0x106)](),this['on'](_0x37b90a(0xfe),()=>{const _0x379a1f=_0x37b90a,_0x45051b=_0x48cc47[_0x379a1f(0xe8)][0x0][_0x379a1f(0x10f)];this[_0x379a1f(0x114)](_0x45051b),this[_0x379a1f(0x127)][_0x379a1f(0xff)](),this[_0x379a1f(0x12a)][_0x379a1f(0xd9)]();}),this['on'](_0x37b90a(0x116),()=>{const _0x21cb1e=_0x37b90a;this[_0x21cb1e(0x127)][_0x21cb1e(0x11f)]?(this[_0x21cb1e(0x127)][_0x21cb1e(0xff)](),this[_0x21cb1e(0x12a)][_0x21cb1e(0xd9)]()):(this[_0x21cb1e(0x127)][_0x21cb1e(0xf8)]({'target':this[_0x21cb1e(0xdd)],'positions':[_0x21cb1e(0x10d)===this[_0x21cb1e(0xf3)][_0x21cb1e(0xf9)]?Gn:yn]}),this[_0x21cb1e(0xdf)][_0x21cb1e(0xd9)]());}),_0x5e91a1({'emitter':this[_0x37b90a(0x127)],'callback':()=>{const _0x26d274=_0x37b90a;this[_0x26d274(0x127)][_0x26d274(0xff)]();},'activator':()=>this[_0x37b90a(0x127)][_0x37b90a(0x11f)],'contextElements':()=>[this[_0x37b90a(0xdd)],this[_0x37b90a(0x127)][_0x37b90a(0xdd)]]});}[_0x59c090(0xd4)](_0x13d896){const _0x3c6514=_0x59c090,_0x28c420=this[_0x3c6514(0xf3)],_0x3ab2f9=new _0x44e250(_0x28c420);for(const _0x46b97f of _0x13d896){const _0x34bb4b=new _0x227ac6(_0x28c420),_0x2d7894=new _0x2bcbae(_0x28c420);_0x2d7894[_0x3c6514(0x108)](...Object[_0x3c6514(0x115)](_0x46b97f))['to'](_0x46b97f),_0x2d7894[_0x3c6514(0x109)](_0x3c6514(0xfe))['to'](_0x3ab2f9),_0x34bb4b[_0x3c6514(0x100)][_0x3c6514(0xeb)](_0x2d7894),_0x3ab2f9[_0x3c6514(0x12c)][_0x3c6514(0xeb)](_0x34bb4b);}return _0x3ab2f9[_0x3c6514(0x12c)][_0x3c6514(0x109)](_0x3c6514(0xfe))['to'](this),_0x3ab2f9['on'](_0x3c6514(0xfe),_0x32ba94=>{const _0x335edd=_0x3c6514,_0x4e0993=_0x32ba94[_0x335edd(0xcd)];this[_0x335edd(0x114)](_0x4e0993[_0x335edd(0x10f)]),this[_0x335edd(0x127)][_0x335edd(0xff)](),this[_0x335edd(0x12a)][_0x335edd(0xd9)]();}),_0x3ab2f9;}[_0x59c090(0x106)](){const _0x4d462b=_0x59c090;this[_0x4d462b(0x112)]=new _0x2965e1(),this[_0x4d462b(0x112)][_0x4d462b(0xd5)](this[_0x4d462b(0x127)][_0x4d462b(0xdd)]),this[_0x4d462b(0x112)][_0x4d462b(0xf6)](_0x4d462b(0xd7),(_0x29648b,_0x1794e8)=>{const _0xf08930=_0x4d462b;this[_0xf08930(0x127)][_0xf08930(0xff)](),this[_0xf08930(0x12a)][_0xf08930(0xd9)](),_0x1794e8();});}[_0x59c090(0xfa)](){const _0x168832=_0x59c090;super[_0x168832(0xfa)](),this[_0x168832(0x112)][_0x168832(0xfa)](),this[_0x168832(0x127)][_0x168832(0xfa)](),this[_0x168832(0x107)][_0x168832(0x10e)]();}}function Gn(_0x205ff6){const _0x2e8bcc=_0x59c090;return{'top':_0x205ff6[_0x2e8bcc(0xfc)],'left':_0x205ff6[_0x2e8bcc(0xe3)],'name':_0x2e8bcc(0xf7),'config':{'withArrow':!0x1}};}function yn(_0x4b61d8,_0x4164f7){const _0x515042=_0x59c090;return{'top':_0x4b61d8[_0x515042(0xfc)],'left':_0x4b61d8[_0x515042(0xe3)]-(_0x4164f7[_0x515042(0x11c)]-_0x4b61d8[_0x515042(0x11c)]),'name':_0x515042(0xf7),'config':{'withArrow':!0x1}};}function Pn(_0x1dec6c,_0x4511cd,_0x15725c){const _0x2f12c8=_0x59c090;switch(_0x1dec6c){case _0x2f12c8(0xea):return _0x5297aa(_0x4511cd,_0x2f12c8(0xf2),_0x15725c);case _0x2f12c8(0xd6):return _0x5297aa(_0x4511cd,_0x2f12c8(0x119),_0x15725c);case _0x2f12c8(0x126):return _0x5297aa(_0x4511cd,_0x2f12c8(0xf5),_0x15725c);}}function Hn(_0x6b77c1,_0x5c884f,_0x2e391b){const _0x1a4ca4=_0x59c090;switch(_0x6b77c1){case _0x1a4ca4(0xea):return _0x5297aa(_0x5c884f,_0x1a4ca4(0x10b),_0x2e391b);case _0x1a4ca4(0xd6):return _0x5297aa(_0x5c884f,_0x1a4ca4(0xe1),_0x2e391b);case _0x1a4ca4(0x126):return _0x5297aa(_0x5c884f,_0x1a4ca4(0x101),_0x2e391b);}}
|
|
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);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x380e0a=_0x2599;function _0x2599(_0x354b20,_0x35e345){var _0x5ca141=_0x5ca1();return _0x2599=function(_0x2599b9,_0x1b597f){_0x2599b9=_0x2599b9-0x139;var _0x137abc=_0x5ca141[_0x2599b9];return _0x137abc;},_0x2599(_0x354b20,_0x35e345);}(function(_0x5a8bfc,_0x404c59){var _0x2ed8bf=_0x2599,_0x22bc08=_0x5a8bfc();while(!![]){try{var _0x5335d0=-parseInt(_0x2ed8bf(0x150))/0x1*(parseInt(_0x2ed8bf(0x148))/0x2)+parseInt(_0x2ed8bf(0x145))/0x3+parseInt(_0x2ed8bf(0x14b))/0x4*(parseInt(_0x2ed8bf(0x157))/0x5)+-parseInt(_0x2ed8bf(0x14d))/0x6+parseInt(_0x2ed8bf(0x13d))/0x7+parseInt(_0x2ed8bf(0x15e))/0x8*(-parseInt(_0x2ed8bf(0x165))/0x9)+-parseInt(_0x2ed8bf(0x14f))/0xa*(-parseInt(_0x2ed8bf(0x166))/0xb);if(_0x5335d0===_0x404c59)break;else _0x22bc08['push'](_0x22bc08['shift']());}catch(_0x36c0c4){_0x22bc08['push'](_0x22bc08['shift']());}}}(_0x5ca1,0xc09a8));function _0x5ca1(){var _0x240af8=['markAsDone','availableActions','mouseOverSuggestion','1386uaHPRP','66SZQnkh','mouseLeaveSuggestion','extendTemplate','isTrackChangesOn','areActionsDisabled','5767111vauyLy','showChangeInText','hasNonEmptyParts','toggleSuggestionDisplayMode','ck-ai-chat__feed__ai-suggestion','bind','set','showDiff','1964349EAgFga','applySuggestion','like','203342BcMYfh','options','hasPendingParts','1312LciCjQ','containerView','8132400CTDZNa','bodyView','1375110CtSidF','4UYdkMJ','insertSuggestion','updateContent','partsCount','isVisible','updatePartState','actionsView','14500rgUIGw','rejectSuggestion','getPartView','updateLabels','isEnabled','addMany','updateSources','36568IIvzWn','dislike','children','fire'];_0x5ca1=function(){return _0x240af8;};return _0x5ca1();}import{AIChatFeedItemView as _0x391d05}from'./aichatfeeditemview.js';import{AISuggestionContainerView as _0x592c61}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x1d2baa}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x391d05{[_0x380e0a(0x14c)];[_0x380e0a(0x156)];constructor(_0x4cad34,_0x4e36e1,_0x5b508f){var _0x588cdd=_0x380e0a;super(_0x4e36e1),this[_0x588cdd(0x143)](_0x588cdd(0x13b),!0x1),this[_0x588cdd(0x14c)]=new _0x592c61(_0x4cad34,{'showDiff':_0x4e36e1[_0x588cdd(0x144)],'areActionsDisabled':_0x4e36e1[_0x588cdd(0x13c)],'availableActions':_0x4e36e1[_0x588cdd(0x163)]},_0x5b508f),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x140),(_0x1a8d90,_0x581aa3)=>{var _0x60da7d=_0x588cdd;this[_0x60da7d(0x161)](_0x60da7d(0x140),{'replyId':this[_0x60da7d(0x149)]['id'],'showDiff':_0x581aa3[_0x60da7d(0x144)]});}),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x147),()=>{var _0x316914=_0x588cdd;this[_0x316914(0x161)](_0x316914(0x147),{'replyId':this[_0x316914(0x149)]['id']});}),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x15f),()=>{var _0x388ccc=_0x588cdd;this[_0x388ccc(0x161)](_0x388ccc(0x15f),{'replyId':this[_0x388ccc(0x149)]['id']});}),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x13e),(_0x2ea88d,{index:_0x34e4b4})=>{var _0x35249d=_0x588cdd;this[_0x35249d(0x161)](_0x35249d(0x13e),{'replyId':this[_0x35249d(0x149)]['id'],'partIndex':_0x34e4b4});}),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x151),(_0x2e095c,{index:_0x1a5575})=>{var _0x20cb5d=_0x588cdd;this[_0x20cb5d(0x161)](_0x20cb5d(0x151),{'replyId':this[_0x20cb5d(0x149)]['id'],'partIndex':_0x1a5575});}),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x158),(_0x467e5f,{index:_0xbd0208})=>{var _0x2242ba=_0x588cdd;this[_0x2242ba(0x161)](_0x2242ba(0x158),{'replyId':this[_0x2242ba(0x149)]['id'],'partIndex':_0xbd0208});}),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x164),(_0x33952b,{index:_0x3c7957})=>{var _0xf48bac=_0x588cdd;this[_0xf48bac(0x161)](_0xf48bac(0x164),{'replyId':this[_0xf48bac(0x149)]['id'],'partIndex':_0x3c7957});}),this[_0x588cdd(0x14c)]['on'](_0x588cdd(0x139),(_0x3a2616,{index:_0x597709})=>{var _0x5765ca=_0x588cdd;this[_0x5765ca(0x161)](_0x5765ca(0x139),{'replyId':this[_0x5765ca(0x149)]['id'],'partIndex':_0x597709});}),this[_0x588cdd(0x156)]=new _0x1d2baa(_0x4cad34,this[_0x588cdd(0x149)][_0x588cdd(0x163)]),this[_0x588cdd(0x156)][_0x588cdd(0x142)](_0x588cdd(0x13b))['to'](this,_0x588cdd(0x13b)),this[_0x588cdd(0x156)]['on'](_0x588cdd(0x13e),()=>{var _0x24939f=_0x588cdd;this[_0x24939f(0x161)](_0x24939f(0x13e),{'replyId':this[_0x24939f(0x149)]['id']});}),this[_0x588cdd(0x156)]['on'](_0x588cdd(0x151),()=>{var _0x56ffaf=_0x588cdd;this[_0x56ffaf(0x161)](_0x56ffaf(0x151),{'replyId':this[_0x56ffaf(0x149)]['id']});}),this[_0x588cdd(0x156)]['on'](_0x588cdd(0x146),()=>{var _0x1d1ba1=_0x588cdd;this[_0x1d1ba1(0x161)](_0x1d1ba1(0x146),{'replyId':this[_0x1d1ba1(0x149)]['id']});}),_0x4e36e1[_0x588cdd(0x13c)]?this[_0x588cdd(0x156)][_0x588cdd(0x15b)]=!0x1:this[_0x588cdd(0x156)][_0x588cdd(0x142)](_0x588cdd(0x15b))['to'](this[_0x588cdd(0x14c)][_0x588cdd(0x14e)],_0x588cdd(0x14a)),this[_0x588cdd(0x160)][_0x588cdd(0x15c)]([this[_0x588cdd(0x14c)],this[_0x588cdd(0x156)]]),this[_0x588cdd(0x13a)]({'attributes':{'class':[_0x588cdd(0x141)]}});}async[_0x380e0a(0x152)](_0x3b50c2){var _0x2bf557=_0x380e0a;await this[_0x2bf557(0x14c)][_0x2bf557(0x152)](_0x3b50c2),this[_0x2bf557(0x156)][_0x2bf557(0x15a)](this[_0x2bf557(0x14c)][_0x2bf557(0x14e)][_0x2bf557(0x153)]);}[_0x380e0a(0x155)](_0x2d0d5a,_0x580125){var _0xf7dd79=_0x380e0a;this[_0xf7dd79(0x14c)][_0xf7dd79(0x14e)][_0xf7dd79(0x155)](_0x2d0d5a,_0x580125);}[_0x380e0a(0x15d)](_0x30ed90){var _0x26def1=_0x380e0a;this[_0x26def1(0x14c)][_0x26def1(0x15d)](_0x30ed90);}[_0x380e0a(0x159)](_0x5d3e2e){var _0x37f5d7=_0x380e0a;return this[_0x37f5d7(0x14c)][_0x37f5d7(0x14e)][_0x37f5d7(0x159)](_0x5d3e2e);}[_0x380e0a(0x162)](){var _0x86759f=_0x380e0a;super[_0x86759f(0x162)](),this[_0x86759f(0x14c)][_0x86759f(0x162)](),this[_0x86759f(0x156)][_0x86759f(0x154)]=this[_0x86759f(0x14c)][_0x86759f(0x14e)][_0x86759f(0x13f)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5c6d16=_0x41f0;function _0x41f0(_0x31ee07,_0x5838fe){var _0x59a0a7=_0x59a0();return _0x41f0=function(_0x41f0ce,_0x7101a5){_0x41f0ce=_0x41f0ce-0x118;var _0x437ac6=_0x59a0a7[_0x41f0ce];return _0x437ac6;},_0x41f0(_0x31ee07,_0x5838fe);}(function(_0x50d60d,_0x4b6aba){var _0x2fafb1=_0x41f0,_0xbe627=_0x50d60d();while(!![]){try{var _0x803ea9=-parseInt(_0x2fafb1(0x11d))/0x1+-parseInt(_0x2fafb1(0x135))/0x2*(parseInt(_0x2fafb1(0x129))/0x3)+-parseInt(_0x2fafb1(0x134))/0x4*(-parseInt(_0x2fafb1(0x124))/0x5)+-parseInt(_0x2fafb1(0x127))/0x6*(parseInt(_0x2fafb1(0x137))/0x7)+-parseInt(_0x2fafb1(0x121))/0x8*(-parseInt(_0x2fafb1(0x128))/0x9)+parseInt(_0x2fafb1(0x13b))/0xa*(-parseInt(_0x2fafb1(0x12f))/0xb)+parseInt(_0x2fafb1(0x130))/0xc;if(_0x803ea9===_0x4b6aba)break;else _0xbe627['push'](_0xbe627['shift']());}catch(_0x2d8cad){_0xbe627['push'](_0xbe627['shift']());}}}(_0x59a0,0xb8018));import{AIChatFeedItemView as _0x347724}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x33e4e0}from'./aichatfeedcontextchipsview.js';import{View as _0x27d14a}from'ckeditor5/src/ui.js';function _0x59a0(){var _0xd0e9cb=['length','element','27785rEjEmx','_locale','_messageContentView','42MLKcZV','72JoaLUp','1389LwtzKR','filter','setTemplate','contextItems','div','options','11rCgqiW','28123464KIyVGC','innerHTML','hidden','children','988MNsgIg','404fpKaaK','_bodyCollection','704347WNEqEC','markAsDone','_contextChipsView','ck-ai-chat__feed__context-chips','13909130lTHCww','render','_createContextChipsView','_createMessageContentView','ck-ai-chat__feed__user-message','ck-ai-chat__feed__message-content','917711zIsuap','extendTemplate','add','initialContent','143984xZUADX'];_0x59a0=function(){return _0xd0e9cb;};return _0x59a0();}export class AIChatFeedUserMessageItemView extends _0x347724{[_0x5c6d16(0x139)]=null;[_0x5c6d16(0x125)];[_0x5c6d16(0x136)];[_0x5c6d16(0x126)];constructor(_0xba1cf5,_0x4d1719,_0x2fae3e){var _0x11adff=_0x5c6d16;super(_0x4d1719),this[_0x11adff(0x125)]=_0xba1cf5,this[_0x11adff(0x136)]=_0x2fae3e,this[_0x11adff(0x119)](),this[_0x11adff(0x11a)](),this[_0x11adff(0x11e)]({'attributes':{'class':[_0x11adff(0x11b)]}});}[_0x5c6d16(0x119)](){var _0x1cabec=_0x5c6d16;this[_0x1cabec(0x12e)][_0x1cabec(0x12c)]&&this[_0x1cabec(0x12e)][_0x1cabec(0x12c)][_0x1cabec(0x122)]>0x0&&(this[_0x1cabec(0x139)]=new _0x33e4e0(this[_0x1cabec(0x125)],this[_0x1cabec(0x12e)][_0x1cabec(0x12c)][_0x1cabec(0x12a)](_0x4809e5=>!_0x4809e5[_0x1cabec(0x132)]),this[_0x1cabec(0x136)]),this[_0x1cabec(0x139)][_0x1cabec(0x11e)]({'attributes':{'class':_0x1cabec(0x13a)}}),this[_0x1cabec(0x133)][_0x1cabec(0x11f)](this[_0x1cabec(0x139)]));}[_0x5c6d16(0x11a)](){var _0x513b00=_0x5c6d16;this[_0x513b00(0x126)]=new _0x27d14a(this[_0x513b00(0x125)]),this[_0x513b00(0x126)][_0x513b00(0x12b)]({'tag':_0x513b00(0x12d),'attributes':{'class':_0x513b00(0x11c)}}),this[_0x513b00(0x133)][_0x513b00(0x11f)](this[_0x513b00(0x126)]);}[_0x5c6d16(0x118)](){var _0x4f1c96=_0x5c6d16;super[_0x4f1c96(0x118)](),this[_0x4f1c96(0x126)][_0x4f1c96(0x123)][_0x4f1c96(0x131)]=this[_0x4f1c96(0x12e)][_0x4f1c96(0x120)],this[_0x4f1c96(0x138)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57bf59=_0x3749;(function(_0x52f343,_0x315839){const _0x59b169=_0x3749,_0x88cd91=_0x52f343();while(!![]){try{const _0x377b7e=-parseInt(_0x59b169(0x7f))/0x1*(-parseInt(_0x59b169(0x8b))/0x2)+-parseInt(_0x59b169(0x8d))/0x3+parseInt(_0x59b169(0x7d))/0x4*(-parseInt(_0x59b169(0x74))/0x5)+-parseInt(_0x59b169(0x8f))/0x6*(parseInt(_0x59b169(0x7e))/0x7)+parseInt(_0x59b169(0x86))/0x8+parseInt(_0x59b169(0x87))/0x9*(parseInt(_0x59b169(0x75))/0xa)+-parseInt(_0x59b169(0x8a))/0xb*(-parseInt(_0x59b169(0x7a))/0xc);if(_0x377b7e===_0x315839)break;else _0x88cd91['push'](_0x88cd91['shift']());}catch(_0x4d6ff9){_0x88cd91['push'](_0x88cd91['shift']());}}}(_0x5455,0xdf2d3));import{EmitterMixin as _0x19bffb}from'ckeditor5/src/utils.js';function _0x3749(_0x3c6f15,_0x330491){const _0x5455c5=_0x5455();return _0x3749=function(_0x3749b7,_0x47f128){_0x3749b7=_0x3749b7-0x72;let _0x47970b=_0x5455c5[_0x3749b7];return _0x47970b;},_0x3749(_0x3c6f15,_0x330491);}export class PromiseQueue extends _0x19bffb(){[_0x57bf59(0x73)]=[];[_0x57bf59(0x89)]=!0x1;[_0x57bf59(0x7c)];async[_0x57bf59(0x79)](_0x1645e5){const _0xa3032b=_0x57bf59,_0x427d61=this[_0xa3032b(0x7b)](_0x1645e5);return this[_0xa3032b(0x73)][_0xa3032b(0x88)](_0x427d61),this[_0xa3032b(0x80)](),_0x427d61[_0xa3032b(0x81)];}[_0x57bf59(0x76)](){const _0xa776be=_0x57bf59;this[_0xa776be(0x89)]&&(this[_0xa776be(0x7c)][_0xa776be(0x76)](),this[_0xa776be(0x7c)]=void 0x0,this[_0xa776be(0x73)]=[],this[_0xa776be(0x85)](_0xa776be(0x77)),this[_0xa776be(0x89)]=!0x1);}get[_0x57bf59(0x82)](){const _0x2aefb5=_0x57bf59;return this[_0x2aefb5(0x73)][_0x2aefb5(0x90)]||this[_0x2aefb5(0x89)]?new Promise(_0x108dd0=>{const _0x15d664=_0x2aefb5;this[_0x15d664(0x83)](_0x15d664(0x77),()=>{_0x108dd0();});}):Promise[_0x2aefb5(0x72)]();}async[_0x57bf59(0x80)](){const _0x4a1277=_0x57bf59;if(!this[_0x4a1277(0x89)]){this[_0x4a1277(0x7c)]=new AbortController(),this[_0x4a1277(0x89)]=!0x0;try{for(;this[_0x4a1277(0x73)][_0x4a1277(0x90)]&&this[_0x4a1277(0x89)];){const _0x6b358=this[_0x4a1277(0x73)][_0x4a1277(0x8e)]();try{await _0x6b358[_0x4a1277(0x8c)](this[_0x4a1277(0x7c)][_0x4a1277(0x84)]),_0x6b358[_0x4a1277(0x72)]();}catch(_0x16d2ad){_0x6b358[_0x4a1277(0x78)](_0x16d2ad);}}}finally{this[_0x4a1277(0x89)]=!0x1,this[_0x4a1277(0x7c)]=void 0x0;}this[_0x4a1277(0x85)](_0x4a1277(0x77));}}[_0x57bf59(0x7b)](_0x219fde){let _0xa8d4b0,_0x1f4905;const _0x34be57=new Promise((_0x2d72c0,_0xbb5312)=>{_0xa8d4b0=_0x2d72c0,_0x1f4905=_0xbb5312;});return{'callback':_0x219fde,'resolve':_0xa8d4b0,'reject':_0x1f4905,'completePromise':_0x34be57};}}function _0x5455(){const _0x1fe8c6=['abort','_queueEmpty','reject','enqueue','16392vmvGVM','createTask','_abortController','8mxwMjE','14cxeFEX','197dWofnV','_processQueue','completePromise','queueEmptyPromise','once','signal','fire','9118640JgHkuP','36agwsjq','push','isProcessing','3883uPtnDm','13998ltxoxJ','callback','72072oWwTBT','shift','3138942lgngiE','length','resolve','queue','3580175FkLkJz','1039270sjCbUj'];_0x5455=function(){return _0x1fe8c6;};return _0x5455();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x24479e=_0x47ea;function _0x5954(){var _0x26eb79=['738GgvJtc','88wdBVJM','24nZzwBZ','requires','30054mdBnrn','isPremiumPlugin','2207560HuvzYS','AIChatHistory','isOfficialPlugin','1517784CJxVHy','3931760BmcaMV','pluginName','2299725CtqGac','516342ncORsI','1wcQOmq','7644FeAEPK','18vBrYZo'];_0x5954=function(){return _0x26eb79;};return _0x5954();}(function(_0x3686c0,_0x388fc5){var _0x1b5e62=_0x47ea,_0x7af699=_0x3686c0();while(!![]){try{var _0x4ab268=-parseInt(_0x1b5e62(0xbf))/0x1*(parseInt(_0x1b5e62(0xbe))/0x2)+-parseInt(_0x1b5e62(0xc6))/0x3*(-parseInt(_0x1b5e62(0xc4))/0x4)+-parseInt(_0x1b5e62(0xbd))/0x5+-parseInt(_0x1b5e62(0xc2))/0x6*(parseInt(_0x1b5e62(0xc0))/0x7)+parseInt(_0x1b5e62(0xbb))/0x8+-parseInt(_0x1b5e62(0xc1))/0x9*(parseInt(_0x1b5e62(0xc8))/0xa)+parseInt(_0x1b5e62(0xc3))/0xb*(parseInt(_0x1b5e62(0xba))/0xc);if(_0x4ab268===_0x388fc5)break;else _0x7af699['push'](_0x7af699['shift']());}catch(_0x3c59e1){_0x7af699['push'](_0x7af699['shift']());}}}(_0x5954,0x41cb2));import{ContextPlugin as _0x3293b3}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x1ae7e1}from'./aichathistorycontroller.js';function _0x47ea(_0x1ed181,_0x4c2b24){var _0x59541c=_0x5954();return _0x47ea=function(_0x47ea11,_0x540cfb){_0x47ea11=_0x47ea11-0xba;var _0x240a78=_0x59541c[_0x47ea11];return _0x240a78;},_0x47ea(_0x1ed181,_0x4c2b24);}import{AIChatHistoryUI as _0x1e7904}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x3293b3{static get[_0x24479e(0xc5)](){return[_0x1ae7e1,_0x1e7904];}static get[_0x24479e(0xbc)](){var _0x2eedfb=_0x24479e;return _0x2eedfb(0xc9);}static get[_0x24479e(0xca)](){return!0x0;}static get[_0x24479e(0xc7)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x688544=_0x49a4;(function(_0x5eee6d,_0x30e8cb){const _0x5e0f57=_0x49a4,_0x252bb0=_0x5eee6d();while(!![]){try{const _0x4df177=-parseInt(_0x5e0f57(0xbd))/0x1*(-parseInt(_0x5e0f57(0xc4))/0x2)+-parseInt(_0x5e0f57(0xab))/0x3*(-parseInt(_0x5e0f57(0xf4))/0x4)+parseInt(_0x5e0f57(0xae))/0x5+parseInt(_0x5e0f57(0xfa))/0x6*(-parseInt(_0x5e0f57(0xa1))/0x7)+-parseInt(_0x5e0f57(0xf6))/0x8*(-parseInt(_0x5e0f57(0xdd))/0x9)+-parseInt(_0x5e0f57(0xe5))/0xa*(parseInt(_0x5e0f57(0xff))/0xb)+-parseInt(_0x5e0f57(0xda))/0xc*(parseInt(_0x5e0f57(0xd6))/0xd);if(_0x4df177===_0x30e8cb)break;else _0x252bb0['push'](_0x252bb0['shift']());}catch(_0x224b6c){_0x252bb0['push'](_0x252bb0['shift']());}}}(_0x8bf1,0xb7191));import{ContextPlugin as _0x26574e}from'ckeditor5/src/core.js';import{AIConnector as _0x5cdd9b}from'../aicore/aiconnector.js';import{AIChatController as _0x5dcbd2}from'../aichat/aichatcontroller.js';import{AITabs as _0x55ec11}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x28e1ba}from'./aichathistoryui.js';function _0x8bf1(){const _0x2829c3=['removeConversation','AI_CHAT_HISTORY_CATEGORY_PINNED','resize','showError','54JCbfNi','getGroupId','_handleRemove','_getCategorizedItems','history','AI_CHAT_HISTORY_CATEGORY_TODAY','locale','getItem','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','AI_CHAT_HISTORY_ERROR_GENERIC','error','init','rename','createdAt','editConversationTitle','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','AI_CHAT_UNTITLED_CONVERSATION','context','65zdBQJF','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_CATEGORY_LATER','remove','3231420FnLvWu','_setIsMaximized','_showConversationHistory','10735371KemlQk','listenTo','handleRemovedConversation','_aiChatHistoryUi','resizedTabs','updateItemTitle','getFullYear','requires','316270trEyoE','_setItemLoading','itemRemoved','pin','unpin','pluginName','chat','updateItemPinned','removeHistoryItem','operation','_handleTogglePin','loadItems','openChat','setDate','_handleHistoryErrorUI','8jBTZus','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','8OpGzgg','itemUpdated','resizeTabs','AI_CHAT_HISTORY_UNPIN_ACTION','76314HoLyjS','activateTab:history','_generateErrorMessage','setConversationPinned','AIChatHistoryController','451HxzDbL','_aiChatController','getDate','itemId','_handleEditTitle','change:activeConversation','loadConversation','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','updateItemLoadingState','activateTab','selectConversation','539ZxKcad','get','AI_CHAT_HISTORY_PIN_ACTION','push','toLocaleDateString','setIsMaximized','length','view','_handleSelectConversation','activeConversation','1962201GbkPef','updateItems','_updateHistoryItemsUI','3628020ZSVxqG','title','plugins','items','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','setLoadingSkeleton','_aiConnector','pinned','updates','getItems','_clearItemLoading','itemsLoaded','isOfficialPlugin','removeItem','getMonth','42441CFbQvI','map','isPremiumPlugin'];_0x8bf1=function(){return _0x2829c3;};return _0x8bf1();}function _0x49a4(_0x29cb04,_0x3cb046){const _0x8bf1aa=_0x8bf1();return _0x49a4=function(_0x49a4f7,_0x10dd7b){_0x49a4f7=_0x49a4f7-0x99;let _0x38c689=_0x8bf1aa[_0x49a4f7];return _0x38c689;},_0x49a4(_0x29cb04,_0x3cb046);}import{AIChatHistoryConversations as _0x38380e}from'./model/aichathistoryconversations.js';import{getTranslation as _0x1b5b1b}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x26574e{[_0x688544(0xb4)];[_0x688544(0xe0)];[_0x688544(0x100)];static get[_0x688544(0xe4)](){return[_0x5cdd9b,_0x5dcbd2,_0x28e1ba,_0x55ec11];}static get[_0x688544(0xea)](){const _0x15aa90=_0x688544;return _0x15aa90(0xfe);}static get[_0x688544(0xba)](){return!0x0;}static get[_0x688544(0xbf)](){return!0x0;}[_0x688544(0xcf)](){const _0x532f89=_0x688544;this[_0x532f89(0xb4)]=this[_0x532f89(0xd5)][_0x532f89(0xb0)][_0x532f89(0xa2)](_0x5cdd9b),this[_0x532f89(0xe0)]=this[_0x532f89(0xd5)][_0x532f89(0xb0)][_0x532f89(0xa2)](_0x28e1ba),this[_0x532f89(0x100)]=this[_0x532f89(0xd5)][_0x532f89(0xb0)][_0x532f89(0xa2)](_0x5dcbd2);const _0x57b638=this[_0x532f89(0xd5)][_0x532f89(0xb0)][_0x532f89(0xa2)](_0x55ec11);try{const _0x1df1ce=this[_0x532f89(0x100)][_0x532f89(0xc5)]();this[_0x532f89(0xc8)]=new _0x38380e({'connector':this[_0x532f89(0xb4)],'group':_0x1df1ce}),this[_0x532f89(0xde)](this[_0x532f89(0xe0)],_0x532f89(0xc0),(_0x571c04,_0x3ba14b)=>{const _0x56aa99=_0x532f89;this[_0x56aa99(0xe6)](_0x3ba14b['id'],_0x56aa99(0xd9)),this[_0x56aa99(0xc6)](_0x3ba14b['id']);}),this[_0x532f89(0xde)](this[_0x532f89(0xe0)],_0x532f89(0xd2),(_0x82c512,_0x1c6321)=>{const _0x1d611b=_0x532f89;this[_0x1d611b(0xe6)](_0x1c6321['id'],_0x1d611b(0xd0)),this[_0x1d611b(0x9a)](_0x1c6321['id'],_0x1c6321[_0x1d611b(0xaf)]);}),this[_0x532f89(0xde)](this[_0x532f89(0xc8)],_0x532f89(0xf7),(_0x1251d9,_0x4052e4)=>{const _0x30d613=_0x532f89;void 0x0!==_0x4052e4[_0x30d613(0xb6)][_0x30d613(0xaf)]&&this[_0x30d613(0xe0)][_0x30d613(0xe2)](_0x4052e4[_0x30d613(0x99)],_0x4052e4[_0x30d613(0xb6)][_0x30d613(0xaf)]),void 0x0!==_0x4052e4[_0x30d613(0xb6)][_0x30d613(0xb5)]&&this[_0x30d613(0xad)](),this[_0x30d613(0xb8)](_0x4052e4[_0x30d613(0x99)]);}),this[_0x532f89(0xde)](this[_0x532f89(0xc8)],_0x532f89(0xe7),(_0x1b093a,_0x350428)=>{const _0x33f504=_0x532f89;this[_0x33f504(0x100)][_0x33f504(0xdf)](_0x350428[_0x33f504(0x99)]),this[_0x33f504(0xe0)][_0x33f504(0xed)](_0x350428[_0x33f504(0x99)]),this[_0x33f504(0xb8)](_0x350428[_0x33f504(0x99)]);}),this[_0x532f89(0xde)](this[_0x532f89(0xc8)],_0x532f89(0xb9),()=>{const _0xa19c09=_0x532f89;this[_0xa19c09(0xad)]();}),this[_0x532f89(0xde)](this[_0x532f89(0xc8)],_0x532f89(0xce),(_0x256951,_0x40a56f)=>{const _0x384217=_0x532f89;this[_0x384217(0xf3)](_0x40a56f[_0x384217(0xce)],_0x40a56f[_0x384217(0xee)],_0x40a56f[_0x384217(0x99)]);}),this[_0x532f89(0xde)](this[_0x532f89(0xe0)],_0x532f89(0xa0),(_0x51a3b1,_0x2fcf5f)=>{const _0x5a700b=_0x532f89;this[_0x5a700b(0xa9)](_0x2fcf5f['id']);}),this[_0x532f89(0xde)](this[_0x532f89(0xe0)],_0x532f89(0xfd),(_0x550c5a,_0x2392df)=>{const _0x76aa6c=_0x532f89,_0x2ba4dd=_0x2392df[_0x76aa6c(0xb5)]?_0x76aa6c(0xe8):_0x76aa6c(0xe9);this[_0x76aa6c(0xe6)](_0x2392df['id'],_0x2ba4dd),this[_0x76aa6c(0xef)](_0x2392df['id'],_0x2392df[_0x76aa6c(0xb5)]);}),this[_0x532f89(0xde)](this[_0x532f89(0xe0)],_0x532f89(0xf1),()=>{const _0x1e658c=_0x532f89;_0x57b638[_0x1e658c(0xa8)][_0x1e658c(0x9f)](_0x1e658c(0xeb));}),this[_0x532f89(0xde)](this[_0x532f89(0x100)],_0x532f89(0x9b),()=>{const _0x5f0dea=_0x532f89;this[_0x5f0dea(0xad)]();}),_0x57b638[_0x532f89(0xa8)]['on'](_0x532f89(0xfb),()=>{const _0x150bbc=_0x532f89;this[_0x150bbc(0xdc)]();}),this[_0x532f89(0xde)](_0x57b638,_0x532f89(0xe1),(_0x1c00db,_0x1a9833)=>{const _0x199561=_0x532f89;this[_0x199561(0xdb)](_0x1a9833);}),this[_0x532f89(0xde)](this[_0x532f89(0xe0)],_0x532f89(0xf8),()=>{const _0x1d4f06=_0x532f89;_0x57b638[_0x1d4f06(0xc2)]();});}catch(_0x154de2){this[_0x532f89(0xf3)](_0x154de2,_0x532f89(0xcf));}}async[_0x688544(0x9a)](_0x23c912,_0x54e217){const _0x5bf887=_0x688544;await this[_0x5bf887(0xc8)][_0x5bf887(0xe2)](_0x23c912,_0x54e217);}async[_0x688544(0xef)](_0x348a4f,_0x43fb6c){const _0x184943=_0x688544;await this[_0x184943(0xc8)][_0x184943(0xec)](_0x348a4f,_0x43fb6c);}async[_0x688544(0xc6)](_0x720da4){const _0x31a24a=_0x688544;await this[_0x31a24a(0xc8)][_0x31a24a(0xbb)](_0x720da4);}async[_0x688544(0xa9)](_0x57b863){const _0x303105=_0x688544;await this[_0x303105(0x100)][_0x303105(0x9c)](_0x57b863);}async[_0x688544(0xdc)](){const _0x10dc2d=_0x688544;this[_0x10dc2d(0xe0)][_0x10dc2d(0xc3)](''),this[_0x10dc2d(0xe0)][_0x10dc2d(0xb3)](!0x0),await this[_0x10dc2d(0xc8)][_0x10dc2d(0xcf)](),this[_0x10dc2d(0xe0)][_0x10dc2d(0xb3)](!0x1);}[_0x688544(0xad)](){const _0x428d36=_0x688544,_0x49b35f=this[_0x428d36(0x100)][_0x428d36(0xaa)]?.['id'],_0x1569cc=this[_0x428d36(0xc7)]()[_0x428d36(0xbe)](_0x51b9c0=>({'title':_0x51b9c0[_0x428d36(0xaf)],'items':_0x51b9c0[_0x428d36(0xb1)][_0x428d36(0xbe)](_0xbf8ed9=>({'id':_0xbf8ed9['id'],'title':_0xbf8ed9[_0x428d36(0xaf)]||_0x1b5b1b(this[_0x428d36(0xd5)][_0x428d36(0xca)],_0x428d36(0xd4)),'createdAt':new Date(_0xbf8ed9[_0x428d36(0xd1)])[_0x428d36(0xa5)](),'active':_0xbf8ed9['id']===_0x49b35f,'pinned':_0xbf8ed9[_0x428d36(0xb5)]}))}));this[_0x428d36(0xe0)][_0x428d36(0xac)](_0x1569cc);}[_0x688544(0xe6)](_0x4f2129,_0x840995){const _0x527a05=_0x688544;this[_0x527a05(0xe0)][_0x527a05(0x9e)](_0x4f2129,_0x840995,!0x0);}[_0x688544(0xb8)](_0x31c2f7){const _0x986657=_0x688544;this[_0x986657(0xe0)][_0x986657(0x9e)](_0x31c2f7,null,!0x1);}[_0x688544(0xf3)](_0x356b83,_0x52c3e9,_0xaeeb38){const _0x3f58b6=_0x688544,_0x1e2f06=this[_0x3f58b6(0xfc)](_0x52c3e9,_0xaeeb38);this[_0x3f58b6(0xe0)][_0x3f58b6(0xc3)](_0x1e2f06),_0xaeeb38&&this[_0x3f58b6(0xb8)](_0xaeeb38),this[_0x3f58b6(0xe0)][_0x3f58b6(0xb3)](!0x1);}[_0x688544(0xfc)](_0x131121,_0x5202d1){const _0xe6ba0c=_0x688544,_0x33f91e=_0x5202d1?this[_0xe6ba0c(0xc8)][_0xe6ba0c(0xcb)](_0x5202d1):null,_0x527947=_0x33f91e?.[_0xe6ba0c(0xaf)]||_0x1b5b1b(this[_0xe6ba0c(0xd5)][_0xe6ba0c(0xca)],_0xe6ba0c(0xd4));switch(_0x131121){case _0xe6ba0c(0xe2):return _0x1b5b1b(this[_0xe6ba0c(0xd5)][_0xe6ba0c(0xca)],_0xe6ba0c(0xb2),_0x527947);case _0xe6ba0c(0xec):{const _0x2fd6ae=_0x1b5b1b(this[_0xe6ba0c(0xd5)][_0xe6ba0c(0xca)],_0x33f91e?.[_0xe6ba0c(0xb5)]?_0xe6ba0c(0xf9):_0xe6ba0c(0xa3));return _0x1b5b1b(this[_0xe6ba0c(0xd5)][_0xe6ba0c(0xca)],_0xe6ba0c(0xd7),[_0x2fd6ae,_0x527947]);}case _0xe6ba0c(0xbb):return _0x1b5b1b(this[_0xe6ba0c(0xd5)][_0xe6ba0c(0xca)],_0xe6ba0c(0xcc),_0x527947);case _0xe6ba0c(0xcf):case _0xe6ba0c(0xf0):return _0x1b5b1b(this[_0xe6ba0c(0xd5)][_0xe6ba0c(0xca)],_0xe6ba0c(0xf5));default:return _0x1b5b1b(this[_0xe6ba0c(0xd5)][_0xe6ba0c(0xca)],_0xe6ba0c(0xcd));}}[_0x688544(0xc7)](){const _0x387107=_0x688544,_0x1e7876=new Date(),_0x2b5f75=new Date(_0x1e7876[_0x387107(0xe3)](),_0x1e7876[_0x387107(0xbc)](),_0x1e7876[_0x387107(0x101)]()),_0x49ec19=new Date(_0x2b5f75);_0x49ec19[_0x387107(0xf2)](_0x49ec19[_0x387107(0x101)]()-0x1);const _0x35d703=new Date(_0x2b5f75);_0x35d703[_0x387107(0xf2)](_0x35d703[_0x387107(0x101)]()-0xe);const _0x5547ad=this[_0x387107(0xc8)][_0x387107(0xb7)]({'pinned':!0x0}),_0x3406d5=this[_0x387107(0xc8)][_0x387107(0xb7)]({'from':_0x2b5f75,'to':_0x2b5f75}),_0x3410d0=this[_0x387107(0xc8)][_0x387107(0xb7)]({'from':_0x49ec19,'to':_0x49ec19}),_0x2fb549=this[_0x387107(0xc8)][_0x387107(0xb7)]({'from':_0x35d703,'to':_0x49ec19}),_0x242fa4=this[_0x387107(0xc8)][_0x387107(0xb7)]({'to':_0x35d703}),_0x48ccac=[];return _0x5547ad[_0x387107(0xa7)]>0x0&&_0x48ccac[_0x387107(0xa4)]({'title':_0x1b5b1b(this[_0x387107(0xd5)][_0x387107(0xca)],_0x387107(0xc1)),'items':_0x5547ad}),_0x3406d5[_0x387107(0xa7)]>0x0&&_0x48ccac[_0x387107(0xa4)]({'title':_0x1b5b1b(this[_0x387107(0xd5)][_0x387107(0xca)],_0x387107(0xc9)),'items':_0x3406d5}),_0x3410d0[_0x387107(0xa7)]>0x0&&_0x48ccac[_0x387107(0xa4)]({'title':_0x1b5b1b(this[_0x387107(0xd5)][_0x387107(0xca)],_0x387107(0x9d)),'items':_0x3410d0}),_0x2fb549[_0x387107(0xa7)]>0x0&&_0x48ccac[_0x387107(0xa4)]({'title':_0x1b5b1b(this[_0x387107(0xd5)][_0x387107(0xca)],_0x387107(0xd3)),'items':_0x2fb549}),_0x242fa4[_0x387107(0xa7)]>0x0&&_0x48ccac[_0x387107(0xa4)]({'title':_0x1b5b1b(this[_0x387107(0xd5)][_0x387107(0xca)],_0x387107(0xd8)),'items':_0x242fa4}),_0x48ccac;}[_0x688544(0xdb)](_0x3584c2){const _0x3a4128=_0x688544;this[_0x3a4128(0xe0)][_0x3a4128(0xa6)](_0x3584c2);}}
|
|
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);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x2a336c=_0x4756;function _0x1fbb(){const _0x8c249=['showConversationHistory','updateItemLoadingState','pluginName','16sEAtsB','plugins','198925XKWeJA','7WtPXgH','removeHistoryItem','selectConversation','802877afGsWy','errorMessage','isMaximized','requires','3203148XNjImF','resizeTabs','setLoadingSkeleton','view','get','updateItems','updateHistoryItemsWithCategories','openChat','locale','isPremiumPlugin','isOfficialPlugin','hideError','6470388YilhnJ','971606CodmBO','editConversationTitle','showError','_historyView','addTab','setConversationPinned','2928807XjzdLM','context','updateItemTitle','40tPHiuW','showResizeButton','isLoading','delegate','AI_CHAT_HISTORY_HEADING','7188709nUnpUa','AIChatHistoryUI','setIsMaximized','removeConversation','76xYeVEf','AITabs','history'];_0x1fbb=function(){return _0x8c249;};return _0x1fbb();}(function(_0x480167,_0x13a196){const _0x4e78bd=_0x4756,_0x16f318=_0x480167();while(!![]){try{const _0x45b99b=-parseInt(_0x4e78bd(0x174))/0x1+parseInt(_0x4e78bd(0x185))/0x2+parseInt(_0x4e78bd(0x178))/0x3+-parseInt(_0x4e78bd(0x168))/0x4*(-parseInt(_0x4e78bd(0x170))/0x5)+parseInt(_0x4e78bd(0x184))/0x6*(parseInt(_0x4e78bd(0x171))/0x7)+-parseInt(_0x4e78bd(0x16e))/0x8*(-parseInt(_0x4e78bd(0x18b))/0x9)+parseInt(_0x4e78bd(0x18e))/0xa*(-parseInt(_0x4e78bd(0x193))/0xb);if(_0x45b99b===_0x13a196)break;else _0x16f318['push'](_0x16f318['shift']());}catch(_0x859fed){_0x16f318['push'](_0x16f318['shift']());}}}(_0x1fbb,0x97c9d));import{ContextPlugin as _0x29414b}from'ckeditor5/src/core.js';import{AITabs as _0xc3e78a}from'../aitabs/aitabs.js';function _0x4756(_0x5be142,_0x3342d6){const _0x1fbbc8=_0x1fbb();return _0x4756=function(_0x4756a3,_0x3ac9c7){_0x4756a3=_0x4756a3-0x165;let _0x56537a=_0x1fbbc8[_0x4756a3];return _0x56537a;},_0x4756(_0x5be142,_0x3342d6);}import{IconAIHistory as _0x599fa8}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x181761}from'./ui/aichathistoryview.js';import{getTranslation as _0x3ad846}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x2a336c(0x16b),_0x2a336c(0x167),_0x2a336c(0x186),_0x2a336c(0x18a),_0x2a336c(0x173),_0x2a336c(0x17f),_0x2a336c(0x179)];export class AIChatHistoryUI extends _0x29414b{static get[_0x2a336c(0x177)](){return[_0xc3e78a];}[_0x2a336c(0x188)];static get[_0x2a336c(0x16d)](){const _0x2ff07e=_0x2a336c;return _0x2ff07e(0x165);}static get[_0x2a336c(0x182)](){return!0x0;}static get[_0x2a336c(0x181)](){return!0x0;}constructor(_0x205b5c){const _0x5dc0bc=_0x2a336c;super(_0x205b5c);const _0x3101bd=this[_0x5dc0bc(0x18c)][_0x5dc0bc(0x16f)][_0x5dc0bc(0x17c)](_0x5dc0bc(0x169));this[_0x5dc0bc(0x188)]=new _0x181761(this[_0x5dc0bc(0x18c)][_0x5dc0bc(0x180)],_0x3101bd[_0x5dc0bc(0x18f)]),this[_0x5dc0bc(0x188)][_0x5dc0bc(0x191)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x3101bd[_0x5dc0bc(0x17b)][_0x5dc0bc(0x189)]({'id':_0x5dc0bc(0x16a),'buttonLabel':_0x3ad846(this[_0x5dc0bc(0x18c)][_0x5dc0bc(0x180)],_0x5dc0bc(0x192)),'buttonIcon':_0x599fa8,'order':0x0,'content':this[_0x5dc0bc(0x188)]});}[_0x2a336c(0x172)](_0x458b3e){const _0x4549e8=_0x2a336c;this[_0x4549e8(0x188)][_0x4549e8(0x172)](_0x458b3e);}[_0x2a336c(0x17d)](_0xa65a03){const _0x37f862=_0x2a336c;this[_0x37f862(0x188)][_0x37f862(0x17e)](_0xa65a03);}[_0x2a336c(0x18d)](_0xb5b045,_0x318319){const _0x304496=_0x2a336c;this[_0x304496(0x188)][_0x304496(0x18d)](_0xb5b045,_0x318319);}[_0x2a336c(0x16c)](_0x582d3e,_0x52d191,_0x14fc0f){const _0x306355=_0x2a336c;this[_0x306355(0x188)][_0x306355(0x16c)](_0x582d3e,_0x52d191,_0x14fc0f);}[_0x2a336c(0x17a)](_0x6c439f){const _0x349275=_0x2a336c;this[_0x349275(0x188)][_0x349275(0x190)]=_0x6c439f;}[_0x2a336c(0x187)](_0x4af913){const _0x2bc4a4=_0x2a336c;this[_0x2bc4a4(0x188)][_0x2bc4a4(0x175)]=_0x4af913;}[_0x2a336c(0x183)](){const _0x4d0154=_0x2a336c;this[_0x4d0154(0x188)][_0x4d0154(0x175)]='';}[_0x2a336c(0x166)](_0x547f20){const _0x20de86=_0x2a336c;this[_0x20de86(0x188)][_0x20de86(0x176)]=_0x547f20;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xf27d02=_0x594b;(function(_0x1c013d,_0x3825c2){const _0x1b8b17=_0x594b,_0x3cc4f7=_0x1c013d();while(!![]){try{const _0x30147f=-parseInt(_0x1b8b17(0xdd))/0x1+-parseInt(_0x1b8b17(0xef))/0x2*(parseInt(_0x1b8b17(0xc9))/0x3)+-parseInt(_0x1b8b17(0xe3))/0x4+parseInt(_0x1b8b17(0xe6))/0x5+parseInt(_0x1b8b17(0xcb))/0x6+-parseInt(_0x1b8b17(0xd3))/0x7*(parseInt(_0x1b8b17(0xd7))/0x8)+-parseInt(_0x1b8b17(0xda))/0x9*(-parseInt(_0x1b8b17(0xd8))/0xa);if(_0x30147f===_0x3825c2)break;else _0x3cc4f7['push'](_0x3cc4f7['shift']());}catch(_0x3bc100){_0x3cc4f7['push'](_0x3cc4f7['shift']());}}}(_0x682c,0xb0caf));import{EmitterMixin as _0x5f01f7}from'ckeditor5/src/utils.js';function _0x594b(_0x529097,_0x5889ad){const _0x682cea=_0x682c();return _0x594b=function(_0x594b48,_0x38cbf3){_0x594b48=_0x594b48-0xc3;let _0x1497af=_0x682cea[_0x594b48];return _0x1497af;},_0x594b(_0x529097,_0x5889ad);}function _0x682c(){const _0x38b3a6=['9ZYxzEr','group','7546560ehMOzJ','updateConversation','pinned','getFullYear','execute','removeItem','itemUpdated','getTime','7jmVVpd','map','error','updatePinned','6247072kUfzFU','30GTDZmk','loadItems','2805732tzOmds','createdAt','getConversations','816760PvFahr','findIndex','connector','getItem','deleteConversation','getResult','228928ofWOtw','updateItemTitle','itemRemoved','2348460cxZcvh','items','updateItemPinned','fire','updateTitle','itemsLoaded','filter','find','push','189118CADnkO','fetchConversations','getMonth','from','init','getDate','splice','addItem','getItems'];_0x682c=function(){return _0x38b3a6;};return _0x682c();}import{AIChatHistoryItem as _0x1dc3d0}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x5f01f7(){[_0xf27d02(0xe7)]=[];[_0xf27d02(0xdf)];[_0xf27d02(0xca)];constructor({connector:_0x4f2d55,group:_0x1a2798}){const _0x5082bd=_0xf27d02;super(),this[_0x5082bd(0xdf)]=_0x4f2d55,this[_0x5082bd(0xca)]=_0x1a2798;}async[_0xf27d02(0xc4)](){const _0x3343b5=_0xf27d02;try{const _0x387a87=this[_0x3343b5(0xdf)][_0x3343b5(0xf0)](this[_0x3343b5(0xca)]),_0x2558e8=await _0x387a87[_0x3343b5(0xdc)]();this[_0x3343b5(0xd9)](_0x2558e8);}catch(_0xd7b00d){this[_0x3343b5(0xe9)](_0x3343b5(0xd5),{'error':_0xd7b00d,'operation':_0x3343b5(0xc4)});}}[_0xf27d02(0xc7)](_0x293481){const _0x318325=_0xf27d02;this[_0x318325(0xe7)][_0x318325(0xee)](_0x293481);}async[_0xf27d02(0xd0)](_0x5cc629){const _0x41c48f=_0xf27d02,_0xd07d87=this[_0x41c48f(0xe7)][_0x41c48f(0xde)](_0x5a4fb3=>_0x5a4fb3['id']===_0x5cc629);if(-0x1===_0xd07d87)return!0x1;try{return await this[_0x41c48f(0xdf)][_0x41c48f(0xe1)](_0x5cc629)[_0x41c48f(0xcf)](),this[_0x41c48f(0xe7)][_0x41c48f(0xc6)](_0xd07d87,0x1),this[_0x41c48f(0xe9)](_0x41c48f(0xe5),{'itemId':_0x5cc629}),!0x0;}catch(_0x351efc){return this[_0x41c48f(0xe9)](_0x41c48f(0xd5),{'error':_0x351efc,'operation':_0x41c48f(0xd0),'itemId':_0x5cc629}),!0x1;}}[_0xf27d02(0xe0)](_0x3c0e26){const _0x30f25d=_0xf27d02;return this[_0x30f25d(0xe7)][_0x30f25d(0xed)](_0xbb3a2d=>_0xbb3a2d['id']===_0x3c0e26);}async[_0xf27d02(0xe4)](_0x1e7465,_0x34b4c6){const _0x4af4fc=_0xf27d02,_0x43a827=this[_0x4af4fc(0xe0)](_0x1e7465);if(!_0x43a827)return!0x1;try{return await this[_0x4af4fc(0xdf)][_0x4af4fc(0xcc)](_0x1e7465,{'title':_0x34b4c6})[_0x4af4fc(0xe2)](),_0x43a827[_0x4af4fc(0xea)](_0x34b4c6),this[_0x4af4fc(0xe9)](_0x4af4fc(0xd1),{'itemId':_0x1e7465,'updates':{'title':_0x34b4c6}}),!0x0;}catch(_0x163604){return this[_0x4af4fc(0xe9)](_0x4af4fc(0xd5),{'error':_0x163604,'operation':_0x4af4fc(0xe4),'itemId':_0x1e7465}),!0x1;}}async[_0xf27d02(0xe8)](_0x5a65be,_0x11c40d){const _0x36d7ad=_0xf27d02,_0x1879dd=this[_0x36d7ad(0xe0)](_0x5a65be);if(!_0x1879dd)return!0x1;try{return await this[_0x36d7ad(0xdf)][_0x36d7ad(0xcc)](_0x5a65be,{'pinned':_0x11c40d})[_0x36d7ad(0xe2)](),_0x1879dd[_0x36d7ad(0xd6)](_0x11c40d),this[_0x36d7ad(0xe9)](_0x36d7ad(0xd1),{'itemId':_0x5a65be,'updates':{'pinned':_0x11c40d}}),!0x0;}catch(_0x364882){return this[_0x36d7ad(0xe9)](_0x36d7ad(0xd5),{'error':_0x364882,'operation':_0x36d7ad(0xe8),'itemId':_0x5a65be}),!0x1;}}[_0xf27d02(0xd9)](_0x5f061d){const _0x507825=_0xf27d02;try{this[_0x507825(0xe7)]=[],_0x5f061d[_0x507825(0xd4)](_0x53d742=>{const _0x46d637=_0x507825;this[_0x46d637(0xc7)](new _0x1dc3d0(_0x53d742));}),this[_0x507825(0xe9)](_0x507825(0xeb),{'items':[...this[_0x507825(0xe7)]]});}catch(_0x475f5d){this[_0x507825(0xe9)](_0x507825(0xd5),{'error':_0x475f5d,'operation':_0x507825(0xd9)});}}[_0xf27d02(0xc8)](_0x5ad98b={}){const _0x475c6b=_0xf27d02,_0xb82c00=void 0x0!==_0x5ad98b[_0x475c6b(0xcd)]&&_0x5ad98b[_0x475c6b(0xcd)],_0xfb0d92=_0x5ad98b[_0x475c6b(0xc3)]?new Date(_0x5ad98b[_0x475c6b(0xc3)][_0x475c6b(0xce)](),_0x5ad98b[_0x475c6b(0xc3)][_0x475c6b(0xf1)](),_0x5ad98b[_0x475c6b(0xc3)][_0x475c6b(0xc5)]()):null,_0x54ad66=_0x5ad98b['to']?new Date(_0x5ad98b['to'][_0x475c6b(0xce)](),_0x5ad98b['to'][_0x475c6b(0xf1)](),_0x5ad98b['to'][_0x475c6b(0xc5)]()):null;return this[_0x475c6b(0xe7)][_0x475c6b(0xec)](_0x1b28be=>{const _0x49f574=_0x475c6b;if(_0x1b28be[_0x49f574(0xcd)]!==_0xb82c00)return!0x1;if(_0x54ad66){const _0xbb9cbf=new Date(_0x1b28be[_0x49f574(0xdb)][_0x49f574(0xce)](),_0x1b28be[_0x49f574(0xdb)][_0x49f574(0xf1)](),_0x1b28be[_0x49f574(0xdb)][_0x49f574(0xc5)]());return _0xfb0d92?_0xfb0d92[_0x49f574(0xd2)]()===_0x54ad66[_0x49f574(0xd2)]()?_0xbb9cbf[_0x49f574(0xd2)]()===_0xfb0d92[_0x49f574(0xd2)]():_0xbb9cbf<_0x54ad66&&_0xbb9cbf>=_0xfb0d92:_0xbb9cbf<_0x54ad66;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x4cbade=_0x54da;(function(_0x33f454,_0xd09653){var _0x4eb414=_0x54da,_0x1aa73b=_0x33f454();while(!![]){try{var _0x3c0049=parseInt(_0x4eb414(0x1a0))/0x1+-parseInt(_0x4eb414(0x1a9))/0x2+-parseInt(_0x4eb414(0x19f))/0x3*(parseInt(_0x4eb414(0x19c))/0x4)+parseInt(_0x4eb414(0x1a6))/0x5+parseInt(_0x4eb414(0x1a1))/0x6*(parseInt(_0x4eb414(0x1a7))/0x7)+parseInt(_0x4eb414(0x19e))/0x8*(parseInt(_0x4eb414(0x19b))/0x9)+-parseInt(_0x4eb414(0x1a2))/0xa;if(_0x3c0049===_0xd09653)break;else _0x1aa73b['push'](_0x1aa73b['shift']());}catch(_0x296a9b){_0x1aa73b['push'](_0x1aa73b['shift']());}}}(_0x2f38,0x84a5d));function _0x54da(_0x48403f,_0x25ae09){var _0x2f381a=_0x2f38();return _0x54da=function(_0x54dafd,_0x49f995){_0x54dafd=_0x54dafd-0x19b;var _0x1dd403=_0x2f381a[_0x54dafd];return _0x1dd403;},_0x54da(_0x48403f,_0x25ae09);}import{ObservableMixin as _0x517187}from'ckeditor5/src/utils.js';import{escape as _0x1b3034}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x517187(){['id'];[_0x4cbade(0x1a3)];constructor({id:_0x1d63ad,title:_0x3d2b83,createdAt:_0xe5c846,updatedAt:_0x167e1d,pinned:_0xa4b4cd}){var _0x356679=_0x4cbade;super(),this['id']=_0x1d63ad,this[_0x356679(0x1a3)]=new Date(_0xe5c846),this[_0x356679(0x1a5)](_0x356679(0x1a8),_0x3d2b83),this[_0x356679(0x1a5)](_0x356679(0x1ab),_0x167e1d?new Date(_0x167e1d):null),this[_0x356679(0x1a5)](_0x356679(0x1a4),_0xa4b4cd||!0x1);}[_0x4cbade(0x1aa)](_0x1b3ce1){var _0x1d2c05=_0x4cbade;this[_0x1d2c05(0x1a5)](_0x1d2c05(0x1a8),_0x1b3034(_0x1b3ce1)),this[_0x1d2c05(0x1ab)]=new Date();}[_0x4cbade(0x19d)](_0x409c99){var _0x2cc016=_0x4cbade;this[_0x2cc016(0x1a5)](_0x2cc016(0x1a4),_0x409c99),this[_0x2cc016(0x1ab)]=new Date();}}function _0x2f38(){var _0xcf1e12=['21RomgGb','title','704818SkGdhh','updateTitle','updatedAt','1521990qiXiLl','60404nvzbEj','updatePinned','8QWDAXh','57DNSIcz','411264wYoAkf','1028028PjpoaG','1643710uKmkpY','createdAt','pinned','set','1263180Dvtobg'];_0x2f38=function(){return _0xcf1e12;};return _0x2f38();}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
function _0x58da(){const _0x5a5865=['change:isEdit','AI_CHAT_HISTORY_EDIT_NAME','span','buttonView','createCollection','_createAcceptEditButtonView','setTemplate','items','1382976QxXPXW','ck-ai-chat-history__item-date','ck-ai-chat-history__item-check-container','bindTemplate','_createCheckView','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','pinned','tiny','_titleView','128196qwycjI','_createPinButtonView','listitem','match','panelPosition','div','setConversationPinned','_createMenuDropdownView','edit:cancel','Enter','children','click','isOn','ck-hidden','AI_CHAT_HISTORY_LOADING_RENAMING','2072056IRSyYP','ck-confirm-view-submit','6SIEFeT','clear','ck-ai-chat-history__item-check','mainContent','_createEditInputView','removeConversation','showConfirm','extendTemplate','AI_CHAT_HISTORY_PIN_BUTTON','AI_CHAT_HISTORY_CANCEL','value','set','327736yBDtAa','updateTitle','text','isMatching','44073HzNHTL','string','bind','44746GOTkbJ','ck-ai-chat-history__item--active','ck-confirm-view-cancel','execute','focus','label','ck-ai-chat-history__item-title','add','fire','_createSpinnerView','ck-ai-chat-history__item-content','panelView','AI_CHAT_HISTORY_REMOVE_CONFIRM','AI_CHAT_HISTORY_LOADING_PINNING','loadingState','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_LOADING_UNPINNING','updateLoadingState','addMany','ck-ai-chat-history__item','ck-ai-loader__text','LOADING_LABELS','7NHgovd','AI_CHAT_HISTORY_REMOVE','_createCancelEditButtonView','key','ck-ai-chat-history__item--edit','highlightText','160RwYlrm','isEdit','AI_CHAT_HISTORY_ACCEPT','actions','ck-ai-chat-history__item-actions','ck-ai-chat-history__item-main-content','withText','ck-ai-loader','element','ck-ai-chat-history__item-row','_commitEditInputValue','editConversationTitle','locale','173120rqvUUu','isVisible','selectConversation','then'];_0x58da=function(){return _0x5a5865;};return _0x58da();}const _0x73d3fe=_0x4df9;function _0x4df9(_0x59a8d6,_0x3277a5){const _0x58daa6=_0x58da();return _0x4df9=function(_0x4df969,_0x49528c){_0x4df969=_0x4df969-0x181;let _0x5a5d07=_0x58daa6[_0x4df969];return _0x5a5d07;},_0x4df9(_0x59a8d6,_0x3277a5);}(function(_0x411eeb,_0x45987b){const _0x93078=_0x4df9,_0x2080f3=_0x411eeb();while(!![]){try{const _0x571791=parseInt(_0x93078(0x196))/0x1*(parseInt(_0x93078(0x183))/0x2)+parseInt(_0x93078(0x1d4))/0x3+parseInt(_0x93078(0x18f))/0x4+parseInt(_0x93078(0x1bf))/0x5+parseInt(_0x93078(0x1cb))/0x6+parseInt(_0x93078(0x1ac))/0x7*(-parseInt(_0x93078(0x181))/0x8)+parseInt(_0x93078(0x193))/0x9*(-parseInt(_0x93078(0x1b2))/0xa);if(_0x571791===_0x45987b)break;else _0x2080f3['push'](_0x2080f3['shift']());}catch(_0x3de810){_0x2080f3['push'](_0x2080f3['shift']());}}}(_0x58da,0x2d929));import{ListItemView as _0x34376a,HighlightedTextView as _0xd4cd07,ButtonView as _0x5198b5,ListView as _0x55f76a,IconView as _0x2e0271,createDropdown as _0x29f4b9,InputTextView as _0x37e2d3}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x98f663,IconPin as _0x1787fd,IconCheck as _0x200f7a,IconCancel as _0x10f9d9}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x5db3f4,ConfirmMixin as _0x254a39}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x5ce1aa}from'es-toolkit/compat';import{AISpinnerView as _0x2b01a4}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x52c6c2}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x254a39(_0x34376a){['id'];static [_0x73d3fe(0x1ab)]={'remove':_0x73d3fe(0x1a5),'rename':_0x73d3fe(0x1e2),'pin':_0x73d3fe(0x1a3),'unpin':_0x73d3fe(0x1a6)};[_0x73d3fe(0x1b5)];[_0x73d3fe(0x186)];[_0x73d3fe(0x1d3)];constructor(_0x1ec2cc,_0x5390fc){const _0x567fcc=_0x73d3fe;super(_0x1ec2cc);const _0x5b6477=this[_0x567fcc(0x1ce)];this[_0x567fcc(0x18e)](_0x567fcc(0x1b3),!0x1),this[_0x567fcc(0x18e)](_0x567fcc(0x1c0),!0x0),this[_0x567fcc(0x18e)](_0x567fcc(0x1d1),!!_0x5390fc[_0x567fcc(0x1d1)]),this[_0x567fcc(0x18e)](_0x567fcc(0x1a4),null),this['id']=_0x5390fc['id'];const {title:_0x449639,createdAt:_0x37ea2c,active:_0x554a38=!0x1}=_0x5390fc;this[_0x567fcc(0x1d3)]=new _0xd4cd07(),this[_0x567fcc(0x1d3)][_0x567fcc(0x191)]=_0x449639,this[_0x567fcc(0x1d3)][_0x567fcc(0x18a)]({'attributes':{'class':[_0x567fcc(0x19c)]}});const _0x355150=this[_0x567fcc(0x1cf)](),_0x3397ec=this[_0x567fcc(0x1d5)](_0x1ec2cc),_0x1fddaf=this[_0x567fcc(0x1db)](),_0x1a1c4e=this[_0x567fcc(0x187)](_0x1ec2cc,_0x449639),_0x29cba2=this[_0x567fcc(0x1c8)](_0x1ec2cc,_0x1a1c4e),_0x403978=this[_0x567fcc(0x1ae)](_0x1ec2cc,_0x1a1c4e);this[_0x567fcc(0x1b5)]=this[_0x567fcc(0x1c7)](),this[_0x567fcc(0x186)]=this[_0x567fcc(0x1c7)](),this[_0x567fcc(0x186)][_0x567fcc(0x19d)](this[_0x567fcc(0x1d3)]),this[_0x567fcc(0x1b5)][_0x567fcc(0x19d)](_0x3397ec),this[_0x567fcc(0x1b5)][_0x567fcc(0x19d)](_0x1fddaf),this['on'](_0x567fcc(0x1c3),(_0x44efb0,_0x249b8d,_0x2229a8)=>{const _0x4e2c15=_0x567fcc;this[_0x4e2c15(0x1b5)][_0x4e2c15(0x184)](),this[_0x4e2c15(0x186)][_0x4e2c15(0x184)](),_0x2229a8?(this[_0x4e2c15(0x1b5)][_0x4e2c15(0x19d)](_0x29cba2),this[_0x4e2c15(0x1b5)][_0x4e2c15(0x19d)](_0x403978),this[_0x4e2c15(0x186)][_0x4e2c15(0x19d)](_0x1a1c4e),_0x1a1c4e[_0x4e2c15(0x1ba)][_0x4e2c15(0x19a)]()):(this[_0x4e2c15(0x1b5)][_0x4e2c15(0x19d)](_0x3397ec),this[_0x4e2c15(0x1b5)][_0x4e2c15(0x19d)](_0x1fddaf),this[_0x4e2c15(0x186)][_0x4e2c15(0x19d)](this[_0x4e2c15(0x1d3)]));}),this[_0x567fcc(0x1c9)]({'tag':'li','attributes':{'class':[_0x567fcc(0x1a9),_0x554a38?_0x567fcc(0x197):'',_0x5b6477['if'](_0x567fcc(0x1c0),_0x567fcc(0x1e1),_0x18040c=>!_0x18040c),_0x5b6477['if'](_0x567fcc(0x1b3),_0x567fcc(0x1b0))],'role':_0x567fcc(0x1d6)},'children':[{'tag':_0x567fcc(0x1c5),'attributes':{'class':[_0x567fcc(0x1cd)]},'children':[{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x185),_0x5b6477['if'](_0x567fcc(0x1a4),_0x567fcc(0x1e1),_0x177971=>!!_0x177971)]},'children':_0x554a38?[_0x355150]:[]},{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1b9),_0x5b6477['if'](_0x567fcc(0x1a4),_0x567fcc(0x1e1),_0x481231=>!_0x481231)]},'children':[this[_0x567fcc(0x19f)]()]}]},{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1bb)]},'children':[{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1a0)]},'on':{'click':this[_0x567fcc(0x1ce)]['to'](_0x567fcc(0x1df))},'children':[{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1b7)]},'children':[{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x19c),_0x5b6477['if'](_0x567fcc(0x1a4),_0x567fcc(0x1e1),_0x478107=>!!_0x478107)]},'children':this[_0x567fcc(0x186)]},{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1aa),_0x5b6477['if'](_0x567fcc(0x1a4),_0x567fcc(0x1e1),_0x5dae05=>!_0x5dae05)]},'children':[{'text':_0x5b6477['to'](_0x567fcc(0x1a4),_0x448374=>_0x448374?_0x52c6c2(this[_0x567fcc(0x1be)],AIChatHistoryListItemView[_0x567fcc(0x1ab)][_0x448374]):'')}]}]},{'tag':_0x567fcc(0x1c5),'attributes':{'class':[_0x567fcc(0x1cc)]},'children':[_0x37ea2c]}]},{'tag':_0x567fcc(0x1d9),'attributes':{'class':[_0x567fcc(0x1b6)]},'children':this[_0x567fcc(0x1b5)]}]}]}),this['on'](_0x567fcc(0x1df),()=>{const _0x2bc6e7=_0x567fcc;this[_0x2bc6e7(0x1b3)]||this[_0x2bc6e7(0x19e)](_0x2bc6e7(0x1c1),{'id':this['id']});});}[_0x73d3fe(0x190)](_0x230c56){const _0xe14b2b=_0x73d3fe;this[_0xe14b2b(0x1d3)][_0xe14b2b(0x191)]=_0x5ce1aa(_0x230c56);}[_0x73d3fe(0x1a7)](_0x58a5f2,_0x42d996){const _0x27785c=_0x73d3fe;this[_0x27785c(0x18e)](_0x27785c(0x1a4),_0x42d996?_0x58a5f2:null);}[_0x73d3fe(0x1cf)](){const _0x4ee9ee=_0x73d3fe,_0x2582c3=new _0x2e0271();return _0x2582c3[_0x4ee9ee(0x18e)]({'content':_0x200f7a}),_0x2582c3;}[_0x73d3fe(0x1d5)](_0x437e04){const _0x3ee091=_0x73d3fe,_0x599c13=new _0x5198b5(_0x437e04);return _0x599c13[_0x3ee091(0x18e)]({'label':_0x52c6c2(_0x437e04,_0x3ee091(0x18b)),'icon':_0x1787fd,'withText':!0x1,'tooltip':!0x0}),_0x599c13[_0x3ee091(0x195)](_0x3ee091(0x1e0))['to'](this,_0x3ee091(0x1d1)),_0x599c13['on'](_0x3ee091(0x199),()=>{const _0x924141=_0x3ee091,_0x41d558=!this[_0x924141(0x1d1)];this[_0x924141(0x19e)](_0x924141(0x1da),{'id':this['id'],'pinned':_0x41d558});}),_0x599c13;}[_0x73d3fe(0x1db)](){const _0x1cb37c=_0x73d3fe,_0x308ec5=_0x29f4b9(this[_0x1cb37c(0x1be)],_0x5db3f4),_0x3b3afb=_0x308ec5[_0x1cb37c(0x1a1)][_0x1cb37c(0x1de)];_0x308ec5[_0x1cb37c(0x1c6)][_0x1cb37c(0x18e)]({'label':_0x52c6c2(this[_0x1cb37c(0x1be)],_0x1cb37c(0x1d0)),'icon':_0x98f663}),_0x308ec5[_0x1cb37c(0x1d8)]='sw';const _0x51f1a9=new _0x5198b5(this[_0x1cb37c(0x1be)]);_0x51f1a9[_0x1cb37c(0x19b)]=_0x52c6c2(this[_0x1cb37c(0x1be)],_0x1cb37c(0x1c4)),_0x51f1a9[_0x1cb37c(0x1b8)]=!0x0,_0x51f1a9['on'](_0x1cb37c(0x199),()=>{const _0x5ebd49=_0x1cb37c;this[_0x5ebd49(0x1b3)]=!0x0;});const _0x462fdc=new _0x5198b5(this[_0x1cb37c(0x1be)]);_0x462fdc[_0x1cb37c(0x19b)]=_0x52c6c2(this[_0x1cb37c(0x1be)],_0x1cb37c(0x1ad)),_0x462fdc[_0x1cb37c(0x1b8)]=!0x0,_0x462fdc['on'](_0x1cb37c(0x199),()=>{const _0x543d3e=_0x1cb37c;this[_0x543d3e(0x189)](_0x52c6c2(this[_0x543d3e(0x1be)],_0x543d3e(0x1a2)),this[_0x543d3e(0x1ba)])[_0x543d3e(0x1c2)](()=>{const _0x2a160a=_0x543d3e;this[_0x2a160a(0x19e)](_0x2a160a(0x188),{'id':this['id']});});});const _0x43d4b3=new _0x55f76a(this[_0x1cb37c(0x1be)]),_0x124af7=new _0x34376a(this[_0x1cb37c(0x1be)]);_0x124af7[_0x1cb37c(0x1de)][_0x1cb37c(0x19d)](_0x51f1a9);const _0x1e0ed3=new _0x34376a(this[_0x1cb37c(0x1be)]);return _0x1e0ed3[_0x1cb37c(0x1de)][_0x1cb37c(0x19d)](_0x462fdc),_0x43d4b3[_0x1cb37c(0x1ca)][_0x1cb37c(0x1a8)]([_0x124af7,_0x1e0ed3]),_0x3b3afb[_0x1cb37c(0x19d)](_0x43d4b3),_0x308ec5;}[_0x73d3fe(0x187)](_0x6575ef,_0xc5186c){const _0x44362e=_0x73d3fe,_0x33d443=new _0x37e2d3(_0x6575ef),_0x21e576=_0x33d443[_0x44362e(0x1ce)];return _0x33d443[_0x44362e(0x18d)]=_0xc5186c,_0x33d443[_0x44362e(0x18a)]({'on':{'keydown':_0x21e576['to'](_0x4a752b=>{const _0x420c37=_0x44362e;_0x420c37(0x1dd)==_0x4a752b[_0x420c37(0x1af)]&&this[_0x420c37(0x1bc)](_0x33d443);})}}),_0x33d443;}[_0x73d3fe(0x1c8)](_0x3c49c5,_0x3b1de5){const _0x1b22dc=_0x73d3fe,_0x4520e2=new _0x5198b5(_0x3c49c5);return _0x4520e2[_0x1b22dc(0x18e)]({'icon':_0x200f7a,'withText':!0x1,'tooltip':_0x52c6c2(_0x3c49c5,_0x1b22dc(0x1b4))}),_0x4520e2[_0x1b22dc(0x18a)]({'attributes':{'class':[_0x1b22dc(0x182)]}}),_0x4520e2['on'](_0x1b22dc(0x199),()=>{const _0x1c77d1=_0x1b22dc;this[_0x1c77d1(0x1bc)](_0x3b1de5);}),_0x4520e2;}[_0x73d3fe(0x1bc)](_0x22513f){const _0x2bb7c=_0x73d3fe,_0x385e8b=_0x22513f[_0x2bb7c(0x1ba)][_0x2bb7c(0x18d)]||'';this[_0x2bb7c(0x1d3)][_0x2bb7c(0x191)]=_0x385e8b,this[_0x2bb7c(0x1b3)]=!0x1,this[_0x2bb7c(0x19e)](_0x2bb7c(0x1bd),{'id':this['id'],'title':_0x385e8b});}[_0x73d3fe(0x1ae)](_0x508e23,_0x195183){const _0x5581ca=_0x73d3fe,_0x421c64=new _0x5198b5(_0x508e23);return _0x421c64[_0x5581ca(0x18e)]({'icon':_0x10f9d9,'withText':!0x1,'tooltip':_0x52c6c2(_0x508e23,_0x5581ca(0x18c))}),_0x421c64[_0x5581ca(0x18a)]({'attributes':{'class':[_0x5581ca(0x198)]}}),_0x421c64['on'](_0x5581ca(0x199),()=>{const _0x2f17ff=_0x5581ca;this[_0x2f17ff(0x1b3)]=!0x1,_0x195183[_0x2f17ff(0x18d)]=this[_0x2f17ff(0x1d3)][_0x2f17ff(0x191)]||'',this[_0x2f17ff(0x19e)](_0x2f17ff(0x1dc));}),_0x421c64;}[_0x73d3fe(0x19f)](){const _0xd27e53=_0x73d3fe,_0x265770=new _0x2b01a4(_0xd27e53(0x1d2));return _0x265770[_0xd27e53(0x1c0)]=!0x0,_0x265770;}[_0x73d3fe(0x192)](_0x1aaa53){const _0x5c1a99=_0x73d3fe;return this[_0x5c1a99(0x1d3)]&&_0x5c1a99(0x194)==typeof this[_0x5c1a99(0x1d3)][_0x5c1a99(0x191)]&&this[_0x5c1a99(0x1d3)][_0x5c1a99(0x191)][_0x5c1a99(0x1d7)](_0x1aaa53)?{'title':!0x0}:null;}[_0x73d3fe(0x1b1)](_0x5813d2){const _0x4c683f=_0x73d3fe;this[_0x4c683f(0x1d3)][_0x4c683f(0x1b1)](_0x5813d2);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49649d=_0x49ae;(function(_0x4cfcb4,_0x3cedc6){const _0x402eb4=_0x49ae,_0x34e7ca=_0x4cfcb4();while(!![]){try{const _0x1f0cdb=parseInt(_0x402eb4(0x163))/0x1+-parseInt(_0x402eb4(0x16b))/0x2+-parseInt(_0x402eb4(0x15e))/0x3+parseInt(_0x402eb4(0x15a))/0x4*(parseInt(_0x402eb4(0x155))/0x5)+-parseInt(_0x402eb4(0x153))/0x6+-parseInt(_0x402eb4(0x159))/0x7*(parseInt(_0x402eb4(0x156))/0x8)+parseInt(_0x402eb4(0x15b))/0x9*(parseInt(_0x402eb4(0x169))/0xa);if(_0x1f0cdb===_0x3cedc6)break;else _0x34e7ca['push'](_0x34e7ca['shift']());}catch(_0x1417ff){_0x34e7ca['push'](_0x34e7ca['shift']());}}}(_0x2778,0xdc2ca));function _0x49ae(_0x4b0848,_0x38006d){const _0x2778b9=_0x2778();return _0x49ae=function(_0x49aedc,_0x41ae94){_0x49aedc=_0x49aedc-0x150;let _0x8927e=_0x2778b9[_0x49aedc];return _0x8927e;},_0x49ae(_0x4b0848,_0x38006d);}import{ListItemView as _0x14fb21,View as _0x764985,ListView as _0x305f16}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x14fb21{[_0x49649d(0x151)];[_0x49649d(0x164)];[_0x49649d(0x16e)];constructor(_0x52e4c3,{title:_0xb9644f,items:_0x1acac0}){const _0x444d4f=_0x49649d;super(_0x52e4c3);const _0x2a60f7=this[_0x444d4f(0x16c)];this[_0x444d4f(0x162)](_0x444d4f(0x16f),!0x0),this[_0x444d4f(0x151)]=_0xb9644f,this[_0x444d4f(0x164)]=_0x1acac0;const _0x1efa96=new _0x764985(_0x52e4c3);_0x1efa96[_0x444d4f(0x154)]({'tag':_0x444d4f(0x167),'attributes':{'class':[_0x444d4f(0x165)]},'children':[this[_0x444d4f(0x151)]]}),this[_0x444d4f(0x16e)]=new _0x305f16(_0x52e4c3),this[_0x444d4f(0x16e)][_0x444d4f(0x16d)][_0x444d4f(0x16a)](this[_0x444d4f(0x164)]),this[_0x444d4f(0x154)]({'tag':'li','attributes':{'class':[_0x444d4f(0x15c),_0x2a60f7['if'](_0x444d4f(0x16f),_0x444d4f(0x15f),_0x334d98=>!_0x334d98)]},'children':[_0x1efa96,this[_0x444d4f(0x16e)]]});}[_0x49649d(0x168)](_0xe5a68e){const _0x5a422b=_0x49649d,_0x5160d0=this[_0x5a422b(0x164)][_0x5a422b(0x157)];let _0x5e9a7d=0x0;for(const _0x318552 of this[_0x5a422b(0x164)]){if(_0xe5a68e){const _0xd478b7=_0x318552[_0x5a422b(0x152)](_0xe5a68e);_0x318552[_0x5a422b(0x16f)]=!!_0xd478b7,_0x318552[_0x5a422b(0x160)](_0xe5a68e);}else _0x318552[_0x5a422b(0x16f)]=!0x0,_0x318552[_0x5a422b(0x160)](null);_0x318552[_0x5a422b(0x16f)]&&_0x5e9a7d++;}return this[_0x5a422b(0x16f)]=_0x5e9a7d>0x0,{'resultsCount':_0x5e9a7d,'totalItemsCount':_0x5160d0};}[_0x49649d(0x150)](_0x960cb8){const _0x27acfe=_0x49649d;return this[_0x27acfe(0x164)][_0x27acfe(0x161)](_0x5c3295=>_0x5c3295['id']===_0x960cb8);}[_0x49649d(0x15d)](_0x172092){const _0x2efd88=_0x49649d,_0x409608=this[_0x2efd88(0x164)][_0x2efd88(0x166)](_0x172092);-0x1!==_0x409608&&(this[_0x2efd88(0x164)][_0x2efd88(0x170)](_0x409608,0x1),this[_0x2efd88(0x16e)][_0x2efd88(0x16d)][_0x2efd88(0x158)](_0x172092));}}function _0x2778(){const _0xc2668c=['707YyJWsm','44KgrPbI','9770589fRQjUw','ck-ai-chat-history__section','removeItem','3639744LMnQnp','ck-hidden','highlightText','find','set','261567fOEymd','itemsViews','ck-ai-chat-history__section-title','indexOf','div','filter','10LgZVQj','addMany','515716UlioZn','bindTemplate','items','_itemsListView','isVisible','splice','getItem','title','isMatching','1355364TDAgen','setTemplate','617915VSnLCr','8536yNiOtR','length','remove'];_0x2778=function(){return _0xc2668c;};return _0x2778();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5c01ce=_0x2343;(function(_0x4b1c22,_0x23b28d){const _0x2480e8=_0x2343,_0x1e8064=_0x4b1c22();while(!![]){try{const _0x283f85=parseInt(_0x2480e8(0xec))/0x1*(-parseInt(_0x2480e8(0xf8))/0x2)+parseInt(_0x2480e8(0xf7))/0x3+parseInt(_0x2480e8(0xf9))/0x4*(-parseInt(_0x2480e8(0xfa))/0x5)+-parseInt(_0x2480e8(0xee))/0x6+-parseInt(_0x2480e8(0xf5))/0x7*(-parseInt(_0x2480e8(0xf4))/0x8)+parseInt(_0x2480e8(0xf6))/0x9+-parseInt(_0x2480e8(0xf0))/0xa;if(_0x283f85===_0x23b28d)break;else _0x1e8064['push'](_0x1e8064['shift']());}catch(_0x20cb04){_0x1e8064['push'](_0x1e8064['shift']());}}}(_0x328e,0x97774));function _0x2343(_0x5302f3,_0x47316f){const _0x328eda=_0x328e();return _0x2343=function(_0x234395,_0x9076e1){_0x234395=_0x234395-0xec;let _0x2d5b92=_0x328eda[_0x234395];return _0x2d5b92;},_0x2343(_0x5302f3,_0x47316f);}import{ListView as _0x3d64d2}from'ckeditor5/src/ui.js';function _0x328e(){const _0x22181d=['12bHpwyo','147010HMASJM','sections','481883KopLee','addMany','3047916bXMqLg','ck-ai-chat-history__sections','9250940vzKDIb','extendTemplate','items','filter','1770280JqbslK','28fhtSBj','10182186UVYBOz','3266886rYDRcn','4PKEjFh'];_0x328e=function(){return _0x22181d;};return _0x328e();}export class AIChatHistorySectionListView extends _0x3d64d2{[_0x5c01ce(0xfb)];constructor(_0x125bef,_0x5d553f){const _0x3271c0=_0x5c01ce;super(_0x125bef),this[_0x3271c0(0xfb)]=_0x5d553f,this[_0x3271c0(0xf2)][_0x3271c0(0xed)](this[_0x3271c0(0xfb)]),this[_0x3271c0(0xf1)]({'attributes':{'class':[_0x3271c0(0xef)]}});}[_0x5c01ce(0xf3)](_0x1aaa00){const _0x4303f4=_0x5c01ce;let _0x344e35=0x0,_0x26536d=0x0;for(const _0x42b334 of this[_0x4303f4(0xfb)]){const {resultsCount:_0x177cbf,totalItemsCount:_0x181579}=_0x42b334[_0x4303f4(0xf3)](_0x1aaa00);_0x344e35+=_0x177cbf,_0x26536d+=_0x181579;}return{'resultsCount':_0x344e35,'totalItemsCount':_0x26536d};}}
|