@ckeditor/ckeditor5-ai 47.1.0-alpha.0 → 47.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- 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/legacyerrors.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/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.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/model/aichatmodels.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/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.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 +1 -1
- 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/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.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/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.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/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.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/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/aitabsmainview.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
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x45f6(){const _0x6d0fef=['open','keys','class','showChangeInText','24984XTSajT','applySuggestionModel','insertSuggestion','579030pqEuef','filter','listenTo','_createActionsDropdown','ck-ai-chat__feed__ai-suggestion__actions\x20','unbind','destroy','bodyCollection','showChangeInTextModel','execute','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','4Bdapzl','applySuggestion','bindTemplate','actionName','element','3142256nPIfhg','items','hide','detachFromDom','ck-ai-button-primary','setTemplate','_updateDropdownActions','has','_firstRender','remove','add','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','3vtxggt','esc','focus','arrowView','186764EyBKYN','_setUpKeystrokes','updateLabels','attachToDom','isTrackChangesOn','balloonPanelClass','1505019lSWsRC','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','locale','_createActionsDropdownOrButton','281890CAcUaN','balloonPanelView','insertSuggestionModel','isVisible','_setUpList','_createActionsButton','ck-ai-chat__feed__ai-suggestion__actions','createCollection','tooltip','map','length','pin','source','_dropdownOriginalConfig','left','listItemModels','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','label','ck-hidden','ck-ai-chat__feed__ai-suggestion__actions__balloon','_dropdownCurrentConfig','ck-ai-chat__feed__ai-suggestion__actions--no-animation','content','div','set','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','isEnabled','uiLanguageDirection','fire','listView','bind','arrowless','children','slice','bottom','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','width','2956655bIRsmH','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','54jOpxNb','_partsCount','keystrokeHandler','delegate','button','ltr','change:isTrackChangesOn','actionsButton'];_0x45f6=function(){return _0x6d0fef;};return _0x45f6();}const _0x471f74=_0x2f91;(function(_0x5646e9,_0x1dfe53){const _0xb8c79=_0x2f91,_0x1aea38=_0x5646e9();while(!![]){try{const _0x276ac7=-parseInt(_0xb8c79(0xeb))/0x1*(-parseInt(_0xb8c79(0xef))/0x2)+parseInt(_0xb8c79(0x95))/0x3*(-parseInt(_0xb8c79(0xda))/0x4)+parseInt(_0xb8c79(0xbe))/0x5+-parseInt(_0xb8c79(0xcc))/0x6+-parseInt(_0xb8c79(0x99))/0x7+parseInt(_0xb8c79(0xdf))/0x8+-parseInt(_0xb8c79(0xc0))/0x9*(parseInt(_0xb8c79(0xcf))/0xa);if(_0x276ac7===_0x1dfe53)break;else _0x1aea38['push'](_0x1aea38['shift']());}catch(_0x311c13){_0x1aea38['push'](_0x1aea38['shift']());}}}(_0x45f6,0x5a82e));import{KeystrokeHandler as _0x8b8402}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x265226,BodyCollection as _0x1eb74d,ButtonView as _0x4a0cb3,clickOutsideHandler as _0x4a3f7d,ListItemButtonView as _0x3ea928,ListItemView as _0x27a438,ListView as _0xdbbe0d,SplitButtonView as _0x496a23,UIModel as _0x2e5304,View as _0x213425}from'ckeditor5/src/ui.js';import{IconCheck as _0x4d2557,IconAddComment as _0x4bc811,IconDocumentWithLoupe as _0x432969}from'ckeditor5/src/icons.js';import{getTranslation as _0x27c079}from'../../../aicore/utils/common-translations.js';export const ACTIONS=[_0x471f74(0xdb),_0x471f74(0xce),_0x471f74(0xcb)];export class AIChatFeedSuggestionItemActionsView extends _0x213425{[_0x471f74(0xc7)];[_0x471f74(0xb9)];[_0x471f74(0xcd)];[_0x471f74(0xd7)];[_0x471f74(0x9b)];[_0x471f74(0xc1)]=0x1;[_0x471f74(0xa6)];[_0x471f74(0xad)];[_0x471f74(0xe7)]=!0x0;constructor(_0x2bdfb7,_0x24e04f){const _0x33c67c=_0x471f74;super(_0x2bdfb7),this[_0x33c67c(0xa6)]=_0x24e04f||[...ACTIONS],this[_0x33c67c(0xad)]=[...this[_0x33c67c(0xa6)]];const _0x2b3940=this[_0x33c67c(0xdc)];this[_0x33c67c(0xb1)](_0x33c67c(0xb3),!0x0),this[_0x33c67c(0xb1)](_0x33c67c(0x9c),!0x0),this[_0x33c67c(0xcd)]=new _0x2e5304({'label':Un(_0x33c67c(0xdb),_0x2bdfb7,this[_0x33c67c(0xc1)]),'icon':_0x4d2557,'withText':!0x0,'type':_0x33c67c(0xc4),'actionName':_0x33c67c(0xdb)}),this[_0x33c67c(0xd7)]=new _0x2e5304({'label':Un(_0x33c67c(0xcb),_0x2bdfb7,this[_0x33c67c(0xc1)]),'icon':_0x432969,'withText':!0x0,'type':_0x33c67c(0xc4),'actionName':_0x33c67c(0xcb)}),this[_0x33c67c(0x9b)]=new _0x2e5304({'label':Un(_0x33c67c(0xce),_0x2bdfb7,this[_0x33c67c(0xc1)]),'icon':_0x4bc811,'withText':!0x0,'type':_0x33c67c(0xc4),'actionName':_0x33c67c(0xce)}),this[_0x33c67c(0xc7)]=this[_0x33c67c(0x98)](_0x2bdfb7),this[_0x33c67c(0xb9)]=this[_0x33c67c(0xa0)]([this[_0x33c67c(0xc7)]]),this[_0x33c67c(0xe4)]({'tag':_0x33c67c(0xb0),'attributes':{'class':['ck',_0x33c67c(0x9f),_0x2b3940['if'](_0x33c67c(0x9c),_0x33c67c(0xab),_0x3c57c0=>!_0x3c57c0)]},'children':this[_0x33c67c(0xb9)]}),this[_0x33c67c(0xd1)](this,_0x33c67c(0xc6),()=>{const _0x17c100=_0x33c67c;this[_0x17c100(0xad)]=this[_0x17c100(0xf3)]?this[_0x17c100(0xa6)][_0x17c100(0xd0)](_0x3b4aef=>_0x17c100(0xdb)!==_0x3b4aef):[...this[_0x17c100(0xa6)]],this[_0x17c100(0xe5)](_0x2bdfb7);});}[_0x471f74(0xe5)](_0x245a99){const _0x144673=_0x471f74;this[_0x144673(0xb9)][_0x144673(0xe6)](this[_0x144673(0xc7)])&&(this[_0x144673(0xb9)][_0x144673(0xe8)](this[_0x144673(0xc7)]),this[_0x144673(0xc7)][_0x144673(0xd5)]()),0x0!=this[_0x144673(0xad)][_0x144673(0xa3)]&&(this[_0x144673(0xc7)]=this[_0x144673(0x98)](_0x245a99),this[_0x144673(0xb9)][_0x144673(0xe9)](this[_0x144673(0xc7)]));}[_0x471f74(0x98)](_0x56bda9){const _0x37ac3b=_0x471f74,_0x5c44ba=0x1===this[_0x37ac3b(0xad)][_0x37ac3b(0xa3)]?this[_0x37ac3b(0x9e)](_0x56bda9):this[_0x37ac3b(0xd2)](_0x56bda9),_0x71313e=this[_0x37ac3b(0xe7)]?'':_0x37ac3b(0xae);_0x5c44ba[_0x37ac3b(0xb1)]({'label':Un(this[_0x37ac3b(0xad)][0x0],_0x56bda9,this[_0x37ac3b(0xc1)]),'tooltip':Ln(this[_0x37ac3b(0xad)][0x0],_0x56bda9,this[_0x37ac3b(0xc1)]),'withText':!0x0,'class':_0x37ac3b(0xd3)+_0x71313e});for(const _0x5364fa of this[_0x37ac3b(0xad)])_0x5c44ba['on'](_0x5364fa,()=>{const _0x5cd48e=_0x37ac3b;this[_0x5cd48e(0xb5)](_0x5364fa);});return this[_0x37ac3b(0xe7)]=!0x1,_0x5c44ba;}[_0x471f74(0x9e)](_0x2025dd){const _0x1f94bc=_0x471f74,_0x2534a1=new _0x4a0cb3(_0x2025dd);return _0x2534a1[_0x1f94bc(0xb1)]({'class':_0x1f94bc(0xe3),'withText':!0x0}),_0x2534a1['on'](_0x1f94bc(0xd8),()=>{const _0x28d526=_0x1f94bc;_0x2534a1[_0x28d526(0xb5)](this[_0x28d526(0xad)][0x0]);}),_0x2534a1;}[_0x471f74(0xd2)](_0x5e366a){const _0x288e4f=_0x471f74,_0x130840=new yn(_0x5e366a,{'listItemModels':this[_0x288e4f(0xad)][_0x288e4f(0xa2)](_0x1f7b30=>{const _0x399f9d=_0x288e4f;switch(_0x1f7b30){case _0x399f9d(0xdb):return this[_0x399f9d(0xcd)];case _0x399f9d(0xcb):return this[_0x399f9d(0xd7)];case _0x399f9d(0xce):return this[_0x399f9d(0x9b)];}})});return _0x130840[_0x288e4f(0xb1)]({'label':Un(this[_0x288e4f(0xad)][0x0],_0x5e366a,this[_0x288e4f(0xc1)]),'tooltip':Ln(this[_0x288e4f(0xad)][0x0],_0x5e366a,this[_0x288e4f(0xc1)]),'withText':!0x0,'class':_0x288e4f(0x9f),'balloonPanelClass':_0x288e4f(0xac)}),_0x130840[_0x288e4f(0xb7)](_0x288e4f(0xb3))['to'](this),_0x130840;}[_0x471f74(0xf1)](_0x170cf3){const _0x2c914a=_0x471f74,_0x5f2f66=this[_0x2c914a(0x97)];this[_0x2c914a(0xc1)]=_0x170cf3||this[_0x2c914a(0xc1)],this[_0x2c914a(0xc7)][_0x2c914a(0xb1)]({'label':Un(this[_0x2c914a(0xad)][0x0],_0x5f2f66,this[_0x2c914a(0xc1)]),'tooltip':Ln(this[_0x2c914a(0xad)][0x0],_0x5f2f66,this[_0x2c914a(0xc1)])}),this[_0x2c914a(0xcd)][_0x2c914a(0xaa)]=Un(_0x2c914a(0xdb),_0x5f2f66,this[_0x2c914a(0xc1)]),this[_0x2c914a(0xd7)][_0x2c914a(0xaa)]=Un(_0x2c914a(0xcb),_0x5f2f66,this[_0x2c914a(0xc1)]),this[_0x2c914a(0x9b)][_0x2c914a(0xaa)]=Un(_0x2c914a(0xce),_0x5f2f66,this[_0x2c914a(0xc1)]);}}class yn extends _0x496a23{[_0x471f74(0xd6)];[_0x471f74(0x9a)];[_0x471f74(0xb6)];[_0x471f74(0xc2)];constructor(_0x2636ec,_0x2cac93){const _0x146ad2=_0x471f74;super(_0x2636ec),this[_0x146ad2(0x9a)]=new _0x265226(this[_0x146ad2(0x97)]),this[_0x146ad2(0xd6)]=new _0x1eb74d(this[_0x146ad2(0x97)]),this[_0x146ad2(0xd6)][_0x146ad2(0xf2)](),this[_0x146ad2(0xb1)](_0x146ad2(0x94),''),this[_0x146ad2(0x9a)][_0x146ad2(0xb7)](_0x146ad2(0xca))['to'](this,_0x146ad2(0x94)),this[_0x146ad2(0xb6)]=this[_0x146ad2(0x9d)](_0x2cac93[_0x146ad2(0xa8)][_0x146ad2(0xba)](0x1)),this[_0x146ad2(0xd6)][_0x146ad2(0xe9)](this[_0x146ad2(0x9a)]),this[_0x146ad2(0x9a)][_0x146ad2(0xaf)][_0x146ad2(0xe9)](this[_0x146ad2(0xb6)]),this[_0x146ad2(0xee)][_0x146ad2(0xd4)](_0x146ad2(0xa1)),this[_0x146ad2(0xee)][_0x146ad2(0xb1)](_0x146ad2(0xa1),_0x27c079(this[_0x146ad2(0x97)],_0x146ad2(0xbc))),this[_0x146ad2(0xf0)](),this['on'](_0x146ad2(0xd8),()=>{const _0x420647=_0x146ad2,_0x4776f2=_0x2cac93[_0x420647(0xa8)][0x0][_0x420647(0xdd)];this[_0x420647(0xb5)](_0x4776f2),this[_0x420647(0x9a)][_0x420647(0xe1)](),this[_0x420647(0xee)][_0x420647(0xed)]();}),this['on'](_0x146ad2(0xc8),()=>{const _0x4a7fe7=_0x146ad2;this[_0x4a7fe7(0x9a)][_0x4a7fe7(0x9c)]?(this[_0x4a7fe7(0x9a)][_0x4a7fe7(0xe1)](),this[_0x4a7fe7(0xee)][_0x4a7fe7(0xed)]()):(this[_0x4a7fe7(0x9a)][_0x4a7fe7(0xa4)]({'target':this[_0x4a7fe7(0xde)],'positions':[_0x4a7fe7(0xc5)===this[_0x4a7fe7(0x97)][_0x4a7fe7(0xb4)]?Pn:Hn]}),this[_0x4a7fe7(0xb6)][_0x4a7fe7(0xed)]());}),_0x4a3f7d({'emitter':this[_0x146ad2(0x9a)],'callback':()=>{const _0x4f6df8=_0x146ad2;this[_0x4f6df8(0x9a)][_0x4f6df8(0xe1)]();},'activator':()=>this[_0x146ad2(0x9a)][_0x146ad2(0x9c)],'contextElements':()=>[this[_0x146ad2(0xde)],this[_0x146ad2(0x9a)][_0x146ad2(0xde)]]});}[_0x471f74(0x9d)](_0xa03043){const _0x238239=_0x471f74,_0x28c40d=this[_0x238239(0x97)],_0x19354c=new _0xdbbe0d(_0x28c40d);for(const _0x2dd77b of _0xa03043){const _0x826c1=new _0x27a438(_0x28c40d),_0x13945c=new _0x3ea928(_0x28c40d);_0x13945c[_0x238239(0xb7)](...Object[_0x238239(0xc9)](_0x2dd77b))['to'](_0x2dd77b),_0x13945c[_0x238239(0xc3)](_0x238239(0xd8))['to'](_0x19354c),_0x826c1[_0x238239(0xb9)][_0x238239(0xe9)](_0x13945c),_0x19354c[_0x238239(0xe0)][_0x238239(0xe9)](_0x826c1);}return _0x19354c[_0x238239(0xe0)][_0x238239(0xc3)](_0x238239(0xd8))['to'](this),_0x19354c['on'](_0x238239(0xd8),_0x3d56bb=>{const _0x2e4693=_0x238239,_0x5e2de5=_0x3d56bb[_0x2e4693(0xa5)];this[_0x2e4693(0xb5)](_0x5e2de5[_0x2e4693(0xdd)]),this[_0x2e4693(0x9a)][_0x2e4693(0xe1)](),this[_0x2e4693(0xee)][_0x2e4693(0xed)]();}),_0x19354c;}[_0x471f74(0xf0)](){const _0x2c5ca5=_0x471f74;this[_0x2c5ca5(0xc2)]=new _0x8b8402(),this[_0x2c5ca5(0xc2)][_0x2c5ca5(0xd1)](this[_0x2c5ca5(0x9a)][_0x2c5ca5(0xde)]),this[_0x2c5ca5(0xc2)][_0x2c5ca5(0xb1)](_0x2c5ca5(0xec),(_0x2594a5,_0x223a6a)=>{const _0x16f64a=_0x2c5ca5;this[_0x16f64a(0x9a)][_0x16f64a(0xe1)](),this[_0x16f64a(0xee)][_0x16f64a(0xed)](),_0x223a6a();});}[_0x471f74(0xd5)](){const _0x2a9c2c=_0x471f74;super[_0x2a9c2c(0xd5)](),this[_0x2a9c2c(0xc2)][_0x2a9c2c(0xd5)](),this[_0x2a9c2c(0x9a)][_0x2a9c2c(0xd5)](),this[_0x2a9c2c(0xd6)][_0x2a9c2c(0xe2)]();}}function Pn(_0x1f4de6){const _0x40be10=_0x471f74;return{'top':_0x1f4de6[_0x40be10(0xbb)],'left':_0x1f4de6[_0x40be10(0xa7)],'name':_0x40be10(0xb8),'config':{'withArrow':!0x1}};}function Hn(_0x5eabd4,_0x5aec1a){const _0x4700cb=_0x471f74;return{'top':_0x5eabd4[_0x4700cb(0xbb)],'left':_0x5eabd4[_0x4700cb(0xa7)]-(_0x5aec1a[_0x4700cb(0xbd)]-_0x5eabd4[_0x4700cb(0xbd)]),'name':_0x4700cb(0xb8),'config':{'withArrow':!0x1}};}function _0x2f91(_0x37463d,_0x3131f6){const _0x45f61f=_0x45f6();return _0x2f91=function(_0x2f91ab,_0x3b932f){_0x2f91ab=_0x2f91ab-0x94;let _0x2154b8=_0x45f61f[_0x2f91ab];return _0x2154b8;},_0x2f91(_0x37463d,_0x3131f6);}function Un(_0x3bdcc0,_0x28728a,_0x36d67e){const _0x1930c1=_0x471f74;switch(_0x3bdcc0){case _0x1930c1(0xdb):return _0x27c079(_0x28728a,_0x1930c1(0xd9),_0x36d67e);case _0x1930c1(0xcb):return _0x27c079(_0x28728a,_0x1930c1(0x96),_0x36d67e);case _0x1930c1(0xce):return _0x27c079(_0x28728a,_0x1930c1(0xbf),_0x36d67e);}}function Ln(_0x55e69d,_0x38d501,_0x39b2d2){const _0x320d66=_0x471f74;switch(_0x55e69d){case _0x320d66(0xdb):return _0x27c079(_0x38d501,_0x320d66(0xb2),_0x39b2d2);case _0x320d66(0xcb):return _0x27c079(_0x38d501,_0x320d66(0xea),_0x39b2d2);case _0x320d66(0xce):return _0x27c079(_0x38d501,_0x320d66(0xa9),_0x39b2d2);}}
|
|
23
|
+
const _0x430bb0=_0xc3de;function _0xc3de(_0x53665d,_0x588f28){const _0x139103=_0x1391();return _0xc3de=function(_0xc3de4b,_0x27093d){_0xc3de4b=_0xc3de4b-0x1b5;let _0x11f251=_0x139103[_0xc3de4b];return _0x11f251;},_0xc3de(_0x53665d,_0x588f28);}(function(_0xe6fea,_0x592f18){const _0xd4800f=_0xc3de,_0x41a497=_0xe6fea();while(!![]){try{const _0x1166b5=parseInt(_0xd4800f(0x204))/0x1*(-parseInt(_0xd4800f(0x1d2))/0x2)+parseInt(_0xd4800f(0x202))/0x3+parseInt(_0xd4800f(0x1ec))/0x4*(-parseInt(_0xd4800f(0x1e2))/0x5)+-parseInt(_0xd4800f(0x20f))/0x6*(parseInt(_0xd4800f(0x1df))/0x7)+-parseInt(_0xd4800f(0x1cf))/0x8+-parseInt(_0xd4800f(0x1ce))/0x9+parseInt(_0xd4800f(0x1be))/0xa;if(_0x1166b5===_0x592f18)break;else _0x41a497['push'](_0x41a497['shift']());}catch(_0x24dbdd){_0x41a497['push'](_0x41a497['shift']());}}}(_0x1391,0xb9422));import{KeystrokeHandler as _0x15137e}from'ckeditor5/src/utils.js';import{BalloonPanelView as _0x2ba922,BodyCollection as _0x38bfc1,ButtonView as _0x275776,clickOutsideHandler as _0x2e79f8,ListItemButtonView as _0x115381,ListItemView as _0x4e8cf9,ListView as _0x29ba27,SplitButtonView as _0x3ba56b,UIModel as _0x6ce7ae,View as _0x1f6f17}from'ckeditor5/src/ui.js';function _0x1391(){const _0x592dac=['button','actionName','class','delegate','detachFromDom','createCollection','27713UCfZgq','balloonPanelView','ck-ai-button-primary','150930NhdsWo','length','hide','keystrokeHandler','div','items','AI_CHAT_SUGGESTION_MORE_OPTIONS_TOOLTIP','width','AI_CHAT_SUGGESTION_ACTION_APPLY_LABEL','element','36oSXAxL','_updateDropdownActions','pin','_dropdownOriginalConfig','bodyCollection','execute','map','tooltip','content','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT_TOOLTIP','ck-ai-chat__feed__ai-suggestion__actions__balloon','set','isVisible','isEnabled','actionsButton','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION_TOOLTIP','isTrackChangesOn','ltr','locale','add','_setUpList','bottom','1841898LXokyX','balloonPanelClass','97gpqxgX','has','ck-ai-chat__feed__ai-suggestion__actions--no-animation','change:isTrackChangesOn','arrowless','insertSuggestionModel','label','listItemModels','uiLanguageDirection','arrowView','bindTemplate','1278cEhmMn','AI_CHAT_SUGGESTION_ACTION_SHOW_CHANGE_IN_TEXT','listenTo','source','_setUpKeystrokes','_firstRender','children','attachToDom','remove','_createActionsDropdown','_partsCount','listView','ck-ai-chat__feed__ai-suggestion__actions\x20','slice','focus','36239780NUFkAB','_dropdownCurrentConfig','AI_CHAT_SUGGESTION_ACTION_APPLY_TOOLTIP','ck-hidden','fire','esc','filter','applySuggestionModel','open','destroy','showChangeInText','_createActionsDropdownOrButton','ck-ai-chat__feed__ai-suggestion__actions','showChangeInTextModel','applySuggestion','unbind','8944515jgrXwy','9621096nPtptn','insertSuggestion','setTemplate','3458jKGagQ','left','updateLabels','AI_CHAT_SUGGESTION_ACTION_INSERT_SUGGESTION','bind','keys','_createActionsButton'];_0x1391=function(){return _0x592dac;};return _0x1391();}import{IconCheck as _0x3bbc49,IconAddComment as _0x5e7c10,IconDocumentWithLoupe as _0x5203c0}from'ckeditor5/src/icons.js';import{getTranslation as _0xf11d16}from'../../../aicore/utils/common-translations.js';export const ACTIONS=[_0x430bb0(0x1cc),_0x430bb0(0x1d0),_0x430bb0(0x1c8)];export class AIChatFeedSuggestionItemActionsView extends _0x1f6f17{[_0x430bb0(0x1fa)];[_0x430bb0(0x1b5)];[_0x430bb0(0x1c5)];[_0x430bb0(0x1cb)];[_0x430bb0(0x209)];[_0x430bb0(0x1b9)]=0x1;[_0x430bb0(0x1ef)];[_0x430bb0(0x1bf)];[_0x430bb0(0x214)]=!0x0;constructor(_0x220698,_0x453a57){const _0x5dd9e2=_0x430bb0;super(_0x220698),this[_0x5dd9e2(0x1ef)]=_0x453a57||[...ACTIONS],this[_0x5dd9e2(0x1bf)]=[...this[_0x5dd9e2(0x1ef)]];const _0x380eab=this[_0x5dd9e2(0x20e)];this[_0x5dd9e2(0x1f7)](_0x5dd9e2(0x1f9),!0x0),this[_0x5dd9e2(0x1f7)](_0x5dd9e2(0x1f8),!0x0),this[_0x5dd9e2(0x1c5)]=new _0x6ce7ae({'label':Pn(_0x5dd9e2(0x1cc),_0x220698,this[_0x5dd9e2(0x1b9)]),'icon':_0x3bbc49,'withText':!0x0,'type':_0x5dd9e2(0x1d9),'actionName':_0x5dd9e2(0x1cc)}),this[_0x5dd9e2(0x1cb)]=new _0x6ce7ae({'label':Pn(_0x5dd9e2(0x1c8),_0x220698,this[_0x5dd9e2(0x1b9)]),'icon':_0x5203c0,'withText':!0x0,'type':_0x5dd9e2(0x1d9),'actionName':_0x5dd9e2(0x1c8)}),this[_0x5dd9e2(0x209)]=new _0x6ce7ae({'label':Pn(_0x5dd9e2(0x1d0),_0x220698,this[_0x5dd9e2(0x1b9)]),'icon':_0x5e7c10,'withText':!0x0,'type':_0x5dd9e2(0x1d9),'actionName':_0x5dd9e2(0x1d0)}),this[_0x5dd9e2(0x1fa)]=this[_0x5dd9e2(0x1c9)](_0x220698),this[_0x5dd9e2(0x1b5)]=this[_0x5dd9e2(0x1de)]([this[_0x5dd9e2(0x1fa)]]),this[_0x5dd9e2(0x1d1)]({'tag':_0x5dd9e2(0x1e6),'attributes':{'class':['ck',_0x5dd9e2(0x1ca),_0x380eab['if'](_0x5dd9e2(0x1f8),_0x5dd9e2(0x1c1),_0x34d0b5=>!_0x34d0b5)]},'children':this[_0x5dd9e2(0x1b5)]}),this[_0x5dd9e2(0x211)](this,_0x5dd9e2(0x207),()=>{const _0x5c83f9=_0x5dd9e2;this[_0x5c83f9(0x1bf)]=this[_0x5c83f9(0x1fc)]?this[_0x5c83f9(0x1ef)][_0x5c83f9(0x1c4)](_0x218f6f=>_0x5c83f9(0x1cc)!==_0x218f6f):[...this[_0x5c83f9(0x1ef)]],this[_0x5c83f9(0x1ed)](_0x220698);});}[_0x430bb0(0x1ed)](_0x150d85){const _0x235728=_0x430bb0;this[_0x235728(0x1b5)][_0x235728(0x205)](this[_0x235728(0x1fa)])&&(this[_0x235728(0x1b5)][_0x235728(0x1b7)](this[_0x235728(0x1fa)]),this[_0x235728(0x1fa)][_0x235728(0x1c7)]()),0x0!=this[_0x235728(0x1bf)][_0x235728(0x1e3)]&&(this[_0x235728(0x1fa)]=this[_0x235728(0x1c9)](_0x150d85),this[_0x235728(0x1b5)][_0x235728(0x1ff)](this[_0x235728(0x1fa)]));}[_0x430bb0(0x1c9)](_0x2b0ef2){const _0x26d89f=_0x430bb0,_0x38a5f1=0x1===this[_0x26d89f(0x1bf)][_0x26d89f(0x1e3)]?this[_0x26d89f(0x1d8)](_0x2b0ef2):this[_0x26d89f(0x1b8)](_0x2b0ef2),_0x4232b4=this[_0x26d89f(0x214)]?'':_0x26d89f(0x206);_0x38a5f1[_0x26d89f(0x1f7)]({'label':Pn(this[_0x26d89f(0x1bf)][0x0],_0x2b0ef2,this[_0x26d89f(0x1b9)]),'tooltip':Hn(this[_0x26d89f(0x1bf)][0x0],_0x2b0ef2,this[_0x26d89f(0x1b9)]),'withText':!0x0,'class':_0x26d89f(0x1bb)+_0x4232b4});for(const _0x23d8c0 of this[_0x26d89f(0x1bf)])_0x38a5f1['on'](_0x23d8c0,()=>{const _0x31d314=_0x26d89f;this[_0x31d314(0x1c2)](_0x23d8c0);});return this[_0x26d89f(0x214)]=!0x1,_0x38a5f1;}[_0x430bb0(0x1d8)](_0x18cfb3){const _0x409103=_0x430bb0,_0x4f547c=new _0x275776(_0x18cfb3);return _0x4f547c[_0x409103(0x1f7)]({'class':_0x409103(0x1e1),'withText':!0x0}),_0x4f547c['on'](_0x409103(0x1f1),()=>{const _0x1c107b=_0x409103;_0x4f547c[_0x1c107b(0x1c2)](this[_0x1c107b(0x1bf)][0x0]);}),_0x4f547c;}[_0x430bb0(0x1b8)](_0x53e8e1){const _0x34d45d=_0x430bb0,_0x573314=new Nn(_0x53e8e1,{'listItemModels':this[_0x34d45d(0x1bf)][_0x34d45d(0x1f2)](_0x29520c=>{const _0x18c274=_0x34d45d;switch(_0x29520c){case _0x18c274(0x1cc):return this[_0x18c274(0x1c5)];case _0x18c274(0x1c8):return this[_0x18c274(0x1cb)];case _0x18c274(0x1d0):return this[_0x18c274(0x209)];}})});return _0x573314[_0x34d45d(0x1f7)]({'label':Pn(this[_0x34d45d(0x1bf)][0x0],_0x53e8e1,this[_0x34d45d(0x1b9)]),'tooltip':Hn(this[_0x34d45d(0x1bf)][0x0],_0x53e8e1,this[_0x34d45d(0x1b9)]),'withText':!0x0,'class':_0x34d45d(0x1ca),'balloonPanelClass':_0x34d45d(0x1f6)}),_0x573314[_0x34d45d(0x1d6)](_0x34d45d(0x1f9))['to'](this),_0x573314;}[_0x430bb0(0x1d4)](_0x1ec419){const _0x501ef0=_0x430bb0,_0x3d0e2f=this[_0x501ef0(0x1fe)];this[_0x501ef0(0x1b9)]=_0x1ec419||this[_0x501ef0(0x1b9)],this[_0x501ef0(0x1fa)][_0x501ef0(0x1f7)]({'label':Pn(this[_0x501ef0(0x1bf)][0x0],_0x3d0e2f,this[_0x501ef0(0x1b9)]),'tooltip':Hn(this[_0x501ef0(0x1bf)][0x0],_0x3d0e2f,this[_0x501ef0(0x1b9)])}),this[_0x501ef0(0x1c5)][_0x501ef0(0x20a)]=Pn(_0x501ef0(0x1cc),_0x3d0e2f,this[_0x501ef0(0x1b9)]),this[_0x501ef0(0x1cb)][_0x501ef0(0x20a)]=Pn(_0x501ef0(0x1c8),_0x3d0e2f,this[_0x501ef0(0x1b9)]),this[_0x501ef0(0x209)][_0x501ef0(0x20a)]=Pn(_0x501ef0(0x1d0),_0x3d0e2f,this[_0x501ef0(0x1b9)]);}}class Nn extends _0x3ba56b{[_0x430bb0(0x1f0)];[_0x430bb0(0x1e0)];[_0x430bb0(0x1ba)];[_0x430bb0(0x1e5)];constructor(_0x2b319c,_0x727150){const _0x410bfb=_0x430bb0;super(_0x2b319c),this[_0x410bfb(0x1e0)]=new _0x2ba922(this[_0x410bfb(0x1fe)]),this[_0x410bfb(0x1f0)]=new _0x38bfc1(this[_0x410bfb(0x1fe)]),this[_0x410bfb(0x1f0)][_0x410bfb(0x1b6)](),this[_0x410bfb(0x1f7)](_0x410bfb(0x203),''),this[_0x410bfb(0x1e0)][_0x410bfb(0x1d6)](_0x410bfb(0x1db))['to'](this,_0x410bfb(0x203)),this[_0x410bfb(0x1ba)]=this[_0x410bfb(0x200)](_0x727150[_0x410bfb(0x20b)][_0x410bfb(0x1bc)](0x1)),this[_0x410bfb(0x1f0)][_0x410bfb(0x1ff)](this[_0x410bfb(0x1e0)]),this[_0x410bfb(0x1e0)][_0x410bfb(0x1f4)][_0x410bfb(0x1ff)](this[_0x410bfb(0x1ba)]),this[_0x410bfb(0x20d)][_0x410bfb(0x1cd)](_0x410bfb(0x1f3)),this[_0x410bfb(0x20d)][_0x410bfb(0x1f7)](_0x410bfb(0x1f3),_0xf11d16(this[_0x410bfb(0x1fe)],_0x410bfb(0x1e8))),this[_0x410bfb(0x213)](),this['on'](_0x410bfb(0x1f1),()=>{const _0x463bd1=_0x410bfb,_0xa6ba6c=_0x727150[_0x463bd1(0x20b)][0x0][_0x463bd1(0x1da)];this[_0x463bd1(0x1c2)](_0xa6ba6c),this[_0x463bd1(0x1e0)][_0x463bd1(0x1e4)](),this[_0x463bd1(0x20d)][_0x463bd1(0x1bd)]();}),this['on'](_0x410bfb(0x1c6),()=>{const _0x398331=_0x410bfb;this[_0x398331(0x1e0)][_0x398331(0x1f8)]?(this[_0x398331(0x1e0)][_0x398331(0x1e4)](),this[_0x398331(0x20d)][_0x398331(0x1bd)]()):(this[_0x398331(0x1e0)][_0x398331(0x1ee)]({'target':this[_0x398331(0x1eb)],'positions':[_0x398331(0x1fd)===this[_0x398331(0x1fe)][_0x398331(0x20c)]?Gn:yn]}),this[_0x398331(0x1ba)][_0x398331(0x1bd)]());}),_0x2e79f8({'emitter':this[_0x410bfb(0x1e0)],'callback':()=>{const _0x5e0fb1=_0x410bfb;this[_0x5e0fb1(0x1e0)][_0x5e0fb1(0x1e4)]();},'activator':()=>this[_0x410bfb(0x1e0)][_0x410bfb(0x1f8)],'contextElements':()=>[this[_0x410bfb(0x1eb)],this[_0x410bfb(0x1e0)][_0x410bfb(0x1eb)]]});}[_0x430bb0(0x200)](_0x3ab409){const _0x5d0a53=_0x430bb0,_0x399674=this[_0x5d0a53(0x1fe)],_0x24b1dd=new _0x29ba27(_0x399674);for(const _0x5a21e4 of _0x3ab409){const _0x2a385a=new _0x4e8cf9(_0x399674),_0x30fa8d=new _0x115381(_0x399674);_0x30fa8d[_0x5d0a53(0x1d6)](...Object[_0x5d0a53(0x1d7)](_0x5a21e4))['to'](_0x5a21e4),_0x30fa8d[_0x5d0a53(0x1dc)](_0x5d0a53(0x1f1))['to'](_0x24b1dd),_0x2a385a[_0x5d0a53(0x1b5)][_0x5d0a53(0x1ff)](_0x30fa8d),_0x24b1dd[_0x5d0a53(0x1e7)][_0x5d0a53(0x1ff)](_0x2a385a);}return _0x24b1dd[_0x5d0a53(0x1e7)][_0x5d0a53(0x1dc)](_0x5d0a53(0x1f1))['to'](this),_0x24b1dd['on'](_0x5d0a53(0x1f1),_0x31ad7b=>{const _0x3d2c79=_0x5d0a53,_0x3dc832=_0x31ad7b[_0x3d2c79(0x212)];this[_0x3d2c79(0x1c2)](_0x3dc832[_0x3d2c79(0x1da)]),this[_0x3d2c79(0x1e0)][_0x3d2c79(0x1e4)](),this[_0x3d2c79(0x20d)][_0x3d2c79(0x1bd)]();}),_0x24b1dd;}[_0x430bb0(0x213)](){const _0xa61874=_0x430bb0;this[_0xa61874(0x1e5)]=new _0x15137e(),this[_0xa61874(0x1e5)][_0xa61874(0x211)](this[_0xa61874(0x1e0)][_0xa61874(0x1eb)]),this[_0xa61874(0x1e5)][_0xa61874(0x1f7)](_0xa61874(0x1c3),(_0x2a8c3c,_0x134f1b)=>{const _0xdbc14a=_0xa61874;this[_0xdbc14a(0x1e0)][_0xdbc14a(0x1e4)](),this[_0xdbc14a(0x20d)][_0xdbc14a(0x1bd)](),_0x134f1b();});}[_0x430bb0(0x1c7)](){const _0x2b5efc=_0x430bb0;super[_0x2b5efc(0x1c7)](),this[_0x2b5efc(0x1e5)][_0x2b5efc(0x1c7)](),this[_0x2b5efc(0x1e0)][_0x2b5efc(0x1c7)](),this[_0x2b5efc(0x1f0)][_0x2b5efc(0x1dd)]();}}function Gn(_0x1891e7){const _0x586070=_0x430bb0;return{'top':_0x1891e7[_0x586070(0x201)],'left':_0x1891e7[_0x586070(0x1d3)],'name':_0x586070(0x208),'config':{'withArrow':!0x1}};}function yn(_0x5dcfd9,_0x2fed5c){const _0x452028=_0x430bb0;return{'top':_0x5dcfd9[_0x452028(0x201)],'left':_0x5dcfd9[_0x452028(0x1d3)]-(_0x2fed5c[_0x452028(0x1e9)]-_0x5dcfd9[_0x452028(0x1e9)]),'name':_0x452028(0x208),'config':{'withArrow':!0x1}};}function Pn(_0x6e0659,_0x3e777f,_0x22e125){const _0x1d291f=_0x430bb0;switch(_0x6e0659){case _0x1d291f(0x1cc):return _0xf11d16(_0x3e777f,_0x1d291f(0x1ea),_0x22e125);case _0x1d291f(0x1c8):return _0xf11d16(_0x3e777f,_0x1d291f(0x210),_0x22e125);case _0x1d291f(0x1d0):return _0xf11d16(_0x3e777f,_0x1d291f(0x1d5),_0x22e125);}}function Hn(_0x49bdfc,_0x2912a2,_0x762eea){const _0x44a05a=_0x430bb0;switch(_0x49bdfc){case _0x44a05a(0x1cc):return _0xf11d16(_0x2912a2,_0x44a05a(0x1c0),_0x762eea);case _0x44a05a(0x1c8):return _0xf11d16(_0x2912a2,_0x44a05a(0x1f5),_0x762eea);case _0x44a05a(0x1d0):return _0xf11d16(_0x2912a2,_0x44a05a(0x1fb),_0x762eea);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
var _0x597bfb=_0x6b67;(function(_0x5002af,_0xfc9757){var _0x3a9288=_0x6b67,_0x54cd93=_0x5002af();while(!![]){try{var _0x42ee9a=parseInt(_0x3a9288(0x200))/0x1+-parseInt(_0x3a9288(0x1e6))/0x2*(parseInt(_0x3a9288(0x1f9))/0x3)+parseInt(_0x3a9288(0x1fe))/0x4*(parseInt(_0x3a9288(0x1e9))/0x5)+-parseInt(_0x3a9288(0x20a))/0x6+-parseInt(_0x3a9288(0x202))/0x7*(parseInt(_0x3a9288(0x203))/0x8)+parseInt(_0x3a9288(0x208))/0x9+parseInt(_0x3a9288(0x206))/0xa*(parseInt(_0x3a9288(0x20c))/0xb);if(_0x42ee9a===_0xfc9757)break;else _0x54cd93['push'](_0x54cd93['shift']());}catch(_0x51c215){_0x54cd93['push'](_0x54cd93['shift']());}}}(_0x1722,0x47668));import{AIChatFeedItemView as _0x46655e}from'./aichatfeeditemview.js';function _0x1722(){var _0x2afce6=['actionsView','320388PcYIDz','bodyView','rejectSuggestion','isVisible','mouseLeaveSuggestion','2520iILqgL','toggleSuggestionDisplayMode','201336qKgeiZ','updateLabels','679ZcmNid','12656xWytDO','containerView','options','413890TsksaU','applySuggestion','4934934sueCpP','insertSuggestion','722142bHLLeM','ck-ai-chat__feed__ai-suggestion','55edcVaf','markAsDone','hasPendingParts','mouseOverSuggestion','getPartView','isTrackChangesOn','addMany','10RPBRBj','updatePartState','areActionsDisabled','1140zUBreS','dislike','bind','partsCount','dropdownConfig','fire','isEnabled','updateSources','like','showDiff','updateContent','showChangeInText','extendTemplate','children','hasNonEmptyParts'];_0x1722=function(){return _0x2afce6;};return _0x1722();}function _0x6b67(_0x49606a,_0x164241){var _0x172206=_0x1722();return _0x6b67=function(_0x6b6758,_0x449d04){_0x6b6758=_0x6b6758-0x1e4;var _0x1972fe=_0x172206[_0x6b6758];return _0x1972fe;},_0x6b67(_0x49606a,_0x164241);}import{AISuggestionContainerView as _0x430dd4}from'../../../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIChatFeedSuggestionItemActionsView as _0x32dccc}from'./aichatfeedsuggestionitemactionsview.js';export class AIChatFeedSuggestionItemView extends _0x46655e{[_0x597bfb(0x204)];[_0x597bfb(0x1f8)];constructor(_0x53fade,_0x16f6a3){var _0x437470=_0x597bfb;super(_0x16f6a3),this[_0x437470(0x204)]=new _0x430dd4(_0x53fade,{'showDiff':_0x16f6a3[_0x437470(0x1f2)],'areActionsDisabled':_0x16f6a3[_0x437470(0x1e8)]}),this[_0x437470(0x204)]['on'](_0x437470(0x1ff),(_0x267ec9,_0x187853)=>{var _0x133156=_0x437470;this[_0x133156(0x1ee)](_0x133156(0x1ff),{'replyId':this[_0x133156(0x205)]['id'],'showDiff':_0x187853[_0x133156(0x1f2)]});}),this[_0x437470(0x204)]['on'](_0x437470(0x1f1),()=>{var _0x60148c=_0x437470;this[_0x60148c(0x1ee)](_0x60148c(0x1f1),{'replyId':this[_0x60148c(0x205)]['id']});}),this[_0x437470(0x204)]['on'](_0x437470(0x1ea),()=>{var _0x324693=_0x437470;this[_0x324693(0x1ee)](_0x324693(0x1ea),{'replyId':this[_0x324693(0x205)]['id']});}),this[_0x437470(0x204)]['on'](_0x437470(0x1f4),(_0x9cf23f,{index:_0x2a4f0e})=>{var _0x57f0e3=_0x437470;this[_0x57f0e3(0x1ee)](_0x57f0e3(0x1f4),{'replyId':this[_0x57f0e3(0x205)]['id'],'partIndex':_0x2a4f0e});}),this[_0x437470(0x204)]['on'](_0x437470(0x209),(_0x50fcb0,{index:_0x5dd328})=>{var _0x493076=_0x437470;this[_0x493076(0x1ee)](_0x493076(0x209),{'replyId':this[_0x493076(0x205)]['id'],'partIndex':_0x5dd328});}),this[_0x437470(0x204)]['on'](_0x437470(0x1fb),(_0xc8cfaf,{index:_0x248920})=>{var _0x44ca6e=_0x437470;this[_0x44ca6e(0x1ee)](_0x44ca6e(0x1fb),{'replyId':this[_0x44ca6e(0x205)]['id'],'partIndex':_0x248920});}),this[_0x437470(0x204)]['on'](_0x437470(0x20f),(_0x1fea09,{index:_0x4916e4})=>{var _0x43cdc9=_0x437470;this[_0x43cdc9(0x1ee)](_0x43cdc9(0x20f),{'replyId':this[_0x43cdc9(0x205)]['id'],'partIndex':_0x4916e4});}),this[_0x437470(0x204)]['on'](_0x437470(0x1fd),(_0x5e8078,{index:_0xb82bde})=>{var _0x2829d7=_0x437470;this[_0x2829d7(0x1ee)](_0x2829d7(0x1fd),{'replyId':this[_0x2829d7(0x205)]['id'],'partIndex':_0xb82bde});}),this[_0x437470(0x1f8)]=new _0x32dccc(_0x53fade,this[_0x437470(0x205)][_0x437470(0x1ed)]),this[_0x437470(0x1f8)][_0x437470(0x1eb)](_0x437470(0x1e4))['to'](this,_0x437470(0x1e4)),this[_0x437470(0x1f8)]['on'](_0x437470(0x1f4),()=>{var _0x2231df=_0x437470;this[_0x2231df(0x1ee)](_0x2231df(0x1f4),{'replyId':this[_0x2231df(0x205)]['id']});}),this[_0x437470(0x1f8)]['on'](_0x437470(0x209),()=>{var _0x3572ff=_0x437470;this[_0x3572ff(0x1ee)](_0x3572ff(0x209),{'replyId':this[_0x3572ff(0x205)]['id']});}),this[_0x437470(0x1f8)]['on'](_0x437470(0x207),()=>{var _0x9e80ae=_0x437470;this[_0x9e80ae(0x1ee)](_0x9e80ae(0x207),{'replyId':this[_0x9e80ae(0x205)]['id']});}),_0x16f6a3[_0x437470(0x1e8)]?this[_0x437470(0x1f8)][_0x437470(0x1ef)]=!0x1:this[_0x437470(0x1f8)][_0x437470(0x1eb)](_0x437470(0x1ef))['to'](this[_0x437470(0x204)][_0x437470(0x1fa)],_0x437470(0x20e)),this[_0x437470(0x1f6)][_0x437470(0x1e5)]([this[_0x437470(0x204)],this[_0x437470(0x1f8)]]),this[_0x437470(0x1f5)]({'attributes':{'class':[_0x437470(0x20b)]}});}async[_0x597bfb(0x1f3)](_0x195e7e){var _0x90a555=_0x597bfb;await this[_0x90a555(0x204)][_0x90a555(0x1f3)](_0x195e7e),this[_0x90a555(0x1f8)][_0x90a555(0x201)](this[_0x90a555(0x204)][_0x90a555(0x1fa)][_0x90a555(0x1ec)]);}[_0x597bfb(0x1e7)](_0x345125,_0x125a04){var _0x53beec=_0x597bfb;this[_0x53beec(0x204)][_0x53beec(0x1fa)][_0x53beec(0x1e7)](_0x345125,_0x125a04);}[_0x597bfb(0x1f0)](_0x31cc04){var _0x5347cc=_0x597bfb;this[_0x5347cc(0x204)][_0x5347cc(0x1f0)](_0x31cc04);}[_0x597bfb(0x210)](_0xd32425){var _0x3d8e8e=_0x597bfb;return this[_0x3d8e8e(0x204)][_0x3d8e8e(0x1fa)][_0x3d8e8e(0x210)](_0xd32425);}[_0x597bfb(0x20d)](){var _0x21c4e7=_0x597bfb;super[_0x21c4e7(0x20d)](),this[_0x21c4e7(0x204)][_0x21c4e7(0x20d)](),this[_0x21c4e7(0x1f8)][_0x21c4e7(0x1fc)]=this[_0x21c4e7(0x204)][_0x21c4e7(0x1fa)][_0x21c4e7(0x1f7)];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
function _0x2a8f(){var _0xabd4d0=['filter','_locale','render','markAsDone','_bodyCollection','element','options','ck-ai-chat__feed__context-chips','25836OlnyLj','initialContent','_messageContentView','717384ucpjjR','790FUOmYc','div','length','innerHTML','ck-ai-chat__feed__message-content','add','_contextChipsView','3147Doncer','children','contextItems','128777dAmQoR','2793489vEgUfp','_createContextChipsView','6935697srVOxw','24AnAgqo','ck-ai-chat__feed__user-message','hidden','extendTemplate','90yZXhmq','_createMessageContentView','1793561LlnJYg','698kJVUGv','setTemplate'];_0x2a8f=function(){return _0xabd4d0;};return _0x2a8f();}function _0x57fa(_0x87f64d,_0x4f8187){var _0x2a8fe=_0x2a8f();return _0x57fa=function(_0x57fa8b,_0x588c3e){_0x57fa8b=_0x57fa8b-0x158;var _0x3b22e9=_0x2a8fe[_0x57fa8b];return _0x3b22e9;},_0x57fa(_0x87f64d,_0x4f8187);}var _0x203a73=_0x57fa;(function(_0xae41ee,_0x3df9a2){var _0x9b7395=_0x57fa,_0x36e6fd=_0xae41ee();while(!![]){try{var _0x4c5c97=parseInt(_0x9b7395(0x167))/0x1*(-parseInt(_0x9b7395(0x175))/0x2)+parseInt(_0x9b7395(0x16b))/0x3+-parseInt(_0x9b7395(0x15f))/0x4+-parseInt(_0x9b7395(0x172))/0x5*(-parseInt(_0x9b7395(0x15c))/0x6)+parseInt(_0x9b7395(0x174))/0x7*(-parseInt(_0x9b7395(0x16e))/0x8)+parseInt(_0x9b7395(0x16d))/0x9+-parseInt(_0x9b7395(0x160))/0xa*(-parseInt(_0x9b7395(0x16a))/0xb);if(_0x4c5c97===_0x3df9a2)break;else _0x36e6fd['push'](_0x36e6fd['shift']());}catch(_0x24f888){_0x36e6fd['push'](_0x36e6fd['shift']());}}}(_0x2a8f,0xa09af));import{AIChatFeedItemView as _0x37be33}from'./aichatfeeditemview.js';import{AIChatFeedContextChipsView as _0x2874a4}from'./aichatfeedcontextchipsview.js';import{View as _0x7249d2}from'ckeditor5/src/ui.js';export class AIChatFeedUserMessageItemView extends _0x37be33{[_0x203a73(0x166)]=null;[_0x203a73(0x178)];[_0x203a73(0x158)];[_0x203a73(0x15e)];constructor(_0x3c05f5,_0x430fde,_0x43ead6){var _0x15565f=_0x203a73;super(_0x430fde),this[_0x15565f(0x178)]=_0x3c05f5,this[_0x15565f(0x158)]=_0x43ead6,this[_0x15565f(0x16c)](),this[_0x15565f(0x173)](),this[_0x15565f(0x171)]({'attributes':{'class':[_0x15565f(0x16f)]}});}[_0x203a73(0x16c)](){var _0x3b08c6=_0x203a73;this[_0x3b08c6(0x15a)][_0x3b08c6(0x169)]&&this[_0x3b08c6(0x15a)][_0x3b08c6(0x169)][_0x3b08c6(0x162)]>0x0&&(this[_0x3b08c6(0x166)]=new _0x2874a4(this[_0x3b08c6(0x178)],this[_0x3b08c6(0x15a)][_0x3b08c6(0x169)][_0x3b08c6(0x177)](_0x205d08=>!_0x205d08[_0x3b08c6(0x170)]),this[_0x3b08c6(0x158)]),this[_0x3b08c6(0x166)][_0x3b08c6(0x171)]({'attributes':{'class':_0x3b08c6(0x15b)}}),this[_0x3b08c6(0x168)][_0x3b08c6(0x165)](this[_0x3b08c6(0x166)]));}[_0x203a73(0x173)](){var _0x5aa700=_0x203a73;this[_0x5aa700(0x15e)]=new _0x7249d2(this[_0x5aa700(0x178)]),this[_0x5aa700(0x15e)][_0x5aa700(0x176)]({'tag':_0x5aa700(0x161),'attributes':{'class':_0x5aa700(0x164)}}),this[_0x5aa700(0x168)][_0x5aa700(0x165)](this[_0x5aa700(0x15e)]);}[_0x203a73(0x179)](){var _0x312e5f=_0x203a73;super[_0x312e5f(0x179)](),this[_0x312e5f(0x15e)][_0x312e5f(0x159)][_0x312e5f(0x163)]=this[_0x312e5f(0x15a)][_0x312e5f(0x15d)],this[_0x312e5f(0x17a)]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x194556=_0x45d5;(function(_0x524e13,_0x57ae8e){const _0x47af18=_0x45d5,_0x1cff80=_0x524e13();while(!![]){try{const _0x54ac3d=-parseInt(_0x47af18(0x168))/0x1+-parseInt(_0x47af18(0x175))/0x2*(-parseInt(_0x47af18(0x169))/0x3)+parseInt(_0x47af18(0x16b))/0x4*(parseInt(_0x47af18(0x16a))/0x5)+parseInt(_0x47af18(0x172))/0x6+parseInt(_0x47af18(0x17b))/0x7+-parseInt(_0x47af18(0x17a))/0x8+-parseInt(_0x47af18(0x17c))/0x9;if(_0x54ac3d===_0x57ae8e)break;else _0x1cff80['push'](_0x1cff80['shift']());}catch(_0x39ef23){_0x1cff80['push'](_0x1cff80['shift']());}}}(_0x73c2,0x34e12));import{AI_SUGGESTION_UI_EVENT_NAMES as _0x221fa9}from'../../aicore/utils/eventnames.js';function _0x45d5(_0x200cb6,_0x51cd66){const _0x73c28f=_0x73c2();return _0x45d5=function(_0x45d561,_0x9e220a){_0x45d561=_0x45d561-0x168;let _0x398e48=_0x73c28f[_0x45d561];return _0x398e48;},_0x45d5(_0x200cb6,_0x51cd66);}function _0x73c2(){const _0xfb3fca=['26ySvuNA','toggleWebSearch','addDocumentToContext','selectModel','sendUserMessage','3185168LobkRv','2604826AkFiek','720837SqawZb','loadSourceResources','104156dkAfCV','5277OgqwyA','10kIUFgx','713840vAfoAu','resizeTabs','addUrlToContext','removeContextItem','addFileToContext','addResourceToContext','toggleReasoning','282504ONEpwA','abortPromptStream','startConversation'];_0x73c2=function(){return _0xfb3fca;};return _0x73c2();}export const AI_CHAT_UI_EVENT_NAMES=[..._0x221fa9,_0x194556(0x174),_0x194556(0x16c),_0x194556(0x179),_0x194556(0x173),_0x194556(0x177),_0x194556(0x16f),_0x194556(0x16d),_0x194556(0x170),_0x194556(0x16e),_0x194556(0x17d),_0x194556(0x176),_0x194556(0x171),_0x194556(0x178)];
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3620f0=_0x2f8e;(function(_0x47aad3,_0x4c4427){const _0x3b0a2d=_0x2f8e,_0x2dc22d=_0x47aad3();while(!![]){try{const _0xbc206=-parseInt(_0x3b0a2d(0x159))/0x1+-parseInt(_0x3b0a2d(0x157))/0x2+-parseInt(_0x3b0a2d(0x160))/0x3+parseInt(_0x3b0a2d(0x15a))/0x4*(-parseInt(_0x3b0a2d(0x161))/0x5)+-parseInt(_0x3b0a2d(0x15e))/0x6+parseInt(_0x3b0a2d(0x167))/0x7*(-parseInt(_0x3b0a2d(0x16e))/0x8)+-parseInt(_0x3b0a2d(0x15c))/0x9*(-parseInt(_0x3b0a2d(0x16b))/0xa);if(_0xbc206===_0x4c4427)break;else _0x2dc22d['push'](_0x2dc22d['shift']());}catch(_0x208d1d){_0x2dc22d['push'](_0x2dc22d['shift']());}}}(_0xff51,0x81584));import{EmitterMixin as _0x318a68}from'ckeditor5/src/utils.js';export class PromiseQueue extends _0x318a68(){[_0x3620f0(0x15d)]=[];[_0x3620f0(0x158)]=!0x1;[_0x3620f0(0x170)];async[_0x3620f0(0x163)](_0x47802c){const _0x552fde=_0x3620f0,_0x351aa3=this[_0x552fde(0x168)](_0x47802c);return this[_0x552fde(0x15d)][_0x552fde(0x165)](_0x351aa3),this[_0x552fde(0x156)](),_0x351aa3[_0x552fde(0x166)];}[_0x3620f0(0x16a)](){const _0x1760fd=_0x3620f0;this[_0x1760fd(0x158)]&&(this[_0x1760fd(0x170)][_0x1760fd(0x16a)](),this[_0x1760fd(0x170)]=void 0x0,this[_0x1760fd(0x15d)]=[],this[_0x1760fd(0x15b)](_0x1760fd(0x15f)),this[_0x1760fd(0x158)]=!0x1);}get[_0x3620f0(0x16d)](){const _0x5907d7=_0x3620f0;return this[_0x5907d7(0x15d)][_0x5907d7(0x164)]||this[_0x5907d7(0x158)]?new Promise(_0xfe1c72=>{const _0x320b62=_0x5907d7;this[_0x320b62(0x171)](_0x320b62(0x15f),()=>{_0xfe1c72();});}):Promise[_0x5907d7(0x155)]();}async[_0x3620f0(0x156)](){const _0x356f52=_0x3620f0;if(!this[_0x356f52(0x158)]){this[_0x356f52(0x170)]=new AbortController(),this[_0x356f52(0x158)]=!0x0;try{for(;this[_0x356f52(0x15d)][_0x356f52(0x164)]&&this[_0x356f52(0x158)];){const _0x1f67e1=this[_0x356f52(0x15d)][_0x356f52(0x169)]();try{await _0x1f67e1[_0x356f52(0x16c)](this[_0x356f52(0x170)][_0x356f52(0x162)]),_0x1f67e1[_0x356f52(0x155)]();}catch(_0x49571d){_0x1f67e1[_0x356f52(0x16f)](_0x49571d);}}}finally{this[_0x356f52(0x158)]=!0x1,this[_0x356f52(0x170)]=void 0x0;}this[_0x356f52(0x15b)](_0x356f52(0x15f));}}[_0x3620f0(0x168)](_0x5c1cf1){let _0x46382e,_0x52442f;const _0x456a5a=new Promise((_0x2a0be5,_0x275557)=>{_0x46382e=_0x2a0be5,_0x52442f=_0x275557;});return{'callback':_0x5c1cf1,'resolve':_0x46382e,'reject':_0x52442f,'completePromise':_0x456a5a};}}function _0x2f8e(_0x352f9f,_0x217547){const _0xff519a=_0xff51();return _0x2f8e=function(_0x2f8e3a,_0x448684){_0x2f8e3a=_0x2f8e3a-0x155;let _0x520d14=_0xff519a[_0x2f8e3a];return _0x520d14;},_0x2f8e(_0x352f9f,_0x217547);}function _0xff51(){const _0x330054=['_queueEmpty','2039448SpKrYh','4899745VhuQqL','signal','enqueue','length','push','completePromise','14FoaDWH','createTask','shift','abort','87240pMmCTV','callback','queueEmptyPromise','3210656OGwkTC','reject','_abortController','once','resolve','_processQueue','1488026BjidPA','isProcessing','779942flfwsk','4SkwJGJ','fire','4959NOxTzg','queue','1744464ppyrro'];_0xff51=function(){return _0x330054;};return _0xff51();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1bf503=_0x121d;function _0x121d(_0x46c248,_0x306d24){const _0x5b7cbb=_0x5b7c();return _0x121d=function(_0x121d6d,_0x3c02da){_0x121d6d=_0x121d6d-0x1f1;let _0x2a5a1c=_0x5b7cbb[_0x121d6d];return _0x2a5a1c;},_0x121d(_0x46c248,_0x306d24);}(function(_0x4753e3,_0xbad72e){const _0x21dbc5=_0x121d,_0x247daa=_0x4753e3();while(!![]){try{const _0x1393ae=-parseInt(_0x21dbc5(0x21c))/0x1*(-parseInt(_0x21dbc5(0x1f1))/0x2)+-parseInt(_0x21dbc5(0x20f))/0x3+parseInt(_0x21dbc5(0x209))/0x4+parseInt(_0x21dbc5(0x205))/0x5*(-parseInt(_0x21dbc5(0x1fc))/0x6)+-parseInt(_0x21dbc5(0x20b))/0x7*(parseInt(_0x21dbc5(0x215))/0x8)+-parseInt(_0x21dbc5(0x206))/0x9+-parseInt(_0x21dbc5(0x218))/0xa*(-parseInt(_0x21dbc5(0x1f4))/0xb);if(_0x1393ae===_0xbad72e)break;else _0x247daa['push'](_0x247daa['shift']());}catch(_0x486d95){_0x247daa['push'](_0x247daa['shift']());}}}(_0x5b7c,0x8d268));const ws=[_0x1bf503(0x219),_0x1bf503(0x207),_0x1bf503(0x20d),_0x1bf503(0x202)],fs=[_0x1bf503(0x210),_0x1bf503(0x1fd),_0x1bf503(0x1f3),_0x1bf503(0x213),_0x1bf503(0x211),_0x1bf503(0x1f9),'\x20'];function _0x5b7c(){const _0x112483=['keydown','scrollHeight','addEventListener','71110BQYuLo','5313276gNFOyb','touchstart','isRunning','4496644JcqaJx','includes','1421dnTcNV','_isAtBottom','pointerdown','auto','2111463PhphBl','ArrowUp','Home','bind','PageDown','destroy','12808QUwRjA','isUserPaused','signal','654560vREvUG','wheel','scrollTo','start','385ZMOwLG','2690XibYlZ','stop','PageUp','220uscNTy','_stop','key','abort','animationFrameId','End','_onUserEvent','deltaY','318RgNVnj','ArrowDown','element','abortController','type','_rafUpdate'];_0x5b7c=function(){return _0x112483;};return _0x5b7c();}export class ScrollManager{[_0x1bf503(0x1fe)];[_0x1bf503(0x1f8)];[_0x1bf503(0x208)];[_0x1bf503(0x1ff)];[_0x1bf503(0x216)];constructor(_0x3c8105){const _0x38f893=_0x1bf503;this[_0x38f893(0x1fe)]=_0x3c8105,this[_0x38f893(0x1f8)]=null,this[_0x38f893(0x208)]=!0x1,this[_0x38f893(0x1ff)]=new AbortController(),this[_0x38f893(0x216)]=!0x1;for(const _0x16a63e of ws){const _0x2765e8=_0x38f893(0x202)!==_0x16a63e;this[_0x38f893(0x1fe)][_0x38f893(0x204)](_0x16a63e,this[_0x38f893(0x1fa)][_0x38f893(0x212)](this),{'passive':_0x2765e8,'signal':this[_0x38f893(0x1ff)][_0x38f893(0x217)]});}}[_0x1bf503(0x21b)](){const _0x543f96=_0x1bf503;this[_0x543f96(0x208)]||(this[_0x543f96(0x208)]=!0x0,this[_0x543f96(0x216)]=!0x1,this[_0x543f96(0x1f8)]=requestAnimationFrame(this[_0x543f96(0x201)][_0x543f96(0x212)](this)));}[_0x1bf503(0x1f2)](){requestAnimationFrame(()=>{const _0x38385f=_0x121d;this[_0x38385f(0x1f5)]();});}[_0x1bf503(0x214)](){const _0x43329d=_0x1bf503;this[_0x43329d(0x1f5)](),this[_0x43329d(0x1ff)][_0x43329d(0x1f7)]();}[_0x1bf503(0x1f5)](){const _0x312b05=_0x1bf503;null!==this[_0x312b05(0x1f8)]&&(cancelAnimationFrame(this[_0x312b05(0x1f8)]),this[_0x312b05(0x1f8)]=null),this[_0x312b05(0x208)]&&(this[_0x312b05(0x208)]=!0x1),this[_0x312b05(0x216)]=!0x1;}[_0x1bf503(0x1fa)](_0x15a92c){const _0x5d1ed5=_0x1bf503;if(this[_0x5d1ed5(0x208)]){if(_0x5d1ed5(0x202)===_0x15a92c[_0x5d1ed5(0x200)]){const _0x1aea9d=_0x15a92c[_0x5d1ed5(0x1f6)];if(!fs[_0x5d1ed5(0x20a)](_0x1aea9d))return;}_0x15a92c instanceof WheelEvent?_0x15a92c[_0x5d1ed5(0x1fb)]<0x0?this[_0x5d1ed5(0x216)]=!0x0:this[_0x5d1ed5(0x216)]=!this[_0x5d1ed5(0x20c)]():this[_0x5d1ed5(0x216)]=!0x0;}}[_0x1bf503(0x20c)](){const _0x5ef630=_0x1bf503,{scrollTop:_0x3167c4,scrollHeight:_0x155439,clientHeight:_0x9666be}=this[_0x5ef630(0x1fe)];return _0x155439-_0x3167c4-_0x9666be<=0x5;}[_0x1bf503(0x201)](){const _0xcdb3d6=_0x1bf503;this[_0xcdb3d6(0x208)]&&(this[_0xcdb3d6(0x216)]||this[_0xcdb3d6(0x1fe)][_0xcdb3d6(0x21a)]({'top':this[_0xcdb3d6(0x1fe)][_0xcdb3d6(0x203)],'behavior':_0xcdb3d6(0x20e)}),this[_0xcdb3d6(0x1f8)]=requestAnimationFrame(this[_0xcdb3d6(0x201)][_0xcdb3d6(0x212)](this)));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x32dfb6=_0x6f07;(function(_0x56613b,_0x40b335){var _0x91c508=_0x6f07,_0x2011da=_0x56613b();while(!![]){try{var _0x403dc5=parseInt(_0x91c508(0x153))/0x1+-parseInt(_0x91c508(0x149))/0x2*(-parseInt(_0x91c508(0x14a))/0x3)+parseInt(_0x91c508(0x14e))/0x4*(-parseInt(_0x91c508(0x148))/0x5)+parseInt(_0x91c508(0x14f))/0x6*(parseInt(_0x91c508(0x157))/0x7)+-parseInt(_0x91c508(0x156))/0x8*(-parseInt(_0x91c508(0x152))/0x9)+-parseInt(_0x91c508(0x155))/0xa*(-parseInt(_0x91c508(0x14c))/0xb)+-parseInt(_0x91c508(0x147))/0xc*(parseInt(_0x91c508(0x158))/0xd);if(_0x403dc5===_0x40b335)break;else _0x2011da['push'](_0x2011da['shift']());}catch(_0x1e540a){_0x2011da['push'](_0x2011da['shift']());}}}(_0x1800,0xb9abb));function _0x6f07(_0x289ead,_0x257d6c){var _0x1800c9=_0x1800();return _0x6f07=function(_0x6f07f0,_0x5c062d){_0x6f07f0=_0x6f07f0-0x147;var _0x13f195=_0x1800c9[_0x6f07f0];return _0x13f195;},_0x6f07(_0x289ead,_0x257d6c);}import{ContextPlugin as _0x5101c8}from'ckeditor5/src/core.js';import{AIChatHistoryController as _0x6677f3}from'./aichathistorycontroller.js';function _0x1800(){var _0x11c392=['1147452gRbAYJ','isOfficialPlugin','898172vUFDWL','AIChatHistory','40mssIVb','42dYoMlW','pluginName','isPremiumPlugin','10544211phJvFy','700794hJYQRh','requires','70DrJEyj','8oTZQGf','1230271bzsJGd','455YWvCYh','882876yIAdyQ','360565bjGtMX','2fAcgfQ'];_0x1800=function(){return _0x11c392;};return _0x1800();}import{AIChatHistoryUI as _0x2d4d14}from'./aichathistoryui.js';export{AIChatHistoryItem}from'./model/aichathistoryitem.js';export class AIChatHistory extends _0x5101c8{static get[_0x32dfb6(0x154)](){return[_0x6677f3,_0x2d4d14];}static get[_0x32dfb6(0x150)](){var _0x3ce9c1=_0x32dfb6;return _0x3ce9c1(0x14d);}static get[_0x32dfb6(0x14b)](){return!0x0;}static get[_0x32dfb6(0x151)](){return!0x0;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1dcb41=_0x77e5;(function(_0x28ef01,_0x4d5c8a){const _0x1a4e48=_0x77e5,_0x2fbd4a=_0x28ef01();while(!![]){try{const _0x337e6e=-parseInt(_0x1a4e48(0x9d))/0x1+-parseInt(_0x1a4e48(0xc5))/0x2+-parseInt(_0x1a4e48(0x9c))/0x3*(-parseInt(_0x1a4e48(0xab))/0x4)+parseInt(_0x1a4e48(0xa9))/0x5*(parseInt(_0x1a4e48(0x9a))/0x6)+-parseInt(_0x1a4e48(0xbe))/0x7+parseInt(_0x1a4e48(0xb4))/0x8*(-parseInt(_0x1a4e48(0x9f))/0x9)+parseInt(_0x1a4e48(0xae))/0xa;if(_0x337e6e===_0x4d5c8a)break;else _0x2fbd4a['push'](_0x2fbd4a['shift']());}catch(_0x11c7ce){_0x2fbd4a['push'](_0x2fbd4a['shift']());}}}(_0x3bde,0x6c384));import{ContextPlugin as _0x1e5935}from'ckeditor5/src/core.js';import{AIConnector as _0x4f6d4c}from'../aicore/aiconnector.js';import{AIChatController as _0xda986e}from'../aichat/aichatcontroller.js';import{AITabs as _0x506d86}from'../aitabs/aitabs.js';function _0x77e5(_0x43838f,_0x2ceb6b){const _0x3bde61=_0x3bde();return _0x77e5=function(_0x77e500,_0x46d6f9){_0x77e500=_0x77e500-0x64;let _0x54950e=_0x3bde61[_0x77e500];return _0x54950e;},_0x77e5(_0x43838f,_0x2ceb6b);}import{AIChatHistoryUI as _0x596bd3}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x560d00}from'./model/aichathistoryconversations.js';import{getTranslation as _0x4de554}from'../aicore/utils/common-translations.js';function _0x3bde(){const _0x35c72b=['_handleTogglePin','toLocaleDateString','getItems','context','unpin','8DMppeG','getItem','handleRemovedConversation','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','get','AI_CHAT_HISTORY_CATEGORY_LATER','init','itemId','removeItem','showError','5752817mmkLpN','pin','title','itemsLoaded','items','updateItemTitle','change:activeConversation','791976PuubWa','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','_setIsMaximized','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','openChat','getMonth','updateItemPinned','setDate','_setItemLoading','_generateErrorMessage','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','remove','AI_CHAT_HISTORY_CATEGORY_PINNED','loadConversation','_aiConnector','activateTab:history','push','requires','chat','length','AI_CHAT_UNTITLED_CONVERSATION','activateTab','isPremiumPlugin','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','locale','setIsMaximized','resize','createdAt','removeConversation','getFullYear','_handleSelectConversation','itemRemoved','updateItems','pinned','rename','itemUpdated','pluginName','_showConversationHistory','view','_aiChatController','getDate','updates','setLoadingSkeleton','loadItems','operation','AI_CHAT_HISTORY_ERROR_GENERIC','map','_getCategorizedItems','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','selectConversation','listenTo','AIChatHistoryController','_aiChatHistoryUi','editConversationTitle','_updateHistoryItemsUI','history','plugins','removeHistoryItem','resizedTabs','6bbsCFP','activeConversation','226080sdgXrI','445917FouWEq','_handleRemove','4426479QMjOev','isOfficialPlugin','AI_CHAT_HISTORY_PIN_ACTION','resizeTabs','_handleHistoryErrorUI','AI_CHAT_HISTORY_UNPIN_ACTION','setConversationPinned','getGroupId','AI_CHAT_HISTORY_CATEGORY_TODAY','updateItemLoadingState','3648860xhFkBn','_clearItemLoading','36sXkZBr','_handleEditTitle','error','11908230ZXMsWT'];_0x3bde=function(){return _0x35c72b;};return _0x3bde();}export class AIChatHistoryController extends _0x1e5935{[_0x1dcb41(0x6d)];[_0x1dcb41(0x93)];[_0x1dcb41(0x86)];static get[_0x1dcb41(0x70)](){return[_0x4f6d4c,_0xda986e,_0x596bd3,_0x506d86];}static get[_0x1dcb41(0x83)](){const _0x31999e=_0x1dcb41;return _0x31999e(0x92);}static get[_0x1dcb41(0xa0)](){return!0x0;}static get[_0x1dcb41(0x75)](){return!0x0;}[_0x1dcb41(0xba)](){const _0x255065=_0x1dcb41;this[_0x255065(0x6d)]=this[_0x255065(0xb2)][_0x255065(0x97)][_0x255065(0xb8)](_0x4f6d4c),this[_0x255065(0x93)]=this[_0x255065(0xb2)][_0x255065(0x97)][_0x255065(0xb8)](_0x596bd3),this[_0x255065(0x86)]=this[_0x255065(0xb2)][_0x255065(0x97)][_0x255065(0xb8)](_0xda986e);const _0x595d8a=this[_0x255065(0xb2)][_0x255065(0x97)][_0x255065(0xb8)](_0x506d86),_0x379d80=this[_0x255065(0x86)][_0x255065(0xa6)]();this[_0x255065(0x96)]=new _0x560d00({'connector':this[_0x255065(0x6d)],'group':_0x379d80}),this[_0x255065(0x91)](this[_0x255065(0x93)],_0x255065(0x7b),(_0x3ca76d,_0x1139b1)=>{const _0x52a7ef=_0x255065;this[_0x52a7ef(0x67)](_0x1139b1['id'],_0x52a7ef(0x6a)),this[_0x52a7ef(0x9e)](_0x1139b1['id']);}),this[_0x255065(0x91)](this[_0x255065(0x93)],_0x255065(0x94),(_0x40f7a5,_0x38aca0)=>{const _0x393f23=_0x255065;this[_0x393f23(0x67)](_0x38aca0['id'],_0x393f23(0x81)),this[_0x393f23(0xac)](_0x38aca0['id'],_0x38aca0[_0x393f23(0xc0)]);}),this[_0x255065(0x91)](this[_0x255065(0x96)],_0x255065(0x82),(_0x525dcd,_0x13f656)=>{const _0x55f188=_0x255065;void 0x0!==_0x13f656[_0x55f188(0x88)][_0x55f188(0xc0)]&&this[_0x55f188(0x93)][_0x55f188(0xc3)](_0x13f656[_0x55f188(0xbb)],_0x13f656[_0x55f188(0x88)][_0x55f188(0xc0)]),void 0x0!==_0x13f656[_0x55f188(0x88)][_0x55f188(0x80)]&&this[_0x55f188(0x95)](),this[_0x55f188(0xaa)](_0x13f656[_0x55f188(0xbb)]);}),this[_0x255065(0x91)](this[_0x255065(0x96)],_0x255065(0x7e),(_0x53ec68,_0x77f5d8)=>{const _0x3623c1=_0x255065;this[_0x3623c1(0x86)][_0x3623c1(0xb6)](_0x77f5d8[_0x3623c1(0xbb)]),this[_0x3623c1(0x93)][_0x3623c1(0x98)](_0x77f5d8[_0x3623c1(0xbb)]),this[_0x3623c1(0xaa)](_0x77f5d8[_0x3623c1(0xbb)]);}),this[_0x255065(0x91)](this[_0x255065(0x96)],_0x255065(0xc1),()=>{const _0x1df753=_0x255065;this[_0x1df753(0x95)]();}),this[_0x255065(0x91)](this[_0x255065(0x96)],_0x255065(0xad),(_0x440e3e,_0x5c5c78)=>{const _0xf2384e=_0x255065;this[_0xf2384e(0xa3)](_0x5c5c78[_0xf2384e(0xad)],_0x5c5c78[_0xf2384e(0x8b)],_0x5c5c78[_0xf2384e(0xbb)]);}),this[_0x255065(0x91)](this[_0x255065(0x93)],_0x255065(0x90),(_0x11ae5a,_0x65996d)=>{const _0x187855=_0x255065;this[_0x187855(0x7d)](_0x65996d['id']);}),this[_0x255065(0x91)](this[_0x255065(0x93)],_0x255065(0xa5),(_0x2d501a,_0x4fb523)=>{const _0x28057b=_0x255065,_0xa379da=_0x4fb523[_0x28057b(0x80)]?_0x28057b(0xbf):_0x28057b(0xb3);this[_0x28057b(0x67)](_0x4fb523['id'],_0xa379da),this[_0x28057b(0xaf)](_0x4fb523['id'],_0x4fb523[_0x28057b(0x80)]);}),this[_0x255065(0x91)](this[_0x255065(0x93)],_0x255065(0xc9),()=>{const _0x8af3ba=_0x255065;_0x595d8a[_0x8af3ba(0x85)][_0x8af3ba(0x74)](_0x8af3ba(0x71));}),this[_0x255065(0x91)](this[_0x255065(0x86)],_0x255065(0xc4),()=>{const _0x4d2174=_0x255065;this[_0x4d2174(0x95)]();}),_0x595d8a[_0x255065(0x85)]['on'](_0x255065(0x6e),()=>{const _0x1bab0f=_0x255065;this[_0x1bab0f(0x84)]();}),this[_0x255065(0x91)](_0x595d8a,_0x255065(0x99),(_0x51911f,_0x4fa005)=>{const _0x5498f1=_0x255065;this[_0x5498f1(0xc7)](_0x4fa005);}),this[_0x255065(0x91)](this[_0x255065(0x93)],_0x255065(0xa2),()=>{const _0x67da47=_0x255065;_0x595d8a[_0x67da47(0x79)]();});}async[_0x1dcb41(0xac)](_0x270add,_0x499891){const _0x22f041=_0x1dcb41;await this[_0x22f041(0x96)][_0x22f041(0xc3)](_0x270add,_0x499891);}async[_0x1dcb41(0xaf)](_0x46e7a0,_0x24aa1e){const _0x5b4fa6=_0x1dcb41;await this[_0x5b4fa6(0x96)][_0x5b4fa6(0x65)](_0x46e7a0,_0x24aa1e);}async[_0x1dcb41(0x9e)](_0x4d7941){const _0x2b3874=_0x1dcb41;await this[_0x2b3874(0x96)][_0x2b3874(0xbc)](_0x4d7941);}async[_0x1dcb41(0x7d)](_0x4b74ec){const _0x2983cd=_0x1dcb41;await this[_0x2983cd(0x86)][_0x2983cd(0x6c)](_0x4b74ec);}async[_0x1dcb41(0x84)](){const _0x5d79d6=_0x1dcb41;this[_0x5d79d6(0x93)][_0x5d79d6(0xbd)](''),this[_0x5d79d6(0x93)][_0x5d79d6(0x89)](!0x0),await this[_0x5d79d6(0x96)][_0x5d79d6(0xba)](),this[_0x5d79d6(0x93)][_0x5d79d6(0x89)](!0x1);}[_0x1dcb41(0x95)](){const _0x28d8fb=_0x1dcb41,_0x40c5c5=this[_0x28d8fb(0x86)][_0x28d8fb(0x9b)]?.['id'],_0x42b255=this[_0x28d8fb(0x8e)]()[_0x28d8fb(0x8d)](_0x1de72e=>({'title':_0x1de72e[_0x28d8fb(0xc0)],'items':_0x1de72e[_0x28d8fb(0xc2)][_0x28d8fb(0x8d)](_0x56a2e7=>({'id':_0x56a2e7['id'],'title':_0x56a2e7[_0x28d8fb(0xc0)]||_0x4de554(this[_0x28d8fb(0xb2)][_0x28d8fb(0x77)],_0x28d8fb(0x73)),'createdAt':new Date(_0x56a2e7[_0x28d8fb(0x7a)])[_0x28d8fb(0xb0)](),'active':_0x56a2e7['id']===_0x40c5c5,'pinned':_0x56a2e7[_0x28d8fb(0x80)]}))}));this[_0x28d8fb(0x93)][_0x28d8fb(0x7f)](_0x42b255);}[_0x1dcb41(0x67)](_0x2a8517,_0x58d5f6){const _0x12b0dc=_0x1dcb41;this[_0x12b0dc(0x93)][_0x12b0dc(0xa8)](_0x2a8517,_0x58d5f6,!0x0);}[_0x1dcb41(0xaa)](_0x535df4){const _0x201658=_0x1dcb41;this[_0x201658(0x93)][_0x201658(0xa8)](_0x535df4,null,!0x1);}[_0x1dcb41(0xa3)](_0x4b2818,_0x58f44f,_0x418a64){const _0xc94259=_0x1dcb41,_0x385cca=this[_0xc94259(0x68)](_0x58f44f,_0x418a64);this[_0xc94259(0x93)][_0xc94259(0xbd)](_0x385cca),_0x418a64&&this[_0xc94259(0xaa)](_0x418a64),this[_0xc94259(0x93)][_0xc94259(0x89)](!0x1);}[_0x1dcb41(0x68)](_0x306d82,_0xa0e2df){const _0x5bf0ff=_0x1dcb41,_0x47eb20=_0xa0e2df?this[_0x5bf0ff(0x96)][_0x5bf0ff(0xb5)](_0xa0e2df):null,_0x33f532=_0x47eb20?.[_0x5bf0ff(0xc0)]||_0x4de554(this[_0x5bf0ff(0xb2)][_0x5bf0ff(0x77)],_0x5bf0ff(0x73));switch(_0x306d82){case _0x5bf0ff(0xc3):return _0x4de554(this[_0x5bf0ff(0xb2)][_0x5bf0ff(0x77)],_0x5bf0ff(0xb7),_0x33f532);case _0x5bf0ff(0x65):{const _0x34c684=_0x4de554(this[_0x5bf0ff(0xb2)][_0x5bf0ff(0x77)],_0x47eb20?.[_0x5bf0ff(0x80)]?_0x5bf0ff(0xa4):_0x5bf0ff(0xa1));return _0x4de554(this[_0x5bf0ff(0xb2)][_0x5bf0ff(0x77)],_0x5bf0ff(0x8f),[_0x34c684,_0x33f532]);}case _0x5bf0ff(0xbc):return _0x4de554(this[_0x5bf0ff(0xb2)][_0x5bf0ff(0x77)],_0x5bf0ff(0x76),_0x33f532);case _0x5bf0ff(0xba):case _0x5bf0ff(0x8a):return _0x4de554(this[_0x5bf0ff(0xb2)][_0x5bf0ff(0x77)],_0x5bf0ff(0xc8));default:return _0x4de554(this[_0x5bf0ff(0xb2)][_0x5bf0ff(0x77)],_0x5bf0ff(0x8c));}}[_0x1dcb41(0x8e)](){const _0x1c6907=_0x1dcb41,_0x18e3a7=new Date(),_0x3aea96=new Date(_0x18e3a7[_0x1c6907(0x7c)](),_0x18e3a7[_0x1c6907(0x64)](),_0x18e3a7[_0x1c6907(0x87)]()),_0x43d0ff=new Date(_0x3aea96);_0x43d0ff[_0x1c6907(0x66)](_0x43d0ff[_0x1c6907(0x87)]()-0x1);const _0x2ffe3b=new Date(_0x3aea96);_0x2ffe3b[_0x1c6907(0x66)](_0x2ffe3b[_0x1c6907(0x87)]()-0xe);const _0x441345=this[_0x1c6907(0x96)][_0x1c6907(0xb1)]({'pinned':!0x0}),_0x25ffcd=this[_0x1c6907(0x96)][_0x1c6907(0xb1)]({'from':_0x3aea96,'to':_0x3aea96}),_0x56b115=this[_0x1c6907(0x96)][_0x1c6907(0xb1)]({'from':_0x43d0ff,'to':_0x43d0ff}),_0x202c51=this[_0x1c6907(0x96)][_0x1c6907(0xb1)]({'from':_0x2ffe3b,'to':_0x43d0ff}),_0x3c9772=this[_0x1c6907(0x96)][_0x1c6907(0xb1)]({'to':_0x2ffe3b}),_0x510d7e=[];return _0x441345[_0x1c6907(0x72)]>0x0&&_0x510d7e[_0x1c6907(0x6f)]({'title':_0x4de554(this[_0x1c6907(0xb2)][_0x1c6907(0x77)],_0x1c6907(0x6b)),'items':_0x441345}),_0x25ffcd[_0x1c6907(0x72)]>0x0&&_0x510d7e[_0x1c6907(0x6f)]({'title':_0x4de554(this[_0x1c6907(0xb2)][_0x1c6907(0x77)],_0x1c6907(0xa7)),'items':_0x25ffcd}),_0x56b115[_0x1c6907(0x72)]>0x0&&_0x510d7e[_0x1c6907(0x6f)]({'title':_0x4de554(this[_0x1c6907(0xb2)][_0x1c6907(0x77)],_0x1c6907(0x69)),'items':_0x56b115}),_0x202c51[_0x1c6907(0x72)]>0x0&&_0x510d7e[_0x1c6907(0x6f)]({'title':_0x4de554(this[_0x1c6907(0xb2)][_0x1c6907(0x77)],_0x1c6907(0xc6)),'items':_0x202c51}),_0x3c9772[_0x1c6907(0x72)]>0x0&&_0x510d7e[_0x1c6907(0x6f)]({'title':_0x4de554(this[_0x1c6907(0xb2)][_0x1c6907(0x77)],_0x1c6907(0xb9)),'items':_0x3c9772}),_0x510d7e;}[_0x1dcb41(0xc7)](_0x5abef9){const _0x105f25=_0x1dcb41;this[_0x105f25(0x93)][_0x105f25(0x78)](_0x5abef9);}}
|
|
23
|
+
const _0x45a116=_0x19ca;(function(_0x384687,_0x2a42bd){const _0x41bd8c=_0x19ca,_0x5e20e1=_0x384687();while(!![]){try{const _0x1c915d=-parseInt(_0x41bd8c(0x1e5))/0x1*(-parseInt(_0x41bd8c(0x226))/0x2)+-parseInt(_0x41bd8c(0x1de))/0x3+-parseInt(_0x41bd8c(0x1d2))/0x4*(parseInt(_0x41bd8c(0x1ea))/0x5)+parseInt(_0x41bd8c(0x1cf))/0x6*(parseInt(_0x41bd8c(0x20f))/0x7)+-parseInt(_0x41bd8c(0x1e1))/0x8*(-parseInt(_0x41bd8c(0x204))/0x9)+-parseInt(_0x41bd8c(0x1d3))/0xa*(parseInt(_0x41bd8c(0x1f7))/0xb)+parseInt(_0x41bd8c(0x219))/0xc;if(_0x1c915d===_0x2a42bd)break;else _0x5e20e1['push'](_0x5e20e1['shift']());}catch(_0xb3fc95){_0x5e20e1['push'](_0x5e20e1['shift']());}}}(_0x31a6,0x1edde));import{ContextPlugin as _0x2a24e0}from'ckeditor5/src/core.js';import{AIConnector as _0x3521ad}from'../aicore/aiconnector.js';import{AIChatController as _0x191fa9}from'../aichat/aichatcontroller.js';import{AITabs as _0x19bdd0}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0xa349a6}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x32ef09}from'./model/aichathistoryconversations.js';function _0x19ca(_0x25a533,_0x108256){const _0x31a67a=_0x31a6();return _0x19ca=function(_0x19ca3b,_0x44df29){_0x19ca3b=_0x19ca3b-0x1ca;let _0x5ff487=_0x31a67a[_0x19ca3b];return _0x5ff487;},_0x19ca(_0x25a533,_0x108256);}import{getTranslation as _0x27d84a}from'../aicore/utils/common-translations.js';function _0x31a6(){const _0x29f9b5=['items','pinned','setConversationPinned','remove','getItem','createdAt','updateItems','activateTab:history','change:activeConversation','title','activateTab','init','336PYOYDO','resizeTabs','chat','48068YBcGjM','196750kgXzAx','loadItems','editConversationTitle','itemRemoved','view','getFullYear','openChat','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','_updateHistoryItemsUI','_clearItemLoading','_aiChatController','670779igDPRz','isOfficialPlugin','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','40pyNNcH','AIChatHistoryController','AI_CHAT_HISTORY_ERROR_GENERIC','updateItemPinned','183907hsqIYh','updateItemLoadingState','get','history','AI_CHAT_HISTORY_CATEGORY_TODAY','100MfFMar','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','showError','AI_CHAT_HISTORY_UNPIN_ACTION','_setIsMaximized','_generateErrorMessage','itemUpdated','removeHistoryItem','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','itemsLoaded','activeConversation','44nBMzNR','_getCategorizedItems','AI_CHAT_HISTORY_CATEGORY_PINNED','_handleRemove','_aiChatHistoryUi','_handleEditTitle','resize','operation','requires','locale','length','context','plugins','114039IfkCCo','setLoadingSkeleton','_handleSelectConversation','isPremiumPlugin','removeItem','getItems','pluginName','updates','_setItemLoading','AI_CHAT_HISTORY_CATEGORY_LATER','error','28154PjpqZO','_handleTogglePin','map','removeConversation','setIsMaximized','unpin','AI_CHAT_UNTITLED_CONVERSATION','updateItemTitle','_aiConnector','resizedTabs','2358828kHWjuX','selectConversation','getGroupId','getDate','_showConversationHistory','_handleHistoryErrorUI','listenTo','handleRemovedConversation','setDate','pin','getMonth','loadConversation','AI_CHAT_HISTORY_PIN_ACTION','2mRgRtf','toLocaleDateString','push','rename','itemId'];_0x31a6=function(){return _0x29f9b5;};return _0x31a6();}export class AIChatHistoryController extends _0x2a24e0{[_0x45a116(0x217)];[_0x45a116(0x1fb)];[_0x45a116(0x1dd)];static get[_0x45a116(0x1ff)](){return[_0x3521ad,_0x191fa9,_0xa349a6,_0x19bdd0];}static get[_0x45a116(0x20a)](){const _0x3b2c6d=_0x45a116;return _0x3b2c6d(0x1e2);}static get[_0x45a116(0x1df)](){return!0x0;}static get[_0x45a116(0x207)](){return!0x0;}[_0x45a116(0x1ce)](){const _0x2b6896=_0x45a116;this[_0x2b6896(0x217)]=this[_0x2b6896(0x202)][_0x2b6896(0x203)][_0x2b6896(0x1e7)](_0x3521ad),this[_0x2b6896(0x1fb)]=this[_0x2b6896(0x202)][_0x2b6896(0x203)][_0x2b6896(0x1e7)](_0xa349a6),this[_0x2b6896(0x1dd)]=this[_0x2b6896(0x202)][_0x2b6896(0x203)][_0x2b6896(0x1e7)](_0x191fa9);const _0x31f93b=this[_0x2b6896(0x202)][_0x2b6896(0x203)][_0x2b6896(0x1e7)](_0x19bdd0),_0x269915=this[_0x2b6896(0x1dd)][_0x2b6896(0x21b)]();this[_0x2b6896(0x1e8)]=new _0x32ef09({'connector':this[_0x2b6896(0x217)],'group':_0x269915}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x212),(_0x199dc6,_0x7888c8)=>{const _0x18f681=_0x2b6896;this[_0x18f681(0x20c)](_0x7888c8['id'],_0x18f681(0x22e)),this[_0x18f681(0x1fa)](_0x7888c8['id']);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x1d5),(_0x5b0263,_0x234f66)=>{const _0x336e79=_0x2b6896;this[_0x336e79(0x20c)](_0x234f66['id'],_0x336e79(0x229)),this[_0x336e79(0x1fc)](_0x234f66['id'],_0x234f66[_0x336e79(0x1cc)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1e8)],_0x2b6896(0x1f2),(_0xf0b76e,_0x1c5c74)=>{const _0x50a33a=_0x2b6896;void 0x0!==_0x1c5c74[_0x50a33a(0x20b)][_0x50a33a(0x1cc)]&&this[_0x50a33a(0x1fb)][_0x50a33a(0x216)](_0x1c5c74[_0x50a33a(0x22a)],_0x1c5c74[_0x50a33a(0x20b)][_0x50a33a(0x1cc)]),void 0x0!==_0x1c5c74[_0x50a33a(0x20b)][_0x50a33a(0x22c)]&&this[_0x50a33a(0x1db)](),this[_0x50a33a(0x1dc)](_0x1c5c74[_0x50a33a(0x22a)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1e8)],_0x2b6896(0x1d6),(_0x12bb3c,_0x21e967)=>{const _0x5407d6=_0x2b6896;this[_0x5407d6(0x1dd)][_0x5407d6(0x220)](_0x21e967[_0x5407d6(0x22a)]),this[_0x5407d6(0x1fb)][_0x5407d6(0x1f3)](_0x21e967[_0x5407d6(0x22a)]),this[_0x5407d6(0x1dc)](_0x21e967[_0x5407d6(0x22a)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1e8)],_0x2b6896(0x1f5),()=>{const _0x4c047d=_0x2b6896;this[_0x4c047d(0x1db)]();}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1e8)],_0x2b6896(0x20e),(_0x2195e9,_0x21b43f)=>{const _0x4b01c6=_0x2b6896;this[_0x4b01c6(0x21e)](_0x21b43f[_0x4b01c6(0x20e)],_0x21b43f[_0x4b01c6(0x1fe)],_0x21b43f[_0x4b01c6(0x22a)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x21a),(_0x6be44d,_0x6f3a66)=>{const _0x996442=_0x2b6896;this[_0x996442(0x206)](_0x6f3a66['id']);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x22d),(_0x34eb66,_0xdc3511)=>{const _0x3819eb=_0x2b6896,_0x12481e=_0xdc3511[_0x3819eb(0x22c)]?_0x3819eb(0x222):_0x3819eb(0x214);this[_0x3819eb(0x20c)](_0xdc3511['id'],_0x12481e),this[_0x3819eb(0x210)](_0xdc3511['id'],_0xdc3511[_0x3819eb(0x22c)]);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x1d9),()=>{const _0x85050e=_0x2b6896;_0x31f93b[_0x85050e(0x1d7)][_0x85050e(0x1cd)](_0x85050e(0x1d1));}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1dd)],_0x2b6896(0x1cb),()=>{const _0x573806=_0x2b6896;this[_0x573806(0x1db)]();}),_0x31f93b[_0x2b6896(0x1d7)]['on'](_0x2b6896(0x1ca),()=>{const _0x572900=_0x2b6896;this[_0x572900(0x21d)]();}),this[_0x2b6896(0x21f)](_0x31f93b,_0x2b6896(0x218),(_0x4f037b,_0x42fe27)=>{const _0x101918=_0x2b6896;this[_0x101918(0x1f0)](_0x42fe27);}),this[_0x2b6896(0x21f)](this[_0x2b6896(0x1fb)],_0x2b6896(0x1d0),()=>{const _0x25a91f=_0x2b6896;_0x31f93b[_0x25a91f(0x1fd)]();});}async[_0x45a116(0x1fc)](_0x283874,_0x4ab74d){const _0x14c607=_0x45a116;await this[_0x14c607(0x1e8)][_0x14c607(0x216)](_0x283874,_0x4ab74d);}async[_0x45a116(0x210)](_0x52ea5c,_0x4d7faa){const _0x58daa4=_0x45a116;await this[_0x58daa4(0x1e8)][_0x58daa4(0x1e4)](_0x52ea5c,_0x4d7faa);}async[_0x45a116(0x1fa)](_0x405180){const _0x4b01f8=_0x45a116;await this[_0x4b01f8(0x1e8)][_0x4b01f8(0x208)](_0x405180);}async[_0x45a116(0x206)](_0x53f671){const _0x247a56=_0x45a116;await this[_0x247a56(0x1dd)][_0x247a56(0x224)](_0x53f671);}async[_0x45a116(0x21d)](){const _0x508425=_0x45a116;this[_0x508425(0x1fb)][_0x508425(0x1ee)](''),this[_0x508425(0x1fb)][_0x508425(0x205)](!0x0),await this[_0x508425(0x1e8)][_0x508425(0x1ce)](),this[_0x508425(0x1fb)][_0x508425(0x205)](!0x1);}[_0x45a116(0x1db)](){const _0x28934c=_0x45a116,_0x1a79c4=this[_0x28934c(0x1dd)][_0x28934c(0x1f6)]?.['id'],_0x1f005a=this[_0x28934c(0x1f8)]()[_0x28934c(0x211)](_0x110675=>({'title':_0x110675[_0x28934c(0x1cc)],'items':_0x110675[_0x28934c(0x22b)][_0x28934c(0x211)](_0x5d89e0=>({'id':_0x5d89e0['id'],'title':_0x5d89e0[_0x28934c(0x1cc)]||_0x27d84a(this[_0x28934c(0x202)][_0x28934c(0x200)],_0x28934c(0x215)),'createdAt':new Date(_0x5d89e0[_0x28934c(0x230)])[_0x28934c(0x227)](),'active':_0x5d89e0['id']===_0x1a79c4,'pinned':_0x5d89e0[_0x28934c(0x22c)]}))}));this[_0x28934c(0x1fb)][_0x28934c(0x231)](_0x1f005a);}[_0x45a116(0x20c)](_0x1334ee,_0x118959){const _0xdb7e57=_0x45a116;this[_0xdb7e57(0x1fb)][_0xdb7e57(0x1e6)](_0x1334ee,_0x118959,!0x0);}[_0x45a116(0x1dc)](_0x19d68f){const _0x44cb67=_0x45a116;this[_0x44cb67(0x1fb)][_0x44cb67(0x1e6)](_0x19d68f,null,!0x1);}[_0x45a116(0x21e)](_0x49c25c,_0x3a96e5,_0x13949c){const _0xcacca0=_0x45a116,_0x1a0af9=this[_0xcacca0(0x1f1)](_0x3a96e5,_0x13949c);this[_0xcacca0(0x1fb)][_0xcacca0(0x1ee)](_0x1a0af9),_0x13949c&&this[_0xcacca0(0x1dc)](_0x13949c),this[_0xcacca0(0x1fb)][_0xcacca0(0x205)](!0x1);}[_0x45a116(0x1f1)](_0x4f6f4f,_0x51d947){const _0x5a3598=_0x45a116,_0x47dd32=_0x51d947?this[_0x5a3598(0x1e8)][_0x5a3598(0x22f)](_0x51d947):null,_0x2a27f5=_0x47dd32?.[_0x5a3598(0x1cc)]||_0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x215));switch(_0x4f6f4f){case _0x5a3598(0x216):return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1e0),_0x2a27f5);case _0x5a3598(0x1e4):{const _0x4a09bf=_0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x47dd32?.[_0x5a3598(0x22c)]?_0x5a3598(0x1ef):_0x5a3598(0x225));return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1ec),[_0x4a09bf,_0x2a27f5]);}case _0x5a3598(0x208):return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1da),_0x2a27f5);case _0x5a3598(0x1ce):case _0x5a3598(0x1d4):return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1f4));default:return _0x27d84a(this[_0x5a3598(0x202)][_0x5a3598(0x200)],_0x5a3598(0x1e3));}}[_0x45a116(0x1f8)](){const _0x22ee0a=_0x45a116,_0x122705=new Date(),_0x4cfd7a=new Date(_0x122705[_0x22ee0a(0x1d8)](),_0x122705[_0x22ee0a(0x223)](),_0x122705[_0x22ee0a(0x21c)]()),_0x26dc60=new Date(_0x4cfd7a);_0x26dc60[_0x22ee0a(0x221)](_0x26dc60[_0x22ee0a(0x21c)]()-0x1);const _0x2e173e=new Date(_0x4cfd7a);_0x2e173e[_0x22ee0a(0x221)](_0x2e173e[_0x22ee0a(0x21c)]()-0xe);const _0x4b7b0f=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'pinned':!0x0}),_0x417876=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'from':_0x4cfd7a,'to':_0x4cfd7a}),_0x258436=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'from':_0x26dc60,'to':_0x26dc60}),_0x1bd15d=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'from':_0x2e173e,'to':_0x26dc60}),_0x350758=this[_0x22ee0a(0x1e8)][_0x22ee0a(0x209)]({'to':_0x2e173e}),_0x4b049c=[];return _0x4b7b0f[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x1f9)),'items':_0x4b7b0f}),_0x417876[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x1e9)),'items':_0x417876}),_0x258436[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x1ed)),'items':_0x258436}),_0x1bd15d[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x1eb)),'items':_0x1bd15d}),_0x350758[_0x22ee0a(0x201)]>0x0&&_0x4b049c[_0x22ee0a(0x228)]({'title':_0x27d84a(this[_0x22ee0a(0x202)][_0x22ee0a(0x200)],_0x22ee0a(0x20d)),'items':_0x350758}),_0x4b049c;}[_0x45a116(0x1f0)](_0x5b94ee){const _0x542c38=_0x45a116;this[_0x542c38(0x1fb)][_0x542c38(0x213)](_0x5b94ee);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x96e3f1=_0x3f90;(function(_0x4e29bd,_0x15f6e3){const _0x1785b6=_0x3f90,_0x53f088=_0x4e29bd();while(!![]){try{const _0x2d53de=parseInt(_0x1785b6(0x1f0))/0x1+parseInt(_0x1785b6(0x1f1))/0x2*(parseInt(_0x1785b6(0x1d3))/0x3)+-parseInt(_0x1785b6(0x1ea))/0x4+parseInt(_0x1785b6(0x1e9))/0x5+parseInt(_0x1785b6(0x1d5))/0x6+-parseInt(_0x1785b6(0x1da))/0x7+parseInt(_0x1785b6(0x1fd))/0x8;if(_0x2d53de===_0x15f6e3)break;else _0x53f088['push'](_0x53f088['shift']());}catch(_0x42be1e){_0x53f088['push'](_0x53f088['shift']());}}}(_0x129d,0x19a4e));import{ContextPlugin as _0x48cec8}from'ckeditor5/src/core.js';import{AITabs as _0x2dd222}from'../aitabs/aitabs.js';import{IconAIHistory as _0x1053ca}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x3a5788}from'./ui/aichathistoryview.js';function _0x129d(){const _0x5b1e19=['_historyView','updateItemTitle','showResizeButton','isMaximized','view','history','AIChatHistoryUI','context','hideError','625250mocYPw','475192GhNakR','AITabs','setConversationPinned','isOfficialPlugin','isLoading','updateItems','72272oVEqwg','1242SVNVol','AI_CHAT_HISTORY_HEADING','get','errorMessage','updateHistoryItemsWithCategories','requires','locale','editConversationTitle','openChat','isPremiumPlugin','addTab','showError','1167768vsFDuX','plugins','237ogRpGL','updateItemLoadingState','121938Fkcsbr','removeConversation','selectConversation','showConversationHistory','removeHistoryItem','1321873avLBWS','resizeTabs','pluginName','delegate','setLoadingSkeleton','setIsMaximized'];_0x129d=function(){return _0x5b1e19;};return _0x129d();}import{getTranslation as _0xa81edb}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';function _0x3f90(_0x5d0e1a,_0x5e237c){const _0x129d4b=_0x129d();return _0x3f90=function(_0x3f90c1,_0x2a1e8a){_0x3f90c1=_0x3f90c1-0x1d2;let _0x5f1bdb=_0x129d4b[_0x3f90c1];return _0x5f1bdb;},_0x3f90(_0x5d0e1a,_0x5e237c);}export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x96e3f1(0x1d8),_0x96e3f1(0x1d6),_0x96e3f1(0x1f8),_0x96e3f1(0x1ec),_0x96e3f1(0x1d7),_0x96e3f1(0x1f9),_0x96e3f1(0x1db)];export class AIChatHistoryUI extends _0x48cec8{static get[_0x96e3f1(0x1f6)](){return[_0x2dd222];}[_0x96e3f1(0x1e0)];static get[_0x96e3f1(0x1dc)](){const _0x5b5ebf=_0x96e3f1;return _0x5b5ebf(0x1e6);}static get[_0x96e3f1(0x1ed)](){return!0x0;}static get[_0x96e3f1(0x1fa)](){return!0x0;}constructor(_0x1842ab){const _0x5e03af=_0x96e3f1;super(_0x1842ab);const _0x1a2dfd=this[_0x5e03af(0x1e7)][_0x5e03af(0x1d2)][_0x5e03af(0x1f3)](_0x5e03af(0x1eb));this[_0x5e03af(0x1e0)]=new _0x3a5788(this[_0x5e03af(0x1e7)][_0x5e03af(0x1f7)],_0x1a2dfd[_0x5e03af(0x1e2)]),this[_0x5e03af(0x1e0)][_0x5e03af(0x1dd)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x1a2dfd[_0x5e03af(0x1e4)][_0x5e03af(0x1fb)]({'id':_0x5e03af(0x1e5),'buttonLabel':_0xa81edb(this[_0x5e03af(0x1e7)][_0x5e03af(0x1f7)],_0x5e03af(0x1f2)),'buttonIcon':_0x1053ca,'order':0x0,'content':this[_0x5e03af(0x1e0)]});}[_0x96e3f1(0x1d9)](_0x31081e){const _0x54a7ab=_0x96e3f1;this[_0x54a7ab(0x1e0)][_0x54a7ab(0x1d9)](_0x31081e);}[_0x96e3f1(0x1ef)](_0x12e9b){const _0x583b83=_0x96e3f1;this[_0x583b83(0x1e0)][_0x583b83(0x1f5)](_0x12e9b);}[_0x96e3f1(0x1e1)](_0x5cf696,_0x18eba9){const _0x137d19=_0x96e3f1;this[_0x137d19(0x1e0)][_0x137d19(0x1e1)](_0x5cf696,_0x18eba9);}[_0x96e3f1(0x1d4)](_0x24a7e1,_0x7c0a34,_0x549d07){const _0x2849ba=_0x96e3f1;this[_0x2849ba(0x1e0)][_0x2849ba(0x1d4)](_0x24a7e1,_0x7c0a34,_0x549d07);}[_0x96e3f1(0x1de)](_0x585417){const _0x1886cf=_0x96e3f1;this[_0x1886cf(0x1e0)][_0x1886cf(0x1ee)]=_0x585417;}[_0x96e3f1(0x1fc)](_0x3b9626){const _0x1e2a46=_0x96e3f1;this[_0x1e2a46(0x1e0)][_0x1e2a46(0x1f4)]=_0x3b9626;}[_0x96e3f1(0x1e8)](){const _0x3db6d2=_0x96e3f1;this[_0x3db6d2(0x1e0)][_0x3db6d2(0x1f4)]='';}[_0x96e3f1(0x1df)](_0x5df42c){const _0x230f79=_0x96e3f1;this[_0x230f79(0x1e0)][_0x230f79(0x1e3)]=_0x5df42c;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b92d5=_0x107f;(function(_0xd7559c,_0x46ec28){const _0x3c3525=_0x107f,_0x24d85c=_0xd7559c();while(!![]){try{const _0x197bad=parseInt(_0x3c3525(0x1f8))/0x1+-parseInt(_0x3c3525(0x1ff))/0x2+parseInt(_0x3c3525(0x211))/0x3*(-parseInt(_0x3c3525(0x1f2))/0x4)+-parseInt(_0x3c3525(0x1e8))/0x5*(-parseInt(_0x3c3525(0x20e))/0x6)+parseInt(_0x3c3525(0x204))/0x7+parseInt(_0x3c3525(0x1f5))/0x8*(parseInt(_0x3c3525(0x20a))/0x9)+-parseInt(_0x3c3525(0x20d))/0xa;if(_0x197bad===_0x46ec28)break;else _0x24d85c['push'](_0x24d85c['shift']());}catch(_0x2e0f00){_0x24d85c['push'](_0x24d85c['shift']());}}}(_0x5da3,0xed0c0));import{EmitterMixin as _0x14fa1b}from'ckeditor5/src/utils.js';function _0x107f(_0x313136,_0x4ea688){const _0x5da344=_0x5da3();return _0x107f=function(_0x107f8b,_0x216012){_0x107f8b=_0x107f8b-0x1e5;let _0x53da8c=_0x5da344[_0x107f8b];return _0x53da8c;},_0x107f(_0x313136,_0x4ea688);}function _0x5da3(){const _0x515d10=['itemRemoved','fetchConversations','find','getTime','12323339VTVnzR','items','group','execute','pinned','filter','89361dIWccF','from','addItem','29616470MczBQW','7446kbdYOO','removeItem','itemsLoaded','183dDWbDO','updateItemPinned','connector','loadItems','push','updateTitle','7670mOBkCn','getDate','getItem','getItems','getResult','updatePinned','findIndex','updateItemTitle','updateConversation','getConversations','125180EyLibX','splice','init','1232aCWZvZ','error','createdAt','880836QixGRi','getMonth','deleteConversation','map','getFullYear','fire','itemUpdated','464974FXnYwW'];_0x5da3=function(){return _0x515d10;};return _0x5da3();}import{AIChatHistoryItem as _0x4601e7}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x14fa1b(){[_0x4b92d5(0x205)]=[];[_0x4b92d5(0x213)];[_0x4b92d5(0x206)];constructor({connector:_0xa4eedf,group:_0x5daf5b}){const _0x264738=_0x4b92d5;super(),this[_0x264738(0x213)]=_0xa4eedf,this[_0x264738(0x206)]=_0x5daf5b;}async[_0x4b92d5(0x1f4)](){const _0x58e8be=_0x4b92d5;try{const _0x12fb85=this[_0x58e8be(0x213)][_0x58e8be(0x201)](this[_0x58e8be(0x206)]),_0x1e4d35=await _0x12fb85[_0x58e8be(0x1f1)]();this[_0x58e8be(0x1e5)](_0x1e4d35);}catch(_0x1fd872){this[_0x58e8be(0x1fd)](_0x58e8be(0x1f6),{'error':_0x1fd872,'operation':_0x58e8be(0x1f4)});}}[_0x4b92d5(0x20c)](_0xbc544c){const _0x1c90a3=_0x4b92d5;this[_0x1c90a3(0x205)][_0x1c90a3(0x1e6)](_0xbc544c);}async[_0x4b92d5(0x20f)](_0x54f224){const _0x22505f=_0x4b92d5,_0x548d60=this[_0x22505f(0x205)][_0x22505f(0x1ee)](_0xd39730=>_0xd39730['id']===_0x54f224);if(-0x1===_0x548d60)return!0x1;try{return await this[_0x22505f(0x213)][_0x22505f(0x1fa)](_0x54f224)[_0x22505f(0x207)](),this[_0x22505f(0x205)][_0x22505f(0x1f3)](_0x548d60,0x1),this[_0x22505f(0x1fd)](_0x22505f(0x200),{'itemId':_0x54f224}),!0x0;}catch(_0x403e45){return this[_0x22505f(0x1fd)](_0x22505f(0x1f6),{'error':_0x403e45,'operation':_0x22505f(0x20f),'itemId':_0x54f224}),!0x1;}}[_0x4b92d5(0x1ea)](_0xb69035){const _0xa5e61f=_0x4b92d5;return this[_0xa5e61f(0x205)][_0xa5e61f(0x202)](_0x1bc978=>_0x1bc978['id']===_0xb69035);}async[_0x4b92d5(0x1ef)](_0x122627,_0x3c204d){const _0x4c31d6=_0x4b92d5,_0x386157=this[_0x4c31d6(0x1ea)](_0x122627);if(!_0x386157)return!0x1;try{return await this[_0x4c31d6(0x213)][_0x4c31d6(0x1f0)](_0x122627,{'title':_0x3c204d})[_0x4c31d6(0x1ec)](),_0x386157[_0x4c31d6(0x1e7)](_0x3c204d),this[_0x4c31d6(0x1fd)](_0x4c31d6(0x1fe),{'itemId':_0x122627,'updates':{'title':_0x3c204d}}),!0x0;}catch(_0xc150ab){return this[_0x4c31d6(0x1fd)](_0x4c31d6(0x1f6),{'error':_0xc150ab,'operation':_0x4c31d6(0x1ef),'itemId':_0x122627}),!0x1;}}async[_0x4b92d5(0x212)](_0x56d01b,_0x1fdf63){const _0x4c0221=_0x4b92d5,_0x301dca=this[_0x4c0221(0x1ea)](_0x56d01b);if(!_0x301dca)return!0x1;try{return await this[_0x4c0221(0x213)][_0x4c0221(0x1f0)](_0x56d01b,{'pinned':_0x1fdf63})[_0x4c0221(0x1ec)](),_0x301dca[_0x4c0221(0x1ed)](_0x1fdf63),this[_0x4c0221(0x1fd)](_0x4c0221(0x1fe),{'itemId':_0x56d01b,'updates':{'pinned':_0x1fdf63}}),!0x0;}catch(_0x24d06a){return this[_0x4c0221(0x1fd)](_0x4c0221(0x1f6),{'error':_0x24d06a,'operation':_0x4c0221(0x212),'itemId':_0x56d01b}),!0x1;}}[_0x4b92d5(0x1e5)](_0x54f249){const _0x21c69f=_0x4b92d5;try{this[_0x21c69f(0x205)]=[],_0x54f249[_0x21c69f(0x1fb)](_0x138be7=>{const _0x11035f=_0x21c69f;this[_0x11035f(0x20c)](new _0x4601e7(_0x138be7));}),this[_0x21c69f(0x1fd)](_0x21c69f(0x210),{'items':[...this[_0x21c69f(0x205)]]});}catch(_0x4b0685){this[_0x21c69f(0x1fd)](_0x21c69f(0x1f6),{'error':_0x4b0685,'operation':_0x21c69f(0x1e5)});}}[_0x4b92d5(0x1eb)](_0x292523={}){const _0x32a579=_0x4b92d5,_0x2091d5=void 0x0!==_0x292523[_0x32a579(0x208)]&&_0x292523[_0x32a579(0x208)],_0x32972f=_0x292523[_0x32a579(0x20b)]?new Date(_0x292523[_0x32a579(0x20b)][_0x32a579(0x1fc)](),_0x292523[_0x32a579(0x20b)][_0x32a579(0x1f9)](),_0x292523[_0x32a579(0x20b)][_0x32a579(0x1e9)]()):null,_0x464d3e=_0x292523['to']?new Date(_0x292523['to'][_0x32a579(0x1fc)](),_0x292523['to'][_0x32a579(0x1f9)](),_0x292523['to'][_0x32a579(0x1e9)]()):null;return this[_0x32a579(0x205)][_0x32a579(0x209)](_0x3ce83e=>{const _0x32bb56=_0x32a579;if(_0x3ce83e[_0x32bb56(0x208)]!==_0x2091d5)return!0x1;if(_0x464d3e){const _0x4597be=new Date(_0x3ce83e[_0x32bb56(0x1f7)][_0x32bb56(0x1fc)](),_0x3ce83e[_0x32bb56(0x1f7)][_0x32bb56(0x1f9)](),_0x3ce83e[_0x32bb56(0x1f7)][_0x32bb56(0x1e9)]());return _0x32972f?_0x32972f[_0x32bb56(0x203)]()===_0x464d3e[_0x32bb56(0x203)]()?_0x4597be[_0x32bb56(0x203)]()===_0x32972f[_0x32bb56(0x203)]():_0x4597be<_0x464d3e&&_0x4597be>=_0x32972f:_0x4597be<_0x464d3e;}return!0x0;});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x11254b=_0x4664;(function(_0x5a250f,_0xa9ece2){var _0x3e1b99=_0x4664,_0x57e3c3=_0x5a250f();while(!![]){try{var _0x24ef0d=parseInt(_0x3e1b99(0x148))/0x1*(parseInt(_0x3e1b99(0x153))/0x2)+parseInt(_0x3e1b99(0x14a))/0x3*(-parseInt(_0x3e1b99(0x143))/0x4)+parseInt(_0x3e1b99(0x150))/0x5+-parseInt(_0x3e1b99(0x151))/0x6*(-parseInt(_0x3e1b99(0x14e))/0x7)+-parseInt(_0x3e1b99(0x146))/0x8+-parseInt(_0x3e1b99(0x147))/0x9+parseInt(_0x3e1b99(0x14d))/0xa;if(_0x24ef0d===_0xa9ece2)break;else _0x57e3c3['push'](_0x57e3c3['shift']());}catch(_0x1bd362){_0x57e3c3['push'](_0x57e3c3['shift']());}}}(_0x1e50,0x4ffaa));function _0x4664(_0x909384,_0x3462d2){var _0x1e5098=_0x1e50();return _0x4664=function(_0x46644e,_0x8a7cd7){_0x46644e=_0x46644e-0x143;var _0x2113db=_0x1e5098[_0x46644e];return _0x2113db;},_0x4664(_0x909384,_0x3462d2);}import{ObservableMixin as _0x16361f}from'ckeditor5/src/utils.js';function _0x1e50(){var _0x4a7ddc=['title','1134820yWShFI','1126405HljKzw','pinned','1906505mQdGSm','6TxtrHd','updateTitle','2yUQHaR','4piZEzm','set','createdAt','2113136BMBszn','2573838bTlbiv','559571NeVsbO','updatedAt','1012653KGbZZW','updatePinned'];_0x1e50=function(){return _0x4a7ddc;};return _0x1e50();}import{escape as _0x10cf01}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x16361f(){['id'];[_0x11254b(0x145)];constructor({id:_0x1b6aab,title:_0x5eccdf,createdAt:_0x5b510b,updatedAt:_0x1fe41e,pinned:_0x3075b6}){var _0x15eb5f=_0x11254b;super(),this['id']=_0x1b6aab,this[_0x15eb5f(0x145)]=new Date(_0x5b510b),this[_0x15eb5f(0x144)](_0x15eb5f(0x14c),_0x5eccdf),this[_0x15eb5f(0x144)](_0x15eb5f(0x149),_0x1fe41e?new Date(_0x1fe41e):null),this[_0x15eb5f(0x144)](_0x15eb5f(0x14f),_0x3075b6||!0x1);}[_0x11254b(0x152)](_0x132c70){var _0x25bbf1=_0x11254b;this[_0x25bbf1(0x144)](_0x25bbf1(0x14c),_0x10cf01(_0x132c70)),this[_0x25bbf1(0x149)]=new Date();}[_0x11254b(0x14b)](_0x36a83b){var _0x439a5b=_0x11254b;this[_0x439a5b(0x144)](_0x439a5b(0x14f),_0x36a83b),this[_0x439a5b(0x149)]=new Date();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x37b60a=_0x1cab;(function(_0x3428c6,_0x54559a){const _0x1e4385=_0x1cab,_0x5af66e=_0x3428c6();while(!![]){try{const _0x1067d2=parseInt(_0x1e4385(0x1dc))/0x1*(-parseInt(_0x1e4385(0x1d2))/0x2)+parseInt(_0x1e4385(0x1c7))/0x3*(-parseInt(_0x1e4385(0x1d4))/0x4)+-parseInt(_0x1e4385(0x1a0))/0x5*(-parseInt(_0x1e4385(0x1ec))/0x6)+parseInt(_0x1e4385(0x1ba))/0x7*(-parseInt(_0x1e4385(0x1c4))/0x8)+parseInt(_0x1e4385(0x19f))/0x9+parseInt(_0x1e4385(0x1aa))/0xa*(parseInt(_0x1e4385(0x19e))/0xb)+parseInt(_0x1e4385(0x1c1))/0xc*(parseInt(_0x1e4385(0x1cb))/0xd);if(_0x1067d2===_0x54559a)break;else _0x5af66e['push'](_0x5af66e['shift']());}catch(_0x1184d5){_0x5af66e['push'](_0x5af66e['shift']());}}}(_0x39d3,0xd6f7f));import{ListItemView as _0x537c4e,HighlightedTextView as _0x61aa71,ButtonView as _0x17ebc1,ListView as _0x295738,IconView as _0x51a1cc,createDropdown as _0x273f3a,InputTextView as _0x14bac9}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x1b16d9,IconPin as _0x2433ba,IconCheck as _0x1d6ea9,IconCancel as _0x27deff}from'ckeditor5/src/icons.js';function _0x39d3(){const _0x353c78=['selectConversation','add','_commitEditInputValue','span','withText','execute','pinned','removeConversation','locale','panelView','edit:cancel','AI_CHAT_HISTORY_LOADING_REMOVING','1439368NwSJnu','tiny','ck-ai-chat-history__item','ck-ai-chat-history__item--edit','ck-ai-chat-history__item-title','ck-ai-chat-history__item-main-content','_createCheckView','6816aqqaoY','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','isEdit','56kAnsyO','set','change:isEdit','87SjDIPn','isMatching','ck-ai-chat-history__item-check-container','text','10504thMfKf','ck-ai-chat-history__item-content','LOADING_LABELS','_createCancelEditButtonView','buttonView','bindTemplate','ck-ai-chat-history__item-check','474pbixCg','div','51820RZCWAN','editConversationTitle','ck-ai-loader','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_LOADING_PINNING','highlightText','then','match','1934Bnouya','actions','key','ck-ai-loader__text','AI_CHAT_HISTORY_LOADING_RENAMING','ck-confirm-view-cancel','_createAcceptEditButtonView','listitem','_createMenuDropdownView','ck-hidden','_titleView','AI_CHAT_HISTORY_ACCEPT','updateTitle','children','isOn','isVisible','4509876YyAfKF','AI_CHAT_HISTORY_REMOVE','value','focus','items','bind','label','string','ck-confirm-view-submit','setConversationPinned','addMany','_createPinButtonView','ck-ai-chat-history__item-row','ck-ai-chat-history__item-actions','AI_CHAT_HISTORY_LOADING_UNPINNING','setTemplate','showConfirm','AI_CHAT_HISTORY_CANCEL','createCollection','updateLoadingState','click','AI_CHAT_HISTORY_PIN_BUTTON','panelPosition','14995013ybRKWh','5221431PqYkiO','5ocJybc','loadingState','Enter','_createSpinnerView','AI_CHAT_HISTORY_EDIT_NAME','element','ck-ai-chat-history__item--active','mainContent','_createEditInputView','clear','10OsCdtF','extendTemplate','AI_CHAT_HISTORY_REMOVE_CONFIRM','fire'];_0x39d3=function(){return _0x353c78;};return _0x39d3();}function _0x1cab(_0x43904e,_0x31ef0f){const _0x39d363=_0x39d3();return _0x1cab=function(_0x1cabb6,_0x1a1717){_0x1cabb6=_0x1cabb6-0x199;let _0x547ae7=_0x39d363[_0x1cabb6];return _0x547ae7;},_0x1cab(_0x43904e,_0x31ef0f);}import{LateFocusDropdownButtonView as _0x1a371b,ConfirmMixin as _0x2dc784}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x2154a3}from'es-toolkit/compat';import{AISpinnerView as _0xf58759}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x1a3352}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x2dc784(_0x537c4e){['id'];static [_0x37b60a(0x1cd)]={'remove':_0x37b60a(0x1b9),'rename':_0x37b60a(0x1e0),'pin':_0x37b60a(0x1d8),'unpin':_0x37b60a(0x1fa)};[_0x37b60a(0x1dd)];[_0x37b60a(0x1a7)];[_0x37b60a(0x1e6)];constructor(_0x3109cc,_0x1124ae){const _0x168cf1=_0x37b60a;super(_0x3109cc);const _0x5d3fad=this[_0x168cf1(0x1d0)];this[_0x168cf1(0x1c5)](_0x168cf1(0x1c3),!0x1),this[_0x168cf1(0x1c5)](_0x168cf1(0x1eb),!0x0),this[_0x168cf1(0x1c5)](_0x168cf1(0x1b4),!!_0x1124ae[_0x168cf1(0x1b4)]),this[_0x168cf1(0x1c5)](_0x168cf1(0x1a1),null),this['id']=_0x1124ae['id'];const {title:_0x13bd75,createdAt:_0x32c106,active:_0xfe0e79=!0x1}=_0x1124ae;this[_0x168cf1(0x1e6)]=new _0x61aa71(),this[_0x168cf1(0x1e6)][_0x168cf1(0x1ca)]=_0x13bd75,this[_0x168cf1(0x1e6)][_0x168cf1(0x1ab)]({'attributes':{'class':[_0x168cf1(0x1be)]}});const _0x58ead2=this[_0x168cf1(0x1c0)](),_0x188bbf=this[_0x168cf1(0x1f7)](_0x3109cc),_0x2982b2=this[_0x168cf1(0x1e4)](),_0x1e843c=this[_0x168cf1(0x1a8)](_0x3109cc,_0x13bd75),_0x21e613=this[_0x168cf1(0x1e2)](_0x3109cc,_0x1e843c),_0x49d87c=this[_0x168cf1(0x1ce)](_0x3109cc,_0x1e843c);this[_0x168cf1(0x1dd)]=this[_0x168cf1(0x199)](),this[_0x168cf1(0x1a7)]=this[_0x168cf1(0x199)](),this[_0x168cf1(0x1a7)][_0x168cf1(0x1af)](this[_0x168cf1(0x1e6)]),this[_0x168cf1(0x1dd)][_0x168cf1(0x1af)](_0x188bbf),this[_0x168cf1(0x1dd)][_0x168cf1(0x1af)](_0x2982b2),this['on'](_0x168cf1(0x1c6),(_0x4b0a77,_0x3b3a9c,_0x4fb97d)=>{const _0x594bf6=_0x168cf1;this[_0x594bf6(0x1dd)][_0x594bf6(0x1a9)](),this[_0x594bf6(0x1a7)][_0x594bf6(0x1a9)](),_0x4fb97d?(this[_0x594bf6(0x1dd)][_0x594bf6(0x1af)](_0x21e613),this[_0x594bf6(0x1dd)][_0x594bf6(0x1af)](_0x49d87c),this[_0x594bf6(0x1a7)][_0x594bf6(0x1af)](_0x1e843c),_0x1e843c[_0x594bf6(0x1a5)][_0x594bf6(0x1ef)]()):(this[_0x594bf6(0x1dd)][_0x594bf6(0x1af)](_0x188bbf),this[_0x594bf6(0x1dd)][_0x594bf6(0x1af)](_0x2982b2),this[_0x594bf6(0x1a7)][_0x594bf6(0x1af)](this[_0x594bf6(0x1e6)]));}),this[_0x168cf1(0x1fb)]({'tag':'li','attributes':{'class':[_0x168cf1(0x1bc),_0xfe0e79?_0x168cf1(0x1a6):'',_0x5d3fad['if'](_0x168cf1(0x1eb),_0x168cf1(0x1e5),_0x41ae3b=>!_0x41ae3b),_0x5d3fad['if'](_0x168cf1(0x1c3),_0x168cf1(0x1bd))],'role':_0x168cf1(0x1e3)},'children':[{'tag':_0x168cf1(0x1b1),'attributes':{'class':[_0x168cf1(0x1c9)]},'children':[{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1d1),_0x5d3fad['if'](_0x168cf1(0x1a1),_0x168cf1(0x1e5),_0x307f6b=>!!_0x307f6b)]},'children':_0xfe0e79?[_0x58ead2]:[]},{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1d6),_0x5d3fad['if'](_0x168cf1(0x1a1),_0x168cf1(0x1e5),_0x4e311f=>!_0x4e311f)]},'children':[this[_0x168cf1(0x1a3)]()]}]},{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1f8)]},'children':[{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1cc)]},'on':{'click':this[_0x168cf1(0x1d0)]['to'](_0x168cf1(0x19b))},'children':[{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1bf)]},'children':[{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1be),_0x5d3fad['if'](_0x168cf1(0x1a1),_0x168cf1(0x1e5),_0x48dced=>!!_0x48dced)]},'children':this[_0x168cf1(0x1a7)]},{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1df),_0x5d3fad['if'](_0x168cf1(0x1a1),_0x168cf1(0x1e5),_0x2f354a=>!_0x2f354a)]},'children':[{'text':_0x5d3fad['to'](_0x168cf1(0x1a1),_0x3d2eaa=>_0x3d2eaa?_0x1a3352(this[_0x168cf1(0x1b6)],AIChatHistoryListItemView[_0x168cf1(0x1cd)][_0x3d2eaa]):'')}]}]},{'tag':_0x168cf1(0x1b1),'attributes':{'class':[_0x168cf1(0x1d7)]},'children':[_0x32c106]}]},{'tag':_0x168cf1(0x1d3),'attributes':{'class':[_0x168cf1(0x1f9)]},'children':this[_0x168cf1(0x1dd)]}]}]}),this['on'](_0x168cf1(0x19b),()=>{const _0x258c00=_0x168cf1;this[_0x258c00(0x1c3)]||this[_0x258c00(0x1ad)](_0x258c00(0x1ae),{'id':this['id']});});}[_0x37b60a(0x1e8)](_0x550a2d){const _0x58858c=_0x37b60a;this[_0x58858c(0x1e6)][_0x58858c(0x1ca)]=_0x2154a3(_0x550a2d);}[_0x37b60a(0x19a)](_0x1146d5,_0x5dcf6c){const _0x19ebaa=_0x37b60a;this[_0x19ebaa(0x1c5)](_0x19ebaa(0x1a1),_0x5dcf6c?_0x1146d5:null);}[_0x37b60a(0x1c0)](){const _0xed3bc4=_0x37b60a,_0x330c70=new _0x51a1cc();return _0x330c70[_0xed3bc4(0x1c5)]({'content':_0x1d6ea9}),_0x330c70;}[_0x37b60a(0x1f7)](_0x5163d0){const _0x2f08ca=_0x37b60a,_0x218ec2=new _0x17ebc1(_0x5163d0);return _0x218ec2[_0x2f08ca(0x1c5)]({'label':_0x1a3352(_0x5163d0,_0x2f08ca(0x19c)),'icon':_0x2433ba,'withText':!0x1,'tooltip':!0x0}),_0x218ec2[_0x2f08ca(0x1f1)](_0x2f08ca(0x1ea))['to'](this,_0x2f08ca(0x1b4)),_0x218ec2['on'](_0x2f08ca(0x1b3),()=>{const _0x23cca6=_0x2f08ca,_0x124b26=!this[_0x23cca6(0x1b4)];this[_0x23cca6(0x1ad)](_0x23cca6(0x1f5),{'id':this['id'],'pinned':_0x124b26});}),_0x218ec2;}[_0x37b60a(0x1e4)](){const _0x4813f0=_0x37b60a,_0x5256a6=_0x273f3a(this[_0x4813f0(0x1b6)],_0x1a371b),_0x3d6a97=_0x5256a6[_0x4813f0(0x1b7)][_0x4813f0(0x1e9)];_0x5256a6[_0x4813f0(0x1cf)][_0x4813f0(0x1c5)]({'label':_0x1a3352(this[_0x4813f0(0x1b6)],_0x4813f0(0x1c2)),'icon':_0x1b16d9}),_0x5256a6[_0x4813f0(0x19d)]='sw';const _0xa18ed0=new _0x17ebc1(this[_0x4813f0(0x1b6)]);_0xa18ed0[_0x4813f0(0x1f2)]=_0x1a3352(this[_0x4813f0(0x1b6)],_0x4813f0(0x1a4)),_0xa18ed0[_0x4813f0(0x1b2)]=!0x0,_0xa18ed0['on'](_0x4813f0(0x1b3),()=>{const _0x5dbeef=_0x4813f0;this[_0x5dbeef(0x1c3)]=!0x0;});const _0x37acca=new _0x17ebc1(this[_0x4813f0(0x1b6)]);_0x37acca[_0x4813f0(0x1f2)]=_0x1a3352(this[_0x4813f0(0x1b6)],_0x4813f0(0x1ed)),_0x37acca[_0x4813f0(0x1b2)]=!0x0,_0x37acca['on'](_0x4813f0(0x1b3),()=>{const _0x3c6110=_0x4813f0;this[_0x3c6110(0x1fc)](_0x1a3352(this[_0x3c6110(0x1b6)],_0x3c6110(0x1ac)),this[_0x3c6110(0x1a5)])[_0x3c6110(0x1da)](()=>{const _0x560e69=_0x3c6110;this[_0x560e69(0x1ad)](_0x560e69(0x1b5),{'id':this['id']});});});const _0x2a227b=new _0x295738(this[_0x4813f0(0x1b6)]),_0x286ee6=new _0x537c4e(this[_0x4813f0(0x1b6)]);_0x286ee6[_0x4813f0(0x1e9)][_0x4813f0(0x1af)](_0xa18ed0);const _0x4dfaf1=new _0x537c4e(this[_0x4813f0(0x1b6)]);return _0x4dfaf1[_0x4813f0(0x1e9)][_0x4813f0(0x1af)](_0x37acca),_0x2a227b[_0x4813f0(0x1f0)][_0x4813f0(0x1f6)]([_0x286ee6,_0x4dfaf1]),_0x3d6a97[_0x4813f0(0x1af)](_0x2a227b),_0x5256a6;}[_0x37b60a(0x1a8)](_0x42775e,_0x329418){const _0x3db342=_0x37b60a,_0x23be09=new _0x14bac9(_0x42775e),_0xa37a21=_0x23be09[_0x3db342(0x1d0)];return _0x23be09[_0x3db342(0x1ee)]=_0x329418,_0x23be09[_0x3db342(0x1ab)]({'on':{'keydown':_0xa37a21['to'](_0xc8cdfe=>{const _0xab0f6=_0x3db342;_0xab0f6(0x1a2)==_0xc8cdfe[_0xab0f6(0x1de)]&&this[_0xab0f6(0x1b0)](_0x23be09);})}}),_0x23be09;}[_0x37b60a(0x1e2)](_0x4a0428,_0x4118fd){const _0x629e05=_0x37b60a,_0x4b9afb=new _0x17ebc1(_0x4a0428);return _0x4b9afb[_0x629e05(0x1c5)]({'icon':_0x1d6ea9,'withText':!0x1,'tooltip':_0x1a3352(_0x4a0428,_0x629e05(0x1e7))}),_0x4b9afb[_0x629e05(0x1ab)]({'attributes':{'class':[_0x629e05(0x1f4)]}}),_0x4b9afb['on'](_0x629e05(0x1b3),()=>{const _0x39b779=_0x629e05;this[_0x39b779(0x1b0)](_0x4118fd);}),_0x4b9afb;}[_0x37b60a(0x1b0)](_0x40a498){const _0x4ad765=_0x37b60a,_0x3b47c6=_0x40a498[_0x4ad765(0x1a5)][_0x4ad765(0x1ee)]||'';this[_0x4ad765(0x1e6)][_0x4ad765(0x1ca)]=_0x3b47c6,this[_0x4ad765(0x1c3)]=!0x1,this[_0x4ad765(0x1ad)](_0x4ad765(0x1d5),{'id':this['id'],'title':_0x3b47c6});}[_0x37b60a(0x1ce)](_0x5281b3,_0x449d36){const _0x490784=_0x37b60a,_0x340f2b=new _0x17ebc1(_0x5281b3);return _0x340f2b[_0x490784(0x1c5)]({'icon':_0x27deff,'withText':!0x1,'tooltip':_0x1a3352(_0x5281b3,_0x490784(0x1fd))}),_0x340f2b[_0x490784(0x1ab)]({'attributes':{'class':[_0x490784(0x1e1)]}}),_0x340f2b['on'](_0x490784(0x1b3),()=>{const _0x4b6f62=_0x490784;this[_0x4b6f62(0x1c3)]=!0x1,_0x449d36[_0x4b6f62(0x1ee)]=this[_0x4b6f62(0x1e6)][_0x4b6f62(0x1ca)]||'',this[_0x4b6f62(0x1ad)](_0x4b6f62(0x1b8));}),_0x340f2b;}[_0x37b60a(0x1a3)](){const _0x5b3d31=_0x37b60a,_0x1ff7ed=new _0xf58759(_0x5b3d31(0x1bb));return _0x1ff7ed[_0x5b3d31(0x1eb)]=!0x0,_0x1ff7ed;}[_0x37b60a(0x1c8)](_0x37fb0a){const _0xa36aaf=_0x37b60a;return this[_0xa36aaf(0x1e6)]&&_0xa36aaf(0x1f3)==typeof this[_0xa36aaf(0x1e6)][_0xa36aaf(0x1ca)]&&this[_0xa36aaf(0x1e6)][_0xa36aaf(0x1ca)][_0xa36aaf(0x1db)](_0x37fb0a)?{'title':!0x0}:null;}[_0x37b60a(0x1d9)](_0x44ed78){const _0x26e2ba=_0x37b60a;this[_0x26e2ba(0x1e6)][_0x26e2ba(0x1d9)](_0x44ed78);}}
|
|
23
|
+
const _0x49abae=_0x12b0;(function(_0x2b22e2,_0x1eb096){const _0x54ed81=_0x12b0,_0x1f2984=_0x2b22e2();while(!![]){try{const _0x38400c=parseInt(_0x54ed81(0x1ec))/0x1+parseInt(_0x54ed81(0x208))/0x2+-parseInt(_0x54ed81(0x234))/0x3*(parseInt(_0x54ed81(0x20b))/0x4)+parseInt(_0x54ed81(0x1fc))/0x5+parseInt(_0x54ed81(0x1f0))/0x6*(parseInt(_0x54ed81(0x1eb))/0x7)+parseInt(_0x54ed81(0x1f8))/0x8*(parseInt(_0x54ed81(0x226))/0x9)+-parseInt(_0x54ed81(0x22f))/0xa*(parseInt(_0x54ed81(0x242))/0xb);if(_0x38400c===_0x1eb096)break;else _0x1f2984['push'](_0x1f2984['shift']());}catch(_0x5456f2){_0x1f2984['push'](_0x1f2984['shift']());}}}(_0x29fd,0x976d5));import{ListItemView as _0x2ebbec,HighlightedTextView as _0x140a75,ButtonView as _0x45e6fe,ListView as _0x2667ea,IconView as _0xce0c39,createDropdown as _0x513490,InputTextView as _0x3cb1ca}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x279bd1,IconPin as _0x119cde,IconCheck as _0xabb492,IconCancel as _0x4f727b}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x2bc894,ConfirmMixin as _0x1d6bee}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x3c3118}from'es-toolkit/compat';import{AISpinnerView as _0x436288}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x5d7906}from'../../aicore/utils/common-translations.js';function _0x12b0(_0x505c45,_0x3df57f){const _0x29fd67=_0x29fd();return _0x12b0=function(_0x12b076,_0x1af8c0){_0x12b076=_0x12b076-0x1e5;let _0x5814b9=_0x29fd67[_0x12b076];return _0x5814b9;},_0x12b0(_0x505c45,_0x3df57f);}function _0x29fd(){const _0x3be7bb=['ck-hidden','112406PlInoa','600862bDlasm','isOn','match','set','438fUSkzf','AI_CHAT_HISTORY_CANCEL','AI_CHAT_HISTORY_LOADING_PINNING','_createMenuDropdownView','ck-ai-chat-history__item-actions','bind','_createEditInputView','loadingState','72wLGzoI','element','locale','span','4671295hFXkzm','highlightText','panelPosition','AI_CHAT_HISTORY_PIN_BUTTON','AI_CHAT_HISTORY_ACCEPT','mainContent','selectConversation','_createCheckView','children','_createSpinnerView','bindTemplate','click','2079926hjCoHs','string','updateTitle','2179104JxrSpN','ck-ai-chat-history__item','AI_CHAT_HISTORY_REMOVE_CONFIRM','change:isEdit','ck-confirm-view-cancel','tiny','setTemplate','updateLoadingState','editConversationTitle','ck-ai-loader__text','div','ck-ai-chat-history__item-check','edit:cancel','value','ck-ai-chat-history__item-content','_createAcceptEditButtonView','label','execute','showConfirm','_titleView','panelView','key','AI_CHAT_HISTORY_EDIT_NAME','isEdit','AI_CHAT_HISTORY_LOADING_REMOVING','ck-ai-chat-history__item-title','AI_CHAT_HISTORY_REMOVE','73269dvQbJB','removeConversation','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','focus','ck-ai-chat-history__item-check-container','text','_commitEditInputValue','isVisible','createCollection','26555660xxSMcK','fire','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-loader','AI_CHAT_HISTORY_LOADING_UNPINNING','3dHwoIC','pinned','then','ck-ai-chat-history__item-date','ck-ai-chat-history__item-main-content','add','_createPinButtonView','ck-confirm-view-submit','LOADING_LABELS','actions','ck-ai-chat-history__item-row','ck-ai-chat-history__item--edit','setConversationPinned','extendTemplate','11mfbwpL','isMatching','withText','items','clear','addMany','Enter','listitem','buttonView','ck-ai-chat-history__item--active','_createCancelEditButtonView'];_0x29fd=function(){return _0x3be7bb;};return _0x29fd();}export class AIChatHistoryListItemView extends _0x1d6bee(_0x2ebbec){['id'];static [_0x49abae(0x23c)]={'remove':_0x49abae(0x223),'rename':_0x49abae(0x231),'pin':_0x49abae(0x1f2),'unpin':_0x49abae(0x233)};[_0x49abae(0x23d)];[_0x49abae(0x201)];[_0x49abae(0x21e)];constructor(_0x57a31f,_0x5d9c37){const _0x3b1537=_0x49abae;super(_0x57a31f);const _0x38a4b8=this[_0x3b1537(0x206)];this[_0x3b1537(0x1ef)](_0x3b1537(0x222),!0x1),this[_0x3b1537(0x1ef)](_0x3b1537(0x22d),!0x0),this[_0x3b1537(0x1ef)](_0x3b1537(0x235),!!_0x5d9c37[_0x3b1537(0x235)]),this[_0x3b1537(0x1ef)](_0x3b1537(0x1f7),null),this['id']=_0x5d9c37['id'];const {title:_0x55d5fa,createdAt:_0x6ec62e,active:_0x6a4d8c=!0x1}=_0x5d9c37;this[_0x3b1537(0x21e)]=new _0x140a75(),this[_0x3b1537(0x21e)][_0x3b1537(0x22b)]=_0x55d5fa,this[_0x3b1537(0x21e)][_0x3b1537(0x241)]({'attributes':{'class':[_0x3b1537(0x224)]}});const _0x588830=this[_0x3b1537(0x203)](),_0x581f3c=this[_0x3b1537(0x23a)](_0x57a31f),_0x2cd307=this[_0x3b1537(0x1f3)](),_0x1b4d9f=this[_0x3b1537(0x1f6)](_0x57a31f,_0x55d5fa),_0x2f8945=this[_0x3b1537(0x21a)](_0x57a31f,_0x1b4d9f),_0x50a045=this[_0x3b1537(0x1e9)](_0x57a31f,_0x1b4d9f);this[_0x3b1537(0x23d)]=this[_0x3b1537(0x22e)](),this[_0x3b1537(0x201)]=this[_0x3b1537(0x22e)](),this[_0x3b1537(0x201)][_0x3b1537(0x239)](this[_0x3b1537(0x21e)]),this[_0x3b1537(0x23d)][_0x3b1537(0x239)](_0x581f3c),this[_0x3b1537(0x23d)][_0x3b1537(0x239)](_0x2cd307),this['on'](_0x3b1537(0x20e),(_0x26f1ca,_0x308943,_0x35ca0e)=>{const _0x1d5845=_0x3b1537;this[_0x1d5845(0x23d)][_0x1d5845(0x246)](),this[_0x1d5845(0x201)][_0x1d5845(0x246)](),_0x35ca0e?(this[_0x1d5845(0x23d)][_0x1d5845(0x239)](_0x2f8945),this[_0x1d5845(0x23d)][_0x1d5845(0x239)](_0x50a045),this[_0x1d5845(0x201)][_0x1d5845(0x239)](_0x1b4d9f),_0x1b4d9f[_0x1d5845(0x1f9)][_0x1d5845(0x229)]()):(this[_0x1d5845(0x23d)][_0x1d5845(0x239)](_0x581f3c),this[_0x1d5845(0x23d)][_0x1d5845(0x239)](_0x2cd307),this[_0x1d5845(0x201)][_0x1d5845(0x239)](this[_0x1d5845(0x21e)]));}),this[_0x3b1537(0x211)]({'tag':'li','attributes':{'class':[_0x3b1537(0x20c),_0x6a4d8c?_0x3b1537(0x1e8):'',_0x38a4b8['if'](_0x3b1537(0x22d),_0x3b1537(0x1ea),_0x51dab6=>!_0x51dab6),_0x38a4b8['if'](_0x3b1537(0x222),_0x3b1537(0x23f))],'role':_0x3b1537(0x1e6)},'children':[{'tag':_0x3b1537(0x1fb),'attributes':{'class':[_0x3b1537(0x22a)]},'children':[{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x216),_0x38a4b8['if'](_0x3b1537(0x1f7),_0x3b1537(0x1ea),_0x2ba0f3=>!!_0x2ba0f3)]},'children':_0x6a4d8c?[_0x588830]:[]},{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x232),_0x38a4b8['if'](_0x3b1537(0x1f7),_0x3b1537(0x1ea),_0x563ecf=>!_0x563ecf)]},'children':[this[_0x3b1537(0x205)]()]}]},{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x23e)]},'children':[{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x219)]},'on':{'click':this[_0x3b1537(0x206)]['to'](_0x3b1537(0x207))},'children':[{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x238)]},'children':[{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x224),_0x38a4b8['if'](_0x3b1537(0x1f7),_0x3b1537(0x1ea),_0x556576=>!!_0x556576)]},'children':this[_0x3b1537(0x201)]},{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x214),_0x38a4b8['if'](_0x3b1537(0x1f7),_0x3b1537(0x1ea),_0xd4b41a=>!_0xd4b41a)]},'children':[{'text':_0x38a4b8['to'](_0x3b1537(0x1f7),_0x2f7c2b=>_0x2f7c2b?_0x5d7906(this[_0x3b1537(0x1fa)],AIChatHistoryListItemView[_0x3b1537(0x23c)][_0x2f7c2b]):'')}]}]},{'tag':_0x3b1537(0x1fb),'attributes':{'class':[_0x3b1537(0x237)]},'children':[_0x6ec62e]}]},{'tag':_0x3b1537(0x215),'attributes':{'class':[_0x3b1537(0x1f4)]},'children':this[_0x3b1537(0x23d)]}]}]}),this['on'](_0x3b1537(0x207),()=>{const _0x375c27=_0x3b1537;this[_0x375c27(0x222)]||this[_0x375c27(0x230)](_0x375c27(0x202),{'id':this['id']});});}[_0x49abae(0x20a)](_0x35db81){const _0x5b2317=_0x49abae;this[_0x5b2317(0x21e)][_0x5b2317(0x22b)]=_0x3c3118(_0x35db81);}[_0x49abae(0x212)](_0x5577d7,_0x5c2984){const _0x49b63e=_0x49abae;this[_0x49b63e(0x1ef)](_0x49b63e(0x1f7),_0x5c2984?_0x5577d7:null);}[_0x49abae(0x203)](){const _0x469002=_0x49abae,_0x4b7b10=new _0xce0c39();return _0x4b7b10[_0x469002(0x1ef)]({'content':_0xabb492}),_0x4b7b10;}[_0x49abae(0x23a)](_0x59a088){const _0x47c378=_0x49abae,_0x289444=new _0x45e6fe(_0x59a088);return _0x289444[_0x47c378(0x1ef)]({'label':_0x5d7906(_0x59a088,_0x47c378(0x1ff)),'icon':_0x119cde,'withText':!0x1,'tooltip':!0x0}),_0x289444[_0x47c378(0x1f5)](_0x47c378(0x1ed))['to'](this,_0x47c378(0x235)),_0x289444['on'](_0x47c378(0x21c),()=>{const _0x57ea8a=_0x47c378,_0x80cd3e=!this[_0x57ea8a(0x235)];this[_0x57ea8a(0x230)](_0x57ea8a(0x240),{'id':this['id'],'pinned':_0x80cd3e});}),_0x289444;}[_0x49abae(0x1f3)](){const _0xb11693=_0x49abae,_0x23fd8c=_0x513490(this[_0xb11693(0x1fa)],_0x2bc894),_0x1f8da4=_0x23fd8c[_0xb11693(0x21f)][_0xb11693(0x204)];_0x23fd8c[_0xb11693(0x1e7)][_0xb11693(0x1ef)]({'label':_0x5d7906(this[_0xb11693(0x1fa)],_0xb11693(0x228)),'icon':_0x279bd1}),_0x23fd8c[_0xb11693(0x1fe)]='sw';const _0x51b5a4=new _0x45e6fe(this[_0xb11693(0x1fa)]);_0x51b5a4[_0xb11693(0x21b)]=_0x5d7906(this[_0xb11693(0x1fa)],_0xb11693(0x221)),_0x51b5a4[_0xb11693(0x244)]=!0x0,_0x51b5a4['on'](_0xb11693(0x21c),()=>{const _0x38da9f=_0xb11693;this[_0x38da9f(0x222)]=!0x0;});const _0x57b0d2=new _0x45e6fe(this[_0xb11693(0x1fa)]);_0x57b0d2[_0xb11693(0x21b)]=_0x5d7906(this[_0xb11693(0x1fa)],_0xb11693(0x225)),_0x57b0d2[_0xb11693(0x244)]=!0x0,_0x57b0d2['on'](_0xb11693(0x21c),()=>{const _0x2f7047=_0xb11693;this[_0x2f7047(0x21d)](_0x5d7906(this[_0x2f7047(0x1fa)],_0x2f7047(0x20d)),this[_0x2f7047(0x1f9)])[_0x2f7047(0x236)](()=>{const _0x3e2e04=_0x2f7047;this[_0x3e2e04(0x230)](_0x3e2e04(0x227),{'id':this['id']});});});const _0x1d71ee=new _0x2667ea(this[_0xb11693(0x1fa)]),_0x6dc613=new _0x2ebbec(this[_0xb11693(0x1fa)]);_0x6dc613[_0xb11693(0x204)][_0xb11693(0x239)](_0x51b5a4);const _0x1c68a2=new _0x2ebbec(this[_0xb11693(0x1fa)]);return _0x1c68a2[_0xb11693(0x204)][_0xb11693(0x239)](_0x57b0d2),_0x1d71ee[_0xb11693(0x245)][_0xb11693(0x247)]([_0x6dc613,_0x1c68a2]),_0x1f8da4[_0xb11693(0x239)](_0x1d71ee),_0x23fd8c;}[_0x49abae(0x1f6)](_0x12df6a,_0x2ee6f4){const _0x5b713f=_0x49abae,_0x442bfc=new _0x3cb1ca(_0x12df6a),_0x112ec3=_0x442bfc[_0x5b713f(0x206)];return _0x442bfc[_0x5b713f(0x218)]=_0x2ee6f4,_0x442bfc[_0x5b713f(0x241)]({'on':{'keydown':_0x112ec3['to'](_0x371390=>{const _0x11e568=_0x5b713f;_0x11e568(0x1e5)==_0x371390[_0x11e568(0x220)]&&this[_0x11e568(0x22c)](_0x442bfc);})}}),_0x442bfc;}[_0x49abae(0x21a)](_0xae24e0,_0x3ff5fe){const _0x585ae6=_0x49abae,_0x4f36fe=new _0x45e6fe(_0xae24e0);return _0x4f36fe[_0x585ae6(0x1ef)]({'icon':_0xabb492,'withText':!0x1,'tooltip':_0x5d7906(_0xae24e0,_0x585ae6(0x200))}),_0x4f36fe[_0x585ae6(0x241)]({'attributes':{'class':[_0x585ae6(0x23b)]}}),_0x4f36fe['on'](_0x585ae6(0x21c),()=>{const _0x3f3c64=_0x585ae6;this[_0x3f3c64(0x22c)](_0x3ff5fe);}),_0x4f36fe;}[_0x49abae(0x22c)](_0x220ff7){const _0x3f7663=_0x49abae,_0x82e7db=_0x220ff7[_0x3f7663(0x1f9)][_0x3f7663(0x218)]||'';this[_0x3f7663(0x21e)][_0x3f7663(0x22b)]=_0x82e7db,this[_0x3f7663(0x222)]=!0x1,this[_0x3f7663(0x230)](_0x3f7663(0x213),{'id':this['id'],'title':_0x82e7db});}[_0x49abae(0x1e9)](_0x19e763,_0x4832b0){const _0x26d868=_0x49abae,_0x3fca7b=new _0x45e6fe(_0x19e763);return _0x3fca7b[_0x26d868(0x1ef)]({'icon':_0x4f727b,'withText':!0x1,'tooltip':_0x5d7906(_0x19e763,_0x26d868(0x1f1))}),_0x3fca7b[_0x26d868(0x241)]({'attributes':{'class':[_0x26d868(0x20f)]}}),_0x3fca7b['on'](_0x26d868(0x21c),()=>{const _0x1963e4=_0x26d868;this[_0x1963e4(0x222)]=!0x1,_0x4832b0[_0x1963e4(0x218)]=this[_0x1963e4(0x21e)][_0x1963e4(0x22b)]||'',this[_0x1963e4(0x230)](_0x1963e4(0x217));}),_0x3fca7b;}[_0x49abae(0x205)](){const _0x2755a7=_0x49abae,_0x1df5d5=new _0x436288(_0x2755a7(0x210));return _0x1df5d5[_0x2755a7(0x22d)]=!0x0,_0x1df5d5;}[_0x49abae(0x243)](_0xaba72){const _0x469922=_0x49abae;return this[_0x469922(0x21e)]&&_0x469922(0x209)==typeof this[_0x469922(0x21e)][_0x469922(0x22b)]&&this[_0x469922(0x21e)][_0x469922(0x22b)][_0x469922(0x1ee)](_0xaba72)?{'title':!0x0}:null;}[_0x49abae(0x1fd)](_0x2d2a45){const _0xcbb4a0=_0x49abae;this[_0xcbb4a0(0x21e)][_0xcbb4a0(0x1fd)](_0x2d2a45);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x528363=_0x1b33;function _0xf89e(){const _0x1a6e56=['ck-ai-chat-history__section','splice','4699158hXPhSE','setTemplate','filter','find','indexOf','3062570rnQPPC','title','itemsViews','1401238RjjlEd','ck-ai-chat-history__section-title','items','14021532ySaEha','removeItem','div','2337433iFYuGx','bindTemplate','addMany','ck-hidden','set','16eAUrye','isMatching','remove','length','highlightText','668343CLABRi','_itemsListView','3FdTzqf','getItem','2835016IwknwA','isVisible'];_0xf89e=function(){return _0x1a6e56;};return _0xf89e();}function _0x1b33(_0x14de54,_0x27abc0){const _0xf89e8=_0xf89e();return _0x1b33=function(_0x1b3323,_0x5dd883){_0x1b3323=_0x1b3323-0x10f;let _0x51ad0a=_0xf89e8[_0x1b3323];return _0x51ad0a;},_0x1b33(_0x14de54,_0x27abc0);}(function(_0x13b586,_0x52110a){const _0x4f8d31=_0x1b33,_0x4a2f91=_0x13b586();while(!![]){try{const _0x55f6d6=-parseInt(_0x4f8d31(0x117))/0x1+-parseInt(_0x4f8d31(0x127))/0x2+-parseInt(_0x4f8d31(0x119))/0x3*(-parseInt(_0x4f8d31(0x11b))/0x4)+-parseInt(_0x4f8d31(0x124))/0x5+parseInt(_0x4f8d31(0x11f))/0x6+-parseInt(_0x4f8d31(0x12d))/0x7*(parseInt(_0x4f8d31(0x112))/0x8)+parseInt(_0x4f8d31(0x12a))/0x9;if(_0x55f6d6===_0x52110a)break;else _0x4a2f91['push'](_0x4a2f91['shift']());}catch(_0x29b069){_0x4a2f91['push'](_0x4a2f91['shift']());}}}(_0xf89e,0x61cc5));import{ListItemView as _0x48e1f2,View as _0x25a53a,ListView as _0x541104}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x48e1f2{[_0x528363(0x125)];[_0x528363(0x126)];[_0x528363(0x118)];constructor(_0x1e91b3,{title:_0x107609,items:_0x37d1d7}){const _0x14272f=_0x528363;super(_0x1e91b3);const _0x5c5970=this[_0x14272f(0x12e)];this[_0x14272f(0x111)](_0x14272f(0x11c),!0x0),this[_0x14272f(0x125)]=_0x107609,this[_0x14272f(0x126)]=_0x37d1d7;const _0x55a17a=new _0x25a53a(_0x1e91b3);_0x55a17a[_0x14272f(0x120)]({'tag':_0x14272f(0x12c),'attributes':{'class':[_0x14272f(0x128)]},'children':[this[_0x14272f(0x125)]]}),this[_0x14272f(0x118)]=new _0x541104(_0x1e91b3),this[_0x14272f(0x118)][_0x14272f(0x129)][_0x14272f(0x10f)](this[_0x14272f(0x126)]),this[_0x14272f(0x120)]({'tag':'li','attributes':{'class':[_0x14272f(0x11d),_0x5c5970['if'](_0x14272f(0x11c),_0x14272f(0x110),_0x5b6d59=>!_0x5b6d59)]},'children':[_0x55a17a,this[_0x14272f(0x118)]]});}[_0x528363(0x121)](_0x50d9f0){const _0x14e75e=_0x528363,_0x5db2cc=this[_0x14e75e(0x126)][_0x14e75e(0x115)];let _0x584a30=0x0;for(const _0x364bd3 of this[_0x14e75e(0x126)]){if(_0x50d9f0){const _0x3ce293=_0x364bd3[_0x14e75e(0x113)](_0x50d9f0);_0x364bd3[_0x14e75e(0x11c)]=!!_0x3ce293,_0x364bd3[_0x14e75e(0x116)](_0x50d9f0);}else _0x364bd3[_0x14e75e(0x11c)]=!0x0,_0x364bd3[_0x14e75e(0x116)](null);_0x364bd3[_0x14e75e(0x11c)]&&_0x584a30++;}return this[_0x14e75e(0x11c)]=_0x584a30>0x0,{'resultsCount':_0x584a30,'totalItemsCount':_0x5db2cc};}[_0x528363(0x11a)](_0x599a0d){const _0x2128d4=_0x528363;return this[_0x2128d4(0x126)][_0x2128d4(0x122)](_0x34ab50=>_0x34ab50['id']===_0x599a0d);}[_0x528363(0x12b)](_0x2a0801){const _0xf8c8d5=_0x528363,_0x11daea=this[_0xf8c8d5(0x126)][_0xf8c8d5(0x123)](_0x2a0801);-0x1!==_0x11daea&&(this[_0xf8c8d5(0x126)][_0xf8c8d5(0x11e)](_0x11daea,0x1),this[_0xf8c8d5(0x118)][_0xf8c8d5(0x129)][_0xf8c8d5(0x114)](_0x2a0801));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
const _0x3d0867=_0x5e8f;function _0x5e8f(_0x360e8f,_0x2e29f5){const _0x4d0a24=_0x4d0a();return _0x5e8f=function(_0x5e8fa7,_0x157eb4){_0x5e8fa7=_0x5e8fa7-0x13a;let _0x1f28fe=_0x4d0a24[_0x5e8fa7];return _0x1f28fe;},_0x5e8f(_0x360e8f,_0x2e29f5);}(function(_0x1aa81f,_0x6b4592){const _0x5f0aae=_0x5e8f,_0x58f913=_0x1aa81f();while(!![]){try{const _0x36aca5=parseInt(_0x5f0aae(0x144))/0x1+-parseInt(_0x5f0aae(0x13d))/0x2*(parseInt(_0x5f0aae(0x13f))/0x3)+-parseInt(_0x5f0aae(0x13b))/0x4+parseInt(_0x5f0aae(0x145))/0x5*(-parseInt(_0x5f0aae(0x148))/0x6)+parseInt(_0x5f0aae(0x13e))/0x7+parseInt(_0x5f0aae(0x141))/0x8+parseInt(_0x5f0aae(0x142))/0x9;if(_0x36aca5===_0x6b4592)break;else _0x58f913['push'](_0x58f913['shift']());}catch(_0x189ee8){_0x58f913['push'](_0x58f913['shift']());}}}(_0x4d0a,0x6060a));import{ListView as _0x44275d}from'ckeditor5/src/ui.js';function _0x4d0a(){const _0xa4fbf=['2gkLttv','940751YkBmut','492819DycALv','extendTemplate','2053832NNmnhp','912087EzRNKL','filter','132594fQsfRt','7520kfLube','sections','items','192wRMKYW','addMany','71584afIiwJ','ck-ai-chat-history__sections'];_0x4d0a=function(){return _0xa4fbf;};return _0x4d0a();}export class AIChatHistorySectionListView extends _0x44275d{[_0x3d0867(0x146)];constructor(_0x470b6f,_0x521b32){const _0x277c64=_0x3d0867;super(_0x470b6f),this[_0x277c64(0x146)]=_0x521b32,this[_0x277c64(0x147)][_0x277c64(0x13a)](this[_0x277c64(0x146)]),this[_0x277c64(0x140)]({'attributes':{'class':[_0x277c64(0x13c)]}});}[_0x3d0867(0x143)](_0x1662f3){const _0x43cb13=_0x3d0867;let _0x1f622f=0x0,_0x4ee608=0x0;for(const _0x7bafa7 of this[_0x43cb13(0x146)]){const {resultsCount:_0x39992f,totalItemsCount:_0x21c4f9}=_0x7bafa7[_0x43cb13(0x143)](_0x1662f3);_0x1f622f+=_0x39992f,_0x4ee608+=_0x21c4f9;}return{'resultsCount':_0x1f622f,'totalItemsCount':_0x4ee608};}}
|